[GH-ISSUE #915] refactor(slurp2): split server routes into feature modules (modular refactor slice 3) #481

Closed
opened 2026-10-20 17:27:57 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Gunterlie on GitHub (Sep 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/915

Originally assigned to: @Gunterlie on GitHub.

Why

slurp.routes.ts (5254 lines) and slurp-messages.routes.ts (1608 lines) hold every Slurp2 HTTP route plus domain logic (improvement-job runner, backup/restore engine, viewer projection, world catch-up) in one closure. Slice 3 of SLURP-MODULE-PLAN.md splits them into feature-owned route modules under server/src/slp/.

Scope

  • Split both route files directly into feature route files (plan §3 allocation ledger).
  • Create shared route dependencies once in base/host/ and inject them into the mounts.
  • Move the improvement runner, backup engine, notification read model and world catch-up coordinator to their target feature/workflow modules.
  • Preserve the exact route multiset (method + URL) and construct mutable maps, sets and timers once.
  • Every new file within the architecture rules (≤ 800 lines, direction, contracts).

Part of #914. Targets the modular-simping integration branch, not staging.

Originally created by @Gunterlie on GitHub (Sep 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/915 Originally assigned to: @Gunterlie on GitHub. ## Why `slurp.routes.ts` (5254 lines) and `slurp-messages.routes.ts` (1608 lines) hold every Slurp2 HTTP route plus domain logic (improvement-job runner, backup/restore engine, viewer projection, world catch-up) in one closure. Slice 3 of `SLURP-MODULE-PLAN.md` splits them into feature-owned route modules under `server/src/slp/`. ## Scope - Split both route files directly into feature route files (plan §3 allocation ledger). - Create shared route dependencies once in `base/host/` and inject them into the mounts. - Move the improvement runner, backup engine, notification read model and world catch-up coordinator to their target feature/workflow modules. - Preserve the exact route multiset (method + URL) and construct mutable maps, sets and timers once. - Every new file within the architecture rules (≤ 800 lines, direction, contracts). Part of #914. Targets the `modular-simping` integration branch, not `staging`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#481
No description provided.