Skip to content

fix(release): prevent bundled plugin lock timeouts - #117730

Merged
vincentkoc merged 1 commit into
mainfrom
fix/npm-shallow-lock-timeout
Aug 2, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/npm-shallow-lock-timeout

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where release operators publishing plugins with bundled dependencies could hit repeated npm install --package-lock-only timeouts, blocking the beta release. The failure reproduced in the frozen beta WhatsApp publish run 30726242416 after the normal source-package lock validation had passed.

Why This Change Was Made

The augmented publish manifest contains bundleDependencies and bundledDependencies, which are packaging directives rather than dependency-resolution inputs. The lock normalizer now removes both fields while preserving the existing shallow lock strategy and dependency set.

User Impact

Plugin packages with bundled dependencies can complete release lock generation and publish normally. There is no runtime or public API change.

Evidence

  • node scripts/run-vitest.mjs test/scripts/generate-npm-package-lock.test.ts: 26 tests passed.
  • Full WhatsApp bundled pack dry-run completed successfully with baileys, audio-decode, and typebox bundled.
  • Twitch pack dry-run completed successfully as a regression check for the existing shallow lock path.
  • Before the fix, the frozen beta WhatsApp preview timed out on all three bounded package-lock attempts in run 30726242416.
  • No changelog entry: this is internal release tooling with no shipped runtime behavior change.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Aug 2, 2026
@vincentkoc vincentkoc self-assigned this Aug 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 2, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 2, 2026 01:32
@vincentkoc
vincentkoc requested a review from a team as a code owner August 2, 2026 01:32
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 9:38 PM ET / August 2, 2026, 01:38 UTC.

ClawSweeper review

What this changes

The branch removes both npm bundled-dependency manifest aliases only from the temporary manifest used to generate plugin package locks, preventing bundled-plugin lock generation from timing out.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open for explicit release/code-owner review. The narrow lock-manifest normalization appears correct and current main still lacks it, but this is a maintainer-owned change on the beta publish path with remaining exact-head gates in progress.

Priority: P1
Reviewed head: 4a866c75c6a0496a026f7dd89b73dedee8511fbe
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused, source-aligned repair with regression coverage and described release-path validation; only normal maintainer release approval and pending exact-head gates remain.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a maintainer-authored PR, so the external-contributor proof gate does not apply; the PR body nevertheless records focused tests plus WhatsApp and Twitch packaged dry-runs.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a maintainer-authored PR, so the external-contributor proof gate does not apply; the PR body nevertheless records focused tests plus WhatsApp and Twitch packaged dry-runs.
Evidence reviewed 6 items Current main still passes bundled metadata into the temporary lock manifest: Current main clones the package manifest and removes development and workspace dependencies, but does not remove either bundled-dependency directive before writing the temporary package.json used by npm install --package-lock-only.
The proposed boundary is limited to lock generation: The PR removes bundleDependencies and bundledDependencies only from the normalized temporary manifest; the dependency sections, override reconciliation, and original staged package manifest remain intact.
Bundled fields are produced by the release manifest overlay: The release packager writes bundledDependencies into its package-local publish manifest, installs bundled runtime dependencies for the callback, and restores the original manifest afterward; this confirms that the lock normalizer is addressing the staged release-only input rather than runtime behavior.
Findings None None.
Security None None.

How this fits together

OpenClaw’s release tooling temporarily overlays a plugin’s publish manifest, then generates an npm package lock used by the package publishing workflow. The lock generator receives that staged manifest and produces a validated lock without changing the plugin manifest that is ultimately packed and published.

flowchart LR
  A[Plugin publish manifest] --> B[Release manifest overlay]
  B --> C[Bundled dependency metadata]
  C --> D[Temporary lock manifest]
  D --> E[npm package-lock generation]
  E --> F[Validated plugin publish lock]
Loading

Decision needed

Question Recommendation
Should the release owner approve this temporary lock-manifest normalization once the remaining exact-head checks complete? Approve after exact-head gates: Accept the narrow normalization after remaining required checks complete, relying on the added regression coverage and reported bundled-package dry-runs.

Why: The patch changes maintainer-owned release automation and the item carries the protected maintainer label, so a human should explicitly accept the release-path behavior despite the focused evidence.

Before merge

  • Resolve merge risk (P1) - This modifies release automation on the beta publish path; merge should wait for the remaining exact-head checks and the designated code-owner review, even though no source-level correctness defect was found.
  • Complete next step (P2) - Await release/code-owner approval and completion of the remaining exact-head automation gates; no bounded automated repair is needed because the proposed patch has no actionable review finding.
Agent review details

Security

None.

PR surface

Tests +4, Other +2. Total +6 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 4 0 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 2 6 0 +6

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Finish release-path verification (recommended)
    Let the remaining exact-head gates finish and have the release owner confirm the bundled-plugin publish path before merging this automation change.
  2. Pause for a fresh packaged-publish capture
    If release confidence remains insufficient, pause this PR until a current WhatsApp bundled-pack dry-run transcript is attached or summarized for review.

Technical review

Best possible solution:

Keep the temporary-manifest normalization, confirm the completed exact-head release checks, and land it with the release owner’s approval so bundled plugins retain their normal publish metadata while lock generation stays shallow and bounded.

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

Yes. The current lock-generation path writes the staged publish manifest directly to a temporary npm project, while the release overlay supplies bundledDependencies; the PR body also reports before-and-after bundled-package dry-runs, although their raw logs were not available in the review context.

Is this the best way to solve the issue?

Yes. Removing packaging-only fields at the temporary lock-manifest boundary is narrower than changing package publishing or dependency installation, and it preserves the original staged manifest and dependency set.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P1: The reported failure blocks the beta plugin publishing workflow, but does not affect the core runtime or end-user message delivery.
  • add merge-risk: 🚨 automation: The patch changes the npm package-lock generation behavior used by release publishing, so exact-head release validation matters before merge.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a maintainer-authored PR, so the external-contributor proof gate does not apply; the PR body nevertheless records focused tests plus WhatsApp and Twitch packaged dry-runs.

Label justifications:

  • P1: The reported failure blocks the beta plugin publishing workflow, but does not affect the core runtime or end-user message delivery.
  • merge-risk: 🚨 automation: The patch changes the npm package-lock generation behavior used by release publishing, so exact-head release validation matters before merge.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a maintainer-authored PR, so the external-contributor proof gate does not apply; the PR body nevertheless records focused tests plus WhatsApp and Twitch packaged dry-runs.

Evidence

What I checked:

  • Current main still passes bundled metadata into the temporary lock manifest: Current main clones the package manifest and removes development and workspace dependencies, but does not remove either bundled-dependency directive before writing the temporary package.json used by npm install --package-lock-only. (scripts/generate-npm-package-lock.mjs:457, 846a454d9219)
  • The proposed boundary is limited to lock generation: The PR removes bundleDependencies and bundledDependencies only from the normalized temporary manifest; the dependency sections, override reconciliation, and original staged package manifest remain intact. (scripts/generate-npm-package-lock.mjs:459, 4a866c75c6a0)
  • Bundled fields are produced by the release manifest overlay: The release packager writes bundledDependencies into its package-local publish manifest, installs bundled runtime dependencies for the callback, and restores the original manifest afterward; this confirms that the lock normalizer is addressing the staged release-only input rather than runtime behavior. (scripts/lib/plugin-npm-package-manifest.mjs:588, 846a454d9219)
  • Regression coverage covers both accepted npm spellings: The added test supplies both bundleDependencies and bundledDependencies, asserts both are absent from the normalized lock manifest, and preserves the existing dependency filtering assertions. (test/scripts/generate-npm-package-lock.test.ts:32, 4a866c75c6a0)
  • npm package.json contract supports the normalization: The installed npm 11.6.2 documentation describes bundleDependencies as a publishing directive whose versions come from dependencies, recognizes bundledDependencies as an alias, and supports a boolean form; neither field is needed as a dependency-resolution input for the temporary lock manifest.
  • Adjacent release-tooling provenance: The most recent current-main commit touching the lock generator is Vincent Koc’s retry repair for this same plugin lock-generation path, making it the strongest local history signal for routing this follow-up review. (scripts/generate-npm-package-lock.mjs:832, eb8c22ed13f9)

Likely related people:

  • vincentkoc: Authored the immediately preceding current-main repair for plugin package-lock generation and this focused follow-up on the same release script. (role: recent release-tooling contributor; confidence: high; commits: eb8c22ed13f9, 4a866c75c6a0; files: scripts/generate-npm-package-lock.mjs, scripts/lib/plugin-npm-package-manifest.mjs)

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.

@vincentkoc
vincentkoc merged commit 5dca33a into main Aug 2, 2026
132 of 139 checks passed
@vincentkoc
vincentkoc deleted the fix/npm-shallow-lock-timeout branch August 2, 2026 01:51
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
llwijvbw123 pushed a commit to llwijvbw123/openclaw that referenced this pull request Aug 28, 2026
…elf-release

* commit '10a390ed7fa88d09da0d4523c3ed1e3550ece5c6': (4646 commits)
  fix(release): allow larger npm plugin artifacts (openclaw#117745)
  refactor(macos): consolidate gateway process fixtures (openclaw#117740)
  fix(ui): preserve complete persisted log messages (openclaw#117666)
  fix(ui): decode artifact previews as UTF-8 (openclaw#117657)
  fix(control-ui): restore sandbox media previews (openclaw#117689)
  fix(plugins): link host declared as direct dependency (openclaw#117738)
  fix(macos): avoid self-named defaults suite (openclaw#117690)
  fix(inference): preserve run ownership and completion delivery (openclaw#117731)
  test(talk): align browser E2E tool completion
  test: consolidate OpenClaw E2E fixtures (openclaw#117701)
  fix(release): ignore bundle fields in npm locks (openclaw#117730)
  fix(meeting-bot): keep configured host options internal
  refactor(line): remove dead card helpers (openclaw#117729)
  perf(cli): attribute command startup stages (openclaw#117720)
  refactor(whatsapp): deduplicate reply delivery test fixtures (openclaw#117710)
  docs(changelog): note bounded WebRTC tool calls
  docs(changelog): note meeting audio bounds
  fix(meeting-bot): preserve node host SDK surface
  test(talk): split WebRTC tool lifecycle coverage
  fix(meeting-bot): break node host import cycle
  ...

# Conflicts:
#	package.json
#	src/agents/model-auth.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts 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