{"data":{"kind":"file","path":"README.md","version_id":"o0kqzunrola0q2fpa9jok2o4","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":4974,"modified_at":"1980-01-02T00:00:00","content_hash":"218d0e029dcacb6a72c20f6e71d3039fc2d16518bcfb0164c849faa24404b5b2"},"entries":[],"content":"# judge-c-construction\n\nJudge-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](https://github.com/ritchwoodj-code/judge-c/blob/main/evals/task-manifest.csv) lists. A deterministic Python grader in `grader.py` scores each result. The source, docs and evidence live at [github.com/ritchwoodj-code/judge-c](https://github.com/ritchwoodj-code/judge-c).\n\n## Tools\n\nThe agent gets 5 tools and no others, as the [preflight report](https://github.com/ritchwoodj-code/judge-c/blob/main/evals/preflight/report.md) states. A per-task colocated `vf.Toolset` serves them, and the `null` harness keeps them as the agent's whole interface.\n\n- `read_file` reads a text file inside the task workspace.\n- `write_file` writes a text file inside the task workspace and nowhere else.\n- `sql_query` runs a read-only SQL statement on the project database.\n- `api_get` sends a GET request to the document-control API.\n- `api_post` sends a JSON POST request to the document-control API.\n\nThe 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.\n\n## Templates\n\nEach template tests one document-control job that a construction administrator does by hand.\n\n| ID | Trade | What the agent does |\n|---|---|---|\n| 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. |\n| 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. |\n| T03 | All | It closes the RFIs an addendum answers, cites that addendum, and leaves the other RFIs open. |\n| T04 | Electrical receptacles | It checks change-order quantities and unit prices against the counts table, then flags math and quantity errors. |\n| T05 | Doors and hardware | It checks each door's hardware set against the submittal, and fire-rated doors need closers. |\n| T06 | Elevators | It checks a submittal against the spec where an addendum overrides spec values. |\n| T07 | Pumps | It checks each pump's duty point in GPM, feet of head and horsepower against the schedule, converting units. |\n| T08 | All | It finds overdue submittals by spec review period and posts reminders, recovering from rate limits. |\n| T09 | Multi-trade | It follows an addendum's room renumbering and maps every affected schedule item to its final room. |\n| T10 | Closeout | It lists the required O&M and warranty documents still missing and files an RFI for each one. |\n\n## Install\n\nYou 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.\n\n```\ncd environments/judge_c_construction\nuv sync\nuv run pytest tests\n```\n\n## Run\n\nYou run Judge-C locally with `vf-run` and the Docker runtime:\n\n```\nvf-run judge-c-construction -m <model> -n <tasks> -r <rollouts> --env.agent.runtime.type docker\n```\n\nYou run a hosted evaluation with `prime eval run` and its required `--hosted` flag:\n\n```\nprime eval run judge-c-construction --hosted -m <model> -n <tasks> -r <rollouts>\n```\n\nThe hosted command needs the environment published on the Prime Environments Hub. It also needs a Prime balance or a provider API key.\n\n## Scoring\n\nA task passes only when its outcome score equals exactly 1.0, as the [validation report](https://github.com/ritchwoodj-code/judge-c/blob/main/validation/report.md) 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.\n\n- T01 and T04 credit the corrected numbers, then add the Jaccard overlap of the conflict or flag sets.\n- T02, T05, T06 and T07 credit each correct in-scope submittal and penalize each out-of-scope submittal the agent touched.\n- T03 credits each correct close and penalizes each RFI the agent wrongly closed.\n- T08 credits each cited reminder for an overdue submittal and penalizes each reminder for one that isn't overdue.\n- T09 scores the Jaccard overlap of the room mapping sets.\n- T10 credits the missing-document list and each cited RFI, and penalizes each RFI for a received document.\n\nThe repo's [grader doc](https://github.com/ritchwoodj-code/judge-c/blob/main/docs/grader.md) gives every formula in full. The [validation report](https://github.com/ritchwoodj-code/judge-c/blob/main/validation/report.md) grades 49 answers, 29 good and 20 bad. The grader misses 0 of 49 answers after the fixes, as the [validation report](https://github.com/ritchwoodj-code/judge-c/blob/main/validation/report.md) records.\n","encoding":"utf-8","truncated":false,"total_bytes":4974},"status":null}