Audit fixes (consolidated): killing-blow, stranding, STS2-update survival, data-loss, drift guardrail + more #267
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!267
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/audit-consolidated"
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?
Single mergeable branch with the full audit body of work, rebased onto current main and merged past #247. Supersedes the now-conflicting stacked PRs #246 / #248 / #264 / #265 / #266 (please close those in favor of this).
Verified: 250/250 tests pass, and the consolidated build was hot-reloaded into a live game running the current STS2 version —
Patch install: 86 classes patched, 0 failed/skipped, run resumed cleanly.What's included
Attribution correctness
DamageReceivedEntry; recovered viaHook.AfterDamageGiven).unblocked - overkill, zeroing every poison kill); routed through the one canonicalComputeEnemyDamageTotals.RecordEnemyDamagenow gates onReceiver.IsPlayer).Activations(merge consolidated).RecordPowerReceivedamount>0guard (Artifact-zeroed / negative deltas no longer counted).Run integrity
GameStartTimestamping +RecordUpgradephantom-run guard.RemovedSnapshotdata-loss (IncludeFields=true).Resilience (survives the STS2 update that removed
Hook.AfterTurnEnd)Prepare()-based clean skip for the removed hook.Guardrails
AggregateDriftTests(catches omission and double-add on merge/clone — it validated this very merge by confirming #247's new relic fields are all merged)..github/workflows/dotnet-quality.ymlrunning the suite headless (233/233 against the stubs; 11 live-game-only tooltip tests tagged & filtered).Runtime facts recorded in
docs/sts2-runtime-primer.mdandAGENTS.md. Full backlog (attribution-window registry, MP scoping, relic-gate fidelity, etc.) tracked in #249–#263.🤖 Generated with Claude Code