diff --git a/docs/CODE_AUDIT_2026-06-09.md b/docs/CODE_AUDIT_2026-06-09.md index bf77252..9e6fa42 100644 --- a/docs/CODE_AUDIT_2026-06-09.md +++ b/docs/CODE_AUDIT_2026-06-09.md @@ -6,6 +6,22 @@ _Generated 2026-06-09 from an automated multi-agent audit (20 specialist analyze Severity shown as `severity` or `analyst→verifier-corrected` where the independent check adjusted it. +--- + +## Resolution status (branch `fix/audit-2026-06-09`) + +Most confirmed accuracy/data defects and the high-impact UX traps are **fixed** on this branch (8 commits, +1716/−125, full test suite green, production build passes). Highlights of what landed: + +- **PF2e math:** AC level+proficiency scaling, potency-not-on-damage, Multiple Attack Penalty, striking runes, level-1 slot counts, Refocus = 1 point. +- **Conditions:** per-statistic PF2e penalties, 5e Exhaustion levels, Slowed/Fatigued correctness, Frightened end-of-turn decay. +- **Spell data:** Wish backlash excluded, Magic Missile dice, multi-save spells. +- **Builder:** racial ASI + background/trait skill proficiencies applied; canonical skill lists/counts; **PF2e template softlock fixed** (verified in-app); manual ability mode; array-swap. +- **Monsters:** all speeds + saves/skills rendered; passive Perception computed (fixes the 7 wrong ones). +- **Spellcasting:** slot-level picker (warlocks can cast; upcasting works). PF2e compendium de-duplicated. Drow ASI corrected. +- **Safety:** confirm-before-delete across world content; dice clear scoped to active campaign; sessionLog in backup + cascade; 404 route; NumberField no longer snaps to min while typing; massive-damage / death-at-0 reminders in combat. + +**Deferred** (larger net-new work, noted per finding): PF2e ancestry/background/class attribute-boost generator; subclass/class-feature/feat mechanical effects; PF2e Drained HP reduction; player WebSocket-reconnect seat persistence; concentration flag on combatants; level-field auto-recompute; delay/ready action; net-new features (D&D Beyond import, loot builder, XP tracking, real multiclass model). The `--app-faint` contrast tweak was left to the designer. + ## 🎲 Calculation accuracy (23) #### [MEDIUM→HIGH] PF2e AC omits the level-scaling armor proficiency bonus