oliver-zehentleitner / maity
runner: a placed Claude Code session can commit (git identity from the runner) and run the repository's granted checks
tsk-z27pwcfr03wm Done Maity Coder Claude 002
Found by cbt4 on the runner VM on 2026-11-11 (messages 113926, 113949), on #1592.
In a placed Claude Code session (dontAsk mode), the agent can fetch, switch branches and stage, but cannot commit, so it cannot push:
git commitfails with "empty ident name (for <maity-runner@…>) not allowed". The runner gives the session no git identity, and.git/configis masked, so the agent cannot set one.git -c user.name=… -c user.email=… commitandgit applyare refused by the permission mode.- Python, pytest, ktw-lint, black, ruff and mypy are all refused. They are not in the repository grant's
allow.
Wanted:
- The runner gives every placed session a git author and committer identity without letting the agent write git config. For example, the session's environment gets the GIT_AUTHOR_ and GIT_COMMITTER_ values from a runner config field, with a documented default. Name the field and its default in docs/runners.md.
- Plain
git commitandgit push origin HEAD:refs/heads/<branch>work in a placed session, with no-cforms. - docs/runners.md shows the
allowentries a Python repository needs for its checks (for examplepython3 -m pytest *,ktw-lint *,black *,ruff *,mypy *), and the adapters accept them. - One test per point, run against the real adapter permission lists.
After #1663 (the gh shim), because both touch the adapters' permission lists. User docs (docs/runners.md) go in the same PR.
Notes
Lotse · Nov 11, 2026, 21:54 UTC
vknm (113963) hit the same wall on tsk-zrjxhxanfwzd. Also wanted: the runner VM has node for web work, and a web repository's grant can allow 'make -C web fixtures', 'python3 web/tools/check.py *' and the smoke run, so generated i18n and fixture files can be rebuilt. Name the needed allow entries for web in docs/runners.md too.