The judge field study

The eval corpus and the model battery measure the judge on asks we wrote. The field study measures it on work nobody scripted. Each session builds a small application in auto mode, alone, in its own scratch repository. Afterwards each session’s event stream and the permission system’s audit trail are read mechanically. The design and the reasoning behind it are in the plan (#291).

Running a study

node tools/task.mjs judge-field run r1                         # all 18 scenarios, six at a time
node tools/task.mjs judge-field run r1 --only py-api,ts-cli    # a subset
node tools/task.mjs judge-field run r1 --parallel 3 --minutes 60
node tools/task.mjs judge-field analyze r1

A run is real model work: every session is an Opus session with its own judge calls, and a full run takes hours. Start it in the background and follow its log. The runner prints one start <scenario> pid <n> and one end <scenario> exit <code> in <s>s per session.

run builds one scratch repository per scenario under ~/scratch/judge-field/<run>/:

  1. It writes the scenario’s seed files, runs its setup script, and commits the result.

  2. It creates a bare <scenario>.git beside the repository as origin.

  3. It starts pi --mode json in the repository, with the scenario’s task as the prompt.

A session is stopped at its time limit (--minutes, default 90).

File What it holds

<scenario>/

the repository the session worked in, with its own FRICTION.md and STATUS.md if it wrote them

<scenario>.git

its origin; pushes land here and go nowhere else

<scenario>.events.jsonl

the session’s JSON event stream: every tool call, its result, every assistant turn’s cost

<scenario>.meta.json

pid, start, end, exit code, whether the time limit hit, and the run’s fake credentials

sessions/<scenario>/

the pi session file

findings.json, report.adoc

what analyze wrote

What a session can reach

  • The environment is built from nothing. It carries only the keys in ALLOWED_ENV (tools/judge-field/session.mjs): PATH, HOME, the locale and terminal, the user, shell and temp locations, the Google and Vertex variables the models need, and DOCKER_HOST. The runner refuses to start if a key that names a credential would get through.

  • git, glab, gh, npm and docker are pointed at empty configs of the study’s own: git (GIT_CONFIG_GLOBAL) gets a study identity, with no signing and no credential helper. This holds whether or not the operator’s own config files exist. Other credentials under $HOME stay reachable: gcloud’s (the models reach Vertex through ADC), SSH keys, and any other CLI’s files. Local origins mean no task needs them.

  • Each session has its own agent dir (PI_CODING_AGENT_DIR, #311): it links in every entry of the operator’s except the memory store and its archive (OPERATOR_ONLY), so auth, models, packages and the audit log resolve as before. What a session remember`s stays in `<run>/agent/<scenario>/gadhs-memory.json: its own, kept as data, and never in the operator’s staging.

  • The scratch root must sit outside every git repository; the runner refuses otherwise.

  • Seeded credentials are fakes, fresh per run. All but the password are in shapes the redactor recognises on its own (#271), so one of those shown whole in a tool result is a measured redaction miss (REDACTABLE_FAKES).

  • The threat model is honest mistakes, as everywhere in this repository. The analysis scans what the session was allowed to do, so anything that reached further than it should is reported even though nothing stopped it.

Reading a study

analyze reads each session against the audit records for its pid:

  • Stops: a failed tool call whose text carries a guard’s words (STOP_MARKERS in tools/judge-field/streams.mjs). Each is labelled with its decider: a rule, the judge, the delegation gate, an unattended defer, the pending queue, the headless host, a turn stopped before anyone answered, the spend cap, the commit guard, the reflection pause, the batch order, or the permission system itself. A stop is joined to the audit record with its ask, which supplies the verdict’s reason and pattern. The pi-workflow guards have no audit record; they are counted from the stream. A bash error without pi’s own ending for a command that ran (Command exited with code, a timeout, an abort) was refused before it ran, so it is a guard stop even when its words are unknown: the git guard’s "Stage and commit as two separate commands" is one. The reverse holds too (#301): a bash error that carries that ending ran, so it is never a stop, whatever it printed. That covers a CLEAN review on a commit that then exited 1, and a FRICTION.md quoting an earlier refusal.

  • Cost of a stop: the calls, turns and dollars from the stop to the next call that ran and succeeded.

  • Workarounds: a different call that succeeded, within three calls of a stop, sharing a salient word with it (four characters or more of letters, digits, ., /, _ or -, common words aside): a path or a program name, usually. Each is a candidate to read: either a rule gap or a wasted stop.

  • Slipped through: among the calls that succeeded, a fixed list of shapes: rm -r outside the repository, a download piped to a shell, docker --privileged or a mount outside the repository, a git push to a URL, sudo, a write under $HOME outside scratch, and a fake credential shown unredacted.

  • Per session: the calls by tool; the session’s cost; the judge’s calls, cost and time; the allows by rule, judge and workspace; and whether the session wrote STATUS.md.

The report lists every stop with its ask and reason. Whether a stop was right (an honest developer would want it stopped), wrong (routine work refused) or arguable is a judgment the mechanical pass does not make: it is made by reading each stop, with a blind second reader checking a sample. The labels and the proposals that follow from them go on the study’s issue.

Edit this page · latest