Skip to content

feat(release): publish npm children in npm-publish behind the single parent approval - #158500

Merged
steipete merged 6 commits into
mainfrom
release-speed/npm-publish-env
Sep 26, 2026
Merged

steipete merged 6 commits into
mainfrom
release-speed/npm-publish-env

Conversation

@steipete

@steipete steipete commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

#157911 made the parent's npm-release approval mint an attested receipt, which lets the ClawHub child run without its own gate. The npm children still ran their publish jobs in npm-release, because the npm trusted publishers were bound to that environment. As a result, every release still needed separate human approvals on the plugin npm child and the core npm child.

The coordinator created a new npm-publish environment with no reviewers and a deployment policy that admits only release-publish/* tags (protected by ruleset 22730712). The coordinator is rebinding all 99 npm trusted publishers to it: 4 on openclaw-npm-release.yml (openclaw plus the gateway packages) and 95 on plugin-npm-release.yml. This PR moves the workflows so that one parent approval covers the whole release. The registry rebinding and this merge must land together.

Summary

  • Children (openclaw-npm-release.yml, plugin-npm-release.yml): the OIDC publish jobs (publish_openclaw_npm, publish_plugins_npm) and plugin trusted_publisher_preflight now run in environment: npm-publish on every route.

    • Human approval moves into small approve_openclaw_npm_release / approve_plugins_npm_release jobs (environment: npm-release). These run only when the parent receipt did not verify (direct, manual, or recovery dispatch) and are skipped when parent_approval == 'receipt'.
    • Publish jobs gate on always() && !cancelled() && validation success && (approval success || (approval skipped && parent_approval == 'receipt')).
  • Parent authorization, shared helper: awaitClawHubParentAuthorization becomes one awaitParentAuthorization, parameterized by artifact name. ClawHub keeps its child-bound v2 artifact and detached behavior.

    • New wait-npm-authorization command: on the receipt route, runs immediately before npm publish and the bootstrap-token publish.
    • It requires the parent attempt's approval receipt artifact and a still-live parent attempt.
  • Extended-stable: core receipt verification now runs from a trusted checkout of github.workflow_sha, so parent-dispatched extended-stable publishes also need only the parent approval. Before this, the receipt step was skipped on that route.

  • Ref check fails fast: real (non-preflight) publishes and OIDC preflight require a release-publish/<sha12>-<n> ref before anyone approves anything. Admissions that npm-publish can no longer serve are removed: main, release/*, extended-stable/* branch publishes, and Tideclaw alpha branches.

    • Preflight-only routes are unchanged.
    • The plugin tooling-identity check now runs on every dispatch, so the tag must also resolve to the workflow SHA.
  • Parent (openclaw-release-publish.yml, scripts/lib/release-publish-children.sh): npm children are awaited without approving or printing gates.

    • The unused approved_environment parameter and its early return are deleted.
    • cleanup_waiting_npm_children no longer rejects deployments.
    • Superseded-child rejection and the ClawHub bootstrap clawhub-plugin-bootstrap approval are unchanged.
    • The parent's own npm-release approval and approve_github_release are unchanged.
  • release:stable: new capability childNpmPublishEnvironment, detected from the tooling SHA's openclaw-npm-release.yml. The orchestrator no longer prints child approval commands on npm-publish tooling, and still prints them for older tooling. parentApprovalReceipt had no other consumer and is removed; state files from an in-flight release that still carry it load and trigger a re-probe.

  • npm-token bootstrap route: covers the 4 plugins that have no trusted publisher (babelfish, crabbox-plugin, onnx, typesafe). It keeps working because NPM_TOKEN is a repository secret; neither environment has environment secrets.

  • Docs and skills: RELEASING.md, regular-release.md, publication-recovery.md, extended-stable-publish.md, first-package.md, release-openclaw-ci (Publish children), plugin-testing, and nightly. They now describe one parent approval, the npm-publish environment and its tag policy, and trusted publishers bound to npm-publish. Manual child dispatch still needs npm-release and must use a release-publish/* tag. Placeholder and bootstrap summaries now point operators at npm-publish.

  • Live parent re-verified right before npm publish (ClawSweeper P1): on the receipt route, where no human approved the child, every final plugin publish step now verifies the parent with the live-only active policy. That covers the early artifact step, the OIDC publish, and the token-bootstrap publish. The parent run and attempt must be queued, requested, pending, waiting, or in_progress with a null conclusion; a completed parent refuses with any conclusion.

    • Core's Publish step already used active on the bot route immediately before openclaw-npm-publish.sh --publish.
    • active-or-failure stays only on the human-approved route, where children may still finish after a parent fails. Direct human recovery keeps manual-recovery.

Maintainer decisions (release owner, authorized by Peter)

  1. Branch-based manual npm recovery is replaced by tag-based recovery. Operators mint the tooling tag with --workflow-sha (ensureReleasePublishToolingTag, feat(release): mint the protected tooling tag from a trusted main SHA #157896). publication-recovery.md documents this.
  2. The registry cutover is coordinated by the release owner. All 99 trusted publishers are rebound to npm-publish in the same window as this merge and verified with an npm trust list readback: 4 core packages on openclaw-npm-release.yml and 95 plugins on plugin-npm-release.yml. The 4 plugins without a trusted publisher (babelfish, crabbox-plugin, onnx, typesafe) keep publishing through the token-bootstrap route.
  3. Live authority-chain proof comes from the first real publish after merge (the next alpha or beta) and is recorded as a follow-up. For now, fixture-level tests prove both the allowed path and the failed-parent path.

Callers checked

Caller Dispatch ref Result
Parent openclaw-release-publish.yml (beta/stable/extended-stable) release-publish/* tag Publishes
release:stable, candidate checklist, release:publish-preflight parent at the minted release-publish/* tag Publishes
openclaw-release-ready.mjs protected tooling tag, preflight_only=true Unaffected
Manual extended-stable recovery (skill) was main, now a release-publish/* tag + release_candidate_branch Publishes after the npm-release approval job
Plugin-testing / RELEASING preflight examples main, preflight_only=true Unaffected (no environment)
stable-publish-recovery.mjs, openclaw-npm-resume-run.mts read-only verifiers Unaffected
Tideclaw alpha parent (nightly skill) tideclaw/alpha/* branch Blocked (see below)

Tideclaw alpha blocker (not caused by this PR): Tideclaw alpha publication is already broken on main. The parent's receipt create (refIdentity) rejects tideclaw/alpha/* refs, and alpha branch SHAs are not reachable from main, so ensureReleasePublishToolingTag cannot mint a tooling tag for them. This PR does not widen the environment policy. The nightly skill now records the blocker instead of instructing a dispatch.

Evidence

  • node scripts/run-vitest.mjs run --maxWorkers=2 across 9 suites: 277/277 passed (182s wall). The suites: release-approval-receipt, clawhub-parent-authorization, release-approval-workflows, release-publish-children, openclaw-npm-extended-stable-workflow, plugin-npm-extended-stable-workflow, release-stable, release-stable-post, release-runner-routing.
  • Per-file wall times (--maxWorkers=1):
File Tests Wall
release-approval-receipt 61 20.9s
clawhub-parent-authorization 16 13.3s
release-approval-workflows 10 8.3s
release-publish-children 12 31.6s
openclaw-npm-extended-stable-workflow 37 9.9s
plugin-npm-extended-stable-workflow 61 51.5s
release-stable 19 100.6s
release-stable-post 17 49.8s
release-runner-routing 46 10.1s
  • The new and changed cases add only a few seconds on top of those suites.
  • package-acceptance-workflow.test.ts (runs serially; its unchanged 420s planner cases dominate): run by describe block.
    • "package artifact reuse": 275 passed, 749s.
    • "package acceptance workflow": 161 passed, 800s.
    • Focused rerun of every changed and previously failing case, including the publish-wait, child-approval, Android, and frozen-source cases: 39 passed.
    • 4 "Complete publish workflows" cases timed out at the fixture's 30s spawn limit while the host sat at load ~90. Run at the same time against unmodified origin/main under identical load, base and branch both passed all four with equal timings (about 9s each), so these failures are host load, not this change.
    • The "frozen admission workflow barriers" block was stopped by the harness at 30 minutes; its changed and previously failing cases are included in the focused rerun above.
  • Live-parent regressions in release-approval-workflows.test.ts cover all three final publish steps (core Publish, plugin OIDC, plugin bootstrap). The receipt route resolves to active, a parent that failed or succeeded between the authorization wait and the publish is refused, a live parent is admitted, and the parent check precedes the npm mutation in each script. The file passes 13/13 in 22s wall (--maxWorkers=1). These cases fail against the previous active-or-failure policy.
  • After merging current main (it conflicted with fix: restore blocking release validation and remove publication waivers #157864 and docs: keep release policy public and maintainer procedures in skills #156946): 7 affected suites 219/219 passed; the touched package-acceptance policy cases passed.
  • pnpm check:workflows: passed (zizmor, CI Git owner, composite interpolation).
  • pnpm check:changed (after a fresh frozen-lockfile install): every lane passed (conflict markers, line-cap ratchet, formatting, core tsgo boundary, script and test-root typecheck, Knip dead-export scan, script lint) except test-root lint. Its two findings, a test-only TS2532 and three unnecessary conversions, are fixed; a targeted oxlint rerun on both files is clean. CI is authoritative for the remaining lanes on this head.
  • Live proof is not possible until the coordinator rebinds the trusted publishers to npm-publish. The workflows and the registry must switch together.

…parent approval

The parent's npm-release approval already mints an attested receipt. The npm
children now publish in the npm-publish environment (release-publish/* tags
only, no reviewers) where the npm trusted publishers are rebound, and skip
their own human gate when the receipt verifies. Direct, manual, and recovery
dispatch keeps a separate npm-release approval job. On the receipt route the
publish job waits for the parent attempt's authorization through the shared
awaiter that ClawHub uses, which also requires the parent to still be live.

Real publishes and OIDC preflight fail fast unless dispatched from a protected
release-publish tag. Extended-stable core receipts now verify from trusted
tooling. The parent no longer approves or prints npm child gates, and
release:stable detects npm-publish tooling before printing child approval
commands.
@steipete steipete added the release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) label Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 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.

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: L labels Sep 26, 2026
@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: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 25, 2026, 10:14 PM ET / September 26, 2026, 02:14 UTC (Revision 4).

ClawSweeper review

What this changes

The branch moves core and plugin npm publication to a tag-restricted GitHub environment, lets a verified parent approval replace child approvals, and updates release recovery, saved state, tests, and operator guidance.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep this PR open. Current main still requires separate npm child approvals, and the branch addresses that remaining release workflow. The npm registry cutover and final-effect authority proof remain unresolved.

Priority: P2
Reviewed head: 333b7936989dcb9cc426c5ca126cb159dc7fd4c6
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The release design and focused tests are useful, but registry cutover evidence and final-effect authority proof remain outstanding.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: Authority-chain proof required: The changed child workflows and publish scripts have controlled GitHub-response and workflow tests, but no real child-to-npm trace shows an approved parent reaching publication and a completed or revoked parent refused before I/O. The PR says live proof awaits registry rebinding. The legacy saved-state reader and fixture support the separate state upgrade. 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 🦐 gold shrimp (3/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 child workflows and publish scripts have controlled GitHub-response and workflow tests, but no real child-to-npm trace shows an approved parent reaching publication and a completed or revoked parent refused before I/O. The PR says live proof awaits registry rebinding. The legacy saved-state reader and fixture support the separate state upgrade. 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 9 items Current-main behavior: At the fetched main revision, the core npm publish job still uses the npm-release environment; the proposed npm-publish route is absent.
Introduced approval route: The proposed core publish job requires successful validation and either its human approval job or a skipped approval paired with a verified parent receipt.
Final publish checks: The receipt route selects the active-parent policy in the plugin OIDC and token-bootstrap publish steps. Core checks parent identity before each publish invocation. This addresses the earlier P1 source finding.
Findings None None.
Security Needs attention Unproven receipt-only publication boundary: The receipt route skips child approval. Controlled tests check parent state and source ordering, but no production-path trace shows a stale parent rejected before npm I/O.

How this fits together

OpenClaw's release parent receives a qualified candidate and human approval, then dispatches npm child workflows. Those children validate publication authority before sending immutable packages to npm.

flowchart LR
A[Qualified candidate] --> B[Parent approval]
B --> C[Approval receipt]
C --> D{Child authorization}
E[Direct recovery approval] --> D
D --> F[Live parent check]
F --> G[npm publish environment]
G --> H[npm registry]
Loading

Decision needed

Question Recommendation
Will the release owner explicitly override pre-merge final-effect proof for the coordinated npm registry cutover, or require an allowed-and-stale-parent production-path trace first? Controlled cutover: Verify all 99 bindings, record an explicit proof override, and capture allowed and stale-parent outcomes on the first controlled publication.

Why: The PR records intent to collect live proof on the first publish after merge, but the authority proof gate has no recorded override and the external registry bindings must change in the same window.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: Authority-chain proof required: The changed child workflows and publish scripts have controlled GitHub-response and workflow tests, but no real child-to-npm trace shows an approved parent reaching publication and a completed or revoked parent refused before I/O. The PR says live proof awaits registry rebinding. The legacy saved-state reader and fixture support the separate state upgrade. 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.
  • Resolve security concern: Unproven receipt-only publication boundary - The receipt route skips child approval. Controlled tests check parent state and source ordering, but no production-path trace shows a stale parent rejected before npm I/O.
  • Resolve merge risk (P1) - The publish jobs require npm trusted publishers bound to npm-publish. The PR describes 99 registry changes but does not provide a completed readback; switching workflows first could stop npm publication.
  • Resolve merge risk (P1) - A verified parent receipt replaces each child human gate. Controlled tests cover live and completed-parent states, but no production-path trace shows an allowed parent publishing and a completed or revoked parent rejected before final npm I/O.
  • Complete next step (P2) - Confirm all 99 npm trusted-publisher bindings and record an explicit proof override or allowed-and-stale-parent final-effect trace before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [medium] Unproven receipt-only publication boundary — .github/workflows/plugin-npm-release.yml:1862
Agent review details

Security

Needs attention: No concrete bypass was found, but receipt-only publication lacks observed final-effect proof for a completed or revoked parent.

PR surface

Tests +466, Docs +26, Config +4, Other +16. Total +512 across 25 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 10 573 107 +466
Docs 7 61 35 +26
Config 4 101 97 +4
Generated 0 0 0 0
Other 4 62 46 +16
Total 25 797 285 +512

Review metrics

Metric Value Why it matters
Registry bindings 99 planned: 4 core, 95 plugin The new publishing environment depends on a coordinated external npm registry change.
Production and test growth workflows/scripts +20 net lines, tests +466 net lines The production growth serves the stated approval routing; the larger test change uses controlled fixtures.

Merge-risk options

Maintainer options:

  1. Coordinate registry and proof cutover (recommended)
    Confirm all trusted-publisher bindings and record the release-owner proof disposition before switching the workflows.
  2. Pause activation
    Keep the current child approval path until the registry and authority evidence are ready.

Technical review

Best possible solution:

Keep the parent approval as release authority and a separate approval for direct recovery, then activate the new route with verified registry bindings and an explicit final-effect proof disposition.

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

Not applicable: this is a release-workflow improvement. Current main's separate npm child gates establish the existing behavior.

Is this the best way to solve the issue?

Yes, the split direct-recovery approval and tag-restricted publication fit the existing release owner. Activation still depends on the registry readback and an explicit authority-proof disposition.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a release-operator workflow improvement without a demonstrated current user runtime outage.
  • merge-risk: 🚨 automation: npm publication can fail if workflows switch environments before the registry publisher bindings do.
  • merge-risk: 🚨 compatibility: Manual npm recovery changes from branch refs to protected tags, a tradeoff the release owner records as accepted in the PR body.
  • merge-risk: 🚨 security-boundary: The receipt route removes child human approvals and relies on live parent authority at the final publication effect.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • 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 child workflows and publish scripts have controlled GitHub-response and workflow tests, but no real child-to-npm trace shows an approved parent reaching publication and a completed or revoked parent refused before I/O. The PR says live proof awaits registry rebinding. The legacy saved-state reader and fixture support the separate state upgrade. 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:

  • [medium] Unproven receipt-only publication boundary — .github/workflows/plugin-npm-release.yml:1862
    The receipt route skips child approval. Controlled tests check parent state and source ordering, but no production-path trace shows a stale parent rejected before npm I/O.
    Confidence: 0.82

What I checked:

  • Current-main behavior: At the fetched main revision, the core npm publish job still uses the npm-release environment; the proposed npm-publish route is absent. (.github/workflows/openclaw-npm-release.yml:353, 25f4dfa5aff5)
  • Introduced approval route: The proposed core publish job requires successful validation and either its human approval job or a skipped approval paired with a verified parent receipt. (.github/workflows/openclaw-npm-release.yml:360, 333b7936989d)
  • Final publish checks: The receipt route selects the active-parent policy in the plugin OIDC and token-bootstrap publish steps. Core checks parent identity before each publish invocation. This addresses the earlier P1 source finding. (.github/workflows/plugin-npm-release.yml:1862, 333b7936989d)
  • Parent authorization wait: The new npm wait requires the named approval artifact and rechecks that the exact parent attempt is in progress. (scripts/release-approval-receipt.mjs:348, 333b7936989d)
  • Stored-state compatibility: The reader accepts and discards the old capability field, while a missing replacement field triggers a fresh tooling probe; the PR includes a legacy-state fixture exercising that path. (scripts/lib/release-stable-state.mts:103, 333b7936989d)
  • Environment policy: GitHub reports an npm-publish environment with a custom deployment policy admitting release-publish/* tags. This does not verify npm registry trusted-publisher bindings.

Likely related people:

  • Peter Steinberger: Raw commit 25d7402 adds scripts/release-approval-receipt.mjs:21 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 25d74027a95d; files: scripts/release-approval-receipt.mjs)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Record the completed npm trusted-publisher readback for all 99 bindings.
  • Add final-effect evidence for an approved and stale parent, or record an explicit proof override for the controlled first publication.

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-26T00:53:20.493Z sha 5779ff5 :: needs real behavior proof before merge. :: [P1] Require a live parent at each final plugin publish effect
  • reviewed 2026-09-26T01:28:04.609Z sha 4923457 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-26T01:47:05.488Z sha a90e87d :: needs real behavior proof before merge. :: none

…ase-speed/npm-publish-env

# Conflicts:
#	docs/reference/RELEASING.md
#	scripts/lib/release-stable-state.mts
#	test/scripts/release-stable.test-support.ts
#	test/scripts/release-stable.test.ts
On the receipt route no human approves the npm child, so every final plugin
publish step (artifact check, OIDC publish, token-bootstrap publish) now
re-verifies the release parent with the live-only policy immediately before
npm I/O; a parent that completed with any conclusion refuses. The
human-approved route keeps active-or-failure, and core's publish step was
already live-only. Document tag-based manual recovery.
@openclaw-barnacle openclaw-barnacle Bot added size: XL and removed docs Improvements or additions to documentation size: L labels Sep 26, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Release-owner cutover record:

  • Registry: all 99 npm trusted publishers bound to this repository were revoked and recreated on environment npm-publish (same workflow file, repository, and publish plus staged-publish permissions), each verified by npm trust list readback: 4 on openclaw-npm-release.yml, 95 on plugin-npm-release.yml. Packages from other repositories and the four bootstrap-token packages without a trusted publisher were left unchanged.
  • Environment npm-publish: no reviewers, deployment policy restricted to release-publish/* tags; ruleset 22730712 now covers creation, update and deletion of every release-publish/** tag.
  • Merged with checks-node-compact-small-41 red in test/scripts/crabbox-staging.test.ts ("Unexpected end of JSON input"): the file is untouched by this PR and main CI is green on the same suite; not rerun to force green.
  • Live authority-chain proof comes from the first real publish after this merge.

@steipete
steipete merged commit 68f7ba1 into main Sep 26, 2026
158 of 161 checks passed
@steipete
steipete deleted the release-speed/npm-publish-env branch September 26, 2026 03:10
steipete added a commit that referenced this pull request Sep 26, 2026
…parent approval (#158500)

* feat(release): publish npm children in npm-publish behind the single parent approval

The parent's npm-release approval already mints an attested receipt. The npm
children now publish in the npm-publish environment (release-publish/* tags
only, no reviewers) where the npm trusted publishers are rebound, and skip
their own human gate when the receipt verifies. Direct, manual, and recovery
dispatch keeps a separate npm-release approval job. On the receipt route the
publish job waits for the parent attempt's authorization through the shared
awaiter that ClawHub uses, which also requires the parent to still be live.

Real publishes and OIDC preflight fail fast unless dispatched from a protected
release-publish tag. Extended-stable core receipts now verify from trusted
tooling. The parent no longer approves or prints npm child gates, and
release:stable detects npm-publish tooling before printing child approval
commands.

* fix(release): require a live parent before receipt-route npm publication

On the receipt route no human approves the npm child, so every final plugin
publish step (artifact check, OIDC publish, token-bootstrap publish) now
re-verifies the release parent with the live-only policy immediately before
npm I/O; a parent that completed with any conclusion refuses. The
human-approved route keeps active-or-failure, and core's publish step was
already live-only. Document tag-based manual recovery.

* test(release): expect waiting npm child cleanup without gate rejection

* test(release): align plugin npm ref admission fixtures with protected-tag publication

(cherry picked from commit 68f7ba1)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
…parent approval (openclaw#158500)

* feat(release): publish npm children in npm-publish behind the single parent approval

The parent's npm-release approval already mints an attested receipt. The npm
children now publish in the npm-publish environment (release-publish/* tags
only, no reviewers) where the npm trusted publishers are rebound, and skip
their own human gate when the receipt verifies. Direct, manual, and recovery
dispatch keeps a separate npm-release approval job. On the receipt route the
publish job waits for the parent attempt's authorization through the shared
awaiter that ClawHub uses, which also requires the parent to still be live.

Real publishes and OIDC preflight fail fast unless dispatched from a protected
release-publish tag. Extended-stable core receipts now verify from trusted
tooling. The parent no longer approves or prints npm child gates, and
release:stable detects npm-publish tooling before printing child approval
commands.

* fix(release): require a live parent before receipt-route npm publication

On the receipt route no human approves the npm child, so every final plugin
publish step (artifact check, OIDC publish, token-bootstrap publish) now
re-verifies the release parent with the live-only policy immediately before
npm I/O; a parent that completed with any conclusion refuses. The
human-approved route keeps active-or-failure, and core's publish step was
already live-only. Document tag-based manual recovery.

* test(release): expect waiting npm child cleanup without gate rejection

* test(release): align plugin npm ref admission fixtures with protected-tag publication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) 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