Skip to content

fix: keep source-only sessions free of dependency installs - #149587

Merged
fuller-stack-dev merged 5 commits into
mainfrom
openclaw/wde-demand-setup-20260916
Sep 16, 2026
Merged

fuller-stack-dev merged 5 commits into
mainfrom
openclaw/wde-demand-setup-20260916

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

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 gateway or full; --plan shows 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 667f0dd43a79 integrates 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/catal​og 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)

  • Cold dependency-free source/plan behavior and dangling-manifest regression: passing subprocess proof, including pre-fix failure reproduction.
  • 37 owning tests passed. Follow-up validation passed the root-test typecheck, four affected preparation-boundary cases, canonical-plan case, and scoped lint; existing assertions remain intact.
  • Real filtered frozen install: 174/178 workspace projects, pinned pnpm 12.3.4, independent graph, policy checks enabled.
  • 147 canonical build/asset/inventory tests and 9 isolated gateway integration tests passed.
  • Actual gateway cold/warm preparation passed, including plugin assets and runtime validation. Full preparation passed with all 178 projects, declarations, all 154 public SDK exports, Control UI, and metadata; no declaration-skipping override.
  • Gateway versus full: 2.31 GB versus 2.37 GB dependency graphs; 246.8 MB versus 386.6 MB retained generated output. These are allocated file inventories, not unique APFS extents. Source-only startup creates neither graph nor output; no large graph-reduction claim is made for gateway filtering.
  • Independent source and follow-up repair review: no actionable findings through P2.
  • Required changed-file checks passed preceding lanes and exposed eight test-narrowing errors, now corrected with the failed root-test shard passing. Scoped lint and formatting pass; exact-head hosted CI remains the final gate.

Integration dependency

The canonical gateway profile from #149581 is merged at 5f3ca5a8553dd753fb2e8a6fe258c97432059538 and 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.

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: L maintainer Maintainer-authored PR labels Sep 16, 2026
@fuller-stack-dev
fuller-stack-dev marked this pull request as ready for review September 16, 2026 01:56
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 5:33 PM ET / 21:33 UTC (Revision 4).

ClawSweeper review

What this changes

Makes 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
Reviewed head: 667f0dd43a7914a3e9d92704668887fa51fe11c0

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent tooling change with meaningful boundary coverage, resolved prior findings, and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate, with no material authority transfer. Captured evidence describes real preparation on earlier inputs and current targeted checks; it is not treated as a fresh current-head runtime run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate, with no material authority transfer. Captured evidence describes real preparation on earlier inputs and current targeted checks; it is not treated as a fresh current-head runtime run.
Evidence reviewed 9 items Current main still has the reported startup behavior: The startup hook still invokes a frozen workspace install whenever its Git-root and pnpm checks succeed.
Latest release also retains eager installation: The supplied latest release, v2026.9.4, contains the same startup install command; this request is not already addressed there.
Preparation uses existing owners: Read the complete new helper and asset module. Source mode returns before repository imports or preparation; gateway selection consumes existing plugin and asset inventories, while execution retains frozen installs, output-root checks, and managed subprocesses.
Findings None None.
Security None None.

How this fits together

Repository 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +665, Other +288. Total +953 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 675 10 +665
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 291 3 +288
Total 7 966 13 +953

Review metrics

Metric Value Why it matters
Preparation choices 2 explicit preparation modes and 1 preview flag Gateway and full preparation become deliberate developer choices while source-only remains the default.
Production versus test growth production/tooling +288 net lines; tests +665 net lines Production growth implements preparation selection and admission while reusing existing inventory, process, and build owners.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #149575
Summary: This PR addresses the paired startup-install issue; source-profile and publication work are separate merged prerequisites or integration context.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label justifications:

  • P2: Avoids unnecessary dependency allocation during developer source review, with limited impact outside repository tooling.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate, with no material authority transfer. Captured evidence describes real preparation on earlier inputs and current targeted checks; it is not treated as a fresh current-head runtime run.

Evidence

What I checked:

Likely related people:

  • Jason (Json): Raw commit 5f3ca5a adds .openclaw/worktree-profiles/gateway:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5f3ca5a8553d; files: .openclaw/worktree-profiles/gateway)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-16T02:02:26.457Z sha 9fcf76f :: needs changes before merge. :: [P2] Include the gateway profile required by sparse preparation
  • reviewed 2026-09-16T02:19:13.204Z sha 8ccba96 :: blocked before merge. :: [P2] Integrate the canonical gateway profile before sparse preparation
  • reviewed 2026-09-16T21:11:58.948Z sha 2674085 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Sep 16, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 16, 2026
@fuller-stack-dev
fuller-stack-dev merged commit f5c3d16 into main Sep 16, 2026
211 of 212 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the openclaw/wde-demand-setup-20260916 branch September 16, 2026 21:47
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

jalehman added a commit that referenced this pull request Sep 16, 2026
Keep the exact publisher inventory aligned with the bundled-distribution declarations restored by #150316. The subsequent #149587 count refresh included the three deferred packages; restore 95 npm and 91 ClawHub entries without changing publication eligibility or equality checks.
steipete added a commit that referenced this pull request Sep 16, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
…149587)

* fix: keep source-only sessions free of dependency installs

* fix: satisfy setup typing and ordering checks

* test(plugins): cover bundled but publishable packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L 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.

Claude source-review sessions eagerly install the workspace

1 participant