oliver-zehentleitner / maity
runner + hub + web: build placement health (§15.14) — detection and reasons, check-in, nudge, replace with handover, dashboard
tsk-z23zf1bb41qy Open
Builds the placement health contract, docs/api.md §15.14 (#1593, card tsk-j9e0yapj21wj). The contract is merged and approved. This card is the implementation. Unassigned; lotse sets its place in the queue.
Order
- Runner: detection and reasons.
- A no-output watchdog for supervised placements, read from the structured output, with its own budget while a tool runs.
- The closed set of run-end reasons.
- The retry rules: what is retried and what is reported as an outage at once.
- Flapping.
- Hub: actions.
- Check-in and nudge.
- Replace with handover:
replace_open, the two-placement window, abort, andclosed_reasonas the record. - The outage request withdrawn after a failed replacement (§15.7).
- Dashboard: placement health on the placement and the agent page.
Also on this card
- Start prompt fix: the start prompt for the other harnesses, with a test.
- The `maity[runner]` extra with the cryptography dependency, for the sealed transcript between runners. The CLI itself keeps no dependencies. It needs a Keep the Why entry in cli/context.
- Response shapes (review Nit-9 on #1593):
agent_healthinGET /meandhealthinGET /agents/{id}are only in §15.14 so far. The response shapes ofGET /meand the profile view still need them.
Open question for Oliver
What happens to an open replacement when the old placement closes at once before step 3, for example because its runner was removed? The contract doesn't say yet; §15.14 assumes the old placement closes after step 3. Decide this before step 2 is built.