[PR #947] [MERGED] refactor(slurp2): complete client ownership migration (slice 11) #1207

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

📋 Pull Request Information

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

Base: modular-simping ← Head: slurp2-slice11-ownership-completion


📝 Commits (10+)

  • e84d8f5 refactor(slurp2): move the last client components into slp and restore the lost screens
  • 4199e3c refactor(slurp2): route the last cross-feature reads through contracts and move the fan card into modules
  • 7caa4a9 fix(slurp2): repair the split's broken exports and widen the typecheck gate to the whole missing-export family
  • 3914896 refactor(slurp2): split the post card's reply row, reply composer and composer shell out
  • 0cd48e1 refactor(slurp2): split the creator post card's action menu out
  • e19f070 refactor(slurp2): split the hub's view derivation, discover filters and suggested creators out
  • c914da4 refactor(slurp2): give the creator profile screen a view model and split its parts out
  • fa30f38 refactor(slurp2): give the onboarding wizard a view model
  • 3932fe8 refactor(slurp2): split the onboarding wizard's five steps out
  • c631a0d refactor(slurp2): split the messages thread chrome, memories, bubbles and tools out

📊 Changes

105 files changed (+22598 additions, -19791 deletions)

View changed files

📝 SLURP-MODULE-STATUS.md (+139 -13)
➕ artifacts/slurp2-0.0.34.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/slurp2/CHANGELOG.md (+6 -0)
📝 packages/slurp2/client.js (+46 -45)
📝 packages/slurp2/docs/architecture/DECISIONS.md (+27 -0)
📝 packages/slurp2/manifest.json (+3 -3)
➖ packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpCreatorPostCard.tsx (+0 -1677)
➖ packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpHome.tsx (+0 -8143)
➖ packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpMessages.tsx (+0 -5159)
➖ packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpOnboardingPanel.tsx (+0 -1608)
➖ packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpPostCard.tsx (+0 -2512)
➕ packages/slurp2/src/engine/packages/client/src/slp/app/SlpHomeHost.tsx (+406 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/SlpRouter.tsx (+1 -1)
➕ packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHomeCreatorFlow.tsx (+471 -0)

...and 80 more files

📄 Description

Closes #941.

Why

Slice 10 left seven Slurp components in packages/client/src/components/slurp/. The architecture test tolerated them only because it flagged just the stray files named slp-/Slp. This PR moves and splits them into the slp layers and removes that exception. It also widens the package typecheck so the defects a mechanical split produces fail the gate before esbuild finds them.

What changed

  • components/slurp/ is gone. SlurpHome becomes a router host with state and action hooks and one screen file per destination in app/screens/. SlurpMessages moves to features/messages/, with commissions in features/messages/commissions/. The post cards move to modules/post/ and render from props and context, with no feature hook. Onboarding and the creator forms move into their features. No architecture file is over 800 lines.
  • Cross-feature reads go through slp-*-contract.ts files. There is a new slp-media-contract. The fan card moves to modules/audience/.
  • slurp2OwnedSourcePaths is exactly six entries in the builder and in the catalog validator. The catalog validator had its own stale copy of the list. The ownership rule now rejects any implementation file outside the roots and the three permanent exceptions. A fixture proves that a stray file without an slp name fails.
  • Pending decision 2: the typecheck gate now reports TS2305, TS2459, TS2724 and TS2300. There are fixtures for each code. The gate found 8 pre-existing server type-import defects, and this PR fixes them.
  • The Arc library editor is split, and its ponytail: note is removed.
  • Slurp2 0.0.34, rebuilt from the recorded Engine worktree.

Parallel-session repair

A second agent session edited this worktree during the slice. It stubbed the wallet screen and rewrote several Home helpers from memory. The maintainer said to ignore that work. I restored every top-level declaration of the original SlurpHome.tsx from 09066008. A line-coverage check against all seven original files finds no missing original line, except formatting reflows and the deliberate splits.

Validation notes (security-sensitive: executable client bundle)

  • Regression suite: the baseline at 09066008 is 177 pass / 27 fail over 204 files. This branch is 177 pass / 27 fail on the same files, with the same errors.
  • npm run check, typecheck, the catalog lanes, the locale checks, validate-catalog, the release notes check and git diff --check all pass.
  • slurp2-0.0.34.zip has sha256 75329c91…c7ef and is 6,755,296 bytes. It contains only its 6 declared files, and all three catalog lanes agree. server.mjs is unchanged from 0.0.33. Permissions, routes, tables, locale keys and the Engine range are unchanged.
  • Not verified: a local browser run fails 12 of 14 cases because the local Engine dev servers die. Please use this PR's browser job for the per-case check. dev-marinara2 is unreachable, so there is no live lifecycle proof.

Full evidence: SLURP-MODULE-STATUS.md → Slice 11 result.

Test plan (human verification)

  • CI browser job compared per case with Slice 10
  • Live install/update from 0.0.33 on a dev Engine once dev-marinara2 is reachable
  • Review the restored Home helpers and wallet screen

🔄 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/947 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/19/2026 **Status:** ✅ Merged **Merged:** 9/19/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `modular-simping` ← **Head:** `slurp2-slice11-ownership-completion` --- ### 📝 Commits (10+) - [`e84d8f5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e84d8f5c9bcfb1df6817145efaa7c12f72ba1112) refactor(slurp2): move the last client components into slp and restore the lost screens - [`4199e3c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4199e3c9e27213f35901216796f6ccca55fcd0a4) refactor(slurp2): route the last cross-feature reads through contracts and move the fan card into modules - [`7caa4a9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7caa4a942e055079fa5d1debf2bd0f5522b730ba) fix(slurp2): repair the split's broken exports and widen the typecheck gate to the whole missing-export family - [`3914896`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3914896e1d839c3a3a3c448a6073b965653ce55e) refactor(slurp2): split the post card's reply row, reply composer and composer shell out - [`0cd48e1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0cd48e1edd43cce2b4bd565f9adc6fe13506f485) refactor(slurp2): split the creator post card's action menu out - [`e19f070`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e19f07033a9b6092a9afea762d0b7e56fbd14631) refactor(slurp2): split the hub's view derivation, discover filters and suggested creators out - [`c914da4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c914da4913300c62048efbea90bb3b32ed5bddf5) refactor(slurp2): give the creator profile screen a view model and split its parts out - [`fa30f38`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fa30f38600e152c7618fbb639a0bfb8d0de7b0ce) refactor(slurp2): give the onboarding wizard a view model - [`3932fe8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3932fe8f93db74a3ab71d0dc472b7d887f624fdd) refactor(slurp2): split the onboarding wizard's five steps out - [`c631a0d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c631a0d237ce961b77a6fd05b50477565f0b25c4) refactor(slurp2): split the messages thread chrome, memories, bubbles and tools out ### 📊 Changes **105 files changed** (+22598 additions, -19791 deletions) <details> <summary>View changed files</summary> 📝 `SLURP-MODULE-STATUS.md` (+139 -13) ➕ `artifacts/slurp2-0.0.34.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/slurp2/CHANGELOG.md` (+6 -0) 📝 `packages/slurp2/client.js` (+46 -45) 📝 `packages/slurp2/docs/architecture/DECISIONS.md` (+27 -0) 📝 `packages/slurp2/manifest.json` (+3 -3) ➖ `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpCreatorPostCard.tsx` (+0 -1677) ➖ `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpHome.tsx` (+0 -8143) ➖ `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpMessages.tsx` (+0 -5159) ➖ `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpOnboardingPanel.tsx` (+0 -1608) ➖ `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpPostCard.tsx` (+0 -2512) ➕ `packages/slurp2/src/engine/packages/client/src/slp/app/SlpHomeHost.tsx` (+406 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/SlpRouter.tsx` (+1 -1) ➕ `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHomeCreatorFlow.tsx` (+471 -0) _...and 80 more files_ </details> ### 📄 Description Closes #941. ## Why Slice 10 left seven Slurp components in `packages/client/src/components/slurp/`. The architecture test tolerated them only because it flagged just the stray files named `slp-`/`Slp`. This PR moves and splits them into the `slp` layers and removes that exception. It also widens the package typecheck so the defects a mechanical split produces fail the gate before esbuild finds them. ## What changed - `components/slurp/` is gone. `SlurpHome` becomes a router host with state and action hooks and one screen file per destination in `app/screens/`. `SlurpMessages` moves to `features/messages/`, with commissions in `features/messages/commissions/`. The post cards move to `modules/post/` and render from props and context, with no feature hook. Onboarding and the creator forms move into their features. No architecture file is over 800 lines. - Cross-feature reads go through `slp-*-contract.ts` files. There is a new `slp-media-contract`. The fan card moves to `modules/audience/`. - `slurp2OwnedSourcePaths` is exactly six entries in the builder and in the catalog validator. The catalog validator had its own stale copy of the list. The ownership rule now rejects any implementation file outside the roots and the three permanent exceptions. A fixture proves that a stray file without an `slp` name fails. - Pending decision 2: the typecheck gate now reports TS2305, TS2459, TS2724 and TS2300. There are fixtures for each code. The gate found 8 pre-existing server type-import defects, and this PR fixes them. - The Arc library editor is split, and its `ponytail:` note is removed. - Slurp2 0.0.34, rebuilt from the recorded Engine worktree. ## Parallel-session repair A second agent session edited this worktree during the slice. It stubbed the wallet screen and rewrote several Home helpers from memory. The maintainer said to ignore that work. I restored every top-level declaration of the original `SlurpHome.tsx` from `09066008`. A line-coverage check against all seven original files finds no missing original line, except formatting reflows and the deliberate splits. ## Validation notes (security-sensitive: executable client bundle) - Regression suite: the baseline at `09066008` is 177 pass / 27 fail over 204 files. This branch is 177 pass / 27 fail on the same files, with the same errors. - `npm run check`, typecheck, the catalog lanes, the locale checks, `validate-catalog`, the release notes check and `git diff --check` all pass. - `slurp2-0.0.34.zip` has sha256 `75329c91…c7ef` and is 6,755,296 bytes. It contains only its 6 declared files, and all three catalog lanes agree. `server.mjs` is unchanged from 0.0.33. Permissions, routes, tables, locale keys and the Engine range are unchanged. - **Not verified:** a local browser run fails 12 of 14 cases because the local Engine dev servers die. Please use this PR's browser job for the per-case check. `dev-marinara2` is unreachable, so there is no live lifecycle proof. Full evidence: `SLURP-MODULE-STATUS.md` → *Slice 11 result*. ## Test plan (human verification) - [ ] CI browser job compared per case with Slice 10 - [ ] Live install/update from 0.0.33 on a dev Engine once `dev-marinara2` is reachable - [ ] Review the restored Home helpers and wallet screen --- <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:38 +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#1207
No description provided.