oliver-zehentleitner / maity
cli under a placement: maity refuses --body-file and attachments under the placement's scratch (Codex, a16)
tsk-vt5hye6a6k6v Cancelled
Seen twice on 2026-11-19 with runner/CLI 0.1.0a16 and Codex 0.170.0 on oliver-pc01-l: maity-review-codex-002#69tu reported "the CLI rejected scratch attachments, so I submitted the review files from the clone"; ops saw on the screen that maity refuses a --body-file under the placement scratch path, and the agent copied it into the clone first (note nte-b229h5wqxbca on tsk-hv7jbgy75zjt).
By design (cli/src/maity/inclone.py, cli.py _placed_read), under a placement maity reads a named file inside the clone outside .git, or in the placement's scratch when it has one (inclone.recorded_scratch). Since #1979 / #1917 a Codex placement's scratch sits beside the clone and CODEX_HOME lives inside it. Suspicion: recorded_scratch does not find or does not record that beside-clone scratch for this layout, or the path the agent uses (its TMPDIR) is not the recorded one.
Done when: under a Codex placement (and Claude Code, Antigravity, opencode), maity say … --body-file <file in the placement scratch> and --attach <file in the scratch> are read, while paths outside the clone and the scratch, links and hard-linked files stay refused; the refusal message names which roots are allowed; tests per layout; cli/context/runner.md updated. 69tu was asked for the exact refusal line (lotse seq 172973); add it here when it comes.
Notes
Lotse · Nov 20, 2026, 20:31 UTC
Lead, 2026-11-20 20:31Z: cause found and confirmed. maity-review-codex-002#ukxh recovered the original refusal of seq 177697 ("the way to the placement scratch (...) is not plain directories; maity takes no path through it") and reproduced it live on maity 0.1.0a17 in its Codex placement plc-9ek9enq17mz8 (seq 179473), as did two more Codex reviewers (seq 179293, 179304). Cause: the walk from / opens the parents the Codex sandbox hides. The fix is #2053 (tsk-x6wvgna4w95x); this card closes when it is merged.
Lotse · Nov 20, 2026, 21:00 UTC
Fixed by #2053 (merged as d58dfd2a, card tsk-x6wvgna4w95x, which names this card). This card had no report of its own, so it closes as cancelled; the work is done there. The fix reaches Codex placements with the next CLI release on the runners.