A red run on its own says little. Was this case passing yesterday? Did someone fix the one that failed all week? Is this failure the application's fault, the test's, or the environment's? InsightTestBench answers those three questions after every run, in that order: it picks a baseline, classifies every case against it, and explains the failures you ask about.
Picking a baseline
The baseline for a run is the most recent finished run (completed, or failed with failing cases) of the same plan, with the same persona and the same target environment, that finished before it. Comparing an adjuster's staging run with yesterday's adjuster staging run is meaningful; comparing it with a supervisor's run on QA is not, so the bench never does that automatically. You can pick a different baseline on the run page; most of the time you will not need to.
Six outcomes per case
Cases are matched by id. When a run replays cases at several viewports, ids carry a suffix (TC-001@desktop,
TC-001@phone) and each viewport is compared with the same viewport in the baseline. The run page shows the counts as chips
and lets you filter to regressions, fixes or the cases still failing.

Root-cause analysis
Analyze with AI on a failed case starts the failure-RCA app on the worker. It reads the case as written (steps, expected outcome, data), the case's result in this run (status, error, the steps it executed and what it observed on the page) and the slice of the project's exploration guide that describes the feature. It answers with:
- a cause, in a sentence or two;
- a suggested fix;
- a kind: test_design (the case is wrong: a stale selector, a missing wait, data the environment does not have), product_bug (the application is wrong) or environmental (a dependency was down, a limit was hit);
- a confidence between 0 and 1, and a short markdown write-up.
The result is stored on the case's entry in the run, so anyone opening the run later sees it without paying for it again; running it again overwrites it. It needs the worker and a configured model.
Schedules and when they speak
A schedule runs one plan as one persona against one environment, either every N seconds or daily at a set time (HH:MM). Schedules live
in the database, and an in-process loop checks every 30 seconds for any that are due, so a restart simply picks them up again. Each schedule
has a webhook URL and a notify_on mode: always, any_failure or regressions. In regressions mode the
webhook is sent only if at least one case went from pass to fail against the baseline, and each regression is analysed first, so the
message says why.

The webhook body is JSON: the schedule (name, plan, persona, environment), the run (id, status, totals, timings), a list of regressions (each with its error and, when analysis succeeded, its cause and suggested fix), the number of fixes and a markdown summary ready to paste into a chat channel. Point it at an incoming-webhook URL or at your own endpoint.
Putting it together on a red morning
- The overnight schedule ran the regression suite and the webhook arrived: two regressions, one analysed as a product bug.
- Open the run, filter to regressions, read each new error next to the baseline's pass.
- For the product bug: file it with the case id and the analysis attached. Every failed case also has a row in the failures queue, where it stays until someone moves it on.
- For a test-design verdict: fix the case (or regenerate it from the live page with Vision regen) and re-run only that case.
- The next night's run shows the fixed case as a fix, and the comparison stays quiet until something else breaks.
For the triage side in more depth, see test defect, product bug or environment?


