oliver-zehentleitner / maity

web+docs: the "Pair a runner" dialog offers the service way (maity runner install) on Linux

Sign in to report

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):

  1. On Linux the dialog offers two ways:
  • As a service (recommended): sudo pipx install --global maity, then sudo maity runner install <pair URL> --code-file -. It says that install makes the maity-runner user 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 as maity-runner.
  • In a terminal (to try it out): as today (pair + serve).
  • macOS keeps the terminal way only (no service there yet).
  1. The start configuration the dialog offers goes to /etc/maity-runner/runner.toml on the service way (copy command writes that path).
  2. 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.
  3. 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:

  1. 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 as maity-runner.
  2. agent_path: the agents' home is /var/lib/maity-runner, not /home/maity-runner. The start config must use the right home, and check should flag a agent_path entry under a home that does not exist.
  3. A tool listed under [harness.*] but not installed (agy, opencode) is an error in check, and the dashboard shows no tools without saying why. The dialog/docs say: list only installed harnesses; install = true covers only claude-code and codex.
  4. Sandbox packages: check says "no OS sandbox (socat missing)". The docs name apt install socat bubblewrap (Debian/Ubuntu) as a step before the first start.
  5. 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 tools without --config looks for ~/.config/maity-runner/runner.toml and fails on the service layout; it should find /etc/maity-runner/runner.toml or say to pass it.
  6. 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.

  1. 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).
  2. Packages a coder runner needs so agents can run the project's own checks (agents03 had none): make (hub/cli make dev builds the venv inside the sandbox), python3-venv, python3-dev/build-essential, and PostgreSQL server binaries for hub/scripts/with_postgres.sh (Debian: /usr/lib/postgresql/<v>/bin, set MAITY_PG_BIN or note it). The docs give one apt line; runner check may warn when a repository grant lists make * but make is missing.
  3. Forge login for the agents' user: git push in the sandbox uses the machine's forge login, and maity gh needs 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 make gh auth login and gh auth setup-git as the agents' user a step on the service way, and runner check warns when pull_requests = true but gh has no login for that user.
  4. hub/scripts/with_postgres.sh finds Debian's server binaries itself (/usr/lib/postgresql/<newest>/bin when 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".
  5. maity gh is granted only if gh is present when a session starts. On agents03, gh came after the placements started, and maity gh pr create said "grants no pull requests" although pull_requests = true (cause inferred, not verified). runner check and the docs say that sessions must be restarted after gh is installed or logged in, or the runner picks gh up without a restart.