Evaluate Runs
evaluate_runsRe-score every trace in a run under current rules into a new run, preserving the source so rule changes are compared, not overwritten.
Instructions
Re-score every trace in a run under the current rules into a new run, so a rules change is compared, not overwritten.
What it does. Writes the verdicts into a NEW run; the source run is never modified. Traces already scored under the current ruleset are skipped, so a repeat call does no work. Local, no model call. Full detail: iris://capabilities.
When not to use it. To score a new execution (log_trace, then evaluate_output).
Returns. JSON: source_run, run, ruleset_hash, traces, evaluated, already_current, failed, passed, not_checked, summary, rules_changed.
Errors. IRIS_INVALID_ARGUMENT (empty run id, or the target run holds verdicts); IRIS_UNKNOWN_TRACE (source run empty); IRIS_STORAGE_ERROR. Unscorable traces are listed in failed. Failures return {"error":{code,message,recovery}} with isError; follow recovery.
Siblings. compare_runs — compare the two runs after; evaluate_output — re-score one trace; get_traces — read a run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | the run to re-score — whatever you passed as `run` on log_trace | |
| into | No | Run id for the new verdicts; defaults to <run>+reeval-<ruleset hash>, stable across repeats | |
| label | No | a name for the new run, shown in listings |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | ||
| failed | Yes | ||
| passed | Yes | ||
| traces | Yes | ||
| summary | Yes | ||
| evaluated | Yes | ||
| source_run | Yes | ||
| not_checked | Yes | ||
| ruleset_hash | Yes | ||
| rules_changed | No | ||
| already_current | Yes |