Skip to content

fix(release): recover extended-stable plugin publishing without changing the candidate - #151282

Merged
RomneyDa merged 2 commits into
mainfrom
fix/extended-stable-plugin-workflow-recovery
Sep 18, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/extended-stable-plugin-workflow-recovery

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes extended-stable plugin publication getting stuck on frozen candidate-owned tooling after validation. The 2026.7.33 plugin run rejected its tested Codex pin when npm latest changed; trusted main already treats that drift as advisory, but the plugin workflow could not use that recovery path.

User Impact

Release operators can recover plugin publication without changing a validated candidate or its dependency pins. No Gateway runtime or package-version changes. Existing npm environment approvals and artifact/readback checks remain required.

Why This Change Was Made

Permit trusted-main plugin tooling only against the exact canonical extended-stable branch tip, and recheck that tip immediately before each OIDC npm write after the approval wait. Teach trusted-main core publication to consume the successful candidate-bound plugin run after verifying workflow identity and tooling ancestry. REST run titles are not workflow names: resolve the static name through the actual run's workflow ID.

The canonical-branch route remains supported; the core recovery verifier comes from trusted tooling, not the frozen candidate. Extended-stable token bootstrap remains prohibited.

Evidence

  • Live GitHub REST reads confirmed the reported run has a dynamic run title while its workflow resource has the static Plugin NPM Release name.
  • Revised executable fixtures run the production workflow shell and actual tooling-identity verifier, with GitHub responses isolated and npm writes captured. They accept current candidate authority and reject a branch moved after admission before any npm write; accepted writes preserve the attested bytes and do not receive token credentials. This is boundary proof, not a claim of live npm publication.
  • Remote pnpm check:workflows, pnpm tsgo:test:root, and all 148 selected workflow/identity regression tests passed on Blacksmith Testbox. This repairs the previous PR CI test-type failure. The lease run may conclude cancelled when stopped; these are command results.
  • Before/after comparison on the same worker: four assertions fail with the previous workflows (dynamic-name rejection, absent final source check, and moved-candidate publication); all seven targeted cases pass with the repair.
  • Fresh independent autoreview of the complete staged patch: no actionable P0/P1 findings.
  • Earlier initial-repair proof passed 776 selected tests and 23 final core-workflow cases; original recovery regressions failed on the pre-repair baseline.
  • The release candidate remains b60a4e9fa97cddf1869a1866d879b3051783cf12 with its original successful release validation. No publication retry has started.

@clawsweeper

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

@RomneyDa
RomneyDa marked this pull request as ready for review September 18, 2026 00:50
@RomneyDa
RomneyDa requested a review from a team as a code owner September 18, 2026 00:50
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 18, 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: 🚨 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 18, 2026
@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 17, 2026, 10:21 PM ET / September 18, 2026, 02:21 UTC (Revision 3).

ClawSweeper review

What this changes

Allows trusted main release tooling to publish plugins from an unchanged extended-stable candidate, rechecks candidate authority before publication, and validates the resulting evidence for core publication.

Merge readiness

⛔ Blocked before merge - 4 items remain

Both earlier findings are repaired, and current main still lacks this recovery path. The merged July dependency update addresses a narrower problem; its explicit pause on broader recovery work remains a release-owner decision.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful publication-boundary proof and no remaining actionable code findings.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The maintainer-reported Testbox run exercises the production publish shell and actual authority verifier with controlled branch state and captured final npm effects: valid authority preserves bytes without tokens, while moved candidates are rejected before publication. Inspected fixtures substantiate that coverage, and live REST reads confirm the workflow-name contract; no live npm publication is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The maintainer-reported Testbox run exercises the production publish shell and actual authority verifier with controlled branch state and captured final npm effects: valid authority preserves bytes without tokens, while moved candidates are rejected before publication. Inspected fixtures substantiate that coverage, and live REST reads confirm the workflow-name contract; no live npm publication is claimed.
Evidence reviewed 7 items Previous workflow-identity finding resolved: The core workflow now resolves the static workflow name through the run's workflow_id, checks recovery tooling ancestry, and invokes the trusted checkout's verifier. Live REST reads independently confirmed that the reported run's name is dynamic while workflow 247919831 has the static name Plugin NPM Release.
Previous final-authority finding resolved: Immediately before npm publish, the workflow passes the canonical monthly branch and pinned candidate SHA to the existing release-tooling identity verifier. That verifier rereads the branch and rejects missing or moved authority. The collector separately requires every extended-stable plugin version to equal the root version, supporting the branch derivation.
Production-boundary authority proof: The inspected fixture executes the production publication shell and actual identity verifier with controlled GitHub responses and captured npm effects. It checks that moved candidates and untrusted tooling produce zero npm calls, while allowed publication preserves artifact bytes and excludes token credentials. The captured PR body and maintainer comment report before/after execution on Blacksmith Testbox, including seven passing targeted cases and 148 selected regression tests. The linked worker's cancelled lease is not treated as a failed test result. Its log download was blocked by the review host's storage-domain allowlist, so the reported command results were not independently reread.
Findings None None.
Security None None.

How this fits together

The release workflows turn a validated monthly candidate into published npm packages. They authenticate workflow and candidate identities before publication, then use successful plugin publication evidence to authorize core publication.

flowchart TD
  A[Validated monthly candidate] --> C[Verify candidate and trusted tooling]
  B[Main release tooling] --> C
  C --> D[Prepare and verify package artifacts]
  D --> E[Environment approval]
  E --> F[Recheck live candidate authority]
  F --> G[Publish plugins to npm]
  G --> H[Verify evidence for core publication]
Loading

Decision needed

Question Recommendation
Should the paused workflow recovery proceed as a separate main-branch improvement now that the July dependency-only update has merged? Resume as a separate tooling improvement: Retain the reusable recovery path independently of July publication, whose changed candidate needs its own qualification.

Why: The related merged PR explicitly preserves the pause, while this re-review establishes repaired implementation and proof without deciding release scope.

Before merge

  • Resolve merge risk (P1) - The related merged PR explicitly leaves broader recovery paused; the review request does not establish whether that release-scope pause is lifted.
  • Resolve merge risk (P1) - July's canonical candidate has advanced, so the original candidate's successful validation cannot authorize publication of the new tip.
  • Complete next step (P2) - Have release owners confirm whether the explicitly paused workflow recovery should resume independently of the merged July dependency update.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Tests +276, Docs +9, Config +40, Other +14. Total +339 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 359 83 +276
Docs 1 11 2 +9
Config 2 47 7 +40
Generated 0 0 0 0
Other 1 14 0 +14
Total 10 431 92 +339

Review metrics

Metric Value Why it matters
Production versus regression coverage Production/tooling +54 net lines; tests +276 net lines Production growth implements the documented recovery boundary using the existing identity owner, while most growth exercises admission and final publication effects.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep recovery in the existing trusted release tooling, bound to immutable package bytes and current candidate authority, with fresh qualification whenever candidate source changes.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep recovery in the existing trusted release tooling, bound to immutable package bytes and current candidate authority, with fresh qualification whenever candidate source changes.

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

Yes, from source: current main rejects a trusted-main plugin dispatch even when its source equals the canonical monthly tip. The reported failed release run corroborates the operational problem; this review executed no target code.

Is this the best way to solve the issue?

Yes. Reusing trusted tooling and the existing live identity verifier preserves the frozen candidate and avoids a competing publication owner; both prior correctness findings are addressed.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against bf4c8270acef.

Labels

Label justifications:

  • P2: This is a bounded release-operator recovery fix without a Gateway runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The maintainer-reported Testbox run exercises the production publish shell and actual authority verifier with controlled branch state and captured final npm effects: valid authority preserves bytes without tokens, while moved candidates are rejected before publication. Inspected fixtures substantiate that coverage, and live REST reads confirm the workflow-name contract; no live npm publication is claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. The maintainer-reported Testbox run exercises the production publish shell and actual authority verifier with controlled branch state and captured final npm effects: valid authority preserves bytes without tokens, while moved candidates are rejected before publication. Inspected fixtures substantiate that coverage, and live REST reads confirm the workflow-name contract; no live npm publication is claimed.

Evidence

What I checked:

  • Previous workflow-identity finding resolved: The core workflow now resolves the static workflow name through the run's workflow_id, checks recovery tooling ancestry, and invokes the trusted checkout's verifier. Live REST reads independently confirmed that the reported run's name is dynamic while workflow 247919831 has the static name Plugin NPM Release. (.github/workflows/openclaw-npm-release.yml:592, b49bb1c45872)
  • Previous final-authority finding resolved: Immediately before npm publish, the workflow passes the canonical monthly branch and pinned candidate SHA to the existing release-tooling identity verifier. That verifier rereads the branch and rejects missing or moved authority. The collector separately requires every extended-stable plugin version to equal the root version, supporting the branch derivation. (.github/workflows/plugin-npm-release.yml:1744, b49bb1c45872)
  • Production-boundary authority proof: The inspected fixture executes the production publication shell and actual identity verifier with controlled GitHub responses and captured npm effects. It checks that moved candidates and untrusted tooling produce zero npm calls, while allowed publication preserves artifact bytes and excludes token credentials. The captured PR body and maintainer comment report before/after execution on Blacksmith Testbox, including seven passing targeted cases and 148 selected regression tests. The linked worker's cancelled lease is not treated as a failed test result. Its log download was blocked by the review host's storage-domain allowlist, so the reported command results were not independently reread. (test/scripts/plugin-npm-extended-stable-workflow.test.ts:443, b49bb1c45872)
  • Still absent from current main and latest release: Comparison with fetched main shows that main still requires plugin publication from the canonical monthly workflow branch and lacks the recovery verifier exception. The latest release, v2026.9.4, likewise retains the canonical-branch-only condition. This remains distinct useful work. (.github/workflows/plugin-npm-release.yml:279, 3a9d69db306c)
  • Related merged fix and changed release context: fix(codex): update July managed runtime to 0.155.0 #151298 merged a dependency-only update into extended-stable/2026.7.33 and explicitly described broader workflow recovery as paused. Live branch metadata now identifies 51d969c, rather than the original b60a4e9 candidate cited in this PR's proof. The related PR requires fresh qualification of its changed candidate and does not implement this workflow recovery. (51d969c5c946)
  • Existing release owner and dependency boundary: Current release planning already treats dependency freshness as advisory while retaining validated pins. This patch changes OpenClaw workflow admission and publication evidence, without changing or testing Codex runtime compatibility; the Codex-specific source-inspection gate therefore does not apply. Main history identifies Peter Steinberger's related release-tooling work, with GitHub commit metadata confirming steipete. Exact line-introduction attribution was not established. (scripts/lib/plugin-npm-release.ts:455, 65c256a5c048)

Likely related people:

  • openclaw/openclaw-release-managers: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: 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 (2 earlier review cycles)
  • reviewed 2026-09-18T00:58:20.486Z sha 15ddacf :: needs real behavior proof before merge. :: [P1] Preserve the workflow name when reading REST run metadata | [P1] Recheck the canonical candidate immediately before npm publication
  • reviewed 2026-09-18T02:13:29.987Z sha b49bb1c :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 18, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Both previous findings are repaired in b49bb1c. The PR body now includes live REST identity evidence, remote workflow/type checks and 148 passing tests, plus before/after publication-boundary proof: the previous workflow permits a moved candidate to reach the captured npm write; the repair rejects it before that write. The release candidate itself remains unchanged.

@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Sep 18, 2026
@RomneyDa
RomneyDa merged commit b10b531 into main Sep 18, 2026
115 of 116 checks passed
@RomneyDa
RomneyDa deleted the fix/extended-stable-plugin-workflow-recovery branch September 18, 2026 02:22
@RomneyDa

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
…ing the candidate (openclaw#151282)

* fix(release): recover extended-stable plugin publication from trusted main

* fix(release): preserve workflow identity and final candidate authority
steipete added a commit that referenced this pull request Sep 18, 2026
…151339)

Restore filesystem import-boundary, workflow-routing, and full-suite inventory guards after the changes in #151302, #151282, and #151001. Route native filesystem configuration through the existing facade, register the recovery and Codex attempt tests in their existing owners, and select those guards when their inventory inputs change. Includes the reviewed routing repair from #151340 with its original human authorship preserved.

Finalize the existing Gateway serial admission and two-worker ceiling before runtime placement reads recipient policy. This preserves compact worker limits when inventory changes without changing timing measurements, original compaction assertions, configuration, dependencies, or user-facing runtime behavior.

Validation: exact-head CI run 35306657804 completed green; the native watcher exited 0 with no pending checks. Retained focused proof passed 1,591 tests across six files, with both new placement regressions failing before the repair and all four placement cases passing after it. Committed-branch review found no actionable defects. The pre-existing diagnostics test-support lint issue from #151161 remains an explicitly nonblocking follow-up.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…penclaw#151339)

Restore filesystem import-boundary, workflow-routing, and full-suite inventory guards after the changes in openclaw#151302, openclaw#151282, and openclaw#151001. Route native filesystem configuration through the existing facade, register the recovery and Codex attempt tests in their existing owners, and select those guards when their inventory inputs change. Includes the reviewed routing repair from openclaw#151340 with its original human authorship preserved.

Finalize the existing Gateway serial admission and two-worker ceiling before runtime placement reads recipient policy. This preserves compact worker limits when inventory changes without changing timing measurements, original compaction assertions, configuration, dependencies, or user-facing runtime behavior.

Validation: exact-head CI run 35306657804 completed green; the native watcher exited 0 with no pending checks. Retained focused proof passed 1,591 tests across six files, with both new placement regressions failing before the repair and all four placement cases passing after it. Committed-branch review found no actionable defects. The pre-existing diagnostics test-support lint issue from openclaw#151161 remains an explicitly nonblocking follow-up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L 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