[GH-ISSUE #3728] [Issue]: Image prompts can duplicate explicit art styles #2012

Closed
opened 2026-10-21 05:44:34 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @JurijPietrowicz on GitHub (Jul 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3728

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Image prompt builders can include an explicit art style or appearance in the source prompt while also supplying the same value separately to the shared compiler. This can cause the final provider prompt to contain the same content twice.

Expected behavior

Explicit art styles and appearance descriptions should appear exactly once in the final provider-visible positive prompt. Deduplication must not remove the only surviving copy during prompt transformation, token compaction, or storyboard truncation.

Actual behavior

The compiler could preserve both the embedded source value and the separately supplied value, producing duplicated prompt content. Initial deduplication attempts could also remove the dedicated copy before later processing discarded or truncated the source copy.

Steps to reproduce

  1. Configure image generation with a style profile such as Z-Image Turbo and set an explicit art style.
  2. Generate a portrait or Game image whose prompt builder also includes that art style in its source prompt.
  3. Inspect the final provider prompt in debug mode and observe that the art style is repeated.

Environment

  • Marinara Engine version: 2.3.2
  • Install type: source
  • OS + version: Fedora 44
  • Browser or app shell: Firefox

Logs, screenshots, or video

No screenshots or runtime logs attached. The issue was reproduced directly through provider-prompt compilation and covered with deterministic prompt regressions.

Additional context

The issue can affect multiple image profiles and image kinds, not only Z-Image portraits. Compact prompts and preserved storyboard prompts require special handling because token or character limits can remove the source copy after an early deduplication decision.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @JurijPietrowicz on GitHub (Jul 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3728 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Image prompt builders can include an explicit art style or appearance in the source prompt while also supplying the same value separately to the shared compiler. This can cause the final provider prompt to contain the same content twice. ## Expected behavior Explicit art styles and appearance descriptions should appear exactly once in the final provider-visible positive prompt. Deduplication must not remove the only surviving copy during prompt transformation, token compaction, or storyboard truncation. ## Actual behavior The compiler could preserve both the embedded source value and the separately supplied value, producing duplicated prompt content. Initial deduplication attempts could also remove the dedicated copy before later processing discarded or truncated the source copy. ## Steps to reproduce 1. Configure image generation with a style profile such as Z-Image Turbo and set an explicit art style. 2. Generate a portrait or Game image whose prompt builder also includes that art style in its source prompt. 3. Inspect the final provider prompt in debug mode and observe that the art style is repeated. ## Environment - Marinara Engine version: 2.3.2 - Install type: source - OS + version: Fedora 44 - Browser or app shell: Firefox ## Logs, screenshots, or video No screenshots or runtime logs attached. The issue was reproduced directly through provider-prompt compilation and covered with deterministic prompt regressions. ## Additional context The issue can affect multiple image profiles and image kinds, not only Z-Image portraits. Compact prompts and preserved storyboard prompts require special handling because token or character limits can remove the source copy after an early deduplication decision. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:34 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 17, 2026):

Resolved by #3729, including the CodeRabbit compaction safeguard, now merged into staging.

<!-- gh-comment-id:5000939554 --> @SpicyMarinara commented on GitHub (Jul 17, 2026): Resolved by #3729, including the CodeRabbit compaction safeguard, now merged into staging.
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-Engine#2012
No description provided.