Repository navigation
fix(ci): restore direct AWS dependency hydration - #118604
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 6:19 AM ET / 10:19 UTC. ClawSweeper reviewWhat this changesThe branch makes the package-dist scanner load TypeScript through Node’s CommonJS resolver so postinstall can find dependencies exposed through Merge readinessKeep this PR open for maintainer merge review. The focused resolver change matches the Crabbox hydration workflow’s external modules-directory contract, has targeted regression coverage, and the supplied direct AWS hydration replay provides real after-fix evidence; the remaining gate is the protected maintainer-owned merge decision on the current three-way result. Priority: P2 Review scores
Verification
How this fits togetherCrabbox hydration installs OpenClaw dependencies into a configured pnpm modules directory before the repository postinstall runs. The package-dist scanner is invoked by that postinstall and must load TypeScript successfully so remote validation environments can finish setup. flowchart LR
A[Crabbox hydration job] --> B[pnpm external modules directory]
B --> C[NODE_PATH exposes dependencies]
C --> D[OpenClaw postinstall]
D --> E[Package dist scanner]
E --> F[CommonJS TypeScript resolution]
F --> G[Hydration completes]
E --> H[Bundled plugin package checks]
Decision needed
Why: The author is a repository member and the PR carries the protected Before merge
Agent review detailsSecurityNone. PR surfaceTests +44, Other +2. Total +46 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the CommonJS resolver at the package-dist scanner boundary, retain the isolated external-modules regression test, and merge only after the exact merged head passes the normal required checks. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main’s package-dist scanner uses an ESM bare TypeScript import, while the hydration workflow places dependencies in an external pnpm modules directory. The PR’s targeted test constructs that Is this the best way to solve the issue? Yes. Resolving TypeScript through AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3f3e59b54d1c. LabelsLabel 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)
|
|
Direct AWS proof is complete.
The branch then merged three unrelated live @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready evidence for exact head
Owner decision: accept this exact head for maintainer merge. Since the signed merge commit was pushed, No merge performed in this work lane. |
…script-resolution fix(ci): restore direct AWS dependency hydration
Related: #116783
What Problem This Solves
Fixes an issue where direct AWS Crabbox validation would fail during dependency hydration when the repository postinstall loaded TypeScript from an external pnpm modules directory.
Why This Change Was Made
The package dist scanner now resolves TypeScript through Node's CommonJS resolver, matching the existing
NODE_PATHcontract used by the Crabbox hydrate workflow. The AMI boundary stays unchanged: machine tooling remains prebaked while lockfile-specific dependencies hydrate per checkout.User Impact
Maintainer AWS fallback runs can complete dependency hydration instead of reinstalling and deterministically failing with
ERR_MODULE_NOT_FOUND.Evidence
mainand TypeScript available only throughNODE_PATHexits 1 withERR_MODULE_NOT_FOUND.tbx_01kz3e6wwxng3efmkp78teh9cg, Actions run30800266875; 2 files and 50 tests passed.41909b4f3fc730171066b9bde9b988beb4431d28:c7a.4xlargeleasecbx_b1dd661b1ee2acquired and reached SSH readiness in 1m31.795s..github/workflows/crabbox-hydrate.ymlfor the branch, synced 30,527 files / 373.5 MiB, completedpnpm installplus postinstall, and succeeded in 4m1.142s (run_id=local-cbx_b1dd661b1ee2).require("typescript")printedtypescript=6.0.3; runrun_d599340074c5succeeded in 16.201s.cbx_b1dd661b1ee2was stopped and verifiedreleased; active AWS lease list was empty.cbx_a00bf32582ab, was also stopped and verifiedreleased.origin/mainwas merged afterward with signed merge commitadf5362e959f0b6a4340a8f1d9d1397905953352; those three upstream commits do not touch the resolver, hydration workflow, setup action, or regression test.adf5362e959f0b6a4340a8f1d9d1397905953352: clean, no accepted/actionable findings, patch correct at 0.99 confidence.