922 B
922 B
git diff HEAD~1..HEAD -- tests/conftest.py tests/test_shm_cleanup.py .claude/skills/run-tests/test-harness-reference.md
Added function-scoped SHM ownership tracking around Tractor’s test-process factory. The fixture records only successful creators, removes ownership records during normal Tractor teardown, verifies POSIX object identity before fallback unlink, restores the token-cache baseline, and fails after cleaning any leak. Regressions reproduce allocation failure before actor lifetime registration and prove external attachments remain untouched.
Verification generated with the patch:
- SHM cleanup regressions: 2 passed
- combined SHM, NativeDB, and history set: 25 passed
- Ruff: passed
git diff --check: passed- final adversarial review: no findings