Skip to content
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
68c05ee
fix(tier3): compute judge scores from verdicts and save judge evidence
rng1995 Oct 30, 2026
6b935dd
Merge main into naren/port-judge-contracts
rng1995 Nov 2, 2026
cb0f796
fix(tier3): mask any Authorization scheme and subscript headers in ju…
rng1995 Nov 2, 2026
1b1f0cb
fix(tier3): give no accuracy point to a trial without an answer
rng1995 Nov 2, 2026
f429e61
test(tier3): give negative salvage and judge fixtures valid step numbers
rng1995 Nov 2, 2026
8791053
docs(tier3): say salvaged behavior attempts keep their own status
rng1995 Nov 2, 2026
07f15f6
test(tier3): pin judge evidence bounds and redact-before-cut order
rng1995 Nov 2, 2026
d3924eb
Merge main into naren/port-judge-contracts
rng1995 Nov 2, 2026
2d709f4
Merge main into naren/port-judge-contracts
rng1995 Nov 2, 2026
e8d4fc5
fix(tier3): mask JSON-escaped and Digest auth headers in judge evidence
rng1995 Nov 3, 2026
ea85eb1
fix(tier3): let a correct refusal score in the accuracy prompt
rng1995 Nov 3, 2026
b73259f
Merge main into naren/port-judge-contracts
rng1995 Nov 3, 2026
ae0c6d2
fix(tier3): mask quoted flag values and long Authorization values in …
rng1995 Nov 3, 2026
affd14e
Merge main into naren/port-judge-contracts
rng1995 Nov 3, 2026
5553f1e
Merge origin/naren/port-judge-contracts into naren/port-judge-contracts
rng1995 Nov 3, 2026
ffa39f1
Merge branch 'main' into naren/port-judge-contracts
rng1995 Nov 3, 2026
ab78f66
ci(gitleaks): allow the synthetic curl credential in judge evidence t…
rng1995 Nov 3, 2026
083b42b
Merge main into naren/port-judge-contracts
rng1995 Nov 3, 2026
b6f1e83
Merge origin/naren/port-judge-contracts into naren/port-judge-contracts
rng1995 Nov 3, 2026
f95828c
Merge main into naren/port-judge-contracts
rng1995 Nov 4, 2026
cfdcb38
fix(tier3): mask quoted flag values of any length in judge evidence
chrisknvidia Nov 4, 2026
115908a
Merge remote-tracking branch 'origin/main' into naren/port-judge-cont…
chrisknvidia Nov 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ targetRules = ["generic-api-key"]
regexes = ['''^sk-AbCdEf1234567890$''']
paths = ['''^tests/test_tier3_(progress|result_display)\.py$''']

[[allowlists]]
description = "Synthetic curl basic-auth credential used by judge evidence redaction tests"
condition = "AND"
targetRules = ["curl-auth-user"]
regexes = ['''^["']admin:quoted-user-password["']$''']
paths = ['''^tests/tier3/test_judge_contracts\.py$''']

[[allowlists]]
description = "Synthetic NVIDIA Build token used by streaming redaction tests"
condition = "AND"
Expand Down
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,19 @@ All notable changes to SkillEvaluator are documented in this file.
rules, and is not accepted by `validate`, so a baseline-only run cannot pass
a Tier 3 gate.

- The Tier 3 verifier saves every LLM judge attempt to `judge_attempts.json`
next to the trial's `skill_evaluator_reward.json`, rewritten after each
attempt so it also explains a judge that failed. Each entry records the
metric, attempt number, method (`llm`, `ragas` or `salvage`), judge model,
status, and the problem with a rejected reply, plus the prompt and reply
with long text shortened. A `behavior_check` score rebuilt from a truncated
reply adds a `salvage` entry. Configured credentials, common key shapes,
URL userinfo, `Authorization`, API-key, token and `Cookie` header values,
and the values of credential flags such as `--token` and
`curl -u user:password` are masked. Rewards record
`judge_contract: skill-evaluator-judges-v2`, a reserved name that custom
graders cannot use.

- Tier 1 sets up SkillSpector 2.13.3 and Gitleaks 8.30.0 on first use from
pinned, SHA-256-verified releases, without a prompt; Semgrep is optional
unless `SKILLEVALUATOR_REQUIRE_SEMGREP=1`. `--skip <check>` on `validate` and
Expand Down Expand Up @@ -275,6 +288,28 @@ All notable changes to SkillEvaluator are documented in this file.
environment, so each template compiles once per process instead of once per
report.

- Tier 3 `accuracy` grades the outcome only. The `SKILL_IDENTIFIED` criterion,
which capped a correct answer from the no-skill baseline at 0.8 on positive
cases, is replaced by `FORMAT_FOLLOWED`: the response follows any output
format the question explicitly requires, and when none is required it is
true only if the response gives an answer. A trial that ran but gave no
answer still scores `0.0`, as before. Skill use is still scored by
`skill_execution`. Every case and both arms use the same five criteria, so
rewards no longer record `excluded_criteria` or the
`applicable-accuracy-criteria/v1` policy; reports still read older rewards
that do. `judge_accuracy` still accepts the `skill_identification_applicable`
keyword but ignores it. Expect baseline accuracy to rise and accuracy lift to
fall for the same runs.

- Tier 3 LLM judges return verdicts only, and the verifier computes every
score: `accuracy` is passing criteria divided by five, `goal_accuracy` is
`1.0` when the goal was achieved and `0.0` otherwise, and `behavior_check` is
the share of expected behaviors observed. A `score` field in a reply is
ignored, and the prompts no longer ask for one. An invalid reply is retried
once with the exact problem, for example `steps not judged: [2]`, instead of
a generic format reminder. The prompt examples are valid replies for the task
at hand, and the goal prompt no longer shows an empty tool-call section.

### Documentation

- Give the performance dashboard its own sidebar guide, retain the previous
Expand Down Expand Up @@ -773,6 +808,15 @@ All notable changes to SkillEvaluator are documented in this file.
killed; a second Ctrl+C skips that wait, and on Windows the task tree is
stopped immediately. Progress shows the agents that are stopping and reports
the run as interrupted instead of failed unexpectedly.
- The prompt-based `goal_accuracy` judge, which runs whenever the RAGAS scorer
does not (including with the default NVIDIA Build provider), used the reply's
`score` field over its `achieved` verdict, so `achieved: false` with
`score: 1.0` scored 1.0. Other judge replies were also accepted when they
should have been retried: an `accuracy` reply with only a numeric total
(clamped into 0 to 1, so `99` scored 1.0), a `behavior_check` reply that
judged one step twice and skipped another, and a RAGAS goal score other than
`0.0` or `1.0`. Each is now rejected and retried, and a RAGAS score that is
not binary falls back to the prompt judge.

### Security

Expand Down
2 changes: 1 addition & 1 deletion docs/custom-graders.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ grader must not overwrite reserved standard or reward-metadata names. These
include `security`, `skill_execution`, `skill_efficiency`, `accuracy`,
`goal_accuracy`, `behavior_check`, `overall`, `metrics`, `custom_metrics`,
`custom_details`, `details`, `entry_id`, `metric_set`, `metric_set_version`,
`evaluation_status`, `evaluation_errors`, `has_skill`, `error`,
`evaluation_status`, `evaluation_errors`, `has_skill`, `judge_contract`, `error`,
`trajectory_detail`, and `trajectory_source`. A collision fails grading.
</Note>

Expand Down
57 changes: 44 additions & 13 deletions docs/tier3-live-evaluation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -622,14 +622,29 @@ grades each trial after the agent finishes. `security`, `skill_execution`, and
`goal_accuracy`, and `behavior_check` are LLM judges that call the configured
evaluator provider. `custom_only` runs none of them.

Accuracy is calculated from the judge's criterion verdicts, not its numeric
total: passing applicable criteria divided by applicable criteria. Positive
cases score all five criteria; a positive-case reply with no criteria falls
back to the judge's numeric score. When `should_trigger` is false or no
`expected_skill` is declared, accuracy excludes `SKILL_IDENTIFIED` from both
counts and scores the other four criterion verdicts. The reward details record
the excluded criterion and `applicable-accuracy-criteria/v1` scoring policy.
Missing criterion evidence is an error for these cases.
The three LLM judges return verdicts only, and the verifier computes the
scores. A `score` field in a judge reply is ignored.

- `accuracy` is passing criteria divided by five. The criteria grade the
outcome: `ACTION_CORRECT`, `FACTUALLY_ACCURATE`, `TASK_ADDRESSED`,
`ACTIONABLE`, and `FORMAT_FOLLOWED` (the response follows any output format
the question explicitly requires; when none is required, it is true only if
the response gives an answer). A response that gives no answer fails all
five criteria and scores `0.0`, unless the expected answer is itself a
refusal. Every case and both arms use the same
five criteria. None of them asks whether the agent named or used the skill;
`skill_execution` scores that. A reply without all five true/false verdicts
is invalid.
- `goal_accuracy` is `1.0` when the judge decides the goal was `achieved` and
`0.0` otherwise, the same binary scale as the RAGAS scorer.
- `behavior_check` is the share of expected behaviors observed. The reply must
judge every behavior exactly once, identified by its 1-based `step` number.
A reply that skips, repeats, or invents a step is invalid.

Rewards record `judge_contract: skill-evaluator-judges-v2`. Results written
before this contract, whose `accuracy` included a `SKILL_IDENTIFIED` criterion,
are not directly comparable with newer ones: a correct no-skill baseline answer
used to be capped at `0.8` on positive cases.

### The graded trajectory

Expand Down Expand Up @@ -721,10 +736,25 @@ in [Judge evidence budgets](environment-variables.mdx#judge-evidence-budgets).
downgraded.
- **Reply validation.** Replies are checked against the expected fields either
way. An empty, unparseable, or invalid reply, including an empty reply from a
reasoning model that ran out of output tokens, gets one retry with a stricter
format reminder. `behavior_check` can also salvage complete per-behavior
results from a truncated reply and counts the missing behaviors as not
passed.
reasoning model that ran out of output tokens, gets one retry that names the
problem, for example `steps not judged: [2]`. `behavior_check` can also
salvage complete per-behavior results from a truncated reply and counts the
missing behaviors as not passed.
- **Saved judge evidence.** The verifier writes every judge attempt to
`judge_attempts.json` next to the trial's `skill_evaluator_reward.json` as it
happens, so the file also explains a judge that failed. Each entry records
the metric, attempt number, method (`llm`, `ragas`, or `salvage`), judge
model, status (`accepted`, `rejected`, or `error`), and problem, along with
the prompt and reply. When `behavior_check` is scored from a truncated
reply, the LLM attempts keep their own status (`rejected`, or `error` if the
retry failed in transport), and an `accepted` `salvage` entry, numbered like
the truncated attempt, holds the rebuilt results.
Configured credentials, common key shapes, URL userinfo, `Authorization`,
API-key, token and `Cookie` header values, and credential flag values
(`--token`, `--password`, `curl -u user:password`) are masked, and long
prompts and replies are shortened. The prompts contain the task question,
expected answer, and agent evidence. Pass `--harbor-keep-jobs` to keep the
Harbor trial directories that hold this file.
- **Reasoning models.** GPT-5 and GPT-6 judges get no `temperature` and at
least 32,768 output tokens, because reasoning tokens count against the
limit; other judges get 16,384. GPT-6 judges and Claude 5.5 or later judges
Expand All @@ -747,7 +777,8 @@ in [Judge evidence budgets](environment-variables.mdx#judge-evidence-budgets).
GPT-6 reasoning model, `goal_accuracy` first tries the RAGAS
`AgentGoalAccuracyWithReference` scorer through its own client, without the
schema or retry handling above but within the same time budget. If RAGAS is
unavailable or fails, the prompt judge runs instead.
unavailable, fails, or returns a score other than `0.0` or `1.0`, the prompt
judge runs instead.
- **Transient failures.** HTTP 408, 429, and every 5xx response except 501 and
505 are retried, including 520–524 proxy errors and 529 overload responses.
Connection errors, timeouts, and Bedrock throttling or service-unavailable
Expand Down
Loading