Skip to content

ci(release): harden release controls - #93852

Merged
vincentkoc merged 29 commits into
mainfrom
release-controls
Jun 17, 2026
Merged

vincentkoc merged 29 commits into
mainfrom
release-controls

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

  • Make release validation fail closed on missing performance evidence, missing stable soak evidence, and mutable release-evidence assets.
  • Add stable-main closeout verification for the shipped version, release assets, appcast, and rollback-drill freshness; serialize closeout writes.
  • Pin every GitHub Actions reference by immutable SHA and make npm postpublish provenance verification cryptographic with the upstream Sigstore verifier.
  • Update the release runbooks to keep root README edits out of release prep and require exact-SHA Docker/install-smoke recovery before publish.

Linked context

Maintainer-requested release process hardening after the 2026.6.8 beta/stable train.

Real behavior proof

  • Behavior or issue addressed: release closeout could not prove immutable stable evidence, and npm provenance verification only matched a DSSE payload without verifying its signature.
  • Real environment tested: Blacksmith Testbox and the public npm registry.
  • Exact steps or command run after this patch: frozen install, focused release-control tests, workflow checks, and node --import tsx scripts/openclaw-npm-postpublish-verify.ts 2026.6.8.
  • Evidence after fix: the verifier reports registry signature and provenance attestation verified, then passes a fresh exact global install.
  • Observed result after fix: 52 focused tests passed; workflow actionlint/zizmor checks passed; live postpublish verification passed.
  • What was not tested: no release was published and no production repository setting was changed by this PR.
  • Proof limitations or environment constraints: the broad changed gate was not used because the Testbox sync includes unrelated sparse-checkout Android drift; focused Testbox validation covered every touched runtime and workflow surface.

Tests and validation

  • pnpm install --frozen-lockfile --ignore-scripts in Testbox
  • pnpm test:serial test/openclaw-npm-postpublish-verify.test.ts test/stable-release-closeout.test.ts test/scripts/release-candidate-checklist.test.ts
  • pnpm check:workflows
  • node --import tsx scripts/openclaw-npm-postpublish-verify.ts 2026.6.8
  • node scripts/format-docs.mjs --check
  • final Codex autoreview: clean, no accepted/actionable findings

Risk checklist

  • Did user-visible behavior change? No.
  • Did config, environment, or migration behavior change? No.
  • Did security, auth, secrets, network, or tool execution behavior change? Yes. The postpublish verifier now validates the Sigstore bundle before accepting npm provenance.
  • What is the highest-risk area? Stable closeout and publish-time verification.
  • How is that risk mitigated? Immutable evidence assets, checksum enforcement, targeted regression tests, frozen-lock Testbox installation, workflow lint/security checks, and a live registry/install proof.

Current review state

Ready for maintainer merge. The explicit four-eyes approval-policy follow-up remains out of scope. After this lands, enable GitHub Actions SHA pinning in repository Actions permissions.

@vincentkoc
vincentkoc requested review from a team as code owners June 17, 2026 01:48
@vincentkoc vincentkoc self-assigned this Jun 17, 2026
@github-actions

github-actions Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/llama-cpp/npm-shrinkwrap.json
  • extensions/msteams/npm-shrinkwrap.json
  • extensions/slack/npm-shrinkwrap.json
  • extensions/zalouser/npm-shrinkwrap.json
  • package.json
  • pnpm-lock.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jun 17, 2026
@github-actions

github-actions Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: 66133de419ebb4849230260e39cac6ba78415b98
  • Trusted actor: @vincentkoc
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation security Security documentation scripts Repository scripts size: XL maintainer Maintainer-authored PR and removed dependencies-changed PR changes dependency-related files labels Jun 17, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jun 17, 2026
@socket-security

socket-security Bot commented Jun 17, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​sigstore@​4.1.110010010088100

View full report

@blacksmith-sh

This comment has been minimized.

@openclaw-barnacle openclaw-barnacle Bot added channel: msteams Channel integration: msteams channel: slack Channel integration: slack channel: zalouser Channel integration: zalouser extensions: llama-cpp labels Jun 17, 2026
@clawsweeper

clawsweeper Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 17, 2026, 2:54 PM ET / 18:54 UTC.

Summary
The branch hardens release controls by adding stable closeout verification, exact-head hosted gate checks, Sigstore-backed npm provenance verification, pinned GitHub Actions refs, release docs, focused tests, and dependency/shrinkwrap updates.

Reproducibility: not applicable. this is release/security automation hardening reviewed through source, dependency contracts, workflow behavior, tests, PR proof, comments, and live status rather than a user bug reproduction.

Review metrics: 3 noteworthy metrics.

  • Changed surface size: 88 files, +3233/-449. The PR spans workflows, release scripts, docs, tests, dependencies, lockfiles, and plugin shrinkwraps, so it needs broad release-owner review.
  • Release operator inputs: 2 repository variables required. Stable closeout now depends on RELEASE_ROLLBACK_DRILL_ID and RELEASE_ROLLBACK_DRILL_DATE being present and current.
  • Direct dependency surface: 1 root dev dependency added. [email protected] enters a publish-time security verification path and should be reviewed as a supply-chain change.

Stored data model
Persistent data-model change detected: migration/backfill/repair: .github/workflows/full-release-validation.yml, migration/backfill/repair: .github/workflows/openclaw-release-checks.yml, migration/backfill/repair: .github/workflows/openclaw-stable-main-closeout.yml, persistent cache schema: .github/actions/setup-node-env/action.yml, persistent cache schema: .github/actions/setup-pnpm-store-cache/action.yml, persistent cache schema: .github/workflows/ci-build-artifacts-testbox.yml, and 5 more. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P2] Wait for current-head required CI/CodeQL/preflight/build-artifacts checks to finish green.
  • [P1] Get release/security owner approval for the fail-closed closeout variables, action pin rollout, and Sigstore dependency.

Risk before merge

  • [P1] Live rollup for cbef131 is still blocked with queued CI/CodeQL/preflight/build-artifacts checks, so merge should wait for required exact-head checks to finish green.
  • [P1] Stable closeout now fails closed unless rollback-drill repository variables are configured/current and immutable postpublish evidence exists; release owners need to accept that operator contract.
  • [P1] The PR adds [email protected] and TUF/network-backed verification to a publish-time trust path; no concrete flaw was found, but security/dependency owner review is still material.
  • [P1] Pinned GitHub Actions refs and the PR body's post-merge Actions SHA-pin permission follow-up require coordinated repository operations after landing.

Maintainer options:

  1. Approve the release-security contract (recommended)
    Release/security owners can accept the new fail-closed stable closeout, exact-head gate, action pinning, and Sigstore verifier behavior before merge.
  2. Soften or stage the fail-closed gates
    If operators cannot configure rollback-drill variables or Actions SHA-pin policy immediately, keep the hardening but stage the fail-closed behavior behind an owner-approved rollout path.
  3. Pause until operations are ready
    If the repository cannot operate the new release variables, immutable evidence, and pinned-action policy now, pause the PR rather than landing automation that can block stable closeout.

Next step before merge

  • [P2] Protected release/security automation and operator-contract changes need human release/security owner review, not a ClawSweeper repair job.

Security
Cleared: No concrete security or supply-chain regression was found after inspecting the Sigstore usage, dependency metadata, workflows, tests, and guard comments; owner review remains required by merge risk.

Review details

Best possible solution:

Land only after exact-head checks are green and release/security owners approve the fail-closed closeout contract, rollback-drill variables, Actions pin rollout, and Sigstore dependency.

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

Not applicable; this is release/security automation hardening reviewed through source, dependency contracts, workflow behavior, tests, PR proof, comments, and live status rather than a user bug reproduction.

Is this the best way to solve the issue?

Yes for the implementation layer: release workflows, verifier scripts, docs, and focused tests are the right owner boundary, while the remaining blocker is owner acceptance of the fail-closed operational contract.

AGENTS.md: found and applied where relevant.

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

Label changes

Label justifications:

  • P2: This is normal-priority release/security hardening with limited product-runtime blast radius but meaningful maintainer release impact.
  • merge-risk: 🚨 automation: The diff changes release workflows, exact-head hosted gates, stable closeout uploads, prepare-run gating, and workflow action refs.
  • merge-risk: 🚨 security-boundary: The diff changes npm provenance verification, action pinning, release evidence integrity, and dependency trust boundaries in publish paths.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this maintainer/member release automation PR, though the PR body reports Testbox, workflow, and live npm registry verification.
Evidence reviewed

Acceptance criteria:

  • [P1] Confirm current-head required checks complete successfully for cbef131.
  • [P1] Confirm release/security owners accept the rollback-drill variable contract, immutable evidence behavior, Actions pin rollout, and Sigstore dependency.
  • [P1] Review the PR body's reported Testbox, workflow, and live npm registry verification against maintainer release policy.

What I checked:

Likely related people:

  • vincentkoc: Recent release automation history and this branch both touch the central postpublish verifier, release workflows, release docs, and closeout hardening path. (role: recent area contributor; confidence: high; commits: 5296dc378f85, fbb1eab4c792, 2b0e399da11a; files: scripts/openclaw-npm-postpublish-verify.ts, .github/workflows/openclaw-release-publish.yml, docs/reference/RELEASING.md)
  • steipete: History sampling shows prior release workflow, npm publish/auth, and release documentation work on the same automation boundary. (role: adjacent release automation contributor; confidence: medium; commits: 609d70d35e4f, 4e45010203b1, cb765f1664ed; files: .github/workflows/openclaw-npm-release.yml, .github/workflows/openclaw-release-publish.yml, scripts/openclaw-npm-postpublish-verify.ts)
  • osolmaz: Prior release workflow history includes reusable release checks, trusted publishing, and release workflow separation adjacent to this PR's controls. (role: release workflow contributor; confidence: medium; commits: 06a4bf57012f, 27b14124d0fb, 00891dee903b; files: .github/workflows/openclaw-npm-release.yml, .github/workflows/openclaw-release-publish.yml, .github/workflows/full-release-validation.yml)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jun 17, 2026
@vincentkoc
vincentkoc force-pushed the release-controls branch 2 times, most recently from afffbef to 24f8ef2 Compare June 17, 2026 09:36
@blacksmith-sh

This comment has been minimized.

@blacksmith-sh

This comment has been minimized.

@openclaw-barnacle openclaw-barnacle Bot added the app: android App: android label Jun 17, 2026
@vincentkoc
vincentkoc merged commit abb6f04 into main Jun 17, 2026
288 checks passed
@vincentkoc
vincentkoc deleted the release-controls branch June 17, 2026 19:11
@vincentkoc

Copy link
Copy Markdown
Member Author

Landed as abb6f04 via the maintainer-authorized one-time bootstrap squash merge. Exact hosted CI release gate 27712721645 passed on 66133de, along with Blacksmith Testbox, ARM Testbox, Build Artifacts Testbox, and Workflow Sanity. No beta or stable release, tag, or publish action was performed.

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

Labels

app: android App: android channel: msteams Channel integration: msteams channel: slack Channel integration: slack channel: zalouser Channel integration: zalouser dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: llama-cpp maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security Security documentation size: XL 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