# `mix nous.eval.rescore`
[🔗](https://github.com/nyo16/nous/blob/v0.21.1/lib/mix/tasks/nous.eval.rescore.ex#L1)

Scores the samples of a stored run again with the task's current scorers,
without running the agent (`Nous.Eval.rescore/3`), and stores the result
as a new run.

    mix nous.eval.rescore 20261101t153012z-1a2b3c4d
    mix nous.eval.rescore baseline:main --task MyApp.Evals.Refunds

Use it after changing a scorer, an expected value or a threshold: the
outputs and traces are reused, only the verdicts change. The new run has
a new id, `metadata.rescored_from` set to the source run's id, and a
fingerprint whose `"scorers"` and `"dataset"` describe the current task.
Model-graded scorers (an LLM judge) are called again.

## Options

  * `--task MODULE` - the task whose scorers to use (default: the task
    recorded on the run)
  * `--store SPEC` - `file:DIR` (default `file:.nous/eval`),
    `sqlite:PATH` or `duckdb:PATH`; the new run is stored there too, and
    LLM judges look up their stored calibration there
  * `--parallelism N` - samples scored at once (default: schedulers online)
  * `--scorer-timeout MS` - per-scorer limit
  * `--budget-cost USD`, `--budget-tokens N` - bound what model-graded
    scorers spend (see `Nous.Eval.rescore/3`)
  * `--max-error-rate F` - tolerated share of `:error` samples, in
    `[0, 1)` (default 0.0)
  * `--format FORMAT` - `console` (default), `markdown` or `json`
  * `--output PATH` - write the report there instead of printing it

## Exit status

0 when the re-scored run has no more scorer errors than tolerated, 2 on an
operational error (bad arguments, run not found, a case missing from the
task, store failure, budget refused or exhausted, a source run that was
aborted or exhausted its budget, scorer errors above `--max-error-rate`).
Compare the new run with `mix nous.eval.compare`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
