Scores and benchmarks

Grade every finished run, freeze merged work into benchmarks, and try a different agent, workflow or lesson on them in fenced trials that say how sure the difference is.


The dashboards count how many runs finished and what they cost. Scorers say how good each one was, benchmarks keep past work to measure against, and a trial runs two or more variants of a workflow on a benchmark so you can see whether a change made things better. A score says how a run went, never what to do: nothing acts on one without a person.

Scorers

Scorers, in the project's sidebar. A scorer gives each finished run it applies to a value from 0 to 1 with a reason. There are no built-in scorers: write your own, or pick one a shared project offers, as risk rules are picked. Four kinds:

  • Measure — a fact Peractor already holds: first-pass approval, rework rounds, checks green the first time, cost, working time and waiting on people against the workflow's usual, merged, reverted, and lines people changed after the merge. Merged, reverted and edited keep settling for a window (14 days unless you say).
  • Judge — a rubric a model answers from the run's change, with the lines it rests on quoted. Strict asks twice and keeps the lower grade; reference also shows it the change a person merged, on a benchmark case; Also grade at gates (atGates: true) asks it of each gate's change too, so the grade is there beside the gate's 👍 and 👎 while you review — one more model call per gate, so it is off unless you turn it on.
  • Command — a script on the run's machine, at the end of the workflow's last phase, that writes { "value": 0.8, "reason": "…" } to $PERACTOR_SCORE/score.json.
  • Person — people's 👍 and 👎 on the run, and which version they kept when a run tried the same job several ways (below).
# scorer/kept-to-the-task.yaml
id: kept-to-the-task
name: Kept to the task
kind: judge
mode: shadow
rubric: |
  5: every changed file serves the task. 3: some unrelated tidying.
  1: most of the change is about something else.
workflows: [fix-a-bug]

Start a judge or a command in shadow. It grades, but its grades stay off the run page and out of the figures. Its page shows how often it agrees with what people did — approved first time, asked for changes, reverted, a thumb — and turns amber when fewer than six in ten agree after ten grades. Switch it on once you trust it. A measure counts facts and is always on. Judges are charged to the organization's token meter as Scoring and trials.

Scores show on the run page, as one row on its task, and on the dashboards (Run scores, Scores by agent, Scores by workflow). Anyone who can read a run can give it a 👍 or 👎 with a note, on the run or at its gate.

A judge that grades at gates is asked once the gate opens for people — never at a gate that passed by policy, a trial's gate, or while the judge is still in shadow — and its grade shows only while that gate is open. It is a look on the way: the run's own grade is still taken when the run finishes, and only that one counts in the scorer's figures.

Which version people kept

A workflows step can run the same job several ways side by side — one lane per agent, say — each on its own branch. Once every lane has finished, each one's row in the run offers Keep this one: press it on the version you kept. It records your pick and nothing else; you still merge the branch as you always would. Undo takes it back, and a later pick by someone else replaces it. Every person scorer of the project then grades each lane: the kept one 1, the others 0, each under its own workflow, agent and model. A person scorer's page lists them as Versions kept — how often each lane's workflow and agent was offered and kept — apart from its grades of whole runs. A lane that was stopped isn't one of the versions.

Benchmarks

Benchmarks, in the project's sidebar. A benchmark is a set of cases frozen from merged runs: Build from history lists the runs worth keeping (merged, not reverted, little edited after) and freezes the ones you pick. Each case keeps the task as it was, the commits the run started from — kept by a ref in Peractor's own copy of the repository, never pushed — and the merged change as the reference. A case whose commit is gone is marked and skipped, never dropped quietly. A run that worked with restricted files, or was asked in a private conversation, can't become a case, since everyone who reads the benchmark would see its task, so it isn't listed.

# benchmark/bug-fixes.yaml (cases are written by freezing)
id: bug-fixes
name: Bug fixes in core
workflow: fix-a-bug
grades:
  - check: true          # the case's own hidden check: exit code 0 solved it
    weight: 2
  - scorer: kept-to-the-task
    weight: 1
  - measure: cost
    weight: 1
repeats: 2
caseLimit: 1h
secrets: [NPM_TOKEN]     # the only secrets a trial run gets

Trials

On a benchmark, Run trial… takes two to four variants. A variant is today's workflow with one thing changed: a copy of the workflow, a different agent, model or effort, memory added or taken away, or another container image every phase starts from. Compare agents… fills in one variant per agent and model to compare. The sheet says what the trial will cost and how long it will take before you start it, and caps its spending at that estimate × 1.5 unless you set a cap. Starting one takes Manage project.

A trial run touches nothing outside Peractor. It starts from the case's frozen commits and keeps its work in Peractor's own copy: no push, no pull request, no message, mail or notification. Its gates approve themselves, its questions are answered "No answer — use your judgment", and terminal, preview, form and wait steps are skipped. It carries no API key and only the benchmark's secrets, and it never shows in a run list — only on its trial's page.

The trial page puts the cases against the variants, each cell the weighted score with a dot per repeat, and says the result in words: higher on how many cases, lower on how many, and whether that is likely real or within the noise (a sign test, case by case). A variant that did as well for much less, or clearly better, comes with a way to make it real — Set as run defaults, Open the lesson, Open the workflow — which opens that page; the trial changes nothing itself. Set as run defaults opens the project's run defaults with the version's agent, model and effort filled in, saved only when you save; on the web it's a card at the top of General with Set as run defaults and Not now.

To run a benchmark on a schedule, give a schedule trigger a workflow whose command step posts to POST /api/v1/trials with a key kept as a secret. When a trial ends it records the metric benchmark.<id>.<variant>, which an on: metric trigger can watch.

Learning from feedback

The feedback people give — changes asked at a gate, a comment on a line, a 👎 and its note, a check that went red, a merge reverted, heavy edits after a merge, a judge's low grade — is kept for 180 days. The Learn from feedback workflow in the Memory upkeep pack reads it, with each run's own brief of what it did and the versions of the workflow, persona and instructions it ran with, groups what says the same thing across at least three runs, and proposes lessons for the memory. Feedback about a run you can't open — one that worked with files you can't open, or was asked in a private conversation you weren't in — is left out of what you read, and out of what the workflow reads when its run can't open it either. Run it by hand, or give it a weekly schedule trigger. A proposed lesson shows the feedback it grew from, and Try it on a benchmark runs today's workflow against the same one with the lesson, before anyone approves it. Turn on Try each new lesson on a benchmark on the Benchmarks page, with an amount, and every new lesson is tried as it arrives — on the benchmark of the workflow its runs came from, when the trial is estimated under that amount, which is also its spending cap. Peractor starts it, and the trial says so.

What a lesson can't fix — a missing check, two workflows that disagree, a step that keeps failing on one path — the workflow suggests as a fix in the project's Pulse instead, with the runs it read, for the people who can act on it.

Every phase records the versions of the workflow, the persona and the instructions it went out with, so an edit made while a run is going reaches only the phases after it. A run's Details name the workflow's version beside it — version 12, or version 12, then 13 when it was saved again mid-run — which opens the workflow's History at that version. A scorer's page splits each workflow's grades by those versions too: Fix a bug · version 12 beside Fix a bug · older runs.

Once an entry is in memory, its page shows Before and after: for each scorer that is on, the runs the entry reached (it was on their Prompt card) against the same workflows' runs in the 30 days before the first of them, on the same workflow versions where both were recorded — better, worse, about the same, or too few runs to say while either side has fewer than three grades. Trial runs, gate grades and lane grades don't count. Consolidate memory reads the same figures, and proposes retiring a lesson that made things worse, or no better after ten runs, with the figures in its note — a person still decides.

A share of real runs

Once a trial has shown a difference, a workflow can send a share of its real runs to a variant. Each run lands in the same variant every time it is retried, and a scorer's page splits its grades by variant.

# in a workflow
variants:
  - id: codex-medium
    name: Codex at medium effort
    share: 20            # percent of runs
    agents:
      - match: {}
        set: { provider: codex, effort: medium }

Next: Workflows · Agents & models · The run lifecycle