[PR #617] [MERGED] fix(slurp): keep image guidance out of provider prompts #1049

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/617
Author: @Gunterlie
Created: 8/26/2026
Status: ✅ Merged
Merged: 8/27/2026
Merged by: @Gunterlie

Base: staging ← Head: slurp-straw-poll


📝 Commits (10+)

  • 2643a55 fix(slurp): keep image guidance out of provider prompts
  • b34ee43 test(slurp): prove image prompt provider boundary
  • 65ce739 fix(slurp): use visual prompt fallback
  • 808376a fix(slurp): reject leaked image rewrite context
  • aee61af fix(slurp): preserve visual appearance in prompt filter
  • c5466bb fix(slurp): close prompt filter bypasses
  • 0a55228 fix(slurp): ignore trivial prompt context values
  • 64acf4e test(slurp): exercise short context matches
  • 8bbc5bd test(noodle): compare resolved accent colors
  • fe64ad6 test(noodle): verify accent variable usage

📊 Changes

13 files changed (+358 additions, -256 deletions)

View changed files

➕ artifacts/slurp-1.0.20.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v3/catalog.json (+8 -8)
📝 packages/slurp/client.js (+1 -1)
📝 packages/slurp/manifest.json (+5 -5)
📝 packages/slurp/server.mjs (+162 -163)
📝 packages/slurp/src/engine/packages/server/src/services/slurp/slurp-image-prompt.ts (+22 -0)
📝 packages/slurp/src/engine/packages/server/src/services/slurp/slurp-images.service.ts (+15 -8)
📝 packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-images.service.ts (+21 -9)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/package-noodle.e2e.ts (+28 -34)
📝 tests/slurp-image-instructions.regression.ts (+79 -11)

📄 Description

Why this change

Slurp currently can send user image-generation instructions, generation guidance, personality context, and character image preferences to the image provider. The text model should use this context, but the image provider should receive only the final visual description.

What changed

  • keep Slurp user image instructions and character context in the text-model rewrite path only
  • prevent raw internal guidance from reaching image providers when interpretation is disabled or unavailable
  • add regression coverage for both Slurp image generation paths
  • bump Slurp to 1.0.20 and rebuild the package artifact and catalogs

Closes #616

Validation

  • npm run check
  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-package-locales.mjs
  • node scripts/validate-catalog.mjs
  • npx tsx tests/slurp-image-instructions.regression.ts
  • git diff --check
  • unzip -t artifacts/slurp-1.0.20.zip

ESLint completed with existing warnings and zero errors. Manual Engine install and restart testing were not performed.

Summary by CodeRabbit

  • Bug Fixes

    • Improved image prompt handling when rewritten prompts are unavailable, empty, or unsuitable.
    • Prevented internal instructions, private context, and style guidance from appearing in image-generation prompts.
    • Ensured image generation consistently selects the appropriate prompt with safe fallback behavior.
    • Improved consistency when combining image instructions from different configuration sources.
  • Release

    • Updated Slurp to version 1.0.20.
    • Refreshed release metadata, checksums, file sizes, and integrity information for package artifacts.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/617 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/26/2026 **Status:** ✅ Merged **Merged:** 8/27/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `slurp-straw-poll` --- ### 📝 Commits (10+) - [`2643a55`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2643a55fb40c197f348ef9e009b555ca11891075) fix(slurp): keep image guidance out of provider prompts - [`b34ee43`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b34ee43058bbae0aab6ba11efa73e477043be551) test(slurp): prove image prompt provider boundary - [`65ce739`](https://github.com/Pasta-Devs/Marinara-Agents/commit/65ce739f5f52f5af7c128d4f16c80419bdda9ed6) fix(slurp): use visual prompt fallback - [`808376a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/808376a78087fa2670b47d709fbe3729fcbe1de3) fix(slurp): reject leaked image rewrite context - [`aee61af`](https://github.com/Pasta-Devs/Marinara-Agents/commit/aee61afd90535cd0708002ae23e29a66d669b3da) fix(slurp): preserve visual appearance in prompt filter - [`c5466bb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c5466bb75450b96285440aa92df8b48cba3c9e3e) fix(slurp): close prompt filter bypasses - [`0a55228`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0a552280409c0368272a83f60679c96a2309d8ab) fix(slurp): ignore trivial prompt context values - [`64acf4e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/64acf4ec8e0c45ff73d3e8af9388f3d9a9d0861e) test(slurp): exercise short context matches - [`8bbc5bd`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8bbc5bd5c70044355d50cc867fdff8ca8a93573b) test(noodle): compare resolved accent colors - [`fe64ad6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fe64ad61ea44a24f32b47446e0ed9b6e2ef6989d) test(noodle): verify accent variable usage ### 📊 Changes **13 files changed** (+358 additions, -256 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp-1.0.20.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `packages/slurp/client.js` (+1 -1) 📝 `packages/slurp/manifest.json` (+5 -5) 📝 `packages/slurp/server.mjs` (+162 -163) 📝 `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-image-prompt.ts` (+22 -0) 📝 `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-images.service.ts` (+15 -8) 📝 `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-images.service.ts` (+21 -9) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/package-noodle.e2e.ts` (+28 -34) 📝 `tests/slurp-image-instructions.regression.ts` (+79 -11) </details> ### 📄 Description ## Why this change Slurp currently can send user image-generation instructions, generation guidance, personality context, and character image preferences to the image provider. The text model should use this context, but the image provider should receive only the final visual description. ## What changed - keep Slurp user image instructions and character context in the text-model rewrite path only - prevent raw internal guidance from reaching image providers when interpretation is disabled or unavailable - add regression coverage for both Slurp image generation paths - bump Slurp to 1.0.20 and rebuild the package artifact and catalogs Closes #616 ## Validation - `npm run check` - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-package-locales.mjs` - `node scripts/validate-catalog.mjs` - `npx tsx tests/slurp-image-instructions.regression.ts` - `git diff --check` - `unzip -t artifacts/slurp-1.0.20.zip` ESLint completed with existing warnings and zero errors. Manual Engine install and restart testing were not performed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved image prompt handling when rewritten prompts are unavailable, empty, or unsuitable. * Prevented internal instructions, private context, and style guidance from appearing in image-generation prompts. * Ensured image generation consistently selects the appropriate prompt with safe fallback behavior. * Improved consistency when combining image instructions from different configuration sources. * **Release** * Updated Slurp to version 1.0.20. * Refreshed release metadata, checksums, file sizes, and integrity information for package artifacts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:33:34 +07:00
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#1049
No description provided.