piker/ai/prompt-io/opencode/20260727T215906Z_689df816_p...

922 B
Raw Blame History

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 Tractors 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