Derive a plain-language verdict for every completed stage visit

Each completed step now exposes a verdict: the chosen option (outcome -> target),
a bounded one-line reason with model/fallback/absent provenance, and the recorded
artifacts the reason refers to. The store persists only the model-generated line
in a new step_verdicts table and derives the fallback at read time (no backfill);
the server generates the line once at completion, best-effort; the TUI renders it
in the stage progress summary. The packaged debugging reference documents it.
This commit is contained in:
2026-10-16 13:54:48 +01:00
parent f3e0593f4d
commit e79ff9585f
14 changed files with 944 additions and 40 deletions
@@ -2,8 +2,12 @@
Debug from **retained evidence**, never from an agent's summary. Open the run with
`CLI_PREFIX inspect RUN_ID --json` and read the exact stage outputs, outcomes,
diagnostics, file changes and artifacts. Identify evidence-supported causes and say
what remains unknown. Never fix a run's symptom by editing the project by hand: fix
diagnostics, file changes and artifacts. Each completed step also carries a
`verdict`: the chosen option (`outcome → target`), a one-line reason with its
provenance (`model`, `fallback` or `absent`), and the recorded artifacts the reason
refers to. Treat the reason as a claim to check against the step's output, never as
evidence in itself. Identify evidence-supported causes and say what remains
unknown. Never fix a run's symptom by editing the project by hand: fix
the pipeline definition or the Pipelines/harness service, or record the failure and
continue.