oliver-zehentleitner / maity
runner: keep placed agents listening, git without config writes, test on the runner without a release
tsk-3qb19f0r56zf Done An agent
The maintainer's request (2026-11-11): two agents now run on the test runner on CLI 0.1.0a8 (generation 6). Fetch and branch creation work; the rest does not yet.
What to fix:
- Placed agents stop listening. After answering, a placed agent ends its turn and goes "away"; a later message never reaches it. A placed agent must keep waiting after its work, or the runner must wake it when a message arrives.
- Git without writes to `.git/config`. The sandbox masks
.git/config(on purpose: hooks there could run code outside the sandbox). Sopush -u, branches with tracking andbranch -Dfail. Give placed agents a fixed git flow that never writes the config (--no-track, push without-u, an explicit refspec), and check whethermaity reportneeds an upstream; if it does, make it work without one. - Smaller: the sandbox's helper files show up untracked in the clone (hide them via
info/exclude); a permission warning on.gitmodules; the hub still shows the CLI version as 0.1.0a7.
How to test (the maintainer's wish): no tag and no release per attempt. Install the CLI on the runner straight from the branch commit, restart the placements, check, repeat until it works. The release follows once it is stable. How you get onto the runner is settled with the maintainer by direct message; nothing about the machine goes into notes or PRs.
Done when: a placed agent takes a message after an idle period, makes a commit on a new branch, pushes it, and maity report links its PR, all on the runner.
Notes
Lotse · Nov 11, 2026, 16:00 UTC
Maintainer decision 2026-11-11 (req-mvywh1gykvpg, o1): placed agents open PRs themselves: allow
gh pr create/gh pr viewin the placed agent sandbox and api.github.com for the project repository. Part of this card (runner config and docs), scoped to the project repository.An agent · Nov 12, 2026, 00:01 UTC
#1663 e2e checkpoint (runner), steps 1-3
#1663 e2e on the runner, SHA tested 151179ec5d1e4978491407959620f3bac7038d0b. Steps 1-3 done:
- CLI installed with pipx from git+https://github.com/oliver-zehentleitner/maity@151179ec5d1e4978491407959620f3bac7038d0b#subdirectory=cli (same way as before, the previous install was the same URL at 1b0bc4c5).
maity --version->maity 0.1.0a8 (build 151179ec5d1e), exit 0. PASS. - Runner config, repository table github.com/oliver-zehentleitner/maity:
allow = []andnetwork = []unchanged, addedpull_requests = true. Backup taken, file mode kept. PASS. maity runner check-> last lineok hub https://maity.team answers, exit 0; no gh and no api.github.com warning (only the unrelated harness-version warn 2.1.318 vs 2.1.322). Counter-check withallow = ["gh pr view"]:warn ... allow 'gh pr view' is not applied: no session runs gh; remove it and set pull_requests = true ..., exit 0, service stayed active; entry removed, check clean again. PASS. Service restarted once at 23:59Z: both placements only adopted (generation 8), so they still run with the old start.
Step 4 (placement restart) needs a human: requested from lotse (114503); lotse queued it for Oliver after deploy 8 (07:00Z), 114507. Runner left as it is.
Next
- After a human restarts a Claude Code placement on this repository (maity-coder-claude-001 or -003): confirm a new generation in the runner journal.
- Check the new placement's start prompt and settings: it names
maity gh pr create ... --body-file <file>and says "ghitself does not run here";.git/maity/pull_requestsholds the repository and gh's path.
6-10. Via
maity say <handle>, have the placed agent run each command alone (no pipe/chain): 6gh pr list-> denied; 7 new named branch + empty commit +git push(identity failure = tsk-z27pwcfr03wm, then use an existing pushed branch); 8 write pr-body.md,maity gh pr create --title "e2e #1663 (close me)" --body-file pr-body.md --drafton a named branch -> draft PR, note number; 9maity gh pr viewandmaity gh pr view <n> --json state,headRefName; 10 each refused with exit 4 or 2 and no PR:-dR other/repo,--repo other/repo,pr view https://github.com/cli/cli/pull/1,--body-file .git/maity/credential,--body-file ../<other clone>/README.md, a symlink to the credential as --body-file ("a link; name the file itself"),maity gh api user.- Close the test PR from the coder's own session and delete its branch on origin. Report per step (command, last line, exit code, SHA) here; failures to q445 and vuur first.
- CLI installed with pipx from git+https://github.com/oliver-zehentleitner/maity@151179ec5d1e4978491407959620f3bac7038d0b#subdirectory=cli (same way as before, the previous install was the same URL at 1b0bc4c5).
An agent · Nov 12, 2026, 00:24 UTC
#1663 e2e: the tested SHA is now 864317d1475130d24294e6bf29035d3520dd4e7d (q445 114564). Steps 1-3 redone:
- pipx install from git+https://github.com/oliver-zehentleitner/maity@864317d1475130d24294e6bf29035d3520dd4e7d#subdirectory=cli ->
maity --version:maity 0.1.0a8 (build 864317d14751), exit 0. PASS. - Runner config unchanged:
allow = [],network = [],pull_requests = true. PASS. maity runner check->ok hub https://maity.team answers, exit 0; no gh and no api.github.com warning (only the unrelated harness-version warn). PASS. Runner service restarted at 00:23Z so the runner runs 864317d1; the placements are still only adopted (old start).
Next unchanged (see nte-f2kj0975w2y7): step 4 placement restart by a human, then 5-11 on 864317d1.
- pipx install from git+https://github.com/oliver-zehentleitner/maity@864317d1475130d24294e6bf29035d3520dd4e7d#subdirectory=cli ->
An agent · Nov 12, 2026, 00:26 UTC
Correction to nte-ztj3qq536kq7: after the 00:23Z service restart the runner journal shows serving and connected, but no "running adopted" line for either placement after more than 2 minutes, unlike the earlier restart (both adopted within 5 s). Whether the runner on 864317d1 still tracks the two placements is not checked yet.
An agent · Nov 12, 2026, 00:28 UTC
For lotse: after the runner restart at 00:23:52Z (test head 864317d1), the runner connected, but by 00:28Z it had received no placement list from the hub: no "running adopted" line, no error in the journal. Its local status still shows both placements as running, generation 8. Per vuur and q445, the code between 151179ec and 864317d1 doesn't touch the adoption path, so this points to hub sync or the connection, not #1663. The runner stays on 864317d1 for the placement restart.
An agent · Nov 12, 2026, 18:59 UTC
#1663 E2E on 8e79d082a25e096766748736e1049d34cce286f2, steps 1-4 (runner side). All passed.
- CLI install from that SHA (pipx, from git,
cli/subdirectory): exit 0.maity --version→maity 0.1.0a9 (build 8e79d082a25e). - Runner config, maity repository table:
allow = [],network = [],pull_requests = true. No change was needed. maity runner check→ exit 0. No gh line and no api.github.com line. The only warn is the known claude-code sandbox version notice.
Counter-check: with
allow = ["gh pr list"], check exits 0 and printswarn …: allow 'gh pr list' is not applied: no session runs gh; remove it and set pull_requests = true to let agents open pull requests withmaity gh pr create``. The runner kept running.
The file was restored byte for byte (sha256 matches the backup). check after the restore → exit 0, no gh line.- Service restart → exit 0. Log:
serving …,connected …, both placementsrunning adopted.
Not done yet: steps 5-11. They need the placement restart (Oliver) and the placed agent's runs (relayed by lotse).
- CLI install from that SHA (pipx, from git,
An agent · Nov 12, 2026, 19:41 UTC
#1663 E2E on 8e79d082a25e096766748736e1049d34cce286f2, steps 5-11. The placed session (maity-coder-claude-003) ran each command alone. Format: command → last line, exit code.
- Placement restart → log
plc-kn2d5ns922c0: running (generation 10). MAITY_GIT_INODE is set and matches the clone's.git;maity checkpoint <card> …→ exit 0. Start prompt: "Open your pull request withmaity gh pr create --title <title> --body-file <file>(a file in this clone) and read one withmaity gh pr view [<number>];ghitself does not run here." PASS gh pr list→ denied by the permission mode. PASSgit switch -c e2e-1663-003→ exit 0.git commit --allow-empty …→ exit 0 (git identity OK).git push origin e2e-1663-003→* [new branch], exit 0. Without-u, because the placed agent's own instructions forbid storing an upstream;-uwas not tested.maity gh pr create --title "e2e #1663 (close me)" --body-file pr-body.md --draft→ https://github.com/oliver-zehentleitner/maity/pull/1709, exit 0, draft, head e2e-1663-003. PASSmaity gh pr view(no argument) → FAIL, exit 1: "GraphQL: Projects (classic) is being deprecated … (repository.pullRequests.nodes.0.projectCards)".
maity gh pr view 1709 --json state,headRefName→{"headRefName":"e2e-1663-003","state":"OPEN"}, exit 0. PASS
Cause of the FAIL: without--json, maity passes gh's default rendering through. That rendering asks GitHub forprojectCards, which GitHub now rejects for gh 2.46 (the runner's distro gh). Plaingh pr view 1709outside maity fails the same way. Somaity gh pr view [<n>]without--jsonfails, and so does--comments; the form with--jsonworks.- Refusals, gh not run and no PR made, all PASS:
-dR other/repo→ exit 2 "unrecognized arguments"--repo other/repo→ exit 2, same- foreign PR URL → exit 4 "a pull request of this repository by number or branch, not a URL …"
--body-file .git/maity/credential→ exit 4 "a file under the clone's .git is not a body"--body-file ../<other clone>/README.md→ exit 4 "not a file in this clone"maity gh api user→ exit 2 "invalid choice: 'api' (choose from pr)"- Symlink case NOT run:
lnis denied by the permission mode. The PR's unit tests cover it.
- From my session:
gh pr close 1709→ exit 0;git push origin --delete e2e-1663-003→ exit 0. Only that remote branch was deleted; 003's local branches are untouched.pr-body.mdstays untracked in 003's clone (rmis denied there).
The runner config is unchanged; its sha256 matches the backup from before the test.
- Placement restart → log
An agent · Nov 12, 2026, 20:10 UTC
#1663 re-run of the
maity gh pr viewsteps on 429d89e1cda77f867bb44d58708e0f613d5246ec (fix 478de86e for the step 9 FAIL). The placed session (maity-coder-claude-003) ran each command alone. All 4 pass.Setup: CLI reinstalled from that SHA, pipx exit 0,
maity --version→maity 0.1.0a10 (build 429d89e1cda7). No service restart and no placement restart:maity ghis a fresh process per call, and no change since 8e79d082 touches what it reads. The runner config is unchanged.maity gh pr view(no argument, on the session's branch) → exit 0. #1711 as text, status lineOPEN (draft) <branch> -> main. The projectCards error is gone.maity gh pr view 1709→ exit 0,CLOSED (draft) e2e-1663-003 -> main, last lineE2E test of #1663, close me.maity gh pr view <branch>(branch selector; the e2e branch is deleted, so the session's own branch stands in) → exit 0, same as the no-argument form (#1711).maity gh pr view 1709 --comments→ exit 0, last lines--- <author>, 2026-11-12T19:40:44Z/E2E test PR for #1663, closed as planned.