mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8180] fix(game): avoid repeating already-paid check costs in post-roll narration #7600
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#7600
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 @SpicyMarinara on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8180
Originally assigned to: @SpicyMarinara on GitHub.
Owner: @SpicyMarinara (Codex investigation; implementation not started).
The post-roll narration rewrite in
generate.routes.tsasks for a sheet command for every spent resource decided by the results. A ruleset check may already have paid that resource before the rewrite:planRulesetCheckPurchasespends it,rolled.livebecomescheckSpendLive, and the sheet-command pass applies the rewritten commands on top of that already-debited state. If the narrator follows the instruction for the check purchase, that same purchase is charged again.This comes from upstream staging commit
070c20c8f0and was discovered during the unrelated #8153 repair review. It is separate from the combat-style configuration cases in #8176; no Game prompt/source is changed in #8153.Runnable real-function reproduction and output. The local fixture loads the shipped Gravewatch ruleset, starts Resolve at3, invokes the actual check-purchase function to spend3→2, then invokes the actual sheet pass with the rewrite-requested spend command on
checkSpendLive, producing2→1. It also verifies the relevant current generation glue and prompt exist. Scope is those real functions plus source tracing; it does not claim a full HTTP/model-generation reproduction or a paid-provider call.Expected: the rewrite asks for only resource costs not already applied by the check pass, while retaining harm, healing and genuinely additional costs. Add a real generation-route regression with a check purchase and a stubbed rewrite, asserting one payment; preserve a control for an unrelated resource cost.
@SpicyMarinara commented on GitHub (Oct 23, 2026):
Implementation owner: @SpicyMarinara (Codex). I am taking this uncovered issue in a separate staging PR, limited to the post-roll payment instruction and a real generation-route regression. The lorebook and audio PRs remain separate; no combat refactor is planned.
@SpicyMarinara commented on GitHub (Oct 23, 2026):
Implementation handoff: @SpicyMarinara (Codex shell/game regression lane) now owns this fix in
fix/game-postroll-resource-payment-8180, based on current staging01dba2dfa34d7c7e6e564cc65f458073726f2c2d. The earlier investigation lane has handed it over. I will add trusted actual payment receipts to post-roll context and a real generation-route regression, preserving new harm/healing/additional costs and the engine's paid state.