Skip to content

Official Codebase of 3DCodeVerse

Python

Plugin text lane 1/3: move the c3d-* craft bundles to harness/skills, name every instrument in its 3dcode CLI form, drop the _claims tables

gaoypenga524a017914f
diff --git a/harness/codeverse3d/prompts/_claims.toml b/harness/codeverse3d/prompts/_claims.toml
deleted file mode 100644
index 884dd2aa..00000000
--- a/harness/codeverse3d/prompts/_claims.toml
+++ /dev/null
@@ -1,368 +0,0 @@
-# Numbers the prompt corpus states, pinned to the code constant that produces them
-# (addons/skill_targets.check_prompt_claims; `file` is relative to prompts/). Change the
-# constant, or reword the sentence, and tests/skills/test_library.py fails until both agree.
-
-[[claim]]
-key = "judge_times"
-file = "tracks/plan_graphics.j2"
-text = "0, 1, 2.5, 4 and 6"
-python = "codeverse3d.languages._gl_common:JUDGE_TIMES"
-sep = ", "
-last_sep = " and "
-context = "judged on frames sampled at"
-
-[[claim]]
-key = "judge_times"
-file = "glsl_shader/contract.md"
-text = "0, 1, 2.5, 4, 6"
-python = "codeverse3d.languages._gl_common:JUDGE_TIMES"
-sep = ", "
-context = "renders frames"
-
-[[claim]]
-key = "judge_times"
-file = "glsl_shader/contract.md"
-text = "0, 1, 2.5, 4, 6"
-python = "codeverse3d.languages._gl_common:JUDGE_TIMES"
-sep = ", "
-context = "uniform float u_time"
-
-[[claim]]
-key = "judge_times"
-file = "opengl_python/contract.md"
-text = "0, 1, 2.5, 4, 6"
-python = "codeverse3d.languages._gl_common:JUDGE_TIMES"
-sep = ", "
-context = "PNG per frame"
-
-[[claim]]
-key = "judge_times"
-file = "opengl_python/system.md"
-text = "0, 1, 2.5, 4, 6"
-python = "codeverse3d.languages._gl_common:JUDGE_TIMES"
-sep = ", "
-context = "sampled-time trap"
-
-[[claim]]
-key = "scene_times"
-file = "scene_threejs/contract.md"
-text = "0 and t = 1.5"
-python = "codeverse3d.tracks.scene:SCENE_TIMES"
-sep = " and t = "
-context = "renders every camera at t ="
-
-[[claim]]
-key = "scene_times"
-file = "scene_threejs/contract.md"
-text = "0, 1.5"
-python = "codeverse3d.tracks.scene:SCENE_TIMES"
-sep = ", "
-context = "scene_views(times=["
-
-# ---- scene_blender (prompts/scene_blender/*, DESIGN 2026-10-14 lane B1). The placement thresholds
-# are Settings defaults (config.Placement — no module constant since lane G deleted them): `python`
-# names the class and `format` reads the field's default through str.format's attribute / item
-# syntax; a tightened default fails the claim until the prompt agrees.
-
-[[claim]]
-key = "scene_times"
-file = "scene_blender/contract.md"
-text = "0 and t = 1.5"
-python = "codeverse3d.tracks.scene:SCENE_TIMES"
-sep = " and t = "
-context = "renders every camera at t ="
-
-[[claim]]
-key = "scene_fps"
-file = "scene_blender/contract.md"
-text = "30"
-python = "codeverse3d.languages.scene_blender:FPS"
-context = "fps="
-
-[[claim]]
-key = "asset_max_tris"
-file = "scene_blender/contract.md"
-text = "15,000"
-python = "codeverse3d.tracks.scene_assets:ASSET_MAX_TRIS"
-format = "{:,}"
-context = "per asset"
-
-[[claim]]
-key = "hero_max_tris"
-file = "scene_blender/contract.md"
-text = "40,000"
-python = "codeverse3d.tracks.scene_assets:HERO_MAX_TRIS"
-format = "{:,}"
-context = "per hero"
-
-[[claim]]
-key = "scene_max_tris"
-file = "scene_blender/contract.md"
-text = "3,000,000"
-python = "codeverse3d.conventions:MAX_TRIS_SCENE"
-format = "{:,}"
-context = "scene ceiling"
-
-[[claim]]
-key = "placement_floating_outdoor_m"
-file = "scene_blender/contract.md"
-text = "0.05"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[floating_outdoor_m].default:.2f}"
-context = "outdoors"
-
-[[claim]]
-key = "placement_floating_indoor_m"
-file = "scene_blender/contract.md"
-text = "0.02"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[floating_indoor_m].default:.2f}"
-context = "indoors"
-
-[[claim]]
-key = "placement_floating_error_m"
-file = "scene_blender/contract.md"
-text = "0.08"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[floating_error_m].default:.2f}"
-context = "ERROR at"
-
-[[claim]]
-key = "placement_floating_error_count"
-file = "scene_blender/contract.md"
-text = "2"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[floating_error_count].default}"
-context = "things float"
-
-[[claim]]
-key = "placement_sunk_m"
-file = "scene_blender/contract.md"
-text = "0.10"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[sunk_m].default:.2f}"
-context = "buried deeper than"
-
-[[claim]]
-key = "placement_sunk_error_m"
-file = "scene_blender/contract.md"
-text = "0.20"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[sunk_error_m].default:.2f}"
-context = "ERROR at"
-
-[[claim]]
-key = "placement_overlap_warn"
-file = "scene_blender/contract.md"
-text = "10%"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[overlap_warn].default:.0%}"
-context = "interpenetration"
-
-[[claim]]
-key = "placement_overlap_error"
-file = "scene_blender/contract.md"
-text = "35%"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[overlap_error].default:.0%}"
-context = "ERROR at"
-
-[[claim]]
-key = "placement_contact_m"
-file = "scene_blender/contract.md"
-text = "0.02"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[contact_m].default:.2f}"
-context = "gap ≤"
-
-[[claim]]
-key = "placement_free_exempt_warn"
-file = "scene_blender/contract.md"
-text = "25%"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[free_exempt_warn].default:.0%}"
-context = "warns past"
-
-[[claim]]
-key = "placement_free_exempt_error"
-file = "scene_blender/contract.md"
-text = "50%"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[free_exempt_error].default:.0%}"
-context = "errors past"
-
-[[claim]]
-key = "placement_floating_error_m"
-file = "scene_blender/system.md"
-text = "0.08"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[floating_error_m].default:.2f}"
-context = "ERRORS at"
-
-[[claim]]
-key = "placement_sunk_error_m"
-file = "scene_blender/system.md"
-text = "0.20"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[sunk_error_m].default:.2f}"
-context = "ERRORS at"
-
-[[claim]]
-key = "placement_overlap_error"
-file = "scene_blender/system.md"
-text = "35%"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[overlap_error].default:.0%}"
-context = "ERRORS at"
-
-[[claim]]
-key = "placement_floating_error_m"
-file = "scene_blender/contract.md"
-text = "0.08"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[floating_error_m].default:.2f}"
-context = "ERROR at"
-
-[[claim]]
-key = "placement_sunk_error_m"
-file = "scene_blender/contract.md"
-text = "0.20"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[sunk_error_m].default:.2f}"
-context = "ERROR at"
-
-[[claim]]
-key = "placement_overlap_error"
-file = "scene_blender/contract.md"
-text = "35%"
-python = "codeverse3d.config:Placement"
-format = "{0.model_fields[overlap_error].default:.0%}"
-context = "ERROR at"
-
-# ---- D107: the per-built-object budget each object contract states (tracks/depth.py), the build
-# timeout (config.Limits), and the gl_frames thresholds generate_graphics.j2 states (frame_stats).
-
-[[claim]]
-key = "tris_per_unit_floor"
-file = "blender/contract.md"
-text = "350"
-python = "codeverse3d.tracks.depth:TRIS_PER_UNIT_FLOOR"
-context = "fewer than"
-
-[[claim]]
-key = "build_s_per_unit"
-file = "blender/contract.md"
-text = "3 s"
-python = "codeverse3d.tracks.depth:BUILD_S_PER_UNIT"
-format = "{:.0f} s"
-context = "per built object"
-
-[[claim]]
-key = "min_build_s"
-file = "blender/contract.md"
-text = "20 s"
-python = "codeverse3d.tracks.depth:MIN_BUILD_S"
-format = "{:.0f} s"
-context = "at least"
-
-[[claim]]
-key = "tris_per_unit_floor"
-file = "cadquery/contract.md"
-text = "350"
-python = "codeverse3d.tracks.depth:TRIS_PER_UNIT_FLOOR"
-context = "fewer than"
-
-[[claim]]
-key = "build_s_per_unit"
-file = "cadquery/contract.md"
-text = "3 s"
-python = "codeverse3d.tracks.depth:BUILD_S_PER_UNIT"
-format = "{:.0f} s"
-context = "per built object"
-
-[[claim]]
-key = "min_build_s"
-file = "cadquery/contract.md"
-text = "20 s"
-python = "codeverse3d.tracks.depth:MIN_BUILD_S"
-format = "{:.0f} s"
-context = "at least"
-
-[[claim]]
-key = "tris_per_unit_floor"
-file = "threejs/contract.md"
-text = "350"
-python = "codeverse3d.tracks.depth:TRIS_PER_UNIT_FLOOR"
-context = "triangles per built object"
-
-[[claim]]
-key = "build_s_per_unit"
-file = "threejs/contract.md"
-text = "3 s"
-python = "codeverse3d.tracks.depth:BUILD_S_PER_UNIT"
-format = "{:.0f} s"
-context = "per built object"
-
-[[claim]]
-key = "min_build_s"
-file = "threejs/contract.md"
-text = "20 s"
-python = "codeverse3d.tracks.depth:MIN_BUILD_S"
-format = "{:.0f} s"
-context = "at least"
-
-[[claim]]
-key = "build_timeout_s"
-file = "blender/contract.md"
-text = "300 s"
-python = "codeverse3d.config:Limits"
-format = "{0.model_fields[build_timeout_s].default} s"
-context = "build_timeout_s"
-
-[[claim]]
-key = "build_timeout_s"
-file = "cadquery/contract.md"
-text = "300 s"
-python = "codeverse3d.config:Limits"
-format = "{0.model_fields[build_timeout_s].default} s"
-context = "build_timeout_s"
-
-[[claim]]
-key = "build_timeout_s"
-file = "threejs/contract.md"
-text = "300 s"
-python = "codeverse3d.config:Limits"
-format = "{0.model_fields[build_timeout_s].default} s"
-context = "build_timeout_s"
-
-[[claim]]
-key = "build_timeout_s"
-file = "urdf/contract.md"
-text = "300 s"
-python = "codeverse3d.config:Limits"
-format = "{0.model_fields[build_timeout_s].default} s"
-context = "build_timeout_s"
-
-[[claim]]
-key = "build_timeout_s"
-file = "system/harness_contract.md"
-text = "300 s"
-python = "codeverse3d.config:Limits"
-format = "{0.model_fields[build_timeout_s].default} s"
-context = "build_timeout_s"
-
-[[claim]]
-key = "static_diff"
-file = "tracks/generate_graphics.j2"
-text = "0.002"
-python = "codeverse3d.spatial.frame_stats:STATIC_DIFF"
-format = "{:g}"
-context = "must reach"
-
-[[claim]]
-key = "flicker_diff"
-file = "tracks/generate_graphics.j2"
-text = "0.35"
-python = "codeverse3d.spatial.frame_stats:FLICKER_DIFF"
-format = "{:g}"
-context = "no consecutive pair"
diff --git a/harness/codeverse3d/prompts/blender/contract.md b/harness/codeverse3d/prompts/blender/contract.md
deleted file mode 100644
index a10ed6f5..00000000
--- a/harness/codeverse3d/prompts/blender/contract.md
+++ /dev/null
@@ -1,173 +0,0 @@
-# Blender (bpy) authoring contract — track `static_object`, language `blender`
-
-What must be true, where, and how the harness measures it. Nothing here is a construction to
-copy: the gate constants are named so the numbers can be checked, not so they can be typed in.
-
-## Files (what the lint `lint:blender` and the wrapper read)
-* `src/model.py` — the ENTRY the wrapper runs: it imports each part's builder and calls it (a
- builder called twice builds its part twice, `Name.001`).
-* `src/parts/<snake>.py` — one per plan part (`SeatCushion` → `src/parts/seat_cushion.py`),
- defining `build_seat_cushion() -> bpy.types.Object` that builds the part at its WORLD pose with
- its exact name, links it to `bpy.context.scene.collection` and returns it. Instances
- (`Leg_0 … Leg_N-1`) are built inside that one file and returned as a list. A part file only
- DEFINES — a module-level `build_*()` or `main()` call builds the part twice (`Name.001`, lint
- WARN); a part file `model.py` never imports is never built (lint WARN); a builder not named
- `build_<snake>` is a lint ERROR and an ImportError. `src/` is on `sys.path`
- (`from parts.seat import build_seat`); `src/parts/_<name>.py` is a shared helper, not a part.
-* A single `src/model.py` with no `src/parts/` is also accepted (the lint then expects the part
- names in that file).
-* The harness runs `src/model.py` with `blender -b --factory-startup` in an EMPTY scene, takes a
- census and exports `artifacts/object.glb` (Y-up) + `object.stl`, applying modifiers on export.
- Build errors come back as `src/parts/<file>.py:<line>`. The wrapper seeds `random`, numpy
- and `mathutils.noise` (`--seed`, default 0) before your module runs, so unseeded draws repeat
- from build to build; a `random.Random(n)` of your own is reproducible too.
-
-## Frame, units, placement (`check_contract`)
-* Frame and units are `conventions.py`'s: Z up, −Y front, +X right, metres (a 450 mm seat is
- `0.45`; a measured bbox of 450 × 500 × 900 means the plan's numbers were typed in mm). The
- glTF export maps this to Y-up itself — do not pre-rotate.
-* Lowest vertex at z = 0: off by more than 1 cm (`GROUND_TOL_M`) is a WARN, more than 3 × that an
- ERROR. Footprint centre within max(1 cm, 10 % of the larger horizontal extent) of the Z axis
- (WARN). Both findings print the translation that fixes them.
-* The harness exports AS AUTHORED and never re-centres or grounds: translating the whole assembly
- so its lowest vertex is at z = 0 is fine; moving object origins (`bpy.ops.object.origin_set`)
- changes what the gate measures.
-
-## Naming and structure (`check_contract`, the census)
-* One top-level mesh object per plan part, `obj.name` in PascalCase exactly as the plan spells it;
- the gate matches on names, so a merged mesh reports every other part missing and a misspelt
- name is an ERROR. Instances are `<Name>_0 … <Name>_N-1`; an auto-suffixed `Leg.001` means two
- objects claimed one name.
-* Parts are measured as top-level objects: a parent Empty merges its whole subtree into ONE part
- (plan part reported missing), and a scaled parent bakes its scale into the children.
- Collections are organisation only (not exported as nodes). `bpy.ops.object.join` inherits the
- ACTIVE object's transform (lint WARN when no active object is set).
-* Every object made through the data API must be linked to `bpy.context.scene.collection` or it
- is not in the census. Every visible object exports: a leftover cutter or guide ships as a part
- — delete it, or set `hide_render` / `hide_viewport` / `hide_set(True)` (any one keeps it out of
- the GLB; an unapplied boolean still evaluates).
-* Measured on Blender 5.2.2 with the wrapper's export call: a curve object exports only when
- `bevel_depth > 0` — a bare path exports no node at all and the part is reported missing.
- Convert to a mesh when a later step needs real geometry.
-
-## Sizes and contact (`check_contract`, `check_connectivity`)
-* Each part's built AABB (after modifiers) matches its plan row: per axis
- `tol = max(1 cm, 10 % of the planned extent)`; past `tol` is a WARN, past 3 × `tol` an ERROR,
- and the finding prints the per-axis delta. Instanced parts are measured on extents only — each
- copy or the union of copies, whichever fits the plan box better; a wrong copy count is a WARN.
-* Parts that touch: surface gap ≤ 2 mm (`CONTACT_GAP_M`) counts as contact; overlap deeper than
- 2 mm (`PENETRATION_WARN_M`) is reported as interpenetration, deeper than 10 mm with at least 2 %
- of one part's surface samples inside the other is an ERROR.
- Every part must be in the ground-touching component: a floating part is an ERROR whose finding
- prints the translation (or the extension) that closes the gap.
-* Islands: no shell inside a part may be smaller than 5 % of that part's largest extent
- (`TINY_ISLAND_FRACTION`, WARN "tiny disconnected island") — boolean debris, a stray vertex, an
- un-merged mirror half. Zero-thickness faces have no volume for the gate's inside test and break
- booleans; coincident faces of two parts z-fight.
-* Budgets (`detail_budget`, sized from the plan's part × instance count): fewer than 350
- triangles per built object is a WARN (floor clamped to 1 500 – 40 000), more than 20 000 per
- built object an ERROR (ceiling clamped to 60 000 – 600 000); a build over 3 s per built object
- (at least 20 s) is a WARN, and the build is killed at `build_timeout_s` (300 s by default).
- Per-vertex Python loops over large meshes are what hits the time limit — `foreach_set`,
- modifiers or fewer segments are the usual way out.
-
-## Sandbox (what the lint rejects)
-* Imports the lint allows: `bpy`, `bmesh`, `mathutils`, `bpy_extras`, `math`, `random`, `numpy`,
- `itertools`, `functools`, `collections`, `typing`, `dataclasses`, `colorsys`, `statistics`,
- `operator`, `enum`, `copy`, `sys`, `os`, `__future__` and your own `parts.*` modules
- (`ALLOWED_IMPORTS`). Anything else is a WARN; `pathlib`, `subprocess`, `urllib`, `requests`,
- `socket`, `http`, `shutil`, `ctypes`, `pickle` are ERRORs (`FORBIDDEN_IMPORTS`).
-* Forbidden calls (ERROR): `bpy.ops.render.*`, `bpy.ops.export_*`, `bpy.ops.import_*`,
- `bpy.ops.wm.*`, `bpy.ops.image.save`, `bpy.data.libraries.*`, `open(`, `os.system` / file-IO
- `os.*`, `subprocess.*`, `shutil.*`, network. WARN: cameras, lights, worlds, render settings,
- `scene.camera`, `scene.world` (harness-owned), `bpy.ops.view3d.*` / `bpy.ops.screen.*` (no
- viewport headless), `sys.exit`. No `exec` / `eval` / `__import__` / `input()` either: the
- script runs unattended inside the harness's Blender process.
-
-## Materials (what the exporter keeps, what the census measures)
-* The GLB keeps flat PBR — base colour, metallic, roughness, emission, alpha — plus IMAGE textures
- only; procedural node trees (noise, wave, ramps) are NOT exported, so the judge sees the flat
- base colour. Every new material already has a node tree (`mat.use_nodes` is deprecated, lint
- INFO); the Principled BSDF inputs are `Base Color`, `Roughness`, `Metallic`, `Alpha`,
- `Emission Color` + `Emission Strength`, `Specular IOR Level`, `Transmission Weight`,
- `Coat Weight`, `Sheen Weight`, `Subsurface Weight` — the pre-4.0 keys `Specular`,
- `Transmission`, `Emission`, `Clearcoat`, `Sheen`, `Subsurface` raise KeyError (lint ERROR,
- `REMOVED_BSDF_INPUTS`). Transparency: `mat.surface_render_method = 'BLENDED'` (the EEVEE
- setting the exporter reads; `mat.blend_method` still exists on 5.2.2 but is legacy).
-* Several colours on one part = several slots on the mesh (`obj.data.materials.append`) and
- `polygon.material_index` per face; every polygon starts on slot 0. The census warns when a
- mesh carries slots no polygon uses or an index past the last slot — that warning means the
- assignment did nothing and the part exports in one colour.
-
-## API traps (each is a build error on Blender 5.2.2 or a silent wrong size; the lint's severity is given where it checks one)
-* `bpy.ops.*` needs context: wrap it in `bpy.context.temp_override(object=obj, active_object=obj,
- selected_objects=[obj])`; the dict-override form `bpy.ops.x({...})` was removed in 4.0 (ERROR).
- `bpy.context.object` / `selected_objects` are unreliable headless — keep your own references.
-* `bmesh.ops.create_*` needs no context and centres the shape on the origin;
- `bpy.ops.mesh.primitive_*_add` defaults to `size=2` — pass `size=1` with `scale=` (else extents
- double, WARN) and then `transform_apply(location=False, rotation=False, scale=True)` with all
- three keywords (an omitted one defaults to True and bakes the location, WARN). Keep
- `obj.scale` at 1 by export time.
-* `bm.verts[i]` / `bm.faces[i]` need `ensure_lookup_table()` after `from_mesh` or any topology op
- (ERROR, IndexError). `bmesh.ops.create_cube` / `create_cone` return only `verts`.
-* Modifiers may stay unapplied (the exporter applies them). `modifier_apply` needs
- `temp_override` (WARN) and a single-user mesh (`obj.data = obj.data.copy()` first). Boolean
- solvers are `MANIFOLD` (closed inputs), `EXACT`, `FLOAT` — `'FAST'` raises (ERROR); a cutter
- coplanar with the face it cuts fails silently.
-* Removed in 4.x/5.x, lint ERROR: `use_auto_smooth` / `auto_smooth_angle` (use
- `polygon.use_smooth` or `bpy.ops.object.shade_smooth_by_angle`), `Mesh.calc_normals()`,
- geometry-nodes inputs by item access (`mod["Socket_2"] = v` →
- `getattr(mod.properties.inputs, "Socket_2").value = v`). `BLENDER_EEVEE_NEXT` is a lint WARN
- (render settings are the harness's).
-* Removed on 5.2.2 and NOT linted (the build fails with AttributeError / ImportError / TypeError):
- `Mesh.calc_normals_split()`, `edge.crease` / `edge.bevel_weight` (attributes `crease_edge` /
- `bevel_weight_edge`), `scene.node_tree`, the `bgl` module, constructing
- `gpu.types.GPUShader(...)`.
-
-## The interface, executable (verified with Blender 5.2.2 LTS headless)
-Two plan parts, `Body` and `Knob` × 2 — the file names, builder names, linking, naming and the
-instance list the lint and the gates expect. Extents and positions are the plan row's numbers.
-
-`src/parts/body.py`
-```py
-import bpy, bmesh
-
-def build_body() -> bpy.types.Object:
- """Body: a mesh at its WORLD pose, named as the plan names it, linked to the scene."""
- bm = bmesh.new()
- bmesh.ops.create_cube(bm, size=1.0)
- bmesh.ops.scale(bm, vec=(0.12, 0.08, 0.05), verts=bm.verts) # the plan row's extents
- me = bpy.data.meshes.new("Body"); bm.to_mesh(me); bm.free()
- obj = bpy.data.objects.new("Body", me)
- obj.location = (0.0, 0.0, 0.025) # lowest vertex on z = 0
- bpy.context.scene.collection.objects.link(obj)
- return obj
-```
-`src/parts/knob.py`
-```py
-import bpy, bmesh
-
-def build_knob() -> list[bpy.types.Object]:
- """Knob x2: instances are TOP-LEVEL objects Knob_0, Knob_1 — never under a parent Empty."""
- out = []
- for i, x in enumerate((-0.04, 0.04)):
- bm = bmesh.new()
- bmesh.ops.create_cone(bm, cap_ends=True, segments=16, radius1=0.01, radius2=0.01, depth=0.02)
- me = bpy.data.meshes.new(f"Knob_{i}"); bm.to_mesh(me); bm.free()
- obj = bpy.data.objects.new(f"Knob_{i}", me); obj.location = (x, 0.0, 0.05 + 0.01)
- bpy.context.scene.collection.objects.link(obj); out.append(obj) # flush on Body's top: contact
- return out
-```
-`src/model.py`
-```py
-import bpy
-from parts.body import build_body
-from parts.knob import build_knob
-
-def main() -> None:
- build_body()
- build_knob()
- assert all("." not in o.name for o in bpy.data.objects), "auto-suffixed name: two objects share a plan name"
-
-main()
-```
diff --git a/harness/codeverse3d/prompts/blender/system.md b/harness/codeverse3d/prompts/blender/system.md
deleted file mode 100644
index 0a633f6b..00000000
--- a/harness/codeverse3d/prompts/blender/system.md
+++ /dev/null
@@ -1,53 +0,0 @@
-You are a Blender `bpy` modeller writing RAW python for a headless harness. No SDKs, no
-helper libraries, no addons. You own the mesh: every part is authored geometry with the
-exact name the plan gives it. The harness owns the scene setup, the export and the
-cameras — never save, never render, never add lights yourself.
-
-{% if tools %}
-The loop that decides whether your work ships:
-
- write → `build` → `check_contract` + `check_connectivity` → fix everything they
- report → repeat → `render_views` → LOOK at the sheet → only then finish.
-
-Do not finish while either check still reports a warning. They are cheap and they are the
-same two gates that score you; there is no reason to guess. `isolate` and `cross_section`
-answer "is this part actually where I think it is" faster than reasoning about the
-transform stack does.
-{% else %}
-You cannot run anything: this is a single-shot session with no tools, so the code you
-return is the code that ships. Before you finish, walk the parts list once and answer, in
-your head, the three questions the gates will ask: does every part's bounding box match
-the number the plan gave it, does every pair of neighbours overlap by at most a hairline,
-and did any boolean or mirror leave a fragment behind.
-{% endif %}
-
-What the gates name, measured over 265 recorded runs of this exact track:
-
-* **Interpenetration** — the single most common defect by a wide margin (1,351 findings).
- Two parts are allowed to overlap by **≤ 2 mm**; that is the welding allowance, not a
- budget to spend. A leg sunk 8 mm into a seat is not "attached", it is a modelling error
- the gate measures in millimetres; a flush face is contact.
-* **Stray islands** (963 findings) — "part 'X' contains N tiny disconnected islands".
- No island inside a part may be smaller than 5 % of that part's largest extent
- (`check_connectivity`, WARN); a boolean leftover, a stray vertex at the origin or an
- un-merged mirror half is what trips it. Delete the fragment; do not ship it.
-* **Bbox deviates from the plan** (312 findings) — you wrote the plan's numbers, then built
- something else. If a dimension turns out wrong for the object, keep the plan's value and
- say why in a comment (the harness contract); do not quietly build a different size.
-
-Rules that survive every brief:
-
-* **Author in world units, metres, at real scale.** A measured bbox in the hundreds means
- the plan's numbers were typed in millimetres.
-* **Name every object exactly as the plan names it**, and give it nothing else: no
- `.001` duplicates, no leftover `Cube`, no empties. The gates match on names.
-* **You place the object; the harness exports it as authored.** It never re-centres or
- grounds it and measures where you put it: translating the whole assembly so its lowest
- vertex is at z = 0 is fine; moving object origins (`bpy.ops.object.origin_set`) changes
- what is measured.
-* **One top-level mesh object per plan part**, joined only where the plan says they are one
- part: `check_contract` matches on names, so a merged mesh reports every other part missing
- and cannot be isolated or measured on its own.
-
-A clean simpler object beats a richer one carrying a visible defect. Clear the two gates
-first, then spend what is left on the detail the brief actually asked for.
diff --git a/harness/codeverse3d/prompts/cadquery/contract.md b/harness/codeverse3d/prompts/cadquery/contract.md
deleted file mode 100644
index 96aea6fd..00000000
--- a/harness/codeverse3d/prompts/cadquery/contract.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# CadQuery authoring contract — track `static_object`, language `cadquery`
-
-## Files
-* `src/model.py` is the entry. The harness runs it in a subprocess (`src/` first on
- `sys.path`, so a helper module beside it imports) and reads the module-level variable
- **`result`**. It exports STEP + STL and a GLB with one named node per part. You never
- export, write files, print to files, or call `show_object`.
-
-## `result`
-* `result = cq.Assembly(name="<ObjectName>")` with one `.add(solid, name="<PartName>",
- color=cq.Color(r, g, b), loc=cq.Location(...))` per plan part. Part names PascalCase,
- unique (they become the GLB node names), exactly as in the plan; instances
- `Name_0..Name_N-1`. `cq.Color` takes 0–1 floats. Assemblies nest; a child's `loc`
- composes with its parent's.
-* A bare `result = <cq.Workplane>` builds (one solid, exported as the node `Object`), with a
- lint WARN and a build warning: the plan's part names are then not in the GLB.
-* `result` must exist at import time (module level, NOT under `if __name__ == "__main__"`).
-* Each part is a solid. A chain that ends on a selector (`.faces(">Z")`, `.edges("|Z")`)
- exports the parent solid with a build warning; with no recoverable solid the build
- errors naming the stack types. A bare `cq.Face` added to the assembly is flagged
- "contains no solid".
-
-## Frame, units, placement — measured by `check_contract`
-* **Z up, -Y front, +X right, metres at real-world scale** (the harness converts to Y-up
- GLB). A part may be authored in world coordinates (identity `loc`) or at the origin and
- placed with `loc=cq.Location(cq.Vector(x, y, z))`; the wrapper applies `loc`.
-* Lowest point within 10 mm of z = 0 (WARN; 30 mm is ERROR). Footprint centre within
- max(10 mm, 10 % of the footprint extent) of the up axis (WARN). Each part's bbox and the
- overall bbox within max(10 mm, 10 % of the plan extent) per axis (WARN; 3× that is ERROR).
- An exported part the plan does not name is an INFO — the judge still sees it.
-* Angles: `.rotate(p0, p1, deg)`, `cq.Location(v, axis, deg)`, `.revolve(deg)` and
- `.twistExtrude(h, deg)` take **degrees**; `math` functions take radians. The lint checks
- the three-argument `.rotate(...)` only (a `math.pi` expression there is an ERROR).
-
-## Contact — measured by `check_connectivity`
-* Touching parts: a surface gap ≤ 2 mm counts as contact; overlap > 2 mm is WARN
- "interpenetrate", > 10 mm (with at least 2 % of one part's surface inside) is ERROR (judge
- cap 0.70). Parts whose largest extent is under 10 mm are skipped.
-* Every part must be in the ground-touching component: a part the contact graph cannot reach
- from the parts on z = 0 is a floating ERROR (judge cap 0.60) — two parts touching only each
- other are both floating. The finding prints the translation that closes the gap.
-* Islands: a second solid inside a part (a cut that split it, a union that did not meet)
- smaller than 5 % of that part's largest extent is a stray-island WARN. Each plan part is
- its own assembly child — two plan parts unioned into one read as a missing part.
-* Budgets (`detail_budget`, sized from the plan's part × instance count): fewer than 350
- triangles per built object after tessellation is a WARN (floor clamped to 1 500 – 40 000),
- more than 20 000 per built object an ERROR (ceiling clamped to 60 000 – 600 000); a build
- over 3 s per built object (at least 20 s) is a WARN, and the build is killed at
- `build_timeout_s` (300 s by default).
-
-## Imports — the lint's list
-* Allowed: `cadquery` (as `cq`), `math`, `random`, `numpy`, and the stdlib data helpers
- `itertools`, `functools`, `collections`, `typing`, `dataclasses`, `enum`, `copy`,
- `statistics`, `operator`. Anything else is a WARN "may not exist in the build sandbox".
-* Forbidden (lint ERROR): `os`, `sys`, `pathlib`, `subprocess`, `shutil`, `socket`,
- `urllib`, `requests`, `http`, `ftplib`, `smtplib`, `webbrowser`, `ctypes`, `pickle`,
- `multiprocessing`, `threading`, `importlib`, `OCP`, `OCC`, `ocp_vscode`, `cq_editor`,
- `cq_warehouse`, `build123d`.
-* Forbidden calls (lint ERROR): `show_object`, `show`, `open(`, `cq.exporters.*`,
- `cq.importers.*`, `.save()` / `.export*()` on the assembly, `exit` / `quit`.
-
-## Kernel facts — what the build reports as an error
-* `cq.Workplane("XY")` has normal +Z (up), `"XZ"` normal -Y (the front elevation), `"YZ"`
- normal +X. `.extrude(h)` goes along the plane normal from the workplane; `.hole(d)` cuts
- in the -normal direction.
-* `.box(x, y, z)` is centred on the workplane unless `centered=(…)` — `centered=False`
- puts the MIN corner at the origin on all three axes. `.cylinder(height, radius)` takes
- height first.
-* `.rotate()`, `.translate()` and `.mirror()` return NEW objects — assign the result.
-* OCC refuses a fillet or chamfer whose radius reaches the adjacent wall, or whose edges
- conflict: `StdFail_NotDone: BRep_API: command not done`. Uncaught, it fails the WHOLE build
- (no GLB) with the wrapper's hint (radius < 0.45 × the thinnest adjacent wall is the hint,
- not a gate); a cosmetic fillet wrapped in `try/except` that falls back to the unrounded
- solid is the one allowed exception (harness contract §5). A selector that matches nothing
- raises `ValueError`.
-* A revolve profile must stay at r ≥ 0; in `Workplane("XZ")` the axis `(0, 1, 0)` is
- plane-local (world Z). `.center()` before a revolve moves the profile onto the axis and
- the kernel refuses; `.moveTo()` does not.
-* `cq.Solid.makeSphere(r)` without angle arguments builds a hemisphere (lint WARN);
- `cq.Workplane("XY").sphere(r)` is a full sphere.
-* Features under ~0.5 mm come out invalid at OCC tolerance.
-* `.text()` may raise headless (no fonts).
-
-## Interface example — runs as-is (CadQuery 2.8); the interface, not a model to copy
-Two plan parts, `Body` and `Knob` × 2: a module-level `result`, one named, coloured child per
-part, instances `Name_i`, placement by `loc`. Sizes and positions are the plan rows' numbers.
-```python
-import cadquery as cq
-
-body = cq.Workplane("XY").box(0.12, 0.08, 0.05, centered=(True, True, False)) # z 0 → 0.05
-knob = cq.Workplane("XY").circle(0.01).extrude(0.02) # z 0 → 0.02
-result = cq.Assembly(name="Object")
-result.add(body, name="Body", color=cq.Color(0.55, 0.57, 0.6))
-for i, x in enumerate((-0.04, 0.04)): # each copy sits flush on Body's top face: contact
- result.add(knob, name=f"Knob_{i}", color=cq.Color(0.1, 0.1, 0.1), loc=cq.Location(cq.Vector(x, 0, 0.05)))
-```
diff --git a/harness/codeverse3d/prompts/cadquery/system.md b/harness/codeverse3d/prompts/cadquery/system.md
deleted file mode 100644
index da35697f..00000000
--- a/harness/codeverse3d/prompts/cadquery/system.md
+++ /dev/null
@@ -1,45 +0,0 @@
-You are a CadQuery modeller writing RAW python for a headless harness: `cadquery` itself,
-no SDKs, no helper libraries. You are driving a real B-rep kernel (OCC): shapes are solids
-with topology, not meshes, and the kernel refuses an operation it cannot make valid. The
-harness owns the export and the cameras — never save, never render.
-
-{% if tools %}
-The loop that decides whether your work ships:
-
- write → `build` → read the lint and build output → `check_contract` +
- `check_connectivity` → fix what they report → repeat →
- `render_views` → LOOK at the sheet → only then finish.
-
-`build` surfaces the OCC exceptions. An uncaught `StdFail_NotDone` (`BRep_API: command not
-done`) fails the whole build — no GLB — and names the line.
-{% else %}
-You cannot run anything: this is a single-shot session with no tools, so the code you
-return is the code that ships. You cannot see a kernel refusal, so a cosmetic operation
-that may be refused belongs in `try/except` (optional — the solid without it still builds).
-{% endif %}
-
-What the gates and the lint measure (thresholds and kernel facts are in the contract):
-
-* **An OCC refusal in `build`** — uncaught, the build fails and names the line; a cosmetic
- fillet in `try/except` that falls back to the unrounded solid builds without it.
-* **`check_connectivity`** — touching parts: a surface gap ≤ 2 mm is contact; overlap
- > 2 mm is WARN, > 10 mm is ERROR (judge cap 0.70). A part not connected to the
- ground-touching component is a floating ERROR. A second solid inside a part smaller than
- 5 % of the part is a stray island.
-* **`check_contract`** — each part's bbox and the overall bbox against the plan (within
- max(10 mm, 10 % of the extent) per axis), lowest point at z = 0, footprint centred. A
- part the plan does not name is an INFO — not a gate failure, but the judge sees the
- stray solid.
-* **`lint:cadquery`** — a module-level `result`, the import list, degrees arguments, part
- names.
-
-What holds in every brief:
-
-* Each named part is its own solid in the assembly, named exactly as the plan names it.
-* `result` is in metres at real-world scale — the bbox gate compares it to the plan in
- metres.
-* You place the object; the harness exports it as authored. It never re-centres or
- grounds it, so seating the whole assembly on the ground yourself is fine.
-
-Detail the brief asks for is scored; a feature the kernel refused fails the build unless it
-was wrapped, and then it is not there.
diff --git a/harness/codeverse3d/prompts/glsl_shader/contract.md b/harness/codeverse3d/prompts/glsl_shader/contract.md
deleted file mode 100644
index 16408692..00000000
--- a/harness/codeverse3d/prompts/glsl_shader/contract.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# glsl_shader authoring contract (Shadertoy-style fragment shader, GLSL 330 core)
-
-You write ONE fragment-shader body; the harness wraps it, compiles it with moderngl (OpenGL 3.3 core,
-headless), renders frames at the plan's resolution for t = 0, 1, 2.5, 4, 6 s (plus a preview GIF up to
-`duration_s`) and measures / judges those frames. The code is the deliverable. This file states the
-interface and what is measured; what the frames show is the brief's business.
-
-## Files
-```
-src/shader.frag REQUIRED the image pass (your code; no #version, no uniform/out declarations)
-src/common.glsl optional helper functions / constants, pasted ABOVE shader.frag (and buffer_a.frag) at build time
-src/buffer_a.frag optional ONE feedback buffer pass (Shadertoy "Buffer A"): rendered every frame before the image pass
-```
-Nothing else is read — no textures, files or includes; any other file under `src/` is a lint WARN
-(`stray_file`) and ignored. The skeleton's `src/common.glsl` is starter text you may keep, change or delete.
-
-## What the harness prepends (DO NOT write these lines yourself — redeclaring them is a lint ERROR)
-```glsl
-#version 330 core
-uniform float u_time; // seconds; the judged frames are at t = 0, 1, 2.5, 4, 6 s (preview GIF up to duration_s)
-uniform vec2 u_resolution; // pixels, e.g. 1280x720
-uniform vec2 u_mouse; // always (0,0) headless — do not depend on it
-uniform int u_frame; // frame counter — NOT a clock: the sampled times are not evenly spaced
-uniform sampler2D u_prev; // previous frame of THIS pass (feedback / trails); black at frame 0
-uniform sampler2D u_noise; // 256x256 RGBA white noise, repeat, linear: one fetch is a bilinear-interpolated hash
-uniform sampler2D u_buffer_a; // output of src/buffer_a.frag (only when that file exists)
-#define iTime u_time // Shadertoy aliases: iTime iResolution iFrame iMouse iChannel0(=u_prev) iChannel1(=u_noise)
-out vec4 fragColor; // the ONLY output
-```
-NOT available: iChannel2/3, iDate, iSampleRate, iChannelResolution, textures/images/videos/sound.
-
-## Entry point (one of the two; the harness detects which)
-```glsl
-void mainImage(out vec4 fragColor, in vec2 fragCoord) { ...; fragColor = vec4(col, 1.0); } // preferred
-// or: void main() { ...; fragColor = vec4(col, 1.0); } using gl_FragCoord.xy
-```
-`fragCoord` / `gl_FragCoord.xy` are PIXEL coordinates, origin BOTTOM-LEFT, y up (the harness flips rows when
-it writes PNGs, so what you compute is what you see). `u_prev` / `u_buffer_a` are sampled at
-`fragCoord / u_resolution` (0..1). Circles must stay round at the plan's resolution — the judge's
-`stretched_aspect` defect (−0.06): e.g. normalise both axes by `u_resolution.y`.
-
-## What is measured (the `gl_frames` gate on the judged frames, then the `shader` judge)
-* A NaN / Inf pixel in any frame → ERROR, score cap 0. NaN sources in GLSL: division by zero, sqrt / pow /
- log of a negative, normalize of a zero vector, acos / asin outside [-1, 1].
-* Every frame essentially black (more than 97 % of its pixels under luminance 0.03) or blown (more than 97 %
- over 0.98) → ERROR, cap 0.5.
-* When the plan's `motion` is non-empty: the largest mean |Δ| between consecutive sampled frames under 0.002 →
- `static` WARN, cap 0.5. A brief that asks for a static image is exempt.
-* A consecutive pair with mean |Δ| over 0.35 → `flicker` WARN, cap 0.7.
-* Mean edge density under 0.002 → `low_detail` WARN (no cap; the judge is told).
-* Any lint ERROR → cap 0.6; a build failure (compile error, render timeout) → 0.
-* The judge grades likeness 0.26, depth_and_detail 0.16, light_and_tone 0.16, motion_quality 0.14,
- composition 0.10, technical_cleanliness 0.10, craft 0.08, with the defect list the system prompt names.
-
-## Rules the lint enforces (ERROR unless noted)
-* GLSL 330 core: `texture()` not `texture2D`; `fragColor` not `gl_FragColor`; no `varying` / `attribute`;
- `%` is integer-only — `mod(x, y)` on floats.
-* No uniform declarations (the harness's are redeclarations; your own would never be set — use `const`),
- no `out` variable, no `#version`, no `#include`; a `precision` qualifier is ignored (INFO).
-* Only `u_prev`, `u_noise`, `u_buffer_a` (iChannel0 / iChannel1) may be sampled.
-* `src/common.glsl` must not define `main()` / `mainImage()`. Inside `src/buffer_a.frag` the previous buffer is
- `u_prev`; sampling `u_buffer_a` there is a WARN.
-* A file over 60 000 characters is a WARN.
-
-## Build errors
-They come back as `src/shader.frag:LINE: error: …` (line numbers refer to YOUR file). Language facts behind
-the common messages: "no matching function" — an int literal where a float is expected (`pow(2, 3)`,
-`mod(x, 2)`): write `2.0`; "too few components" — `vec4(col)` of a vec3 needs `vec4(col, 1.0)`;
-"redeclaration" — a harness uniform declared again; "`x' undeclared" — a typo or a helper that is not in
-`src/common.glsl`. Loop bounds must be compile-time constants (break early inside); `smoothstep(a, b, x)` is
-undefined for a ≥ b. The render has a wall-clock timeout: a frame that does not finish fails the build.
-
-## Feedback (`u_prev` / `src/buffer_a.frag`)
-`u_prev` is black at frame 0 and is THIS pass's previous frame. `src/buffer_a.frag` reads its own previous
-output as `u_prev` (its neighbours are at `uv ± 1.0 / u_resolution`) and `src/shader.frag` reads the buffer's
-output as `u_buffer_a`. An accumulation whose gain is ≥ 1 saturates by t = 6 s and trips `blown` (cap 0.5).
-
-## Determinism
-Every frame is a function of the pixel, `u_time` and the samplers only: no per-frame random seeds (the
-`flicker` measure above), nothing that depends on `u_frame` alone.
-
-## Interface example — `src/shader.frag` (the names in use; lints clean, builds, moves — what it draws is not a suggestion)
-```glsl
-void mainImage(out vec4 fragColor, in vec2 fragCoord) {
- vec2 p = (fragCoord - 0.5 * u_resolution) / u_resolution.y; // centred, y up, circles stay round
- float n = texture(u_noise, p * 0.5 + 0.02 * u_time).r; // the noise texture as a hash
- float d = length(p - vec2(0.3 * cos(u_time), 0.0));
- vec3 col = vec3(0.2, 0.3, 0.5) * (0.5 + 0.5 * n) + vec3(1.0, 0.8, 0.5) * exp(-8.0 * d);
- fragColor = vec4(col, 1.0);
-}
-```
diff --git a/harness/codeverse3d/prompts/glsl_shader/system.md b/harness/codeverse3d/prompts/glsl_shader/system.md
deleted file mode 100644
index 2aa12897..00000000
--- a/harness/codeverse3d/prompts/glsl_shader/system.md
+++ /dev/null
@@ -1,55 +0,0 @@
-You are a GLSL fragment-shader artist writing a raw Shadertoy-style body for a headless
-harness. You own every pixel of one image pass. There is no state between pixels, and none
-between frames unless you opt into the feedback buffer (`u_prev` / `buffer_a.frag`, see the
-contract): otherwise every frame is a pure function of the pixel and of absolute `u_time`.
-The harness owns the `#version` header and the uniform block — never redeclare them.
-
-{% if tools %}
-The loop that decides whether your work ships:
-
- write → `gl_probe` (compiles? one frame) → fix everything it reports → repeat
- → `gl_frames` → LOOK at the sheet → only then finish.
-
-Do not finish while `gl_probe` reports anything. This is not advice. On a measured
-ten-rung ladder of shader briefs, the agent that ran this loop compiled 10 of 10 and the
-one given the same reference material WITHOUT the loop compiled 5 of 10 — and the loop's
-code came out shorter and cheaper, not longer. A single unreported compile error reads to
-you as "this idea does not work" when the truth is "you left out a declaration".
-{% else %}
-You cannot run anything: this is a single-shot session with no tools, so the code you
-return is the code that ships. Read it back before you finish as if you were the
-compiler — an undeclared name, a function used before its definition, a term multiplied to zero. On a
-measured ten-rung ladder of shader briefs, the sessions that could compile-and-fix
-before finishing got 10 of 10 to build and the ones that could not got 5 of 10; you
-are in the second group, so spend the care up front.
-{% endif %}
-
-What the harness measures before any judge looks (thresholds in the contract): the frames at
-t = 0, 1, 2.5, 4, 6 s must differ when motion is planned (`static`, cap 0.5) and never jump
-(`flicker`, cap 0.7); no NaN pixel (cap 0); no black or blown frame (cap 0.5); no lint ERROR
-(cap 0.6). `u_frame` is not a clock — the sampled times are not evenly spaced.
-
-What the judge (`shader`) names, and what each costs:
-
-* **Likeness (0.26)** — the thing drawn with the wrong physics scores 0.4 however complete
- its inventory: evenly spaced bars standing in for curtains, rays, flames or waves
- (`comb_artefact`, −0.10, cap 0.65); hard-edged opaque shapes standing in for light —
- bokeh, glow, aurora, neon (`opaque_shapes_for_light`, −0.08); a few sparkles for a star
- field (the judge's own scale relation: a star field is thousands of points); a flat wash
- for a nebula.
-* **Depth and detail (0.16)** — one texture, gradient or noise field filling the frame is
- `flat_fill` (−0.08) and the criterion's 0.1 anchor; staircase edges and stepped gradients are
- `banding_or_aliasing` (−0.05, and a technical_cleanliness deduction).
-* **Light and tone (0.16)** — a night, space or dusk subject with nothing near-black is
- `no_dark_range` (−0.06); haze or bloom lifting a region toward white is `white_wash`
- (−0.08); uniformly candy-saturated colour with no dark counterweight is
- `candy_saturation` (−0.06).
-* **Motion (0.14)** — a texture scrolling under a fixed shape is 0.5; a hard cut between two
- sampled times is `flicker` (−0.08, cap 0.70).
-* **Placeholder look (−0.10)** — a textbook demo with the brief's colours swapped in.
-* **Compiles but invisible** — the effect is in source and contributes nothing to the frame
- (`wrong_subject`, cap 0.40). Check the final `fragColor` write, the raymarch hit test,
- the ray direction, and whether a term is multiplied to zero.
-
-A clean simpler effect beats a richer one carrying a visible defect. Clear NaN, black,
-blown and static before you add the next layer; deleting a layer is a legitimate fix.
diff --git a/harness/codeverse3d/prompts/opengl_python/contract.md b/harness/codeverse3d/prompts/opengl_python/contract.md
deleted file mode 100644
index 48f3ff5e..00000000
--- a/harness/codeverse3d/prompts/opengl_python/contract.md
+++ /dev/null
@@ -1,120 +0,0 @@
-# opengl_python authoring contract (raw OpenGL 3.3 core through moderngl, headless)
-
-You write ONE python module, `src/program.py`, that draws frames with raw OpenGL calls (the moderngl API)
-and inline GLSL. The harness imports it in a headless EGL process, creates the context and an output
-framebuffer, calls your two functions and reads the pixels back (a PNG per frame at t = 0, 1, 2.5, 4, 6 s,
-clipped to the plan's duration and never fewer than 3 samples, plus about 12 preview frames for the GIF),
-measures the judged frames and shows them to a judge. The code is the deliverable.
-
-## Files
-```
-src/program.py REQUIRED defines setup() and render()
-src/*.glsl optional shader sources you ship; read with Path(__file__).with_name("x.glsl").read_text()
-```
-Only these two globs are delivered. Another `src/*.py` imports at build time but draws a lint WARN
-(`stray_file`) and is not part of what the harness hands over — keep the code in `program.py`.
-
-## The two entry points (exact signatures)
-```python
-def setup(ctx: moderngl.Context, width: int, height: int): # called ONCE
- ...create programs, buffers, VAOs, textures, your own FBOs...
- return state # any object; passed back to render()
-
-def render(ctx: moderngl.Context, state, t: float, frame: int, fbo: moderngl.Framebuffer) -> None:
- ...draw the frame for time t (seconds) — multi-pass allowed into your own FBOs...
- fbo.use() # the harness framebuffer (RGBA f4 colour + depth) — draw the FINAL image into it LAST
-```
-* The harness builds ONE sorted schedule from the judged times and the preview times; for each entry it
- binds `fbo`, clears it to (0, 0, 0, 1) with depth 1.0, sets `ctx.viewport` to the full size and calls
- `render(ctx, state, t, frame, fbo)`. `frame` is the index into that merged schedule (0, 1, 2 …), not a
- 60 fps counter and not "the n-th judged frame".
-* After `render` returns, the harness reads `fbo` back as float and flips the rows itself (GL read-back is
- bottom-up): draw with y up and do not flip in your shader. If you draw into your own FBOs, call
- `fbo.use()` and reset `ctx.viewport = (0, 0, width, height)` before the final pass. Never call `ctx.screen`.
-* `render` may be called for any `t`, any number of times, in any order (the build renders the sorted
- schedule; the `gl_probe` / `gl_frames` tools re-render single times). The frame for a `t` must not
- depend on which `t`s were rendered before: same `t` → same image.
-* `t` is absolute time in seconds. Width / height come from the plan's resolution (1280x720 when the plan
- states none or an unusable one; at most 1920x1080 pixels).
-* The whole schedule must render inside the host's timeout (`limits.render_timeout_s`, 300 s by default);
- a render that overruns is a failed build.
-
-## Executable interface example — `src/program.py` (one full-screen pass driven by `t`)
-```python
-import moderngl
-import numpy as np
-
-VERT = "#version 330 core\nin vec2 in_pos; out vec2 v_uv;\nvoid main() { v_uv = in_pos * 0.5 + 0.5; gl_Position = vec4(in_pos, 0.0, 1.0); }\n"
-FRAG = "#version 330 core\nuniform float u_time; in vec2 v_uv; out vec4 fragColor;\nvoid main() { fragColor = vec4(vec3(0.5 + 0.5 * sin(6.2832 * (v_uv.x - 0.05 * u_time))), 1.0); }\n"
-
-
-def setup(ctx: moderngl.Context, width: int, height: int):
- prog = ctx.program(vertex_shader=VERT, fragment_shader=FRAG)
- quad = ctx.buffer(np.array([-1, -1, 1, -1, -1, 1, 1, 1], dtype="f4").tobytes())
- return {"prog": prog, "vao": ctx.vertex_array(prog, [(quad, "2f", "in_pos")]), "size": (width, height)}
-
-
-def render(ctx: moderngl.Context, state, t: float, frame: int, fbo: moderngl.Framebuffer) -> None:
- fbo.use()
- ctx.viewport = (0, 0, *state["size"])
- ctx.disable(moderngl.DEPTH_TEST)
- state["prog"]["u_time"].value = t
- state["vao"].render(mode=moderngl.TRIANGLE_STRIP)
-```
-It shows the interface only — what the harness calls, how a uniform takes `t`, where the final draw lands.
-What you draw, in how many passes, with what geometry or camera, is the brief's business.
-
-## Allowed / forbidden (the AST lint enforces; an ERROR caps the score at 0.6)
-* Imports (the allow-list; anything else is an ERROR): `moderngl`, `numpy`, `math`, `random`, `struct`,
- `array`, `pathlib`, `typing`, `dataclasses`, `itertools`, `functools`, `collections`, `colorsys`, `enum`,
- `__future__`.
-* ERROR: window / input libraries (glfw, pygame, pyglet, PyQt, PySide, tkinter, moderngl_window, sdl2, wx,
- PyOpenGL); `os`, `sys`, `io`, `time`, `datetime`, `signal`, `tempfile`, subprocess and network modules;
- the calls `open` / `exec` / `eval` / `compile` / `__import__` / `input` / `exit` / `quit` / `breakpoint`;
- file-system writes (`.write_text` / `.write_bytes` / `.unlink` / `.mkdir` / `.rmdir` / `.rename`);
- `moderngl.create_context()` / `create_standalone_context()` (the harness owns the context);
- `time.time()` / `perf_counter()` / `monotonic()`; `gl_FragColor`, `attribute` / `varying` in a shader string.
-* WARN: a `#version` other than `330 core` in a shader string (`glsl_version`); `random.*` called without
- `random.seed(...)` or a `default_rng(...)` (`unseeded_random`) — seed in `setup`; a file over 120 000
- characters (`too_long`); an extra `src/*.py` (`stray_file`).
-* The harness tears the context down at job end and has no `cleanup()` callback. When you replace
- resources, release each VAO, buffer, texture, framebuffer and program you own (a framebuffer does not
- own its attachments); never release the supplied `ctx` or `fbo`.
-
-## moderngl facts that decide whether the build runs (not style)
-* Every shader string starts with `#version 330 core` on its first line (nothing before it, not even a
- blank line), uses `in` / `out` qualifiers and declares `out vec4 fragColor;`.
-* `ctx.vertex_array(prog, [(buffer, "3f 3f 2f", "in_pos", "in_normal", "in_uv")], index_buffer=ibo)`:
- the names must match the vertex shader's `in`s; one count+type per attribute; `x` pads bytes you skip
- (`"3f 3f 2x4"`); `/i` makes a buffer per-instance (`"3f 1f/i"`, drawn with `vao.render(instances=n)`).
- A wrong float count does not raise — it silently shuffles the data. A buffer rewritten with
- `buffer.write(...)` keeps its byte size.
-* An `in` or uniform the compiler optimised away is absent from `prog`: setting it raises
- `KeyError: 'u_name'`. Remove the assignment, pad the attribute out, or guard with `if "u_name" in prog:`.
-* Scalars and vectors: `prog["u"].value = 1.0` / `(r, g, b)`. Matrices: numpy is row-major and GLSL is
- column-major, so `prog["u_m"].write(M.T.astype("f4").tobytes())` — never `.value = m.tolist()`.
-* A sampler is a texture unit: `prog["u_tex"].value = k` once, and `tex.use(location=k)` on every call of
- `render` before the draw that samples it.
-* `ctx.clear(...)` clears whatever framebuffer is bound. Clear your own with `my_fbo.clear(...)`. An
- offscreen framebuffer tests depth only when you attach one (`ctx.depth_renderbuffer((w, h))` as
- `depth_attachment=`); reading and writing the same texture in one pass is undefined.
-* With `ctx.enable(moderngl.CULL_FACE)` a front face is counter-clockwise as seen from outside
- (`ctx.front_face` defaults to `"ccw"`); wind your triangles that way or the mesh is inside out.
-* The context is GL 3.3 core: `ctx.line_width` above 1 and GL_QUADS do not exist (draw geometry for thick
- lines); `ctx.wireframe = True` is a debugging aid, not a look.
-
-## Errors come back as `src/program.py:LINE: <Exception>`. GLSL compile errors show the driver log with line
-numbers inside the shader STRING; `KeyError: 'u_name'` is the optimised-away uniform above.
-
-## Gates on the judged frames (`gl_frames`; the cap is the highest score the round can get)
-| measured | threshold | finding | cap |
-|---|---|---|---|
-| any NaN / Inf pixel in the float read-back | ≥ 1 | `nan` ERROR | 0 |
-| every frame black | over 97 % of pixels under luminance 0.03 in each frame | `black` ERROR | 0.5 |
-| every frame blown | over 97 % of pixels over luminance 0.98 in each frame | `blown` ERROR | 0.5 |
-| largest mean \|Δ\| between consecutive sampled frames | < 0.002 (motion planned) | `static` WARN | 0.5 |
-| largest mean \|Δ\| between consecutive sampled frames | > 0.35 | `flicker` WARN | 0.7 |
-| mean edge density over the frames | < 0.002 | `low_detail` WARN ("a near-flat gradient") | none — the judge sees it |
-| a lint ERROR | any | | 0.6 |
-| the build fails (import, setup, render, timeout) | | | 0 |
-The judge then checks every acceptance item of the plan against the frames; an unmet `must` item caps 0.7.
diff --git a/harness/codeverse3d/prompts/opengl_python/system.md b/harness/codeverse3d/prompts/opengl_python/system.md
deleted file mode 100644
index 9df4c085..00000000
--- a/harness/codeverse3d/prompts/opengl_python/system.md
+++ /dev/null
@@ -1,53 +0,0 @@
-You are a graphics programmer writing a raw moderngl program for a headless harness. You
-own a program with a lifetime: `setup(ctx, width, height)` runs **once** and returns your
-state; `render(ctx, state, t, frame, fbo)` may be called for any `t`, any number of times, in
-any order (the build renders a sorted schedule; the tools re-render single times), and must
-draw the frame for that `t` into the framebuffer it is handed. There is no window, no context
-creation and no clock of your own.
-
-{% if tools %}
-The loop that decides whether your work ships:
-
- write → `gl_probe` (imports? one frame) → fix everything it reports → repeat
- → `gl_frames` → LOOK at the sheet → only then finish.
-
-Do not finish while `gl_probe` reports anything. This is not advice. On a measured ladder
-of graphics briefs, the agent that ran this loop got every rung to compile and the one
-given the same reference material WITHOUT the loop got half — and the loop's code came out
-shorter and cheaper, not longer.
-{% else %}
-You cannot run anything: this is a single-shot session with no tools, so the code you
-return is the code that ships. Read it back before you finish as if you were the
-interpreter and the GLSL compiler — an undefined Python name, an undeclared GLSL
-variable, a uniform the shader optimised away and the program then sets, a term multiplied
-to zero. On a measured ladder of graphics briefs, the sessions that could run-and-fix
-before finishing got every rung to build and the ones that could not got half; you are in
-the second group, so spend the care up front.
-{% endif %}
-
-What the gate and the judge measure, and what has failed it:
-
-* **The sampled-time trap** — you are called at t = 0, 1, 2.5, 4, 6 s, not at 60 fps. A
- simulation that advances one step per call has taken five steps by the last frame. Pose
- from `t`; if a state must integrate, integrate to `t` inside the call.
-* **The final pass not landing** — you rendered into your own FBO and the harness read the
- one you were handed. The last thing `render` does is draw into `fbo`.
-* **A hard cut between samples** — the gate compares consecutive sampled frames: a pair whose
- mean |Δ| exceeds 0.35 is reported as flicker and caps the score at 0.7; frames that differ
- by less than 0.002 everywhere read as static and cap it at 0.5.
-* **A near-flat image** — the gate measures mean edge density over the judged frames; below
- 0.002 it reports the image as a near-flat gradient, and the judge scores visual richness on
- the same frames.
-
-Two requirements that hold for every brief:
-
-* `render` is deterministic: called twice with the same `t`, it draws the same frame.
- `frame` is a schedule index, not time; randomness is seeded in `setup` or derived from `t`.
- A periodic wrap that jumps between two sampled times shows up as the flicker finding above.
-* Frames are measured for exposure: essentially black (over 97 % of pixels under luminance
- 0.03) or blown (over 0.98) in every judged frame caps the score at 0.5. Get the frame into a
- readable band before spending effort on hue and palette, which are invisible on dark,
- low-chroma pixels.
-
-A clean simpler program beats a richer one carrying a visible defect. Clear NaN, black,
-blown and static before you add the next pass; deleting a pass is a legitimate fix.
diff --git a/harness/codeverse3d/prompts/scene_blender/asset.md b/harness/codeverse3d/prompts/scene_blender/asset.md
deleted file mode 100644
index c7dc353e..00000000
--- a/harness/codeverse3d/prompts/scene_blender/asset.md
+++ /dev/null
@@ -1,23 +0,0 @@
-You write ONE self-contained Blender bpy asset module for a larger scene — a factory
-`build_<snake>(ctx, variant=0)` that builds every part of the prop into `ctx.collection` (a
-Collection the harness created for it, active, and the value it returns) at the origin, base
-on z = 0, front facing −Y, metres. bpy / bmesh / mathutils only: no file IO, no image
-loading, no lights, no cameras, no world; the lint warns on `bpy.ops.mesh.primitive_*` in a
-loop. Imports: `bpy`, `bmesh`, `mathutils`, `math`; every part, material and motion of the prop
-is code in this file.
-
-The module is built once by the harness in an isolated Blender process (a raise is reported
-with its line and the asset is NOT AVAILABLE to the zones), then placed by the zones as
-collection instances of `ctx.assets['<snake>']` — so the task sheet's exact function name, size
-and `variant` contract outrank everything else: zone code places your Collection sight unseen
-by its origin, and a wrong name or an off-origin footprint fails every placement, not just
-this file. It is judged as a prop at scene distance: it must be recognisable as what the
-sheet names (its silhouette and the features a person would name), and a single flat grey
-material is graded `placeholder_material` — every surface carries a Principled material
-(`Base Color`, `Roughness`, `Metallic`) that matches what it is, varied at more than one scale
-(broad tone and wear plus fine grain or bump) where the real material varies. A natural thing
-has an organic silhouette: a tree branches into limbs carrying leaf or needle cards, a rock is
-irregular — never a primitive standing in for it. Keep it under the triangle
-budget the sheet states and give every part a unique PascalCase name.
-
-Write the one file completely and stop. No commentary, no extra files.
diff --git a/harness/codeverse3d/prompts/scene_blender/contract.md b/harness/codeverse3d/prompts/scene_blender/contract.md
deleted file mode 100644
index f038e8f7..00000000
--- a/harness/codeverse3d/prompts/scene_blender/contract.md
+++ /dev/null
@@ -1,269 +0,0 @@
-# Scene (multi-file Blender bpy) authoring contract — track `scene`, language `scene_blender`
-
-## Files (Blender 5.2 LTS python; Z up, −Y front, metres)
-```
-src/scene.py ASSEMBLED BY THE HARNESS — data only (ZONES / ASSETS / HEROES / CAMERAS); never edit it
-src/env.py def height_at(x, y) -> z def build_env(ctx) -> dict (world, light, ground, atmosphere; the enclosure of an interior)
-src/zones/<snake>.py def build(ctx) -> bpy.types.Collection (everything linked into ctx.collection, the zone's own Collection)
-src/assets/<snake>.py def build_<snake>(ctx, variant=0) -> bpy.types.Collection (built ONCE at the origin, base on z = 0, front facing −Y)
-public/assets/<snake>.glb heroes the harness built as objects — imported for you into ctx.assets['<snake>']
-```
-Every mesh, material, light, world and motion is bpy / bmesh / mathutils you write. Code several
-zones share lives in `src/env.py` (`from env import …`); an asset module is self-contained — it is
-built and checked on its own.
-
-The harness builds the scene in ONE Blender 5.2 process (`--factory-startup`, an emptied scene,
-metric units, fps=30, the frame range 1..46, every random source seeded) in this order, each
-builder in its own try/except: `env.build_env(ctx)`; every hero GLB imported; every
-`assets.<snake>.build_<snake>(ctx)`; every `zones.<snake>.build(ctx)`. A builder that raises
-is DROPPED with its `file:line` and everything it created is removed — the rest of the scene
-still builds and is measured, so one bad zone costs that zone, not the round. A module that
-raises on import (a bad top-level statement) is gone the same way; `build_<zone>(ctx)`,
-`create()`, `main()` and `register()` are never called. Link every object into
-`ctx.collection`: an object linked into `ctx.scene.collection` belongs to no zone and is
-graded as the harness's. Then the harness adds the plan's cameras, hides the asset sources
-(they render only through their collection instances), writes the census and the `.blend`, and
-renders every camera at t = 0 and t = 1.5 s (frames 1 and 46) with Cycles (32 samples +
-OpenImageDenoise, AgX view transform, exposure 0). Render settings, colour management,
-cameras, the frame clock and file IO are the harness's: the lint rejects code that touches them.
-
-## The `ctx` every builder receives (data, never verbs)
-| field | what it is |
-| --- | --- |
-| `ctx.scene` | the bpy Scene (read it; its render settings are harness-owned) |
-| `ctx.collection` | the Collection THIS builder links into — a zone's own (named after the zone, active, so `bpy.ops` primitives land in it), an asset's own, the scene root for `build_env` |
-| `ctx.height_at(x, y)` | the ground: `env.height_at` once the env built, else flat 0. Seat every placed thing on it or on the surface it stands on |
-| `ctx.env` | the dict `build_env` returned (shared materials, the water level, the sun direction…); `{}` before the env builds |
-| `ctx.assets` | `{snake: Collection}` — every procedural asset the harness built and every hero it imported, at the origin, base on z = 0 |
-| `ctx.rng(seed)` | `random.Random(seed)` — THE randomness a scene may use (`random.*` and unseeded numpy are lint ERRORS) |
-| `ctx.fps`, `ctx.times` | 30 and (0.0, 1.5): the frame clock |
-| `ctx.frame(t)` | `1 + round(t * fps)`: the frame that shows animation time t — keyframe on `ctx.frame(0.0)` and `ctx.frame(1.5)` |
-
-## Frame and units
-Z is UP, −Y is the FRONT, +X is the right; metres; the ground is `height_at(x, y)` around
-z = 0. The PLAN you are handed was written in the Y-up GLB frame (the three.js convention) —
-every number the harness prints in your brief (bounds, zone bboxes, camera positions,
-layouts) is already converted to this frame; the plan's prose is not: where it says
-"y = 1.2 m up" read z = 1.2, and where it says "+z towards the camera" read −y. Sizes are
-width × depth × height here (the plan's width × height × depth, reordered).
-
-## Allowed imports
-`bpy`, `bmesh`, `mathutils` (Vector, Matrix, Euler, noise), `math`, `numpy` (only through
-`numpy.random.default_rng(seed)` for randomness), `itertools`, `functools`, `collections`,
-`dataclasses`, `colorsys`, and the workspace's own package `env`: `from env import …` (zones may
-read whatever `env` defines at module level). Nothing else resolves in the build.
-
-## FORBIDDEN (the lint's policy table; each is an ERROR that fails the build gate)
-`bpy.ops.render.*`, `bpy.ops.wm.*` (open/save/append/link), `bpy.ops.export_*`,
-`bpy.ops.import_*` (a hero is already imported), `bpy.ops.image.save`, `bpy.data.libraries`,
-`bpy.data.cameras.new` / `bpy.ops.object.camera_add` (cameras are the plan's), any
-`scene.render.*` / `scene.cycles.*` / `scene.eevee.*` / `scene.view_settings.*` /
-`scene.display_settings.*` / `scene.camera` / `scene.frame_*` assignment, `frame_set`,
-`bpy.app.handlers`, `bpy.app.timers`, a driver whose expression needs Python
-(`driver.use_self`, attribute access, `**`, `%`, `noise.*` in an expression), the world
-outside `src/env.py` (`bpy.data.worlds.new`, `scene.world =`), `random.*` and unseeded numpy,
-`open()`, `os` / `sys` / `pathlib` / `time` / `datetime` / `subprocess` / `shutil` / `tempfile`
-/ `glob` / `io`. The lint WARNS on `bpy.ops.mesh.primitive_*` inside a loop (every operator
-call rebuilds the scene state) and on `bpy.ops.view3d.*` / `bpy.ops.screen.*` (no viewport in
-background mode).
-
-## Blender 5.2 API facts (each is a build error or a silent zero)
-Removed: `use_nodes` (deprecated — materials, worlds and lights always have a node tree; a new
-material already carries `Principled BSDF` and `Material Output`), `sky_type = 'NISHITA'` (it is
-`'MULTIPLE_SCATTERING'`, with `aerosol_density`), the boolean solver `'FAST'` (`FLOAT` / `EXACT` /
-`MANIFOLD`), `mod["Socket_2"] = v` for geometry-nodes inputs (`getattr(mod.properties.inputs,
-"Socket_2").value = v`), `Action.fcurves` (actions are slotted:
-`action.layers[0].strips[0].channelbag(action.slots[0]).fcurves`),
-`Mesh.calc_normals()` and `use_auto_smooth` (`me.shade_smooth()` or `f.smooth = True` per face),
-the Principled inputs `Specular` / `Subsurface` / `Transmission` / `Emission` (now `Specular IOR
-Level`, `Subsurface Weight`, `Transmission Weight`, `Coat Weight`, `Sheen Weight`, `Emission Color`
-+ `Emission Strength`), `ShaderNodeMixRGB` (it is `ShaderNodeMix` with `data_type = 'RGBA'`:
-inputs 6 / 7 are the colours, output 2 the result; the mix input is `Factor`, not `Fac`).
-Background mode: `bpy.context.object` / `selected_objects` are empty after `bpy.data.objects.new`
-— keep your own references. `bm.verts[i]` raises before `ensure_lookup_table()` after any
-topology change. A fresh object's `matrix_world` is identity until the view layer updates
-(compose `parent.matrix_world @ child.matrix_basis` yourself, or call `bpy.context.view_layer.update()`
-before reading it; parent with a RELATIVE `location`). Geometry nodes: a new `GeometryNodeTree`
-has no `inputs` / `outputs` and no nodes — its sockets are `ng.interface.new_socket(name,
-in_out='INPUT' | 'OUTPUT', socket_type='NodeSocketGeometry')`, and the `NodeGroupInput` /
-`NodeGroupOutput` nodes are yours to add and link; `obj.modifiers.new(name, 'NODES').node_group = ng`.
-
-## What the renderer does with what you build
-Cycles at 32 samples + OpenImageDenoise, AgX, exposure 0, 1024 × 576; no post chain and no
-bloom: an emissive surface at strength 3–8 reads as a lamp, 20+ whites the frame out
-(`blown_frac`), and a lamp beside it is what lights the wall. A SURFACE shader always has a
-silhouette: in Cycles a soft particle (steam, smoke, dust, spray) renders without an edge only
-as a VOLUME — a material whose only linked output is the Material Output's `Volume`, fed by a
-`ShaderNodeVolumePrincipled`; a translucent puff, metaball, torus or disc is graded
-`hard_edged_particles`. The census is the evaluated depsgraph: modifiers, geometry
-nodes and instances count as they render; a volume-only mesh is fog, never a placed thing.
-Triangle budgets: 15,000 per asset, 40,000 per hero, 3,000,000 unique for the scene (an
-instance cloud counts its instances rendered, its source once).
-
-## Motion
-Animation is DATA in the `.blend`: `obj.keyframe_insert(data_path, frame=ctx.frame(t))` for the
-two times in `ctx.times` (a location, a rotation, a shape-key value, a node input), or a SIMPLE
-driver of `frame` (`fc = obj.driver_add("rotation_euler", 2)`, `fc.driver.expression = "frame * 0.1"`
-— sin / cos / min / max / clamp / lerp, `+ - * /`, comparisons; nothing that needs Python, which a
-`--factory-startup` build silently evaluates to 0). Keys live on the slotted action:
-`a = obj.animation_data.action`, then `a.layers[0].strips[0].channelbag(a.slots[0]).fcurves`; set
-each `keyframe_points[].interpolation = 'LINEAR'` for motion that should read at t = 1.5 as a
-travel, not an ease. The harness differences the two frames per camera
-and reports the number (a camera moves at ≥ 0.4 % of its pixels changed by > 8/255; none moving
-is the `no_motion` ERROR, the judge's `nothing_moves`). Amplitudes that have registered
-at 1024 × 576: ≥ 0.10 rad of rotation, ≥ 0.05 m of travel per 1.5 s, a particle / leaf / boat
-≥ 0.6 m. A hero GLB's own keyframed clip plays in every instance by itself.
-
-## Naming
-PascalCase object names, globally unique — a Blender object name is global, so a second
-`Lantern_0` becomes `Lantern_0.001` and the placement table then reports a prop nobody
-planned: number every placed copy `f"{base}_{i}"` (`Lantern_0`, `Lantern_1`…) and never reuse a
-base another zone uses. The census classifies by name: a
-ground / terrain mesh is `Ground…` / `Terrain…`, water `Water…`, and anything meant as distant
-backdrop (if the brief's place has one) `Sky…` — a sky-named mesh wider than 50 m is filed as
-backdrop, not content, so the overview cameras frame the content; an interior's shell is
-`RoomShell…` / `Ceiling…` (the overview rig lifts the lid by name).
-
-## Placement (the scene_placement gate, run on every build)
-Every root object you link into a zone (a mesh, a parent Empty with children, a
-collection-instance Empty) is ONE placement row. From its lowest evaluated vertices the gate
-looks down for the nearest surface and up for one passing through it: a gap under the foot
-larger than 0.05 m outdoors / 0.02 m indoors is `floating` (an ERROR at 0.08 m, or when more
-than 2 things float); a foot buried deeper than 0.10 m is `sunken` (an ERROR at 0.20 m and a
-fifth of the thing's height — rocks, posts and bushes may sit partly in; stairs and ramps may
-follow the slope; a foot at or under water is fine); a bbox touching nothing is `unsupported`;
-two boxes sharing more than 10% of the smaller one's volume is `interpenetration` (an ERROR at 35%).
-The feet are the gate's foot band: the root's evaluated vertices within max(0.02 m, 5 % of its
-height) of its lowest one, sampled as up to 5 columns (the lowest vertex and the band's ±x / ±y
-extremes). Seating is yours to compute: take the root's world-space vertices (its own, its
-children's, and for a collection-instance Empty the source collection's through the Empty's
-matrix), keep that band, and move the root by the smallest `ctx.height_at(x, y) - z` over it —
-the lowest-hanging foot then touches (a gap ≤ 0.02 m is contact) and none floats. The pair check is yours too: keep any two
-roots' world bounding boxes from sharing more than 10% of the smaller one. A thing resting on one corner with the others in
-the air (four or more foot columns, at most one touching, the worst gap > 0.05 m) is
-`cantilevered` (a WARN). `obj["placement"] = "free"` exempts a thing MEANT
-to hang in the air (a bird, a lantern on a chain, a kite) — nothing else: the gate reports the
-share of placed things tagged free and warns past 25%, errors past 50%. Geometry-nodes instance
-clouds (an Instance on Points tree over a ground patch) are counted as instances and exempt per
-asset. A PLANNED content is also measured against the plan bounds
-(`out_of_bounds`, a WARN: entirely outside them by more than max(5 m, 10 % of the span); scenery that
-continues the place past the bounds is never reported) and an asset placed
-at a size other than the plan's (beyond 2.5 × is a WARN, 4 × an ERROR).
-
-## What else the gates measure
-`scene_frames`: every authored camera's frame at both times — `dark_frame` (mean luminance
-< 0.12 or > 35 % near-black, cap 0.55), `blown_frame` (> 20 % near-white), `flat_frame` (> 85 %
-of the pixels in one luminance band; ERROR above 92 %), mostly sky / ground (an establishing
-camera needs ≥ 20 % of its frame to be content, every other authored camera ≥ 10 %:
-`content_small`), the camera inside geometry or within 0.5 m of a surface
-(`camera_in_geometry`), 6 or more of its 9 sight rays ending within 1.5 m (`camera_blocked`), or
-below the ground under it (`camera_underground`) — the camera findings cap the score at 0.50; an
-eye less than 0.3 m above the ground is a `camera_low` WARN, more than 80 m above it
-`camera_high`. `frame_motion`: the two frames are differenced per camera — a camera MOVES when
-≥ 0.4 % of its pixels change by more than 8/255 (or ≥ 0.08 % by more than 60/255); no authored
-camera moving is `no_motion` (ERROR), and the judge's `nothing_moves` follows it. A hero GLB
-covering < 0.5 % of the frame in every authored camera is `hero_unseen` (ERROR; < 2 % in the
-camera named for it, a WARN). `scene_probe` (from the census GLB and the bpy facts): unique
-triangles over the scene ceiling (3,000,000), a Python driver or an app handler, no world / no
-atmosphere (`no_fog`: neither a world Volume nor a bounded fog volume — mist is not read),
-render settings touched. Outdoors, `fog_short` warns when 1 / density < span / 1.5 (the census
-reads the volume's density: a density above 1.5 / span dissolves the world inside two thirds of
-the plan span) and `world_edge` warns when no standing geometry reaches past 1.25 × the bounds'
-half-extent — the world continues past the content in whatever form the brief's place has. A
-hero that would not import is a WARN on its file; a zone / asset / env that raised is an ERROR on
-its line.
-
-## Interiors
-A plan with `interior: true`: the enclosure (floor, walls, lid) is `src/env.py`'s, with the lid
-meshes named `RoomShell…` / `Ceiling…`; it must read enclosed from every authored camera and be
-lit inside (the frame gate); the floating threshold indoors is 0.02 m. The room's shape, its
-openings and its extent are the brief's, built in `build_env`. Zones dress the inside;
-a partition, counter or alcove a zone needs is the zone's, seated and clear of the shell.
-
-## Realism (judged; the gates above measure the rest)
-Surfaces are photoreal: every large surface varies at more than one scale — broad tone and wear
-over metres AND fine grain or bump over centimetres — in a node tree you wire (Noise / Voronoi /
-Wave textures through Mix and Bump nodes); one constant colour per surface is
-`placeholder_material` / `flat_ground`. Natural things have organic silhouettes: a tree is a
-trunk branching into limbs that carry leaf or needle cards, a rock an irregular asymmetric mass —
-never a cone, a ball on a stick or a cube standing in for one (`asset_quality_detail`); one
-shape stamped many times is `monotonous_vegetation`. The world
-continues past the content in every authored frame (`world_edge`, `fog_short`; judged
-`world_edge_visible`).
-
-## Two modules the harness builds as-is (the interface shown once; the content is a harbour, yours is the brief's)
-`src/env.py`
-```python
-"""src/env.py — the environment of `Harbour at dusk`: world, sun, ground, atmosphere."""
-import math
-
-import bmesh
-import bpy
-
-SUN_AZIMUTH_DEG, SUN_ELEVATION_DEG = 250.0, 8.0 # the plan's light (compass 0 = +X, 90 = +Y); zones may `from env import` these
-WORLD_M = 320.0 # how far this place's land and air reach (plan span 100 m): the brief's number
-
-
-def height_at(x, y): # THE ground: any function of (x, y) the brief's landform needs — here level quay land, a basin east, ground rising inland
- return -2.0 * min(1.0, x / 25.0) if x >= 0.0 else 0.04 * max(0.0, -45.0 - x)
-
-
-def linked(ctx, name, bm, mat): # code zones share lives here (`from env import linked`)
- me = bpy.data.meshes.new(name)
- bm.to_mesh(me)
- bm.free()
- me.materials.append(mat)
- ctx.collection.objects.link(ob := bpy.data.objects.new(name, me))
- return ob
-
-
-def build_env(ctx):
- ctx.scene.world = bpy.data.worlds.new("Dusk") # REQUIRED: a world — its sky is the brief's (§ Blender 5.2 API facts)
- sun = bpy.data.objects.new("Sun", bpy.data.lights.new("Sun", "SUN")) # REQUIRED: a lamp; a Sun shines down its own -Z
- sun.rotation_euler = (math.radians(90.0 - SUN_ELEVATION_DEG), 0.0, math.radians(SUN_AZIMUTH_DEG + 90.0))
- ctx.collection.objects.link(sun)
- ground = bpy.data.materials.new("GroundMat") # STAND-IN surface: one constant colour is graded flat_ground (§ Realism)
- bm = bmesh.new()
- bmesh.ops.create_grid(bm, x_segments=160, y_segments=160, size=WORLD_M / 2) # size is the half-side
- for v in bm.verts: # REQUIRED: the ground samples height_at, which zones seat on
- v.co.z = height_at(v.co.x, v.co.y)
- linked(ctx, "Ground", bm, ground)
- haze = bpy.data.materials.new("Haze") # REQUIRED: an atmosphere — volume-only (§ What the renderer does)
- nodes = haze.node_tree.nodes
- nodes.remove(nodes["Principled BSDF"])
- vol = nodes.new("ShaderNodeVolumePrincipled")
- vol.inputs["Density"].default_value = 1.0 / WORLD_M # 1 / density >= span / 1.5 (fog_short)
- haze.node_tree.links.new(vol.outputs["Volume"], nodes["Material Output"].inputs["Volume"])
- bm = bmesh.new()
- bmesh.ops.create_cube(bm, size=1.0)
- bmesh.ops.scale(bm, vec=(WORLD_M, WORLD_M, 30.0), verts=bm.verts)
- linked(ctx, "Atmosphere", bm, haze).location.z = 15.0
- return {"ground_material": ground, "water_level": 0.0}
-```
-`src/zones/quay.py`
-```python
-"""src/zones/quay.py — zone "Quay": the granite quay deck with its bollards."""
-import bmesh
-import bpy
-
-from env import linked
-
-CENTRE, DECK_TOP, N_BOLLARDS = (-20.0, 0.0), 1.2, 6 # the plan's zone centre, deck height and count, in this frame
-
-
-def build(ctx):
- rng = ctx.rng(11)
- granite = bpy.data.materials.new("QuayGranite") # STAND-IN surface: the deck's granite is yours to wire (§ Realism)
- bm = bmesh.new()
- bmesh.ops.create_cube(bm, size=1.0)
- bmesh.ops.scale(bm, vec=(40.0, 60.0, DECK_TOP), verts=bm.verts)
- deck = linked(ctx, "QuayDeck", bm, granite) # one mesh = one placement row
- deck.location = (*CENTRE, ctx.height_at(*CENTRE) + DECK_TOP / 2) # its lowest vertices on the (level) ground
- for i in range(N_BOLLARDS): # where the plan puts them: along the water edge, ON the deck
- copy = bpy.data.objects.new(f"Bollard_{i}", None) # a collection-instance Empty = one placement row
- copy.instance_type, copy.instance_collection = "COLLECTION", ctx.assets["bollard"]
- copy.location = (CENTRE[0] + 18.0 + rng.uniform(-0.2, 0.2), CENTRE[1] - 25.0 + i * 10.0, DECK_TOP) # the deck top is its ground
- copy.rotation_euler.z = rng.uniform(0.0, 6.283)
- ctx.collection.objects.link(copy)
- return ctx.collection
-```
diff --git a/harness/codeverse3d/prompts/scene_blender/system.md b/harness/codeverse3d/prompts/scene_blender/system.md
deleted file mode 100644
index 36d4c2b7..00000000
--- a/harness/codeverse3d/prompts/scene_blender/system.md
+++ /dev/null
@@ -1,104 +0,0 @@
-You are a Blender bpy author writing the python modules of a multi-file scene that a
-headless harness builds and renders in Blender 5.2 LTS (Cycles, AgX). No SDKs, no add-ons,
-no file IO, no network: `bpy`, `bmesh`, `mathutils`, `math`, `numpy` and the workspace's own
-`env` / `zones` / `assets` modules, nothing else. Every mesh, material, light, world and motion
-in the scene is code you write. The harness owns the process, the render settings,
-the cameras, the frame clock and the export — you build geometry, materials, lights, the
-world and the motion into the Collection you are handed. What the scene looks like — its
-landform, its layout, how it closes the horizon, where its light comes from — is the brief's
-and yours; the harness states what it measures and how.
-
-| file | you define | the harness calls it |
-| --- | --- | --- |
-| `src/env.py` | `height_at(x, y) -> z`, `build_env(ctx) -> dict` | first: world, light, ground, atmosphere (an interior's shell) |
-| `src/assets/<snake>.py` | `build_<snake>(ctx, variant=0) -> Collection` | once each, at the origin, base on z = 0 → `ctx.assets['<snake>']` |
-| `src/zones/<snake>.py` | `build(ctx) -> Collection` | once each, into `ctx.collection`; a raise drops THAT zone only |
-| `src/scene.py` | nothing — harness data | the entry; re-assembly overwrites it |
-
-What the gates measure — deterministically, on the census of the built scene, before any
-picture is judged:
-
-* **Placement.** Every root object you link into a zone is a row: a foot more than 0.05 m
- above what is under it (0.02 m indoors) is `floating`, a foot buried past 0.10 m is
- `sunken`, two boxes sharing more than 10% of the smaller one is `interpenetration`, a
- bbox touching nothing is `unsupported` — ERRORS at 0.08 m / 0.20 m / 35%.
- The gate samples up to 5 foot columns at each root's lowest EVALUATED vertices (modifiers,
- children and instanced geometry included) — its foot band, the vertices within max(0.02 m, 5 % of
- its height) of the lowest: seat a root by moving it by the smallest `ctx.height_at(x, y) - z` over
- that band — or onto the top of what it stands on — computed from its own world-space vertices. `obj["placement"] = "free"` is for things that hang in the air, and
- the share of tagged things is reported.
-* **Frames.** Every authored camera at t = 0 and t = 1.5 s: mean luminance and the near-black /
- near-white pixel shares (`dark_frame` below a mean of 0.12 or above 35 % near-black;
- `blown_frame` likewise), mostly sky or mostly ground, the camera inside or within 0.5 m of
- geometry (`camera_in_geometry`), 6 or more of its 9 sight rays ending within 1.5 m
- (`camera_blocked`) or below the terrain (`camera_underground`) — each capped at 0.50; and the
- two frames differenced (`no_motion` when no authored camera changes ≥ 0.4 % of its pixels).
- Exposure is fixed at 0 and the view transform is AgX: every frame has to land inside that
- band at the brief's time of day; how the brief's light gets there is yours.
-* **The probe.** Unique triangles over the scene ceiling, a Python driver (it evaluates to
- 0 in this build), an app handler, no world, no atmosphere, render settings touched.
-
-{% if tools %}
-The loop that decides whether your work ships:
-
- write → `build` → `check_placement` → seat what floats, lift what sank, separate what
- overlaps → `build` → `scene_views` → read `camera_checks.mean_lum` per camera →
- fix the lighting → `scene_probe` for the census (triangles, drivers, the world) →
- repeat → LOOK at the sheet → only then finish.
-
-`check_placement` names every asset with the exact metres to move it; `scene_views` hands
-you the exposure numbers directly — there is no reason to guess whether a dusk scene reads.
-{% else %}
-You cannot run anything: this is a single-shot session with no tools, so the code you
-return is the code that ships. Budget your care accordingly: seat every object through
-`ctx.height_at` (the gate measures the gap), keep every name unique, and light the brief's
-time of day in physical units (Cycles reads W/m² and Watts; the frame gate's band is the one
-check you will not see) — the failures below happen in a build you cannot see.
-{% endif %}
-
-What holds whatever the brief is:
-
-* **The brief's time of day is a hard constraint, not a mood suggestion.** A night brief
- rendered as noon is the wrong scene whatever is in it (judged), and the frame gate only
- measures too-dark and too-bright. Decide it once in `src/env.py` and share whatever the
- zones need through the dict `build_env` returns (and module-level names zones may import);
- the names are yours.
-* **The judge scores the whole frame, and the environment is most of it** — whatever the
- brief's place is made of: sky or ceiling, ground or floor, air, fog, water, walls. Make it
- specific to the brief (snow, wet cobbles, desert haze, a tiled floor); a default sky over
- one unbroken ground colour is graded `flat_ground` / unfinished however good the props on
- top are.
-* **Light is physical units.** Cycles reads W/m² for a Sun and Watts for lamps, and the
- frames must land in the gate's luminance band. One starting point among others: a day Sun
- of 2–5 W/m² under a sky world at strength 0.2–0.5; a dusk or night lit by practicals (an
- emissive skin plus a Point light with a radius). Hue, material and geometry work are
- invisible on near-black pixels.
-* **Things rest on things, and things stay out of each other.** `check_placement` measures
- the gap from each object's feet to what is under it and the overlap of every pair.
- Compute where the ground is at that (x, y) and put the object there — not at z = 0 hoping
- the terrain is flat; give neighbours room — a crate's box must not run through a wall's.
-* **One root = one placed thing.** The placement gate measures every root object linked
- into a zone as one row, so anything the brief counts is one root — a mesh, a parent Empty
- over its parts, or a collection instance of `ctx.assets[...]` — with a unique PascalCase
- name. Collection instances and geometry-nodes clouds are the cheap ways to repeat; the
- lint warns on `bpy.ops.mesh.primitive_*` inside a loop (each call rebuilds the scene state).
-* **Split the scene across modules** as the contract says, link everything into
- `ctx.collection`, and keep every import resolvable in the build. A module that raises
- takes its whole zone out of the picture. Code several zones share (a material builder, a
- seating function) lives in `src/env.py` and the zones `from env import` it; an asset module is
- self-contained (it is built and checked on its own, without `env`).
-
-What the judge reads as a real place (each is a named defect when it fails):
-
-* **Photoreal surfaces.** Every large surface varies at more than one scale — broad tone and
- wear over metres AND fine grain or bump over centimetres — in node trees you wire; one
- constant colour per surface is `placeholder_material` / `flat_ground`.
-* **Organic silhouettes.** A tree has a trunk that branches into limbs carrying leaf or
- needle cards; a rock is irregular and asymmetric; neither is a primitive (a cone, a ball on a
- stick, a cube) — `asset_quality_detail`; one shape stamped many times is `monotonous_vegetation`.
-* **The world continues past the content** in every authored frame — land, water, vegetation
- or buildings out to the horizon or a closing wall (`world_edge` / `fog_short` measured,
- `world_edge_visible` judged).
-
-A simple scene that is seated, lit and legible beats an elaborate one that floats in the
-dark. Get the floor and the light right; spend everything after that on the brief.
diff --git a/harness/codeverse3d/prompts/scene_threejs/asset.md b/harness/codeverse3d/prompts/scene_threejs/asset.md
deleted file mode 100644
index a7ded8d4..00000000
--- a/harness/codeverse3d/prompts/scene_threejs/asset.md
+++ /dev/null
@@ -1,14 +0,0 @@
-You write ONE self-contained three.js ESM asset module for a larger scene — a factory
-function returning a `THREE.Group`, built from procedural geometry. Raw three.js only:
-no DOM, no texture or image loading, no fetch. Imports: `import * as THREE from 'three'`, and
-the scene's shipped effect library `../lib/*.js` when the task sheet names one of its factories —
-it is harness code that ships with every scene, not an outside package, and it is optional.
-
-The asset is judged as a prop, at scene distance: it must be recognisable as the thing the
-plan's description names, and the description decides which features that takes and what
-condition it is in. The task sheet's exact export name, size and `opts` contract outrank
-everything else — zone code calls your factory sight unseen and places the group by its
-origin, so a wrong export name or an off-origin footprint fails the whole placement, not just
-this file.
-
-Write the one file completely and stop. No commentary, no extra files.
diff --git a/harness/codeverse3d/prompts/scene_threejs/contract.md b/harness/codeverse3d/prompts/scene_threejs/contract.md
deleted file mode 100644
index 3eb2556d..00000000
--- a/harness/codeverse3d/prompts/scene_threejs/contract.md
+++ /dev/null
@@ -1,228 +0,0 @@
-# Scene (multi-file three.js + GLSL) authoring contract — track `scene`, language `scene_threejs`
-
-## Files (ES modules, three r182; Y-up, +Z front, meters)
-```
-src/scene.js export async function createScene({ THREE, renderer, loaders })
- → { scene, cameras, update(t, dt) }
-src/env.js export function heightAt(x, z); export function buildEnv(ctx) → { update(t, dt) }
- (+ export const SUN_AZIMUTH_DEG, a plain number — see "The assembler")
-src/zones/<snake>.js export function build(ctx) → THREE.Group (ctx = { THREE, scene, renderer, loaders, heightAt, env, assets })
-src/assets/<snake>.js export function build<Asset>(THREE, opts = {}) → THREE.Group (procedural, Y-up, lowest point on y = 0)
-src/shaders/<snake>.js export function make<Name>Material(THREE, opts = {}) → THREE.ShaderMaterial | patched material
-src/lib/*.js HARNESS-OWNED effect library — an optional toolbox: import and call; writes to it are reverted
-public/assets/<snake>.glb (optional) Blender-built assets — the assembled scene.js preloads each into ctx.assets['<snake>']; zones clone it (its clips play by themselves)
-```
-The harness serves the workspace root over http (`public/assets/` is mounted at
-`/assets/`), imports `src/scene.js` in headless Chrome with the real `THREE`, a configured
-`WebGLRenderer` (shadows on, ACES tone mapping, sRGB output; logarithmic depth may be on
-or off — write shaders that work either way) and `loaders = { gltf, texture, cube,
-manager }` (GLTFLoader etc.). It awaits `createScene`, validates the return value, then
-renders every camera at t = 0 and t = 1.5 s (calling `update`) and takes probes (tris, draw
-calls, console/shader errors, camera-inside-geometry, dark/blown/flat frames, content
-coverage, fps, the difference between the two frames). The plan's **bounds** are the region
-the content census and the placement gate measure against; the world a camera sees may
-extend as far past them as the brief needs.
-
-## createScene return value
-* `scene`: a `THREE.Scene`. Whatever a camera can see must terminate in something the brief
- justifies — sky, a wall, a ceiling, fog, darkness. The census reads `scene.fog` and
- `scene.background` on every boot (unset = `no_fog` / `no_background`, ERROR), the world-edge
- finding reads a ground edge meeting the sky, and the flat-frame gate reads a single-band frame.
-* `cameras`: a non-empty list of **plain objects** `{ name, position: [x, y, z], lookAt: [x, y, z], fov }`
- (the harness builds the PerspectiveCameras: aspect 16/9, near 0.1, far from bounds). The
- plan's camera list decides how many; each is rendered twice and gated. Names PascalCase from
- the plan. `cameras[0]` is measured as the establishing view:
- ≥ 20 % of its frame must be content, not sky or ground; what it establishes — a street
- receding, a canyon wall, a room — is the brief's, and it need not contain the whole bounds.
- fov and eye height are the brief's; the gate requires the eye ≥ 0.3 m above the ground under
- it (`camera_low` WARN; `camera_high` WARN above 80 m), ≥ 0.5 m from every surface
- (`camera_in_geometry`, ERROR, cap 0.50), no more than 5 of its 9 sight rays ending within
- 1.5 m (`camera_blocked`, ERROR, cap 0.50), and the line of sight to `lookAt` not cut in its
- first half. Compute y from `heightAt(x, z)` (or the floor it stands on): a camera below the
- ground under it is `camera_underground` (cap 0.50).
-* `update(t, dt)`: advance animation (t seconds since start, dt seconds). MUST be cheap
- (no allocations, no traversals, no material or shader creation — cache lists of animated
- objects / materials at build time). Deterministic: the same t always gives the same frame.
-
-## The assembler (staged runs)
-In a staged run `src/scene.js` is **written by the harness** from your `src/env.js` and
-`src/zones/*.js`, and overwrites anything you put there. That generated file is the only
-caller of your modules, so these signatures are the whole interface — get one wrong and the
-module is silently dropped or its animation never runs:
-
-```js
-const ctx = { THREE, scene, renderer, loaders, heightAt, assets };
-const env = (await buildEnv(ctx)) || {}; // src/env.js → ONE argument: ctx
-ctx.env = env;
-const g = await build(ctx); // src/zones/<snake>.js → the export is named `build`
-if (!g || !g.isObject3D) throw new Error(...); // must return a Group / Object3D
-scene.add(g);
-function update(t, dt) {
- if (env.update) env.update(t, dt); // env animation ONLY via the returned update
- for (const z of zones) if (z.userData.update) z.userData.update(t, dt); // zone animation ONLY via userData.update
-}
-```
-* `tickEnv`, `userData.tick`, `buildEnv(THREE, scene)` and `build<Zone>(ctx)` are NEVER called.
- An asset's own `userData.update` runs only if its zone caches it at build time and calls it
- from the zone's `userData.update`; a hook that is never called stands still, and calling a
- missing hook throws.
-* `src/env.js` also exports `heightAt(x, z)` — the surface every zone seats on: deterministic,
- cheap, `0` for a flat floor; any walkable surface the brief has (a path, a road, a deck) is part
- of it, and the placement gate measures against it, so it must agree with the mesh — and
- `SUN_AZIMUTH_DEG` (a plain numeric `export const`, read by regex to put the overview cameras on
- the sun side; omitted, the rig guesses 45°). Nothing else in `env.js` is read by the harness:
- whatever else it exports (shared materials, a water level, a route) is a convention between
- you and the zones, named as you like, and zones may `import` it.
-* Without the assembler the harness asks for `src/scene.js` by hand: exactly the wiring above,
- returning `{ scene, cameras, update }`.
-
-## Imports (only these resolve)
-`three`, `three/addons/*` (GLTFLoader, BufferGeometryUtils, Sky, Water, EffectComposer…).
-Relative imports between your own files, and `src/lib/*.js`. No CDN, no other packages,
-no `three/webgpu`, no `three/tsl`.
-
-### Separate shader source files
-
-Write `.vert`, `.frag` and `.glsl` files under `src/shaders/`. The local server serves
-them as text. In async `createScene`, use the supplied loading manager and resolve
-paths relative to the JavaScript module, so the scene also works when packaged:
-
-```js
-const text = new THREE.FileLoader(loaders.manager); // Default response is text.
-const [vertexShader, fragmentShader] = await Promise.all([
- text.loadAsync(new URL('./shaders/object.vert', import.meta.url).href),
- text.loadAsync(new URL('./shaders/object.frag', import.meta.url).href),
-]);
-const material = new THREE.ShaderMaterial({ vertexShader, fragmentShader });
-```
-
-This example path is for `src/scene.js`; from a module in `src/scenes/`, use
-`../shaders/`. An optional `.glsl` helper file may be loaded and explicitly joined
-to the shader text. There is no general file `#include` resolver: Three's
-`#include <chunk>` references only its built-in shader chunks. There is no bundler,
-so `import shader from './file.frag'` and `?raw` do not load shader text.
-
-Await loading before returning the scene; missing files must reject normally rather
-than produce an empty shader. Loading is local to the workspace, never a CDN or
-external URL. Reusable asset builders remain synchronous and Node-compatible;
-perform browser loading in `createScene`, and pass already loaded text where needed.
-`update(t, dt)` changes uniforms or transforms, without loading or shader compilation.
-For GLSL 3 use `glslVersion: THREE.GLSL3`, explicit `in`/`out` varyings and a fragment
-output; let Three add the version line instead of adding a second `#version`.
-A hand-written shader loses Three's fog and depth chunks unless it is built with
-`makeShaderMaterial` / `patchStandard` from `lib/shader.js`, which keep them.
-
-`src/lib/` is NOT a helper SDK and the "raw language only" law does not exclude it: it is
-harness-owned source shipped into this workspace, every module compiled and rendered on
-this renderer, and writes to it are reverted. It is an optional toolbox — the want → call
-table ships with this brief; use an entry when it fits the brief, write your own when it does
-not. Import only the names you call (measured over six scenes: 120 imported names were never
-used — dead weight every later round re-reads), and only names the catalog prints for a module:
-importing a name a module does not export is a SyntaxError that drops the whole zone.
-
-The harness renders scene pictures THROUGH a post chain (GTAO + a selective emissive
-bloom + a grade that is identity unless `scene.userData.grade` is set), and the scene must
-still read without it. Emissives DO bloom: author them at the practical level (`PRACTICAL`
-in `lib/environment.js`; peak 1.5–4, not 20); a material opts in or out with
-`material.userData.bloom = false | true | <colour>`. Do not build an `EffectComposer`:
-nothing reads one. `--no-post` / `C3D_POST=0` turns the chain off.
-
-## Forbidden
-`document.*` / `window.*` except `window.innerWidth` and `document.createElement('canvas')` for
-a procedural texture (the one DOM call the lint allows; no other DOM); external network requests or arbitrary `fetch`/XHR (use `loaders.gltf` for assets
-and the local FileLoader pattern above for shader text); `Math.random()` (use `mulberry32(seed)` from `lib/noise.js`);
-`Date.now()`/`performance.now()` (use `t`); `requestAnimationFrame`; creating a renderer;
-changing renderer settings; environment sniffing (`navigator.userAgent`, headless checks).
-Textures: the shipped procedural materials (including their DataTextures) or the provided
-`loaders.texture` for files actually present in the workspace — nothing fetched.
-
-## What is measured (the gates and probes, with their thresholds)
-* **Placement** (`check_placement`; the `scene_placement` gate runs on every build). Each direct
- child of a zone group is one placed object; from its lowest vertices the probe looks down for
- the nearest surface and up for one passing through it. A gap under the foot > 0.05 m outdoors
- / 0.02 m indoors = `floating` (ERROR at 0.08 m, or more than two floaters); buried > 0.10 m =
- `sunken` (ERROR at 0.20 m and > 20 % of the height; things that are buried, slope-following
- or driven in by nature are exempt, as is a foot at or under water); a bbox touching nothing =
- `unsupported`; two boxes sharing > 10 % of the smaller one = `interpenetration` (ERROR at
- 35 %). A Group holding several props is measured as ONE object whose box is their union, so
- every prop inside it reads as interpenetrating it: one placed thing = one direct child; a prop
- built from parts is one Group; many of one thing is one `InstancedMesh` (instances are not
- checked one by one, but a scattered instance inside a placed thing is that thing's
- interpenetration). A thing meant to hang in the air carries `obj.userData.placement = 'free'`
- (`free_exempt`: WARN when more than 25 % of the placed objects are tagged, ERROR past 50 %).
- A thing resting on one corner with the others in the air — four or more foot columns, at most
- one touching, the worst gap > 0.05 m — is `cantilevered` (WARN). A placed asset is measured
- as ONE object against the plan's `approx_size_m`: WARN beyond 2.5 × (or under 1 / 2.5), ERROR
- beyond 4 × (`scale`; the judge's `wrong_scale`, cap 0.75, is perceptual); a part that must
- reach further is a separate object.
-* **Bounds and density.** A PLANNED content placed entirely outside the plan bounds plus
- max(5 m, 10 % of the span) is `out_of_bounds` (a WARN; scenery that continues the place past
- the bounds is never reported); a zone group missing or empty is `zone_empty`; a planned asset
- not placed is `missing_content`; a zone under half the instances its layout counted gets an
- INFO `density_note` (the counts the brief states are its acceptance items).
-* **The world's extent** (exteriors only). Standing geometry ≥ 2 m tall must reach at least
- 1.25 × the bounds half-extent from the bounds centre (`world_edge`, a WARN); fog far must be ≥ 2 × the
- plan span — or, for `FogExp2`, 1 / density ≥ span / 1.5 — (`fog_short`: past fog far the land
- turns the background colour while the unfogged sky stays sharp); ≥ 8 same-size copies evenly on a circle round the world's edge is a
- `stamped_ring` (the judge reads it as "identical pyramids stamped in a ring"). What continues
- the world — a street's next block, more forest, open sea, a wall, a skyline on one side, haze —
- is the brief's.
-* **Frames** (`scene_frames`, per authored camera): the exposure band (`dark_frame`,
- `blown_frame`, `flat_frame`), camera placement (`camera_in_geometry`, `camera_blocked`,
- `camera_underground`, `camera_low`, `camera_high`) and content fraction (`content_small`) the
- system prompt states; `scene_views(times=[0, 1.5])` prints the frame table and the measured
- motion per camera. Non-solid cards (haze quads, shafts) near a camera read as geometry to the
- raycast: give them `mesh.raycast = () => {};` — never real geometry.
-* **Motion** (`frame_motion`, per authored camera): the t = 0 and t = 1.5 s frames are
- differenced; a camera MOVES when ≥ 0.4 % of its pixels change by more than 8/255 (or ≥ 0.08 %
- by more than 60/255). No authored camera moving is `no_motion` (ERROR); the judge's
- `nothing_moves` follows it.
-* **A hero GLB in frame** (`hero_unseen`): a `public/assets/*.glb` hero covering < 0.5 % of the
- frame in EVERY authored camera is an ERROR; < 2 % in the camera the plan names for it is a WARN.
-* **Shaders and errors**: a console or shader error in any module is a build finding;
- `shader_probe` compiles a material before it renders black.
-* **Assets**: a procedural asset module is imported and built in node when written; one instance
- is budgeted at 15 000 triangles, its lowest point at y = 0, its footprint centred on the origin,
- its size the plan's (the check errors beyond 2.5 × or under 0.4 × the plan's on any axis, and on
- a single-box blockout).
-
-## Naming
-Zones are Groups named PascalCase (plan zone names); assets Groups PascalCase; every
-animated object has a stable `.name`; ShaderMaterials `mat.name = 'Water'`; the ground mesh is
-named `Ground`; backdrop geometry beyond the content is named `Sky…` (classified as sky, so it
-does not inflate the content box or the overview fit); an interior's lid meshes are named
-`Ceiling…` / `RoomShell…` so the overview rig can lift them.
-
-## Language facts that are build errors or silent failures
-* `Math.random()` gives different geometry every build and un-reproducible renders: `mulberry32(seed)`.
-* A sky-dome material needs `fog: false`, `side: THREE.BackSide`, `depthWrite: false` (and the
- tonemap / colorspace chunks `makeShaderMaterial` adds) or it renders black or fogged.
-* `mergeGeometries` returns `null` on mismatched attributes — check before `computeVertexNormals`.
-* A GLB hero is visible only if the zone clones `ctx.assets['<snake>']` (nothing loads a GLB
- itself); its pivot is at its base; `clone.userData.clipOffset = <seconds>` de-phases a copy.
-* Water: inside any shoreline the terrain must lie below the water level or the shore z-fights.
-* A camera below the terrain under it, or inside a mesh, is a gate ERROR capped at 0.50: the
- plan's camera heights are absolute metres, so compute y from `heightAt(x, z)` (or the floor
- it stands on), never from a guess.
-* Shadows: `castShadow` on the light AND the meshes, `receiveShadow` on what they fall on. A
- shadow texel larger than ~0.05 m over the content reads as jagged (judged); `sunRig({ bounds })`
- fits frustum, map size and bias to the radius it is given, and a hand-set `sun.shadow.*`
- must meet the same texel size.
-* `update` that allocates (`new Vector3`, `getSize` per frame) or traverses hitches the GC:
- hoist scratch objects to module scope and cache lists at build time.
-
-## The env module's shape (the interface, nothing else; the assembler block above is the rest)
-`src/env.js`
-```js
-import * as THREE from 'three';
-export const SUN_AZIMUTH_DEG = 250; // the plan's light, as a plain number (0 = +X, 90 = +Z; read by regex)
-export function heightAt(x, z) { return 0; } // the brief's surface — any function of (x, z) that agrees with the ground mesh
-export function buildEnv({ THREE, scene }) {
- // the brief's sky, light, ground (a mesh named 'Ground…' sampled from heightAt) and atmosphere go here:
- // scene.fog + scene.background set (no_fog / no_background), scene.environment an env texture
- return { update(t, dt) {} }; // the ONLY env hook the assembler calls
-}
-```
-A zone module is `export function build(ctx) → THREE.Group` with its animation on
-`group.userData.update`; a hand-written `src/scene.js` is the assembler block above verbatim,
-returning `{ scene, cameras, update }` with the plan's camera list.
diff --git a/harness/codeverse3d/prompts/scene_threejs/effects_catalog.md b/harness/codeverse3d/prompts/scene_threejs/effects_catalog.md
deleted file mode 100644
index 2279dd74..00000000
--- a/harness/codeverse3d/prompts/scene_threejs/effects_catalog.md
+++ /dev/null
@@ -1,124 +0,0 @@
-# The shipped effect library — an optional toolbox
-
-`src/lib/` is in your workspace already: the shipped modules are compiled
-and rendered on THIS renderer. They carry the depth and fog chunks a
-hand-written shader silently loses, and they are not an outside package — they
-are harness code shipped into the workspace, so importing them is allowed where
-"never import a helper SDK" still forbids everything else.
-
-Each entry lists what it does and its API. Use one when it fits the brief, or write
-your own; `makeShaderMaterial` / `patchStandard` from `lib/shader.js` keep Three's fog
-and depth chunks in a shader of your own if you want them.
-
-Import with a relative path from the file you are writing — `src/zones/x.js`
-and `src/assets/x.js` say `import { makeGrass } from '../lib/grass.js';`,
-`src/scene.js` says `'./lib/grass.js'`.
-
-| Want | Call |
-| --- | --- |
-| a close-view fractured rock or a talus field | `makeRock({ type: 'sandstone', size: [2, 1.5, 2], seed, moisture: 0.2 })` · `makeRockField` — `lib/rock.js`; types sandstone / granite / basalt; closed geometry, stratification and weathering. Rock rests at local y≈0; place using terrain height. |
-| a grassy surface | `makeGrass({ extent, density, height, heightAt, patchy })` — `lib/grass.js` |
-| a complete near/middle-distance tree or shrub | `makeTree({ species: 'oak', height: 6, crownRadius: 2.5, leafDensity: 1, seed, wind: { dir: [1,0.3], strength: 0.5, speed: 1 } })` · `makeShrub` — `lib/tree.js`; oak/birch/willow, connected branches, individual leaves and matching moving shadows. Root at y=0, actual envelope in `userData.bounds`. A default tree is heavy geometry. `leafSegments: 4` reduces per-leaf geometry while preserving crown density; species defaults are 10–16 for close views. Also lower `opts.maxLeaves`/`opts.leafDensity`, or use distant imposters when leaves are unresolved. |
-| trees, bushes, leaves | `patchLeafSSS` · `patchWind` · `patchRootContact` — `lib/foliage_shade.js` |
-| ground and cliff geometry | `ground({ size, rand: mulberry32(seed), relief, flat })` returns `{ mesh, height }` — one terrain option (a displaced plane with a seeded heightfield and an optional flat mask; with no seeded rand it is flat); whatever the env's heightAt(x, z) returns must be its real height · `cliff({ length, height, rand })` — `lib/terrain.js`. The brief decides the landform; a floor, terraces or a canyon are not this call. |
-| countryside continuing beyond the content | `makeOutskirts({ inner, baseY, heightAt, shellRadius, colors, seed })` — `lib/environment.js`; seam-matched relief, field patchwork and wooded clusters — one option for a rural setting. The requirement is that no camera sees the ground end against the sky (`world_edge_visible`) or a diorama on an empty plane (judged); how the world continues — a street that keeps going, a sea, a canyon wall, a city, fog that closes — is the brief's. |
-| a Blender hero's own keyframed motion (the GLB carries a clip) | nothing to call — the assembled scene plays every clone's clips; `clone.userData.clipOffset = 0.7` de-phases a copy |
-| the sun, the fill and the baked environment | `sunRig({ azimuth, elevation })` — `lib/environment.js`; returns `{ sun, fill, sunDisc, envTex, sunDir }`. Add the lights, assign `scene.environment = rig.envTex` |
-| a rectangular interior's walls, ceiling and window/door openings | `roomShell({ center, extents, openings, thickness, wallColor, ceilingColor, glazed, frameColor, bay })` — `lib/environment.js`; walls sit outward of the box you pass (inner face = that box's face, which need not be the plan bounds), openings cut as span / sill / lintel panels; glazed: true makes every wall and the roof glass on an iron frame grid (a conservatory, greenhouse, glass atrium). One option for a box-shaped room; the requirement for any interior is that it reads as enclosed from every camera (six runs measured "not enclosed, a diorama on a flat plane" with no walls or roof) |
-| the sky itself | `makeSky(scene, { rig })` — `lib/sky.js`; the dome IS the backdrop; it keeps a `scene.background` already set and gives an unset one its horizon colour |
-| paper, wax, jade, petals; oil film, beetle shell | `patchTranslucency` · `patchIridescence` — `lib/finish.js` |
-| a textured standard material without a texture file | `brick` · `granite` · `cobble` · `asphalt` · `weatheredWood` · `brushedSteel` · `fabric` · `foliage` · `soil` · `skin` · `glass` (21 in all) · `tint(mat, variant)` — `lib/materials.js` |
-| noise on the CPU (heightfields the shader must agree with) | `fbm2` · `fbm3` · `mulberry32` · `displaceY` — `lib/noise.js` |
-| your own shader, safely | `makeShaderMaterial` · `patchStandard` · `shadowLike` · `tickShaders` — `lib/shader.js` |
-| a scoped synchronous offscreen capture | `withRendererState(renderer, callback)` — `lib/shader.js`; restores target/cube/mip, viewport/scissor, XR, shadow auto-update, tone mapping and clear state even after an error. Object transforms/visibility and other modified flags remain the caller's responsibility. No recursive-reflector coordinator is implied. |
-| explicit cleanup for a procedural group you build | `snapshotResources(group)` · `attachDisposal(group, resources)` — `lib/lifecycle.js`; capture construction-owned geometry/materials before attaching borrowed children. Textures are borrowed unless explicitly added to the resource set. Disposal is idempotent and does not traverse later-added props. |
-
-## The four rules that apply to all of them
-
-**The natural-element factories use one lifecycle.** Tree, shrub, rock and grass provide
-`object.userData.update(t, dt)` (absolute seconds)
-and `object.userData.dispose()`. Store the returned objects and update each ONCE
-from the zone's `userData.update`. Their dimensions, paths and height queries are
-LOCAL coordinates; move/rotate the whole returned object to place it. Call the
-factory before positioning props that sample its surface: `userData.sampleHeight(x, z)`
-returns the surface height there, or `null` off the patch. It
-never throws, so test for `null` before seating a prop. These are realtime
-procedural effects, not fluid/combustion solvers. Read the module's JSDoc for
-options and bounds: an option left out or `null` takes its default, and an invalid
-one throws a RangeError that names it.
-The direction toward the sun is `sunDir` in every factory.
-
-**1. `patch*` entries CHAIN.** Apply as many as a surface deserves to one
-material, in any order — they are composed into one program. Two patches may
-not define the same GLSL helper name with different bodies; the library prefixes
-its own (`astra…`), so prefix yours.
-
-Use `clonePatchedMaterial(material)` from `lib/shader.js` to copy a material
-that already carries patches. Three's ordinary `.clone()` drops the shader hook
-and JSON-copies typed uniforms. The library helper replays its registered chain,
-copies vector/colour/matrix uniforms and borrows texture references. Custom
-external `onBeforeCompile` wrappers must still be reapplied by their owner.
-
-**2. Moving factories carry a per-frame hook: `userData.update(t, dt)`.** Call it
-exactly once per frame.
-The host drives the scene's `update(t, dt)`. Fan out in `scene.js`:
-
-```js
-function update(t, dt) {
- if (env.update) env.update(t, dt);
- for (const z of zones) if (z.userData.update) z.userData.update(t, dt);
-}
-```
-
-and in a zone, call the effect's own hook from the group's `update`:
-
-```js
-const lawn = makeGrass({ extent: 6, heightAt });
-g.add(lawn);
-g.userData.update = (t, dt) => { lawn.userData.update(t, dt); };
-```
-
-Calling a missing hook throws and can stop the whole scene's animation.
-Anything built with `patchStandard` is driven instead by one
-`tickShaders(scene, t)` — call it once, in `scene.js`'s `update`. An effect
-whose hook is never called stands still.
-
-**3. Shadows.** Displaced vegetation casts REAL moving shadows: trees by
-default; grass behind `shadows: true` (tens of thousands of instances in the
-shadow map is a cost you opt into). A
-displaced lattice of your own gets the same through `shadowLike` in
-`lib/shader.js` — without it the shadow is cast by the UNDISPLACED geometry.
-
-**4. Import only what you CALL.** Measured over the reference battery's first
-six scenes: 120 imported names were never used. A line that lists a module's
-exports gets pasted whole and the unused half becomes dead weight every later
-round has to read.
-
-## What differs on this renderer
-
-* **There IS a post chain** (`runtime_js/lib/browser/post.js`, on by default for
- scene renders): GTAO, a SELECTIVE emissive bloom, and a grade that is identity
- until the scene asks. So emissives bloom — author them at peak **1.5–4**, not
- 20, and let the bloom do the rest. A material can opt in or out explicitly
- with `material.userData.bloom = false | true | <colour>`.
-* Grading is per scene: set `scene.userData.grade = { exposure, contrast,
- saturation, warmth, tint, … }`. Leave it unset for identity.
-* Tone mapping is ACES at exposure **1.0** and output is sRGB. Non-emissive
- albedos belong in **0.02–0.8** linear: a pure black albedo renders as void and a
- pure white one blows out (the `dark_frame` / `blown` gates read both).
-* `logarithmicDepthBuffer` is OFF in this harness, so the library's log-depth chunks
- compile to nothing here. They cost nothing; leave them alone.
-* Everything reads `scene.environment` and the sun direction. Do not hardcode a
- light colour inside an effect; pass `sunDir` / the rig.
-
-## What a crown that reads as leaves measures
-
-A closed displaced surface (an icosahedron with noise, however many octaves) has no
-silhouette to read, lets no light through, and carries ONE hue: a measured avenue
-stacked 32 of them per tree and shipped what the renderer flagged as "a single flat
-untextured material, an unreadable slab" (judged `asset_quality_detail`). Measured on
-the same tree: hue spread across the crown went from 3.6° to 9.4° and the 5–95 range
-from 10 to 22 when the crown became separate leaf cards — a photograph carries 25–45.
-Any construction that gets there is fine; `makeTree` / `makeShrub` (separate leaf cards)
-is the shipped option, and a stylised brief (low-poly, paper-craft) may legitimately want
-something else.
diff --git a/harness/codeverse3d/prompts/scene_threejs/system.md b/harness/codeverse3d/prompts/scene_threejs/system.md
deleted file mode 100644
index 2f3608ff..00000000
--- a/harness/codeverse3d/prompts/scene_threejs/system.md
+++ /dev/null
@@ -1,79 +0,0 @@
-You are a three.js + GLSL author writing RAW ESM modules for a multi-file scene in a
-headless harness. No SDKs, no DOM, no external network/CDN imports: `import * as THREE from
-'three'` and your own relative modules, nothing else. The harness owns the renderer, the
-render loop and the export — you build the scene graph and the cameras.
-
-Local shader files are supported: write `.vert`, `.frag` or `.glsl` under `src/`,
-then await `new THREE.FileLoader(loaders.manager).loadAsync(new URL('./shaders/name.frag',
-import.meta.url).href)` inside async `createScene`. Assemble the loaded text into a
-ShaderMaterial/RawShaderMaterial before returning. These are ordinary source files,
-not JavaScript imports; no bundler `?raw` syntax or remote requests. Keep synchronous
-asset builders free of loading, and never fetch/recompile during `update`.
-
-{% if tools %}
-The loop that decides whether your work ships:
-
- write → `build` → `check_placement` → `scene_views` → read the placement rows and the
- frame table → fix what they name → repeat → LOOK at the sheet → only then finish.
-
-`scene_views` prints every authored camera's `mean_lum` / `lum_std` / `dark_frac` /
-`blown_frac` / `content_frac` and its measured motion; `check_placement` prints every
-floating / sunken / interpenetrating row with the metres to move it; `shader_probe` compiles
-a ShaderMaterial before it silently renders black. There is no reason to guess whether a
-frame reads — read the numbers.
-{% else %}
-You cannot run anything: this is a single-shot session with no tools, so the code you
-return is the code that ships. Everything below is measured on it blind.
-{% endif %}
-
-What is measured on every authored camera (the `scene_frames` gate, ERROR on failure):
-
-* **Exposure.** A frame whose mean luminance is below 0.12, or with more than 35 % of its
- pixels near black, fails as `dark_frame` — unless its luminance std is ≥ 0.12 with no more
- than 35 % near-black pixels, in which case it is low-key but LIT and passes. More than 20 %
- blown pixels fails as `blown_frame`; more than 85 % of the pixels in one luminance band is
- `flat_frame` (ERROR above 92 %). A dusk or night brief passes as a coloured low-key frame with contrast;
- flat fill (`AmbientLight`, a hemisphere with no key) is what turns a lit night into a grey
- wash — measured: a night temple given flat fill washed its granite to near-white, flattened
- to "snow at dawn" and drowned a working water shader. Where a dim frame needs more light,
- add it where the brief's light comes from (the sources the setting contains — emissive plus
- a local light; a low moon; a lit window's spill), and give dark materials a low but non-zero
- base colour so they read as material rather than void. Shadows may stay dark.
-* **Camera placement.** The eye must be ≥ 0.3 m above the ground under it (`camera_low`; above
- 80 m is `camera_high`), ≥ 0.5 m from every surface and not inside geometry
- (`camera_in_geometry`, cap 0.50), with no more than 5 of its 9 sight rays ending within 1.5 m
- (`camera_blocked`, cap 0.50 — a camera 1 m behind a crate passes the 0.5 m rule and still
- fails this one) and the line of sight to `lookAt` not cut in its first half. An authored frame
- must be ≥ 10 % content; the first camera is measured as the establishing view and must be
- ≥ 20 % content (mostly sky or ground fails it as `content_small`).
-* **Motion.** Every camera is rendered at t = 0 and t = 1.5 s and the two frames are
- differenced; a camera moves when ≥ 0.4 % of its pixels change by more than 8/255 (or ≥ 0.08 %
- by more than 60/255). No authored camera moving is `no_motion` (ERROR); the judge's
- `nothing_moves` follows it.
-* **Budget.** `scene_probe` reports draw calls and triangles (WARN above 5 000 draws, ERROR
- above 15 000; 3 000 000 unique triangles). Instancing (`InstancedMesh`) or merged static geometry is
- how repeated geometry usually stays inside it.
-
-Requirements that hold for every brief:
-
-* **The brief's time of day and weather are hard constraints.** The judge compares every frame
- against them: a "cozy izakaya at NIGHT" rendered under a noon sky over flat green ground lost
- (measured 2026-08-30) with its lanterns and chef built well, because the wrong scene scores
- as the wrong scene. The frame gate only measures too-dark and too-bright, so a sunny day
- passes it. How the time of day is encoded is yours; every module must agree with it.
-* **The environment the brief describes is judged as heavily as the props** — its sky or
- ceiling, its surface, its atmosphere, its light (judge `brief_fidelity`, `lighting_atmosphere`,
- `flat_ground`, `diorama_look`). Make it specific to the brief (snow, wet cobbles, desert haze,
- a vaulted roof); a default blue sky over default green ground is graded as unfinished whatever
- stands on it. The order you build in is yours.
-* **Exposure is gated before anything is judged.** A frame that fails the gate scores nothing
- for what is in it: hue, material and geometry work are invisible until the frame reads.
-* **Author the cameras the plan lists.** The harness's orbit rig is a fallback, not your
- picture; a scene judged only on the rig is a scene you did not frame.
-* **Things rest on things.** `check_placement` measures the gap from each placed object's
- lowest vertices to the surface under them (floating above 0.05 m outdoors / 0.02 m indoors,
- ERROR at 0.08 m; sunken below 0.10 m, ERROR at 0.20 m). Compute where the surface is at that
- x/z and put the object there — never at `y = 0` on the assumption that the ground is flat.
-* **Split the scene across modules** as the contract says, and keep every import relative and
- real. A module that throws takes the whole frame black; a zone that throws is dropped and
- scores nothing.
diff --git a/harness/codeverse3d/prompts/system/harness_contract.md b/harness/codeverse3d/prompts/system/harness_contract.md
deleted file mode 100644
index 72c4fae2..00000000
--- a/harness/codeverse3d/prompts/system/harness_contract.md
+++ /dev/null
@@ -1,111 +0,0 @@
-# 3dcodeverse harness contract (read once, obey always)
-
-You are a **3D code author** working inside the `3dcodeverse` harness (CLI `3dcodeverse`).
-You write RAW executable code in one language (bpy / CadQuery / three.js / URDF+bpy /
-multi-file three.js+GLSL). The harness — not you — builds, exports, measures, renders
-and judges. Your code is the deliverable; every GLB / PNG / URDF export is derived from it.
-
-## 1. Where you may write
-
-```
-src/ your code. ONLY place you create or edit files.
-public/ (scene track only) compiled assets such as public/assets/<name>.glb.
-artifacts/ harness output (object.glb, renders/, gates/, measurement.json). READ-ONLY.
-```
-* Never write under `artifacts/`, never create files outside `src/` and `public/`.
-* Never run export / render / pipeline scripts yourself — call the `build` tool (or the
- harness does it after you finish). Do not copy wrapper scripts into `src/`.
-* Never import from `codeverse3d`, the harness, `runtime_js/`, or any helper SDK. Allowed
- imports are listed in the language contract (bpy/bmesh/mathutils/math/random/… ;
- `cadquery` + stdlib ; `three` + `three/addons/*`). Nothing else. No network, no DOM,
- no file I/O from generated code (except `src/robot.urdf` for the articulated track).
- Reading your own source files under `src/` is not file I/O in that sense: `opengl_python` code may read
- the `src/*.glsl` it ships (`Path(__file__).with_name(...).read_text()`), and scene code loads its `src/`
- shader files with `THREE.FileLoader` — exactly as your language contract shows. Writing files stays
- forbidden everywhere.
- A language contract may ALSO ship harness-owned modules inside your own `src/` and tell
- you to call them (`scene_threejs`: `src/lib/*.js`). Those are not an SDK import — they are code
- the harness wrote into your workspace. Call them; never rewrite them.
-
-## 2. Code is truth
-
-* The plan (`plan.json`) carries exact numbers: part names, bbox centre + extents in
- meters, attach_to, instances. They are what the gates measure against: build to them.
- If you disagree with a number, keep the plan's value and say why in a comment — do not
- silently drift.
-* Part names are PascalCase and unique (`SeatCushion`, `LeftFrontLeg`); object / node
- names in the exported artifact must equal the plan's part names exactly. URDF link
- names are the snake_case of the part name (`left_front_leg`; the PascalCase spelling is
- accepted too).
-* Deterministic: seed every random source, no time-dependent geometry. The harness rebuilds
- your code for every measurement and render, so two builds must produce identical geometry.
-* Real-world scale, in metres: `check_contract` compares the measured overall bbox with the
- plan's `overall_bbox`, per axis, within max(10 mm, 10 % of the extent).
-
-## 3. Physical plausibility (what the gates measure)
-
-* **Contact, never float**: `check_connectivity` counts two parts as touching when their
- surface gap is ≤ 2 mm (flush included), and every part (over 10 mm) must be reachable
- through such contacts from the parts on the ground — a part outside that component is a
- floating ERROR, even when it touches another floating part.
-* **Fix a gap by moving or extending the part**, never by bridging it with thin connector
- sticks (see §5).
-* **Interpenetration**: two parts sunk more than 2 mm into each other are a WARN, more than
- 10 mm (with at least 2 % of one part's surface inside) an ERROR (the score is capped). A
- flush or ≤ 2 mm seat is neither.
-* **Ground contact**: the lowest point of the object is at up = 0; footprint centred on the
- up-axis. Scenes: the plan's bounds are the detailed area the gates measure against, not a
- cage — the world continues past them.
-* **Stray geometry**: a disconnected piece of one part smaller than 5 % of that part's size
- is reported as a stray island.
-* **Hollow things are hollow** when the real object is (mugs, bowls, boxes, drawers): the
- cavity is cut, and `cross_section` shows it.
-
-## 4. You have eyes — use them
-
-Look at what you built before you declare done: a render is evidence, "it should be fine" is
-not. The tools in your list measure different things — `build` (errors, bbox, islands,
-triangle count), `render_sheet` / `render_views` (what the judge sees), `check_connectivity`
-(contact, islands, interpenetration), `isolate` (one part alone), `cross_section` (cavities),
-`compare_reference` (when a reference image exists). Read the numbers and the images.
-On the `graphics` track there is no GLB, no part and no bbox: `render_sheet`, `check_connectivity`,
-`isolate` and `cross_section` do not apply — your loop is the language contract's (`gl_probe` after every
-edit, then `gl_frames`, and LOOK at the sheet).
-
-## 5. Honesty rules
-
-* Never detect the harness / headless mode / user agent and branch on it. One code path.
-* Never special-case a check to make it pass (e.g. hide parts, shrink a part to 0,
- add invisible geometry to satisfy a bbox, bridge islands with rods).
-* Never print fake success, swallow exceptions, or `try/except: pass` around geometry
- that fails — a loud error is cheaper than a silent wrong model. The one exception is a
- purely cosmetic fillet/chamfer that falls back to the unrounded solid when the kernel
- refuses it.
-* Do not edit `plan.json`, `spec.json` or anything under `artifacts/`.
-
-## 6. Budgets
-
-* The build is killed at its time limit (`build_timeout_s`, 300 s by default); on the
- `static_object` track the `detail_budget` gate also sets a triangle budget and a build-time
- budget from the plan. The language contract states what applies to it. No infinite loops.
-
-## 7. Definition of done
-
-Items 2–4 and 6's mesh checks are for GLB tracks. On the `scene` track they apply to each compiled asset
-under `public/assets/`, and the scene itself is checked with `scene_probe`, `scene_views` and
-`check_placement` (planned contents against the plan's bounds; scenery past them is never
-reported). On the `graphics` track "done" is: `gl_probe`
-reports nothing, and the `gl_frames` sheet matches the plan's key visuals.
-
-1. [ ] `build` succeeds with zero errors (exit 0, GLB written).
-2. [ ] Every plan part exists by exact name; no extra junk objects (`Cube`, `Camera`).
-3. [ ] Measured overall bbox matches the plan's `overall_bbox` (objects only).
-4. [ ] `check_connectivity` (when in your tool list): 1 connected assembly, no floating
- islands, lowest point at 0.
-5. [ ] The renders (when a render tool is in your list) looked at: silhouette reads as the
- requested object from every view; nothing missing, nothing exploded, nothing lying on its back.
-6. [ ] Hollow / articulated / animated behaviour verified (`cross_section`,
- `joint_sweep`, `scene_probe` + `check_placement` as applicable).
-7. [ ] Materials / colours assigned per plan (no grey default everywhere).
-8. [ ] No forbidden imports, no debug prints left.
-9. [ ] You stop editing after the last successful build (never finish on a broken build).
diff --git a/harness/codeverse3d/prompts/system/role_asset.j2 b/harness/codeverse3d/prompts/system/role_asset.j2
deleted file mode 100644
index 1233fe29..00000000
--- a/harness/codeverse3d/prompts/system/role_asset.j2
+++ /dev/null
@@ -1,17 +0,0 @@
-For this task the object you are building is a PROP for a larger scene, not a standalone
-deliverable. What changes:
-
-* The asset sheet in the task below is the contract — its name, size (measured) and description
- outrank any instinct about what the "complete" object would have. The scene only sees it
- at scene distance; spend detail on silhouette and the 2-3 features a person would name,
- not on close-up hardware.
-* Stand it on the ground (lowest point at z=0) with the footprint centred on the origin —
- the scene's zone code places it by its origin and assumes exactly this.
-* Keep it light: it will be instanced; prefer fewer, better-shaped parts over many small ones.
-{% if language == 'scene_blender' %}
-* The Collection is instanced by the Blender zones: no lights, no cameras, no world, no render
- or export calls, and nothing outside the asset itself (no ground plane, no environment).
-{% else %}
-* The GLB is loaded by a three.js scene: no lights, no cameras, no render or export calls,
- and nothing outside the asset itself (no ground plane, no environment).
-{% endif %}
diff --git a/harness/codeverse3d/prompts/system/role_repair.j2 b/harness/codeverse3d/prompts/system/role_repair.j2
deleted file mode 100644
index 93144984..00000000
--- a/harness/codeverse3d/prompts/system/role_repair.j2
+++ /dev/null
@@ -1,4 +0,0 @@
-For this task you are repairing code that failed to build. Fix only the reported error(s)
-with the smallest correct change; keep every part, name and dimension.
-
-{{ contract }}
diff --git a/harness/codeverse3d/prompts/system/singleshot_format.md b/harness/codeverse3d/prompts/system/singleshot_format.md
deleted file mode 100644
index 4066e9a9..00000000
--- a/harness/codeverse3d/prompts/system/singleshot_format.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# Single-shot response format (API backends without tools)
-
-You cannot run tools in this mode. Return the COMPLETE code for every file you create
-or change, using this exact multi-file block format. The harness parses it mechanically;
-anything outside the blocks is discarded.
-
-## Format
-
-```text
-=== FILE: src/model.py ===
-<full file contents, no truncation, no "..." placeholders>
-=== END FILE ===
-=== FILE: src/parts/seat.js ===
-<full file contents>
-=== END FILE ===
-```
-
-Rules (all MUST):
-
-1. Header line is exactly `=== FILE: <path> ===` with a path relative to the workspace
- root, always starting with `src/` (or `public/` for scene assets). Footer line is
- exactly `=== END FILE ===`. Both on their own line, no indentation, no code fences
- around them.
-2. Put the **entire** file between header and footer — not a diff, not a fragment, not
- "rest unchanged". A file you do not emit stays as it was.
-3. No prose between blocks. If you must explain something, put it in a code comment
- inside the file. No markdown fences inside the block (write raw code, not ```python).
-4. One block per path; if you emit the same path twice the LAST block wins.
-5. Emit every file that the language contract requires (e.g. `src/model.py`;
- `src/object.js` + `src/parts/*.js`; `src/model.py` + `src/robot.urdf`;
- `src/scene.js` + `src/env.js` + …). A missing required file = build failure.
-6. Start your reply with the first `=== FILE:` line. End it with the last
- `=== END FILE ===` line. Nothing after it.
-
-## Fallback (legacy one-file parse)
-
-If — and only if — the task asks for exactly one file and you do not use the block
-format, the harness takes the first fenced code block (```python / ```js / ```xml) in your
-reply as that file. Do not rely on this; use the block format.
-
-## Worked example (two-file three.js object)
-
-```text
-=== FILE: src/parts/seat.js ===
-import * as THREE from 'three';
-export function buildSeat(THREE) {
- const g = new THREE.Group(); g.name = 'Seat';
- const m = new THREE.Mesh(new THREE.BoxGeometry(0.45, 0.04, 0.45),
- new THREE.MeshStandardMaterial({ color: 0x8b5a2b }));
- m.position.y = 0.45; g.add(m);
- return g;
-}
-=== END FILE ===
-=== FILE: src/object.js ===
-import * as THREE from 'three';
-import { buildSeat } from './parts/seat.js';
-export function build(THREE) {
- const root = new THREE.Group(); root.name = 'Stool';
- root.add(buildSeat(THREE));
- return root;
-}
-=== END FILE ===
-```
diff --git a/harness/codeverse3d/prompts/threejs/contract.md b/harness/codeverse3d/prompts/threejs/contract.md
deleted file mode 100644
index 5081ac27..00000000
--- a/harness/codeverse3d/prompts/threejs/contract.md
+++ /dev/null
@@ -1,141 +0,0 @@
-# three.js (static object) authoring contract — track `static_object`, language `threejs`
-
-## Files (ES modules, three r182)
-```
-src/object.js export function build(THREE) → THREE.Group (the whole object)
-src/parts/<snake>.js export function build<Pascal>(THREE) → THREE.Group (one per plan part)
-```
-`build()` imports the part builders with relative paths (`./parts/seat_cushion.js`),
-adds each returned Group to a root Group named after the object, and returns the root.
-The harness loads `src/object.js` in node, calls `build(THREE)`, validates the Group
-(a group with no meshes, a NaN / Infinity vertex position or an empty bounding box fails
-the build and names the part), runs the optional `selfcheck`, and exports
-`artifacts/object.glb` with `GLTFExporter` **exactly as authored** — nothing re-centres,
-grounds or rescales it. The lint derives the expected export from the file stem
-(`src/parts/seat_cushion.js` → `buildSeatCushion`): a misspelt name is a WARN, no `build*`
-export at all is an ERROR, and a part file nothing imports is a WARN whose geometry is
-simply absent from the GLB. Any other relative file under `src/` (a shared helper module)
-is allowed.
-
-## Frame, units, placement
-* **Y is up, +Z is the front, +X is the right. Meters.**
-* three.js geometry facts: `BoxGeometry(w, h, d)` is x-width, y-height, z-depth;
- `CylinderGeometry` / `ConeGeometry` / `LatheGeometry` axis is Y (a lathe profile is
- `Vector2(radius, y)`, normals outward when the radius runs 0 → R → 0 bottom-up);
- `TorusGeometry`, `PlaneGeometry`, `ShapeGeometry` and `ExtrudeGeometry` lie in the XY plane
- (the extrusion grows along +Z); every primitive is **centred on its own origin**, so a part's
- `position` is its centre, not its base.
-* Each part Group is returned **at its world pose** (position set on the Group or the meshes),
- geometry in meters, root scale (1, 1, 1): `root.scale.set(...)` makes the bounds and the
- contract gate read the geometry inconsistently.
-* The build warns when the object needs more than 10 mm of translation to stand on y = 0
- centred on the Y axis; `check_contract` measures the same two things (below).
-
-## Naming
-* Part Group: `g.name = "<PartName>"` — PascalCase exactly as the plan (`SeatCushion`). The
- GLB's node names are the Group / Mesh names, and the top-level node name is how every gate
- finds the part; `new THREE.Box3().setFromObject(root)` is the box `check_contract` measures.
- Unique names: a reused name makes the loader re-parent one of the nodes, and the gates then
- measure the wrong object. Instances get their own names (`Leg_0`…`Leg_3`) even when one
- function builds them. A mesh with no `.name` is a build warning (the census and the judge
- refer to meshes by name).
-* `root.userData.tick` is not called, rendered or exported on this track (the census only
- records whether it exists); the judged pose is the one `build` returns.
-
-## Imports
-Imports that resolve: `three`, any `three/addons/...` module (for example
-`three/addons/utils/BufferGeometryUtils.js` for `mergeGeometries`,
-`three/addons/geometries/RoundedBoxGeometry.js`), and relative `./` files under `src/`.
-A URL, another npm package, `three/webgpu`, `three/tsl`, a path escaping `src/`, a missing
-file or a name the module does not export is a lint ERROR (`bad_import`). Names removed
-before r182 and therefore undefined: `mergeBufferGeometries` (now `mergeGeometries`),
-`three/examples/js/*`, `Geometry`, `Face3`, `sRGBEncoding`, `outputEncoding`. Copying
-three's sources into `src/` gives two copies of the library and `instanceof` failures.
-`mergeGeometries` returns `null` (logging "All geometries must have compatible attributes")
-when one input is indexed or carries an attribute another lacks (`uv`, `color`); the next call
-on that `null` fails the build.
-
-## Sandbox (what the lint reports)
-* Lint ERRORs: `document`, `window`, `navigator`, `localStorage`, `fetch`, `XMLHttpRequest`,
- `WebSocket`, `require()`, `process.`, `eval`, `TextureLoader` / `ImageLoader` / `FileLoader`,
- `WebGLRenderer`, `requestAnimationFrame`. Lint WARNs, ignored at export: a camera, a light
- (exported as extras, not used by the harness lighting), a `Scene` in place of a Group.
-* Not linted: the exporter replaces `Math.random` with a seeded generator, so its
- draws repeat from build to build; the clock (`Date.now()`, `performance.now()`) does not, and
- geometry that depends on it changes between the builds the harness measures and renders.
-
-## Materials
-* `MeshStandardMaterial` / `MeshPhysicalMaterial` map to glTF PBR: colour, roughness, metalness,
- emissive and vertex colours (`geometry.setAttribute('color', …)` + `vertexColors: true`,
- exported as `COLOR_0`) survive the export. `ShaderMaterial`, `MeshToonMaterial` and every
- texture do not: textures are stripped at export with a build warning, a shader material
- exports as a plain one.
-* A hex colour is read as sRGB; `material.color.r` is the linear value, not the hex byte.
-* An `InstancedMesh` named `Posts` is exported as sibling meshes `Posts_0 … Posts_{n-1}` in
- its place (instance matrices and colours baked), so gates see every copy as an instance of
- `Posts` — and a copy that touches nothing is a floating island.
-
-## What is measured (the gates, with their thresholds)
-* **Contract** (`check_contract`, on the exported GLB against the plan): each plan part's bbox
- centre and extents are within max(10 mm, 10 % of the plan extent) per axis — WARN beyond,
- ERROR beyond 3 × that; the whole object's lowest point within 10 mm of y = 0 (WARN; ERROR
- past 30 mm) and its footprint centre within max(10 mm, 10 % of the footprint) of the Y axis
- (WARN); an object whose height runs along the wrong axis is reported as lying on its side;
- a top-level node the plan does not name is reported as "not in the plan".
-* **Connectivity** (`check_connectivity`, per top-level part): two parts are in contact when
- their surface gap is ≤ 2 mm. A part with no contact path to the supported assembly is a
- floating ERROR, with the nearest supported part and the translation that closes the gap
- (parts under 10 mm in their largest extent are INFO only). Penetration deeper than 2 mm
- across a visible share of the part is a WARN, deeper than 10 mm an ERROR. Inside one part,
- disconnected islands smaller than 5 % of the part are a `stray_islands` WARN — what a merge
- leaves behind: a degenerate triangle, a duplicated ring at a lathe seam, a vertex at the
- origin.
-* **Triangle budget** (the depth gate, sized from the plan's part × instance count): WARN below
- 350 triangles per built object (floor clamped to 1 500 – 40 000), ERROR above 20 000 per
- built object (ceiling clamped to 60 000 – 600 000); the target is about 2 000 per built
- object; a build over 3 s per built object (at least 20 s) is a WARN. Detail inside a plan
- part is invisible to the part-level gates; a new top-level node is a part.
-* **Build**: a geometry with a zero extent or radius, or `scale.set(0, 0, 0)` to hide something,
- produces NaN positions / normals and fails the export (hide with `visible = false`, or do not
- add it). The build is killed at `build_timeout_s` (300 s by default) and has a memory
- limit; the triangle ceiling above is the only count enforced.
-
-## Self-check (optional, at the end of object.js)
-If `object.js` exports `selfcheck(THREE, root)`, the harness calls it on the group returned
-by `build(THREE)` after validation, before export. A throw fails the build as
-`SelfCheckError` with your message and file:line, so assert only what you are sure about
-(the contract gate measures the GLB anyway).
-```js
-export function selfcheck(THREE, root) {
- const box = new THREE.Box3().setFromObject(root);
- if (Math.abs(box.min.y) > 0.01) throw new Error(`object not on ground: min.y=${box.min.y}`);
-}
-```
-
-## The interface, and nothing else (runs in node with [email protected] + GLTFExporter)
-
-`src/parts/body.js`
-```js
-import * as THREE from 'three';
-const SIZE = [0.3, 0.2, 0.3], CENTRE = [0, 0.1, 0]; // this part's plan bbox (world, metres)
-export function buildBody(THREE) {
- const g = new THREE.Group(); g.name = 'Body'; // the plan's part name
- const mesh = new THREE.Mesh(new THREE.BoxGeometry(...SIZE), new THREE.MeshStandardMaterial({ color: 0x8a8f98 }));
- mesh.name = 'BodyShell';
- mesh.position.set(...CENTRE); // world pose: the centre, not the base
- g.add(mesh);
- return g;
-}
-```
-`src/object.js`
-```js
-import * as THREE from 'three';
-import { buildBody } from './parts/body.js';
-export function build(THREE) {
- const root = new THREE.Group(); root.name = 'Object'; // the plan's object name
- root.add(buildBody(THREE)); // one line per plan part
- return root;
-}
-```
-What the part is made of — primitives, a lathe profile, an extruded outline, a swept tube,
-merged pieces, instanced repeats, raw `BufferGeometry` — is the brief's and the plan's.
diff --git a/harness/codeverse3d/prompts/threejs/system.md b/harness/codeverse3d/prompts/threejs/system.md
deleted file mode 100644
index 0e4204ad..00000000
--- a/harness/codeverse3d/prompts/threejs/system.md
+++ /dev/null
@@ -1,56 +0,0 @@
-You are a three.js modeller writing RAW ESM for a headless harness. Imports that resolve:
-`three`, `three/addons/*`, relative files under `src/`; anything else is a lint ERROR
-(`bad_import`). `build(THREE)` returns a `THREE.Group` containing at least one mesh; the
-exporter fails a group with no meshes or a NaN / empty bounding box. The harness owns the
-renderer, the export and the cameras: a renderer or a render loop in object code is a lint
-ERROR, a light or a camera a lint WARN that the export ignores.
-
-{% if tools %}
-The loop that decides whether your work ships:
-
- write → `build` → `check_connectivity` + `check_contract` → fix what they
- report → repeat → `render_views` → LOOK at the sheet → only then finish.
-
-Every WARN and ERROR the gates report at the end of a round goes to the judge with the
-renders, and an ERROR on connectivity or contract caps the score. `isolate` shows one
-part alone, which settles "where did that fragment come from" faster than reading the
-code does.
-{% else %}
-You cannot run anything: this is a single-shot session with no tools, so the code you
-return is the code that ships. Before you finish, walk the part list once: does any part
-carry a loose fragment, does each one touch what it is supposed to touch, and does its
-bounding box match the number the plan gave it.
-{% endif %}
-
-What the gates measure on this track, most frequent first (thresholds in the contract):
-
-* **Stray islands** — `check_connectivity` counts the disconnected islands inside every
- top-level part and reports the ones smaller than 5 % of the part's largest extent as stray
- geometry. In three.js that is what a merged `BufferGeometry` leaves behind: a degenerate
- triangle, a duplicated ring at a lathe seam, a leftover vertex at the origin.
-* **Interpenetration** — two parts may overlap by at most 2 mm; deeper is a WARN, past
- 10 mm an ERROR. A `BoxGeometry` is centred on its origin: a 0.1 m leg placed at `y = 0`
- is half underground.
-* **Floating parts** — every part touches the assembly: a surface gap ≤ 2 mm counts as
- contact; a part farther than that from every supported part is a floating ERROR,
- however close it looks in the render (parts under 10 mm in extent are INFO only).
-* **Bbox deviates from the plan** and **parts not in the plan** — each plan part's bbox
- centre and extents are within max(10 mm, 10 % of the plan extent) per axis (WARN; three
- times that is an ERROR); a top-level node the plan does not name is reported as "not in
- the plan", so no helper meshes, bounding boxes or axes reach the GLB.
-
-Facts that hold for every brief:
-
-* **Author in metres at real scale.** The part Group's `name` is the plan's PascalCase
- part name: the GLB's top-level node name is how the gates find the part. A mesh with no
- name is a build warning.
-* **three.js primitives are centred on their origin**, so a part's `position` is its
- CENTRE, not its base. Most floating and sunken parts on this track are that one term.
-* **Only `MeshStandardMaterial` / `MeshPhysicalMaterial` colour, roughness, metalness,
- emissive and vertex colours survive the GLB export.** The harness lights and renders the
- exported file its own way.
-* **You place the object; the harness exports it as authored.** It never re-centres or
- grounds it; the build warns past 10 mm and `check_contract` measures the same thing.
-
-Gate ERRORs cap the score, and the depth gate also WARNs below its triangle floor, so a
-bare stack of primitives is not free either — both numbers are in the contract.
diff --git a/harness/codeverse3d/prompts/tracks/brief_object.j2 b/harness/codeverse3d/prompts/tracks/brief_object.j2
deleted file mode 100644
index c7030eae..00000000
--- a/harness/codeverse3d/prompts/tracks/brief_object.j2
+++ /dev/null
@@ -1,43 +0,0 @@
-You are a PRODUCT ENGINEER writing the reference brief for one object before anyone models it.
-Someone will build a 3D model of it from your brief alone, and a viewer who owns the real thing
-will judge the result. Write what a person who has actually held one knows — not what a search
-result says.
-
-Answer as JSON only, no prose outside it.
-
-WHAT TO PRODUCE
-1. `object_name` — PascalCase (`HandCrankCoffeeGrinder`).
-2. `reference` — ONE concrete real instance your numbers come from: a make/model, a period type,
- a catalogue item ("Peugeot 1920s cast-iron box grinder", "Record No. 4 bench vise",
- "1960s Danish teak dining chair"). Never "a generic X".
-3. `one_line` — what it is, one sentence.
-4. `dimensions_m` — up to 12 rows `{name, meters}` giving the real-world dimensions of THAT
- instance in METERS: `width`, `depth`, `height`, `length`, `diameter`, plus any part
- dimension that matters (`wheel_diameter`, `handle_length`, `wall_thickness`,
- `spoke_thickness`). A coffee mug is 0.090 m across, not 1.0. Include the small ones —
- they are what makes a model read as real.
-5. `sub_assemblies` — the assemblies a fitter would name when taking it apart (up to 10). For each:
- `name` as a catalogue would print it, `purpose` one line, `parts` the pieces it is built from
- (named the way a parts diagram names them), `material`. This is the spine of the 3D plan:
- a "burr mechanism" is a burr cone, a grind-adjust nut, a shaft, a bearing collar and a spring —
- NOT one lump.
-6. `mechanism` — how it works: what moves, what turns, where force or material goes in and comes
- out. One paragraph. For a purely static object, say how it is assembled and what carries load.
-7. `visible_from_outside` — the things a viewer actually SEES when it sits on a table (up to 16 items,
- each concrete: "the seam line where the crumb tray slides out", "six vertical flutes on the
- body", "the exposed rafter tails under the eave"). These, and only these, are worth modelling.
-8. `hidden_inside` — real parts that are NOT visible from outside and must therefore not be built
- (springs inside a housing, wiring, the underside of a lid that never opens).
-9. `not_present` — what a naive model would wrongly add (a modern grinder has a motor; an antique
- one does NOT — "electric motor, power cord, plastic buttons").
-10. `signature_features` — up to 6 features a viewer uses to RECOGNISE this object. If one of them
- is missing the model reads as the wrong object. Order them by how load-bearing they are.
-11. `materials` — one `"<part>: <material, colour, finish>"` line per visible material, at most 12: "body: quarter-sawn beech,
- warm mid brown, satin", "dome: cast iron, near-black, slightly rough".
-
-RULES
-- Real numbers in meters, three decimals, from the reference instance. No unit cubes, no "about
- medium sized".
-- Prefer the specific over the safe: "acme thread, 6 mm pitch, 8 visible turns" beats "a screw".
-- Every list entry stands alone — the modeller reads them one at a time.
-- Do not describe the 3D model, the code, or how to build it. Describe the OBJECT.
diff --git a/harness/codeverse3d/prompts/tracks/generate_articulated.j2 b/harness/codeverse3d/prompts/tracks/generate_articulated.j2
deleted file mode 100644
index 5aebffd2..00000000
--- a/harness/codeverse3d/prompts/tracks/generate_articulated.j2
+++ /dev/null
@@ -1,91 +0,0 @@
-# Build the articulated `{{ object_name }}`: bpy links + hand-written URDF
-
-You write TWO files: `src/model.py` (raw bpy — per LINK, the object named exactly as the link plus
-anything parented under it, authored in WORLD coordinates at the rest pose) and `src/robot.urdf`
-(native URDF describing the joints). The harness
-exports each link to `meshes/<link>.glb`, lints the URDF, runs forward kinematics, sweeps every joint
-between its limits and checks for penetrations, then renders rest + limit poses for a judge.
-
-## Request
-{{ spec_prompt }}
-Constraints:
-{{ constraints }}
-{% if reference_note %}
-{{ reference_note }}
-{% endif %}
-
-## The contract (hard rules)
-{{ frame_doc }}
-{{ contract }}
-
-## Plan
-{{ plan_summary }}
-Overall bbox (rest pose): {{ overall_bbox }}
-Style: {{ style_notes }}
-
-Links (one bpy object each; link name = the snake_case of the `part` column, `DoorHandle` →
-`door_handle`, as the skeleton writes it — the PascalCase spelling is accepted too):
-{{ parts_table }}
-
-Link construction notes:
-{{ part_details }}
-
-Joints — the brief's requirement, as the harness measures it: the tree must carry these names,
-parents and children (URDF lint), each `motion` word is checked against the direction positive q
-moves the child (`motion_direction`, 60° cone) and the limits are the range the sweep tests; pivots
-are WORLD points at rest:
-{{ joints_table }}
-
-## Acceptance checklist
-{{ acceptance }}
-
-## The whole object first
-Every link exists at its planned box and the URDF names every planned joint before any link gets
-detail: a session can be stopped at its window, and what it leaves must still be the whole object.
-Measured: a link still the skeleton's box (≤ 12 triangles, a closed solid filling its
-box, within 1 mm of the plan box) is a `placeholder_part` ERROR in `check_contract`; a link that does
-not meet its parent is an ERROR (the gaps are stated under DON'T below).
-
-## DO
-- Build every link at its WORLD rest pose to the plan's bbox (`check_contract`: max(10 mm, 10 %) per
- axis); one object named exactly as the link, with any helper objects parented under it (the
- wrapper joins them).
-- Use the table's axes and limits (the skeleton already wrote them); if the motion check shows
- positive q moving the child against the plan's `motion` word, negate that axis — never swap the
- limits. `effort`/`velocity`: any positive numbers.
-- Clearance is measured, not estimated: no overlap deeper than 2 mm in any sweep pose (a moved-pose
- overlap is always an ERROR; a rest overlap above 5 mm fails the build); a fixed child within 2 mm
- of its parent, a moving child within 10 mm.
-- Every pivot lies on the real hinge line or slide axis of the part (the motion check measures the
- link's centroid displacement; a centred pivot gives none and the part sweeps through its neighbour).
-
-## DON'T
-- No camera/light/render/export calls in bpy; imports are the ones the blender lint allows (the
- contract's Allowed / forbidden section).
-- No floating links: at rest a fixed child's mesh is within 2 mm of its parent's, a hinged or sliding
- child's within 10 mm (ERROR beyond 30 mm; a prismatic child already inside its parent's bbox is
- exempt).
-- No joint whose child passes through another link anywhere in [lower, upper].
-- No renaming of links/joints; no extra root links; one tree rooted at `{{ root_link }}` as planned.
-
-{% if skeleton_files %}
-## Current files (the skeleton in src/: keep the link and joint names and robot.urdf's frames; replace every placeholder box with the real link)
-{% for path, body in skeleton_files.items() %}
---- {{ path }} ---
-```
-{{ body }}
-```
-{% endfor %}
-{% endif %}
-{% if previous_error %}
-## The previous attempt failed to build — fix the cause while rebuilding
-{{ previous_error }}
-{% endif %}
-
-{% if tool_cards and not single_shot %}
-## Tools available to you
-{{ tool_cards }}
-{% endif %}
-
-## Output
-{{ output_format }}
diff --git a/harness/codeverse3d/prompts/tracks/generate_graphics.j2 b/harness/codeverse3d/prompts/tracks/generate_graphics.j2
deleted file mode 100644
index 5619dccd..00000000
--- a/harness/codeverse3d/prompts/tracks/generate_graphics.j2
+++ /dev/null
@@ -1,78 +0,0 @@
-# Build `{{ title }}` in raw {{ language }}
-
-{% if single_shot %}You write the COMPLETE code{% else %}You write the code{% endif %} for one animated real-time effect from the plan below. A headless harness
-compiles/runs it with moderngl, renders frames at t = {{ judge_times }} at {{ resolution }}, measures them
-(luminance, colourfulness, detail, motion between frames, NaN pixels) and shows a labelled contact sheet
-to a judge. You never see the harness: make the code correct by construction and MAKE IT MOVE.
-
-## Request
-{{ spec_prompt }}
-Constraints:
-{{ constraints }}
-{% if reference_note %}
-{{ reference_note }}
-{% endif %}
-
-## The contract (hard rules — the build fails or the gate rejects when broken)
-{{ contract }}
-
-Files you must produce: {% for f in expected_files %}`{{ f }}`{% if not loop.last %}, {% endif %}{% endfor %}.
-
-## Plan
-{{ plan_summary }}
-Style: {{ style }}
-Resolution {{ resolution }}, loop {{ duration }} s. Harness uniforms in use: {{ uniforms }}.
-
-Passes / layers (implement EVERY row, in this order):
-{{ passes_table }}
-
-Key visuals a viewer must recognise:
-{% for v in key_visuals %}- {{ v }}
-{% endfor %}
-Motion: {{ motion }}
-
-## Acceptance checklist (the judge verifies each item; build so every item is visibly true)
-{{ acceptance }}
-
-## What is measured
-- Motion: the largest mean |Δ| between consecutive sampled frames (t = {{ judge_times }}) must reach 0.002
- (else `static`, cap 0.5) and no consecutive pair may exceed 0.35 (`flicker`, cap 0.7): continuous motion,
- no hard cuts, no per-frame random seeds.
-- Circles must stay round at {{ resolution }} (judge defect `stretched_aspect`, −0.06).
-- The style's palette is what the judge's light_and_tone criterion grades against; no sampled frame may be
- essentially black or blown out (cap 0.5).
-- Structure at the scales the subject has: one field filling the frame is the `flat_fill` defect (−0.08)
- and the 0.1 anchor of depth_and_detail (0.16).
-- One NaN / Inf pixel caps the score at 0 (the NaN sources are listed in the contract).
-- Loop bounds are compile-time constants; a frame that does not finish inside the render timeout fails the build.
-
-## DON'T
-- No `#version` line, no `uniform`/`out` declarations of the harness names (shader); no window,
- context creation, clock, file IO outside src/ (program).
-- No placeholders ("TODO", "simplified"); no static image when the plan says motion.
-- No textures other than the harness ones; no network; no imports outside the contract's allow-list.
-
-{% if skeleton_files %}
-## Current files (the harness skeleton: the file names and the entry point are the interface; everything inside is yours to replace)
-{% for path, body in skeleton_files.items() %}
---- {{ path }} ---
-```
-{{ body }}
-```
-{% endfor %}
-{% endif %}
-{% if previous_error %}
-## The previous attempt failed to build — fix the cause while rebuilding
-{{ previous_error }}
-{% endif %}
-
-{% if tool_cards and not single_shot %}
-## Tools available to you
-{{ tool_cards }}
-Workflow: edit → `gl_probe` (compile + first frame + stats; fix every error) → `gl_frames` (contact sheet
-of the judged times — LOOK at it and compare against the key visuals) → iterate until the frames match
-the plan. Ignore the mesh tools (measure, render_views, check_*): this track has no GLB.
-{% endif %}
-
-## Output
-{{ output_format }}
diff --git a/harness/codeverse3d/prompts/tracks/generate_static.j2 b/harness/codeverse3d/prompts/tracks/generate_static.j2
deleted file mode 100644
index adedcc3d..00000000
--- a/harness/codeverse3d/prompts/tracks/generate_static.j2
+++ /dev/null
@@ -1,87 +0,0 @@
-# Build `{{ object_name }}` in raw {{ language }}
-
-{% if single_shot %}You write the COMPLETE code{% else %}You write the code{% endif %} for one static 3D object from the plan below. A harness will execute
-your code, export a GLB, measure every part against the plan and render it for a judge. You never
-see the harness: make the code correct by construction, with the plan's exact numbers.
-
-## Request
-{{ spec_prompt }}
-Constraints:
-{{ constraints }}
-{% if reference_note %}
-{{ reference_note }}
-{% endif %}
-
-## The contract (hard rules — the build fails or the gate rejects when broken)
-{{ frame_doc }}
-{{ contract }}
-
-Files you must produce: {% for f in expected_files %}`{{ f }}`{% if not loop.last %}, {% endif %}{% endfor %}.
-
-## Plan
-{{ plan_summary }}
-Overall bbox: {{ overall_bbox }}
-Style: {{ style_notes }}
-
-Parts (build EVERY row; names must match exactly — they become node names in the export):
-{{ parts_table }}
-
-Construction notes per part:
-{{ part_details }}
-
-## Acceptance checklist (the judge verifies each item; build so every item is visibly true)
-{{ acceptance }}
-
-## The whole object first
-Every row of the table exists at its planned box and is joined to the part it attaches to before any
-part gets detail: a session can be stopped at its window, and what it leaves must still be the whole
-object. Measured: a part still the skeleton's box (≤ 12 triangles, a closed solid filling its
-box, within 1 mm of the plan box) is a `placeholder_part` ERROR in `check_contract`; a part not joined
-to the ground-touching component is a floating ERROR in `check_connectivity`.
-
-## DO
-- Place each part so its bounding box CENTRE and EXTENTS equal the plan row. Compute
- positions from the numbers in the table; do not re-invent the layout.
-- Touching parts: surface gap ≤ 0.002 m (flush counts), overlap ≤ 0.002 m (`check_connectivity`
- reports deeper overlap as interpenetration). Every part must be in the ground-touching component
- (a floating part is an ERROR). Add no connector geometry the plan does not list.
-- Use `instances` + `symmetry` from the table: mirror pairs at ±x, radial sets around the up axis.
-- Build the features each plan description names, at its numbers and counts (the judge's
- checklist verifies them).
-- A material per part with the plan's colour.
-- Name parts EXACTLY as in the table (PascalCase). One named node/object per part; the
- instances of a part are top-level nodes `Name_0`, `Name_1`, ….
-
-## Detail
-{{ detail_advice }}
-
-## DON'T
-- No environment sniffing, no `typeof window`, no headless branches — one code path.
-- No DOM, canvas textures, image/texture loading, network, file IO, camera/light/render/export calls.
-- No helper SDKs or imports beyond the contract's allow-list.
-- No placeholders ("TODO", "simplified"); no part off its planned extents by more than the
- contract tolerance (max(1 cm, 10 %) per axis; 3 × that is an ERROR); no unit-cube stand-ins; no
- parts outside the overall bbox.
-- Do not change part names, counts or the overall size to "simplify".
-
-{% if skeleton_files %}
-## Current files (skeleton in src/: keep the file names and entry names your contract states; replace the placeholder geometry and helpers freely)
-{% for path, body in skeleton_files.items() %}
---- {{ path }} ---
-```
-{{ body }}
-```
-{% endfor %}
-{% endif %}
-{% if previous_error %}
-## The previous attempt failed to build — fix the cause while rebuilding
-{{ previous_error }}
-{% endif %}
-
-{% if tool_cards and not single_shot %}
-## Tools available to you
-{{ tool_cards }}
-{% endif %}
-
-## Output
-{{ output_format }}
diff --git a/harness/codeverse3d/prompts/tracks/plan_articulated.j2 b/harness/codeverse3d/prompts/tracks/plan_articulated.j2
deleted file mode 100644
index 3ce9877b..00000000
--- a/harness/codeverse3d/prompts/tracks/plan_articulated.j2
+++ /dev/null
@@ -1,74 +0,0 @@
-You are the DESIGN PLANNER for an ARTICULATED object (links + joints) that will be built in
-`{{ language }}`: Blender bpy meshes for the links and a hand-written URDF for the joints. You write
-the plan once; a builder model follows it without seeing you. Everything must be exact numbers.
-
-{{ frame_doc }}
-
-LANGUAGE CONTRACT THE BUILDER WILL FOLLOW:
-{{ contract }}
-
-WHAT TO PRODUCE (JSON, fields: {{ schema_fields }}):
-1. `object_name` PascalCase; `summary`: overall size in metres and what moves.
-2. `overall_bbox` — real-world dimensions in meters, authored at the REST pose; bottom at up=0.
-3. `parts` = LINKS, within the PLAN BUDGET block in the request (it states the ceiling, and a floor
- only when the request is evidence of one). One part per rigid body that MOVES AS A UNIT — a
- drawer is ONE link even though it has a front, a box, runners and a handle. Each part:
- PascalCase `name`, `role`, `description` with construction numbers, `bbox` (centre + extents, meters,
- rest pose, WORLD coordinates), `attach_to` = the parent link, `material` with colour.
- At rest no two links overlap by more than 2 mm (the build fails above 5 mm); a fixed child touches
- its parent or sinks at most 2 mm into it; a hinged or sliding child's mesh is within 10 mm of its
- parent's. Over each joint's range the moving link must clear every other link by more than 2 mm in
- every pose (the sweep samples lower/mid/upper and random combinations).
- * `children` — the sub-parts of a link, each with its own bbox inside the link's (up to 8): this is
- where an articulated plan carries the brief's detail. Each child needs `name`, `description` in
- numbers, a `bbox` INSIDE the link's bbox (same frame, rest pose) and `material` when it differs.
- Sub-parts are NOT extra links: they carry no joint, they add no collision pair, and the builder
- exports the whole link as ONE object named after the LINK. Add depth here, not by splitting a
- rigid body into more links — every extra link costs a joint and a collision-sweep pair.
- Leave `children` empty for a link that really is one shape (a rod, a plate, a wheel).
- * `detail_hint` — one line, on the links that carry the object's identity: what makes THAT link
- read as real.
-4. `root_link` — the grounded/base link (cabinet, base, chassis).
-5. `joints` — one per moving link, forming a single tree from `root_link`:
- * `type` revolute (hinges, lids, doors; radians) · prismatic (drawers, slides; meters) ·
- continuous (wheels, fans) · fixed (rigid attachments you still want as separate links).
- * `axis` unit vector in the frame above; `pivot` a WORLD point on the axis at rest (the hinge line,
- the slide direction through the drawer centre).
- * `lower`/`upper` — the real travel of the mechanism (a revolute range stays within 2π; the sweep
- tests both ends); `rest` within the limits (0 when the authored pose is the closed/home state).
- * `motion` one line naming the direction positive travel moves the link — front/back/up/down/left/
- right or an explicit ±x/±y/±z (Z up, −Y front): the harness measures the link's centroid
- displacement against that word (60° cone). The first direction word wins, so put it first; a
- sentence that names two axes, a negation, or only a rotation ("spins around") is not checked.
- * Count the moving parts the brief names (doors, drawers, lids, arms, wheels): that is the number of
- non-fixed joints, give or take one. Do not add joints to reach a part count — a rigid feature is a
- sub-part, not a link.
- * A mechanism with ONE input and several moving links (umbrella ribs on a runner, scissor/
- pantograph arms, a tambour's slats, folding legs braced together) declares the coupling:
- give every follower joint `mimic: {joint: "<the driving joint>", multiplier: <ratio>, offset: 0}`.
- The harness then moves the driver and lets the followers follow; without it the sweep poses
- each link on its own and the mechanism is judged in states it cannot reach.
- * `parent` / `child` name top-level `parts` (links) — NEVER a sub-part: anything a joint moves must be
- its own link (the harness promotes a referenced sub-part to a link, but plan it as a link yourself).
- A `revolute` range stays within 2π; a part that turns freely (swivel, wheel) is `continuous`.
-6. `acceptance` — the brief's own checks: its dimensions (`measure`), ground contact, each named
- feature (`visual`), and ONE `articulation` item per joint stating the travel and that nothing is
- penetrated through it ("drawer slides out 0.35 m without touching the cabinet").
-
-RULES
-- When the request carries an ENGINEERING BRIEF, its dimensions, sub-assemblies and signature
- features are ground truth: every signature feature must be findable as a link, a sub-part or a
- named detail in some `description`. Sub-assemblies that do not move become `children`, not links.
-- A link's `description` (or its `children`) says what the real link has that a plain primitive
- does not — its profile, counted repeats, how its edges and joins are made. When the PLAN BUDGET
- block states a detail minimum, the quality gate re-asks a plan below it.
-- Sweep-safe: the harness poses each joint at lower, mid and upper and 8 random combinations; no link
- may pass through another in any of them. Every pivot is a point ON the physical hinge line or slide
- axis — a pivot at a part's centre makes it sweep through its neighbour and the motion check cannot
- measure it.
-- Pivot and axis are the contract the URDF will be checked against; choose them to 3 decimals.
-- Every link except `root_link` is the child of exactly one joint; parent/child names are part names.
-- No prose outside the JSON.
-
-SCHEMA EXAMPLE (the fields and their types; its object, numbers and sub-parts are not yours):
-{{ example_json }}
diff --git a/harness/codeverse3d/prompts/tracks/plan_graphics.j2 b/harness/codeverse3d/prompts/tracks/plan_graphics.j2
deleted file mode 100644
index f0bf73b5..00000000
--- a/harness/codeverse3d/prompts/tracks/plan_graphics.j2
+++ /dev/null
@@ -1,52 +0,0 @@
-You are the ART-DIRECTOR / TECHNICAL PLANNER for a real-time graphics harness. You turn ONE request for
-an animated effect into a machine-readable plan that a code-writing model will implement in
-`{{ language }}` without seeing you again. The effect is rendered headless by the harness at the
-plan's resolution and judged on frames sampled at t = 0, 1, 2.5, 4 and 6 s (plus a preview GIF).
-
-LANGUAGE CONTRACT THE BUILDER WILL FOLLOW (your plan must fit it — e.g. a fragment shader has no
-geometry; an OpenGL program may draw meshes, instances, multiple passes):
-{{ contract }}
-
-WHAT TO PRODUCE (JSON, fields: {{ schema_fields }}):
-1. `title` — short name (`TidePoolRipples`).
-2. `summary` — two sentences: what the viewer sees, and what moves.
-3. `style` — the palette in words with each colour's role, the mood, references ("cyberpunk poster",
- "Studio Ghibli sky"), rendering character (soft/filmic, crisp/flat, glow). The judge's
- light_and_tone criterion grades the frames against this description.
-4. `resolution` — [width, height]; default [1280, 720]; use [720, 1280] only for explicitly vertical requests.
-5. `duration_s` — the preview GIF's loop length in seconds. The judged frames stop at 6 s, so it must be
- at least 6 or some judged times are dropped.
-6. `passes` — in draw order, as many as the effect has (the PLAN BUDGET block in the request states
- the ceiling, and a floor only when the request's checklist is long enough to set one). For a
- fragment shader a pass is a layer composited inside the one shader; for an OpenGL program it may
- be a real pass (geometry, FBO post-process). For EACH pass: `name` PascalCase, `kind` (fullscreen |
- geometry | postprocess | feedback), `description` — concrete: what it draws, the technique by
- name, and the quantities the builder needs (counts, sizes in screen fractions, speeds, the
- style's colours). Concrete beats adjectives.
- * `elements` — optional: the named things this pass draws, each with its own quantities.
- * `detail_hint` — optional, one line: what makes THIS pass read as the subject rather than as a demo.
- The judge's depth_and_detail criterion (0.16) and its `flat_fill` defect (−0.08) grade structure
- at the scales the subject has; a single field filling the frame is that criterion's 0.1 anchor.
-7. `uniforms` — which harness uniforms the effect needs (`u_time`, `u_resolution`, `u_prev` for
- feedback trails, `u_noise` for a noise texture).
-8. `motion` — ONE paragraph: exactly what animates and how (direction, speed in screen-fractions
- per second or Hz, easing), and what must stay still. Every request is animated unless it says
- "static image": the largest difference between consecutive sampled frames must exceed the static
- threshold (0.002 mean |Δ|), else the score caps at 0.5.
-9. `key_visuals` — the things a viewer MUST recognise, as nouns.
-10. `acceptance` — checklist items verifiable from the frames: one per user must-have and one per
- key visual (`how: visual`); the harness adds a motion probe when the plan animates. Ids `a1`,
- `a2`, …; `priority: must` for things whose absence makes it the wrong effect, `should` for
- polish — an unverified `must` caps the score at 0.7.
-
-RULES
-- Plan inside the language: a fragment shader has no geometry — everything is a function of the
- pixel, time and the two samplers; an OpenGL program may draw meshes, instances and real passes.
-- Numbers where the builder needs them: counts, speeds, screen fractions, colours as triples
- (0.9, 0.2, 0.6).
-- Avoid textbook demos (plain plasma, rainbow spiral) unless asked; give the effect one idea that
- makes it specific to the request.
-- No prose outside the JSON.
-
-SCHEMA EXAMPLE (the fields on an effect nobody asked for; never a pass list, a layering or values to copy):
-{{ example_json }}
diff --git a/harness/codeverse3d/prompts/tracks/plan_scene.j2 b/harness/codeverse3d/prompts/tracks/plan_scene.j2
deleted file mode 100644
index 7c636401..00000000
--- a/harness/codeverse3d/prompts/tracks/plan_scene.j2
+++ /dev/null
@@ -1,280 +0,0 @@
-{% if language == 'scene_blender' %}
-You are the SCENE DIRECTOR for a Blender (bpy, Cycles) scene that several code-writing models will
-build in parallel from your plan alone (one per asset, one for every zone, one for the environment).
-{% else %}
-You are the SCENE DIRECTOR for a real-time three.js scene that several code-writing models will
-build in parallel from your plan alone (one per asset, one per zone, one for the environment).
-{% endif %}
-Write the plan as exact numbers and concrete nouns; keep it lean (cost matters). The plan states
-REQUIREMENTS for the brief's place — what is true, where, in what size — and leaves the
-construction to the builders.
-
-{% if language == 'scene_blender' %}
-THE PLAN'S FRAME: write every number — bounds, zone bboxes, asset sizes (width × height × depth),
-camera positions — in the Y-up GLB frame (Y up, +Z towards the viewer, metres, the ground around
-y = 0 unless the plan puts it elsewhere), exactly as a three.js director would. The builders
-author Blender Z-up modules, and the HARNESS converts every number it prints for them (their
-skeleton, their briefs, the layouts): you never write Z-up numbers, and `environment` prose says
-"y" for up. (The language frame the builders see, for reference: {{ frame_doc }})
-{% else %}
-{{ frame_doc }}
-The scene uses the same frame: Y up, meters; say where the ground is (it is around y=0 unless
-the plan puts it elsewhere).
-{% endif %}
-
-LANGUAGE CONTRACT THE BUILDERS WILL FOLLOW:
-{{ contract }}
-
-{% if language == 'scene_blender' %}
-DESCRIBE, DO NOT PRESCRIBE — every mesh, material, lamp, world and motion is `bpy` / `bmesh` the
-builders write, so describe each thing by what it IS — dimensions, parts,
-materials with colours and how they vary (broad wear and fine grain), and the silhouette features a
-person would name (a pine's whorled limbs carrying needle cards, a boulder's irregular facets) —
-never by a call or a module. A thing repeated across zones (a tree species, a lamp post, a crate)
-is an asset within the triangle budget below. Zone `contents` lists only actual
-asset names; scenery a zone builds itself belongs in its prose, not in invented asset ids. Water and terrain
-share ONE surface sampler (`height_at` from the environment) and every placed thing is seated on
-it or on what it stands on — the harness measures the gap. Geometry that exists only to continue
-the world beyond the bounds is named with the `Sky` prefix (the census then keeps it out of the
-content bbox).
-{% else %}
-SHIPPED LIBRARY (optional toolbox):
-The scene workspace already contains, under `src/lib/`:
-`rock.js` (`makeRock`, `makeRockField`: sandstone / granite / basalt rocks and talus),
-`tree.js` (`makeTree`: oak / birch / willow; `makeShrub`), `grass.js` (`makeGrass`),
-`terrain.js` (`ground`, `cliff`) and `environment.js` (`sunRig`, `makeOutskirts`, `roomShell`).
-Use a call when its output fits the brief: name it, its module and
-its dimensions in the owning zone description / environment / effects. An element the library
-does not grow in the form the brief wants (a pine, a palm, a carved stone, a different kind of
-boat) is an asset built from scratch within the triangle budget below; so is a grove or forest,
-because each `makeTree` is a full tree and the build census counts every triangle.
-Interface: a `threejs` asset may compose a factory with its own parts (a shrine with a `makeTree`
-beside it) — name the call and its module in that asset's description, and the asset imports
-`../lib/`; a `blender_glb` hero cannot. Zone `contents` lists only actual asset names; library
-effects a zone places itself belong in its prose, not in invented asset ids. A stream or river
-has one upstream-to-downstream path with nonincreasing Y, and its banks sample the same terrain
-height function. The zone drives each effect's `userData.update(t, dt)` exactly once per frame.
-{% endif %}
-
-## What the harness measures and the judge sees (plan so these hold)
-- Every authored camera is rendered at t=0 s and t=1.5 s and judged as a picture of the brief's
- place. `cameras[0]` is measured as the establishing shot: content covers >= 20 % of its frame;
- every other authored camera >= 10 % (the rest being sky/ground). A lens inside a mesh or
- within 0.5 m of a surface caps the whole run.
-- No world edge, horizon seam or box boundary is visible from any authored camera (judge; and
- outdoors the census checks that standing geometry >= 2 m tall reaches past 1.25 x the bounds'
-{% if language == 'scene_blender' %}
- half-extent, and that the atmosphere's 1 / density is >= the plan span / 1.5 — a denser fog
- dissolves the world inside the content and reads as an edge). How the world continues is the environment builder's choice for this
- place.
-{% else %}
- half-extent, and that fog far is >= 2 x the plan span — a shorter fog reads as an edge). How
- the world continues is the environment builder's choice for this place.
-{% endif %}
-- The ground is a believable landform for the place (judge): flat, sloped, terraced, a shore, a
- cliff — whatever the brief implies; every placed thing is seated on it or on what it stands on
- (placement gate: a gap > 0.05 m outdoors / 0.02 m indoors is floating, > 0.10 m into the
- support is sunken, overlapping neighbours interpenetrate — each caps the score).
-- The lighting reads as the stated time of day and weather, and the frame is not monochrome
- unless the brief asks for it (judge; exposure is measured against a luminance band).
-- Something moves visibly between t=0 s and t=1.5 s (motion probe), and motion the brief names
- is visible from the establishing camera.
-- Repeated elements do not read as identical copies (judge), and >= 8 same-size copies spaced
- evenly on a ring round the world are measured as a stamped backdrop. A deliberately regular
- row the brief implies (an orchard, a colonnade, bollards along a quay) is fine.
-- The place carries what its activity implies; a bare diorama on one plane is a judged defect,
- and a zone under half its layout's count gets an INFO note (the counts the brief states are acceptance items).
-- The brief's must-haves are acceptance items; an unmet `must` caps the run at 0.60.
-
-WHAT TO PRODUCE (JSON, fields: {{ schema_fields }}):
-1. `title`, `summary` (two sentences), `setting` (place, era, weather, time of day), `mood`.
-2. `bounds` — centre + extents in meters of the DETAILED area: where the builders spend their
- detail and what the harness measures against (zone layouts, placed assets — one sitting
- entirely outside is noted — and camera clearance). It is not a cage: the world continues past
- it as the place does — a road or river running out, a wall, a shoreline, far buildings,
- terrain that keeps going — and the environment builder builds that continuation. Size and
- proportion it to the brief's subject: a street is long and narrow, a courtyard small, a
- valley wide; a bigger box is not more detail.
-3. `environment` — ONE paragraph of concrete numbers for what the brief's place needs:
-{% if language == 'scene_blender' %}
- the sun / moon azimuth (compass: 0 = +X, 90 = +Y) + elevation in degrees and the time of day
- (dawn / morning / noon / golden / overcast / dusk / night — the builders' lighting table); the
- Sun lamp's colour + energy in W/m² and the sky world strength such that the judged frames land
- in the measured luminance band (pairs that did: day 3-5 W/m² at world 0.4-0.5, dusk 1-1.5 at
- 0.2, a moon 0.1-0.3 at 0.1), coloured for the weather; atmosphere: fog density + colour as a
- volume over the ground when the weather needs it (the census reads its density: 1 / density
- >= the plan span / 1.5); the LANDFORM — what the land does across the bounds and its height at each
- authored camera position (camera heights are absolute) — and the ground surface(s) with
- colours (RGB 0-1) and where walkways, roads or tracks run, as (x, z) routes with widths, when
- the brief has them (the zone layouts read them as `path_points`); how the world continues
- beyond the bounds in each direction and what the horizon is from the authored cameras (for an
- interior: what is seen through the openings); water height + colour, if any. Ponds, terraces
- and beds meet the terrain with no floating edge (placement gate).
-{% else %}
- sky colours and the sun/moon azimuth + elevation in degrees; key light hex + intensity and
- fill (hemisphere) sky/ground hex + intensity for that time of day and weather (a fill hue well
- away from the key's is one way to keep the frame from going monochrome); atmosphere: fog hex +
- near/far in meters as the weather needs it (fog is measured: present, far >= 2 x the plan
- span); the LANDFORM — what the land does across the bounds and its height at each authored
- camera position (camera heights are absolute) — and the ground surface(s) with colours and
- where walkways, roads or tracks run, as (x, z) routes with widths, when the brief has them
- (the zone layouts read them as `path_points`); how the world continues beyond the bounds in
- each direction and what the horizon is from the authored cameras (for an interior: what is
- seen through the openings); water height + colour, if any. Ponds, terraces and beds meet the
- terrain with no floating edge (placement gate).
-{% endif %}
-4. `zones` — the brief's places, one builder each, with PascalCase names, a `bbox` (where that
- builder may place: layouts are validated against it with 1 m of slack) and `contents` = asset
- names placed there. Lay them out as the place is laid out — along a street, round a corner,
- radially about a well, scattered over a slope, one inside another — in any number and size;
- they need not cover the bounds, open ground between them is allowed, and two bboxes overlap by
- at most 1 m so their placements cannot collide. Each zone `description` states, as numbers:
- - what the place is and what happens there, and which authored cameras see it;
- - the layout: what stands where, spacing in meters, what faces what, what stands ON what;
- - the counts the brief fixes, and how much loose dressing this zone carries beyond its
- contents, as the place needs (the zone layout counts it in three fields — mid props, small
- props, ground cover — and the census notes a zone under half its count): a market is crowded,
- a quarry floor nearly bare, zero is a valid answer;
- - how repeated natural elements vary (silhouette, scale, hue) or why a regular row is right.
-5. `assets` — the reusable things the brief needs; each is one builder session inside the run's
-{% if language == 'scene_blender' %}
- time and cost ceiling. PascalCase `name`; `kind` = `bpy` (a procedural module placed as
- collection instances) or `blender_glb` (built as an object and shipped as a GLB: slower and
- costlier, so for the hero that needs sculpted or bevelled detail; a hero may also carry ONE
- 2 s keyframed motion — say so in its description); `description` with construction numbers
- and colours; `approx_size_m` = width x height x depth in meters (the built asset is measured
- against it: a stone lantern 0.5 x 1.6 x 0.5, a bench 1.6 x 0.9 x 0.6, a pine 3 x 7 x 3);
- `instances_hint` = how many appear in total. Triangle budget: <= 15 000 triangles per module,
- <= 40 000 for a hero (measured by the build census). Variation belongs inside an asset (say
- "5 variants via variant: three trunk shapes, two crown shapes") rather than in near-duplicate
- modules. Ground cover, terrain, water, sky and whatever continues the world beyond the bounds
- are built by the environment / zone builders, not as assets.
-6. `effects` — 0 or more: `glsl_material` (a shader-node effect: water ripple, lantern glow, a
- translucent leaf), `particles` (petals, sparks, snow — a small keyframed instance cloud),
- `animated_geometry`, or `postprocess` (a volume: mist, light shafts); say which zone/asset owns
- each.
-{% else %}
- time and cost ceiling. PascalCase `name`; `kind` = `threejs` (a procedural module) or
- `blender_glb` (built in Blender and shipped as a GLB: slower and costlier, so for the hero
- that needs sculpted or bevelled detail; a hero may also carry ONE 2 s keyframed motion — say so
- in its description); `description` with construction numbers and colours; `approx_size_m` =
- width x height x depth in meters (the built asset is measured against it: a stone lantern
- 0.5 x 1.6 x 0.5, a bench 1.6 x 0.9 x 0.6, a pine 3 x 7 x 3); `instances_hint` = how many
- appear in total. Triangle budget: <= 15 000 triangles per module, <= 40 000 for a hero
- (measured by the build census). Variation belongs inside an asset (say "5 variants via
- opts.variant: three trunk shapes, two crown shapes") rather than in near-duplicate modules.
- Ground cover, terrain, water, sky and whatever continues the world beyond the bounds are built
- by the environment / zone builders, not as assets.
-6. `effects` — 0 or more: `glsl_material` (water ripple, lantern glow, wind-swayed foliage),
- `particles` (petals, sparks, snow), `animated_geometry`, or `postprocess`; say which zone/asset
- owns each.
-{% endif %}
-7. `animation` — what moves, each line with an amplitude visible in a 1024x576 frame between t=0
- and t=1.5 s (motion probe). Amplitudes that have measured as visible: foliage sway
-{% if language == 'scene_blender' %}
- +/-0.10-0.20 rad; water ripples scrolling >= 0.15 m/s or a bob >= 0.04 m; particles travelling
- >= 0.6 m per 1.5 s; vehicles/boats/sails >= 1.5 m or a visible turn per 1.5 s; lantern flicker
- x0.75-x1.3. Motion the brief names is visible from the establishing camera.
-{% else %}
- +/-0.10-0.20 rad over 1.6-3 s; water waves >= 0.04 m or a scroll >= 0.15 m/s; particles
- travelling >= 0.6 m per 1.5 s; vehicles/boats/beams >= 1.5 m or a full revolution per 1.5 s;
- light flicker x0.75-x1.3. Motion the brief names is visible from the establishing camera.
-{% endif %}
-8. `cameras` — 1 to 6 authored shots; the harness uses your numbers LITERALLY, so compute them
- from where the subject is and how big it is. `cameras[0]` is measured as the establishing
- shot: it shows the brief's subject clearly, with content >= 20 % of the frame. Every camera
- stands above the terrain at its own (x, z), keeps its lens >= 0.5 m from any surface and
- looks at content (>= 10 %). `purpose` says what the shot is of and what the judge should see
-{% if language == 'scene_blender' %}
- in it. `fov` (vertical) is yours (schema 5-150). How many shots, from where and at what height
- is the brief's: a long open vista, a close interior, a walk along a street or a top-down court are
- each right when the place is.
-{% else %}
- in it. `fov` is yours (schema 5-150). How many shots, from where and at what height is the
- brief's: a long open vista, a close interior, a walk along a street or a top-down court are each
- right when the place is.
-{% endif %}
-9. `acceptance` — one item per must-have in the brief, plus the measured checks: nothing floating
- or sunken (`how: probe`), the named motion visible between t=0 and t=1.5 s (`probe`), no world
- edge from any authored camera (`visual`), lighting reads as the stated time of day (`visual`).
- **`priority` matters more than anything else in this list.** ANY unmet `must` item caps the
- whole run's score at 0.60, however good the pictures are — one over-specified detail throws
- away a passing scene. So:
- - mark `must` only items that restate a hard requirement of the brief itself, that a person
- can confirm from ONE rendered frame, and that name no incidental detail: "a raked gravel
- area is visible in the zen garden" is a `must`; "raked gravel with concentric rings around
- each rock" is a `should`;
- - `a1` is the premise: the kind of PLACE the brief describes, in the plainest words that
- would be false if the scene were somewhere else — "the view is from inside an enclosed
- workshop", "the courtyard is lit only by its lanterns at night". Measured 2026-08-25: a
- brief reading "INSIDE a boatbuilder's workshop" was planned as "Coastal boatyard, clear
- dusk", built faithfully as an outdoor yard, passed every gate and scored 0.4653. When the
- premise is INSIDE a built space, set `interior: true`: the environment module then owns the
- enclosure (floor, walls, ceiling, openings where `environment` puts them; the skeleton
- starts it on the bounds' faces and the builder may reshape it) and the zones dress the
- inside — six interior runs with no owner for walls and roof were each judged "not enclosed,
- a diorama on a flat plane" (0.0-0.3). When the enclosure itself is glass on a frame (a
- conservatory, greenhouse, palm house, glass atrium) also set `glazed: true`: the walls and
- roof are then glass on a grid that the sun and the outside come through;
- - everything else is `priority: should` — craft goals, counts, specific patterns, exact
- heights and anything needing evidence the judge may not have;
- - a `must` whose wording carries a number, a named style, or "and" joining two independent
- claims is rarely confirmable from one frame: split it or demote it.
-
-RULES
-- Every name in `zones[].contents` is an asset name; asset names unique; zone names unique.
-- Realistic scale: people 1.7 m, doors 2.1 m, steps 0.17 m, benches 0.45 m seat height.
-- No prose outside the JSON.
-
-WORKED EXAMPLE — field SHAPE only. It is ONE place's plan (a harbour: an L of quay along one
-side, open water on the other, the mole and the village street running out of the bounds); the
-brief's place has its own shape, and its prose is terser than the plan you write:
-{{ example_json }}
-
-EXAMPLES OF THE CONCRETENESS WANTED — one bullet per place, none of them the harbour above; the
-brief's place gets its own numbers:
-- environment, a hangar interior: "Overcast noon through the open doors: no sun lamp; sky
-{% if language == 'scene_blender' %}
- (0.81, 0.84, 0.87) seen through the 40 x 12 m door opening on the south face, world strength 0.5, twelve roof
- area lights (1.0, 0.95, 0.85) at 400 W on 8 m centres; a faint dust volume density 0.002 colour (0.69, 0.71, 0.72). Floor flat concrete (0.48, 0.48, 0.47) at y=0, 60 x 90 m,
- painted bay lines (0.85, 0.76, 0.35) every 15 m; the bounds are the hangar; outside the doors the apron
-{% else %}
- 0xcfd6de seen through the 40 x 12 m door opening on the south face, key from it 0xdde4ea at 1.4,
- fill 0x8a9098 / 0x3a3a3a at 0.6, twelve roof lamps 0xfff1d8 at 2.0 on 8 m centres; no fog, a
- faint 0xb0b4b8 dust haze near 10 m far 140 m. Floor flat concrete 0x7a7b78 at y=0, 60 x 90 m,
- painted bay lines 0xd8c25a every 15 m; the bounds are the hangar; outside the doors the apron
-{% endif %}
- continues 200 m to a treeline."
-{% if language == 'scene_blender' %}
-- environment, a slot canyon: "Noon sun azimuth 190 deg elevation 72 deg, Sun lamp (1.0, 0.94, 0.86)
- at 4.0 W/m2 reaching the floor only in a 3 m band, world strength 0.3 (the walls bounce
- orange); fog density 0.006 colour (0.85, 0.63, 0.44) in the slot (span 60 m). The floor is a sand wash (0.78, 0.63, 0.44)
-{% else %}
-- environment, a slot canyon: "Noon sun azimuth 190 deg elevation 72 deg, key 0xfff0dc at 3.0
- reaching the floor only in a 3 m band; fill 0xe0b088 / 0x5a3a28 at 0.9 (the walls bounce
- orange); fog 0xd9a070 near 15 m far 90 m (span 60 m). The floor is a sand wash 0xc8a070
-{% endif %}
- falling 4 m along z from +30 to -30 and keeps falling past the bounds; walls 14-22 m high
-{% if language == 'scene_blender' %}
- 2-4 m apart, sandstone (0.72, 0.41, 0.23) banded (0.54, 0.29, 0.16) every 0.6 m, both run out of the bounds."
-- environment, a night market: "22:00, no moon: world (0.05, 0.06, 0.12) at strength 0.15, no sun lamp; the
- stall lamps (1.0, 0.75, 0.44) at 150 W every 4 m along the lane with an emissive skin at 4, the
- shop signs emissive (1.0, 0.35, 0.54) / (0.25, 0.78, 1.0) at 6; fog density 0.004 colour (0.08,
- 0.09, 0.15) (span 80 m). The lane is
- flat wet asphalt (0.14, 0.15, 0.16) at y=0, 6 m wide, running out of the bounds both ways; two-storey
- shophouses (0.42, 0.35, 0.28) line it on both sides and continue past the bounds."
-{% else %}
- 2-4 m apart, sandstone 0xb8683a banded 0x8a4a2a every 0.6 m, both run out of the bounds."
-- environment, a night market: "22:00, no moon: sky 0x0c1020, no sun lamp; key is the stall
- lamps 0xffc070 at 2.5 every 4 m along the lane and the shop signs 0xff5a8a / 0x40c8ff at 1.5;
- fill 0x203048 / 0x100c08 at 0.25; fog 0x141826 near 20 m far 160 m (span 80 m). The lane is
- flat wet asphalt 0x24262a at y=0, 6 m wide, running out of the bounds both ways; two-storey
- shophouses 0x6a5a48 line it on both sides and continue past the bounds."
-{% endif %}
-- a dense zone: "The lane's west side, seen by LaneWalk and Overview: 7 stalls 4 m apart facing
- the lane, each with its lamp and a crowd of 3-5 people in front, ~25 mid props (stools, crates,
- bins), ~60 small props (bowls, bottles, signs), no ground cover on the asphalt."
-- a bare zone: "The canyon floor downstream, seen by Overview only: the sand wash, three fallen
- slabs 1-2 m and nothing else — it reads as a canyon because it is empty."
-- camera purpose: "establishing: looking down the lane from its north end at eye height
- (subject: the stall row, ~30 m deep), the signs stacking into the fog; no sky in frame."
diff --git a/harness/codeverse3d/prompts/tracks/plan_static.j2 b/harness/codeverse3d/prompts/tracks/plan_static.j2
deleted file mode 100644
index 2a753377..00000000
--- a/harness/codeverse3d/prompts/tracks/plan_static.j2
+++ /dev/null
@@ -1,73 +0,0 @@
-You are the DESIGN PLANNER for a 3D modelling harness. You decompose ONE static object into a
-machine-readable plan that a code-writing model will build in `{{ language }}` without seeing
-you again. Everything the builder needs must be in the plan as exact numbers.
-
-{{ frame_doc }}
-
-LANGUAGE CONTRACT THE BUILDER WILL FOLLOW (so your plan must fit it):
-{{ contract }}
-
-WHAT TO PRODUCE (JSON, fields: {{ schema_fields }}):
-1. `object_name` — PascalCase (e.g. `HerbDryingRack`).
-2. `summary` — two sentences: what it is, overall size in meters, the most recognisable features.
-3. `overall_bbox` — REAL-WORLD dimensions in meters, from the reference instance (never unit
- cubes). Centre the footprint on the up axis; the bottom sits at up=0, so the bbox centre's
- up-coordinate equals half the height.
-4. `parts` — as many as the object really has, within the PLAN BUDGET block in the request (it
- states the ceiling, and a floor only when the request is evidence of one). Every nameable feature in the request and in the
- constraints must be either its own part or explicitly named in another part's `description` as
- geometry that part carries — a feature named nowhere will not be built, and the judge's
- checklist will mark it missing. The same holds for the CATEGORY's defining features even
- when the request does not spell them out: a violin has f-holes, a clock has hands, a wrench
- has jaws — a plan that omits one plans the wrong object (measured: a "violin" plan with no
- FHoles part built cleanly, passed every gate, and lost the round on intent).
- (Use `instances` for identical copies: 4 legs = ONE part, instances=4,
- bbox of ONE copy; `symmetry` says how copies are laid out.) For EACH part:
- * `name` PascalCase, unique, descriptive (`SeatCushion`, `FrontLeg`, `Backrest`).
- * `role` one line; `description` what the part IS, with its numbers: where the real part has a
- profile, an edge treatment or a counted repeat, say so with the number — a plain primitive's
- description reads as a plain primitive to the builder.
- * `bbox` centre + full extents in meters IN THE FRAME ABOVE; the bboxes of parts that touch share
- a face or overlap by at most 0.002 m (the connectivity gate reports deeper overlap as
- interpenetration and a gap over 0.002 m as no contact).
- * `attach_to` the part it is physically joined to (one parent; the main body has none).
- * `material` plain words incl. colour (`oiled oak, warm brown`, `brushed steel`, `matte black plastic`).
- * `children` — the sub-parts a parts diagram would list, only for a part that is really an
- ASSEMBLY (rule 5).
- * `detail_hint` — one line, on the parts that carry the object's identity, saying what makes
- THAT part read as real ("carries the visible mechanism — model the burr cone's flutes, the
- square shaft and the retaining nut"; "the eye follows this edge: keep the 6 mm bullnose").
-5. `children` — what nesting means. A part with `children` is one a parts diagram would give its
- own exploded view; each child has `name`, `description` in numbers, a `bbox` INSIDE the parent's
- bbox (same frame; the schema rejects one that sticks out) and `material` where it differs from
- the parent's. A part that is one shape has none.
- A sub-part is a PLANNING unit, not an export unit: the builder builds all of a part's sub-parts
- and exports the result as ONE object named after the PARENT, so a sub-part is never measured as
- a part of its own — it cannot float, interpenetrate or go missing by itself.
-6. `style_notes` — era/style cues and the exact proportions that make it read as THAT object.
-7. `acceptance` — the checklist items the judge verifies, each checkable from renders or
- measurements: one per user constraint and must-have and one per key visible feature
- (`how: visual`), plus any measurement you want held (`how: measure`). The harness adds items for
- the request's dimensions and, when no item is measured, ground contact. Ids `a1`, `a2`, …;
- `priority: must` for things whose absence makes it the wrong object, `should` for polish.
-
-RULES
-- Count before you write: list the nameable features the request names, then make sure each one is
- covered by a part row or by a `description` sentence with its own numbers. A feature that appears
- in neither will not be built, and the judge's checklist will mark it missing.
-- Real proportions over invention: think of a real reference product and its catalogue dimensions.
- When the request carries an ENGINEERING BRIEF, its dimensions, sub-assemblies and signature features
- are ground truth: every signature feature must be findable in your plan as a part, a sub-part, or a
- named detail inside some `description`.
-- When the PLAN BUDGET block states a detail minimum (the request is evidence of it), the plan gate
- counts the parts whose `description` says something a plain primitive cannot — a profile, a
- stated radius, an edge treatment, a counted repeat, or the sub-shapes it is built from — and
- re-asks a plan below it.
-- No part bbox extends past the overall bbox (`check_contract` measures the overall bbox against the plan).
-- Mirror pairs share one part with `symmetry: mirror_x` (or `mirror_y`) and `instances: 2`.
-- Every part name appears once; every `attach_to` names an existing part.
-- Numbers with 3 decimals (meters). No prose outside the JSON.
-
-WORKED EXAMPLE — the SCHEMA on an object nobody asked for (a profile, a counted repeat, a nested
-assembly, an instanced row); never a layout, a part list or numbers to copy:
-{{ example_json }}
diff --git a/harness/codeverse3d/prompts/tracks/plan_zone_layout.j2 b/harness/codeverse3d/prompts/tracks/plan_zone_layout.j2
deleted file mode 100644
index da12fbc4..00000000
--- a/harness/codeverse3d/prompts/tracks/plan_zone_layout.j2
+++ /dev/null
@@ -1,41 +0,0 @@
-You are the ZONE DIRECTOR for one zone of `{{ title }}`. The scene director already fixed the
-world ({{ setting }} — mood: {{ mood }}); a builder model reads YOUR layout as its proposal — the
-contents it names are measured as present, its positions and counts kept unless the place reads
-better otherwise — so answer with exact numbers, all in WORLD meters, and nothing outside the JSON.
-
-Environment (for light/path context only — do not restate it):
-{{ environment }}
-
-## The zone
-- Name: {{ zone.name }}
-- Bbox: x {{ '%.1f'|format(zone.bbox.min[0]) }}..{{ '%.1f'|format(zone.bbox.max[0]) }}, z {{ '%.1f'|format(zone.bbox.min[2]) }}..{{ '%.1f'|format(zone.bbox.max[2]) }} — every cluster centre is validated against it (1 m of slack).
-- Description: {{ zone.description }}
- (what the brief fixes in it is binding; its dressing counts are the director's intent and may
- be adjusted to the space, the activity and the triangle budget.)
-
-Neighbouring zones (their bboxes, where their own builders place):
-{% for n in neighbours %}- {{ n }}
-{% endfor %}
-
-## Authored cameras (the shots this scene is graded on)
-{% for c in cameras %}- {{ c }}
-{% endfor %}A cluster whose footprint reaches a camera position puts the lens INSIDE the geometry and caps
-the whole run (measured: half the asset's footprint + half the spread + 0.4 m, at least 0.8 m);
-anything meant to stand close to a camera is placed by hand in the zone module, not as a cluster.
-
-## Assets to place (measured sizes)
-{% for a in assets %}- {{ a }}
-{% endfor %}
-
-WHAT TO PRODUCE (JSON, fields: {{ schema_fields }}):
-- `placements` — one row per contents asset (split an asset into 2-3 rows when it appears in
- distinct spots): `count`, `cluster` (x, z), `spread_m`, `faces` (what they look at — a path,
- a doorway, an azimuth), `support` (`ground`, or the asset they stand ON, e.g. bottles on a
- counter). Put things where the place's activity puts them (stalls line the lane and face it;
- boats lie along the quay edge; a well stands alone) and respect each asset's footprint — two
- clusters closer than the assets are wide will interpenetrate (measured).
-- `path_points` — the walkway through this zone as 2-4 (x, z) points, if the description has one.
-- `mid_props`, `small_props`, `ground_cover` — how much loose dressing this zone carries beyond
- the placements (the builder invents WHAT they are; you fix HOW MANY; 0 is right for a bare
- place). The census measures the built zone against these numbers.
-- `notes` — one line of intent the builder keeps, e.g. "stalls face the lane, gap at the gate".
diff --git a/harness/codeverse3d/prompts/tracks/refine_graphics.j2 b/harness/codeverse3d/prompts/tracks/refine_graphics.j2
deleted file mode 100644
index 95a5b8ec..00000000
--- a/harness/codeverse3d/prompts/tracks/refine_graphics.j2
+++ /dev/null
@@ -1,61 +0,0 @@
-# Refine `{{ title }}` — round {{ round_index }}
-
-The effect already compiles and renders. The frames were measured and judged; below are the targeted
-changes for THIS round. Make exactly these changes, keep everything else as it is, and keep it building.
-
-## Changes to make (in priority order; `[gate/...]` items are hard failures — fix them first)
-{% for t in tasks %}
-{{ loop.index }}. {{ t }}
-{% endfor %}
-
-Targets: {{ targets | join(', ') }}
-Files in scope: {% for f in files %}`{{ f }}`{% if not loop.last %}, {% endif %}{% endfor %}
-
-## What the judge saw
-{{ judge_summary }}
-{% if reference_note %}
-{{ reference_note }}
-{% endif %}
-
-## Frame metrics measured by the harness (t = {{ judge_times }})
-{{ frame_notes }}
-
-## Plan (the truth to converge to)
-{{ plan_summary }}
-Style: {{ style }}
-{{ passes_table }}
-Motion: {{ motion }}
-Key visuals:
-{% for v in key_visuals %}- {{ v }}
-{% endfor %}
-
-## Acceptance checklist (unchanged)
-{{ acceptance }}
-
-## Contract reminders
-- Harness uniforms only ({{ uniforms }}); no #version / uniform / out redeclarations in a shader; no window,
- context or clock in a program.
-- Motion is measured on the frames at t = {{ judge_times }}: `static` caps the score at 0.5, `flicker` at 0.7.
-- NaN/Inf pixels cap the score at 0: guard divisions, sqrt/pow/log, normalize, acos/asin.
-- No black / blown frame (cap 0.5); circles round (judge defect `stretched_aspect`).
-- A "colour/light" change = palette / exposure / grade only; a "motion" change = the time terms only;
- do not rewrite unrelated layers.
-{% if current_files %}
-
-## Current file contents (edit these; return each edited file COMPLETE)
-{% for path, body in current_files.items() %}
---- {{ path }} ---
-```
-{{ body }}
-```
-{% endfor %}
-{% endif %}
-{% if tool_cards and not single_shot %}
-
-## Tools
-{{ tool_cards }}
-Run `gl_probe` after editing (fix any error) and `gl_frames` once to LOOK at the result before finishing.
-{% endif %}
-
-## Output
-{{ output_format }}
diff --git a/harness/codeverse3d/prompts/tracks/refine_object.j2 b/harness/codeverse3d/prompts/tracks/refine_object.j2
deleted file mode 100644
index 754b61d1..00000000
--- a/harness/codeverse3d/prompts/tracks/refine_object.j2
+++ /dev/null
@@ -1,77 +0,0 @@
-# Refine `{{ object_name }}` — round {{ round_index }}
-
-The object already builds. Renders + measurements were judged; below are the targeted changes for
-THIS round. Make exactly these changes, keep everything else as it is, and keep the code building.
-
-## Changes to make (in priority order; `[gate/...]` items are hard failures — fix them first)
-{% for t in tasks %}
-{{ loop.index }}. {{ t }}
-{% endfor %}
-
-Targets: {{ targets | join(', ') }}
-{% if fixed_parts %}
-
-{{ fixed_parts }}
-{% endif %}
-{% if edit_only_these %}
-Change only these files (shown below) and the entry file; any other existing part file is refused:
-{% for f in files %}`{{ f }}`{% if not loop.last %}, {% endif %}{% endfor %}
-
-{% else %}
-Files in scope (the whole object; a change names its target's file where it has one):
-{% for f in files %}`{{ f }}`{% if not loop.last %}, {% endif %}{% endfor %}
-
-{% endif %}
-{% if not single_shot %}
-
-Edit in place: change only the lines a task needs.
-{% endif %}
-
-## What the judge saw
-{{ judge_summary }}
-{% if reference_note %}
-
-## Reference images
-{{ reference_note }}
-{% endif %}
-
-## Measured vs planned (exact numbers; the contract gate checks these)
-{{ measurement_notes }}
-
-## Plan rows for the targets (bbox centre/extents in meters — the truth to converge to)
-{{ parts_table }}
-
-## Acceptance checklist (unchanged)
-{{ acceptance }}
-
-## Detail
-{{ detail_advice }}
-
-## Contract reminders
-{{ frame_doc }}
-- Parts keep their exact names; instances/symmetry as planned.
-- Touching parts: gap ≤ 0.002 m, overlap ≤ 0.002 m; nothing floats; no connector geometry the plan
- does not list.
-- Move a part by changing its placement numbers to the plan's centre; do not rebuild unrelated parts.
-- A "material" change = colour/roughness/metalness of that part only.
-- One code path: no environment sniffing, no DOM/texture loading/network.
-{% if current_files %}
-
-{% if single_shot %}## Current file contents (edit these; return each edited file COMPLETE){% else %}## Current file contents (already in the workspace — edit them in place; do NOT read_file them first){% endif %}
-
-{% for path, body in current_files.items() %}
---- {{ path }} ---
-```
-{{ body }}
-```
-{% endfor %}
-{% endif %}
-{% if tool_cards and not single_shot %}
-
-## Tools
-{{ tool_cards }}
-Run `build` after editing and fix any error before finishing.
-{% endif %}
-
-## Output
-{{ output_format }}
diff --git a/harness/codeverse3d/prompts/tracks/repair.j2 b/harness/codeverse3d/prompts/tracks/repair.j2
deleted file mode 100644
index d0a6a306..00000000
--- a/harness/codeverse3d/prompts/tracks/repair.j2
+++ /dev/null
@@ -1,49 +0,0 @@
-# Repair: the {{ language }} build failed (attempt {{ attempt }})
-
-Fix ONLY the error below with the smallest correct change. Keep every part, name, dimension and
-material exactly as they are. Do not refactor, do not "simplify" the model, do not remove parts.
-
-## Error report
-{{ error_report }}
-{% if fixed_parts %}
-
-{{ fixed_parts }}
-{% endif %}
-{% if repeats > 0 %}
-
-THIS IS THE SAME ERROR AS THE PREVIOUS ATTEMPT ({{ repeats }}× repeated). Your last edit did not
-touch the cause. Re-read the failing line, check the exact API name/signature against the contract
-(its API facts) and the lint hint, and change a DIFFERENT thing this time (a different call,
-not different arguments).
-{% endif %}
-
-## Response rules
-- Locate the exact file:line named above; read the surrounding 20 lines mentally before editing.
-- Runtime error (exception / TypeError / missing export): fix the call or the import; the contract's
- allow-list is the only set of modules you may use.
-- Lint error (forbidden API, missing entry point, wrong frame/units): replace the construct with the
- one the fix hint names; do not argue with the linter.
-- Syntax error: fix the syntax at the line; check brackets/indentation in that function only.
-- Geometry bombs (out of memory / timeout): reduce segment counts or loop counts.
-- Keep one code path: no environment sniffing (`typeof window`, `isHeadless`, user agent checks).
-
-Failing file(s): {% for f in failing_files %}`{{ f }}`{% if not loop.last %}, {% endif %}{% endfor %}
-{% if files %}
-
-## Current contents of the failing file(s) — return each one COMPLETE and corrected
-{% for path, body in files.items() %}
---- {{ path }} ---
-```
-{{ body }}
-```
-{% endfor %}
-{% endif %}
-{% if tool_cards and not single_shot %}
-
-## Tools
-{{ tool_cards }}
-Run `build` after your edit; finish only when it succeeds.
-{% endif %}
-
-## Output
-{{ output_format }}
diff --git a/harness/codeverse3d/prompts/tracks/scene_asset.j2 b/harness/codeverse3d/prompts/tracks/scene_asset.j2
deleted file mode 100644
index 8ce61108..00000000
--- a/harness/codeverse3d/prompts/tracks/scene_asset.j2
+++ /dev/null
@@ -1,107 +0,0 @@
-# Scene asset `{{ asset_name }}` ({{ asset_kind }}) — write `{{ asset_file }}`
-
-Scene: {{ spec_prompt }}
-{% if fix_instructions %}
-## FIX PASS — the asset was judged; apply exactly these changes and keep the rest
-{% for i in fix_instructions %}
-{{ i }}
-{% endfor %}
-{% endif %}
-
-## The asset
-- Name: `{{ asset_name }}`
-- Size (width × height × depth, meters): {{ '%.2f' % asset_size[0] }} × {{ '%.2f' % asset_size[1] }} × {{ '%.2f' % asset_size[2] }}
-- Description: {{ asset_description }}
-- Style of the whole scene: {{ style_notes or constraints }}
-
-{% if asset_language == 'blender' %}
-## Contract (raw bpy; the harness exports a GLB that the scene loads)
-{{ frame_doc }}
-{{ contract }}
-- Build the asset standing on the ground (lowest point at z=0), footprint centred on the origin,
- total size as stated (the check errors beyond 2.5 × or under 0.4 × on any axis). One Blender
- object per plan part, named exactly as the plan says.
-- Every surface carries a material with a real base colour and a roughness that matches what it
- is (a grey default reads as `placeholder_material`); one material per material class (wood /
- iron / cloth …) is the usual organisation.
-{{ detail_advice }}
-- No camera/light/render/export calls.
-- MOTION (only when the description names a moving part — a swinging lamp, a turning wheel, a lid
- that rocks): keyframe that object's OWN rotation/location; the harness exports the action as a
- glTF clip and the scene loops it (a loop that ends where it starts has no seam). A keyed rotation
- turns about the object's origin, so the origin sits at the pivot; an Empty is not a part (the
- census counts it as junk). Timing as exported: the factory scene runs at 24 fps and a key on
- frame f lands at t = f / 24 s in the clip (frame 36 is t = 1.5 s). The scene samples t = 0 and
- t = 1.5 s: the pose must differ visibly at scene distance (>= 0.15 rad or >= 0.05 m).
-{% if asset_files is defined and asset_files|length > 1 %}
-- Files you must produce: {% for f in asset_files %}`{{ f }}`{% if not loop.last %}, {% endif %}{% endfor %}
- (the skeleton's layout: `src/model.py` is the entry, one part per `src/parts/*.py`).
-{% endif %}
-{% if skeleton_files is defined and skeleton_files %}
-
-## Current files (skeleton already in src/ — keep its structure, fill in every stub)
-{% for path, body in skeleton_files.items() %}
---- {{ path }} ---
-```
-{{ body }}
-```
-{% endfor %}
-{% endif %}
-{% else %}
-## Contract (raw three.js ESM module)
-{{ frame_doc }}
-- `{{ asset_file }}` must `export function build{{ asset_name }}(THREE, opts = {}) { ... return group; }`
- where `group` is a `THREE.Group` whose lowest point is at y=0 and whose footprint is centred on
- the origin, sized as stated (the check errors beyond 2.5 × or under 0.4 × the stated size on any
- axis; the zones place it at scale 1, so the stated size is the target). `opts.seed` (number) and
- `opts.variant` (0..n) may vary details deterministically (`mulberry32(seed)` from `../lib/noise.js`
- or a tiny PRNG inside the file — never Math.random).
-- Imports: `three`, `three/addons/*`, `../lib/*.js` and your own relative files — no CDN, no other
- package. Forbidden: `document.*` / `window.*`, fetch or XHR, `Math.random()`, `Date.now()` /
- `performance.now()`, `requestAnimationFrame`, creating a renderer. The module is imported and
- built in node (no DOM, no WebGL) the moment it is written: anything that needs a browser throws
- there and the asset is reported broken.
-- Procedural geometry built in code (any THREE geometry, including a BufferGeometry you fill
- yourself); no loaded files. Every surface carries a material with a real colour.
-- Set `group.userData.size = [w, h, d]` to the measured size. Optional animation hook:
- `group.userData.update = (t, dt) => {...}` (the zone that places you caches it and calls it;
- `userData.tick` is never called by anything). Amplitudes must be visible after 1.5 s:
- >= 0.10 rad of rotation or >= 0.05 m of travel — not sub-centimetre jitter.
-- Triangle budget: at most 15 000 triangles for one instance (measured when the module is
- imported and built); segment counts are yours within it.
-{% if library_rows %}
-- The sheet lists shipped effect-library factories that may fit. `src/lib/` ships with the scene
- and is optional: import one (`import { makeTree } from '../lib/tree.js'`) and compose what it
- returns into your group, or build your own. Each returned object stands on its own origin;
- place it by that origin, and pass the lighter options its row names when the asset is repeated.
-{{ library_rows }}
-{% endif %}
-{% endif %}
-
-## DO / DON'T
-- DO use the exact size numbers above; the zone builders rely on them.
-- DO make it recognisable as the named thing at scene distance; the description decides which
- features that takes and whether it looks new or used.
-- DO make `opts.variant` (0..n) change the silhouette, not just the scale, when the plan places
- several copies: the judge reads identical copies; how many variants is the plan's count.
-- DO give a repeated natural asset colour room across copies (`opts.hue` / `opts.tint`, or a
- colour varied from `opts.seed`) so twenty copies are not one colour.
-- DON'T model a flat plane with a colour where the thing has real thickness (a fence is stalks and
- rails, not a textured quad) — closeups are judged.
-- DON'T leave floating pieces: every sub-shape overlaps a neighbour by ≥ 2 mm.
-- DON'T write anything outside the listed file(s).
-{% if current_code %}
-
-## Current file (edit and return COMPLETE)
-```
-{{ current_code }}
-```
-{% endif %}
-{% if tool_cards and not single_shot %}
-
-## Tools
-{{ tool_cards }}
-{% endif %}
-
-## Output
-{{ output_format }}
diff --git a/harness/codeverse3d/prompts/tracks/scene_asset_bpy.j2 b/harness/codeverse3d/prompts/tracks/scene_asset_bpy.j2
deleted file mode 100644
index 370a6faf..00000000
--- a/harness/codeverse3d/prompts/tracks/scene_asset_bpy.j2
+++ /dev/null
@@ -1,81 +0,0 @@
-# Scene asset `{{ asset_name }}` ({{ asset_kind }}) — write `{{ asset_file }}`
-
-Scene: {{ spec_prompt }}
-{% if fix_instructions %}
-## FIX PASS — the asset was judged; apply exactly these changes and keep the rest
-{% for i in fix_instructions %}
-{{ i }}
-{% endfor %}
-{% endif %}
-
-## The asset
-- Name: `{{ asset_name }}`
-- Size (width × height × depth, metres — the plan's Y-up order; in Blender x = width, y = depth, z = height): {{ '%.2f' % asset_size[0] }} × {{ '%.2f' % asset_size[1] }} × {{ '%.2f' % asset_size[2] }}
-- Description: {{ asset_description }}
-- Style of the whole scene: {{ style_notes or constraints }}
-
-## Contract (a bpy module; the harness builds it once and the zones instance it)
-{{ frame_doc }}
-{{ asset_contract }}
-- `{{ asset_file }}` must define `def build_{{ asset_file.rsplit('/', 1)[-1][:-3] }}(ctx, variant=0)` that links
- every part into `ctx.collection` (its own Collection, pre-made and active) and returns it: built at
- the origin, lowest point on z = 0, footprint centred on the origin, front facing −Y, sized as stated
- (the check errors beyond 2.5 × or under 0.4 × on any axis; zones instance it at scale 1). Zone code places collection instances of `ctx.assets['{{ asset_file.rsplit('/', 1)[-1][:-3] }}']` by
- that origin and never calls you.
-- Procedural mesh built in code (bmesh or `from_pydata`, any construction); every part carries a
- Principled material with a real colour and roughness (`Base Color`, `Roughness`, `Metallic`), varied at
- more than one scale (broad tone and wear plus fine grain or bump) where the real material varies.
- Objects are uniquely named PascalCase: one root mesh, or children parented under it at RELATIVE
- locations. The module is self-contained: every part is `bpy` / `bmesh` / `mathutils` written in
- this file.
-- A natural thing has an organic silhouette (judged): a tree is a trunk branching into limbs that carry
- leaf or needle cards, a rock an irregular asymmetric mass — never a cone, a ball on a stick or a cube
- standing in for one.
-- `variant` (0..n) and `ctx.rng(seed)` may vary details deterministically; `random.*` is a lint error.
-- At most 15000 triangles for the whole asset (it is instanced; the census counts them).
-- No lights, no cameras, no world, no file IO; the lint warns on `bpy.ops.mesh.primitive_*` in a loop;
- nothing outside the asset itself (no ground plane).
-- MOTION (only when the description names a moving part — a swinging lamp, a turning wheel): keyframe
- that part's OWN rotation/location on `ctx.frame(0.0)` and `ctx.frame(1.5)` (LINEAR, set on the slotted
- action's `layers[0].strips[0].channelbag(action.slots[0]).fcurves`), or a simple driver of `frame`
- (`frame * 0.2`); put the part's origin at its pivot. Amplitude must read at scene
- distance (≥ 0.15 rad or ≥ 0.05 m registers in the frame difference).
-{% if skeleton_files is defined and skeleton_files %}
-
-## Current files (skeleton already in src/ — keep its structure, fill in every stub)
-{% for path, body in skeleton_files.items() %}
---- {{ path }} ---
-```
-{{ body }}
-```
-{% endfor %}
-{% endif %}
-
-## DO / DON'T
-- DO use the exact size numbers above; the zone builders and the placement gate rely on them.
-- DO make it recognisable as the named thing at scene distance; the description decides its features
- and its condition.
-- DO make `variant` (0..n) differ in SILHOUETTE when several copies are placed (the plan's count decides
- how many); a `variant` that only scales is a wasted asset.
-- DO give a repeated natural asset colour room — `variant` / `ctx.rng(seed)`-driven colour is one way —
- so many copies do not read as one colour.
-- DON'T model a flat plane with a colour where the thing has real thickness (a fence is stakes and
- rails, not a textured quad) — closeups are judged.
-- DON'T leave floating pieces: every sub-shape overlaps a neighbour by ≥ 2 mm, and the lowest point
- is exactly z = 0 (the harness measures a part sunk below it or hovering above it).
-- DON'T write anything outside the listed file.
-{% if current_code %}
-
-## Current file (edit and return COMPLETE)
-```
-{{ current_code }}
-```
-{% endif %}
-{% if tool_cards and not single_shot %}
-
-## Tools
-{{ tool_cards }}
-{% endif %}
-
-## Output
-{{ output_format }}
diff --git a/harness/codeverse3d/prompts/tracks/scene_env.j2 b/harness/codeverse3d/prompts/tracks/scene_env.j2
deleted file mode 100644
index 7c4960ec..00000000
--- a/harness/codeverse3d/prompts/tracks/scene_env.j2
+++ /dev/null
@@ -1,138 +0,0 @@
-# Environment module for `{{ title }}` — write `src/env.js`
-
-Scene: {{ spec_prompt }}
-Setting: {{ setting }}. Mood: {{ mood }}.
-Bounds: {{ bounds }} — the region the cameras and the census cover; the world you build extends
-past it as far as this setting needs.
-
-## Environment plan (the brief's intent, with target numbers)
-{{ environment }}
-The numbers are targets the frame table and the gates check; the form of the world is the brief's.
-{% if interior and glazed %}
-## This is a GLASS HOUSE
-It must read as enclosed in glass from every authored camera (judged: enclosed, not a diorama on
-a flat plane), with the sun coming through the glazing and the frame throwing its shadows inside.
-Name the roof / lid meshes `Ceiling…` / `RoomShell…` so the overview rig can lift them.
-`roomShell({ glazed: true, frameColor, bay, openings })` from `lib/environment.js` builds a glazed
-box on the room box you give it (the starter's `export const INTERIOR = { center, extents,
-openings, glazed: true }` feeds it) — one option; a lean-to, a dome or a vault is yours to build.
-Cut the plan's doors as `openings`. What is seen through the glass must be something the brief
-implies, never a void or a flat colour.
-{% elif interior %}
-## This is an INTERIOR
-It must be enclosed — walls and a ceiling exist from every authored camera. Measured 2026-09-07
-over six interior runs: with no owner for walls and roof, every one was judged "not enclosed, a
-diorama on a flat plane, tool racks floating at a missing wall" (0.0–0.3). Name the lid meshes
-`Ceiling…` / `RoomShell…` so the overview rig can lift them. `roomShell({ center, extents,
-openings })` from `lib/environment.js` is one way (a box on the room box you give it; the starter's
-`export const INTERIOR = { center, extents, openings }` feeds it); a vault, a tent, a cave or an
-irregular room is yours. Cut the plan's windows and doors as openings (face, centre along the
-wall / up from the floor, size, metres) and light the inside from the sources the brief names — a
-sun rig stays outside, and a closed room with no openings and no practicals renders black and
-fails the exposure gate.
-{% endif %}
-
-## Contract
-{{ frame_doc }}
-{{ contract }}
-
-### The harness assembles `src/scene.js` and calls YOUR module like this — nothing else runs
-```js
-const ctx = { THREE, scene, renderer, loaders, heightAt, assets };
-const env = (await buildEnv(ctx)) || {}; // ONE argument, and it is ctx (not THREE, not scene)
-function update(t, dt) { if (env.update) env.update(t, dt); /* then every zone */ }
-```
-So the interface of `src/env.js` is three exports:
-- `export function buildEnv(ctx)` — reads `ctx.scene` / `ctx.THREE`, adds whatever this brief's
- environment is (its sky or ceiling, its light, its ground or floor, its atmosphere; water or a
- backdrop only if the brief's world has them) to `ctx.scene`, and **returns an object carrying
- `update(t, dt)`** — the only env hook the assembler calls. A separate `tickEnv` export is
- NEVER called; animated sky / water / fog uniforms are driven from the returned `update`.
-- `export function heightAt(x, z)` — the surface height every zone seats on (deterministic, cheap;
- `0` for a flat floor). Any walkable surface the brief has (a path, a road, a terrace, a deck) is
- part of it so what stands on it seats on it: the placement gate measures against it, so it has
- to agree with the ground mesh. A route the zones must agree with (a lane, a towpath) is part of
- `heightAt`, or exported from here as the one ground authority — the name is yours.
-- `export const SUN_AZIMUTH_DEG = <number>` — read by the harness (regex) to put the overview
- cameras on the sun side. Omit it and the overview rig shoots into the sun.
-Anything else you export (shared materials, a water level, the route) is a convention between you
-and the zones, read by nothing in the harness.
-
-## What is measured on this module
-1. **The ground reads as this setting's surface.** The judge flags `flat_ground` where the
- setting would show variation (material blending, wear along routes, undressed seams) and the
- ground is one flat colour; a paved yard, a snowfield or a concrete floor is legitimately
- uniform. The landform is the brief's — a street is flat and paved, a hillside slopes through
- the content, a quarry steps down — with one measured constraint: every plan camera's height is
- absolute, so at each camera position `heightAt` stays below the eye (the gate reports
- "camera N m below ground level" and caps the score at 0.50; `src/scene.js` is assembled with
- the plan's numbers, so the land under the camera is this module's only lever).
-2. **The world does not end in frame.** From no authored camera may the ground end against the
- sky or a void (judge defect `world_edge_visible`; the frame census reports "terrain ends N m
- ahead"). Measured on exteriors: standing geometry ≥ 2 m tall out to ≥ 1.25 × the bounds
- half-extent (`world_edge`), fog far ≥ 2 × the plan span (`fog_short`), `scene.fog` and
- `scene.background` set (`no_fog` / `no_background`), and ≥ 8 same-size copies evenly round the
- edge is a `stamped_ring`. What continues the world is the setting's: a street's next block,
- more forest, open sea, a wall, a skyline on one side, a range in one direction, haze that
- closes. Whatever stands at a distance must not read as cardboard (judge
- `placeholder_material`): flat billboards do; volumes, or far ground that simply continues
- under fog, do not. Measured A/B: distant forms hand-lerped toward a light fog colour render
- BRIGHTER than the terrain; natural colour, darkened, left to the fog, reads as receding haze.
-3. **Surface features meet the ground.** Where a pond, terrace, bed or lawn meets the terrain
- its edge must not read as an outline lying on the ground from the overview cameras (judge:
- `flat_ground`, `floating_asset` / `sunken_asset`); carving it into `heightAt`, edging it, or a
- setting that justifies a flat slab (a paved terrace) are all ways. Inside a shoreline the
- terrain lies below the water level or the shore z-fights.
-4. **Light that passes the exposure band and matches the brief.** Every authored camera must
- pass the frame gate (mean luminance ≥ 0.12, or low-key with luminance std ≥ 0.12; blown
- ≤ 20 %; no single band > 85 %). Shade must carry colour, not crush to black (`dark_frac`),
- and the light must not read as monochrome (judged) — a key / fill hue split is one way
- when the brief's weather allows it; an overcast or sodium-lit scene is legitimately
- low-contrast. `scene.environment` must be an environment texture (metals and glass render
- near black without one). `sunRig()` from `lib/environment.js` gives a fitted key, hemisphere
- fill, env map, disc and shadows for a sunlit exterior in one call — one option; any light set
- that passes the gate and matches the brief's sources is as good.
- Aerial perspective is judged (`thin_atmosphere`: "horizon with no atmospheric falloff"): fog
- does most of it, kept subtle or the frame reads milky (`blown_frac`).
-5. **Shadows are not jagged** (judged): a shadow texel ≤ ~0.05 m over the content.
- `sunRig({ bounds })` fits frustum, map size and bias to the radius it is given — pass the
- content radius, not the ground size; a hand-set `sun.shadow.*` must meet the same texel size.
-6. No textures, no DOM, no fetch, no Math.random.
-
-## DON'T
-- No assets/zones here (they come from other modules). No cameras. No `scene.background` image loads.
-
-## Effects planned (only the ones targeting the environment)
-{{ effects }}
-{% if tool_cards and not single_shot %}
-
-## Tools
-{{ tool_cards }}
-After editing run `build`, then `scene_views` and LOOK: does the world end anywhere in view, is
-the ground one flat colour where the setting would vary, is the shade black? Then read the frame
-table it prints: every authored camera must pass the exposure checks.
-{% endif %}
-{% if effects_catalog is defined and effects_catalog %}
-
-{{ effects_catalog }}
-{% endif %}
-{% if lib_interface is defined and lib_interface %}
-
-## What `src/lib/` exports (read from the files in this workspace)
-{{ lib_interface }}
-An import from `src/lib/` can bind only these names; a call passes only these parameters.
-{% endif %}
-{% if env_check_error is defined and env_check_error %}
-
-## The previous single-shot of `{{ env_file }}` failed the harness's env check
-```
-{{ env_check_error }}
-```
-That file, as written (return it COMPLETE, with the failure fixed):
-```
-{{ env_previous }}
-```
-{% endif %}
-
-## Output
-{{ output_format }}
diff --git a/harness/codeverse3d/prompts/tracks/scene_env_bpy.j2 b/harness/codeverse3d/prompts/tracks/scene_env_bpy.j2
deleted file mode 100644
index 5ddbcb93..00000000
--- a/harness/codeverse3d/prompts/tracks/scene_env_bpy.j2
+++ /dev/null
@@ -1,116 +0,0 @@
-# Environment module for `{{ title }}` — write `{{ env_file }}`
-
-Scene: {{ spec_prompt }}
-Setting: {{ setting }}. Mood: {{ mood }}.
-Bounds (Z up, −Y front, metres — already converted from the plan): {{ bounds }}
-
-## Environment plan (the brief's intent with its target numbers — checked by the frame table and the gates; its prose is Y-up: "y up" there is z here, "+z" there is −y here)
-{{ environment }}
-{% if interior and glazed %}
-## This is a GLASS HOUSE — the enclosure is yours
-The place must read enclosed in glass from every authored camera and be lit by what comes through it
-(the frame gate's luminance band). Name the shell and lid meshes `RoomShell…` / `Ceiling…` so the
-overview rig can lift the lid, and cut the plan's doors as openings. The frame, the panes (a thin
-transmissive Principled material: `Transmission Weight` 1, low `Roughness`) and the house's shape
-are yours to build here.
-{% elif interior %}
-## This is an INTERIOR — the enclosure is yours
-An interior must read enclosed from every authored camera (measured 2026-09-07 over six interior runs
-with no owner for walls and roof: every one was judged "not enclosed, a diorama on a flat plane",
-0.0–0.3) and be LIT INSIDE (the frame gate's luminance band; the sun is outside, so a closed room
-without openings and lights reads black). Name the lid meshes `RoomShell…` / `Ceiling…` (the overview
-rig lifts the lid by name); windows and doors are openings the zones glaze or frame. The room's
-shape, its openings and its extent are the brief's, built here.
-{% endif %}
-
-## Contract
-{{ frame_doc }}
-{{ contract }}
-The world, the lamps, the ground mesh, the atmosphere and every material are `bpy` / `bmesh` /
-`mathutils` you write in this module. Helpers the zones should reuse (a material builder, a mesh-linking or seating function)
-are module-level functions here; zones `from env import` them.
-
-### The harness assembles `{{ entry_file }}` and runs YOUR module like this — nothing else runs
-```python
-ctx.collection = scene root # build_env links into it
-out = env.build_env(ctx) # ONE argument, and it is ctx
-ctx.env = out if isinstance(out, dict) else {} # what the zones read as ctx.env
-ctx.height_at = env.height_at # THE ground every zone seats on
-```
-So `{{ env_file }}` must define exactly:
-- `def height_at(x, y) -> z` — the ground every zone seats on, deterministic and cheap; any walkable
- surface the brief's place has (a path, a terrace, a pond basin, a floor) is part of it, so what stands
- there stands on it. Under every plan camera position the ground stays below the camera (gate
- `camera_underground`, cap 0.50); otherwise the landform is the brief's — a floor, a slope, a basin, a
- street, a cliff are all valid.
-- `def build_env(ctx) -> dict` — builds the world (sky), the scene's sun or moon lamp if the brief has
- one, the ground mesh (sampled from `height_at`, named `Ground…`), the atmosphere the probe requires (a
- volume) and whatever continues the world past the content (far geometry named `Sky…` so the census files
- it as backdrop) into `ctx.collection`, and RETURNS the dict zones read as `ctx.env` — e.g.
- `{"ground_material": …, "sun_direction": (x, y, z), "water_level": …}`; the keys are yours to name.
-- Module-level names zones may `from env import …` (the skeleton's `SUN_AZIMUTH_DEG` / `SUN_ELEVATION_DEG`,
- compass 0 = +X / 90 = +Y, are one example).
-The world (`bpy.data.worlds.new`, `ctx.scene.world =`) is YOURS and nobody else's: a zone that builds one
-fails the lint. No cameras (the plan's), no `scene.render.*`, no frame changes.
-
-## What this module is graded on (the requirement, and how it is measured)
-1. **The ground reads as the brief's material**, not one flat untextured colour (judge `flat_ground`: no
- blending, no wear, undressed seams). Paving, snow, sand, decking, mud, a tiled floor all count, and the
- surface varies at more than one scale — broad tone, wear and slope / height bands over metres AND fine
- grain or bump over centimetres — in a node tree you wire on the ground's material.
-2. **The world does not end in view.** From no authored camera may the ground stop against the sky or a
- backdrop float (judge `world_edge_visible`; the frame census reports "terrain ends N m ahead"). Two
- gates measure it outdoors: `world_edge` (standing geometry must reach past 1.25 × the bounds'
- half-extent) and `fog_short` (the census reads the volume's density: 1 / density has to stay ≥ span / 1.5). What
- continues the world is the brief's place — a street, a sea, a cliff, a forest, walls, hills on one side
- and open sky on another; far geometry is named `Sky…`, standing geometry is seated, and nothing is
- pre-tinted toward the fog (it reads as cardboard: judge `placeholder_material`).
-3. **No plan camera below the ground** (`camera_underground`, cap 0.50): `height_at` under every camera
- position stays below its z. A ground feature must not read as a plate laid on the terrain from the
- overview cameras (judge `flat_ground`): carving it into `height_at` or giving it a built edge both work.
-4. **Every authored frame lands in the exposure band** at the brief's time of day (`dark_frame`: mean
- luminance < 0.12 or > 35 % near-black, cap 0.55; blown frames likewise) and the light is not monochrome
- (judged). Cycles is physical. Starting values that have passed on a mid-albedo ground: a Sun of
- 1–5 W/m² (a moon 0.05–0.3), a world (a Sky Texture with its sun disc off beside the Sun lamp, or a deep
- colour for night) at strength 0.1–0.6, fog density 0.003–0.008 (a volume-only box over the play area);
- a brief lit by fire, neon, storm or nothing sets its own and reads `camera_checks.mean_lum`. Exposure is
- fixed at 0.
-5. **Shadows read and shade carries colour** (judge `unlit_or_blown`, `lighting_atmosphere`: "flat
- shadows", "black shade"; the gate's `dark_frac`): a Sun `angle` of 1–3° with the sky world as fill is one
- way; any fill lamp you add is yours to justify by the frame table.
-6. **What continues the world reads as real** (judged): far trees are trunks branching into limbs that carry
- leaf or needle cards, far rocks and hills are irregular masses — never cones, balls on sticks or cubes
- standing in for them (`asset_quality_detail`), and never one shape stamped in a ring (`stamped_ring`,
- `monotonous_vegetation`).
-7. No image textures, no file IO, no unseeded randomness (`ctx.rng(seed)`); the lint warns on `bpy.ops.mesh.primitive_*` in a loop.
-
-## DON'T
-- No assets or zones here (they come from other modules). No cameras. No `scene.*` render / view settings.
-- A route the zones must agree with (a lane, a towpath) is part of `height_at`, or a module-level name
- here that zones import — the one ground authority; the name is yours.
-
-## Effects planned (only the ones targeting the environment)
-{{ effects }}
-{% if tool_cards and not single_shot %}
-
-## Tools
-{{ tool_cards }}
-After editing run `build`, then `scene_views` and LOOK at every frame against the brief: does the
-world end anywhere in view, is the ground one flat colour, is the shade black? Read the frame table
-it prints: every authored camera must pass the exposure checks. `scene_probe` says whether the world
-and the atmosphere were found.
-{% endif %}
-{% if env_check_error is defined and env_check_error %}
-
-## The previous single-shot of `{{ env_file }}` failed the harness's env check
-```
-{{ env_check_error }}
-```
-That file, as written (return it COMPLETE, with the failure fixed):
-```
-{{ env_previous }}
-```
-{% endif %}
-
-## Output
-{{ output_format }}
diff --git a/harness/codeverse3d/prompts/tracks/scene_refine.j2 b/harness/codeverse3d/prompts/tracks/scene_refine.j2
deleted file mode 100644
index ab02a1af..00000000
--- a/harness/codeverse3d/prompts/tracks/scene_refine.j2
+++ /dev/null
@@ -1,148 +0,0 @@
-# Refine `{{ title }}` — round {{ round_index }}
-
-The scene builds and was rendered from the authored cameras at t=0 and t=1.5 s, then judged. Make
-{% if language == 'scene_blender' %}
-exactly the changes below, keep everything else, keep the build clean (no zone dropped, no Python
-driver, nothing floating or sunken).
-{% else %}
-exactly the changes below, keep everything else, keep the build clean (no console errors).
-{% endif %}
-
-## Changes to make (priority order; `[gate/...]` items are hard failures — fix them first)
-{% for t in tasks %}
-{{ loop.index }}. {{ t }}
-{% endfor %}
-
-Targets: {{ targets | join(', ') }}
-{% if edit_only_these %}
-EDIT ONLY THESE FILES (other tasks edit other files in parallel):
-{% for f in files %}- `{{ f }}`
-{% endfor %}
-{% else %}
-Files in scope: {% for f in files %}`{{ f }}`{% if not loop.last %}, {% endif %}{% endfor %}
-{% endif %}
-
-## What the judge saw
-{{ judge_summary }}
-
-{% if language == 'scene_blender' %}
-## Plan (unchanged truth; numbers below are in YOUR frame — Z up, −Y front, metres)
-{% else %}
-## Plan (unchanged truth)
-{% endif %}
-Bounds: {{ bounds }} · Setting: {{ setting }} · Mood: {{ mood }}
-{% if language == 'scene_blender' %}
-Environment (its prose is Y-up: "y" there is z here): {{ environment }}
-{% else %}
-Environment: {{ environment }}
-{% endif %}
-Zones:
-{{ zones_table }}
-Cameras:
-{{ cameras }}
-Assets:
-{{ asset_api }}
-Effects:
-{{ effects }}
-Animation: {{ animation }}
-
-## Acceptance checklist
-{{ acceptance }}
-
-## Reminders
-{{ frame_doc }}
-{% if language == 'scene_blender' %}
-- A lighting / atmosphere / terrain / horizon change lives in `{{ env_file }}` (the world, the sun or
- moon lamp, the atmosphere volume, the ground and `height_at`, whatever continues the world).
-- A composition/camera change is the plan's: `{{ entry_file }}` is harness data — move the SUBJECT
- (a zone's placement) rather than the camera.
-- A zone change lives in its `src/zones/<zone>.py` (`def build(ctx)`, motion as keyframes on
- `ctx.frame(0.0)` / `ctx.frame(1.5)`); an asset change in `src/assets/<asset>.py`
- (`build_<asset>(ctx, variant=0)`).
-- A dropped zone / asset (`zone_error`, `asset_error`): fix the named line; never wrap the whole
- builder in try/except to hide it.
-- Everything rests on `ctx.height_at(x, y)` or on its support (move the root by the smallest
- `ctx.height_at(x, y) - z` over its foot band: the world-space vertices within max(0.02 m, 5 % of its height) of its lowest); nothing floats, sinks or runs through a
- neighbour (compare world bounding boxes). Code zones share lives in `{{ env_file }}`.
-- No world or cameras outside `{{ env_file }}`, no file IO, no `random.*`, no Python drivers.
-{% else %}
-- A lighting / atmosphere / terrain / horizon change lives in `src/env.js`.
-- A composition/camera change lives in `src/scene.js` (camera position/lookAt/fov numbers only).
-- A zone change lives in its `src/zones/<zone>.js` (`export function build(ctx)`, animation on
- `group.userData.update`); an asset change in `src/assets/<asset>.js`.
-- Console/shader errors: fix the named module; never wrap in try/catch to hide them.
-- Everything is seated on `heightAt(x, z)` or the structure it stands on; nothing floats or sinks;
- stay inside the draw / triangle budget `scene_probe` reports.
-- No DOM, no fetch, no Math.random, no CDN imports; textures only via `loaders.texture` for files
- in the workspace or procedural DataTextures.
-{% endif %}
-
-{% if language == 'scene_blender' %}
-## The recurring findings on this track — what each measures, and where the requirement is stated
-Do not re-explain the problem back — change what the finding measures. If a measured finding repeats,
-change what it measures until its number passes; a repeated judge note needs a visible change in the
-named view. The skills named below are in your session's skill list; the contract is above.
-{% else %}
-## The recurring findings on this track, and what each one measures
-Do not re-explain the problem back — change the thing the finding measures. If a measured
-finding repeats from the previous round, re-read its number and change what it measures until
-the number passes; a judge note that repeats needs a visible change in the named view.
-{% endif %}
-
-{% if language == 'scene_blender' %}
-| what the judge / gate wrote | the requirement (and how it is measured) | stated in |
-|---|---|---|
-| flat / one-colour ground, hard raised-bed edges | the surface needs visible variation that matches the brief's material, and its seams dressed (judge `flat_ground`) | the env brief § 1; skill `c3d-bpy-scene-materials` |
-| a hard world edge against the sky, missing horizon | from no camera may the ground end against the sky (`world_edge_visible`; gates `world_edge` / `fog_short`); what continues the world is the brief's — street, sea, cliff, forest, wall, fog | contract § What else the gates measure; skill `c3d-scene-atmosphere` |
-| the backdrop looks like flat / beige / untextured cut-outs | a distant backdrop needs volume and lighting consistent with the sky; aerial perspective is the fog's job, never a pre-tint (`placeholder_material`) | skill `c3d-scene-atmosphere` |
-| a pond / terrace is a hard-edged plane sitting on the ground | water and terraces meet the ground without a visible seam: carving into `height_at` (`{{ env_file }}`) or dressing the seam (the zone) are options; water is named `…Water` | skill `c3d-scene-water`; skill `c3d-bpy-scene-placement` |
-| `floating` / `sunken` / `interpenetration` / `unsupported` (the placement gate's metres) | move the root by the printed metres: its lowest evaluated vertices onto `ctx.height_at` or its support, boxes apart; a rock may sit a third in, a crate may not | contract § Placement; skill `c3d-bpy-scene-placement` |
-| "camera is N m below ground level" / `camera_in_geometry` | the eye must be above the ground under it and ≥ 0.5 m from any surface: move the subject or the zone's placement; the landform is the brief's | contract § What else the gates measure |
-| identical cones / stacked blocks / primitive repetition | identical copies and primitive stacks are what the judge reads (`monotonous_vegetation`); a tree branches into limbs carrying leaf or needle cards, a rock is irregular (`asset_quality_detail`); vary where the brief has natural variety, regular things stay regular | the zone brief § 2 |
-| sparse, token, "a diorama on a plane", empty midground | the brief's stated counts are requirements (the census compares them); empty regions the brief would fill get what it implies (`undressed_scene`, `empty_midground`) | the zone brief § 1; skill `c3d-scene-composition` |
-| flat / dark / monochrome light, black shade, `dark_frame` | measured per camera (`mean_lum` / `dark_frac` / `blown_frac`); the brief's time of day and light sources decide; the lighting skill lists starting values that have passed | skill `c3d-bpy-scene-lighting`; skill `c3d-scene-night` |
-| frames at t=0 and t=1.5 identical, "nothing moves", `nothing_moves` | the frame difference is measured per camera: LINEAR keyframes on `ctx.frame(0.0)` / `ctx.frame(1.5)` or `frame * k`; `python_driver` = a driver that needs Python, rewrite it | contract § Motion; skill `c3d-scene-motion` |
-| `hard_edged_particles`, "sharp-edged quads / spheres / discs for steam, dust, sparks", the brief's "soft particle effect" must-item unverified | the finding measures sharp-edged particle geometry: in Cycles only a volume renders edgeless (a `ShaderNodeVolumePrincipled` into the Material Output's `Volume`, no surface shader), one root tagged free, moving ≥ 0.6 m | contract § What the renderer does |
-| "plastic", "one grey material", `placeholder_material` | flags a surface with no authored colour / roughness; every surface needs a material that matches what it is, varied at more than one scale (broad tone and wear plus fine grain or bump) | skill `c3d-bpy-scene-materials` |
-| `zone_error` / `asset_error` (a dropped module) | the named `file:line` — fix the raise; Blender 5.2 facts (no `use_nodes`, `Factor` not `Fac`, `ShaderNodeMix`, `Action.fcurves` is gone, GN inputs via `mod.properties.inputs`) | contract § Blender 5.2 API facts |
-{% else %}
-| what the judge or gate wrote | the requirement behind it |
-|---|---|
-| flat / one-colour ground, no paths, hard raised-bed edges | the surface needs visible variation that matches the brief (material, relief, wear) where the setting would show it (judge `flat_ground`) |
-| a hard world edge against the sky, missing horizon | from no camera may the ground end against the sky (`world_edge_visible`; the gate reads standing geometry to 1.25 × the bounds half-extent, fog far ≥ 2 × the plan span); what continues the world is the brief's — the street keeps going, the sea, a cliff, a forest, a city, a wall, or fog that closes |
-| the backdrop looks like flat / beige / untextured cut-outs | distant forms need volume and shading consistent with the sky's light (judge `placeholder_material`); aerial perspective comes from the fog, not from pre-tinting the material toward it |
-| a pond / terrace is a hard-edged plane sitting on the ground | a water body or terrace must meet the ground without a visible hard seam (judge); carving the terrain or dressing the edge are two options |
-| "camera is N m below ground level" | the eye must be ≥ 0.3 m above the ground under it: compute the camera's y from `heightAt(x, z)` (or the floor it stands on) in `src/scene.js` |
-| identical cones / stacked blocks / primitive repetition | the judge reads identical copies and primitive stacks; vary silhouette, scale and colour where the brief has natural variety (a planted avenue or a container stack IS regular — the brief decides) |
-| sparse, token, "a diorama on a plane", empty midground | the description's contents are requirements (the census compares them: `missing_content`, `zone_empty`; a count under half the layout's is an INFO `density_note`); "sparse / diorama" means the frame has empty regions the brief would fill — fill them with what the brief implies |
-| flat / dark / monochrome light, black shade, jagged shadows | flat / dark frames are measured (mean lum, std, flat band); jagged shadows mean shadow texels larger than ~0.05 m over the content — tighten the frustum (`sunRig({ bounds })` with the content radius); the light's colours are the brief's time of day and sources |
-| frames at t=0 and t=1.5 identical, "nothing moves", `no_motion` | a camera moves when ≥ 0.4 % of its pixels change by more than 8/255 (or ≥ 0.08 % by more than 60/255); none moving is the gate's `no_motion` ERROR and the judge's `nothing_moves`; the hook is `userData.update` (never `tick`), and the amplitude has to show at 1024×576 (foliage ±0.10–0.20 rad, particles ≥ 0.6 m per 1.5 s, water ≥ 3 cm or a scrolling normal are amplitudes that have passed) |
-| `hard_edged_particles`, "sharp-edged quads / spheres / discs for steam, dust, sparks", the brief's "soft particle effect" must-item unverified | the finding measures sharp-edged particle sprites; any soft-edged construction passes (a bounded density volume, or a radial-alpha sprite on every point) |
-| camera inside geometry / shows only sky or a wall | the eye must be ≥ 0.5 m from every surface and the frame ≥ 10 % content (20 % for the establishing view): move the camera in `src/scene.js` or what blocks it |
-{% endif %}
-{% if current_files %}
-
-## Current file contents (edit and return each COMPLETE)
-{% for path, body in current_files.items() %}
---- {{ path }} ---
-```
-{{ body }}
-```
-{% endfor %}
-{% endif %}
-{% if tool_cards and not single_shot %}
-
-## Tools
-{{ tool_cards }}
-Run `build` → `check_placement` → fix → `build` after editing (and `scene_probe` for the census);
-finish only when both are clean. `artifacts/scene_probe.json` is the probe driver's raw dump (thousands of
-lines); `check_placement` returns the placement rows, each with its gap and the tolerance it was measured
-against. `check_placement` measures floating / sunken / unsupported /
-interpenetrating assets deterministically — its numbers, not your impression. `scene_views` prints the
-frame table and the MEASURED MOTION per camera — use those numbers, not your impression.
-{% endif %}
-{% if language == 'scene_blender' %}
-
-{% endif %}
-## Output
-{{ output_format }}
diff --git a/harness/codeverse3d/prompts/tracks/scene_zone.j2 b/harness/codeverse3d/prompts/tracks/scene_zone.j2
deleted file mode 100644
index 39870cf4..00000000
--- a/harness/codeverse3d/prompts/tracks/scene_zone.j2
+++ /dev/null
@@ -1,131 +0,0 @@
-# Zone `{{ zone_name }}` of `{{ title }}` — write `{{ zone_file }}`
-
-Scene: {{ spec_prompt }} · Setting: {{ setting }} · Mood: {{ mood }}
-
-## This zone
-- Description (the brief's facts in it are binding; its counts are the layout's intent, checked against the census): {{ zone_description }}
-- Bbox: {{ zone_bbox }} — the planned contents are measured against it and the plan bounds (a planned
- content entirely outside the bounds + max(5 m, 10 % of the span) is `out_of_bounds`, a WARN; scenery
- may continue past it as the place implies), and every placed root object is seated on the surface
- it stands on — terrain via `heightAt`, or a structure (a shelf, a roof, a deck). Deliberately
- airborne things carry `userData.placement = 'free'`.
-{% if interior %}- INTERIOR: the enclosure (walls, ceiling, roof) is `env.js`'s — do not build walls or a roof here.
- Fixtures on a wall sit flush against its inner face; a window or door is an OPENING env cuts, so
- glazing and door leaves go in the opening, not through the wall.
-{% endif %}- Contents (asset names to place): {{ zone_contents | join(', ') if zone_contents else '(none — build local detail from primitives)' }}
-- Every builder returns its asset AT THE SIZE the asset API states; place it at scale 1. The
- placement gate measures every placed thing as ONE object, parts included, against the plan's
- `approx_size_m`: a WARN beyond 2.5 × (or under 1 / 2.5), an ERROR beyond 4 × (`scale`), and the
- judge's `wrong_scale` on top (measured 2026-09-08, round 0: a 1.15 m stove placed at 3.60 m,
- 0.48 m oil lamps at 0.03 m — both cost the round; a stove whose flue was pulled up to the roof
- read as a 4.8 m stove — three runs lost their round to it). Never re-scale to "fit", never
- stretch a part of a placed clone; a chimney, pipe or cable that must reach further is a
- SEPARATE object you add beside it.
-
-{% if layout is defined and layout %}## Zone director's layout (the contents it names are measured as present; its positions and counts are the director's proposal in world metres — keep them unless the place reads better otherwise)
-{{ layout }}
-
-{% endif %}Neighbouring zones (their builders place there; a thing of yours running into a thing of theirs
-is an `interpenetration` row like any other):
-{% for n in neighbours %}- {{ n }}
-{% endfor %}
-{% if shared is not defined or shared %}
-Authored cameras that will photograph this scene — nothing this zone builds may sit inside or
-right against one (`scene_views` reports `camera_in_geometry`, the eye's clearance from every
-surface — ≥ 0.5 m — and `camera_blocked`: 6 of the 9 sight rays ending within 1.5 m); what, if
-anything, frames a shot is this zone's choice:
-{{ cameras }}
-
-## Assets available (sizes are measured, meters w×h×d)
-{{ asset_api }}
-
-Those paths are written relative to `src/`; **from `src/zones/` prefix them with `../`**
-(`import { buildStoneLantern } from '../assets/stone_lantern.js';`). The terrain comes from the
-environment (`ctx.heightAt`, or `import { heightAt } from '../env.js'`), and so does whatever else
-`env.js` chose to export (shared materials, a water level, a route — its names, read
-`src/env.js`). A GLB asset is already loaded for you at `ctx.assets['<snake_name>']` — add
-`.clone()` of it, never `loaders.gltf` again. A clone that carries clips (a keyframed Blender part) plays
-them by itself; set `clone.userData.clipOffset = <seconds>` to de-phase copies. There is no `ctx.rand` and no `ctx.MATS`.
-
-## Contract
-{{ frame_doc }}
-{{ contract }}
-
-### The harness assembles `src/scene.js` and calls YOUR module like this — nothing else runs
-```js
-const ctx = { THREE, scene, renderer, loaders, heightAt, env, assets };
-const g = await build(ctx); // the export MUST be named `build`, one argument
-scene.add(g); // g must be a THREE.Group / Object3D
-if (g.userData.update) g.userData.update(t, dt); // the ONLY animation hook that runs
-```
-So `{{ zone_file }}` exports `export function build(ctx) → THREE.Group` named `"{{ zone_name }}"`.
-`build{{ zone_name }}` and `userData.tick` are never called: if an asset carries its own
-`userData.update`, cache it at build time and call it from the zone's `userData.update`.
-`ctx` also gives you `ctx.env` (whatever `buildEnv` returned) and `ctx.heightAt`.
-
-## What is measured on this zone
-1. **The description's contents are present.** `check_placement` compares what is placed against
- the plan: a planned asset not placed is `missing_content`, an empty group is `zone_empty`, a zone
- under half the instances its layout counted gets an INFO `density_note`; the judge
- compares the frame against the description (`missing_planned_element`, `empty_zone`). Where
- the description gives no count, dress to what this setting would contain — the judge flags
- `undressed_scene` by perception, not by number. Place props where the setting puts them;
- regular arrangements only where the brief or setting implies them (a formal parterre, a row of
- parked scooters, a colonnade), otherwise expect the judge to read an unmotivated grid or ring
- as identical copies (`monotonous_vegetation`, `diorama_look`).
-2. **Repeated things read as individuals** where the setting has natural variety (judge:
- `monotonous_vegetation`, "identical copies", "primitive stacks"); the brief decides whether they
- grow in clusters, rows, an orchard or a canopy. The assets' `variant` / `seed` / `hue` options
- exist for this; several geometries plus scale / hue / yaw variation is one way.
-3. **Everything is seated.** `check_placement` reports a foot > 0.05 m above its surface
- (0.02 m indoors) as `floating` (ERROR at 0.08 m) and > 0.10 m below as `sunken` (ERROR at
- 0.20 m); two boxes sharing > 10 % of the smaller one as `interpenetration` (ERROR at 35 %).
- One placed thing = one direct child of the zone group: a Group holding several props is
- measured as ONE box, their union, and every prop inside it reads as interpenetrating it; a
- prop built from parts is one Group; many of one thing is one `InstancedMesh`. A scattered
- instance inside a placed thing is an interpenetration at 100 % of the smaller box — scatter
- clear of what you placed. A wide flat thing on a slope is measured at its lowest vertices
- against the ground under THEM: conform each piece to `heightAt` or split it. How a seam reads
- is the setting's call; the judge flags a visibly hovering base as `floating_asset` / `sunken_asset`
- and a ground feature that reads as a plate lying on the ground as `flat_ground`.
-4. **The cameras stay clear.** No authored camera may be inside or blocked by what this zone
- builds (`camera_in_geometry`, `camera_blocked`; both cap the run at 0.50); how you keep the
- near field clear is yours.
-5. **Motion that shows.** The harness differences the t = 0 and t = 1.5 s frames of every camera
- and reports the number: a camera moves when ≥ 0.4 % of its pixels change by more than 8/255
- (or ≥ 0.08 % by more than 60/255); no authored camera moving is `no_motion` (ERROR) and the
- judge's `nothing_moves` (−0.05 and the animation criterion). Sub-centimetre sway is invisible
- at 1024×576. What moves is the brief's; give this zone at least one motion big enough to see
- across the frame, everything a pure function of `t`, driven from `userData.update`. Particles
- must be soft-edged (judge `hard_edged_particles`: bare `PointsMaterial` squares, a chain of
- spheres for a steam jet, polygon sparks all fire it, and with it the brief's "soft particle
- effect" must-item) — a bounded density volume or a radial-alpha sprite both pass.
-6. **Budget.** Stay inside the draw-call / triangle budget `scene_probe` reports (WARN above 5 000
- draws, ERROR above 15 000; 3 000 000 unique triangles); `InstancedMesh` and merged static geometry are
- the cheap ways to repeat.
-
-## DON'T
-- Sun, sky, ground and cameras are the env's. This zone may add the practical lights its setting
- contains (a lantern, a neon sign, a forge, a campfire), within the exposure band and the perf
- budget — a shadow-casting light per practical is the usual budget blow-out.
-- No DOM, no textures, no fetch, no Math.random (`mulberry32(seed)` from `lib/noise.js`).
-- Do not import assets marked NOT AVAILABLE; do not edit other files.
-{% if tool_cards and not single_shot %}
-
-## Tools
-{{ tool_cards }}
-After editing run `build` → `check_placement` (it names every asset that floats, is sunken,
-touches nothing or interpenetrates another, with the exact "lower X by 0.23 m onto Terrain"
-fix; a deliberately airborne thing gets `obj.userData.placement = 'free'`) → fix every row →
-`build` again, then `scene_views`: check that each authored frame shows what the description
-says, and read the MEASURED MOTION line it prints — if it reports your zone's cameras as
-STATIC, double the amplitude and render again.
-{% endif %}
-{% if effects_catalog is defined and effects_catalog %}
-
-{{ effects_catalog }}
-{% endif %}
-
-## Output
-{{ output_format }}
-{% endif %}
diff --git a/harness/codeverse3d/prompts/tracks/scene_zone_bpy.j2 b/harness/codeverse3d/prompts/tracks/scene_zone_bpy.j2
deleted file mode 100644
index c3335c31..00000000
--- a/harness/codeverse3d/prompts/tracks/scene_zone_bpy.j2
+++ /dev/null
@@ -1,128 +0,0 @@
-# Zone `{{ zone_name }}` of `{{ title }}` — write `{{ zone_file }}`
-
-Scene: {{ spec_prompt }} · Setting: {{ setting }} · Mood: {{ mood }}
-
-## This zone
-- Description (the brief's facts in it are binding; its counts are the layout's intent, checked against the placement census): {{ zone_description }}
-- Bbox (Z up, −Y front, metres — already converted from the plan): {{ zone_bbox }} — placed assets are
- measured against it and the plan bounds (a planned content entirely outside the bounds + max(5 m, 10 % of the
- span) is `out_of_bounds`, a WARN; scenery may continue past them as the place implies); seat each on
- the ground via `ctx.height_at(x, y)` or on the surface it stands on.
-{% if interior %}- INTERIOR: the shell (floor, walls, lid) is `env.py`'s; a partition, counter or alcove this zone needs
- is yours, seated and clear of the shell (placement gate). A window or door is an OPENING env cut:
- glazing and door leaves go in the opening, not through the wall.
-{% endif %}- Contents (asset names to place): {{ zone_contents | join(', ') if zone_contents else '(none — build local detail from bmesh)' }}
-- Every asset in `ctx.assets` is a Collection AT THE SIZE the asset API states and is measured as ONE
- object against the plan's `approx_size_m`: a WARN beyond 2.5 × (or under 1 / 2.5), an ERROR beyond 4 ×
- (`scale`), and the judge's `wrong_scale` on top (measured 2026-09-08, round 0: a 1.15 m stove placed at
- 3.60 m, 0.48 m oil lamps at 0.03 m — both cost the round). Never re-scale to fit or stretch a part of
- an instance; a chimney, pipe or cable that must reach further is a SEPARATE object you add beside it.
-
-{% if layout is defined and layout %}## Zone director's layout (the contents it names are measured as present; its positions and counts are the director's proposal, world metres (x, y) in THIS frame — keep them unless the place reads better otherwise)
-{{ layout }}
-
-{% endif %}Neighbouring zones (their builders place there; a thing of yours running into a thing of theirs is an
-`interpenetration` row like any other):
-{% for n in neighbours %}- {{ n }}
-{% endfor %}
-{% if shared is not defined or shared %}
-Authored cameras that will photograph this scene (Z up, metres; nothing may sit inside or within
-0.5 m of a lens — `scene_views` camera_checks, `camera_in_geometry` cap 0.50 — and no more than 5 of a
-camera's 9 sight rays may end within 1.5 m, `camera_blocked`, the same cap; the framing is this zone's
-choice):
-{{ cameras }}
-
-## Assets available (sizes are measured, metres)
-{{ asset_api }}
-
-Place one as a collection-instance Empty — `bpy.data.objects.new(name, None)` with `instance_type =
-'COLLECTION'` and `instance_collection = ctx.assets['<snake>']`, linked into `ctx.collection` and seated
-on the ground (= ONE placement row); many copies are many Empties. Shared materials and the terrain
-come from the environment:
-`ctx.env[...]` (the keys `build_env` returned), `ctx.height_at`; zones may also `from env import …`
-whatever `env.py` defines at module level. A hero GLB is already imported for you as
-`ctx.assets['<snake>']` — instance it, never import a file. There is no `ctx.rand` and no
-`ctx.materials`; randomness is `rng = ctx.rng(<seed>)`.
-
-## Contract
-{{ frame_doc }}
-{{ contract }}
-
-### The harness assembles `{{ entry_file }}` and runs YOUR module like this — nothing else runs
-```python
-ctx.collection = <this zone's own Collection, active> # bpy.ops primitives land in it
-out = zones.<snake>.build(ctx) # the function MUST be named `build`, one argument
-# a raise = this zone DROPPED (file:line reported), everything it made removed; the rest builds
-```
-So `{{ zone_file }}` defines `def build(ctx) -> bpy.types.Collection` that links everything into
-`ctx.collection` and returns it. `build_{{ zone_name }}`, `main` and `register` are never called.
-Animation is DATA: keyframes on `ctx.frame(0.0)` / `ctx.frame(1.5)` (their f-curves on the slotted
-action: `action.layers[0].strips[0].channelbag(action.slots[0]).fcurves`) and simple drivers of
-`frame`; there is no per-frame hook.
-
-## What this zone is graded on (the requirement, and how it is measured)
-1. **What the description names is here.** Counts the plan states are compared with the placement
- census (`missing_planned_element`, `empty_zone`), and a place that reads as sparse for what the brief
- describes is judged `undressed_scene`. Place props where the setting puts them; regular arrangements
- only where the brief implies them; scatter positions are yours to compute, seeded with `ctx.rng(seed)`.
-2. **Repeated natural elements read as individuals** from the cameras (judge `monotonous_vegetation`:
- one shape stamped many times, in a ring or a grid). Source variants that differ in silhouette and hue
- (`build_<snake>(ctx, variant=k)`), per-instance rotation / scale and an Object Info `Random`-driven tint
- are ways; regular things (a colonnade, a row of bollards) stay regular. A tree is a trunk branching
- into limbs that carry leaf or needle cards, a rock an irregular asymmetric mass — never a cone, a ball
- on a stick or a cube standing in for one (`asset_quality_detail`).
-3. **Seated, and clear of each other — measured.** Every placed root object rests on the surface it
- stands on (the gate samples up to 5 foot columns in its foot band — the evaluated vertices within
- max(0.02 m, 5 % of its height) of its lowest one: move the root by the smallest `ctx.height_at(x, y) - z`
- over that band's world-space vertices, or onto its support's top):
- a foot 0.05 m up is `floating` (ERROR at 0.08 m), 0.10 m under is `sunken` (ERROR at 0.20 m), two
- boxes sharing > 10 % of the smaller one are `interpenetration` (ERROR at 35 %). Compare the world
- bounding boxes of your roots AND the neighbours' placed things pair by pair before you finish.
- `obj["placement"] = "free"` only for things that hang in the air; the share of tagged things is
- reported. A built thing on soil must not read as pasted on (judge `flat_ground`: undressed seams):
- a few centimetres of sink (the gate allows up to 0.10 m) or dressing along the seam are options; a
- ground feature (a pond, a bed, a terrace) must not read as a plate on the terrain from the overview
- cameras — carving in `height_at` (the env's) or a built edge both work.
-4. **The cameras stay clear.** No authored camera may be inside or blocked by what this zone builds
- (`scene_views` camera_checks: nothing within 0.5 m of a lens, `camera_in_geometry`; 6 of 9 sight
- rays within 1.5 m, `camera_blocked` — each an ERROR capped at 0.50): keep scatter points out of a
- radius around every lens. Framing is yours.
-5. **Motion that shows.** The harness DIFFERENCES the t=0 and t=1.5 frames per camera and reports the
- number: a camera moves when ≥ 0.4 % of its pixels change by more than 8/255 (or ≥ 0.08 % by more
- than 60/255); no authored camera moving is `no_motion` (ERROR), the judge's `nothing_moves`.
- Keyframes on `ctx.frame(0.0)` / `ctx.frame(1.5)` (LINEAR) or a simple driver of `frame`; what moves
- is the brief's (amplitudes that have registered at 1024 × 576: ≥ 0.10 rad, ≥ 0.05 m, a particle /
- leaf / boat ≥ 0.6 m per 1.5 s).
-6. **One root = one thing; names unique.** `check_placement` measures each root object in
- `ctx.collection` as one placed thing: a multi-part prop has one root (a mesh, a parent Empty, a
- collection instance) and every root a unique name (`f"{base}_{i}"`). Stay inside the triangle
- budget `scene_probe` reports; collection instances and geometry-nodes clouds (an Instance on Points
- tree over a patch) are the cheap ways to repeat, and the lint warns on `bpy.ops.mesh.primitive_*`
- inside a loop.
-7. **A soft particle has no silhouette.** In Cycles only a volume renders without an edge (a
- volume-only material: `ShaderNodeVolumePrincipled` into the Material Output's `Volume`, no surface
- shader); a translucent surface puff, metaball, torus or disc is graded `hard_edged_particles` and
- fails the brief's must-item. It is one root tagged free, and it moves ≥ 0.6 m between the two frames.
-8. **Surfaces read as their material** (judged `placeholder_material`): every large surface varies at
- more than one scale — broad tone and wear over metres AND fine grain or bump over centimetres — in a
- node tree you wire; one constant colour per surface reads as a placeholder.
-
-## DON'T
-- No world, no sun, no cameras, no ground here (the env's; the lint rejects a world in a zone); the local
- lights the brief's place has are yours.
-- No file IO, no image textures, no `random.*` (`ctx.rng(seed)`), no Python drivers, no `scene.*` settings.
-- Do not place assets marked NOT AVAILABLE; do not edit other files.
-{% if tool_cards and not single_shot %}
-
-## Tools
-{{ tool_cards }}
-After editing run `build` → `check_placement` (it names every asset that floats, is sunken, touches
-nothing or interpenetrates another, with the exact "lower X by 0.23 m onto Ground" fix; a
-deliberately airborne thing gets `obj["placement"] = "free"`) → fix → `build` again, then
-`scene_views` and LOOK at the frames against the brief, and read the MEASURED MOTION line it prints —
-STATIC means this zone's motion is below the threshold.
-{% endif %}
-
-## Output
-{{ output_format }}
-{% endif %}
diff --git a/harness/codeverse3d/prompts/urdf/contract.md b/harness/codeverse3d/prompts/urdf/contract.md
deleted file mode 100644
index c3fa512c..00000000
--- a/harness/codeverse3d/prompts/urdf/contract.md
+++ /dev/null
@@ -1,148 +0,0 @@
-# URDF + bpy authoring contract — track `articulated_object`, language `urdf_blender`
-
-## Files
-```
-src/model.py pure bpy (the blender contract's sandbox and lint apply): per link, the object named
- exactly as the link (plus anything parented under it), built in WORLD coordinates
- at the REST pose (= URDF q=0).
-src/robot.urdf hand-written URDF: links + joints; every link has ONE <visual> and ONE identical
- <collision>, geometry <mesh filename="meshes/<link>.glb"/>, origin = −(link frame).
-```
-What the harness does with them: runs `model.py` headless; takes the object named exactly
-`<link>` plus everything parented under it as that link's mesh (the wrapper joins them — you
-need no join of your own; if you do join, set the active object first or the lint WARNs);
-exports `artifacts/meshes/<link>.glb` with the WORLD coordinates baked in (nothing is shifted
-for you); lints the URDF; checks that FK at q=0 puts every mesh back where you authored it
-within 1 mm (otherwise the build FAILS as `FkInconsistent` and prints the corrected `<origin>`);
-fails the build on a rest-pose penetration deeper than 5 mm (`RestPenetration`); sweeps every
-joint over its range (the round's `joint_sweep` gate); renders q=0 plus every joint at its
-lower/upper limit for the judge; builds `object.glb` with one node per link. You never
-export. A link no object matches fails the build (with a did-you-mean hint for a case or
-snake_case mismatch); a visible mesh object no link claims fails it too (parent it under a
-link object or add a `<link>`). `<collision>` missing or different from `<visual>` is a
-lint WARN: the harness collides the VISUAL mesh.
-
-## Frame rule (measured by the FK check)
-* Z up, −Y front, +X right, meters, radians. Object on z = 0 at q = 0 (`check_contract`
- compares every link's bbox with the plan's, whose bottom is z = 0; tolerance
- max(10 mm, 10 % of the planned extent) per axis).
-* **q = 0 = what you build = the plan's rest pose**: the plan's bbox centres/extents and
- pivots describe this pose (doors closed, drawers in, lids down, arms at home, unless the
- plan's `rest` says otherwise). The judge sees q=0 and every joint at both limits, so the
- motion is always shown; the geometry itself is the rest pose the plan's bboxes describe.
-* The skeleton writes every joint with `rpy="0 0 0"`, so link frames are world-aligned and
- the origin arithmetic below is plain subtraction. A rotated joint origin is accepted
- (lint INFO) but then the visual/collision origin must be the full inverse of the link's FK
- transform — the FK check tells you the numbers.
-* Root link frame = world origin `(0,0,0)`. Every other link frame = its joint's PIVOT: a
- world point ON the joint axis (hinge line / slide axis / wheel axle); fixed joints: the
- child's attachment point.
-* `<joint><origin xyz>` = `pivot_child − frame_parent` (for a child of the root that is just
- the pivot; for a handle on a door: `pivot_handle − pivot_door`).
-* `<visual>` AND `<collision>` `<origin xyz>` = `−pivot_link` (root: `0 0 0`), because the
- mesh file holds world coordinates and the link frame sits at the pivot. This is the line
- everyone gets wrong; the build verifies it numerically (FK at q=0 reproduces the authored
- mesh within 1 mm) and prints the numbers when it does not.
-* `<axis xyz>` is a unit vector in the JOINT frame (the frame the joint's `<origin rpy>` sets
- up). With every `rpy="0 0 0"`, as the skeleton writes them, that frame is world-aligned and
- the axis is the world direction of the hinge line or slide (a non-unit axis is normalised
- with a lint WARN; a missing one defaults to `1 0 0`, WARN). Sign: positive q
- must move the child the way the plan's `motion` sentence says — the harness
- (`motion_direction`) moves the joint positively and checks that the child's centroid
- displacement is within 60° of that word (front/back/up/down/left/right or ±x/±y/±z). If
- it goes the other way, negate the axis; never swap lower/upper, because q = 0 must stay
- the authored rest pose.
-* Limits: `revolute`/`prismatic`: `<limit lower upper effort velocity/>` with
- `lower ≤ 0 ≤ upper` (q=0 inside the range); from the plan: `lower = plan.lower − rest`,
- `upper = plan.upper − rest` — the plan's own numbers when `rest` is 0 (the skeleton already
- wrote them, with a comment where they are shifted). `continuous`: `<limit effort velocity/>`
- only (lower/upper on a continuous joint: lint WARN, ignored). `fixed`: no `<limit>`, no
- `<axis>`. A revolute/prismatic joint without `<limit>` is a load ERROR; lint WARNs:
- `lower == upper`, a revolute range > 2π (use `continuous`), a `<limit>` without
- effort/velocity.
-* Single-root tree: exactly one link that is no joint's child (the base); every other link
- is the child of exactly one joint (ERROR: a link with two parent joints, a link not
- connected to the root); no cycles. Anything that rides on a moving link is part of that
- link's mesh or a fixed child of it; attached to the base it stays behind when the link
- moves and the sweep reports the overlap.
-* Names: link name == Blender object name == `meshes/<link>.glb` stem, case-sensitive,
- identical in both files, a plain identifier (letters/digits/underscore; WARN otherwise —
- `Door.001` means two objects shared a name); `world` is reserved (ERROR); name the part,
- not its state (`door`, not `door_open`: WARN). Keep the skeleton's names (snake_case of
- the plan parts: `door`, `handle_left`); the plan's PascalCase spelling is accepted too.
- Copies of a plan part are separate links `<part>_1..n` with their own joints
- `<joint>_1..n` (the skeleton places them in a row along +x as placeholders; put them where
- they belong). Joint names: the plan's joint names; all unique.
-
-## Clearance and attachment (measured by `joint_sweep`)
-* Pose set: rest; every movable joint alone at lower, mid and upper (the others at 0;
- `continuous`: 0, ±π/2, π); 8 seeded random full-body combinations when more than one
- joint moves.
-* In every sampled pose no two links overlap by more than 2 mm. In a moved pose that is an
- ERROR at any depth.
- At rest 2–5 mm is a WARN and deeper than 5 mm fails the build (`RestPenetration`).
- Links joined only by `fixed` joints are one rigid group, judged once with the rest policy.
- A link that is not watertight only gets an estimated depth (`[approx: non-watertight mesh]`).
-* Attachment at rest: a `fixed` child sits within 2 mm of its parent (touching, or sunk
- ≤ 2 mm; ERROR beyond). A hinged / sliding child's mesh is within 10 mm of its parent's
- (WARN beyond, ERROR beyond 30 mm; a prismatic child already inside its parent's bbox is
- exempt).
-* `check_connectivity` reports a disconnected fragment inside a link smaller than 5 % of the
- link's largest extent as a stray island; the sweep measures overlap depth exactly only on a
- watertight link mesh.
-
-## Allowed / forbidden
-`model.py` is linted by the blender contract's rules (imports, forbidden bpy calls, file IO)
-plus: `exit()` / `quit()` ERROR (exits Blender before the links are exported), `input()` ERROR
-(blocks headless Blender), `time.sleep` and `while True` WARN; every link name must appear as a
-string literal in `model.py` (WARN otherwise — the wrapper looks the object up by that exact
-name).
-URDF: no `<gazebo>`, `<transmission>`, `<sensor>`, xacro, `package://`, mesh scale (WARN:
-model in metres in `model.py`), inline primitives (ERROR: visual geometry must be a `<mesh>`).
-Inertial blocks are optional. `<mimic joint="..." multiplier="..." offset="..."/>` IS
-honoured: the sweep drives the named joint and every follower follows it, so a one-input
-mechanism (umbrella ribs, scissor arms, coupled folding legs) must declare it — one `<mimic>`
-per follower, naming the joint that drives the mechanism (a coupling that names no joint,
-names itself, mimics a fixed joint or closes a loop is a lint ERROR).
-Budgets: the build is killed at `build_timeout_s` (300 s by default); this track has no
-triangle-budget gate.
-
-## The frame arithmetic, end to end
-One hinge, verified by the build + FK check + sweep. It shows the origins and where they come
-from, not how to build anything: a 0.25 m bin body (root, on the ground) and a 10 mm lid
-resting 1 mm above the rim, hinged along its back top edge; q = 0 = lid closed.
-`src/model.py`
-```python
-import bpy, bmesh
-from mathutils import Vector
-
-for name, size, centre in (("body", (0.25, 0.25, 0.35), (0, 0, 0.175)), # root link: frame = world origin
- ("lid", (0.25, 0.25, 0.01), (0, 0, 0.356))): # authored CLOSED (q = 0), 1 mm above the rim
- bm = bmesh.new(); bmesh.ops.create_cube(bm, size=1.0); bmesh.ops.scale(bm, vec=size, verts=bm.verts)
- me = bpy.data.meshes.new(name); bm.to_mesh(me); bm.free()
- o = bpy.data.objects.new(name, me); o.location = centre; bpy.context.scene.collection.objects.link(o)
-PIVOT = {"body": Vector((0, 0, 0)), "lid": Vector((0, 0.125, 0.351))} # link frame = a world point on the hinge line
-print("lid: joint origin", tuple(PIVOT["lid"] - PIVOT["body"]), "visual/collision origin", tuple(-PIVOT["lid"]))
-```
-`src/robot.urdf` — the plan's `motion` says the lid opens UP: +q about +X at the back edge
-would push the front edge DOWN into the body, so the axis is −X (a sign is fixed by negating
-the axis, never by swapping the limits):
-```xml
-<?xml version="1.0"?>
-<robot name="pedal_bin">
- <link name="body">
- <visual><origin xyz="0 0 0" rpy="0 0 0"/><geometry><mesh filename="meshes/body.glb"/></geometry></visual>
- <collision><origin xyz="0 0 0" rpy="0 0 0"/><geometry><mesh filename="meshes/body.glb"/></geometry></collision>
- </link>
- <link name="lid"> <!-- frame at the hinge pivot (0 0.125 0.351) → origin = its negation -->
- <visual><origin xyz="0 -0.125 -0.351" rpy="0 0 0"/><geometry><mesh filename="meshes/lid.glb"/></geometry></visual>
- <collision><origin xyz="0 -0.125 -0.351" rpy="0 0 0"/><geometry><mesh filename="meshes/lid.glb"/></geometry></collision>
- </link>
- <joint name="body_to_lid" type="revolute">
- <parent link="body"/><child link="lid"/>
- <origin xyz="0 0.125 0.351" rpy="0 0 0"/> <!-- pivot_lid - frame_body -->
- <axis xyz="-1 0 0"/> <!-- +q lifts the front edge: the motion word is "up" -->
- <limit lower="0" upper="1.5" effort="5" velocity="2"/>
- </joint>
-</robot>
-```
diff --git a/harness/codeverse3d/prompts/urdf/system.md b/harness/codeverse3d/prompts/urdf/system.md
deleted file mode 100644
index 4397544b..00000000
--- a/harness/codeverse3d/prompts/urdf/system.md
+++ /dev/null
@@ -1,58 +0,0 @@
-You are a Blender `bpy` + URDF author writing RAW python and RAW URDF for a headless
-harness. No SDKs, no helper libraries. Links are bpy objects named exactly as the URDF
-links; joints are native URDF: the origin in the **parent** link frame, the axis in the
-joint frame that origin sets up.
-The harness owns the export and the pose sweep — never save, never render.
-
-You are not modelling a shape. You are modelling a **mechanism**, and it is judged while
-it moves.
-
-{% if tools %}
-The round's gates: `build` (lint, the FK check at q=0, rest-pose penetration),
-`joint_sweep` (every joint at lower/mid/upper plus 8 random combinations; an overlap deeper
-than 2 mm in a moved pose is an ERROR), `check_connectivity` and `check_contract`. A round
-with a sweep ERROR is not accepted. Run them in whatever order finds your errors soonest;
-`render_views` shows you what the judge will see. The sweep is the one agents skip: an
-assembly that is clean at rest and jams at 40° of travel is the normal failure of this
-track, not an unlucky one.
-{% else %}
-You cannot run anything: this is a single-shot session with no tools, so the code you
-return is the code that ships. The sweep will pose every joint at lower, mid and upper
-(the others at 0) and 8 random full-body combinations; nothing may overlap by more than
-2 mm in any of them. Check those poses yourself before you return the code: the question
-is not "does this fit" but "does this still fit at the end of its travel".
-{% endif %}
-
-What the gates measure on this track, in order of how often they fire:
-
-* **Links overlapping at a pose** — any overlap deeper than 2 mm in a moved pose is an
- ERROR whatever its depth (`joint_sweep`); at rest 2–5 mm is a WARN and more than 5 mm
- fails the build. Almost all findings appear only once a joint moves, so give each moving
- link the clearance its whole range needs: measure the swept volume, not the parked one.
- Where two links must pass close, make the travel limits honest rather than letting them
- intersect.
-* **Stray islands** — `check_connectivity` reports disconnected fragments inside a link, and
- the sweep can only estimate depth on a non-watertight link (`[approx: non-watertight
- mesh]`). A fragment smaller than 5 % of the link's largest extent is a stray island; a
- mirror or boolean that left debris fails here.
-* **Bbox deviates from the plan** — `check_contract` compares every link's bbox with the
- plan's (tolerance max(10 mm, 10 % of the planned extent) per axis). Build the planned
- size; if a number is wrong for the object, keep it and say why in a comment.
-
-Rules that survive every brief:
-
-* **Joint origins are in the parent link frame; the axis is in the joint frame.** This is
- where most URDF goes wrong. State the origin as the offset from the parent's frame to the
- joint and the axis as a unit vector; with every `rpy` at 0 both frames are world-aligned
- (the contract's frame rule). Verify by asking what happens at angle zero.
-* **Every joint needs real limits.** `lower`/`upper` that describe the mechanism, not
- `-3.14`/`3.14` placeholders (`lower == upper` is a lint WARN; the sweep tests both ends).
- A hinge that can rotate through its own housing is a modelling error the sweep will find.
-* **The kinematic tree is a tree.** One root, every other link reachable through exactly
- one parent (lint ERROR otherwise). No cycles, no orphans, no link named in a joint that
- does not exist.
-* **Author in metres at real scale.** The harness exports the assembly as authored and
- never re-centres or grounds it, so seating it on the ground yourself is fine.
-
-A sweep ERROR blocks the round whatever the geometry looks like; detail only counts on a
-mechanism that clears it.
diff --git a/harness/codeverse3d/skills/_claims/c3d-bbox-contract.toml b/harness/codeverse3d/skills/_claims/c3d-bbox-contract.toml
deleted file mode 100644
index 9c2c6222..00000000
--- a/harness/codeverse3d/skills/_claims/c3d-bbox-contract.toml
+++ /dev/null
@@ -1,28 +0,0 @@
-# Numbers this bundle quotes, pinned to the constants the contract gate actually reads.
-# Move BBOX_TOLERANCE_M / GROUND_TOL_M / REL_TOL / ERROR_FACTOR and the test that ships this skill fails.
-
-[[claim]]
-key = "bbox_tolerance_m"
-text = "1 cm"
-python = "codeverse3d.conventions:BBOX_TOLERANCE_M"
-scale = 100
-format = "{:.0f} cm"
-
-[[claim]]
-key = "ground_tol_m"
-text = "a gap beyond 1 cm"
-python = "codeverse3d.conventions:GROUND_TOL_M"
-scale = 100
-format = "a gap beyond {:.0f} cm"
-
-[[claim]]
-key = "bbox_rel_tol"
-text = "0.10"
-python = "codeverse3d.spatial.contract:REL_TOL"
-format = "{:.2f}"
-
-[[claim]]
-key = "bbox_error_factor"
-text = "3x"
-python = "codeverse3d.spatial.contract:ERROR_FACTOR"
-format = "{:.0f}x"
diff --git a/harness/codeverse3d/skills/_claims/c3d-bpy-scene-lighting.toml b/harness/codeverse3d/skills/_claims/c3d-bpy-scene-lighting.toml
deleted file mode 100644
index 5410e4d6..00000000
--- a/harness/codeverse3d/skills/_claims/c3d-bpy-scene-lighting.toml
+++ /dev/null
@@ -1,103 +0,0 @@
-# The frame-gate thresholds this bundle quotes, pinned to spatial/frame_metrics.py. The measured
-# exposure bands (references/exposure-bands.md section 2) are measurements with their provenance,
-# not code constants, so they carry no rows.
-
-[[claim]]
-key = "dark_mean_lum"
-text = "0.12"
-python = "codeverse3d.spatial.frame_metrics:DARK_MEAN_LUM"
-format = "{:.2f}"
-context = "mean luminance below"
-
-[[claim]]
-key = "lowkey_min_std"
-text = "0.12"
-python = "codeverse3d.spatial.frame_metrics:LOWKEY_MIN_STD"
-format = "{:.2f}"
-context = "contrast"
-
-[[claim]]
-key = "dark_frac"
-text = "35 %"
-python = "codeverse3d.spatial.frame_metrics:DARK_FRAC"
-scale = 100
-format = "{:.0f} %"
-context = "near black"
-
-[[claim]]
-key = "blown_frac"
-text = "20 %"
-python = "codeverse3d.spatial.frame_metrics:BLOWN_FRAC"
-scale = 100
-format = "{:.0f} %"
-context = "pure white"
-
-[[claim]]
-key = "flat_modal_frac"
-text = "85 %"
-python = "codeverse3d.spatial.frame_metrics:FLAT_MODAL_FRAC"
-scale = 100
-format = "{:.0f} %"
-context = "one luminance band"
-
-[[claim]]
-key = "flat_modal_error"
-text = "92 %"
-python = "codeverse3d.spatial.frame_metrics:FLAT_MODAL_ERROR"
-scale = 100
-format = "{:.0f} %"
-context = "ERROR above"
-
-# references/exposure-bands.md restates the five in its own table
-
-[[claim]]
-key = "dark_mean_lum"
-file = "references/exposure-bands.md"
-text = "0.12"
-python = "codeverse3d.spatial.frame_metrics:DARK_MEAN_LUM"
-format = "{:.2f}"
-context = "below"
-
-[[claim]]
-key = "lowkey_min_std"
-file = "references/exposure-bands.md"
-text = "0.12"
-python = "codeverse3d.spatial.frame_metrics:LOWKEY_MIN_STD"
-format = "{:.2f}"
-context = "at least"
-
-[[claim]]
-key = "dark_frac"
-file = "references/exposure-bands.md"
-text = "35 %"
-python = "codeverse3d.spatial.frame_metrics:DARK_FRAC"
-scale = 100
-format = "{:.0f} %"
-context = "dark_frac"
-
-[[claim]]
-key = "blown_frac"
-file = "references/exposure-bands.md"
-text = "20 %"
-python = "codeverse3d.spatial.frame_metrics:BLOWN_FRAC"
-scale = 100
-format = "{:.0f} %"
-context = "blown_frac"
-
-[[claim]]
-key = "flat_modal_frac"
-file = "references/exposure-bands.md"
-text = "85 %"
-python = "codeverse3d.spatial.frame_metrics:FLAT_MODAL_FRAC"
-scale = 100
-format = "{:.0f} %"
-context = "modal_frac"
-
-[[claim]]
-key = "flat_modal_error"
-file = "references/exposure-bands.md"
-text = "92 %"
-python = "codeverse3d.spatial.frame_metrics:FLAT_MODAL_ERROR"
-scale = 100
-format = "{:.0f} %"
-context = "modal_frac"
diff --git a/harness/codeverse3d/skills/_claims/c3d-bpy-scene-materials.toml b/harness/codeverse3d/skills/_claims/c3d-bpy-scene-materials.toml
deleted file mode 100644
index 87df9ff5..00000000
--- a/harness/codeverse3d/skills/_claims/c3d-bpy-scene-materials.toml
+++ /dev/null
@@ -1,4 +0,0 @@
-# This bundle quotes no number from live code: the socket names and node ids are Blender 5.2.2
-# facts (the languages/blender lint tables hold the rename list as strings, not numeric
-# constants) and the recipe arguments are the agent's (`<placeholders>`). Nothing to pin; the
-# file exists so the claims check finds an empty table.
diff --git a/harness/codeverse3d/skills/_claims/c3d-bpy-scene-placement.toml b/harness/codeverse3d/skills/_claims/c3d-bpy-scene-placement.toml
deleted file mode 100644
index 7ddd98bd..00000000
--- a/harness/codeverse3d/skills/_claims/c3d-bpy-scene-placement.toml
+++ /dev/null
@@ -1,74 +0,0 @@
-# Numbers this bundle quotes, pinned to the constants that produce them.
-#
-# The gate's THRESHOLDS (contact, floating, sunk, overlap, free-exempt) are pydantic defaults on
-# codeverse3d.config:Placement, which this grammar cannot reach (`python = "module:NAME"` resolves
-# a module attribute, and `Placement.model_fields[...].default` is not one). The body therefore
-# names the Settings FIELDS and sends the reader to the summary line of `check_placement`, which
-# prints the values a run used, instead of quoting numbers. A `field = "floating_error_m"` key
-# reading `Placement.model_fields[field].default` would let the numbers back in (REPORT.md).
-
-[[claim]]
-key = "foot_columns"
-text = "5"
-js = "runtime_js/lib/host_placement.mjs:MAX_COLUMNS"
-format = "{:.0f}"
-context = "foot columns"
-
-# the outdoor world_edge check: standing geometry reaches past the bounds
-
-[[claim]]
-key = "world_edge_reach_factor"
-text = "1.25"
-python = "codeverse3d.spatial.scene_placement:WORLD_EDGE_REACH_FACTOR"
-format = "{:.2f}"
-context = "half-extent"
-
-[[claim]]
-key = "world_edge_min_height"
-text = "2 m"
-python = "codeverse3d.spatial.scene_placement:WORLD_EDGE_MIN_HEIGHT_M"
-format = "{:.0f} m"
-context = "tall"
-
-[[claim]]
-key = "world_edge_reach_factor"
-file = "references/finding-to-fix.md"
-text = "1.25"
-python = "codeverse3d.spatial.scene_placement:WORLD_EDGE_REACH_FACTOR"
-format = "{:.2f}"
-context = "half-extent"
-
-[[claim]]
-key = "world_edge_min_height"
-file = "references/finding-to-fix.md"
-text = "2 m"
-python = "codeverse3d.spatial.scene_placement:WORLD_EDGE_MIN_HEIGHT_M"
-format = "{:.0f} m"
-context = "tall"
-
-# references/finding-to-fix.md
-
-[[claim]]
-key = "max_findings_per_kind"
-file = "references/finding-to-fix.md"
-text = "8"
-python = "codeverse3d.spatial.scene_placement:MAX_FINDINGS_PER_KIND"
-format = "{:.0f}"
-context = "per kind"
-
-[[claim]]
-key = "max_assets"
-file = "references/finding-to-fix.md"
-text = "400"
-js = "runtime_js/lib/host_placement.mjs:MAX_ASSETS"
-format = "{:.0f}"
-context = "stops at"
-
-[[claim]]
-key = "time_budget_s"
-file = "references/finding-to-fix.md"
-text = "4 s"
-js = "runtime_js/lib/host_placement.mjs:TIME_BUDGET_MS"
-scale = 0.001
-format = "{:.0f} s"
-context = "stops at"
diff --git a/harness/codeverse3d/skills/_claims/c3d-glsl-craft.toml b/harness/codeverse3d/skills/_claims/c3d-glsl-craft.toml
deleted file mode 100644
index e214194d..00000000
--- a/harness/codeverse3d/skills/_claims/c3d-glsl-craft.toml
+++ /dev/null
@@ -1,32 +0,0 @@
-# The judged frame times and the gl_frames thresholds this bundle quotes, pinned to the live constants.
-
-[[claim]]
-key = "judge_times"
-text = "0, 1, 2.5, 4, 6"
-python = "codeverse3d.languages._gl_common:JUDGE_TIMES"
-sep = ", "
-context = "renders five frames"
-
-[[claim]]
-key = "static_diff"
-text = "0.002"
-python = "codeverse3d.spatial.frame_stats:STATIC_DIFF"
-context = "static"
-
-[[claim]]
-key = "flicker_diff"
-text = "0.35"
-python = "codeverse3d.spatial.frame_stats:FLICKER_DIFF"
-context = "flicker"
-
-[[claim]]
-key = "black_lum"
-text = "0.03"
-python = "codeverse3d.spatial.frame_stats:BLACK_LUM"
-context = "blown"
-
-[[claim]]
-key = "blown_lum"
-text = "0.98"
-python = "codeverse3d.spatial.frame_stats:BLOWN_LUM"
-context = "blown"
diff --git a/harness/codeverse3d/skills/_claims/c3d-opengl-pipeline.toml b/harness/codeverse3d/skills/_claims/c3d-opengl-pipeline.toml
deleted file mode 100644
index 467d6ff2..00000000
--- a/harness/codeverse3d/skills/_claims/c3d-opengl-pipeline.toml
+++ /dev/null
@@ -1,17 +0,0 @@
-# The judged frame times this bundle quotes, pinned to the tuple the graphics track renders.
-
-[[claim]]
-key = "judge_times"
-text = "0, 1, 2.5, 4 and 6"
-python = "codeverse3d.languages._gl_common:JUDGE_TIMES"
-sep = ", "
-last_sep = " and "
-context = "judged times"
-
-[[claim]]
-key = "judge_times"
-file = "references/sampled-time.md"
-text = "0, 1, 2.5, 4, 6"
-python = "codeverse3d.languages._gl_common:JUDGE_TIMES"
-sep = ", "
-context = "Judged times"
diff --git a/harness/codeverse3d/skills/_claims/c3d-part-contact.toml b/harness/codeverse3d/skills/_claims/c3d-part-contact.toml
deleted file mode 100644
index 4ad08908..00000000
--- a/harness/codeverse3d/skills/_claims/c3d-part-contact.toml
+++ /dev/null
@@ -1,80 +0,0 @@
-# Numbers this bundle quotes, pinned to the constants that produce them.
-# Changing a constant must break the test that ships the skill quoting it.
-
-[[claim]]
-key = "contact_gap"
-text = "2 mm"
-python = "codeverse3d.conventions:CONTACT_GAP_M"
-scale = 1000
-format = "{:.0f} mm"
-
-[[claim]]
-key = "penetration_warn"
-text = "2 mm"
-python = "codeverse3d.spatial.connectivity:PENETRATION_WARN_M"
-scale = 1000
-format = "{:.0f} mm"
-
-[[claim]]
-key = "penetration_error"
-text = "10 mm"
-python = "codeverse3d.spatial.connectivity:PENETRATION_ERROR_M"
-scale = 1000
-format = "{:.0f} mm"
-
-[[claim]]
-key = "penetration_min_fraction"
-text = "2%"
-python = "codeverse3d.spatial.connectivity:PENETRATION_MIN_FRACTION"
-scale = 100
-format = "{:.0f}%"
-
-[[claim]]
-key = "n_samples"
-text = "600"
-python = "codeverse3d.spatial.connectivity:N_SAMPLES"
-scale = 1
-format = "{:.0f}"
-
-[[claim]]
-key = "tiny_island_fraction"
-text = "5%"
-python = "codeverse3d.spatial.connectivity:TINY_ISLAND_FRACTION"
-scale = 100
-format = "{:.0f}%"
-
-[[claim]]
-key = "min_part_size"
-text = "10 mm"
-python = "codeverse3d.spatial.connectivity:MIN_PART_SIZE_M"
-scale = 1000
-format = "{:.0f} mm"
-
-# references/contact-recipes.md quotes the same gate numbers in its finding table
-
-[[claim]]
-key = "penetration_error"
-file = "references/contact-recipes.md"
-text = "10 mm"
-python = "codeverse3d.spatial.connectivity:PENETRATION_ERROR_M"
-scale = 1000
-format = "{:.0f} mm"
-context = "WARN below"
-
-[[claim]]
-key = "penetration_min_fraction"
-file = "references/contact-recipes.md"
-text = "2%"
-python = "codeverse3d.spatial.connectivity:PENETRATION_MIN_FRACTION"
-scale = 100
-format = "{:.0f}%"
-context = "surface samples are inside"
-
-[[claim]]
-key = "tiny_island_fraction"
-file = "references/contact-recipes.md"
-text = "5%"
-python = "codeverse3d.spatial.connectivity:TINY_ISLAND_FRACTION"
-scale = 100
-format = "{:.0f}%"
-context = "tiny disconnected island"
diff --git a/harness/codeverse3d/skills/_claims/c3d-repeats-and-mirrors.toml b/harness/codeverse3d/skills/_claims/c3d-repeats-and-mirrors.toml
deleted file mode 100644
index 4dcfa242..00000000
--- a/harness/codeverse3d/skills/_claims/c3d-repeats-and-mirrors.toml
+++ /dev/null
@@ -1,36 +0,0 @@
-# Every number this bundle quotes, pinned to the constant it came from.
-# `key` is shared across the library: two skills that can attach to one session
-# must render the same text for the same key.
-
-[[claim]]
-key = "bbox_tolerance_m"
-text = "0.01"
-python = "codeverse3d.conventions:BBOX_TOLERANCE_M"
-
-[[claim]]
-key = "rel_tol"
-text = "0.10"
-python = "codeverse3d.spatial.contract:REL_TOL"
-format = "{:.2f}"
-
-[[claim]]
-key = "error_factor"
-text = "3.0"
-python = "codeverse3d.spatial.contract:ERROR_FACTOR"
-
-# references/instances.md works the tolerance through for one part
-
-[[claim]]
-key = "bbox_tolerance_m"
-file = "references/instances.md"
-text = "0.01"
-python = "codeverse3d.conventions:BBOX_TOLERANCE_M"
-context = "max(0.01, 0.10 * 0.04)"
-
-[[claim]]
-key = "rel_tol"
-file = "references/instances.md"
-text = "0.10"
-python = "codeverse3d.spatial.contract:REL_TOL"
-format = "{:.2f}"
-context = "max(0.01, 0.10 * 0.04)"
diff --git a/harness/codeverse3d/skills/_claims/c3d-scene-composition.toml b/harness/codeverse3d/skills/_claims/c3d-scene-composition.toml
deleted file mode 100644
index 883cfcef..00000000
--- a/harness/codeverse3d/skills/_claims/c3d-scene-composition.toml
+++ /dev/null
@@ -1,66 +0,0 @@
-# The camera-placement numbers quoted in the body, pinned to spatial/frame_metrics.py.
-
-[[claim]]
-key = "near_hit"
-text = "0.5 m"
-python = "codeverse3d.spatial.frame_metrics:NEAR_HIT_M"
-scale = 1
-format = "{:.1f} m"
-
-[[claim]]
-key = "eye_min_above_ground"
-text = "0.3 m"
-python = "codeverse3d.spatial.frame_metrics:EYE_MIN_ABOVE_GROUND_M"
-scale = 1
-format = "{:.1f} m"
-
-[[claim]]
-key = "eye_max_above_ground"
-text = "80 m"
-python = "codeverse3d.spatial.frame_metrics:EYE_MAX_ABOVE_GROUND_M"
-scale = 1
-format = "{:.0f} m"
-
-# references/measured-cameras.md quotes the host's backdrop classifier (runtime_js/lib/backdrop.mjs)
-
-[[claim]]
-key = "ground_named_span_m"
-file = "references/measured-cameras.md"
-text = "20 m"
-js = "runtime_js/lib/backdrop.mjs:GROUND_NAMED_SPAN_M"
-format = "{:.0f} m"
-context = "| ground |"
-
-[[claim]]
-key = "ground_named_flat"
-file = "references/measured-cameras.md"
-text = "6%"
-js = "runtime_js/lib/backdrop.mjs:GROUND_NAMED_FLAT"
-scale = 100
-format = "{:.0f}%"
-context = "| ground |"
-
-[[claim]]
-key = "sky_named_span_m"
-file = "references/measured-cameras.md"
-text = "50 m"
-js = "runtime_js/lib/backdrop.mjs:SKY_NAMED_SPAN_M"
-format = "{:.0f} m"
-context = "| sky |"
-
-[[claim]]
-key = "ground_span_m"
-file = "references/measured-cameras.md"
-text = "40 m"
-js = "runtime_js/lib/backdrop.mjs:GROUND_SPAN_M"
-format = "{:.0f} m"
-context = "flatter than"
-
-[[claim]]
-key = "ground_flat"
-file = "references/measured-cameras.md"
-text = "2%"
-js = "runtime_js/lib/backdrop.mjs:GROUND_FLAT"
-scale = 100
-format = "{:.0f}%"
-context = "flatter than"
diff --git a/harness/codeverse3d/skills/_claims/c3d-urdf-joints.toml b/harness/codeverse3d/skills/_claims/c3d-urdf-joints.toml
deleted file mode 100644
index baafd627..00000000
--- a/harness/codeverse3d/skills/_claims/c3d-urdf-joints.toml
+++ /dev/null
@@ -1,18 +0,0 @@
-# Pinned to the live constants. The sweep's `tol_m` (0.002) and `hinge_clearance_m`
-# (0.010) are keyword defaults of joints_sweep.sweep_collisions, not module constants,
-# so they cannot be pinned here; references/sweep-and-motion.md names their call site.
-
-[[claim]]
-key = "contact_gap_m"
-text = "0.002"
-python = "codeverse3d.conventions:CONTACT_GAP_M"
-
-[[claim]]
-key = "fk_tol_m"
-text = "0.001"
-python = "codeverse3d.languages.urdf:FK_TOL_M"
-
-[[claim]]
-key = "rest_penetration_max_m"
-text = "0.005"
-python = "codeverse3d.languages.urdf:REST_PENETRATION_MAX_M"
diff --git a/harness/docs/RUNBOOK.md b/harness/docs/RUNBOOK.md
deleted file mode 100644
index db703306..00000000
--- a/harness/docs/RUNBOOK.md
+++ /dev/null
@@ -1,241 +0,0 @@
-# Runbook — operating the harness
-
-Paths are relative to the harness root (`harness/` in the checkout) unless absolute. The CLI is
-`3dcodeverse`. Installing: `docs/INSTALL.md`.
-
-## 1. Install and check
-
-```bash
-pip install -e harness # once, from the checkout root; entry point 3dcodeverse
-cd harness/runtime_js && npm install # [email protected], puppeteer (chrome cached)
-3dcodeverse doctor # python deps, blender, node/three/puppeteer, chrome WebGL, keys, CLIs, git, mcp
-3dcodeverse doctor --live # + one tiny Gemini call ("pong", ~$0.00001)
-python -m pytest tests -q # offline suite; live tests are opt-in (blender/node/GL run when the binaries exist)
-python -m pytest tests -q -m "not live and not blender and not node" # pure-python subset
-python -m pytest tests -q -m live # OPT-IN: real API calls
-```
-
-Gemini keys, the other providers' keys, the settings files, every `C3D_*` override, how Blender
-is found and how the GPU path is chosen: `docs/INSTALL.md` §8, §6 and §7; each setting's default
-and description is its `Settings` field in `codeverse3d/config.py`.
-
-## 2. Running each track
-
-```bash
-# static object — Blender (default language, multi-file src/model.py + src/parts/*.py)
-3dcodeverse make "a mid-century wooden dining chair" --track static_object --language blender
-3dcodeverse make "a brass desk lamp" --track static_object --language cadquery
-3dcodeverse make "a classic park bench" --track static_object --language threejs --generator agy:gemini-4-argon
-# articulated object — bpy links + URDF
-3dcodeverse make "a bedside cabinet with one hinged door and one drawer" --track articulated_object --language urdf_blender
-# scene — multi-file three.js + GLSL (+ optional bpy GLB assets chosen by the planner), or bpy on Blender
-3dcodeverse make "a small japanese garden at dusk with a koi pond" --track scene --language scene_threejs --rounds 2 --max-minutes 60
-3dcodeverse make "a small japanese garden at dusk with a koi pond" --track scene --language scene_blender --rounds 2 --max-minutes 90
-# graphics — animated shader / raw OpenGL program
-3dcodeverse make "neon cyberpunk rain on a window with bokeh city lights" --track graphics --language glsl_shader
-3dcodeverse make "instanced pastel cubes with bloom" --track graphics --language opengl_python
-```
-
-Useful flags (`3dcodeverse make --help`):
-
-* `--generator`, `--planner`, `--judge` — backend ids (§3).
-* `--image <png>` (repeatable) — reference images → `ReferenceJudge` + silhouette gate + IoU
- refine tasks.
-* `--rounds N` — refine rounds after the baseline. A run does exactly N, each built on the one
- before it, unless the clock or a hard failure stops it; there is no pass / plateau stop.
-* `--no-pick` — package nothing (no `deliverable/`, no `selection.json`; `3dcodeverse pick` later).
-* `--max-minutes`, `--dim height=0.45`, `--must`, `--must-not`, `--style`, `--tag`, `--slug`, `--runs-dir`, `--force`,
- `--no-run` (workspace + spec.json only).
-
-Expected cost with the default `agy:gemini-4-argon` generator (median `total_usage` over the recorded
-Oct-Nov runs, mixed round counts): static_object ≈ $2.2, articulated ≈ $4.2, graphics ≈ $4.4, scene ≈
-$10.4; give scenes `--max-minutes 60` or more. Actual spend: `3dcodeverse cost <slug>`.
-
-## 3. Backends
-
-| id | what runs | notes |
-|---|---|---|
-| `agy:gemini-4-argon` (default) | `agy --dangerously-skip-permissions --print-timeout … --output-format json --add-dir ws --log-file trajectories/<label>_rNN/agy.log --model gemini-api://gemini-4-argon --effort high`, prompt on stdin | Gemini-API mode only (Gemini keys required, Gemini models only): one pool key per session, every spatial tool over MCP, priced at Gemini list price. Truncates a prompt past ~175 kB itself |
-| `single-shot:gemini:gemini-3.8-flash` | one structured-output call → multi-file envelope, no tools | fastest/cheapest; baseline for "raw model" deltas |
-| `claude-code:<model>` | `claude -p --dangerously-skip-permissions --setting-sources project --settings '{"skillOverrides":…}' --mcp-config trajectories/<label>_rNN/mcp.json --strict-mcp-config …`, prompt on stdin, `CLAUDE_CODE_DISABLE_BUNDLED_SKILLS=1` | local subscription; no user setting source, so `~/.claude/settings.json` does not reach a session |
-| `codex:<model>[@<effort>]` | `codex exec --json -C ws --sandbox workspace-write -c model_reasoning_effort=high -c skills.bundled.enabled=false -c mcp_servers.3dcode.… -`, prompt on stdin | local subscription; MCP tools need `default_tools_approval_mode="approve"` (the harness passes it); reasoning effort is always stated (`Settings.agents.codex_reasoning_effort`, default `high`; `codex:gpt-5.6-sol@medium` per id) |
-| `gemini:* / anthropic:* / openai:*` | ChatModel for planner / judge / captioner / single-shot | Anthropic/OpenAI are mock-tested only |
-
-How `agents/backends.py` runs agy (do not undo):
-
-* API mode only: no subscription sign-in, no non-Gemini model; without keys `available()` is
- false and the session fails at once. `agy` with no model = `gemini-4-argon`. One key per
- session from the shared pool (`KeyPool.lease_session_key`: a machine-wide flock lease, so
- parallel runs put one session per key until every key is in one) as `GEMINI_API_KEY`, its
- outcome reported back (429 → cooldown, 401/403 → dead); other credential env stripped.
-* Each session gets a fresh HOME under `<cache_dir>/agy_homes/…` holding
- `.gemini/antigravity-cli/settings.json` = `{"modelProvider": "gemini"}` (without it agy asks
- for a login) and `.gemini/config/mcp_config.json` with the `3dcode` server (agy has no
- per-workspace MCP). The HOME is deleted after the session; the tool trace is read from its
- conversation db first.
-* `--model gemini-api://<bare id> --effort <low|medium|high>`: the id goes to the API verbatim;
- effort from an agy-style `-low/-medium/-high` suffix on the generator id, else `high`. An
- effort A/B is the id suffix: `--generator agy:gemini-4-argon-medium`.
-* Cost: agy's `output_tokens` already include `thinking_tokens`, so output = output − thinking,
- thoughts = thinking (billed once).
-* `--print-timeout` = `timeout_s` + the watchdog's grace + 1 min, so the watchdog decides; agy's
- own clock stopping a turn (`finished_reason: print_timeout`) is booked `exit_reason=timeout`.
-* No retry loop in the backend: agy retries its own model calls; a transient death goes to the
- round loop's ONE transport retry, which takes a fresh key.
-* Workspace files: `AGENTS.md` + `CLAUDE.md` (agy reads both) and `.antigravityignore`, which
- hides only noise (renders/judge output, `trajectories/`); build/census/measurement JSON stay
- readable.
-* MCP server argv is `[sys.executable, -m, codeverse3d.spatial.mcp_server, --workspace, ws]`;
- server name `3dcode` → tools appear as `mcp__3dcode__<name>` (claude). `3dcodeverse mcp
- --workspace runs/<slug>` execs the same server; `python -m codeverse3d.spatial.mcp_server
- --workspace ws --list` prints the tools.
-
-## 4. Where outputs land
-
-Everything lands in `runs/<slug>/` — code in `src/` (git, one commit per round), each round's
-build in `artifacts/rNN/`, and after a pick `deliverable/` + `selection.json`. `3dcodeverse status <slug>` prints the stop reason, baseline → picked score,
-the rounds table, cost and the last events.
-
-### Looking at results locally
-
-```bash
-3dcodeverse gallery serve # ./runs + every eval/bench/out/*/runs → http://127.0.0.1:8765/
-3dcodeverse gallery serve ../eval/bench/out/static_v2_flash/runs --port 9000 --reload --no-open
-3dcodeverse gallery build --out gallery.html [--embed] # one self-contained file (--embed inlines the sheets)
-```
-
-`serve` indexes the run roots and serves the run **directories** too, so every link works:
-contact sheet, full-size renders, `record.json`, `plan.json`/`spec.json`, the `src/` tree,
-`object.glb` (orbit viewer on the vendored three.js — no network), articulation sheets,
-`preview.gif`, frames. The page has a live summary strip (recomputed per filter), filters
-(track / language / tier / backend / verdict / battery + text search) and sort that never
-reload, a card ⇄ table toggle, light/dark, and a detail page per run (`/run/<battery>/<slug>`)
-with every round, the picked round's verdict, the measurement table, the full render set, the
-cost breakdown and the code. Filters live in the query string, so a view can be curled or
-bookmarked. `--reload` re-scans on every page load (a run with no `record.json` yet shows as
-*pending*, a half-written one as *broken*). The server binds `127.0.0.1` unless you pass
-`--host` and never serves a path outside the declared roots.
-
-## 5. Resume, re-judge, export
-
-New runs and standalone calibration default to `gemini:gemini-4-argon` with thinking
-`medium`. Existing runs retain the judge model in `record.spec.backends.judge`: `resume` and
-`judge` use that model by default. `resume` has no `--judge`
-override. Thinking still comes from the current `judge.thinking` setting (default `medium`),
-not the recorded model; `judge --thinking` overrides it for that call. `pick`
-uses the recorded scores without calling a judge. To re-judge an old run with Argon, use
-`3dcodeverse judge <slug> --model gemini:gemini-4-argon --thinking medium`.
-
-```bash
-3dcodeverse resume <slug> [--no-pick]
- # continues from run_state + stages/*.json and from the LAST round. A
- # max_rounds run resumes only with a raised --rounds, a budget run with any
- # raised cap; an agent_quota, judge_unavailable or failed run resumes as is.
- # The budget SNAPSHOT is restored: active minutes already spent still count,
- # so a raised --max-minutes grants only the difference. Once rounds exist a
- # recorded stage never runs again; `resume --force` regenerates the stages:
- # it archives the round journal + record.json to rounds/pre_force/ and the
- # run starts again at round 0
-3dcodeverse pick <slug> [--round N]
- # hand over a round: deliverable/ + selection.json. score = rounds
- # without a project:* / contract_fixed ERROR first, then highest
- # effective score, ties → fewer gate errors → the earlier round; --round N = that
- # round. `make`/`resume` run `pick` for you
-3dcodeverse judge <slug> [--round N] [--rubric static_object] [--model gemini:gemini-4-argon] [--n 3] [--thinking off|low|medium|high]
- # re-judges a round's recorded renders → artifacts/judge/rNN_cli.json
-3dcodeverse tools list [--cards] · 3dcodeverse tools measure --workspace runs/<slug> · 3dcodeverse tools gl_frames --workspace … --json '{"times":[0,1,2.5]}'
- # panel says ok | FAIL (the verdict) | error (the tool could not run); exit 1 on either
-3dcodeverse flywheel export runs/ dataset/ [--min-score 0.7] [--only-passed] [--pack] [--include-unbuilt]
- [--captions-dir caps/] [--drop-duplicates]
-3dcodeverse flywheel pairs runs/ pairs.jsonl [--min-delta 0.05]
-3dcodeverse flywheel refine runs/ refine.jsonl [--with-code]
- # one row per round the harness asked to change (addons/dataset/refine.RefineTransition);
- # training formats live in finetune/llamafactory/, not here
-3dcodeverse flywheel caption <slug> [--model …] [--out caps/] # --out = side-car mode, run untouched
-python -m codeverse3d.addons.calibration runs/<slug> [runs/<slug2> …] --model gemini:gemini-4-argon --n 3 --out out/
- # re-judges recorded rounds; writes calibration_<model>.md/.json (never touches runs/)
-```
-
-A run that crashed outside its own handling leaves `record.json` with `status=failed`; `3dcodeverse
-resume` retries from the last completed stage/round (cached plan/skeleton/scene stages are
-reused — this also recovers from a provider outage). A refine session that dies on the
-VENDOR's usage limit stops the run at `agent_quota`: every round so far is kept and picked from,
-and `3dcodeverse resume` continues it once the limit resets. Ctrl-C and `kill <pid>` (SIGTERM) are
-safe: `make` / `resume` kill every agent / build process group the run has open, record the
-stop, and end within `proc.STOP_GRACE_S` (30 s). Kill by PID, never by pattern: a
-`pkill -f "3dcodeverse make"` takes every other run on the box with it.
-
-Two things to keep apart on one machine: run the offline test suite and a battery at different
-times (both hold Blender, a browser pool and most cores; a red browser test under load is not
-evidence until it reproduces on a quiet box), and give two concurrent batteries separate
-`C3D_CACHE_DIR`s and half the `--parallel` each. A worktree needs its own
-`runtime_js/node_modules` (copy, do not symlink: `serve.cjs` refuses a real path outside its
-root) and `PYTHONPATH=<worktree>/harness` before `3dcodeverse make`, because the console script
-imports the editable install, not the cwd.
-
-## 6. Benchmarks
-
-```bash
-cd ../eval # the battery launcher is the evaluation's
-python -m bench.run_bench bench/prompts/static_objects_v1.yaml --generator single-shot:gemini:gemini-3.8-flash \
- --judge gemini:gemini-4-argon --rounds 2 --parallel 4 [--tier easy] [--id furn_easy_stool] [--limit 6] [--out bench/out/x]
-python -m bench.report bench/out/static_objects_v1 # report.md + self-contained report.html (gallery)
-cd ../harness
-python ../eval/bench/compare_backends.py --prompts ../eval/bench/prompts/compare_v1.yaml \
- --arms harness:agy:gemini-4-argon,oneshot:claude-code --judge gemini:gemini-4-argon --out ../eval/bench/out/compare_v1
-```
-
-Results stream to `results.jsonl` (resumable). The batteries, the protocol and judge
-calibration: `eval/docs/EVAL.md`. `compare_backends` preflights every model it needs and
-refuses to start when one is not serving (`--wait-for-provider 60` parks until it recovers,
-`--no-preflight` skips the check); cells a provider outage kills are recorded `infra_failed`,
-excluded from every rate, and re-run with `--redo-status infra_failed`. `run_bench
---redo-status` starts the redo fresh (the old tree is archived as `runs/<id>.attempt<N>`). Never
-start a second `run_bench` on an out dir with a live driver: both would run the same prompt.
-Under a provider storm, launch with `--max-minutes 120 --wait-for-provider 60` and redo the
-storm's rows (`--redo-status error,infra_failed,budget`) rather than reading them.
-
-## 7. Extending (plugin paths)
-
-* **New language**: enum in `contracts/common.py::Language` (+ `TRACK_LANGUAGES`, `ENTRY_FILE`,
- `LANGUAGE_LABEL`), frame in `conventions.LANGUAGE_FRAME`; `languages/<lang>/__init__.py`
- implementing `LanguageRuntime` — its file layout included: subclass
- `languages/base.RuntimeLayout` (entry + `extra_files`, and `part_file` for a one-file-per-part
- language) or answer `expected_files(plan)` / `files_for(plan, target)` yourself; the tracks
- never restate it. A python-executed build wrapper goes beside the others in
- `languages/wrappers/` (import `_wrapper_common`; run it with `_common.run_wrapper_build`, or
- read its report with `_common.compose_build_result`); branch in `languages/base.py::get_runtime`;
- `prompts/<lang>/{system,contract}.md` (found by `prompts/catalog.language_prompt`; no cookbook
- — the prompts state requirements, never templates: no code block over ~12 lines, numbers only
- where a gate or the judge measures them, and contract.md carries ONE executable interface
- example that `tests/prompts/test_snippets_run.py` runs through the real runtime).
-* **Changing what a model is shown** (a prompt file or template variable, a contract, a skill, a
- rubric's text, a tool description, anything a session or a judge reads):
- `tests/prompts/test_manifest.py` pins every payload of offline scenarios across the four
- tracks and every language — agent sessions, chat calls, each judge's input, the materialised
- workspace files, the routed skills, the MCP tool lists — and every stage's cache key. A
- refactor leaves it byte-identical; a change a model is meant to see re-blesses it in the same
- commit, saying why: `python -m tests.prompts.manifest --bless` (`--dump DIR` writes every
- payload, to `diff -r` two trees). A new prompt file must render through the loader
- (`tests/prompts/test_files.py`); a new language or track adds its scenario to `SCENARIOS`.
- Every new template variable is guarded `{% if name is defined and name %}` for at least one
- wave: templates are read at render time, so a live worker on old python renders the new file.
-* **New spatial tool**: pydantic args + `@tool("name", Args, "…", tracks=(…), languages=(…),
- cost_hint=…)` in `spatial/tools.py`; available to tracks, MCP and prompt cards at once. Update
- `tests/spatial_tools` EXPECTED_TOOLS.
-* **New rubric**: `judges/rubrics/<name>.yaml` with `pass_threshold`, `criteria[{id, weight,
- floor, title, description, anchors, kind}]`, `caps[{id, cap, when:
- gate|acceptance|console|missing_views, gate, severity, kinds}]`, `defects[{id, text, penalty,
- cap}]`. Tracks pick rubrics in `tracks/*.py`; `3dcodeverse judge` maps track → rubric in
- `cli/_judge.py::rubric_for`.
-* **New backend**: ChatModel → `models/<provider>.py` + registry + prices; CodingAgent →
- `agents/backends.py` using `cli_common` + registry + `materialize.py`.
-* **New track**: subclass `tracks/lifecycle.py::BaseTrack` (its pre-round graph `stages`, a
- tuple of `StageNode`s — the default is skeleton → materialize, and a new track adds its line to
- `docs/ARCHITECTURE.md` §7.1; hooks: `make_pipeline`, `baseline_tasks`, `refine_tasks`;
- `system_prompt` defaults to `language_system_prompt(ctx.language, tools=not ctx.single_shot)`
- and `refine_file_for_target` to the runtime's `files_for`), a `RoundPipeline`, plan model in
- `contracts/plan.py`, `.j2` prompts, the planner's per-track rows in `tracks/planner.py`,
- branch in `tracks/__init__.py`. `tracks/graphics.py` is the template for a track with no GLB.
-* **New bench battery**: `eval/bench/prompts/<name>.yaml` with `name, track, language,
- prompts[{id, tier, category, prompt, must_have, dimensions_m}]`.
diff --git a/harness/docs/SKILLS.md b/harness/docs/SKILLS.md
deleted file mode 100644
index 2e8d0782..00000000
--- a/harness/docs/SKILLS.md
+++ /dev/null
@@ -1,159 +0,0 @@
-# Skills
-
-A **skill** is a task-scoped rule sheet the harness attaches to a coding session automatically —
-from the track, the language, the round kind, the plan and **the previous round's gate
-findings**. Nobody writes `skills: [...]`.
-
-It is not a recipe library. No language ships a cookbook: interface and language facts live in
-`contract.md` / `system.md` (one executable example each), and a skill is a sheet of measured
-requirements with a few SHORT optional practices — real API names, numbers only where a gate or
-the judge measures them, no code block over ~12 lines.
-
-`SKILL.md` is an open standard ([agentskills.io](https://agentskills.io/specification)), so the
-format is not ours to bend — and it is why the bundles reach a session only through its vendor's
-native skill loader: claude-code, codex and agy discover them themselves.
-
-`C3D_SKILLS` is **on by default**; `C3D_SKILLS=0` is the off switch and an A/B's no-skills arm.
-Knobs: `C3D_SKILLS_ONLY` (restrict the library before routing), `C3D_SKILLS_DIR` (another library).
-
-## 1. How the library is managed
-
-**One library, one policy, thin adapters.** The bundles under `codeverse3d/skills/<name>/` are
-plain `SKILL.md` directories that know nothing about any backend — `cp -r` one into
-`~/.claude/skills/` and it works without the harness. `registry.py` picks the set from typed
-inputs. The one thing that differs between coding agents is the discovery root, in one file,
-`skills/prompting.py` (`_BACKEND_ROOTS`):
-
-| backend | discovery root | how the CLI shows and activates a bundle |
-|---|---|---|
-| `claude-code` | `.claude/skills` | a name + description list (the stream-json `init` event's `skills`); `Skill {"skill": name}`, then `Read` of `references/` |
-| `codex` | `.agents/skills` | a `## Skills` section of the prompt; a shell `sed`/`cat` of `SKILL.md` |
-| `agy` | `.agents/skills` | a skills section of its system prompt; `read_file` of `SKILL.md` |
-
-The harness writes the bundles under the discovery root and hands the agent no second index
-and no tool; the body file gets one MANDATORY sentence.
-
-**A session sees nothing but the routed bundles.** Every CLI lists skills of its own; each is
-switched off with the CLI's documented knob (`agents/backends.py`): claude-code with
-`--setting-sources project` + `CLAUDE_CODE_DISABLE_BUNDLED_SKILLS=1` + `--settings
-{"skillOverrides": …}` (so the user's `~/.claude/settings.json` does not reach a session
-either), codex with `-c skills.bundled.enabled=false` (a user root such as `~/.codex/skills` has
-no switch), agy not at all (its 5 built-ins are always listed).
-
-## 2. The library
-
-Twenty bundles; the caps are 350 body lines and 2,500 tokens. `evidence` is provenance — where
-the prose came from — not a measured effect.
-
-| skill | track | language | evidence | routes |
-|---|---|---|---|---|
-| `c3d-part-contact` | object tracks | any | measured | R1, R2 |
-| `c3d-bbox-contract` | object tracks | any | measured | R3, R4 |
-| `c3d-repeats-and-mirrors` | object tracks | any | measured | R6, R7 |
-| `c3d-blender-forms` | any | blender, urdf_blender | measured | R8, R9 |
-| `c3d-urdf-joints` | articulated_object | urdf_blender | measured | R12, R13 |
-| `c3d-scene-composition` | scene | scene_threejs | mixed | R14, R15, R34 |
-| `c3d-scene-lighting` | scene | scene_threejs | mixed | R16, R17 |
-| `c3d-scene-motion` | scene | scene_threejs | mixed | R18, R19 |
-| `c3d-threejs-shader-traps` | scene (+ static on a preflight finding) | threejs both | mixed | R20, R21 |
-| `c3d-glsl-craft` | graphics | glsl_shader | mixed | R22, R24-glsl |
-| `c3d-opengl-pipeline` | graphics | opengl_python | mixed | R23, R24-opengl |
-| `c3d-cadquery-forms` | any | cadquery | inherited-unverified | R10 |
-| `c3d-threejs-forms` | static_object | threejs | inherited-unverified | R11 |
-| `c3d-scene-atmosphere` | scene | scene_threejs | inherited-unverified | R25 |
-| `c3d-scene-water` | scene | scene_threejs | inherited-unverified | R26 |
-| `c3d-scene-night` | scene | scene_threejs | inherited-unverified | R27 |
-| `c3d-scene-materials` | scene | scene_threejs | inherited-unverified | R28 |
-| `c3d-bpy-scene-placement` | scene | scene_blender | mixed | R29, R30 |
-| `c3d-bpy-scene-lighting` | scene | scene_blender | mixed | R31, R32 |
-| `c3d-bpy-scene-materials` | scene | scene_blender | mixed | R33 |
-
-All twenty route by default, capped at 5 a session. To measure a subset, `C3D_SKILLS_ONLY`
-restricts the library before routing, against a `C3D_SKILLS=0` arm. Route id **R5** is retired
-and never reused: a run record refers to a routing decision by id
-(`tests/skills/test_registry.py::RETIRED_RULES`).
-
-Every bundle also declares the ONE deterministic quantity it claims to move (`target_metric` /
-`target_direction` / `target_baseline` in its frontmatter and `addons/skill_targets.py`;
-`python eval/bench/skill_targets.py eval/bench/out` prints them, per battery or paired across an
-A/B).
-
-## 3. Routing
-
-`codeverse3d/skills/registry.py` holds the typed table (ids R1–R34) and `finding_kind()`, which
-names a finding `<gate>/<data.kind>` — the kind the gate wrote, never its message; `select()`
-turns `(track, language, kind, plan signals, findings)` into a ranked, capped, reasoned set.
-Four laws, all tested:
-
-1. **Gate findings outrank everything.** A row answering a finding sits at priority ≥ 90,
- standing rows below 90: a repair round spends its budget on what broke — the input no CLI's
- own loader can see, and the reason routing is in code.
-2. **The cap is 5** (`select(max_skills=)`); it cuts the low-priority tail, never the gate-fired head.
-3. **Quiet kinds attach nothing on their own** — `asset`, `asset_fix`, `reference` are short,
- narrow sessions. A gate-fired row still reaches them.
-4. **Unknown input degrades to `[]`, never an exception** — a planner failure must not also take
- out the round's skills.
-
-Every gate writes a `data.kind` — lints from `contracts.artifacts.LintKind`, connectivity
-`stray_islands` / `no_ground`, motion_direction `wrong_direction` / `skipped`, scene_probe `draw_calls` — so R9 answers `lint/part_not_imported`, not every
-lint line; INFO findings have no kind. A bundle is added with its rows in the same commit — an
-unroutable bundle pays the index and never helps, and a test fails on both halves.
-
-## 4. Telemetry
-
-Per round, `RoundRecord.skills` is a `SkillsUsage`: listed, surfaced, read deep, `index_tokens`,
-`body_tokens_read`, `evidence` and the control's state. Each attached body's hash goes into
-`record.prompt_hashes` as `skill:<name>`; per session, `telemetry/skills.jsonl` gets one line.
-
-Ground truth is the CLI's own record: each backend writes what its CLI says it called into
-`trajectories/<label>/transcript.jsonl` (claude-code's stream-json, codex's `exec --json`
-events, agy's conversation database read before its HOME is deleted), and
-`skills/telemetry.probe_reads` credits a bundle as *surfaced* when a call activated it or named
-its `SKILL.md`, *deep* when a call named a file under its `references/`. The atime probe is the
-fallback for a session that left no trace, guarded by a never-routed **control** bundle:
-when the control comes back opened (git reads untracked files too), the session's deep-read rate
-is `None`, not a number.
-
-```
-3dcodeverse skills report eval/bench/out/<battery> # deep-read rate per skill per backend (--json)
-3dcodeverse skills validate [--strict] # bundles, claims
-```
-
-Target: ≥ 60 % deep-read, counted only over sessions the control says were measurable. A skill
-under 20 % over 20 such sessions is merged or deleted — a library that only grows ends as bloat.
-
-## 5. How to add a skill
-
-1. `codeverse3d/skills/<name>/SKILL.md` — `name` equals the directory name (lowercase `a-z0-9`,
- single hyphens); `description` (≤ 1024 chars) says WHAT and WHEN — the only text a CLI
- matches on; no `<` or `>` in the frontmatter; spec keys only at the top level, everything of
- ours under `metadata`, where `evidence` and `verified` (a *quoted* ISO date) are required.
-2. `codeverse3d/skills/<name>/references/*.md` — required, one level: without it the bundle can
- never score on the read metric.
-3. `codeverse3d/skills/_claims/<name>.toml` — one row per number the body quotes from live code,
- so moving the constant breaks the test that ships the sentence:
-
- ```toml
- [[claim]]
- key = "penetration_error_m"
- text = "10 mm" # must appear in the body
- python = "codeverse3d.spatial.connectivity:PENETRATION_ERROR_M"
- scale = 1000
- format = "{:.0f} mm"
- ```
- A row may also pin a sentence in a bundle file (`file = "references/x.md"`), a JS constant
- (`js = "runtime_js/lib/backdrop.mjs:GROUND_SPAN_M"`), a sequence (`sep`, `last_sep`) and the
- line it must stand on (`context = "WARN below"`). The prompt corpus pins its numbers the
- same way in `codeverse3d/prompts/_claims.toml` (`check_prompt_claims`, run by `3dcodeverse skills
- validate`).
-4. Its rows in `ROUTES` (`codeverse3d/skills/registry.py`), in the same commit.
-5. A `Target` row in `codeverse3d/addons/skill_targets.py` and the matching `target_*`
- frontmatter keys — the ONE deterministic quantity the bundle claims to move, its direction,
- and its baseline; if no deterministic instrument can see the claim, say so with
- `measurable=False` and a `caveat`.
-6. `3dcodeverse skills validate --strict` and `pytest tests/skills`.
-
-Body rules: ≤ 350 lines and ≤ 2,500 tokens; no code fence over 12 lines; never restate a frame,
-unit or naming rule (`conventions.py` owns those); every corpus percentage carries its battery,
-its n and its date. `tests/skills/` enforces all of it: the spec's field rules, the body budget,
-every `_claims` number against its live constant, the four routing laws, and the read probe.
diff --git a/harness/codeverse3d/skills/c3d-bbox-contract/SKILL.md b/harness/skills/c3d-bbox-contract/SKILL.md
similarity index 96%
rename from harness/codeverse3d/skills/c3d-bbox-contract/SKILL.md
rename to harness/skills/c3d-bbox-contract/SKILL.md
index 91350318..9bbe39a2 100644
--- a/harness/codeverse3d/skills/c3d-bbox-contract/SKILL.md
+++ b/harness/skills/c3d-bbox-contract/SKILL.md
@@ -73,8 +73,8 @@ ERROR, not a rounding difference.
## Prove it, do not eyeball it
-`build` -> `measure` -> `check_contract`. `measure` gives you per-part size in cm and the
-ground gap; `check_contract` gives you, per failing part, the built size against the planned
+`3dcode build` -> `3dcode measure` -> `3dcode check-contract`. `3dcode measure` gives you per-part size in cm and the
+ground gap; `3dcode check-contract` gives you, per failing part, the built size against the planned
size, the per-axis delta, the planned centre and the frame those numbers are written in.
Fix the largest ratio first — the message states it ("worst 3.4x tolerance"), so you always
know which finding is the ERROR.
diff --git a/harness/codeverse3d/skills/c3d-bbox-contract/references/reading-a-fix-hint.md b/harness/skills/c3d-bbox-contract/references/reading-a-fix-hint.md
similarity index 93%
rename from harness/codeverse3d/skills/c3d-bbox-contract/references/reading-a-fix-hint.md
rename to harness/skills/c3d-bbox-contract/references/reading-a-fix-hint.md
index bd7e1ddd..4f091c5a 100644
--- a/harness/codeverse3d/skills/c3d-bbox-contract/references/reading-a-fix-hint.md
+++ b/harness/skills/c3d-bbox-contract/references/reading-a-fix-hint.md
@@ -68,8 +68,8 @@ other and the contact graph does not change.
## Order of work on a repair round
-1. `check_contract`, and sort the findings by the "worst Nx tolerance" number in the message.
+1. `3dcode check-contract`, and sort the findings by the "worst Nx tolerance" number in the message.
2. Fix ERRORs (ratio above 3x) first; they are the only ones that fail the gate.
3. Where a constant drives the dimension, changing the constant fixes every place that uses it.
-4. `build` -> `check_contract` again. A fix that moves a second part into failure means the
+4. `3dcode build` -> `3dcode check-contract` again. A fix that moves a second part into failure means the
two shared a derived number and one of them was re-typed.
diff --git a/harness/codeverse3d/skills/c3d-blender-forms/SKILL.md b/harness/skills/c3d-blender-forms/SKILL.md
similarity index 98%
rename from harness/codeverse3d/skills/c3d-blender-forms/SKILL.md
rename to harness/skills/c3d-blender-forms/SKILL.md
index 876c9f96..ecbafa1f 100644
--- a/harness/codeverse3d/skills/c3d-blender-forms/SKILL.md
+++ b/harness/skills/c3d-blender-forms/SKILL.md
@@ -120,7 +120,7 @@ Two more from the same lint that cost a whole run when they fire: indexing
## Before you finish
-`build` -> `render_sheet` -> `check_connectivity` -> `check_contract`, and read the
+`3dcode build` -> `3dcode render-sheet` -> `3dcode check-connectivity` -> `3dcode check-contract`, and read the
`lint:blender` findings in the build report first: they are free, static, and every one of
the five above was reported *before* the model was wrong.
diff --git a/harness/codeverse3d/skills/c3d-blender-forms/references/form-recipes.md b/harness/skills/c3d-blender-forms/references/form-recipes.md
similarity index 97%
rename from harness/codeverse3d/skills/c3d-blender-forms/references/form-recipes.md
rename to harness/skills/c3d-blender-forms/references/form-recipes.md
index a2faa7d0..57fe88df 100644
--- a/harness/codeverse3d/skills/c3d-blender-forms/references/form-recipes.md
+++ b/harness/skills/c3d-blender-forms/references/form-recipes.md
@@ -62,4 +62,4 @@ link's mesh), and `lint:urdf` checks that each link name appears verbatim in the
The skeleton's `model.py` ends with an optional `_selfcheck()`: it asserts that meshes exist and
that no name is auto-suffixed, prints the lowest point, and fails the build only past the
contract gate's ERROR line for the ground (3 × `GROUND_TOL_M`). Keep it, change it or delete
-it; `check_contract` and `check_connectivity` are the real census.
+it; `3dcode check-contract` and `3dcode check-connectivity` are the real census.
diff --git a/harness/codeverse3d/skills/c3d-bpy-scene-lighting/SKILL.md b/harness/skills/c3d-bpy-scene-lighting/SKILL.md
similarity index 99%
rename from harness/codeverse3d/skills/c3d-bpy-scene-lighting/SKILL.md
rename to harness/skills/c3d-bpy-scene-lighting/SKILL.md
index 8b5bc96b..0e976516 100644
--- a/harness/codeverse3d/skills/c3d-bpy-scene-lighting/SKILL.md
+++ b/harness/skills/c3d-bpy-scene-lighting/SKILL.md
@@ -134,7 +134,7 @@ rotation computed from the direction) — and a look at its camera's frame.
## Prove it
-`scene_views(cameras="all", times=[0.0])`, then read `camera_checks` per camera against the
+`3dcode scene-views --cameras all --times 0`, then read `camera_checks` per camera against the
first table: the same five numbers the gate uses. A Blender view costs seconds, so render once
per change, all cameras, and fix whatever the finding names on EVERY camera, rig views included.
diff --git a/harness/codeverse3d/skills/c3d-bpy-scene-lighting/references/exposure-bands.md b/harness/skills/c3d-bpy-scene-lighting/references/exposure-bands.md
similarity index 98%
rename from harness/codeverse3d/skills/c3d-bpy-scene-lighting/references/exposure-bands.md
rename to harness/skills/c3d-bpy-scene-lighting/references/exposure-bands.md
index 39954cbb..db39245a 100644
--- a/harness/codeverse3d/skills/c3d-bpy-scene-lighting/references/exposure-bands.md
+++ b/harness/skills/c3d-bpy-scene-lighting/references/exposure-bands.md
@@ -128,5 +128,5 @@ def build_env(ctx): # a lit room
## 6. The check
-`scene_views(cameras="all", times=[0.0])` writes `camera_checks` with the five statistics per
+`3dcode scene-views --cameras all --times 0` writes `camera_checks` with the five statistics per
camera, authored and rig. Read them; then change one dial at a time.
diff --git a/harness/codeverse3d/skills/c3d-bpy-scene-materials/SKILL.md b/harness/skills/c3d-bpy-scene-materials/SKILL.md
similarity index 97%
rename from harness/codeverse3d/skills/c3d-bpy-scene-materials/SKILL.md
rename to harness/skills/c3d-bpy-scene-materials/SKILL.md
index aa638e43..aeba4e52 100644
--- a/harness/codeverse3d/skills/c3d-bpy-scene-materials/SKILL.md
+++ b/harness/skills/c3d-bpy-scene-materials/SKILL.md
@@ -115,10 +115,10 @@ black world is a black shape.
## Verify before you finish
-`scene_views(cameras="authored", times=[0.0])` and zoom one frame: a wall or a ground that is one
+`3dcode scene-views --cameras authored --times 0` and zoom one frame: a wall or a ground that is one
flat value where the brief's would not be needs variation; two copies you cannot tell apart
need variants; a grey default is a mesh that never got a material (the build output warns about
-it by name). Then `scene_probe` for triangle counts — materials are free, geometry is not.
+it by name). Then `3dcode scene-probe` for triangle counts — materials are free, geometry is not.
Node snippets — noise to bump, the slope mix, the Object Info tint, per-face slots, the
volume-only material, the socket rename table — in `references/principled-recipes.md`.
diff --git a/harness/codeverse3d/skills/c3d-bpy-scene-materials/references/principled-recipes.md b/harness/skills/c3d-bpy-scene-materials/references/principled-recipes.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-bpy-scene-materials/references/principled-recipes.md
rename to harness/skills/c3d-bpy-scene-materials/references/principled-recipes.md
diff --git a/harness/codeverse3d/skills/c3d-bpy-scene-placement/SKILL.md b/harness/skills/c3d-bpy-scene-placement/SKILL.md
similarity index 96%
rename from harness/codeverse3d/skills/c3d-bpy-scene-placement/SKILL.md
rename to harness/skills/c3d-bpy-scene-placement/SKILL.md
index b347f0ff..a04c49e4 100644
--- a/harness/codeverse3d/skills/c3d-bpy-scene-placement/SKILL.md
+++ b/harness/skills/c3d-bpy-scene-placement/SKILL.md
@@ -16,7 +16,7 @@ metadata:
# Everything sits on something — placement the gate can measure
-**Read this if** you are writing a zone, the env, or fixing a `check_placement` finding. The
+**Read this if** you are writing a zone, the env, or fixing a `3dcode check-placement` finding. The
placement gate is deterministic (a hand's breadth of hover is an ERROR), every ERROR is a score
ceiling in the scene rubric, and the judge is handed a close-up crop of each measured finding.
@@ -55,7 +55,7 @@ boxes overlapping more than `overlap_warn` of the smaller one, confirmed by `ins
vertices inside the other; ERROR past `overlap_error`), `cantilevered` (at most one of four or
more columns rests while the worst hangs: WARN) and `free_exempt` (the share of free-tagged
assets past `free_exempt_warn`, then `free_exempt_error`). Every threshold is a
-`Settings.placement` field and the summary line of `check_placement` prints the values it used.
+`Settings.placement` field and the summary line of `3dcode check-placement` prints the values it used.
Interiors get the tighter tolerance; the plan's setting words decide that (`is_interior`).
Three exemptions are by NAME (`placement_words.json`, one file read by the gate and by the
@@ -79,7 +79,7 @@ tolerance its kind has; the judge grades the crop whatever the name.
Empty's matrix — keep the lowest ones, and move the root by the smallest
`ctx.height_at(x, y) - z` over them. A thing ON a thing — a cup on a table, a lantern on a post
— goes onto the support's top under its footprint, because the gate measures the gap to the
- SUPPORT. Any placement that passes `check_placement` is acceptable.
+ SUPPORT. Any placement that passes `3dcode check-placement` is acceptable.
3. **Sinking is tolerated for names that sink** — a rock, a post, a tree with modelled roots; the
words file carries the list. A crate sunk "so it cannot float" is a `sunken` finding and a
crop of a crate in the ground.
@@ -126,7 +126,7 @@ the overlap volume over the smaller box's volume past the interpenetration band
Drop every scatter point that falls inside the footprint (plus a margin) of what you placed by
hand: 9 of the 13 Blender zones with an interpenetration ERROR in the argon loop's
iteration 0 (2026-10-15) had scattered a small prop into a cart, a rack, a shrub or a mound. Then
-`build`, then `check_placement`, which prints the findings with their fix hints and the table:
+`3dcode build`, then `3dcode check-placement`, which prints the findings with their fix hints and the table:
```
asset | gap to support (m) | support | sunk (m) | into | water | attached
@@ -134,7 +134,7 @@ Market/Bench_0 | +0.236 | Terrain | 0.000 | - | - | -
interpenetration Market/Cart_1 × Market/Stall_0: 41% box, 23% inside
```
-The hint's number is the measured gap: move the root by it. A round whose last `check_placement`
+The hint's number is the measured gap: move the root by it. A round whose last `3dcode check-placement`
lists an ERROR is capped by the rubric on each one; a PASSED gate vetoes the judge's own floating claim.
## Motion, and the feet
diff --git a/harness/codeverse3d/skills/c3d-bpy-scene-placement/references/finding-to-fix.md b/harness/skills/c3d-bpy-scene-placement/references/finding-to-fix.md
similarity index 97%
rename from harness/codeverse3d/skills/c3d-bpy-scene-placement/references/finding-to-fix.md
rename to harness/skills/c3d-bpy-scene-placement/references/finding-to-fix.md
index 97bd0b50..3638085d 100644
--- a/harness/codeverse3d/skills/c3d-bpy-scene-placement/references/finding-to-fix.md
+++ b/harness/skills/c3d-bpy-scene-placement/references/finding-to-fix.md
@@ -3,7 +3,7 @@
Companion to `c3d-bpy-scene-placement`. Read against `codeverse3d/spatial/scene_placement.py`,
`runtime_js/lib/host_placement.mjs`, `codeverse3d/languages/wrappers/_census_glb.py` and the
`Placement` section of `codeverse3d/config.py` on 2026-10-14. Each row's fix is a move you compute
-from world-space vertices; any construction that passes `check_placement` is as good.
+from world-space vertices; any construction that passes `3dcode check-placement` is as good.
## 1. Finding to fix
@@ -82,5 +82,5 @@ is airborne by design.
build -> check_placement -> fix every ERROR, then the deepest WARN -> build
```
-`check_placement` reads the census of the last build; `rebuild=true` re-takes the census when
+`3dcode check-placement` reads the census of the last build; `rebuild=true` re-takes the census when
you doubt it. A round that ends on an ERROR is capped by the rubric on each one.
diff --git a/harness/codeverse3d/skills/c3d-cadquery-forms/SKILL.md b/harness/skills/c3d-cadquery-forms/SKILL.md
similarity index 94%
rename from harness/codeverse3d/skills/c3d-cadquery-forms/SKILL.md
rename to harness/skills/c3d-cadquery-forms/SKILL.md
index 7b3aa470..538096b5 100644
--- a/harness/codeverse3d/skills/c3d-cadquery-forms/SKILL.md
+++ b/harness/skills/c3d-cadquery-forms/SKILL.md
@@ -52,12 +52,12 @@ are options under their real API names, not a mapping to follow.
2. **A union that does not overlap fails silently.** Two spheres placed exactly tangent
union into **2 solids** and still report `isValid() == True`; the same pair with 0.5 mm
of overlap gives 1 solid. `.isValid()` will not catch this and neither will a render —
- `check_connectivity` reports the second solid as a stray island. `len(wp.solids().vals())`
+ `3dcode check-connectivity` reports the second solid as a stray island. `len(wp.solids().vals())`
after a union or a cut catches it before a build; a through cut that splits a part also
leaves 2 valid solids.
3. **Each plan part is its own Assembly child.** A pair unioned across a plan boundary reads
- as a missing part in `check_contract`. Touching parts: a gap ≤ 2 mm is contact, overlap
- > 2 mm is WARN, > 10 mm is ERROR (`check_connectivity`; the table is in `c3d-part-contact`).
+ as a missing part in `3dcode check-contract`. Touching parts: a gap ≤ 2 mm is contact, overlap
+ > 2 mm is WARN, > 10 mm is ERROR (`3dcode check-connectivity`; the table is in `c3d-part-contact`).
4. **Keep solids closed.** Export runs through STL as well as GLB; `.shell()` keeps a solid
watertight, hand-assembled faces do not.
5. Features under ~0.5 mm come out invalid at OCC tolerance.
@@ -84,8 +84,8 @@ a habit, not a measured need.
when a selector might match nothing — an empty selection raises `ValueError`.
**Measure before you render.** Print per part what the gates read — `BoundingBox()` extents
-and `zmin`, `len(solids().vals())`, `Volume()`, `isValid()` — then the track loop: `build`
--> `check_contract` -> `check_connectivity` -> `render_views`. `Volume()` catches
+and `zmin`, `len(solids().vals())`, `Volume()`, `isValid()` — then the track loop: `3dcode build`
+-> `3dcode check-contract` -> `3dcode check-connectivity` -> `3dcode render-views`. `Volume()` catches
hollow-when-it-should-be-solid, the solid count catches a split, `zmin` catches a floater,
all before a render is spent.
diff --git a/harness/codeverse3d/skills/c3d-cadquery-forms/references/kernel-probes.md b/harness/skills/c3d-cadquery-forms/references/kernel-probes.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-cadquery-forms/references/kernel-probes.md
rename to harness/skills/c3d-cadquery-forms/references/kernel-probes.md
diff --git a/harness/codeverse3d/skills/c3d-glsl-craft/SKILL.md b/harness/skills/c3d-glsl-craft/SKILL.md
similarity index 95%
rename from harness/codeverse3d/skills/c3d-glsl-craft/SKILL.md
rename to harness/skills/c3d-glsl-craft/SKILL.md
index d870bfeb..bc138655 100644
--- a/harness/codeverse3d/skills/c3d-glsl-craft/SKILL.md
+++ b/harness/skills/c3d-glsl-craft/SKILL.md
@@ -36,7 +36,7 @@ Over the 9 graded glsl runs mined 2026-08-25 the gate fired nothing while the ju
0.55-0.65: clearing it proves nothing. The judge is `shader`: likeness 0.26,
depth_and_detail 0.16, light_and_tone 0.16, motion_quality 0.14, composition 0.10,
technical_cleanliness 0.10, craft 0.08, plus the defect list the system prompt carries.
-One hint, and only a hint at n = 9: the harness's colourfulness metric (`gl_frames` prints
+One hint, and only a hint at n = 9: the harness's colourfulness metric (`3dcode gl-frames` prints
it) ranked with the final score at +0.75, edge density at +0.40 and frame-to-frame motion at
+0.20 — the palette is worth more attention than another octave.
@@ -59,12 +59,12 @@ the very end keeps them under the `blown` threshold; gamma applied twice washes
(`white_wash`).
**Exposure first.** Hue and palette work is invisible on dark, low-chroma pixels. Read the
-mean luminance `gl_frames` prints and compare it with what the brief's place would show
+mean luminance `3dcode gl-frames` prints and compare it with what the brief's place would show
before grading colour.
**Night subjects.** The judge's `no_dark_range` and `white_wash` defects: a night, space or
dusk frame needs near-black pixels somewhere, and haze and bloom belong on the light, not on
-the frame. `gl_frames` prints the mean luminance and the black-pixel fraction — read them.
+the frame. `3dcode gl-frames` prints the mean luminance and the black-pixel fraction — read them.
**Across the flow.** Water, wood, marble, cloth and stone read as a sliding texture when the
pattern is stretched along the direction of movement (the judge's "texture scrolling under a
@@ -118,7 +118,7 @@ feeding a central-difference normal.
## Before you finish
-`gl_probe` compiles and shows frame 0; `gl_frames` renders all five judged times and prints
+`3dcode gl-probe` compiles and shows frame 0; `3dcode gl-frames` renders all five judged times and prints
mean luminance, colourfulness, edge density and the per-pair deltas. Look at the contact
sheet, then read the numbers: a largest delta just above the static threshold with a brief
that promised motion means the motion is there but invisible.
diff --git a/harness/codeverse3d/skills/c3d-opengl-pipeline/SKILL.md b/harness/skills/c3d-opengl-pipeline/SKILL.md
similarity index 95%
rename from harness/codeverse3d/skills/c3d-opengl-pipeline/SKILL.md
rename to harness/skills/c3d-opengl-pipeline/SKILL.md
index 28169a94..1e1e8e1b 100644
--- a/harness/codeverse3d/skills/c3d-opengl-pipeline/SKILL.md
+++ b/harness/skills/c3d-opengl-pipeline/SKILL.md
@@ -35,7 +35,7 @@ only injected at t=0s"* and *"the ink dissipates far too quickly"*. Those are al
defect: five iterations of a solver that needed hundreds.
The requirement: the frame at `t` must not depend on which `t`s were rendered before (the
-tools re-render single times, and the build renders a sorted schedule). One strong way to
+instruments re-render single times, and the build renders a sorted schedule). One strong way to
meet it with a simulation: keep the state and the simulated time it represents in `state`;
each call integrates from that time to `t` with a fixed step and a bounded step count, and
resets to the seed whenever `t` is earlier than the state; inject sources as a function of
@@ -43,7 +43,7 @@ the simulated time, not in a `frame == 0` branch. A worked description: `referen
## Trap 2: motion has to be continuous *and* visible
-`gl_frames` takes the mean |Δ| of each consecutive pair of sampled frames: if the largest is
+`3dcode gl-frames` takes the mean |Δ| of each consecutive pair of sampled frames: if the largest is
below **0.002** the program is static (cap 0.5); if it exceeds **0.35** it is flicker (cap 0.7).
Only one of our five opengl_python runs ever tripped this gate, but it tripped it in three
separate rounds (max deltas 0.373, 0.392, 0.416, `ogl_hard_voxel_city`, final score 0.342),
@@ -114,8 +114,8 @@ ctx.enable(moderngl.PROGRAM_POINT_SIZE) # gl_PointSize in the ver
## Prove it
-`gl_probe` after every edit (one frame, compile errors with source line numbers), then
-`gl_frames` before finishing — it renders the judged times, returns the per-frame
+`3dcode gl-probe` after every edit (one frame, compile errors with source line numbers), then
+`3dcode gl-frames` before finishing — it renders the judged times, returns the per-frame
luminance / colour / detail / motion table and runs the gate. **Look at the contact sheet.**
How the schedule is built and what the gate measures: `references/sampled-time.md`.
diff --git a/harness/codeverse3d/skills/c3d-opengl-pipeline/references/sampled-time.md b/harness/skills/c3d-opengl-pipeline/references/sampled-time.md
similarity index 97%
rename from harness/codeverse3d/skills/c3d-opengl-pipeline/references/sampled-time.md
rename to harness/skills/c3d-opengl-pipeline/references/sampled-time.md
index 0fbef9ce..f63611b8 100644
--- a/harness/codeverse3d/skills/c3d-opengl-pipeline/references/sampled-time.md
+++ b/harness/skills/c3d-opengl-pipeline/references/sampled-time.md
@@ -13,7 +13,7 @@ loop duration, always at least 3 samples). The preview GIF adds about a dozen mo
* the number of calls is not fixed, and `frame == 2` is not "the third judged frame";
* the gaps between judged frames are 1.0, 1.5, 1.5 and 2.0 seconds;
* nothing guarantees the calls are the only ones, or that they will not be repeated — the
- `gl_probe` and `gl_frames` tools re-render single times in any order.
+ `3dcode gl-probe` and `3dcode gl-frames` instruments re-render single times in any order.
The only safe contract is the one the language contract already states: **the same `t` must
produce the same image.**
diff --git a/harness/codeverse3d/skills/c3d-part-contact/SKILL.md b/harness/skills/c3d-part-contact/SKILL.md
similarity index 95%
rename from harness/codeverse3d/skills/c3d-part-contact/SKILL.md
rename to harness/skills/c3d-part-contact/SKILL.md
index 4f3c5126..2da213aa 100644
--- a/harness/codeverse3d/skills/c3d-part-contact/SKILL.md
+++ b/harness/skills/c3d-part-contact/SKILL.md
@@ -121,18 +121,18 @@ topology, is still a separate island. So a sub-shape must be either
interpenetration and its own floating ERROR. Apply the boolean and delete the cutter, or
set `hide_render` / `hide_viewport` / `hide_set(True)` on it; all three keep it out of the
export and the boolean still evaluates.
-* Boolean leftovers and slivers — check the result with `check_connectivity`. The solvers on
+* Boolean leftovers and slivers — check the result with `3dcode check-connectivity`. The solvers on
5.2.2 are `EXACT`, `MANIFOLD` (closed inputs) and `FLOAT`; `'FAST'` is a lint ERROR.
* A mirrored half that was never merged, and zero-thickness or coincident faces.
## Verify with the gate, do not re-implement it
-Call `check_connectivity` (no arguments — it reads your workspace and answers in your
+Call `3dcode check-connectivity` (no arguments — it reads your workspace and answers in your
authoring frame). It runs an fcl exact-distance contact graph, a per-island parity
containment test and the island split. A hand-written centroid or bounding-box check in
your own build script is strictly weaker and will disagree with the gate that scores you.
-Then `check_contract`, then rebuild. Do not finish on a run whose last
-`check_connectivity` still lists an ERROR.
+Then `3dcode check-contract`, then rebuild. Do not finish on a run whose last
+`3dcode check-connectivity` still lists an ERROR.
Worked recipes (bpy, CadQuery, URDF) and the full finding-to-fix table are in
`references/contact-recipes.md`.
diff --git a/harness/codeverse3d/skills/c3d-part-contact/references/contact-recipes.md b/harness/skills/c3d-part-contact/references/contact-recipes.md
similarity index 92%
rename from harness/codeverse3d/skills/c3d-part-contact/references/contact-recipes.md
rename to harness/skills/c3d-part-contact/references/contact-recipes.md
index 7ae6269a..58e38d09 100644
--- a/harness/codeverse3d/skills/c3d-part-contact/references/contact-recipes.md
+++ b/harness/skills/c3d-part-contact/references/contact-recipes.md
@@ -90,10 +90,10 @@ off the same gate constants.
## 6. URDF (articulated_object)
-`check_connectivity` runs on the rest pose (q = 0) exactly as above, over the link meshes.
-Clearance across the joint *sweep* is a different gate (`joint_sweep`) and belongs to
+`3dcode check-connectivity` runs on the rest pose (q = 0) exactly as above, over the link meshes.
+Clearance across the joint *sweep* is a different gate (`3dcode joint-sweep`) and belongs to
`c3d-urdf-joints`; a rest pose that is already 5 mm overlapped will fail both. Recorded
-`joint_sweep` overlaps in this corpus run 3-5 mm already at the rest pose and reach 20 mm at
+`3dcode joint-sweep` overlaps in this corpus run 3-5 mm already at the rest pose and reach 20 mm at
a joint limit, which is the signature of a hinge whose two links were welded like static
parts instead of being given running clearance.
@@ -103,6 +103,6 @@ parts instead of being given running clearance.
build -> check_connectivity -> fix the ERRORs, then the deepest WARN -> build
```
-`check_connectivity` takes no arguments and answers in your authoring frame. `isolate` the
-part you doubt and `cross_section` through it when a finding does not make sense. Never
+`3dcode check-connectivity` takes no arguments and answers in your authoring frame. `3dcode isolate` the
+part you doubt and `3dcode cross-section` through it when a finding does not make sense. Never
finish a round on an ERROR.
diff --git a/harness/codeverse3d/skills/c3d-repeats-and-mirrors/SKILL.md b/harness/skills/c3d-repeats-and-mirrors/SKILL.md
similarity index 96%
rename from harness/codeverse3d/skills/c3d-repeats-and-mirrors/SKILL.md
rename to harness/skills/c3d-repeats-and-mirrors/SKILL.md
index 560c52c9..d9d3bbfe 100644
--- a/harness/codeverse3d/skills/c3d-repeats-and-mirrors/SKILL.md
+++ b/harness/skills/c3d-repeats-and-mirrors/SKILL.md
@@ -25,7 +25,7 @@ out of the plan row — a hand-typed second copy is how a pair stops matching.
## What the gate actually measures
-`check_contract` (`spatial/contract.py`) treats an instanced part differently from a single part.
+`3dcode check-contract` (`spatial/contract.py`) treats an instanced part differently from a single part.
* **Naming.** The gate first claims the node named exactly like the plan part, then claims
`Name_0`, `Name_1`, ... (`Leg1`, with no separator, is NOT an instance of `Leg`).
@@ -102,7 +102,7 @@ Two different things share the word:
**On mirroring by negative object scale, the usual warning is wrong here.** It is widely
repeated that a negative scale reaches the export and inverts normals. Checked on 2026-08-25:
`spatial/measure.py` loads the GLB with trimesh and calls `apply_transform` per node, and
-trimesh repairs the face winding of a negatively-scaled mesh on load; `measure` then records
+trimesh repairs the face winding of a negatively-scaled mesh on load; `3dcode measure` then records
`abs(volume)`. The gates read identical numbers either way. That cuts the other way too —
**no geometry gate here can tell a correctly mirrored twin from a botched one.** Mirror the
mesh data (MIRROR modifier, or a bmesh transform), apply it, and look at the render: the judge
@@ -123,7 +123,7 @@ The judge penalises both ends, so read the brief before looping:
## Finish
-Run `build`, then `check_contract` (count + both box readings) and `check_connectivity` (the
+Run `3dcode build`, then `3dcode check-contract` (count + both box readings) and `3dcode check-connectivity` (the
loop's placement). Read the numbers; do not eyeball the montage.
Depth, the full failing-message catalogue and the per-language array/mirror idioms:
diff --git a/harness/codeverse3d/skills/c3d-repeats-and-mirrors/references/instances.md b/harness/skills/c3d-repeats-and-mirrors/references/instances.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-repeats-and-mirrors/references/instances.md
rename to harness/skills/c3d-repeats-and-mirrors/references/instances.md
diff --git a/harness/codeverse3d/skills/c3d-scene-atmosphere/SKILL.md b/harness/skills/c3d-scene-atmosphere/SKILL.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-scene-atmosphere/SKILL.md
rename to harness/skills/c3d-scene-atmosphere/SKILL.md
diff --git a/harness/codeverse3d/skills/c3d-scene-atmosphere/references/exotic-space.md b/harness/skills/c3d-scene-atmosphere/references/exotic-space.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-scene-atmosphere/references/exotic-space.md
rename to harness/skills/c3d-scene-atmosphere/references/exotic-space.md
diff --git a/harness/codeverse3d/skills/c3d-scene-composition/SKILL.md b/harness/skills/c3d-scene-composition/SKILL.md
similarity index 98%
rename from harness/codeverse3d/skills/c3d-scene-composition/SKILL.md
rename to harness/skills/c3d-scene-composition/SKILL.md
index 50e78ce9..c8900387 100644
--- a/harness/codeverse3d/skills/c3d-scene-composition/SKILL.md
+++ b/harness/skills/c3d-scene-composition/SKILL.md
@@ -138,10 +138,10 @@ first metres clear of it — a conifer planted on the lens turns the money shot
## Verify before you finish
-`scene_views` renders the authored cameras and prints `camera_checks` per camera —
+`3dcode scene-views` renders the authored cameras and prints `camera_checks` per camera —
`mean_lum`, `modal_frac`, `content_frac`, `nearest_hit_m`, `eye_height_m`, `ground_y`. Read
those six numbers against the table above rather than judging the thumbnails by eye, and
-`scene_probe` for triangles, draw calls and fps. A camera that fails the table fails it
+`3dcode scene-probe` for triangles, draw calls and fps. A camera that fails the table fails it
deterministically; there is nothing to argue with.
`references/measured-cameras.md` holds the finding-to-fix table and the naming rules the
diff --git a/harness/codeverse3d/skills/c3d-scene-composition/references/measured-cameras.md b/harness/skills/c3d-scene-composition/references/measured-cameras.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-scene-composition/references/measured-cameras.md
rename to harness/skills/c3d-scene-composition/references/measured-cameras.md
diff --git a/harness/codeverse3d/skills/c3d-scene-lighting/SKILL.md b/harness/skills/c3d-scene-lighting/SKILL.md
similarity index 98%
rename from harness/codeverse3d/skills/c3d-scene-lighting/SKILL.md
rename to harness/skills/c3d-scene-lighting/SKILL.md
index d0c84c86..a1af45d8 100644
--- a/harness/codeverse3d/skills/c3d-scene-lighting/SKILL.md
+++ b/harness/skills/c3d-scene-lighting/SKILL.md
@@ -119,7 +119,7 @@ genuinely different albedos, and a camera aimed at content rather than at sky.
## Prove it
-`scene_views`, then read `camera_checks` in `metrics.json` per camera: `mean_lum`,
+`3dcode scene-views`, then read `camera_checks` in `metrics.json` per camera: `mean_lum`,
`dark_frac`, `blown_frac`, `modal_frac`. Those are the same four numbers the gate uses, so
there is no reason to guess. A dark harness rig view is only a WARN, but the code that
writes these findings records a measured case where exactly that cost a battery a 0.60 cap
diff --git a/harness/codeverse3d/skills/c3d-scene-lighting/references/exposure-math.md b/harness/skills/c3d-scene-lighting/references/exposure-math.md
similarity index 96%
rename from harness/codeverse3d/skills/c3d-scene-lighting/references/exposure-math.md
rename to harness/skills/c3d-scene-lighting/references/exposure-math.md
index d827bfb3..34138eb1 100644
--- a/harness/codeverse3d/skills/c3d-scene-lighting/references/exposure-math.md
+++ b/harness/skills/c3d-scene-lighting/references/exposure-math.md
@@ -66,6 +66,6 @@ region carrying the frame's mean.
## Step 5 — the check
-`scene_views` writes `camera_checks` into `metrics.json` with `mean_lum`, `dark_frac`,
+`3dcode scene-views` writes `camera_checks` into `metrics.json` with `mean_lum`, `dark_frac`,
`blown_frac` and `modal_frac` per camera — the same four numbers the gate reads. Read them,
and fix whatever finding the gate names.
diff --git a/harness/codeverse3d/skills/c3d-scene-materials/SKILL.md b/harness/skills/c3d-scene-materials/SKILL.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-scene-materials/SKILL.md
rename to harness/skills/c3d-scene-materials/SKILL.md
diff --git a/harness/codeverse3d/skills/c3d-scene-materials/references/terrain-and-scatter.md b/harness/skills/c3d-scene-materials/references/terrain-and-scatter.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-scene-materials/references/terrain-and-scatter.md
rename to harness/skills/c3d-scene-materials/references/terrain-and-scatter.md
diff --git a/harness/codeverse3d/skills/c3d-scene-motion/SKILL.md b/harness/skills/c3d-scene-motion/SKILL.md
similarity index 97%
rename from harness/codeverse3d/skills/c3d-scene-motion/SKILL.md
rename to harness/skills/c3d-scene-motion/SKILL.md
index 15525f9c..06a99384 100644
--- a/harness/codeverse3d/skills/c3d-scene-motion/SKILL.md
+++ b/harness/skills/c3d-scene-motion/SKILL.md
@@ -91,7 +91,7 @@ planned animation was absent while the code for it sat in `src/`.
exception, sets `updateBroken`, logs "update() disabled, rendering continues
without animation" and never calls your function again. The first call happens
at t = 1/30 s, so a single undefined dereference on the very first step
- freezes every later frame of every camera. `scene_probe` reports this as
+ freezes every later frame of every camera. `3dcode scene-probe` reports this as
`update_ok: false` with the message — check it before you conclude the
amplitude was too small.
4. **The motion is off camera.** Only authored cameras decide it. A drifting boat
@@ -165,14 +165,14 @@ angle.
## Prove it before you finish
-Call `scene_views` (its default is `times=[0, 1.5]`) and read the measured
+Call `3dcode scene-views` (its default is `times=[0, 1.5]`) and read the measured
motion table it prints — it names each authored camera and its changed fraction.
Then do the harder check the table cannot do for you: put the two sheets side by
side and walk the plan's animation list item by item, pointing at each one in the
picture. An item you cannot point at is the one the judge will name. If every
authored camera reads STATIC, or an item is invisible, double the amplitude or
move the mover into frame. Do not ship on the strength of having written the
-code — and if nothing at all moved, run `scene_probe` first: a frozen scene is
+code — and if nothing at all moved, run `3dcode scene-probe` first: a frozen scene is
more often a thrown `update` than a small amplitude.
## People, vehicles, weather, fire
diff --git a/harness/codeverse3d/skills/c3d-scene-motion/references/motion_recipes.md b/harness/skills/c3d-scene-motion/references/motion_recipes.md
similarity index 98%
rename from harness/codeverse3d/skills/c3d-scene-motion/references/motion_recipes.md
rename to harness/skills/c3d-scene-motion/references/motion_recipes.md
index 9de88722..191426ff 100644
--- a/harness/codeverse3d/skills/c3d-scene-motion/references/motion_recipes.md
+++ b/harness/skills/c3d-scene-motion/references/motion_recipes.md
@@ -65,7 +65,7 @@ that only changes its specular highlight does not clear the pixel bar.
## Reading the verdict
-`scene_views` prints the measured table under the contact sheet, one line per
+`3dcode scene-views` prints the measured table under the contact sheet, one line per
camera:
```
diff --git a/harness/codeverse3d/skills/c3d-scene-night/SKILL.md b/harness/skills/c3d-scene-night/SKILL.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-scene-night/SKILL.md
rename to harness/skills/c3d-scene-night/SKILL.md
diff --git a/harness/codeverse3d/skills/c3d-scene-night/references/window-canvas.md b/harness/skills/c3d-scene-night/references/window-canvas.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-scene-night/references/window-canvas.md
rename to harness/skills/c3d-scene-night/references/window-canvas.md
diff --git a/harness/codeverse3d/skills/c3d-scene-water/SKILL.md b/harness/skills/c3d-scene-water/SKILL.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-scene-water/SKILL.md
rename to harness/skills/c3d-scene-water/SKILL.md
diff --git a/harness/codeverse3d/skills/c3d-scene-water/references/gerstner-and-foam.md b/harness/skills/c3d-scene-water/references/gerstner-and-foam.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-scene-water/references/gerstner-and-foam.md
rename to harness/skills/c3d-scene-water/references/gerstner-and-foam.md
diff --git a/harness/codeverse3d/skills/c3d-threejs-forms/SKILL.md b/harness/skills/c3d-threejs-forms/SKILL.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-threejs-forms/SKILL.md
rename to harness/skills/c3d-threejs-forms/SKILL.md
diff --git a/harness/codeverse3d/skills/c3d-threejs-forms/references/form_recipes.md b/harness/skills/c3d-threejs-forms/references/form_recipes.md
similarity index 100%
rename from harness/codeverse3d/skills/c3d-threejs-forms/references/form_recipes.md
rename to harness/skills/c3d-threejs-forms/references/form_recipes.md
diff --git a/harness/codeverse3d/skills/c3d-threejs-shader-traps/SKILL.md b/harness/skills/c3d-threejs-shader-traps/SKILL.md
similarity index 98%
rename from harness/codeverse3d/skills/c3d-threejs-shader-traps/SKILL.md
rename to harness/skills/c3d-threejs-shader-traps/SKILL.md
index d88e23ea..14601524 100644
--- a/harness/codeverse3d/skills/c3d-threejs-shader-traps/SKILL.md
+++ b/harness/skills/c3d-threejs-shader-traps/SKILL.md
@@ -119,7 +119,7 @@ The gate proves your shader **compiles and is bound**. It says nothing about whe
*visible* or *right*: colours crushed by the ACES plus sRGB output chain, transparent water
z-fighting the shore, a patched material whose clone lost its `onBeforeCompile`, a shared
program cache key, an effect placed outside every camera's frustum. Look at the frames
-yourself: `scene_views` (or `render_views`) at two different times, and check that the thing
+yourself: `3dcode scene-views` (or `3dcode render-views`) at two different times, and check that the thing
you wrote changed something.
Full audit source lines, the fix-hint texts, and what a shader that passes every rule carries:
diff --git a/harness/codeverse3d/skills/c3d-threejs-shader-traps/references/shader-gate.md b/harness/skills/c3d-threejs-shader-traps/references/shader-gate.md
similarity index 98%
rename from harness/codeverse3d/skills/c3d-threejs-shader-traps/references/shader-gate.md
rename to harness/skills/c3d-threejs-shader-traps/references/shader-gate.md
index 6ae39b36..7bc3ab23 100644
--- a/harness/codeverse3d/skills/c3d-threejs-shader-traps/references/shader-gate.md
+++ b/harness/skills/c3d-threejs-shader-traps/references/shader-gate.md
@@ -19,7 +19,7 @@ booted page -> window.__c3v.compileAll() -> shader_errors[] -> errors
-> GateReport(gate="shader_preflight")
```
-`passed` is `report.ok and no ERROR finding`. The agent-facing tool is `shader_probe`; it runs
+`passed` is `report.ok and no ERROR finding`. The instrument is `3dcode shader-probe`; it runs
the build's own probe and preflight (one `probe_scene.mjs --compile` boot), so its verdict is
the build's, and every `scene_threejs` round carries the report among its gates.
diff --git a/harness/codeverse3d/skills/c3d-urdf-joints/SKILL.md b/harness/skills/c3d-urdf-joints/SKILL.md
similarity index 94%
rename from harness/codeverse3d/skills/c3d-urdf-joints/SKILL.md
rename to harness/skills/c3d-urdf-joints/SKILL.md
index cd8f9b68..0c2d0e58 100644
--- a/harness/codeverse3d/skills/c3d-urdf-joints/SKILL.md
+++ b/harness/skills/c3d-urdf-joints/SKILL.md
@@ -19,7 +19,7 @@ metadata:
# URDF joints: axes, limits and clearance across the sweep
**When:** any `articulated_object` round that writes or fixes `src/robot.urdf` (and the rest pose
-in `src/model.py`), or that received a `joint_sweep` / `motion_direction` finding.
+in `src/model.py`), or that received a `3dcode joint-sweep` / `motion_direction` finding.
The frame rule (link frame at the pivot, joint origin = pivot of the child minus the frame of
the parent, visual and collision origin = minus the pivot) is in
@@ -40,7 +40,7 @@ Everything else comes back as findings you still have to read.
## The sweep is not a rest-pose check
-`joint_sweep` poses the robot at: **rest**, then **every movable joint alone at its lower, mid
+`3dcode joint-sweep` poses the robot at: **rest**, then **every movable joint alone at its lower, mid
and upper limit** (others at 0), then **8 seeded random full-body combinations** (seed 0) when
more than one joint moves. Continuous joints sample 0, +/-pi/2 and pi.
@@ -146,7 +146,7 @@ precedence, and the gate is unforgiving about it:
Make positive q go the way the plan's FIRST direction word says, even when the prose reads
loosely ("from left to right" yields `left`). A `motion` like "rotates clockwise (+Y axis)" asks
for a translation along +Y that no revolute joint about +Y can give: confirm with the
-`joint_sweep` pose renders that the part moves as the prose describes, then leave the axis alone.
+`3dcode joint-sweep` pose renders that the part moves as the prose describes, then leave the axis alone.
**Do not flip a correct axis to chase an unsatisfiable finding.**
## Scope
@@ -164,8 +164,8 @@ names no joint, names itself, or closes a loop is a lint ERROR.
## Finish
-A finish that catches everything: `build` (the FK check and the rest-pose check), `joint_sweep`
-with a look at every joint's lower/mid/upper renders, `check_connectivity`, `check_contract`.
+A finish that catches everything: `3dcode build` (the FK check and the rest-pose check), `3dcode joint-sweep`
+with a look at every joint's lower/mid/upper renders, `3dcode check-connectivity`, `3dcode check-contract`.
Worked repairs, the finding catalogue with real messages and the measured thresholds:
`references/sweep-and-motion.md`.
diff --git a/harness/codeverse3d/skills/c3d-urdf-joints/references/sweep-and-motion.md b/harness/skills/c3d-urdf-joints/references/sweep-and-motion.md
similarity index 98%
rename from harness/codeverse3d/skills/c3d-urdf-joints/references/sweep-and-motion.md
rename to harness/skills/c3d-urdf-joints/references/sweep-and-motion.md
index 4c72aebf..e4d76ca9 100644
--- a/harness/codeverse3d/skills/c3d-urdf-joints/references/sweep-and-motion.md
+++ b/harness/skills/c3d-urdf-joints/references/sweep-and-motion.md
@@ -3,7 +3,7 @@
Read out of the live harness on 2026-08-25: `codeverse3d/spatial/joints_sweep.py`,
`joints_poses.py`, `joints_model.py`, `codeverse3d/languages/urdf/__init__.py`,
`codeverse3d/tracks/articulated_object.py`,
-`codeverse3d/conventions.py`; plus every `joint_sweep` and `motion_direction` report under
+`codeverse3d/conventions.py`; plus every `3dcode joint-sweep` and `motion_direction` report under
`bench/out` (26 `urdf_blender` runs, 50 judged rounds).
## 1. Constants, with the module each comes from