mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6582] [Issue]: Decision statements that cannot affect the turn use up the per-turn limit, and statements in preset choice options always read as no #3690
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#3690
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 @kolacheee on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6582
Originally assigned to: @kolacheee on GitHub.
What happens
Decision statements per turn (32 by default) caps how many decision statements are asked each turn. Past it, the rest read as no. The planner that fills those slots scans every stored text that could hold a statement, not the prompt the turn will actually build. So statements that cannot affect the turn take slots from ones that can.
Confirmed by running
collectTurnDecisionTextsandplanPromptDecisions(packages/server/src/services/decision/prompt-decisions.ts) with a limit of 2:assembler.ts); the planner does not.{{#if decision}}blocks can use up the limit on entries that never appear.{{#if char == "Dottore" && decision:"..."}}, the statement is asked while the character is Mira.Bug: a statement inside a preset choice option always reads as no
Choice options are stored as JSON text, and the planner walks that raw text. A statement inside an option is therefore planned under a mangled key:
The assembler runs choice option text through the macro engine with the clean key (
assembler.ts, where preset variables are resolved), so the answer is never found. The block reads as no every turn, and the mangled statement still takes a slot.What we want
docs/prompts/presets.mdanddocs/prompts/preset-variables.md, with the Conditional Prompts caching note strengthened to match.Sticky and cooldown for decision statements
Authors can hold a statement's answer instead of asking it every turn, written after the statement:
decision_choice:, sticky keeps the chosen option and cooldown reads every comparison as no.Not in this issue
Author-set priority and timing (checked every N turns) for decision statements are a follow-up.