judge-c-construction
Judge-C is a public AI-evaluation environment for construction document control. An agent works inside a Dockerized document-control app and acts only through its tools. The agent completes 50 procedurally generated tasks from 10 templates, as the task manifest lists. A deterministic Python grader in grader.py scores each result. The source, docs and evidence live at github.com/ritchwoodj-code/judge-c.
Tools
The agent gets 5 tools and no others, as the preflight report states. A per-task colocated vf.Toolset serves them, and the null harness keeps them as the agent's whole interface.
read_filereads a text file inside the task workspace.write_filewrites a text file inside the task workspace and nowhere else.sql_queryruns a read-only SQL statement on the project database.api_getsends a GET request to the document-control API.api_postsends a JSON POST request to the document-control API.
The API pages its lists, and a seeded fault schedule injects rate limits, server errors and stale reads. The container's network policy denies all outbound traffic from the task.
Templates
Each template tests one document-control job that a construction administrator does by hand.
| ID | Trade | What the agent does |
|---|---|---|
| T01 | Mechanical terminal units | It reconciles an access-panel proposal against the equipment schedule, room schedule and ceiling types, then reports the corrected count, price and conflicts. |
| T02 | Fire alarm | It checks a device submittal against the spec for type, candela and mounting, then approves or rejects each item with reason codes. |
| T03 | All | It closes the RFIs an addendum answers, cites that addendum, and leaves the other RFIs open. |
| T04 | Electrical receptacles | It checks change-order quantities and unit prices against the counts table, then flags math and quantity errors. |
| T05 | Doors and hardware | It checks each door's hardware set against the submittal, and fire-rated doors need closers. |
| T06 | Elevators | It checks a submittal against the spec where an addendum overrides spec values. |
| T07 | Pumps | It checks each pump's duty point in GPM, feet of head and horsepower against the schedule, converting units. |
| T08 | All | It finds overdue submittals by spec review period and posts reminders, recovering from rate limits. |
| T09 | Multi-trade | It follows an addendum's room renumbering and maps every affected schedule item to its final room. |
| T10 | Closeout | It lists the required O&M and warranty documents still missing and files an RFI for each one. |
Install
You install the package inside Linux or WSL with a user-level uv. The package needs Python >=3.12,<3.14 and verifiers>=0.4.1 to install.
cd environments/judge_c_construction
uv sync
uv run pytest tests
Run
You run Judge-C locally with vf-run and the Docker runtime:
vf-run judge-c-construction -m <model> -n <tasks> -r <rollouts> --env.agent.runtime.type docker
You run a hosted evaluation with prime eval run and its required --hosted flag:
prime eval run judge-c-construction --hosted -m <model> -n <tasks> -r <rollouts>
The hosted command needs the environment published on the Prime Environments Hub. It also needs a Prime balance or a provider API key.
Scoring
A task passes only when its outcome score equals exactly 1.0, as the validation report states. The grader in grader.py scores every check as an exact fraction and compares prices as integer cents. A cite gates a hit, but a missing cite never hides a wrong action. The list below gives each template's formula in short form.
- T01 and T04 credit the corrected numbers, then add the Jaccard overlap of the conflict or flag sets.
- T02, T05, T06 and T07 credit each correct in-scope submittal and penalize each out-of-scope submittal the agent touched.
- T03 credits each correct close and penalizes each RFI the agent wrongly closed.
- T08 credits each cited reminder for an overdue submittal and penalizes each reminder for one that isn't overdue.
- T09 scores the Jaccard overlap of the room mapping sets.
- T10 credits the missing-document list and each cited RFI, and penalizes each RFI for a received document.
The repo's grader doc gives every formula in full. The validation report grades 49 answers, 29 good and 20 bad. The grader misses 0 of 49 answers after the fixes, as the validation report records.