[PR #1348] [MERGED] fix(slurp2): 0.3.32 — image rewrite not rejected for words it was handed; capped fallback keeps the scene #1412

Closed
opened 2026-10-21 05:11:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1348
Author: @Gunterlie
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/slurp2-image-rewrite-content-level


📝 Commits (3)

  • 63cf27d fix(slurp2): 0.3.32 — image rewrite is not rejected for words it was handed; capped fallback keeps the scene (#1347)
  • 041ca5d fix(slurp2): keep the brief level in the capped fallback; carry only appearance and draft words past the policy check (#1347)
  • 49bbd3e fix(slurp2): wider negation for carried words, honest release note, Creator fallback test (#1347)

📊 Changes

18 files changed (+497 additions, -397 deletions)

View changed files

➕ artifacts/slurp2-0.3.32.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 (+6 -0)
📝 packages/slurp2/client.js (+2 -2)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+320 -317)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+8 -10)
📝 packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt.ts (+23 -5)
📝 packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-visual-brief.ts (+27 -6)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-images-service.ts (+4 -6)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-public-images-service.ts (+8 -3)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/slurp-image-brief.regression.ts (+51 -0)

📄 Description

Linked issue

Closes #1347

Why this change

Discord (Slurp 0.3.31): Image prompt rewrite unusable (the rewrite broke the scene's content level); sending the capped draft on a post whose draft was not explicit, and the fallback picture held only the appearance.

  • A. slurpVisualBriefPromptViolatesPolicy matched sexual words in the rewrite against the brief's level, but the rewrite is handed the card's appearance. A look saying "breasts" rejected every rewrite of a clothed scene. It never fires "downwards": the brief level is the planned scene, and explicit never rejects.
  • B. The capped fallback was [look, scene] cut head-first at 1500 chars, so a long look used the whole cap and the scene was lost.

What changed

  • Policy check: a word found in the card appearance or the draft is carried over; negated limits ("not a nude portrait"), content policy and personality are not a source, so real escalation is still rejected.
  • Fallback over the cap: the look keeps a bounded share (900; the public service caps the appearance at 500 so the brief and its "Sexual level" line survive) and the scene gets the rest. A look already inside the template is not repeated (whitespace-insensitive).
  • Callers checked: slp-images-service.ts and slp-public-images-service.ts changed; slp-garnish-image-service.ts unchanged in behaviour.
  • slurp2 0.3.31 to 0.3.32: source, rebuilt client.js/server.mjs, manifest, artifacts/slurp2-0.3.32.zip, catalogs and notes via build-feature-packages.mjs slurp2 against a staging Engine; changelog and splash entry added. The splash drops its oldest (0.0.22) entry to stay under the 800-line architecture limit.
  • Known limit: over the cap the Creator fallback is look + scene; image habits and instructions from the template are dropped there (the old head-first cut dropped them too).

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: normal package update

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

The author ran, not ticked above: new cases in tests/slurp-image-brief.regression.ts (they failed before the fix), all slurp-image-*, architecture and release-notes regressions, the full Slurp regression suite, typecheck, format check, and the catalog validators. One read-only Opus review ran; its confirmed findings are fixed. Not done: install through a live Engine.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

None; no UI change.


🔄 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/1348 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/13/2026 **Status:** ✅ Merged **Merged:** 10/13/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/slurp2-image-rewrite-content-level` --- ### 📝 Commits (3) - [`63cf27d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/63cf27d6f51af197f99f70e0f5d4e9bd26a65b2a) fix(slurp2): 0.3.32 — image rewrite is not rejected for words it was handed; capped fallback keeps the scene (#1347) - [`041ca5d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/041ca5d981321cfd838aca784e1e117c6ed93459) fix(slurp2): keep the brief level in the capped fallback; carry only appearance and draft words past the policy check (#1347) - [`49bbd3e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/49bbd3e2b2641263e5e793877d95bfda18eecd2d) fix(slurp2): wider negation for carried words, honest release note, Creator fallback test (#1347) ### 📊 Changes **18 files changed** (+497 additions, -397 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.32.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` (+6 -0) 📝 `packages/slurp2/client.js` (+2 -2) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+320 -317) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+8 -10) 📝 `packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt.ts` (+23 -5) 📝 `packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-visual-brief.ts` (+27 -6) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-images-service.ts` (+4 -6) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-public-images-service.ts` (+8 -3) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/slurp-image-brief.regression.ts` (+51 -0) </details> ### 📄 Description ## Linked issue Closes #1347 ## Why this change Discord (Slurp 0.3.31): `Image prompt rewrite unusable (the rewrite broke the scene's content level); sending the capped draft` on a post whose draft was not explicit, and the fallback picture held only the appearance. - A. `slurpVisualBriefPromptViolatesPolicy` matched sexual words in the rewrite against the brief's level, but the rewrite is handed the card's appearance. A look saying "breasts" rejected every rewrite of a clothed scene. It never fires "downwards": the brief level is the planned scene, and `explicit` never rejects. - B. The capped fallback was `[look, scene]` cut head-first at 1500 chars, so a long look used the whole cap and the scene was lost. ## What changed - Policy check: a word found in the card appearance or the draft is carried over; negated limits ("not a nude portrait"), content policy and personality are not a source, so real escalation is still rejected. - Fallback over the cap: the look keeps a bounded share (900; the public service caps the appearance at 500 so the brief and its "Sexual level" line survive) and the scene gets the rest. A look already inside the template is not repeated (whitespace-insensitive). - Callers checked: `slp-images-service.ts` and `slp-public-images-service.ts` changed; `slp-garnish-image-service.ts` unchanged in behaviour. - slurp2 0.3.31 to 0.3.32: source, rebuilt `client.js`/`server.mjs`, manifest, `artifacts/slurp2-0.3.32.zip`, catalogs and notes via `build-feature-packages.mjs slurp2` against a staging Engine; changelog and splash entry added. The splash drops its oldest (0.0.22) entry to stay under the 800-line architecture limit. - Known limit: over the cap the Creator fallback is look + scene; image habits and instructions from the template are dropped there (the old head-first cut dropped them too). ## Package and security impact - Affected package IDs: slurp2 - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: normal package update ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes The author ran, not ticked above: new cases in `tests/slurp-image-brief.regression.ts` (they failed before the fix), all `slurp-image-*`, architecture and release-notes regressions, the full Slurp regression suite, typecheck, format check, and the catalog validators. One read-only Opus review ran; its confirmed findings are fixed. Not done: install through a live Engine. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) None; no UI change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:11:01 +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#1412
No description provided.