Skip to content

fix(release): allow beta Docker backfills - #124999

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
pe/beta-docker-backfill
Aug 17, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
pe/beta-docker-backfill

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Summary

  • allow the existing evidence-gated Docker-only recovery path for beta releases
  • verify the selected npm dist-tag instead of hardcoding extended-stable
  • document the beta container backfill procedure

Root cause

v2026.8.1-beta.1 and v2026.8.1-beta.2 were published through the npm-only workflow. Since Docker publication is reusable-only and called by OpenClaw Release Publish, neither tag reached the container publication job.

This keeps the current safety boundary: no tag-triggered container publication. Recovery still requires the immutable tag/SHA, exact npm preflight artifact, successful Full Release Validation, matching npm selector, and matching published tarball digest.

Validation

  • node scripts/check-changed.mjs -- .github/workflows/openclaw-release-publish.yml docs/reference/RELEASING.md test/scripts/package-acceptance-workflow.test.ts (Blacksmith Testbox, pass)
  • pnpm test test/scripts/package-acceptance-workflow.test.ts (Blacksmith Testbox, 193/193 pass)
  • git diff --check

Recovery target

After landing, use the Docker-only path for v2026.8.1-beta.2 with npm preflight run 31865167546 and exact-tag Full Release Validation evidence. No npm or plugin republish.

@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S maintainer Maintainer-authored PR labels Aug 17, 2026
@Patrick-Erichsen Patrick-Erichsen self-assigned this Aug 17, 2026
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review August 17, 2026 03:00
@Patrick-Erichsen
Patrick-Erichsen requested a review from a team as a code owner August 17, 2026 03:00
@Patrick-Erichsen
Patrick-Erichsen force-pushed the pe/beta-docker-backfill branch from 96d7ae6 to 31212c8 Compare August 17, 2026 03:05
@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 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 11:12 PM ET / August 17, 2026, 03:12 UTC.

ClawSweeper review

What this changes

The PR allows Docker-only recovery for already-published beta releases, verifies the selected npm dist-tag, and documents the beta backfill procedure.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for release-owner approval. Current main rejects beta Docker-only recovery, while this focused change substitutes the selected beta selector and preserves the existing immutable evidence gates; no blocking correctness finding was found.

Priority: P2
Reviewed head: 31212c8fd96fa69682d996c2c10503b73a7f88d0
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-backed release automation repair with targeted regression coverage and no identified correctness defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored release-workflow PR is exempt from the external-contributor proof gate; its first real beta recovery must occur only after the change is available on main.
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-workflow PR is exempt from the external-contributor proof gate; its first real beta recovery must occur only after the change is available on main.
Evidence reviewed 6 items Current-main behavior: Current main still rejects Docker-only recovery unless the selected dist-tag is extended-stable, so the beta recovery problem remains present.
Narrow guarded repair: The branch permits only beta or extended-stable and queries the selected npm tag; the preflight manifest already requires that tag to match the saved release evidence.
Publication boundary preserved: Docker-only recovery skips the normal publish job and reaches Docker only after registry verification succeeds, so the documented command does not republish plugins or npm.
Findings None None.
Security None None.

How this fits together

The release-publish workflow takes an immutable tag plus preflight and full-validation evidence, verifies the npm package, then invokes Docker publication. This change extends its existing recovery branch to beta packages without re-running npm or plugin publication.

flowchart LR
  A[Immutable release tag] --> B[Release evidence checks]
  B --> C[Docker-only eligibility]
  C --> D[npm exact version and selector]
  D --> E[Tarball digest check]
  E --> F[Docker image publication]
Loading

Decision needed

Question Recommendation
Should the release owner enable the Docker-only recovery path for already-published beta packages under the existing immutable evidence gates? Approve evidence-gated beta recovery: Merge the selector correction and use the Docker-only path only with the matching immutable tag, preflight, full-validation, npm-selector, and tarball-digest evidence.

Why: The patch is functionally coherent, but it changes the allowed scope of privileged release publication and carries a protected maintainer label.

Before merge

  • Resolve merge risk (P1) - This is privileged release automation; the first beta recovery run must retain the exact tag/SHA, preflight, full-validation, selector, and tarball-digest evidence in its release record.
  • Resolve merge risk (P1) - Production workflow code is net +1 line; the added environment binding is necessary to verify the operator-selected selector, and no clearer net-neutral form is apparent.
  • Complete next step (P2) - A protected maintainer-labeled change to privileged release automation needs release-owner approval; no mechanical repair remains.
Agent review details

Security

None.

PR surface

Tests +40, Docs +18, Config +1. Total +59 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 40 0 +40
Docs 1 19 1 +18
Config 1 6 5 +1
Generated 0 0 0 0
Other 0 0 0 0
Total 3 65 6 +59

Review metrics

Metric Value Why it matters
Production versus test LOC workflow +6/-5; docs +19/-1; tests +40/-0 The one-line net workflow increase carries the selected npm tag into existing registry verification; added test coverage documents the permitted and rejected recovery modes.

Merge-risk options

Maintainer options:

  1. Accept the evidence-gated beta scope (recommended)
    Merge only with agreement that beta backfills may use the existing recovery gates; the first real use should preserve its verification trace.
  2. Pause the policy expansion
    Leave the workflow extended-stable-only until a release owner confirms that beta backfills are an intended recovery policy.

Technical review

Best possible solution:

Approve the narrow beta selector correction, then perform the authorized beta Docker backfill through the documented evidence-gated recovery path and retain its redacted workflow evidence.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: current main rejects npm_dist_tag=beta in the Docker-only guard and hardcodes the extended-stable selector; the branch changes both points. A live beta backfill cannot be exercised until the release workflow change is available on main.

Is this the best way to solve the issue?

Yes. Reusing the existing Docker-only owner and replacing only its stale selector is narrower and safer than adding a parallel beta publication path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against fc8ee406a240.

Labels

Label changes:

  • add P2: This is a bounded release-recovery repair with operator-visible but limited blast radius.
  • add merge-risk: 🚨 automation: The patch changes eligibility and registry selection within privileged GitHub Actions Docker publication.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored release-workflow PR is exempt from the external-contributor proof gate; its first real beta recovery must occur only after the change is available on main.

Label justifications:

  • P2: This is a bounded release-recovery repair with operator-visible but limited blast radius.
  • merge-risk: 🚨 automation: The patch changes eligibility and registry selection within privileged GitHub Actions 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-workflow PR is exempt from the external-contributor proof gate; its first real beta recovery must occur only after the change is available on main.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Current blame attributes the original Docker-only guard and selector verifier to the available history boundary; earlier history is shallow locally. (role: feature-history contributor; confidence: medium; commits: 54e50bad5a19; files: .github/workflows/openclaw-release-publish.yml, docs/reference/RELEASING.md, test/scripts/package-acceptance-workflow.test.ts)

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.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Release-owner decision: approve the evidence-gated beta recovery scope.

The first production use will retain the immutable release tag/SHA, npm preflight run and tarball digest, full rerun_group=all validation run/attempt, selected beta readback, and Docker publication run. The workflow's one-line production growth is the required selected-dist-tag binding; exact-head CI, focused Testbox proof, and independent autoreview are green.

@Patrick-Erichsen
Patrick-Erichsen merged commit 305e38f into main Aug 17, 2026
151 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the pe/beta-docker-backfill branch August 17, 2026 03:16
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation 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. size: S 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