[PR #1330] [MERGED] feat(slurp2): 0.3.27 — Page style in plain words, with Suggest from card #1408

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1330
Author: @Gunterlie
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @Gunterlie

Base: staging ← Head: feat/slurp2-suggest-page-style


📝 Commits (9)

  • 5b071a8 feat(slurp2): 0.3.27 — Suggest page style
  • cd92ad4 fix(slurp2): keep the Slurp regression inventories in step with Suggest page style
  • fc89274 feat(slurp2): one Page style home with a plain summary and Suggest from card
  • f0ab4b9 fix(slurp2): show what a page style really changes, and keep current values out of the prompt
  • f1d6a96 fix(slurp2): review fixes for Page style
  • 879d0b4 chore(slurp2): rebuild 0.3.27 with the review fixes
  • 2bd6596 fix(slurp2): keep raw ids out of the page style explanation; pad the changes summary
  • 7d3017e fix(slurp2): plain words in the page style explanation, padded changes summary, rebuild
  • 1d449f0 Merge remote-tracking branch 'origin/staging' into feat/slurp2-suggest-page-style

📊 Changes

35 files changed (+1782 additions, -613 deletions)

View changed files

➕ artifacts/slurp2-0.3.27.zip (+0 -0)
📝 catalog/catalog.json (+14 -14)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+14 -14)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+14 -14)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/slurp2/CHANGELOG.md (+6 -0)
📝 packages/slurp2/client.js (+90 -90)
📝 packages/slurp2/manifest.json (+11 -11)
📝 packages/slurp2/server.mjs (+373 -361)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/creators/SlpCreatorStrategyGroup.tsx (+114 -63)
➕ packages/slurp2/src/engine/packages/client/src/slp/features/creators/SlpPageStyleSuggest.tsx (+253 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/creators/settings/SlpCreatorOverviewSection.tsx (+7 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/creators/settings/SlpCreatorSettingsSections.tsx (+2 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/creators/slp-creators-hooks.ts (+20 -2)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+8 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/de.json (+41 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/en.json (+28 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/ko.json (+41 -1)

...and 15 more files

📄 Description

Linked issue

Closes #1329

Why this change

A Creator's page style (production style, lean towards words, post mix, page note) was assigned from the account id and could only be changed through a dropdown and raw number fields low in the Posting tab. A player had to understand production styles and intent weights to make a page fit its character, and nothing said in plain words what the current style is. On the scratch test, the automatic assignment had given a candid park ranger the "theatrical" style.

What changed

  • Affected package: slurp2 0.3.26 → 0.3.27 (patch).
  • One home, plain words. The "Posting strategy" box is now Page style. It opens with one line such as "Homemade · pictures, some notes · automatic" and one sentence about the style. It moved above the picture settings in the Production block, and the Overview's Posting tile shows the same line. The existing controls (style, skipped posts, lean, post mix reset, page note) are unchanged in behaviour and sit in a closed "Fine-tune page style" fold.
  • Suggest from card. One explicit tap makes one model call (POST /slurp/accounts/:id/strategy/suggest). It reads the card canon and stage voice and returns a proposal over the existing strategy fields only: style, textOnlyRate, intentWeights, strategyText. The player sees a short reason, the result in plain words, a proposed page note, and "See exact changes" (before → after as the planner would use them, including defaults a new style moves). "Use this page style" applies; "Keep current" discards.
  • No write before acceptance. The service only reads. Apply goes through the existing PATCH /accounts/:id/settings strategy save with a new optional expect (the values saved when the suggestion was made). The merge moved into the pure mergeSlurpCreatorStrategy; a key saved differently in the meantime throws inside the transaction and the route answers 409. Only proposed keys are written; unrelated keys stay.
  • Validation of model output. Pure slp-page-style-suggestion.ts: unknown fields are dropped, out-of-range values are dropped (not clamped), an answer without a reason or without any usable field is refused. Only real changes are proposed: the lean is compared with what it becomes under the proposed style, the mix is compared as shares, and a note the player wrote is never replaced. The card is in the user message as evidence; the current settings are not in the prompt (the model copied them back when they were). Text for a hinted Creator goes through the existing identity protection.
  • Honest copy. textOnlyRate only scales small per-intent rates, so most posts have a picture at any value. The field is now "Lean towards words" without a percent sign, and the summary never claims "mostly words".
  • Not included, on purpose. No call on posts, DMs or a schedule; no new store, tab, mode or onboarding step; no DM, Stir or romance behaviour; no change to identity, heat, hard noes or privacy. Card edits do not re-run or re-apply anything. The call follows the player-tap pattern of "Let design it" and does not count on the AI budget.
  • Locales: new pageStyle.* keys in en, de, ko, pl; de/ko/pl also get the style, intent and label names the summary uses.
  • Regressions: new tests/slurp2-page-style.regression.ts; slurp-creator-strategy now checks the merge by behaviour; route, client-hook and vocabulary-shape inventories record the new route, hook and expect.
  • Generated outputs rebuilt by the builder: client.js, server.mjs, manifest.json, artifacts/slurp2-0.3.27.zip, catalogs. CHANGELOG.md and in-app What's new updated.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none (engine.min unchanged)
  • New or changed permissions/entrypoints: one new route, POST /slurp/accounts/:id/strategy/suggest (reads only; one outbound call to the player's own text connection). The strategy variant of PATCH /accounts/:id/settings accepts an optional expect and can answer 409.
  • Restart, storage, update, or uninstall impact: no new storage and no migration. The strategy stays in the account's settings.strategy; existing Creators are unchanged until a player accepts a suggestion. Model text reaches post prompts only as the existing page note ("How you run your page"), bounded to 400 characters, shown to the player before it is saved, and editable afterwards.

Validation

Agent-run checks (boxes left for human verification):

  • tests/slurp2-page-style.regression.ts (pure, stub model answers): card only in the user message; three contrasting answers give three different proposals; unknown and out-of-range values dropped; lean, share and note rules; apply keeps unrelated keys; stale expect throws; key order does not matter; applied strategies change the planner's intent and delivery draws and the camera preference.

  • All Slurp regressions (npm run test:slurp:regressions, isolated staging Engine checkout for dependencies): 286 passed, 0 failed, on 7d3017eab. After merging staging (1d449f0e8) the rebuild produced no diff; npm run check (0 errors), catalog lanes, locales, catalog validation, release notes and the new regression passed again.

  • tests/slurp2-architecture.regression.ts, node scripts/typecheck-packages.mjs slurp2, git diff --check: pass. A full tsc in a scratch overlay of the staging Engine showed no new server errors and none in the new client files (the repository gate itself only checks names and syntax).

  • Live, scratch dev Engine, real model (glm-4.7-flash through the box's default-for-agents connection), three adult test cards at the same heat:

    • burlesque headliner → theatrical, more sets; reclusive poet → higher lean towards words, mostly casual and thank-you posts; park ranger (auto-assigned theatrical) → documentary, casual and behind-the-scenes.
    • Each suggestion left strategy.saved unchanged. Apply persisted, survived an Engine restart, and changed the real post prompt preview (production block and page note).
    • A manual edit between suggestion and apply gave 409 and the manual edit stayed.
  • Independent read-only review (Opus): no blocking or high findings; five medium (misleading "mostly words" copy, a suggestion replacing the player's note, 502 messages not shown, missing de/ko/pl names, lean threshold against the old style) and low items. All five medium and the focus, 409 dead-end, proportional-weights and "set by you" items are fixed.

  • 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 UI proof (not a human check), built 0.3.27 sideloaded on a scratch dev Engine, headless Chromium at 390 / 768 / 1440 px:

  • First pass (earlier build): Overview line, Page style above Images, fold closed by default and opened by keyboard, loading state (button disabled, aria-busy), result panel, Keep current (nothing saved), Use (toast, line "set by you", unrelated skipRate kept), no horizontal overflow at 390, targets at least 44 px, no console errors.
  • Recheck on the final build (deployed bundle checksum equal to the branch): new copy; "Lean towards words" without percent; proposed page note outside the fold; no raw ids in the reason; focus moves to the result and back to the button; spinner stops under reduced motion; no note proposed for a Creator with a saved note; light theme (forced attribute).

Known limits:

  • The service's error branches (no connection, no linked card, too little card, empty or unusable answer) are covered by code reading and one observed empty answer, not by an automated test; the box always had a connection.
  • A suggestion took 30 to 55 seconds with the test model.
  • The post mix has no editor of its own: a suggestion sets it and "Fine-tune" offers Reset.
  • The reason text is in the model's language, not the UI language.
  • The scratch box was restored to its previous Slurp version after the test.

Documentation impact

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

UI evidence (if applicable)

Screenshots were taken by the agent run (390 / 768 / 1440) and are not attached here; the maintainer can add their own after a manual check.

Summary by CodeRabbit

  • New Features
    • Added Creator Page style summaries to settings and the Overview tile, with card-based suggestions that can be previewed, applied, or dismissed.
    • Suggestions won’t overwrite settings changed since they were generated, and applying them preserves a written page note.
    • Added controls for fine-tuning posting preferences and resetting saved intent weights.
  • Updates
    • Renamed “Posts without pictures” to “Lean towards words.” Existing saved values continue to work unchanged.
    • Updated Slurp to version 0.3.27.

🔄 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/1330 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/12/2026 **Status:** ✅ Merged **Merged:** 10/12/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/slurp2-suggest-page-style` --- ### 📝 Commits (9) - [`5b071a8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5b071a88de0d29e0d151695c78dc9a0e32a6211f) feat(slurp2): 0.3.27 — Suggest page style - [`cd92ad4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cd92ad48b6f838195451515ba6cb8c2f47e81bff) fix(slurp2): keep the Slurp regression inventories in step with Suggest page style - [`fc89274`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fc89274439a4fcd2b0f58367dfd543aad3925ecf) feat(slurp2): one Page style home with a plain summary and Suggest from card - [`f0ab4b9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f0ab4b92e7ff215239ad7df311245c69850b8c84) fix(slurp2): show what a page style really changes, and keep current values out of the prompt - [`f1d6a96`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f1d6a965874d66adc4efd4d0e72d95b1da8785e0) fix(slurp2): review fixes for Page style - [`879d0b4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/879d0b46cb0074a0e8a34f35bda70bf258dc50eb) chore(slurp2): rebuild 0.3.27 with the review fixes - [`2bd6596`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2bd6596e9c1c59f2fd79e4d7a89d7ab0a1665fb3) fix(slurp2): keep raw ids out of the page style explanation; pad the changes summary - [`7d3017e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7d3017eab5d56f61cebfc7c01a7b708d284ac1df) fix(slurp2): plain words in the page style explanation, padded changes summary, rebuild - [`1d449f0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1d449f0e831484b1fc494c90bcc5041950ad6e95) Merge remote-tracking branch 'origin/staging' into feat/slurp2-suggest-page-style ### 📊 Changes **35 files changed** (+1782 additions, -613 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.27.zip` (+0 -0) 📝 `catalog/catalog.json` (+14 -14) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+14 -14) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+14 -14) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/slurp2/CHANGELOG.md` (+6 -0) 📝 `packages/slurp2/client.js` (+90 -90) 📝 `packages/slurp2/manifest.json` (+11 -11) 📝 `packages/slurp2/server.mjs` (+373 -361) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/creators/SlpCreatorStrategyGroup.tsx` (+114 -63) ➕ `packages/slurp2/src/engine/packages/client/src/slp/features/creators/SlpPageStyleSuggest.tsx` (+253 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/creators/settings/SlpCreatorOverviewSection.tsx` (+7 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/creators/settings/SlpCreatorSettingsSections.tsx` (+2 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/creators/slp-creators-hooks.ts` (+20 -2) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+8 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/de.json` (+41 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/en.json` (+28 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/ko.json` (+41 -1) _...and 15 more files_ </details> ### 📄 Description ## Linked issue Closes #1329 ## Why this change A Creator's page style (production style, lean towards words, post mix, page note) was assigned from the account id and could only be changed through a dropdown and raw number fields low in the Posting tab. A player had to understand production styles and intent weights to make a page fit its character, and nothing said in plain words what the current style is. On the scratch test, the automatic assignment had given a candid park ranger the "theatrical" style. ## What changed - **Affected package:** `slurp2` 0.3.26 → 0.3.27 (patch). - **One home, plain words.** The "Posting strategy" box is now **Page style**. It opens with one line such as "Homemade · pictures, some notes · automatic" and one sentence about the style. It moved above the picture settings in the Production block, and the Overview's Posting tile shows the same line. The existing controls (style, skipped posts, lean, post mix reset, page note) are unchanged in behaviour and sit in a closed "Fine-tune page style" fold. - **Suggest from card.** One explicit tap makes one model call (`POST /slurp/accounts/:id/strategy/suggest`). It reads the card canon and stage voice and returns a proposal over the existing strategy fields only: `style`, `textOnlyRate`, `intentWeights`, `strategyText`. The player sees a short reason, the result in plain words, a proposed page note, and "See exact changes" (before → after as the planner would use them, including defaults a new style moves). "Use this page style" applies; "Keep current" discards. - **No write before acceptance.** The service only reads. Apply goes through the existing `PATCH /accounts/:id/settings` strategy save with a new optional `expect` (the values saved when the suggestion was made). The merge moved into the pure `mergeSlurpCreatorStrategy`; a key saved differently in the meantime throws inside the transaction and the route answers 409. Only proposed keys are written; unrelated keys stay. - **Validation of model output.** Pure `slp-page-style-suggestion.ts`: unknown fields are dropped, out-of-range values are dropped (not clamped), an answer without a reason or without any usable field is refused. Only real changes are proposed: the lean is compared with what it becomes under the proposed style, the mix is compared as shares, and a note the player wrote is never replaced. The card is in the user message as evidence; the current settings are not in the prompt (the model copied them back when they were). Text for a hinted Creator goes through the existing identity protection. - **Honest copy.** `textOnlyRate` only scales small per-intent rates, so most posts have a picture at any value. The field is now "Lean towards words" without a percent sign, and the summary never claims "mostly words". - **Not included, on purpose.** No call on posts, DMs or a schedule; no new store, tab, mode or onboarding step; no DM, Stir or romance behaviour; no change to identity, heat, hard noes or privacy. Card edits do not re-run or re-apply anything. The call follows the player-tap pattern of "Let <Creator> design it" and does not count on the AI budget. - Locales: new `pageStyle.*` keys in `en`, `de`, `ko`, `pl`; `de`/`ko`/`pl` also get the style, intent and label names the summary uses. - Regressions: new `tests/slurp2-page-style.regression.ts`; `slurp-creator-strategy` now checks the merge by behaviour; route, client-hook and vocabulary-shape inventories record the new route, hook and `expect`. - Generated outputs rebuilt by the builder: `client.js`, `server.mjs`, `manifest.json`, `artifacts/slurp2-0.3.27.zip`, catalogs. `CHANGELOG.md` and in-app What's new updated. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none (`engine.min` unchanged) - New or changed permissions/entrypoints: one new route, `POST /slurp/accounts/:id/strategy/suggest` (reads only; one outbound call to the player's own text connection). The strategy variant of `PATCH /accounts/:id/settings` accepts an optional `expect` and can answer 409. - Restart, storage, update, or uninstall impact: no new storage and no migration. The strategy stays in the account's `settings.strategy`; existing Creators are unchanged until a player accepts a suggestion. Model text reaches post prompts only as the existing page note ("How you run your page"), bounded to 400 characters, shown to the player before it is saved, and editable afterwards. ## Validation Agent-run checks (boxes left for human verification): - `tests/slurp2-page-style.regression.ts` (pure, stub model answers): card only in the user message; three contrasting answers give three different proposals; unknown and out-of-range values dropped; lean, share and note rules; apply keeps unrelated keys; stale `expect` throws; key order does not matter; applied strategies change the planner's intent and delivery draws and the camera preference. - All Slurp regressions (`npm run test:slurp:regressions`, isolated staging Engine checkout for dependencies): 286 passed, 0 failed, on 7d3017eab. After merging `staging` (1d449f0e8) the rebuild produced no diff; `npm run check` (0 errors), catalog lanes, locales, catalog validation, release notes and the new regression passed again. - `tests/slurp2-architecture.regression.ts`, `node scripts/typecheck-packages.mjs slurp2`, `git diff --check`: pass. A full `tsc` in a scratch overlay of the staging Engine showed no new server errors and none in the new client files (the repository gate itself only checks names and syntax). - Live, scratch dev Engine, real model (`glm-4.7-flash` through the box's default-for-agents connection), three adult test cards at the same heat: - burlesque headliner → theatrical, more sets; reclusive poet → higher lean towards words, mostly casual and thank-you posts; park ranger (auto-assigned theatrical) → documentary, casual and behind-the-scenes. - Each suggestion left `strategy.saved` unchanged. Apply persisted, survived an Engine restart, and changed the real post prompt preview (production block and page note). - A manual edit between suggestion and apply gave 409 and the manual edit stayed. - Independent read-only review (Opus): no blocking or high findings; five medium (misleading "mostly words" copy, a suggestion replacing the player's note, 502 messages not shown, missing `de`/`ko`/`pl` names, lean threshold against the old style) and low items. All five medium and the focus, 409 dead-end, proportional-weights and "set by you" items are fixed. - [ ] `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 UI proof (not a human check), built 0.3.27 sideloaded on a scratch dev Engine, headless Chromium at 390 / 768 / 1440 px: - First pass (earlier build): Overview line, Page style above Images, fold closed by default and opened by keyboard, loading state (button disabled, `aria-busy`), result panel, Keep current (nothing saved), Use (toast, line "set by you", unrelated `skipRate` kept), no horizontal overflow at 390, targets at least 44 px, no console errors. - Recheck on the final build (deployed bundle checksum equal to the branch): new copy; "Lean towards words" without percent; proposed page note outside the fold; no raw ids in the reason; focus moves to the result and back to the button; spinner stops under reduced motion; no note proposed for a Creator with a saved note; light theme (forced attribute). Known limits: - The service's error branches (no connection, no linked card, too little card, empty or unusable answer) are covered by code reading and one observed empty answer, not by an automated test; the box always had a connection. - A suggestion took 30 to 55 seconds with the test model. - The post mix has no editor of its own: a suggestion sets it and "Fine-tune" offers Reset. - The reason text is in the model's language, not the UI language. - The scratch box was restored to its previous Slurp version after the test. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Screenshots were taken by the agent run (390 / 768 / 1440) and are not attached here; the maintainer can add their own after a manual check. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Creator Page style summaries to settings and the Overview tile, with card-based suggestions that can be previewed, applied, or dismissed. * Suggestions won’t overwrite settings changed since they were generated, and applying them preserves a written page note. * Added controls for fine-tuning posting preferences and resetting saved intent weights. * **Updates** * Renamed “Posts without pictures” to “Lean towards words.” Existing saved values continue to work unchanged. * Updated Slurp to version 0.3.27. <!-- 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:10:57 +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#1408
No description provided.