oliver-zehentleitner / maity

runner: interactive Antigravity stalls on its file-change review

Sign in to report

tsk-x5s8p0g93ay0 Done An agent

Interactive Antigravity placements stall (maity-ops-team#3yc2, seq 153291): in agy -i, every file write opens agy's file-change review screen, which waits for a person. The runner's agy settings allow only command(maity) and two read_url, no write approval. The turn never ends, so maity events are never handled. Print mode (agy -c -p, supervised) doesn't stop there.

Fix in the runner adapter, one of two:

  • (a) allow writes inside the clone in the agy settings the runner writes;
  • (b) don't offer interactive mode for antigravity (refuse it at placement, like other unsupported combinations).

Lead's preference: (a) if agy can scope writes to the clone, else (b). Tests for the written settings.

Notes

  1. Lotse · Nov 17, 2026, 17:43 UTC

    Second cause, supervised mode (ur6p, seq 153644): a resumed Antigravity conversation carries a background maity wait started in an earlier turn. agy reports "root agent idle; waiting for 1 background task(s) to finish", the turn never ends, the supervisor never starts a fresh turn, and the agent never answers. Seen on agy-002 after switching from interactive to supervised. Fix direction: the runner starts supervised agy turns so no background task survives a turn, or ends leftover maity wait children before resuming.

    Side finding, both agy placements: in headless -p, read_file/write_file permission requests are auto-denied ("jetski: no output produced … auto-denied"). Covered by the same settings fix as the interactive case.

  2. Lotse · Nov 17, 2026, 22:13 UTC

    #1939 description update for head 0ebdc553 (ur6p, after the review lead's venv decision; the dev venv is now tsk-z66n5zcyqvk6). These lines replace the description's summary of what is in:

    • agy runs in both modes (interactive with accept-edits, and supervised). Its file tools get the clone as a bare directory (agy 1.5.10 takes no glob).
    • A supervised turn runs in its own process group, is bound to the time limit and is reaped, also when the turn never ends. A zombie counts as dead.
    • In a signed-in test, writes stayed in the clone. git push to the forge and the interactive mode are not verified.
    • No dev venv in #1939 any more; that is tsk-z66n5zcyqvk6.
  3. An agent · Nov 24, 2026, 13:06 UTC

    Deferred from PR #1939 (lead's ruling on pre-review A2498, 2026-11-24): the clone-wide agy write allow.

    #1939 first gave agy read_file and write_file on the whole clone as a bare directory. That made the clone, .git included, agy's sandbox writable region, with write_file denies on .git/maity and GIT_PROTECTED inside it, plus empty placeholders for config.worktree and objects/info/alternates so those denies had a file to cover. The aim was that a headless -p run would not deny its own edits, and that git fetch/commit could write .git.

    The lead kept main's contract instead (commit 26a4db40, #2147): no write_file allow, the clone's .git read-only, and the agent working in a scratch clone. A follow-up card for the write allow needs first:

    • a live, signed-in agy session that shows the denies on the credential and on the paths that make git run a program still hold inside a writable mount;
    • then the allow, the placeholders, and tests that assert both the allow and the denies.

    The headless edit-deny fault stays open until then. The code removed in #1939 is in commit 0ebdc553 (AGY_GIT_PLACEHOLDERS, agy_git_placeholders, and the allow line in antigravity_settings).

  4. An agent · Nov 24, 2026, 13:17 UTC

    P3s from #1939 for a follow-up card (non-blocking).

    1. From A2503 (9bnr): Loop.turn checks code == EXIT_TURN against the raw return code (26). A harness that itself exited with status 26 would be read as a timed-out turn, not a failed exit. A fix could have _run_reaped report the timeout apart from the exit code, for example as a flag beside it.
    2. From the author, noted at the push: the wait runs with --keep-cursor. If a timed-out turn never acknowledged its event, the wait returns that same event at once, and Loop.main counts it as no progress and runs the again turn. So that event is retried, capped by the crash count; before #1939 the retry had no cap. To yield to the next event even then, main() would have to treat an event handed back after a time-limit end differently.