[PR #916] [MERGED] refactor(slurp2): split server routes into feature modules (slice 3) #1192

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

📋 Pull Request Information

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

Base: modular-simping ← Head: slurp2-slice3-server-routes


📝 Commits (6)

  • b5e47be docs(slurp2): start slice 3 in status ledger
  • 71cfa6c refactor(slurp2): split server routes into feature modules
  • a929049 docs(slurp2): record slice 3 validation
  • 056b99c docs(slurp2): record slice 3 CI browser blocker
  • a3dc439 docs(slurp2): record Slice 3 browser baseline
  • abbba26 fix(slurp2): address route review findings

📊 Changes

67 files changed (+8108 additions, -7295 deletions)

View changed files

📝 SLURP-MODULE-STATUS.md (+96 -45)
➕ artifacts/slurp2-0.0.26.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/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+288 -288)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/slurp2-release.ts (+6 -9)
➖ packages/slurp2/src/engine/packages/server/src/routes/slurp-messages.routes.ts (+0 -1608)
➖ packages/slurp2/src/engine/packages/server/src/routes/slurp.routes.ts (+0 -5254)
➕ packages/slurp2/src/engine/packages/server/src/slp/base/host/slp-multipart.ts (+161 -0)
➕ packages/slurp2/src/engine/packages/server/src/slp/base/host/slp-request-schemas.ts (+31 -0)
➕ packages/slurp2/src/engine/packages/server/src/slp/base/host/slp-route-host.ts (+49 -0)
➕ packages/slurp2/src/engine/packages/server/src/slp/base/host/slp-viewer-context.ts (+275 -0)
➕ packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-media-routes.ts (+181 -0)

...and 47 more files

📄 Description

Resolves #915. Part of #914.

Why

The Slurp2 route layer was two files with 6,862 lines and domain logic hidden in one closure. This slice moves it into feature-owned route modules under server/src/slp/ so later slices can move storage and services feature by feature. Behavior does not change.

This PR targets the modular-simping integration branch. Staging users receive the refactor once as 0.1.0 after all slices finish.

Changes

  • Split both route monoliths into 33 base, feature, and workflow modules.
  • Create shared route dependencies once in the server entry.
  • Move the improvement runner, backup engine, notification read model, and world catch-up coordinator to their planned modules.
  • Preserve all 179 HTTP routes and the ZIP content-type parser with an exact inventory regression.
  • Remove the two old route ownership entries.
  • Rebuild Slurp2 as integration version 0.0.26.

Validation

  • npm run check passed with 0 errors.
  • node scripts/typecheck-packages.mjs slurp2 passed.
  • Route inventory, architecture, and release-note regressions passed.
  • Catalog lanes, package locales, locale keys, catalog, release notes, and git diff --check passed.
  • Manifest payload hashes, payload byte counts, ZIP hash, ZIP size, and all catalog entries match.
  • npm run test:noodle:regressions stops at the recorded pre-existing noodler-content-formats failure. The per-file result set matches the clean staging baseline.
  • npm run test:browser:slurp2 started both Engine servers. Chromium could not start because this host does not have libnspr4.so, so the 14 browser cases did not execute.

Human verification

  • Route multiset unchanged (method + URL)
  • Package installs and activates on a dev Engine
  • Slurp2 home, feed, messages, Backstage and backup work after restart

Summary by CodeRabbit

  • Release

    • Slurp Remastered updated to version 0.0.26.
    • Existing server routes are now organized into feature-specific modules, with no intended changes to the user experience or available functionality.
  • Reliability

    • Added validation coverage for route registration, media handling, messaging, wallet behavior, release tracking, and other existing workflows.
  • Documentation

    • Updated release metadata, package catalogs, checksums, and changelog information for version 0.0.26.

🔄 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/916 **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-slice3-server-routes` --- ### 📝 Commits (6) - [`b5e47be`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b5e47beae5adfe64f3aa6bb90d099d984d86fe3e) docs(slurp2): start slice 3 in status ledger - [`71cfa6c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/71cfa6ceed79b011c9f983b9f40d64a50d1a56c5) refactor(slurp2): split server routes into feature modules - [`a929049`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a92904925ed4d4e4d1bd824215957a12213c853e) docs(slurp2): record slice 3 validation - [`056b99c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/056b99c749ef317f2dae52a293fa2b72da6dc31a) docs(slurp2): record slice 3 CI browser blocker - [`a3dc439`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a3dc43901bb626ba38eeb53b4d6d772c4b8222d2) docs(slurp2): record Slice 3 browser baseline - [`abbba26`](https://github.com/Pasta-Devs/Marinara-Agents/commit/abbba26cfc2d2f97de666ba8673a9ebd4a7fa44a) fix(slurp2): address route review findings ### 📊 Changes **67 files changed** (+8108 additions, -7295 deletions) <details> <summary>View changed files</summary> 📝 `SLURP-MODULE-STATUS.md` (+96 -45) ➕ `artifacts/slurp2-0.0.26.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/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+288 -288) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/slurp2-release.ts` (+6 -9) ➖ `packages/slurp2/src/engine/packages/server/src/routes/slurp-messages.routes.ts` (+0 -1608) ➖ `packages/slurp2/src/engine/packages/server/src/routes/slurp.routes.ts` (+0 -5254) ➕ `packages/slurp2/src/engine/packages/server/src/slp/base/host/slp-multipart.ts` (+161 -0) ➕ `packages/slurp2/src/engine/packages/server/src/slp/base/host/slp-request-schemas.ts` (+31 -0) ➕ `packages/slurp2/src/engine/packages/server/src/slp/base/host/slp-route-host.ts` (+49 -0) ➕ `packages/slurp2/src/engine/packages/server/src/slp/base/host/slp-viewer-context.ts` (+275 -0) ➕ `packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-media-routes.ts` (+181 -0) _...and 47 more files_ </details> ### 📄 Description Resolves #915. Part of #914. ## Why The Slurp2 route layer was two files with 6,862 lines and domain logic hidden in one closure. This slice moves it into feature-owned route modules under `server/src/slp/` so later slices can move storage and services feature by feature. Behavior does not change. This PR targets the `modular-simping` integration branch. Staging users receive the refactor once as `0.1.0` after all slices finish. ## Changes - Split both route monoliths into 33 base, feature, and workflow modules. - Create shared route dependencies once in the server entry. - Move the improvement runner, backup engine, notification read model, and world catch-up coordinator to their planned modules. - Preserve all 179 HTTP routes and the ZIP content-type parser with an exact inventory regression. - Remove the two old route ownership entries. - Rebuild Slurp2 as integration version `0.0.26`. ## Validation - `npm run check` passed with 0 errors. - `node scripts/typecheck-packages.mjs slurp2` passed. - Route inventory, architecture, and release-note regressions passed. - Catalog lanes, package locales, locale keys, catalog, release notes, and `git diff --check` passed. - Manifest payload hashes, payload byte counts, ZIP hash, ZIP size, and all catalog entries match. - `npm run test:noodle:regressions` stops at the recorded pre-existing `noodler-content-formats` failure. The per-file result set matches the clean staging baseline. - `npm run test:browser:slurp2` started both Engine servers. Chromium could not start because this host does not have `libnspr4.so`, so the 14 browser cases did not execute. ## Human verification - [ ] Route multiset unchanged (method + URL) - [ ] Package installs and activates on a dev Engine - [ ] Slurp2 home, feed, messages, Backstage and backup work after restart <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Release** - Slurp Remastered updated to version 0.0.26. - Existing server routes are now organized into feature-specific modules, with no intended changes to the user experience or available functionality. - **Reliability** - Added validation coverage for route registration, media handling, messaging, wallet behavior, release tracking, and other existing workflows. - **Documentation** - Updated release metadata, package catalogs, checksums, and changelog information for version 0.0.26. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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:05 +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#1192
No description provided.