oliver-zehentleitner / maity
probe: tell the operator's own Claude Code transcript apart from the run's (or run the probe as another user)
tsk-nqhqt1d1dmyz Proposed
Follow-up to #2111 (tsk-nnmgvz773z5n), from the second minimum run on c12b672e (2026-11-23).
Problem. The probe's home check compares all of ~/.claude/ and ~/.claude.json before and after the run. It fails on any file written under ~/.claude/projects/ (SESSION WRITTEN) and on any written file it cannot scan (NOT SCANNED). When the operator who starts the probe is itself a Claude Code session running as the same OS user, with the same HOME, that session's own live transcript is written during the run. The run then FAILs on a foreign file and has to be read as INCONCLUSIVE by hand. The transcript can also hold the private lines, because the operator read the private file into it, so the probe might blame the run for a line it never wrote.
Options (to be decided):
- Name the probe's own session folders by their slug (the scratch is
mcp-*, so its sessions would beprojects/-tmp-mcp-*) and treat any otherprojects/path as foreign: reported as "foreign session", leading to INCONCLUSIVE rather than FAIL. - An option
--ignore-path <file>for the operator to name its own transcript, reported as ignored. - Document that the probe must run as a user whose HOME no Claude Code session uses during the run, e.g. a separate user with its own login, and refuse to start when a Claude Code process of the same user is running.
Scope. The probe (cli/tests/claude_sandbox_probe.py), its tests and the KtW entry 92a0cb54 only. No change to capabilities.CHECKED, and no hub change.