Repository navigation
fix(packaging): preserve required SDK API installation - #182168
Conversation
Drop the API peer only from the private bundled AI manifest to avoid npm returning an empty required dependency. Verify SDK API resolution during installed-package checks. Dependency versions, overrides, and standalone metadata remain unchanged.
|
🦞👀 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. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: blocked before merge. What this changesRemove the redundant OpenTelemetry API peer from the private bundled AI package and reject installed SDKs whose required API cannot resolve. Example: Install the candidate using Node 24.22.1 and npm 11.19.1 with Anthropic SDK 0.135.0.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this maintainer-authored PR addresses a concrete installation failure with a focused patch and no introduced defect found, while retaining its explicit landing hold. Priority: P1 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe canonical packager stages the private AI runtime into the OpenClaw tarball; npm installs its dependencies, and Package Acceptance checks the resulting installed tree. flowchart TD
A[Standalone AI package] --> B[Private package staging]
B --> C[OpenClaw tarball]
C --> D[npm installation]
D --> E[Installed dependency verification]
D --> F[Gateway runtime]
Technical reviewBest possible solution: Retain the narrow private-manifest repair and existing verification owner while satisfying the unchanged package acceptance contract. Do we have a high-confidence way to reproduce the issue? Current source retains the reported bundled-peer trigger, and both PR bodies describe controlled npm reproductions and an actual startup failure; this read-only review did not independently execute the installation. Is this the best way to solve the issue? The patch fixes the metadata producer at the existing packaging owner, preserves standalone AI consumers and dependency versions, and adds a distinct installed-tree check without parallel machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6732eaa2b475. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +29, Docs +4, Other +24. Total +57 across 5 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 24, 2026, 12:02 AM ET / 04:02 UTC. |
|
Merged via squash auto-merge.
|
Drop the API peer only from the private bundled AI manifest to avoid npm returning an empty required dependency. Verify SDK API resolution during installed-package checks. Dependency versions, overrides, and standalone metadata remain unchanged.
What Problem This Solves
A fresh npm install can report success while leaving
node_modules/@opentelemetry/apiempty. The Anthropic SDK requires that package, so the installed Gateway then fails to start. This also blocked direct update acceptance after an otherwise successful 2026.9.33 update and Doctor migration.User Impact
The privately bundled AI runtime no longer advertises the redundant API peer that triggers npm's missing extraction. Installed-package verification rejects an unresolved API dependency when the installed SDK requires it.
Why This Change Was Made
The package owner already removes dependency declarations from the private AI copy because the root owns its runtime dependencies. Remove only
@opentelemetry/apifrom that copy'speerDependenciesandpeerDependenciesMetatoo. Keep unrelated peers, the standalone AI manifest, all dependency versions, overrides, and the npm lock mirror unchanged.Peter approved this exact package-side metadata change on 2026-10-23. It addresses npm behavior reproduced on 11.19.1, with additional coordinator-confirmed reproductions on 11.21.1 and 12.2.1; upgrading npm does not avoid the defect.
Evidence
a6d0da2955aa91ce0bd59457383a8bc6c95d6079also fails the same unmodified checker: 48,634 entries (1,134 over), 598,943,400 bytes. The fixed candidate has 49,094 entries, 599,490,866 bytes. The API subtree changes from an empty root (1 entry) to 460 entries including its root: 459 restored files/directories. Whole-tree delta is 460 entries. Both trees remain below the 50,000-entry shipped-updater cap; the fixed candidate has 906 entries of headroom./readyz(HTTP 200, ready=true), and CLI health (ok=true) all pass on the fresh installed candidate; orderly Gateway shutdown exits 0. The full combined upgrade/rollback matrix belongs to fix(update): restore direct updates from extended-stable 2026.9.33 #182129.Production Size
+24 lines in packaging and verification scripts, +30 net test lines, +4 documentation lines; 5 files. Runtime production files under
src,extensions,packages, andui: 0 changed lines. The script growth stays within the approved +30 production/config budget: five lines remove the private peer metadata, and nineteen add required-dependency resolution to the existing installed-tree walk.