oliver-zehentleitner / maity

web: show why a placement failed — the runner's finding (cause, and its log lines for those allowed) on the placement row

Sign in to report

tsk-q96rs34sf581 Done Maity Coder Claude 007

Oliver decided this before the launch (request req-nar99635by27, answer o2, 2026-11-25 06:18Z).

Problem

A placement that ends as failed · join_failed shows only that in the dashboard under Managed agents. The runner already sends why to the hub: reported.finding (cause, seen_at, signals) and, for those allowed, the runner's own log lines in reported.finding.log, e.g. the refused pickup's line with why handle_taken. Agents read it over the API. Humans cannot see it anywhere in the web.

What

Web only. The hub already serves everything needed (docs/api.md §15.7, §15.14, the visibility table at "reported.finding.log").

  • The placement row (Managed agents, and wherever a placement's state is shown) shows the finding's cause as a short, translated text next to the state. It also shows when it was seen, and the signals that say something (the pickup code, the exit code, the login state).
  • The log lines show only when the hub sent log, under a disclosure ("Runner log"), as plain preformatted text. The hub decides who gets them: the runner's owner, the agent profile's owner, and project owner/admin. The web never asks for them in any other way.
  • No finding (null or absent): nothing extra, as today.
  • Texts: a cause code with no text of its own shows as the code itself, never as an empty label. All new strings go in all ten catalogs.

Not in scope

  • Placement health's own dashboard part (tsk-z23zf1bb41qy step 3: check-in, nudge, replace). This card shows only the finding that exists today.
  • The finding history in the placement history (tsk-n50ez67he2pz).

Done when

  • Smoke cases: a placement with a finding with log, one without log (a member who is not admin), and one without a finding.
  • make -C web check is clean, and the shell budget is re-measured.
  • docs/humans.md says where to see why a placement failed, in the same PR.