The settlement harness omits coverage evidence and derives keys before the stale check
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Start with crates/ambyte-oracle/src/harness/settle.rs and crates/ambyte-oracle/src/harness.rs, especially run_tick; the issue identifies the current coverage and stale-check paths. Read rule P7 and Table 8, then trace the named composition tests and settlement fixtures. Done when failed and aborted observations retain uncovered dependency evidence, stale candidates skip the key function, and the specification names the new witnesses.
Written by the indexing model from the issue text.
Description
.dag: issue-dag/2
.id: ambyte-lang/ambyte#395
.kind: task
.type: bug
.blocked_by: []
.size_hours: 3
Compute coverage evidence on failed and aborted observations, and check the basis before calling the key function
Outcome
The reference oracle's tick computes coverage evidence for every complete observation, keeps it when a peer's violation aborts the tick, and compares the basis before it calls the key function, as rule P7 and Table 8 require.
Scope
crates/ambyte-oracle/src/harness/settle.rsandcrates/ambyte-oracle/src/harness.rs(run_tick).- Finding 1, coverage evidence. Rule P7 (Section 1.5) requires a host of the typed-atom profile to validate the coverage of the atom dependencies of a failed observation and record the uncovered ones beside the disposition, and to keep that evidence when a peer's violation leaves the candidate
Aborted. Echo's ruling C007 ("Coverage on failed observations") requires the same for every complete observation. At32530e87,settlereturns at a language failure before computing coverage (settle.rs:16-21), and on the abort pathrun_tickrecordsAbortedand returns without computing it (harness.rs:338-357,Abortedat:351, return at:354).TickReportholds only decisions and observations (harness.rs:256-261). - Finding 2, stale before keys. Table 8 puts the stale check (D2) before keys. At
32530e87,run_tickcalls the key function (harness.rs:305) before it compares the basis (:306). With a pure key function the disposition is the same, so the existing testsn2_stale_candidate_is_refused_before_key_contention(tests/composition.rs:508) andn2_stale_candidate_before_fresh_does_not_block_key(:609) cannot detect the order.
Out of scope
- Replacing rule P7's relation (the specification change for flyingrobots/echo#1102).
- Echo's implementation.
Prerequisites
None.
Safe intermediate state
Each finding is fixed separately; dispositions do not change.
Acceptance
- A failed observation with an uncovered atom dependency is
Failed, and the report carries the uncovered dependency. - The same observation with a violating peer is
Aborted, and the report keeps its observation and the uncovered dependency. - A harness witness whose key function records each call shows that a stale candidate's key function is not called.
- The same uncovered atom dependency gives
Failedwith the evidence in one settlement fixture, andAbortedwith the complete observation and the evidence in another where a peer violates. - The specification's P7 record names these witnesses in place of "Limit: not tested".
Evidence
Found by independent counsel (codex) in rounds 1 and 2 of the council on flyingrobots/echo#1102, at flyingrobots/amblicit a1d7a991 and 32530e87; line numbers above are at 32530e87. Echo's ruling C014 (K3 and K4) records that P7 requires this evidence and that the oracle is to be corrected against it.
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flyingrobots/edict
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Possibly taken @flyingrobots claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
flyingrobots/edict#457 ·
-
enhancement type: goalpost
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
flyingrobots/edict#355 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
flyingrobots/edict#306 ·
-
enhancement type: goalpost
Difficulty 4/5 3-5 days Newbie friendliness 42/100
flyingrobots/edict#451 ·
-
enhancement release:target-ir
Difficulty 5/5 Over a week Newbie friendliness 28/100
flyingrobots/edict#450 · 1 comment · 1 reaction ·
All issues in flyingrobots/edict
Similar issues
-
triage: failed
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
oxc-project/tsrs#1277 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
autofixer: follow-up triage: bug triage: classified triage: correctness triage: has-reproducer
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
tursodatabase/turso#13221 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day