Repository navigation
fix(release): reuse changelog evidence across advancing main admission tooling - #179193
Conversation
…n tooling A main-dispatched qualification admission always runs at the main tip, so a changelog-only descendant is always admitted by a newer P. The split-changelog reuse identity compared P's exact SHA, which made candidate-owned changelog reuse unreachable in practice. Mask P's SHA in the changelog-descendant policy identity only for main admissions, and require the requested P to be a verified main descendant of the selected P. Coverage, baselines, inputs and source digests stay exact; protected-tag admissions keep exact P.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesAllow changelog-only release descendants to reuse qualification evidence when their main admission tooling has advanced along verified ancestry. Example: Reuse candidate 034b540 qualification for changelog-only descendant 17a066f after admission tooling advances from b6bf52d to ed20932.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this maintainer-authored PR addresses a current release-evidence reuse failure, and no discrete introduced correctness defect was found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe release-evidence verifier receives retained qualification records and a current candidate admission, authenticates their identities and coverage, and returns validated evidence for release planning and artifact consumers. flowchart TD
A[Current candidate admission] --> C[Release evidence verifier]
B[Retained qualification evidence] --> C
D[GitHub identity and ancestry checks] --> C
C --> E[Validated reuse selection]
E --> F[Release plan and artifact consumers]
Technical reviewBest possible solution: Keep the focused repair in the existing verifier, preserving exact-target and protected-tag identity checks alongside authenticated forward-main ancestry. Do we have a high-confidence way to reproduce the issue? Source confirms that advancing admission P changes the exact identity retained by current main; the author supplies a red/green verifier regression and identifies affected FRV runs, but this review executed no target code. Is this the best way to solve the issue? The patch repairs the comparison at its existing owner, reuses the established ancestry client, and adds distinct acceptance and divergence cases without introducing parallel state or policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a6b339e1c4d6. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: No concrete authority bypass was found, but cross-admission acceptance requires final-effect authorization evidence. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +98, Other +31. Total +129 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 21, 2026, 3:39 AM ET / 07:39 UTC. |
|
Landing for the active 2026.10.6 release (release-tooling PR; only red checks are the pre-existing On the review's authority concern: this change only relaxes the P SHA equality inside the changelog-descendant policy identity. The requested admission is still fully authenticated by |
|
Real-run proof: after this merged, 2026.10.6 FRV https://github.com/openclaw/openclaw/actions/runs/39566644573 (changelog-only descendant |
…n tooling (openclaw#179193) * fix(release): reuse changelog evidence across advancing main admission tooling A main-dispatched qualification admission always runs at the main tip, so a changelog-only descendant is always admitted by a newer P. The split-changelog reuse identity compared P's exact SHA, which made candidate-owned changelog reuse unreachable in practice. Mask P's SHA in the changelog-descendant policy identity only for main admissions, and require the requested P to be a verified main descendant of the selected P. Coverage, baselines, inputs and source digests stay exact; protected-tag admissions keep exact P. * test(release): fail unexpected lineage comparisons directly
Problem
split-changelog-release-v1evidence reuse never applies to candidate-owned (Q=C) Full Release Validation runs, which is every release FRV dispatched throughscripts/full-release-validation-at-sha.mjs.The qualification admission (P) is dispatched on the
mainref, so it always executes at the currentmaintip; the helper even logsAdmission P advanced with main: <old> -> <new>when main moves.qualificationReusePolicyIdentitycomparedpublisher.workflowShaexactly, so a changelog-only descendant (necessarily admitted later, by a newer P) was always rejected withQualification reuse requires exact admitted C/Q/P, coverage and inputs.Observed on 2026.10.6: green FRV https://github.com/openclaw/openclaw/actions/runs/39533087436 (candidate
034b54080e6, Pb6bf52d83e8) could not be reused by FRV https://github.com/openclaw/openclaw/actions/runs/39557142899 for changelog-only descendant17a066f3eca(P advanced toed2093257987). Diffing the two admission records showed P as the only identity difference after the existing candidate masking; coverage, baseline policy, lane inputs, and both source digests were identical.Solution
qualificationReusePolicyIdentity(changelog-descendant path only), maskpublisher.workflowShawhen the admission was published fromrefs/heads/main.isTrustedMainDescendantAdmission: the requested P must equal the selected P, or both must berefs/heads/mainadmissions with the requested P a verified strict descendant (compareCommitLineagestatusahead, merge base = selected P).workflowSourceDigest,policySourceDigest, and the existingrequestedAdmission.producer.workflowSha === verifier.sourceShacheck still apply.Impact
Release-tooling only (
scripts/release-ci-summary.mjsverifier, runs from trusted P onmain). Changelog-only release fixes stop forcing a full multi-hour FRV. No candidate/product code changes.Evidence
test/scripts/release-ci-summary.qualification.test.ts: newer main P descendant is accepted; diverged main P is rejected. The accept case fails onmainwithout this change (red) and passes with it (green).pnpm test test/scripts/release-ci-summary.qualification.test.ts test/scripts/release-qualification-admission.test.ts --maxWorkers=1: 54/54 passed, 2.6s wall.publisherShaoption on the admission fixture andprotectedTagoption on the candidate publication fixture (defaults unchanged).Pre-existing main failure (not caused by this PR)
check-test-types-core-2also reportstest/scripts/ci-changed-node-test-plan.test.ts(813,33)and(891,33):Argument of type 'CompactNodeTestShard' is not assignable to parameter of type 'ChangedNodeTestShard'. Reproduced on a cleanmaincheckout at54db47573b4withnode scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.tooling.json; this PR does not touch that file. This PR's own type error (release-ci-summary.qualification.test.ts:244) is fixed in0cd3fa42ab2.