Commit f385358
fix: e2e-surfaced bootstrap bugs across the new Tier-1 services
Two issues caught by an end-to-end smoke run that unit tests
missed:
1. /preview/:artifactId/* in artifacts.ts blew up at app.use()
time on Express 5 — path-to-regexp v8 requires named splats.
Fix: rename to /preview/:artifactId/*splat.
2. Server boot only initialized MemoryService + ArtifactsService.
PlanService, OrgLearningService, WorkQueueService, and the
suggest cache were defined but never wired up, so every REST
call to /api/plans/*, /api/playbooks/*, /api/companies/:cid/
work-queue/*/items hit getFooService() with no singleton and
500'd.
Adds the missing initializers next to the existing memory +
artifacts inits in server/src/index.ts. The PlanService init
also wires the onPlanCompleted hook to call
ingestCompletedPlan(memoryService, planId), so plan-completion
→ memory-ingestion (DP-10 + L-10) now actually fires in
production.
Verified via /tmp/paperclip-e2e/run-e2e.sh: company → agent →
issue → plan(2 phases + decision) → playbook + suggest → work-
queue enqueue with Idempotency-Key dedup → artifacts list.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c99f673 commit f385358
2 files changed
Lines changed: 38 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
691 | 727 | | |
692 | 728 | | |
693 | 729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
0 commit comments