Skip to content

feat(docker): weekly refresh of published moving image tags - #123348

Merged
steipete merged 7 commits into
mainfrom
steipete/docker-image-refresh-cadence
Aug 14, 2026
Merged

steipete merged 7 commits into
mainfrom
steipete/docker-image-refresh-cadence

Conversation

@steipete

@steipete steipete commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Implements #123312. Published moving Docker tags (latest*, main*, extended-stable*) are built once at release time and then rot: Debian point-release security fixes, npm-CLI updates, and base refreshes never reach them until the next stable release. The current latest-browser ships Chromium 149 while main pins 151 — ~1,275 of its 1,966 Grype findings are that single stale artifact. #123282 hardened what goes into a build; this makes the published moving tags stop aging between releases.

Why This Change Was Made

  • docker-release.yml gains one additive input, image_tag_suffix (validated ^-r[0-9]{8}$, default ""). When set, every version-identified image tag, manifest, attestation ref, and VCR source ref gains the suffix on both registries (e.g. 2026.8.1-r20260820, -slim, -browser, per-arch forms). With the default empty suffix the workflow is behaviorally unchanged — plain releases are untouched.
  • scripts/docker-channel-promote.mjs threads the suffix into alias promotion source refs (--image-tag-suffix); the existing base-version rollback protection is unchanged, so aliases can never move backward and stable/extended-stable stay separate.
  • scripts/lib/docker-release-policy.mjs gains resolveCurrentDockerReleaseTags (+ --current stdin mode) that resolves the newest stable and extended-stable tags from git tag output using the existing channel policy — no new tag-parsing logic.
  • New .github/workflows/docker-image-refresh.yml: weekly schedule (Mon 03:17 UTC) + manual dispatch (channel stable/extended-stable/both, dry_run). A main-branch-guarded plan job resolves current channel tags/SHAs and a dated suffix, publishes a plan summary, then (unless dry-run) calls docker-release.yml per channel via the matrix. The existing docker-release environment approval inside the called workflow remains the human publish gate — nothing bypasses or weakens it. Beta is never rebuilt.
  • docs/install/docker.md documents the weekly refresh and that plain version tags and dated -rYYYYMMDD tags are immutable pin targets.

User Impact

Operators following latest*/extended-stable* pick up current OS security updates weekly without waiting for an OpenClaw release; scanner posture of published images stops degrading between releases (the staleness class Echo's comparison post exploited). Version-pinned deployments are unaffected. New config surface: one optional workflow-call input and one scheduled workflow; no runtime, CLI, or config-file surface changes.

Compatibility and Release-Owner Decision

The release owner explicitly approves the weekly cadence for moving stable and extended-stable aliases and accepts that existing followers will receive base-image refreshes between formal releases. The optional workflow_call input defaults to the prior behavior, immutable plain version tags remain unchanged, and the existing docker-release environment approval remains the publication gate.

ClawSweeper's requested main-branch dry-run is intentionally deferred until this workflow exists on main; #123312 remains open to track that first dry-run dispatch before the first real scheduled publication.

Evidence

  • Focused tests green: new refresh-workflow guard in test/scripts/ci-workflow-guards.test.ts; suffix threading + --current resolution unit tests (docker-channel-promote.test.ts 26/26 on Linux — verified in a Linux container; the one execution-backed case is guarded runIf(bash>=4) because stock macOS bash 3.2 lacks mapfile, which the workflow already used pre-change; docker-release-policy.test.ts 10/10).
  • actionlint, zizmor, and interpolation guards pass on both touched workflows.
  • Dry-run resolution against real repo tags: stable v2026.7.1-2 → 0790d9f593ad, extended-stable v2026.6.34 → 5c38f996d405, suffix -r20260813.
  • Plain-release no-op: with image_tag_suffix="" every tag/manifest/attestation construction reduces to the previous strings (suffix concatenation only; validated in the threading diff and covered by existing promote tests).
  • Codex autoreview: clean, no actionable findings.

Post-land verification plan: dispatch docker-image-refresh.yml with dry_run=true and confirm the plan summary before the first scheduled run; the first real run still requires the docker-release environment approval.

Main-breakage repair carried by this rebased head: test/vitest-projects.ts now wires src/agents/pi-embedded-runner/run-attempt-state.test.ts into the normal full-suite project coverage. This repairs the unowned test introduced on main by #123345; the complete projects-coverage guard is green at this head. The build-artifacts landing gate was also unsatisfiable during Blacksmith outages because ci-build-artifacts-testbox.yml was missed by the runner-backend breaker extension; fixed here in commit df2b1b6.

ClawSweeper's read-only checkout rerun remains sandbox-blocked; green exact-head CI and fresh local Codex autoreview provide the independent source and gate verification, so no redundant re-review is requested.

@clawsweeper

clawsweeper Bot commented Aug 13, 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 13, 2026 22:28
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts docker Docker and sandbox tooling size: L maintainer Maintainer-authored PR labels Aug 13, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 13, 2026
@clawsweeper

clawsweeper Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 10:11 PM ET / August 14, 2026, 02:11 UTC.

ClawSweeper review

What this changes

Adds a weekly GitHub Actions workflow that rebuilds stable and extended-stable Docker images with dated immutable tags and advances their moving aliases.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open: this maintainer-labeled PR intentionally changes the update contract for moving Docker tags and needs release-owner confirmation; read-only repository inspection was blocked by the execution sandbox.

Priority: P2
Reviewed head: 6b4e3449610ad25cd563e457fec9505f62f94727
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The supplied context describes focused tests and a bounded design, but direct exact-head source and security-boundary review was unavailable.
Proof confidence 🌊 off-meta tidepool Not applicable: The repository state identifies the author as a MEMBER; the external-contributor proof gate does not apply, though the claimed dry-run evidence could not be independently inspected.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The repository state identifies the author as a MEMBER; the external-contributor proof gate does not apply, though the claimed dry-run evidence could not be independently inspected.
Evidence reviewed 4 items Scheduled publishing surface: The supplied PR diff adds a scheduled refresh workflow with a main-branch guard, tag resolution, and a publish path for stable and extended-stable channels.
Compatibility-sensitive reusable workflow input: The supplied diff adds an optional image-tag suffix to the Docker release workflow; it changes image identity only when the new input is supplied.
Canonical request: The PR explicitly implements the open scheduled-refresh proposal at #123312.
Findings None None.
Security Needs attention Verify the publication approval boundary: The new scheduler calls release-publishing automation; direct source review is required to confirm that only trusted main executions can reach registry credentials and the existing environment approval.

How this fits together

Docker release workflows build tagged OpenClaw source into immutable images and then promote moving aliases for operators. This adds a scheduled refresh path between formal releases while retaining the existing release workflow as the publisher.

flowchart LR
A[Release tags] --> B[Weekly refresh planner]
B --> C[Channel and SHA selection]
C --> D[Docker release workflow]
D --> E[Dated immutable images]
E --> F[Moving Docker aliases]
Loading

Decision needed

Question Recommendation
Should stable and extended-stable moving Docker tags intentionally receive weekly rebuilt base and toolchain layers between formal OpenClaw releases? Approve weekly moving-tag refreshes: Accept the documented weekly cadence while preserving immutable version and dated tags plus the existing publish approval.

Why: This changes what existing moving-tag deployments receive outside the established release cadence; the PR body asserts approval, but the supplied discussion contains no independently verifiable owner decision.

Before merge

  • Resolve security concern: Verify the publication approval boundary - The new scheduler calls release-publishing automation; direct source review is required to confirm that only trusted main executions can reach registry credentials and the existing environment approval.
  • Resolve merge risk (P1) - Moving-tag consumers would receive refreshed operating-system and toolchain layers between formal OpenClaw releases; the release owner must explicitly accept that compatibility contract.
  • Resolve merge risk (P1) - The review sandbox prevented direct inspection of the exact workflow call, environment gate, current-main behavior, history, and applicable scoped policy.

Findings

  • [medium] Verify the publication approval boundary — .github/workflows/docker-image-refresh.yml:1
Agent review details

Security

Needs attention: The supplied diff touches scheduled registry publishing, but sandbox failure prevented verification that the reusable workflow preserves the intended approval and secret boundaries.

PR surface

Tests +389, Docs +6, Config +170, Other +58. Total +623 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 7 403 14 +389
Docs 1 6 0 +6
Config 3 208 38 +170
Generated 0 0 0 0
Other 2 67 9 +58
Total 13 684 61 +623

Review metrics

Metric Value Why it matters
Production vs test LOC production +234, tests/test support +389 The new scheduled publishing capability accounts for material automation growth, with most of the remaining change providing workflow and release-policy coverage.

Stored data model

Persistent data-model change detected: vector/embedding metadata: .github/workflows/ci-build-artifacts-testbox.yml. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #123312
Summary: This PR is the candidate implementation for the open scheduled Docker image refresh request.

Members:

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

Merge-risk options

Maintainer options:

  1. Confirm the moving-tag contract before merge (recommended)
    Document release-owner acceptance that existing moving-tag deployments may receive weekly refreshed layers while immutable tags remain unchanged.
  2. Pause the cadence change
    Keep release-only image updates if the team does not want moving tags to change between formal releases.

Technical review

Best possible solution:

Retain immutable version tags and the existing publish-environment approval, then land only after the release owner confirms that weekly updates to documented moving tags are intended.

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

Not applicable: this PR proposes a new scheduled release workflow rather than reporting a current-main defect.

Is this the best way to solve the issue?

Unclear: reusing the existing release workflow appears directionally appropriate, but the sandbox failure prevented verification of its exact publish and approval boundary.

AGENTS.md: unclear because the file could not be read completely.

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

Labels

Label changes:

  • add P2: This is a bounded release-automation feature with meaningful Docker-operator impact but no demonstrated active outage.
  • remove P1: Current review triage priority is P2, so this older priority label is no longer current.

Label justifications:

  • P2: This is a bounded release-automation feature with meaningful Docker-operator impact but no demonstrated active outage.
  • merge-risk: 🚨 compatibility: The workflow deliberately changes the contents received by existing users of moving Docker tags between source releases.
  • merge-risk: 🚨 security-boundary: A new scheduled workflow participates in registry publication, so its branch and environment-approval boundary requires exact-head verification.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The repository state identifies the author as a MEMBER; the external-contributor proof gate does not apply, though the claimed dry-run evidence could not be independently inspected.

Evidence

Security concerns:

  • [medium] Verify the publication approval boundary — .github/workflows/docker-image-refresh.yml:1
    The new scheduler calls release-publishing automation; direct source review is required to confirm that only trusted main executions can reach registry credentials and the existing environment approval.
    Confidence: 0.55

What I checked:

Likely related people:

  • steipete: The supplied context identifies steipete as author of this PR and of merged Docker hardening work directly referenced by the requested refresh design. (role: recent adjacent contributor; confidence: medium; commits: b3d5265f5852, 79be34ff755b; files: .github/workflows/docker-release.yml, docs/install/docker.md)

Rank-up moves

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

  • Record or link the release-owner decision on weekly moving-tag updates.
  • Re-run the review with a functioning read-only checkout to verify the called workflow, environment gate, and 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 (3 earlier review cycles)
  • reviewed 2026-08-13T22:32:19.701Z sha 99f0d7410e3a3eb41f638afb8a9671fc6e3aaf9a :: needs maintainer review before merge. :: none
  • reviewed 2026-08-13T23:10:46.592Z sha 7f4b713 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-13T23:35:54.462Z sha 7f4b713 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the steipete/docker-image-refresh-cadence branch from c1e8958 to 7f4b713 Compare August 13, 2026 23:07
@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 13, 2026
ci-build-artifacts-testbox.yml pinned PR runs to blacksmith-16vcpu and
ran Testbox lifecycle steps unconditionally, so the prepare-run landing
gate starved for every PR during a Blacksmith outage even with
OPENCLAW_CI_RUNNER_BACKEND=github. PR events now build on ubuntu-24.04
with dispatch-only Testbox steps, mirroring ci-check-testbox.yml.
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 14, 2026
@clawsweeper clawsweeper Bot removed the P1 High-priority user-facing bug, regression, or broken workflow. label Aug 14, 2026
@clawsweeper clawsweeper Bot added the P2 Normal backlog priority with limited blast radius. label Aug 14, 2026
@steipete
steipete merged commit b376b13 into main Aug 14, 2026
147 checks passed
@steipete
steipete deleted the steipete/docker-image-refresh-cadence branch August 14, 2026 02:20
@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 14, 2026
…#123348)

* feat(docker): schedule image refreshes

* docs(docker): explain weekly image refreshes

* test(scripts): gate workflow-step execution on bash 4 mapfile support

Stock macOS bash 3.2 lacks mapfile; CI truth is Linux bash 5.

* test: cover docker-release suffix threading and sanctioned second caller

* test(codex): wire run-attempt-state into the attempt-extra project

openclaw#123345 added the file without a project owner; the full-suite coverage
guard fails for any PR that runs it.

* fix(ci): run build-artifacts PR validation on hosted runners

ci-build-artifacts-testbox.yml pinned PR runs to blacksmith-16vcpu and
ran Testbox lifecycle steps unconditionally, so the prepare-run landing
gate starved for every PR during a Blacksmith outage even with
OPENCLAW_CI_RUNNER_BACKEND=github. PR events now build on ubuntu-24.04
with dispatch-only Testbox steps, mirroring ci-check-testbox.yml.

* test(ci): align build-artifacts dispatch guard
erulkey added a commit to vercel-labs/vercel-openclaw that referenced this pull request Aug 17, 2026
…ease (#4)

OpenClaw's release CI already publishes to VCR. openclaw/openclaw#120058
(merged 2026-08-10) added vercel-container-registry-publish.yml, which covers
stable, extended-stable and beta across the default, slim and browser variants,
and smoke-tests the immutable image in Vercel Sandbox before promoting moving
aliases. openclaw/openclaw#123348 (merged 2026-08-14) rebuilds the moving tags
weekly. Both supersede this repo's interim mirror and the handoff patch written
for it, so remove docs/upstream-ci.md and .github/workflows/mirror-image.yml.

The mirror was also never functional here: VERCEL_VCR_TOKEN was never
configured, so every scheduled run since 2026-08-12 skipped and reported
success. The VCR repository belongs to the OpenClaw Foundation, so only a
Foundation member can mint that token, which makes upstream's own pipeline the
correct owner rather than something to work around.

Retarget the forward-looking suspend references from 2026.7.2 to 2026.8.1.
2026.7.2 never shipped stable; the beta line moved to 2026.8.1. Verified
2026-08-17 from npm: latest is 2026.7.1-2, beta is 2026.8.1-beta.2, and the
gateway.suspend.* triad is present in 2026.8.1-beta.2. References to
2026.7.2-beta.7 as the version validated against are unchanged, since that is
what was tested.

Record what the public image actually serves, boot-verified 2026-08-17 from a
non-owning Vercel team: latest and slim run 2026.7.1, 2026.7.2-beta.7 runs in
plain, -slim and -amd64 forms, and the 2026.8.1 beta tags did not resolve from
VCR although 2026.8.1-beta.2 was present on ghcr.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant