fix(release): recheck verified steps through their immutable identity on resume #2446
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2446"
general
weight: 0.35
endaye
Summary
Item 3 of the "now" plan in #2422. Every
resumere-drove each journal-verified step through its complete far-side observation: the candidate source proof, the batch verdict bundle and controller attestations, every Draft asset download with signature checks, and each reviewed PR's full inventory. During 2.0.122.0 that cost 25–30 minutes per round and roughly 10 hours of the release, re-proving facts that cannot change.Change
ReleaseDriverrechecks a transition the journal records asverifiedthrough the backend'srecheck; a begun but unverified transition is still observed in full. A recheck answer is held to the observation rules:verifiedmust carry evidence, and evidence that differs from the record isevidence-conflict.Nonekeeps the step's full observation; an exception isevidence-unknownwith its sanitized cause in the failure note.ReleaseBackendtakes an optionalrecheck=and refuses an object that is not one.tools/release/verified_recheck.py:VerifiedRecheckreads only immutable identities and fails closed on drift.-
candidate: the retained transition state still hashes to the recorded evidence; both squash merges (cut, witness) are still their PR's merge commit and reachable canonical history.-
verification: the executor run is still a completed, passed first attempt of the policy-pinned batch workflow on canonicalmain, for the witness the candidate recorded; once the reviewed intent record exists it must bind the same batch reference digest, run and target.-
intent/changelog/promotion/published_record: the PR is still merged from the retained reviewed head, its merge commit is canonical history, and the gate digest recomputed from the retained review receipt and the live merge commit equals the record.-
draft: the Release under the tag still carries the prepared plan digest, the recorded numeric id (draft or published) and exactly the plan's asset inventory (name, size,uploaded).-
publication: the dispatched Release is published, not a draft, with the dispatched plan and the plan's asset inventory.-
runtime/creator: the recorded deployment run is still a completed, passed, dispatched first attempt of the retained dispatch's pinned workflow id, with its head on canonicalmain.-
prepared,tag,changelog_site,finalanswerNone: their full observation is already a few local reads or two route fetches.entry_composition.compose_recheck/cli.release_recheckbind it to the request's own operation journals;runandresumeenroll it on the backend.lmdj-releaseskill: theresumeparagraph now states what a verified step is rechecked against and that drift still fails closed.Nothing here relaxes a gate: a step reaches
verifiedonly through its carrier's full observation, #2318's first-attempt and zero-drift rules are unchanged (a re-run executor is aconflict), and no remote state is written.Related Issue
Related issue: #2422
Premise refresh (issue-done §0)
Base:
origin/mainat54439f207926841b9411c805d70252c5df66b33f. At that revisionorchestration_driver._advanceobserved every verified transition through the full carrierobserve; no recheck path existed (grep -rn recheck tools/releasefound none). Successor PRs #2431 and #2433 changed failure notes and Draft asset verification only. The premise is still outstanding and is delivered here.Verification
New tests, each fixing one fact:
release_orchestration_driver_test(6): a verified transition is rechecked and not re-observed; aNoneanswer keeps the full observation; a begun transition is observed in full; aconflictanswer stops atevidence-conflictwith its cause in the failure note; differing evidence is not adopted; a raising or invalid recheck isevidence-unknown/ refused.release_verified_recheck_test(23): every covered step reverifies from identity reads only; cheap steps answerNone; a moved merge, a non-canonical merge commit, a missing PR or Release, a drifted local record, a Release that dropped the plan, a still-draft publication, a re-run/failed/foreign run, a run of another workflow id or off main, a PR merged from another head, an asset inventory that drifted from the plan, an intent that binds another batch, a foreign witness and a reference of another shape all fail closed; private canonical JSON reads; backend enrollment.release_cli_orchestration_test(2):runandresumeenroll the composed recheck on the backend; the entry composes it for the request's operations directory.Mutation proofs (file restored with a fresh mtime and
__pycache__cleared, exit read each time):_candidatewithout the moved-merge comparison:test_a_moved_pull_request_merge_is_a_conflictfails for both PRs; restored: 18 pass.cliwithoutrecheck=:test_run_and_resume_enroll_the_composed_recheck_on_the_backendfails; restored: 32 pass.workflow_idbinding: 14 cases across three tests fail; restored: 23 pass.Commands run on the committed head:
Not exercised: a live
resumeagainst a real request (none is active). The ≤ 5 minute target follows from the reads each step now makes (one PR read per reviewed PR, one run read per batch/deploy run, one Release read) plus the entry's own fetch and composition.PR Review
Head SHA:
c6e267cfed88204bea398424f8199487b7d05d72. The review of9b554abraised five findings; three were fixed inc6e267c(asset inventory, run workflow id + head, reviewed head) and two answered with reasoning in their threads (verdict-bundle re-read is the full proof this change removes; exceptions map toevidence-unknownwith the cause in the failure note, as_observedoes). Current-head review evidence is re-checked withscripts/ci/review_wait.pybefore merge.CI Scope
Expected mode: focused
Expected selected lanes: ci_contract deploy_contract docs_static
Expected skipped lanes: core_asan core_coverage core_macos core_ubuntu creator package portal web_runtime_host web_runtime_lab web_toolchain
ci:fullrequired: noReason: release tooling, its Python tests and the release skill only.
Version Management
Version impact: none
Reason: release tooling only; no Module, Host, Contract or Product identity changes.
Documentation Impact
Documentation impact: none
Affected portal pages:
Reason: release-tool behaviour and the
.agentsskill; no page underapps/docs-site/docs/changes.Pitfall Impact
Pitfall impact: none — reason: tooling defect whose regression tests express the invariant (a verified step is rechecked through immutable identity, drift fails closed); no process knowledge outside the code.
Merge Danger
Door: two-way
Blast Radius:
resumeof a request with verified steps. The recheck performs no remote write; a falseverifiedwould require the retained private journal, the PR merge commit, the run and the Release to all agree with the record.Release Impact
Release impact: none
Candidate tag: none
Profile: none
Channel: none
Intent disposition: none
Release assets: none
Release gates: none
Reason: no release is active; tags, Releases and the ledger are untouched.
Transition authority
Authorized transitions: push | PR | merge (standing Task authorization in
CLAUDE.md; cleanup not requested)No tag, Release, deploy, publication, or Channel promotion is implied.
🤖 Generated with Claude Code