mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #683] [MERGED] fix(slurp): keep art style and appearance in image prompts, derive distinct secret personas #1085
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#1085
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/683
Author: @Gunterlie
Created: 9/1/2026
Status: ✅ Merged
Merged: 9/1/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/slurp-image-prompt-and-secret-derivation📝 Commits (5)
cd68941fix(slurp): keep art style and appearance in image prompts, derive distinct secret personase5f1a8bfix(slurp): treat every disclosure mode as the same person, concealed differently5fcc086fix(slurp): give creator posts the live source card69ce9f8feat(slurp): offer audience-stance presets for the creator stage voice1f3d438fix(slurp): address review findings on the image prompt guard📊 Changes
23 files changed (+718 additions, -404 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+5 -0)➕
artifacts/slurp-1.0.25.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v3/catalog.json(+8 -8)📝
packages/slurp/client.js(+16 -15)📝
packages/slurp/manifest.json(+5 -5)📝
packages/slurp/server.mjs(+160 -161)📝
packages/slurp/src/engine/packages/client/src/components/slurp/SlurpHome.tsx(+64 -1)📝
packages/slurp/src/engine/packages/client/src/localization/locales/en.json(+41 -4)📝
packages/slurp/src/engine/packages/client/src/localization/locales/ko.json(+22 -4)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-generation.service.ts(+48 -0)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-image-prompt.ts(+20 -5)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-images.service.ts(+48 -24)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-prompt-safety.ts(+34 -61)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-images.service.ts(+34 -10)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-stage-profile-draft.service.ts(+11 -52)📝
scripts/build-feature-packages.mjs(+1 -1)➕
scripts/validate-package-locale-keys.mjs(+51 -0)📝
tests/noodle-prompt-safety.regression.ts(+1 -18)...and 3 more files
📄 Description
Pull request
Linked issue
Closes #675
Closes #676
Closes #679
Closes #680
Partially addresses #677 (Slurp half; the Noodle half is #682)
Why this change
selectNoodleImageProviderPromptdiscards a rewritten prompt containing anyprivateContextvalue as a substring, and both image services putstyleGuidancein that list — whileslurp-image-prompt-rewrite.ts:71-75explicitly tells the rewriter to apply that guidance. An obedient rewrite was discarded, and the fallback is the bare draft, which has never had appearance or style applied. That is why both were lost together. It was intermittent because a paraphrasing rewriter survived and a verbatim one did not.promptOverridethe rewrite was skipped and the compiled prompt replaced outright, so enabling Review image prompts before sending silently disabled every style profile.[]and fall back to one identical sentence. The vocabulary is alsokind/gentle/cheerful/playful, so on an adult platform a domineering or cruel creator had no representable token.ImagePromptReviewModal.What changed
Image prompts (#675, #676)
styleGuidanceandcharacterImageInstructionsare no longer private context. Both are authored to steer the image; a rewrite that uses them is doing its job.configuredImageInstructions,connectionImageInstructions, andcharacterPersonalitystay private.anime styleappeared verbatim in any prompt honouring it and rejected every generation — the workaround users reported as making things worse.hasInternalMarkeris untouched, so labelled blocks and<art_style_guidance>tags are still rejected.compileImagePromptso the style profile and its negative prompt survive review.Creator voice (#680)
Post generation received only the display name, handle, bio, and stage voice. Both bio and stage voice are written once at Creator setup, so every post came from two strings a model invented that day, and the character card was never read at all — the image path at least called
characterAppearanceFromRow. Sharpening a character changed nothing about its Creator.resolveSlurpSourceCardContext. Concealed modes get the same seed the stage profile draft uses; disclosure limits what may be said, not who this is. The text passes throughprotect()like every other supplied value.slurp-prompt-safety.tsso the draft and generation paths share one definition rather than importing across a cycle.Audience stance (#680)
A character card says nothing about how its Creator treats the people reading — needy, aloof, bratty, warm. Cards are written for one-to-one roleplay, not broadcast, so with no signal on that axis every Creator settles into the same middle register. That is the half of the sameness the live card does not fix.
stagePersonalityfree-text field rather than adding a new one.privacy.stagePersonalityand its zod schema are defined in@marinara-engine/shared, so a sibling field cannot be added from this repo — it would need an Engine release and aengine.minbump. If you want a first-class field with its own storage and prompt slot, that is an Engine PR and I have not opened one.Disclosure model (#679)
The three modes are one person with different linkable details withheld, not a redaction dial. Treating secret as "delete almost everything" conflated anonymous with generic.
reviewedNoodlerPhysicalFactsallowlist is deleted — a build and a hair colour identify nobody, so reducing a concealed creator to approved tokens cost the person and bought no privacy. Secret withholds the face through a composition guard instead, which is how anonymous adult content actually looks.Localization (#677)
en.json, 21 toko.json, all values taken from the Engine catalog.scripts/validate-package-locale-keys.mjsdiffs bundledui.*references against the catalog, wired into CI. It is plural-aware, sincecreateCountresolves throughcreateCount_one/_otherand was a false positive on the first pass.Package
slurp1.0.24→1.0.25with manifest,server.mjs,client.js,artifacts/slurp-1.0.25.zip, and all catalog lanes.Package and security impact
slurpengine.minandmaxExclusiveunchangedIdentity protection is unchanged and still deterministic. It never lived in the input filter.
protectNoodlerGeneratedIdentity(slurp-generation.service.ts:247) is an output scrubber that regex-replaces the real identifiers withsomeone/you-know-who, and already runs on post content, replies, image prompts, stage profile drafts, and the post history fed back into the prompt. Removing the input allowlist does not touch it.Deliberately not changed:
slurp-source.tscontains a similar-looking token list used byminimizeNoodlerSourceSnapshotto label HMAC-digested snapshots for revision comparison. Different job, not on the prompt path, and changing it would alter stored snapshot formats.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Boxes left unticked deliberately, per
AGENTS.md: they are a human verification list, not an agent's self-report. What was actually run:npm run check— 0 errors, 68 warnings, all pre-existing and untouched.test-catalog-lanes.mjs,validate-package-locales.mjs,validate-catalog.mjs— pass.validate-package-locale-keys.mjs— Slurp passes; Noodle fails until #682 lands.server.mjsthat the anonymous-alias brief and composition guard are present and the derivation wording is gone.Not performed: no manual install, restart, or in-app verification. No image was generated against a real provider, so the visual effect of the composition guard is unverified.
Pre-existing failures, unrelated:
noodle-all-invited-reliability,noodle-conversation-schedule,noodle-generated-refresh,noodle-novelai-v5-runtimefail withCannot find module '@marinara-engine/shared'on cleanorigin/stagingtoo.Documentation impact
No catalog entry, package name, or README content changed. The user-facing wording change is in the package locale catalog and ships with the package.
UI evidence (if applicable)
No screenshots — verified at the bundle level rather than in a running install, as noted above.
Notes for reviewers
Four existing tests asserted the old behaviour and were updated rather than deleted:
slurp-image-instructions.regression.tsasserted that a rewrite containing the style guidance must be discarded. It now asserts the opposite, plus that a short private value is not a leak and a copied prose block still is.slurp-boundary.regression.tsasserted secret mode uses reviewed temperament themes and reviewed physical tokens. It now asserts the shared concealed seed and the composition guard.noodler-disclosure-contract.regression.tsreferencednoodlerHintedSourceText; the seed is nownoodlerConcealedSourceText, shared by both concealed modes, and the assertion that it withholds the lookupable canon still holds.noodle-prompt-safety.regression.tscovered the deleted physical-token matcher.Worth pushing back on during review:
selectNoodleImageProviderPromptis a heuristic, marked with aponytail:comment naming its ceiling. A shortcharacterPersonalitywould no longer be leak-checked. That is cosmetic rather than a privacy issue — personality words in a visual prompt are not identifying — but it is a real behaviour change.Follow-up, not in this PR: the audience-stance field from #680 is still outstanding — there is no field expressing how a Creator performs to an audience (needy, aloof, bratty, warm). That is the next PR.
Summary by CodeRabbit
New Features
Bug Fixes
Quality Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.