Skip to content

feat(release): add the resumable release:stable orchestrator - #157941

Merged
steipete merged 3 commits into
mainfrom
release-speed/orchestrator
Sep 25, 2026
Merged

steipete merged 3 commits into
mainfrom
release-speed/orchestrator

Conversation

@steipete

@steipete steipete commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The 2026.9.6 stable took 21 hours from takeover to core npm, with 8 publish dispatches, 11 tooling tags, three closeout replays, and every phase driven by hand-written command scripts in a scratchpad. Each step (cut, tooling tag, FRV dispatch and continuation, candidate helper, final tag, publish dispatch, gate approvals, stale-child sweep, dist-tag sync, GitHub flip, macOS validate/preflight/publish, compat inventory, appcast, closeout) had to be remembered, ordered, and re-derived after every failure. Item 9 of the release-speed round-2 brief asks for one resumable orchestrator with two operator decisions.

Summary

  • pnpm release:stable <version> (scripts/release-stable.mts) models the exact 2026.9.6 sequence as a state machine: cut → validate → publish → sync-beta → flip-github → macos → closeout, with state in .artifacts/release-<version>/state.json (zod-validated, atomic writes, history of every dispatch intent).
  • Every phase is idempotent and resumable: rerun to continue, --from <phase> to restart (recorded ids are kept so a resume never double-dispatches), --status to inspect, --dry-run to print every command (+ …) without spawning anything or writing state.
  • Two operator prompts only: confirm the cut SHA (--confirm-cut-sha without a TTY) and approve publication (--approve-publication). The single approval authorizes the parent's npm-release gates, the npm children's gates (until the approval receipt lands), and the mac-release gates; ClawHub gates are never approved.
  • Builds on the existing owners: pnpm ci:full-release (request-file reconcile on resume, pnpm frv continue --failed at most twice), pnpm release:candidate (its printed publish command is parsed, never re-derived), openclaw-npm-dist-tags.yml, openclaw-macos-validate.yml / openclaw-macos-publish.yml, openclaw-stable-main-closeout.yml.
  • The orchestrator never approves or cancels a child run (the API cannot prove which parent dispatched one): it approves only the recorded parent's npm-release gate and prints the exact child-approval and stale-child sweep commands (once per run id) until the approval receipt (feat(release): one approval per release via an attested parent approval receipt #157911) and self-sweeping parent (fix(release): let one publish parent dispatch finish #157937, sweep_superseded_children) are present at the tooling SHA. Runs dispatched on main are reconciled by workflow path, ref, the operator's own login (gh api user), and a [-60 s, +10 min] window; two matches refuse. A state.lock (pid) refuses a second release:stable on the same state directory; a dead owner's lock is replaced through the same exclusive-create loop.
  • Capability probes for the concurrent round-2 PRs, each falling back to today's manual command: parent-owned beta dist-tag sync (sync_beta_to_stable in the tooling publisher), parent approval receipt (openclaw-release-approval-v1), closeout resolving waivers from sealed publish evidence (published_stable_soak_waiver on main).
  • Every refusal prints Refused: <reason> and Next: with the exact commands (compat inventory PR, notarization resume, appcast PR, closeout PR, publish preflight for resume ids) ending in the resume command; exit 2.
  • Docs: RELEASING.md fast path leads with the orchestrator and keeps the manual steps as "Manual fallback"; regular-release.md and the release-openclaw-ci skill point at it.

Evidence

  • test/scripts/release-stable.test.ts + release-stable-post.test.ts (fake gh/git/npm/pnpm on PATH, real CLI process): 36 tests covering dry-run through all seven phases without execution or state writes, cut refusals and branch creation, tooling-tag reuse, FRV continue budget, waiver composition, quoted candidate input parsing, single dispatch on resume, stale-child sweep, npm-release-only approvals, receipt-based child-gate suppression, parent failure before npm visibility, beta sync fallback, GitHub flip, compat-inventory refusal, notarization resume command, appcast PR refusal, closeout asset completion, --from macos overrides, corrupt state refusal, gh GET retry vs single mutation attempt, cross-process state lock (live owner refused, stale owner replaced), other-release bot children and human/push runs never swept or approved, no child POST ever, the manual approval line printed once for this release's waiting child and never for another release's or an older parent's, ambiguous main-ref dispatch refused, actor/path/event/time mismatches not adopted. Deferred findings: release:stable orchestrator follow-ups (beta floor, failed-publisher closeout, late-main closeout, dispatch identity) #157959.
  • pnpm tsgo:scripts, pnpm tsgo:test:root, typed oxlint on the touched files, pnpm deadcode:exports, serialized pnpm check:changed on the rebased tree.
  • No real dispatches were made; the only live probe was gh release view --json isLatest (unsupported field, so the CLI reads isDraft,tagName).

pnpm release:stable <version> drives one regular stable release as a
resumable state machine (cut, validate, publish, sync-beta, flip-github,
macos, closeout) over the existing helpers, with two operator prompts,
--from/--status/--dry-run, capability probes for the concurrent publish
parent, approval receipt, and closeout changes, and Next: commands on
every refusal. RELEASING.md leads with it and keeps the manual fallback.
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL labels Sep 25, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 25, 2026, 2:31 AM ET / 06:31 UTC (Revision 4).

ClawSweeper review

What this changes

Adds a resumable stable-release command that records phase state and coordinates existing validation, npm, GitHub, macOS, and closeout workflows, with tests and operator guidance.

Merge readiness

⛔ Blocked before merge - 16 items remain

Keep open. Current main has no resumable stable-release command, and this branch remains useful. The latest head removes automatic child-run mutations, but its default path fails an existing release gate and its run approval and recovery paths still have blocking gaps.

Priority: P2
Reviewed head: 0221ba3c9bc7bf090eac801e13c233a40905d35f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The coordinator is purposeful and substantially tested, but a default-path refusal and an unverified release-approval boundary make this head unready.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: Authority-chain proof required: The changed release command saves operator approval and can POST deployment approvals for macOS runs, but the PR supplies fake-command CLI tests and says no real dispatch occurred. Show an allowed run and a substituted or different-release run at the production approval boundary, with rejection before the latter's GitHub POST; redact credentials, private endpoints, and other private data. The new versioned state file has no predecessor on current main, so no existing state format needs migration. Updating the PR body with proof should trigger re-review; if it does not, ask a maintainer to comment @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🧂 unranked krab (1/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: Authority-chain proof required: The changed release command saves operator approval and can POST deployment approvals for macOS runs, but the PR supplies fake-command CLI tests and says no real dispatch occurred. Show an allowed run and a substituted or different-release run at the production approval boundary, with rejection before the latter's GitHub POST; redact credentials, private endpoints, and other private data. The new versioned state file has no predecessor on current main, so no existing state format needs migration. Updating the PR body with proof should trigger re-review; if it does not, ask a maintainer to comment @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 13 items Current main lacks this command: Current main has release:candidate and ci:full-release, but no release-stable entrypoint; the listed new orchestrator paths are absent from its tree.
Existing waiver gate: The unchanged release gate requires stable soak-waiver text to start with the target version; the candidate preflight evaluates this gate.
Default waiver fails that gate: The new default text begins with “Operator-approved by” and is passed to release:candidate, so a normal invocation cannot pass the version-prefix check.
Findings 7 actionable findings [P1] Prefix the generated soak waiver with the release version
[P1] Verify resumed macOS run identity before approving its gate
[P1] Bind reconciled workflow runs to exact release inputs
Security Needs attention Unbound macOS deployment approval: A resumed run ID or a loosely reconciled main workflow run can reach mac-release approval under the saved publication approval even if it belongs to another release.

How this fits together

OpenClaw's release tooling takes a selected version, source commit, operator approval, and validation evidence, then dispatches publication workflows. The new command sits above existing release helpers and records progress so an operator can resume after a failure.

flowchart LR
A[Version and operator choices] --> B[Saved release state]
B --> C{Next release phase}
C --> D[Validation and candidate helpers]
C --> E[GitHub and npm workflows]
D --> F[Published release]
E --> F
F --> G[Main closeout evidence]
Loading

Decision needed

Question Recommendation
May a saved publication approval authorize automatic mac-release deployment approvals in openclaw/releases after each run's tag, source, and workflow identity are verified? Keep macOS gates manual: Print the exact verified macOS gate commands and leave each final approval to the release operator.

Why: That choice delegates a release approval across repositories and across resumptions; contributor intent alone does not settle the intended authority boundary.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: Authority-chain proof required: The changed release command saves operator approval and can POST deployment approvals for macOS runs, but the PR supplies fake-command CLI tests and says no real dispatch occurred. Show an allowed run and a substituted or different-release run at the production approval boundary, with rejection before the latter's GitHub POST; redact credentials, private endpoints, and other private data. The new versioned state file has no predecessor on current main, so no existing state format needs migration. Updating the PR body with proof should trigger re-review; if it does not, ask a maintainer to comment @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Prefix the generated soak waiver with the release version (P1) - The default waiver begins with Operator-approved by, but the existing candidate preflight requires a stable waiver to begin with the target version. A normal release:stable invocation therefore refuses before publication unless the operator supplies a replacement waiver.
  • Verify resumed macOS run identity before approving its gate (P1) - Late discovery: --from macos accepts replacement run IDs, and this call approves their mac-release gate before even reading run metadata. A mistaken or different-release ID can receive this release's approval; check the current tag, source, workflow, and run authority before the POST.
  • Bind reconciled workflow runs to exact release inputs (P1) - For workflows dispatched on main, a unique run from the same actor and workflow inside the time window is accepted when its title has no version. Another release's run can be adopted, counted as success, or passed into macOS approval. Require an authenticated tag/input binding or refuse uncertain reconciliation.
  • Treat a newer beta tag as already above the floor (P2) - The release ledger intentionally preserves a beta newer than latest, but exact equality here dispatches another sync and can time out while the correct newer beta remains in place.
  • Permit verified failed-publisher closeout recovery (P2) - The documented closeout workflow accepts a failed parent after npm and Docker publication are independently verified. This unconditional refusal prevents the orchestrator from completing that supported recovery path.
  • Allow closeout after main advances to a later stable (P2) - Release policy permits late closeout on a later stable main version while requiring the exact shipped notes. This equality check rejects that supported case and suggests recovery that could downgrade the active train.
  • Remove a stale lock without deleting a replacement owner's lock (P2) - The content check and rmSync are separate operations. If another process replaces the dead lock between them, this process deletes the new owner's lock and can acquire a second lock while that owner is running.
  • Resolve security concern: Unbound macOS deployment approval - A resumed run ID or a loosely reconciled main workflow run can reach mac-release approval under the saved publication approval even if it belongs to another release.
  • Resolve merge risk (P1) - The new default selects beta-profile validation and composes a soak waiver, changing the documented strict stable default without a recorded release-owner acceptance of that default.
  • Resolve merge risk (P1) - Until the approval-receipt and self-sweeping publisher changes land at the selected tooling SHA, child approvals and stale-child cleanup remain manual operator steps despite the two-prompt fast-path description.
  • Resolve merge risk (P1) - The available evidence does not show an allowed macOS approval and a different-release or substituted run being rejected before GitHub deployment I/O.
  • Complete next step (P2) - Fix the seven findings, obtain the release owner's approval-boundary decision, and add redacted allowed and forbidden final-effect proof before merge.
  • Improve patch quality - Repair the version-bound waiver, run identity checks, documented recovery cases, and stale-lock race on this branch.
  • Improve patch quality - Add redacted final-effect proof for an authorized macOS run and the nearest different-release or substituted run, including rejection before GitHub approval I/O.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Prefix the generated soak waiver with the release version — scripts/lib/release-stable-phases.mts:341
  • [P1] Verify resumed macOS run identity before approving its gate — scripts/lib/release-stable-phases-post.mts:175-178
  • [P1] Bind reconciled workflow runs to exact release inputs — scripts/lib/release-stable-workflows.mts:143-160
  • [high] Unbound macOS deployment approval — scripts/lib/release-stable-phases-post.mts:176
Agent review details

Security

Needs attention: Cross-repository macOS deployment approval can target a supplied or wrongly adopted run without verifying its release identity before GitHub I/O.

PR surface

Tests +1542, Docs +71, Config +1, Other +2276. Total +3890 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 1542 0 +1542
Docs 3 71 0 +71
Config 1 1 0 +1
Generated 0 0 0 0
Other 5 2276 0 +2276
Total 13 3890 0 +3890

Review metrics

Metric Value Why it matters
Implementation and test growth production +2,276 lines, tests +1,539 lines The release-speed problem explains a new coordinator, but this amount of new release authority warrants direct boundary proof and focused owner review.

Stored data model

Persistent data-model change detected: serialized state: scripts/lib/release-stable-state.mts, unknown-data-model-change: scripts/lib/release-stable-state.mts. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Root-cause cluster

Relationship: canonical
Canonical: #157941
Summary: The open follow-up issue tracks behavior in this command; two other open PRs add publisher capabilities that the command probes but do not replace it.

Members:

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

Merge-risk options

Maintainer options:

  1. Repair before merge (recommended)
    Correct the waiver and documented recovery paths, bind all adopted and supplied run IDs to this release, preserve lock ownership, and prove rejection before deployment I/O.

Technical review

Best possible solution:

Keep one resumable command over the existing release helpers, use strict stable validation unless the operator explicitly selects a version-bound fast-path waiver, and verify each resumed or adopted run's release identity before acting on it.

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

Yes, from source: the default waiver fails the existing version-prefix gate, and a substituted macOS run ID reaches deployment approval before run metadata is checked. This read-only review did not execute the release command.

Is this the best way to solve the issue?

No in its current form. Coordinating the existing helpers is a maintainable direction, but the default waiver, run identity, and documented recovery paths need repair before it can safely become the operator fast path.

Full review comments:

  • [P1] Prefix the generated soak waiver with the release version — scripts/lib/release-stable-phases.mts:341
    The default waiver begins with Operator-approved by, but the existing candidate preflight requires a stable waiver to begin with the target version. A normal release:stable invocation therefore refuses before publication unless the operator supplies a replacement waiver.
    Confidence: 0.97
  • [P1] Verify resumed macOS run identity before approving its gate — scripts/lib/release-stable-phases-post.mts:175-178
    Late discovery: --from macos accepts replacement run IDs, and this call approves their mac-release gate before even reading run metadata. A mistaken or different-release ID can receive this release's approval; check the current tag, source, workflow, and run authority before the POST.
    Confidence: 0.94
    Late finding: first raised on code an earlier review cycle already covered.
  • [P1] Bind reconciled workflow runs to exact release inputs — scripts/lib/release-stable-workflows.mts:143-160
    For workflows dispatched on main, a unique run from the same actor and workflow inside the time window is accepted when its title has no version. Another release's run can be adopted, counted as success, or passed into macOS approval. Require an authenticated tag/input binding or refuse uncertain reconciliation.
    Confidence: 0.9
  • [P2] Treat a newer beta tag as already above the floor — scripts/lib/release-stable-phases-post.mts:40
    The release ledger intentionally preserves a beta newer than latest, but exact equality here dispatches another sync and can time out while the correct newer beta remains in place.
    Confidence: 0.96
  • [P2] Permit verified failed-publisher closeout recovery — scripts/lib/release-stable-phases-post.mts:406-414
    The documented closeout workflow accepts a failed parent after npm and Docker publication are independently verified. This unconditional refusal prevents the orchestrator from completing that supported recovery path.
    Confidence: 0.94
  • [P2] Allow closeout after main advances to a later stable — scripts/lib/release-stable-phases-post.mts:431-436
    Release policy permits late closeout on a later stable main version while requiring the exact shipped notes. This equality check rejects that supported case and suggests recovery that could downgrade the active train.
    Confidence: 0.95
  • [P2] Remove a stale lock without deleting a replacement owner's lock — scripts/lib/release-stable-state.mts:188-190
    The content check and rmSync are separate operations. If another process replaces the dead lock between them, this process deletes the new owner's lock and can acquire a second lock while that owner is running.
    Confidence: 0.87

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a useful operator improvement that is not yet shipped, with bounded but blocking release-tooling defects.
  • merge-risk: 🚨 automation: The introduced command can refuse the default release path or adopt the wrong workflow run during publication and recovery.
  • merge-risk: 🚨 security-boundary: Supplied or loosely reconciled run IDs can reach cross-repository deployment approval before release identity is checked.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦪 silver shellfish and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Authority-chain proof required: The changed release command saves operator approval and can POST deployment approvals for macOS runs, but the PR supplies fake-command CLI tests and says no real dispatch occurred. Show an allowed run and a substituted or different-release run at the production approval boundary, with rejection before the latter's GitHub POST; redact credentials, private endpoints, and other private data. The new versioned state file has no predecessor on current main, so no existing state format needs migration. Updating the PR body with proof should trigger re-review; if it does not, ask a maintainer to comment @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [high] Unbound macOS deployment approval — scripts/lib/release-stable-phases-post.mts:176
    A resumed run ID or a loosely reconciled main workflow run can reach mac-release approval under the saved publication approval even if it belongs to another release.
    Confidence: 0.93

What I checked:

  • Current main lacks this command: Current main has release:candidate and ci:full-release, but no release-stable entrypoint; the listed new orchestrator paths are absent from its tree. (package.json:1966, aee60fd7629b)
  • Existing waiver gate: The unchanged release gate requires stable soak-waiver text to start with the target version; the candidate preflight evaluates this gate. (scripts/lib/release-publish-gates.mts:109, aee60fd7629b)
  • Default waiver fails that gate: The new default text begins with “Operator-approved by” and is passed to release:candidate, so a normal invocation cannot pass the version-prefix check. (scripts/lib/release-stable-phases.mts:341, 0221ba3c9bc7)
  • Run approval precedes identity verification: The macOS wait path approves a run's mac-release deployment before reading its run metadata; resume flags can replace the saved validate and preflight run IDs. (scripts/lib/release-stable-phases-post.mts:176, 0221ba3c9bc7)
  • Dispatch reconciliation is not release-bound: A unique run can be adopted from workflow path, main ref, actor, and time window even when its title contains no version; the selected ID can later reach a deployment approval. (scripts/lib/release-stable-workflows.mts:143, 0221ba3c9bc7)
  • Cross-repository workflow contract: The repository identity was verified through its GitHub API. Its macOS publish workflow takes a required tag, supports distinct preflight and publication modes, and has a mac-release environment; its workflow does not declare a versioned run-name. (.github/workflows/openclaw-macos-publish.yml:4, 76e51f9a5fee)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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-09-25T05:50:49.304Z sha f86e723 :: needs real behavior proof before merge. :: [P1] Bind child approvals and cleanup to this release parent | [P2] Correlate workflow runs with their exact dispatch | [P2] Treat a newer beta tag as synchronized | [P2] Support the documented failed-publisher closeout recovery | [P2] Allow closeout after main advances to a later stable version
  • reviewed 2026-09-25T05:57:08.628Z sha f86e723 :: needs real behavior proof before merge. :: [P1] Bind child approvals and cleanup to this release parent | [P2] Correlate workflow runs with their exact dispatch | [P2] Treat a newer beta tag as synchronized | [P2] Support the documented failed-publisher closeout recovery | [P2] Allow closeout after main advances to a later stable version
  • reviewed 2026-09-25T06:06:30.064Z sha 6e9e946 :: needs real behavior proof before merge. :: [P1] Bind child actions to the exact publish parent | [P1] Reconcile runs by their exact dispatch identity | [P2] Accept a newer beta tag as synchronized | [P2] Honor verified failed-publisher closeout recovery | [P2] Allow closeout after main advances | [P2] Make stale-lock takeover preserve the new owner

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 25, 2026
…lock the state directory

Sweep and approve only bot-dispatched children whose head_branch is this
release's protected tooling tag, selected by exact workflow path (the core
OpenClaw NPM Release child was missed by the name regex), and refuse a
second release:stable process on the same state directory.
@steipete

Copy link
Copy Markdown
Contributor Author

P1s fixed in the new head (child sweep/approval bound to this release's tooling tag + exact workflow path; cross-process state lock). Deferred P2 follow-ups, tracked for a separate PR: (1) verify dispatched inputs/source identity when reconciling a main-dispatched run id, (2) treat a beta dist-tag newer than the release as already synchronized instead of dispatching the sync, (3) support the documented failed-publisher closeout recovery (allow_failed_publish_recovery=true) instead of refusing on a failed parent, (4) accept a later stable version on main at closeout while requiring the exact shipped changelog.

…ispatch reconciliation to the operator

The API cannot prove which publish parent dispatched a child, so the
orchestrator no longer approves or cancels children: it approves only the
recorded parent's npm-release gate and prints the exact child-approval and
stale-child sweep commands until the approval receipt and self-sweeping
parent are present at the tooling SHA. Runs dispatched on main are
reconciled by workflow path, ref, the operator's login, and a bounded
window, refusing on ambiguity; stale-lock takeover retries the exclusive
create.
@steipete

Copy link
Copy Markdown
Contributor Author

Head 0221ba3: the orchestrator no longer mutates any child run (parent gate only; child approval and stale-sweep commands are printed, exact and once per run), main-ref dispatch reconciliation is bound to workflow path, ref, the operator's login and a bounded window with an ambiguity refusal, and stale-lock takeover retries the exclusive create. Remaining P2 findings are tracked in #157959 for a follow-up PR.

@steipete

Copy link
Copy Markdown
Contributor Author

Landing evidence for head 0221ba3: check-lint, check-prod-types, check-test-types green; the two new suites ran in checks-node-compact-small-39 (success: release-stable.test.ts 19 tests, release-stable-post.test.ts 17 tests). The only red job, checks-node-compact-small-40, fails on test/scripts/ci-node-test-plan-hosted-tail.test.ts (expected 71 to be <= 70, hosted job cap) which is the CI inventory condition #157967 fixes (71 -> 63 jobs); the planner reports 70 jobs locally with and without this PR's routing entries. ClawSweeper's remaining findings are tracked in #157959.

@steipete
steipete merged commit 878ee97 into main Sep 25, 2026
223 of 229 checks passed
@steipete
steipete deleted the release-speed/orchestrator branch September 25, 2026 06:46
vincentkoc added a commit that referenced this pull request Sep 25, 2026
…4-prep

* commit 'cb64558f80bcf053ee3f0bf87a60016aa789a287':
  fix(macos): stop repeated Keychain prompts after access is denied (#157951)
  test(macos): await cron fixture readiness before polling
  feat(release): add the resumable release:stable orchestrator (#157941)
  fix(plugins): report retained-work settlement once (#157836)
  fix(doctor): preserve current sessions after restored-index replay (#157615)
  chore(ui): refresh control ui locales (#157978)
steipete added a commit that referenced this pull request Sep 25, 2026
* feat(release): add the resumable release:stable orchestrator

pnpm release:stable <version> drives one regular stable release as a
resumable state machine (cut, validate, publish, sync-beta, flip-github,
macos, closeout) over the existing helpers, with two operator prompts,
--from/--status/--dry-run, capability probes for the concurrent publish
parent, approval receipt, and closeout changes, and Next: commands on
every refusal. RELEASING.md leads with it and keeps the manual fallback.

* fix(release): bind release:stable child gates to the tooling tag and lock the state directory

Sweep and approve only bot-dispatched children whose head_branch is this
release's protected tooling tag, selected by exact workflow path (the core
OpenClaw NPM Release child was missed by the name regex), and refuse a
second release:stable process on the same state directory.

* fix(release): stop release:stable from mutating child runs and bind dispatch reconciliation to the operator

The API cannot prove which publish parent dispatched a child, so the
orchestrator no longer approves or cancels children: it approves only the
recorded parent's npm-release gate and prints the exact child-approval and
stale-child sweep commands until the approval receipt and self-sweeping
parent are present at the tooling SHA. Runs dispatched on main are
reconciled by workflow path, ref, the operator's login, and a bounded
window, refusing on ambiguity; stale-lock takeover retries the exclusive
create.

(cherry picked from commit 878ee97)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
…w#157941)

* feat(release): add the resumable release:stable orchestrator

pnpm release:stable <version> drives one regular stable release as a
resumable state machine (cut, validate, publish, sync-beta, flip-github,
macos, closeout) over the existing helpers, with two operator prompts,
--from/--status/--dry-run, capability probes for the concurrent publish
parent, approval receipt, and closeout changes, and Next: commands on
every refusal. RELEASING.md leads with it and keeps the manual fallback.

* fix(release): bind release:stable child gates to the tooling tag and lock the state directory

Sweep and approve only bot-dispatched children whose head_branch is this
release's protected tooling tag, selected by exact workflow path (the core
OpenClaw NPM Release child was missed by the name regex), and refuse a
second release:stable process on the same state directory.

* fix(release): stop release:stable from mutating child runs and bind dispatch reconciliation to the operator

The API cannot prove which publish parent dispatched a child, so the
orchestrator no longer approves or cancels children: it approves only the
recorded parent's npm-release gate and prints the exact child-approval and
stale-child sweep commands until the approval receipt and self-sweeping
parent are present at the tooling SHA. Runs dispatched on main are
reconciled by workflow path, ref, the operator's login, and a bounded
window, refusing on ambiguity; stale-lock takeover retries the exclusive
create.
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 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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant