[PR #1001] [MERGED] feat(slurp2): Creator strategy profiles and one-shot post purpose (slice 4) #1234

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

📋 Pull Request Information

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

Base: producing-content ← Head: slice/04-creator-strategy


📝 Commits (1)

  • bf4c1fc feat(slurp2): add Creator strategy profiles and one-shot post purpose

📊 Changes

33 files changed (+1004 additions, -358 deletions)

View changed files

➕ artifacts/slurp2-0.1.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 (+6 -0)
📝 packages/slurp2/client.js (+33 -33)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+245 -244)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHomeHelpers.tsx (+5 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpScreenComposer.tsx (+23 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/slp-home-actions.ts (+2 -0)
➕ packages/slurp2/src/engine/packages/client/src/slp/features/creators/SlpCreatorStrategyGroup.tsx (+131 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/creators/SlpCreatorsPanel.tsx (+2 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/creators/slp-creators-hooks.ts (+26 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/en.json (+35 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/data/creators/slp-creators-storage-3.ts (+12 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/data/creators/slp-creators-storage-4.ts (+20 -1)

...and 13 more files

📄 Description

Why

Slice 4 of plan/concept.md. After slices 2 and 3 every planner rule was global: one skip rate, one set of intent weights, one lean on text. Unrelated Creators posted at the same rhythm, and a player had no way to say "this one mostly writes" or "this one runs a studio". The plan also asks for a one-shot purpose in the composer that does not touch the saved profile.

What changed

  • SlpAccountSettings.strategy (optional): style, skipRate (0–40), textOnlyRate (0–100), intentWeights, strategyText (≤2000). Normalized on read; out-of-range values are dropped.
  • modules/creators/slp-creator-strategy.ts: derives every value from the Creator's existing production style, then applies saved overrides one field at a time. An untouched Creator behaves exactly as before. slurpStrategyInstruction adds the note to the production block, framed as the Creator's habit.
  • slurpProductionProfile accepts a style override, so naming a style moves cameras, effort, and transparency together.
  • Planner: the reserve passes the skip rate; generation and the prompt preview pass intent weights and text lean. All-zero intent weights fall back to the shipped weights instead of throwing.
  • New strategy subtree on PATCH /accounts/:id/settings. Merged key by key; null resets a field. The schema is .strict(), so identity fields such as voice are rejected.
  • The Creators panel → Publishing gets a Posting strategy group: style (with the derived style shown as "Automatic (…)"), quiet slots, lean on words, and the note, each resettable on its own.
  • Composer: a post purpose select for guided posts, with a hint per choice. It sends contentIntent, which makes that intent certain for that post only. If the player asked for an image it is kept rather than redrawn as text.
  • Slurp2 0.1.26.

Validation

  • New tests/slurp-creator-strategy.regression.ts: derived strategy is stable and matches the existing style, overrides move only their own field, clamping and save-time dropping, the patch schema rejects out-of-range and identity fields and accepts null resets, skip rate 0 never skips, the text lean moves the delivery draw but never turns a set into text, 50 reproduces the shipped draw exactly, intent weights steer the draw, all-zero weights do not throw, the note is framed as a habit, every call site reads the saved strategy, and the one-shot purpose is certain and never written back.
  • npm run check: 0 errors, no new warnings. Architecture, typecheck, locale, catalog lane, catalog, release-notes, git diff --check pass.
  • Full Slurp sweep: 141 pass. No failure that the branch base does not already have.
  • Not done: no live dev-Engine click-through of the new panel group and composer select. The browser suite is still red for the pre-existing reason (#996).
  • Not in this slice: per-intent weight editing in the UI (the API and planner accept it; the panel exposes style, rates, and note only).

🔄 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/1001 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/21/2026 **Status:** ✅ Merged **Merged:** 9/21/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `producing-content` ← **Head:** `slice/04-creator-strategy` --- ### 📝 Commits (1) - [`bf4c1fc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bf4c1fc13535cf02e9d2d3645461e0b91f6ae9b2) feat(slurp2): add Creator strategy profiles and one-shot post purpose ### 📊 Changes **33 files changed** (+1004 additions, -358 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.1.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` (+6 -0) 📝 `packages/slurp2/client.js` (+33 -33) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+245 -244) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpHomeHelpers.tsx` (+5 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/screens/SlpScreenComposer.tsx` (+23 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/slp-home-actions.ts` (+2 -0) ➕ `packages/slurp2/src/engine/packages/client/src/slp/features/creators/SlpCreatorStrategyGroup.tsx` (+131 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/creators/SlpCreatorsPanel.tsx` (+2 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/creators/slp-creators-hooks.ts` (+26 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/en.json` (+35 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/data/creators/slp-creators-storage-3.ts` (+12 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/data/creators/slp-creators-storage-4.ts` (+20 -1) _...and 13 more files_ </details> ### 📄 Description ## Why Slice 4 of `plan/concept.md`. After slices 2 and 3 every planner rule was global: one skip rate, one set of intent weights, one lean on text. Unrelated Creators posted at the same rhythm, and a player had no way to say "this one mostly writes" or "this one runs a studio". The plan also asks for a one-shot purpose in the composer that does not touch the saved profile. ## What changed - `SlpAccountSettings.strategy` (optional): `style`, `skipRate` (0–40), `textOnlyRate` (0–100), `intentWeights`, `strategyText` (≤2000). Normalized on read; out-of-range values are dropped. - `modules/creators/slp-creator-strategy.ts`: derives every value from the Creator's existing production style, then applies saved overrides one field at a time. An untouched Creator behaves exactly as before. `slurpStrategyInstruction` adds the note to the production block, framed as the Creator's habit. - `slurpProductionProfile` accepts a style override, so naming a style moves cameras, effort, and transparency together. - Planner: the reserve passes the skip rate; generation and the prompt preview pass intent weights and text lean. All-zero intent weights fall back to the shipped weights instead of throwing. - New `strategy` subtree on `PATCH /accounts/:id/settings`. Merged key by key; `null` resets a field. The schema is `.strict()`, so identity fields such as `voice` are rejected. - The Creators panel → Publishing gets a **Posting strategy** group: style (with the derived style shown as "Automatic (…)"), quiet slots, lean on words, and the note, each resettable on its own. - Composer: a **post purpose** select for guided posts, with a hint per choice. It sends `contentIntent`, which makes that intent certain for that post only. If the player asked for an image it is kept rather than redrawn as text. - Slurp2 0.1.26. ## Validation - New `tests/slurp-creator-strategy.regression.ts`: derived strategy is stable and matches the existing style, overrides move only their own field, clamping and save-time dropping, the patch schema rejects out-of-range and identity fields and accepts `null` resets, skip rate 0 never skips, the text lean moves the delivery draw but never turns a set into text, 50 reproduces the shipped draw exactly, intent weights steer the draw, all-zero weights do not throw, the note is framed as a habit, every call site reads the saved strategy, and the one-shot purpose is certain and never written back. - `npm run check`: 0 errors, no new warnings. Architecture, typecheck, locale, catalog lane, catalog, release-notes, `git diff --check` pass. - Full Slurp sweep: 141 pass. No failure that the branch base does not already have. - Not done: no live dev-Engine click-through of the new panel group and composer select. The browser suite is still red for the pre-existing reason (#996). - Not in this slice: per-intent weight editing in the UI (the API and planner accept it; the panel exposes style, rates, and note only). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:06:25 +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#1234
No description provided.