mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #927] [MERGED] refactor(slurp2): add the event and modifier seam (slice 6) #1195
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1195
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/927
Author: @Gunterlie
Created: 9/18/2026
Status: ✅ Merged
Merged: 9/18/2026
Merged by: @Gunterlie
Base:
modular-simping← Head:slurp2-slice6-event-modifier-seam📝 Commits (4)
aa7979adocs(slurp2): record slice 6 start and the staging merge gatea65f8cfrefactor(slurp2): add the cross-feature event and modifier seam (slice 6)7af1775chore(slurp2): rebuild 0.0.29 and record the slice 6 handoffd6bd86efix(slurp2): keep a lapsed subscription renewing at its agreed price📊 Changes
27 files changed (+1100 additions, -384 deletions)
View changed files
📝
SLURP-MODULE-PLAN.md(+22 -5)📝
SLURP-MODULE-STATUS.md(+146 -27)➕
artifacts/slurp2-0.0.29.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(+4 -0)📝
packages/slurp2/client.js(+28 -28)📝
packages/slurp2/docs/architecture/DECISIONS.md(+23 -0)📝
packages/slurp2/docs/architecture/README.md(+6 -0)📝
packages/slurp2/manifest.json(+5 -5)📝
packages/slurp2/server.mjs(+239 -239)📝
packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpPlatformEventsSettings.tsx(+4 -0)📝
packages/slurp2/src/engine/packages/client/src/components/slurp/slurp2-release.ts(+6 -8)➕
packages/slurp2/src/engine/packages/server/src/slp/base/modifiers/slp-active-modifier-provider.ts(+27 -0)➕
packages/slurp2/src/engine/packages/server/src/slp/base/modifiers/slp-modifier-resolver.ts(+38 -0)➕
packages/slurp2/src/engine/packages/server/src/slp/base/modifiers/slp-modifier-schema.ts(+69 -0)...and 7 more files
📄 Description
Closes #926. Slice 6 of the Slurp2 modular refactor (parent #914). Targets the
modular-simpingintegration branch.The human verification items at the bottom are not done.
What changed
Platform events could only colour prompt text. They can now also move one number in another feature, through a small pure contract rather than an event bus.
base/modifiers/(new, 4 files): modifier types, a bounded schema, a deterministic resolver, and the active-modifier provider. Nothing is stored and nothing holds a clock — the evaluation time always comes from the caller. Resolution sorts by source, then applies multiplies before adds, so two overlapping events give the same answer in either save order and again after a restart.kind: "calendar"andmodifiers. Both are.default()ed, so every event saved before this change parses unchanged and with no effect. Activation moved into anACTIVATION_BY_KINDdispatch table; the UTC and year-wrap arithmetic is untouched.sourceon at activation, so an event cannot claim a modifier for another event or drift from its own id.0..9999range. An existing subscription is not re-priced: renewal still charges the stored agreed price from the wallet.0.0.29, a builder-generated unit.Two plan corrections (both recorded in
DECISIONS.md)SlpActiveModifierProvider, never on World.features/world/events/owns calendar activation, contradicting §3's allocation ledger. Under the Slice 5 layer model activation is a pure rule, and three client files import it directly, so it stays inmodules/world/events/. No file moved, so no client import and no ownership entry changed.The only client change is the Backstage event editor's new-event literal, which gains the two defaulted fields because
.default()makes them required on the inferred type.Merge gate
state MERGEDintomodular-simpingatc945b4a0, andgit merge-base --is-ancestorconfirms it is on the branch. Its0.0.28payload, manifest, ZIP (sha256 and byte size both matching the ledger), and three catalog lanes are present. Its focused regressions andtypecheck-packages slurp2pass on the merged branch.modular-simpingwas 4 behindorigin/staging. With maintainer approval I made an ordinary--no-ffmerge and pushed it as7324d634. No conflicts, so nothing generated was rebuilt.7324d634. No slice commit went tomodular-simpingdirectly, and nothing was reset, rebased, or force-pushed.Validation
tests/slurp2-event-modifiers.regression.tscovers every bullet of plan §8 "Modifier behaviour": the active0.5multiplier halves the charge and the inactive one does not, rounding happens once, the result clamps at both ends, multiplies precede adds, overlapping events resolve identically in either order, evaluation mutates nothing, the same timestamp survives a settings round-trip, all eight schema rejections fail, a broken modifier is dropped without dropping its event or the list, andrenewSubscriptionsstill charges the stored price.multiply, provider skips sorting, charge skips the clamp, activation ignoresenabled. Baseline green again after restoring all four.slurp2-platform-events.regression.tsis unchanged and still passes, which is the proof the eight default events kept their ids, dates, durations, and guidance.7324d634(the suite exits at its first failure, so each file ran alone): 25 failures before, 25 after, an identical set — 0 new, 0 fixed. The 22 unique failures are pre-existing.npm run checkpasses with 0 errors.typecheck-packages slurp2, catalog lanes, locales, catalog, release notes, andgit diff --checkall pass.npm run test:browser:slurp2produced no result. It needsMARINARA_ENGINE_ROOT, and with it the Engine dev servers did not start inside a 400s budget. This is the same unresolved environment gap as Slices 0–5.Full evidence is in the "Slice 6 (0.0.29)" section of
SLURP-MODULE-STATUS.md.CodeRabbit review fixes
d6bd86e5).subscribe()computed one priced value and used it in two branches. The second renews an existing subscription whose paid period lapsed, so an active event would have changed what an existing subscription costs and stored that event price as the new agreed price.basePrice(the Creator's own price, no modifier) is now what that branch spends, stores, credits, notifies, and records on the audience tie — the same behaviour as before Slice 6 — and only a genuinely new subscription callsslurpSubscriptionCharge. The automatic sweeprenewSubscriptionswas never affected; it chargessubscription.pricefrom the wallet and is untouched.0.0.29in place rather than bumping again: the plan allows one integration patch bump per PR, and Slice 5 handled its own review fix the same way. New archive sha25666559923bee9ec2c683805731b6776c1e2cbe4792d756810ce6e462a5ce46d08, 6725244 bytes.validate-package-locales.mjsandvalidate-catalog.mjsfail on missing repository files is not reproducible; all three validators pass on the committed tree before and after the fix. It appears to be an artifact of the review sandbox's checkout. Details in the thread.Human verification
0.0.29on a dev EngineSummary by CodeRabbit
New Features
Bug Fixes
Release
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.