feat(release): compose a candidate's evidence with its lane-scoped retry #2472
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
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 #2472"
general
weight: 0.35
endaye
Summary
Item 8 of the "Next" plan in #2422, PR 2 of 2 (PR 1: #2471 added the
retryrequest). A candidate batch that lost lanes to the platform can now be released through its one lane-scoped retry instead of a new cut and a full 4–5 hour batch. Decision:docs/prd/decisions/2026-10-22-candidate-lane-retry.md(Owner confirmed 2026-10-22); plan:docs/plans/2026-10-22-lmdj-candidate-lane-retry.md.The invariants kept: attempt 1 is the only admissible attempt everywhere; every suite's passing evidence comes from exactly one run; a candidate's
failureconclusion is accepted only through lanes proven environmental on its own jobs API; a lane that failed on a test is never covered.Change
tools/release/batch_reference.py:lmdj.ci-batch-release-reference.v2is the v1 record of the candidate run plus exactly oneretriesrecord: the retry's frozen request (kindretry, focused or full selection,retry_ofnaming the candidate with a closed environmental proof per retried suite), its executor control/event, digests andexecutor_run_id. v1 parses unchanged;parse_referenceis shared by the ledger model, the intent spec, the consumer and the carrier.tools/release/batch_evidence.py:_verifyis split into_verify_record(one run's complete proof, with the status the reference claims for it) and_compose: the retry covers exactly the suites the candidate's verdict did not pass; each such suite is a debt outcome, orfailedwith itsfailuresnaming exactly the proof's jobs and each job's conclusion on the candidate run's jobs APItimed_out/cancelledand equal to the proof; the retry verdict passes every retried suite. A composite's candidate run must have concludedfailureand its verdictfailed; a plain reference still needs a passed one. Published mode reads both runs. Retention covers all six artifacts.tools/release/verification.py:retry_result(events, witness, original_id)finds the unique terminal retry result through the journal's frozen request (two are a conflict, another candidate's retry never composes);_result_foradmits a non-passed candidate only with a terminal passed retry over exactly its non-passed suites;release_referencecomposes the v2 document from retained facts (_recordper run); the evidence reference string gains;retry:<run>.tools/release/verified_recheck.pyandtools/release/carriers.py: the reference regex accepts the optional;retry:<run>; the recheck re-verifies the candidate run as the completed failed run it was composed over and the retry run as a completed passed attempt 1, each drift a conflict.tools/release/audit.py: the permanent marker'sci.conclusionis the candidate executor's actual conclusion (failurefor a composite);preparealready records it.scripts/ci/batch_verdict.py: a retry selection is canonical but not closed over the dependency graph. Found while fixturing: without this, a retry of a suite with dependents (for examplecore_asan) could never produce a valid verdict, becausebuilddemanded the closure; the closure rule exists for changes, and a retry re-runs lanes.docs/governance/version-management.md§12.1 (the retry short form, the v2 composition rule and what the consumer checks), the pipeline design §3 sentence, the lmdj-release skill (composed source in the evidence precondition, the retry short form beside the candidate dispatch, recovery wording); the plan records PR 2's files and tests.compose_retry(a stress lane the platform timed out, a retry executed by run 104 admitted through the real reducer) with ten composite cases; carrier (four), recheck (three), ledger model (one with six refusals), enrollment (one), binding (one through plan, marker and audit), verdict (one), skill pins.Related Issue
Related issue: #2422
Premise refresh (issue-done §0)
Base:
origin/mainat54cca7fc449e79cd4fe10302d3696dd0a45552b2(#2471). Verified on the base:verification._candidate_resultsselects candidate-kind results only and_result_forfails any non-passed outcome;batch_evidence._verifyrequires one passed full-selection run;parse_referenceknows v1 only;verified_recheckandcarriersparsebatch-result:<run>:<witness>only;auditexpects"conclusion": "success";batch_verdict.buildcloses every selection. The design doc and version policy still said "不接受 Re-run jobs" and "exactly one passed source" without the composed form. Still outstanding; delivered here. No release request is active (every journal request is retired; no driver process).Verification
- consumer
_composeskipped: the test-failure, exact-jobs and coverage cases fail;- carrier
retry_resultreturns None: the composition journey fails;- recheck ignores the retry run: all three drift subtests fail;
- audit expects
successfor a composite: the binding journey fails;- verdict closes retry selections again: the verdict closure test errors;
- parser skips
_parse_retry: four of the ledger refusals fail.- consumer skips the cross-run source check: the changed-
ci.ymlretry test fails; carrier ignores the frozen retry selection: the partial-selection test fails.Restored after each: all suites OK.
Commands run on the committed head:
Complete
tests/build/release_*_test.pyrun (all 80 modules, one at a time, on0da743ain a detached worktree; the run started on2914e45was stopped at six modules because the review fix changed consumer, carrier and audit code the suite reads): 80 PASS, 0 FAIL.PR Review
Head SHA:
0da743a114cf4930f54bf6af934903a0bab884b0. Review of2914e45raised five findings: proof not re-validated against the verdict (answered:_composecompares outcome, failing jobs and API conclusions; an explicit test now injects a contradicting proof); retry control not bound to the candidate's (fixed in0da743a: the candidate's and retry's frozen controls must carry identical execution workflow sources); carrier accepts a partial retry (fixed: the frozen request selection must equal the non-passed suites); recheck does not bind the retry control (answered: the consumer proves it and the verified digest hashes both controls; the recheck is an immutability check of both runs); audit keys the conclusion off key presence (fixed: keyed off the v2 schema). All threads resolved. Current-head review evidence is checked withscripts/ci/review_wait.pybefore merge.CI Scope
Expected mode: full
Expected selected lanes: ci_contract core_asan core_coverage core_macos core_ubuntu creator deploy_contract docs_static package portal web_runtime_host web_runtime_lab web_toolchain
Expected skipped lanes:
ci:fullrequired: noReason:
scripts/ci/batch_verdict.pyis a central CI control-plane path (full rule); the rest is release tooling, its tests, governance documents and the skill.Batch-only Lanes
core_asan core_coverage core_macos core_ubuntu creator deploy_contract package web_runtime_host web_runtime_lab web_toolchain: not run locally; verified by the next incremental main batch. The change touches release evidence verification and one verdict rule for the
retrykind; no product code or lane command changes. Thedeploy_contractlane's release suite is run locally one module at a time (see Verification).Version Management
Version impact: none
Reason: the batch release reference document gains a v2 schema that the intent ledger and plan marker embed; it is not a registered
contracts/Contract, v1 documents stay readable and no Product, Module, Contract or Provider version changes.Documentation Impact
Documentation impact: none
Affected portal pages:
Reason: governance and design documents under
docs/and a.agentsskill; no page underapps/docs-site/docs/changes.Pitfall Impact
Pitfall impact: none — reason: the composition is a tool capability with gates (
gate:tests/build/release_batch_evidence_test.py,gate:tests/build/release_verification_carrier_test.py); the operator rule (send aretry, never list suites) is recorded in the lmdj-release skill and in the open entrymanual-batch-dispatch-short-request-formatby #2471.Merge Danger
Door: two-way
Blast Radius: release evidence verification; a plain v1 reference and a fully passed candidate behave exactly as before, and a composite is admissible only through the proven environmental lanes.
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