oliver-zehentleitner / maity
runner + docs: agy's /tmp scratch in gc (or say it isn't); runner.md and scratch.py still say agy gets none
tsk-2nb4jejapg1g Open
Audit round 3 (tsk-hgnbapyw7hnh), read at 588f911b. Kind: docs drift / debt.
What is wrong
cli/context/runner.md:4745-4750says "Only Claude Code and Codex get one; agy's sandbox is not shown to write there". The code gives agy a scratch:cli/src/maity/runner/workspace.py:54(SCRATCH_HARNESSESincludesantigravity) and:59(TMP_SCRATCH_HARNESSES); runner.md:666 anddocs/runners.md:263agree with the code.cli/src/maity/runner/scratch.py:1-7(module docstring) gives only the beside-clone path and says gc removes "what no placement of the runner names";docs/runners.md:274saysgc --scratchlists "every scratch whose placement is no longer active". Butrunner/operate.py:357-398(_collect_scratch) walks only<workspaces>/<project>/.scratch/. An agy leaf under/tmp/maity-scratch-<uid>/is removed only by the supervisor's close path (runner/supervisor.py:515-560), and only while its leaf name is still inscratch_names; gc never sees it.
Proposal: fix runner.md:4745 and the scratch.py docstring; then either let gc list unrecorded leaves under maity-scratch-<uid> (an orphan is any leaf not in scratch_names), or say in docs/runners.md:274 that gc covers only beside-clone scratches.
Effort / risk: S for the docs, M for the gc part. Low risk.