oliver-zehentleitner / maity
web+docs: the "Pair a runner" dialog offers the service way (maity runner install) on Linux
tsk-2k0jcaxfd0ja Done Maity Coder Claude 004
Owner request (Oliver, direct chat 2026-11-22 22:31Z; decision req-0d53nenzt328, o1): the dashboard's "Pair a runner" dialog only walks through pipx install maity → maity runner pair … → maity runner serve in the foreground. On a fresh Debian 13 host (agents03) that left a paired runner with no service, and maity runner install then refused a hand-made maity-runner user. The service path (sudo maity runner install) is documented only in cli/README.md and as a half-sentence in docs/runners.md ("see maity runner unit").
To do (web + docs, one PR):
- On Linux the dialog offers two ways:
- As a service (recommended):
sudo pipx install --global maity, thensudo maity runner install <pair URL> --code-file -. It says that install makes themaity-runneruser itself (do not create it by hand), where the config lands (/etc/maity-runner/runner.toml), that the service starts only once[limits]and a[harness.<id>]are there, and how to log the harness in asmaity-runner. - In a terminal (to try it out): as today (pair + serve).
- macOS keeps the terminal way only (no service there yet).
- The start configuration the dialog offers goes to
/etc/maity-runner/runner.tomlon the service way (copy command writes that path). - docs/runners.md "Set up a runner" gets the service way as its own step, instead of the pointer to
maity runner unit; cli/README.md stays the reference. - All languages of the dialog's texts (i18n), smoke/e2e for the new choice.
Not in scope: changing what install does (for example adopting an existing user).
Added 2026-11-22 23:20Z (Oliver: "das muss ordentlich dokumentiert sein bitte! und der prozess muss den user gut da durch führen!"). Every pitfall from agents03 must be covered, by the dialog/docs and, where the CLI can say it, by install / runner check printing the next step:
- After
install, the hand-off says the next steps in order: write[limits]and[harness.<id>](exit 78/CONFIG "limits: required / harness: required" otherwise), restart, log the harness in asmaity-runner. agent_path: the agents' home is/var/lib/maity-runner, not/home/maity-runner. The start config must use the right home, andcheckshould flag aagent_pathentry under a home that does not exist.- A tool listed under
[harness.*]but not installed (agy, opencode) is anerrorincheck, and the dashboard shows no tools without saying why. The dialog/docs say: list only installed harnesses;install = truecovers only claude-code and codex. - Sandbox packages:
checksays "no OS sandbox (socat missing)". The docs nameapt install socat bubblewrap(Debian/Ubuntu) as a step before the first start. - Login as
maity-runner, with the managed tool's real path (runuser -u maity-runner -- …/tools/claude-code/versions/<v>/bin/claude, then/login;codex login).maity runner toolswithout--configlooks for~/.config/maity-runner/runner.tomland fails on the service layout; it should find/etc/maity-runner/runner.tomlor say to pass it. - The dashboard should say why a runner offers no tools (each harness's reason: binary_not_found, login_needed …) instead of an empty choice.
CLI points (5, 6, 9 lookup) may become a second PR; the card is done when all fifteen are covered.
- Keep the Why skill on a runner (corrected 23:35Z). The cause on agents03 was not git, which was installed. The hub in production (v0.1.0a10) predates #2056, so it does not name the skill in the placement, and the runner delivers nothing, silently (no log line, no keep_the_why_unavailable). Worked around by a hand install to ~maity-runner/.claude/skills. To do: the docs say the skill comes with hub ≥ the release that has #2056 and, until then, how to install it by hand.
runner check, or the dashboard, says when a project uses Keep the Why but the hub names no skill. git stays in the package list (the delivery needs it). - Packages a coder runner needs so agents can run the project's own checks (agents03 had none):
make(hub/climake devbuilds the venv inside the sandbox),python3-venv,python3-dev/build-essential, and PostgreSQL server binaries forhub/scripts/with_postgres.sh(Debian: /usr/lib/postgresql/<v>/bin, set MAITY_PG_BIN or note it). The docs give one apt line;runner checkmay warn when a repository grant listsmake *but make is missing. - Forge login for the agents' user:
git pushin the sandbox uses the machine's forge login, andmaity ghneeds gh logged in as the agents' user (docs/runners.md, line ~293). On agents03 nothing guided to it, and the first push failed with "could not read Username". The dialog and the docs makegh auth loginandgh auth setup-gitas the agents' user a step on the service way, andrunner checkwarns whenpull_requests = truebut gh has no login for that user. hub/scripts/with_postgres.shfinds Debian's server binaries itself (/usr/lib/postgresql/<newest>/binwhen pg_ctl is not on PATH and MAITY_PG_BIN is unset). On agents03 it exited 2 with "pg_ctl not found; set MAITY_PG_BIN".maity ghis granted only if gh is present when a session starts. On agents03, gh came after the placements started, andmaity gh pr createsaid "grants no pull requests" althoughpull_requests = true(cause inferred, not verified).runner checkand the docs say that sessions must be restarted after gh is installed or logged in, or the runner picks gh up without a restart.