Repository navigation
fix(release): accept valid multi-version plugin locks - #159376
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
54a02c0 to
41989e6
Compare
|
Addressed the generated ClawSweeper review's rank-up move on exact head
Maintainer decision: npm may choose placement among versions approved by the frozen pnpm graph, but authored workspace overrides, scoped child rules, final version membership, and integrity remain mandatory. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 27, 2026, 12:37 AM ET / 04:37 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch changes release lock generation to accept multiple pnpm-approved transitive versions while enforcing authored workspace overrides, and extends the local-registry regression test. Merge readiness✅ Ready for maintainer review Keep open: the reported release-publication failure remains in current main, this PR offers a distinct repair, and I found no supported blocking defect. The earlier request for test-cost measurements has been answered. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw release tooling reads the pnpm lock and workspace policy, asks npm to generate package-lock mirrors for publishable packages, and validates those mirrors before release dependency evidence is produced. flowchart LR
A[Pnpm lock] --> C[Release lock generator]
B[Workspace overrides] --> C
C --> D[Npm lock placement]
D --> E[Override and integrity checks]
E --> F[Release dependency evidence]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +103, Other +43. Total +146 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep authored override enforcement and final pnpm version and integrity checks in the release lock generator while allowing valid npm placement across approved versions. Do we have a high-confidence way to reproduce the issue? Yes. The frozen candidate and current-main generator provide a specific reproduction path, and the PR adds a generator-boundary case; this read-only review did not execute it. Is this the best way to solve the issue? Yes. The repair stays in the release lock generator, distinguishes authored policy from placement hints, and retains the final dependency checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against aad795bf312a. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Resolved both remaining ClawSweeper cost-evidence items on exact head
The PR body now records both measurements. No code or test behavior changed. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
What Problem This Solves
Fixes: extended-stable plugin publication rejects valid packages when pnpm resolves multiple versions of a transitive dependency on separate runtime branches.
User Impact
User impact: release publication accepts valid multi-version plugin graphs while continuing to enforce explicit workspace override policy. There is no runtime or candidate-source change.
Why This Change Was Made
Lock-derived overrides are npm placement hints, not authored workspace policy. The generator still gives npm those hints, but post-install shrinkwrap repair and rejection now enforce only
pnpm-workspace.yamloverrides. A shared scoped-policy lookup merges every authored selector matching the installed parent version, preserving exact, ranged, and overlapping child rules in both planning and validation. This keeps Zalouser's explicit global/scopedtough-cookierules strict without treatingmemory-lancedb's legitimate Node type branches as a global conflict.Evidence
f773aa06a1a93b36b050f1a3f4b57d3d91311541.node scripts/run-vitest.mjs test/scripts/generate-npm-package-lock.test.ts— 67/67 passed. The generator-path regression fails on the merged behavior, covers inferred multi-version branches, and preserves overlapping exact/ranged authored child policies.OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/scripts/generate-npm-package-lock.test.ts— 67/67 passed in 10.37s wall time (8.60s Vitest duration).node scripts/check-changed.mjs -- scripts/generate-npm-package-lock.mts test/scripts/generate-npm-package-lock.test.ts— passed, including all 102 npm lock validations and both TypeScript graphs.check-npm-lockcompleted in 171s: https://github.com/openclaw/openclaw/actions/runs/36293823243/job/108549414267. The changed-test selector did not schedule this test file separately; the lock-specific lane is the relevant CI cost measurement.extensions/memory-lancedbandextensions/zalouserpackage-lock generation both pass with this tooling head.Production delta: +43 net lines. The added boundary names the authoritative policy source; one shared scoped-policy lookup keeps planning and validation aligned for every authored selector matching a pinned parent. The test covers the multi-version inferred-placement distinction plus exact, ranged, and overlapping authored child policies.