Skip to content

Official Codebase of 3DCodeVerse

Python

Docs: drop pairwise pick, render, cost cache/estimate, the reference diff and the pairwise arena from the lines that described them

gaoypeng89b39b368853
diff --git a/eval/docs/EVAL.md b/eval/docs/EVAL.md
index bee6080b..9c3b9406 100644
--- a/eval/docs/EVAL.md
+++ b/eval/docs/EVAL.md
@@ -7,7 +7,7 @@
How we decide whether the harness (plan → generate → gate → render → judge →
refine) beats raw generation, and whether one backend beats another, without
fooling ourselves. Tools: `bench/run_bench.py`, `bench/compare_backends.py`,
-`codeverse3d.judges.{vlm_judge, pairwise, calibration, metrics}`.
+`codeverse3d.judges.{vlm_judge, calibration, metrics}`.
## 1. Principles
@@ -28,9 +28,8 @@ fooling ourselves. Tools: `bench/run_bench.py`, `bench/compare_backends.py`,
counted.
4. **Stratified batteries.** Prompts are fixed YAML with ids, tiers (easy/medium/hard)
and categories; report per tier, never only the mean.
-5. **Pairwise for preferences.** Absolute scores are coarse; `PairwiseJudge` runs
- both orderings and returns `tie` on disagreement; report win/tie/loss counts with
- confidence.
+5. **Side by side for preferences.** Absolute scores are coarse; the owner compares two
+ arms' renders side by side by hand (`bench/ab_view.py`); there is no pairwise judge.
6. **Cost and time are part of the result.** Every cell records `Usage` (USD, tokens)
and wall time; compare at equal budget where possible.
7. **Reproducibility.** `record.prompt_hashes` (contract/generate/refine; `cookbook` before D107),
@@ -113,7 +112,7 @@ python bench/compare_backends.py --prompts bench/prompts/compare_v1.yaml \
--arms harness:agy:gemini-3.6-flash,harness:agy:gemini-4-argon,oneshot:claude-code,oneshot:codex,oneshot:gemini:gemini-3.8-flash,oneshot+repair:gemini:gemini-3.8-flash \
--judge gemini:gemini-4-argon --out bench/out/compare_v1 [--parallel 3] [--limit N] [--ids a,b]
[--rounds 3] [--loop-judge gemini:gemini-4-argon] [--repair-attempts 2] [--gen-timeout 900]
- [--no-pairwise] [--no-resume] [--report-only]
+ [--no-resume] [--report-only]
```
Arms:
* `harness:<generator-id>` — the full static_object track (rounds ≤ `--rounds`);
@@ -142,18 +141,16 @@ is the harness's `round_input` (`_fixed_eval.fixed_input`), so it is the in-run
same round — clay montage, the GLB for the D48 slice channel, connectivity in the author's frame —
except the checklist, the brief's `must_have`. (N83, 2026-09-24: before that it was hand-built
without clay views or GLB; a fixed-judge score from before then is not comparable with one after —
-re-judge a baseline before comparing.) Then a pairwise
-arena runs every harness arm against every one-shot arm per prompt (both orderings).
+re-judge a baseline before comparing.)
Output under `--out`: `matrix.json`, `results.jsonl` (cells, resume source),
-`pairwise.jsonl`, `cells/<prompt>/<arm>/{run,gen,eval}`, `report.md`, `report.html`.
+`cells/<prompt>/<arm>/{run,gen,eval}`, `report.md`, `report.html`.
`--no-resume` archives a harness cell's `run/` as `run.attempt<N>` and regenerates it
(2026-08-30; before that it dropped the recorded row and then resumed the finished
workspace anyway, so the "fresh" cell re-reported its old score).
Report per arm: mean/median score, pass rate, build-failure rate, per-tier breakdown,
-cost and wall time per prompt; arena: wins/ties/losses with mean confidence. Claim a
-harness advantage only when (a) the fixed-judge mean and pass rate are higher **and**
-(b) the pairwise arena agrees, at comparable or lower cost.
+cost and wall time per prompt. Claim a harness advantage only when the fixed-judge mean
+and pass rate are higher at comparable or lower cost.
Subscription-backed arms (`claude-code`, `codex`) bill no dollars: their USD is a
notional API-rate estimate from the tokens the CLI reports, so report tokens and
@@ -193,9 +190,7 @@ Pending: rerun the parked sol battery, then terra, then luna, then the claude-co
Same battery, same `--judge`, different `--generator` (`single-shot:*`,
`claude-code:*`, `codex:*`, `agy:*`; `gemini-cli:*` was deleted in D103, 2026-10-13 —
Google's models run as `agy:gemini-*`). Report baseline, picked, delta,
-cost, time per tier; optionally feed the picked rounds of two arms through
-`PairwiseJudge.compare(spec, renders_a, renders_b)` (`flywheel pairs` already emits
-cross-backend candidate pairs keyed by prompt hash).
+cost, time per tier; `flywheel pairs` emits cross-backend candidate pairs keyed by prompt hash.
## 6. Judge calibration
@@ -423,7 +418,7 @@ Rules that follow from it:
another did not, re-run the affected cells before putting the two in one table;
* `budget_exhausted` is deliberately *not* excused on the build rate: the provider is
not at fault for a model that cannot finish inside the cap;
-* every journal (`results.jsonl`, `pairwise.jsonl`, the plan-stage rows) is append-only and
+* every journal (`results.jsonl`, the plan-stage rows) is append-only and
read ONE way: `bench/_jsonl.read_jsonl` skips a half-written line with a warning (a killed
driver costs that row, not the file) and `bench/_jsonl.latest` keeps the LAST row per
(prompt, arm) — a resumed or redone cell supersedes its earlier row in every report.
@@ -751,7 +746,7 @@ harness-only `normalisations` field (2542f92).
battery name + git sha of prompts; judge id, rubric name + hash, `n_samples`; per-arm
generator/planner ids; rounds and budget caps; per-tier table (n, mean ± std, pass
-rate, build-fail rate, cost, minutes); pairwise table; number of degraded verdicts
+rate, build-fail rate, cost, minutes); number of degraded verdicts
re-run; **cells dropped as `infra_failed` and `budget_exhausted`, per arm** (§7 — an
omitted drop count is an unreadable table); links to `record.json` / `report.html`
under `bench/out/`.
diff --git a/harness/CLAUDE.md b/harness/CLAUDE.md
index e106cf6c..da0f9fcf 100644
--- a/harness/CLAUDE.md
+++ b/harness/CLAUDE.md
@@ -101,11 +101,11 @@ cd harness
3dcodeverse make "neon rain on a window" --track graphics --language glsl_shader
3dcodeverse make "..." --image ref.png --candidates 3 --rounds 2 --dim height=0.45 --must "three legs" --no-run
3dcodeverse make "..." --no-pick # a run = baseline + --rounds refine rounds (fixed); make then picks a round → deliverable/ unless --no-pick
-3dcodeverse pick <slug> [--by score|pairwise] [--round N] [--judge MODEL] # hand over a round (codeverse3d/addons/select.py)
-3dcodeverse resume <slug> · 3dcodeverse show <slug> [--section status] (`status` = its STATUS section) · 3dcodeverse render <slug> [--mode wire] · 3dcodeverse judge <slug> [--model ... --n 3 --thinking medium]
+3dcodeverse pick <slug> [--round N] # hand over a round (codeverse3d/addons/select.py)
+3dcodeverse resume <slug> · 3dcodeverse show <slug> [--section status] (`status` = its STATUS section) · 3dcodeverse judge <slug> [--model ... --n 3 --thinking medium]
3dcodeverse tools list · 3dcodeverse tools measure --workspace runs/<slug> · 3dcodeverse mcp --workspace runs/<slug>
-3dcodeverse cost <slug> · 3dcodeverse cost --runs-dir ../eval/bench/out/<battery> · 3dcodeverse cost cache <slug>
-3dcodeverse cost prices [--stale] · 3dcodeverse cost estimate gemini:gemini-3.1-pro-preview --in 12000
+3dcodeverse cost <slug> · 3dcodeverse cost --runs-dir ../eval/bench/out/<battery>
+3dcodeverse cost prices [--stale]
3dcodeverse flywheel export runs/ dataset/ [--pack --drop-duplicates --captions-dir d/] · 3dcodeverse flywheel pairs runs/ pairs.jsonl
3dcodeverse flywheel caption <slug> [--out dir] # the gallery is `3dcodeverse gallery build --embed`
3dcodeverse gallery serve [ROOTS...] [--port 8765] [--reload] · 3dcodeverse gallery build --out gallery.html [--embed]
diff --git a/harness/README.md b/harness/README.md
index f06d112a..7faaed18 100644
--- a/harness/README.md
+++ b/harness/README.md
@@ -15,7 +15,7 @@ renders, judges, refines and records every run as data-flywheel material.
the list is `docs/ARCHITECTURE.md` §5.
* **Judging:** rubric VLM judge (default `gemini:gemini-4-argon`, thinking `medium`) on labelled 2×2
montages with binary defect checklists; code-computed scores, floors and caps from
- deterministic gates; pairwise, reference and likeness judges; best-of-N candidates;
+ deterministic gates; reference and likeness judges; best-of-N candidates;
a calibration harness (`addons/calibration.py`).
* **Flywheel:** git-versioned `src/` per round, `record.json`, sample export with
quality tiers + dedupe (+ parquet, tar locators), preference/repair/cross-backend
@@ -48,8 +48,8 @@ codeverse3d/
models/ ChatModel + gemini/anthropic/openai adapters; key-pool retry machine,
streaming with stall detection, IPv4-pinned transport, pricing, health
spatial/ the measurement/render toolbox behind every gate and MCP tool
- judges/ rubric VLM judge on labelled montages, pairwise, reference/likeness
- reference.py a user `--image` against the render: proportion check, mismatch diff
+ judges/ rubric VLM judge on labelled montages, reference/likeness
+ reference.py a user `--image` against the render: proportion check
cost/ append-only ledger, metering, per-block tallies, pre-call estimates
skills/ typed skill routes + materialisation + read telemetry
record/ what every run writes: record.json, deliverable/, telemetry
@@ -86,7 +86,7 @@ python -m pytest tests -q -m "not live"
```
Expected cost and time per track: `docs/RUNBOOK.md` §2. Inspect actual run costs with
-`3dcodeverse cost <slug>` and a call's expected price with `3dcodeverse cost estimate`.
+`3dcodeverse cost <slug>`.
Docs: `docs/INSTALL.md` (install / prerequisites / doctor troubleshooting) ·
`docs/ARCHITECTURE.md` (design + what a run does) · `docs/RUNBOOK.md` (operate / extend) ·
diff --git a/harness/docs/ARCHITECTURE.md b/harness/docs/ARCHITECTURE.md
index b80cd99d..e9be4815 100644
--- a/harness/docs/ARCHITECTURE.md
+++ b/harness/docs/ARCHITECTURE.md
@@ -135,14 +135,14 @@ codeverse3d/
provenance) context.py (per-call > ambient attribution) instrument.py (MeteredChatModel /
MeteredAgent — one row per ChatModel.generate; one session row for a backend that does NOT
meter itself; run_ledger is context-local so parallel batteries work) tally.py (a block's
- money = its ledger rows, its lost seconds → StepTime) guard.py (a call's cost estimated
- before it is sent — `3dcodeverse cost estimate`)
+ money = its ledger rows, its lost seconds → StepTime) guard.py (text_tokens: the
+ ~4 chars/token estimate)
judges/ base.py (JudgeInput; round_input + plan_summary, the ONE payload builder the in-run judge,
`3dcodeverse judge`, calibration and eval all use), rubrics.py + rubrics/*.yaml (defect
checklists, the wire schema, caps and scoring), prompt_builder.py (image prep, montages, the
- judge messages), vlm_judge.py (+ the reference/likeness judges), pairwise.py. No Judge
+ judge messages), vlm_judge.py (+ the reference/likeness judges). No Judge
Protocol: a judge is duck-typed `.judge(JudgeInput) -> Judgment`
- reference.py a user `--image` against the render: proportions and the render-vs-reference mismatch diff
+ reference.py a user `--image` against the render: the proportion check
orchestrator.py the round loop's LIBRARY, not the loop: RoundPolicy, refine-task compilation + grouping,
StageRunner + RunState (resume), BudgetGuard (the clock). The loop itself is
tracks/lifecycle.py:_round_loop → tracks/steps.py:run_round; a best-of-N candidate IS
@@ -167,7 +167,7 @@ codeverse3d/
addons/ optional tools that READ finished runs; outside cli/ nothing imports them
(tests/core/test_addons_boundary.py). dataset/ = export.py, pack.py, pairs.py, refine.py,
captions.py, index.py, sample.py, quality.py (tiers + code fingerprints + duplicate groups)
- — `3dcodeverse flywheel …`; costreport/ = audit.py, report.py, caching.py — `3dcodeverse cost`;
+ — `3dcodeverse flywheel …`; costreport/ = audit.py, report.py — `3dcodeverse cost`;
calibration.py (judge repeatability over recorded runs); skill_targets.py (measured targets
+ claims per skill bundle); select.py (round_rows / pick / summarise / package: which round
of a finished run to hand over — `3dcodeverse pick`, and `3dcodeverse make` after the run)
@@ -189,7 +189,7 @@ codeverse3d/
codeverse3d/skills/ is what an AGENT chooses to read; a file that tries to be both is the
bug this split prevents
cli/ main.py (app wiring, make/resume/mcp + the doctor/tools/gallery commands), inspect_cmd.py
- (render/judge on one existing run), layout_cmd.py (THE single-run view: `show` = STATUS /
+ (judge on one existing run), layout_cmd.py (THE single-run view: `show` = STATUS /
DELIVERABLE / QUALITY EVIDENCE / COST & SETTINGS; `status` = `show --section status`),
flywheel_cmd.py, cost_cmd.py (`3dcodeverse cost`), skills_cmd.py (`3dcodeverse skills
list|show|validate|report`)
@@ -292,8 +292,7 @@ GLB on the two vertical centre planes, red hatch only on the gate's ERROR penetr
appended after the montages with a factual rig-text block. A clean round's payload is
byte-identical to the unconditional one (test-pinned).
-`PairwiseJudge` (position-swapped, tie on disagreement; only `3dcodeverse pick --by pairwise` asks
-it); `ReferenceJudge` for image-conditioned specs. Rubrics (pass threshold 0.70 unless named):
+`ReferenceJudge` for image-conditioned specs. Rubrics (pass threshold 0.70 unless named):
`static_object` (0.72), `articulated` (requires pose views: the `missing_pose_sheet` cap), `scene`
(placement caps floating 0.60 / sunken 0.65 / interpenetration 0.70 / scale 0.75 / free_exempt
0.75 measured by `scene_placement`, frame-gate caps dark/blown/flat/content_small, graded
@@ -398,7 +397,7 @@ the shader-traps skill). `scene_probe` also holds the scene draw budget: the ce
## 8. Cost and time
`docs/RUNBOOK.md` §2 gives expected cost and time per track. `3dcodeverse cost <slug>` prints a
-run's recorded spend, `3dcodeverse cost estimate` a call's expected price.
+run's recorded spend.
## 9. Known limits
diff --git a/harness/docs/RUNBOOK.md b/harness/docs/RUNBOOK.md
index 17de1af9..9743ef27 100644
--- a/harness/docs/RUNBOOK.md
+++ b/harness/docs/RUNBOOK.md
@@ -125,16 +125,15 @@ bookmarked. `--reload` re-scans on every page load (a run with no `record.json`
*pending*, a half-written one as *broken*). The server binds `127.0.0.1` unless you pass
`--host` and never serves a path outside the declared roots.
-## 5. Resume, re-render, re-judge, export
+## 5. Resume, re-judge, export
New runs and standalone calibration default to `gemini:gemini-4-argon` with thinking
-`medium`. Existing runs retain the judge model in `record.spec.backends.judge`: `resume`,
-`judge` and `pick --by pairwise` use that model by default. `resume` has no `--judge`
+`medium`. Existing runs retain the judge model in `record.spec.backends.judge`: `resume` and
+`judge` use that model by default. `resume` has no `--judge`
override. Thinking still comes from the current `judge.thinking` setting (default `medium`),
-not the recorded model; `judge --thinking` overrides it for that call. `pick --by score`
+not the recorded model; `judge --thinking` overrides it for that call. `pick`
uses the recorded scores without calling a judge. To re-judge an old run with Argon, use
-`3dcodeverse judge <slug> --model gemini:gemini-4-argon --thinking medium`. For a pairwise
-pick with Argon, use `3dcodeverse pick <slug> --by pairwise --judge gemini:gemini-4-argon`.
+`3dcodeverse judge <slug> --model gemini:gemini-4-argon --thinking medium`.
```bash
3dcodeverse resume <slug> [--candidates N] [--no-pick]
@@ -146,13 +145,11 @@ pick with Argon, use `3dcodeverse pick <slug> --by pairwise --judge gemini:gemin
# recorded stage never runs again; `resume --force` regenerates the stages:
# it archives the round journal + record.json to rounds/pre_force/ and the
# run starts again at round 0
-3dcodeverse pick <slug> [--by score|pairwise] [--round N] [--judge MODEL]
+3dcodeverse pick <slug> [--round N]
# hand over a round: deliverable/ + selection.json. score = rounds
# without a project:* / contract_fixed ERROR first, then highest
- # effective score, ties → fewer gate errors → the earlier round; pairwise =
- # the pairwise judge between the top two when within 0.03 (same tier); --round N = that
- # round. `make`/`resume` run `pick --by score` for you
-3dcodeverse render <slug> [--mode shaded|wire|normals|clay|silhouette] [--out dir]
+ # effective score, ties → fewer gate errors → the earlier round; --round N = that
+ # round. `make`/`resume` run `pick` for you
3dcodeverse judge <slug> [--round N] [--rubric static_object] [--model gemini:gemini-4-argon] [--n 3] [--thinking off|low|medium|high]
# re-judges a round's recorded renders → artifacts/judge/rNN_cli.json
3dcodeverse tools list [--cards] · 3dcodeverse tools measure --workspace runs/<slug> · 3dcodeverse tools gl_frames --workspace … --json '{"times":[0,1,2.5]}'