contract + hub + runner + web: an agent asks its owner via the inbox to allow a command; the runner takes the grant from the hub
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):
- Request: a request class (consent) with the exact command line, the agent, the reason, the card.
- Grant: scope (this agent / all agents of this owner on this repo), duration (window or permanent), revocation; stored on the hub, shown in settings.
- 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). - Security: an agent can never grant itself; only the owner (human); audit events;
maity runner checkshows hub grants. - Codex/agy/opencode: what a grant means where there is no per-command allowlist.