Skip to content

Official Codebase of 3DCodeVerse

Python

Condense skill target prose, fix stale comments, names and doc claims (flywheel help, dataset field notes, scene hero contract comment, fixtures off the deleted gemini-cli id)

gaoypenge77ed953d94f
diff --git a/harness/README.md b/harness/README.md
index f06d112a..112cb6fe 100644
--- a/harness/README.md
+++ b/harness/README.md
@@ -29,40 +29,9 @@ renders, judges, refines and records every run as data-flywheel material.
## Architecture
Every run is **spec → plan → skeleton → [scene stages] → baseline round (best-of-N
-optional) → refine rounds → finalise → record**. The package tree:
+optional) → refine rounds → finalise → record**. The package tree is `docs/ARCHITECTURE.md` §2.
-```
-codeverse3d/
- contracts/ typed pydantic contracts: Track/Language/Usage/Budget/Backends,
- Spec, plans, artifacts, run record, AgentJob
- conventions.py frames, units, views, naming, tolerances (THE constants source)
- config.py Settings (C3D_* env + config.yaml) · workspace.py run-dir layout + git snapshots
- proc.py stdlib-only subprocess/JSON/JSONL primitives, run lock, fan-out (a leaf)
- orchestrator.py the round loop's library: stage runner + resume state, round knobs, the clock
- tracks/ the four track pipelines + the round loop, the one planner loop, generation strategies
- (vendor-CLI agent / single-shot), repair, best-of-N, skills hook
- languages/ one merged module per language (lint → skeleton → runtime) beside its
- data dirs: blender cadquery threejs urdf scene_threejs scene_blender glsl_shader opengl_python
- agents/ CodingAgent protocol + the vendor-CLI backends (claude-code,
- codex, antigravity): sessions, watchdog clocks, transcripts
- models/ ChatModel + gemini/anthropic/openai adapters; key-pool retry machine,
- streaming with stall detection, IPv4-pinned transport, pricing, health
- spatial/ the measurement/render toolbox behind every gate and MCP tool
- judges/ rubric VLM judge on labelled montages, pairwise, reference/likeness
- reference.py a user `--image` against the render: proportion check, mismatch diff
- cost/ append-only ledger, metering, per-block tallies, pre-call estimates
- skills/ typed skill routes + materialisation + read telemetry
- record/ what every run writes: record.json, deliverable/, telemetry
- addons/ optional tools that READ finished runs — nothing a run needs:
- gallery (the runs browser), dataset (export, tiers, preference/repair pairs,
- captions), costreport (`3dcodeverse cost`), calibration, skill_targets
- cli/ the typer CLI · doctor.py the environment checks behind `3dcodeverse doctor`
-../eval/bench/ the evaluation harness around the harness: run_bench, compare_backends
- (A/B matrix), ab_plan, infra-failure classification
-runtime_js/ node side: [email protected] + headless-Chrome render/probe hosts
-```
-
-Design laws, the full package map and what each stage does: `docs/ARCHITECTURE.md`.
+Design laws and what each stage does: `docs/ARCHITECTURE.md`.
**Supported versions:** python **3.13** and node **20.6+** (Linux x86_64; Blender
5.2 LTS optional). Developed and measured on python 3.13 / node 24; there is no CI — the offline suite and
diff --git a/harness/codeverse3d/addons/dataset/export.py b/harness/codeverse3d/addons/dataset/export.py
index d2315411..0e00f807 100644
--- a/harness/codeverse3d/addons/dataset/export.py
+++ b/harness/codeverse3d/addons/dataset/export.py
@@ -341,9 +341,9 @@ class ManifestEntry(BaseModel):
files: dict[str, str] = Field(
description="sample-relative file path → sha256 of the bytes the export wrote")
code_fingerprint: str = Field(
- default="", description="sha256 of the NORMALISED src tree (dedupe.code_fingerprint)")
+ default="", description="sha256 of the NORMALISED src tree (quality.code_fingerprint)")
code_sha256: str = Field(
- default="", description="sha256 of the RAW src tree bytes (dedupe.code_sha256 — the exact hash)")
+ default="", description="sha256 of the RAW src tree bytes (quality.code_sha256 — the exact hash)")
class DroppedRun(BaseModel):
diff --git a/harness/codeverse3d/addons/skill_targets.py b/harness/codeverse3d/addons/skill_targets.py
index d73a0c27..f6d2bfbe 100644
--- a/harness/codeverse3d/addons/skill_targets.py
+++ b/harness/codeverse3d/addons/skill_targets.py
@@ -19,7 +19,6 @@ SRC_BUILD = "build"
SRC_GLB = "glb"
SRC_FRAMES = "frames"
SRC_ARTIFACT = "artifact"
-SOURCES = (SRC_GATE, SRC_BUILD, SRC_GLB, SRC_FRAMES, SRC_ARTIFACT)
@dataclass(frozen=True)
@@ -49,8 +48,7 @@ TARGETS: tuple[Target, ...] = (
source=SRC_GATE,
kinds=("connectivity/penetration",),
languages=OBJECT_LANGS,
- why="the plain count of penetrating pairs is the strongest single predictor of "
- "assembly_fit (r = -0.258, eval/docs/COMPLEXITY.md §6) and the bundle exists to lower it",
+ why="the penetrating-pair count is the strongest single predictor of assembly_fit (r = -0.258, eval/docs/COMPLEXITY.md §6)",
),
Target(
skill="c3d-bbox-contract",
@@ -61,13 +59,8 @@ TARGETS: tuple[Target, ...] = (
kinds=("contract/part_bbox", "contract/overall_bbox", "contract/footprint_offset",
"contract/ground_gap"),
languages=OBJECT_LANGS,
- why="the bundle is the contract gate's own tolerance arithmetic: a part that IS there "
- "and is the wrong size or in the wrong place",
- caveat="two contract kinds are deliberately somebody else's. contract/instance_* is "
- "c3d-repeats-and-mirrors; contract/missing_part is a part that never reached the "
- "GLB at all, which is a language-API failure (c3d-threejs-forms owns it for "
- "threejs; for blender its upstream signal is lint/part_not_imported, counted by "
- "c3d-blender-forms) rather than a tolerance failure.",
+ why="the bundle is the contract gate's own tolerance arithmetic: a part that is there at the wrong size or place",
+ caveat="contract/instance_* is c3d-repeats-and-mirrors; contract/missing_part is a language-API failure, not a tolerance one.",
),
Target(
skill="c3d-repeats-and-mirrors",
@@ -98,8 +91,7 @@ TARGETS: tuple[Target, ...] = (
kinds=("joint_sweep/penetration", "joint_sweep/unattached"),
severities=("error",),
languages=("urdf_blender",),
- why="metadata.owns names joint_sweep; 653 of 691 sweep findings in the corpus are "
- "moved-pose ERRORs, which is exactly what the clearance rule targets",
+ why="653 of 691 joint_sweep findings in the corpus are moved-pose ERRORs, which the clearance rule targets",
),
Target(
skill="c3d-cadquery-forms",
@@ -108,8 +100,7 @@ TARGETS: tuple[Target, ...] = (
unit="fraction of rounds whose build failed",
source=SRC_BUILD,
languages=("cadquery",),
- why="the bundle's own framing is 'the kernel rules that decide whether the script "
- "builds at all'; an OCC kernel refusal is a build failure, not a gate finding",
+ why="an OCC kernel refusal is a build failure, not a gate finding",
caveat="no baseline exists: eval/bench/out holds zero graded cadquery runs.",
),
Target(
@@ -120,8 +111,7 @@ TARGETS: tuple[Target, ...] = (
source=SRC_GATE,
kinds=("contract/missing_part",),
languages=("threejs",),
- why="the bundle's distinct claim is the traps that make a threejs part silently ship "
- "nothing (bevel_depth 0, no computeVertexNormals); the contract gate calls that a missing part",
+ why="the traps that make a threejs part silently ship nothing count as a missing part",
caveat="no baseline exists: eval/bench/out holds zero graded threejs runs.",
),
Target(
@@ -132,10 +122,8 @@ TARGETS: tuple[Target, ...] = (
source=SRC_GATE,
kinds=("scene_frames/camera_*",),
languages=("scene_threejs",),
- why="cameras below ground or inside geometry are arithmetic failures, and the bundle's "
- "whole method is deriving them from measured bounds",
- caveat="frame coverage (content_small, hero_*) is the bundle's other half and routes it "
- "too (R15), but is not in this count.",
+ why="cameras below ground or inside geometry are arithmetic failures the bundle derives from measured bounds",
+ caveat="frame coverage (content_small, hero_*) also routes the bundle (R15) but is not in this count.",
),
Target(
skill="c3d-scene-lighting",
@@ -145,8 +133,7 @@ TARGETS: tuple[Target, ...] = (
source=SRC_GATE,
kinds=("scene_frames/dark_frame", "scene_frames/flat_frame", "scene_frames/blown_frame"),
languages=("scene_threejs",),
- why="the bundle is the exposure thresholds of frame_metrics.py restated with a recipe; "
- "the gate counts exactly the frames it failed to light",
+ why="the bundle is the exposure thresholds of frame_metrics.py with a recipe",
),
Target(
skill="c3d-scene-motion",
@@ -157,12 +144,7 @@ TARGETS: tuple[Target, ...] = (
languages=("scene_threejs",),
measurable=False,
why="reported as a regression guard only",
- caveat="NOT a target. The bundle says so itself: re-measuring all 8 recorded rounds, every "
- "authored camera cleared the 0.4 % bar by 5-12x while animation_life averaged 0.431. "
- "The claim is per-plan-item ('the water and the leaves are static'), and no "
- "deterministic instrument attributes motion to a named plan item. Raising this "
- "number is not evidence the bundle worked; a drop below MOVING_FRAC still is a "
- "regression worth catching.",
+ caveat="NOT a target: no deterministic instrument attributes motion to a named plan item; a drop below MOVING_FRAC is still a regression.",
),
Target(
skill="c3d-threejs-shader-traps",
@@ -172,12 +154,8 @@ TARGETS: tuple[Target, ...] = (
source=SRC_ARTIFACT,
kinds=("shader_preflight/*",),
languages=("scene_threejs", "threejs"),
- why="every trap the bundle teaches lands "
- "in the one shader_preflight report",
- caveat="zero headroom in today's corpus: all 4 recorded scene runs are clean, so this can "
- "only detect a regression until a battery makes it fire. Runs recorded before "
- "2026-09-22 have shader_preflight only beside the run (artifacts/), their final state; "
- "since then every round's gates carry it (BuildResult.gates).",
+ why="every trap the bundle teaches lands in the one shader_preflight report",
+ caveat="zero headroom in today's corpus (all 4 recorded scene runs are clean): detects a regression only.",
),
Target(
skill="c3d-glsl-craft",
@@ -186,9 +164,7 @@ TARGETS: tuple[Target, ...] = (
unit="mean edge density over the 5 sampled frames (frame_stats)",
source=SRC_FRAMES,
languages=("glsl_shader",),
- why="the gl_frames gate fired zero findings on all 9 graded glsl runs, so its finding "
- "count has no headroom; edge density is the continuous quantity that gate thresholds "
- "and the quantity its own fix hint asks the agent to raise",
+ why="the gl_frames gate fired zero findings on 9 graded glsl runs; edge density is the continuous quantity it thresholds",
),
Target(
skill="c3d-opengl-pipeline",
@@ -198,8 +174,7 @@ TARGETS: tuple[Target, ...] = (
source=SRC_GATE,
kinds=("gl_frames/*",),
languages=("opengl_python",),
- why="every gl_frames finding in the whole graphics corpus (3 flicker, 1 low detail) came "
- "from opengl_python, and flicker is trap 1 (a sampled solver) showing up in pixels",
+ why="every gl_frames finding in the graphics corpus came from opengl_python",
),
# ------------------------------------------------------------- recipe port
Target(
@@ -210,9 +185,8 @@ TARGETS: tuple[Target, ...] = (
source=SRC_ARTIFACT,
languages=("scene_threejs",),
measurable=False,
- why="the sky bake IS the scene's light source; the reference audit found the bake "
- "inverted in 4 of 9 delivered scenes and every reflective surface went dark",
- caveat="ported claim: reference-harness evidence, our own A/B pending (sceneloop).",
+ why="the reference audit found the sky bake inverted in 4 of 9 delivered scenes",
+ caveat="ported claim: reference-harness evidence, our own A/B pending.",
),
Target(
skill="c3d-scene-water",
@@ -222,10 +196,8 @@ TARGETS: tuple[Target, ...] = (
source=SRC_ARTIFACT,
languages=("scene_threejs",),
measurable=False,
- why="dielectric water against a live environment bake is the reference's most-shipped "
- "material fix; no deterministic gate measures water quality yet",
- caveat="NOT yet measurable here: judged quality only. The sceneloop A/B attaches numbers; "
- "a water-specific instrument (fresnel/metalness census) is a candidate follow-up.",
+ why="dielectric water against a live environment bake is the reference's most-shipped material fix",
+ caveat="NOT yet measurable here: judged quality only; a fresnel/metalness census is the candidate instrument.",
),
Target(
skill="c3d-scene-night",
@@ -235,9 +207,8 @@ TARGETS: tuple[Target, ...] = (
source=SRC_ARTIFACT,
languages=("scene_threejs",),
measurable=False,
- why="night briefs are the dark_or_flat gate's richest source; the bundle is the "
- "reference's measured shaft/emissive discipline plus our linear-luminance table",
- caveat="ported claim: reference-harness evidence, our own A/B pending (sceneloop).",
+ why="night briefs are the dark_or_flat gate's richest source",
+ caveat="ported claim: reference-harness evidence, our own A/B pending.",
),
Target(
skill="c3d-scene-materials",
@@ -247,10 +218,8 @@ TARGETS: tuple[Target, ...] = (
source=SRC_ARTIFACT,
languages=("scene_threejs",),
measurable=False,
- why="flat albedo and identical twins are the reference audit's most-cited surface "
- "defects; no deterministic gate measures material variance yet",
- caveat="NOT yet measurable here: judged quality only. A variance census (per-material "
- "value spread over sampled texels) is the candidate instrument.",
+ why="flat albedo and identical twins are the reference audit's most-cited surface defects",
+ caveat="NOT yet measurable here: judged quality only; a per-material value-spread census is the candidate instrument.",
),
# ------------------------------------------------------------- scene_blender
Target(
@@ -263,12 +232,8 @@ TARGETS: tuple[Target, ...] = (
"scene_placement/interpenetration"),
severities=("error",),
languages=("scene_blender",),
- why="the bundle's whole method is seating every placed row on height_at or its support; the loop's "
- "own accept rule vetoes an iteration whose floating+sunken+interpenetration ERROR count per run "
- "rises, so the bundle is measured by the number the loop already reads",
- caveat="unsupported is a WARN-only kind in scene_placement.py today, so it contributes zero until the "
- "gate escalates it; cantilevered and free_exempt route the bundle (R30) but are not counted — "
- "cantilevered is WARN-only and free_exempt is one finding per report, not per asset.",
+ why="the bundle seats every placed row on height_at or its support; the floating+sunken+interpenetration ERROR count is the number to move",
+ caveat="unsupported, cantilevered and free_exempt route the bundle (R30) but are WARN-only or per-report, so they add nothing to the count.",
),
Target(
skill="c3d-bpy-scene-lighting",
@@ -278,11 +243,8 @@ TARGETS: tuple[Target, ...] = (
source=SRC_GATE,
kinds=("scene_frames/dark_frame", "scene_frames/flat_frame", "scene_frames/blown_frame"),
languages=("scene_blender",),
- why="the bundle is the exposure thresholds of frame_metrics.py restated with the Cycles/AgX bands "
- "measured under them; the gate counts exactly the frames it failed to light",
- caveat="the same three kinds as c3d-scene-lighting, over a disjoint language: a run is scene_threejs "
- "or scene_blender, never both, so each A/B still names one owner. The uniqueness test must key "
- "on (kind, language), not on the kind alone.",
+ why="the bundle is the exposure thresholds of frame_metrics.py with the Cycles/AgX bands",
+ caveat="the same three kinds as c3d-scene-lighting over a disjoint language; the uniqueness test keys on (kind, language).",
),
Target(
skill="c3d-bpy-scene-materials",
@@ -292,12 +254,8 @@ TARGETS: tuple[Target, ...] = (
source=SRC_ARTIFACT,
languages=("scene_blender",),
measurable=False,
- why="placeholder_material, flat_ground and monotonous_vegetation are judge defects with no deterministic "
- "twin; the census GLB reads three Principled default values and a linked socket exports as its default",
- caveat="NOT yet measurable here: judged quality only. The candidate instrument is one census field per "
- "material — which of Base Color / Roughness / Metallic / Normal are linked — written by "
- "wrappers/_census_glb.py next to the values it already reads; until it exists this row is a "
- "finding about the bundle, not a number.",
+ why="placeholder_material, flat_ground and monotonous_vegetation are judge defects with no deterministic twin",
+ caveat="NOT yet measurable here: judged quality only; a census of linked Principled sockets is the candidate instrument.",
),
)
diff --git a/harness/codeverse3d/tracks/scene_assets.py b/harness/codeverse3d/tracks/scene_assets.py
index 95f327a2..4e5751bc 100644
--- a/harness/codeverse3d/tracks/scene_assets.py
+++ b/harness/codeverse3d/tracks/scene_assets.py
@@ -359,7 +359,7 @@ def build_blender_asset(ctx: RunContext, asset: AssetPlan, *, judge: bool) -> As
write_blender_skeleton(sub_ws, sub.plan, ground_tol_m=HERO_GROUND_TOL_M)
sub_ws.commit("skeleton")
if not ctx.single_shot:
- # language contract alone: harness_contract.md's ±1 cm bbox acceptance contradicts the prop sheet's ±5 %
+ # language contract alone: harness_contract.md's acceptance list (overall bbox within max(10 mm, 10 %)) is not the asset prop-sheet's tolerance
ctx.services.materialize(sub_ws, agent_kind=ctx.agent_kind, contract_md=sub.contract_text)
files = sub.runtime.expected_files(sub.plan)
timeout_s = asset_timeout_s(ctx, 180)
diff --git a/harness/docs/ARCHITECTURE.md b/harness/docs/ARCHITECTURE.md
index b80cd99d..39b386cc 100644
--- a/harness/docs/ARCHITECTURE.md
+++ b/harness/docs/ARCHITECTURE.md
@@ -125,12 +125,11 @@ codeverse3d/
(MCP name: 3dcode). Render modes are contracts.artifacts.RENDER_MODES (shaded wire normals
silhouette clay); build error_type spellings are languages/_common.MISSING_ENTRY and
BUILD_TIMEOUT for every runtime
- skills/ registry.py (typed ROUTES + the router; select takes a variant's extra rows / boosts /
- disabled ids), model.py (Skill/Selection + the SKILL.md loader), prompting.py (per-backend
+ skills/ registry.py (typed ROUTES + the router),
+ model.py (Skill/Selection + the SKILL.md loader), prompting.py (per-backend
discovery root + the mandate text), materialize.py, telemetry.py (the read probe: the CLIs'
own tool calls first, atime as fallback); switches are Settings fields (C3D_SKILLS*, on by
- default). variants/<name>/ is the skills half of a variant overlay: bundles that shadow base
- bundles by name, their _claims/, and routes.toml (docs/SKILLS.md)
+ default)
cost/ types.py (CallCost/Stage/Role) ledger.py (append-only telemetry/cost.jsonl + price
provenance) context.py (per-call > ambient attribution) instrument.py (MeteredChatModel /
MeteredAgent — one row per ChatModel.generate; one session row for a backend that does NOT
@@ -182,10 +181,6 @@ codeverse3d/
system/* (harness contract, single-shot envelope, role_{scope,asset,repair}.j2),
tracks/*.j2. catalog.py answers "what exists and how does each piece reach the model",
including the ONE per-language lookup language_prompt(language, name) / language_text.
- variants.py: per-model OVERLAYS — variants/<name>/<rel> shadows <rel> for load_text /
- render / language_text while that variant is active (a ContextVar BaseTrack.run sets from
- RunOptions.variant, else C3D_VARIANT / C3D_VARIANTS, resolved by exact generator id);
- variant.toml = name/version/generators, variant_hash lands in the record.
codeverse3d/skills/ is what an AGENT chooses to read; a file that tries to be both is the
bug this split prevents
cli/ main.py (app wiring, make/resume/mcp + the doctor/tools/gallery commands), inspect_cmd.py
@@ -214,46 +209,9 @@ One run is one directory, `runs/<slug>/`: `src/` is the code (git, one commit pe
## 4. Per-language authoring contracts (raw code; the harness owns export)
-Authoritative text lives in `codeverse3d/prompts/<lang>/contract.md` (+ `system.md`); summary:
-
-* **blender** (multi-file): `src/model.py` entry + `src/parts/<snake>.py` each defining
- `def build_<snake>()` (self-contained; optional `src/parts/_x.py` helpers) — pure bpy, Z-up,
- -Y front, meters; PascalCase object names = part names. Small objects may stay single-file.
- The wrapper (`languages/wrappers/run_bpy.py`) puts `src/` on sys.path, maps errors to
- workspace-relative `src/parts/<x>.py:line`, collects a census (incl. material-slot use, read
- off the evaluated mesh) and exports GLB (Y-up) + STL.
-* **cadquery**: `src/model.py` — `import cadquery as cq` (+math) only; module-level `result` =
- `cq.Assembly` or `Workplane`. A chain ending in a selector exports the parent solid with a
- warning (ExportError when no solid exists); helper-module errors map to `src/<file>.py:line`.
-* **threejs** (static): `src/parts/<snake>.js` each `export function build<Pascal>(THREE) → THREE.Group`
- at world pose (Y-up, +Z front, meters); `src/object.js` `export function build(THREE)`. Export
- is **as authored**; `InstancedMesh` is baked to plain `<Name>_<i>` meshes; an exported
- `selfcheck(THREE, root)` is called and a throw fails the build as `SelfCheckError`.
-* **urdf_blender**: `src/model.py` builds one object per link named `<link>` in **WORLD
- coordinates** at the rest pose (q=0 = authored pose); `src/robot.urdf` hand-written: link frame
- = its pivot, joint origin = pivot_child − frame_parent, `rpy="0 0 0"`, visual AND collision
- `<origin xyz>` = −pivot (root `0 0 0`) — verified by the FK-consistency check; URDF limits =
- plan lower−rest .. upper−rest. Link name `world` is reserved. The harness exports
- `meshes/<link>.glb` (raw Z-up link frames), fails the build on a rest-pose penetration > 5 mm,
- builds hierarchical `object.glb`; the round's `joint_sweep` gate sweeps every pose
- (deterministic; python-fcl) and `motion_direction` checks the axis against the plan text.
-* **scene_threejs**: `src/scene.js` `createScene({THREE, renderer, loaders}) → {scene, cameras, update(t,dt)}`;
- `src/env.js`, `src/zones/*.js`, `src/assets/*.js`, `src/shaders/*.js`; GLBs at
- `public/assets/<name>.glb`. The harness assembles `scene.js` deterministically. The
- harness-owned, read-only **effect library** `src/lib/*.js` ships into every workspace and is
- listed in `HARNESS_OWNED_SRC` so agent writes to it are reverted; the want → call table the
- prompts carry is `prompts/scene_threejs/effects_catalog.md`. `src/lib/` is committed with
- `src/`, so the deliverable and the dataset sample carry it.
-* **scene_blender**: the same shape in bpy (`src/scene.py`, `src/env.py`, `src/zones/*.py`,
- `src/assets/*.py`), every module the agent's; judged frames render in Cycles.
-* **glsl_shader**: `src/shader.frag` (+ optional `src/common.glsl`, `src/buffer_a.frag` for
- feedback) — the agent never writes `#version`, uniform declarations or `out vec4`; the harness
- header provides `u_time/u_resolution/u_mouse/u_frame/u_prev/u_noise/u_buffer_a` (+ Shadertoy
- `iTime/iResolution/iChannel*` aliases). Feedback shaders are simulated at 30 fps.
-* **opengl_python**: `src/program.py` with `setup(ctx, w, h) -> state` and
- `render(ctx, state, t, frame, fbo)` — moderngl only, no window libs, no wall clock, no file
- writes; GLSL may live in `src/*.glsl` or in-string (errors carry both line numbers). Runs in a
- fresh subprocess per render; GPU d3d12 first, llvmpipe fallback.
+The authoritative text is `codeverse3d/prompts/<lang>/contract.md` (+ `system.md`) for each language. The harness-owned
+`src/lib/` (scene_threejs effect library, `HARNESS_OWNED_SRC`) is committed with `src/`, so the deliverable and the
+dataset sample carry it.
## 5. Spatial tool registry
@@ -352,7 +310,7 @@ round's verdict.
round 0 "baseline": generate → build_with_repair → measure → gates → render → post-render gates → judge
object tracks: ONE session drafts the WHOLE object — every part file + the entry — each file written once and
then edited; a part still the skeleton's box is a `placeholder_part` contract ERROR
- --candidates N: N parallel baselines in <ws>/_cand/c<k>, quick 4-view judge, a crashed candidate retried once,
+ --candidates N: N parallel baselines in <ws>/_cand/c<k>, quick 4-view judge, a crashed candidate recorded failed (no candidate-level retry),
selection build_ok → quick score → fewer gate errors → the earlier candidate; the winner is copied back
then max_rounds refine rounds, EACH built on the round before it — a FIXED count: no pass, plateau or regression stop
refine tasks = the previous round's gate ERRORS (fix hints, authoring-frame numbers) ∪ failed must-acceptance
diff --git a/harness/tests/flywheel_cli/conftest.py b/harness/tests/flywheel_cli/conftest.py
index 40c9b8d6..921ad702 100644
--- a/harness/tests/flywheel_cli/conftest.py
+++ b/harness/tests/flywheel_cli/conftest.py
@@ -53,7 +53,7 @@ def _judgment(score: float, passed: bool, plan: list[str]) -> Judgment:
def make_fake_run(
runs_dir: Path, slug: str = "wooden_chair_ab12cd34", *, prompt: str = "a wooden dining chair",
- language: Language = Language.BLENDER, generator: str = "gemini-cli:gemini-3.8-flash",
+ language: Language = Language.BLENDER, generator: str = "agy:gemini-4-argon",
scores: tuple[float, float] = (0.55, 0.80), with_repair: bool = False,
) -> tuple[Workspace, RunRecord]:
ws = Workspace(runs_dir / slug).create()
diff --git a/harness/tests/flywheel_cli/test_flywheel.py b/harness/tests/flywheel_cli/test_flywheel.py
index 2dc15c4d..02a8479e 100644
--- a/harness/tests/flywheel_cli/test_flywheel.py
+++ b/harness/tests/flywheel_cli/test_flywheel.py
@@ -73,7 +73,7 @@ def test_export_pairs_and_a_core_only_install_over_a_runs_dir(runs_dir: Path, tm
assert p["chosen"]["files"]["src/model.py"].startswith("# round 1")
assert p["rejected"]["files"]["src/model.py"].startswith("# round 0")
xb = next(x for x in pairs if x["kind"] == "cross_backend")
- assert xb["chosen"]["generator"].startswith("gemini-cli") and xb["rejected"]["generator"].startswith("codex")
+ assert xb["chosen"]["generator"].startswith("agy") and xb["rejected"]["generator"].startswith("codex")
assert xb["delta"] == pytest.approx(0.2)
# a core-only install (no pyarrow) always exports JSONL, makes parquet optional, and --pack refuses
diff --git a/harness/tests/flywheel_cli/test_run_layout_cli.py b/harness/tests/flywheel_cli/test_run_layout_cli.py
index 7a4876b8..ee1b1c6c 100644
--- a/harness/tests/flywheel_cli/test_run_layout_cli.py
+++ b/harness/tests/flywheel_cli/test_run_layout_cli.py
@@ -77,7 +77,7 @@ def test_show_sections_and_status_share_the_packaged_run(fake_run):
assert "deliverable/object.glb" in out and "deliverable/src/model.py" in out
assert "static_object" in out # evidence: rubric
assert "the ledger, list price" in out and "models per role" in out and "price table" in out
- assert "gemini-cli" in out and "generator" in out # settings: model id per role
+ assert "agy" in out and "generator" in out # settings: model id per role
# A selected section stays isolated, and invalid selectors fail cleanly.
r = _show(ws.root.name, ws.root.parent, "--section", "cost")