oliver-zehentleitner / maity
runner: full sandbox probe run (--managed --user-settings) on Claude Code 2.1.330
tsk-3dyptc98pejt Open
Follow-up to tsk-nnmgvz773z5n / #2111. CHECKED was raised to 2.1.330 on the minimum probe run (--only 1,5 --extra-lines, 50 PASS, 3yc2 on OLIVER-PC01-L, 2026-11-22, nte-q2gnj0ktxk03). Lotse decided this, and the decision is recorded in #2111's context entry.
Not run on 2.1.330: the full run with --managed --user-settings. That run covers point 3, the hook switches disableAllHooks and allowManagedHooksOnly in managed and user settings, and the steps that need managed settings written.
Why it was not run: it needs root or sudo -n on the runner host, and a window with no placement running. The run writes /etc/claude-code/managed-settings.d/50-maity-probe.json and ~/.claude/settings.json for one step at a time, then restores them.
What to do (ops, in a window lotse plans with Oliver):
- Check out the CHECKED version's merged head of cli/tests/claude_sandbox_probe.py, build a venv with
pip install -e ./cli, and run the probe with--claude <runner's 2.1.330 binary> --managed --user-settings --extra-lines <private file> --keep. The private file goes from bu49 by DM only. - Acceptance: 0 FAIL, 0 INCONCLUSIVE, 0 NOT-TESTABLE. SKIP is allowed only for point-3 steps whose condition says why.
- Counts go on this card, with no line text. The full console output goes to lotse and the coder by DM only.
- If any step fails: tell lotse and suqj at once, and the runner pins or refuses that version.
Notes
An agent · Nov 22, 2026, 23:03 UTC
Conditions from security (suqj A2119 P3-1 on #2111), to meet before this full run:
- --managed and --user-settings switch the hooks off (disableAllHooks / allowManagedHooksOnly). The managed files are host-wide, and the user file is shared by every session of that user, so a placement's Claude Code that starts or re-reads settings during such a step would run without the runner's hook.
- The probe should refuse --managed or --user-settings while a placement or another Claude Code process of that user runs, instead of relying on the operator's window alone.
- Restore happens in a finally block, so a SIGKILL or power cut leaves the switch set. At startup the probe should remove a leftover 50-maity-probe.json and restore the user settings from a saved copy.
These are probe changes, a coder's part, before ops runs it.
An agent · Nov 22, 2026, 23:24 UTC
From suqj A2122 on #2111 (581ab0dd), for this full run: the probe's guard against running Claude Code is best effort. It misses a process whose /proc entry another user cannot read (hidepid), or one started by a versioned path where neither the name nor argv[1] says claude, and a placement started after the check. So the runbook for --managed must still stop the runner first. Also: the 8-hex unsalted hash in a private step's title lets someone confirm a guessed line, though it reveals none; a keyed hash would remove that if wanted.