[GH-ISSUE #926] Slurp2 refactor slice 6: event and modifier seam #485

Closed
opened 2026-10-20 17:27:58 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Gunterlie on GitHub (Sep 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/926

Originally assigned to: @Gunterlie on GitHub.

Slice 6 of the Slurp2 modular refactor (parent #914). Plan: SLURP-MODULE-PLAN.md §4 and §7 "6. Event and modifier seam". Target branch: modular-simping.

Scope

  • Add the base modifier contract and provider under packages/server/src/slp/base/modifiers/: types, schema, resolver, and active-modifier provider.
  • Add kind: "calendar" and modifiers: SlpModifier[] to the normalized platform event, both defaulted so existing saved rows parse unchanged.
  • Move calendar activation into a kind dispatch table, keeping the UTC and year-wrap arithmetic unchanged.
  • Have the world-event module expose active prompt guidance and active modifiers from one timestamp.
  • Inject the modifier provider into the new-subscription charge calculation in Economy.
  • Add only the synthetic regression modifier; add no default sale and change no default event.
  • Rebuild Slurp2 as integration version 0.0.29.

Invariants preserved

  • The eight default platform events keep their ids, dates, durations, and guidance.
  • A subscription stores its agreed price and renews at that stored price.
  • The final subscription charge stays inside the existing 0..9999 range.
  • No event rewrites creator prices or wallets when it starts, and nothing cleans up when it ends, so evaluation is restart-safe.
  • createSlurpStorage keeps its exact public method-name set; all 179 routes are unchanged.

Out of scope

Slice 7 (client state and hooks) and every later slice. No default sale event, no general event bus, and no non-numeric modifier target.

Human verification

  • Live install/update/restart of 0.0.29 on a dev Engine
  • Subscribe to a Creator with the wallet enabled and confirm the charge
  • Edit platform events in Backstage and confirm the saved list round-trips
Originally created by @Gunterlie on GitHub (Sep 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/926 Originally assigned to: @Gunterlie on GitHub. Slice 6 of the Slurp2 modular refactor (parent #914). Plan: `SLURP-MODULE-PLAN.md` §4 and §7 "6. Event and modifier seam". Target branch: `modular-simping`. ## Scope - Add the base modifier contract and provider under `packages/server/src/slp/base/modifiers/`: types, schema, resolver, and active-modifier provider. - Add `kind: "calendar"` and `modifiers: SlpModifier[]` to the normalized platform event, both defaulted so existing saved rows parse unchanged. - Move calendar activation into a `kind` dispatch table, keeping the UTC and year-wrap arithmetic unchanged. - Have the world-event module expose active prompt guidance and active modifiers from one timestamp. - Inject the modifier provider into the new-subscription charge calculation in Economy. - Add only the synthetic regression modifier; add no default sale and change no default event. - Rebuild Slurp2 as integration version `0.0.29`. ## Invariants preserved - The eight default platform events keep their ids, dates, durations, and guidance. - A subscription stores its agreed price and renews at that stored price. - The final subscription charge stays inside the existing `0..9999` range. - No event rewrites creator prices or wallets when it starts, and nothing cleans up when it ends, so evaluation is restart-safe. - `createSlurpStorage` keeps its exact public method-name set; all 179 routes are unchanged. ## Out of scope Slice 7 (client state and hooks) and every later slice. No default sale event, no general event bus, and no non-numeric modifier target. ## Human verification - [ ] Live install/update/restart of `0.0.29` on a dev Engine - [ ] Subscribe to a Creator with the wallet enabled and confirm the charge - [ ] Edit platform events in Backstage and confirm the saved list round-trips
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#485
No description provided.