mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3852] [Issue]: Two persisted image style profile rules are never consumed #2082
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2082
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?
Originally created by @Xelvanis on GitHub (Jul 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3852
Originally assigned to: @SpicyMarinara on GitHub.
Summary
ImageStyleProfileRules.preferTagsOverNarrativeandpreserveUserPhrasesare normalized, persisted, and publicly exported, but the image prompt compiler never reads them. OnlydedupeStrengthcurrently affects compilation.These fields should either gain defined behavior or be retired through an explicit compatibility decision. Removing them as ordinary dead-code cleanup would silently change persisted JSON and the public shared-package contract.
Expected behavior
Every persisted, publicly exported image-style rule should affect documented compiler behavior, or deprecated fields should have a deliberate compatibility and migration policy.
Actual behavior
ImageStyleProfileRulesdeclares all three rules.normalizeImageStyleProfileRulesalways emits both boolean fields, so they survive normalization and persistence.compileImagePromptreadsdedupeStrengthonly.Repository-wide symbol searches on
origin/stagingfound no runtime reads of either boolean outside defaults and normalization.A 240-scenario comparison covered every built-in profile, every image kind, both source-prompt modes, varied prompt inputs, and all four boolean combinations.
prompt,negativePrompt, and diagnostics were byte-for-byte identical.The complete
CompiledImagePromptobject is not identical because it returns the normalized profile. Current in-repository consumers only use the returned profile'sidorname, but external consumers may rely on the exported shape.Steps to reproduce
preferTagsOverNarrativeandpreserveUserPhrasesthrough all four combinations on an otherwise identical normalized profile.compileImagePrompt.prompt,negativePrompt, and diagnostics.Environment
origin/stagingat13e523fa49883a4fe3ee397869ec52b40ebf68ecLogs, screenshots, or video
Not applicable; this is a shared contract/compiler finding.
Additional context
Suggested resolution:
Current runtime risk is effectively zero. The risk is unnecessary public contract surface and an unsafe future cleanup if compatibility is not considered.
Template check
@SpicyMarinara commented on GitHub (Jul 20, 2026):
@SpicyMarinara is taking this. I’ll use the compatibility-safe retirement path: keep legacy persisted input accepted and normalized, explicitly deprecate the no-op fields, and lock provider-visible output with regression coverage.
@SpicyMarinara commented on GitHub (Jul 20, 2026):
Addressed in #3853 and merged into staging.