Personal fork of prime agent. Mirror of: https://mnemosyne.sigilzero.dev/sigilzero/prime-agent

fix(daemon): keep tests off the product daemon socket

A too-deep TMPDIR fell back to /tmp/prime-agent-rust-<uid>, the product default, so a test sandbox with a long worker path could bind or connect to the user's live daemon. differential_cli's TS corpus includes `shutdown --force`, which then stopped the live session. Namespace the rejected TMPDIR into a hashed /tmp fallback so distinct deep roots no longer alias the product socket. The daemon, the installed launcher, the npm bridge, and their parity fixtures all reserve the same longest-worker endpoint and hash the same TMPDIR, so every path resolves to the same directory on Linux and macOS. Require PA_TS_BINARY to exist before running the differential corpus, and scrub inherited agent and daemon environment from its fixtures. A missing reference binary now skips instead of running the corpus against ambient state. The path tests pin the hashed fallback and its separation from the default.


Author sigilzero.dev
Date Commit Parent 1528e18e
+137 -63
8 changed files
+137 -63
8 changed files