--- model: gpt-5.6-sol provider: openai service: opencode session: ses_0799212ebffe42arY96czXn89F timestamp: 2026-07-27T21:59:06Z git_ref: 689df816 scope: code substantive: true raw_file: 20260727T215906Z_689df816_prompt_io.raw.md --- ## 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 fixture - `tests/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.