Skip to content

qa(fleet-launch): force devDeps in dev install so paperclip :3100 boots under NODE_ENV=production#44

Merged
aimerdoux merged 1 commit into
mainfrom
qa/fleet-launch-dev-install-devdeps
Jun 3, 2026
Merged

qa(fleet-launch): force devDeps in dev install so paperclip :3100 boots under NODE_ENV=production#44
aimerdoux merged 1 commit into
mainfrom
qa/fleet-launch-dev-install-devdeps

Conversation

@aimerdoux

Copy link
Copy Markdown
Owner

Summary

Fixes the launch-blocking failure that prevented the Paperclip orchestrator (:3100) from booting, which blocks fleet ignition.

The dev launch path (pnpm dev / pnpm dev:paperclip) installs the packages/core workspace with pnpm install --prefer-offline. Under an ambient NODE_ENV=production, pnpm skips devDependencies, so typescript is never installed into packages/core and tsc is missing. The paperclip dev-runner builds the plugin SDK (@paperclipai/sharedtsc) before starting the server; that build dies with sh: tsc: command not found, the dev-runner aborts, and :3100 never binds.

Fix

Add --prod=false to the two dev-time installs so dev always pulls devDeps regardless of ambient NODE_ENV:

  • package.json dev: pnpm install --prefer-offline--prefer-offline --prod=false
  • package.json dev:paperclip:install: same

Findings digest

  1. (non-blocking) The local-ops self-healing daemon is stale (last full cycle 2026-05-19; launchd PATH lacks nodeenv: node: No such file or directory; token refresh_failed); it was not keeping :3100 up. Out of scope for this PR.
  2. (blocking, FIXED here) NODE_ENV=production → dev install skips devDeps → no tsc → plugin-sdk build fails → :3100 boot aborts.

Verification

  • NODE_ENV=production bash -c 'cd packages/core && pnpm install --prefer-offline --prod=false' → exit 0, tsc present in packages/core and packages/core/packages/shared.
  • After fix, paperclip core booted on :3100 (server listening, DB migrated, Agent JWT set, wavex plugin v0.15.0 activated).

Fleet ignited (on this branch's fix)

  • Company tony-apple-qa (paperclip c293df60-…, prefix WAVAAAA), goal MRR 5k→15k/90d.
  • 19 Paperclip agents hired, all model: claude-sonnet-4-6, resumed (pausedidle); heartbeat scheduler enqueuing runs (heartbeat timer tick enqueued runs {checked:16,enqueued:16}); agents executing.

Changed files

  • package.json (+2/-2)

Deliverable

.plateau-agency/deliverables/fleet-launch/report.md, screenshots/ (dashboard PNG + fleet-agents-state.json + console-evidence.txt), logs/. Fleet signal at .plateau-agency/meters/fleet.ready.

🤖 Generated with Claude Code

…oots under NODE_ENV=production

The dev launch path (`pnpm dev` / `pnpm dev:paperclip`) ran
`pnpm install --prefer-offline` for the packages/core workspace. Under an
ambient NODE_ENV=production, pnpm skips devDependencies, so typescript is
never installed into packages/core and `tsc` is absent. The paperclip
dev-runner builds the plugin SDK (@paperclipai/shared -> `tsc`) before
starting the server; that build dies with `sh: tsc: command not found` and
the orchestrator never binds :3100 — blocking fleet ignition.

Add `--prod=false` to the two dev-time installs (`dev` and
`dev:paperclip:install`) so the dev workflow always installs devDeps
regardless of ambient NODE_ENV. Verified: with NODE_ENV=production set, the
patched install keeps tsc present and :3100 boots.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@aimerdoux aimerdoux merged commit 1db2b52 into main Jun 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant