mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2183] [Issue]: Lorebook condition and schedule gates drift from legacy when game state is absent #1086
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#1086
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 @Promansis on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2183
Originally assigned to: @Promansis on GitHub.
Summary
The lorebook runtime rescan found a behavior drift in entry activation conditions and schedules. Refactor fails closed when a lorebook entry has game-state conditions or schedule gates but the relevant game-state value is absent; legacy
mainwas permissive when no game state or no matching field was available.Expected behavior
Decide and document whether condition/schedule-gated entries should remain legacy-permissive when game state is unavailable, or whether refactor's fail-closed behavior is intentional. Runtime behavior should then be made consistent across scanner preview, prompt assembly, and active-world-info scan output.
Actual behavior
Refactor
evaluateConditionsreturns false without game state and also returns false when a required field is missing. RefactorevaluateSchedulereturns false when a schedule has gates but the matching game-state field is missing. Legacy returned true when game state was absent and only rejected schedule gates when a current field existed but did not match.Steps to reproduce
mainscanner behavior.Impact area
Environment
refactorLogs, screenshots, or video
Static trace:
src/engine/generation-core/lorebooks/keyword-scanner.tspackages/server/src/services/lorebook/keyword-scanner.tsonmainRegression notes
Legacy
mainbehavior was permissive when game state was absent. No intentional divergence entry was found indocs/REFACTOR_PARITY_PIPELINE.md.Additional context
Parity row:
07-LB-RUNTIME-keyword-gates.Classification from rescan:
Unknown/product decision.Template check