Repository navigation
fix: keep source-only sessions free of dependency installs - #149587
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. |
|
Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 5:33 PM ET / 21:33 UTC (Revision 4). ClawSweeper reviewWhat this changesMakes Claude startup dependency-free, adds explicit gateway/full preparation with a preview option, and updates publication tests for recently merged plugin metadata. Merge readiness✅ Ready for maintainer review This PR remains useful: current main still installs dependencies at Claude startup. The earlier sparse-profile blocker is resolved, and no blocking introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherRepository preparation turns a developer checkout into installed dependencies and build outputs. The Claude startup hook now provides guidance, while explicit preparation delegates to existing package, plugin inventory, and build owners. flowchart TD
A[Claude session starts] --> B[Source-only guidance]
C[Developer requests preparation] --> D[Validate checkout and workload]
D --> E[Preview plan]
D --> F[Validate toolchain and output directories]
F --> G[Frozen dependency install]
G --> H[Selected existing build]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +665, Other +288. Total +953 across 7 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep source inspection lightweight and make preparation an explicit operation backed by the existing dependency and build owners. Do we have a high-confidence way to reproduce the issue? Yes, the reported startup cost is source-proven: current main invokes installation regardless of whether the session only needs source review. This read-only review did not execute it. Is this the best way to solve the issue? Yes, explicit preparation separates source selection from build work and reuses canonical owners; the publication test updates preserve the recently merged distribution contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against afc27e774fda. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
Merged via squash.
|
Restore the exact 95 npm and 91 ClawHub expectations after #149587 counted three plugins whose bundled publication remains intentionally deferred by #150316. Preserve the publisher set comparisons, four core package identities, and the existing OpenCode Go deferral. Apply the canonical #150330 formatting correction as well. No runtime, manifest, publication policy, or registry eligibility changes. Validation: reproduce the original 98-versus-95 failure, then pass all 231 producer/npm/ClawHub cases, selected changed checks, and focused review.
…149587) * fix: keep source-only sessions free of dependency installs * fix: satisfy setup typing and ordering checks * test(plugins): cover bundled but publishable packages
Closes #149575
What Problem This Solves
Starting a Claude session installs the whole workspace even when the task only needs source review.
User Impact
Session startup stays source-only. Developers explicitly choose gateway or full preparation with
node scripts/worktree-setup.mjs gatewayorfull;--planshows the work without installing or building.Why This Change Was Made
The helper reuses pnpm dependency closure, canonical plugin/asset inventories, and existing build profiles. Sparse source validates required inputs but never selects preparation. Full preparation keeps the existing frozen install and full build. Gateway preparation uses the canonical qaRuntime build, including its declaration inputs and plugin asset hooks such as Workboard UI. Existing JavaScript builds already excluded native apps.
Current integration evidence
Published
667f0dd43a79integrates current main and the already-landed canonical profile from #149581. A pnpm12.4 frozen private install passed. Current-input37 setup tests and13 asset tests, owning script/root-test types, targeted type-aware lint and formatting pass. Fresh independent review is clean through P2. Current main added one real module to the cold fixture input closure; this integration repair is included. Exact-head CI/native preparation remain pending. The first integrated CI run exposed three stale publication-contract expectations after #150291; the final repair updates package/catalog expectations and the explicit core-bundled publication set, while preserving external-catalog parity and exact98npm/94ClawHub inventory. Five targeted assertions pass. Production plugin metadata is unchanged from upstream.The broad lint wrapper encountered its nested-checkout ancestor-declaration guard; supported direct targeted lint passed without changing that guard or the ancestor install.
Earlier workload evidence (original inputs, not replayed)
Integration dependency
The canonical gateway profile from #149581 is merged at
5f3ca5a8553dd753fb2e8a6fe258c97432059538and is now integrated here. Its bytes match the accepted real sparse planning and497-declaration preparation input. That historical workload exited0; its separate composite cleanup/graph-identity failure and subsequent graph disposition remain recorded, not relabeled as a composite PASS. No duplicate profile schema or proof replay was introduced.