Repository navigation
fix(020): anchor runtime batch budgets at one dispatch instant - #170
Conversation
AI review (no-findings)Reviewing the three changed files for bugs, security issues, and inconsistencies. budget.rs
client.rs
specs/020-remote-protocol-refinements/spec.md The normative addition (section 3.3 text) accurately describes what the code now does: one anchor instant per batch dispatch, equal budgets share a deadline, differing budgets keep individual deadlines. The implementation record entry correctly labels this as a bug fix and notes the paused-clock regression test. I cannot independently verify the owner authorization claim, but that enforcement is outside this review. No defects found. {"head": "ee422505c07e5eee265bb05fe69332fb0ff8416e", "verdict": "no-findings", "findings": []}Subject: f66e2cb...ee42250, diff digest b95425d4bdb19bac755c90fbee799b57cd57f3548a03370e00eae3f4ac4e6c0a, 1 call(s). An AI comment is not an approval. |
ee42250 to
d94ddd6
Compare
AI review (findings)Code review: budget anchoring fix The runtime fix is correct and well-tested. The new The Spec amendment mechanism The contract (governance context) states:
The plain reading is: when normative text changes, a new spec carries {"head": "d94ddd60269ca7996d7584fb7fbbe37223497c19", "verdict": "findings", "findings": [{"path": "specs/020-remote-protocol-refinements/spec.md", "line": 199, "summary": "Normative text is added directly to an existing approved spec without a new amending spec carrying `amends: 020` in its frontmatter, which contradicts the contract's documented amendment convention."}]}Subject: 563fa42...d94ddd6, diff digest b95425d4bdb19bac755c90fbee799b57cd57f3548a03370e00eae3f4ac4e6c0a, 1 call(s). An AI comment is not an approval. |
d94ddd6 to
9ebf3de
Compare
AI review (no-findings)The PR fixes a batch deadline race in budget.rs: client.rs: spec.md: The addition is entirely within the No bugs, security problems, or governance inconsistencies found. {"head": "9ebf3de2e2d508739f0ee1855c856185495fab3a", "verdict": "no-findings", "findings": []}Subject: 563fa42...9ebf3de, diff digest 9dca1c72d43eaeda9fb306520ce35de60c4147dcd97a8453adb6ff80f3ac000b, 1 call(s). An AI comment is not an approval. |
Adds the held-out ledger, baseline records and reproducibility checks from spec 029 sections 3.7 to 3.9. The ledger verifies its hash chain and bounded entries; baseline creation reproduces and checks the supplied repeat report; reproducibility reports exceedances and unknown evidence explicitly. Tests cover ledger counts and tampering, bounds and round trips, baseline bindings, exact band boundaries and unknown evidence. This is the first part of increment 4. Section 3.10's diff document and rendering are still to follow before candidate comparison and selection gates. Spec 029 remains in progress. Brier per-case measures remain absent and their interval unknown pending a concrete compatibility decision on D-029-1. Validation: make gate and pinned spec-spine coupling pass. AI review reports no findings on 50e8d04. CI code hit the existing runtime_batch deadline race, addressed separately in #170; rebase and fresh checks follow that merge. Local code validation is queued behind the current shared-target run; pushed before it completes at the owner's request. Merge order: after #168 and the runtime batch race fix #170. Auto-merge stays off pending that order, a current-head no-findings AI review and required checks.
Runtime-planned batch members with equal remaining budgets previously received slightly different deadlines because each member started its budget during preparation. When the earliest deadline ended the shared transport, a later member could receive a transient transport failure while its siblings expired. This is the runtime_batch CI failure seen on #169.
Implements the owner-authorized fix under spec 020's existing dispatch-budget and no-replenishment requirements: capture one monotonic instant at batch entry and derive all member deadlines from it. Preparation consumes the budget, and distinct remaining budgets stay distinct. A paused-clock regression covers preparation time and expiry; the existing batch-versus-independent loopback test is unchanged.
Validation: make gate, cargo fmt and git diff --check pass. Hosted code and binding checks pass, including the new paused-clock regression and the unchanged runtime_batch differential test. The rebased review identified an in-place normative amendment. The approved normative text is now unchanged; the implementation record explains how this fix enforces the existing requirements. AI review reports no findings on current head 9ebf3de. CI is running; auto-merge is enabled. Pushed before local workspace tests at the owner's request.
Rebased onto merged #168. Rebase #169 onto this fix after it merges. Requires current-head no-findings AI review and green CI.