mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #804] [MERGED] fix(slurp2): repair ad pipeline, audience clocks, and operation locks #1145
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#1145
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/804
Author: @Gunterlie
Created: 9/12/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @Gunterlie
Base:
staging← Head:general-strike-on-ads📝 Commits (2)
daf7bb5fix(slurp2): repair ad pipeline, audience clocks, and operation locks5287b33docs(slurp2): correct the ad ceiling and privacy copy📊 Changes
36 files changed (+850 additions, -455 deletions)
View changed files
📝
artifacts/slurp2-0.0.2.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -0)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -0)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -0)📝
packages/slurp2/CHANGELOG.md(+12 -0)📝
packages/slurp2/client.js(+30 -30)📝
packages/slurp2/manifest.json(+5 -5)📝
packages/slurp2/server.mjs(+148 -148)📝
packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpHome.tsx(+6 -2)📝
packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpSettings.tsx(+93 -0)📝
packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpShell.tsx(+2 -2)📝
packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpSplash.tsx(+4 -3)📝
packages/slurp2/src/engine/packages/client/src/components/slurp/slurp2-release.ts(+16 -1)📝
packages/slurp2/src/engine/packages/client/src/hooks/use-slurp.ts(+18 -0)📝
packages/slurp2/src/engine/packages/client/src/localization/locales/en.json(+27 -20)📝
packages/slurp2/src/engine/packages/server/src/routes/slurp-messages.routes.ts(+1 -1)📝
packages/slurp2/src/engine/packages/server/src/routes/slurp.routes.ts(+6 -2)...and 16 more files
📄 Description
Pull request
Linked issue
Closes #803
Why this change
Slurp Remastered shipped several subsystems that fail silently rather than loudly, so none of them surfaced as a crash report. Three of them disable a whole feature:
lastPostedAt, read that as "never posted", and returned offline indefinitely, so the follow-up was re-postponed every hour.Plus a payout hole:
POST /noodler/viewer/ads/:id/actionvalidated only the persona, so an id that was never served — or does not exist — still earned wallet coins.The ad pool could also only be filled by generation or by importing a file. There was no way to write a single ad by hand.
What changed
Affected package:
slurp2(Slurp Remastered),0.0.1→0.0.2, patch only.Ads
tamerather than rejecting the whole generated batch.Audience and schedulers
slurp2.world.maintenance) instead of the general tick mark. The mark is also written when it is absent — without that the fallback resolves to the previous tick forever and the clock never arms, which would have left this fix inert.Locks
UI
POST /noodler/ads/poolroute; no new endpoint or permission.Note on the draft-post fix
The availability fix filters drafts in the query, not at the call sites. Filtering a
limit 1result afterwards returns nothing when the newest post happens to be a draft — which reads as a Creator who has never posted, i.e. the exact bug being fixed. AddedgetNoodlerLatestPublishedPostand routed all three availability call sites through it.Package and security impact
slurp2minEngineVersionunchanged at2.4.5slurp2.world.maintenance; absent on existing installs and initialized on the first world tick.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Ran the full set of checks this repository's PR workflow runs, all passing locally:
npm run check,npm run test:security,test-catalog-lanes.mjs,validate-package-locales.mjs,validate-package-locale-keys.mjs,validate-catalog.mjs,catalog-generatedat-determinism,catalog-release-notes,validate-pr-triage.mjs,test-owner-approval.mjs, plusnpm run typecheck:packages.Added
tests/slurp2-bughunt.regression.ts, which exercises the lock exclusions against the real lock modules with promise barriers in both acquisition orders, and pins the source-level contracts for the ad, feed, availability, and maintenance-clock fixes. Updatedtests/slurp-audience-arc.regression.tsfor the new maintenance gate, including an assertion that the mark is written when absent — that assertion fails against the inert first version of this fix.Test baseline. Eight
slurp-*regressions are already failing onstagingata6bb9509(slurp-alive,slurp-boundary,slurp-lifecycle-safety,slurp-phase1-durability,slurp-population,slurp-ppv-paywall,slurp-relationship-panel,slurp-stance). I verified this by running the suite in a separate worktree pinned to the base commit and comparing assertion text per test: all eight messages match byte-for-byte across both trees. This branch causes zero new failures and does not fix any of the eight. None are in this PR's scope.Not verified: the two unticked boxes above are accurate. I have not installed this build through a Marinara Engine instance, so the new Settings form has not been exercised in a browser — the ad-creation path is verified only by the schema match between client payload and the server's existing zod schema. Worth a look before promotion to
main.Documentation impact
UI evidence (if applicable)
None captured — see the "Not verified" note above.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.