[PR #1007] [MERGED] feat(slurp2): request actions, promises, and anonymous demand (slice 9) #1243

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

📋 Pull Request Information

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

Base: producing-content ← Head: slice/09-message-bridge


📝 Commits (1)

  • bc69d0c feat(slurp2): answer fan requests from the thread and keep the promise

📊 Changes

33 files changed (+1194 additions, -365 deletions)

View changed files

➕ artifacts/slurp2-0.1.31.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 (+33 -33)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+256 -256)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpThreadDrawer.tsx (+13 -7)
➕ packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpThreadRequestsPanel.tsx (+88 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/messages/slp-messages-hooks.ts (+33 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/en.json (+22 -1)
📝 packages/slurp2/src/engine/packages/server/src/db/schema/slurp.ts (+22 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/data/continuity/slp-continuity-storage.ts (+47 -0)
➕ packages/slurp2/src/engine/packages/server/src/slp/data/feed/slp-demand-storage.ts (+63 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/data/feed/slp-opportunity-storage.ts (+54 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/data/host/slp-storage-constants.ts (+2 -0)

...and 13 more files

📄 Description

Why

Slice 9 of plan/concept.md. A request a fan made in a thread had nowhere to go. The Creator could answer in words, but nothing recorded what was promised, and the planner never learned that a post was owed. The plan's rule is that a request can be handled from its thread, and that aggregate demand may shape planning without exposing the fan.

What changed

Request actions (modules/messages/slp-request-actions.ts, features/messages/slp-request-action-service.ts, new routes):

  • fulfil, tease, delay, decline, count it, ignore — one answer per request;
  • fulfil/tease/delay create a promise: a planned opportunity carrying sourceEventId, the request that caused it;
  • decline records a boundary_stated event; ignore files the request away;
  • every event a request action writes is thread_private; the test enforces that for all of them;
  • only the Creator's side of a thread may read or answer requests.

Promises in the planner:

  • A due promise takes an undirected slot before a campaign stage, and never over a directed or purpose-picked post.
  • The promise row is the plan (claimSlurpPromise), so a kept promise traces back to its request and records promise_kept in that thread, on both the direct and the scheduled path.
  • Oldest promise first; a teaser promise needs a public slot; an unkept promise is never pruned.

Anonymous demand (slurp2_creator_demand_trends, modules/feed/slp-demand.ts):

  • Counting a request bumps a tally under a label the player types, normalised and capped at 60 characters.
  • A post answering aggregate demand is told the label and ordered not to name or quote anyone. A promised post gets no label at all, because its request belongs to one person.

Promotion: promoteSlurpContinuityFact writes a new derived fact and leaves the private source untouched, so the source keeps its audience and can still be retracted. Exposed through a new continuity route.

UI: a Requests panel in the thread drawer, Creator side only.

Validation

  • New tests/slurp-request-actions.regression.ts: every action's effect, bounded delays, topic normalisation, one-answer-per-request, "every request-action event is thread_private", only the typed label reaches the tally, ownership checks on both routes, promise-before-campaign ordering, oldest-first, teaser needs a public slot, unkept promises survive pruning, both completion paths record the kept promise, the no-naming order in the prompt, and that promotion never mutates its source.
  • slurp-campaign assertions updated for the new ordering.
  • npm run check: 0 errors, no new warnings. Architecture, typecheck, locale, catalog, release-notes, git diff --check pass.
  • Full Slurp sweep: 146 pass, no failure the branch base does not already have.
  • Not done: live dev-Engine run of the panel.
  • Known red: the Slurp Remastered browser suite, unchanged since before slice 1 (#996).

🔄 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/1007 **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/09-message-bridge` --- ### 📝 Commits (1) - [`bc69d0c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bc69d0c84c05f4506361ac818add1c5e8c4576d1) feat(slurp2): answer fan requests from the thread and keep the promise ### 📊 Changes **33 files changed** (+1194 additions, -365 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.1.31.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` (+33 -33) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+256 -256) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpThreadDrawer.tsx` (+13 -7) ➕ `packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpThreadRequestsPanel.tsx` (+88 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/messages/slp-messages-hooks.ts` (+33 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/en.json` (+22 -1) 📝 `packages/slurp2/src/engine/packages/server/src/db/schema/slurp.ts` (+22 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/data/continuity/slp-continuity-storage.ts` (+47 -0) ➕ `packages/slurp2/src/engine/packages/server/src/slp/data/feed/slp-demand-storage.ts` (+63 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/data/feed/slp-opportunity-storage.ts` (+54 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/data/host/slp-storage-constants.ts` (+2 -0) _...and 13 more files_ </details> ### 📄 Description ## Why Slice 9 of `plan/concept.md`. A request a fan made in a thread had nowhere to go. The Creator could answer in words, but nothing recorded what was promised, and the planner never learned that a post was owed. The plan's rule is that a request can be handled from its thread, and that aggregate demand may shape planning without exposing the fan. ## What changed **Request actions** (`modules/messages/slp-request-actions.ts`, `features/messages/slp-request-action-service.ts`, new routes): - fulfil, tease, delay, decline, count it, ignore — one answer per request; - fulfil/tease/delay create a **promise**: a planned opportunity carrying `sourceEventId`, the request that caused it; - decline records a `boundary_stated` event; ignore files the request away; - every event a request action writes is `thread_private`; the test enforces that for all of them; - only the Creator's side of a thread may read or answer requests. **Promises in the planner:** - A due promise takes an undirected slot **before** a campaign stage, and never over a directed or purpose-picked post. - The promise row *is* the plan (`claimSlurpPromise`), so a kept promise traces back to its request and records `promise_kept` in that thread, on both the direct and the scheduled path. - Oldest promise first; a teaser promise needs a public slot; an unkept promise is never pruned. **Anonymous demand** (`slurp2_creator_demand_trends`, `modules/feed/slp-demand.ts`): - Counting a request bumps a tally under a label the player types, normalised and capped at 60 characters. - A post answering aggregate demand is told the label and ordered not to name or quote anyone. A promised post gets no label at all, because its request belongs to one person. **Promotion:** `promoteSlurpContinuityFact` writes a new derived fact and leaves the private source untouched, so the source keeps its audience and can still be retracted. Exposed through a new continuity route. **UI:** a Requests panel in the thread drawer, Creator side only. ## Validation - New `tests/slurp-request-actions.regression.ts`: every action's effect, bounded delays, topic normalisation, one-answer-per-request, "every request-action event is thread_private", only the typed label reaches the tally, ownership checks on both routes, promise-before-campaign ordering, oldest-first, teaser needs a public slot, unkept promises survive pruning, both completion paths record the kept promise, the no-naming order in the prompt, and that promotion never mutates its source. - `slurp-campaign` assertions updated for the new ordering. - `npm run check`: 0 errors, no new warnings. Architecture, typecheck, locale, catalog, release-notes, `git diff --check` pass. - Full Slurp sweep: 146 pass, no failure the branch base does not already have. - Not done: live dev-Engine run of the panel. - Known red: the Slurp Remastered browser suite, unchanged since before slice 1 (#996). --- <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:34 +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#1243
No description provided.