[PR #1430] [MERGED] fix(slurp2): identity tags lead the picture prompt; companions match by card name (0.3.47) #1458

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

📋 Pull Request Information

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

Base: staging ← Head: fix/slurp2-identity-tags


📝 Commits (4)

  • 9fac2a9 fix(slurp2): identity tags lead the picture prompt; companions match by card name (0.3.47)
  • 431fe87 fix(slurp2): review follow-ups for 0.3.47
  • 1e41236 chore(slurp2): release 0.3.47
  • ab44a02 fix(slurp2): CodeRabbit follow-ups for 0.3.47

📊 Changes

19 files changed (+614 additions, -424 deletions)

View changed files

➕ artifacts/slurp2-0.3.47.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 (+324 -322)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+9 -10)
📝 packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt.ts (+98 -13)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-image-companions.ts (+36 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-images-service.ts (+17 -25)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/slurp-image-brief.regression.ts (+5 -1)
📝 tests/slurp2-image-subject.regression.ts (+66 -2)
📝 tests/slurp2-picture-control.regression.ts (+3 -1)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1428
Closes #1429

Why this change

  • Player report (tag/Danbooru image models): a Creator's identity tags (ryuuzaki umi, magic knight rayearth) stayed wherever the prompt writer put them, often behind 1girl, blue eyes, …, or a duplicate wrong-order copy won. "Always in their pictures" and the card name only checked whether the text was present, never where.
  • The player turned "The image model knows this character" off because the card name in display order ("Umi Ryuuzaki") was added a second time next to the writer's tag-order "ryuuzaki umi".
  • A companion the writer named by their card/tag name got no look block, no reference picture, and kept the one-person negative rule, because only the display name was matched.

What changed

  • slurpWithoutImageSubject (slp-image-prompt.ts): in tag families, whole comma tags that match the subject (prefix or card name; word set in any order, _ and escapes ignored) are taken out of the scene and lead the Creator's block once, in the writer's spelling. Tags inside a weight group, names inside a longer tag, sentences, natural prompts and reviewed prompts stay as they are.
  • slurpApplyImageSubject also treats the name as present in any word order, so the card name is no longer doubled.
  • slurpImageNamesPerson: whole-word, any-order match on display name or card name. Used for companion blocks, the companion tag check, the one-person rule (scene only, so a companion page of the same character is not a second person) and the companion reference pictures (now also requested by name).
  • The companion reference lookup moved to slp-image-companions.ts; the oldest What's new entry (0.2.18) was dropped. Both keep their files under the 800-line architecture limit.
  • slurp2 0.3.46 → 0.3.47 (patch): CHANGELOG, What's new, rebuilt client.js, server.mjs, manifest.json, artifacts/slurp2-0.3.47.zip, catalogs and notes.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none (built against Marinara-Engine origin/staging ecd43884c)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none; no settings or data changes

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

Agent-run (not a human check):

  • node scripts/build-feature-packages.mjs slurp2 against an isolated Engine worktree on origin/staging ecd43884c.
  • npm run check, validate-catalog, test-catalog-lanes, validate-package-locales, catalog-release-notes, git diff --check: pass.
  • slurp2-architecture and typecheck-packages.mjs slurp2: pass.
  • All 297 tests/slurp-* / tests/slurp2-* regression files run one by one: 297 pass. New cases in tests/slurp2-image-subject.regression.ts cover the reporter's examples.
  • Known, unrelated: tests/noodle-public-only.regression.ts fails on staging too (the NoodleHome regex does not allow the newer multi-line props); this branch touches no Noodle file.
  • Not done: no live image generation and no sideload on an Engine.

Documentation impact

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

UI evidence (if applicable)

No UI change.

Summary by CodeRabbit

  • Bug Fixes
    • Creator identity tags now appear once at the start of the Creator’s prompt section.
    • Character names are matched regardless of word order, helping prevent duplicate names in generated pictures.
    • Tagged friends are more reliably recognized by display or card name and receive their own appearance in pictures.
  • Release
    • Updated Slurp to version 0.3.47.

🔄 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/1430 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/16/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/slurp2-identity-tags` --- ### 📝 Commits (4) - [`9fac2a9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9fac2a9502d15367f951219f4ecf26ea4bd77e6a) fix(slurp2): identity tags lead the picture prompt; companions match by card name (0.3.47) - [`431fe87`](https://github.com/Pasta-Devs/Marinara-Agents/commit/431fe87231737bbe18b992a4a7c54fb653afb11f) fix(slurp2): review follow-ups for 0.3.47 - [`1e41236`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1e412360e6abd849f8861403919792dde23b9ccb) chore(slurp2): release 0.3.47 - [`ab44a02`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ab44a021c2537a7258914ef1be768b5d25386d22) fix(slurp2): CodeRabbit follow-ups for 0.3.47 ### 📊 Changes **19 files changed** (+614 additions, -424 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.47.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` (+324 -322) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+9 -10) 📝 `packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt.ts` (+98 -13) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-image-companions.ts` (+36 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-images-service.ts` (+17 -25) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/slurp-image-brief.regression.ts` (+5 -1) 📝 `tests/slurp2-image-subject.regression.ts` (+66 -2) 📝 `tests/slurp2-picture-control.regression.ts` (+3 -1) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1428 Closes #1429 ## Why this change - Player report (tag/Danbooru image models): a Creator's identity tags (`ryuuzaki umi, magic knight rayearth`) stayed wherever the prompt writer put them, often behind `1girl, blue eyes, …`, or a duplicate wrong-order copy won. "Always in their pictures" and the card name only checked whether the text was present, never where. - The player turned "The image model knows this character" off because the card name in display order ("Umi Ryuuzaki") was added a second time next to the writer's tag-order "ryuuzaki umi". - A companion the writer named by their card/tag name got no look block, no reference picture, and kept the one-person negative rule, because only the display name was matched. ## What changed - `slurpWithoutImageSubject` (`slp-image-prompt.ts`): in tag families, whole comma tags that match the subject (prefix or card name; word set in any order, `_` and escapes ignored) are taken out of the scene and lead the Creator's block once, in the writer's spelling. Tags inside a weight group, names inside a longer tag, sentences, natural prompts and reviewed prompts stay as they are. - `slurpApplyImageSubject` also treats the name as present in any word order, so the card name is no longer doubled. - `slurpImageNamesPerson`: whole-word, any-order match on display name or card name. Used for companion blocks, the companion tag check, the one-person rule (scene only, so a companion page of the same character is not a second person) and the companion reference pictures (now also requested by name). - The companion reference lookup moved to `slp-image-companions.ts`; the oldest What's new entry (0.2.18) was dropped. Both keep their files under the 800-line architecture limit. - slurp2 0.3.46 → 0.3.47 (patch): CHANGELOG, What's new, rebuilt `client.js`, `server.mjs`, `manifest.json`, `artifacts/slurp2-0.3.47.zip`, catalogs and notes. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none (built against Marinara-Engine origin/staging `ecd43884c`) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none; no settings or data changes ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 Agent-run (not a human check): - `node scripts/build-feature-packages.mjs slurp2` against an isolated Engine worktree on origin/staging `ecd43884c`. - `npm run check`, `validate-catalog`, `test-catalog-lanes`, `validate-package-locales`, `catalog-release-notes`, `git diff --check`: pass. - `slurp2-architecture` and `typecheck-packages.mjs slurp2`: pass. - All 297 `tests/slurp-*` / `tests/slurp2-*` regression files run one by one: 297 pass. New cases in `tests/slurp2-image-subject.regression.ts` cover the reporter's examples. - Known, unrelated: `tests/noodle-public-only.regression.ts` fails on staging too (the `NoodleHome` regex does not allow the newer multi-line props); this branch touches no Noodle file. - Not done: no live image generation and no sideload on an Engine. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) No UI change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Creator identity tags now appear once at the start of the Creator’s prompt section. * Character names are matched regardless of word order, helping prevent duplicate names in generated pictures. * Tagged friends are more reliably recognized by display or card name and receive their own appearance in pictures. * **Release** * Updated Slurp to version 0.3.47. <!-- 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-21 05:11:42 +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#1458
No description provided.