[PR #999] [MERGED] feat(slurp2): durable Content Planner and chosen skips (slice 3) #1237

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

📋 Pull Request Information

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

Base: producing-content ← Head: slice/03-content-planner


📝 Commits (1)

  • b013c1d feat(slurp2): add the durable Content Planner and chosen skips

📊 Changes

21 files changed (+724 additions, -285 deletions)

View changed files

➕ artifacts/slurp2-0.1.25.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/manifest.json (+3 -3)
📝 packages/slurp2/server.mjs (+243 -243)
📝 packages/slurp2/src/engine/packages/server/src/db/schema/slurp.ts (+30 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/data/feed/reserve/slp-reserve-storage-1.ts (+18 -0)
➕ packages/slurp2/src/engine/packages/server/src/slp/data/feed/slp-opportunity-storage.ts (+143 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/data/host/slp-storage-constants.ts (+2 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/feed/reserve/slp-reserve-operation.ts (+35 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-generation-service.ts (+32 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/modules/feed/slp-autopost-poll.ts (+15 -2)
➕ packages/slurp2/src/engine/packages/server/src/slp/modules/feed/slp-planner.ts (+54 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/fixtures/slurp2-storage-methods.txt (+1 -0)

...and 1 more files

📄 Description

Why

Slice 3 of plan/concept.md. Every scheduled slot produced a post. A phone call, a glass of water and a load of laundry all became a caption and a picture, because the only thing that could stop a slot was a failure — and nothing anywhere recorded why a post existed, or that a Creator had considered posting and decided not to.

What changed

  • New slurp2_content_opportunities table: creator, slot, sequence, intent, delivery, workflow, access, skip reason, the post it produced, and its timestamps. Registered for backup.
  • modules/feed/slp-planner.ts: seeded, deterministic slot decision. 12% of slots are quiet (one rate for everyone until Creator strategy profiles land in slice 4 — marked ponytail:), each with a reason, and two quiet slots in a row are refused.
  • data/feed/slp-opportunity-storage.ts: plan, find by slot, complete, list, prune. A slot that already has a plan returns it, so a retry repeats the decision instead of drawing a new one.
  • The reserve decides before the connection is used and before an attempt is claimed. A chosen skip discards the slot through the new skipNoodlerScheduledPost — no payload, no image, no imageGenerationFailed. The auto-post poll gained a skipped outcome and moves on to the next slot, once, so a run of quiet slots cannot loop.
  • Generation stores the plan before building the prompt and closes it with the post id when the row lands. Both are best-effort: a post never fails over planner bookkeeping. Settings previews decide nothing and leave no plan.
  • Slurp2 0.1.25.

Validation

  • New tests/slurp-planner.regression.ts: skips happen but stay a minority, every skip has a reason, decisions are deterministic and differ per Creator, a second consecutive skip is refused, the skip is drawn independently of the intent, the skip branch runs before generation, a stored plan is reused, the slot is discarded rather than failed, the poll advances past a skip, the plan is stored before the prompt and closed by the post, and a preview leaves nothing behind.
  • slurp2-backup-roundtrip and slurp2-storage-methods cover the new table and method.
  • npm run check: 0 errors, no new warnings. Architecture, typecheck, locale, catalog lane, catalog, release-notes, git diff --check pass.
  • Full Slurp sweep: no failure that the branch base does not already have.
  • Not yet: composer-directed manual posts still record no opportunity. That lands with the one-shot intent controls in slice 4.
  • Known red: the Slurp Remastered browser suite, pre-existing on this branch (see #996, #997).

🔄 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/999 **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/03-content-planner` --- ### 📝 Commits (1) - [`b013c1d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b013c1d864e9fb87233f02e5a949be1e0eb99775) feat(slurp2): add the durable Content Planner and chosen skips ### 📊 Changes **21 files changed** (+724 additions, -285 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.1.25.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/manifest.json` (+3 -3) 📝 `packages/slurp2/server.mjs` (+243 -243) 📝 `packages/slurp2/src/engine/packages/server/src/db/schema/slurp.ts` (+30 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/data/feed/reserve/slp-reserve-storage-1.ts` (+18 -0) ➕ `packages/slurp2/src/engine/packages/server/src/slp/data/feed/slp-opportunity-storage.ts` (+143 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/data/host/slp-storage-constants.ts` (+2 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/feed/reserve/slp-reserve-operation.ts` (+35 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-generation-service.ts` (+32 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/modules/feed/slp-autopost-poll.ts` (+15 -2) ➕ `packages/slurp2/src/engine/packages/server/src/slp/modules/feed/slp-planner.ts` (+54 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/fixtures/slurp2-storage-methods.txt` (+1 -0) _...and 1 more files_ </details> ### 📄 Description ## Why Slice 3 of `plan/concept.md`. Every scheduled slot produced a post. A phone call, a glass of water and a load of laundry all became a caption and a picture, because the only thing that could stop a slot was a failure — and nothing anywhere recorded *why* a post existed, or that a Creator had considered posting and decided not to. ## What changed - New `slurp2_content_opportunities` table: creator, slot, sequence, intent, delivery, workflow, access, skip reason, the post it produced, and its timestamps. Registered for backup. - `modules/feed/slp-planner.ts`: seeded, deterministic slot decision. 12% of slots are quiet (one rate for everyone until Creator strategy profiles land in slice 4 — marked `ponytail:`), each with a reason, and two quiet slots in a row are refused. - `data/feed/slp-opportunity-storage.ts`: plan, find by slot, complete, list, prune. A slot that already has a plan returns it, so a retry repeats the decision instead of drawing a new one. - The reserve decides before the connection is used and before an attempt is claimed. A chosen skip discards the slot through the new `skipNoodlerScheduledPost` — no payload, no image, no `imageGenerationFailed`. The auto-post poll gained a `skipped` outcome and moves on to the next slot, once, so a run of quiet slots cannot loop. - Generation stores the plan before building the prompt and closes it with the post id when the row lands. Both are best-effort: a post never fails over planner bookkeeping. Settings previews decide nothing and leave no plan. - Slurp2 0.1.25. ## Validation - New `tests/slurp-planner.regression.ts`: skips happen but stay a minority, every skip has a reason, decisions are deterministic and differ per Creator, a second consecutive skip is refused, the skip is drawn independently of the intent, the skip branch runs before generation, a stored plan is reused, the slot is discarded rather than failed, the poll advances past a skip, the plan is stored before the prompt and closed by the post, and a preview leaves nothing behind. - `slurp2-backup-roundtrip` and `slurp2-storage-methods` cover the new table and method. - `npm run check`: 0 errors, no new warnings. Architecture, typecheck, locale, catalog lane, catalog, release-notes, `git diff --check` pass. - Full Slurp sweep: no failure that the branch base does not already have. - Not yet: composer-directed manual posts still record no opportunity. That lands with the one-shot intent controls in slice 4. - Known red: the Slurp Remastered browser suite, pre-existing on this branch (see #996, #997). --- <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:27 +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#1237
No description provided.