Skip to content

fix(release): verify focused candidate checkout - #129201

Merged
steipete merged 2 commits into
mainfrom
steipete/beta-docker-candidate-verification
Aug 25, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/beta-docker-candidate-verification

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Docker-only recovery for v2026.8.1-beta.3 now 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.3 default, 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 passed
  • node 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 — passed
  • actionlint .github/workflows/openclaw-release-publish.yml .github/workflows/docker-release.yml — passed
  • node --check scripts/verify-authorized-beta-focused-candidate.mjs — passed
  • Fresh Codex autoreview — no accepted/actionable findings

Production/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.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 25, 2026 09:28
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M maintainer Maintainer-authored PR labels Aug 25, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 6:09 AM ET / 10:09 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 4 items remain

Keep 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
Reviewed head: f418f6142926f1238188d262ae282a87844a1382
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has focused contract coverage and a documented recovery trace, with routine exact-head CI still pending.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored release-automation PR is exempt from the external-contributor proof gate; its follow-up comment nevertheless records an isolated after-fix historical artifact trace.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored release-automation PR is exempt from the external-contributor proof gate; its follow-up comment nevertheless records an isolated after-fix historical artifact trace.
Evidence reviewed 6 items Candidate staging owner: The helper validates the policy schema and exact candidate SHA, fetches only that SHA when absent, creates a detached no-checkout worktree, invokes the validator with that root, and removes/prunes it in finally blocks.
Selected-child contract: The full-release plan producer normalizes selected as a boolean and records unselected children with empty run IDs; the updated validator therefore reads identities only for selected children and still verifies every expected selected child.
Workflow callers: Both Docker recovery and the release-publish workflow run attestation verification before invoking the helper, and pass trusted validator/policy paths from their release harness.
Findings None None.
Security None None.

How this fits together

Release 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]
Loading

Decision needed

Question Recommendation
Should the release owner proceed with the historical beta Docker recovery once exact-head CI is green? Proceed after exact-head validation: Accept the recorded non-publishing recovery evidence once required checks are green.

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

  • Resolve merge risk (P1) - This changes release automation immediately before Docker publication; merge only after the exact-head required checks finish green and the release owner accepts the recorded non-publishing recovery evidence.
  • Resolve merge risk (P1) - The repair adds net production/tooling code for the worktree lifecycle; it is justified by centralizing three workflow call sites, but should remain the only candidate-staging path.
  • Complete next step (P2) - This maintainer-labeled release recovery change needs exact-head CI completion and release-owner inclusion confirmation, not an automated repair.
Agent review details

Security

None.

PR surface

Tests +377, Config +9, Other +109. Total +495 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 378 1 +377
Docs 0 0 0 0
Config 2 15 6 +9
Generated 0 0 0 0
Other 2 112 3 +109
Total 5 505 10 +495

Review metrics

Metric Value Why it matters
Production versus test LOC production/tooling +118 net, tests +377 net The production increase is a single candidate-staging owner shared by release gates, with focused lifecycle and workflow coverage.

Stored data model

Persistent data-model change detected: serialized state: scripts/verify-authorized-beta-focused-candidate.mjs, serialized state: test/scripts/authorized-beta-focused-evidence.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Await exact-head release validation (recommended)
    Merge only after required checks are green and the recorded non-publishing candidate recovery remains the approved release path.
  2. Pause the recovery
    Hold this release-automation change if the release owner does not intend to publish the historical beta images now.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Require exact-head green CI before merge; preserve the approved redacted non-publishing recovery trace in the PR.

Technical review

Best 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.

Labels

Label justifications:

  • P2: The change is a bounded release-recovery automation repair rather than a normal agent-runtime outage.
  • merge-risk: 🚨 automation: The PR changes GitHub Actions verification immediately before Docker publication.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored release-automation PR is exempt from the external-contributor proof gate; its follow-up comment nevertheless records an isolated after-fix historical artifact trace.

Evidence

What I checked:

  • Candidate staging owner: The helper validates the policy schema and exact candidate SHA, fetches only that SHA when absent, creates a detached no-checkout worktree, invokes the validator with that root, and removes/prunes it in finally blocks. (scripts/verify-authorized-beta-focused-candidate.mjs:44, f418f6142926)
  • Selected-child contract: The full-release plan producer normalizes selected as a boolean and records unselected children with empty run IDs; the updated validator therefore reads identities only for selected children and still verifies every expected selected child. (scripts/full-release-validation-policy.mjs:165, f418f6142926)
  • Workflow callers: Both Docker recovery and the release-publish workflow run attestation verification before invoking the helper, and pass trusted validator/policy paths from their release harness. (.github/workflows/openclaw-release-publish.yml:801, f418f6142926)
  • Regression coverage: Focused tests cover divergent release checkout staging, exact-SHA fetching, candidate-root override rejection, cleanup on validator failure, unselected historical children, and all three workflow call sites. (test/scripts/authorized-beta-focused-evidence.test.ts:437, f418f6142926)
  • History and ownership: History identifies Peter Steinberger as the author of the exact-head follow-up and prior focused-evidence lineage work; Vincent Koc introduced the focused-beta registration path in commit d302c58c6e9b069d84357074a71e0f65b001cfa. (scripts/validate-authorized-beta-focused-evidence.mts:352, f418f6142926)
  • Current-main comparison gap: The review checkout is a partial clone whose required base/current-main blobs could not be materialized because its promisor remote could not resolve; no current-main equivalence or release inclusion is claimed. (f418f6142926)

Likely related people:

  • steipete: Authored the exact-head validator repair and the preceding focused-evidence lineage commit. (role: recent release-automation contributor; confidence: high; commits: f418f6142926, afa89f03ee88; files: scripts/verify-authorized-beta-focused-candidate.mjs, scripts/validate-authorized-beta-focused-evidence.mts, .github/workflows/openclaw-release-publish.yml)
  • Vincent Koc: Introduced the focused-beta registration path in the release-workflow history. (role: adjacent feature contributor; confidence: medium; commits: d302c58c6e9b; files: scripts/validate-authorized-beta-focused-evidence.mts, .github/workflows/docker-release.yml)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for required exact-head checks to complete green.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-25T09:35:14.181Z sha b9e0fcb :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

ClawSweeper follow-up for exact head f418f6142926f1238188d262ae282a87844a1382:

  • The published ClawSweeper review rated the original patch B / platinum hermit, with no actionable findings, and requested a real non-publishing historical-candidate recovery trace before publication.
  • That trace reproduced an additional real blocker: the historical Full Release Validation artifact includes an intentionally unselected npmTelegram child with an empty run ID, while the focused-evidence validator incorrectly required run IDs from every child.
  • Commit f418f61 repairs the validator at its ownership boundary by validating run identities only for selected historical children. The new regression was confirmed failing before the fix and passing afterward.
  • The actual producer artifact from Authorized Beta Focused Validation run 32675404534 and the authentic historical execution plan from Full Release Validation run 32644377679 now pass the existing validator together in an isolated repository. No Docker image was published.
authorized beta focused evidence verified for v2026.8.1-beta.3 at 3fbe94065c2b94f4c08acb6742a69938bf408d94

Focused proof:

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
155 passed across two Vitest shards

node scripts/check-changed.mjs -- .github/workflows/openclaw-release-publish.yml .github/workflows/docker-release.yml scripts/verify-authorized-beta-focused-candidate.mjs scripts/validate-authorized-beta-focused-evidence.mts test/scripts/authorized-beta-focused-evidence.test.ts
passed, including script and root-test typechecks, lint, formatting, and guards

actionlint .github/workflows/openclaw-release-publish.yml .github/workflows/docker-release.yml
passed

Fresh Codex autoreview: no accepted/actionable findings

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

@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready evidence for exact head f418f6142926f1238188d262ae282a87844a1382:

  • CI run 32835178561 completed success on this exact head; required openclaw/ci-gate is SUCCESS.
  • Current-head ClawSweeper review: B / platinum hermit (4/6), zero findings, zero security concerns. Its sole current Rank-up move, waiting for exact-head checks to complete green, is now satisfied.
  • The earlier Rank-up move was satisfied by the authentic, non-publishing recovery trace documented above: historical producer run 32675404534 and Full Release Validation run 32644377679 verified candidate 3fbe94065c2b94f4c08acb6742a69938bf408d94.
  • Focused validation: 155 passing tests, passing changed-file gate and workflow lint, clean fresh Codex autoreview, and a red-before/green-after regression for the skipped historical validation child.
  • Release-owner inclusion and landing are explicitly authorized by the PR author and verified OpenClaw organization owner @steipete; Docker publication remains a separate parent-owned action.
  • Repository-native exact-head review artifacts validate as READY FOR /prepare-pr with zero findings.

@steipete
steipete merged commit e33606e into main Aug 25, 2026
153 checks passed
@steipete
steipete deleted the steipete/beta-docker-candidate-verification branch August 25, 2026 10:17
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
* fix(release): verify focused candidate checkout

* fix(release): ignore unselected historical validation children
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant