Context helper intermittently aborts in libuv during Windows teardown
What happened
On Windows, the context helper printed a complete successful result and then aborted in libuv during process teardown, causing automation to receive exit 127 despite valid output.
Environment
- Windows
- Node v24.18.0
- Impeccable skill v4.0.0-alpha.10
- Command:
node C:/Users/ssari/.agents/skills/impeccable/scripts/context.mjs --target packages/jerv-pi
Evidence
The helper emitted RESOLVED_CONTEXT, MANUAL_DETECTOR_REQUIRED, and the remaining normal guidance, then stderr ended with:
Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c, line 94
The process exited 127. A no-target invocation had returned normally. A later retry of the same targeted invocation exited 0, so the failure appears timing-dependent rather than deterministic.
Expected
After successful context output, the helper should complete teardown exactly once and exit 0. A Windows/Node 24 smoke check should exercise the targeted path through update-check completion and assert clean exit after stdout is fully written.
Notes
This was first tracked downstream as mutmutco/MMI-Hub#4818, but the helper is owned by this repository rather than MMI-Hub.