Repository navigation
test(ambyte-w9): strengthen three pieces of W9 evidence - #1219
Conversation
…ccepted result An accepted bounded-read result inside the bound's domain carries one Info diagnostic, echo.verifier.bounded-read-bound, whose message names the tariff and the units of the bound the verifier recomputed and found equal to both carried fields. The report's bytes are unchanged. W9's u_agreement asserts that number equals U instead of inferring it from accept at U and refuse at U - 1. Agent-Session: 84c4f2c8-461c-47b5-85a3-6a0711d52495 Agent-Tool: claude-code
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…ure stop A stale bounded read whose evaluation would stop at the aperture is published as RefusedStale, with no observation and the old basis, so the test shows through the public outcome that the stale check precedes evaluation. A new part, read_outside_aperture, submits through tick_once a read of a node outside the grant's authorized aperture and asserts the published ReadOutsideAperture record: invocation, stopped address, the input and aperture digests recomputed from the submitted bytes, an Attempt coordinate, no observation and no commit. The oracle does not model this stop. Agent-Session: 84c4f2c8-461c-47b5-85a3-6a0711d52495 Agent-Tool: claude-code
…74563 The verifier names its recomputed bound in an accepted result, so its component bytes change: 872,860 bytes, SHA-256 5b3f86e3. Both G4 candidate jobs of the run, built from f1dbc1a, produced byte-identical components for the verifier (and for the unchanged lowerer). The approved identity, the checked component and its two package copies, the package manifest, the package goldens and the component READMEs follow. Agent-Session: 84c4f2c8-461c-47b5-85a3-6a0711d52495 Agent-Tool: claude-code
Council code review, first review: codex, at
|
| Area | Status and evidence |
|---|---|
| Pinned range and merges | Executed. Confirmed head 09b7ffd3828c6af1530fc8826580667388df0a8b, inspected the requested three-dot diff and two-dot log against 6e9784b0f68739ae79ba078ec61b18d967bf8164, and ran git diff --check successfully. The three commits are linear and have one parent each. There are no merge commits or conflict resolutions in range. |
| Native and component verifier | Inspected. Native lib.rs:296 → executable_operation.rs:255 → bounded_read.rs:121 → bounded_read/semantic_bound.rs:146–:199, all under crates/echo-edict-provider-verifier/src/. The component uses the same verifier and forwards the limits, diagnostic code, severity and message through component.rs:19, :46, :105 and :170. Relation rejection and semantic-bound refusals retain their existing branches. Graph reads and accepted out-of-domain reads return no recomputed bound. The report encoder still receives an empty diagnosticBytes field on acceptance (bounded_read.rs:142–:153 → executable_operation.rs:2297). The new message is deterministic by inspection. The outer response changes, including the refusal boundary in Finding 1. |
u_agreement |
Inspected. tests/ambyte-w9-conformance/tests/w9_typed_read_conformance.rs:1757 → tests/ambyte-w9-conformance/tests/support/verifier_run.rs:208 and :238 → the native public verifier. The assertion requires an accepted report and the expected tariff and units from a single matching Info diagnostic. The companion U - 1 assertion requires the specific embedded-bound mismatch. This exercises the native library dependency (tests/ambyte-w9-conformance/Cargo.toml:31). Acceptance entails equality with both carried fields, so value equality alone cannot distinguish formatting the recomputed bound from formatting a checked carried value. The implementation uses the recomputed value. |
| Public stale and aperture paths | Inspected. W9 submits via the WAL-acknowledged ingress and tick_once at tests/ambyte-w9-conformance/tests/w9_typed_read_conformance.rs:865–:884 and :1534–:1549. crates/warp-core/src/trusted_runtime_host.rs:2491 → crates/warp-core/src/coordinator.rs:5929 → crates/warp-core/src/echo_operation.rs:6731 produces stale before evaluator dispatch. For a fresh request, admission checks grant authorization of the declared aperture at echo_operation.rs:4965. The addressed node hits the aperture check at crates/warp-core/src/edict_read/evaluate.rs:271, maps to the bounded-read obstruction at crates/warp-core/src/echo_operation/bounded_read_evaluator.rs:712, and becomes tag 8 at crates/warp-core/src/echo_operation/bounded_read_commit.rs:439–:457. The test distinguishes the addressed node from the authorized one and checks invocation identity, input and aperture digests, Attempt coordinate, observation absence, and unchanged public basis (w9_typed_read_conformance.rs:1916–:2000). |
| Settlement, publication and recovery | Inspected relevant branches only. The scheduler splits commit settlement and no-commit attempt assembly at crates/warp-core/src/coordinator.rs:6013–:6060. The host writes commit batches or attempts, handles write errors, then publishes outcomes and any observations at crates/warp-core/src/trusted_runtime_host.rs:2678–:2768. Tags 5 and 8 expose no observation bytes at crates/warp-core/src/echo_operation/action_record.rs:201. The existing recovery path has separate attempt validation at trusted_runtime_host.rs:2887 and :7276. Full restart and interruption parity was not established by this review. |
| Changed constants and document figures | Checked locally. The W9 tariff arithmetic gives U = 1,048,584 from 5 + 1,048,576 + 2 + 1, consistent with docs/architecture/one-admission-path.md:1128 and the verifier fixture assertion at crates/echo-edict-provider-verifier/tests/bounded_read/semantic_bound.rs:127–:146. U + 2 distinguishes the second stale submission, and the one-entry aperture count matches its encoded node list. Checked tags 5 and 8 against crates/warp-core/src/echo_operation/action_record.rs:207–:210 and the tag 8 digest requirements against docs/architecture/one-admission-path.md:3281, :3449, and :3475. No timing, buffer, rate, or timeout thresholds changed. |
| Promoted files and scope | Executed local byte counts and hashes. All three verifier copies are 872,860 bytes and hash to 5b3f86e31a5f89690694967a3dc2ce1ab82f6179efae2d09626f5de56b918d3a, matching both READMEs, both manifests, the changelog prefix, and the xtask pin. The lowerer has no diff, is 824,880 bytes, and matches the documented 53994814… hash. Both manifest files hash to c5b100cc…, matching the raw manifest golden. The distinct 9ce7289c… provider closure digest is consistent across manifests and golden pins. Its canonical recomputation was inspected at crates/echo-wesley-gen/src/provider_package.rs:932, :1033, and :1573, but was not executed. Outside the verifier and W9 package, changes are promotion assets, identity pins, corpus expectations and documentation. No runtime implementation or wire version changed outside the verifier. |
| G4 provenance | Unavailable. The documented source SHA f1dbc1a68ebac67c99fed64d32501dfd36599bdd exists and contains the verifier source changes. The workflow shows two candidate builds and their comparison at .github/workflows/det-gates.yml:243–:289 and :308–:350. The run page could not be retrieved, and the tree supplied no raw candidate artifacts or job output for run 46752174563. Checked-in hashes establish local identity. The claim that both G4 candidates produced those bytes remains unverified. |
| Test and documentation standards | Inspected. The repository requires a focused executable witness. The applicable testing standard also requires recorded failure demonstrations for new tests and materially changed assertions. No calibration output was inspected. The documentation standard requires evidence for strong claims. The changelog’s ordering claim exceeds its public witness, and the reproducible-build claims remain subject to the G4 evidence gap above. |
| Execution boundary | Static inspection, Git, search, byte counts and SHA-256 only. Skipped compilation, Cargo tests, native execution, Wasm invocation and test calibration under the shared-cache restriction. No files, commits, pushes or GitHub posts were made. |
The response-limit regression and the two stale-evidence gaps require changes. The mandatory G4 provenance check also remains blocked on candidate evidence.
REQUEST CHANGES
…it fits The Info diagnostic that names the recomputed bound is emitted only when the response with it fits both max_diagnostic_count and max_total_response_bytes, so a request that was accepted before is still accepted: zero diagnostics allowed, or a byte budget sized for the response without it. W9 keeps its generous budgets, so u_agreement still reads the number. The stale part now anchors both stale records to the public evaluation basis captured before the first commit, and its comment and the changelog claim refusal precedence in the published outcome only; the no-call invariant is the internal stale_candidate_does_not_reach_evaluation. Agent-Session: 84c4f2c8-461c-47b5-85a3-6a0711d52495 Agent-Tool: claude-code
…80083 The advisory bound diagnostic is emitted only when it fits both response limits, which changes the verifier's bytes: 873,022 bytes, SHA-256 583f7bce. Both G4 candidate jobs, built from fd823b3, were byte-identical; the lowerer is unchanged. Identity pin, checked component and package copies, manifest, goldens and READMEs follow. Agent-Session: 84c4f2c8-461c-47b5-85a3-6a0711d52495 Agent-Tool: claude-code
|
Dispositions for the first council review (codex, at 09b7ffd), fixed at c380179:
The G4 provenance gap in the review is closed by the run ids above. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…ly, not as a diagnostic The public compiler treats any verifier diagnostic, even Info, as a rejection, so the advisory diagnostic broke the provider contract. Remove it and restore the component protocol, the promoted components, the package copies, manifests, goldens, identity pin and READMEs to main's. verify_reporting_bound is now the crate's one verification path (verify is it without the second value) and returns the bound the bounded-read judgment recomputed and compared with both carried fields. W9's u_agreement reads U from it and still asserts accept at U and refuse at U - 1. Agent-Session: 84c4f2c8-461c-47b5-85a3-6a0711d52495 Agent-Tool: claude-code
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bfc1975ff0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…96385 The verifier's judgment now also returns the bound it recomputed to native callers, so its component bytes differ from the previous promotion: 872,061 bytes, SHA-256 562f7eac. Both G4 candidate jobs, built from bfc1975, were byte-identical; the lowerer is unchanged. Identity pin, checked component and package copies, manifest, goldens and READMEs follow. Agent-Session: 84c4f2c8-461c-47b5-85a3-6a0711d52495 Agent-Tool: claude-code
|
Disposition of the host-contract failure at c380179: the public compiler treats any verifier diagnostic, even Info, as a rejection, so the advisory diagnostic is removed and the component protocol is as on main. The verifier crate's native API now exposes the bound instead: verify_reporting_bound is the one verification path (verify is it without the second value) and returns the bound the bounded-read judgment recomputed; u_agreement asserts it equals U and still asserts accept at U and refuse at U - 1. RED: with the shared function's returned bound changed by one, u_agreement failed (left 1048585, right 1048584). The refactor changes the verifier's bytes from main's (871,923 bytes) to 872,061 bytes, SHA-256 562f7eac4b3e06032b0f7d83370af405eae5ae4b7270fa7b26207dd7867acae4, promoted from det-gates run 46760796385 (both G4 candidates byte-identical). The earlier 583f7bce promotion and the advisory-fit change are obsolete. Run locally before pushing: the verifier tests, both W9 runs, the five host-contract test targets against the checked components, echo-wesley-gen and xtask tests. |
…ul verification A response-limit refusal made after the bound was recomputed still returned it. verify_reporting_bound now returns the bound only when the result is Ok. Agent-Session: 84c4f2c8-461c-47b5-85a3-6a0711d52495 Agent-Tool: claude-code
…71764 The verifier reports a bound only for a successful verification, which changes its component bytes: 872,231 bytes, SHA-256 876399a4. Both G4 candidate jobs, built from 80a02f4, were byte-identical; the lowerer is unchanged. Identity pin, checked component and package copies, manifest, goldens and READMEs follow. Agent-Session: 84c4f2c8-461c-47b5-85a3-6a0711d52495 Agent-Tool: claude-code
Footprint18 files, +440/-59 · Structural analysis unavailable: graft could not be resolved. Compositionpie showData
title Changed lines by file kind
"source" : 66
"test" : 367
"docs" : 54
"config" : 12
Files (18)docs
source
test
config
Figures computed from Before merge
After mergeNo landing steps are declared: After-merge steps are read from this repository's own Blast radiusExport-surface diff unavailable ( Exported symbols from 3 changed files in unanalysed language: 3 Open pull requests6 of 7 other open pull requests touch a file this change touches. 1 pull request's files could not be read. This change against its base: git merge-tree merges them cleanly.
3 more pull requests omitted to keep the comment under GitHub's 65536-character limit; the overlap result line carries every one.
Proposed merge order (4 waves)Wave 1 — #974 Wave 2 — #1190, #1193, #1199, #1202, after wave 1 Wave 3 — #1204, after wave 2
1 more wave omitted to keep the comment under GitHub's 65536-character limit; the overlap result line carries every one. 18 more conflicts omitted to keep the comment under GitHub's 65536-character limit; the overlap result line carries every one. Pull requests from |
|
Final head |
Strengthens three pieces of the Ambyte W9 conformance evidence (
w9_typed_read_conformance, #1056) so that none rests on an inference or an internal-only test. No oracle change.1. The verifier's own U
Before:
u_agreementshowed the verifier's agreement only by accept atUand refuse atU - 1, because the verifier exposed no number. The verifier's report carried no bound.Now: an accepted bounded-read result inside the bound's domain carries one Info diagnostic in the verifier's public result,
echo.verifier.bounded-read-bound, with the messagetariff=<tariff> units=<units>: the bound the verifier recomputed (rule C015 step 8) and found equal to both carried fields.u_agreementasserts it equals the specifiedU((READ_LOOKUP + READ_PER_BYTE * M) + COMPARISON + GUARD, from the tariff, not from code).Why a diagnostic and not a report field: the report's schema is closed and shared by every package kind (
echo-operation-package-verifier-report), and the frozen provider WIT result has no other field. A report key would change the CDDL, the generated corpus and the host-side schema check for all kinds. The diagnostic counts against the request's diagnostic and response-byte limits like any other; a graph read, or a program outside the domain that carries no bound, accepts with no diagnostic.Component bytes change (the diagnostic is new code in the verifier). The verifier is re-promoted: 872,860 bytes, SHA-256
5b3f86e31a5f89690694967a3dc2ce1ab82f6179efae2d09626f5de56b918d3a, from det-gates run 46752174563 (both G4 candidates byte-identical, built fromf1dbc1a6); the lowerer is unchanged. The approved identity inxtask, the checked component and its two package copies, the package manifest, the package goldens and the component READMEs are refreshed in the second commit.RED: the new crate test
accepted_result_carries_the_recomputed_boundfailed withleft: []before the change. In W9, with the diagnostic's number mutated tounits + 1,u_agreementfailed withleft: Accepted { recomputed: Some(("ambyte-tariff/2", 1048585)) } right: ... 1048584; restored.2. Public stale ordering
Before: the public part showed
RefusedStale; "no evaluation, no coverage" rested on the internal teststale_candidate_does_not_reach_evaluation. No public API counts evaluator calls, key coverage or reservations for a submission.Now: the stale part submits a second stale read whose application input addresses a node outside its declared aperture (a read that would stop as
ReadOutsideApertureif evaluated). Throughtick_onceand the public outcome accessor it asserts the published arm isRefusedStale, naming that invocation and the same old basis as the first stale read, with no observation bytes and no published observation. A read that reached its evaluator could only end as tag 8. What stays by type only: theRefusedStalearm holds just the two identities, so it carries no coverage; that is not a counter.RED: building that read on the current basis (not stale) made the part fail with
EchoOutcome: ReadOutsideAperture { ... }. Disabling the stale check in production made the part fail earlier, at the first committed-peer assertion.3. Public ReadOutsideAperture
New part
read_outside_aperture: the grant authorizes exactly one node, the invocation declares that aperture (admission accepts it), and the application input addresses another node. Throughtick_onceit asserts the published tag 8 record: the invocation identity, the stopped address, the input digest and the aperture digest (recomputed in the test from the submitted bytes by the recipes of C016 Table 69 and N8), anAttemptcoordinate on the writer head, no observation, no commit (parent and frontier equal an untouched host). The oracle does not model this stop (C007: a host obstruction, not an observation or a coverage refusal), so nothing is compared with it and no oracle outcome is invented.RED: with the read inside its aperture, the part failed with
EchoOutcome: Committed(...); with the expected aperture digest built over the wrong node it failed with theC016 N8digest assertion.Checks
bash scripts/verify-ambyte-w9-conformance.sh:W9 frontier assertions remaining: 0,W9 conformance: all parts pass.bash scripts/ambyte-w9-low-u-mutation.sh:W9 low-U mutation run: ChargeExceedsBound reported by the real tick (mutation evidence, not conformance).cargo test -p echo-edict-provider-verifier,cargo test --locked -p echo-wesley-gen,cargo test --locked -p xtask,scripts/ban-nondeterminism.sh.Summary by CodeRabbit