Backlog burndown: repair-254 data-loss, PatchGuard, hygiene, block-ledger coverage (#254/#261/#257/#262) #269
No reviewers
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!269
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/backlog-burndown"
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?
Burns down the safe/verifiable subset of the audit backlog. Every change is headless-tested; the full suite is 264 passing (
Category!=RequiresLiveGame). Live-only items are deferred (see below), not silently dropped.What landed
repair-254 (Part A) — real data-loss fix. A card's damage + kills were silently wiped on every adopt/Continue rebuild whenever an enemy hit had no
Monsterref: the writer stamped a nullReceiver, and the aggregate-repair pass drops null / non-MONSTER.receivers. The writer now uses theGetEnemyId→"MONSTER.UNKNOWN"fallback (and splits the per-branchCombatEvents.Add), and the repair now recovers a null/emptyReceiveras enemy damage while still excluding genuine self-damage ("PLAYER"fallback keeps it out of theMONSTER.bucket). +2RunTrackerRepairTests.patchguard-261 — visible, throttled patch errors. New
Core/PatchGuard.cswraps a Harmony patch body so a throw never reaches the game loop. It logs at always-on Error level (most patches buried failures in the debug-gatedLogDebug) and rate-limits per call site so a wedged per-frame hook can't floodgodot.log. Converted the 3 template patches (combat-history master hook, run-end funnel, Akabeko prefix). +5PatchGuardTestsincl. a source-scan convention check.hygiene-257 (safe subset) — dead code + tooltip hardening. Deleted 8 unreachable
Record*Gainedmethods,DisarmGremlinHornEnergyAttributionLocked, 4 fully-dead fields (Orichalcum/TheAbacus block bools + both dead Gremlin lists), and the vestigialBlockChunk.Sequence/PendingCombat.NextBlockSequence(#44). AddedStatsTooltip.EscapeBbcodeand applied it at all 7 tooltip sites where a game/data-derived display name flows into BBCode, so a name containing[can't break tooltip rendering. +5 EscapeBbcode tests.testcov-262 — block-ledger conservation (#115) + flake guard (#118). New
RunTracker.RunBlockLedgerForTestseam runs the real gain→absorb→clear pipeline against a throwaway pending combat (saving+restoring live_pendingCombatunder_lock).BlockLedgerConservationTestspins the issue #6 invariant: absorbed = FIFOTotalBlockEffective, cleared-unused = LIFOTotalBlockWasted, each card's gained == effective + wasted, unattributed (relic) chunks mint no phantom aggregate.CombatEndingDamageTestsnow runs in a serializedRunTrackerStatecollection so a future class touching the shared observed-result static can't interleave.Deferred (live-combat verification required — not dropped)
IsPetreceivers away from the offensive branch — no headless fixture for a live petCreature.ICombatState/Creature/CardModel.*Entrytypes can't be constructed headless, so that test can't feed real inputs; rewriting the busiest code path for an infeasible test is the wrong trade. Poison-tick math (#117) is already pinned byComputeEnemyDamageTotals' lethal-overkill test.🤖 Generated with Claude Code