Oracle: decide and enforce the bound's domain when translating a bounded-read package

Open
#403 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
compilers

Research direction

Start with the Ambyte specification to determine whether carried bounds are restricted, using the review context in #402 and the linked comment as the discovery point. Compare that rule with Echo's C015 implementation in crates/echo-edict-semantic-bound/src/lib.rs, while treating Echo as non-authoritative. Done means quoting the specification and either adding oracle refusal with a structured error and tests or documenting that the oracle intentionally computes U for every translatable plan.

Written by the indexing model from the issue text.

Description

bug enhancement release:target-ir type: goalpost

Found in the first review of #402 (https://github.com/flyingrobots/amblicit/pull/402#issuecomment-7310140768), outside that pull request's scope (#376: read the eleven-field package).

Observation. The oracle's package translator accepts a carried bound on a program outside Echo's bound domain: for example, two read steps, where Echo's domain predicate requires exactly one read and one equality requirement (Echo crates/echo-edict-semantic-bound/src/lib.rs near 388-393 at dd8e2af1, ruling C015 rule 1). The oracle then computes its own U for that plan.

Question to settle from the Ambyte specification, not from Echo. Does the specification restrict which plans carry a bound U (and so which packages the oracle must refuse), or is the domain an Echo-side rule (C015) that the oracle should not enforce? The oracle is the reference and must not imitate Echo. Quote the specification's text, then either add the refusal with a structured error and tests, or record that the oracle intentionally computes U for any translatable plan.

W9 impact. None known: the retained package is in the domain.

Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flyingrobots/edict

All issues in flyingrobots/edict

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.