oliver-zehentleitner / maity
contract + runner + hub + web: an agent states what it needs (tools, packages, skills, browser, secrets) and the runner provides it
tsk-r1a5g6jxk1yj Open
The maintainer, 2026-11-17 (via maity-ops-team#3yc2, seq 151236, answer to req-qs1epzc3326j): no makeshift fixes. Setting up an agent with special needs (here: ops) must work smoothly and be part of the runner.
What happened when maity-ops-team#3yc2 was brought up on a fresh Ubuntu runner host (OLIVER-PC01-L):
- Access. The owner had to place every item by hand: prod kubeconfig, gh login, a measurement secret, a crontab line for the backup pull. Agents may not pass secrets, so there is no path at all to hand credentials from one instance to the next.
- Tools and skills. The Python package websocket-client and the keep-the-why skill were missing. Agents may not install code. The KTW ack has a 30-minute deadline, and it only worked because the owner installed the skill in time.
- Headless browser. The perf page-load script needs one. Snap chromium refuses to start from a non-snap session. Playwright's headless shell aborts with "No usable sandbox", because Ubuntu 23.10+ blocks unprivileged user namespaces through AppArmor. A per-binary AppArmor profile (root) would fix it.
--no-sandboxis not acceptable. - State dir.
maity joinwarned that~/.local/state/maityis 0755 and skipped declaring the environment. cli/src/maity/state.py creates its own dirs 0700, so find out who created this one 0755 (runner, install, pip?) and fix that path.
Goal: an agent profile (or a placement) states what it needs, and the runner provides it, with no hand work beyond one consent by the owner. Contract first (§15 runners and placements, §6 profiles), plan to the lead before code:
- Needs list on the profile or placement: system packages or tools (by name, from an allowlist the runner owner approves), Python packages in the agent's own venv, agent skills (e.g. keep-the-why), an optional headless browser. Say where the list lives, who may edit it, and how the runner owner approves it, once per runner and per item, not per start.
- Runner provisioning. At the placement's start, the runner installs or checks what is approved, the same way as the managed harness install (docs/runners.md,
[harness.X] install = true), and reports what is missing as a placement state that the owner sees, instead of the agent hitting it. The browser comes with its AppArmor profile, set up bymaity runner init(tsk-fv7apqnv5yw2) as root once. - Secrets. A secret channel from the owner to a placement: the owner enters a secret on the hub page (or points the runner at a local file), the runner gives it to that agent's sandbox (env or file, mode 0600), and agents never see or pass it. It survives a replacement or handover to a new instance of the same agent. Decide whether the hub stores it at all (preferred: no, the hub only names it and the runner owner places it once per runner); state the threat model and what a placement with
networkorpull_requestsgrants can reach with it. Security and stored-data decisions go to the owner before code. - Docs. docs/runners.md: "Agents with special needs" and a worked ops example.
Related: tsk-fv7apqnv5yw2 (runner init), tsk-ckx7gcs6t5b9 (handover between instances; the away-instance case is noted there), tsk-c75byk66gk62 (maity gh), tsk-h8frpywfcavj (git identities). Contract card; the hub, runner and web cards follow from it.
Notes
Lotse · Nov 18, 2026, 06:40 UTC
The maintainer, 2026-11-18 06:40Z (direct chat), with an example from the KTW head on a runner: the agent needs network access (WebFetch/curl to api.github.com and github.com) that its sandbox refuses, and can only ask the owner to run it by hand.
Wish: the runner owner and the agent's owner can grant such a need with a click. The agent's refusal becomes a request in the inbox ("needs network to api.github.com"), the owner clicks allow (once / always for this placement), and the runner applies it on the next start, or live where the harness allows it.
For the contract: network targets (domains) belong in the needs list next to tools, packages, skills, browser and secrets; the same consent path; the runner owner decides for their machine, the agent owner for their agent; both are named in the request. Related: tsk-gjw3h7jrz90s (coder preset, Oliver's go req-rhet4spgp1gc).