[PR #954] [MERGED] Slurp2 slice 12: slurp2 owns its vocabulary #1213

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

📋 Pull Request Information

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

Base: staging ← Head: slurp2-slice12-own-vocabulary


📝 Commits (6)

  • 775c08a fix(slurp2): drop the leftover Noodle mention from the wizard intro copy
  • a41c8e4 refactor(slurp2): own the social vocabulary instead of borrowing the Engine Noodle names
  • 5ba3d6c refactor(slurp2): rename the Slurp2-internal Noodle identifiers
  • 73be21d release(slurp2): publish 0.1.1
  • 2ee471d test(slurp2): follow the renamed vocabulary in the source-reading regressions and ship 0.1.1 notes
  • 986cb00 fix(slurp2): send SwarmUI prompt images and LoRAs without a custom workflow

📊 Changes

303 files changed (+7152 additions, -5074 deletions)

View changed files

➕ artifacts/slurp2-0.1.1.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 (+7 -0)
📝 packages/slurp2/client.js (+34 -34)
📝 packages/slurp2/docs/architecture/DECISIONS.md (+42 -0)
➕ packages/slurp2/docs/architecture/slurp2-owned-vocabulary.json (+192 -0)
➕ packages/slurp2/docs/architecture/slurp2-vocabulary-rename-map.json (+204 -0)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+256 -256)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/SlpHomeHost.tsx (+22 -22)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHomeCreatorFlow.tsx (+27 -23)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHomeDestinations.tsx (+11 -11)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHomeHelpers.tsx (+49 -47)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHubDiscover.tsx (+2 -2)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpProfileModals.tsx (+4 -4)

...and 80 more files

📄 Description

Pull request

Linked issue

Closes #953

Why this change

  • Slurp2 borrowed 106 Noodle-named symbols from the Engine to describe its own slurp2_* rows and its own /api/slurp2 payloads. The package could not build without the Engine's Noodle vocabulary, and its own user-visible copy still said Noodle where Slurp was meant.
  • Two of those imports named types that do not exist in the Engine at all, so they resolved to nothing. That was a live defect.
  • The Engine cannot be renamed instead: frozen legacy Slurp is never rebuilt, so renaming Engine types would leave it unbuildable and a future security fix to it could never ship.
  • Separately, a user reported that Slurp images were missing the SwarmUI fixes from Marinara-Engine#6359. Slurp2 bundles the Engine's image-generation service from the checked-in snapshot in sources/engine/, and that snapshot predated the fix, so LoRAs and prompt images were silently dropped for every Slurp user.

What changed

  • Slurp2 owns its vocabulary. All 202 declarations behind the borrowed names are copied into the package-owned packages/shared/src/slp/ root, renamed Noodle -> Slp and Noodler -> SlpCreator. No re-export shim, no alias back to the old name.
  • Internal identifiers renamed. 493 Slurp2-internal symbols, including the query-key factory, the useNoodler* hooks, the shell and chrome components, and the Drizzle symbols.
  • User-visible copy. One locale value and one validation message that said Noodle where Slurp was meant.
  • SwarmUI prompt images and LoRAs backported into the vendored snapshot, 18 insertions and 1 deletion in one file.
  • Two new regressions: slurp2-owned-vocabulary and slurp2-vocabulary-shape.
  • Version 0.1.0 -> 0.1.1 with matching packages/slurp2/CHANGELOG.md and splash entries. Generated payloads, manifest, artifact and all three catalog lanes rebuilt by the builder.
  • Affected package: slurp2 only. packages/slurp/, packages/noodle/ and the rest of sources/engine/ have zero diff against staging.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none. engine.min stays 2.4.5, engine.maxExclusive stays 4.0.0.
  • New or changed permissions/entrypoints: none. Permissions, entrypoints and package id are unchanged.
  • Restart, storage, update, or uninstall impact: none. No persisted name changed, so existing users keep working with no migration. Every slurp2_* table and column, stored JSON key, storage key, settings key, locale key, route path and the platform value "noodler" is untouched. Proof: the multiset of string literals across the package source has zero removals.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Agent-run results, for the reviewer to confirm. The boxes above are deliberately left unticked.

Command Result
npm run check 0 errors, 895 warnings (unchanged from staging)
node scripts/typecheck-packages.mjs slurp2 passes
npm run test:noodle:regressions 23 failures, identical to the staging baseline. No new failure
npm run test:browser:slurp2 10 failures locally vs 13 on the staging baseline. No new failure. CI job is red; see Browser suite
node scripts/test-catalog-lanes.mjs passes
node scripts/validate-package-locales.mjs passes
node scripts/validate-package-locale-keys.mjs passes
node scripts/validate-catalog.mjs passes
node scripts/tests/catalog-release-notes.regression.mjs passes
git diff --check clean

Live verification on a real Engine, by sideload over a running 0.1.0 with real data:

  • Updated 0.1.0 -> 0.1.1. Container restarted and came up healthy; registry shows slurp2 0.1.1 enabled.
  • Data survived: 50 rows in slurp2_accounts, 285 in slurp2_posts, all slurp2_* tables present.
  • Routes serve: /api/slurp2/settings and /api/slurp2/noodler/accounts both answer 403, the auth guard, not 404. The /noodler/* paths are intact.
  • Legacy Slurp and Noodle unaffected: 39 slurp_* and 35 noodle* tables intact, noodle 1.2.23 still enabled.
  • The SwarmUI backport is present in the deployed server.mjs.
  • Not tested: uninstall. It would delete real Slurp data on a live instance.
  • Not tested: tablet and mobile viewports. No disposable box was reachable.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

Note for the reviewer: packages/slurp2/docs/architecture/DECISIONS.md gains the slice 12 entry, and the type classification is committed as slurp2-vocabulary-rename-map.json and slurp2-owned-vocabulary.json.

UI evidence (if applicable)

No UI change. The only rendered difference is one wizard sentence and one validation message, both listed under Part 1.


Detail

Part 1 — user-visible copy

Only four locale values in the four Slurp2 catalogs mention Noodle. Three name Noodle the separate app on purpose and are unchanged.

Key Before After
ui.noodle.noodlerwizard.intro.what.help (en) Noodle and Slurp are two local social roleplay surfaces that you control. Slurp is a local social roleplay surface that you control.

Unchanged on purpose:

  • ui.slurp.settings.advanced.backupDetail (en, de, ko, pl)
  • ui.slurp.settings.advanced.deleteAllDetail (en)
  • ui.slurp.settings.advanced.deleteAllConfirmDetail (en)

One more user-visible string moved with the copied schema: the handle validation message "Enter a Noodle handle." became "Enter a Slurp handle.". It is the single recorded value delta in the shape proof.

No key was added or removed. The de, ko and pl catalogs do not carry the changed key.

Gate — does Slurp2 ever receive Engine-produced Noodle data?

No. Every checked path is clear, so no Noodle-named symbol is an Engine contract.

  • grep -rn "noodle_" packages/slurp2/src returns nothing. Slurp2's Drizzle symbols all resolve to its own slurp2_* schema. Engine Noodle tables (noodle_posts, noodler_reserve_state, noodle_refresh_runs, ...) are never named.
  • The host activation surface, slp-server-entry.ts, passes no Noodle-shaped value in or out. It is registerService, registerPromptContext, registerPrivilegedRoutes, runInternalRoute and registerTables.
  • Engine services/import/profile-import-noodle.ts has exactly one importer, Engine backup.routes.ts. No Slurp2 file reaches either.
  • Engine backup keys off noodle_* names and the noodle:backup capability. Slurp2 registers its own slurp2:backup, a no-op pause carrying no data.
  • The persona and character source bridge, slp-source-resolve.ts, crosses on Engine Character and Persona. A SlpAccount appears only as Pick<…, "kind" | "entityId">: a Slurp2 row holding a pointer into Engine character storage. The pointer is the contract, not the containing type.

Type classification

Classification Count Action
Slurp2-owned 202 declarations behind 104 imported names Copied into shared/src/slp/, renamed Noodle -> Slp, Noodler -> SlpCreator
Real Engine contract 10 names, none Noodle-named Engine import kept
Ambiguous 0 —

Engine imports kept: APIProvider, AvatarCrop, avatarCropSchema, normalizeAvatarCrop, Persona, PROFESSOR_MARI_ID, CSRF_HEADER, CSRF_HEADER_VALUE, LIMITS, isOpenAIGpt56Model. AvatarCrop and avatarCropSchema stay because Engine avatar rendering consumes them.

NoodlePostImageCrop was the closest call and is Slurp2-owned: it is read only out of Slurp2's own slurp2_posts.metadata.imageCrop by Slurp2's own editor. No Engine path touches it.

The full name-by-name map is committed as packages/slurp2/docs/architecture/slurp2-vocabulary-rename-map.json (202 entries) and slurp2-owned-vocabulary.json (the 190 exported ones). The decision is recorded in packages/slurp2/docs/architecture/DECISIONS.md.

New files in packages/slurp2/src/engine/packages/shared/src/slp/: slp-social.types.ts, slp-social.schema.ts, slp-social-generation.schema.ts, slp-mentions.ts, slp-polls.ts, slp-post-images.ts, slp-creator-onboarding.ts, slp-interactions.ts. The schema is split in two only to stay under the 800-line architecture budget.

Two imports that resolved to nothing

NoodlePostCardModel and NoodlerPostDraftImage were imported from @marinara-engine/shared, but neither exists in the Engine. Both are declared locally in Slurp2. Those imports now point at the local modules. This was a pre-existing defect.

Part 4 — SwarmUI prompt images and LoRAs (maintainer request)

Slurp2 bundles the Engine's image-generation.ts from the checked-in snapshot in sources/engine/. The snapshot predates Marinara-Engine PR #6359, so buildSwarmUiGenerationBody returned the request body before it attached LoRAs or reference images whenever no custom ComfyUI workflow was set. Slurp2 users lost both. The snapshot does not refresh on its own.

Backported from PR #6359, 18 insertions and 1 deletion in one file:

  • the LoRA and promptimages block on the no-workflow SwarmUI path;
  • the debug redaction that keeps reference images out of the logs.

The helper signatures collectComfyReferenceImages(request, defaults) and decodeReferenceImage(reference) are identical in the snapshot and on Engine staging, so the backport is exact. Verified present in the shipped server.mjs.

Not backported: the donotsave change from the same PR. It reads defaults.saveToBackend, which the snapshot's shared types do not carry. With the field absent the expression yields the old literal true, so no behaviour is lost.

The rest of the snapshot is untouched. It is 162 Engine commits behind staging and 187 of 363 vendored files differ; a wholesale refresh is not patch-release work. Legacy Slurp and Noodle still build from this branch with the patched snapshot, and neither package has any diff.

Follow-up, now tracked: the copy exists only because image generation is not on the package host API, so it must be inlined at build time and then drifts.

  • Pasta-Devs/Marinara-Engine#6385 — expose image generation, LLM providers and video on the package host API so packages call them instead of copying them.
  • #955 — a CI gate on sources/engine/ drift and orphans, which would have caught this without waiting on the Engine work.

Part 3 — internal identifiers

493 Slurp2-internal symbols renamed: the query-key factory noodleKeys -> slpKeys, the useNoodler* hooks, NoodleShell, NoodlerFrame, NoodleAnchoredPopover, NoodleToolButton, and the Drizzle symbols for the slurp2_* tables.

Nothing persisted moved. The rename touches identifiers only, never a string literal.

Deliberately not renamed:

  • createNoodlerPost, a public storage method. It is part of the 179-name storage surface.
  • 44 symbols that are used in object shorthand or also appear inside a string literal, so renaming one could change a persisted or wire key. They are listed in the commit for Part 3 and include noodleAccountId, noodlerAccountId, NOODLER_MEDIA_PREFIX and the prompt-instruction constants.

Proof

Proof Result
179 HTTP route multiset unchanged (slurp2-route-inventory)
179 public storage method names unchanged (slurp2-storage-methods)
Query-key values byte-identical to staging; slpKeys has one definition
Architecture regression passes, no allowlist change
node scripts/typecheck-packages.mjs slurp2 passes
No reclassified Engine import slurp2-owned-vocabulary, with a negative fixture
Copy is shape-identical slurp2-vocabulary-shape, 202 declarations, one recorded value delta
String literals in package source zero removed; the only additions are new import paths and the strings that came with the copied schema
packages/slurp/, packages/noodle/, sources/engine/ zero diff against staging
Legacy Slurp and Noodle build from this branch yes
git diff --check clean

slurp2-vocabulary-shape needs MARINARA_ENGINE_ROOT and reports a skip without one. That is a known limitation, recorded in DECISIONS.md.

Noodle hit counts in packages/slurp2/src

Before 11957, after 7146. Every remaining hit is classified, none unclassified:

Category Count
locale key 3833
string literal 1525
persisted or wire key (property name or access) 576
internal identifier tied to a persisted key, deferred 794
comment or doc 145
route path 143
unclassified 0

Regression baseline

Re-derived at the merge base, origin/staging: 23 pre-existing failures across noodle*, noodler-*, slurp-* and slurp2-*. On this branch: 23. No new failure, none fixed.

23 source-reading regressions assert on Slurp2 source by name and follow the rename. They read Slurp2 only.

Browser suite

npm run test:browser:slurp2, run on this branch and on origin/staging with the same Engine worktree.

failed skipped passed
origin/staging baseline 13 1 0
this branch 10 1 3

No new browser failure. Three cases that fail on the baseline pass here: opens as an enabled pink Creator surface on desktop and mobile, and requires the current release acknowledgement on desktop. The remaining ten fail identically on the baseline and are environmental: the Engine worktree used for the run is 162 commits behind staging, so the host UI the suite drives is stale.

Package proof

Rebuilt with the builder; no generated payload, manifest, ZIP, catalog, hash or size was hand-edited.

TMPDIR=/home/dev/.cache/slp-tmp \
MARINARA_ENGINE_ROOT=<engine worktree> \
node scripts/build-feature-packages.mjs slurp2
  • Engine worktree: branch welcome-to-the-agentshop, commit fdb67d47bfb909f013346afdb3d2c23d72d7b399, clean. It is 4 commits ahead of and 162 commits behind origin/staging. See Gaps.
  • Artifact artifacts/slurp2-0.1.1.zip, sha256 ed0b3e35bbd0e60b1af0ce1906d5404c15dc1fa14a8e6e161ebe04740fadfed0, 6782015 bytes.
  • The ZIP holds only its five declared files plus manifest.json. Every manifest hash and size matches the ZIP contents. All three catalog lanes carry the same 0.1.1 entry and the same hashes.

Live proof

Done on the production Engine at the maintainer's explicit direction, by sideload over the running 0.1.0.

  • Updated 0.1.0 -> 0.1.1 with real existing data. Container restarted and came up healthy.
  • Data survived: 50 rows in slurp2_accounts, 285 in slurp2_posts, all slurp2_* tables present.
  • Routes serve: /api/slurp2/settings and /api/slurp2/noodler/accounts both answer 403 (the auth guard), not 404, so the /noodler/* paths are intact.
  • Registry shows slurp2 0.1.1 enabled.
  • Legacy Slurp and Noodle unaffected: 39 slurp_* and 35 noodle* tables intact, noodle 1.2.23 still enabled.
  • The new English wizard string is in the shipped bundle and the old one is gone. All four catalogs ship; both locale validators pass.
  • Re-sideloaded after the SwarmUI backport: loraweights is present in the deployed server.mjs, data still 50 accounts and 285 posts, routes still 403.

Gaps

  • Uninstall was not tested. It would delete real Slurp data on a live instance. Not run without a separate go-ahead.
  • Desktop, tablet and mobile viewports were not checked. dev-marinara2 was unreachable, so there was no disposable box for UI passes.
  • The vendored sources/engine/ snapshot is 162 commits behind origin/staging, with 187 of 363 files differing. Only the SwarmUI hunks were refreshed. Other Engine fixes since that point are still missing from Slurp2 and need their own refresh slice. Tracked in #955 and Pasta-Devs/Marinara-Engine#6385.
  • slurp2-vocabulary-shape skips without MARINARA_ENGINE_ROOT.

Pending decisions

  • Renaming the /noodler/* routes. Runtime-safe, because the client and the server ship in one bundle, but it deliberately rewrites the 179-route inventory baseline. It needs its own slice.
  • The 44 deferred identifiers. Each is tied to a shorthand object key or a string literal, so each needs an individual check that the key is not persisted.

🔄 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/954 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/19/2026 **Status:** ✅ Merged **Merged:** 9/19/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `slurp2-slice12-own-vocabulary` --- ### 📝 Commits (6) - [`775c08a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/775c08aa3f44680dfd70edc9927e10a807a38049) fix(slurp2): drop the leftover Noodle mention from the wizard intro copy - [`a41c8e4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a41c8e41efc9d1d75fdbe0f1894349ffd41c2944) refactor(slurp2): own the social vocabulary instead of borrowing the Engine Noodle names - [`5ba3d6c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5ba3d6c0dda935dbd317409d71cc6e2aa4e0ac37) refactor(slurp2): rename the Slurp2-internal Noodle identifiers - [`73be21d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/73be21d3befc54f776d86b3d024dab44ccefa5ad) release(slurp2): publish 0.1.1 - [`2ee471d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2ee471da9f6cde06f02eb2592655094ad1891b35) test(slurp2): follow the renamed vocabulary in the source-reading regressions and ship 0.1.1 notes - [`986cb00`](https://github.com/Pasta-Devs/Marinara-Agents/commit/986cb00d0329609239e0b3a7601ada38e2cd0de2) fix(slurp2): send SwarmUI prompt images and LoRAs without a custom workflow ### 📊 Changes **303 files changed** (+7152 additions, -5074 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.1.1.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` (+7 -0) 📝 `packages/slurp2/client.js` (+34 -34) 📝 `packages/slurp2/docs/architecture/DECISIONS.md` (+42 -0) ➕ `packages/slurp2/docs/architecture/slurp2-owned-vocabulary.json` (+192 -0) ➕ `packages/slurp2/docs/architecture/slurp2-vocabulary-rename-map.json` (+204 -0) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+256 -256) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/SlpHomeHost.tsx` (+22 -22) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHomeCreatorFlow.tsx` (+27 -23) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHomeDestinations.tsx` (+11 -11) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHomeHelpers.tsx` (+49 -47) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHubDiscover.tsx` (+2 -2) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpProfileModals.tsx` (+4 -4) _...and 80 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #953 ## Why this change - Slurp2 borrowed 106 Noodle-named symbols from the Engine to describe its own `slurp2_*` rows and its own `/api/slurp2` payloads. The package could not build without the Engine's Noodle vocabulary, and its own user-visible copy still said Noodle where Slurp was meant. - Two of those imports named types that do not exist in the Engine at all, so they resolved to nothing. That was a live defect. - The Engine cannot be renamed instead: frozen legacy Slurp is never rebuilt, so renaming Engine types would leave it unbuildable and a future security fix to it could never ship. - Separately, a user reported that Slurp images were missing the SwarmUI fixes from Marinara-Engine#6359. Slurp2 bundles the Engine's image-generation service from the checked-in snapshot in `sources/engine/`, and that snapshot predated the fix, so LoRAs and prompt images were silently dropped for every Slurp user. ## What changed - **Slurp2 owns its vocabulary.** All 202 declarations behind the borrowed names are copied into the package-owned `packages/shared/src/slp/` root, renamed `Noodle` -> `Slp` and `Noodler` -> `SlpCreator`. No re-export shim, no alias back to the old name. - **Internal identifiers renamed.** 493 Slurp2-internal symbols, including the query-key factory, the `useNoodler*` hooks, the shell and chrome components, and the Drizzle symbols. - **User-visible copy.** One locale value and one validation message that said Noodle where Slurp was meant. - **SwarmUI prompt images and LoRAs** backported into the vendored snapshot, 18 insertions and 1 deletion in one file. - **Two new regressions**: `slurp2-owned-vocabulary` and `slurp2-vocabulary-shape`. - **Version `0.1.0` -> `0.1.1`** with matching `packages/slurp2/CHANGELOG.md` and splash entries. Generated payloads, manifest, artifact and all three catalog lanes rebuilt by the builder. - Affected package: `slurp2` only. `packages/slurp/`, `packages/noodle/` and the rest of `sources/engine/` have zero diff against `staging`. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none. `engine.min` stays `2.4.5`, `engine.maxExclusive` stays `4.0.0`. - New or changed permissions/entrypoints: none. Permissions, entrypoints and package id are unchanged. - Restart, storage, update, or uninstall impact: none. No persisted name changed, so existing users keep working with no migration. Every `slurp2_*` table and column, stored JSON key, storage key, settings key, locale key, route path and the `platform` value `"noodler"` is untouched. Proof: the multiset of string literals across the package source has **zero removals**. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Agent-run results, for the reviewer to confirm. The boxes above are deliberately left unticked. | Command | Result | | --- | --- | | `npm run check` | 0 errors, 895 warnings (unchanged from `staging`) | | `node scripts/typecheck-packages.mjs slurp2` | passes | | `npm run test:noodle:regressions` | 23 failures, identical to the `staging` baseline. No new failure | | `npm run test:browser:slurp2` | 10 failures locally vs 13 on the `staging` baseline. No new failure. CI job is red; see Browser suite | | `node scripts/test-catalog-lanes.mjs` | passes | | `node scripts/validate-package-locales.mjs` | passes | | `node scripts/validate-package-locale-keys.mjs` | passes | | `node scripts/validate-catalog.mjs` | passes | | `node scripts/tests/catalog-release-notes.regression.mjs` | passes | | `git diff --check` | clean | Live verification on a real Engine, by sideload over a running `0.1.0` with real data: - Updated `0.1.0` -> `0.1.1`. Container restarted and came up healthy; registry shows `slurp2 0.1.1 enabled`. - Data survived: 50 rows in `slurp2_accounts`, 285 in `slurp2_posts`, all `slurp2_*` tables present. - Routes serve: `/api/slurp2/settings` and `/api/slurp2/noodler/accounts` both answer 403, the auth guard, not 404. The `/noodler/*` paths are intact. - Legacy Slurp and Noodle unaffected: 39 `slurp_*` and 35 `noodle*` tables intact, `noodle 1.2.23` still enabled. - The SwarmUI backport is present in the deployed `server.mjs`. - **Not tested: uninstall.** It would delete real Slurp data on a live instance. - **Not tested: tablet and mobile viewports.** No disposable box was reachable. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Note for the reviewer: `packages/slurp2/docs/architecture/DECISIONS.md` gains the slice 12 entry, and the type classification is committed as `slurp2-vocabulary-rename-map.json` and `slurp2-owned-vocabulary.json`. ## UI evidence (if applicable) No UI change. The only rendered difference is one wizard sentence and one validation message, both listed under Part 1. --- # Detail ## Part 1 — user-visible copy Only four locale values in the four Slurp2 catalogs mention Noodle. Three name Noodle the separate app on purpose and are unchanged. | Key | Before | After | | --- | --- | --- | | `ui.noodle.noodlerwizard.intro.what.help` (en) | Noodle and Slurp are two local social roleplay surfaces that you control. | Slurp is a local social roleplay surface that you control. | Unchanged on purpose: - `ui.slurp.settings.advanced.backupDetail` (en, de, ko, pl) - `ui.slurp.settings.advanced.deleteAllDetail` (en) - `ui.slurp.settings.advanced.deleteAllConfirmDetail` (en) One more user-visible string moved with the copied schema: the handle validation message `"Enter a Noodle handle."` became `"Enter a Slurp handle."`. It is the single recorded value delta in the shape proof. No key was added or removed. The de, ko and pl catalogs do not carry the changed key. ## Gate — does Slurp2 ever receive Engine-produced Noodle data? No. Every checked path is clear, so no Noodle-named symbol is an Engine contract. - `grep -rn "noodle_" packages/slurp2/src` returns nothing. Slurp2's Drizzle symbols all resolve to its own `slurp2_*` schema. Engine Noodle tables (`noodle_posts`, `noodler_reserve_state`, `noodle_refresh_runs`, ...) are never named. - The host activation surface, `slp-server-entry.ts`, passes no Noodle-shaped value in or out. It is `registerService`, `registerPromptContext`, `registerPrivilegedRoutes`, `runInternalRoute` and `registerTables`. - Engine `services/import/profile-import-noodle.ts` has exactly one importer, Engine `backup.routes.ts`. No Slurp2 file reaches either. - Engine backup keys off `noodle_*` names and the `noodle:backup` capability. Slurp2 registers its own `slurp2:backup`, a no-op pause carrying no data. - The persona and character source bridge, `slp-source-resolve.ts`, crosses on Engine `Character` and `Persona`. A `SlpAccount` appears only as `Pick<…, "kind" | "entityId">`: a Slurp2 row holding a pointer into Engine character storage. The pointer is the contract, not the containing type. ## Type classification | Classification | Count | Action | | --- | --- | --- | | Slurp2-owned | 202 declarations behind 104 imported names | Copied into `shared/src/slp/`, renamed `Noodle` -> `Slp`, `Noodler` -> `SlpCreator` | | Real Engine contract | 10 names, none Noodle-named | Engine import kept | | Ambiguous | 0 | — | Engine imports kept: `APIProvider`, `AvatarCrop`, `avatarCropSchema`, `normalizeAvatarCrop`, `Persona`, `PROFESSOR_MARI_ID`, `CSRF_HEADER`, `CSRF_HEADER_VALUE`, `LIMITS`, `isOpenAIGpt56Model`. `AvatarCrop` and `avatarCropSchema` stay because Engine avatar rendering consumes them. `NoodlePostImageCrop` was the closest call and is Slurp2-owned: it is read only out of Slurp2's own `slurp2_posts.metadata.imageCrop` by Slurp2's own editor. No Engine path touches it. The full name-by-name map is committed as `packages/slurp2/docs/architecture/slurp2-vocabulary-rename-map.json` (202 entries) and `slurp2-owned-vocabulary.json` (the 190 exported ones). The decision is recorded in `packages/slurp2/docs/architecture/DECISIONS.md`. New files in `packages/slurp2/src/engine/packages/shared/src/slp/`: `slp-social.types.ts`, `slp-social.schema.ts`, `slp-social-generation.schema.ts`, `slp-mentions.ts`, `slp-polls.ts`, `slp-post-images.ts`, `slp-creator-onboarding.ts`, `slp-interactions.ts`. The schema is split in two only to stay under the 800-line architecture budget. ### Two imports that resolved to nothing `NoodlePostCardModel` and `NoodlerPostDraftImage` were imported from `@marinara-engine/shared`, but neither exists in the Engine. Both are declared locally in Slurp2. Those imports now point at the local modules. This was a pre-existing defect. ## Part 4 — SwarmUI prompt images and LoRAs (maintainer request) Slurp2 bundles the Engine's `image-generation.ts` from the checked-in snapshot in `sources/engine/`. The snapshot predates Marinara-Engine PR #6359, so `buildSwarmUiGenerationBody` returned the request body before it attached LoRAs or reference images whenever no custom ComfyUI workflow was set. Slurp2 users lost both. The snapshot does not refresh on its own. Backported from PR #6359, 18 insertions and 1 deletion in one file: - the LoRA and `promptimages` block on the no-workflow SwarmUI path; - the debug redaction that keeps reference images out of the logs. The helper signatures `collectComfyReferenceImages(request, defaults)` and `decodeReferenceImage(reference)` are identical in the snapshot and on Engine `staging`, so the backport is exact. Verified present in the shipped `server.mjs`. Not backported: the `donotsave` change from the same PR. It reads `defaults.saveToBackend`, which the snapshot's shared types do not carry. With the field absent the expression yields the old literal `true`, so no behaviour is lost. The rest of the snapshot is untouched. It is 162 Engine commits behind `staging` and 187 of 363 vendored files differ; a wholesale refresh is not patch-release work. Legacy Slurp and Noodle still build from this branch with the patched snapshot, and neither package has any diff. **Follow-up, now tracked:** the copy exists only because image generation is not on the package host API, so it must be inlined at build time and then drifts. - Pasta-Devs/Marinara-Engine#6385 — expose image generation, LLM providers and video on the package host API so packages call them instead of copying them. - #955 — a CI gate on `sources/engine/` drift and orphans, which would have caught this without waiting on the Engine work. ## Part 3 — internal identifiers 493 Slurp2-internal symbols renamed: the query-key factory `noodleKeys` -> `slpKeys`, the `useNoodler*` hooks, `NoodleShell`, `NoodlerFrame`, `NoodleAnchoredPopover`, `NoodleToolButton`, and the Drizzle symbols for the `slurp2_*` tables. Nothing persisted moved. The rename touches identifiers only, never a string literal. Deliberately not renamed: - `createNoodlerPost`, a public storage method. It is part of the 179-name storage surface. - 44 symbols that are used in object shorthand or also appear inside a string literal, so renaming one could change a persisted or wire key. They are listed in the commit for `Part 3` and include `noodleAccountId`, `noodlerAccountId`, `NOODLER_MEDIA_PREFIX` and the prompt-instruction constants. ## Proof | Proof | Result | | --- | --- | | 179 HTTP route multiset | unchanged (`slurp2-route-inventory`) | | 179 public storage method names | unchanged (`slurp2-storage-methods`) | | Query-key values | byte-identical to `staging`; `slpKeys` has one definition | | Architecture regression | passes, no allowlist change | | `node scripts/typecheck-packages.mjs slurp2` | passes | | No reclassified Engine import | `slurp2-owned-vocabulary`, with a negative fixture | | Copy is shape-identical | `slurp2-vocabulary-shape`, 202 declarations, one recorded value delta | | String literals in package source | **zero removed**; the only additions are new import paths and the strings that came with the copied schema | | `packages/slurp/`, `packages/noodle/`, `sources/engine/` | zero diff against `staging` | | Legacy Slurp and Noodle build from this branch | yes | | `git diff --check` | clean | `slurp2-vocabulary-shape` needs `MARINARA_ENGINE_ROOT` and reports a skip without one. That is a known limitation, recorded in `DECISIONS.md`. ### Noodle hit counts in `packages/slurp2/src` Before 11957, after 7146. Every remaining hit is classified, none unclassified: | Category | Count | | --- | --- | | locale key | 3833 | | string literal | 1525 | | persisted or wire key (property name or access) | 576 | | internal identifier tied to a persisted key, deferred | 794 | | comment or doc | 145 | | route path | 143 | | **unclassified** | **0** | ### Regression baseline Re-derived at the merge base, `origin/staging`: **23** pre-existing failures across `noodle*`, `noodler-*`, `slurp-*` and `slurp2-*`. On this branch: **23**. No new failure, none fixed. 23 source-reading regressions assert on Slurp2 source by name and follow the rename. They read Slurp2 only. ### Browser suite `npm run test:browser:slurp2`, run on this branch and on `origin/staging` with the same Engine worktree. | | failed | skipped | passed | | --- | --- | --- | --- | | `origin/staging` baseline | 13 | 1 | 0 | | this branch | 10 | 1 | 3 | No new browser failure. Three cases that fail on the baseline pass here: `opens as an enabled pink Creator surface` on desktop and mobile, and `requires the current release acknowledgement` on desktop. The remaining ten fail identically on the baseline and are environmental: the Engine worktree used for the run is 162 commits behind `staging`, so the host UI the suite drives is stale. ## Package proof Rebuilt with the builder; no generated payload, manifest, ZIP, catalog, hash or size was hand-edited. ``` TMPDIR=/home/dev/.cache/slp-tmp \ MARINARA_ENGINE_ROOT=<engine worktree> \ node scripts/build-feature-packages.mjs slurp2 ``` - Engine worktree: branch `welcome-to-the-agentshop`, commit `fdb67d47bfb909f013346afdb3d2c23d72d7b399`, clean. It is 4 commits ahead of and **162 commits behind** `origin/staging`. See Gaps. - Artifact `artifacts/slurp2-0.1.1.zip`, sha256 `ed0b3e35bbd0e60b1af0ce1906d5404c15dc1fa14a8e6e161ebe04740fadfed0`, 6782015 bytes. - The ZIP holds only its five declared files plus `manifest.json`. Every manifest hash and size matches the ZIP contents. All three catalog lanes carry the same `0.1.1` entry and the same hashes. ## Live proof Done on the production Engine at the maintainer's explicit direction, by sideload over the running `0.1.0`. - Updated `0.1.0` -> `0.1.1` with real existing data. Container restarted and came up healthy. - Data survived: 50 rows in `slurp2_accounts`, 285 in `slurp2_posts`, all `slurp2_*` tables present. - Routes serve: `/api/slurp2/settings` and `/api/slurp2/noodler/accounts` both answer 403 (the auth guard), not 404, so the `/noodler/*` paths are intact. - Registry shows `slurp2 0.1.1 enabled`. - Legacy Slurp and Noodle unaffected: 39 `slurp_*` and 35 `noodle*` tables intact, `noodle 1.2.23` still enabled. - The new English wizard string is in the shipped bundle and the old one is gone. All four catalogs ship; both locale validators pass. - Re-sideloaded after the SwarmUI backport: `loraweights` is present in the deployed `server.mjs`, data still 50 accounts and 285 posts, routes still 403. ## Gaps - **Uninstall was not tested.** It would delete real Slurp data on a live instance. Not run without a separate go-ahead. - **Desktop, tablet and mobile viewports were not checked.** `dev-marinara2` was unreachable, so there was no disposable box for UI passes. - **The vendored `sources/engine/` snapshot is 162 commits behind `origin/staging`,** with 187 of 363 files differing. Only the SwarmUI hunks were refreshed. Other Engine fixes since that point are still missing from Slurp2 and need their own refresh slice. Tracked in #955 and Pasta-Devs/Marinara-Engine#6385. - `slurp2-vocabulary-shape` skips without `MARINARA_ENGINE_ROOT`. ## Pending decisions - **Renaming the `/noodler/*` routes.** Runtime-safe, because the client and the server ship in one bundle, but it deliberately rewrites the 179-route inventory baseline. It needs its own slice. - **The 44 deferred identifiers.** Each is tied to a shorthand object key or a string literal, so each needs an individual check that the key is not persisted. --- <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:47 +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#1213
No description provided.