Official Codebase of 3DCodeVerse
Python
bench: coupled_v1 two arms — who decides that a mechanism has one input
ziyaob05f5a8b39ed
diff --git a/harness/bench/data/coupled/README.md b/harness/bench/data/coupled/README.mdnew file mode 100644index 00000000..7008a8a0--- /dev/null+++ b/harness/bench/data/coupled/README.md@@ -0,0 +1,45 @@+# `coupled_v1`, two arms: who decides that a mechanism has one input++Ten one-input linkages (`bench/prompts/coupled_v1.yaml`), baseline round only+(`--rounds 0`), one arm per tree, run one after the other on 2026-09-04.++* **mimic** — the branch as it ships: `JointPlan.mimic` exists, the plan prompt asks a+ one-input mechanism to declare its coupling, the skeleton emits `<mimic>`.+* **nomimic** — the same tree with two edits and nothing else: the `mimic` field typed to+ `None` so the planner cannot fill it, and the paragraph that asks for it removed from+ `prompts/tracks/plan_articulated.j2`.++ python bench/coupling_stats.py <mimic_dir> <nomimic_dir> --per-prompt+ python bench/paired_compare.py <mimic_dir> --against <nomimic_dir>++| readout | mimic | nomimic |+|---|--:|--:|+| prompts whose URDF declares a coupling | **10 / 10** | **3 / 10** |+| URDFs left with a single degree of freedom | 8 / 10 | 3 / 10 |+| movable joints (median) → driven per sampled pose | 6 → 1 | 7 → 1 (of the three) |+| `joint_sweep` rounds failed | 5 / 10 | 4 / 10 |+| `joint_sweep` ERROR findings per round | 2.60 | 2.30 |+| fixed-judge score, 9 paired prompts | 0.248 | 0.254 |+| paired Δ | \-0.006, 95 % CI [\-0.193, +0.181], 4/5/0, sign p = 1.000 | |+| cost | \$23.48 | \$18.90 |++**The score says nothing, as designed.** Nine pairs against an A/A band of ±0.13 cannot+resolve anything smaller than a landslide, and the per-prompt deltas (−0.446 … +0.404)+have exactly the shape of noise. The battery was run for the mechanical readout.++**The mechanical difference is structural**: asked for the coupling, the planner declares+it every time and eight of ten mechanisms come out with one degree of freedom; not asked,+three do.++**The three are the interesting part.** `nomimic`'s couplings are not the planner's —+they cannot be, the field is gone — they are the AGENT's, written by hand into+`robot.urdf`, whose contract still documents `<mimic>`. It supplied one for the umbrella,+the venetian blind and the step ladder: the three most textbook one-input mechanisms on+the battery, and nothing else. So making the coupling a plan field is not teaching the+model a concept it lacks; it is turning something it volunteers only in the obvious cases+into a question it has to answer every time.++**What this does not show.** Whether the poses the sampler now avoids were ever the+reason a mechanism scored badly: the `joint_sweep` gate fails at the same rate in both+arms (5/10 vs 4/10, 26 vs 23 ERROR findings). The gate finds overlaps in reachable poses+just as it found them in unreachable ones.diff --git a/harness/bench/data/coupled/base_mimic.jsonl b/harness/bench/data/coupled/base_mimic.jsonlnew file mode 100644index 00000000..821bc77b--- /dev/null+++ b/harness/bench/data/coupled/base_mimic.jsonl@@ -0,0 +1,10 @@+{"id":"cpl_scissor_lift","tier":"hard","category":"mechanism","score_baseline":0.0,"score_final":0.0,"passed":false,"rounds":1,"cost_usd":2.046801775,"minutes":8.29,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/integrate/harness/bench/out/coupled_base_mimic/runs/cpl_scissor_lift","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_umbrella","tier":"hard","category":"mechanism","score_baseline":0.682,"score_final":0.682,"passed":false,"rounds":1,"cost_usd":1.10275575,"minutes":11.39,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/integrate/harness/bench/out/coupled_base_mimic/runs/cpl_umbrella","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_venetian_blind","tier":"medium","category":"mechanism","score_baseline":0.75,"score_final":0.75,"passed":false,"rounds":1,"cost_usd":1.67074525,"minutes":10.58,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/integrate/harness/bench/out/coupled_base_mimic/runs/cpl_venetian_blind","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_step_ladder","tier":"medium","category":"mechanism","score_baseline":0.354,"score_final":0.354,"passed":false,"rounds":1,"cost_usd":2.0633575,"minutes":7.61,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/integrate/harness/bench/out/coupled_base_mimic/runs/cpl_step_ladder","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_drafting_arm","tier":"medium","category":"mechanism","score_baseline":0.203,"score_final":0.203,"passed":false,"rounds":1,"cost_usd":3.6388767499999997,"minutes":18.99,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/integrate/harness/bench/out/coupled_base_mimic/runs/cpl_drafting_arm","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_folding_pram","tier":"hard","category":"mechanism","score_baseline":0.054,"score_final":0.054,"passed":false,"rounds":1,"cost_usd":2.90184525,"minutes":15.84,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/integrate/harness/bench/out/coupled_base_mimic/runs/cpl_folding_pram","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_treadle_drive","tier":"hard","category":"mechanism","score_baseline":0.247,"score_final":0.247,"passed":false,"rounds":1,"cost_usd":2.8752312499999997,"minutes":19.76,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/integrate/harness/bench/out/coupled_base_mimic/runs/cpl_treadle_drive","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_garage_door","tier":"hard","category":"mechanism","score_baseline":0.273,"score_final":0.273,"passed":false,"rounds":1,"cost_usd":0.11285565,"minutes":39.0,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/integrate/harness/bench/out/coupled_base_mimic/runs/cpl_garage_door","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_folding_table_leg","tier":"medium","category":"mechanism","score_baseline":0.114,"score_final":0.114,"passed":false,"rounds":1,"cost_usd":1.8381480000000001,"minutes":8.64,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/integrate/harness/bench/out/coupled_base_mimic/runs/cpl_folding_table_leg","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_pantograph_mirror","tier":"hard","category":"mechanism","score_baseline":0.236,"score_final":0.236,"passed":false,"rounds":1,"cost_usd":5.23356225,"minutes":40.19,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/integrate/harness/bench/out/coupled_base_mimic/runs/cpl_pantograph_mirror","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}diff --git a/harness/bench/data/coupled/base_nomimic.jsonl b/harness/bench/data/coupled/base_nomimic.jsonlnew file mode 100644index 00000000..336f1def--- /dev/null+++ b/harness/bench/data/coupled/base_nomimic.jsonl@@ -0,0 +1,10 @@+{"id":"cpl_umbrella","tier":"hard","category":"mechanism","score_baseline":null,"score_final":null,"passed":null,"rounds":1,"cost_usd":0.6969937500000001,"minutes":4.66,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/mimic-off/harness/bench/out/coupled_base_nomimic/runs/cpl_umbrella","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_venetian_blind","tier":"medium","category":"mechanism","score_baseline":0.346,"score_final":0.346,"passed":false,"rounds":1,"cost_usd":0.609038175,"minutes":5.96,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/mimic-off/harness/bench/out/coupled_base_nomimic/runs/cpl_venetian_blind","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_scissor_lift","tier":"hard","category":"mechanism","score_baseline":0.034,"score_final":0.034,"passed":false,"rounds":1,"cost_usd":2.50278525,"minutes":15.74,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/mimic-off/harness/bench/out/coupled_base_nomimic/runs/cpl_scissor_lift","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_step_ladder","tier":"medium","category":"mechanism","score_baseline":0.268,"score_final":0.268,"passed":false,"rounds":1,"cost_usd":3.66165325,"minutes":13.48,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/mimic-off/harness/bench/out/coupled_base_nomimic/runs/cpl_step_ladder","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_drafting_arm","tier":"medium","category":"mechanism","score_baseline":0.181,"score_final":0.181,"passed":false,"rounds":1,"cost_usd":4.221377749999999,"minutes":20.77,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/mimic-off/harness/bench/out/coupled_base_nomimic/runs/cpl_drafting_arm","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_garage_door","tier":"hard","category":"mechanism","score_baseline":0.282,"score_final":0.282,"passed":false,"rounds":1,"cost_usd":2.697989,"minutes":11.07,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/mimic-off/harness/bench/out/coupled_base_nomimic/runs/cpl_garage_door","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_folding_pram","tier":"hard","category":"mechanism","score_baseline":0.5,"score_final":0.5,"passed":false,"rounds":1,"cost_usd":2.542234025,"minutes":16.57,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/mimic-off/harness/bench/out/coupled_base_nomimic/runs/cpl_folding_pram","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_treadle_drive","tier":"hard","category":"mechanism","score_baseline":0.444,"score_final":0.444,"passed":false,"rounds":1,"cost_usd":0.14905924999999998,"minutes":37.27,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/mimic-off/harness/bench/out/coupled_base_nomimic/runs/cpl_treadle_drive","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_pantograph_mirror","tier":"hard","category":"mechanism","score_baseline":0.01,"score_final":0.01,"passed":false,"rounds":1,"cost_usd":0.16150925,"minutes":42.39,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/mimic-off/harness/bench/out/coupled_base_nomimic/runs/cpl_pantograph_mirror","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}+{"id":"cpl_folding_table_leg","tier":"medium","category":"mechanism","score_baseline":0.222,"score_final":0.222,"passed":false,"rounds":1,"cost_usd":1.6609526000000001,"minutes":8.64,"status":"plateau","errors":"","workspace":"/home/ziyao/workspace/3dcodeverse/local/worktrees/mimic-off/harness/bench/out/coupled_base_nomimic/runs/cpl_folding_table_leg","generator":"gemini-cli:gemini-3.7-flash","judge":"gemini:gemini-3.1-pro-preview"}diff --git a/harness/docs/PAPER_WRITING.md b/harness/docs/PAPER_WRITING.mdindex f334cf7f..822d328d 100644--- a/harness/docs/PAPER_WRITING.md+++ b/harness/docs/PAPER_WRITING.md@@ -292,6 +292,36 @@ properties of the file):**8 of 14 prompts** declared a coupling at all (98 of 176 built URDFs); across those themedian goes **6 → 3** driven joints, and 24 URDFs are fully one-input.+**A battery built for the question** (`coupled_v1`, ten one-input linkages, 2026-09-04)+separates what the planner does from what the agent does. Plan stage alone, 200 calls:+196 valid plans, **zero** planning losses, **193 declare a coupling**; the strict+one-input mechanisms collapse to a single degree of freedom and the branching ones (a+pram's fold hinge driving handle, seat back and two leg pairs) declare 3 of 8. Then two+build-and-judge arms, baseline round only, differing by two edits — the `mimic` field+typed to `None` so the planner cannot fill it, and the paragraph asking for it removed+from the plan prompt (`bench/data/coupled/`):++| readout | planner may declare | planner may not |+|---|--:|--:|+| URDFs declaring a coupling | **10 / 10** | **3 / 10** |+| left with one degree of freedom | 8 / 10 | 3 / 10 |+| `joint_sweep` rounds failed | 5 / 10 | 4 / 10 |+| ERROR findings per round | 2.60 | 2.30 |+| fixed-judge score (9 pairs) | 0.248 | 0.254, Δ −0.006 [−0.193, +0.181], **unsupported** |++Three things follow. The **score cannot resolve it** — nine pairs against an A/A band of+±0.13, exactly as §2 predicts, and the battery was not run for that. The **mechanical+difference is structural**. And the three couplings in the second arm are **the agent's,+not the planner's**: the field is gone, so it wrote `<mimic>` into `robot.urdf` by hand —+for the umbrella, the venetian blind and the step ladder, the three most textbook+mechanisms on the battery, and nothing else. Making the coupling a plan field is not+teaching a concept the model lacks; it turns something it volunteers in the obvious cases+into a question it answers every time.++What this still does not show: the `joint_sweep` gate fails at the same rate in both arms,+so the poses the sampler now avoids are not demonstrably the ones that were costing+score.+**What did NOT move: the sweep gate's own failure rate.** On those eight prompts the`joint_sweep` gate fails 30 % of the rounds with couplings declared (11 of 37,`wave2_lean`) against 31 % without them (12 of 39, `aa_articulated`; `ab_fewer_turns` 19 %@@ -445,8 +475,10 @@ data the repo does not carry; they are marked in the caveat column.for the prompts or find a judge-free readout for each.* **The judge is one model.** No cross-judge check has been run (it needs a non-Gemini key).`judge_prompt_hash` makes the comparison auditable but does not remove the dependence.-* **The mimic result is mechanical, not scored.** A battery of coupled mechanisms (say 10- prompts, all one-input) would let the pose count and the score be read together.+* ~~**The mimic result is mechanical, not scored.**~~ Answered 2026-09-04: `coupled_v1`+ is that battery, and the score still cannot resolve it (9 pairs, Δ −0.006, CI ±0.19).+ What the battery did produce is the planner/agent split in §5.3 — the agent supplies a+ coupling for 3 of 10 one-input mechanisms on its own, the planner for 10 of 10.* **The static regression in wave 2 is confounded** by the api-agent → gemini-cli change; aclean static before/after on one generator has not been run.* **The refine corpus has not been trained on.** 112 samples is a probe, not a training set;