Skip to content

Official Codebase of 3DCodeVerse

Python

docs: keep the working set, retire the dated satellites

gaoypeng3c05081f6b91
diff --git a/harness/bench/teaser/build_media.py b/harness/bench/teaser/build_media.py
deleted file mode 100644
index ea680b07..00000000
--- a/harness/bench/teaser/build_media.py
+++ /dev/null
@@ -1,114 +0,0 @@
-"""Copy + downscale the curated teaser stills into bench/out/teaser/site/media."""
-from __future__ import annotations
-
-import json
-import os
-import shutil
-from pathlib import Path
-
-from PIL import Image
-
-HARNESS = Path(__file__).resolve().parents[2]
-R = HARNESS / "bench/out/teaser/runs"
-TT = HARNESS / "bench/out/teaser/turntables"
-# Turntables for the four Blender heroes (bench/teaser/render_turntables.py writes them here).
-ASSET_TT = Path(os.environ.get("TEASER_ASSET_TURNTABLES", str(TT / "assets")))
-OUT = HARNESS / "bench/out/teaser/site/media"
-OUT.mkdir(parents=True, exist_ok=True)
-
-def jpg(src: Path, name: str, maxw: int = 1280, q: int = 88) -> None:
- im = Image.open(src).convert("RGB")
- if im.width > maxw:
- im = im.resize((maxw, round(im.height * maxw / im.width)), Image.LANCZOS)
- im.save(OUT / f"{name}.jpg", quality=q, optimize=True, progressive=True)
-
-def gif(src: Path, name: str) -> None:
- shutil.copy2(src, OUT / f"{name}.gif")
-
-# ---- static objects -------------------------------------------------------
-OBJ = {
- "penny_farthing": ("tsr_obj_penny_farthing", "r01", "view_left.png"),
- "arcade": ("tsr_tjs_arcade_cabinet", "r00", "view_low_front_left.png"),
- "lighthouse": ("tsr_obj_lighthouse", "r02", "view_low_front_left.png"),
- "gramophone": ("tsr_obj_gramophone", "r00", "view_front_right_34.png"),
- "radial": ("tsr_cad_radial_engine_v2", "r02", "view_front_right_34.png"),
- "chandelier": ("tsr_tjs_deco_chandelier_v2", "r02", "view_front_right_34.png"),
-}
-for name, (slug, rnd, view) in OBJ.items():
- d = R / slug / "artifacts" / "renders" / rnd
- jpg(d / view, name, 900)
- jpg(d / "sheet.png", f"{name}_sheet", 1400)
-
-for name, slug in [("penny_farthing", "tsr_obj_penny_farthing"), ("arcade", "tsr_tjs_arcade_cabinet"),
- ("lighthouse", "tsr_obj_lighthouse"), ("gramophone", "tsr_obj_gramophone"),
- ("radial", "tsr_cad_radial_engine_v2"), ("chandelier", "tsr_tjs_deco_chandelier_v2")]:
- src = TT / f"{slug}.gif"
- if src.is_file():
- gif(src, f"tt_{name}")
-
-# ---- articulated ----------------------------------------------------------
-rc = R / "tsr_art_roll_cabinet"
-jpg(rc / "deliverable/hero_cascade.png", "rollcab", 900)
-jpg(rc / "artifacts/renders/r00/sheet.png", "rollcab_sheet", 1400)
-jpg(rc / "deliverable/articulation_sheet.png", "rollcab_art", 1400)
-gif(rc / "deliverable/joint_sweep.gif", "tt_rollcab")
-
-ck = R / "tsr_art_grandfather_clock_v2"
-jpg(ck / "deliverable/hero_door_open.png", "clock", 900)
-jpg(ck / "artifacts/renders/r01/sheet.png", "clock_sheet", 1400)
-jpg(ck / "deliverable/motion_strip.png", "clock_strip", 1400)
-gif(ck / "deliverable/joint_motion.gif", "tt_clock")
-
-# ---- scenes ---------------------------------------------------------------
-SCN = {
- "temple": ("tsr_scn_temple_night_v2", "r01",
- [("Establishing_t0.png", "a"), ("Establishing_t1p5.png", "b"),
- ("CenserDetail_t0.png", "censer"), ("BridgeEye_t0.png", "bridge")]),
- "boat": ("tsr_scn_boat_workshop_v2", "r03",
- [("Establishing_t0.png", "a"), ("Establishing_t1p5.png", "b"),
- ("WorkbenchEye_t0.png", "bench"), ("SkiffDetail_t0.png", "skiff"),
- ("StoveCornerDetail_t0.png", "stove")]),
- "alley": ("tsr_scn_neon_alley_v2", "r04",
- [("Establishing_t0.png", "a"), ("Establishing_t1p5.png", "b"),
- ("LowAngleReflections_t0.png", "low"), ("SignDetail_t0.png", "sign")]),
-}
-for key, (slug, rnd, shots) in SCN.items():
- d = R / slug / "artifacts" / "renders" / rnd
- for fn, tag in shots:
- jpg(d / fn, f"{key}_{tag}", 1024)
- jpg(d / "sheet.png", f"{key}_sheet", 1400)
-
-# ---- graphics -------------------------------------------------------------
-GFX = {
- "aurora": ("tsr_gfx_aurora_ridge_v3", "r00", "frame_t02.50.png"),
- "murmur": ("tsr_ogl_murmuration", "r03", "frame_t01.00.png"),
- "accretion": ("tsr_gfx_accretion_disc", "r01", "frame_t02.50.png"),
- "rain": ("tsr_gfx_rain_window", "r00", "frame_t02.50.png"),
-}
-for name, (slug, rnd, frame) in GFX.items():
- d = R / slug / "artifacts" / "renders" / rnd
- jpg(d / frame, name, 1100)
- jpg(d / "sheet.png", f"{name}_strip", 1400)
- gif(R / slug / "deliverable" / "preview.gif", f"tt_{name}")
-
-# ---- blender heroes (multi-language panel) --------------------------------
-ASSETS = {
- "lantern": ("tsr_scn_temple_night_v2", "stone_lantern"),
- "censer": ("tsr_scn_temple_night_v2", "bronze_censer"),
- "skiff": ("tsr_scn_boat_workshop_v2", "clinker_skiff"),
- "stove": ("tsr_scn_boat_workshop_v2", "potbelly_stove"),
-}
-sizes = {}
-for name, (slug, snake) in ASSETS.items():
- d = R / slug / "_assets" / snake / "artifacts" / "renders" / "r00" / "assets" / snake
- jpg(d / "view_front_right_34.png", f"asset_{name}", 700)
- jpg(d / "sheet.png", f"asset_{name}_sheet", 1400)
- g = ASSET_TT / f"{snake}.gif"
- if g.is_file():
- gif(g, f"tt_asset_{name}")
- sizes[name] = (R / slug / "public" / "assets" / f"{snake}.glb").stat().st_size
-
-(OUT.parent / "asset_glb_sizes.json").write_text(json.dumps(sizes, indent=1))
-tot = sum(p.stat().st_size for p in OUT.iterdir())
-print(f"{len(list(OUT.iterdir()))} files, {tot/1e6:.1f} MB")
-print(json.dumps(sizes))
diff --git a/harness/bench/teaser/build_page.py b/harness/bench/teaser/build_page.py
deleted file mode 100644
index 151afcdb..00000000
--- a/harness/bench/teaser/build_page.py
+++ /dev/null
@@ -1,473 +0,0 @@
-"""Render docs/teaser.html from content.py. Run: python bench/teaser/build_page.py"""
-from __future__ import annotations
-
-import html
-import sys
-from pathlib import Path
-
-sys.path.insert(0, str(Path(__file__).parent))
-from content import ARTIC, GFX, LEAD, ML_ASSETS, SCENES, STATIC, M # noqa: E402
-
-OUT = Path(__file__).resolve().parents[2] / "docs" / "teaser.html"
-
-def esc(s: str) -> str:
- return html.escape(s, quote=False)
-
-def chips(langs):
- return "".join(f'<span class="chip">{esc(x)}</span>' for x in langs)
-
-def verdict_badge(v, score):
- cls = "ok" if v == "reads" else "mid"
- word = "reads" if v == "reads" else "usable"
- return (f'<span class="verdict {cls}"><b>{word}</b>'
- f'<span class="score">judge {score:.3f}</span></span>')
-
-def viewer(card_id, media):
- tabs, panes = [], []
- for i, (kind, name, label) in enumerate(media):
- act = " on" if i == 0 else ""
- tabs.append(f'<button class="tab{act}" data-t="{card_id}-{i}">{esc(label)}</button>')
- ext = "gif" if kind == "gif" else "jpg"
- src = f"{M}{name}.{ext}"
- attr = "data-src" if kind == "gif" else "src" # GIFs are heavy: fetch on demand
- img = f'<img {attr}="{src}" alt="{esc(label)}" loading="lazy">'
- panes.append(f'<figure class="pane{act}" id="{card_id}-{i}">{img}</figure>')
- return (f'<div class="viewer" data-card="{card_id}">'
- f'<div class="tabs">{"".join(tabs)}</div>'
- f'<div class="stage">{"".join(panes)}</div></div>')
-
-def card(c, kind="object"):
- rerun = f'<span class="chip warn">{esc(c["rerun"])}</span>' if c.get("rerun") else ""
- if kind == "scene":
- shots = "".join(
- f'<figure class="shot"><img src="{M}{n}.jpg" alt="{esc(cap)}" loading="lazy">'
- f'<figcaption>{esc(cap)}</figcaption></figure>' for n, cap in c["shots"])
- sn, sl = c["sheet"]
- media_block = (
- f'<div class="shots">{shots}</div>'
- f'<details class="sheetwrap"><summary>Contact sheet — {esc(sl)}</summary>'
- f'<img data-src="{M}{sn}.jpg" alt="contact sheet" loading="lazy"></details>')
- else:
- media_block = viewer(c["id"], c["media"])
- return f'''
-<article class="card" id="c-{c['id']}">
- <div class="card-media">{media_block}</div>
- <div class="card-body">
- <h3>{esc(c['title'])}</h3>
- <div class="chips">{chips(c['langs'])}{rerun}</div>
- {verdict_badge(c['verdict'], c['score'])}
- <details class="prompt"><summary>prompt</summary><p>{esc(c['prompt'])}</p></details>
- <p class="note">{c['note']}</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>{esc(c['gen'])}</dd></div>
- <div><dt>run</dt><dd>{esc(c['rounds'])} · {esc(c['mins'])}</dd></div>
- <div><dt>slug</dt><dd><code>{esc(c['slug'])}</code></dd></div>
- </dl>
- </div>
-</article>'''
-
-def asset_tile(a):
- flag = ('<span class="pill ok">in scene from the GLB</span>' if a["verified"]
- else '<span class="pill warn">GLB not used in scene</span>')
- return f'''
-<div class="asset{'' if a['verified'] else ' caveat'}">
- <div class="asset-pics">
- <img src="{M}asset_{a['key']}.jpg" alt="{esc(a['name'])}" loading="lazy" class="still">
- <img data-src="{M}tt_asset_{a['key']}.gif" alt="{esc(a['name'])} turntable" loading="lazy" class="turn">
- </div>
- <h4>{esc(a['name'])} {flag}</h4>
- <p>{esc(a['desc'])}</p>
- <ul class="files">
- <li><span>bpy</span><code>{esc(a['src'])}</code></li>
- <li><span>glb</span><code>{esc(a['glb'])}</code>&nbsp;<span class="kb">{a['kb']}&nbsp;KB</span></li>
- <li><span>js</span><code>{esc(a['use'])}</code></li>
- </ul>
- <details class="sheetwrap"><summary>the object on its own · 8 views</summary>
- <img data-src="{M}asset_{a['key']}_sheet.jpg" alt="{esc(a['name'])} contact sheet" loading="lazy">
- </details>
-</div>'''
-
-HEAD = '''<!doctype html>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width,initial-scale=1">
-<title>3dcodeverse — teaser</title>
-<style>
-:root{
- --bg:#08090c; --bg2:#0d0f14; --surface:#11141a; --line:#1e222c; --line2:#2a3040;
- --fg:#e7e9ef; --dim:#98a0b0; --dim2:#6b7385;
- --amber:#f2a94b; --cyan:#5ed2e4; --green:#6fd08c; --pink:#ff5fa8;
- --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
- --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;
-}
-*{box-sizing:border-box}
-html{scroll-behavior:smooth}
-body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.6 var(--sans);
- -webkit-font-smoothing:antialiased;overflow-x:hidden}
-img{max-width:100%;display:block}
-code{font-family:var(--mono);font-size:.85em;color:var(--cyan)}
-a{color:var(--amber)}
-.wrap{max-width:1240px;margin:0 auto;padding:0 28px}
-
-/* ---- nav ---- */
-nav{position:sticky;top:0;z-index:40;background:rgba(8,9,12,.86);
- backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
-nav .wrap{display:flex;align-items:center;gap:26px;height:54px}
-nav .mark{font-weight:800;letter-spacing:-.03em;font-size:15px}
-nav .mark i{color:var(--amber);font-style:normal}
-nav a{color:var(--dim);text-decoration:none;font:500 12.5px/1 var(--mono);
- letter-spacing:.06em;text-transform:uppercase}
-nav a:hover{color:var(--fg)}
-nav .sp{flex:1}
-
-/* ---- masthead ---- */
-header{padding:96px 0 56px;position:relative;overflow:hidden}
-header::before{content:"";position:absolute;inset:-40% -20% auto -20%;height:120%;
- background:radial-gradient(60% 60% at 30% 0%,rgba(242,169,75,.13),transparent 70%),
- radial-gradient(50% 50% at 80% 20%,rgba(94,210,228,.10),transparent 70%);
- pointer-events:none}
-header .wrap{position:relative}
-h1{margin:0;font-size:clamp(44px,7.4vw,96px);line-height:.94;letter-spacing:-.045em;
- font-weight:820}
-h1 em{font-style:normal;color:var(--amber)}
-.kicker{font:600 12px/1 var(--mono);letter-spacing:.22em;text-transform:uppercase;
- color:var(--dim2);margin:0 0 22px}
-.lede{max-width:66ch;margin:26px 0 0;font-size:19px;color:var(--dim)}
-.lede b{color:var(--fg);font-weight:600}
-.stats{display:flex;flex-wrap:wrap;gap:0;margin:44px 0 0;border-top:1px solid var(--line);
- border-bottom:1px solid var(--line)}
-.stats div{flex:1 1 130px;padding:18px 22px 16px;border-right:1px solid var(--line)}
-.stats div:last-child{border-right:0}
-.stats b{display:block;font-size:30px;font-weight:750;letter-spacing:-.03em}
-.stats span{font:500 11px/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--dim2)}
-
-/* ---- sections ---- */
-section{padding:76px 0 8px}
-.shead{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;
- border-top:1px solid var(--line2);padding-top:20px;margin-bottom:34px}
-.shead h2{margin:0;font-size:30px;letter-spacing:-.03em;font-weight:760}
-.shead p{margin:0;color:var(--dim2);font:500 12px/1.5 var(--mono);letter-spacing:.06em;
- text-transform:uppercase}
-.shead .num{font:700 12px/1 var(--mono);color:var(--amber);letter-spacing:.14em}
-
-/* ---- cards ---- */
-.card{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(0,1fr);gap:36px;
- padding:34px 0 40px;border-bottom:1px solid var(--line)}
-.card:last-child{border-bottom:0}
-.card-body h3{margin:0 0 12px;font-size:25px;letter-spacing:-.025em;font-weight:720}
-.chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
-.chip{font:600 11px/1 var(--mono);letter-spacing:.05em;padding:6px 9px;border-radius:3px;
- background:#161a22;border:1px solid var(--line2);color:var(--cyan)}
-.chip.warn{color:var(--amber);border-color:#3a2f1c;background:#1a1610}
-.verdict{display:inline-flex;align-items:center;gap:10px;margin-bottom:16px;
- font:700 11px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;
- padding:7px 11px;border-radius:3px}
-.verdict.ok{background:rgba(111,208,140,.10);color:var(--green);border:1px solid rgba(111,208,140,.3)}
-.verdict.mid{background:rgba(242,169,75,.10);color:var(--amber);border:1px solid rgba(242,169,75,.32)}
-.verdict .score{color:var(--dim2);letter-spacing:.08em;font-weight:500}
-.note{color:var(--dim);font-size:15px;margin:0 0 18px}
-.note b{color:var(--fg)}
-details.prompt{margin:0 0 18px;border-left:2px solid var(--line2);padding-left:14px}
-details.prompt summary{cursor:pointer;font:600 11px/1 var(--mono);letter-spacing:.14em;
- text-transform:uppercase;color:var(--dim2);list-style:none}
-details.prompt summary::-webkit-details-marker{display:none}
-details.prompt summary::before{content:"▸ ";color:var(--amber)}
-details.prompt[open] summary::before{content:"▾ "}
-details.prompt p{margin:12px 0 2px;font-size:14px;color:var(--dim);font-style:italic}
-dl.meta{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:13px 26px;
- border-top:1px solid var(--line);padding-top:14px}
-dl.meta div{min-width:0}
-dl.meta dt{font:600 10px/1.6 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--dim2)}
-dl.meta dd{margin:0;font:500 11.8px/1.6 var(--mono);color:var(--dim);
- word-break:normal;overflow-wrap:anywhere}
-
-/* ---- viewer ---- */
-.viewer{position:sticky;top:74px}
-.tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
-.tab{font:600 10.5px/1 var(--mono);letter-spacing:.09em;text-transform:uppercase;
- padding:8px 11px;border-radius:3px;border:1px solid var(--line2);background:transparent;
- color:var(--dim2);cursor:pointer;transition:.14s}
-.tab:hover{color:var(--fg);border-color:#3a4356}
-.tab.on{background:var(--fg);color:#0a0b0e;border-color:var(--fg)}
-.stage{background:var(--bg2);border:1px solid var(--line);border-radius:5px;overflow:hidden}
-.pane{margin:0;display:none}
-.pane.on{display:block}
-.pane img{width:100%;cursor:zoom-in}
-
-/* ---- scene shots ---- */
-.shots{display:grid;grid-template-columns:1fr 1fr;gap:10px}
-.shots .shot:first-child,.shots .shot:nth-child(2){grid-column:span 1}
-.shot{margin:0;background:var(--bg2);border:1px solid var(--line);border-radius:5px;overflow:hidden}
-.shot img{width:100%;cursor:zoom-in}
-.shot figcaption{font:600 10.5px/1.5 var(--mono);letter-spacing:.06em;color:var(--dim2);
- padding:8px 10px;border-top:1px solid var(--line)}
-details.sheetwrap{margin-top:12px}
-details.sheetwrap summary{cursor:pointer;font:600 10.5px/1 var(--mono);letter-spacing:.12em;
- text-transform:uppercase;color:var(--dim2);padding:9px 0}
-details.sheetwrap img{border:1px solid var(--line);border-radius:5px;margin-top:8px}
-
-/* ---- lead ---- */
-.lead{border:1px solid var(--line2);border-radius:8px;background:
- linear-gradient(180deg,rgba(242,169,75,.045),transparent 40%);padding:0 30px}
-.lead .card{border-bottom:0}
-.lead-tag{font:700 11px/1 var(--mono);letter-spacing:.22em;text-transform:uppercase;
- color:var(--amber);padding:22px 0 0}
-
-/* ---- multi-language panel ---- */
-#multilang{background:
- radial-gradient(70% 100% at 50% 0%,rgba(94,210,228,.07),transparent 70%),var(--bg2);
- border-top:1px solid var(--line2);border-bottom:1px solid var(--line2);
- margin-top:70px;padding:70px 0 78px}
-.pipe{display:flex;align-items:stretch;gap:0;flex-wrap:wrap;margin:30px 0 46px;
- border:1px solid var(--line2);border-radius:6px;overflow:hidden}
-.pipe .step{flex:1 1 200px;padding:20px 22px;border-right:1px solid var(--line2);
- background:var(--surface)}
-.pipe .step:last-child{border-right:0}
-.pipe .n{font:700 10px/1 var(--mono);letter-spacing:.2em;color:var(--amber);display:block;margin-bottom:9px}
-.pipe .step h5{margin:0 0 6px;font-size:15px;font-weight:680;letter-spacing:-.01em}
-.pipe .step p{margin:0;font-size:13px;color:var(--dim2);line-height:1.55}
-.pipe .step code{font-size:11.5px}
-.assets{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
-.asset{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:14px}
-.asset.caveat{border-color:#3a2f1c;background:#14110d}
-.asset-pics{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}
-.asset-pics img{background:#0a0b0e;border-radius:4px;cursor:zoom-in}
-.asset h4{margin:0 0 8px;font-size:15px;font-weight:700;letter-spacing:-.01em;
- display:flex;flex-wrap:wrap;gap:8px;align-items:center}
-.pill{font:600 9.5px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;
- padding:4px 7px;border-radius:3px}
-.pill.ok{background:rgba(111,208,140,.12);color:var(--green)}
-.pill.warn{background:rgba(242,169,75,.14);color:var(--amber)}
-.asset p{margin:0 0 12px;font-size:13.5px;color:var(--dim);line-height:1.55}
-ul.files{list-style:none;margin:0;padding:10px 0 0;border-top:1px solid var(--line)}
-ul.files li{display:flex;gap:9px;font-size:11.5px;line-height:1.7;align-items:baseline}
-ul.files span{font:700 9.5px/1.7 var(--mono);letter-spacing:.1em;text-transform:uppercase;
- color:var(--dim2);min-width:26px}
-ul.files .kb{min-width:0;white-space:nowrap;text-transform:none;letter-spacing:0;
- font-weight:500;color:var(--dim2)}
-ul.files code{color:var(--dim);word-break:normal;overflow-wrap:anywhere;line-height:1.65}
-.inscene{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:34px}
-.inscene figure{margin:0;background:var(--surface);border:1px solid var(--line);
- border-radius:6px;overflow:hidden}
-.inscene img{cursor:zoom-in}
-.inscene figcaption{padding:12px 14px;font-size:13px;color:var(--dim);line-height:1.5}
-.inscene figcaption b{display:block;font:700 10px/1.6 var(--mono);letter-spacing:.12em;
- text-transform:uppercase;color:var(--cyan);margin-bottom:4px}
-.caveatbox{margin-top:30px;border-left:2px solid var(--amber);padding:4px 0 4px 18px;
- color:var(--dim);font-size:14.5px;max-width:82ch}
-.caveatbox b{color:var(--amber)}
-
-/* ---- footer ---- */
-footer{border-top:1px solid var(--line2);margin-top:78px;padding:56px 0 90px;color:var(--dim2)}
-footer h4{margin:0 0 12px;font-size:16px;color:var(--fg);font-weight:700}
-.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:38px}
-footer ul{margin:0;padding-left:18px;font-size:14px;line-height:1.75}
-footer li b{color:var(--dim)}
-footer p{font-size:14px;line-height:1.7;margin:0 0 12px}
-footer pre{background:var(--surface);border:1px solid var(--line);border-radius:5px;
- padding:13px 15px;overflow-x:auto;font-family:var(--mono);font-size:12px;color:var(--dim)}
-
-/* ---- lightbox ---- */
-#lb{position:fixed;inset:0;z-index:100;background:rgba(5,6,8,.96);display:none;
- align-items:center;justify-content:center;padding:26px;cursor:zoom-out}
-#lb.on{display:flex}
-#lb img{max-width:100%;max-height:100%;object-fit:contain;border-radius:4px}
-
-@media(max-width:920px){
- .card{grid-template-columns:1fr;gap:22px}
- .viewer{position:static}
- .wrap{padding:0 18px}
- .lead{padding:0 16px}
- header{padding:60px 0 40px}
-}
-</style>
-'''
-
-def build() -> str:
- p = [HEAD]
- a = p.append
-
- # nav
- a('''<nav><div class="wrap">
- <span class="mark">3dcodeverse<i>.</i></span>
- <a href="#multilang">multi-language</a>
- <a href="#static">objects</a>
- <a href="#artic">articulated</a>
- <a href="#scenes">scenes</a>
- <a href="#gfx">graphics</a>
- <span class="sp"></span>
- <a href="#notes">what is not here</a>
-</div></nav>''')
-
- # masthead
- a('''<header><div class="wrap">
- <p class="kicker">a language model writes the code · the harness builds, measures and renders it</p>
- <h1>Fifteen things<br>made out of <em>raw 3D code</em>.</h1>
- <p class="lede">No mesh generator, no asset store, no SDK. Every artefact on this page is a model writing
- <b>ordinary source</b> — Blender <code>bpy</code>, CadQuery, three.js, URDF, GLSL, Python OpenGL — into a
- workspace with spatial tools, then looking at its own renders and fixing what it sees. The harness owns the
- build, the gates, the eight canonical cameras and the judge. <b>Every caption below is honest about what is
- still wrong.</b></p>
- <div class="stats">
- <div><b>15</b><span>artefacts shown</span></div>
- <div><b>6</b><span>languages</span></div>
- <div><b>4</b><span>tracks</span></div>
- <div><b>2</b><span>generators</span></div>
- <div><b>1</b><span>scene proving bpy → GLB → three.js</span></div>
- </div>
-</div></header>''')
-
- # lead
- a('<div class="wrap"><div class="lead"><p class="lead-tag">the lead</p>')
- a(card(LEAD))
- a('</div></div>')
-
- # ---- multi-language panel ----
- a('''<section id="multilang"><div class="wrap">
- <div class="shead"><span class="num">01</span><h2>One scene, three languages</h2>
- <p>bpy → glb → three.js + glsl</p></div>
- <p class="lede" style="margin-top:-14px">This is the thing a single-language pipeline cannot show. Two hero props
- per scene are authored as <b>real Blender Python</b> in their own sub-workspace, with their own plan, their own
- agent session and their own eight-view review. The harness compiles each to <b>GLB</b>. A separate three.js
- session then loads those GLBs and composes them into a scene whose water, sky, sunbeams and particles are
- <b>hand-written GLSL</b>. Below: the assets alone, then the same assets inside the assembled frame.</p>
-
- <div class="pipe">
- <div class="step"><span class="n">01 · PYTHON</span><h5>Blender bpy</h5>
- <p>A per-asset agent session writes <code>bmesh</code> geometry and Principled BSDF materials in
- <code>_assets/&lt;name&gt;/src/model.py</code>, and reviews its own renders before finishing.</p></div>
- <div class="step"><span class="n">02 · BINARY</span><h5>GLB</h5>
- <p>The harness runs Blender headless, takes a census and exports
- <code>artifacts/object.glb</code>, then copies it to <code>public/assets/&lt;name&gt;.glb</code>.</p></div>
- <div class="step"><span class="n">03 · JAVASCRIPT</span><h5>three.js</h5>
- <p><code>src/scene.js</code> loads each GLB with <code>loaders.gltf.loadAsync</code> and the zone modules
- clone it into place beside procedural trees, bridges, benches and racks.</p></div>
- <div class="step"><span class="n">04 · GLSL</span><h5>Shaders</h5>
- <p>Raw vertex/fragment pairs in <code>src/shaders/</code> drive the pond, the sky and the volumetric
- sunbeams, each with a live <code>uTime</code> uniform the render rig samples at two times.</p></div>
- </div>
-
- <div class="assets">''')
- for asset in ML_ASSETS:
- a(asset_tile(asset))
- a('''</div>
-
- <div class="inscene">
- <figure><img src="''' + M + '''temple_censer.jpg" alt="censer in scene" loading="lazy">
- <figcaption><b>Blender in the frame</b>The BronzeCenser GLB, lit by its own charcoal glow inside the
- three.js temple courtyard. Pierced dome, ring handles and relief band all survive the trip through
- glTF — the best single detail frame in the wave.</figcaption></figure>
- <figure><img src="''' + M + '''temple_bridge.jpg" alt="pond shader" loading="lazy">
- <figcaption><b>GLSL in the frame</b>The custom pond <code>ShaderMaterial</code>
- (<code>src/shaders/water.js</code>, uniforms <code>uTime/uDeep/uShallow/uSunDir</code>) carrying the
- lantern flames as long warm reflection streaks, with three StoneLantern GLB instances along the path.
- </figcaption></figure>
- <figure><img src="''' + M + '''boat_stove.jpg" alt="stove in scene" loading="lazy">
- <figcaption><b>Both at once</b>The PotbellyStove GLB in the workshop corner — bellied cast iron from bpy,
- the flue and the hot door glow from three.js, and the hazy shafts from
- <code>VolumetricSunbeamShader</code>.</figcaption></figure>
- </div>
-
- <p class="caveatbox"><b>Verified, and one caveat.</b> Nothing in the harness enforces asset kind, so this was
- checked by hand rather than trusted. In the temple, both heroes are genuine end to end:
- <code>plan.json → assets[].kind = blender_glb</code>, the GLBs exist, and
- <code>src/assets/stone_lantern.js</code> is a loader that <i>throws</i> if the GLB is missing. In the boat
- workshop, PotbellyStove is genuine — but <b>ClinkerSkiff is not</b>: the GLB is authored, compiled and still
- loaded at <code>src/scene.js:12</code>, yet <code>src/zones/central_bay.js:59</code> calls a
- <i>procedural</i> three.js rebuild that a refine round wrote over the asset slot, so the hull you see in the
- workshop frames is JavaScript, not Blender. The standalone skiff card above is the real bpy asset. Filed as a
- defect; the temple is the clean demonstration.</p>
-</div></section>''')
-
- def section(anchor, num, title, sub, cards, kind="object"):
- a(f'<section id="{anchor}"><div class="wrap"><div class="shead">'
- f'<span class="num">{num}</span><h2>{title}</h2><p>{sub}</p></div>')
- for c in cards:
- a(card(c, kind))
- a('</div></section>')
-
- section("static", "02", "Static objects", "blender · cadquery · three.js", STATIC)
- section("artic", "03", "Articulated", "urdf + blender · joints that move", ARTIC)
- section("scenes", "04", "Scenes", "three.js + glsl · authored cameras at two times", SCENES, "scene")
- section("gfx", "05", "Graphics", "glsl fragment shaders · python opengl", GFX)
-
- # footer
- a('''<footer id="notes"><div class="wrap">
- <div class="cols">
- <div>
- <h4>What is not on this page</h4>
- <ul>
- <li><b>Espresso portafilter (CadQuery)</b> — rated <i>no</i> and left out. Two attempts; the second is
- better geometry (the perforated basket resolves, the lugs became tabs) but the body is still flat
- white on stubby legs. The cause is structural: the CadQuery track's only material channel is
- <code>cq.Color(r,g,b)</code>, so "polished stainless" is unreachable by construction, and its texture
- pass produced zero textures. A third attempt would fail the same way.</li>
- <li><b>Ten superseded attempts</b> — the first radial engine, the first chandelier, the first clock, the
- first temple / workshop / alley, two extra rain windows, two extra auroras and a second accretion disc.
- Each is on disk; each lost to the version shown here, and the caption of the winner says why.</li>
- <li><b>mp4 turntables</b> — ffmpeg is not installed on this machine, so every motion clip here is an
- animated GIF via the PIL fallback. Nothing about the harness requires that.</li>
- <li><b>Scene textures</b> — tileable texture packs were generated for two scenes and could not be wired
- in without re-planning the passing run.</li>
- </ul>
- </div>
- <div>
- <h4>How to read the score</h4>
- <p>The number on each card is the harness judge (<code>gemini-3.1-pro-preview</code>, falling back to
- flash × 3), and on this page it is a <b>filter, not the point</b> — it decided whether a piece was worth
- looking at, and then a human looked. Two cards ship at a <i>lower</i> judged score than the run they
- replace, because the higher-scoring run did not contain the thing the prompt was chosen for. The temple
- courtyard is the sharpest case: the washed-out first attempt scored 0.729 and the correct-looking night
- scored 0.286.</p>
- <h4 style="margin-top:26px">Regenerate</h4>
- <pre>pip install -e harness
-cd harness
-3dcv bench run bench/prompts/teaser_v1_static.yaml \\
- --generator gemini-cli:gemini-3.6-flash
-3dcv render &lt;slug&gt; # 8 canonical views
-3dcv texture pass &lt;slug&gt; # text-to-image material pass
-python -m http.server -d . 8931 # this page: /docs/teaser.html</pre>
- <p>Prompt sheets: <code>bench/prompts/teaser_v1_{static,articulated,scene,graphics}.yaml</code> —
- the sharpened re-runs are in the same files, suffixed <code>_v2</code> / <code>_v3</code>.
- Full method notes: <code>docs/TEASER.md</code>.</p>
- </div>
- </div>
-</div></footer>
-
-<div id="lb"><img alt=""></div>
-<script>
-// lazy panes: only fetch a tab's image when it is first shown (the GIFs are heavy)
-function show(el){ if(el && el.dataset.src){ el.src = el.dataset.src; delete el.dataset.src; } }
-document.querySelectorAll('.viewer').forEach(v=>{
- v.querySelectorAll('.tab').forEach(t=>t.addEventListener('click',()=>{
- v.querySelectorAll('.tab').forEach(x=>x.classList.remove('on'));
- v.querySelectorAll('.pane').forEach(x=>x.classList.remove('on'));
- t.classList.add('on');
- const pane = document.getElementById(t.dataset.t);
- pane.classList.add('on'); show(pane.querySelector('img'));
- }));
-});
-// everything else: load when it scrolls near
-const io = new IntersectionObserver((es)=>es.forEach(e=>{
- if(e.isIntersecting){ show(e.target); io.unobserve(e.target); }
-}),{rootMargin:'400px'});
-document.querySelectorAll('img[data-src]').forEach(i=>{
- if(!i.closest('.pane')) io.observe(i);
-});
-document.querySelectorAll('details').forEach(d=>d.addEventListener('toggle',()=>{
- if(d.open) d.querySelectorAll('img[data-src]').forEach(show);
-}));
-// lightbox
-const lb = document.getElementById('lb'), lbi = lb.querySelector('img');
-document.addEventListener('click',e=>{
- const t = e.target;
- if(t.tagName==='IMG' && t.closest('.pane,.shot,.asset-pics,.inscene,.sheetwrap')){
- lbi.src = t.currentSrc || t.src; lb.classList.add('on');
- } else if(t.closest('#lb')){ lb.classList.remove('on'); lbi.removeAttribute('src'); }
-});
-addEventListener('keydown',e=>{ if(e.key==='Escape'){ lb.classList.remove('on'); lbi.removeAttribute('src'); }});
-</script>''')
- return "\n".join(p)
-
-OUT.parent.mkdir(parents=True, exist_ok=True)
-OUT.write_text(build(), encoding="utf-8")
-print(f"{OUT} {OUT.stat().st_size/1024:.0f} KB")
diff --git a/harness/bench/teaser/content.py b/harness/bench/teaser/content.py
deleted file mode 100644
index 3fdec497..00000000
--- a/harness/bench/teaser/content.py
+++ /dev/null
@@ -1,328 +0,0 @@
-"""Curated teaser content — one entry per shipped artefact."""
-
-M = "../bench/out/teaser/site/media/"
-
-LEAD = dict(
- id="penny", title="Penny-farthing", slug="tsr_obj_penny_farthing",
- langs=["Blender · bpy"], gen="codex:gpt-5.6-sol", score=0.863, verdict="reads",
- rounds="2 rounds", mins="31 min", track="static_object",
- prompt="a Victorian penny-farthing bicycle: a very tall spoked front wheel, a small rear wheel, "
- "a curved backbone frame, a sprung leather saddle above the front hub, pedals on the front "
- "hub, curved handlebars and polished brass fittings",
- note="Kept as the first run. The spoke web is pure line art and the silhouette reads instantly from "
- "all eight canonical views; both wheels sit on the ground, nothing floats or explodes. "
- "<b>Honest miss:</b> the saddle and grips came out fire-engine red instead of tan leather, so the "
- "promised black-lacquer / brass / leather trio reads black / brass / <i>red</i>. The text-to-image "
- "texture pass ran and was correctly <i>refused</i> (Δ overall −0.290, materials 0.7 → 0.2) — what you "
- "see is <code>object.glb</code> with the raw bpy materials.",
- media=[("img", "penny_farthing", "hero · left elevation"),
- ("gif", "tt_penny_farthing", "turntable · 36 frames"),
- ("img", "penny_farthing_sheet", "8 canonical views")],
-)
-
-STATIC = [
- dict(id="arcade", title="Arcade cabinet", slug="tsr_tjs_arcade_cabinet",
- langs=["three.js"], gen="gemini-cli:gemini-3.6-flash", score=0.948, verdict="reads",
- rounds="1 round", mins="34 min",
- prompt="an upright 1980s arcade cabinet: a sloped control panel with a ball-top joystick and six "
- "buttons, a recessed CRT screen behind a bezel, a glowing backlit marquee, a speaker grille, "
- "side art panels, a coin door and T-molding trim",
- note="Best card in the lane and it landed on the first try — no refine round, no re-run. Sloped panel "
- "with ball-top stick and six buttons, recessed CRT behind a bezel, backlit marquee, saturated "
- "pink/cyan side art, coin door, red T-molding down both cabinet edges. Poster-bright, and it "
- "reads at thumbnail size from every angle. <b>Nits:</b> the marquee and CRT are authored emissive "
- "but the shaded render rig draws them as flat bright colour rather than glowing, and the speaker "
- "holes do not resolve. The plain black back and top are correct for a real cabinet.",
- media=[("img", "arcade", "hero · low front left"), ("gif", "tt_arcade", "turntable"),
- ("img", "arcade_sheet", "8 canonical views")]),
- dict(id="lighthouse", title="Coastal lighthouse", slug="tsr_obj_lighthouse",
- langs=["Blender · bpy", "text-to-image texture"], gen="gemini-cli:gemini-3.6-flash",
- score=0.7277, verdict="reads", rounds="3 rounds", mins="51 min",
- prompt="a coastal lighthouse on a rock plinth: a tapered stone tower with painted bands, a corbelled "
- "gallery with a railing, a glazed lantern room with a fresnel lens and a domed copper roof with "
- "a weathervane, and a keeper's door at the base",
- note="<b>The only piece in the whole wave where <code>--texture</code> paid.</b> The generated "
- "<code>weathered_granite_rock</code> map on the stepped plinth cleared the ship gate at "
- "Δ +0.065, so this card is rendered from <code>object_textured.glb</code>. Tapered banded tower, "
- "corbelled gallery with a full baluster railing, a brass fresnel drum visible inside the glazed "
- "lantern room, verdigris copper dome with weathervane. <b>Nits:</b> the winning round shows two "
- "white bands where an earlier round had three, and the coral/white livery is a touch cartoonish.",
- media=[("img", "lighthouse", "hero · low front left"), ("gif", "tt_lighthouse", "turntable"),
- ("img", "lighthouse_sheet", "8 canonical views")]),
- dict(id="gramophone", title="Wind-up gramophone", slug="tsr_obj_gramophone",
- langs=["Blender · bpy"], gen="gemini-cli:gemini-3.6-flash", score=0.75, verdict="reads",
- rounds="1 round", mins="48 min",
- prompt="an antique wind-up gramophone: a big flared brass horn on an elbow, an oak case with a felted "
- "turntable and a shellac record, a curved tonearm with a sound box, a crank handle on the side "
- "and turned feet",
- note="The horn flare is the reason this prompt was picked, and it delivered: a continuous specular "
- "sweep that travels across the bell as the turntable spins. Oak case with a moulded lip and four "
- "turned feet, green felt platter, black shellac record with a red centre label, curved tonearm "
- "with sound box, side crank — four distinct materials in one frame, and the horn does not "
- "intersect the case. <b>Nits:</b> the brass is a pale greenish gold rather than warm polished "
- "brass, and the case reads pine-pale rather than dark oak. Texture pass refused (Δ −0.371).",
- media=[("img", "gramophone", "hero · front right ¾"), ("gif", "tt_gramophone", "turntable"),
- ("img", "gramophone_sheet", "8 canonical views")]),
- dict(id="radial", title="Radial aero engine", slug="tsr_cad_radial_engine_v2",
- langs=["CadQuery"], gen="codex:gpt-5.6-sol", score=0.60, verdict="usable",
- rounds="3 rounds", mins="65 min", rerun="second attempt",
- prompt="a five-cylinder radial aero engine displayed on a low steel stand, in the correct museum "
- "orientation: ONE cylinder points straight UP at top dead centre and the other four are at 72 "
- "degree steps, so there is NO cylinder pointing straight down and the engine sits clear of the "
- "ground on its stand. A dark grey machined steel crankcase carries a bolted circular front cover "
- "and a splined propeller hub on the axis; each of the five barrels is a pale satin aluminium tube "
- "wrapped in evenly pitched square cooling fins, capped by a domed head with a black rocker cover; "
- "a slim brass pushrod tube lies flush along the front of each barrel from the crankcase to its "
- "rocker cover; a short polished steel exhaust stub leaves each head, all five swept the same way "
- "around the ring.",
- note="<b>Shown honestly as <i>usable</i>, not <i>reads</i>.</b> The first attempt scored the same 0.60 and "
- "was a broken picture — one barrel buried straight down through the ground plane, exhaust stubs "
- "reading as detached sticks, no stand, all grey. The sharpened re-run above added the museum "
- "orientation, an explicit stand, flush pushrods and a four-colour call-out, and now the star, the "
- "evenly-pitched fins, the black rocker covers and the splined prop hub all read from every view — "
- "<i>at the same judged score</i>. The remaining flaw is structural, not a bad draw: the CadQuery "
- "track's only material channel is <code>cq.Color(r,g,b)</code>, with no metalness, so the "
- "\"polished steel\" exhaust stubs render bone-white and the crankcase face is a flat grey disc.",
- media=[("img", "radial", "hero · front right ¾"), ("gif", "tt_radial", "turntable"),
- ("img", "radial_sheet", "8 canonical views")]),
- dict(id="chandelier", title="Art-deco chandelier", slug="tsr_tjs_deco_chandelier_v2",
- langs=["three.js"], gen="gemini-cli:gemini-3.6-flash", score=0.60, verdict="usable",
- rounds="4 rounds", mins="86 min", rerun="second attempt",
- prompt="an art-deco brass chandelier dripping with cut crystal: a stepped brass ceiling canopy and a "
- "chain drop to a fluted central stem; two tiers of curved brass arms, six above and eight below, "
- "each ending in a frosted glass candle sleeve with a small tapered flame-tip finial; and hanging "
- "from the rim of BOTH tiers, in even concentric rings, more than forty stepped faceted crystal "
- "drops — long slender prisms with cut facets, each hanging free on its own short brass link so "
- "the whole lower half of the fixture reads as a curtain of glass; a fluted clear glass bowl at "
- "the crown under the stem.",
- note="<b>Shipped despite a lower score than the run it replaces</b> (0.60 against 0.841). The "
- "higher-scoring first attempt was a competent brass armature with plain white cylinder shades and "
- "<i>zero</i> hanging glass — none of the sparkle the prompt was chosen for. This re-run made the "
- "drops the dominant feature and now has real candle sleeves with flame-tip finials, a clear fluted "
- "crown bowl, two proper tiers of curved arms on rings, and visible hanging crystal. <b>Nits:</b> "
- "the drops read as pale thin icicles rather than a curtain of cut glass, and the arms look "
- "slightly flat and ribbon-like.",
- media=[("img", "chandelier", "hero · front right ¾"), ("gif", "tt_chandelier", "turntable"),
- ("img", "chandelier_sheet", "8 canonical views")]),
-]
-
-ARTIC = [
- dict(id="rollcab", title="Rolling tool chest", slug="tsr_art_roll_cabinet",
- langs=["URDF", "Blender · bpy"], gen="gemini-cli:gemini-3.6-flash", score=0.957,
- verdict="reads", rounds="1 round", mins="31 min",
- prompt="a red steel rolling tool chest: seven drawers of three different heights on slides, full-width "
- "chrome pulls, a hinged top lid over a shallow tray, a push handle on one end and four castors",
- note="Passed at round zero, first try. Three materials genuinely separate — red carcass, chrome "
- "full-width pulls, black castors — and the articulation is the real prize: seven drawers on seven "
- "independent prismatic joints plus a hinged lid over a grey tray. The cascade still is the money "
- "shot the prompt was chosen for; it reads as <i>articulated</i> with no caption. <b>Honest miss "
- "the judge did not catch:</b> the brief asked for drawers in three distinct heights and they came "
- "out all the same height — <code>meshes/drawer1-6.glb</code> are byte-identical. Shipping "
- "<code>object.glb</code>, not the textured build: the texture pass painted one red powdercoat over "
- "all 28 parts including the chrome pulls and the castors, and shipped anyway on Δ 0.000.",
- media=[("img", "rollcab", "hero · seven drawers cascaded"),
- ("gif", "tt_rollcab", "joint sweep · 40 frames"),
- ("img", "rollcab_art", "articulation sheet · every joint"),
- ("img", "rollcab_sheet", "8 canonical views")]),
- dict(id="clock", title="Longcase clock", slug="tsr_art_grandfather_clock_v2",
- langs=["URDF", "Blender · bpy"], gen="gemini-cli:gemini-3.6-flash", score=0.9469,
- verdict="reads", rounds="2 rounds", mins="98 min", rerun="second attempt",
- prompt="a longcase grandfather clock in dark figured walnut with working articulation: a broken-arch "
- "bonnet with two turned finials over reeded columns, a warm brass dial with a silvered chapter "
- "ring and blued steel hour and minute hands, a glazed trunk door on brass hinges with CLEAR "
- "TRANSPARENT glass so the movement is visible through it, a long pendulum with a large polished "
- "brass lenticular bob swinging on a pivot, and two brass cylindrical driving weights hanging on "
- "either side of the pendulum inside the trunk, all on a stepped plinth base with bracket feet",
- note="The first attempt scored 0.600 and rendered the trunk door pane as an <i>opaque white panel</i>, "
- "hiding the pendulum and weights — the entire reason the prompt was picked. The re-run demanded "
- "base-colour alpha ≤ 0.25 on the glass, named the brass bob and weights, and asked for a stepped "
- "silhouette and four materials separated by <i>value</i>, not just hue. Now the movement is visible "
- "through the closed door, the door swings 90° onto it, the bob ticks left and right, and the hands "
- "turn on the silvered chapter ring. Round 1 also tightened the pendulum limits to ±0.09 rad, which "
- "fixed a round-0 flaw where the bob swung out <i>through</i> the case wall. <b>Nits:</b> the "
- "broken-arch crestings read as thin dark horns rather than crisp swan-neck mouldings, and the "
- "plinth front panel reads slightly as a hole. Shipping <code>object.glb</code> — the texture pass "
- "painted walnut burl over the brass dial <i>and</i> the transparent glass and shipped on Δ 0.000.",
- media=[("img", "clock", "hero · door open on the movement"),
- ("gif", "tt_clock", "48-frame loop · pendulum, hands, door"),
- ("img", "clock_strip", "motion strip"),
- ("img", "clock_sheet", "8 canonical views")]),
-]
-
-SCENES = [
- dict(id="alley", title="Neon alley", slug="tsr_scn_neon_alley_v2",
- langs=["three.js", "GLSL"], gen="gemini-cli:gemini-3.6-flash", score=0.8267,
- verdict="reads", rounds="5 rounds", mins="75 min", rerun="second attempt",
- prompt="a rain-soaked neon alley at night, seen down a narrow corridor between two TALL buildings whose "
- "walls fill the left and right thirds of the frame and rise out of the top of shot. MATERIALS AND "
- "LIGHTING ARE THE POINT: the ground is NEAR-BLACK wet asphalt (base colour 0x0a0c10, roughness "
- "0.08-0.15, metalness 0.6) that acts as a MIRROR — every sign above is reflected in it as a sharp, "
- "vertically-stretched coloured streak … Rain is THIN BRIGHT VERTICAL STREAKS, not dots: draw it as "
- "LineSegments or as very narrow elongated quads about 0.4 m long and 0.01 m wide … NEVER render "
- "rain as square point sprites or large white squares.",
- note="The first attempt was only <i>usable</i>, and a scene census said why: <code>custom_materials</code> "
- "was empty — there was no wet-asphalt <code>ShaderMaterial</code> at all, so \"every sign mirrored in "
- "the asphalt\", the whole point of the prompt, never existed. The re-run spelled the material out "
- "numerically and the rain out geometrically. Round 0 then overshot into an 89 %-black frame at mean "
- "luminance 0.001; the refine loop pulled it back by round 4. The final frame is genuinely "
- "teaser-grade — near-black wet ground carrying long hot-pink and cyan reflection columns, rain as "
- "thin vertical streaks, a pixelated holo billboard. <b>Weaknesses:</b> the upper walls are a smooth "
- "washed lavender gradient with no surface detail, and the litter props are crude low-poly boxes.",
- shots=[("alley_a", "Establishing · t = 0 s"), ("alley_b", "Establishing · t = 1.5 s"),
- ("alley_low", "LowAngleReflections · the wet-asphalt mirror"),
- ("alley_sign", "SignDetail · emissive signage")],
- sheet=("alley_sheet", "all authored cameras, both times")),
- dict(id="boat", title="Boatbuilder's workshop", slug="tsr_scn_boat_workshop_v2",
- langs=["three.js", "GLSL", "Blender · bpy"], gen="gemini-cli:gemini-3.6-flash", score=0.747,
- verdict="reads", rounds="4 rounds", mins="81 min", rerun="second attempt", ml=True,
- prompt="INSIDE a boatbuilder's workshop at dusk — a FULLY ENCLOSED INTERIOR. THE ENCLOSURE IS THE "
- "ENVIRONMENT AND MUST BE BUILT FIRST: a rectangular timber shed about 16 m x 10 m x 6 m high with "
- "FOUR SOLID WALLS … A GLSL shader makes the window sunbeams VOLUMETRIC — visible cones of hazy "
- "light crossing the room, brightest near the glass. Sawdust motes drifting in those beams must be "
- "FINE, SMALL and SOFT … NEVER render them as large opaque white squares.",
- note="A large win over the first attempt (0.465 → 0.747), and not a lighting fix: attempt one built an "
- "open-air truss frame standing in a <i>pine forest</i> under a flat red sky — no walls, no roof skin, "
- "trees inside the workshop. The scene planner's environment section is written for exteriors and "
- "treats interiors as a parenthetical, so the plan never contained walls and refining could not add "
- "them. Forcing the enclosure first produced the most complete scene in the wave: real interior, "
- "dusty window wall with cool blue dusk outside against warm raking sunbeams and stove glow, plank "
- "floor, timber stacks, tool racks, shavings. The sawdust motes render as soft additive sprites here, "
- "fixing the white-square particle bug that spoiled the first neon run. <b>Not shown:</b> a pack of 8 "
- "tileable textures (seam ≈ 0.0007) was generated for this scene and could not be wired in — a passed "
- "run refuses <code>resume</code> without <code>--force</code>, and <code>--force</code> re-plans and "
- "overwrites the passing artefact.",
- shots=[("boat_a", "Establishing · t = 0 s"), ("boat_b", "Establishing · t = 1.5 s"),
- ("boat_bench", "WorkbenchEye · volumetric GLSL sunbeams"),
- ("boat_skiff", "SkiffDetail · the lapstrake hull"),
- ("boat_stove", "StoveCornerDetail · the Blender stove, in scene")],
- sheet=("boat_sheet", "all authored cameras, both times")),
- dict(id="temple", title="Temple courtyard at night", slug="tsr_scn_temple_night_v2",
- langs=["three.js", "GLSL", "Blender · bpy"], gen="codex:gpt-5.6-sol", score=0.286,
- verdict="usable", rounds="3 rounds", mins="85 min", rerun="second attempt", ml=True,
- prompt="a small temple courtyard on a koi pond at NIGHT — a deep indigo night (background 0x0b1026), lit "
- "ONLY by warm lantern flame … TWO HERO PROPS ARE AUTHORED IN BLENDER WITH bpy AND COMPILED TO GLB "
- "(asset kind blender_glb), then loaded into the three.js scene: (1) StoneLantern … (2) BronzeCenser "
- "… A custom GLSL water material is the HERO EFFECT and must be unmistakable: the pond is dark and "
- "highly reflective, with visible travelling ripples, the warm lantern lights reflected in it as "
- "long wobbling vertical streaks, and several koi visible moving under the surface.",
- note="<b>The clearest evidence in this wave that the judge cannot see what the picture is doing.</b> The "
- "first attempt scored <b>0.729</b> and \"passed\": a washed-out pale blue-grey courtyard that reads "
- "as snow at dawn, a flat grey pond, no ripples, no reflections, no koi. The light census for a scene "
- "specified as lit by stone lanterns was 1 ambient + 1 hemisphere + 2 directional + 10 point — the "
- "fill added to clear the frame-luminance floor was drowning the water shader, which had existed with "
- "a live time uniform the whole time. Re-prompting for dark granite, banning hemisphere light and "
- "promoting the water to hero effect produced the correct deep-indigo night, warm lantern pools, the "
- "pond finally reading as long warm reflection streaks, and the best single detail frame in the wave "
- "— and scored <b>0.286</b>. This card ships round 1 rather than the harness's best round 2, which "
- "scored marginally higher and lost the pond reflections. <b>Still honestly <i>usable</i>:</b> the "
- "paving is <i>still</i> pale lavender-white despite an explicit base-colour instruction, an unshaded "
- "white lamp sphere reads as a bug bottom-right, and the maple leaves render as flat red diamonds.",
- shots=[("temple_a", "Establishing · t = 0 s"), ("temple_b", "Establishing · t = 1.5 s"),
- ("temple_censer", "CenserDetail · the Blender censer, in scene"),
- ("temple_bridge", "BridgeEye · GLSL pond, lantern streaks")],
- sheet=("temple_sheet", "all authored cameras, both times")),
-]
-
-GFX = [
- dict(id="aurora", title="Aurora over a ridge", slug="tsr_gfx_aurora_ridge_v3",
- langs=["GLSL · fragment shader"], gen="gemini-cli:gemini-3.6-flash", score=0.94,
- verdict="reads", rounds="1 round", mins="14 min", rerun="third attempt",
- prompt="an aurora over a snowy ridge on a black winter night, painted in three clean horizontal bands. "
- "TOP TWO THIRDS — the sky: near-black deep-blue, crowded with thousands of small crisp white stars, "
- "and across it hang layered aurora curtains made of many thin bright vertical rays … LOWER THIRD — "
- "the ridge: a single SOLID mountain silhouette, filled with ONE flat near-black colour and nothing "
- "else … no vertical stripes, no bars, no banding, no noise, no texture … BOTTOM FIFTH — the frozen "
- "lake: a smooth flat mirror below the ridge …",
- note="Third attempt, and the story is in what changed. Attempt one was a flat magenta wash over a "
- "speckle-noise ridge. Attempt two fixed the sky beautifully — emerald-to-violet rays, crisp stars, "
- "dark gaps — but drew the ridge as a barcode of vertical grey stripes mirrored into the lake; it "
- "looked like a rendering bug. Attempt three kept that sky language and added one paragraph "
- "specifying the ground as three named bands with the ridge as <i>one flat near-black fill</i>, plus "
- "a hard <code>--must</code> clause. That single instruction fixed it in one round. <b>Residue:</b> "
- "the star field is sparse, the lake band is a little muddy, and a faint horizontal band artifact "
- "survives in the lower third.",
- media=[("img", "aurora", "t = 2.5 s"), ("gif", "tt_aurora", "animated preview"),
- ("img", "aurora_strip", "frames at 0 / 1 / 2.5 / 4 / 6 s")]),
- dict(id="murmur", title="Starling murmuration", slug="tsr_ogl_murmuration",
- langs=["Python · OpenGL", "GLSL"], gen="gemini-cli:gemini-3.6-flash", score=0.865,
- verdict="reads", rounds="4 rounds", mins="43 min",
- prompt="a starling murmuration at dusk: several thousand instanced birds flocking with cohesion, "
- "separation and alignment around a slowly moving attractor, their dark silhouettes thickening and "
- "thinning into shifting shapes against a graded orange to deep-blue sky, with a low dark treeline "
- "along the bottom edge",
- note="The frame strip is the proof: the flock genuinely morphs — a dense column at 0.75 s, spread wide "
- "and thinning at 3 s, re-tightening and drifting left by 5–6 s. That is real flocking, not a "
- "scrolling texture. Worth saying that the baseline round scored a hard <b>0.0</b> — a flat mauve "
- "frame with no birds at all — and the harness's own refine loop recovered it to 0.865 over three "
- "rounds with no intervention. <b>Weaknesses:</b> the nearer birds are chunky arrowheads rather than "
- "fine specks, the flock edge sprays individuals across the whole sky instead of holding a tight "
- "murmuration shape, and the bottom silhouette reads as a rocky ridge rather than the treeline asked "
- "for.",
- media=[("img", "murmur", "t = 1 s"), ("gif", "tt_murmur", "animated preview"),
- ("img", "murmur_strip", "frames at 0 / 1 / 2.5 / 4 / 6 s")]),
- dict(id="accretion", title="Accretion disc", slug="tsr_gfx_accretion_disc",
- langs=["GLSL · fragment shader"], gen="gemini-cli:gemini-3.6-flash", score=0.753,
- verdict="reads", rounds="2 rounds", mins="33 min",
- prompt="a black hole with a glowing accretion disc: a pure black sphere ringed by a thin bright photon "
- "ring, a hot orange-white disc of turbulent filaments orbiting it with the approaching side "
- "visibly brighter, the far side of the disc lensed up and over the shadow into an arc, and a star "
- "field warping near the edge",
- note="The most dramatic image in the wave, and it got there in one refine round (0.242 → 0.753). The far "
- "side of the disc is lensed up and over the shadow into a bright arc — the Gargantua geometry "
- "actually reads correctly, which is the hard part — and across the sample strip the filaments "
- "visibly shear and swirl. A follow-up run specifically to clean the background <i>did</i> deliver "
- "true black vacuum with stars, but flattened the composition into a symmetric halo, drew the stars "
- "as cheap four-point sparkles and left a grey band bisecting the black shadow, so this one ships. "
- "<b>Blemishes:</b> the background is a lavender-purple haze rather than black vacuum, and there is "
- "a faint grey smear in the top-left corner.",
- media=[("img", "accretion", "t = 2.5 s"), ("gif", "tt_accretion", "animated preview"),
- ("img", "accretion_strip", "frames at 0 / 1 / 2.5 / 4 / 6 s")]),
- dict(id="rain", title="Rain on a window", slug="tsr_gfx_rain_window",
- langs=["GLSL · fragment shader"], gen="gemini-cli:gemini-3.6-flash", score=0.9087,
- verdict="usable", rounds="1 round", mins="7 min",
- prompt="raindrops running down a dark window in front of an out-of-focus neon city: each drop refracts a "
- "tiny inverted image of the lights behind it, drops grow until they break loose and cut clean "
- "trails downward, trails merge as they cross, the glass carries a fine mist between the drops and "
- "the city bokeh drifts slowly",
- note="<b>The highest score on this page that is not the best picture on this page</b> — shown as "
- "<i>usable</i> on purpose. It reads immediately as rain on a window over a neon city, the big drops "
- "genuinely refract tiny inverted images of the lights, and the bokeh drifts between frames. But the "
- "whole pane sits in a pale lavender-grey haze instead of the dark glass the brief asked for, the "
- "bokeh are washy blobs rather than tight light sources, and the trails do not read as clean streaks. "
- "Attractive but soft. Two re-runs to fix the contrast were both worse: pushing this model toward "
- "\"dark / high-contrast / saturated\" collapses it out of photographic softness into flat vector "
- "shapes — one attempt came back as cartoon confetti discs on black with no drops at all.",
- media=[("img", "rain", "t = 2.5 s"), ("gif", "tt_rain", "animated preview"),
- ("img", "rain_strip", "frames at 0 / 1 / 2.5 / 4 / 6 s")]),
-]
-
-ML_ASSETS = [
- dict(key="lantern", name="StoneLantern", scene="Temple courtyard", kb=443,
- src="_assets/stone_lantern/src/model.py",
- glb="public/assets/stone_lantern.glb",
- use="src/assets/stone_lantern.js → loaders.gltf.loadAsync, cloned into 3 zones",
- desc="Carved granite, chamfered cap, pierced fire box, lotus plinth, moss-worn edges — "
- "the sculpted-stone case a stack of three.js primitives cannot fake.",
- verified=True),
- dict(key="censer", name="BronzeCenser", scene="Temple courtyard", kb=367,
- src="_assets/bronze_censer/src/model.py",
- glb="public/assets/bronze_censer.glb",
- use="src/scene.js:12 assetFiles → cloned in src/zones/courtyard_veranda.js:32",
- desc="Three-legged cast bronze, domed pierced lid, two ring handles, relief band. "
- "The best single detail frame in the wave is this object lit by its own charcoal glow.",
- verified=True),
- dict(key="stove", name="PotbellyStove", scene="Boat workshop", kb=131,
- src="_assets/potbelly_stove/src/model.py",
- glb="public/assets/potbelly_stove.glb",
- use="src/scene.js:12 assetFiles → cloned in src/zones/stove_corner.js:130",
- desc="Bellied cast iron, bevelled door with a latch, claw feet, flue collar. "
- "In scene the flue runs to the roof and the door glows.",
- verified=True),
- dict(key="skiff", name="ClinkerSkiff", scene="Boat workshop", kb=400,
- src="_assets/clinker_skiff/src/model.py",
- glb="public/assets/clinker_skiff.glb",
- use="loaded into ctx.assets — but NOT used: the in-scene hull is procedural three.js",
- desc="Lapstrake planking, visible ribs, bevelled stem, upturned on trestles. Real bpy, real GLB, "
- "and a good standalone object — but see the caveat below.",
- verified=False),
-]
diff --git a/harness/bench/teaser/render_turntables.py b/harness/bench/teaser/render_turntables.py
deleted file mode 100644
index 6d256b64..00000000
--- a/harness/bench/teaser/render_turntables.py
+++ /dev/null
@@ -1,76 +0,0 @@
-"""Render every turntable the teaser page uses.
-
- python bench/teaser/render_turntables.py # all
- python bench/teaser/render_turntables.py penny_farthing
-
-Writes bench/out/teaser/turntables/<slug>.gif for the shipped object deliverables and
-<TEASER_ASSET_TURNTABLES>/<snake>.gif for the four Blender heroes of the scene lane.
-mp4 is requested first; on a box without ffmpeg `assemble_turntable` falls back to GIF.
-"""
-from __future__ import annotations
-
-import json
-import os
-import sys
-from pathlib import Path
-
-from codeverse.spatial.render import render_turntable
-
-HARNESS = Path(__file__).resolve().parents[2]
-RUNS = HARNESS / "bench/out/teaser/runs"
-OUT = HARNESS / "bench/out/teaser/turntables"
-ASSET_OUT = Path(os.environ.get("TEASER_ASSET_TURNTABLES", str(OUT / "assets")))
-
-# shipped object deliverables (slug -> nothing; the GLB is resolved below)
-OBJECTS = [
- "tsr_obj_penny_farthing", "tsr_obj_lighthouse", "tsr_obj_gramophone",
- "tsr_cad_radial_engine_v2", "tsr_tjs_arcade_cabinet", "tsr_tjs_deco_chandelier_v2",
-]
-# Blender heroes authored inside a scene run's per-asset sub-workspace
-ASSETS = [
- ("tsr_scn_temple_night_v2", "stone_lantern"),
- ("tsr_scn_temple_night_v2", "bronze_censer"),
- ("tsr_scn_boat_workshop_v2", "clinker_skiff"),
- ("tsr_scn_boat_workshop_v2", "potbelly_stove"),
-]
-
-
-def shipped_glb(artifacts: Path) -> Path:
- """object_textured.glb ONLY when the texture ship gate accepted it.
-
- The texture pass writes object_textured.glb whether or not it ships, so resolving by
- filename alone renders the build the judge measured as worse (DEFECTS.md S-OBJ-3).
- """
- tj = artifacts / "textures" / "texturing.json"
- if tj.is_file():
- try:
- if json.loads(tj.read_text()).get("shipped") and (artifacts / "object_textured.glb").is_file():
- return artifacts / "object_textured.glb"
- except (OSError, ValueError):
- pass
- return artifacts / "object.glb"
-
-
-def clip(glb: Path, out: Path) -> None:
- if not glb.is_file():
- print(f" SKIP {out.stem}: no {glb}")
- return
- p = render_turntable(glb, out, n=36, elevation_deg=18.0, width=640, height=640, fps=15)
- print(f" {p} ({p.stat().st_size // 1024} KB) from {glb.name}")
-
-
-def main(only: list[str]) -> None:
- OUT.mkdir(parents=True, exist_ok=True)
- ASSET_OUT.mkdir(parents=True, exist_ok=True)
- for slug in OBJECTS:
- if only and not any(o in slug for o in only):
- continue
- clip(shipped_glb(RUNS / slug / "artifacts"), OUT / f"{slug}.mp4")
- for slug, snake in ASSETS:
- if only and not any(o in snake for o in only):
- continue
- clip(RUNS / slug / "_assets" / snake / "artifacts" / "object.glb", ASSET_OUT / f"{snake}.mp4")
-
-
-if __name__ == "__main__":
- main(sys.argv[1:])
diff --git a/harness/docs/GRAPHICS_LOOP.md b/harness/docs/GRAPHICS_LOOP.md
deleted file mode 100644
index fc8e27bd..00000000
--- a/harness/docs/GRAPHICS_LOOP.md
+++ /dev/null
@@ -1,195 +0,0 @@
-# The graphics loop — what is judged, what feeds back, and how to keep making it better
-
-*2026-08-26. Companion to `docs/EVAL.md` (protocol) and `docs/ARCHITECTURE.md` (the track).
-Everything here is measured on this harness; numbers are cited, not re-derived.*
-
-The graphics track (`glsl_shader`, `opengl_python`) shares the judge **machinery** with every
-other track — `judges/vlm_judge.py` builds the messages, `judges/scoring.py` turns N samples
-into one code-computed verdict, `judges/caps.py` applies gate caps and the defect checklist.
-What is track-specific is (a) the rubric (`judges/rubrics/shader_*.yaml`: criteria, anchors,
-caps, the defect checklist), (b) the judge context the track writes (`tracks/graphics.py::
-judge_context`: the harness frame metrics), (c) what the refine session receives
-(`prompts/tracks/refine_graphics.j2`), and (d) since today, the reference photos. Until today
-only (b) and (c) had been designed for graphics; the rubric had never been calibrated against a
-person looking at the frames. This document is the loop that does that, and the first turn of it.
-
-## 1. What the loop looks like
-
-```
-brief ──plan──▶ shader ──build──▶ frames @ t=0,1,2.5,4,6 ──metrics──▶ gl_frames gate
- │ │
- ▼ ▼
- contact sheet + metrics ──▶ JUDGE (rubric) ──▶ score, issues, plan
- ▲ │
- │ refine_graphics.j2 ◀───────┘
- └──── refine session (sees the sheet, the photos, the plan)
-```
-
-* **Deterministic first** (law 3): `spatial/frame_metrics.py` measures every sampled frame — mean
- luminance, colourfulness, edge density, |Δ| between frames, black / blown fraction, NaN count —
- and `gl_frames` gates static / flicker / black / NaN. These are in the judge's context as facts.
-* **The judge** sees one labelled contact sheet (frames are the "views"; there are no cameras),
- the metrics digest, the plan digest (passes, key visuals, motion) and the acceptance checklist
- the planner wrote; it answers observe-then-score JSON; code computes the weighted overall,
- applies floors, gate caps and the defect checklist (`scoring.py`).
-* **The refine session** gets a prioritised change list (gate failures first, then the judge's
- improvement plan with `instruction` per item), the judge summary, the metrics table, the plan,
- the checklist, the current files — and, since 5688051 / 0aee3b8, the contact sheet the judge
- scored and the reference photos as images. This part works: the accretion-disc teaser went
- 0.24 → 0.75 in one round on exactly this prompt (`bench/out/teaser/runs/tsr_gfx_accretion_disc`).
-
-## 2. What was wrong (measured before the first turn)
-
-Seventeen graphics runs with a judged round (graphics_v1/v2 batteries, the teaser, the codex
-wave) were read by a person and scored 0–1 on "would a Shadertoy curator screenshot it / does
-it look like the thing". Against the loop-time judge (`shader_v1`, pro):
-
-| | judge v1 | eye |
-|---|---|---|
-| mean | 0.773 | 0.550 |
-| Spearman(judge, eye) | **0.16** | — |
-
-Three aurora versions that no one would accept as an aurora scored 0.78 / 0.94 / 0.94 with empty
-issue lists; a neon-rain of hard opaque pastel discs scored 0.92; a lifted purple nebula wash
-0.82 — while a crisp ukiyo-e wave (0.59) and a crafted mandala (0.60) were capped by
-planner-written must items. The rubric rewarded *the nouns of the brief being present* and had
-no notion of likeness, tonal range or the artefacts flash actually produces (a comb of evenly
-spaced bars for anything organic; hard shapes for light; a white wash for glow). The refine
-loop then faithfully optimised toward that judge.
-
-Eye scores: `scratchpad/gfx_eye.json` → copied to `bench/out/judge_calib_graphics/eye.json`.
-
-## 3. The first turn: `shader_v2` + reference photos + LikenessJudge
-
-* **`judges/rubrics/shader_v2.yaml`** — `brief_fidelity` becomes **`likeness`** (0.26, floor
- 0.3): would someone who has seen the real thing accept the frames — dominant colour, where the
- secondary colours sit, how the structure folds / thins, where the light sits, how much stays
- dark, scale relations; "all the nouns, wrong physics" is anchored at 0.4–0.5.
- `visual_richness` → `depth_and_detail`; `colour_light` → `light_and_tone` (darks must exist in
- night/space subjects; no milky wash; no candy saturation); `originality` → `craft` (a
- consistent stylised look is craft). The instructions calibrate the scale ("median competent
- shader 0.55–0.65; 0.85+ is a screenshot"). New checklist defects name the observed failure
- modes: `comb_artefact` (cap 0.65), `opaque_shapes_for_light`, `flat_fill`, `no_dark_range`,
- `white_wash`, `candy_saturation`, `unlike_reference` (cap 0.6, only with photos attached).
- `missing_must_acceptance` cap 0.7 (was 0.6): planner must items are fallible on this track.
-* **Reference photos** — `bench/refs/<prompt_id>/*.png|jpg` (README there). Attached to the
- Spec by every bench driver; graphics/scene tasks carry them as images on the first message
- with a note that asks for the physics, not the composition (`tracks/prompting.py::
- _likeness_note`); the judge becomes `judges/reference.py::LikenessJudge` — the same photos
- beside the frames, no silhouette IoU (that is an object-track measurement). Same battery with
- the folder present vs absent is the A/B (`bench/prompts/refs_v1_graphics.yaml`, in flight).
-* **Seeded recipes** (`tracks/graphics_recipes.py`, `Settings.limits.seed_recipes` / `CV3D_SEED_RECIPES`,
- default ON) — measured 2026-08-26 on `refs_v2_graphics` (aurora brief, flash api-agent, shader_v2): the
- baseline prompt carried the cookbook's Light chapter with `curtain()` five times and `src/shader.frag` called
- it zero times in both finished runs — round 0 a comb of bars (0.33), a later round a wash (0.12). Showing
- flash a recipe is not flash using it, so the harness writes the recipes the brief selects (the same
- chapters `select_cookbook_chapters` puts in the prompt, minus the always-on helper chapters and the
- raymarching template) to disk before the session — function definitions only, plus exactly the
- `hash / noise / fbm` helpers they call. **Measured again 2026-08-26 (`bench/out/seed_v1`, same brief /
- model, seeding ON into `src/common.glsl`)**: `recipes.seeded` fired and the finished run's `common.glsl`
- had NO seeded block and no `curtain(` — the agent overwrote the file with its own helpers — and
- `shader.frag` called neither `aurora(` nor `curtain(` nor `stars(`. Seeding into a file the agent owns
- is not sticky, so the file is now the **harness-owned `src/recipes.glsl`**: `AgentJob.read_only` makes
- `write_file` / `edit_file` refuse it ("harness-owned — call its functions instead"; `read_file` works),
- `wrap.compose` pastes it harness header < `recipes.glsl` < `common.glsl` < `shader.frag` (a compile error
- inside it is reported as `src/recipes.glsl:LINE`), it is self-contained (its helpers travel with it, so
- nothing the agent does to `common.glsl` breaks a recipe), and a name it defines redefined in an agent file
- is the lint ERROR `redefines_recipe` ("`name` is already provided by src/recipes.glsl — call it instead of
- redefining it"). The only `common.glsl` the harness edits is the untouched skeleton, which loses the
- helpers `recipes.glsl` now provides (else the first build fails on `hash12` twice); once the agent has
- written it, a duplicate is its own to remove. The baseline prompt names the recipes ("call these, do not
- redefine them, do not copy them into common.glsl"); the refine prompt carries a one-line reminder; a resume
- appends only names `recipes.glsl` does not define. The aurora brief seeds `skyGrad, sun, stars,
- waterHeight, curtain, auroraCol, aurora` + `hash12, hash22, noise, fbm`; the neon-rain brief `dropsLayer,
- bokehSoft`; a brief matching no chapter seeds nothing, creates no file and the prompt has no block. The
- event is `recipes.seeded {file, names, present, chapters, trimmed}`; `CV3D_SEED_RECIPES=0` is the control
- arm. The number to watch stays the `comb_artefact` firing rate — and now `grep -c "aurora(\|curtain(\|stars("
- src/shader.frag` (a call into `recipes.glsl` is the only way those names can appear in a passing build).
-* **Measuring the turn** — `bench/judge_calib_graphics.py` re-judges the corpus under v1 and v2
- (pro, n=2, no planner acceptance so the rubric is measured on its own) and prints
- Spearman(judge, eye), means, defect firing rates and the biggest disagreements. The result of
- the first run is recorded in §5 below and in EVAL.md §6; `TRACK_INFO[graphics].rubric` moves
- to v2 only if the correlation clearly improves.
-
-## 4. How to run the next turn (the recipe)
-
-1. **Look.** Pick 10–20 judged graphics runs (`rounds/rNN.json` has the sheet path); score
- them by eye into `eye.json`. Disagreements between eye and judge are the material; write
- down *why* each one is wrong in one line.
-2. **Name the failure.** Every "why" becomes either a checklist defect (binary, with a penalty
- and, when it should dominate, a cap), an anchor sentence in the criterion it belongs to, or a
- deterministic metric if it can be measured (`frame_metrics.py` — e.g. black fraction already
- exists; a "dark range" metric = fraction of pixels < 0.05 luminance would make
- `no_dark_range` a gate instead of an opinion). Prefer the metric.
-3. **Bump the rubric version** (`shader_vN+1.yaml`, never edit the one a battery reports on —
- EVAL.md §6 rule) and run `bench/judge_calib_graphics.py --rubrics shader_vN,shader_vN+1`.
- Keep the turn only if Spearman rises and the mean moves toward the eye mean; look at the
- biggest remaining disagreements before believing it.
-4. **Switch** `TRACK_INFO` and re-run one small battery (`graphics_v2_flash`, 10 prompts) so
- the refine loop optimises toward the new judge; compare the sheets, not just the numbers.
-5. **Reference photos** for any prompt that names a real phenomenon or place: drop them in
- `bench/refs/<id>/` — the agent and the judge both see them; nothing else changes.
-6. Record the turn in this file (§5) and EVAL.md §6 with the numbers.
-
-Things this loop will not fix and should not try to: the judge model's own taste (use n=2 and
-pro), planner must items that are wrong (they cap at 0.7 now; the fix is the planner prompt),
-and generator capability (a better rubric makes flash's ceiling visible, it does not raise it).
-
-## 5. Turns recorded
-
-| date | rubric | n runs | Spearman(judge, eye) | judge mean | eye mean | note |
-|---|---|---|---|---|---|---|
-| 2026-08-26 | shader_v1 (loop-time scores) | 17 | 0.16 | 0.773 | 0.550 | before any turn |
-| 2026-08-26 | shader_v1 (re-judged, pro n=2, plan digest + frame metrics, no acceptance) | 17 | 0.34 | 0.736 | 0.550 | `bench/out/judge_calib_graphics/summary.md` |
-| 2026-08-26 | shader_v2 (same replay) | 17 | **0.71** | 0.562 | 0.550 | same run — the switch is earned |
-
-Reading the v2 table: the three aurora versions land at 0.46–0.55 with `comb_artefact` capping
-them (eye 0.30–0.40); neon-rain 0.66 with `opaque_shapes_for_light` (eye 0.45); the ukiyo-e wave
-0.61 with no defects (eye 0.80 — still under-scored, but no longer capped); the murmuration 0.875
-(eye 0.85). The two misses are `garbage_pixels` firing on particle dots (the galaxy: 0.30 vs eye
-0.70; the reaction-diffusion rings, which are bad anyway) — the checklist text now says particles,
-stars and film grain the brief asks for are not garbage; a gate cannot veto this one because the
-NaN gate measures NaN, not "garbage". `no_dark_range` fired on 7/17, which matches what the eye
-saw: flash lifts its night scenes. A first replay without the plan digest and frame metrics gave
-v1 0.23 with four moving effects called static — the replay must hand the judge what the loop hands
-it (`bench/judge_calib_graphics.py` does now).
-
-**The reference-photo A/B, first turn** (`refs_v1_graphics`: the aurora brief, three seeds with
-the two photos and three without, flash, 2 rounds, judged in-loop by v1 / LikenessJudge(v1);
-read out offline with ONE LikenessJudge(shader_v2) and the same photos on every run —
-`bench/out/refs_v1_graphics/refs_ab_readout.md`): with photos 0.461 / 0.220 / 0.353, without
-0.331 / 0.095 / 0.192; paired **+0.139**, sd 0.020, sign 3/3 (n=3 — a direction, not a
-number). Every one of the six runs fired `comb_artefact` and `unlike_reference`: flash draws
-evenly spaced bars for an aurora whether or not it is shown one, and the in-loop v1 judge gave
-those runs 0.60–0.94. The photos moved the judge more than the generator — which is why the
-second turn changes the generator's material: the cookbook's light chapter (aeb49c0) and
-brief-selected chapters (137541e), with shader_v2 in the loop (`refs_v2_graphics`, launched
-12:30; read it out with `bench/refs_ab_readout.py bench/out/refs_v2_graphics --refs
-bench/refs/tsr_gfx_aurora_ridge`). The number to watch is the `comb_artefact` firing rate.
-
-**Second turn read out** (`refs_v2_graphics`, 14:00: same six runs, shader_v2 in the loop, the
-light chapter in the prompt, the 503 fixes; every run finished 3 rounds in 18–51 min where the
-first turn took 60–77 min for 1–2): same-judge scores with photos 0.258 / 0.279 / 0.634, without
-0.441 / 0.169 / 0.000; paired +0.187, sd 0.41, sign 2/3. **All six still fired `comb_artefact`**:
-the prompt carried `curtain()` five times and no run called it (`grep -c "curtain(" src/shader.frag`
-= 0). A recipe shown is not a recipe used. Third turn: `tracks/graphics_recipes.py` seeds the
-brief's matched recipes to disk before the session and the prompt says "call them, do not rewrite
-them" (`CV3D_SEED_RECIPES`, default ON; A/B `bench/out/seed_v1`, three photo prompts, plan-pinned,
-variant = seeding OFF; readout = comb_artefact rate and `curtain(` calls). **First `seed_v1` read
-out** (aurora brief, seeding ON): the seed fired and was gone — the agent rewrote `src/common.glsl`,
-seeded block included, and called none of `aurora( / curtain( / stars(`. A recipe the agent can
-overwrite is not a recipe kept: the seed now lives in the harness-owned, read-only `src/recipes.glsl`
-(§3 "Seeded recipes"); the same A/B re-runs against it.
-
-**Third turn read out** (`seed_v2`, 17:36: the three photo prompts, plan-pinned, seeded
-`src/recipes.glsl` vs no seeding, judged by the fixed LikenessJudge(shader_v2) with the photos):
-seeded 0.198 / 0.570 / 0.329, unseeded 0.300 / 0.165 / 0.323; paired **+0.103**, sign 2/3. Every
-seeded shader called `stars()` (twice each) and **none called `aurora()` or `curtain()`** — the
-star field is a helper flash is happy to reuse; the aurora it insists on drawing itself, and 5 of 6
-runs still fired `comb_artefact`. A recipe on disk is used when it is a *part*, not when it is
-the *subject*. Fourth turn (not yet built): for a brief whose subject has a recipe, the harness
-writes the baseline `src/shader.frag` itself — the verified example composition calling the
-recipes — and the session starts as a refine of a working aurora instead of a blank page.
-
-**The track default is `shader_v2`** since c032700 (the switch waited for the first reference
-A/B to finish so both of its arms were judged in-loop by one rubric).
diff --git a/harness/docs/PLAN_LOOP.md b/harness/docs/PLAN_LOOP.md
deleted file mode 100644
index 295e2e09..00000000
--- a/harness/docs/PLAN_LOOP.md
+++ /dev/null
@@ -1,101 +0,0 @@
-# The plan-loop wave — what it measured, and why it kept nothing
-
-2026-08-24 → 25. Goal: stop hard-coding plan size ("6 to 14 parts") and let the plan come
-from the model's common-sense knowledge of the real object, with graph/hierarchical
-structure where it earns its keep — and prove the addition is a **guaranteed non-negative
-improvement** before shipping it on.
-
-**Outcome: nothing was kept.** Not because the ideas were wrong, but because the wave
-measured its own instrument first and found it could not resolve them. That measurement is
-the wave's real product and it now governs every A/B in this repo (`docs/EVAL.md` §8, §8.1).
-
----
-
-## 1. What was designed
-
-The design agent mined 47 recorded plans and found the ordering fact for everything after:
-
-| plan-side quantity | vs assembly_fit | vs overall |
-|---|--:|--:|
-| **undeclared pairs overlapping > 10 mm** | **−0.50** | **−0.50** |
-| declared pairs with a planned gap | −0.38 | −0.28 |
-| number of parts | −0.13 | −0.11 |
-
-Plans with ≥ 1 pair of parts that overlap but that the plan never says touch: `assembly_fit`
-0.683, 1.82 gate errors. Plans with none: **0.811, 0.22**. **Part count does not predict
-fit; undeclared planned overlap does.** Six changes were ordered from that, C1…C6, each
-behind one switch (`codeverse/tracks/plan_features.py`, `CV3D_PLAN_FEATURES`).
-
-## 2. What happened to each
-
-| id | change | outcome |
-|---|---|---|
-| **C0** | (not a change) the A/A calibration | **the wave's most valuable result** — see §3 |
-| **C1** | `fit` — plan-level fit check, one repair re-ask | **REVERTED.** 2 regressions, mean Δ −0.020, and 3 of 8 variant cells died outright with `PlanningError: part OuterShell touches unknown part CarriageLever`. It turned a recoverable planning slip into a total loss. Patch kept at `bench/out/plan_loop/C1/C1_fit.patch`. |
-| **C2** | `contacts` — every declared contact rendered to the builder with computed mating faces | **NEVER MEASURED.** Implemented, offline-green (15 tests), reverted from the tree per the loop rule. Patch at `bench/out/plan_loop/C2/C2_contacts.patch`. |
-| C3–C6 | graph edges, graph budget, graph example, consistency | not reached |
-
-C1 was attempted four times. Attempt 1 gave the revert above; attempt 2 was discarded
-(`invalid_attempt1_maintree_import`) after the A/B was found to be running the MAIN tree's
-harness in **both** arms — comparing a tree with itself while looking healthy; attempt 3 was
-discarded (`invalid_attempt2_touches_hardfail`); attempt 4 lost **11 of 16 cells** to a
-provider 503 window and produced zero paired prompts.
-
-## 3. The instrument, measured
-
-An 8-prompt **A/A** — arms identical by construction — on the same battery, same judge:
-
-* paired **sd 0.202**, SE 0.082, 2 SE band **±0.165**;
-* the rig's own conclusion, printed in its summary: **~408 paired prompts** would be needed
- before a +0.02 decision threshold is resolvable;
-* worst pair `mech_hard_pitcher_pump`, **identical settings**: one arm planned **1 part**
- (`WoodenPlatform`) and scored **0.750 / passed**; the other planned **10** and scored
- 0.600. 3 vs 13 built parts, 4,796 vs 61,340 triangles.
-
-So the variance is **in the planner**, not the judge — the two arms were not two
-measurements of one artifact, they were two different artifacts. More judge samples cannot
-touch it. This is why the wave's premise (8-prompt A/Bs screening ±0.02 changes) could
-never have worked, and why stopping was the right call rather than a fifth C1 attempt.
-
-## 4. What shipped from it anyway
-
-* **`bench/ab_plan.py`** — the paired control/variant rig: arms launched together so the
- weather matches, `infra_failed` excluded not zeroed, `--aa` calibration mode, and a
- **Confidence** block (paired sd, SE, 2 SE band, `separated from noise: yes|NO`, and
- `n_for_power`) printed beside every verdict so a screen can never read as a proof.
-* **`bench/ab_gate_rates.py`** — the same run's *deterministic* readouts paired per prompt,
- because a contact-table change targets penetrating pairs, not a judged score.
-* **`codeverse/tracks/plan_features.py`** — one switch per change, so each is A/B-able alone.
-* **`docs/EVAL.md` §8 and §8.1** — the noise floor and where it comes from.
-* Two defects found in the rig itself while trying to use it: an A/B launched from a
- worktree silently ran the main tree's harness in both arms, and `--report-only` rebuilt
- `summary.md` from bare flags, relabelling a real A/B as an A/A in the one file that
- outlives the run.
-
-## 5. Next, precisely
-
-**Pin the plan.** For a change that acts *after* planning, plan once per prompt and seed
-both arms with the same `plan.json`; the paired delta then stops carrying the planner's
-spread. It costs one planner call *less* per pair, not k times more.
-
-The decision procedure is implemented and tested —
-`codeverse.tracks.plan_features.pin_plan_blockers(variant_env)` returns the switches that
-forbid sharing a plan, and refuses anything it cannot prove acts after planning (refusing
-costs one noisy A/B; pinning wrongly costs a confident wrong answer). By that rule **C2
-`contacts` is pinnable and C1 `fit` is not**.
-
-Still to build: the seeding itself in `ab_plan.py` (`--pin-plan`) — run the plan stage once
-into a shared dir, then copy `plan.json`, `stages/plan.json` and the `run_state.json` stage
-entry into each arm's run workspace before spawning it. The stage cache keys on an inputs
-hash computed from the spec, which is identical across arms, so a seeded arm skips planning
-and resumes from it. Then re-run C2 with `--pin-plan` and read out `ab_gate_rates.py`
-(penetrating pairs, max depth, floating parts) as the primary signal, with the judged score
-secondary under a sign test.
-
-Also open, from the same A/A: **7 of 122 recorded static-object runs shipped a plan with
-≤ 1 part**, all *after* the plan-budget gate landed. The gate is not broken —
-`plan_quality_complaint` fires on exactly that plan and emits `plan.thin` — but after
-`MAX_QUALITY_REASKS` the planner accepts what came back and tells nobody: that pitcher-pump
-run carries `status: passed`, `score: 0.75` and no trace of the complaint. The verdict
-should reach the record and the rubric the way `missing_must_acceptance` does. Explicitly
-**not** by failing the run — that was C1.
diff --git a/harness/docs/RELEASE_NOTES.md b/harness/docs/RELEASE_NOTES.md
deleted file mode 100644
index 41c03d30..00000000
--- a/harness/docs/RELEASE_NOTES.md
+++ /dev/null
@@ -1,641 +0,0 @@
-# Release notes
-
-Newest first.
-
-## Evaluation integrity — 2026-08-25/26
-
-Four changes that affect what a recorded score MEANS, none of which changes a
-score computed under an odd `n_samples` (branch `ziyao/eval-integrity`, D36–D39):
-
-* `record.environment.harness_git_sha` is populated (it was always `""`: the probe
- looked for `harness/.git`, which does not exist). `-dirty` marks a modified tree.
-* `judge_prompt_hash` (role prompt + rig rules + wire schema) is stored in every
- `ScoreBreakdown` and in `record.prompt_hashes["judge"]`.
-* Exact vote ties on defects / acceptance items follow the representative sample
- instead of a fixed direction; `ScoreBreakdown.tie_broken` names the ids. Under
- the old rule `economy` (n=2) was strictly harsher than `balanced` (n=1) and
- `quality` (n=3).
-* The offline suite is run whole — the local pre-push suite is `pytest tests -m "not live"`
- over every test directory (the old CI job listed 7 of 24); there is no CI.
-* `bench/paired_compare.py`: paired Δ, 95 % t-interval, exact sign test, per tier, plus a
- judge-free table (build rate, gate errors) per arm; `bench/prompts/compare_v4.yaml`
- (40 static prompts); `--judge-samples` on `compare_backends`.
-* `compare_backends`: storm-degraded harness cells are flagged (D40); arm failures are
- zeros and provider failures are dropped (D41); the articulated track is supported (D42).
-* Python lints survive unparseable source (D43).
-* Measured with these (2026-08-25/26, gemini-3.7-flash, judge gemini-3.1-pro-preview n=3):
- static compare_v4, n=40 — harness 0.633 vs one-shot+repair 0.487, Δ +0.146
- [+0.077, +0.215], sign p < 0.001; vs one-shot 0.232, Δ +0.401. Articulated
- articulated_v2, n=14 — harness 0.309 vs one-shot+repair 0.316, Δ −0.007 (CI crosses 0);
- 5/14 harness runs failed at planning.
-
-
-## Skills — 2026-08-25
-
-A routed, spec-conformant skill library whose reads we can measure. Baseline `42a5457` →
-`HEAD`; six commits from five parallel waves (machinery, four authoring waves) plus this
-verification pass. Full story and the authoring contract: **`docs/SKILLS.md`**.
-
-**Ships behind `CV3D_SKILLS`, default OFF.** §A/B below says why, with the numbers.
-
-### What landed
-
-* `codeverse/skills/` — 14 bundles authored to the open Agent Skills spec
- (agentskills.io), a typed R1–R24 route table, an atime read probe, and numbers pinned to
- live constants. `3dcv skills list|show|validate|report`, `3dcv doctor --skills`.
-* Routing is automatic and gate-driven: the previous round's gate findings outrank the
- standing sheets, which is the input no CLI's own skill loader can see.
-* `RoundRecord.skills` records what was listed, surfaced and read deep, with the index and
- body token cost, so the price of the feature is auditable per round rather than asserted.
-
-### Native loading, proven live
-
-`pytest -m live tests/skills/test_live_discovery.py` — gemini-cli 0.53.0, codex 0.149.0,
-claude-code 2.1.245 and agy 1.1.20 each discover a materialised bundle, open `SKILL.md`,
-open `references/` and follow what they read. Two things this settled that had only been
-argued: `Skill` was **absent** from claude-code's `ALLOWED_TOOLS` (it would have denied its
-own skill tool — fixed, and `3dcv doctor --skills` now checks it), and gemini-cli's
-`activate_skill` consent does not block us under `--approval-mode yolo`.
-
-### Defects the verification tests found
-
-| # | What | Where |
-|---|---|---|
-| V-1 | Three language contracts told the agent to overlap parts by 2–4 mm / "≥ 2 mm" while `connectivity.py` WARNs above `PENETRATION_WARN_M` = 2 mm and its own `fix_hint` says "overlap by ≤ 2 mm". Two worked examples welded at 3–4 mm. | `prompts/{blender,cadquery,threejs}/contract.md` |
-| V-2 | Four bundles' `verified:` dates were YAML **dates**, not strings; the spec says metadata is string→string. `validate_bundle` now reports it instead of coercing. | 4 × `SKILL.md`, `skills/loader.py` |
-| V-3 | `cv3d-opengl-pipeline` shipped as `evidence: measured` on 5 graded runs. Now `mixed`. | `cv3d-opengl-pipeline/SKILL.md` |
-| V-4 | The api-agent index quoted whole 1024-char descriptions: **780 tokens** for a five-skill session against a 300-token budget. It quotes the first clause now (342 worst case). | `skills/prompting.py` |
-| V-5 | The live discovery smoke had never run and could not: it looked for a binary named after the agent kind, but `gemini-cli` runs `gemini` and `claude-code` runs `claude`. | `tests/skills/test_live_discovery.py` |
-| V-6 | `cv3d-cadquery-forms` still quoted the contract's old unbounded "≥ 2 mm" weld, and the cadquery worked example welded at 3 mm. | `cv3d-cadquery-forms/SKILL.md`, `prompts/cadquery/contract.md` |
-| V-7 | A body naming one of our constants was not required to pin it; `cv3d-glsl-craft` quoted `DUPLICATE_DIFF` at 1e-4 with no claim row behind it. | `cv3d-glsl-craft`, `tests/skills/test_freshness.py` |
-| **V-8** | **The read probe was measuring git, not the agent.** See below. | `skills/telemetry.py`, `skills/materialize.py` |
-| **V-9** | **An A/B launched from a worktree ran the MAIN tree's harness in both arms**, with no symptom at all. See below. | `bench/ab_plan.py`, `bench/compare_backends.py` |
-
-### V-9: the A/B rig was comparing a tree with itself
-
-`ab_plan.spawn_cell` starts each child as a **file path**, so `sys.path[0]` is `bench/` and
-the cwd is not on the path. `from codeverse._compat import UTC` sat **above** the script's
-own `sys.path` bootstrap, so that import resolved through the editable install
-(`__editable__.3dcodeverse-0.1.0.pth` pins a meta-path finder to `/home/yipeng/3dcodeverse`)
-— and every cell of every arm ran the **main tree**.
-
-The failure has no symptom. Both arms run the same foreign code, the switch under test is
-inert, the cells pass, and the report prints a verdict. It voided the plan-loop wave's first
-A/A (they found it, named the directory `invalid_attempt1_maintree_import`, and worked
-around it with `PYTHONPATH` in a launch script) and then voided this wave's first A/B: the
-variant arm ran a tree with no `codeverse/skills` package at all, materialised nothing,
-emitted no `skills.attached`, and would have reported "no effect".
-
-Three fixes, because a launch-script workaround protects whoever remembers it: the
-bootstrap moves above the first `codeverse` import in both bench scripts that have this
-shape; `ab_plan` refuses to start when `import codeverse` did not resolve inside its own
-tree, and says how to fix it; and `tests/compare_bench/test_worktree_import.py` asserts the
-ordering for every bench script that bootstraps `sys.path`.
-
-### V-8: the read probe was measuring git
-
-The design's headline differentiator was read telemetry: `atime > mtime` on
-`references/*.md` means the agent read the body, because nothing scans `references/`.
-**Measured, that is false twice over.**
-
-1. `Workspace.changed_files` runs `git add -A -N` then `git diff --numstat` after *every*
- agent session to compute `files_changed`, and git reads each untracked file to diff it.
- On a real git workspace that alone flips all four files of every bundle to "read", with
- no agent involved. Reproduced in `test_git_diff_alone_trips_the_control`.
-2. A negative control — one bundle whose description does not match the task, prompt "do
- not read any files, do not activate any skill" — had codex 0.149.0, claude-code
- 2.1.245, agy 1.1.20 and gemini-cli 0.53.0 **all** open `SKILL.md` and `references/`.
- Each touched only the discovery root it owns, which independently confirms the mapping.
-
-Left alone, this metric would have reported 100% forever and we would have believed it.
-`materialize_skills` now writes one **never-routed, never-indexed control bundle** beside
-the real ones. Nothing should open it; when something does, `SkillsUsage.control_read` is
-set, `probe_trustworthy` is false, and `deep_read_rate` returns `None` rather than a
-confident number. `3dcv skills report` excludes those sessions and says how many it
-dropped. The control says when the probe is blind; it does not make it see.
-
-### Read rate, on an ordinary build task
-
-Five routed bundles in the workspace, an ordinary "build a dining chair in bpy" prompt,
-nothing about skills in it: codex, claude-code and agy each came back with 5 of 5 bundles
-surfaced and deep, 8,041 body tokens. Those runs predate the control, so treat the rate as
-an upper bound — but the behavioural evidence under it is not ambiguous: codex's
-`src/parts/common.py` came back with `WELD_OVERLAP = 0.001` and "1 mm weld overlap with
-the seat", which is `cv3d-part-contact`'s number, not the prompt corpus's 2–5 mm.
-
-### New standing tests
-
-`tests/skills/` — 712 tests: 650 in the default suite, 58 `slow`, 4 `live`.
-
-* **Contradiction**, library-wide, on the *pre-scale value* rather than the rendered text —
- "1 cm" and "0.01" metres are one tolerance in two units, and failing that pair would
- teach the next author to delete the claim.
-* **Freshness** — every tool, gate kind, rubric criterion, constant, switch, sibling skill
- and cookbook section a bundle names must still exist in the shipped source.
-* **Contract agreement** — a skill and its language contract cannot state different
- numbers, arbitrated by the gate constant rather than by either document.
-* **Routing properties** — the real library over 5,376 sessions per track, every corpus
- finding kind, and 2,000 seeded random walks: determinism, the cap, ordering,
- explainability, and junk degrading to `[]`.
-* **Spec compliance** re-derived from the raw bytes, plus the reference validator
- (`pip install skills-ref` → `agentskills`, now in the `dev` extra): 14/14 valid, and its
- `read-properties` agrees with our loader field for field.
-* **Budget** re-measured against the shipped descriptions; **packaging** asserts a built
- wheel holds all 14 `SKILL.md`, all 14 `references/` and all 9 `_claims`.
-* **Corpus** recomputes each bundle's claimed evidence from `bench/out`.
-
-### The A/B, and why it ships OFF
-
-`bench/out/ab_skills`, eight `static_objects_v2` prompts (the same eight
-`bench/out/plan_loop/C0` used for its A/A), `--rounds 1`, paired, fixed judge, arms
-differing only in `CV3D_SKILLS=on`. A Gemini capacity outage held the pool at 0–4 of 6 keys
-for most of the window: **1 pair scored, 3+ cells `infra_failed`** (excluded, never scored 0;
-the run was still going when this was written — re-run with `--redo-status infra_failed`
-before quoting it as final).
-
-* mean delta **+0.002** (control 0.937, variant 0.939) · CI not computable at n=1 · sign
- test 1/0, p = 1.000 · the rig printed `inconclusive`, `separated from noise: NO`.
-* **The read rate on that cell was 0 of 5, with ground truth.** `api-agent` owns its
- `read_file`, so this is a log and not a probe: the agent made **52 `read_file` calls
- across 4 sessions and none of them was a skill**, while calling `read_cookbook` twice.
- The atime probe said 5 of 5 "deep" and its control simultaneously said `control_read:
- true` — the probe was blind, exactly as V-8 predicts, and the calibration arm supplied
- the number it could not. The next variant cell repeated it: five bundles materialised,
- `read_file` called, zero skill paths.
-
-So the two arms differed by 356 tokens of index that nobody opened, and +0.002 is what that
-is worth. **Ship OFF**, for three reasons that do not depend on more pairs: the read rate on
-the harness's own generator is 0 %; the bar it was given (mean ≥ 0, no prompt regressed past
-0.03) is one the A/A of two *identical* arms fails twice over (−0.038, −0.206); and the
-deterministic gate counts inherit the planner's spread directly (an A/A of them swings
-+5.67 penetrating pairs, `bench/ab_gate_rates.py`).
-
-Next, in order: **give `api-agent` a first-class skill affordance** (a `read_skill` tool
-beside `read_cookbook`, or inline the top body) — with 0 % reads no A/B can measure the
-library at all; then pin the plan (`docs/EVAL.md` §8.1); then reconcile the prompt corpus on
-weld overlap; then re-run. The three subscription CLIs read all five bundles unprompted and
-codex's output carried the skill's number, so this is a delivery problem for one backend,
-not a verdict on the library.
-
-### Known open
-
-Listed in `docs/SKILLS.md` §9. The one that matters most: **`contract.md` was fixed but the
-wider prompt corpus still teaches 2–5 mm weld overlap** — `tracks/generate_static.j2`,
-`assemble_static.j2`, `generate_static_part.j2`, `system/harness_contract.md` and three
-cookbooks. That is a prompt-corpus change with its own measurement, and it is the most
-likely reason a contact skill would fail to move the number it targets.
-
----
-
-## Stability pass — 2026-08-24
-
-Sign-off for the first release intended to be called **stable**. Five parallel waves hunted
-the harness for defects, a sixth verified them, three fixed them, and this pass reconciled,
-re-tested and landed the result.
-
-Baseline `d5dc135` → `HEAD`. 46 commits, all of them defect fixes, their regression tests, or
-this document.
-
-**Verdict: fit to ship.** One known-open item, no crash / data-loss / wrong-result defect
-left open, the whole offline suite green on the 3.13 development interpreter and on a
-Python 3.10 clean clone with no credentials.
-
----
-
-### 1. What was hunted
-
-Six independent sweeps over the 54 files the parallel waves changed:
-
-| Sweep | Scope | Raised |
-|---|---|---|
-| `CP` | crash / hang / data-loss paths | 7 |
-| `RS` | resume, restart and recovery | 9 |
-| `SM` | settings, profiles, budgets, CLI surface | 11 |
-| `CG` | connectivity + contract gates (the scoring gates) | 5 |
-| `CQ` | cross-cutting correctness and concurrency | 5 |
-| `PORT` | packaging, install, portability, CI | 8 |
-| | **total raised** | **45** |
-
-Each was then reproduced independently before any fix was written.
-
-**42 of 45 verified real. 3 were dismissed on the evidence** and are *not* defects:
-
-- **RS-5** — `compare_backends --redo-status` re-using a finished workspace. The driver
- already rebuilds the cell; the reported "old score" came from reading a stale row, which
- is the real defect and is CG-5.
-- **RS-7** — the wall-clock ceiling "resetting on every resume". It is persisted; the
- reporter measured a run whose budget had been raised.
-- **SM-05** — `CV3D_PLAN_FEATURES` accepted and ignored. Half of this is real and is
- tracked as CQ-5 (the switch nothing reads); the "all six switches silently accepted"
- half is not — they are validated and rejected.
-
-#### Verified defects by severity
-
-| Severity | Count | Fixed | Open |
-|---|---|---|---|
-| crash | 8 | 8 | 0 |
-| data-loss | 2 | 2 | 0 |
-| wrong-result | 19 | 19 | 0 |
-| hang | 2 | 2 | 0 |
-| usability | 10 | 10 | 0 |
-| style | 1 | 1 | 0 |
-| **total** | **42** | **42** | **0** |
-
-A further **9 defects were found by the smoke matrix and the claude-code sweep** while
-exercising the tree rather than reading it (`SMOKE1`–`SMOKE5`, `CC-1`, `CC-2`, and two found
-at sign-off). 8 fixed, 1 open. **50 fixed in total.**
-
----
-
-### 2. What was fixed
-
-Every fix below landed with a regression test that was **proved to fail without it** — the
-source change stashed, the test run, the change restored. The 24 tests belonging to the wave
-that had not yet landed were re-proved against `main` at sign-off, as a batch, after rebasing.
-
-#### Crashes (8)
-
-| ID | Defect | Commit |
-|---|---|---|
-| CP-1 | one non-UTF-8 byte from a worker killed the whole `ab_plan` A/B driver | `bc9a56f` |
-| CP-2 | Anthropic structured output bypassed `strip_control_chars`; a model NUL reached subprocess argv | `ae34f38` |
-| CP-3 / RS-6 | `3dcv status` died on the truncated last line a killed run leaves — the one run you would point it at | `20ea52e` |
-| RS-2 | a stale or unreadable cached stage result bricked `3dcv resume` permanently | `92077aa` |
-| RS-3 | one truncated line in `results.jsonl` made a killed battery unresumable *and* unreportable | `e5c9eed` |
-| SM-07 | negative `max_in_flight` validated, `doctor` called it "fits", first model call died in a bare semaphore `ValueError` | `c7a2363` |
-| PORT-5 | `flywheel export` without `--pack` hard-crashed on a core-only install *after* writing a partial dataset | `7e44f71` |
-
-CP-3 and RS-6 were the same defect reported twice.
-
-#### Data loss (2)
-
-| ID | Defect | Commit |
-|---|---|---|
-| CP-5 | one directory-shaped path in a generation envelope discarded the whole answer instead of skipping the bad block | `0884aa7` |
-| RS-1 | `write_json_atomic` shared one `.tmp` name per path: concurrent writers published truncated JSON and crashed mid-save | `ba428eb` |
-
-#### Wrong results (19)
-
-The gates that decide a score, and the accounting that decides what a run cost.
-
-| ID | Defect | Commit |
-|---|---|---|
-| CG-1 | every ground-touching component counted as "supported", so a detached part passed as long as it reached the floor | `ff1a2b5` |
-| CG-2 | interpenetration was never detected between non-watertight parts — `penetration_depth` returned `(0.0, 0.0)`, indistinguishable from "no overlap" | `3085862` |
-| CG-3 | `grounded` was one-sided, so a model exported below `y=0` marked every part grounded and disabled the floating check entirely | `ab7f4f2` |
-| CG-4 | a plan part swallowed a sibling whose name ends in a digit — a false "missing from the GLB" ERROR and a real 0.75 cap on a perfect artifact | `29209d9` |
-| CG-5 | `ab_plan --report-only` averaged the arms table over stale re-run rows, so the summary contradicted its own verdict | `7eccf2f` |
-| CQ-1 | two outage classifiers disagreed: the harness cell was dropped while the one-shot cell took a hard 0.0 for the identical provider error | `c225757` |
-| CQ-2 | parallel asset generation raced on one fixed temp filename, silently disabling the three.js asset gate for the losing asset | `63ba756` |
-| CQ-3 / SM-01 | `--max-in-flight 8` silently discarded when the shell exported a cap: the preflight reserved 16, the children held 64 | `c7a2363`, `d4544f8` |
-| CQ-4 | `3dcv bench` never adopted the outage classifier — a 60-minute 503 storm was reported as model latency (12.8× inflation) | `51e8a4f` |
-| CP-6 / RS-8 | gallery and flywheel export reported "0 runs" as a success for compare / A-B battery directories | `971ad1a`, `3df7bc6` |
-| RS-4 | the brief disk cache key ignored `spec.references`, so an `--image` run silently reused a brief generated without the image | `afe4415` |
-| RS-9 | `metadata.parquet` silently dropped the complexity columns the exporter documents and writes | `bd2746e` |
-| SM-02 | `pool_budget()` charged a sibling running UNLIMITED as holding 0, and treated a negative cap as free headroom | `e0d487d` |
-| SM-03 | one `CV3D_JUDGE__*` variable disabled the profile's entire judge block — `CV3D_PROFILE=quality` judged at n=1 while advertising n=3 | `d2b4e17` |
-| SM-04 | the two YAML config files were merged with `dict.update()`, so naming a section discarded every sibling key the user had set | `c05c7aa` |
-| PORT-2 | the offline suite needed Gemini keys, so CI and every fresh clone were red | `139fbbc` |
-| PORT-3 | `doctor` never checked `moderngl` or `cadquery` — all-green on an install where the graphics and CAD tracks could not run | `616fa46` |
-| PORT-6 | `setup.sh` verified the wrong installation: the closing doctor ran whatever was first on `PATH`, ignoring `--python` | `5c79e09` |
-| CC-1 | every claude-code `--model` ALIAS was recorded as the CLI's housekeeping model — see §5 | `1d27275` |
-| CC-2 | `claude-opus-5[1m]`, the id the DEFAULT claude-code arm serves, had no price row — see §5 | `12fca2e` |
-
-`CQ-3`/`SM-01` and `CP-6`/`RS-8` were each one defect found twice by different sweeps; both
-landed twice and were reconciled at sign-off (§6).
-
-#### Hangs (2)
-
-| ID | Defect | Commit |
-|---|---|---|
-| CP-4 | `run_subprocess` ignored its own `timeout_s` when the child left a detached descendant holding the pipes — unbounded, on every build and render path | `3ba9532` |
-| PORT-1 | the documented "pure-python subset" pytest line silently re-enabled the live tests: a command-line `-m` **replaces** `addopts`, it does not add to it | `616fa46` |
-
-#### Usability (10) and style (1)
-
-| ID | Defect | Commit |
-|---|---|---|
-| CP-7 | a stale `.git/index.lock` made every resume fail with a bare "exit status 128" | `2c32d4c` |
-| SM-06 | `make --reference --no-run` ran the paid reference pass before honouring `--no-run` | `b743074` |
-| SM-08 | `--texture` accepted on scene and graphics tracks, where the finalise pass could only ever raise and be swallowed | `2c32d4c` |
-| SM-09 | `3dcv render` ignored `render.width` / `height` / `scene_width` / `scene_height` and hardcoded 768×768 | `ed60341` |
-| SM-10 | an unknown profile name escaped as a raw `ValueError` traceback from every command, `3dcv doctor` included | `b743074` |
-| SM-11 | `--max-usd` accepted negative values; the spec was written and the run then died unrecoverably on its first call | `2c32d4c` |
-| CQ-5 | `plan_features.py` — "the one env switch every plan-loop change reads" — was read by zero callers | `d24b3e7` |
-| PORT-4 | a wheel shipped no scene starter tree; one package-data glob pointed at a directory that does not exist | `2a13c37` |
-| PORT-7 | the TL;DR install path died with "No module named pip"; pip and venv were missing from the prerequisites | `5c79e09` |
-| PORT-8 | building left an untracked `harness/build/`, and the install docs' test counts were stale | `c3612eb` |
-
-#### Found by running the thing, not reading it (9)
-
-| ID | Defect | Status |
-|---|---|---|
-| SMOKE1 | `3dcv resume` had no terminal-state guard: resuming a finished run re-ran a **billed** plan stage and rewrote `status` from `passed` to `planning`, leaving the run stuck | fixed `3c5bd37` |
-| SMOKE2 | `record.json` stores 29 absolute host paths; the intended repair only rebased *relative* paths, i.e. was a no-op against every record the harness writes | fixed `133f56b` + `7e5209b` |
-| SMOKE3 | `agy:<bare model id>` could not launch — `build_argv` appended `--model` but never an `--effort`, which agy 1.1.19 requires for every gemini model | fixed `caefc43` |
-| SMOKE4 | `CodingAgent.available()` is a false green light | **OPEN — see §4** |
-| SMOKE5 | duplicate of SM-10 | fixed `b743074` |
-| CC-1 | claude-code model attribution | fixed `1d27275`, §5 |
-| CC-2 | `claude-opus-5[1m]` pricing | fixed `12fca2e`, §5 |
-| SIGN-1 | the SMOKE2 fix reached `3dcv status` but **not** `3dcv show`, the command actually reported: `layout_cmd.print_evidence` still printed the raw stored path, so a moved run still showed a contact sheet that is not there next to an `object.glb` that resolves | fixed `7e5209b` |
-| SIGN-2 | `3dcv doctor` reported **FAIL** on a correct base install: `scipy`, `networkx` and `pyarrow` were checked but never attributed to an extra, so a fresh clone was told its install was broken and given a remedy that could not clear the row | fixed `7321e9e` |
-
-`SIGN-1` and `SIGN-2` were found at sign-off by re-running the failed smoke rows and by the
-clean-clone check respectively — neither was visible from the test suite, which was green.
-
-A third sign-off finding, `SIGN-3`, was a **test** defect rather than a product one: the
-`unique_tmp` regression test asserted that 8 short-lived threads get 8 distinct idents.
-`threading.get_ident()` only promises uniqueness among *living* threads, so on the Python
-3.10 floor the test failed `1 != 8` while passing on 3.13 — CI's 3.10 matrix job would have
-gone red on push. The threads are now held at a barrier (`7942926`); no product change.
-
----
-
-### 3. Notable behaviour changes
-
-Things an operator will notice, beyond a bug no longer happening.
-
-- **`3dcv resume` refuses a finished run.** A run that ended `passed` / `plateau` (and
- `budget` when no cap was raised) is refused with a message pointing at `3dcv status`.
- `--force` re-enters it, and says what that costs.
-- **`3dcv make --profile <unknown>` and a bad `CV3D_PROFILE`** now exit **2** with
- `error: bad configuration: …` instead of a traceback. Any invalid settings value takes
- the same path.
-- **`--max-usd` / `--max-minutes` reject negatives** before the workspace is created. `0`
- stays legal.
-- **`--texture` is refused on the scene and graphics tracks**; `--profile quality` silently
- drops the texture pass there instead of recording one it could never run.
-- **`3dcv render` honours the configured render size**, and gained `--width` / `--height`.
-- **A battery directory is now a valid argument** to `flywheel export` and `gallery build`:
- the runs are discovered in all three layouts instead of reported as "0 runs, success".
-- **`ab_plan` pins both children to the cap the admission check reserved**, and refuses a
- `--variant-env` that only sets switches nothing reads.
-- **`3dcv bench` gained `--redo-status`**, so the new `infra_failed` classification is
- actionable the way `compare_backends`' already was.
-- **`--reference --no-run` warns that it is about to spend ~$0.15** before it does. The
- paid pass still runs: it writes the grounded spec back, which is the artifact the flag
- asks for.
-
----
-
-### 4. Known open
-
-**One item. No crash, data-loss or wrong-result defect is open.**
-
-#### SMOKE4 — `CodingAgent.available()` is a false green light
-
-`available()` returned `(True, "ok")` for `agy:gemini-3.7-flash`, which could not launch at
-all, and for `codex:gpt-5.1-codex`, which the ChatGPT-account backend rejects with
-`HTTP 400 — model is not supported`. Its contract says "binary found / auth present / model
-known"; it does not verify the last clause.
-
-**Why it is not fixed.** The missing check cannot be done offline. Both ids are well-formed
-for their vendor, so any prefix or vendor check passes them and catches neither case. There
-is no allowlist of agy- or codex-served models in the repo, and inventing one would reject
-legitimately new models on the day they ship — this repo added `gpt-5.6-sol`,
-`claude-opus-5` and `gemini-3.7-flash` within the last weeks. The only check that catches
-them is a live one-turn launch per CLI arm, which spends budget and cannot carry an offline
-regression test. A docstring-only edit was deliberately **not** landed: it would look like a
-fix while leaving the false green light in place.
-
-The premise is also narrower than reported: the bench preflight
-(`compare_backends.py:374`) never calls `available()` — it probes API models only and maps
-subscription-CLI targets to `""`. The only callers are each agent's own `run()`.
-
-**Workaround.** Use an effort-qualified agy id (`agy:gemini-3.7-flash-low`); as of
-`caefc43` a bare id is resolved to one automatically, so this is now belt-and-braces. For
-codex, use the tiers this repo actually runs — `gpt-5.6-sol` / `-terra` / `-luna`. Treat a
-first-cell `HTTP 400 model is not supported` as a configuration error, not a scored zero.
-
-**Recommended follow-up (budgeted, not this pass):** a `--launch-check` in the bench
-preflight that runs one trivial turn per CLI arm and classifies a backend model rejection as
-a config error; and narrowing `available()`'s docstring to what it actually verifies.
-
-#### Pre-existing flakes (not from this pass, not fixed)
-
-`tests/orchestrator_tracks/test_cost_latency.py::test_a_model_outage_escalates_the_asset_instead_of_losing_it`
-and `tests/orchestrator_tracks/test_prompts_assets.py::test_scene_templates_render_and_asset_stage_with_blender`
-fail when that directory is run **alone** and pass inside a full-suite run. Reproduced 3/3
-at `d5dc135` with no fixes applied, so they predate this pass. Both pass in every full-suite
-run reported here. Worth a separate look at their fan-out / ordering assumptions.
-
----
-
-### 5. The claude-code arms, and Sonnet 5
-
-Two defects here, both fixed, both affecting **recorded cost and model attribution** rather
-than generated artifacts.
-
-#### CC-1 — every `--model` ALIAS recorded the wrong model
-
-`claude -p` bills **two** models per session: the work model, plus a small background model
-the CLI uses for its own housekeeping. claude 2.1.243 lists the **auxiliary** one first in
-`modelUsage`. `usage_from_envelope` did:
-
-```python
-served = list(modelUsage.keys())
-if model not in served:
- usage.model = served[0]
-```
-
-which fires exactly when `--model` is an alias. So `claude-code:sonnet`, `claude-code:opus`
-and the default arm all recorded the model that did **0.9% of the tokens**: in the probe,
-`claude-sonnet-5` did the work at $0.02284 while `claude-haiku-4-5-20251001` took the label
-for a $0.000955 side-call. Full ids passed verbatim were unaffected — the bug bit only the
-spelling the arms are actually configured with.
-
-It reached `CallCost.model` and `OneShotResult.usage`, so **a sonnet-vs-default comparison
-was labelled haiku-vs-haiku**.
-
-Fixed by `primary_served_model()`: pick the `modelUsage` entry whose token counts match the
-envelope's own top-level `usage` block (which reports the main conversation only), falling
-back to the dearest entry; an id we passed verbatim is kept as-is.
-
-Verified live at sign-off:
-
-| arm | recorded `usage.model` before | after | price lookup |
-|---|---|---|---|
-| `claude-code:sonnet` | `claude-haiku-4-5-20251001` | `claude-sonnet-5` | exact |
-| `claude-code:opus` | `claude-haiku-4-5-20251001` | `claude-opus-5` | exact |
-| default (no `--model`) | `claude-haiku-4-5-20251001` | `claude-opus-5[1m]` | exact |
-
-#### CC-2 — the default arm's model had no price
-
-`claude-opus-5[1m]` is the 1M-context Opus 5 variant the **default** claude-code arm serves.
-`[1m]` is not a version suffix, so it cannot prefix-match `claude-opus-5`, and the id had no
-row: `match=unknown`, `estimate_cost` → `$0.00`, `3dcv cost prices` calling the default arm
-unknown — while a recorded cell had billed **$1.218038** under exactly that key.
-
-The ledger dollar was never wrong (claude-code is in `PROVIDER_PRICED_BACKENDS`, so
-`price_call` returns the CLI's own reported cost), but every estimate and every price-hygiene
-report was. Note the ordering trap: **fixing CC-1 alone would have broken the suite**, because
-it makes the default arm start recording this id and
-`test_every_recorded_model_id_resolves_to_a_price` then fails.
-
-Added `Price(5.00, 25.00, 0.50, cache_write=6.25)`, provenance `provider-cost / inferred /
-checked 2026-08-24`. Not guessed: the probe billed `costUSD 0.034620` for `in=2, out=4,
-1h-cache-write=3451`, which is exactly `2×5.00 + 4×25.00 + 3451×10.00` per 1M — the standard
-Opus 5 rates with the 1h cache write at 2× input (not modelled, as for every other Anthropic
-row). A test pins that a bracketed suffix still cannot borrow a sibling's price:
-`claude-sonnet-5[1m]` stays `unknown`.
-
-#### Sonnet 5 pricing — checked, and correct
-
-The `claude-sonnet-5` row is `$2.00 / $10.00` per 1M (cached `$0.20`, cache write `$2.50`).
-This was re-verified at sign-off against the live model documentation on 2026-08-24, because
-a widely-cached price table still describes `$2 / $10` as an *introductory* rate expiring
-2026-08-31 with `$3 / $15` resuming after. **That is stale.** The current published rate for
-Claude Sonnet 5 is $2 / input MTok and $10 / output MTok, unqualified — the row and its
-provenance note ("the launch rate became the standard rate; the 2026-09-01 increase was
-cancelled") are right, and no 1 September repricing is pending. Opus 5 confirmed at $5 / $25
-and Haiku 4.5 at $1 / $5 on the same check.
-
-#### Still true about the CLI arms
-
-`codex:gpt-5.1-codex` is rejected by a ChatGPT-account backend; the tiers this repo runs are
-`gpt-5.6-sol` / `-terra` / `-luna`. `available()` will not warn you (§4).
-
----
-
-### 6. Reconciliation notes for reviewers
-
-Three things worth knowing about how this landed.
-
-1. **An entire wave had not landed.** Twelve commits fixing 16 defect ids (CP-2, CP-6, CP-7,
- RS-3, RS-8, SM-01, SM-04, SM-08, SM-11, CG-3, CQ-1, CQ-4, PORT-5, PORT-6, PORT-7, SMOKE2,
- SMOKE5) existed only on a detached worktree branched from `d5dc135`. They were rebased
- onto `main` at sign-off, six conflicts resolved by hand, and all 24 of their regression
- tests re-proved to fail against `main` before landing.
-
-2. **Three defects were fixed twice**, by different waves, and were reconciled rather than
- double-landed:
- - **CQ-3 / SM-01** — `main`'s fix already assigned the cap and popped the nested spelling.
- Only the genuinely new part of the second fix was kept: `--variant-env` now refuses
- either spelling of the cap.
- - **CP-6 / RS-8** — one wave raised a loud error, the other **discovered** the runs.
- Discovery won and subsumes the error: `3dcv cost --runs-dir` already accepts a battery
- root, so refusing would have made the exporters the only commands that did not. It also
- fixes the gallery half, which the error-only fix did not touch. The anti-silence guard
- is kept for the case discovery cannot rescue — a battery-shaped directory holding no
- records. The superseded test was rewritten to assert the stronger behaviour.
- - **SM-10 / SMOKE5** — kept `main`'s typed exit code **2**; the duplicate test was
- retained for its extra assertion (no workspace is created for a rejected flag) and
- aligned to that contract.
-
-3. **`runtime_js/node_modules` must stay untracked.** It was tracked by accident (a
- `git add -A` inside a worktree, where it is a symlink) and untracked again in `6275853`;
- one wave's cherry-pick then replaced the real directory with a self-referential symlink
- and destroyed it, and it was restored with `npm ci`. `git ls-files
- harness/runtime_js/node_modules` prints nothing at this commit, and `57d2e8a` extends
- `.gitignore` to cover the symlink form so it cannot come back the same way.
-
----
-
-### 7. Verification
-
-#### Test suite
-
-| Run | Interpreter | Command | Result |
-|---|---|---|---|
-| Whole offline suite | 3.13.9 | `python -m pytest -q --timeout=900` (`addopts = -m "not live"`) | **2257 passed, 6 skipped, 24 deselected** (512 s) |
-| Lint | 3.13.9 | `ruff check .` (target-version py310) | **All checks passed** |
-| Clean clone, CI's own command | **3.10.21** | `pytest tests/core tests/models tests/judges tests/orchestrator_tracks tests/flywheel_cli tests/bench_prompts tests/cost -q -m "not live and not blender and not node"`, every credential unset and `$HOME` redirected | **1295 passed, 13 skipped, 16 deselected** |
-
-The deselected are `live`; **no live test was run and no provider was billed by the suite.**
-The skips are data-dependent (recorded runs a fresh clone does not have).
-
-#### Clean clone
-
-`git clone` → fresh `python3.10 -m venv` → `pip install -e harness` → `3dcv doctor` →
-offline subset. Python **3.10.21**, the `requires-python` floor.
-
-- install: clean, `3dcodeverse-0.1.0` plus 50 dependencies
-- `import codeverse` resolves inside the clone
-- `3dcv doctor`: exit 0. `python deps` **WARN** — `14/23 importable`, remedy
- `pip install -e 'harness[cad,flywheel,graphics,mcp,mesh,urdf]'` (this row was **FAIL**
- before `7321e9e`; see SIGN-2). `three` / `puppeteer` / `chrome webgl` FAIL as expected —
- `npm install` in `runtime_js` is a separate documented step and is not part of the pip
- install.
-- offline subset: green, with **no credentials in the environment**, which is what a CI
- runner has (PORT-2).
-
-#### Smoke matrix
-
-55 cells. **47 ok, 0 failed, 8 skipped.** All four cells that failed on the hunt were
-re-run at sign-off and now pass; the remaining 43 ok cells are carried forward from the hunt
-and were not re-executed individually — the full offline suite covers them.
-
-Every skip was blocked by the **concurrency budget**, not by a provider outage: the house
-rule is that the sum of every harness process's `CV3D_MAX_IN_FLIGHT` stays at or under 64,
-and `pool_budget()` read headroom 0 for the whole hunt window. The health gate itself
-*passed* both models (`gemini-3.7-flash` 3/4 keys, `gemini-3.1-pro-preview` 3/4). Nothing in
-the fix or sign-off passes called a model except the four subscription-CLI probes noted below.
-
-| # | Area | Cell | Result |
-|---|---|---|---|
-| 1 | env | worktree isolation + `node_modules` symlink + import resolves inside | ok |
-| 2 | lint | `ruff check .` | ok |
-| 3 | env | concurrency preflight (`pool_budget()`) | ok |
-| 4 | track × language | `make` static_object × blender (`--no-run`) | ok |
-| 5 | track × language | `make` static_object × cadquery (`--no-run`) | ok |
-| 6 | track × language | `make` static_object × threejs (`--no-run`) | ok |
-| 7 | track × language | `make` articulated_object × urdf_blender (`--no-run`) | ok |
-| 8 | track × language | `make` scene × scene_threejs (`--no-run`) | ok |
-| 9 | track × language | `make` graphics × glsl_shader (`--no-run`) | ok |
-| 10 | track × language | `make` graphics × opengl_python (`--no-run`) | ok |
-| 11 | track × language | live 1-round run, all 7 pairs | skipped — pool headroom 0 |
-| 12 | profile | `economy` resolves | ok |
-| 13 | profile | `balanced` resolves | ok |
-| 14 | profile | `quality` resolves (distinct dials: judge n=3, 2 candidates, $8) | ok |
-| 15 | profile | unknown name rejected cleanly | **ok** (was failed — SM-10) |
-| 16 | CLI | `tools list` (18 tools, track-scoped) | ok |
-| 17 | CLI | `tools measure` / `tools check_connectivity --json-out` | ok |
-| 18 | CLI | `make` | ok |
-| 19 | CLI | `resume` on a completed run | **ok** (was failed — SMOKE1) |
-| 20 | CLI | `resume` a `--no-run` spec | skipped — pool headroom 0 |
-| 21 | CLI | `status` | ok |
-| 22 | CLI | `render` default + `--mode wire` (real GPU) | ok |
-| 23 | CLI | `judge` | skipped — pool headroom 0 |
-| 24 | CLI | `mcp` — real `ClientSession` over stdio, 13 tools, `call_tool` | ok |
-| 25 | CLI | `show` | ok |
-| 26 | CLI | record path portability (`show` after relocation) | **ok** (was failed — SMOKE2 / SIGN-1) |
-| 27 | CLI | `migrate-runs` (idempotent on second pass) | ok |
-| 28 | CLI | `flywheel export --pack --drop-duplicates` | ok |
-| 29 | CLI | `flywheel pairs` | ok |
-| 30 | CLI | `flywheel caption` | skipped — pool headroom 0 |
-| 31 | CLI | `flywheel index` | ok |
-| 32 | CLI | `flywheel dedupe` | ok |
-| 33 | CLI | `flywheel gallery` | ok |
-| 34 | CLI | `gallery build --embed` | ok |
-| 35 | CLI | `gallery serve` + HTTP 200 | ok |
-| 36 | CLI | `bench run` (resume path, 0 model calls) | ok |
-| 37 | CLI | `bench report` | ok |
-| 38 | CLI | `cost <slug>` (ledger reconciles to −0.00%) | ok |
-| 39 | CLI | `cost --runs-dir <battery>` | ok |
-| 40 | CLI | `cost prices` / `--stale` | ok |
-| 41 | CLI | `cost cache` | ok |
-| 42 | CLI | `cost profiles` | ok |
-| 43 | CLI | `cost estimate` | ok |
-| 44 | CLI | `doctor` | ok |
-| 45 | CLI | `doctor --live` (one `pong`, $0.00023) | ok |
-| 46 | CLI | `texture show` | ok |
-| 47 | CLI | `texture pass` | skipped — pool headroom 0 |
-| 48 | CLI | `texture scene-pack` | skipped — pool headroom 0 |
-| 49 | backend | `claude-code:sonnet` 1-turn (subscription) | ok |
-| 50 | backend | `codex:gpt-5.6-sol` 1-turn (subscription) | ok |
-| 51 | backend | `agy:gemini-3.7-flash-low` 1-turn (subscription) | ok |
-| 52 | backend | `agy:<bare model id>` | **ok** (was failed — SMOKE3, re-verified live: `pong`) |
-| 53 | backend | `gemini-cli` 1-turn | skipped — pool headroom 0 (`available()` ok) |
-| 54 | backend | `api-agent` 1-turn | skipped — pool headroom 0 (`available()` ok) |
-| 55 | models | health gate probe, both models | ok |
-
-Sign-off re-runs of rows 15, 19, 26 and 52 used four subscription-CLI or offline calls and
-did not touch the Gemini key pool.
-
-#### House rules
-
-- All work done in `git worktree`s; the main tree was never edited while a battery was
- running, and `git -C /home/yipeng/3dcodeverse status --short` is empty at this commit.
-- `git ls-files harness/runtime_js/node_modules` prints nothing.
-- Python floor 3.10 held, and now actually exercised (SIGN-3 was a 3.10-only failure).
-- Nothing in the fix or sign-off passes added in-flight load to the shared key pool.
diff --git a/harness/docs/REVIEW_2026-08-26.md b/harness/docs/REVIEW_2026-08-26.md
deleted file mode 100644
index e98c84dd..00000000
--- a/harness/docs/REVIEW_2026-08-26.md
+++ /dev/null
@@ -1,497 +0,0 @@
-# Harness backend — reorganisation plan
-
-Scope: `~/3dcodeverse/harness` (`codeverse/`, `bench/`, `runtime_js/`, `tests/`, `docs/`).
-Inputs: 19 verified findings (each survived an adversarial re-check), 1 refuted, 28 unverified,
-four reader do-not-touch lists, the god-file inventory. Every item below cites the verdict's
-evidence, not the original claim; where the verdict narrowed a proposal, the narrowed version is
-what is written here. All line numbers are as of 2026-08-26.
-
-## 1. Verdict
-
-The codebase is in good shape for its age: the seven laws are visibly enforced (typed contracts,
-`TRACK_INFO` as single source, the `_<family>.py` shared-helper pattern, a test that pins the
-package map to `docs/ARCHITECTURE.md`), and almost every oddity a reviewer flags turns out to
-carry a dated measurement or an ADR — of ~1,000 removable lines, fewer than 300 are in
-production paths; the rest is stranded scaffolding. The real mess is **wave residue**: things
-built in parallel that were never reconciled once the siblings landed — a second HTML gallery
-(`flywheel/gallery.py`) that the CLI already abandoned, `call_adaptive` silently dropping
-kwargs to signatures that now exist, a compat shim with its own delete-me TODO, a headless
-Blender renderer with zero callers, a `material_pass` no command runs, and the same tolerant
-JSON/JSONL read loop written eight times because `proc.py` never grew the helper. What is NOT
-mess despite the look: `storm.py` shipped OFF, `cost/caching.py`'s measurement-only helpers,
-`budget.charge/add` both forwarding to `spend`, the StopPolicy ordering, `plan_features.py`'s
-dead switch, the wrapper helper twins under `languages/*/wrappers` (Blender's python cannot
-import `codeverse`), and `tracks/common.Services` forwarders — every one is a documented,
-measured decision (see §3), and the one "duplication" finding that targeted a documented corpus
-definition (`complexity_report.iter_runs`) was refuted for exactly that reason.
-
-## 2. The plan (ordered: low-risk deletions → shared helpers → behaviour-touching dedupes → package moves)
-
-Convention: **T** = the exact command that must be green before and after. Unless stated, run
-with `-p no:cacheprovider -m "not live"`. After every deletion item also run `ruff check codeverse bench`
-(F401 orphans are called out per item). Items marked **[land together]** share a file or a helper.
-
-### Wave A — pure deletions (no behaviour change, no new code)
-
-**A1. Delete nine dead public defs** · `dead-public-defs` · risk low · ~−45 LOC
-- Files: `codeverse/cli/_common.py:121-124` (`echo_json`), `codeverse/judges/images.py:55-66` (`view_label`),
- `codeverse/gallery/labels.py:82-91` (`verdict_label/verdict_class/verdict_title`), `codeverse/gallery/paths.py:46`
- (`is_inside`), `codeverse/gallery/server.py:383-387` (`free_port`), `bench/report.py:183-184` (`report_dict`),
- `codeverse/flywheel/gallery.py:239-240` (`gallery_dict` — whole file goes in D2; delete now or then),
- `bench/run_bench.py:162-164` (`_select`), `bench/run_bench.py:177-178` (`_default_run`),
- `tests/compare_bench/test_bench_shared.py:33` (drop the `rb._select(...) ==` assertion; line 34 keeps the test's meaning).
-- Why: extension-agnostic grep over the whole tree plus `dataset/`/`finetune/` finds each name only at its def;
- `cards.py:49`, `page.py:40`, `compare.py:136` index `VERDICT_META` directly; `serve()` handles `--port 0` via
- `httpd.server_address[1]` so `free_port`'s docstring is stale; none is in a `__all__`, entry point or doc.
-- Fallout: drop now-orphaned `socket` in `gallery/server.py`, `Any` in `bench/report.py` if ruff flags them.
-- T: `python -m pytest tests/gallery/test_server.py tests/gallery/test_triage.py tests/compare_bench/test_bench_shared.py -q` (62 passed today).
-
-**A2. Delete six dead track/orchestrator helpers** · `tracks-dead-helpers` · risk low · ~−24 LOC
-- Files: `codeverse/tracks/static_object.py:447-449` (`refine_task_lines` + the empty `# --- helpers` marker),
- `codeverse/tracks/graphics_steps.py:180-181` (`refine_lines`), `codeverse/tracks/steps.py:484-486` (`describe_round`),
- `codeverse/tracks/lifecycle.py:713-714` (`generator_label`), `codeverse/tracks/scene_asset_gen.py:330-332`
- (`asset_variant_call`), `codeverse/orchestrator/runner.py:129-134` (`StageRunner.invalidate`).
-- Why: `grep -w` over codeverse/tests/bench/docs/runtime_js/scripts returns only the def lines; `runner.py:97`'s own
- comment says "invalidate has no caller and no flag"; the two inline `[t.line() for t in tasks]` callers
- (`lifecycle.py:286`, `graphics.py:126`) never used the helpers.
-- Fallout (ruff F401): remove `Sequence` import `graphics_steps.py:14`, `Any` from `steps.py:28`, `is_single_shot`
- from `lifecycle.py:54`. Reword `runner.py:92-98` so it no longer names `invalidate`.
-- T: `python -m pytest tests/orchestrator_tracks tests/core -q` (345 passed today) + `ruff check codeverse`.
-
-**A3. Delete five dead cost helpers** · `cost-dead-helpers` · risk low · ~−23 LOC
-- Files: `codeverse/cost/ledger.py:387-388` (`totals_by`), `codeverse/cost/types.py:55-56` (`FREE_STAGES`),
- `types.py:267-269` (`Summary.share`), `types.py:272-280` (`usage_to_tokens`) **and** its now-orphaned
- `from codeverse.contracts.common import Usage` at `types.py:17`; `codeverse/cost/audit.py:223-224` (`audit_dir`)
- plus its import/`__all__` entry at `cost/__init__.py:20,89`.
-- Why: whole-tree grep incl. quoted/getattr forms hits only the defs; `report.py:48/131/135` computes the share
- inline. Keep the `Stage` members SKELETON/ASSEMBLE/GATES/RENDER (used by `report.STAGE_ORDER`,
- `audit.stage_latency`); move the "kept so latency can be attributed" note onto those members.
-- T: `python -m pytest tests/cost tests/install/test_docs.py -q` (136 passed today).
-
-**A4. Delete five dead/test-only spatial defs and their tests** · `spatial-dead-and-test-only-twins` · risk low · ~−85 LOC
-- Files: `codeverse/spatial/tool_common.py:40-47` (`unavailable_obs`, + its `__all__` entry at :27; keep the
- `#: ToolUnavailable now lives in registry` comment), `codeverse/spatial/frame_stats.py:181-183` (`stats_table`),
- `runtime_js/lib/census.mjs:74-77` (`hasNonFinitePositions`), `codeverse/spatial/render_scene.py:299-334`
- (`frame_table`), `codeverse/spatial/silhouette.py:257-287` (`silhouette_series`);
- tests: delete `tests/scene_runtime/test_render_scene.py:209-235` (two `frame_table` tests) and
- `tests/spatial_tools/test_silhouette.py:61-68` (`test_series_picks_best_view`) + the import at :9.
-- Why: zero callers by grep; the production twins are already tested directly — `frame_summary_text`
- (`tests/scene_gates/test_frame_metrics.py:143-149`), `best_view_match` (`tests/reference/test_silhouette_best_view.py:31-51`),
- `metrics_path_for` (`tests/scene_gates/test_judge_views.py:58-81`). No retargeting needed.
-- T: `python -m pytest tests/scene_runtime/test_render_scene.py tests/spatial_tools/test_silhouette.py tests/scene_gates/test_frame_metrics.py tests/reference/test_silhouette_best_view.py -q` (verdict could not run these — run before deleting).
-
-**A5. Delete the standalone `render_bpy.py` renderer** · `languages-two-blender-renderers` · risk low · ~−200 LOC
-- Files: delete `codeverse/languages/blender/wrappers/render_bpy.py`, the `RENDER_WRAPPER` constant
- (`codeverse/languages/blender/runtime.py:34`), and `tests/blender_cadquery/test_blender_runtime.py::test_live_native_render` (:160-167).
- **Keep** `urdf/wrappers/render_glb_bpy.py` + `spatial/joints_export.blender_render_glb` (public in
- `spatial/joints.__all__`, the only non-three.js `Renderer` impl, documented in `urdf/__init__.py:5`).
-- Why: `RENDER_WRAPPER` referenced only by that one blender-marked test; no CLI/track/doctor/prompt reaches it;
- `docs/INSTALL.md:87` states there is no Blender-render fallback by design; camera math at
- `render_bpy.py:154-157` is token-identical to `render_glb_bpy.py:75-81`.
-- T: `python -m pytest tests/blender_cadquery/test_blender_runtime.py tests/urdf_joints/test_live_blender.py tests/install/test_docs.py -q -p no:cacheprovider` (needs `~/.local/bin/blender-5.0`; not run by the verifier).
-
-**A6. Delete `material_pass` and collapse `_verify`** · `texturing-dead-material-pass` · risk low · ~−95 LOC · **[land together with A7]**
-- Files: `codeverse/texturing/normalise.py:241-324` (`MATERIALS_GLB`, `MaterialPassReport`, `material_pass`,
- `_gate_judge`), `__all__` at :327-328, docstring :22-24 (it still promises `artifacts/object_materials.glb` +
- a judge gate; real output is `textures/object_normalised.glb` inside `texture_pass`, `run.py:218`);
- replace `normalise._verify` body (:227-238) with `return verify_textured_glb(glb_in, glb_out, expected_textured=0)`
- (only delta: GlbLoadError now carries the "textured GLB verification failed" prefix).
-- Why: grep for the names and their string forms (`material.normalised`, `materials_gate`, `object_materials`)
- hits only normalise.py; `texture_cmd.py` exposes pass/show/scene-pack only; `_gate_judge` is `run._make_judge`
- minus a log line; the two `_verify` checks are byte-identical f-strings to `apply.verify_textured_glb:187-208`.
-- Do NOT touch the `judge=<object>` shim at `run.py:188-191`: `tests/texturing/test_run.py:81-88` pins it as a
- one-wave deprecation window. Retiring it is a policy call (delete shim + those 8 test lines together).
-- T: `python -m pytest tests/texturing/test_normalise.py tests/texturing/test_apply.py tests/texturing/test_run.py -q` (not run by the verifier).
-
-**A7. Delete the unshipped `cookbook_block`** · `texturing-two-family-tables` (narrowed) · risk low · ~−65 LOC
-- Files: `codeverse/texturing/materials.py:336-396` (`_HEAD`, `cookbook_row`, `cookbook_block`) + `__all__`;
- fix docstring :20-21 ("used three ways" → two) and the dangling "see not_done" at :363;
- delete `tests/texturing/test_materials.py:99-105` and the `cookbook_block` import at :11.
-- Why: only caller is that shape test; no prompt/cookbook/`prompts/__init__` imports `texturing.materials`;
- no `not_done` file exists anywhere. Brings materials.py from 436 to ~375 lines (Law 4).
- **The resolver-merge half of this finding was refuted** — `plan.family_from_text` (11 coarse tile families,
- VLM schema + tile sizes) and `materials.family_for` (20 fine PBR families, substrate×finish) have different
- output domains, `COARSE_TO_FINE` is non-injective, and a merge flips 128/185 keyword outcomes incl. the
- test-pinned `family_from_text("oiled") == "other"`. Leave both tables.
-- Alternative (behaviour change, needs judge A/B): wire `cookbook_block()` into the blender/threejs cookbook.
-- T: `python -m pytest tests/texturing/test_plan.py tests/texturing/test_materials.py tests/texturing/test_normalise.py -q` (36 passed today).
-
-**A8. Delete three legacy re-export shims** · `tracks-dead-legacy-reexport-shims` · risk low · ~−20 LOC
-- Files: `codeverse/tracks/common.py:237-247` (`__getattr__` + `_PROMPTING`), `codeverse/tracks/static_object.py:33`
- (`MAX_SKELETON_CHARS # noqa: F401`), delete `codeverse/orchestrator/fanout.py`; redirect
- `tracks/steps.py:36`, `tracks/candidates.py:38`, `tracks/scene.py:41`, `tracks/scene_assets.py:33`,
- `tests/orchestrator_tracks/test_orchestrator.py:17` to `from codeverse.proc import fan_out, split_results`.
-- Docs: **move** the `fanout.py` token from the orchestrator row (`docs/ARCHITECTURE.md:145`) to the top-level
- `codeverse/` row (~line 85, beside `proc.py`) — dropping it alone fails
- `tests/install/test_docs.py::test_architecture_package_map_covers_every_module`. Drop the "(lazy re-exports keep
- old imports working)" parenthetical at `docs/INTERFACES.md:334` and "fan-out" from `orchestrator/__init__.py`'s docstring.
-- Why: no importer pulls any of the 12 prompting names via `tracks.common`; `MAX_SKELETON_CHARS` is used only in
- `prompting.py`; the shim forwards identical objects; judges/cost/bench already import `codeverse.proc`.
-- T: `python -m pytest tests/orchestrator_tracks tests/install/test_docs.py tests/prompts -q` (243 + 50 passed today).
-
-**A9. Delete the `gl_build` shim** · `languages-gl-build-shim` · risk low · ~−13 LOC
-- Files: delete `codeverse/languages/glsl_shader/gl_build.py`; flip `codeverse/tracks/graphics.py:22`,
- `codeverse/tracks/graphics_steps.py:22`, `tests/graphics/test_track.py:21` to `codeverse.languages._gl_common`;
- in `tests/languages/test_gl_common_entry.py` delete only `test_gl_build_shim_reexports_gl_common` and the
- `gl_build` name in the :7 import (keep the other three tests); `docs/ARCHITECTURE.md:100` → "glsl_shader/ (wrap.py header+line-map)".
-- Why: the file is a 7-line `import *` with its own "TODO: delete this shim"; spatial already imports `_gl_common`
- directly (`tool_common.py:215`); nothing monkeypatches via the tracks binding.
-- T: `python -m pytest tests/graphics tests/languages tests/spatial_tools tests/install/test_docs.py -q` (43 passed today on the subset).
-
-### Wave B — one shared helper replaces N copies (mechanical, behaviour-preserving)
-
-**B1. `BoundedCache[T]` in `models/parts.py`** · `models-dup-lru-cache` · risk low · ~−22 LOC
-- Files: `codeverse/models/gemini_convert.py:39-63` (`_SignatureCache`), `codeverse/models/anthropic_convert.py:65-89`
- (`_ThinkingCache` — the finding's 301-325 citation is wrong, file is 242 lines), new class in `codeverse/models/parts.py`.
-- What: `put(key, value)` (skip falsy; locked `move_to_end` + `popitem(last=False)` loop), `get(key) -> T | None`.
- `SIGNATURES: BoundedCache[bytes] = BoundedCache(4096)`; `THINKING_BLOCKS: BoundedCache[list[dict]] = BoundedCache(2048)`
- and `anthropic_convert.py:138` becomes `list(THINKING_BLOCKS.get(id) or []) + blocks` to keep the copy/empty-default
- semantics. Keep the names — `tests/models/test_gemini.py:24`, `tests/models/test_anthropic.py:21` import them.
-- Why: identical `__init__/put/get` bodies; D23 justifies the cache, not two copies; `parts.py` is "shared by the provider backends" (ARCHITECTURE:87).
-- T: `python -m pytest tests/models/test_gemini.py tests/models/test_anthropic.py -q` (39 passed today).
-
-**B2. `proc.read_json_or_none`** · `tolerant-read-json-copies` · risk low · ~−25 LOC · **[land together with B3 — both edit `proc.py` and ARCHITECTURE:85]**
-- Add to `codeverse/proc.py` (stdlib-only, 164 lines): `read_json_or_none(path, *, errors=None) -> dict | None`
- (None on OSError/ValueError or non-dict top level).
-- Replace: `codeverse/flywheel/telemetry.py:303-308`, `bench/complexity_report.py:58-62` (`_read_json` — keep a
- 1-line alias, `tests/flywheel_cli/test_complexity_record.py` references it via `CR`), `codeverse/gallery/index.py:198-202`
- and `:259-263` (`or {}`), `codeverse/cli/main.py:741-748`, `codeverse/runlock.py:62-65`,
- `codeverse/languages/threejs/lint.py:157-162`, `codeverse/cost/reconstruct.py:49-54` (`errors="replace"`);
- `codeverse/spatial/_render_common.py:43-50` becomes `return read_json_or_none(path) or {}`;
- `codeverse/cli/_judge.py:50-57` → `data = read_json_or_none(ws.plan_path); return plan_digest(data) if data else ""`.
-- **Leave strict**: `judges/calibration._read_json:156` (a corrupt calibration input must raise) and `Workspace.read_json`.
- `_judge.py:123-127` keeps its try (it also guards `model_validate`).
-- Why: the verifier found eight copies, not seven, and three existing helpers of the same shape; `proc.py` is
- the documented "atomic-JSON primitives shared by languages/spatial/cli" home with no codeverse imports.
-- T: `python -m pytest tests/flywheel_cli/test_run_layout_cli.py tests/gallery/test_index.py tests/flywheel_cli/test_complexity_record.py tests/judges/test_calibration.py tests/spatial_tools/test_render_common.py tests/core/test_runlock.py tests/cost/test_reconstruct.py -q` (70 passed today).
-
-**B3. `proc.iter_jsonl_lines` / `read_jsonl_lenient` / `append_jsonl_line`** · `core-inconsistent-jsonl-io` · risk low · ~−30 LOC
-- Add to `codeverse/proc.py`: `iter_jsonl_lines(path) -> Iterator[tuple[int, str]]` (missing file → nothing,
- `read_text(encoding="utf-8", errors="replace")`, skips blanks); `read_jsonl_lenient(path, *, log=None, dicts_only=False)`;
- `append_jsonl_line(path, rec, lock)` (`json.dumps(ensure_ascii=False, default=str)` + newline under lock).
-- Readers → `read_jsonl_lenient`: `codeverse/events.py:44-50`, `codeverse/cost/reconstruct.py:57-70` (dicts_only),
- `codeverse/flywheel/trajectories.py:118-127`, `codeverse/cli/skills_cmd.py:132-136`,
- `codeverse/agents/transcript.py:80-83` (becomes tolerant; its only caller is `tests/agents/test_cli_common.py:139`).
- `cost/ledger.load_ledger:358-365` and `bench/_jsonl.read_jsonl` keep `model_validate_json(line)` but iterate via `iter_jsonl_lines`.
-- Writers → `append_jsonl_line`: `events.py:28-31`, `transcript.py:69-72` only. **Leave `CostLedger.append`
- (`ledger.py:79-88`)** — mkdir + flush + OSError-swallow is a different, documented contract ("flushed on write").
-- Update `docs/ARCHITECTURE.md:85` to list the new names.
-- T: `python -m pytest tests/core/test_events.py tests/cost/test_ledger.py tests/cost/test_reconstruct.py tests/agents/test_cli_common.py tests/core/test_proc.py tests/skills/test_hook.py tests/install/test_docs.py -q` (not run by the verifier).
-
-**B4. `cli_common.invoke` for the four CLI agent backends** · `agents-dup-cli-invoke` · risk low · ~−35 LOC
-- Files: `codeverse/agents/cli_common.py` (+`IDLE_GRACE_S = 300.0`, `invoke(...)`, `watchdog_error(proc)`);
- callers `claude_code.py:155-173`, `codex.py:171-192`, `antigravity.py:163-184`, `gemini_cli.py:216-244`; drop the
- four per-module `IDLE_GRACE_S` (claude_code:43, codex:37, antigravity:45, gemini_cli:55).
-- Signature: `invoke(s, argv, env, *, prompt, stdout_name="stdout.json", on_stdout=None, stdin=None, attempt=1,
- idle_grace_s=None, **invoke_extra) -> CompletedProc` — masks the prompt in the 'invoke' line, forwards
- `invoke_extra` (gemini's `model`/`key_tail`, codex's stdin flag), reads `cli_common.IDLE_GRACE_S` at call time,
- writes `stdout{suffix}.<ext>` / `stderr{suffix}.log` with suffix `''` or `.{attempt}`.
-- Must keep: `tests/agents/test_gemini_cli.py:143` monkeypatches `codeverse.agents.backends.IDLE_GRACE_S` → retarget
- to `cli_common.IDLE_GRACE_S`; `test_gemini_cli.py:92/107` assert `key_tail` on invoke lines; `test_codex.py:99/127` assert `stdout.jsonl`.
-- Why: the four blocks are the same expression set verbatim (argv mask, watchdog kwargs, file writes, error line);
- `cli_common.py` is documented as "shared plumbing for subprocess backends" and stays under 400 (297+~30).
- Tests run real fake binaries through the real watchdog (`tests/agents/conftest.py:23`), which is strong coverage.
- `bench/_oneshot.py` and `api_tools.py` stay — different shapes.
-- T: `python -m pytest tests/agents/test_claude_code.py tests/agents/test_codex.py tests/agents/test_antigravity.py tests/agents/test_gemini_cli.py tests/agents/test_cli_common.py -q` (not run by the verifier).
-
-**B5. Kill `render.render_scene` forwarder and `call_adaptive`** · `spatial-forwarders-and-call-adaptive` · risk low · ~−30 LOC
-- (a) Delete `codeverse/spatial/render.py:241-253`, the :28 import, `__all__` entry :256, docstring line :8;
- point `tracks/common.py:98`, `cli/main.py:578`, `spatial/tools_scene.py:98` at `codeverse.spatial.render_scene`;
- delete vestigial `tests/threejs_render/test_render.py:39-45`; retarget the monkeypatch at
- `tests/core/test_cli_render_size.py:54` to `codeverse.spatial.render_scene.render_scene`; fix `docs/INTERFACES.md:212`
- (it already documents the real signature with `bounds=`/`sheet_max_views=` the forwarder never accepted).
-- (b) Replace all **five** `call_adaptive` sites with direct calls: `tools_scene.py:55` (drop phantom `n_samples=`,
- `round_index=`), `:70` and `:78` (drop `round_index=`), `:109`, `tools.py:119`, `tool_common.py:194`; delete
- `call_adaptive` (`tool_common.py:62-75`) + `__all__` entry + unused `inspect` import. Widen the fakes in
- `tests/spatial_tools/test_tools.py:286-298` to real signatures (`fake_check_shaders(ws, *, module=None, timeout_s=90.0)`,
- `fake_joint_sweep(..., joints=None)`).
-- (c) The nine "package C1/C2/E/F" comments (render.py:8, tools_render.py:4, tools_scene.py:54, joints_export.py:191,
- joints.py:1, urdf/__init__.py:1, tracks/articulated_object.py:106, tracks/generation.py:215, tracks/common.py:207): sweep all or none.
-- Why: `call_adaptive` drops kwargs silently against signatures that now exist (`joint_sweep_observation` has no
- `n_samples`/`round_index`); the forwarder contradicts the binding INTERFACES doc.
-- T: `python -m pytest tests/spatial_tools tests/scene_runtime/test_render_scene.py tests/core/test_cli_render_size.py tests/threejs_render/test_render.py -q` (not run by the verifier).
-
-**B6. URDF runtime uses `_common` plumbing** · `languages-urdf-runtime-bypasses-common` · risk low · ~−10 LOC
-- Files: `codeverse/languages/urdf/runtime.py` — `_run_blender` (:172-179) returns the `ProcResult` it already has;
- use `remove_stale(art/"build.json", art/"census.json")` and `read_json_file` from `_common` (:105-117); move the
- `codeverse.prompts` imports at :67/:74 to module level (no cycle). Update the three fake `_run_blender` returns in
- `tests/urdf_joints/test_runtime_offline.py:38,44,116` to `ProcResult(...)`.
-- Decide explicitly: keep `_tail` (test :78 pins `"built\n"`) or adopt `proc.tail` and change that assertion.
-- **Do NOT** swap the whitelist env for `blender_env()` (it is stricter: no inherited PYTHONPATH, pins
- `BLENDER_USER_CONFIG` into artifacts) — just add `"PYTHONNOUSERSITE": "1"`. Leave `"Timeout"` (threejs uses it too).
- `compose_build_result` is out of scope (URDF has no `object.glb` at wrapper time).
-- Why: `_common.py:1` names urdf as a consumer; the dict unpack was a minimal-diff seam from commit 35acb0c.
-- T: `python -m pytest tests/urdf_joints/test_runtime_offline.py tests/blender_cadquery/test_common.py -q` (15 passed today).
-
-### Wave C — dedupes that touch agent-facing text or shared policy (need a pin first)
-
-**C1. Spatial tool report formatting** · `spatial-tools-report-formatting-twice` · risk **medium** · ~−25 LOC
-- Verbatim/same-algorithm trio (do first, low risk): move `NoArgs` to `codeverse/spatial/registry.py` next to `tool`
- (NOT `from tools import NoArgs` — `tools.py:230-235` imports `tools_scene` at file bottom); add
- `reference_path(ctx, index, *, tool) -> tuple[Path, dict]` to `tool_common.py` and call from
- `tools_render.py:107-115` and `tools_reference.py:53-65`; `mcp_server.build_context:38-44` builds the `ToolContext`
- first then `spec_dict(ctx)`.
-- Format unification (do second): `observe.py` gains `lint_lines(report, root, *, errors_only)` and
- `build_failure_lines(br, root, lint_warns, *, tail_n)` replacing `tools.py:50-63,122-131` and
- `tools_graphics.py:49-68`. The shared version MUST keep (i) the tools line format pinned by
- `tests/spatial_tools/test_tools.py:137`, (ii) graphics' relative-`error_file` guard (`"src/shader.frag"` would
- print as `shader.frag` via `rel_path` from any cwd ≠ workspace — this also fixes `blender/runtime.py:122`'s
- relative ENTRY_REL branch), (iii) the `tail not in br.error_message` dedupe. Build on `observe._SEV_TAG`.
- **Before refactoring, add a pin** in `tests/graphics/test_gl_runtime.py` for
- `"BUILD FAILED: GlslCompileError: … at src/shader.frag:N"`.
-- T: `python -m pytest tests/spatial_tools/test_tools.py tests/spatial_tools/test_observe.py tests/spatial_tools/test_mcp_server.py tests/reference tests/graphics/test_gl_runtime.py -q` (83 passed today).
-
-**C2. `languages/_js_lint.py`** · `languages-js-lint-duplication` · risk low · ~−20 LOC (not 45)
-- New private module (exempt from the package-map test), modelled on `_ast_lint.py`:
- `node_check_syntax(path, node_bin) -> SyntaxProblem | None` (line, message, stderr_tail — fixes threejs's
- list-not-str fallback), `import_specs(src)` using the threejs regexes (superset: side-effect imports, `export * from`),
- `classify_import(spec, path, src_root) -> ImportVerdict` deciding escape-before-exists with `Path.is_relative_to`
- (closes scene's `startswith` prefix hole where `src2/` passes).
-- Callers: `codeverse/languages/threejs/lint.py:84-127` (keep a module-level `check_syntax` name —
- `tests/threejs_render/test_lint.py:19` monkeypatches it), `codeverse/languages/scene_threejs/lint.py:55-96`.
- Message text stays per-caller via a `make_finding` callback (test strings differ: "package 'lodash'" vs
- "import 'gsap' is not allowed"). Note in scene lint's docstring that bare `import './x.js'` is now flagged.
- Drop the glsl `_line_of` part (2 lines, not JS).
-- T: `python -m pytest tests/threejs_render/test_lint.py tests/scene_runtime/test_lint.py tests/languages/test_ast_lint.py tests/install/test_docs.py -q` (needs node; not run by the verifier).
-
-**C3. Judge replay: kill `TRACK_RUBRIC`, share `plan_digest`/`resolve_paths`/`judged_subset`** · `judge-replay-two-builders` · risk low · ~−15 LOC
-- (1) Delete `codeverse/judges/calibration.py:40` `TRACK_RUBRIC`; line 177 uses `TRACK_INFO[spec.track].rubric`
- (`contracts/common.py:46` already calls itself "THE single source for what used to be restated as TRACK_RUBRIC");
- add a calibration pin for `Track.GRAPHICS -> shader_v1` beside `tests/flywheel_cli/test_cli.py:171`
- (today a graphics run with no stored judgment silently gets `static_object_v1`).
-- (2) Move `plan_digest` (calibration.py:100-155) plus the pure helpers `resolve_paths`/`judged_subset` out of
- `cli/_judge.py` into `codeverse/judges/replay_input.py` (no cli/tracks/flywheel imports; add it to the
- ARCHITECTURE map for `test_docs`). `load_run_cases` applies `judged_subset(resolve_paths(Workspace(run_dir), rec.renders))`
- so a moved run and the in-run view subset match `3dcv judge`. Update `tests/judges/test_calibration.py:8`,
- the re-export used by `tests/orchestrator_tracks/test_refactor_batch2.py:127`, docstring `judges/reference.py:291`.
-- (3) **Leave** `load_round/rubric_for/previous_judgment/extra_context_for/build_judge_input` in `cli/_judge.py`:
- they need `RunRecord`, `tracks.get_track`, `flywheel.record`, and nothing in `judges/` imports those today (tracks/
- flywheel import judges — moving would invert every edge). If calibration should see `previous`/`extra_context`,
- make it an explicit option: it changes the EVAL §6 / D30 numbers.
-- T: `python -m pytest tests/judges/test_calibration.py tests/flywheel_cli/test_cli.py tests/orchestrator_tracks/test_refactor_batch2.py tests/core/test_run_layout.py tests/reference/test_judge_diff.py tests/install/test_docs.py -q` (57 passed today).
-
-### Wave D — package-level move (last; visible output changes)
-
-**D1 + D2. Retire `flywheel/gallery.py`; `bench/report.py` renders through `codeverse/gallery`** · `gallery-two-renderers` · risk **medium** · ~−200 LOC net (240 deleted, ~40 added) · **[land together; A1's `gallery_dict` falls out here]**
-- Prep in `codeverse/gallery/` (~+35 LOC): (a) `page.render_index` / `static_site.render_static` gain
- `extra_html: str = ""` inserted after the summary strip (today only `note`, escaped text, exists — page.py:149-151,172);
- (b) either `model.RunEntry.group: str = ""` rendered in `cards.render_card`, or bench builds one `RootSection`
- per tier via `entry_from_record(tier, Workspace(ws_path), load_record(ws_path))` (`build_index` scans roots
- and cannot); (c) `index.entry_links:134-172` emits `RunLink(label="deliverable/", rel="deliverable", kind="dir")`
- when the dir exists (or port the assertion at `tests/flywheel_cli/test_run_layout_cli.py:261` to the glb rel path).
-- `bench/report.py:114-180`: build the sections above, construct a `RunEntry` directly for the no-record fallback
- card (`battery=tier, slug=r.id, path=r.workspace or "", state="ok", score/baseline/passed/cost/minutes` from
- the bench row — `entry_for_dir` would yield a pending/broken card without them), call `render_static(..., extra_html=stats_tables)`.
- `report.html` changes appearance (theme.py shell, hero view) — `tests/flywheel_cli/test_bench.py:83-84` only
- asserts a `data:image/jpeg` URI and the run id, so keep `embed=True`.
-- Delete `codeverse/flywheel/gallery.py`; port `tests/flywheel_cli/test_quality_gallery.py:128-140` and
- `tests/flywheel_cli/test_run_layout_cli.py:255-262` (`gallery_items→build_index`, `item_from_run→entry_from_record`,
- `render_gallery→render_static`).
-- Docs: `docs/ARCHITECTURE.md:162,180` and §11 lines 435-436, `docs/INTERFACES.md:398`, `docs/RUN_LAYOUT.md:173`,
- `codeverse/flywheel/__init__.py:13`, `bench/report.py:1-7`.
-- Why: `thumbnail_data_uri` bodies are identical modulo a comment; `item_from_run` vs `entry_from_record` run the
- same pipeline with `entry_from_record` a strict superset; `3dcv flywheel gallery` (`flywheel_cmd.py:172-187`)
- already calls `gallery.static_site.build_static`, so the module's docstring and ARCHITECTURE's "shared renderer"
- are stale since commit 8f3149d; no DECISIONS entry covers it.
-- T: `python -m pytest tests/flywheel_cli/test_quality_gallery.py tests/flywheel_cli/test_run_layout_cli.py tests/gallery tests/flywheel_cli/test_bench.py tests/install/test_docs.py -q` (154 passed today).
-
-### Dependency / ordering notes
-- A1 before D1/D2 is fine either way (`gallery_dict` deleted twice is a no-op); do not delete `report_dict` and then
- forget D2 touches the same file — one PR per wave keeps the diffs reviewable.
-- B2 and B3 both add to `proc.py` and both edit `docs/ARCHITECTURE.md:85`: one PR.
-- A6 and A7 are the same package; one PR titled "texturing: drop unshipped material_pass/cookbook".
-- C1's `NoArgs`/`reference_path`/`build_context` trio can ship with Wave B if the format unification is deferred.
-- Every wave ends with `ruff check codeverse bench` and the full offline suite:
- `python -m pytest tests -q -p no:cacheprovider -m "not live and not blender and not node"`.
-
-## 3. Leave alone (justified shapes — do not re-litigate)
-
-Cited by the readers' do-not-touch lists with their doc reference; the review agrees with all of them.
-
-**models / agents / cost**
-- `codeverse/models/storm.py` (156 lines, wired only when `Rate.storm_gate=True`) — shipped OFF, kept reproducible: `config.py Rate.storm_gate`, docs/COST.md §21, ARCHITECTURE §2.
-- `codeverse/cost/caching.py` Block/order_blocks/prefix_report/cache_efficiency — measurement-only after the reorder was reverted: module docstring table, docs/COST.md §13, ARCHITECTURE §2.
-- `cost/guard.py CostGuard/cheapest_affordable`, `cost/routing.py samples_for_precision/pro_break_even/default_route` — tested public API (`tests/cost/test_guard_caching_routing.py`, `cost/__init__` docstring).
-- `models/health.py sibling_processes()` — test infra (`tests/models/test_health.py:115`, docs/COST.md:1047); all constants are dated measurements.
-- `models/keypool.py MAX_WAIT_S=5`, `retry.py` storm branch / `RETRY_DEADLINE_S` — house rule 2026-08-24 (keypool.py:41-47, retry.py:23-30, COST.md Part III).
-- `models/gemini.py shared_pool` keyed by (keys, rpm, tpm, cap) + lazy config imports — COST.md:858; lazy imports avoid a models→config cycle.
-- `config.py _legacy_gemini_keys/_LEGACY_KEYS_FILE` — CLAUDE.md "Environment"; `_deep_merge`, `_FLAT_ALIASES`, `apply_profile.put_section` — each fixes a dated failure (config.py:140-147, 239-248, 310-321).
-- `cost/ledger.py LEDGER_NAME` symlink alias + `existing_ledger_path` — docs/RUN_LAYOUT.md telemetry bucket; ledger.py:52-56. (Also `CostLedger.append`'s own writer — see B3.)
-- `cost/instrument.py IN_PROCESS_AGENT_KINDS` + double bookkeeping — instrument.py:51-59, 81-88 document the measured double-count/drop bugs.
-- `cost/billing.py SUBSCRIPTION_BACKENDS` excluding gemini-cli — COST.md §25.
-- `models/pricing.py` (391) and `keypool.py` (381) — under the cap, single responsibility.
-- `agents/api_tools.py FileTools.edit_only` rule — measured 2026-08-25 over 128 refine rounds (api_tools.py:109-115).
-- `agents/api_skills.py SkillTools` as a tool — measured 0/5 vs 5/5 reads (docstring, ARCHITECTURE §2).
-- `claude_code.py primary_served_model`, `codex.py CodexEvents.usage` reasoning subtraction — measured mis-billing (claude_code.py:88-100, codex.py:108-112).
-- `runlock.py` PID file + fixed `.lock.tmp` — module docstring; race acknowledged at :120.
-- `workspace.py _git` retry loop + `WorkspaceGitError` — DECISIONS "Rejected / deferred".
-- `cost/profiles.py` per-field values — recorded A/Bs in COST.md §14/§17.
-- `models/health.py _bare_model / GeminiModel(storm_attempts=0)` — gemini.py:190-193.
-
-**tracks / orchestrator / prompts**
-- `tracks/generation.py:68-75 DEFAULT_AGENT_MAX_TURNS=0` + turn-cap/wrap-up machinery — COST.md §17.
-- `orchestrator/rounds.py StopPolicy` ordering and `judge_sigma/JUDGE_NOISE` — COST.md §5 + docstring replay numbers.
-- `orchestrator/budget.py charge()/add()` both forwarding to `spend()` — "one door for every dollar", COST.md §6; the enforce flag is load-bearing.
-- `orchestrator/runner.py:94-105` cache-miss-on-unreadable-result — D7 resume fix.
-- `tracks/steps.py skip_judge_reason / rejudge_round` asymmetry — COST.md §5/§17 "never pay for a verdict you will not use".
-- `tracks/scene.py _deliver_skills/_record_skills` — docstring (scene stages bypass run_round; measured 0/30 opens).
-- `tracks/lifecycle.py plan_stage_inputs` hashing a spec subset — D7 resume-overwrites-src comment.
-- `tracks/planner.py plan_tokens / TRUNCATION_GROWTH`, `plan_budget.py _CRAFT` regex (on free text, not ids) — measured comments.
-- `tracks/plan_features.py` — self-documented DEAD switch that `bench/ab_plan.py` and `tests/orchestrator_tracks/test_plan_features.py` depend on; deleting is a product decision.
-- `tracks/candidates.py quick_render` fallback — measured 2026-08-25 (docstring).
-- `tracks/scene_assets.py` single-shot-first + `is_model_outage` skip — scene_asset_gen docstring (45% of run cost).
-- `contracts/agent.py _lift_legacy_extra` + `run_agent_task` mirroring into `extra` — D11; backends still read `job.extra`.
-- `contracts/plan.py` importing `conventions.to_snake` — allowed under L2.
-- `orchestrator/candidates.py` vs `tracks/candidates.py` split (pure decision vs I/O) — ARCHITECTURE map.
-- `tracks/common.py Services` lazy forwarders — THE test seam (module docstring; `tests/orchestrator_tracks/fakes.py`).
-- `tracks/generation.py` envelope re-exports — imported by `bench/_oneshot.py:47`, `bench/compare_backends.py:88`, tests.
-- `StopPolicy.decide`, `StageRunner.is_done` — test infra / one real caller.
-
-**spatial / languages / runtime**
-- `blender/wrappers/run_bpy.py` (358→418 by some counts) and `runtime_js/lib/scene_host.mjs` (417-426) — DECISIONS L4 "two wrappers exceed it by design".
-- Wrapper helper twins `write_json_atomic/apply_rlimit/src_relative/map_exception` in `run_bpy.py:64-188` vs `run_cq.py:44-111` vs `run_bpy_links.py` — DECISIONS L1: wrappers cannot import codeverse (Blender's python).
-- `reference/spec_text.py brief_text` vs `tracks/prompting.constraints_text`; `reference/prompts.py` outside `codeverse/prompts/` — docstring decision (prompt hashes feed the cache key, reference/cache.py:30-36). Wave-coordination rationale, not measured: revisit once waves settle (see §4).
-- `runtime_js/lib/resolve_three*.mjs` + `three_redirect.mjs` two loader-hook shapes — CLAUDE.md "Supported versions", runtime_js/README.md (node 20.6 vs 22.15 hooks).
-- `spatial/render.py RIG_FILES` hashing page-side files only — render.py:53-58, `tests/threejs_render/test_studio_rig.py`.
-- `spatial/measure.py _stat_key` LRU — module docstring :10-13.
-- `spatial/connectivity.py penetration_depth` via `joints_collide.inside_island`, support/lowest-component rules — post-mortems in docstrings 150-164, 286-311.
-- `spatial/complexity.py` constants/weights — docs/COMPLEXITY.md + comments 67-71, 180-185, 193-201.
-- `spatial/joints_export.joint_sweep_observation` `joints` narrowing — measured 2026-08-25 (docstring 193-199).
-- `spatial/frame_metrics.py LOWKEY_MIN_STD / _glb_findings` WARN — docstring 30-38, 57-62, 253-266.
-- `spatial/silhouette.py _MAX_BBOX_COVER` — measured over 21 photos (41-49).
-- `runtime_js/lib/browser/studio.js`, `studio_env.js` constants — measured over 96 frames; render cache keys on them.
-- `runtime_js/lib/host_page.mjs requestFailureLine` ignoring `net::ERR_ABORTED` — measured ~10% phantom failures (40-47).
-- `runtime_js/lib/scene_host.mjs raceCreateScene / runUpdate` — documented failure modes (50-55, 249-256).
-- `texturing/run.py texture_requested` + `TEXTURE_TRACKS` — COST.md §15, comment block 114-149. Also the `judge=<object>` shim (pinned by test_run.py:81-88) until its wave ends.
-- `glsl_shader/wrap.py` re-exporting from `_gl_common` — `_gl_common` docstring 11-14.
-- `spatial/tool_common.lazy()` ToolUnavailable path — registry.py:12-14; keep even after `call_adaptive` goes.
-- `scene_threejs/runtime.py` single-boot probe+preflight — ARCHITECTURE §2/§7.
-- `languages/*/CONTRACT.md` fallbacks — `tests/skills/test_contract_agreement.py:36-38`, `tests/scene_runtime/test_runtime.py:26`.
-- `texturing/plan.family_from_text` and `materials.family_for` as two tables — refuted merge (see A7).
-
-**flywheel / judges / skills / cli / bench**
-- `cli/_common.py:lazy` — `tests/flywheel_cli/test_cli.py:85`, `tests/spatial_tools/test_tools.py:297`; main.py docstring.
-- `cli/_common.py:resolve_dial` — ARCHITECTURE:127 THE resolver; `tests/cost/test_profiles.py`.
-- `bench/_compare_report.py:load_jsonl` vs `bench/_jsonl.py:read_jsonl` — not duplication (per-natural_key dedup with a measured 0.400-vs-0.800 bug, lines 87-99; ARCHITECTURE:189-190).
-- `flywheel/record.py:find_run_dirs` BFS with `RUN_SEARCH_DEPTH=7` + `BATTERY_MARKERS` — record.py:286-296, 343-352; `tests/flywheel_cli/test_flywheel.py`. And its non-adoption by `complexity_report.iter_runs` (docs/COMPLEXITY.md §2 corpus definition), `ab_gate_rates`, `skill_targets` — finding refuted.
-- `skills/materialize.py` writing bundles twice + control bundle — module docstring; ARCHITECTURE:117-119.
-- `skills/config.py` reading `os.environ` at call time — docstring; docs/PLAN_LOOP.md LIVE_SWITCHES.
-- `skills/prompting.py NATIVE_LOADERS` re-export — prompting.py:752-754; `delivery.py` is the ONE policy table.
-- `bench/ab_plan.py`, `bench/compare_backends.py` sys.path + `_assert_local_codeverse` — two 2026-08-25 incidents (ab_plan.py:64-75).
-- `bench/ab_plan.py` 781 lines — one driver, docstring 1-45; nothing duplicated elsewhere.
-- `cli/flywheel_cmd.py:gallery_cmd` alias — CLAUDE.md commands, ARCHITECTURE §11 (10-line forwarder).
-- `judges/vlm_judge.py` per-sample retry vs `flywheel/captions.py` validate-and-fix loop — different shapes on purpose.
-- `flywheel/export.py` exact dedupe beside `3dcv flywheel dedupe` — ARCHITECTURE §11, D25.
-- `gallery/model.py + labels.py` four-bucket VERDICTS — model.py:112-121, page.py:9-13, `tests/gallery/test_triage.py`.
-- `bench/skill_targets.py` 419 lines — docs/SKILLS_LEDGER.md, EVAL.md §8 single readout.
-
-## 4. Structural observations (not cleanups)
-
-1. **`codeverse/proc.py` is the de-facto stdlib utility layer but never grew with the tree.** Eight tolerant
- JSON reads, five tolerant JSONL reads and two JSONL writers exist because the documented "shared primitives"
- module offers only `write_json_atomic`/`run_subprocess`/`tail`. B2+B3 fix the instances; the recommendation is a
- rule in CLAUDE.md or ARCHITECTURE:85 — "any stdlib-only file/JSON/JSONL helper lives in `proc.py`; grep it
- before writing a try/except read" — and to keep `proc.py` under ~250 lines so it stays a leaf. Cost: one doc line.
-
-2. **`codeverse/flywheel/` has quietly become two packages.** Records/telemetry/export/dedupe (the data flywheel)
- and gallery/captions/quality (presentation) drifted apart when `codeverse/gallery/` was born in 8f3149d; D2
- removes the stale half, but `flywheel/captions.py` and `quality.py` are consumed by `gallery/index.py`
- (`quality_tier`, captions) as much as by export. Recommendation: after D2, decide whether `gallery` depends on
- `flywheel` (current, fine) or the shared bits move to `flywheel/record.py`'s neighbours — write the arrow into
- ARCHITECTURE §11 either way. Cost: a doc paragraph now; a small move later if wanted.
-
-3. **The `judges/` ↔ `cli/_judge.py` boundary is right but unwritten.** `judges/` imports nothing from
- tracks/flywheel/workspace/orchestrator while all of those import `judges/` — that is a real, valuable layering,
- and it is why C3 stops short of moving `build_judge_input`. It is enforced by nobody: `test_docs.py` checks the
- package map, not import direction. Recommendation: a ~20-line import-direction test (parse `import` statements
- under `codeverse/judges`, `codeverse/contracts`, `codeverse/proc.py`, assert no edge into tracks/flywheel/cli/
- orchestrator). Cost: one test file; catches the next wave's inversion before review.
-
-4. **Wave-marker comments outlived the waves.** Nine "package C1/C2/E/F" comments, "written in parallel" docstrings
- (`call_adaptive`), "for one wave" shims (`texture_pass` judge union), "TODO(follow-up wave)" (`gl_build`) and
- `reference/prompts.py`'s "must not couple to files another wave edits" are the trace of the parallel-authoring
- process, not of the design. Recommendation: after Waves A-B, one sweep that either deletes each marker or
- converts it into an ADR line in DECISIONS.md; then adopt "no wave names in code — put the reason in DECISIONS".
- `reference/spec_text.py` vs `tracks/prompting.constraints_text` is the one remaining pair whose only justification
- is wave coordination; re-evaluate it in that sweep (cost: a half-day, risk low, cache-key change means one
- reference-cache invalidation).
-
-5. **Fifteen files exceed the ~400-line law and only two are exempted (DECISIONS L4: `run_bpy.py`, `scene_host.mjs`).**
- The tracks package carries seven of them, and three (`lifecycle.py` 714, `generation.py` 675, `rounds.py` 598) have
- clean internal seams the unverified god-file findings describe (texture hook + refine scaffold; agent-session
- strategy; refine-task compilation). `cli/main.py` (788) is the same — `layout_cmd.py`/`texture_cmd.py` show the
- established split. Recommendation: do not split as part of this plan (0 LOC saved, medium risk, and every one of
- these files is heavily pinned); instead either extend DECISIONS L4 with a per-file justification or schedule one
- split per wave, starting with `rounds.py` (importers already split cleanly: lifecycle uses both halves, static_object/
- scene/reference use only the refine half). Cost per split: ~1 day incl. re-export shim + doc row.
-
-6. **Three Blender environments.** After A5 there are still `blender/runtime.blender_env()`, urdf's whitelist env
- (B6 keeps it, adds PYTHONNOUSERSITE) and `joints_export.blender_render_glb` passing no env at all. Not a bug today
- (INSTALL.md:87 says Blender never renders in production), but if a no-node render fallback is ever wired,
- `blender_env(user_config=...)` should be the single owner. Cost: ~15 lines when that feature lands, none now.
-
-7. **Verification gaps to close before merging.** The verifier could not execute pytest for A4, A5, A6, B3, B4, B5, C2
- (sandbox classifier rate-limited); their "T" commands are the pre-condition, not a formality. Everything else was
- run green on 2026-08-26.
-
-## 5. Totals
-
-| | LOC removed (net) | files touched (src + tests + docs) |
-|---|---|---|
-| Wave A (deletions, low risk) | ~570 | 34 |
-| Wave B (shared helpers, low risk) | ~150 | 33 |
-| Wave C (pinned dedupes; C1 medium) | ~60 | 18 |
-| Wave D (gallery move, medium) | ~200 | 14 |
-| **Low-risk total (A+B+C2+C3)** | **~755** | |
-| **All verified findings** | **~980** | **~95 distinct files** (about 60 in `codeverse/`+`bench/`+`runtime_js/`, 25 tests, 8 docs) |
-
-(Per-item figures are the verifiers' adjusted estimates; the original findings summed to ~1,150 and were
-over-stated on `languages-js-lint-duplication` (45→20), `spatial-tools-report-formatting-twice` (40→25),
-`judge-replay-two-builders` (30→15) and `languages-urdf-runtime-bypasses-common` (25→10).)
-
-**God files: 15** (law 4 ≤ ~400; DECISIONS L4 exempts only `run_bpy.py` and `scene_host.mjs`, neither in this list):
-- tracks/orchestrator: `codeverse/tracks/lifecycle.py` (714), `codeverse/tracks/generation.py` (675),
- `codeverse/orchestrator/rounds.py` (598), `codeverse/tracks/scene.py` (518), `codeverse/tracks/steps.py` (486),
- `codeverse/tracks/static_object.py` (449), `codeverse/tracks/scene_assets.py` (409)
-- cli/bench: `codeverse/cli/main.py` (788), `bench/ab_plan.py` (781, justified by its docstring), `bench/compare_backends.py` (497),
- `bench/skill_targets.py` (419, justified by SKILLS_LEDGER/EVAL §8)
-- models/agents/cost: `codeverse/cost/reconstruct.py` (494), `codeverse/agents/api_tools.py` (463)
-- spatial/texturing: `codeverse/texturing/materials.py` (436 → ~375 after A7, leaves the list), `codeverse/spatial/measure.py` (427)
-
-None of the god files is split by this plan (see §4.5); A7 retires one by deletion alone.
-
-## Appendix — unverified lower-value findings (not adversarially checked; include at your own risk)
-
-| id | shape | files | LOC | note |
-|---|---|---|---|---|
-| gallery-rel-fmt-dup | `_rel` twice, `fmt` three times | gallery/index.py:52-61, detail.py:78-87, cards.py:27, page.py:34, detail.py:65 | 20 | fold into D2 if convenient |
-| version-probe-dup | doctor re-implements record's `--version` / node pkg probes | flywheel/record.py:39-46,72-79; cli/doctor.py:42-53,95-102 | 20 | |
-| core-dead-workspace-transcript | `Workspace.stages/diff/snapshot_src`, `Trajectory.stdout_path/stderr_path` unreferenced | workspace.py:171-173,360-367; agents/transcript.py:39-46 | 18 | grep looked clean; verify `snapshot_src` in flywheel export |
-| tracks-dup-fanout-exception-unpack | post-`fan_out` BudgetExceeded unpack ×4 with local imports | tracks/steps.py:125-138, scene.py:281-292, scene_assets.py:143-152, candidates.py:78-92 | 15 | check `codeverse.proc.split_results` first |
-| languages-urdf-lint-own-ast-helpers | urdf lint bypasses `_ast_lint`, not in drift test; `PASCAL_RE` ×2 | urdf/lint.py:39,268-275; blender/lint.py:70; cadquery/lint.py:42 | 15 | |
-| spatial-union-find-twice | identical path-compressing union-find | spatial/connectivity.py:189-203, joints_sweep.py:83-101 | 15 | |
-| cost-dup-gemini-cli-stats | reconstruct re-implements gemini_cli usage mapping | cost/reconstruct.py:149-167, agents/gemini_cli.py:101-128 | 14 | medium risk; import direction cost→agents to check |
-| tracks-dup-mcp-argv-materialize | hard-coded `"python"` MCP argv ×3 vs D9 `sys.executable` | tracks/lifecycle.py:437-449, candidates.py:138-144, scene_assets.py:253-258 | 12 | may be a real D9 violation — worth verifying first |
-| tracks-dup-gitignore-appenders | two hand-rolled .gitignore appenders vs `Workspace.ensure_gitignore` | tracks/candidates.py:276-281, scene_assets.py:405-410, workspace.py:49-54 | 12 | `_cand/` missing from `_GITIGNORE_LINES` |
-| agents-dup-compose-prompt | `_compose_prompt` copied verbatim | agents/gemini_cli.py:261-265, codex.py:207-211 (+antigravity variant) | 10 | fold into B4 |
-| agents-inconsistent-gemini-cli-keypool | gemini-cli bypasses `shared_pool` quota/cooldown | agents/gemini_cli.py:60-69, models/gemini.py:52-79 | 10 | medium; behaviour change (COST.md:858) |
-| models-dup-image-price-table | `IMAGE_USD` duplicates pricing.py with a drift test | models/gemini_image.py:59-63,99-103; pricing.py:235-240,347-357 | 10 | COST.md:292 records it |
-| scene-dup-jsonable | `scene._jsonable` re-applies `runner._jsonable` | tracks/scene.py:509-518, orchestrator/runner.py:47-56 | 10 | |
-| spatial-measure-god-file | measure.py 427 lines / 4 subjects; material-count dup with complexity.py | spatial/measure.py, complexity.py:317-325 | 10 | |
-| bench-gate-kind-regex | ab_gate_rates re-implements `finding_kind` (ARCHITECTURE:114 "the ONE place") | bench/ab_gate_rates.py:16-40 | 10 | script has no tests |
-| sample-deprecated-aliases | three `#: deprecated aliases` + `export_samples(best_round=)` that only raises | flywheel/sample.py:46-50, export.py:122-143 | 10 | test is a drift guard that passes when absent |
-| steps-inconsistent-judgeinput-construction | `JudgeInput` hand-built ×3 | tracks/steps.py:404-408, candidates.py:218-221, scene_assets.py:334-336 | 8 | |
-| cli-record-state-raw-reads | raw `json.loads(record/state)` beside typed loaders | cli/main.py:741-748,467-475 | 8 | partly absorbed by B2 |
-| tracks-dup-pairwise-note-accounting | pairwise accounting block ×2 | tracks/candidates.py:240-248,302-309 | 6 | |
-| cost-cmd-untyped-getattr | `run: object` + getattr on typed objects | cli/cost_cmd.py:163-183,216-226 | 6 | law 4 hygiene |
-| agents-inconsistent-atomic-write | `Trajectory.write_json` fixed `.tmp` vs `proc.write_json_atomic` | agents/transcript.py:59-64 | 5 | fold into B3 |
-| tracks-dup-find-urdf | `_find_urdf` ×2 identical | tracks/articulated_object.py:139-143, motion.py:143-147 | 5 | |
-| agents-god-file-api-tools | 463 lines: file tools + shell policy + SpatialTools | agents/api_tools.py | 0 | see §4.5 |
-| cost-god-file-reconstruct | 494 lines: RunLedger + run walk + cells + find_runs | cost/reconstruct.py | 0 | see §4.5 |
-| lifecycle-god-file-texture-hook | 714 lines; texture hook trio + refine scaffold | tracks/lifecycle.py:572-660 | 0 | medium; see §4.5 |
-| generation-god-file-two-strategies | 675 lines; single-shot vs agent-session strategies | tracks/generation.py | 0 | medium; see §4.5 |
-| rounds-god-file-two-subjects | 598 lines; StopPolicy vs refine-task compilation at :363 | orchestrator/rounds.py | 0 | best first split candidate |
-| cli-main-god-file | 788 lines; render/judge/status not split like `*_cmd.py` | cli/main.py | 0 | see §4.5 |
-
-Refuted and excluded: `flywheel-run-dir-walks` (no `_cand/` double count exists; `complexity_report --recursive`
-defines the documented 67-run corpus in docs/COMPLEXITY.md §2 and `find_run_dirs` would silently add 78 A/B-rig runs).
diff --git a/harness/docs/TEASER.md b/harness/docs/TEASER.md
deleted file mode 100644
index 6222483f..00000000
--- a/harness/docs/TEASER.md
+++ /dev/null
@@ -1,169 +0,0 @@
-# TEASER — the showcase page, what is on it, and how to rebuild it
-
-`docs/teaser.html` is a self-contained showcase page for fifteen artefacts produced by the
-harness in the `teaser_v1` wave. It is **not a measurement**: the judge score is a filter
-("was this good enough to be worth looking at"), and every card was then looked at by a
-human and captioned with what is still wrong with it. Two cards ship at a *lower* judged
-score than the run they replace, because the higher-scoring run did not contain the thing
-the prompt was chosen for.
-
-> Defect ids below (`D1`, `D5`, `D9`, `D10`, `S-OBJ-3`, `S-OBJ-4` …) refer to the
-> `teaser_v1` wave's defect log, kept with the wave scratchpad rather than in the repo:
-> the wave was a generation task, so friction was recorded, not fixed.
-
-## 1. Serve it
-
-The page references stills and clips under `bench/out/teaser/site/media/` with the relative
-path `../bench/out/teaser/site/media/…`, so it needs a server rooted at the harness
-directory (opening the file directly works too, as long as `bench/out/teaser/` is present):
-
-```
-cd /home/yipeng/3dcodeverse/harness
-python -m http.server 8931 --bind 127.0.0.1 -d .
-# → http://localhost:8931/docs/teaser.html
-```
-
-`bench/out/` is git-ignored, so **only the page, the prompt sheets and this document are
-committed** — the ~31 MB of stills and GIFs are not. On a fresh checkout the page renders
-with empty image frames until the runs are regenerated (§4) and the media directory is
-rebuilt (§5).
-
-## 2. What is on the page
-
-| section | artefact | languages | generator | judge | verdict |
-|---|---|---|---|---|---|
-| lead | Penny-farthing | Blender bpy | codex:gpt-5.6-sol | 0.863 | reads |
-| 01 multi-language | StoneLantern · BronzeCenser · PotbellyStove · ClinkerSkiff | bpy → GLB → three.js + GLSL | both | — | see §3 |
-| 02 static | Arcade cabinet | three.js | flash | 0.948 | reads |
-| 02 static | Coastal lighthouse | Blender bpy + text-to-image texture | flash | 0.728 | reads |
-| 02 static | Wind-up gramophone | Blender bpy | flash | 0.750 | reads |
-| 02 static | Radial aero engine | CadQuery | codex:gpt-5.6-sol | 0.600 | usable |
-| 02 static | Art-deco chandelier | three.js | flash | 0.600 | usable |
-| 03 articulated | Rolling tool chest | URDF + bpy | flash | 0.957 | reads |
-| 03 articulated | Longcase clock | URDF + bpy | flash | 0.947 | reads |
-| 04 scenes | Neon alley | three.js + GLSL | flash | 0.827 | reads |
-| 04 scenes | Boatbuilder's workshop | three.js + GLSL + bpy | flash | 0.747 | reads |
-| 04 scenes | Temple courtyard at night | three.js + GLSL + bpy | codex:gpt-5.6-sol | 0.286 | usable |
-| 05 graphics | Aurora over a ridge | GLSL | flash | 0.940 | reads |
-| 05 graphics | Starling murmuration | Python OpenGL + GLSL | flash | 0.865 | reads |
-| 05 graphics | Accretion disc | GLSL | flash | 0.753 | reads |
-| 05 graphics | Rain on a window | GLSL | flash | 0.909 | usable |
-
-`flash` = `gemini-cli:gemini-3.6-flash`. Judge = `gemini-3.1-pro-preview`
-(flash × 3 fallback). Per card the page shows: the prompt, the language(s), the generator,
-the judged score, the round count, the wall-clock, the run slug, and an honest note.
-
-Each object card offers three views — a chosen hero view (**not** always `front_right_34`),
-a turntable GIF, and the 8-view contact sheet. Articulated cards add the articulation
-sheet and a joint-motion loop. Scene cards show the authored cameras at **t = 0 s and
-t = 1.5 s** side by side so motion reads, plus detail cameras and the full sheet. Graphics
-cards show a hero frame, an animated preview and the 0/1/2.5/4/6 s frame strip.
-
-### Left out, and why
-
-* **Espresso portafilter (CadQuery)** — rated *no*. Two attempts; the second has better
- geometry but the body is still flat white on stubby legs. The CadQuery track's only
- material channel is `cq.Color(r,g,b)` with no metalness, so "polished stainless" is
- unreachable by construction and the texture pass produced zero textures
- (`DEFECTS.md` S-OBJ-4). A third attempt would fail the same way.
-* **Ten superseded attempts** — the first radial engine, chandelier, clock, temple,
- workshop and alley; two extra rain windows; two extra auroras; a second accretion disc.
- All are on disk under `bench/out/teaser/runs/`; the winner's caption says why each lost.
-* **mp4 turntables** — ffmpeg is not installed on this machine, so `assemble_turntable`
- falls back to animated GIF (`DEFECTS.md` D3). Nothing in the harness requires that.
-* **Scene textures** — `3dcv texture scene-pack` produced 8 tileable maps for the workshop
- (seam ≈ 0.0007) and 7 for the alley, and neither could be wired in: a passed run refuses
- `resume` without `--force`, and `--force` re-plans and overwrites the passing artefact
- (`DEFECTS.md` D9).
-
-## 3. The multi-language panel (the centrepiece)
-
-Two scene prompts force the pipeline no single-language generator can show:
-
-```
-_assets/<name>/src/model.py raw Blender bpy, its own plan + agent session + 8-view review
- ↓ blender -b --factory-startup, census, glTF export
-artifacts/object.glb → public/assets/<name>.glb
- ↓ loaders.gltf.loadAsync in src/scene.js (or a per-asset loader module)
-src/zones/*.js three.js composition beside procedural geometry
-src/shaders/*.js raw GLSL vertex/fragment pairs with a live uTime uniform
-```
-
-Nothing in the harness enforces asset kind (`DEFECTS.md` D2/D3), so this was verified by
-hand rather than trusted, and the page says exactly what held:
-
-| asset | scene | bpy → GLB | GLB used in the shipped frames |
-|---|---|---|---|
-| StoneLantern | temple | yes, 443 KB | **yes** — `src/assets/stone_lantern.js` loads it and *throws* if missing; cloned into 3 zones |
-| BronzeCenser | temple | yes, 367 KB | **yes** — `src/scene.js:12` → `src/zones/courtyard_veranda.js:32` |
-| PotbellyStove | workshop | yes, 131 KB | **yes** — `src/scene.js:12` → `src/zones/stove_corner.js:130` |
-| ClinkerSkiff | workshop | yes, 400 KB | **no** — loaded but unused; `src/zones/central_bay.js:59` calls a *procedural* three.js rebuild a refine round wrote over the asset slot |
-
-The ClinkerSkiff case is filed as `DEFECTS.md` D10 and is captioned honestly on the page:
-the standalone skiff card is the real bpy asset, the hull in the workshop frames is not.
-**The temple is the clean end-to-end demonstration.**
-
-GLSL in the shipped frames: the temple pond (`src/shaders/water.js`, a `ShaderMaterial`
-named `Water` on `ReflectiveKoiPond` with `uTime/uDeep/uShallow/uSunDir`) and the workshop's
-`VolumetricSunbeamShader` + `SawdustMotesShader`, all with live time uniforms the render rig
-samples at two times.
-
-## 4. Regenerate the runs
-
-Prompt sheets live in `bench/prompts/teaser_v1_{static,articulated,scene,graphics}.yaml`
-— one file per track, because a `Battery` binds exactly one track (`DEFECTS.md` D1). Each
-sheet holds the original curated prompt **and** the sharpened re-run that actually shipped,
-suffixed `_v2` / `_v3`, with the CLI flags that are not expressible in `BenchPrompt`
-(`--style`, `--must-not`, `--candidates`, `--profile`) recorded as comments above it.
-
-```
-3dcv bench run bench/prompts/teaser_v1_static.yaml --generator gemini-cli:gemini-3.6-flash
-3dcv bench run bench/prompts/teaser_v1_articulated.yaml --generator gemini-cli:gemini-3.6-flash
-3dcv bench run bench/prompts/teaser_v1_scene.yaml --generator gemini-cli:gemini-3.6-flash
-3dcv bench run bench/prompts/teaser_v1_graphics.yaml --generator gemini-cli:gemini-3.6-flash
-```
-
-The three hero pieces used `--generator codex:gpt-5.6-sol` instead (penny-farthing, radial
-engine, temple courtyard). Note that `--profile quality` prices codex subscription usage as
-API dollars and self-throttles the scene track (`DEFECTS.md` D5) — raise `--max-minutes` well
-above the profile default for a codex scene run.
-
-Per-artefact extras used here:
-
-```
-3dcv render <slug> # 8 canonical views (--mode shaded|wire|normals|clay)
-3dcv texture pass <slug> # text-to-image material pass; SHIPPED only on the lighthouse
-3dcv texture scene-pack <slug> # tileable pack for a scene (see the D9 caveat above)
-```
-
-Turntables and the articulated loops were rendered with
-`codeverse.spatial.render.render_turntable(glb, out, n=36, elevation_deg=18, width=640,
-height=640, fps=15)` — resolve the GLB through `artifacts/textures/texturing.json`
-→ `shipped`, never by filename, or you render the *rejected* textured build
-(`DEFECTS.md` S-OBJ-3).
-
-## 5. Rebuild the page
-
-`docs/teaser.html` is generated, not hand-edited. Everything needed to rebuild it is
-committed under `bench/teaser/`:
-
-| file | what it does |
-|---|---|
-| `bench/teaser/content.py` | the curated content table — one entry per shipped artefact: title, languages, generator, score, verdict, prompt, honest note, chosen media |
-| `bench/teaser/build_page.py` | renders `docs/teaser.html` from it (markup + CSS + the small JS) |
-| `bench/teaser/build_media.py` | copies and downscales the chosen stills/clips into `bench/out/teaser/site/media/` |
-| `bench/teaser/render_turntables.py` | renders every turntable, resolving the *shipped* GLB through `texturing.json` |
-
-```
-python bench/teaser/render_turntables.py # bench/out/teaser/turntables/*.gif (+ the 4 Blender heroes)
-python bench/teaser/build_media.py # bench/out/teaser/site/media/ (~31 MB)
-python bench/teaser/build_page.py # rewrites docs/teaser.html
-```
-
-`render_turntables.py` writes the four Blender-hero clips to
-`$TEASER_ASSET_TURNTABLES` (default `bench/out/teaser/turntables/assets/`); point
-`build_media.py` at the same directory with that variable.
-
-The page is one file with no external dependencies: inline CSS, ~30 lines of vanilla JS for
-the view tabs, a lightbox and deferred GIF loading. JPEGs (4.3 MB total) load normally;
-the GIFs (26 MB) are fetched only when their tab is opened or they scroll into view.
diff --git a/harness/docs/TIME_AUDIT_2026-08-26.md b/harness/docs/TIME_AUDIT_2026-08-26.md
deleted file mode 100644
index 26cce8b1..00000000
--- a/harness/docs/TIME_AUDIT_2026-08-26.md
+++ /dev/null
@@ -1,163 +0,0 @@
-# Where the time goes — 3dcodeverse harness, storm day (2026-08-26) vs baseline (08-23/25)
-
-Corpus: 51 storm-day runs (fancy_v1 28 cells, h2h_brilliana 12, h2h_scene 5, refs_v1_graphics 6; 45 finished) and
-52 baseline runs (static_v2_flash 20, scenes_v1_flash 4, teaser 28). All api-agent gemini-3.7-flash generator,
-gemini-3.1-pro-preview judge. Scripts (read-only, in this directory): `corpus.py` `turns.py` (shared),
-`stage_times.py` (§1), `calls.py` (§2), `sessions.py` (§3), `keys.py` (§4), `judge_plan.py`, `storm_attempts.py`,
-`deadline.py` (§5 inputs); their raw output is in `out_*.txt`, per-run rows in `stage_runs.jsonl`.
-
-**How "waiting on the provider" was measured — and what is NOT recorded.** `telemetry/cost.jsonl.latency_ms` is the
-stopwatch of the *successful* attempt only (`gemini.py:_once`; `cost/instrument.py` uses `usage.latency_ms or ms`), so
-backoff sleeps, failed 503 round-trips and KeyPool waits leave no row; only a call that fails outright gets an `error`
-row whose latency is the whole wrapper span. There is no `attempts`/`key` field. `worker.log` (fancy cells only) has
-the storm lines but no timestamps. So: generator waiting = `t(assistant row) − t(previous transcript row) − latency`
-per turn (`turns.py`; 88 % of baseline turns give < 1 s, i.e. harness overhead), a `model_error` row's span counts
-fully; judge/planner waiting = stage span − Σ ok-latency. "wait" below is thread-time (scoped rounds run 3–4
-sessions in parallel), which is why it can exceed wall.
-
-## 1. Run wall and stages — median / p90 seconds (n = runs (finished))
-
-| corpus | track | n | wall | plan | generate | build | gates | render | judge | wait (thread) | session wait | judge wait | killed-run span |
-|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-| base | static/blender | 23 | 1811/3073 | 43/136 | 900/2102 | 0/1 | 4/69 | 3/68 | 116/448 | 321/1719 | 248/1712 | 1/275 | 0/654 |
-| base | static/cadquery | 4 | 3288/5782 | 307/429 | 1873/3135 | 14/20 | 79/89 | 74/86 | 331/897 | 521/2054 | 285/1675 | 0/0 | 0/1724 |
-| base | static/threejs | 3 | 2403/5152 | 459/584 | 1823/3118 | 0/1 | 66/117 | 66/107 | 123/1366 | 2118/3956 | 1905/3092 | 0/466 | 0/0 |
-| base | graphics | 9 | 926/2003 | 77/122 | 663/1714 | 5/13 | 0/0 | 5/12 | 199/372 | 421/1090 | 275/1019 | 0/132 | 0/0 |
-| base | scene | 10 | 4118/5097 | 50/120 | 2859/4122 | 8/23 | 22/83 | 21/81 | 284/490 | 1293/4214 | 1292/4096 | 0/103 | 0/296 |
-| base | articulated | 3 | 5869/6376 | 325/417 | 3430/3876 | 1/2 | 177/195 | 2/41 | 98/1005 | 1191/1886 | 925/1145 | 0/573 | 0/2195 |
-| storm | static/blender | 23(20) | 4726/5536 | 0*/577 | 1989/3127 | 0/0 | 1/18 | 1/16 | 38/116 | 5356/10333 | 5030/10333 | 0/4 | 2409/5161 |
-| storm | static/cadquery | 8(7) | 6649/8344 | 0*/749 | 3159/5401 | 4/14 | 3/95 | 2/94 | 176/666 | 4116/5222 | 3002/4807 | 43/415 | 902/2265 |
-| storm | static/threejs | 9 | 5328/7802 | 0*/548 | 3595/5501 | 0/0 | 3/5 | 1/3 | 94/430 | 6747/10174 | 6579/8401 | 27/370 | 1606/3648 |
-| storm | graphics | 6 | 6003/8818 | 380/628 | 2971/3620 | 12/13 | 0/0 | 12/13 | 228/574 | 3605/6488 | 3223/5897 | 5/55 | 1001/2330 |
-| storm | scene | 5(3) | 4404/4711 | 576/646 | 1406/2960 | 1/3 | 4/8 | 3/7 | 0/107 | 1218/2823 | 1026/2823 | 0/76 | 0/583 |
-
-\* fancy_v1 cells get a pre-computed plan (`stage.cached`). "killed-run span" = time inside a round that never reached
-`round.done`: 18 of 51 storm runs ended with **zero rounds** (11 of 23 blender cells, median 4 523 s each), 14 of them
-stopped by the bench `max_minutes 60` ceiling, which is only checked between stages, so they overshot it by 837 s
-median / 1 560 s p90. Per round: generate 314→1 008 s (blender), 989→2 049 s (threejs); judge 48→38 s (blender),
-110→76 s (cadquery) — the judge stage is **not** slower on storm day at the median; its tail is (§2). Build 0.1–4 s,
-gates 1–80 s, render 1–90 s: together 1–4 % of storm wall, 3–19 % of baseline wall.
-
-## 2. Per model call
-
-Successful-call latency (s), from the ledger:
-
-| model / role | corpus | n | p50 | p90 | p99 | max |
-|---|---|---|---|---|---|---|
-| gemini-3.7-flash generator | base | 8097 | 3.3 | 17.2 | 49.6 | 172 |
-| gemini-3.7-flash generator | storm | 5867 | **8.3** | **31.1** | 74.9 | 239 |
-| gemini-3.7-flash planner | base / storm | 60 / 36 | 13.7 / 23.4 | 32 / 43 | 53 / 68 | 76 / 68 |
-| gemini-3.1-pro-preview judge | base / storm | 328 / 67 | 42.2 / 50.5 | 73 / 103 | 129 / 165 | 209 / 171 |
-
-Even the calls that succeed are **2.5x slower** under the storm (think time per session 106 → 283 s, §3).
-Calls per run (ok, median/p90): flash 176/292 base vs 102/213 storm; pro 5/15 vs 1/5. Error rows: flash 41 → 133,
-pro 0 → 5. Retries from transcripts (a turn whose wall exceeds its latency by > 1 s):
-
-| corpus | track | runs | calls/run | calls with ≥1 retry /run (share) | wait per retried call med/p90 | retry-wait per run med/p90 | 900-s give-up rows |
-|---|---|---|---|---|---|---|---|
-| base | static/blender | 22 | 186/302 | 10/31 (6 %) | 10.9/63.8 s | 263/1712 s | 1 |
-| base | scene | 8 | 216/265 | 28/43 (13 %) | 19.8/116 s | 2120/4096 s | 4 |
-| base | graphics | 9 | 25/28 | 3/8 (20 %) | 32/158 s | 275/1019 s | 17 |
-| storm | static/blender | 23 | 125/257 | 33/65 (24 %) | **47/333 s** | **5030/10333 s** | 30 |
-| storm | static/cadquery | 7 | 87/148 | 18/30 (21 %) | 55/389 s | 3103/4807 s | 3 |
-| storm | static/threejs | 9 | 160/275 | 59/71 (32 %) | 40/198 s | 6579/8401 s | 8 |
-| storm | graphics | 6 | 44/49 | 10/14 (33 %) | 76/387 s | 3223/5897 s | 24 |
-| storm | scene | 3 | 36/243 | 4/49 (20 %) | 12/70 s | 1130/2823 s | 1 |
-
-Where the storm-day wait goes (246 297 s over 5 799 turns): **30 % (72 921 s) is 66 `model_error` spans** — a call that
-retried until the 900-s `RETRY_DEADLINE_S` (median span 923 s, p90 2 743 s = three consecutive give-ups on one turn
-via `api_agent.MODEL_RETRIES=3`); 45 sessions were hit, ~1 430 s per storm run on average. The other 70 % is ordinary
-storm streaks. From the 28 fancy worker.logs: 5 143 flash storm lines + 158 pro, 46 flash + 10 pro give-ups, 44 pro
-read-timeouts (300 s each). Logged **sleep is only 645 s/cell median (1 525 p90), 21 943 s in total = ~13 % of the
-wait**; `(wait − sleep) / storm lines` = **21.5 s per failed attempt** (p90 28.5), and the streak depth at give-up
-(median 18 of 60) says 900/18 = ~50 s per attempt late in a storm. The cost of a 503 is the round-trip the provider
-holds before rejecting, not the ≤ 5 s backoff. Judge: 2 of 56 storm rounds lost 1 162 s and 927 s (3 × 300-s
-timeouts before the deadline) then a second sample answered in 128 s → `judge_s` 1 818 / 1 593 s; judge wait sum
-6 847 s / 56 rounds (median 1.8 s, p90 370 s). Planner: storm plan stage 548 s median (p90 995) for 39 s of model
-time → **492 s of waiting per run that plans**; baseline 69 s (17 s model). Outside the run, the fancy cells spend a
-further 252 s median / 935 s p90 in the driver's pairwise + final pro scoring (`cell.wall_s` − run span).
-
-## 3. Per agent session (api-agent transcripts): thinking vs tools vs waiting
-
-| corpus | track | sessions | turns med/p90 | duration med/p90 | think s | tool s | wait s | think % | tool % | wait % |
-|---|---|---|---|---|---|---|---|---|---|---|
-| base | static/blender | 155 | 25/60 | 158/446 | 106 | 6 | 12 | 57 | 11 | 32 |
-| base | static/cadquery | 10 | 30/60 | 511/1659 | 277 | 23 | 129 | 56 | 9 | 34 |
-| base | static/threejs | 32 | 19/38 | 298/715 | 137 | 25 | 117 | 43 | 12 | 45 |
-| base | graphics | 24 | 8/17 | 141/754 | 87 | 5 | 31 | 42 | 2 | 56 |
-| base | scene | 82 | 20/30 | 336/933 | 128 | 32 | 90 | 35 | 14 | 52 |
-| base | articulated | 6 | 34/38 | 1259/1825 | 602 | 213 | 361 | 45 | 23 | 32 |
-| storm | static/blender | 130 | 20/45 | **1528**/2408 | 283 | 4 | **976** | 22 | 2 | **77** |
-| storm | static/cadquery | 22 | 26/49 | 1802/2403 | 417 | 28 | 1025 | 30 | 2 | 68 |
-| storm | static/threejs | 57 | 23/46 | 1288/2181 | 340 | 10 | 707 | 29 | 3 | 69 |
-| storm | graphics | 23 | 9/17 | 841/2932 | 179 | 5 | 612 | 17 | 1 | 83 |
-| storm | scene | 11 | 19/57 | 581/890 | 194 | 15 | 207 | 29 | 4 | 67 |
-
-Tool execution (pooled, median / p90 / seconds per session): blender `render_views` 0.8/61 → 9.6 s, `render_sheet`
-0.9/61 → 7.4, `isolate` 0.7/61 → 3.9, `build` 0.5/0.7 → 2.3, `check_connectivity` 0.13/0.5 → 0.6; cadquery `build`
-3.3/5.9 → 17 s; threejs `render_views` 2.5/87 → 16 s, `build` 1.0/1.7 → 5; graphics `gl_probe` 1.0/1.3 → 2.2,
-`build` 4.8/6 → 2.0, `gl_frames` 2.8/3.2 → 1.9; scene `scene_views` 6.1/16 → 25 s, `scene_probe` 2.4/16 → 17,
-`build` 3.1/8.3 → 15; articulated `joint_sweep` 50/93 → 259 s. read/write/edit/list/check_contract/measure ≈ 0.
-Renders have a 60-s-cap tail (p90 = 61 s) but total tool time is ≤ 30 s per session everywhere except `joint_sweep`.
-Sessions past their 1 800-s job timeout (exit timeout/error): 97 on storm day, overshoot 182 s med / 1 154 s p90,
-41 355 s in total — the deadline is only checked at the top of a turn, never inside the retry loop.
-
-## 4. Key rotation — evidence and mechanism
-
-**No telemetry row records which key served a call.** `keys.py` scanned 1 542 files (cost.jsonl, transcripts,
-result.json, rounds, record.json): zero occurrences of the `"key": "…xxxx"` that `gemini.py:_once` puts into
-`ChatResponse.raw`, and no key-like field anywhere (only `settings.key_pool_size`). Per-key distribution and
-"is one key hammered" are therefore unanswerable from the corpus — that is the finding; `KeyPool.stats()` exists but is
-only surfaced by `3dcv doctor --live`, never persisted. How rotation works today (`keypool.py`, `retry.py`,
-`storm.py`, `gemini.py`, `agents/api_agent.py`, `judges/vlm_judge.py`):
-1. `KeyPool.acquire` is **round-robin per call**: the cursor advances past the chosen key, so consecutive calls (and
- consecutive retries of one call) land on different keys by construction, subject to per-key RPM (1 000/min) and TPM
- (1 M/min, reserved from the estimated prompt tokens, reconciled on report), a ≤ 5 s 429 cooldown, health ≥ 0.3,
- a 1-h bench for dead keys, and a process-wide `max_in_flight = 64` semaphore; it blocks ≤ 120 s if nothing is ready.
-2. Key-scoped errors (401/403, invalid key) rotate at once for free; 429 rotates for free with a 0.5 s pause while an
- untried key remains, then counts against `max_attempts = 6` with backoff 1·2^n capped at `MAX_WAIT_S = 5`.
-3. **503/529 = "storm" branch**: sleep `min(5, 2^storm × [0.75, 1.25))` s, re-acquire (a new key), up to 60 storm
- attempts that do NOT consume `max_attempts`, bounded only by `RETRY_DEADLINE_S = 900` — checked **after** a failed
- attempt returns, so a 300-s read timeout (`model_timeout_s`) can push one call to ~1 200 s. Other retryables
- (timeouts, bad JSON, empty candidates) get the 6-attempt/900-s budget. `StormGate` exists but is OFF (lost its A/B).
-4. Above that, `api_agent._generate` retries a failed *turn* 3x (sleep 2, 4 s) and `VlmJudge._sample` retries a
- sample 3x, each retry re-entering the full 900-s machine: one turn can burn 2 700 s; a session's `timeout_s` and the
- run's `max_minutes` are only checked between turns / stages. Each `ab_plan` cell is its own process (own pool).
-What costs wall clock under a 503 storm: (a) every attempt is **sequential and single-flight** — one request in the
-air per logical call, and a failed 503 costs 20–50 s of held round-trip before the ≤ 5 s sleep even starts; (b) no
-hedging across keys, though each attempt already lands on a fresh key; (c) the 900-s budget is per *call*, multiplied
-by the outer 3x loops, and never clipped to the remaining session/round/run budget; (d) the judge's 200 k-token call
-gets the same 300-s read timeout x 3 before its deadline; (e) a scoped baseline round waits for the slowest of 3–4
-sessions, so one session's give-up chain stalls the round and the run runs into the 60-min ceiling with nothing built.
-
-## 5. Accelerations, ranked by measured seconds per storm-day run (base-day gain in brackets)
-
-1. **Clip the per-call retry budget to the remaining session/round/run budget and cap it (~120 s inside an agent
- turn; a turn that still fails ends the session as `error` and the round salvages what exists).** Removes the 66
- give-up spans: 72 921 s / 51 runs = **~1 430 s/run mean** (~800 s per span at a 120-s cap), plus the 837 s median
- overshoot on the 32 ceiling-killed runs and the 41 355 s of session overshoot. Code: `retry.py` (`max_total_s`
- from caller), `api_agent._generate` (check `t_deadline` inside `MODEL_RETRIES`), `vlm_judge._sample`,
- `tracks/generation.py` (`timeout_s = min(agent_timeout_s, budget remaining)`). [base: 7 137 s / 52 runs ≈ 140 s]
-2. **Hedge the retry of a 503: after the first 503, issue the next attempt on 2–3 keys concurrently, take the first
- success (a 503 bills nothing, so the hedge is free while storming).** Storm streaks average 4.7 attempts (1 101
- episodes / 5 143 lines) at 21–50 s each; a 3-way hedge cuts expected rounds to ~1.7, i.e. ~60 % of the retry
- wait: 33 retried calls × 47 s × 0.6 ≈ **930 s/run blender**, 59 × 40 × 0.6 ≈ **1 400 s threejs**, ~600 s cadquery,
- ~450 s graphics. Code: `retry.py` + `gemini.py` (a small thread fan-out), validate with `concurrency_probe.py`.
-3. **Planner and judge: hedge on a second key after ~1.5 × p90 (60 s planner, 150 s judge) and cap the sample at
- ~200 s instead of 3 × 300 s.** Planner: 492 s median waiting per run that plans (h2h/refs/scene; **~400 s/run**);
- judge: 3 150 s over the 2 timed-out rounds = **~56 s/round mean**, `judge_s` p90 451 → ~170 s. Code
- (`vlm_judge._sample`, planner call site) or a role-specific `model_timeout_s` (today one global 300 s).
-4. **Pre-compute / cache the plan per prompt** (settings — `ab_plan` already does it: fancy plan stage = 0 s):
- **548 s/run** saved on any re-run or second arm of the same prompt on storm day; 69 s baseline.
-5. **Rotate to the next key with no (or 0.5 s) sleep on 503** (settings: `GeminiModel(base_delay, storm_max_delay)`):
- the sleeps are 645 s/cell median, 1 525 p90 — **≤ 13 % of the wait**; only worth it together with 2.
-6. **Enforce the bench ceiling inside a round** (code, `lifecycle` budget check in the session fan-out): the 14
- zero-round killed runs would fail **837 s (p90 1 560 s) sooner**; they produce nothing either way unless salvage
- builds the parts that did finish (2 of 4 sessions typically complete at ~1 500–1 900 s).
-7. **Cheaper loop judge** (setting `--loop-judge gemini:gemini-3.7-flash`, pro for the final): judge model time is
- 12 % of baseline blender wall (116 s/run); flash p50 21 s vs pro 42 s → **~60 s/run base, ~20 s storm**.
-8. **Shorter render tools** (code: 30-s render cap): render/isolate p90 = 61–91 s tail, total ≤ 30 s/session →
- **≤ ~100 s/run**; `joint_sweep` (259 s/session, articulated) is the only tool worth batching.
-9. Parallel judge samples — already parallel (`fan_out`; baseline `judge_s` 52 s vs Σ samples 100 s): **0 s**.
-Not fixable from here: successful flash calls are 2.5x slower during the storm (p50 8.3 s), which alone adds ~180 s
-of think time per session; the only lever is fewer turns.
diff --git a/harness/docs/report.html b/harness/docs/report.html
deleted file mode 100644
index 2fc12bad..00000000
--- a/harness/docs/report.html
+++ /dev/null
@@ -1,632 +0,0 @@
-<title>3dcodeverse Harness Report</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap">
-<style>
-:root{
- --bg:#F4F6F8; --surface:#FFFFFF; --surface-2:#EBEFF3; --line:#D4DBE3; --line-soft:#E3E9EF;
- --ink:#111821; --ink-2:#3D4956; --ink-3:#68757F;
- --accent:#00786F; --accent-soft:#D3ECE8; --accent-line:#00786F;
- --good:#1F6E4A; --good-bg:#DDF0E4; --warn:#8A5A08; --warn-bg:#FBEBCF; --null:#9B2C24; --null-bg:#F8DEDA;
- --grid:#DFE5EB;
- --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
- --sans:'IBM Plex Sans',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
- --rail:250px;
-}
-@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
- --bg:#0C1016; --surface:#141A22; --surface-2:#1B232D; --line:#2A3542; --line-soft:#212B36;
- --ink:#E6ECF2; --ink-2:#A8B5C2; --ink-3:#76848F;
- --accent:#3ED8C6; --accent-soft:#123330; --accent-line:#2AB5A6;
- --good:#5CD69A; --good-bg:#12301F; --warn:#F0B846; --warn-bg:#32250C; --null:#F08A80; --null-bg:#34161A;
- --grid:#232E3A;
-}}
-:root[data-theme="dark"]{
- --bg:#0C1016; --surface:#141A22; --surface-2:#1B232D; --line:#2A3542; --line-soft:#212B36;
- --ink:#E6ECF2; --ink-2:#A8B5C2; --ink-3:#76848F;
- --accent:#3ED8C6; --accent-soft:#123330; --accent-line:#2AB5A6;
- --good:#5CD69A; --good-bg:#12301F; --warn:#F0B846; --warn-bg:#32250C; --null:#F08A80; --null-bg:#34161A;
- --grid:#232E3A;
-}
-*{box-sizing:border-box}
-body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.6;
- -webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
-.wrap{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);gap:0;max-width:1400px;margin:0 auto}
-/* ---------- rail ---------- */
-.rail{position:sticky;top:0;height:100vh;overflow-y:auto;padding:34px 20px 34px 28px;border-right:1px solid var(--line);
- background:var(--bg)}
-.brand{font-family:var(--mono);font-weight:600;font-size:14px;letter-spacing:.02em;color:var(--ink);margin-bottom:2px}
-.brand span{color:var(--accent)}
-.brand-sub{font-family:var(--mono);font-size:11px;color:var(--ink-3);margin-bottom:26px;line-height:1.5}
-.rail a{display:flex;gap:9px;text-decoration:none;color:var(--ink-2);font-size:13px;padding:5px 0;border-radius:4px}
-.rail a:hover{color:var(--accent)}
-.rail a .n{font-family:var(--mono);font-size:11px;color:var(--ink-3);min-width:15px;padding-top:2px}
-.rail a:hover .n{color:var(--accent)}
-.rail hr{border:0;border-top:1px solid var(--line-soft);margin:18px 0}
-/* ---------- main ---------- */
-main{padding:56px 48px 120px;min-width:0}
-h1{font-family:var(--mono);font-size:30px;font-weight:600;letter-spacing:-.01em;margin:0 0 10px;text-wrap:balance}
-.lede{font-size:17px;color:var(--ink-2);max-width:68ch;margin:0 0 12px}
-.stamp{font-family:var(--mono);font-size:11.5px;color:var(--ink-3);margin-bottom:36px}
-section{margin:0 0 56px;scroll-margin-top:24px}
-h2{font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);
- margin:0 0 6px;display:flex;align-items:baseline;gap:10px}
-h2 .n{color:var(--ink-3);font-weight:400}
-h3{font-size:19px;font-weight:600;margin:0 0 12px;letter-spacing:-.01em;text-wrap:balance}
-h4{font-family:var(--mono);font-size:13px;font-weight:600;margin:26px 0 10px;color:var(--ink)}
-p{max-width:72ch;margin:0 0 14px;color:var(--ink-2)}
-p strong,li strong{color:var(--ink);font-weight:600}
-code{font-family:var(--mono);font-size:.88em;background:var(--surface-2);padding:1px 5px;border-radius:3px;color:var(--ink)}
-ul{max-width:72ch;color:var(--ink-2);padding-left:18px;margin:0 0 14px}
-li{margin-bottom:6px}
-/* ---------- verdict ---------- */
-.verdicts{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:0 0 20px}
-.vcard{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:16px 18px;border-top:3px solid var(--tone)}
-.vcard.good{--tone:var(--good)} .vcard.warn{--tone:var(--warn)} .vcard.null{--tone:var(--null)}
-.vcard .k{font-family:var(--mono);font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--tone);font-weight:600}
-.vcard .v{font-family:var(--mono);font-size:25px;font-weight:600;margin:7px 0 4px;letter-spacing:-.02em}
-.vcard .d{font-size:13px;color:var(--ink-3);line-height:1.45}
-/* ---------- tables ---------- */
-.scroll{overflow-x:auto;margin:0 0 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
-table{border-collapse:collapse;width:100%;font-size:13.5px}
-th{font-family:var(--mono);font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-3);
- text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);white-space:nowrap;font-weight:600}
-td{padding:9px 14px;border-bottom:1px solid var(--line-soft);color:var(--ink-2);white-space:nowrap}
-tr:last-child td{border-bottom:0}
-td.num,th.num{text-align:right;font-family:var(--mono)}
-td.arm{font-family:var(--mono);font-size:12.5px;color:var(--ink);white-space:nowrap}
-tr.hl td{background:var(--accent-soft)}
-tr.hl td.arm{font-weight:600}
-.chip{display:inline-block;font-family:var(--mono);font-size:10.5px;font-weight:600;padding:2px 7px;border-radius:99px;letter-spacing:.04em}
-.chip.good{background:var(--good-bg);color:var(--good)} .chip.warn{background:var(--warn-bg);color:var(--warn)}
-.chip.null{background:var(--null-bg);color:var(--null)} .chip.mute{background:var(--surface-2);color:var(--ink-3)}
-/* ---------- CI plot ---------- */
-.ci{display:grid;grid-template-columns:var(--cilbl) 1fr var(--cival);gap:0 16px;align-items:center;
- background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:18px 20px}
-/* fixed columns, not auto: each row is its own grid, so an auto label column made the
- zero line land at a different x on every row — the one thing this plot must get right */
-:root{--cilbl:250px;--cival:158px}
-.ci .lbl{font-family:var(--mono);font-size:12px;color:var(--ink);padding:7px 0}
-.ci .track{position:relative;height:34px}
-.ci .zero{position:absolute;top:0;bottom:0;width:1px;background:var(--ink-3);opacity:.55}
-.ci .bar{position:absolute;top:50%;transform:translateY(-50%);height:5px;border-radius:3px;background:var(--tone);opacity:.35}
-.ci .pt{position:absolute;top:50%;transform:translate(-50%,-50%);width:11px;height:11px;border-radius:50%;background:var(--tone);
- border:2px solid var(--surface)}
-.ci .val{font-family:var(--mono);font-size:11.5px;color:var(--ink-3);text-align:right;padding:7px 0}
-.ci .val b{color:var(--ink);font-weight:600}
-.ci.g{--tone:var(--good)} .ci.w{--tone:var(--warn)} .ci.n{--tone:var(--null)}
-.axis{display:grid;grid-template-columns:var(--cilbl) 1fr var(--cival);gap:0 16px;padding:0 20px;
- font-family:var(--mono);font-size:10.5px;color:var(--ink-3)}
-.axis .ticks{display:flex;justify-content:space-between}
-/* ---------- pipeline ---------- */
-.pipe{display:flex;flex-wrap:wrap;align-items:stretch;gap:0;margin:0 0 18px;border:1px solid var(--line);border-radius:8px;
- background:var(--surface);overflow:hidden}
-.stage{flex:1 1 130px;min-width:130px;padding:14px 15px;border-right:1px solid var(--line-soft)}
-.stage:last-child{border-right:0}
-.stage .t{font-family:var(--mono);font-size:11px;font-weight:600;color:var(--accent);letter-spacing:.05em;text-transform:uppercase}
-.stage .b{font-size:12.5px;color:var(--ink-2);margin-top:5px;line-height:1.45}
-.stage.gate{background:var(--surface-2)}
-.stage.gate .t{color:var(--ink-2)}
-/* ---------- package map ---------- */
-.pkgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:9px}
-.pkg{background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:12px 14px}
-.pkg .n{font-family:var(--mono);font-size:12.5px;color:var(--ink);font-weight:600}
-.pkg .m{font-family:var(--mono);font-size:10.5px;color:var(--ink-3);margin:3px 0 6px}
-.pkg .d{font-size:12.5px;color:var(--ink-2);line-height:1.45}
-.pkg .barwrap{height:3px;background:var(--surface-2);border-radius:2px;margin-top:9px;overflow:hidden}
-.pkg .barwrap i{display:block;height:100%;background:var(--accent-line);opacity:.65}
-/* ---------- callout ---------- */
-.call{border-left:3px solid var(--tone,var(--accent));background:var(--surface);padding:15px 18px;border-radius:0 7px 7px 0;
- margin:0 0 18px;border-top:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
-.call .h{font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;
- color:var(--tone,var(--accent));margin-bottom:6px}
-.call p{margin:0;max-width:none;font-size:14px}
-.call p + p{margin-top:9px}
-.call.warn{--tone:var(--warn)} .call.null{--tone:var(--null)} .call.good{--tone:var(--good)}
-.sev{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:9px;margin:0 0 18px}
-.sevc{background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:12px 14px;text-align:center}
-.sevc .v{font-family:var(--mono);font-size:24px;font-weight:600;color:var(--tone,var(--ink))}
-.sevc .k{font-family:var(--mono);font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-3);margin-top:3px}
-.foot{border-top:1px solid var(--line);padding-top:18px;font-family:var(--mono);font-size:11.5px;color:var(--ink-3);max-width:none}
-@media (max-width:960px){
- .wrap{grid-template-columns:1fr}
- .rail{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:22px 22px 14px}
- .rail nav{display:flex;flex-wrap:wrap;gap:2px 16px}
- main{padding:30px 22px 80px}
- .ci,.axis{grid-template-columns:1fr;gap:2px}
- :root{--cilbl:1fr;--cival:auto}
- .ci .track{height:26px}
- .ci .val{text-align:left}
-}
-</style>
-<div class="wrap">
-<aside class="rail">
- <div class="brand">3dcodeverse<span>/</span>harness</div>
- <div class="brand-sub">data flywheel for<br>LLM-written raw 3D code</div>
- <nav>
- <a href="#verdict"><span class="n">1</span><span>Verdict</span></a>
- <a href="#what"><span class="n">2</span><span>What it is</span></a>
- <a href="#arch"><span class="n">3</span><span>Architecture</span></a>
- <a href="#impl"><span class="n">4</span><span>Implementation</span></a>
- <a href="#noise"><span class="n">5</span><span>The noise floor</span></a>
- <a href="#stats"><span class="n">6</span><span>Paired results</span></a>
- <a href="#arms"><span class="n">7</span><span>Every arm</span></a>
- <a href="#cells"><span class="n">8</span><span>Per-prompt</span></a>
- <a href="#stability"><span class="n">9</span><span>Stability pass</span></a>
- <a href="#open"><span class="n">10</span><span>Known open</span></a>
- <a href="#today"><span class="n">11</span><span>2026-08-26</span></a>
- </nav>
- <hr>
- <div class="brand-sub" id="railstamp"></div>
-</aside>
-
-<main>
-<h1>3dcodeverse harness</h1>
-<p class="lede">A measurement instrument for LLM-authored <strong>raw</strong> 3D code — bpy, CadQuery, three.js, URDF, GLSL — across four tracks and eight backends, with deterministic gates ahead of every VLM judgement.</p>
-<p class="stamp" id="stamp"></p>
-
-<!-- ============================== 1 VERDICT -->
-<section id="verdict">
- <h2><span class="n">01</span> Verdict</h2>
- <h3>What the measurements actually support</h3>
- <div class="verdicts" id="verdictcards"></div>
- <div class="call">
- <div class="h">Read this first</div>
- <p>Every number below is a <strong>paired</strong> comparison: the same prompt, the same fixed judge (<code>gemini-3.1-pro-preview</code>, n_samples 2), the two arms run in the same weather. Cells lost to a provider outage are <code>infra_failed</code> and excluded from every rate — never scored 0. Unpaired means over different prompt sets are not comparable and are not used for any claim here.</p>
- </div>
-</section>
-
-<!-- ============================== 2 WHAT -->
-<section id="what">
- <h2><span class="n">02</span> What it is</h2>
- <h3>A flywheel, not a generator</h3>
- <p>The harness takes a one-line prompt and a chosen <em>track</em>, drives a model to write raw source in the target language, then builds, measures, renders and judges the artifact — repeating for a bounded number of rounds. Every round is a git commit of <code>src/</code>, every model call is a priced <code>Usage</code> row, and every run ends as a <code>record.json</code> that the flywheel turns into dataset samples, preference pairs and captions.</p>
- <h4>Tracks and languages</h4>
- <div class="scroll"><table>
- <thead><tr><th>Track</th><th>Languages</th><th>Deterministic gates before the judge</th></tr></thead>
- <tbody>
- <tr><td class="arm">static_object</td><td class="arm">blender · cadquery · threejs</td><td>lint → build → measure → connectivity → contract → 8-view render</td></tr>
- <tr><td class="arm">articulated_object</td><td class="arm">urdf_blender</td><td>+ joint sweep, per-pose collision, link-hierarchy part count</td></tr>
- <tr><td class="arm">scene</td><td class="arm">scene_threejs</td><td>+ scene census, camera framing, inter-frame motion, shader preflight</td></tr>
- <tr><td class="arm">graphics</td><td class="arm">glsl_shader · opengl_python</td><td>+ shader compile, GL frame capture, frame statistics</td></tr>
- </tbody>
- </table></div>
- <h4>Backends it drives</h4>
- <p>Five agent kinds — <code>api-agent</code> (in-process, tool-calling), <code>gemini-cli</code>, <code>claude-code</code>, <code>codex</code>, <code>agy</code> — plus <code>single-shot:&lt;provider&gt;:&lt;model&gt;</code> for one-call generation. Providers: Gemini, Anthropic, OpenAI. The same <code>Spec</code> runs on any of them, which is what makes the comparisons in §6 possible at all.</p>
- <div class="call">
- <div class="h">The law that shapes everything</div>
- <p>Generated code is <strong>raw language, never an SDK</strong>. The model writes the same <code>bpy</code> a human would; the harness owns the wrappers, exporters and render rigs. That is the difference between measuring a model's 3D reasoning and measuring how well it can call a helper library.</p>
- </div>
-</section>
-
-<!-- ============================== 3 ARCHITECTURE -->
-<section id="arch">
- <h2><span class="n">03</span> Architecture</h2>
- <h3>One run, end to end</h3>
- <div class="pipe">
- <div class="stage"><div class="t">Spec</div><div class="b">prompt + track + language + dims + must-haves, validated as a typed contract</div></div>
- <div class="stage"><div class="t">Brief</div><div class="b">optional: one cheap call expands the prompt into real dimensions and sub-assemblies</div></div>
- <div class="stage"><div class="t">Plan</div><div class="b">typed part list with bboxes, materials, attachment; budget derived from the request</div></div>
- <div class="stage"><div class="t">Generate</div><div class="b">agent writes raw source; per-part scoping for large objects</div></div>
- <div class="stage gate"><div class="t">Gates</div><div class="b">lint → build → measure → connectivity → contract — all deterministic, all in code</div></div>
- <div class="stage gate"><div class="t">Render</div><div class="b">8 canonical views + montage, GPU headless Chrome or Blender</div></div>
- <div class="stage"><div class="t">Judge</div><div class="b">VLM scores a rubric; the score is computed in code from weights, caps and floors</div></div>
- <div class="stage"><div class="t">Refine</div><div class="b">repair / refine / detail rounds until pass, plateau or budget</div></div>
- <div class="stage"><div class="t">Record</div><div class="b">record.json → dataset samples, preference pairs, captions, gallery</div></div>
- </div>
- <h4>The six laws</h4>
- <ul>
- <li><strong>Raw language only</strong> — no SDK or helper import in generated code.</li>
- <li><strong>One source of truth for frames</strong> — <code>conventions.py</code> alone states units, axes and naming; every package imports, none restates.</li>
- <li><strong>Deterministic first, VLM last</strong> — code decides geometry; the model is used only for perception. Scores are computed from rubric weights, with explicit caps and floors.</li>
- <li><strong>Cheap first</strong> — lint before build before gates before renders before the judge. Budgets are hard ceilings.</li>
- <li><strong>Everything is a record</strong> — every round a git commit, every call a priced <code>Usage</code>, every run a <code>record.json</code>.</li>
- <li><strong>Export as authored</strong> — no wrapper silently re-centres or grounds an object; the gates catch it instead.</li>
- </ul>
- <h4>Package map</h4>
- <div class="pkgs" id="pkgs"></div>
-</section>
-
-<!-- ============================== 4 IMPLEMENTATION -->
-<section id="impl">
- <h2><span class="n">04</span> Implementation</h2>
- <h3>The parts that carry the weight</h3>
-
- <h4>Deterministic gates — where the harness earns its lift</h4>
- <p>The judge never decides whether geometry is correct. <code>spatial/</code> measures it: part count over the real link hierarchy, pairwise interpenetration depth and buried-surface fraction, floating-component detection against declared attachment, joint sweeps over poses with per-pose collision, camera framing and inter-frame motion for scenes, GL frame statistics for shaders. A finding carries a severity, a target, a fix hint and structured data, and the round loop feeds those back as the repair prompt.</p>
-
- <h4>Key pool — 22 keys, scheduled on tokens not requests</h4>
- <p>Measured on this machine: a generator call averages ~42k prompt tokens, so 1M TPM per key is ~24 calls/min — the token quota binds long before the request quota. <code>KeyPool</code> reserves estimated prompt tokens on acquire and reconciles on report. The measured concurrency knee is <strong>64 in-flight</strong> (72.9 calls/min, against 43.9 at 32 and a fall back to 47.2 at 128). Because the pool is per-process, the operational rule is that the <em>sum</em> of in-flight caps across every harness process stays at the knee.</p>
-
- <h4>Retry policy — bounded in time, not in attempts</h4>
- <p>No single wait exceeds <strong>5 s</strong>; with 22 keys, rotating beats sitting out a backoff. A capacity storm gets its own patience budget, and the whole retry sequence for one logical call is bounded by a <strong>900 s deadline</strong> — before that bound existed, 60 storm attempts × a 300 s read timeout meant one call could hold for 5.6 hours.</p>
-
- <h4>Cost ledger</h4>
- <p>Every model call is priced into <code>telemetry/cost.jsonl</code> with its price provenance, attributed to a stage and a role, nested per run so a parallel battery still attributes correctly. Three profiles — <code>economy</code>, <code>balanced</code>, <code>quality</code> — move models, judge samples, rounds, candidates and ceilings together on one dial.</p>
-
- <h4>Honest failure accounting</h4>
- <p>A cell can end without a score for reasons that say nothing about the model. <code>infra_failed</code> (provider outage) is excluded from score, build rate <em>and</em> wall-clock. <code>budget_exhausted</code> (ran out of time with no artifact) has no score but still counts against build rate. A model that answers with prose, unparseable code or a genuine API mistake keeps its zero. Getting this wrong is not cosmetic: it once put five hard zeros on a one-shot arm while dropping the harness cells hit by the same outage.</p>
-
- <h4>Scale</h4>
- <div class="scroll"><table>
- <thead><tr><th>Component</th><th class="num">Files</th><th class="num">Lines</th></tr></thead>
- <tbody id="scaletable"></tbody>
- </table></div>
-</section>
-
-<!-- ============================== 5 NOISE -->
-<section id="noise">
- <h2><span class="n">05</span> The noise floor</h2>
- <h3>What a single comparison can and cannot tell you</h3>
- <div class="call null">
- <div class="h">A/A calibration — the most important result here</div>
- <p>Two <strong>A/A</strong> runs — identical arms, same prompt, same judge, differing only in run-to-run randomness — measured <strong>+0.344</strong> and <strong>−0.100</strong>. A rig with a ±0.02 keep/revert threshold would have concluded <em>keep</em> from one and <em>revert</em> from the other, <strong>from nothing at all</strong>.</p>
- <p>So a single prompt pair carries no signal. Every claim in §6 is therefore reported with its paired standard error, a 95% confidence interval and an exact sign test, and anything whose interval crosses zero is labelled unsupported however good the mean looks.</p>
- </div>
- <p>The practical consequence: an 8-prompt battery resolves a real difference of roughly <strong>0.25</strong>, not 0.02. Differences smaller than that need either many more prompts or a within-prompt design.</p>
-</section>
-
-<!-- ============================== 6 STATS -->
-<section id="stats">
- <h2><span class="n">06</span> Paired results</h2>
- <h3>Every headline, with its confidence interval</h3>
- <p>Bars show the 95% CI of the paired difference; the dot is the mean. A bar that crosses the zero line is <strong>not separated from noise</strong> — the ordering may be real, but this data does not establish it.</p>
- <div id="ciplot"></div>
- <div class="scroll" style="margin-top:16px"><table>
- <thead><tr><th>Comparison</th><th class="num">n</th><th class="num">Δ</th><th class="num">95% CI</th><th class="num">t</th><th class="num">W/L/T</th><th class="num">sign p</th><th>Verdict</th></tr></thead>
- <tbody id="stattable"></tbody>
- </table></div>
- <div class="call good" style="margin-top:18px">
- <div class="h">The finding worth keeping</div>
- <p>The harness lift is <strong>largest on the weakest model</strong> and shrinks as the model gets stronger: luna <strong>+0.291</strong> (solid, 10W/0L), terra <strong>+0.191</strong>, sol <strong>+0.155</strong>. The loop compresses the gap between models rather than scaling with them — which is exactly what a good scaffold should do, and it is why a cheap model inside the harness reaches a strong model's one-shot quality.</p>
- </div>
- <div class="call warn">
- <div class="h">What is not yet true</div>
- <p>Paired on the 8 shared prompts, <strong>harness+flash − one-shot gpt-5.6-sol = −0.002</strong> (CI −0.118…+0.114). That is a <strong>dead heat</strong>, not a win. The goal of beating sol with flash alone is currently <em>at parity</em>. The remaining gap to close is the <strong>+0.169</strong> that harness+codex-sol still holds over harness+flash (8W/0L, solid) — on <em>blender objects</em>. On graphics and scene the same comparison, harness against harness on 6 paired prompts (§11), is <strong>+0.014 with a CI that crosses zero</strong>: there the generator makes no measurable difference at all.</p>
- </div>
-</section>
-
-<!-- ============================== 7 ARMS -->
-<section id="arms">
- <h2><span class="n">07</span> Every arm</h2>
- <h3>Per battery, evaluated cells only</h3>
- <p><code>drop</code> counts cells lost to a provider outage and excluded from every rate. <code>$gen</code> is generation cost for the whole arm — for subscription CLIs it is imputed from recorded tokens at list price, not money actually billed.</p>
- <div id="armtables"></div>
-</section>
-
-<!-- ============================== 8 CELLS -->
-<section id="cells">
- <h2><span class="n">08</span> Per-prompt</h2>
- <h3>The hard battery, cell by cell</h3>
- <p>Eight prompts on the <code>compare_v2</code> battery — two medium controls and six hard, chosen across decomposition, curved-organic, thin-feature, mechanism and architectural axes. Every one of the one-shot zeros below is an <em>earned</em> zero: a real Blender API mistake (<code>calc_normals</code>, <code>calc_normals_split</code>, <code>Matrix.Euler</code> — all removed in 4.1+), not an outage.</p>
- <div id="celltable"></div>
-</section>
-
-<!-- ============================== 9 STABILITY -->
-<section id="stability">
- <h2><span class="n">09</span> Stability pass</h2>
- <h3>45 candidate defects, 42 verified, 50 fixes</h3>
- <p>Six independent sweeps hunted the tree; a seventh set of agents tried to <em>refute</em> every finding before it counted; three fixed what survived. Each fix carries a regression test proven to fail on the old code.</p>
- <div class="sev" id="sevcards"></div>
- <h4>The ones that mattered</h4>
- <div class="scroll"><table>
- <thead><tr><th>Defect</th><th>Why it mattered</th></tr></thead>
- <tbody>
- <tr><td class="arm">connectivity blind to<br>non-watertight parts</td><td>Interpenetration was never detected between open meshes — which is most LLM-authored geometry. Two sibling defects: a model authoring below the floor disabled the floating check, and every ground-touching component counted as supported.</td></tr>
- <tr><td class="arm">write_json_atomic<br>shared temp name</td><td>One fixed <code>.tmp</code> per path meant concurrent writers published truncated JSON. It is the primitive under every record, plan and ledger; the same race silently disabled the three.js asset gate.</td></tr>
- <tr><td class="arm">claude-code recorded<br>the wrong model</td><td><code>claude -p</code> bills two models per session and lists the CLI's housekeeping model first. Every alias — <code>sonnet</code>, <code>opus</code>, the default — was recorded as <code>claude-haiku-4-5</code>, the model that did 0.9% of the tokens. A sonnet-vs-default comparison was really haiku-vs-haiku.</td></tr>
- <tr><td class="arm">resume corrupted<br>finished runs</td><td>No terminal-state guard: resuming a completed run re-billed the plan stage and overwrote <code>passed</code> with <code>planning</code>, leaving it stuck. Separately, an unreadable cached stage bricked resume permanently.</td></tr>
- <tr><td class="arm">parquet dropped the<br>complexity columns</td><td>The flywheel's dataset silently shipped without the objective complexity vector — the metrics the whole complexity study depends on.</td></tr>
- <tr><td class="arm">one CV3D_JUDGE__* var<br>disabled the profile</td><td>Setting a single judge field discarded the profile's entire judge block.</td></tr>
- <tr><td class="arm">a NUL from the model<br>reached an argv</td><td>A planner wrote <code>\x00</code> where it meant <code>×</code> and <code>±</code>. Legal JSON, so it passed the parser, pydantic and <code>plan.json</code> — then killed all four generation tasks of a cell inside <code>subprocess.Popen</code> with an error naming no file, no field and no value.</td></tr>
- </tbody>
- </table></div>
- <h4>Smoke matrix</h4>
- <p><strong>47 settings executed, 0 failed, 8 skipped.</strong> All seven track × language pairs create spec and workspace correctly; all 14 CLI commands run, including MCP driven over real stdio by an <code>mcp.ClientSession</code>; all three profiles resolve to genuinely distinct settings. The 8 skips were concurrency-budget exhaustion, not functional gaps — the health probe showed the provider would have served.</p>
- <h4>Clean-clone check</h4>
- <p><code>git clone</code> to a temp dir, fresh Python <strong>3.10.21</strong> venv, every credential unset, CI's exact command: <strong>1295 passed, 0 failed</strong>. Main tree at sign-off: <strong>2257 passed, 0 failed</strong>, ruff clean.</p>
-</section>
-
-<!-- ============================== 10 OPEN -->
-<section id="open">
- <h2><span class="n">10</span> Known open</h2>
- <h3>Stated, not buried</h3>
- <ul>
- <li><strong><code>CodingAgent.available()</code> is a false green light.</strong> It returns available for <code>agy:gemini-3.7-flash</code> (cannot launch) and <code>codex:gpt-5.1-codex</code> (backend rejects with HTTP 400). Usability, not correctness — it cannot corrupt an artifact.</li>
- <li><strong>Two pre-existing flaky tests</strong> in <code>test_cost_latency</code> and <code>test_prompts_assets</code>. They predate this pass and were deliberately left alone so their attribution stays clean.</li>
- <li><strong>The scene track has no scored after-measurement.</strong> Four deterministic gate defects were found and fixed — a judge shown the harness's diagnostic rig instead of the scene's authored cameras, two false-positive gates, and unverifiable planner must-haves — and two are proven offline on recorded frames. Their effect on scores is not yet measured.</li>
- <li><strong>The interpenetration study needs recomputing.</strong> Its correlations were measured with the connectivity gate that was blind to non-watertight parts.</li>
- <li><strong><code>max_minutes</code> is enforced at billing points, not on a timer.</strong> The retry deadline makes every call terminate, so the ceiling is evaluated again — but a run whose calls never complete is still not checked against it.</li>
- <li><strong>The skills library ships OFF, and no bundle has a measured effect.</strong> 13 bundles, each with a falsifiable target metric and a corpus baseline (<code>docs/SKILLS_LEDGER.md</code>); the A/A floor on those metrics needs ~90–1,300 pairs to resolve a 25% move, and one bundle was cut for failing its own claim. Honest default until a measurement exists.</li>
- <li><strong>A <code>budget</code> stop with zero judged rounds is an outage, not a score.</strong> On the 2026-08-26 storm, cells burned their 60 minutes without one judged round and were recorded <code>budget</code>; the pairing treats them as unscored but the status should say <code>infra_failed</code>.</li>
- <li><strong>Fifteen files exceed the ~400-line law</strong> (the review names them). Not split in the cleanup — 0 lines saved, every one pinned by tests; one split per wave, starting with <code>orchestrator/rounds.py</code>.</li>
- </ul>
- <p class="foot" id="foot"></p>
-</section>
-
-<!-- ============================== 11 TODAY -->
-<section id="today">
- <h2><span class="n">11</span> 2026-08-26</h2>
- <h3>One night: the loop, the code, the review</h3>
- <p>Everything below was measured on the recorded corpus before it was changed, and every change is one commit with the measurement in its message. Effects on the judged score are <em>not</em> claimed — the noise floor (§5) is 0.202 and nothing here has enough pairs yet.</p>
-
- <h4>Harness defects found by reading the corpus, and fixed</h4>
- <div class="scroll"><table>
- <thead><tr><th>Defect</th><th>What the corpus showed</th><th>Fix</th></tr></thead>
- <tbody>
- <tr><td class="arm">pool budget saw 0 processes</td><td>21 live <code>3dcv make</code>; <code>pool_budget()</code> said "0 siblings, headroom 64" — every lane sized itself off a number that was always 64, 210/64 in flight, the 503 storm every lane was fighting.</td><td>console-script argv (interpreter at argv[0]) is now counted; the old test asserted an argv shape that cannot occur.</td></tr>
- <tr><td class="arm">max_usd priced a subscription</td><td>codex hero sessions billed at OpenAI list rates crossed the $4.40 soft cap 6.8 min in over a bill of $0.00; both asset judges skipped, run ended <code>budget</code> at round 0.</td><td>the guard enforces <code>billed_usd</code>; the ledger keeps list price for reports.</td></tr>
- <tr><td class="arm">best-of-N inert on graphics</td><td>every graphics run: <code>scores {c0: null, c1: null}, selected 0</code> — a shader has no GLB, so the quick render returned nothing and the candidate was never judged. N generations bought, N−1 discarded blind.</td><td>no GLB → the track's own renderer.</td></tr>
- <tr><td class="arm">refine sessions rewrote neighbours</td><td>128 judged refine rounds: the rounds that <em>regressed</em> rewrote 6 of 9 part files (improved: 4 of 8), and their worst-dropping criterion was structure_plausibility with 0 gate errors.</td><td>the write tool refuses to overwrite an existing file the round did not name; new files and the entry file stay allowed.</td></tr>
- <tr><td class="arm">joint_sweep rendered every joint</td><td>articulated rounds 1007 s median vs 497 s static — the agent session, mostly waiting on sweeps (~63 renders a call, 3–8 calls a round). <code>joints=</code> was accepted and dropped.</td><td>narrows the render; the collision check still covers the robot.</td></tr>
- <tr><td class="arm">no image ever reached a session</td><td><code>GenerationTask.images</code> fed the single-shot path only; a <code>--image</code> reference was seen by the planner and the judge and never by the code writer.</td><td><code>AgentJob.images</code> on the first message; a refine session also gets the contact sheet the judge scored.</td></tr>
- <tr><td class="arm">a night scene read as broken</td><td>the exposure gate had one dark test and one remedy ("add fill"); the lighting skill quoted it as a target. A lantern-lit courtyard followed it and shipped as snow at dawn at 0.729.</td><td><code>lum_std</code> (already emitted, never read) separates dim-but-lit from unlit; the skill states a band, not a floor.</td></tr>
- <tr><td class="arm">silhouette scored on nothing</td><td>9 of 21 reference photos segmented to a whole-frame mask and all passed <code>reliable</code>; a penny-farthing scored IoU 0.59 against a coffee cup.</td><td>bbox coverage &gt; 98% → unreliable → NEUTRAL, never low.</td></tr>
- <tr><td class="arm">a hero loaded and never placed</td><td>a refine round replaced a Blender GLB with a procedural rebuild; the dead load stayed, <code>plan.json</code> still said <code>blender_glb</code>.</td><td>the scene host records each GLB's geometry UUIDs; the census says whether any reached the frame.</td></tr>
- <tr><td class="arm">one storm killed a driver</td><td>a pinned plan lost to a 900 s storm propagated out of the A/B loop; two prompts never attempted.</td><td>the pair is recorded <code>infra_failed</code>; the loop continues; <code>--redo-status</code> picks it up.</td></tr>
- </tbody>
- </table></div>
-
- <h4>codex gpt-5.6-sol vs gemini-3.7-flash on graphics and scene — paired, n=6</h4>
- <div class="scroll"><table>
- <thead><tr><th>Prompt</th><th>Track</th><th class="num">flash</th><th class="num">codex</th><th class="num">Δ</th><th>Picture</th></tr></thead>
- <tbody>
- <tr><td class="arm">rain_window</td><td>glsl</td><td class="num">0.909</td><td class="num">0.919</td><td class="num">+0.010</td><td>flash — codex lost the city entirely</td></tr>
- <tr><td class="arm">aurora_ridge</td><td>glsl</td><td class="num">0.940</td><td class="num">0.936</td><td class="num">−0.004</td><td>flash — a black night vs a twilight</td></tr>
- <tr><td class="arm">accretion_disc</td><td>glsl</td><td class="num">0.753</td><td class="num">0.756</td><td class="num">+0.003</td><td>tie</td></tr>
- <tr><td class="arm">murmuration</td><td>opengl</td><td class="num">0.865</td><td class="num">0.941</td><td class="num">+0.076</td><td>codex</td></tr>
- <tr><td class="arm">neon_alley</td><td>scene</td><td class="num">0.827</td><td class="num">0.735</td><td class="num">−0.092</td><td>flash</td></tr>
- <tr><td class="arm">boat_workshop</td><td>scene</td><td class="num">0.747</td><td class="num">0.837</td><td class="num">+0.090</td><td>codex</td></tr>
- </tbody>
- </table></div>
- <div class="call warn">
- <div class="h">What it establishes</div>
- <p>Mean <strong>+0.014</strong>, sd 0.065, 95% CI <strong>[−0.038, +0.066]</strong>, sign 4/6, p = 0.69; the largest single delta (0.092) is inside the 0.202 generator-alone floor. Picture winners split 3–3 by reviewers blind to the scores. Not a win for either — and not what "flash beats sol" would need; what it does support is that on these tracks the harness loop, not the model, sets the score. The two models fail differently: codex is the tidier renderer and the more literal clause-follower whose failure is a clean image of something adjacent to the brief; flash puts the named subject on screen more often and fails on craft. The rubric currently rewards artefact-absence over subject-presence — a rubric decision, not a model result.</p>
- </div>
-
- <h4>The code is the dataset — so it gets its own vector</h4>
- <p><code>flywheel/code_quality.py</code>: unnamed numeric literals per 100 LOC, longest and mean function length, functions defined and never referenced, duplicated 6-line windows, docstring coverage, named constants — folded to one stated-weight index in <code>record.extra["code_quality"]</code> beside the artifact's complexity block. Over 258 measurable runs it computes in 5.8 s; blender's median index is <strong>0.444</strong>; correlation with the judged score is <strong>+0.10</strong> — a different axis from the picture, which is the point. A tidy stool scores 0.892; the same stool as a script of literals scores 0.400.</p>
-
- <h4>The review, and what came off</h4>
- <p>Four readers, one skeptic per finding (20 checked, <strong>19 held, 1 refuted</strong>), one plan: <code>docs/REVIEW_2026-08-26.md</code>. Verdict: the laws are visibly enforced and most oddities carry a dated measurement; the mess is <em>wave residue</em> — a second gallery renderer the CLI had abandoned, <code>call_adaptive</code> silently dropping kwargs to signatures that now existed, shims with their own delete-me TODOs, one tolerant JSON read written eight times. Applied in four waves, each item in its own worktree with its own test gate:</p>
- <div class="scroll"><table>
- <thead><tr><th>Wave</th><th>What</th><th class="num">Files</th><th class="num">Lines</th></tr></thead>
- <tbody>
- <tr><td class="arm">A</td><td>pure deletions — 9 dead public defs, 6 dead helpers, 5 dead cost helpers, a zero-caller Blender renderer, an unshipped material pass, three legacy re-export shims, the gl_build shim</td><td class="num">45</td><td class="num">−715 / +37</td></tr>
- <tr><td class="arm">B</td><td>one helper for N copies — <code>BoundedCache</code>, <code>proc.read_json_or_none</code> + JSONL helpers (8 + 5 copies), <code>cli_common.invoke</code> for four backends, the render forwarder and <code>call_adaptive</code> gone, URDF on <code>_common</code></td><td class="num">~40</td><td class="num">~−150</td></tr>
- <tr><td class="arm">C</td><td><code>_js_lint.py</code> shared by threejs/scene, judge replay through <code>judges/replay_input.py</code> (<code>TRACK_RUBRIC</code> gone), tool report formatting unified behind a pin</td><td class="num">~20</td><td class="num">~−60</td></tr>
- <tr><td class="arm">D</td><td><code>flywheel/gallery.py</code> retired; <code>bench/report.py</code> renders through <code>codeverse/gallery</code></td><td class="num">11</td><td class="num">−285 / +72</td></tr>
- <tr class="hl"><td class="arm">total</td><td>vs the review commit, <code>codeverse/ + bench/ + runtime_js/</code>; 4 modules deleted; full suite incl. Blender and node green after every wave</td><td class="num">82</td><td class="num">−1,471 / +727</td></tr>
- </tbody>
- </table></div>
- <p>Also added: an import-direction test (<code>judges/</code>, <code>contracts/</code>, <code>proc.py</code>, <code>workspace.py</code> never import upward — it fired once the same night and was right), the <code>proc.py</code> rule, and the last wave-marker shim retired. Not done, on purpose: the 15 files over the 400-line law (0 lines saved, all pinned; one split per wave from <code>rounds.py</code>).</p>
-
- <h4>The wave, at 07:10 — and the cap it exposed</h4>
- <p>16 hard, design-realistic object prompts (blender 10, cadquery 3, threejs 3), skills-OFF vs skills-ON, plan-pinned, on all 22 keys, through a night of Gemini 503 storms (outage rows are redone from a fresh driver, never scored). Final, 13 pairs (one dropped as an evaluator defect): microscope +0.087, marimba +0.077, windmill +0.260, harp +0.012, organ 0.000, gate_valve −0.058, carousel −0.109, shaker −0.211, ships_wheel −0.256, jukebox −0.326, street lamp −0.362, lever espresso −0.575 — mean <strong>−0.122</strong>, sd 0.24, sign 4/12, against a paired noise floor of 0.202. Nothing here says the library helps; the large negatives are real defects in the ON runs. Skills stay OFF.</p>
- <p>Three ON cells landed on <em>exactly</em> 0.600, which is what a cap looks like from the outside. The street lamp's was false: the connectivity gate had measured "all 9 parts connected, gap ≤ 2 mm" and said so in the judge's input; both pro samples read the dark seam under the pedestal as "floating in mid-air, a clear daylight gap", ticked <code>floating_part</code>, and the checklist cap held the run at 0.600 (uncapped 0.720) against 0.962 for a sibling the eye cannot tell apart. Fixed in code, not in the prompt: a checklist defect whose subject a passed gate measured absent no longer penalises or caps (<code>judges/caps.measured_absent</code>, named in the verdict tail). Re-aggregating all eleven judged cells from their stored samples moved exactly that one score (0.600 → 0.720; pair −0.242); the other 0.600s are must-item and interpenetration caps the gates agree with. With it, the wave reads mean −0.130, sd 0.167 — the same answer.</p>
- <h4>The graphics judge, measured against an eye — and the loop that fixes it</h4>
- <p>Seventeen judged graphics runs were scored by a person from the same contact sheets. Against the loop-time <code>shader_v1</code> verdicts: Spearman <strong>0.16</strong>, judge mean 0.773 vs eye 0.550 — three aurora versions nobody would take for an aurora at 0.78–0.94 with empty issue lists, hard pastel discs for bokeh at 0.92, a lifted purple wash for a nebula at 0.82, a crisp ukiyo-e wave at 0.59 under planner must items. The rubric scored the nouns of the brief being present. <code>shader_v2</code> scores likeness (would someone who has seen the thing accept it), tonal range, and a checklist of what flash actually draws (comb artefact, opaque shapes for light, white wash, candy saturation, no dark range). Re-judged in the same replay (pro n=2, plan digest + frame metrics): <strong>v1 0.34 → v2 0.71</strong>, mean 0.562 against the eye's 0.550. Reference photos now ride with the brief (<code>bench/refs/&lt;id&gt;/</code>): the agent sees them on its first message and a <code>LikenessJudge</code> puts them beside the frames — the first aurora run with photos was judged 0.49 (“rigid evenly spaced bars, not folding curtains”) where the same picture scored 0.94 the day before, and its refine round reached 0.70 with folded curtains. <code>docs/GRAPHICS_LOOP.md</code> is the recipe and the ledger.</p>
- <h4>The scene track measures placement now</h4>
- <p>Audited: no deterministic placement check existed on scenes — floating/sunken assets were a −0.06 VLM opinion, the rubric's floating cap could never fire, and scene agents called the object tools 0 times in 52 sessions (they fail on a scene workspace). <code>spatial/scene_placement.py</code> + <code>runtime_js/lib/host_placement.mjs</code>: per placed asset, a vertical column index of every other mesh gives the gap under its feet, burial depth judged against its own height, water, contacts and 3-D interpenetration; a <code>scene_placement</code> gate whose ERRORs cap the round and route to the zone file, and a <code>check_placement</code> tool the prompts tell the agent to call after every build. 131 k-tri terrain + 450 assets in 71 ms.</p>
-</section>
-</main>
-</div>
-<script>
-const DATA={"batteries":{"ab_aa_noise":{"control":{"n":1,"eval":1,"dropped":0,"mean":0.7,"median":0.7,"pass":0,"build":1,"gen_usd":1.21,"judge_usd":0.108,"min_per_run":26.2,"cells":{"ctrl_med_dining_chair":{"status":"scored","score":0.7,"build":true,"passed":false}}},"variant":{"n":1,"eval":1,"dropped":0,"mean":0.6,"median":0.6,"pass":0,"build":1,"gen_usd":0.952,"judge_usd":0.094,"min_per_run":47.9,"cells":{"ctrl_med_dining_chair":{"status":"scored","score":0.6,"build":true,"passed":false}}}},"ab_smoke_features":{"control":{"n":1,"eval":1,"dropped":0,"mean":0.5905,"median":0.5905,"pass":0,"build":1,"gen_usd":1.343,"judge_usd":0.145,"min_per_run":46.5,"cells":{"ctrl_med_dining_chair":{"status":"scored","score":0.5905,"build":true,"passed":false}}},"variant":{"n":1,"eval":1,"dropped":0,"mean":0.934,"median":0.934,"pass":1,"build":1,"gen_usd":1.685,"judge_usd":0.105,"min_per_run":31.7,"cells":{"ctrl_med_dining_chair":{"status":"scored","score":0.934,"build":true,"passed":true}}}},"codex_tiers_v2":{"oneshot:codex:gpt-5.6-sol":{"n":8,"eval":8,"dropped":0,"mean":0.6269,"median":0.6,"pass":1,"build":8,"gen_usd":2.737,"judge_usd":0.952,"min_per_run":3.9,"cells":{"cmp_med_dining_chair":{"status":"scored","score":0.5845,"build":true,"passed":false},"cmp_med_toaster":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.9095,"build":true,"passed":true},"cmp_hard_bonsai_rock":{"status":"scored","score":0.67,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.4515,"build":true,"passed":false},"cmp_hard_bay_window":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"scored","score":0.6,"build":true,"passed":false}}},"oneshot:codex:gpt-5.6-terra":{"n":8,"eval":8,"dropped":0,"mean":0.4805,"median":0.5513,"pass":2,"build":7,"gen_usd":0.22,"judge_usd":0.82,"min_per_run":2.8,"cells":{"cmp_med_dining_chair":{"status":"scored","score":0.2955,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.9,"build":true,"passed":true},"cmp_med_toaster":{"status":"scored","score":0.846,"build":true,"passed":true},"cmp_hard_garden_arch":{"status":"scored","score":0.5025,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.0,"build":true,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_bay_window":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"build_failed","score":0.0,"build":false,"passed":false}}},"harness:codex:gpt-5.6-sol":{"n":2,"eval":2,"dropped":0,"mean":0.928,"median":0.928,"pass":2,"build":2,"gen_usd":14.421,"judge_usd":0.206,"min_per_run":27.1,"cells":{"cmp_med_toaster":{"status":"scored","score":0.987,"build":true,"passed":true},"cmp_med_dining_chair":{"status":"scored","score":0.869,"build":true,"passed":true}}},"oneshot:codex:gpt-5.6-luna":{"n":8,"eval":8,"dropped":0,"mean":0.3444,"median":0.3243,"pass":1,"build":6,"gen_usd":0.113,"judge_usd":0.767,"min_per_run":3.1,"cells":{"cmp_hard_bay_window":{"status":"scored","score":0.4095,"build":true,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.2725,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_drafting_table":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.522,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.231,"build":true,"passed":false},"cmp_med_dining_chair":{"status":"scored","score":0.376,"build":true,"passed":false},"cmp_med_toaster":{"status":"scored","score":0.9445,"build":true,"passed":true}}},"oneshot:claude-code":{"n":8,"eval":8,"dropped":0,"mean":0.4723,"median":0.6,"pass":0,"build":6,"gen_usd":9.336,"judge_usd":0.722,"min_per_run":12.8,"cells":{"cmp_hard_bay_window":{"status":"no_code","score":0.0,"build":false,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.607,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"scored","score":0.5715,"build":true,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_violin":{"status":"no_code","score":0.0,"build":false,"passed":false},"cmp_med_dining_chair":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_med_toaster":{"status":"scored","score":0.7,"build":true,"passed":false}}},"oneshot:codex":{"n":8,"eval":8,"dropped":0,"mean":0.6366,"median":0.6,"pass":1,"build":8,"gen_usd":2.604,"judge_usd":0.991,"min_per_run":4.0,"cells":{"cmp_hard_bay_window":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.901,"build":true,"passed":true},"cmp_hard_drafting_table":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.497,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.5315,"build":true,"passed":false},"cmp_med_dining_chair":{"status":"scored","score":0.5635,"build":true,"passed":false},"cmp_med_toaster":{"status":"scored","score":0.7,"build":true,"passed":false}}},"oneshot:gemini:gemini-3.7-flash":{"n":8,"eval":7,"dropped":1,"mean":0.1464,"median":0.0,"pass":0,"build":4,"gen_usd":0.296,"judge_usd":0.453,"min_per_run":9.2,"cells":{"cmp_hard_bay_window":{"status":"no_code","score":null},"cmp_hard_bonsai_rock":{"status":"scored","score":0.302,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.0,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.5295,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.193,"build":true,"passed":false},"cmp_med_dining_chair":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_med_toaster":{"status":"build_failed","score":0.0,"build":false,"passed":false}}},"harness:api-agent:gemini:gemini-3.7-flash":{"n":3,"eval":2,"dropped":1,"mean":0.6,"median":0.6,"pass":0,"build":2,"gen_usd":1.273,"judge_usd":0.232,"min_per_run":52.6,"cells":{"cmp_hard_coffee_grinder":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_med_dining_chair":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_med_toaster":{"status":"error","score":null}}}},"codex_tiers_v3":{"oneshot:codex:gpt-5.6-sol":{"n":12,"eval":12,"dropped":0,"mean":0.6026,"median":0.6,"pass":1,"build":12,"gen_usd":3.529,"judge_usd":1.429,"min_per_run":4.4,"cells":{"cmp_med_dining_chair":{"status":"scored","score":0.5845,"build":true,"passed":false},"cmp_med_toaster":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.9095,"build":true,"passed":true},"cmp_hard_bonsai_rock":{"status":"scored","score":0.67,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.4515,"build":true,"passed":false},"cmp_hard_bay_window":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_med_hand_drill":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_penny_farthing":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_seated_cat":{"status":"scored","score":0.47,"build":true,"passed":false},"cmp_hard_telescope_tripod":{"status":"scored","score":0.5455,"build":true,"passed":false}}},"oneshot:codex:gpt-5.6-terra":{"n":12,"eval":12,"dropped":0,"mean":0.4406,"median":0.4302,"pass":2,"build":11,"gen_usd":0.576,"judge_usd":1.312,"min_per_run":6.1,"cells":{"cmp_med_dining_chair":{"status":"scored","score":0.2955,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.9,"build":true,"passed":true},"cmp_med_toaster":{"status":"scored","score":0.846,"build":true,"passed":true},"cmp_hard_garden_arch":{"status":"scored","score":0.5025,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.0,"build":true,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_bay_window":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_penny_farthing":{"status":"scored","score":0.2905,"build":true,"passed":false},"cmp_hard_seated_cat":{"status":"scored","score":0.358,"build":true,"passed":false},"cmp_med_hand_drill":{"status":"scored","score":0.5165,"build":true,"passed":false},"cmp_hard_telescope_tripod":{"status":"scored","score":0.2785,"build":true,"passed":false}}},"harness:codex:gpt-5.6-sol":{"n":12,"eval":11,"dropped":1,"mean":0.7577,"median":0.869,"pass":6,"build":11,"gen_usd":80.692,"judge_usd":1.238,"min_per_run":23.2,"cells":{"cmp_med_toaster":{"status":"scored","score":0.987,"build":true,"passed":true},"cmp_med_dining_chair":{"status":"scored","score":0.869,"build":true,"passed":true},"cmp_hard_coffee_grinder":{"status":"scored","score":0.9795,"build":true,"passed":true},"cmp_hard_garden_arch":{"status":"scored","score":0.948,"build":true,"passed":true},"cmp_hard_bonsai_rock":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.303,"build":true,"passed":false},"cmp_hard_bay_window":{"status":"scored","score":0.963,"build":true,"passed":true},"cmp_med_hand_drill":{"status":"error","score":null},"cmp_hard_drafting_table":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_penny_farthing":{"status":"scored","score":0.9725,"build":true,"passed":true},"cmp_hard_seated_cat":{"status":"scored","score":0.599,"build":true,"passed":false},"cmp_hard_telescope_tripod":{"status":"scored","score":0.4135,"build":true,"passed":false}}},"oneshot:codex:gpt-5.6-luna":{"n":12,"eval":12,"dropped":0,"mean":0.2889,"median":0.308,"pass":1,"build":9,"gen_usd":0.166,"judge_usd":1.147,"min_per_run":3.7,"cells":{"cmp_hard_bay_window":{"status":"scored","score":0.4095,"build":true,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.2725,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_drafting_table":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.522,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.231,"build":true,"passed":false},"cmp_med_dining_chair":{"status":"scored","score":0.376,"build":true,"passed":false},"cmp_med_toaster":{"status":"scored","score":0.9445,"build":true,"passed":true},"cmp_med_hand_drill":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_penny_farthing":{"status":"scored","score":0.0,"build":true,"passed":false},"cmp_hard_seated_cat":{"status":"scored","score":0.3675,"build":true,"passed":false},"cmp_hard_telescope_tripod":{"status":"scored","score":0.3435,"build":true,"passed":false}}},"oneshot:claude-code":{"n":8,"eval":8,"dropped":0,"mean":0.4723,"median":0.6,"pass":0,"build":6,"gen_usd":9.336,"judge_usd":0.722,"min_per_run":12.8,"cells":{"cmp_hard_bay_window":{"status":"no_code","score":0.0,"build":false,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.607,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"scored","score":0.5715,"build":true,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_violin":{"status":"no_code","score":0.0,"build":false,"passed":false},"cmp_med_dining_chair":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_med_toaster":{"status":"scored","score":0.7,"build":true,"passed":false}}},"oneshot:codex":{"n":8,"eval":8,"dropped":0,"mean":0.6366,"median":0.6,"pass":1,"build":8,"gen_usd":2.604,"judge_usd":0.991,"min_per_run":4.0,"cells":{"cmp_hard_bay_window":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.901,"build":true,"passed":true},"cmp_hard_drafting_table":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.497,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.5315,"build":true,"passed":false},"cmp_med_dining_chair":{"status":"scored","score":0.5635,"build":true,"passed":false},"cmp_med_toaster":{"status":"scored","score":0.7,"build":true,"passed":false}}},"oneshot:gemini:gemini-3.7-flash":{"n":7,"eval":7,"dropped":0,"mean":0.1464,"median":0.0,"pass":0,"build":4,"gen_usd":0.296,"judge_usd":0.453,"min_per_run":9.2,"cells":{"cmp_hard_bonsai_rock":{"status":"scored","score":0.302,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.0,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.5295,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.193,"build":true,"passed":false},"cmp_med_dining_chair":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_med_toaster":{"status":"build_failed","score":0.0,"build":false,"passed":false}}},"harness:api-agent:gemini:gemini-3.7-flash":{"n":2,"eval":2,"dropped":0,"mean":0.6,"median":0.6,"pass":0,"build":2,"gen_usd":1.273,"judge_usd":0.232,"min_per_run":52.6,"cells":{"cmp_hard_coffee_grinder":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_med_dining_chair":{"status":"scored","score":0.6,"build":true,"passed":false}}},"harness:codex:gpt-5.6-terra":{"n":12,"eval":11,"dropped":1,"mean":0.6461,"median":0.6,"pass":2,"build":11,"gen_usd":47.924,"judge_usd":1.242,"min_per_run":25.9,"cells":{"cmp_med_toaster":{"status":"scored","score":0.9755,"build":true,"passed":true},"cmp_med_dining_chair":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.596,"build":true,"passed":false},"cmp_hard_bay_window":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"scored","score":0.509,"build":true,"passed":false},"cmp_med_hand_drill":{"status":"scored","score":0.402,"build":true,"passed":false},"cmp_hard_penny_farthing":{"status":"scored","score":0.9565,"build":true,"passed":true},"cmp_hard_telescope_tripod":{"status":"error","score":null},"cmp_hard_seated_cat":{"status":"scored","score":0.4685,"build":true,"passed":false}}},"harness:codex:gpt-5.6-luna":{"n":12,"eval":10,"dropped":2,"mean":0.6006,"median":0.6,"pass":1,"build":10,"gen_usd":11.523,"judge_usd":1.141,"min_per_run":40.0,"cells":{"cmp_med_toaster":{"status":"scored","score":0.951,"build":true,"passed":true},"cmp_med_dining_chair":{"status":"scored","score":0.5805,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.544,"build":true,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.338,"build":true,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_bay_window":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_med_hand_drill":{"status":"error","score":null},"cmp_hard_seated_cat":{"status":"infra_failed","score":null},"cmp_hard_penny_farthing":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_telescope_tripod":{"status":"scored","score":0.4925,"build":true,"passed":false}}}},"compare_v1_full":{"oneshot:gemini:gemini-3.7-flash":{"n":8,"eval":8,"dropped":0,"mean":0.1622,"median":0.0,"pass":0,"build":3,"gen_usd":0.295,"judge_usd":0.32,"min_per_run":3.9,"cells":{"cmp_easy_stool":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_med_wheelbarrow":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_med_espresso_machine":{"status":"scored","score":0.4235,"build":true,"passed":false},"cmp_hard_bicycle":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_acoustic_guitar":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_sailboat":{"status":"scored","score":0.589,"build":true,"passed":false},"cmp_easy_desk_lamp":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_med_dining_chair":{"status":"scored","score":0.285,"build":true,"passed":false}}},"harness:api-agent:gemini:gemini-3.7-flash":{"n":8,"eval":8,"dropped":0,"mean":0.6852,"median":0.675,"pass":4,"build":8,"gen_usd":15.296,"judge_usd":0.812,"min_per_run":24.5,"cells":{"cmp_easy_stool":{"status":"scored","score":0.7805,"build":true,"passed":true},"cmp_med_dining_chair":{"status":"scored","score":0.8695,"build":true,"passed":true},"cmp_med_espresso_machine":{"status":"scored","score":0.75,"build":true,"passed":true},"cmp_easy_desk_lamp":{"status":"scored","score":0.7685,"build":true,"passed":true},"cmp_med_wheelbarrow":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_bicycle":{"status":"scored","score":0.562,"build":true,"passed":false},"cmp_hard_acoustic_guitar":{"status":"scored","score":0.553,"build":true,"passed":false},"cmp_hard_sailboat":{"status":"scored","score":0.598,"build":true,"passed":false}}}},"compare_v1_live2":{"oneshot:codex":{"n":2,"eval":2,"dropped":0,"mean":0.786,"median":0.786,"pass":1,"build":2,"gen_usd":0.404,"judge_usd":0.183,"min_per_run":2.1,"cells":{"cmp_easy_stool":{"status":"scored","score":0.9045,"build":true,"passed":true},"cmp_easy_desk_lamp":{"status":"scored","score":0.6675,"build":true,"passed":false}}},"oneshot:claude-code":{"n":2,"eval":2,"dropped":0,"mean":0.673,"median":0.673,"pass":0,"build":2,"gen_usd":1.899,"judge_usd":0.176,"min_per_run":4.1,"cells":{"cmp_easy_stool":{"status":"scored","score":0.646,"build":true,"passed":false},"cmp_easy_desk_lamp":{"status":"scored","score":0.7,"build":true,"passed":false}}},"oneshot:gemini:gemini-3.7-flash":{"n":2,"eval":2,"dropped":0,"mean":0.35,"median":0.35,"pass":0,"build":1,"gen_usd":0.043,"judge_usd":0.077,"min_per_run":1.8,"cells":{"cmp_easy_stool":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_easy_desk_lamp":{"status":"build_failed","score":0.0,"build":false,"passed":false}}},"harness:api-agent:gemini:gemini-3.7-flash":{"n":2,"eval":2,"dropped":0,"mean":0.8345,"median":0.8345,"pass":2,"build":2,"gen_usd":0.878,"judge_usd":0.192,"min_per_run":7.2,"cells":{"cmp_easy_desk_lamp":{"status":"scored","score":0.81,"build":true,"passed":true},"cmp_easy_stool":{"status":"scored","score":0.859,"build":true,"passed":true}}},"harness:gemini-cli:gemini-3.7-flash":{"n":2,"eval":2,"dropped":0,"mean":0.8265,"median":0.8265,"pass":1,"build":2,"gen_usd":1.999,"judge_usd":0.19,"min_per_run":15.9,"cells":{"cmp_easy_stool":{"status":"scored","score":0.953,"build":true,"passed":true},"cmp_easy_desk_lamp":{"status":"scored","score":0.7,"build":true,"passed":false}}}},"compare_v2_full":{"oneshot:gemini:gemini-3.7-flash":{"n":8,"eval":8,"dropped":0,"mean":0.2244,"median":0.0,"pass":0,"build":3,"gen_usd":0.292,"judge_usd":0.344,"min_per_run":9.1,"cells":{"cmp_med_dining_chair":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_med_toaster":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_violin":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_bonsai_rock":{"status":"build_failed","score":0.0,"build":false,"passed":false},"cmp_hard_bay_window":{"status":"scored","score":0.495,"build":true,"passed":false}}},"oneshot:codex":{"n":8,"eval":8,"dropped":0,"mean":0.6366,"median":0.6,"pass":1,"build":8,"gen_usd":2.604,"judge_usd":0.991,"min_per_run":4.0,"cells":{"cmp_med_dining_chair":{"status":"scored","score":0.5635,"build":true,"passed":false},"cmp_med_toaster":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_coffee_grinder":{"status":"scored","score":0.901,"build":true,"passed":true},"cmp_hard_garden_arch":{"status":"scored","score":0.497,"build":true,"passed":false},"cmp_hard_violin":{"status":"scored","score":0.5315,"build":true,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_bay_window":{"status":"scored","score":0.7,"build":true,"passed":false}}},"oneshot:claude-code":{"n":8,"eval":8,"dropped":0,"mean":0.4723,"median":0.6,"pass":0,"build":6,"gen_usd":9.336,"judge_usd":0.722,"min_per_run":12.8,"cells":{"cmp_hard_coffee_grinder":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_med_dining_chair":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_med_toaster":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.6,"build":true,"passed":false},"cmp_hard_violin":{"status":"no_code","score":0.0,"build":false,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.607,"build":true,"passed":false},"cmp_hard_bay_window":{"status":"no_code","score":0.0,"build":false,"passed":false},"cmp_hard_drafting_table":{"status":"scored","score":0.5715,"build":true,"passed":false}}},"harness:api-agent:gemini:gemini-3.7-flash":{"n":8,"eval":8,"dropped":0,"mean":0.6249,"median":0.7,"pass":2,"build":8,"gen_usd":19.273,"judge_usd":0.908,"min_per_run":38.6,"cells":{"cmp_med_dining_chair":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_med_toaster":{"status":"scored","score":0.8095,"build":true,"passed":true},"cmp_hard_coffee_grinder":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_garden_arch":{"status":"scored","score":0.923,"build":true,"passed":true},"cmp_hard_violin":{"status":"scored","score":0.207,"build":true,"passed":false},"cmp_hard_bonsai_rock":{"status":"scored","score":0.587,"build":true,"passed":false},"cmp_hard_bay_window":{"status":"scored","score":0.7,"build":true,"passed":false},"cmp_hard_drafting_table":{"status":"scored","score":0.373,"build":true,"passed":false}}}}},"paired":[{"label":"harness+flash \u2212 one-shot flash","n":8,"delta":0.4006,"sd":0.2764,"se":0.0977,"t":4.1,"ci":[0.2091,0.5921],"wins":7,"losses":0,"ties":1,"p":0.0156,"separated":true,"cells":[{"id":"cmp_hard_bay_window","a":0.7,"b":0.495,"d":0.205},{"id":"cmp_hard_bonsai_rock","a":0.587,"b":0.0,"d":0.587},{"id":"cmp_hard_coffee_grinder","a":0.7,"b":0.0,"d":0.7},{"id":"cmp_hard_drafting_table","a":0.373,"b":0.0,"d":0.373},{"id":"cmp_hard_garden_arch","a":0.923,"b":0.6,"d":0.323},{"id":"cmp_hard_violin","a":0.207,"b":0.0,"d":0.207},{"id":"cmp_med_dining_chair","a":0.7,"b":0.7,"d":0.0},{"id":"cmp_med_toaster","a":0.809,"b":0.0,"d":0.809}]},{"label":"one-shot sol \u2212 terra","n":12,"delta":0.162,"sd":0.2757,"se":0.0796,"t":2.03,"ci":[0.006,0.318],"wins":8,"losses":3,"ties":1,"p":0.2266,"separated":true,"cells":[{"id":"cmp_hard_bay_window","a":0.6,"b":0.6,"d":0.0},{"id":"cmp_hard_bonsai_rock","a":0.67,"b":0.7,"d":-0.03},{"id":"cmp_hard_coffee_grinder","a":0.6,"b":0.9,"d":-0.3},{"id":"cmp_hard_drafting_table","a":0.6,"b":0.0,"d":0.6},{"id":"cmp_hard_garden_arch","a":0.909,"b":0.502,"d":0.407},{"id":"cmp_hard_penny_farthing","a":0.6,"b":0.29,"d":0.309},{"id":"cmp_hard_seated_cat","a":0.47,"b":0.358,"d":0.112},{"id":"cmp_hard_telescope_tripod","a":0.545,"b":0.279,"d":0.267},{"id":"cmp_hard_violin","a":0.452,"b":0.0,"d":0.452},{"id":"cmp_med_dining_chair","a":0.585,"b":0.295,"d":0.289},{"id":"cmp_med_hand_drill","a":0.6,"b":0.516,"d":0.084},{"id":"cmp_med_toaster","a":0.6,"b":0.846,"d":-0.246}]},{"label":"one-shot terra \u2212 luna","n":12,"delta":0.1517,"sd":0.3273,"se":0.0945,"t":1.61,"ci":[-0.0334,0.3369],"wins":5,"losses":6,"ties":1,"p":1.0,"separated":false,"cells":[{"id":"cmp_hard_bay_window","a":0.6,"b":0.409,"d":0.191},{"id":"cmp_hard_bonsai_rock","a":0.7,"b":0.273,"d":0.427},{"id":"cmp_hard_coffee_grinder","a":0.9,"b":0.0,"d":0.9},{"id":"cmp_hard_drafting_table","a":0.0,"b":0.0,"d":0.0},{"id":"cmp_hard_garden_arch","a":0.502,"b":0.522,"d":-0.02},{"id":"cmp_hard_penny_farthing","a":0.29,"b":0.0,"d":0.29},{"id":"cmp_hard_seated_cat","a":0.358,"b":0.367,"d":-0.01},{"id":"cmp_hard_telescope_tripod","a":0.279,"b":0.344,"d":-0.065},{"id":"cmp_hard_violin","a":0.0,"b":0.231,"d":-0.231},{"id":"cmp_med_dining_chair","a":0.295,"b":0.376,"d":-0.081},{"id":"cmp_med_hand_drill","a":0.516,"b":0.0,"d":0.516},{"id":"cmp_med_toaster","a":0.846,"b":0.945,"d":-0.099}]},{"label":"one-shot sol \u2212 luna","n":12,"delta":0.3137,"sd":0.2805,"se":0.081,"t":3.87,"ci":[0.155,0.4724],"wins":11,"losses":1,"ties":0,"p":0.0063,"separated":true,"cells":[{"id":"cmp_hard_bay_window","a":0.6,"b":0.409,"d":0.191},{"id":"cmp_hard_bonsai_rock","a":0.67,"b":0.273,"d":0.398},{"id":"cmp_hard_coffee_grinder","a":0.6,"b":0.0,"d":0.6},{"id":"cmp_hard_drafting_table","a":0.6,"b":0.0,"d":0.6},{"id":"cmp_hard_garden_arch","a":0.909,"b":0.522,"d":0.387},{"id":"cmp_hard_penny_farthing","a":0.6,"b":0.0,"d":0.6},{"id":"cmp_hard_seated_cat","a":0.47,"b":0.367,"d":0.102},{"id":"cmp_hard_telescope_tripod","a":0.545,"b":0.344,"d":0.202},{"id":"cmp_hard_violin","a":0.452,"b":0.231,"d":0.221},{"id":"cmp_med_dining_chair","a":0.585,"b":0.376,"d":0.209},{"id":"cmp_med_hand_drill","a":0.6,"b":0.0,"d":0.6},{"id":"cmp_med_toaster","a":0.6,"b":0.945,"d":-0.345}]},{"label":"harness lift on codex sol","n":11,"delta":0.1549,"sd":0.2097,"se":0.0632,"t":2.45,"ci":[0.0309,0.2788],"wins":8,"losses":2,"ties":1,"p":0.1094,"separated":true,"cells":[{"id":"cmp_hard_bay_window","a":0.963,"b":0.6,"d":0.363},{"id":"cmp_hard_bonsai_rock","a":0.7,"b":0.67,"d":0.03},{"id":"cmp_hard_coffee_grinder","a":0.98,"b":0.6,"d":0.38},{"id":"cmp_hard_drafting_table","a":0.6,"b":0.6,"d":0.0},{"id":"cmp_hard_garden_arch","a":0.948,"b":0.909,"d":0.038},{"id":"cmp_hard_penny_farthing","a":0.973,"b":0.6,"d":0.373},{"id":"cmp_hard_seated_cat","a":0.599,"b":0.47,"d":0.129},{"id":"cmp_hard_telescope_tripod","a":0.413,"b":0.545,"d":-0.132},{"id":"cmp_hard_violin","a":0.303,"b":0.452,"d":-0.149},{"id":"cmp_med_dining_chair","a":0.869,"b":0.585,"d":0.284},{"id":"cmp_med_toaster","a":0.987,"b":0.6,"d":0.387}]},{"label":"harness lift on codex terra","n":11,"delta":0.1908,"sd":0.3003,"se":0.0905,"t":2.11,"ci":[0.0133,0.3682],"wins":8,"losses":2,"ties":1,"p":0.1094,"separated":true,"cells":[{"id":"cmp_hard_bay_window","a":0.7,"b":0.6,"d":0.1},{"id":"cmp_hard_bonsai_rock","a":0.7,"b":0.7,"d":0.0},{"id":"cmp_hard_coffee_grinder","a":0.6,"b":0.9,"d":-0.3},{"id":"cmp_hard_drafting_table","a":0.509,"b":0.0,"d":0.509},{"id":"cmp_hard_garden_arch","a":0.6,"b":0.502,"d":0.098},{"id":"cmp_hard_penny_farthing","a":0.957,"b":0.29,"d":0.666},{"id":"cmp_hard_seated_cat","a":0.469,"b":0.358,"d":0.111},{"id":"cmp_hard_violin","a":0.596,"b":0.0,"d":0.596},{"id":"cmp_med_dining_chair","a":0.6,"b":0.295,"d":0.304},{"id":"cmp_med_hand_drill","a":0.402,"b":0.516,"d":-0.114},{"id":"cmp_med_toaster","a":0.976,"b":0.846,"d":0.13}]},{"label":"harness lift on codex luna","n":10,"delta":0.2907,"sd":0.2418,"se":0.0764,"t":3.8,"ci":[0.1409,0.4405],"wins":10,"losses":0,"ties":0,"p":0.002,"separated":true,"cells":[{"id":"cmp_hard_bay_window","a":0.6,"b":0.409,"d":0.191},{"id":"cmp_hard_bonsai_rock","a":0.6,"b":0.273,"d":0.327},{"id":"cmp_hard_coffee_grinder","a":0.544,"b":0.0,"d":0.544},{"id":"cmp_hard_drafting_table","a":0.6,"b":0.0,"d":0.6},{"id":"cmp_hard_garden_arch","a":0.6,"b":0.522,"d":0.078},{"id":"cmp_hard_penny_farthing","a":0.7,"b":0.0,"d":0.7},{"id":"cmp_hard_telescope_tripod","a":0.492,"b":0.344,"d":0.149},{"id":"cmp_hard_violin","a":0.338,"b":0.231,"d":0.107},{"id":"cmp_med_dining_chair","a":0.581,"b":0.376,"d":0.205},{"id":"cmp_med_toaster","a":0.951,"b":0.945,"d":0.006}]},{"label":"harness+flash \u2212 one-shot codex sol","n":8,"delta":-0.002,"sd":0.1672,"se":0.0591,"t":-0.03,"ci":[-0.1178,0.1138],"wins":5,"losses":3,"ties":0,"p":0.7266,"separated":false,"cells":[{"id":"cmp_hard_bay_window","a":0.7,"b":0.6,"d":0.1},{"id":"cmp_hard_bonsai_rock","a":0.587,"b":0.67,"d":-0.083},{"id":"cmp_hard_coffee_grinder","a":0.7,"b":0.6,"d":0.1},{"id":"cmp_hard_drafting_table","a":0.373,"b":0.6,"d":-0.227},{"id":"cmp_hard_garden_arch","a":0.923,"b":0.909,"d":0.014},{"id":"cmp_hard_violin","a":0.207,"b":0.452,"d":-0.245},{"id":"cmp_med_dining_chair","a":0.7,"b":0.585,"d":0.115},{"id":"cmp_med_toaster","a":0.809,"b":0.6,"d":0.21}]},{"label":"harness+flash \u2212 one-shot claude-code","n":8,"delta":0.1526,"sd":0.2706,"se":0.0957,"t":1.6,"ci":[-0.0349,0.3401],"wins":5,"losses":2,"ties":1,"p":0.4531,"separated":false,"cells":[{"id":"cmp_hard_bay_window","a":0.7,"b":0.0,"d":0.7},{"id":"cmp_hard_bonsai_rock","a":0.587,"b":0.607,"d":-0.02},{"id":"cmp_hard_coffee_grinder","a":0.7,"b":0.6,"d":0.1},{"id":"cmp_hard_drafting_table","a":0.373,"b":0.572,"d":-0.199},{"id":"cmp_hard_garden_arch","a":0.923,"b":0.6,"d":0.323},{"id":"cmp_hard_violin","a":0.207,"b":0.0,"d":0.207},{"id":"cmp_med_dining_chair","a":0.7,"b":0.7,"d":0.0},{"id":"cmp_med_toaster","a":0.809,"b":0.7,"d":0.11}]},{"label":"harness+flash \u2212 harness+codex sol","n":8,"delta":-0.1688,"sd":0.0876,"se":0.031,"t":-5.45,"ci":[-0.2294,-0.1081],"wins":0,"losses":8,"ties":0,"p":0.0078,"separated":true,"cells":[{"id":"cmp_hard_bay_window","a":0.7,"b":0.963,"d":-0.263},{"id":"cmp_hard_bonsai_rock","a":0.587,"b":0.7,"d":-0.113},{"id":"cmp_hard_coffee_grinder","a":0.7,"b":0.98,"d":-0.28},{"id":"cmp_hard_drafting_table","a":0.373,"b":0.6,"d":-0.227},{"id":"cmp_hard_garden_arch","a":0.923,"b":0.948,"d":-0.025},{"id":"cmp_hard_violin","a":0.207,"b":0.303,"d":-0.096},{"id":"cmp_med_dining_chair","a":0.7,"b":0.869,"d":-0.169},{"id":"cmp_med_toaster","a":0.809,"b":0.987,"d":-0.177}]}]};
-const ARCH={"packages": {"agents": {"files": 15, "loc": 2844}, "cli": {"files": 14, "loc": 2834}, "contracts": {"files": 10, "loc": 1350}, "cost": {"files": 13, "loc": 2941}, "flywheel": {"files": 16, "loc": 3528}, "gallery": {"files": 16, "loc": 3225}, "judges": {"files": 15, "loc": 2717}, "languages": {"files": 46, "loc": 6539}, "models": {"files": 18, "loc": 3767}, "orchestrator": {"files": 6, "loc": 1254}, "prompts": {"files": 1, "loc": 43}, "reference": {"files": 11, "loc": 1244}, "skills": {"files": 12, "loc": 1933}, "spatial": {"files": 35, "loc": 7166}, "texturing": {"files": 12, "loc": 2580}, "tracks": {"files": 27, "loc": 7529}, "(top level)": {"files": 8, "loc": 1437}}, "totals": {"codeverse_files": 275, "codeverse_loc": 52931, "tests_files": 249, "tests_loc": 33466, "bench_files": 21, "bench_loc": 5194, "runtime_js_files": 34, "runtime_js_loc": 4033, "prompt_files": 40, "prompt_loc": 6557}, "commits": 181, "head": "0c2da2b"};
-</script>
-<script>
-(function(){
-const $ = s => document.querySelector(s);
-const el = (t,c,h) => { const n=document.createElement(t); if(c) n.className=c; if(h!=null) n.innerHTML=h; return n; };
-const f3 = v => (v==null?'—':(v>=0?'+':'')+v.toFixed(3));
-const p3 = v => (v==null?'—':v.toFixed(3));
-
-// ---------- stamps
-const stamp = `HEAD ${ARCH.head} · ${ARCH.commits} commits · ${ARCH.totals.codeverse_files} modules / ${ARCH.totals.codeverse_loc.toLocaleString()} lines · 2642 offline tests · generated 2026-08-24, updated 2026-08-26`;
-$('#stamp').textContent = stamp;
-$('#railstamp').innerHTML = `HEAD ${ARCH.head}<br>${ARCH.commits} commits<br>2642 tests green`;
-$('#foot').textContent = `Generated from bench/out/*/results.jsonl at HEAD ${ARCH.head}. Every figure is recomputed from the recorded cells, not transcribed.`;
-
-// ---------- verdict cards
-const P = {}; DATA.paired.forEach(r => P[r.label] = r);
-const grade = r => !r ? 'null' : (r.separated && r.p < 0.05 ? 'good' : (r.separated ? 'warn' : 'null'));
-const cards = [
- ['harness+flash − one-shot flash', 'The harness is worth this much', 'on the same model, hard prompts'],
- ['harness lift on codex luna', 'Lift on the weakest model', 'largest of the three tiers'],
- ['harness+flash − one-shot codex sol', 'Flash vs sol, paired', 'dead heat — the open goal'],
- ['harness+flash − harness+codex sol', 'Gap still to close', 'harness+sol over harness+flash'],
-];
-const vc = $('#verdictcards');
-cards.forEach(([k, title, sub]) => {
- const r = P[k]; if(!r) return;
- const g = grade(r);
- const c = el('div','vcard '+g);
- c.appendChild(el('div','k',title));
- c.appendChild(el('div','v',f3(r.delta)));
- c.appendChild(el('div','d',`${sub} · n=${r.n} · ${r.separated&&r.p<0.05?'separated from noise':(r.separated?'marginal':'not separated')}`));
- vc.appendChild(c);
-});
-
-// ---------- package map
-const PKGDESC = {
- 'spatial':'measurement, gates, renderers, MCP tool server',
- 'tracks':'per-track lifecycles, planner, brief, generation, detail pass',
- 'languages':'runtime/lint/skeleton/wrappers per target language',
- 'models':'ChatModel, key pool, retry, storm, health probe, pricing',
- 'flywheel':'dataset export, preference pairs, captions, index',
- 'gallery':'the local run gallery served on localhost',
- 'cost':'ledger, price provenance, budget guard, profiles',
- 'texturing':'text-to-image material pass for objects and scenes',
- 'judges':'rubrics, montage, scoring, caps, pairwise',
- 'agents':'CodingAgent implementations for the five CLI/API kinds',
- 'cli':'the 3dcv command surface',
- 'contracts':'typed, data-only, shared by every package',
- 'reference':'synthesized reference images + the plausibility gate',
- 'orchestrator':'round policy, candidates, fan-out, budget',
- 'prompts':'system prompts, per-language contracts and cookbooks',
- '(top level)':'conventions, workspace, events, proc, config, fanout',
-};
-const pk = Object.entries(ARCH.packages).sort((a,b)=>b[1].loc-a[1].loc);
-const maxloc = pk[0][1].loc;
-const pkgs = $('#pkgs');
-pk.forEach(([name,v]) => {
- const d = el('div','pkg');
- d.appendChild(el('div','n', name==='(top level)' ? 'codeverse/*.py' : 'codeverse/'+name+'/'));
- d.appendChild(el('div','m', `${v.files} files · ${v.loc.toLocaleString()} lines`));
- d.appendChild(el('div','d', PKGDESC[name] || ''));
- const w = el('div','barwrap'); const i = el('i'); i.style.width = (100*v.loc/maxloc)+'%'; w.appendChild(i); d.appendChild(w);
- pkgs.appendChild(d);
-});
-
-// ---------- scale table
-const T = ARCH.totals;
-const rows = [
- ['codeverse/ — the package', T.codeverse_files, T.codeverse_loc],
- ['tests/', T.tests_files, T.tests_loc],
- ['prompts (.j2 / .md)', T.prompt_files, T.prompt_loc],
- ['runtime_js/ (node side)', T.runtime_js_files, T.runtime_js_loc],
- ['bench/', T.bench_files, T.bench_loc],
-];
-const st = $('#scaletable');
-rows.forEach(([k,f,l]) => {
- const tr = el('tr');
- tr.appendChild(el('td','arm',k));
- tr.appendChild(el('td','num',String(f)));
- tr.appendChild(el('td','num',l.toLocaleString()));
- st.appendChild(tr);
-});
-{
- const tot = rows.reduce((a,r)=>a+r[2],0), totf = rows.reduce((a,r)=>a+r[1],0);
- const tr = el('tr'); tr.className='hl';
- tr.appendChild(el('td','arm','total'));
- tr.appendChild(el('td','num',String(totf)));
- tr.appendChild(el('td','num',tot.toLocaleString()));
- st.appendChild(tr);
-}
-
-// ---------- CI plot
-const ORDER = ['harness+flash − one-shot flash','one-shot sol − luna','harness lift on codex luna',
- 'harness+flash − harness+codex sol','harness lift on codex terra','one-shot sol − terra',
- 'harness lift on codex sol','one-shot terra − luna','harness+flash − one-shot claude-code',
- 'harness+flash − one-shot codex sol'];
-const shown = ORDER.map(k=>P[k]).filter(Boolean);
-const lo = Math.min(...shown.map(r=>r.ci[0])), hi = Math.max(...shown.map(r=>r.ci[1]));
-const pad = 0.06, LO = Math.min(lo,0)-pad, HI = Math.max(hi,0)+pad;
-const pct = v => ((v-LO)/(HI-LO))*100;
-const plot = $('#ciplot');
-const box = el('div','ci ' + 'g');
-box.className='ci'; box.style.display='block'; box.style.padding='18px 20px';
-shown.forEach(r => {
- const g = grade(r)==='good'?'g':(grade(r)==='warn'?'w':'n');
- const row = el('div','ci '+g);
- row.style.border='0'; row.style.padding='0'; row.style.background='transparent';
- row.appendChild(el('div','lbl', r.label.replace('−','&minus;')));
- const tr = el('div','track');
- const z = el('div','zero'); z.style.left = pct(0)+'%'; tr.appendChild(z);
- const b = el('div','bar'); b.style.left = pct(r.ci[0])+'%'; b.style.width = (pct(r.ci[1])-pct(r.ci[0]))+'%'; tr.appendChild(b);
- const pt = el('div','pt'); pt.style.left = pct(r.delta)+'%'; tr.appendChild(pt);
- row.appendChild(tr);
- row.appendChild(el('div','val', `<b>${f3(r.delta)}</b> &nbsp;n=${r.n} &nbsp;${r.wins}W/${r.losses}L`));
- box.appendChild(row);
-});
-plot.appendChild(box);
-const ax = el('div','axis');
-ax.appendChild(el('div','',''));
-const ticks = el('div','ticks');
-[LO, (LO+HI)/2, HI].forEach(v=>ticks.appendChild(el('span','',v.toFixed(2))));
-ax.appendChild(ticks); ax.appendChild(el('div','',''));
-plot.appendChild(ax);
-
-// ---------- stat table
-const stt = $('#stattable');
-shown.forEach(r => {
- const g = grade(r);
- const tr = el('tr');
- tr.appendChild(el('td','arm', r.label));
- tr.appendChild(el('td','num', String(r.n)));
- tr.appendChild(el('td','num', f3(r.delta)));
- tr.appendChild(el('td','num', `${f3(r.ci[0])} … ${f3(r.ci[1])}`));
- tr.appendChild(el('td','num', (r.t>=0?'+':'')+r.t.toFixed(2)));
- tr.appendChild(el('td','num', `${r.wins}/${r.losses}/${r.ties}`));
- tr.appendChild(el('td','num', r.p.toFixed(3)));
- const label = g==='good'?'solid':(g==='warn'?'marginal':'not separated');
- tr.appendChild(el('td','', `<span class="chip ${g}">${label}</span>`));
- stt.appendChild(tr);
-});
-
-// ---------- arm tables
-const BATT = [
- ['compare_v2_full','compare_v2 — 8 hard/medium prompts, blender'],
- ['codex_tiers_v3','compare_v3 — 12 prompts, the codex tier matrix'],
- ['compare_v1_full','compare_v1 — 8 prompts, the original harness-vs-one-shot battery'],
-];
-const at = $('#armtables');
-BATT.forEach(([key,title]) => {
- const arms = DATA.batteries[key]; if(!arms) return;
- at.appendChild(el('h4','',title));
- const sc = el('div','scroll');
- const tb = el('table');
- tb.innerHTML = '<thead><tr><th>Arm</th><th class="num">n</th><th class="num">eval</th><th class="num">drop</th>'+
- '<th class="num">mean</th><th class="num">median</th><th class="num">pass</th><th class="num">build</th>'+
- '<th class="num">$gen</th><th class="num">min/run</th></tr></thead>';
- const body = el('tbody');
- Object.entries(arms).filter(([,g])=>g.eval>0).sort((a,b)=>(b[1].mean??-1)-(a[1].mean??-1)).forEach(([a,g])=>{
- const tr = el('tr');
- if(a.startsWith('harness:api-agent:gemini')) tr.className='hl';
- tr.appendChild(el('td','arm',a));
- tr.appendChild(el('td','num',String(g.n)));
- tr.appendChild(el('td','num',String(g.eval)));
- tr.appendChild(el('td','num', g.dropped? String(g.dropped):'·'));
- tr.appendChild(el('td','num', p3(g.mean)));
- tr.appendChild(el('td','num', p3(g.median)));
- tr.appendChild(el('td','num', `${g.pass}/${g.eval}`));
- tr.appendChild(el('td','num', `${g.build}/${g.eval}`));
- tr.appendChild(el('td','num', '$'+g.gen_usd.toFixed(2)));
- tr.appendChild(el('td','num', g.min_per_run.toFixed(0)));
- body.appendChild(tr);
- });
- tb.appendChild(body); sc.appendChild(tb); at.appendChild(sc);
-});
-
-// ---------- per-cell table for compare_v2
-const v2 = DATA.batteries['compare_v2_full'];
-if(v2){
- const H='harness:api-agent:gemini:gemini-3.7-flash', O='oneshot:gemini:gemini-3.7-flash',
- C='oneshot:claude-code', X='oneshot:codex';
- const ids = Object.keys(v2[H].cells).sort();
- const sc = el('div','scroll'); const tb = el('table');
- tb.innerHTML = '<thead><tr><th>Prompt</th><th class="num">harness+flash</th><th class="num">one-shot flash</th>'+
- '<th class="num">Δ</th><th class="num">one-shot codex</th><th class="num">one-shot claude-code</th></tr></thead>';
- const body = el('tbody');
- const cell = (arm,id) => { const a = v2[arm] && v2[arm].cells[id]; if(!a) return null; return a; };
- ids.forEach(id=>{
- const h=cell(H,id), o=cell(O,id), x=cell(X,id), c=cell(C,id);
- const tr = el('tr');
- tr.appendChild(el('td','arm', id.replace('cmp_','')));
- const sfmt = a => a==null ? '—' : (a.score==null ? `<span class="chip mute">${a.status}</span>` : a.score.toFixed(3));
- tr.appendChild(el('td','num', sfmt(h)));
- tr.appendChild(el('td','num', sfmt(o)));
- const d = (h&&o&&h.score!=null&&o.score!=null) ? h.score-o.score : null;
- const dt = el('td','num', d==null?'—':f3(d));
- if(d!=null && d>0.02) dt.style.color='var(--good)';
- if(d!=null && d<-0.02) dt.style.color='var(--null)';
- tr.appendChild(dt);
- tr.appendChild(el('td','num', sfmt(x)));
- tr.appendChild(el('td','num', sfmt(c)));
- body.appendChild(tr);
- });
- tb.appendChild(body); sc.appendChild(tb); $('#celltable').appendChild(sc);
-}
-
-// ---------- severity cards
-const SEV = [['crash',8,'null'],['wrong-result',19,'null'],['data-loss',2,'null'],['hang',2,'warn'],['usability',10,'warn'],['style',1,'mute']];
-const sv = $('#sevcards');
-SEV.forEach(([k,v,tone])=>{
- const c = el('div','sevc');
- c.style.setProperty('--tone', tone==='null'?'var(--null)':(tone==='warn'?'var(--warn)':'var(--ink-3)'));
- c.appendChild(el('div','v',String(v)));
- c.appendChild(el('div','k',k));
- sv.appendChild(c);
-});
-})();
-</script>
diff --git a/harness/docs/teaser.html b/harness/docs/teaser.html
deleted file mode 100644
index d34e90a2..00000000
--- a/harness/docs/teaser.html
+++ /dev/null
@@ -1,666 +0,0 @@
-<!doctype html>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width,initial-scale=1">
-<title>3dcodeverse — teaser</title>
-<style>
-:root{
- --bg:#08090c; --bg2:#0d0f14; --surface:#11141a; --line:#1e222c; --line2:#2a3040;
- --fg:#e7e9ef; --dim:#98a0b0; --dim2:#6b7385;
- --amber:#f2a94b; --cyan:#5ed2e4; --green:#6fd08c; --pink:#ff5fa8;
- --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
- --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;
-}
-*{box-sizing:border-box}
-html{scroll-behavior:smooth}
-body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.6 var(--sans);
- -webkit-font-smoothing:antialiased;overflow-x:hidden}
-img{max-width:100%;display:block}
-code{font-family:var(--mono);font-size:.85em;color:var(--cyan)}
-a{color:var(--amber)}
-.wrap{max-width:1240px;margin:0 auto;padding:0 28px}
-
-/* ---- nav ---- */
-nav{position:sticky;top:0;z-index:40;background:rgba(8,9,12,.86);
- backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
-nav .wrap{display:flex;align-items:center;gap:26px;height:54px}
-nav .mark{font-weight:800;letter-spacing:-.03em;font-size:15px}
-nav .mark i{color:var(--amber);font-style:normal}
-nav a{color:var(--dim);text-decoration:none;font:500 12.5px/1 var(--mono);
- letter-spacing:.06em;text-transform:uppercase}
-nav a:hover{color:var(--fg)}
-nav .sp{flex:1}
-
-/* ---- masthead ---- */
-header{padding:96px 0 56px;position:relative;overflow:hidden}
-header::before{content:"";position:absolute;inset:-40% -20% auto -20%;height:120%;
- background:radial-gradient(60% 60% at 30% 0%,rgba(242,169,75,.13),transparent 70%),
- radial-gradient(50% 50% at 80% 20%,rgba(94,210,228,.10),transparent 70%);
- pointer-events:none}
-header .wrap{position:relative}
-h1{margin:0;font-size:clamp(44px,7.4vw,96px);line-height:.94;letter-spacing:-.045em;
- font-weight:820}
-h1 em{font-style:normal;color:var(--amber)}
-.kicker{font:600 12px/1 var(--mono);letter-spacing:.22em;text-transform:uppercase;
- color:var(--dim2);margin:0 0 22px}
-.lede{max-width:66ch;margin:26px 0 0;font-size:19px;color:var(--dim)}
-.lede b{color:var(--fg);font-weight:600}
-.stats{display:flex;flex-wrap:wrap;gap:0;margin:44px 0 0;border-top:1px solid var(--line);
- border-bottom:1px solid var(--line)}
-.stats div{flex:1 1 130px;padding:18px 22px 16px;border-right:1px solid var(--line)}
-.stats div:last-child{border-right:0}
-.stats b{display:block;font-size:30px;font-weight:750;letter-spacing:-.03em}
-.stats span{font:500 11px/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--dim2)}
-
-/* ---- sections ---- */
-section{padding:76px 0 8px}
-.shead{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;
- border-top:1px solid var(--line2);padding-top:20px;margin-bottom:34px}
-.shead h2{margin:0;font-size:30px;letter-spacing:-.03em;font-weight:760}
-.shead p{margin:0;color:var(--dim2);font:500 12px/1.5 var(--mono);letter-spacing:.06em;
- text-transform:uppercase}
-.shead .num{font:700 12px/1 var(--mono);color:var(--amber);letter-spacing:.14em}
-
-/* ---- cards ---- */
-.card{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(0,1fr);gap:36px;
- padding:34px 0 40px;border-bottom:1px solid var(--line)}
-.card:last-child{border-bottom:0}
-.card-body h3{margin:0 0 12px;font-size:25px;letter-spacing:-.025em;font-weight:720}
-.chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
-.chip{font:600 11px/1 var(--mono);letter-spacing:.05em;padding:6px 9px;border-radius:3px;
- background:#161a22;border:1px solid var(--line2);color:var(--cyan)}
-.chip.warn{color:var(--amber);border-color:#3a2f1c;background:#1a1610}
-.verdict{display:inline-flex;align-items:center;gap:10px;margin-bottom:16px;
- font:700 11px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;
- padding:7px 11px;border-radius:3px}
-.verdict.ok{background:rgba(111,208,140,.10);color:var(--green);border:1px solid rgba(111,208,140,.3)}
-.verdict.mid{background:rgba(242,169,75,.10);color:var(--amber);border:1px solid rgba(242,169,75,.32)}
-.verdict .score{color:var(--dim2);letter-spacing:.08em;font-weight:500}
-.note{color:var(--dim);font-size:15px;margin:0 0 18px}
-.note b{color:var(--fg)}
-details.prompt{margin:0 0 18px;border-left:2px solid var(--line2);padding-left:14px}
-details.prompt summary{cursor:pointer;font:600 11px/1 var(--mono);letter-spacing:.14em;
- text-transform:uppercase;color:var(--dim2);list-style:none}
-details.prompt summary::-webkit-details-marker{display:none}
-details.prompt summary::before{content:"▸ ";color:var(--amber)}
-details.prompt[open] summary::before{content:"▾ "}
-details.prompt p{margin:12px 0 2px;font-size:14px;color:var(--dim);font-style:italic}
-dl.meta{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:13px 26px;
- border-top:1px solid var(--line);padding-top:14px}
-dl.meta div{min-width:0}
-dl.meta dt{font:600 10px/1.6 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--dim2)}
-dl.meta dd{margin:0;font:500 11.8px/1.6 var(--mono);color:var(--dim);
- word-break:normal;overflow-wrap:anywhere}
-
-/* ---- viewer ---- */
-.viewer{position:sticky;top:74px}
-.tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
-.tab{font:600 10.5px/1 var(--mono);letter-spacing:.09em;text-transform:uppercase;
- padding:8px 11px;border-radius:3px;border:1px solid var(--line2);background:transparent;
- color:var(--dim2);cursor:pointer;transition:.14s}
-.tab:hover{color:var(--fg);border-color:#3a4356}
-.tab.on{background:var(--fg);color:#0a0b0e;border-color:var(--fg)}
-.stage{background:var(--bg2);border:1px solid var(--line);border-radius:5px;overflow:hidden}
-.pane{margin:0;display:none}
-.pane.on{display:block}
-.pane img{width:100%;cursor:zoom-in}
-
-/* ---- scene shots ---- */
-.shots{display:grid;grid-template-columns:1fr 1fr;gap:10px}
-.shots .shot:first-child,.shots .shot:nth-child(2){grid-column:span 1}
-.shot{margin:0;background:var(--bg2);border:1px solid var(--line);border-radius:5px;overflow:hidden}
-.shot img{width:100%;cursor:zoom-in}
-.shot figcaption{font:600 10.5px/1.5 var(--mono);letter-spacing:.06em;color:var(--dim2);
- padding:8px 10px;border-top:1px solid var(--line)}
-details.sheetwrap{margin-top:12px}
-details.sheetwrap summary{cursor:pointer;font:600 10.5px/1 var(--mono);letter-spacing:.12em;
- text-transform:uppercase;color:var(--dim2);padding:9px 0}
-details.sheetwrap img{border:1px solid var(--line);border-radius:5px;margin-top:8px}
-
-/* ---- lead ---- */
-.lead{border:1px solid var(--line2);border-radius:8px;background:
- linear-gradient(180deg,rgba(242,169,75,.045),transparent 40%);padding:0 30px}
-.lead .card{border-bottom:0}
-.lead-tag{font:700 11px/1 var(--mono);letter-spacing:.22em;text-transform:uppercase;
- color:var(--amber);padding:22px 0 0}
-
-/* ---- multi-language panel ---- */
-#multilang{background:
- radial-gradient(70% 100% at 50% 0%,rgba(94,210,228,.07),transparent 70%),var(--bg2);
- border-top:1px solid var(--line2);border-bottom:1px solid var(--line2);
- margin-top:70px;padding:70px 0 78px}
-.pipe{display:flex;align-items:stretch;gap:0;flex-wrap:wrap;margin:30px 0 46px;
- border:1px solid var(--line2);border-radius:6px;overflow:hidden}
-.pipe .step{flex:1 1 200px;padding:20px 22px;border-right:1px solid var(--line2);
- background:var(--surface)}
-.pipe .step:last-child{border-right:0}
-.pipe .n{font:700 10px/1 var(--mono);letter-spacing:.2em;color:var(--amber);display:block;margin-bottom:9px}
-.pipe .step h5{margin:0 0 6px;font-size:15px;font-weight:680;letter-spacing:-.01em}
-.pipe .step p{margin:0;font-size:13px;color:var(--dim2);line-height:1.55}
-.pipe .step code{font-size:11.5px}
-.assets{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
-.asset{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:14px}
-.asset.caveat{border-color:#3a2f1c;background:#14110d}
-.asset-pics{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}
-.asset-pics img{background:#0a0b0e;border-radius:4px;cursor:zoom-in}
-.asset h4{margin:0 0 8px;font-size:15px;font-weight:700;letter-spacing:-.01em;
- display:flex;flex-wrap:wrap;gap:8px;align-items:center}
-.pill{font:600 9.5px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;
- padding:4px 7px;border-radius:3px}
-.pill.ok{background:rgba(111,208,140,.12);color:var(--green)}
-.pill.warn{background:rgba(242,169,75,.14);color:var(--amber)}
-.asset p{margin:0 0 12px;font-size:13.5px;color:var(--dim);line-height:1.55}
-ul.files{list-style:none;margin:0;padding:10px 0 0;border-top:1px solid var(--line)}
-ul.files li{display:flex;gap:9px;font-size:11.5px;line-height:1.7;align-items:baseline}
-ul.files span{font:700 9.5px/1.7 var(--mono);letter-spacing:.1em;text-transform:uppercase;
- color:var(--dim2);min-width:26px}
-ul.files .kb{min-width:0;white-space:nowrap;text-transform:none;letter-spacing:0;
- font-weight:500;color:var(--dim2)}
-ul.files code{color:var(--dim);word-break:normal;overflow-wrap:anywhere;line-height:1.65}
-.inscene{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:34px}
-.inscene figure{margin:0;background:var(--surface);border:1px solid var(--line);
- border-radius:6px;overflow:hidden}
-.inscene img{cursor:zoom-in}
-.inscene figcaption{padding:12px 14px;font-size:13px;color:var(--dim);line-height:1.5}
-.inscene figcaption b{display:block;font:700 10px/1.6 var(--mono);letter-spacing:.12em;
- text-transform:uppercase;color:var(--cyan);margin-bottom:4px}
-.caveatbox{margin-top:30px;border-left:2px solid var(--amber);padding:4px 0 4px 18px;
- color:var(--dim);font-size:14.5px;max-width:82ch}
-.caveatbox b{color:var(--amber)}
-
-/* ---- footer ---- */
-footer{border-top:1px solid var(--line2);margin-top:78px;padding:56px 0 90px;color:var(--dim2)}
-footer h4{margin:0 0 12px;font-size:16px;color:var(--fg);font-weight:700}
-.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:38px}
-footer ul{margin:0;padding-left:18px;font-size:14px;line-height:1.75}
-footer li b{color:var(--dim)}
-footer p{font-size:14px;line-height:1.7;margin:0 0 12px}
-footer pre{background:var(--surface);border:1px solid var(--line);border-radius:5px;
- padding:13px 15px;overflow-x:auto;font-family:var(--mono);font-size:12px;color:var(--dim)}
-
-/* ---- lightbox ---- */
-#lb{position:fixed;inset:0;z-index:100;background:rgba(5,6,8,.96);display:none;
- align-items:center;justify-content:center;padding:26px;cursor:zoom-out}
-#lb.on{display:flex}
-#lb img{max-width:100%;max-height:100%;object-fit:contain;border-radius:4px}
-
-@media(max-width:920px){
- .card{grid-template-columns:1fr;gap:22px}
- .viewer{position:static}
- .wrap{padding:0 18px}
- .lead{padding:0 16px}
- header{padding:60px 0 40px}
-}
-</style>
-
-<nav><div class="wrap">
- <span class="mark">3dcodeverse<i>.</i></span>
- <a href="#multilang">multi-language</a>
- <a href="#static">objects</a>
- <a href="#artic">articulated</a>
- <a href="#scenes">scenes</a>
- <a href="#gfx">graphics</a>
- <span class="sp"></span>
- <a href="#notes">what is not here</a>
-</div></nav>
-<header><div class="wrap">
- <p class="kicker">a language model writes the code · the harness builds, measures and renders it</p>
- <h1>Fifteen things<br>made out of <em>raw 3D code</em>.</h1>
- <p class="lede">No mesh generator, no asset store, no SDK. Every artefact on this page is a model writing
- <b>ordinary source</b> — Blender <code>bpy</code>, CadQuery, three.js, URDF, GLSL, Python OpenGL — into a
- workspace with spatial tools, then looking at its own renders and fixing what it sees. The harness owns the
- build, the gates, the eight canonical cameras and the judge. <b>Every caption below is honest about what is
- still wrong.</b></p>
- <div class="stats">
- <div><b>15</b><span>artefacts shown</span></div>
- <div><b>6</b><span>languages</span></div>
- <div><b>4</b><span>tracks</span></div>
- <div><b>2</b><span>generators</span></div>
- <div><b>1</b><span>scene proving bpy → GLB → three.js</span></div>
- </div>
-</div></header>
-<div class="wrap"><div class="lead"><p class="lead-tag">the lead</p>
-
-<article class="card" id="c-penny">
- <div class="card-media"><div class="viewer" data-card="penny"><div class="tabs"><button class="tab on" data-t="penny-0">hero · left elevation</button><button class="tab" data-t="penny-1">turntable · 36 frames</button><button class="tab" data-t="penny-2">8 canonical views</button></div><div class="stage"><figure class="pane on" id="penny-0"><img src="../bench/out/teaser/site/media/penny_farthing.jpg" alt="hero · left elevation" loading="lazy"></figure><figure class="pane" id="penny-1"><img data-src="../bench/out/teaser/site/media/tt_penny_farthing.gif" alt="turntable · 36 frames" loading="lazy"></figure><figure class="pane" id="penny-2"><img src="../bench/out/teaser/site/media/penny_farthing_sheet.jpg" alt="8 canonical views" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Penny-farthing</h3>
- <div class="chips"><span class="chip">Blender · bpy</span></div>
- <span class="verdict ok"><b>reads</b><span class="score">judge 0.863</span></span>
- <details class="prompt"><summary>prompt</summary><p>a Victorian penny-farthing bicycle: a very tall spoked front wheel, a small rear wheel, a curved backbone frame, a sprung leather saddle above the front hub, pedals on the front hub, curved handlebars and polished brass fittings</p></details>
- <p class="note">Kept as the first run. The spoke web is pure line art and the silhouette reads instantly from all eight canonical views; both wheels sit on the ground, nothing floats or explodes. <b>Honest miss:</b> the saddle and grips came out fire-engine red instead of tan leather, so the promised black-lacquer / brass / leather trio reads black / brass / <i>red</i>. The text-to-image texture pass ran and was correctly <i>refused</i> (Δ overall −0.290, materials 0.7 → 0.2) — what you see is <code>object.glb</code> with the raw bpy materials.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>codex:gpt-5.6-sol</dd></div>
- <div><dt>run</dt><dd>2 rounds · 31 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_obj_penny_farthing</code></dd></div>
- </dl>
- </div>
-</article>
-</div></div>
-<section id="multilang"><div class="wrap">
- <div class="shead"><span class="num">01</span><h2>One scene, three languages</h2>
- <p>bpy → glb → three.js + glsl</p></div>
- <p class="lede" style="margin-top:-14px">This is the thing a single-language pipeline cannot show. Two hero props
- per scene are authored as <b>real Blender Python</b> in their own sub-workspace, with their own plan, their own
- agent session and their own eight-view review. The harness compiles each to <b>GLB</b>. A separate three.js
- session then loads those GLBs and composes them into a scene whose water, sky, sunbeams and particles are
- <b>hand-written GLSL</b>. Below: the assets alone, then the same assets inside the assembled frame.</p>
-
- <div class="pipe">
- <div class="step"><span class="n">01 · PYTHON</span><h5>Blender bpy</h5>
- <p>A per-asset agent session writes <code>bmesh</code> geometry and Principled BSDF materials in
- <code>_assets/&lt;name&gt;/src/model.py</code>, and reviews its own renders before finishing.</p></div>
- <div class="step"><span class="n">02 · BINARY</span><h5>GLB</h5>
- <p>The harness runs Blender headless, takes a census and exports
- <code>artifacts/object.glb</code>, then copies it to <code>public/assets/&lt;name&gt;.glb</code>.</p></div>
- <div class="step"><span class="n">03 · JAVASCRIPT</span><h5>three.js</h5>
- <p><code>src/scene.js</code> loads each GLB with <code>loaders.gltf.loadAsync</code> and the zone modules
- clone it into place beside procedural trees, bridges, benches and racks.</p></div>
- <div class="step"><span class="n">04 · GLSL</span><h5>Shaders</h5>
- <p>Raw vertex/fragment pairs in <code>src/shaders/</code> drive the pond, the sky and the volumetric
- sunbeams, each with a live <code>uTime</code> uniform the render rig samples at two times.</p></div>
- </div>
-
- <div class="assets">
-
-<div class="asset">
- <div class="asset-pics">
- <img src="../bench/out/teaser/site/media/asset_lantern.jpg" alt="StoneLantern" loading="lazy" class="still">
- <img data-src="../bench/out/teaser/site/media/tt_asset_lantern.gif" alt="StoneLantern turntable" loading="lazy" class="turn">
- </div>
- <h4>StoneLantern <span class="pill ok">in scene from the GLB</span></h4>
- <p>Carved granite, chamfered cap, pierced fire box, lotus plinth, moss-worn edges — the sculpted-stone case a stack of three.js primitives cannot fake.</p>
- <ul class="files">
- <li><span>bpy</span><code>_assets/stone_lantern/src/model.py</code></li>
- <li><span>glb</span><code>public/assets/stone_lantern.glb</code>&nbsp;<span class="kb">443&nbsp;KB</span></li>
- <li><span>js</span><code>src/assets/stone_lantern.js → loaders.gltf.loadAsync, cloned into 3 zones</code></li>
- </ul>
- <details class="sheetwrap"><summary>the object on its own · 8 views</summary>
- <img data-src="../bench/out/teaser/site/media/asset_lantern_sheet.jpg" alt="StoneLantern contact sheet" loading="lazy">
- </details>
-</div>
-
-<div class="asset">
- <div class="asset-pics">
- <img src="../bench/out/teaser/site/media/asset_censer.jpg" alt="BronzeCenser" loading="lazy" class="still">
- <img data-src="../bench/out/teaser/site/media/tt_asset_censer.gif" alt="BronzeCenser turntable" loading="lazy" class="turn">
- </div>
- <h4>BronzeCenser <span class="pill ok">in scene from the GLB</span></h4>
- <p>Three-legged cast bronze, domed pierced lid, two ring handles, relief band. The best single detail frame in the wave is this object lit by its own charcoal glow.</p>
- <ul class="files">
- <li><span>bpy</span><code>_assets/bronze_censer/src/model.py</code></li>
- <li><span>glb</span><code>public/assets/bronze_censer.glb</code>&nbsp;<span class="kb">367&nbsp;KB</span></li>
- <li><span>js</span><code>src/scene.js:12 assetFiles → cloned in src/zones/courtyard_veranda.js:32</code></li>
- </ul>
- <details class="sheetwrap"><summary>the object on its own · 8 views</summary>
- <img data-src="../bench/out/teaser/site/media/asset_censer_sheet.jpg" alt="BronzeCenser contact sheet" loading="lazy">
- </details>
-</div>
-
-<div class="asset">
- <div class="asset-pics">
- <img src="../bench/out/teaser/site/media/asset_stove.jpg" alt="PotbellyStove" loading="lazy" class="still">
- <img data-src="../bench/out/teaser/site/media/tt_asset_stove.gif" alt="PotbellyStove turntable" loading="lazy" class="turn">
- </div>
- <h4>PotbellyStove <span class="pill ok">in scene from the GLB</span></h4>
- <p>Bellied cast iron, bevelled door with a latch, claw feet, flue collar. In scene the flue runs to the roof and the door glows.</p>
- <ul class="files">
- <li><span>bpy</span><code>_assets/potbelly_stove/src/model.py</code></li>
- <li><span>glb</span><code>public/assets/potbelly_stove.glb</code>&nbsp;<span class="kb">131&nbsp;KB</span></li>
- <li><span>js</span><code>src/scene.js:12 assetFiles → cloned in src/zones/stove_corner.js:130</code></li>
- </ul>
- <details class="sheetwrap"><summary>the object on its own · 8 views</summary>
- <img data-src="../bench/out/teaser/site/media/asset_stove_sheet.jpg" alt="PotbellyStove contact sheet" loading="lazy">
- </details>
-</div>
-
-<div class="asset caveat">
- <div class="asset-pics">
- <img src="../bench/out/teaser/site/media/asset_skiff.jpg" alt="ClinkerSkiff" loading="lazy" class="still">
- <img data-src="../bench/out/teaser/site/media/tt_asset_skiff.gif" alt="ClinkerSkiff turntable" loading="lazy" class="turn">
- </div>
- <h4>ClinkerSkiff <span class="pill warn">GLB not used in scene</span></h4>
- <p>Lapstrake planking, visible ribs, bevelled stem, upturned on trestles. Real bpy, real GLB, and a good standalone object — but see the caveat below.</p>
- <ul class="files">
- <li><span>bpy</span><code>_assets/clinker_skiff/src/model.py</code></li>
- <li><span>glb</span><code>public/assets/clinker_skiff.glb</code>&nbsp;<span class="kb">400&nbsp;KB</span></li>
- <li><span>js</span><code>loaded into ctx.assets — but NOT used: the in-scene hull is procedural three.js</code></li>
- </ul>
- <details class="sheetwrap"><summary>the object on its own · 8 views</summary>
- <img data-src="../bench/out/teaser/site/media/asset_skiff_sheet.jpg" alt="ClinkerSkiff contact sheet" loading="lazy">
- </details>
-</div>
-</div>
-
- <div class="inscene">
- <figure><img src="../bench/out/teaser/site/media/temple_censer.jpg" alt="censer in scene" loading="lazy">
- <figcaption><b>Blender in the frame</b>The BronzeCenser GLB, lit by its own charcoal glow inside the
- three.js temple courtyard. Pierced dome, ring handles and relief band all survive the trip through
- glTF — the best single detail frame in the wave.</figcaption></figure>
- <figure><img src="../bench/out/teaser/site/media/temple_bridge.jpg" alt="pond shader" loading="lazy">
- <figcaption><b>GLSL in the frame</b>The custom pond <code>ShaderMaterial</code>
- (<code>src/shaders/water.js</code>, uniforms <code>uTime/uDeep/uShallow/uSunDir</code>) carrying the
- lantern flames as long warm reflection streaks, with three StoneLantern GLB instances along the path.
- </figcaption></figure>
- <figure><img src="../bench/out/teaser/site/media/boat_stove.jpg" alt="stove in scene" loading="lazy">
- <figcaption><b>Both at once</b>The PotbellyStove GLB in the workshop corner — bellied cast iron from bpy,
- the flue and the hot door glow from three.js, and the hazy shafts from
- <code>VolumetricSunbeamShader</code>.</figcaption></figure>
- </div>
-
- <p class="caveatbox"><b>Verified, and one caveat.</b> Nothing in the harness enforces asset kind, so this was
- checked by hand rather than trusted. In the temple, both heroes are genuine end to end:
- <code>plan.json → assets[].kind = blender_glb</code>, the GLBs exist, and
- <code>src/assets/stone_lantern.js</code> is a loader that <i>throws</i> if the GLB is missing. In the boat
- workshop, PotbellyStove is genuine — but <b>ClinkerSkiff is not</b>: the GLB is authored, compiled and still
- loaded at <code>src/scene.js:12</code>, yet <code>src/zones/central_bay.js:59</code> calls a
- <i>procedural</i> three.js rebuild that a refine round wrote over the asset slot, so the hull you see in the
- workshop frames is JavaScript, not Blender. The standalone skiff card above is the real bpy asset. Filed as a
- defect; the temple is the clean demonstration.</p>
-</div></section>
-<section id="static"><div class="wrap"><div class="shead"><span class="num">02</span><h2>Static objects</h2><p>blender · cadquery · three.js</p></div>
-
-<article class="card" id="c-arcade">
- <div class="card-media"><div class="viewer" data-card="arcade"><div class="tabs"><button class="tab on" data-t="arcade-0">hero · low front left</button><button class="tab" data-t="arcade-1">turntable</button><button class="tab" data-t="arcade-2">8 canonical views</button></div><div class="stage"><figure class="pane on" id="arcade-0"><img src="../bench/out/teaser/site/media/arcade.jpg" alt="hero · low front left" loading="lazy"></figure><figure class="pane" id="arcade-1"><img data-src="../bench/out/teaser/site/media/tt_arcade.gif" alt="turntable" loading="lazy"></figure><figure class="pane" id="arcade-2"><img src="../bench/out/teaser/site/media/arcade_sheet.jpg" alt="8 canonical views" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Arcade cabinet</h3>
- <div class="chips"><span class="chip">three.js</span></div>
- <span class="verdict ok"><b>reads</b><span class="score">judge 0.948</span></span>
- <details class="prompt"><summary>prompt</summary><p>an upright 1980s arcade cabinet: a sloped control panel with a ball-top joystick and six buttons, a recessed CRT screen behind a bezel, a glowing backlit marquee, a speaker grille, side art panels, a coin door and T-molding trim</p></details>
- <p class="note">Best card in the lane and it landed on the first try — no refine round, no re-run. Sloped panel with ball-top stick and six buttons, recessed CRT behind a bezel, backlit marquee, saturated pink/cyan side art, coin door, red T-molding down both cabinet edges. Poster-bright, and it reads at thumbnail size from every angle. <b>Nits:</b> the marquee and CRT are authored emissive but the shaded render rig draws them as flat bright colour rather than glowing, and the speaker holes do not resolve. The plain black back and top are correct for a real cabinet.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>1 round · 34 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_tjs_arcade_cabinet</code></dd></div>
- </dl>
- </div>
-</article>
-
-<article class="card" id="c-lighthouse">
- <div class="card-media"><div class="viewer" data-card="lighthouse"><div class="tabs"><button class="tab on" data-t="lighthouse-0">hero · low front left</button><button class="tab" data-t="lighthouse-1">turntable</button><button class="tab" data-t="lighthouse-2">8 canonical views</button></div><div class="stage"><figure class="pane on" id="lighthouse-0"><img src="../bench/out/teaser/site/media/lighthouse.jpg" alt="hero · low front left" loading="lazy"></figure><figure class="pane" id="lighthouse-1"><img data-src="../bench/out/teaser/site/media/tt_lighthouse.gif" alt="turntable" loading="lazy"></figure><figure class="pane" id="lighthouse-2"><img src="../bench/out/teaser/site/media/lighthouse_sheet.jpg" alt="8 canonical views" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Coastal lighthouse</h3>
- <div class="chips"><span class="chip">Blender · bpy</span><span class="chip">text-to-image texture</span></div>
- <span class="verdict ok"><b>reads</b><span class="score">judge 0.728</span></span>
- <details class="prompt"><summary>prompt</summary><p>a coastal lighthouse on a rock plinth: a tapered stone tower with painted bands, a corbelled gallery with a railing, a glazed lantern room with a fresnel lens and a domed copper roof with a weathervane, and a keeper's door at the base</p></details>
- <p class="note"><b>The only piece in the whole wave where <code>--texture</code> paid.</b> The generated <code>weathered_granite_rock</code> map on the stepped plinth cleared the ship gate at Δ +0.065, so this card is rendered from <code>object_textured.glb</code>. Tapered banded tower, corbelled gallery with a full baluster railing, a brass fresnel drum visible inside the glazed lantern room, verdigris copper dome with weathervane. <b>Nits:</b> the winning round shows two white bands where an earlier round had three, and the coral/white livery is a touch cartoonish.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>3 rounds · 51 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_obj_lighthouse</code></dd></div>
- </dl>
- </div>
-</article>
-
-<article class="card" id="c-gramophone">
- <div class="card-media"><div class="viewer" data-card="gramophone"><div class="tabs"><button class="tab on" data-t="gramophone-0">hero · front right ¾</button><button class="tab" data-t="gramophone-1">turntable</button><button class="tab" data-t="gramophone-2">8 canonical views</button></div><div class="stage"><figure class="pane on" id="gramophone-0"><img src="../bench/out/teaser/site/media/gramophone.jpg" alt="hero · front right ¾" loading="lazy"></figure><figure class="pane" id="gramophone-1"><img data-src="../bench/out/teaser/site/media/tt_gramophone.gif" alt="turntable" loading="lazy"></figure><figure class="pane" id="gramophone-2"><img src="../bench/out/teaser/site/media/gramophone_sheet.jpg" alt="8 canonical views" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Wind-up gramophone</h3>
- <div class="chips"><span class="chip">Blender · bpy</span></div>
- <span class="verdict ok"><b>reads</b><span class="score">judge 0.750</span></span>
- <details class="prompt"><summary>prompt</summary><p>an antique wind-up gramophone: a big flared brass horn on an elbow, an oak case with a felted turntable and a shellac record, a curved tonearm with a sound box, a crank handle on the side and turned feet</p></details>
- <p class="note">The horn flare is the reason this prompt was picked, and it delivered: a continuous specular sweep that travels across the bell as the turntable spins. Oak case with a moulded lip and four turned feet, green felt platter, black shellac record with a red centre label, curved tonearm with sound box, side crank — four distinct materials in one frame, and the horn does not intersect the case. <b>Nits:</b> the brass is a pale greenish gold rather than warm polished brass, and the case reads pine-pale rather than dark oak. Texture pass refused (Δ −0.371).</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>1 round · 48 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_obj_gramophone</code></dd></div>
- </dl>
- </div>
-</article>
-
-<article class="card" id="c-radial">
- <div class="card-media"><div class="viewer" data-card="radial"><div class="tabs"><button class="tab on" data-t="radial-0">hero · front right ¾</button><button class="tab" data-t="radial-1">turntable</button><button class="tab" data-t="radial-2">8 canonical views</button></div><div class="stage"><figure class="pane on" id="radial-0"><img src="../bench/out/teaser/site/media/radial.jpg" alt="hero · front right ¾" loading="lazy"></figure><figure class="pane" id="radial-1"><img data-src="../bench/out/teaser/site/media/tt_radial.gif" alt="turntable" loading="lazy"></figure><figure class="pane" id="radial-2"><img src="../bench/out/teaser/site/media/radial_sheet.jpg" alt="8 canonical views" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Radial aero engine</h3>
- <div class="chips"><span class="chip">CadQuery</span><span class="chip warn">second attempt</span></div>
- <span class="verdict mid"><b>usable</b><span class="score">judge 0.600</span></span>
- <details class="prompt"><summary>prompt</summary><p>a five-cylinder radial aero engine displayed on a low steel stand, in the correct museum orientation: ONE cylinder points straight UP at top dead centre and the other four are at 72 degree steps, so there is NO cylinder pointing straight down and the engine sits clear of the ground on its stand. A dark grey machined steel crankcase carries a bolted circular front cover and a splined propeller hub on the axis; each of the five barrels is a pale satin aluminium tube wrapped in evenly pitched square cooling fins, capped by a domed head with a black rocker cover; a slim brass pushrod tube lies flush along the front of each barrel from the crankcase to its rocker cover; a short polished steel exhaust stub leaves each head, all five swept the same way around the ring.</p></details>
- <p class="note"><b>Shown honestly as <i>usable</i>, not <i>reads</i>.</b> The first attempt scored the same 0.60 and was a broken picture — one barrel buried straight down through the ground plane, exhaust stubs reading as detached sticks, no stand, all grey. The sharpened re-run above added the museum orientation, an explicit stand, flush pushrods and a four-colour call-out, and now the star, the evenly-pitched fins, the black rocker covers and the splined prop hub all read from every view — <i>at the same judged score</i>. The remaining flaw is structural, not a bad draw: the CadQuery track's only material channel is <code>cq.Color(r,g,b)</code>, with no metalness, so the "polished steel" exhaust stubs render bone-white and the crankcase face is a flat grey disc.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>codex:gpt-5.6-sol</dd></div>
- <div><dt>run</dt><dd>3 rounds · 65 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_cad_radial_engine_v2</code></dd></div>
- </dl>
- </div>
-</article>
-
-<article class="card" id="c-chandelier">
- <div class="card-media"><div class="viewer" data-card="chandelier"><div class="tabs"><button class="tab on" data-t="chandelier-0">hero · front right ¾</button><button class="tab" data-t="chandelier-1">turntable</button><button class="tab" data-t="chandelier-2">8 canonical views</button></div><div class="stage"><figure class="pane on" id="chandelier-0"><img src="../bench/out/teaser/site/media/chandelier.jpg" alt="hero · front right ¾" loading="lazy"></figure><figure class="pane" id="chandelier-1"><img data-src="../bench/out/teaser/site/media/tt_chandelier.gif" alt="turntable" loading="lazy"></figure><figure class="pane" id="chandelier-2"><img src="../bench/out/teaser/site/media/chandelier_sheet.jpg" alt="8 canonical views" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Art-deco chandelier</h3>
- <div class="chips"><span class="chip">three.js</span><span class="chip warn">second attempt</span></div>
- <span class="verdict mid"><b>usable</b><span class="score">judge 0.600</span></span>
- <details class="prompt"><summary>prompt</summary><p>an art-deco brass chandelier dripping with cut crystal: a stepped brass ceiling canopy and a chain drop to a fluted central stem; two tiers of curved brass arms, six above and eight below, each ending in a frosted glass candle sleeve with a small tapered flame-tip finial; and hanging from the rim of BOTH tiers, in even concentric rings, more than forty stepped faceted crystal drops — long slender prisms with cut facets, each hanging free on its own short brass link so the whole lower half of the fixture reads as a curtain of glass; a fluted clear glass bowl at the crown under the stem.</p></details>
- <p class="note"><b>Shipped despite a lower score than the run it replaces</b> (0.60 against 0.841). The higher-scoring first attempt was a competent brass armature with plain white cylinder shades and <i>zero</i> hanging glass — none of the sparkle the prompt was chosen for. This re-run made the drops the dominant feature and now has real candle sleeves with flame-tip finials, a clear fluted crown bowl, two proper tiers of curved arms on rings, and visible hanging crystal. <b>Nits:</b> the drops read as pale thin icicles rather than a curtain of cut glass, and the arms look slightly flat and ribbon-like.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>4 rounds · 86 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_tjs_deco_chandelier_v2</code></dd></div>
- </dl>
- </div>
-</article>
-</div></section>
-<section id="artic"><div class="wrap"><div class="shead"><span class="num">03</span><h2>Articulated</h2><p>urdf + blender · joints that move</p></div>
-
-<article class="card" id="c-rollcab">
- <div class="card-media"><div class="viewer" data-card="rollcab"><div class="tabs"><button class="tab on" data-t="rollcab-0">hero · seven drawers cascaded</button><button class="tab" data-t="rollcab-1">joint sweep · 40 frames</button><button class="tab" data-t="rollcab-2">articulation sheet · every joint</button><button class="tab" data-t="rollcab-3">8 canonical views</button></div><div class="stage"><figure class="pane on" id="rollcab-0"><img src="../bench/out/teaser/site/media/rollcab.jpg" alt="hero · seven drawers cascaded" loading="lazy"></figure><figure class="pane" id="rollcab-1"><img data-src="../bench/out/teaser/site/media/tt_rollcab.gif" alt="joint sweep · 40 frames" loading="lazy"></figure><figure class="pane" id="rollcab-2"><img src="../bench/out/teaser/site/media/rollcab_art.jpg" alt="articulation sheet · every joint" loading="lazy"></figure><figure class="pane" id="rollcab-3"><img src="../bench/out/teaser/site/media/rollcab_sheet.jpg" alt="8 canonical views" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Rolling tool chest</h3>
- <div class="chips"><span class="chip">URDF</span><span class="chip">Blender · bpy</span></div>
- <span class="verdict ok"><b>reads</b><span class="score">judge 0.957</span></span>
- <details class="prompt"><summary>prompt</summary><p>a red steel rolling tool chest: seven drawers of three different heights on slides, full-width chrome pulls, a hinged top lid over a shallow tray, a push handle on one end and four castors</p></details>
- <p class="note">Passed at round zero, first try. Three materials genuinely separate — red carcass, chrome full-width pulls, black castors — and the articulation is the real prize: seven drawers on seven independent prismatic joints plus a hinged lid over a grey tray. The cascade still is the money shot the prompt was chosen for; it reads as <i>articulated</i> with no caption. <b>Honest miss the judge did not catch:</b> the brief asked for drawers in three distinct heights and they came out all the same height — <code>meshes/drawer1-6.glb</code> are byte-identical. Shipping <code>object.glb</code>, not the textured build: the texture pass painted one red powdercoat over all 28 parts including the chrome pulls and the castors, and shipped anyway on Δ 0.000.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>1 round · 31 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_art_roll_cabinet</code></dd></div>
- </dl>
- </div>
-</article>
-
-<article class="card" id="c-clock">
- <div class="card-media"><div class="viewer" data-card="clock"><div class="tabs"><button class="tab on" data-t="clock-0">hero · door open on the movement</button><button class="tab" data-t="clock-1">48-frame loop · pendulum, hands, door</button><button class="tab" data-t="clock-2">motion strip</button><button class="tab" data-t="clock-3">8 canonical views</button></div><div class="stage"><figure class="pane on" id="clock-0"><img src="../bench/out/teaser/site/media/clock.jpg" alt="hero · door open on the movement" loading="lazy"></figure><figure class="pane" id="clock-1"><img data-src="../bench/out/teaser/site/media/tt_clock.gif" alt="48-frame loop · pendulum, hands, door" loading="lazy"></figure><figure class="pane" id="clock-2"><img src="../bench/out/teaser/site/media/clock_strip.jpg" alt="motion strip" loading="lazy"></figure><figure class="pane" id="clock-3"><img src="../bench/out/teaser/site/media/clock_sheet.jpg" alt="8 canonical views" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Longcase clock</h3>
- <div class="chips"><span class="chip">URDF</span><span class="chip">Blender · bpy</span><span class="chip warn">second attempt</span></div>
- <span class="verdict ok"><b>reads</b><span class="score">judge 0.947</span></span>
- <details class="prompt"><summary>prompt</summary><p>a longcase grandfather clock in dark figured walnut with working articulation: a broken-arch bonnet with two turned finials over reeded columns, a warm brass dial with a silvered chapter ring and blued steel hour and minute hands, a glazed trunk door on brass hinges with CLEAR TRANSPARENT glass so the movement is visible through it, a long pendulum with a large polished brass lenticular bob swinging on a pivot, and two brass cylindrical driving weights hanging on either side of the pendulum inside the trunk, all on a stepped plinth base with bracket feet</p></details>
- <p class="note">The first attempt scored 0.600 and rendered the trunk door pane as an <i>opaque white panel</i>, hiding the pendulum and weights — the entire reason the prompt was picked. The re-run demanded base-colour alpha ≤ 0.25 on the glass, named the brass bob and weights, and asked for a stepped silhouette and four materials separated by <i>value</i>, not just hue. Now the movement is visible through the closed door, the door swings 90° onto it, the bob ticks left and right, and the hands turn on the silvered chapter ring. Round 1 also tightened the pendulum limits to ±0.09 rad, which fixed a round-0 flaw where the bob swung out <i>through</i> the case wall. <b>Nits:</b> the broken-arch crestings read as thin dark horns rather than crisp swan-neck mouldings, and the plinth front panel reads slightly as a hole. Shipping <code>object.glb</code> — the texture pass painted walnut burl over the brass dial <i>and</i> the transparent glass and shipped on Δ 0.000.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>2 rounds · 98 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_art_grandfather_clock_v2</code></dd></div>
- </dl>
- </div>
-</article>
-</div></section>
-<section id="scenes"><div class="wrap"><div class="shead"><span class="num">04</span><h2>Scenes</h2><p>three.js + glsl · authored cameras at two times</p></div>
-
-<article class="card" id="c-alley">
- <div class="card-media"><div class="shots"><figure class="shot"><img src="../bench/out/teaser/site/media/alley_a.jpg" alt="Establishing · t = 0 s" loading="lazy"><figcaption>Establishing · t = 0 s</figcaption></figure><figure class="shot"><img src="../bench/out/teaser/site/media/alley_b.jpg" alt="Establishing · t = 1.5 s" loading="lazy"><figcaption>Establishing · t = 1.5 s</figcaption></figure><figure class="shot"><img src="../bench/out/teaser/site/media/alley_low.jpg" alt="LowAngleReflections · the wet-asphalt mirror" loading="lazy"><figcaption>LowAngleReflections · the wet-asphalt mirror</figcaption></figure><figure class="shot"><img src="../bench/out/teaser/site/media/alley_sign.jpg" alt="SignDetail · emissive signage" loading="lazy"><figcaption>SignDetail · emissive signage</figcaption></figure></div><details class="sheetwrap"><summary>Contact sheet — all authored cameras, both times</summary><img data-src="../bench/out/teaser/site/media/alley_sheet.jpg" alt="contact sheet" loading="lazy"></details></div>
- <div class="card-body">
- <h3>Neon alley</h3>
- <div class="chips"><span class="chip">three.js</span><span class="chip">GLSL</span><span class="chip warn">second attempt</span></div>
- <span class="verdict ok"><b>reads</b><span class="score">judge 0.827</span></span>
- <details class="prompt"><summary>prompt</summary><p>a rain-soaked neon alley at night, seen down a narrow corridor between two TALL buildings whose walls fill the left and right thirds of the frame and rise out of the top of shot. MATERIALS AND LIGHTING ARE THE POINT: the ground is NEAR-BLACK wet asphalt (base colour 0x0a0c10, roughness 0.08-0.15, metalness 0.6) that acts as a MIRROR — every sign above is reflected in it as a sharp, vertically-stretched coloured streak … Rain is THIN BRIGHT VERTICAL STREAKS, not dots: draw it as LineSegments or as very narrow elongated quads about 0.4 m long and 0.01 m wide … NEVER render rain as square point sprites or large white squares.</p></details>
- <p class="note">The first attempt was only <i>usable</i>, and a scene census said why: <code>custom_materials</code> was empty — there was no wet-asphalt <code>ShaderMaterial</code> at all, so "every sign mirrored in the asphalt", the whole point of the prompt, never existed. The re-run spelled the material out numerically and the rain out geometrically. Round 0 then overshot into an 89 %-black frame at mean luminance 0.001; the refine loop pulled it back by round 4. The final frame is genuinely teaser-grade — near-black wet ground carrying long hot-pink and cyan reflection columns, rain as thin vertical streaks, a pixelated holo billboard. <b>Weaknesses:</b> the upper walls are a smooth washed lavender gradient with no surface detail, and the litter props are crude low-poly boxes.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>5 rounds · 75 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_scn_neon_alley_v2</code></dd></div>
- </dl>
- </div>
-</article>
-
-<article class="card" id="c-boat">
- <div class="card-media"><div class="shots"><figure class="shot"><img src="../bench/out/teaser/site/media/boat_a.jpg" alt="Establishing · t = 0 s" loading="lazy"><figcaption>Establishing · t = 0 s</figcaption></figure><figure class="shot"><img src="../bench/out/teaser/site/media/boat_b.jpg" alt="Establishing · t = 1.5 s" loading="lazy"><figcaption>Establishing · t = 1.5 s</figcaption></figure><figure class="shot"><img src="../bench/out/teaser/site/media/boat_bench.jpg" alt="WorkbenchEye · volumetric GLSL sunbeams" loading="lazy"><figcaption>WorkbenchEye · volumetric GLSL sunbeams</figcaption></figure><figure class="shot"><img src="../bench/out/teaser/site/media/boat_skiff.jpg" alt="SkiffDetail · the lapstrake hull" loading="lazy"><figcaption>SkiffDetail · the lapstrake hull</figcaption></figure><figure class="shot"><img src="../bench/out/teaser/site/media/boat_stove.jpg" alt="StoveCornerDetail · the Blender stove, in scene" loading="lazy"><figcaption>StoveCornerDetail · the Blender stove, in scene</figcaption></figure></div><details class="sheetwrap"><summary>Contact sheet — all authored cameras, both times</summary><img data-src="../bench/out/teaser/site/media/boat_sheet.jpg" alt="contact sheet" loading="lazy"></details></div>
- <div class="card-body">
- <h3>Boatbuilder's workshop</h3>
- <div class="chips"><span class="chip">three.js</span><span class="chip">GLSL</span><span class="chip">Blender · bpy</span><span class="chip warn">second attempt</span></div>
- <span class="verdict ok"><b>reads</b><span class="score">judge 0.747</span></span>
- <details class="prompt"><summary>prompt</summary><p>INSIDE a boatbuilder's workshop at dusk — a FULLY ENCLOSED INTERIOR. THE ENCLOSURE IS THE ENVIRONMENT AND MUST BE BUILT FIRST: a rectangular timber shed about 16 m x 10 m x 6 m high with FOUR SOLID WALLS … A GLSL shader makes the window sunbeams VOLUMETRIC — visible cones of hazy light crossing the room, brightest near the glass. Sawdust motes drifting in those beams must be FINE, SMALL and SOFT … NEVER render them as large opaque white squares.</p></details>
- <p class="note">A large win over the first attempt (0.465 → 0.747), and not a lighting fix: attempt one built an open-air truss frame standing in a <i>pine forest</i> under a flat red sky — no walls, no roof skin, trees inside the workshop. The scene planner's environment section is written for exteriors and treats interiors as a parenthetical, so the plan never contained walls and refining could not add them. Forcing the enclosure first produced the most complete scene in the wave: real interior, dusty window wall with cool blue dusk outside against warm raking sunbeams and stove glow, plank floor, timber stacks, tool racks, shavings. The sawdust motes render as soft additive sprites here, fixing the white-square particle bug that spoiled the first neon run. <b>Not shown:</b> a pack of 8 tileable textures (seam ≈ 0.0007) was generated for this scene and could not be wired in — a passed run refuses <code>resume</code> without <code>--force</code>, and <code>--force</code> re-plans and overwrites the passing artefact.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>4 rounds · 81 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_scn_boat_workshop_v2</code></dd></div>
- </dl>
- </div>
-</article>
-
-<article class="card" id="c-temple">
- <div class="card-media"><div class="shots"><figure class="shot"><img src="../bench/out/teaser/site/media/temple_a.jpg" alt="Establishing · t = 0 s" loading="lazy"><figcaption>Establishing · t = 0 s</figcaption></figure><figure class="shot"><img src="../bench/out/teaser/site/media/temple_b.jpg" alt="Establishing · t = 1.5 s" loading="lazy"><figcaption>Establishing · t = 1.5 s</figcaption></figure><figure class="shot"><img src="../bench/out/teaser/site/media/temple_censer.jpg" alt="CenserDetail · the Blender censer, in scene" loading="lazy"><figcaption>CenserDetail · the Blender censer, in scene</figcaption></figure><figure class="shot"><img src="../bench/out/teaser/site/media/temple_bridge.jpg" alt="BridgeEye · GLSL pond, lantern streaks" loading="lazy"><figcaption>BridgeEye · GLSL pond, lantern streaks</figcaption></figure></div><details class="sheetwrap"><summary>Contact sheet — all authored cameras, both times</summary><img data-src="../bench/out/teaser/site/media/temple_sheet.jpg" alt="contact sheet" loading="lazy"></details></div>
- <div class="card-body">
- <h3>Temple courtyard at night</h3>
- <div class="chips"><span class="chip">three.js</span><span class="chip">GLSL</span><span class="chip">Blender · bpy</span><span class="chip warn">second attempt</span></div>
- <span class="verdict mid"><b>usable</b><span class="score">judge 0.286</span></span>
- <details class="prompt"><summary>prompt</summary><p>a small temple courtyard on a koi pond at NIGHT — a deep indigo night (background 0x0b1026), lit ONLY by warm lantern flame … TWO HERO PROPS ARE AUTHORED IN BLENDER WITH bpy AND COMPILED TO GLB (asset kind blender_glb), then loaded into the three.js scene: (1) StoneLantern … (2) BronzeCenser … A custom GLSL water material is the HERO EFFECT and must be unmistakable: the pond is dark and highly reflective, with visible travelling ripples, the warm lantern lights reflected in it as long wobbling vertical streaks, and several koi visible moving under the surface.</p></details>
- <p class="note"><b>The clearest evidence in this wave that the judge cannot see what the picture is doing.</b> The first attempt scored <b>0.729</b> and "passed": a washed-out pale blue-grey courtyard that reads as snow at dawn, a flat grey pond, no ripples, no reflections, no koi. The light census for a scene specified as lit by stone lanterns was 1 ambient + 1 hemisphere + 2 directional + 10 point — the fill added to clear the frame-luminance floor was drowning the water shader, which had existed with a live time uniform the whole time. Re-prompting for dark granite, banning hemisphere light and promoting the water to hero effect produced the correct deep-indigo night, warm lantern pools, the pond finally reading as long warm reflection streaks, and the best single detail frame in the wave — and scored <b>0.286</b>. This card ships round 1 rather than the harness's best round 2, which scored marginally higher and lost the pond reflections. <b>Still honestly <i>usable</i>:</b> the paving is <i>still</i> pale lavender-white despite an explicit base-colour instruction, an unshaded white lamp sphere reads as a bug bottom-right, and the maple leaves render as flat red diamonds.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>codex:gpt-5.6-sol</dd></div>
- <div><dt>run</dt><dd>3 rounds · 85 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_scn_temple_night_v2</code></dd></div>
- </dl>
- </div>
-</article>
-</div></section>
-<section id="gfx"><div class="wrap"><div class="shead"><span class="num">05</span><h2>Graphics</h2><p>glsl fragment shaders · python opengl</p></div>
-
-<article class="card" id="c-aurora">
- <div class="card-media"><div class="viewer" data-card="aurora"><div class="tabs"><button class="tab on" data-t="aurora-0">t = 2.5 s</button><button class="tab" data-t="aurora-1">animated preview</button><button class="tab" data-t="aurora-2">frames at 0 / 1 / 2.5 / 4 / 6 s</button></div><div class="stage"><figure class="pane on" id="aurora-0"><img src="../bench/out/teaser/site/media/aurora.jpg" alt="t = 2.5 s" loading="lazy"></figure><figure class="pane" id="aurora-1"><img data-src="../bench/out/teaser/site/media/tt_aurora.gif" alt="animated preview" loading="lazy"></figure><figure class="pane" id="aurora-2"><img src="../bench/out/teaser/site/media/aurora_strip.jpg" alt="frames at 0 / 1 / 2.5 / 4 / 6 s" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Aurora over a ridge</h3>
- <div class="chips"><span class="chip">GLSL · fragment shader</span><span class="chip warn">third attempt</span></div>
- <span class="verdict ok"><b>reads</b><span class="score">judge 0.940</span></span>
- <details class="prompt"><summary>prompt</summary><p>an aurora over a snowy ridge on a black winter night, painted in three clean horizontal bands. TOP TWO THIRDS — the sky: near-black deep-blue, crowded with thousands of small crisp white stars, and across it hang layered aurora curtains made of many thin bright vertical rays … LOWER THIRD — the ridge: a single SOLID mountain silhouette, filled with ONE flat near-black colour and nothing else … no vertical stripes, no bars, no banding, no noise, no texture … BOTTOM FIFTH — the frozen lake: a smooth flat mirror below the ridge …</p></details>
- <p class="note">Third attempt, and the story is in what changed. Attempt one was a flat magenta wash over a speckle-noise ridge. Attempt two fixed the sky beautifully — emerald-to-violet rays, crisp stars, dark gaps — but drew the ridge as a barcode of vertical grey stripes mirrored into the lake; it looked like a rendering bug. Attempt three kept that sky language and added one paragraph specifying the ground as three named bands with the ridge as <i>one flat near-black fill</i>, plus a hard <code>--must</code> clause. That single instruction fixed it in one round. <b>Residue:</b> the star field is sparse, the lake band is a little muddy, and a faint horizontal band artifact survives in the lower third.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>1 round · 14 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_gfx_aurora_ridge_v3</code></dd></div>
- </dl>
- </div>
-</article>
-
-<article class="card" id="c-murmur">
- <div class="card-media"><div class="viewer" data-card="murmur"><div class="tabs"><button class="tab on" data-t="murmur-0">t = 1 s</button><button class="tab" data-t="murmur-1">animated preview</button><button class="tab" data-t="murmur-2">frames at 0 / 1 / 2.5 / 4 / 6 s</button></div><div class="stage"><figure class="pane on" id="murmur-0"><img src="../bench/out/teaser/site/media/murmur.jpg" alt="t = 1 s" loading="lazy"></figure><figure class="pane" id="murmur-1"><img data-src="../bench/out/teaser/site/media/tt_murmur.gif" alt="animated preview" loading="lazy"></figure><figure class="pane" id="murmur-2"><img src="../bench/out/teaser/site/media/murmur_strip.jpg" alt="frames at 0 / 1 / 2.5 / 4 / 6 s" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Starling murmuration</h3>
- <div class="chips"><span class="chip">Python · OpenGL</span><span class="chip">GLSL</span></div>
- <span class="verdict ok"><b>reads</b><span class="score">judge 0.865</span></span>
- <details class="prompt"><summary>prompt</summary><p>a starling murmuration at dusk: several thousand instanced birds flocking with cohesion, separation and alignment around a slowly moving attractor, their dark silhouettes thickening and thinning into shifting shapes against a graded orange to deep-blue sky, with a low dark treeline along the bottom edge</p></details>
- <p class="note">The frame strip is the proof: the flock genuinely morphs — a dense column at 0.75 s, spread wide and thinning at 3 s, re-tightening and drifting left by 5–6 s. That is real flocking, not a scrolling texture. Worth saying that the baseline round scored a hard <b>0.0</b> — a flat mauve frame with no birds at all — and the harness's own refine loop recovered it to 0.865 over three rounds with no intervention. <b>Weaknesses:</b> the nearer birds are chunky arrowheads rather than fine specks, the flock edge sprays individuals across the whole sky instead of holding a tight murmuration shape, and the bottom silhouette reads as a rocky ridge rather than the treeline asked for.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>4 rounds · 43 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_ogl_murmuration</code></dd></div>
- </dl>
- </div>
-</article>
-
-<article class="card" id="c-accretion">
- <div class="card-media"><div class="viewer" data-card="accretion"><div class="tabs"><button class="tab on" data-t="accretion-0">t = 2.5 s</button><button class="tab" data-t="accretion-1">animated preview</button><button class="tab" data-t="accretion-2">frames at 0 / 1 / 2.5 / 4 / 6 s</button></div><div class="stage"><figure class="pane on" id="accretion-0"><img src="../bench/out/teaser/site/media/accretion.jpg" alt="t = 2.5 s" loading="lazy"></figure><figure class="pane" id="accretion-1"><img data-src="../bench/out/teaser/site/media/tt_accretion.gif" alt="animated preview" loading="lazy"></figure><figure class="pane" id="accretion-2"><img src="../bench/out/teaser/site/media/accretion_strip.jpg" alt="frames at 0 / 1 / 2.5 / 4 / 6 s" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Accretion disc</h3>
- <div class="chips"><span class="chip">GLSL · fragment shader</span></div>
- <span class="verdict ok"><b>reads</b><span class="score">judge 0.753</span></span>
- <details class="prompt"><summary>prompt</summary><p>a black hole with a glowing accretion disc: a pure black sphere ringed by a thin bright photon ring, a hot orange-white disc of turbulent filaments orbiting it with the approaching side visibly brighter, the far side of the disc lensed up and over the shadow into an arc, and a star field warping near the edge</p></details>
- <p class="note">The most dramatic image in the wave, and it got there in one refine round (0.242 → 0.753). The far side of the disc is lensed up and over the shadow into a bright arc — the Gargantua geometry actually reads correctly, which is the hard part — and across the sample strip the filaments visibly shear and swirl. A follow-up run specifically to clean the background <i>did</i> deliver true black vacuum with stars, but flattened the composition into a symmetric halo, drew the stars as cheap four-point sparkles and left a grey band bisecting the black shadow, so this one ships. <b>Blemishes:</b> the background is a lavender-purple haze rather than black vacuum, and there is a faint grey smear in the top-left corner.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>2 rounds · 33 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_gfx_accretion_disc</code></dd></div>
- </dl>
- </div>
-</article>
-
-<article class="card" id="c-rain">
- <div class="card-media"><div class="viewer" data-card="rain"><div class="tabs"><button class="tab on" data-t="rain-0">t = 2.5 s</button><button class="tab" data-t="rain-1">animated preview</button><button class="tab" data-t="rain-2">frames at 0 / 1 / 2.5 / 4 / 6 s</button></div><div class="stage"><figure class="pane on" id="rain-0"><img src="../bench/out/teaser/site/media/rain.jpg" alt="t = 2.5 s" loading="lazy"></figure><figure class="pane" id="rain-1"><img data-src="../bench/out/teaser/site/media/tt_rain.gif" alt="animated preview" loading="lazy"></figure><figure class="pane" id="rain-2"><img src="../bench/out/teaser/site/media/rain_strip.jpg" alt="frames at 0 / 1 / 2.5 / 4 / 6 s" loading="lazy"></figure></div></div></div>
- <div class="card-body">
- <h3>Rain on a window</h3>
- <div class="chips"><span class="chip">GLSL · fragment shader</span></div>
- <span class="verdict mid"><b>usable</b><span class="score">judge 0.909</span></span>
- <details class="prompt"><summary>prompt</summary><p>raindrops running down a dark window in front of an out-of-focus neon city: each drop refracts a tiny inverted image of the lights behind it, drops grow until they break loose and cut clean trails downward, trails merge as they cross, the glass carries a fine mist between the drops and the city bokeh drifts slowly</p></details>
- <p class="note"><b>The highest score on this page that is not the best picture on this page</b> — shown as <i>usable</i> on purpose. It reads immediately as rain on a window over a neon city, the big drops genuinely refract tiny inverted images of the lights, and the bokeh drifts between frames. But the whole pane sits in a pale lavender-grey haze instead of the dark glass the brief asked for, the bokeh are washy blobs rather than tight light sources, and the trails do not read as clean streaks. Attractive but soft. Two re-runs to fix the contrast were both worse: pushing this model toward "dark / high-contrast / saturated" collapses it out of photographic softness into flat vector shapes — one attempt came back as cartoon confetti discs on black with no drops at all.</p>
- <dl class="meta">
- <div><dt>generator</dt><dd>api-agent:gemini:gemini-3.7-flash</dd></div>
- <div><dt>run</dt><dd>1 round · 7 min</dd></div>
- <div><dt>slug</dt><dd><code>tsr_gfx_rain_window</code></dd></div>
- </dl>
- </div>
-</article>
-</div></section>
-<footer id="notes"><div class="wrap">
- <div class="cols">
- <div>
- <h4>What is not on this page</h4>
- <ul>
- <li><b>Espresso portafilter (CadQuery)</b> — rated <i>no</i> and left out. Two attempts; the second is
- better geometry (the perforated basket resolves, the lugs became tabs) but the body is still flat
- white on stubby legs. The cause is structural: the CadQuery track's only material channel is
- <code>cq.Color(r,g,b)</code>, so "polished stainless" is unreachable by construction, and its texture
- pass produced zero textures. A third attempt would fail the same way.</li>
- <li><b>Ten superseded attempts</b> — the first radial engine, the first chandelier, the first clock, the
- first temple / workshop / alley, two extra rain windows, two extra auroras and a second accretion disc.
- Each is on disk; each lost to the version shown here, and the caption of the winner says why.</li>
- <li><b>mp4 turntables</b> — ffmpeg is not installed on this machine, so every motion clip here is an
- animated GIF via the PIL fallback. Nothing about the harness requires that.</li>
- <li><b>Scene textures</b> — tileable texture packs were generated for two scenes and could not be wired
- in without re-planning the passing run.</li>
- </ul>
- </div>
- <div>
- <h4>How to read the score</h4>
- <p>The number on each card is the harness judge (<code>gemini-3.1-pro-preview</code>, falling back to
- flash × 3), and on this page it is a <b>filter, not the point</b> — it decided whether a piece was worth
- looking at, and then a human looked. Two cards ship at a <i>lower</i> judged score than the run they
- replace, because the higher-scoring run did not contain the thing the prompt was chosen for. The temple
- courtyard is the sharpest case: the washed-out first attempt scored 0.729 and the correct-looking night
- scored 0.286.</p>
- <h4 style="margin-top:26px">Regenerate</h4>
- <pre>pip install -e harness
-cd harness
-3dcv bench run bench/prompts/teaser_v1_static.yaml \
- --generator api-agent:gemini:gemini-3.7-flash
-3dcv render &lt;slug&gt; # 8 canonical views
-3dcv texture pass &lt;slug&gt; # text-to-image material pass
-python -m http.server -d . 8931 # this page: /docs/teaser.html</pre>
- <p>Prompt sheets: <code>bench/prompts/teaser_v1_{static,articulated,scene,graphics}.yaml</code> —
- the sharpened re-runs are in the same files, suffixed <code>_v2</code> / <code>_v3</code>.
- Full method notes: <code>docs/TEASER.md</code>.</p>
- </div>
- </div>
-</div></footer>
-
-<div id="lb"><img alt=""></div>
-<script>
-// lazy panes: only fetch a tab's image when it is first shown (the GIFs are heavy)
-function show(el){ if(el && el.dataset.src){ el.src = el.dataset.src; delete el.dataset.src; } }
-document.querySelectorAll('.viewer').forEach(v=>{
- v.querySelectorAll('.tab').forEach(t=>t.addEventListener('click',()=>{
- v.querySelectorAll('.tab').forEach(x=>x.classList.remove('on'));
- v.querySelectorAll('.pane').forEach(x=>x.classList.remove('on'));
- t.classList.add('on');
- const pane = document.getElementById(t.dataset.t);
- pane.classList.add('on'); show(pane.querySelector('img'));
- }));
-});
-// everything else: load when it scrolls near
-const io = new IntersectionObserver((es)=>es.forEach(e=>{
- if(e.isIntersecting){ show(e.target); io.unobserve(e.target); }
-}),{rootMargin:'400px'});
-document.querySelectorAll('img[data-src]').forEach(i=>{
- if(!i.closest('.pane')) io.observe(i);
-});
-document.querySelectorAll('details').forEach(d=>d.addEventListener('toggle',()=>{
- if(d.open) d.querySelectorAll('img[data-src]').forEach(show);
-}));
-// lightbox
-const lb = document.getElementById('lb'), lbi = lb.querySelector('img');
-document.addEventListener('click',e=>{
- const t = e.target;
- if(t.tagName==='IMG' && t.closest('.pane,.shot,.asset-pics,.inscene,.sheetwrap')){
- lbi.src = t.currentSrc || t.src; lb.classList.add('on');
- } else if(t.closest('#lb')){ lb.classList.remove('on'); lbi.removeAttribute('src'); }
-});
-addEventListener('keydown',e=>{ if(e.key==='Escape'){ lb.classList.remove('on'); lbi.removeAttribute('src'); }});
-</script>
\ No newline at end of file
diff --git a/harness/tests/docs_html/__init__.py b/harness/tests/docs_html/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/harness/tests/docs_html/test_architecture_html.py b/harness/tests/docs_html/test_architecture_html.py
deleted file mode 100644
index a49fe0b3..00000000
--- a/harness/tests/docs_html/test_architecture_html.py
+++ /dev/null
@@ -1,217 +0,0 @@
-"""``docs/architecture.html`` must stay valid, self-contained and true to the code.
-
-The page is hand-authored and hand-maintained (see its footer). These tests are the
-guard rails: it has to parse, work offline, keep every relative link and ``data:`` URI
-alive, cover every track and every backend id, and — the one that actually catches
-drift — list *exactly* the tools that ``codeverse.spatial.registry`` currently has.
-"""
-
-from __future__ import annotations
-
-import base64
-import binascii
-import re
-from html.parser import HTMLParser
-from pathlib import Path
-
-import pytest
-
-import codeverse.spatial.tools # noqa: F401 — importing registers every tool
-from codeverse.agents.registry import KINDS as AGENT_KINDS
-from codeverse.contracts.common import Track
-from codeverse.models.registry import PROVIDERS
-from codeverse.spatial.registry import list_tools
-
-DOCS = Path(__file__).resolve().parents[2] / "docs"
-PAGE = DOCS / "architecture.html"
-MAX_BYTES = 8 * 1024 * 1024
-
-#: HTML void elements — never on the open-tag stack.
-VOID = frozenset(["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "param", "source", "track", "wbr"])
-#: elements whose content is not markup (html.parser already treats these as CDATA)
-RAW_TEXT = frozenset({"script", "style"})
-#: mime types we allow inside a data: URI on this page
-DATA_MIME = frozenset({"image/jpeg", "image/png", "image/gif", "image/webp", "image/svg+xml"})
-#: the non-agent generation backends the page must document alongside AGENT_KINDS
-EXTRA_BACKEND_IDS = ("single-shot",)
-
-
-class Page(HTMLParser):
- """Collects everything the assertions below need in one pass."""
-
- def __init__(self) -> None:
- super().__init__(convert_charrefs=True)
- self.stack: list[str] = []
- self.errors: list[str] = []
- self.ids: set[str] = set()
- self.links: list[str] = [] # href/src values worth resolving
- self.data_uris: list[str] = []
- self.imgs: list[dict[str, str]] = []
- self.title = ""
- self._in_title = False
- # tool-table scraping
- self._in_tool_table = False
- self._in_tool_body = False
- self._cell = 0
- self._grab_code = False
- self.tool_names: list[str] = []
-
- # -- structure -------------------------------------------------------
- def handle_starttag(self, tag: str, attrs: list[tuple[str, str | None]]) -> None:
- a = {k: (v or "") for k, v in attrs}
- if tag not in VOID and tag not in RAW_TEXT:
- self.stack.append(tag)
- self._note(tag, a)
-
- def handle_startendtag(self, tag: str, attrs: list[tuple[str, str | None]]) -> None:
- self._note(tag, {k: (v or "") for k, v in attrs})
-
- def handle_endtag(self, tag: str) -> None:
- if tag in VOID or tag in RAW_TEXT:
- return
- if tag not in self.stack:
- self.errors.append(f"stray </{tag}> at line {self.getpos()[0]}")
- return
- while self.stack:
- open_tag = self.stack.pop()
- if open_tag == tag:
- break
- self.errors.append(f"</{tag}> closes an unclosed <{open_tag}> at line {self.getpos()[0]}")
- if tag == "title":
- self._in_title = False
- if tag == "table":
- self._in_tool_table = False
- if tag == "tbody":
- self._in_tool_body = False
-
- # -- content ---------------------------------------------------------
- def _note(self, tag: str, a: dict[str, str]) -> None:
- if "id" in a:
- self.ids.add(a["id"])
- for key in ("href", "src"):
- val = a.get(key, "").strip()
- if not val:
- continue
- if val.startswith("data:"):
- self.data_uris.append(val)
- elif not val.startswith(("#", "mailto:", "javascript:")):
- self.links.append(val)
- if tag == "img":
- self.imgs.append(a)
- if tag == "title" and not self.title:
- self._in_title = True
- if tag == "table" and a.get("id") == "tool-table":
- self._in_tool_table = True
- if tag == "tbody" and self._in_tool_table:
- self._in_tool_body = True
- if self._in_tool_body:
- if tag == "tr":
- self._cell = 0
- elif tag in ("td", "th"):
- self._cell += 1
- elif tag == "code" and self._cell == 1:
- self._grab_code = True
-
- def handle_data(self, data: str) -> None:
- if self._in_title:
- self.title += data
- if self._grab_code:
- self.tool_names.append(data.strip())
- self._grab_code = False
-
-
[email protected](scope="module")
-def raw() -> str:
- assert PAGE.is_file(), f"{PAGE} is missing"
- return PAGE.read_text(encoding="utf-8")
-
-
[email protected](scope="module")
-def page(raw: str) -> Page:
- p = Page()
- p.feed(raw)
- p.close()
- return p
-
-
-def test_exists_and_parses(page: Page) -> None:
- assert not page.errors, "malformed HTML: " + "; ".join(page.errors[:5])
- unclosed = [t for t in page.stack if t not in ("html", "body")]
- assert not unclosed, f"unclosed tags: {unclosed}"
- assert page.title.strip(), "the page needs a <title>"
- assert "3dcodeverse" in page.title
-
-
-def test_file_stays_small() -> None:
- size = PAGE.stat().st_size
- assert size < MAX_BYTES, f"{size / 1e6:.1f} MB — keep the page under {MAX_BYTES / 1e6:.0f} MB"
-
-
-def test_works_offline_no_external_references(raw: str) -> None:
- """No http(s) reference outside <code>/<pre> text — the page must open by double-click."""
- stripped = re.sub(r"<(code|pre)\b.*?</\1>", " ", raw, flags=re.S | re.I)
- hits = re.findall(r"https?://\S{0,60}", stripped)
- assert not hits, f"external references outside code text: {hits[:5]}"
-
-
-def test_data_uris_are_well_formed(page: Page) -> None:
- assert len(page.data_uris) >= 5, "the page should embed its screenshots as data: URIs"
- for uri in page.data_uris:
- m = re.fullmatch(r"data:([\w.+-]+/[\w.+-]+);base64,([A-Za-z0-9+/]+={0,2})", uri)
- assert m, f"malformed data: URI (first 80 chars): {uri[:80]!r}"
- mime, payload = m.group(1), m.group(2)
- assert mime in DATA_MIME, f"unexpected data: URI mime {mime}"
- try:
- blob = base64.b64decode(payload, validate=True)
- except binascii.Error as e: # pragma: no cover - only on a corrupted page
- pytest.fail(f"data: URI is not valid base64 ({mime}): {e}")
- assert len(blob) > 512, f"data: URI payload is suspiciously small ({len(blob)} B)"
- if mime == "image/jpeg":
- assert blob[:2] == b"\xff\xd8", "JPEG data: URI has no SOI marker"
- elif mime == "image/png":
- assert blob[:8] == b"\x89PNG\r\n\x1a\n", "PNG data: URI has no signature"
-
-
-def test_every_image_has_alt_text(page: Page) -> None:
- missing = [i.get("src", "")[:40] for i in page.imgs if not i.get("alt", "").strip()]
- assert not missing, f"{len(missing)} <img> without alt text"
-
-
-def test_relative_links_resolve(page: Page) -> None:
- broken = []
- for href in page.links:
- target = (DOCS / href.split("#", 1)[0]).resolve()
- if not target.exists():
- broken.append(href)
- assert not broken, f"relative links that do not resolve from docs/: {broken}"
-
-
-def test_in_page_anchors_resolve(raw: str, page: Page) -> None:
- anchors = {m.group(1) for m in re.finditer(r'href="#([^"]+)"', raw)}
- missing = sorted(a for a in anchors if a not in page.ids)
- assert not missing, f"href=\"#…\" targets with no matching id: {missing}"
-
-
-def test_a_section_per_track(page: Page) -> None:
- for track in Track:
- assert f"track-{track.value}" in page.ids, f"no section for track {track.value}"
-
-
-def test_a_section_per_backend_id(page: Page) -> None:
- expected = [*PROVIDERS, *AGENT_KINDS, *EXTRA_BACKEND_IDS]
- for backend in expected:
- assert f"backend-{backend}" in page.ids, f"no section for backend id {backend!r}"
-
-
-def test_tool_table_matches_the_registry(page: Page) -> None:
- """The catalogue in the page must be exactly what the registry offers today."""
- registered = sorted(t.name for t in list_tools())
- documented = sorted(page.tool_names)
- assert documented, "no rows found in <table id=\"tool-table\">"
- missing = sorted(set(registered) - set(documented))
- extra = sorted(set(documented) - set(registered))
- assert not missing and not extra, (
- "docs/architecture.html §06 has drifted from codeverse.spatial.registry — "
- f"missing rows: {missing}; stale rows: {extra}"
- )
- assert len(documented) == len(registered), f"duplicate tool rows: {documented}"