SD-242

[poa-phases-intent] Test Suite Hardening PoA — formal phase intent. 5 phases, 10 sub-phases. 1a clearAllMocks→resetAllMocks migration, 44 instances (Janitor). 1b Object.defineProperty try/finally wrapping, 16+2 instances (Janitor). 2a Audit 25 status-code-only assertions in bout-engine-validate.test.ts (Watchdog). 2b Audit bout-engine-execute + bout-engine-behavior assertions (Watchdog). 3a Audit remaining ~142 status-code-only assertions across API test files (Watchdog). 3b Audit 122 bare .toHaveBeenCalled() assertions (Watchdog). 4a Write tests for 3 high-risk untested files: refusal-detection.ts, anomaly.ts, copy-edge.ts (Watchdog + Architect). 4b Expand coverage gate from 11 to 20+ files in vitest.config.ts (Architect). 5 Cross-model evaluation after each phase (Weaver, continuous). Dependency chain: 1a∥1b → 2a→2b → 3a→3b. 4a∥4b can begin after Phase 1. Phase 5 runs after each. Execution gated on AnotherPair copy tuning completion. Full plan: docs/internal/weaver/poa-test-suite-hardening-2026-02-28.md.

Planned — gated on AnotherPair

← all decisions