[PR #1003] [MERGED] feat(slurp2): set campaigns: set, teaser, callback (slice 6) #1235

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

📋 Pull Request Information

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

Base: producing-content ← Head: slice/06-campaigns


📝 Commits (1)

  • 7893d49 feat(slurp2): add set campaigns (set, teaser, callback)

📊 Changes

21 files changed (+778 additions, -307 deletions)

View changed files

➕ artifacts/slurp2-0.1.28.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 (+242 -242)
📝 packages/slurp2/src/engine/packages/server/src/db/schema/slurp.ts (+34 -0)
➕ packages/slurp2/src/engine/packages/server/src/slp/data/feed/slp-campaign-storage.ts (+171 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/data/host/slp-storage-constants.ts (+4 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/feed/reserve/slp-reserve-operation.ts (+7 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-generation-service.ts (+5 -4)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-post-plan-service.ts (+46 -11)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-media-reuse-service.ts (+19 -7)
➕ packages/slurp2/src/engine/packages/server/src/slp/modules/feed/slp-campaign.ts (+98 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
➕ tests/slurp-campaign.regression.ts (+104 -0)

...and 1 more files

📄 Description

Why

Slice 6 of plan/concept.md. Every set was a one-off. A paid drop went up and nothing ever pointed at it again: there was no public teaser to sell it and no follow-up for the people who bought it. A creator page converts in short sequences.

What changed

  • New slurp2_content_campaigns and slurp2_content_campaign_stages tables, registered for backup.
  • modules/feed/slp-campaign.ts (pure):
    • Template: set → public teaser (+2 h) → callback (+24 h).
    • slurpNextCampaignStage returns a stage only when it is due, still planned, the slot has the access it needs, and every earlier stage is completed or skipped.
    • Stage transitions: finished stages stay finished.
    • Campaigns expire after 4 days.
  • data/feed/slp-campaign-storage.ts: open a campaign, list open stages (closing expired campaigns and cancelling their open stages), move a stage (the rules decide), and complete the stage a finished plan ran.
  • Plan service:
    • A due stage takes an undirected slot. It never outranks a directed post or a composer purpose.
    • A teaser stage prefers a cropped preview of its own set's picture.
    • The plan running a stage claims it. A set planned outside a campaign opens one, and the set is its first claimed stage.
    • Stage times count from the set's publication time, not from when it was planned.
  • Generation and the reserve advance the stage wherever they complete a plan.
  • The set is first so the teaser can show a real crop of it ("the full set is up, here's a corner") instead of a promise. The callback reuses the shoot the set opened.
  • Slurp2 0.1.28.

Validation

  • New tests/slurp-campaign.regression.ts:
    • template order and timing, and the teaser needs a public slot;
    • no stage runs before the one it follows, including a due teaser whose set is still pending;
    • a skipped teaser still lets the callback run, and finished campaigns offer nothing;
    • two campaigns do not block each other, and finished stages cannot move;
    • source proof covers: player direction outranks stages, the teaser previews its own set, claiming and opening, stage completion on both paths, times from publication, and expiry cancelling stages.
  • slurp-creator-strategy assertion updated for the shared forced intent.
  • npm run check: 0 errors, no new warnings. Architecture, typecheck, locale, catalog lane, catalog, release-notes, and git diff --check pass.
  • Full Slurp sweep: no failure that the branch base does not already have.
  • Not done: live dev-Engine run.
  • Not in this slice:
    • A user-facing campaign view (publish, delay, skip, remove, or replace a stage from the UI). The storage transitions exist; the controls land with the Backstage and editor work in slice 10.
    • A claimed stage whose run fails stays claimed until the campaign expires. This is marked ponytail:.
  • Known red: the Slurp Remastered browser suite. The failing set has been identical 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/1003 **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/06-campaigns` --- ### 📝 Commits (1) - [`7893d49`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7893d49b36b3f9c259282ee6480c59bce6ffd842) feat(slurp2): add set campaigns (set, teaser, callback) ### 📊 Changes **21 files changed** (+778 additions, -307 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.1.28.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` (+242 -242) 📝 `packages/slurp2/src/engine/packages/server/src/db/schema/slurp.ts` (+34 -0) ➕ `packages/slurp2/src/engine/packages/server/src/slp/data/feed/slp-campaign-storage.ts` (+171 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/data/host/slp-storage-constants.ts` (+4 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/feed/reserve/slp-reserve-operation.ts` (+7 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-generation-service.ts` (+5 -4) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-post-plan-service.ts` (+46 -11) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-media-reuse-service.ts` (+19 -7) ➕ `packages/slurp2/src/engine/packages/server/src/slp/modules/feed/slp-campaign.ts` (+98 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) ➕ `tests/slurp-campaign.regression.ts` (+104 -0) _...and 1 more files_ </details> ### 📄 Description ## Why Slice 6 of `plan/concept.md`. Every set was a one-off. A paid drop went up and nothing ever pointed at it again: there was no public teaser to sell it and no follow-up for the people who bought it. A creator page converts in short sequences. ## What changed - New `slurp2_content_campaigns` and `slurp2_content_campaign_stages` tables, registered for backup. - `modules/feed/slp-campaign.ts` (pure): - Template: **set → public teaser (+2 h) → callback (+24 h)**. - `slurpNextCampaignStage` returns a stage only when it is due, still planned, the slot has the access it needs, and every earlier stage is completed or skipped. - Stage transitions: finished stages stay finished. - Campaigns expire after 4 days. - `data/feed/slp-campaign-storage.ts`: open a campaign, list open stages (closing expired campaigns and cancelling their open stages), move a stage (the rules decide), and complete the stage a finished plan ran. - Plan service: - A due stage takes an **undirected** slot. It never outranks a directed post or a composer purpose. - A teaser stage prefers a cropped preview of **its own set's picture**. - The plan running a stage claims it. A set planned outside a campaign opens one, and the set is its first claimed stage. - Stage times count from the set's publication time, not from when it was planned. - Generation and the reserve advance the stage wherever they complete a plan. - The set is first so the teaser can show a real crop of it ("the full set is up, here's a corner") instead of a promise. The callback reuses the shoot the set opened. - Slurp2 0.1.28. ## Validation - New `tests/slurp-campaign.regression.ts`: - template order and timing, and the teaser needs a public slot; - no stage runs before the one it follows, including a due teaser whose set is still pending; - a skipped teaser still lets the callback run, and finished campaigns offer nothing; - two campaigns do not block each other, and finished stages cannot move; - source proof covers: player direction outranks stages, the teaser previews its own set, claiming and opening, stage completion on both paths, times from publication, and expiry cancelling stages. - `slurp-creator-strategy` assertion updated for the shared `forced` intent. - `npm run check`: 0 errors, no new warnings. Architecture, typecheck, locale, catalog lane, catalog, release-notes, and `git diff --check` pass. - Full Slurp sweep: no failure that the branch base does not already have. - Not done: live dev-Engine run. - Not in this slice: - A user-facing campaign view (publish, delay, skip, remove, or replace a stage from the UI). The storage transitions exist; the controls land with the Backstage and editor work in slice 10. - A claimed stage whose run fails stays claimed until the campaign expires. This is marked `ponytail:`. - Known red: the Slurp Remastered browser suite. The failing set has been identical 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:26 +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#1235
No description provided.