rdmsm4x-changelog-20260825-2230-ak-resolver-flake
AK resolver flake audit
One-line summary: fixed an existing stalled-stream test fixture so the timeout cleanup cannot later close an already-canceled controller during the expanded full suite.
Scope
- Host:
rdmsm4x - Project:
amagansett-app - Mode: Prototype
- Isolated worktree only:
/Users/richh/dev/_handoff/codex-out/amagansett-ak-resolver-flake-20260825 - Canonical checkout and active integration worktree were not edited.
Exact files touched
tests/unit/ak-resolver.test.ts— retain the delayed-close timer and clear it when the stream is canceled.report.md— reproducibility and root-cause handoff.
Commands and verification
- Created worktree from
95d724cab0cfe6a802d6393e399729a502e749b6on branchcodex/amagansett-ak-resolver-flake-20260825. - Installed locked dependencies with
npm ci --ignore-scripts. - Baseline
f05b771390ff44c28ed879850c8b12d341ea186e: 50/50 focused resolver runs passed; 30/30 full-suite runs passed. - Investigated
95d724c: focused resolver runs passed, while full suite and resolver+Forst-manifest run reproduced Vitest's unhandledERR_INVALID_STATEfrom the fixture timer. - After fix: 50/50 focused resolver runs passed; 30/30 full-suite runs passed (11 files, 69 tests per run, no unhandled errors).
npm run typecheckpassed.- AK edge tests passed: 7/7.
npm run types:ak-workerpassed; existing ASSETS-only worker types remained valid.npm run build:akpassed.git diff --checkpassed.
Commit and rollback
- Commit: see
git rev-parse HEADin the isolated worktree (the branch iscodex/amagansett-ak-resolver-flake-20260825). - Backup: original source remains recoverable at base commit
95d724cab0cfe6a802d6393e399729a502e749b6; no deployed state changed. - Undo: omit the isolated branch/worktree from integration, or revert the single test-file change after cherry-pick. Do not alter canonical checkout.
Outstanding owner action
Lead agent should review and cherry-pick the isolated test/report commit only after the active Forst/API writer worktrees are no longer being edited. No deployment is requested by this audit.