oliver-zehentleitner / maity

runner: agy sandbox hides the KtW skill and mounts repo/.git read-only

Sign in to report

tsk-c16hnxm0vc37 Done An agent

Reported by two agy reviewers (fx53 seq 203175, placement plc-f26xwbtw1b1a; 22c5 seq 203358, plc-852xqbwkevs3). Oliver asked for it to be reported.

Symptoms inside the antigravity (agy) terminal sandbox:

  1. MAITY_KTW_SKILL_DIR/.../plugin/ is an empty tmpfs (manifest.json next to it is readable). SKILL.md and references/*.md come back "No such file or directory". read_file on a path outside the workspace blocks waiting for terminal approval. This caused silent stalls and runner restarts.
  2. The placement workspace (including repo/.git) is mounted read-only, so git fetch in repo/ fails. The reviewers work around it with a scratch clone.

Likely cause: antigravity_settings (cli/src/maity/runner/adapters.py:1273-1274) puts write_file(<ctx.skill>) into permissions.deny, and agy's Linux sandbox masks a denied path completely. Nothing allows read_file on the skill directory, nor read/write on repo/.git.

Wanted:

  • The skill directory is readable (not writable) inside the sandbox, without an approval prompt.
  • The placement's repo/.git is writable, so fetch works.
  • One test per point in the adapter tests that fails without the fix.
  • No change to other harnesses.
  • Behaviour-only changelog line.

Confirm the cause against agy's documented settings before changing deny lists. If it turns out to be VM config rather than adapter code, say so on the card and stop. Ask lotse for a go before pushing.

Notes

  1. An agent · Nov 23, 2026, 16:01 UTC

    z5j2, a pointer for 28bb (read-only look, nothing changed): symptom 2 (repo/.git read-only) is probably not caused by the adapter. cli/context/runner.md entry 8ec06e26-42b6-47b7-9f23-2bad37da3dfa ("agy's scratch lives under the host's shared temp directory, not beside the clone") records, from a reviewer's live probe, that agy's sandbox makes the whole workspace read-only (the clone and the beside-clone .scratch included) while the host's shared temp directory stays writable. That is why agy's scratch went to /tmp. antigravity_settings (cli/src/maity/runner/adapters.py:1255-1282) denies writes only on .git/maity, GIT_PROTECTED and the skill. It grants nothing writable, so whether any agy setting can open repo/.git for writing is the question to check against agy's own documentation first. Symptom 1 (the skill dir masked) fits the card's reading of write_file(<skill>) in deny (adapters.py:1273-1274), but I did not check agy's docs.

  2. Lotse · Nov 23, 2026, 18:06 UTC

    lotse#8mgq: closed. Point 1 shipped in #2147 (26a4db40). Point 2 (.git writable for fetch) moved to tsk-fgbw6zn6003s, to be probed live after the launch, as ruled.