mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1249] [Issue]: Refactor lorebook activation gates ignore game state and fail open #610
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#610
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 (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1249
Originally assigned to: @cha1latte on GitHub.
Summary
Lorebook activation conditions and schedules can fail open during prompt assembly because lorebook scanning is called without visible game state, and the scanner treats missing game state as "condition passed."
Expected behavior
Lorebook entries with game-state activation gates should only activate when the current visible game state satisfies those gates. If game state is unavailable for a gated entry, the behavior should be explicit and tested rather than silently passing the condition.
Actual behavior
Prompt assembly calls lorebook scanning without game state. In the scanner, missing game state causes activation conditions and schedules to pass.
Steps to reproduce
refactorbranch, create or attach a lorebook entry with a game-state activation gate, such as a location/time/weather condition.Impact area
Environment
refactor, identified during 2026-05-26 failpath auditLogs, screenshots, or video
Relevant code paths:
Audit finding:
Regression notes
Found by source inspection during the 2026-05-26 failpath audit. Needs a focused lorebook activation regression test.
Additional context
This can leak conditional lore into prompts in the wrong location/time/weather/state, which affects generation quality and mode consistency.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: