Skip to content

fix(release): validate candidates before Docker publication - #117252

Merged
RomneyDa merged 3 commits into
mainfrom
fix/release-candidate-validation-before-tag
Aug 1, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
fix/release-candidate-validation-before-tag

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 1, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where creating a final release tag could immediately publish public Docker images before the frozen release SHA had passed NPM preflight and Full Release Validation. The release-candidate helper also required that final tag before it could start those gates.

Why This Change Was Made

Release candidates now use a frozen SHA while the tag remains planned and absent. Docker publication is removed from tag-push automation and can run only as a reusable child of OpenClaw Release Publish after the relevant release evidence and registry readback are verified.

User Impact

Operators can validate and repair a candidate without consuming patch tags or exposing unvalidated Docker artifacts. A final tag now records an immutable release identity; it does not publish an image on its own.

Evidence

  • node scripts/run-vitest.mjs test/scripts/release-candidate-checklist.test.ts test/scripts/release-no-push-workflow.test.ts test/scripts/docker-channel-promote.test.ts src/dockerfile.test.ts — 126 passed.
  • ./node_modules/.bin/oxfmt --check on all touched files — passed.
  • git diff --check — passed.
  • Fresh autoreview --mode uncommitted — no accepted/actionable findings.
  • GPG-signed commit: acf10653162.

AI-assisted; reviewed and validated locally.

@RomneyDa
RomneyDa requested a review from a team as a code owner August 1, 2026 06:01
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Aug 1, 2026
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 3:55 AM ET / 07:55 UTC.

ClawSweeper review

What this changes

The PR removes Docker’s tag-push and manual-dispatch entry points, validates a tag/SHA pair, and calls Docker publication only from the ordered release-publish workflow.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

This PR remains necessary: current main still lets a release tag push invoke Docker publication directly, while this branch makes Docker a release-publish child gated by immutable identity and release evidence. No concrete patch defect was found, but the protected maintainer label and release-automation scope require explicit maintainer handling after the current head is refreshed against main and its remaining checks finish.

Priority: P2
Reviewed head: ebd7d757ddd14ba95fb00f3b35bc56275e04986d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has coherent owner-boundary design and focused workflow-contract coverage; merge readiness depends on exact-head CI and maintainer review of the changed release recovery contract.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a member-authored release-automation PR; the external-contributor real-behavior-proof gate does not apply, while focused tests and required CI remain the relevant merge evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a member-authored release-automation PR; the external-contributor real-behavior-proof gate does not apply, while focused tests and required CI remain the relevant merge evidence.
Evidence reviewed 6 items Current main still has the unsafe entry points: Current main triggers Docker Release on every non-alpha v* tag push and also exposes manual dispatch, so Docker can begin independently of the release-publish evidence sequence.
Branch centralizes publication behind release publish: The PR makes Docker Release reusable-only, verifies its immutable tag/SHA identity, and gives OpenClaw Release Publish the sole local reusable-workflow call.
Docker call is ordered after publication evidence: The reusable Docker job receives the resolved SHA and runs only after either normal npm publishing succeeds or the Docker-only registry verification succeeds; final GitHub release publication then waits for Docker success.
Findings None None.
Security None None.

How this fits together

OpenClaw’s release pipeline turns a frozen source SHA into validated npm packages, GitHub release assets, and public Docker images. This change moves the Docker handoff behind the existing release-publish evidence gates so a tag alone cannot expose an unvalidated image.

flowchart LR
  A[Release candidate SHA] --> B[Preflight and full validation]
  B --> C[Publish npm and verify registry]
  C --> D[Release publish workflow]
  D --> E[Reusable Docker release]
  E --> F[Public Docker images]
Loading

Before merge

  • Resolve merge risk (P1) - GitHub reports a clean but behind branch, and several checks are still in progress; refresh the review and required workflow validation on the exact mergeable head before landing.
  • Resolve merge risk (P1) - The change intentionally removes tag-push and direct manual Docker publication, so release operators must use the documented release-publish recovery path rather than an ad hoc Docker workflow dispatch.
  • Complete next step (P2) - The PR is member-authored, assigned, and carries the protected maintainer label; the remaining action is explicit maintainer review of release-operator compatibility after current-head validation, not an automated repair.
Agent review details

Security

None.

PR surface

Tests +96, Docs +24, Config +125, Other +47. Total +292 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 111 15 +96
Docs 1 30 6 +24
Config 2 173 48 +125
Generated 0 0 0 0
Other 2 53 6 +47
Total 10 367 75 +292

Review metrics

Metric Value Why it matters
Publication interface 2 direct triggers removed; 1 reusable caller path retained; 1 Docker-only release input added The PR deliberately replaces independent Docker invocation with an evidence-bound release-publish interface, which changes release recovery behavior.

Root-cause cluster

Relationship: canonical
Canonical: #117252
Summary: This PR is the active expanded candidate for the Docker publication ordering defect; the earlier proposal was closed unmerged.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Refresh and revalidate the release path (recommended)
    Update the branch against current main, then require the exact head to pass the focused release workflow contracts and normal required checks before merge.
  2. Accept the new operator contract
    Merge only if maintainers explicitly accept release-publish as the sole supported route for Docker publication and recovery.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Refresh the branch against current main and rerun the focused release workflow contract tests plus required exact-head checks.

Technical review

Best possible solution:

Land one evidence-bound Docker publication path only after the branch is refreshed against current main, the exact-head checks are green, and maintainers confirm the documented release-publish resume procedure is the supported recovery path.

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

Yes, source-reproducible: current main has a v* tag-push trigger that starts Docker Release before the release-publish workflow can prove npm preflight and full validation. This review did not run a live release.

Is this the best way to solve the issue?

Yes: routing Docker through the existing release-publish owner is the narrowest maintainable repair, and the retained npm-resume input provides the normal post-npm recovery route without restoring an independent Docker dispatcher.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded release-process safety repair with meaningful operator impact but no demonstrated active production outage.
  • merge-risk: 🚨 compatibility: Existing operators lose tag-push and direct manual Docker publication as recovery mechanisms and must follow the release-publish path.
  • merge-risk: 🚨 automation: The patch changes GitHub Actions triggers, reusable-workflow inputs, credentials forwarding, concurrency, and publication ordering.
  • 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 is a member-authored release-automation PR; the external-contributor real-behavior-proof gate does not apply, while focused tests and required CI remain the relevant merge evidence.

Evidence

What I checked:

  • Current main still has the unsafe entry points: Current main triggers Docker Release on every non-alpha v* tag push and also exposes manual dispatch, so Docker can begin independently of the release-publish evidence sequence. (.github/workflows/docker-release.yml:3, 07b7d6446ca1)
  • Branch centralizes publication behind release publish: The PR makes Docker Release reusable-only, verifies its immutable tag/SHA identity, and gives OpenClaw Release Publish the sole local reusable-workflow call. (.github/workflows/docker-release.yml:3, ebd7d757ddd1)
  • Docker call is ordered after publication evidence: The reusable Docker job receives the resolved SHA and runs only after either normal npm publishing succeeds or the Docker-only registry verification succeeds; final GitHub release publication then waits for Docker success. (.github/workflows/openclaw-release-publish.yml:2412, ebd7d757ddd1)
  • Existing resume contract remains available: The parent workflow retains openclaw_npm_resume_run_id for a successfully published npm package and validates it only on the normal npm publication path, preserving a recovery route instead of reintroducing direct Docker dispatch. (.github/workflows/openclaw-release-publish.yml:34, ebd7d757ddd1)
  • Focused workflow contract coverage: The branch adds tests that assert Docker has no push/manual trigger, requires tag/SHA inputs, and is invoked by release publish after its evidence gates. (test/scripts/release-no-push-workflow.test.ts:981, ebd7d757ddd1)
  • Current workflow provenance: The current Docker trigger lines are attributed to Peter Steinberger in the latest source history; this identifies the current-main release-workflow routing contact rather than assigning blame. (.github/workflows/docker-release.yml:3, a8dfd37332fd)

Likely related people:

  • Peter Steinberger: Current-main blame attributes the Docker Release trigger and manual-dispatch surface to this source lineage, making him the strongest current-history routing candidate. (role: current release-workflow source contributor; confidence: medium; commits: a8dfd37332fd; files: .github/workflows/docker-release.yml, .github/workflows/openclaw-release-publish.yml)

Rank-up moves

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

  • Refresh the branch against current main and let required checks complete on the exact head.

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 (2 earlier review cycles)
  • reviewed 2026-08-01T06:12:33.977Z sha 93557a0 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T06:20:26.035Z sha 93557a0 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 1, 2026
@RomneyDa RomneyDa self-assigned this Aug 1, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 1, 2026
@RomneyDa
RomneyDa merged commit 6baf4dd into main Aug 1, 2026
191 of 195 checks passed
@RomneyDa
RomneyDa deleted the fix/release-candidate-validation-before-tag branch August 1, 2026 08:08
vincentkoc added a commit that referenced this pull request Aug 1, 2026
* origin/main: (41 commits)
  test(ci): update memory helper routing expectation (#117295)
  fix(canvas): emit successful control results in JSON mode (#117297)
  fix(imessage): settle native inbound reply delivery (#117282)
  fix(agents): reject invalid UTF-8 LSP responses (#117271)
  fix(line): centralize card and template message alt text (#117280)
  fix(release): validate candidates before Docker publication (#117252)
  fix(media): validate provider-owned generated media downloads (#117281)
  fix(feishu): restore custom HTTPS API domains (#117278)
  fix(models): reuse prepared plugin metadata (#117131)
  fix(agents): stop fallback after delivered-but-failed attempts (#114628)
  fix(memory): reuse targeted session corpus snapshot (#117247)
  fix(matrix): reconcile durable sends after response loss
  test(release): repair full validation regressions (#116931)
  fix(linux-canvas): report socket watcher fallback (#109502)
  fix(codex): preserve authoritative turn completion (#117185)
  fix(canvas): preserve widgets across derived-name collisions (#117132)
  fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (#117206)
  fix(msteams): prevent duplicate final replies (#116398)
  fix(doctor): session SQLite restore installs an empty session index over the valid archive (#117221)
  fix(plugins): preserve workspace plugins across CLI and control UI (#117265)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
…#117252)

* fix(release): validate candidates before Docker publication

* fix(release): complete Docker publication gates

* fix(release): serialize Docker publication
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (41 commits)
  test(ci): update memory helper routing expectation (openclaw#117295)
  fix(canvas): emit successful control results in JSON mode (openclaw#117297)
  fix(imessage): settle native inbound reply delivery (openclaw#117282)
  fix(agents): reject invalid UTF-8 LSP responses (openclaw#117271)
  fix(line): centralize card and template message alt text (openclaw#117280)
  fix(release): validate candidates before Docker publication (openclaw#117252)
  fix(media): validate provider-owned generated media downloads (openclaw#117281)
  fix(feishu): restore custom HTTPS API domains (openclaw#117278)
  fix(models): reuse prepared plugin metadata (openclaw#117131)
  fix(agents): stop fallback after delivered-but-failed attempts (openclaw#114628)
  fix(memory): reuse targeted session corpus snapshot (openclaw#117247)
  fix(matrix): reconcile durable sends after response loss
  test(release): repair full validation regressions (openclaw#116931)
  fix(linux-canvas): report socket watcher fallback (openclaw#109502)
  fix(codex): preserve authoritative turn completion (openclaw#117185)
  fix(canvas): preserve widgets across derived-name collisions (openclaw#117132)
  fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (openclaw#117206)
  fix(msteams): prevent duplicate final replies (openclaw#116398)
  fix(doctor): session SQLite restore installs an empty session index over the valid archive (openclaw#117221)
  fix(plugins): preserve workspace plugins across CLI and control UI (openclaw#117265)
  ...
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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M 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