[P2] Structural guardrails: per-combat state on PendingCombat, named history windows, RunTracker decomposition #263
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens#263
Loading…
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?
Priority: P2. From the 2026-07-02 uncapped audit pass. Standing architecture guardrails — the structural changes that make the recurring bug classes hard to re-introduce.
PendingCombatsonew PendingCombat()is the reset. The hand-maintained reset list inResetCombatContextStatehas already drifted (Bone Flute omission #10, fixed in PR #248;_pendingRelicHealsnever reset #145). Migrating each_pendingXxxflag onto the buffer removes the whole "forgot to reset" class. (#145, #146)==,<= +1,>=) are copy-pasted as window-width guards. Replace with aHistoryWindowenum + predicate so width is explicit, not folklore. (#147)RunTrackerbehind the existing static facade — identity map, block ledger, poison ledger, replay tracker, effect windows, lifecycle as cohesive units. Hot-reload-safe because the statics die per reload. Do it incrementally, each extraction pinned by existing tests. (#146)BuildTimeZoneIdplumbing. Add aContractVersionhandshake + a reflection parity test. (#124, #87)_pendingCombat. Gate on active-combat + a confirmation. (#122)Findings: #145, #147, #146, #124, #87, #122.
Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.