[GH-ISSUE #6599] [Feature]: Priority and timing for decision statements (priority:high/low, every:N) #3694

Closed
opened 2026-10-21 06:06:15 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Sep 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6599

Originally assigned to: @kolacheee on GitHub.

What we want

Two more modifiers for decision statements, written after the statement the same way as sticky: and cooldown: (#6582):

{{#if decision:"The latest message starts a fight" priority:high}}...{{/if}}
{{#if decision:"The weather changes in the latest message" every:3}}...{{/if}}

Priority

When a turn has more decision statements than Decision statements per turn allows, priority decides which are asked.

  • priority:high statements are asked first, priority:low statements last. A statement with no priority is medium.
  • Within the same priority, the existing source order still applies.
  • Past the limit, the lowest-priority statements are the ones dropped (read as no, and listed in Peek Prompt).
  • A statement written in several places uses the highest priority given anywhere.

Timing

every:N asks a statement only every N turns.

  • It is asked the first turn it is reached, then again N turns later.
  • Between checks it reads as no, is not asked, and takes no statement slot.
  • Turns count the same way as sticky and cooldown: each new message the Decision model reads. A regeneration or swipe is the same turn and reads the same answer.
  • Sticky and cooldown still hold a statement's answer; timing only decides when an unheld statement is asked.
  • A statement written in several places uses the smallest every given anywhere.

A lorebook entry's Decision field takes no modifiers; its own Sticky and Cooldown already cover timing.

Why

Many decision statements, especially ones that gate agents or scene-level instructions, do not need checking every turn, and authors know which statements matter most when a busy preset goes over the limit.

Originally created by @kolacheee on GitHub (Sep 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6599 Originally assigned to: @kolacheee on GitHub. ## What we want Two more modifiers for decision statements, written after the statement the same way as `sticky:` and `cooldown:` (#6582): ``` {{#if decision:"The latest message starts a fight" priority:high}}...{{/if}} {{#if decision:"The weather changes in the latest message" every:3}}...{{/if}} ``` ### Priority When a turn has more decision statements than **Decision statements per turn** allows, priority decides which are asked. - `priority:high` statements are asked first, `priority:low` statements last. A statement with no priority is medium. - Within the same priority, the existing source order still applies. - Past the limit, the lowest-priority statements are the ones dropped (read as no, and listed in Peek Prompt). - A statement written in several places uses the highest priority given anywhere. ### Timing `every:N` asks a statement only every N turns. - It is asked the first turn it is reached, then again N turns later. - Between checks it reads as no, is not asked, and takes no statement slot. - Turns count the same way as sticky and cooldown: each new message the Decision model reads. A regeneration or swipe is the same turn and reads the same answer. - Sticky and cooldown still hold a statement's answer; timing only decides when an unheld statement is asked. - A statement written in several places uses the smallest `every` given anywhere. A lorebook entry's **Decision** field takes no modifiers; its own Sticky and Cooldown already cover timing. ## Why Many decision statements, especially ones that gate agents or scene-level instructions, do not need checking every turn, and authors know which statements matter most when a busy preset goes over the limit.
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#3694
No description provided.