[PR #925] [MERGED] refactor(slurp2): split server services into modules, data, and features (slice 5) #1196

Closed
opened 2026-10-21 05:05:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/925
Author: @Gunterlie
Created: 9/18/2026
Status: ✅ Merged
Merged: 9/18/2026
Merged by: @Gunterlie

Base: modular-simping ← Head: slurp2-slice5-server-services


📝 Commits (5)

  • 254b9bd refactor(slurp2): split server services into modules, data, and features (slice 5)
  • e77611f fix(slurp2): restore payment helpers and shared message state lost in slice 4
  • aa60cd9 chore(slurp2): rebuild 0.0.28 and record slice 5 handoff
  • 39ff372 docs(slurp2): record slice 5 pull request
  • 45525db docs(slurp2): require every slice to merge through its own PR

📊 Changes

387 files changed (+5679 additions, -5171 deletions)

View changed files

📝 SLURP-MODULE-PLAN.md (+49 -54)
📝 SLURP-MODULE-SLICE.prompt.md (+7 -5)
📝 SLURP-MODULE-STATUS.md (+167 -23)
➕ artifacts/slurp2-0.0.28.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/slurp2/CHANGELOG.md (+4 -0)
📝 packages/slurp2/client.js (+1 -1)
📝 packages/slurp2/docs/architecture/ADDING-A-MODULE.md (+3 -1)
📝 packages/slurp2/docs/architecture/DECISIONS.md (+20 -0)
📝 packages/slurp2/docs/architecture/README.md (+24 -13)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+255 -255)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpAudienceConfigSettings.tsx (+3 -3)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageChrome.tsx (+1 -1)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageOverview.tsx (+1 -1)

...and 80 more files

📄 Description

Closes #924. Slice 5 of the Slurp2 modular refactor (parent #914). Targets the modular-simping integration branch.

What changed

  • Maintainer-approved layer change: server layers are now base <- modules <- data <- features <- workflows <- entry.
    • modules/: pure domain rules, with no DB, storage, Fastify, or model call. 82 of the 147 service files are pure rules.
    • data/: persistence. This includes the Slice 4 storage facets and the slp-storage.ts composition.
    • features/: routes, services, operations, and schedulers.
    • Recorded in the plan §3, the architecture guide, and DECISIONS.md.
  • Moves: 147 services/slurp files moved with git mv to slp-* names. I deleted one Slice 4 duplicate. Three files above 800 lines were split along domain boundaries, and each split is acyclic. The largest file is now 789 lines.
  • Contracts: 11 small feature contracts. Each re-exports only the names that other features import. The world-tick workflow imports contracts only. I removed the three Slice 4 contracts that only re-exported storage.
  • Workflows: I added no subscription or notification workflow. Subscribe runs as one storage transaction, and the notification-open path is the existing world-tick catch-up. The evidence is in the ledger.
  • Garnish: only features/ads/ imports generic Garnish, and the architecture regression checks this.
  • Separate fix commit (behavior restoration): the Slice 4 profile-tip payment helpers were undefined at runtime, and the in-flight message maps were created once per instance. Both now work as on staging, and a new regression covers them.
  • Version: Slurp2 0.0.28, a builder-generated unit.

Validation

  • Architecture (0 violations), route inventory (179), storage methods (179), messages shared state, release notes, and Garnish boundary: all pass.
  • typecheck-packages slurp2 passes. npm run check passes with 0 errors.
  • I ran each regression file on its own and compared it with 7b9ba1f3: 0 new failures and 10 fixed. Two Slice 4 source-shape failures that ENOENT hid before are listed under the ledger's pending decisions.
  • Catalog, locale, and release-notes validators pass, and git diff --check passes.
  • The browser suite did not run tests: Chromium cannot load libnspr4.so on this host. This is an environment gap.
  • I did not do live lifecycle testing.

Full evidence is in the "Slice 5 (0.0.28)" section of SLURP-MODULE-STATUS.md.

Human verification

  • Review the layer change and the new server features viewer, media, and settings
  • Live install/update/restart of 0.0.28 on a dev Engine
  • Profile tip with the wallet enabled succeeds
  • Browser suite in CI or on a host with Playwright system libraries

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/925 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/18/2026 **Status:** ✅ Merged **Merged:** 9/18/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `modular-simping` ← **Head:** `slurp2-slice5-server-services` --- ### 📝 Commits (5) - [`254b9bd`](https://github.com/Pasta-Devs/Marinara-Agents/commit/254b9bd1cf240e01e11689cfdff41b5560564d78) refactor(slurp2): split server services into modules, data, and features (slice 5) - [`e77611f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e77611f84356b9f0e24c46d31381cfd73e00b204) fix(slurp2): restore payment helpers and shared message state lost in slice 4 - [`aa60cd9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/aa60cd99bcd11295e00d786c24e3e5d31f4d610c) chore(slurp2): rebuild 0.0.28 and record slice 5 handoff - [`39ff372`](https://github.com/Pasta-Devs/Marinara-Agents/commit/39ff3720dd35b0e96641298ffbac76b2b16092e8) docs(slurp2): record slice 5 pull request - [`45525db`](https://github.com/Pasta-Devs/Marinara-Agents/commit/45525db85972b901dd4b6b1d06dfe1fa09ae9a5d) docs(slurp2): require every slice to merge through its own PR ### 📊 Changes **387 files changed** (+5679 additions, -5171 deletions) <details> <summary>View changed files</summary> 📝 `SLURP-MODULE-PLAN.md` (+49 -54) 📝 `SLURP-MODULE-SLICE.prompt.md` (+7 -5) 📝 `SLURP-MODULE-STATUS.md` (+167 -23) ➕ `artifacts/slurp2-0.0.28.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/slurp2/CHANGELOG.md` (+4 -0) 📝 `packages/slurp2/client.js` (+1 -1) 📝 `packages/slurp2/docs/architecture/ADDING-A-MODULE.md` (+3 -1) 📝 `packages/slurp2/docs/architecture/DECISIONS.md` (+20 -0) 📝 `packages/slurp2/docs/architecture/README.md` (+24 -13) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+255 -255) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpAudienceConfigSettings.tsx` (+3 -3) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageChrome.tsx` (+1 -1) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageOverview.tsx` (+1 -1) _...and 80 more files_ </details> ### 📄 Description Closes #924. Slice 5 of the Slurp2 modular refactor (parent #914). Targets the `modular-simping` integration branch. ## What changed - **Maintainer-approved layer change:** server layers are now `base <- modules <- data <- features <- workflows <- entry`. - `modules/`: pure domain rules, with no DB, storage, Fastify, or model call. 82 of the 147 service files are pure rules. - `data/`: persistence. This includes the Slice 4 storage facets and the `slp-storage.ts` composition. - `features/`: routes, services, operations, and schedulers. - Recorded in the plan §3, the architecture guide, and `DECISIONS.md`. - **Moves:** 147 `services/slurp` files moved with `git mv` to `slp-*` names. I deleted one Slice 4 duplicate. Three files above 800 lines were split along domain boundaries, and each split is acyclic. The largest file is now 789 lines. - **Contracts:** 11 small feature contracts. Each re-exports only the names that other features import. The world-tick workflow imports contracts only. I removed the three Slice 4 contracts that only re-exported storage. - **Workflows:** I added no subscription or notification workflow. Subscribe runs as one storage transaction, and the notification-open path is the existing world-tick catch-up. The evidence is in the ledger. - **Garnish:** only `features/ads/` imports generic Garnish, and the architecture regression checks this. - **Separate fix commit (behavior restoration):** the Slice 4 profile-tip payment helpers were `undefined` at runtime, and the in-flight message maps were created once per instance. Both now work as on `staging`, and a new regression covers them. - **Version:** Slurp2 `0.0.28`, a builder-generated unit. ## Validation - Architecture (0 violations), route inventory (179), storage methods (179), messages shared state, release notes, and Garnish boundary: all pass. - `typecheck-packages slurp2` passes. `npm run check` passes with 0 errors. - I ran each regression file on its own and compared it with `7b9ba1f3`: 0 new failures and 10 fixed. Two Slice 4 source-shape failures that `ENOENT` hid before are listed under the ledger's pending decisions. - Catalog, locale, and release-notes validators pass, and `git diff --check` passes. - The browser suite did not run tests: Chromium cannot load `libnspr4.so` on this host. This is an environment gap. - I did not do live lifecycle testing. Full evidence is in the "Slice 5 (0.0.28)" section of `SLURP-MODULE-STATUS.md`. ## Human verification - [ ] Review the layer change and the new server features `viewer`, `media`, and `settings` - [ ] Live install/update/restart of `0.0.28` on a dev Engine - [ ] Profile tip with the wallet enabled succeeds - [ ] Browser suite in CI or on a host with Playwright system libraries --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:05:11 +07:00
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#1196
No description provided.