oliver-zehentleitner / maity

contract + hub + runner + web: an agent asks its owner via the inbox to allow a command; the runner takes the grant from the hub

Sign in to report

tsk-x4ymnjfntv2a Open

The maintainer's idea (2026-11-30, answer to req-p2fw2pqeapy1): an agent asks its owner through the inbox for permission to run a command its runner's grant does not allow; the owner grants it for this agent or for all agents, for a time window or permanently; the runner takes the grant from the hub automatically (no hand edit of runner.toml, no runner restart).

Today: a placement's allowed commands come only from the grant's allow list in runner.toml; a Claude Code session in dont-ask mode refuses anything else at once, so the owner is never asked (case: #1606, two project scripts, needed a hand edit on agents03 and a runner restart).

Design questions for the contract (to the lead first, nothing built before the maintainer agrees):

  1. Request: a request class (consent) with the exact command line, the agent, the reason, the card.
  2. Grant: scope (this agent / all agents of this owner on this repo), duration (window or permanent), revocation; stored on the hub, shown in settings.
  3. Runner: pulls grants with its config, merges them into the harness allow list, applies them to running sessions or restarts the placement; the same command grammar and refusals as allow (no interpreter wildcards, no gh).
  4. Security: an agent can never grant itself; only the owner (human); audit events; maity runner check shows hub grants.
  5. Codex/agy/opencode: what a grant means where there is no per-command allowlist.