1.4 KiB
1.4 KiB
Prompt
After the actor/SHM/Parquet integration test exposed a stale SHM triplet, the user requested leak-cleaner machinery in the pytest harness using Tractor’s existing ownership and lifetime patterns.
Response summary
Added creator-scoped SHM leak tracking to pytest without scanning /dev/shm or treating attachments as owned. The fixture cooperates with normal Tractor teardown, verifies POSIX object identity before fallback cleanup, restores process-local token state, and fails after cleaning a leak. Regressions cover the exact pre-actor-registration allocation window, positional creators, and external attachment safety.
Files changed
tests/conftest.py- creator-scoped SHM leak tracking fixturetests/test_shm_cleanup.py- ownership and failure-window regressions.claude/skills/run-tests/test-harness-reference.md- document current-process SHM cleanup behavior
ai/prompt-io/opencode/20260727T215906Z_689df816_prompt_io.raw.md- unedited response record
ai/prompt-io/opencode/20260727T215906Z_689df816_prompt_io.md- provenance metadata and response summary
Human edits
None - generated changes have not been edited by the human.