Running from code
baseline_scores decide the classification:
Semantics worth knowing:
- Wins replay first — they are the guard; with
regression_sample(orsample=) limiting the run, wins get the budget before failures. - Replays are sequential and time-bounded (
replay_timeout_s): regression re-runs your agent, so the harness won’t multiply LLM cost or violate framework thread-safety by parallelizing it. - Every run journals a
regressionevent with the per-case results — the cross-run record that a rule change was checked. - No replay function wired? One clear warning, every case
skipped,report.cleanstaystrue(skips are honesty, not failures) — never an exception.
The operator CLI
The same run ships as a console script over the env-configured workspace (HARNESS_ROOT, HARNESS_CLI_BINARY, …):
0 when the run is clean, 1 on regressions or setup failure — drop it into a cron job or CI schedule and treat a non-zero exit as “a rule change needs attention.”

