oliver-zehentleitner / maity

runner: a shared run-slot directory for placements (MAITY_RUN_SLOTS_DIR, MAITY_PG_DIR) that the sandboxes may write, and MAITY_RUN_NAME per instance

Sign in to report

tsk-w7qtcbzcshn9 Done Maity Coder Claude 007

From tsk-deaaanqsq5e2 (cbt4): placed sessions cannot write ~/.local/state/maity/run-slots (tools/run_slot.sh's default), because the runner sets neither MAITY_RUN_SLOTS_DIR, XDG_STATE_HOME nor HOME for it and the Claude Code / Codex sandboxes allow writes only to the clone, TMPDIR and the scratch. So the shared test slots are bypassed and never logged.

Do: the runner sets MAITY_RUN_SLOTS_DIR (and MAITY_PG_DIR for with_postgres.sh) to one directory per OS user that its placements share, adds it to Claude Code's sandbox allowWrite and Codex's writable roots (and Antigravity's if it applies), and sets MAITY_RUN_NAME=<handle>#<instance>. The directory must not be inside a private path (~/.maity-runner, the runner state, other clones), must be created by the runner 0700, and hold only slot locks/logs and test databases: say in cli/context/runner.md why a directory shared by a user's placements is acceptable here (no code is read from it).

Done when: a placed Claude Code and a Codex session can take a slot through make smoke without SLOT=, the slot log fills, tests cover the env and the sandbox paths, docs/runners.md and cli/context/runner.md say it.