Repository navigation
feat(verifiers): each judge call's record names exactly what it was sent, and a judge's settings name each turn's trajectory source - #897
Merged
Conversation
…ent, and a judge's settings name the trajectory source it read for each turn A direct judge call's input is its messages, response format and settings; an agent judge call's is its message and a manifest of every file put in its sandbox, each one written as text stored too. Each is stored by its sha256 under judge-inputs/, so identical content is stored once, and the call's record in judge_calls names it as input, or as input_error when the store refused it, which never fails the grade. verifier_settings.trajectory_sources lists each turn the judge read with its format, an ATIF copy's adapter version beside it; the always-on judge lists the formats its staged trajectories read as. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ms it sent, credentials left out Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…it was sent and the host it reached Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s and a URL's userinfo too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…own steps loaded into its sandbox A judge the task deployed (agent_name) grades from what load_artifact put in its sandbox; the input now names those loads as the run recorded them. A file a step wrote by running a command there is recorded nowhere, so isn't listed. Also tests the always-on judge's staged files and guessed trajectory sources. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rade waits for them once Each upload's reference is known at once (its sha256 and key), the puts run beside the judging on their own concurrency, and the step waits for those still running before it writes its grade (VerifierTaskStep.settle, at most 120 s), marking any that failed or hadn't finished input_error. An agent call's input is stored then, after the files staged for it. Staging no longer waits on the object store. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…record's input one type, load records' keys from load_artifact judge_inputs.py holds the background uploads (Uploads, StagingRecorder) and judge_usage the record; a direct call's record takes its input's reference itself; the direct judge drops its per-variant cache, since an upload dedupes by sha256; Uploads.wait cancels what's late, so failed only reads; load_artifact names the keys its loads are recorded under and gives loads_into, which the judge, its prompt and add_skills read; calls() says a record is final once the run settles; AGENTS.md says how the uploads run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at can't be had is input_error, and settling keeps its deadline On the event loop's default pool, slow uploads could take every worker and stall the process's other thread work. Building the store is inside the guard now, so a store without credentials marks the input instead of failing the grade; and an agent call's input encoded at settle waits only until the deadline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
PR 3 of 4 for FD-5929 (G13, judges record how they ran). Each judge call's record now names exactly what the call was sent, and a judge's settings name the trajectory source it read for each turn.
eval show --judge-input(FD-6088) will read both.What a call was sent, stored by sha256. Each record in a grade's
judge_callsgetsinput: {object_url, bytes, sha256}. The object lives underjudge-inputs/<sha256>in the object store, so identical content is stored once: a retried request's input, or a file another run already staged.messages,response_formatandsettings.settingsare the config's[model.params]with the run's effort and thinking budget over them (model_call.sent_params).config show's secret-key rule.extra_headersand any other secret-shaped key are dropped, through tables and lists, unless the value is a number such asmax_tokens. A URL's userinfo is masked.message, a manifest of the files the judge step staged in its sandbox (files), and, for a judge the task deployed (agent_name), what the task's own steps loaded there (loaded).path,object_url,bytes,sha256); one copied from a stored object is named by its URL.loadedis eachload_artifactload into the judge's agent, as the run recorded it: artifact id and version, destination, files (load_artifact.loads_into). This is best effort: a file another step wrote by running a command there (verify_sandbox,run_code) is recorded nowhere, so it isn't listed. On the hub, about 32k of the 48k agent-judge tasks load files into their judge withload_artifact, and about 2.6k more write them with commands.Uploads run in the background (
judge_utils/judge_inputs.py). A reference is known at once from its sha256, so nothing on the judging's path waits for the store:VerifierTaskStep.settle, a new no-op hook in the base, at most 120 s); an agent call's input is stored then, after the files staged for it;input_error, which never fails the grade.Each turn's source.
verifier_settings.trajectory_sourceslists each turn the judge read:turn,format(the stored label, such asclaude-code-stream-jsonoratif/1), and, for an ATIF copy, theadapter_versionthat made it. The always-on judge's turns carry no labels, so it lists the formats its staged trajectories read as, markedguessed.Smaller moves.
_judgedstarts the run's record before staging, so staging records into it.load_artifactnames the keys its loads are recorded under (LOADED_FILE_UNIVERSES, ...), which the judge, its prompt andadd_skillsnow read.Decisions (with Edgar, FD-5929)
verifier_settings, astrajectory_sources. The always-on judge records its guessed formats.judge-inputs/. A failed write is recorded asinput_errorand never fails the grade.Moves a score?
No. This only stores and records.
Cost: measured against main
A benchmark of the same judge workloads on main and on this branch, the model and the A2A judge answered at once so the only difference is this PR's work, against a real S3 bucket in us-west-2 from a laptop (whose round trips are slower than a hub worker's, so these are upper bounds):
The last column waits for every upload with a judge that answers at once; a real judge's own work (seconds to minutes) covers it. Before the uploads moved off the path, the agent judge took 53 to 60 s and always-on staging of 1,500 files 38 to 44 s.
Storage per grade: a direct screenshot judge stores the frames it sends, once per call (about 34 MB for 90 PNG frames at 1280x800; 52 MB for the 10-batch run, since each batch carries the same frames); an agent judge stores its staged text files, once each (about 24 MB for 1,500 always-on files). Last week the hub ran about 1.3k to 2.5k agent-judge runs a day, 10 to 70 always-on runs, and no direct screenshot judges.
Tests
test_judge_inputs_stored.py:input_error, and the judge still grades;judge_settings_wire_test.py: through LiteLLM's real client, the stored input's messages equal what reached the fake endpoint, and its sha256 matches.E2E
Run on an admin VM through the real LiteLLM proxy, behind a logging pass-through that checks each request against its record; every stored input opened from the store and checked against its sha256. This round, on e0ed679 and main e4b20bd side by side, spent about $2.
xhighrefused, the run's override), and two with 28 real desktop screenshots: per-criterion frames on gpt-4.1-mini, and final frames in 3 batches on Claude Haiku. Each stored input holds the images sent.agent-env run), the same grades on main and the branch:judge-agent-effort,judge-agent-trajectory,judge-direct-trajectoryandjudge-task-loadedgrade 1.0 on both;simjudgegrades 0.0 on both, andalways-on-judgedgrades 0.0 on both (its assistant replied to the school for the user, which the rubric forbids).judge-task-loaded, a Claude Code judge the task deploys and fills withcollect_artifactsandload_artifact: its input'sloadednames both loads, the collected outputs at/tmp/agent_workspaceand the reference at/data/reference.always-on-judged, an always-on morning with a trigger-sent school mail, graded byalways_on_agent_verifier: its input lists the 22 files staged for it, each stored; itstrajectory_sourcesare guessed (unknown, 4 trajectories).input_error: ConnectionError); each put 20 s with the grade waiting 5 s (graded,input_error: TimeoutError: still uploading after 5s, the step 5 s longer); every third put refused (graded; the always-on input lists its 31 staged files, 12 markedinput_error).minimal(5), a failed run's cancelled calls landing in the next run's window (chaos-3-166), and a proxy fault the checker took for a store one (chaos-3-165).test_dns_over_udp_answers_every_query_a_client_sends_while_a_slow_nameserver_holds_them_open, a UDP test with a 2 s deadline that fails across PRs today (build(deps): bump the python-minor-and-patch group across 1 directory with 43 updates #845, feat(sandbox-providers): shared VM slots are walled off from each other, and one slot ends without ending the VM #829, feat(computer): snapshot a multi env's computer, for a judge to grade its files #772, fix(clock): computers and clock-following agents declare the times they hold, and the gateway refuses to take the clock outside them #892, feat(agents): Claude Code, Gemini, OpenCode, Letta Code and the proxy give each turn's counts by model #893); the retry passed.Docs
For FD-6446:
inputreference, and what a direct and an agent call store,loadedincluded;trajectory_sources;judge-inputs/objects, uploaded in the background, andinput_error.Part of FD-5929 (G13).
🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no new actionable issues were found.Summary
The PR saves each judge call’s input by content hash and records the trajectory sources the judge read.
Reviews (12) · Last reviewed commit: "fix(verifiers): judge uploads run on thr..." · Reviewed by Greptile