mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7655] [Feature]: Make Narrative Director's Secret Plot prompt editable #4234
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#4234
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 @stonebystone on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7655
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Narrative Director's direction prompt can be edited in the Agent Editor, but the prompt that writes and maintains the Secret Plot arc can't. It's the hard-coded
NARRATIVE_DIRECTOR_SECRET_PLOT_PROMPT(packages/shared/src/constants/agent-prompts.ts).buildDirectorSecretPlotAgent(director-secret-plot-runtime.ts) and the retry route (retry-agents-route.ts) always use it, whatever the agent's own prompt template says.That prompt frames every arc as a mystery ("its mystery, resolution conditions"), and it creates a new arc whenever one completes. That suits adventure and intrigue. It works against character-driven roleplay, where the arc you want is something like "this arrangement turns into a relationship neither of them planned", not a plot to uncover. Today the only choices are taking that framing or turning Secret Plot off.
Proposed solution
Add an editable Secret Plot prompt to the Narrative Director's settings in the Agent Editor, next to the existing Secret Plot toggle and run interval:
settings.secretPlotPromptTemplate.NARRATIVE_DIRECTOR_SECRET_PLOT_PROMPT, so existing setups behave exactly as now.buildDirectorSecretPlotAgentand the retry route.overarchingArcwithdescription,protagonistArc,characterArc,completed) fixed and documented next to the field, so a custom prompt can't break parsing.Alternatives considered
Additional context
This came up while tuning a character-drama roleplay preset. The model kept escalating background details into a conspiracy plot. A hand-written arc kept on track by Secret Plot would be a good anchor against that drift, if its maintenance prompt could be told what kind of story it is.
cc @SpicyMarinara
Template check
@SpicyMarinara commented on GitHub (Oct 16, 2026):
Shipped on staging by #7657. Thank you, @stonebystone! Small polish (help text, an export regression, docs placement) follows in a maintainer follow-up.