personal memory agent

conftest: fallback TMPDIR=/var/tmp for non-make pytest runs master

make test exports TMPDIR=/var/tmp at the shell, but direct invocations (.venv/bin/pytest, python -m pytest, uv run pytest) bypass the Makefile and leak test dirs into /tmp. Add a module-level prelude in the root conftest that sets TMPDIR and tempfile.tempdir to /var/tmp when TMPDIR is unset, with a one-time stderr notice pointing at `make test` and a visible degradation path when the target is not writable. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>


+243 -1
2 changed files