mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5976] [MERGED] fix(lorebook): keep location-budget drops out of later scans #7009
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#7009
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5976
Author: @SpicyMarinara
Created: 9/8/2026
Status: ✅ Merged
Merged: 9/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/lorebook-location-budget-5943📝 Commits (6)
1d8f84echore: begin lorebook location budget fix for #59430843eb4fix(lorebook): preserve location budget through recursive scansb68f47bMerge remote-tracking branch 'origin/staging' into fix/lorebook-location-budget-5943c040215Merge remote-tracking branch 'origin/staging' into fix/lorebook-location-budget-59436bc286cMerge remote-tracking branch 'origin/staging' into fix/lorebook-location-budget-59434724b4cdocs: keep the lore budget fix beside related game fixes📊 Changes
3 files changed (+55 additions, -7 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/services/lorebook/index.ts(+8 -7)📝
scripts/regressions/experience-lore-entries.regression.ts(+46 -0)📄 Description
Linked issue
Closes #5943
Why this change
A forced constant entry dropped by the location budget is reintroduced by the ordinary or recursive scan. Its debug record then says it was skipped even though the prompt includes it.
What changed
Use the existing skipped-entry diagnostics to exclude location-budget drops from the ordinary and recursive scan inputs. Ambient and recursive lore still activates normally. Add a regression to the existing real-storage experience-lore suite and an Unreleased changelog entry.
Validation
Automated:
pnpm check,pnpm regression:prompt, andnode scripts/run-regressions.mjs --filter experience-lore-entriespassed. The new regression failed on unchanged staging because the rejected constant entry was present; it passes with both ordinary and recursive scans after the fix.pnpm checkDocs and release impact
Unreleased changelog entry; no new setting or version change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.