mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 20:58:37 +07:00
[PR #685] [MERGED] fix(slurp): stop automatic Slurp work overloading image and text connections #1084
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#1084
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/685
Author: @Gunterlie
Created: 9/2/2026
Status: ✅ Merged
Merged: 9/2/2026
Merged by: @Gunterlie
Base:
staging← Head:no-double-dip📝 Commits (3)
a8acccdfix(slurp): stop the schedulers hammering image and text connectionsb5dbae3fix(slurp): admit automatic generation so the daily budget is enforced942ac59fix(slurp): address CodeRabbit findings on the retry and admission work📊 Changes
20 files changed (+608 additions, -325 deletions)
View changed files
➕
artifacts/slurp-1.0.26.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v3/catalog.json(+8 -8)📝
packages/slurp/client.js(+14 -14)📝
packages/slurp/manifest.json(+5 -5)📝
packages/slurp/server.mjs(+157 -157)📝
packages/slurp/src/engine/packages/client/src/components/slurp/SlurpCreatorPostCard.tsx(+18 -0)📝
packages/slurp/src/engine/packages/client/src/localization/locales/en.json(+1 -0)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-artwork.operation.ts(+6 -0)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-autopost-scheduler.service.ts(+15 -1)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-fan-activity-scheduler.service.ts(+5 -1)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-generation.service.ts(+18 -2)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-image-retry.ts(+18 -0)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-images.service.ts(+164 -116)➕
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-poll-backoff.ts(+14 -0)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-generation.service.ts(+15 -4)📝
packages/slurp/src/engine/packages/server/src/services/storage/slurp.storage.ts(+33 -0)📝
scripts/build-feature-packages.mjs(+1 -1)➕
tests/slurp-connection-load.regression.ts(+100 -0)📄 Description
Pull request
Linked issue
Closes #684
Why this change
admissionModetowithConnectionFallbackProvider, whoseConnectionFallbackProviderArgshas no such field. Packages bundle with esbuild and this repository has no typecheck gate, so the property was dropped in silence.claimNoodlerAutomaticAttemptis only reachable fromadmissionMode.beforeAttempt. With the mode discarded the claim never happens, sopostsPerDaylimits nothing, and the provider is never admitted, so automatic work never yields to the user and never reports a busy connection.NOODLE_IMAGE_INTERPRET) onto the text connection, which is why one loop bills both the image and the text connection. A user's token log shows both streams running while Slurp is idle: ~22-25k tokens once per poll, and ~1.5k tokens every ~75 seconds.imagePrompt: null, so it published without its picture and could never get one; the day's slot was spent on an incomplete post.What changed
slurppackage (1.0.25 -> 1.0.26). Admission now wraps the composed provider viawithConnectionAdmissionProviderinslurp-generation.service.tsandslurp-public-generation.service.ts, restoring the daily budget and background yielding. The public refresh's text-only retry and correction pass use a{ kind: "none" }provider, so they are steps inside the already-admitted attempt rather than new ones.slurp-poll-backoff.ts: the reserve and audience polls back off exponentially while failing, capped at 30 minutes, reset by the first clean pass./noodler/refresh/imagesroute.packages/slurp/manifest.json,server.mjs,client.js,artifacts/slurp-1.0.26.zip,catalog/catalog.json,catalog/v2/catalog.json,catalog/v3/catalog.json. New locale keyui.noodle.noodlepostcard.generateImage.Package and security impact
slurp>=2.4.3 <4.0.0), so lane routing is unchanged.POST /noodler/refresh/imagesroute and its existing claim checks.imageRetryAttempts, andimagePromptnow retained on failure) default safely when absent. Requires the usual package update and Engine restart.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Boxes left unticked deliberately: they are the maintainer's verification list, and the two that matter most here have not been done by me - see the limitation below.
What I actually ran, from a clean rebuild of this branch:
node scripts/build-feature-packages.mjs slurp- regenerated manifest, bundles, artifact and catalog entries.npm run check- clean (0 errors; 68 pre-existing warnings, unchanged from base).node scripts/validate-catalog.mjs,node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-package-locale-keys.mjs- all pass.tests/slurp-*.regression.tsandtests/noodler-*.regression.tspasses. Fournoodle-*tests fail identically on the base commit692c9b80(unrelated missing module); I verified that by stashing and re-running.tests/slurp-connection-load.regression.tscovers the backoff curve, the retry and deferral contract, the NaN-safe counter, the bounded scan, and - most importantly - fails if any call site handsadmissionModeto the fallback wrapper again.Limitation, stated plainly: none of this has been exercised against a running Marinara Engine. The diagnosis comes from reading the admission wiring and from a user's token log, not from a reproduction, and the package has not been installed or updated through the Engine. "The reserve poll now stops at
postsPerDay" is an inference, not an observation. The cheapest confirmation is to install 1.0.26 on a dev instance, leave Slurp idle with automatic posting on, and check that generation stops once the daily count is reached.Documentation impact
UI evidence (if applicable)
The only UI change is a Generate image button inside the existing image-prompt panel on the creator post card - the panel that already renders when a post has a prompt but no image. No screenshot captured, since the change was not run against a live Engine.
Follow-up, not in this PR
backfillNextNoodlerCreatorArtworkpicks its target withfind(p => !p.avatarUrl || !p.bannerUrl). An "open" creator whose source has no banner always resolves tobannerUrl: nulland returnsidle, so that creator is selected on every poll for ever and no creator behind it is ever filled. Unrelated to connection load; will file separately.Worth considering separately: a
tsc --noEmitgate would have caught the root cause of #684 outright.Review history
CodeRabbit round one raised four findings on the first two commits; all four were valid and are fixed in
942ac59c, with regression coverage for each. See the discussion below for the detail, including one correction to its reasoning on the admission finding.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.