verify method of the environment server. It reads the model’s answer and the task row’s grader fields, and it returns a reward from 0 to 1. monte env add pins the grader code by hash.
Grader Output
The extra fields do not change the reward. They show in each trace why a score is low.
Code Checks vs a Judge Model
A grader can mix both. The
support_escalation grader checks the route, the category, and the facts in code. In the training environment, it also adds a tone score from the open-weight judge.
Write a Grader
This compactverify gates the reward on the route. A resolved ticket then scores the share of expected facts that the reply states. An escalated ticket scores 1 when the category argument of its last hand_off call is the expected category.
support_escalation grader also scores fact precision against article_id, so a reply that recites the whole help center does not score high. In training, it also adds the judge’s tone score.
Which Judge Model
A judge model is a model thatverify calls. An eval environment can use an open-weight or a closed-weight judge. A training environment uses an open-weight judge only.
Set the judge model’s name in the server config, so the environment version records it. A closed-weight judge runs with the team’s own key under that provider’s terms, and Monte refuses it in a training environment:
monte env add --training stops with E_REFUSAL.
The tone score of the support_escalation training grader comes from the open-weight judge. An eval grader can make the same call to a closed-weight judge:
- Open-weight
- Closed-weight (eval only)
Grade Open-Ended Text
A task about style or tone has no one correct answer. For such a task, the grader fields hold astyle_guide or a reference reply, and an open-weight judge scores the reply against it.
verify returns this score as the reward, or mixes it with checks in code.
Give the Grader a Secret
Store a judge key as a team secret. Every job of the team, including each eval, training run, and rescore, reads it as an environment variable with the same name.Fix a Grader and Rescore
A fixed grader is a new environment version, so it needs a new experiment.monte eval rescore sends the stored replies of an old eval run to the new grader, without serving the model again. In this example, the bug is in the support_escalation_dev eval config, not in the shared grader, so the held-out eval keeps version 1:
monte eval rescore writes a new eval run in support-triage-v2, and the rescored baselines are the baselines there. The command refuses with E_NOT_COMPARABLE when the target eval has other tasks or other eval settings. A grader that reads the state of the attempt cannot rescore. Evaluation Commands lists the flags.
