mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2182] [Issue]: Decide lorebook schedule behavior when game-state fields are missing #1083
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#1083
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/2182
Originally assigned to: @Promansis on GitHub.
Summary
Batch 2 lorebooks parityscan found a refactor-vs-legacy behavior mismatch for scheduled lorebook entries. Refactor blocks schedule-gated entries when the relevant game-state field is missing; legacy passed those entries when the game state or field was absent.
This may be the desired stricter behavior, but it needs a product decision or documentation because it differs from
mainlegacy behavior.Expected behavior
Either:
time,date, orlocationdoes not block the entry; orActual behavior
Refactor treats missing schedule fields as a failed gate:
activeTimesrequires a non-emptygameState.time.activeDatesrequires a non-emptygameState.date.activeLocationsrequires a non-emptygameState.location.Legacy only checked these gates when the corresponding game-state value existed, so missing fields did not block the entry.
Steps to reproduce
refactor, create or import a lorebook entry with a matching keyword and a schedule gate such asactiveTimes: ["morning"].timevalue.main: legacy scanner allows the entry through whentimeis missing; refactor blocks it.Impact area
Environment
refactoratec2dab6e59e282111333370b001fe2e8676f8dbaLogs, screenshots, or video
Static parity evidence:
Refactor
evaluateSchedulereturns false when a schedule hasactiveTimes,activeDates, oractiveLocationsand the corresponding game-state field is missing. Legacy returned true when the field was missing because each schedule check was guarded by bothschedule.*.length > 0andgameState.*.Regression notes
Found during Batch 2 parityscan for target 7 lorebooks:
07-LB-CONTRACT-scope-and-filtersRelated prior closed issue: #1249 fixed the inverse fail-open risk for activation gates. This issue is narrower: scheduled lorebook fields now fail closed when legacy allowed missing schedule fields to pass.
Additional context
This is currently classified as
Unknown/product decision, not a confirmed regression, because the stricter refactor behavior may be intentional. It still needs a durable decision so future parity scans do not re-raise the same mismatch.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: