[GH-ISSUE #914] refactor(slurp2): architecture contract and safety rails (modular refactor slices 0–1) #480

Closed
opened 2026-10-20 17:27:55 +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/914

Originally assigned to: @Gunterlie on GitHub.

Why

Slurp2 has five very large route, storage, hook, and UI files and a flat service directory. The approved modular refactor (SLURP-MODULE-PLAN.md) moves it into package-owned slp roots with feature-first modules. Before any file moves, we need safety rails so the later moves cannot silently break the package.

Scope (slices 0 and 1 only)

  • Package-level packages/slurp2/AGENTS.md and docs/architecture/ guidance matching the plan.
  • tests/slurp2-architecture.regression.ts enforcing dependency direction, contract-only cross-feature imports, ownership roots, slp-/Slp naming, no index.ts barrels, shared-layer direction and an 800-line ceiling — each proven by negative fixtures.
  • Stop slurp2OwnedSourcePaths spreading legacy slurpOwnedSourcePaths; inline Slurp2's current list; claim services/garnish-ads so it leaves the generic sources/engine snapshot.
  • Delete the two dead custom-emoji files after importer re-verification.
  • Report TS2307 (unresolved module) in scripts/typecheck-packages.mjs, with a regression.
  • tests/slurp2-source.ts logical source map; convert the monolith/Backstage source-reading tests without changing assertions.
  • Commit the plan, map, status ledger and slice prompts.
  • Patch-bump and rebuild Slurp2.

No live implementation module moves in this batch.

Originally created by @Gunterlie on GitHub (Sep 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/914 Originally assigned to: @Gunterlie on GitHub. ## Why Slurp2 has five very large route, storage, hook, and UI files and a flat service directory. The approved modular refactor (`SLURP-MODULE-PLAN.md`) moves it into package-owned `slp` roots with feature-first modules. Before any file moves, we need safety rails so the later moves cannot silently break the package. ## Scope (slices 0 and 1 only) - Package-level `packages/slurp2/AGENTS.md` and `docs/architecture/` guidance matching the plan. - `tests/slurp2-architecture.regression.ts` enforcing dependency direction, contract-only cross-feature imports, ownership roots, `slp-`/`Slp` naming, no `index.ts` barrels, shared-layer direction and an 800-line ceiling — each proven by negative fixtures. - Stop `slurp2OwnedSourcePaths` spreading legacy `slurpOwnedSourcePaths`; inline Slurp2's current list; claim `services/garnish-ads` so it leaves the generic `sources/engine` snapshot. - Delete the two dead custom-emoji files after importer re-verification. - Report TS2307 (unresolved module) in `scripts/typecheck-packages.mjs`, with a regression. - `tests/slurp2-source.ts` logical source map; convert the monolith/Backstage source-reading tests without changing assertions. - Commit the plan, map, status ledger and slice prompts. - Patch-bump and rebuild Slurp2. No live implementation module moves in this batch.
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#480
No description provided.