Skip to content

fix(release): isolate npm preflight tooling checkout - #156332

Merged
RomneyDa merged 1 commit into
mainfrom
fix/npm-preflight-isolate-harness
Sep 23, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/npm-preflight-isolate-harness

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Extended-stable 2026.8.33 npm preflight run 35833934574 failed after source checks because candidate pnpm check recursively formatted the trusted .release-harness checkout. Six tooling files that are intentionally ignored at their own repository-root paths were seen under the nested prefix and reported as format failures.

Why This Change Was Made

Temporarily move the trusted harness checkout outside the candidate workspace only while the candidate-owned aggregate check runs, then restore it through an EXIT trap. This keeps candidate validation scoped to candidate source while preserving the immutable tooling checkout for ancestry and evidence sealing.

User Impact

Restores npm preflight source validation without changing the frozen candidate, release identity, package contents, tag, or publication state.

Evidence

No tag or publish action was performed.

@clawsweeper

clawsweeper Bot commented Sep 23, 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 23, 2026 08:05
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 23, 2026, 4:21 AM ET / 08:21 UTC.

ClawSweeper review

What this changes

The PR temporarily moves release tooling outside the candidate workspace during npm source checks, restores it afterward, and updates the workflow assertions.

Merge readiness

✅ Ready for maintainer review

The fix remains useful: current main still exposes the tooling checkout to candidate source checks. No actionable defect was found in the introduced patch, and this member-authored PR is protected from automated closure.

Priority: P2
Reviewed head: 8f7de471df97bb4235864c757a368d52aa1602f1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with coherent restoration and integrity checks; no blocking patch defect was identified.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported workflow tests are supplemental; the after-fix candidate preflight remains planned. No material authority or stored-data contract changes require additional proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported workflow tests are supplemental; the after-fix candidate preflight remains planned. No material authority or stored-data contract changes require additional proof.
Evidence reviewed 7 items Introduced change and merge ownership: The pinned introduction changes only the source-check shell and its workflow assertions. The verified test merge has the supplied main and PR head as its two raw parents, and its workflow delta matches the introduced change.
Current main still needs isolation: Current main runs the aggregate candidate check while .release-harness remains nested in its workspace. The aggregate check invokes format:check. Inspection of the supplied latest release also found the original source-check step; no shipped replacement was established.
Restoration and sealing remain ordered: The shell registers an EXIT restoration trap before the aggregate check and restores explicitly on success. Evidence sealing subsequently verifies the tooling HEAD against the workflow SHA and requires a clean tooling checkout. Permissions, action pins, publication admission, and stored evidence formats are unchanged.
Findings None None.
Security None None.

How this fits together

Npm preflight validates a frozen release candidate using separately pinned release tooling. Successful source checks produce evidence consumed by package qualification before publication.

flowchart TD
  A[Frozen release candidate] --> C[Candidate workspace]
  B[Pinned release tooling] --> D[Temporary external directory]
  C --> E[Source checks]
  D --> F[Restore tooling]
  E --> F
  F --> G[Verify identity and seal evidence]
  G --> H[Package qualification]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +3, Config +9. Total +12 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 4 1 +3
Docs 0 0 0 0
Config 1 10 1 +9
Generated 0 0 0 0
Other 0 0 0 0
Total 2 14 2 +12

Review metrics

None.

Technical review

Best possible solution:

Keep candidate validation scoped to candidate files while preserving the pinned tooling and its integrity checks for evidence sealing.

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

Yes, a concrete preflight entrypoint and failed source-check job are identified, and source inspection supports nested tooling entering aggregate checks; the exact formatting failure was not rerun or independently read from logs.

Is this the best way to solve the issue?

Yes. Moving the tooling only around candidate-owned checks addresses the workspace collision without modifying the frozen candidate or weakening subsequent tooling verification.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs a bounded release-validation failure without changing installed product behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported workflow tests are supplemental; the after-fix candidate preflight remains planned. No material authority or stored-data contract changes require additional proof.

Label justifications:

  • P2: This repairs a bounded release-validation failure without changing installed product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported workflow tests are supplemental; the after-fix candidate preflight remains planned. No material authority or stored-data contract changes require additional proof.

Evidence

What I checked:

  • Introduced change and merge ownership: The pinned introduction changes only the source-check shell and its workflow assertions. The verified test merge has the supplied main and PR head as its two raw parents, and its workflow delta matches the introduced change. (.github/workflows/openclaw-npm-preflight.yml:195, 8f7de471df97)
  • Current main still needs isolation: Current main runs the aggregate candidate check while .release-harness remains nested in its workspace. The aggregate check invokes format:check. Inspection of the supplied latest release also found the original source-check step; no shipped replacement was established. (.github/workflows/openclaw-npm-preflight.yml:192, e7fbe5389e0b)
  • Restoration and sealing remain ordered: The shell registers an EXIT restoration trap before the aggregate check and restores explicitly on success. Evidence sealing subsequently verifies the tooling HEAD against the workflow SHA and requires a clean tooling checkout. Permissions, action pins, publication admission, and stored evidence formats are unchanged. (.github/workflows/openclaw-npm-preflight.yml:200, 8f7de471df97)
  • Reported failure and validation limits: GitHub job metadata confirms the cited preflight failed at source checks after successful ancestry establishment. The PR reports 34 passing focused tests and changed checks, with the exact candidate rerun planned after landing. The job-log attachment host was blocked, so its detailed formatting diagnosis was not independently inspected. No target code or tests were executed during this read-only review.
  • Focused test coverage: The changed assertions guard tooling removal, EXIT restoration, the aggregate command, and restoration destination. They are static workflow guards rather than execution proof of restoration. Read-only git diff --check passed. (test/scripts/openclaw-npm-extended-stable-workflow.test.ts:228, 8f7de471df97)
  • Existing CI failure inspected: The failing compact shard reports a Discord smoke-test timeout assertion in test/scripts/dev-tooling-safety.test.ts:364. Neither that test nor its production path is changed here; the annotation does not establish a defect caused by this patch. (test/scripts/dev-tooling-safety.test.ts:364, 8f7de471df97)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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.

@RomneyDa
RomneyDa merged commit 9db79f3 into main Sep 23, 2026
203 of 208 checks passed
@RomneyDa
RomneyDa deleted the fix/npm-preflight-isolate-harness branch September 23, 2026 08:26
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Sep 24, 2026
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Sep 24, 2026
Follow-up to the openclaw#156332 and size/perf-limit backports: the release branch
has no pluginCompatibility preflight step and no runtime-worker URL helper
for the test-group-report probe, so the tests use the branch forms.
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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