Repository navigation
fix(release): verify focused candidate checkout - #129201
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 6:09 AM ET / 10:09 UTC. ClawSweeper reviewWhat this changesThe PR stages the policy-pinned historical candidate in a temporary detached Git worktree before focused-evidence verification, and ignores unselected historical validation-plan children. Merge readinessKeep open for maintainer release review. The exact head adds a coherent, policy-bound candidate staging path and the follow-up narrows historical-plan validation to selected children; no discrete patch defect was found in the inspected source, but exact-head CI is still running. Priority: P2 Review scores
Verification
How this fits togetherRelease workflows validate a trusted historical candidate and focused-evidence artifact before Docker recovery publication. The helper bridges trusted policy to the existing validator while leaving the attestation and publication gates in place. flowchart LR
A[Release recovery workflow] --> B[Trusted candidate policy]
B --> C[Candidate checkout helper]
C --> D[Temporary detached worktree]
A --> E[Focused evidence artifact]
D --> F[Evidence validator]
E --> F
F --> G[Docker publication gates]
Decision needed
Why: This PR changes a credential-bearing release recovery gate and can unblock publication of historical beta images; release inclusion remains an owner decision. Before merge
Agent review detailsSecurityNone. PR surfaceTests +377, Config +9, Other +109. Total +495 across 5 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Retain one policy-bound staging helper, preserve attestation-before-validation ordering, and use the validated non-publishing recovery path before enabling Docker publication. Do we have a high-confidence way to reproduce the issue? Yes, from source at medium confidence: the previous direct validator call used the release checkout while policy pins a different candidate; the supplied PR discussion also records an after-fix historical-artifact run. Is this the best way to solve the issue? Yes: a single trusted helper owns exact-SHA fetch, no-checkout staging, validator invocation, and cleanup, avoiding separate workflow-specific candidate handling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 83e7fa19552f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
ClawSweeper follow-up for exact head
Focused proof: Production/tooling LOC: +127/-9 (net +118); tests: +378/-1. The follow-up itself adds five net production lines to honor the existing execution-plan producer contract. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready evidence for exact head
|
|
Merged via squash.
|
* fix(release): verify focused candidate checkout * fix(release): ignore unselected historical validation children
What Problem This Solves
The Docker-only recovery for
v2026.8.1-beta.3now accepts the original focused-evidence producer identity, but verification still runs against the release-tag checkout. That evidence intentionally describes a separate historical candidate pinned by trusted policy, so recovery fails before Docker publication with a candidate-checkout mismatch.Why This Change Was Made
Add one trusted helper that reads the fixed policy's candidate SHA, stages that exact commit as a temporary detached no-checkout worktree, invokes the existing focused-evidence verifier there, and always removes/prunes the worktree. All existing producer-run, protected-tag, attestation, npm preflight, approval, and Docker registry gates remain unchanged.
User Impact
Docker-only recovery can verify the historical focused candidate without confusing it with the independently validated release tag. This unblocks publication of the missing
2026.8.1-beta.3default, slim, and browser images.Evidence
node scripts/run-vitest.mjs test/scripts/authorized-beta-focused-evidence.test.ts test/scripts/release-no-push-workflow.test.ts test/scripts/docker-release-policy.test.ts— 154 passednode scripts/check-changed.mjs -- .github/workflows/openclaw-release-publish.yml .github/workflows/docker-release.yml scripts/verify-authorized-beta-focused-candidate.mjs test/scripts/authorized-beta-focused-evidence.test.ts— passedactionlint .github/workflows/openclaw-release-publish.yml .github/workflows/docker-release.yml— passednode --check scripts/verify-authorized-beta-focused-candidate.mjs— passedProduction/tooling LOC: +119/-6 (net +113) | Tests: +292/-1. The helper is the single canonical owner for trusted candidate staging, exact-SHA fetch, verifier invocation, and cleanup across all three release gates.