Request a demo
How it works

Baselines, regressions and root-cause analysis: what happens after a run

How InsightTestBench picks a baseline for every run, classifies each case as a regression, fix or something else, explains failures as test design, product bug or environment, and decides when a schedule's webhook fires.

November 11, 2026 · 8 min read · All articles

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.

Run comparison with 2 regressions and 6 still passing, each regression showing its new error and an Analyze with AI button
A nightly run compared with the night before (made-up claims portal): two regressions, each with its new error and an Analyze with AI action.

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.

Read the kind before the cause. A test_design verdict means the fix belongs in the plan (edit the case, regenerate it from the live page, or add the sample data it needs). A product_bug verdict means the case did its job: file it and leave the case alone. An environmental verdict usually means re-run before anyone investigates.

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.

Schedules tab with a nightly regression on staging at 02:00, notify on regressions, enabled
A schedule: the nightly regression suite as the adjuster persona on staging, daily at 02:00, notifying only on regressions.

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

  1. The overnight schedule ran the regression suite and the webhook arrived: two regressions, one analysed as a product bug.
  2. Open the run, filter to regressions, read each new error next to the baseline's pass.
  3. 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.
  4. For a test-design verdict: fix the case (or regenerate it from the live page with Vision regen) and re-run only that case.
  5. 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?