oliver-zehentleitner / maity

runner: the watch only diagnoses by default (reports findings; no restart, no TERM, no hold); restarts are opt-in

Sign in to report

tsk-psbvykx0e9e4 Open

Oliver, req-mkyqa7thtbna (2026-11-23), verbatim: "Super, aber gerade am Anfang wollen wir lernen und verstehen warum agents hängen bleiben. neustart ist ein wenig der holzhammer. Bitte lass uns mal lernen und analysieren was die gründe sind und dann gezielt neustarten". He wants the watch to diagnose: find and report why a placement is quiet, so a human restarts it on purpose.

Correction (gemy, A2206 on #2134): auto_restarts = 0 is NOT diagnosis only. At the first restart-cause finding, the watch ends the live session (TERM) and holds the placement as failed (supervisor.py:1032; test_auto_restarts_zero_holds_at_the_first_finding, cli/tests/test_supervisor_watch.py:391). That stops the agent, which Oliver did not want either.

Build:

  • A diagnose-only mode, as the default: the watch records and reports its findings (reason, detail, the §15.14 health and report) but neither restarts, nudges by TERM, nor ends or holds the session. The placement keeps running; a human decides.
  • Restarts become an explicit opt-in. Suggested: [limits.watch] on_finding = "report" | "restart", default "report", with auto_restarts meaning only under "restart". The exact shape is your plan; contract delta in §15.14 if the reported shapes change.
  • docs/runners.md and docs/api.md §15.14 describe exactly that.

Acceptance: tests that the default ends nothing and restarts nothing on each finding kind, with a counter-check on today's code; the opt-in keeps today's behaviour; a changelog line; KtW with the owner's reason and the rejected alternatives (default 1; 0 = end and hold). Ships with CLI 0.1.0a19.