test: add unit tests for auto-dashboard, auto-recovery, crash-recovery (#526)
46 new tests covering 3 previously untested modules:
- auto-dashboard.test.ts (18 tests): unitVerb, unitPhaseLabel,
describeNextUnit phase mapping, formatAutoElapsed, formatWidgetTokens
- crash-recovery.test.ts (10 tests): writeLock/readCrashLock round-trip,
clearLock, isLockProcessAlive (own PID, dead PID, invalid PIDs),
formatCrashInfo
- auto-recovery.test.ts (18 tests): resolveExpectedArtifactPath for all
unit types, diagnoseExpectedArtifact, buildLoopRemediationSteps,
completed-unit key persistence (persist, load, remove, idempotency)
Total test count: 123 → 169
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>