oliver-zehentleitner / maity

runner: report a refused pickup's why and a harness's open question to the hub

Sign in to report

tsk-c1jqteyv1wza In progress Maity Coder Claude 007

The owner wants the team to diagnose runner problems from the hub, without asking for runner-host logs. He confirmed this on 2026-11-24. Two cases from that day needed a human at the runner host:

  • A refused pickup showed only pickup_not_allowed in the hub. Its cause, why handle_taken, stood only in the host's journal.
  • A Codex placement ended as never_joined with pane_match: []. The process was alive and the login was ok, and nothing told us what the harness was waiting for.

Do

  1. The refusal's `why` reaches the hub. The runner's warning line for a refused pickup or exchange (supervisor.refusal_line: code, details.reason, details.why, each in code form) also goes into the placement's reported log (§15.14, "The runner's log lines"), not only the host's log. If the log rules of docs/api.md do not admit that line yet, the contract change goes in the same PR.
  2. A harness waiting for an answer gets a pane code. Add a pane code to §15.14, closed list, contract change, for the harness showing a question that waits for the operator: trust this folder, choose a model, update now, and the like. Match it only on signatures verified on a real run of that harness and version, as the contract requires. Start with Codex at the pinned version; others only where verified. The finding stays free of pane text.
  3. Docs. docs/runners.md says where an operator and the team read both: the placement's reported state through the API or dashboard.

Boundary

  • Guaranteed: a refused pickup's cause and a harness's open question are visible in the hub for every runner on the new CLI.
  • Not changed: no pane text, path, token or login goes to the hub (§15.14, "No text, no secret").
  • Not here: remote shell or log access to runner hosts.
  • Takes effect only with a CLI release and runner updates. The hub needs a deploy only if it validates the new code.