Skip to content

Official Codebase of 3DCodeVerse

Python

prompts: no harness gate threshold is stated as a geometric rule (D93, item 4)

gaoypengb88bc80f3a86
diff --git a/harness/codeverse3d/languages/scene_threejs/starter/src/scene.js b/harness/codeverse3d/languages/scene_threejs/starter/src/scene.js
index a1035590..36308b14 100644
--- a/harness/codeverse3d/languages/scene_threejs/starter/src/scene.js
+++ b/harness/codeverse3d/languages/scene_threejs/starter/src/scene.js
@@ -4,7 +4,7 @@
// export function createScene({ THREE, renderer, loaders })
// → { scene, cameras: [{ name, position: [x,y,z], lookAt: [x,y,z], fov }], update(t, dt) }
// • Y is up, +Z is front, units are meters. The scene owns its lights, sky/env and fog.
-// • cameras: 1-6 authored shots (eye ≥ 0.3 m from any surface, above ground).
+// • cameras: 1-6 authored shots (eye above the ground, clear of every surface).
// • update(t, dt): t = seconds since start, dt = step; animate here (no requestAnimationFrame).
// • loaders.gltf is a GLTFLoader: loaders.gltf.loadAsync('/assets/<name>.glb') for Blender-built assets.
// • Imports allowed: 'three', 'three/addons/*', relative files. No CDN, no network, no DOM access.
diff --git a/harness/codeverse3d/prompts/scene_threejs/contract.md b/harness/codeverse3d/prompts/scene_threejs/contract.md
index 13b60de8..9f05da19 100644
--- a/harness/codeverse3d/prompts/scene_threejs/contract.md
+++ b/harness/codeverse3d/prompts/scene_threejs/contract.md
@@ -27,7 +27,7 @@ establishing shot that is mostly sky/ground. Dusk/night = coloured, never black
* `cameras`: 3–5 **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).
Names PascalCase from the plan (`Establishing`, `HarbourMid`, `LanternDetail`); fov
- 35–60; eye height ≈ 1.6 m for human views; never inside or within 0.5 m of geometry; the
+ 35–60; eye height ≈ 1.6 m for human views; never inside or up against geometry; the
first camera is the establishing shot showing ≥ 70 % of the bounds.
* `update(t, dt)`: advance animation (t seconds since start, dt seconds). MUST be cheap
(no allocations, no traversals — cache lists of animated objects / materials at build
diff --git a/harness/codeverse3d/prompts/scene_threejs/cookbook.md b/harness/codeverse3d/prompts/scene_threejs/cookbook.md
index c3535d63..2ae2ade8 100644
--- a/harness/codeverse3d/prompts/scene_threejs/cookbook.md
+++ b/harness/codeverse3d/prompts/scene_threejs/cookbook.md
@@ -648,10 +648,10 @@ Rules: shadows come from the sun and the hero lights only; decorative lights get
Placement is MEASURED (`check_placement`; the `scene_placement` gate runs on every build): each
direct child of your zone group is an asset; from its lowest vertices the harness looks down for the
-nearest surface and up for one passing through it. Gap > 5 cm (2 cm indoors) → `floating`; foot
-> 10 cm under a surface → `sunken` (rocks/posts/bushes may sit half their height in the ground; a basin
+nearest surface and up for one passing through it. A gap under the foot → `floating`; a foot buried
+under a surface → `sunken` (rocks/posts/bushes may sit half their height in the ground; a basin
or pit never counts; a foot at/under water is fine); bbox touching nothing → `unsupported`; boxes sharing
-> 20 % → `interpenetration`. Seat things with `heightAt(x, z)` and they pass. A thing MEANT to hang in
+a large share of their volume → `interpenetration`. Seat things with `heightAt(x, z)` and they pass. A thing MEANT to hang in
the air (bird, drone): `obj.userData.placement = 'free'` on it or its zone = exempt. Instanced meshes are not checked.
## Assets (`src/assets/*.js`) and GLB assets from Blender
@@ -837,7 +837,7 @@ console.log('cameras', planCameras(THREE, new THREE.Scene()).map(c => c.name));
```
Rules: eye height 1.6 m (+ terrain!), fov 35–60, look at a focal POINT (an object, not
-the horizon), never inside geometry and ≥ 0.5 m from any surface, 3–5 cameras:
+the horizon), never inside geometry or up against a surface, 3–5 cameras:
establishing → mid → detail. Compute positions from measured bounds/heightAt, not vibes.
## Post-processing (the harness's own chain, ON by default)
diff --git a/harness/codeverse3d/prompts/scene_threejs/system.md b/harness/codeverse3d/prompts/scene_threejs/system.md
index 513150e6..9d29d8c5 100644
--- a/harness/codeverse3d/prompts/scene_threejs/system.md
+++ b/harness/codeverse3d/prompts/scene_threejs/system.md
@@ -46,8 +46,8 @@ What the gates name, measured over 32 recorded runs of this exact track:
* **Flat frame** — one luminance band holding almost all of the pixels. Fill light with no key
produces this. So does fog whose colour does not match the sky.
* **The camera is in the wrong place** (42 findings) — below the highest ground surface,
- or inside geometry. Keep the eye **≥ 0.3 m above ground** and **≥ 0.5 m clear of every
- surface**, and keep `lookAt` on the content.
+ or inside geometry. Keep the eye **above the ground** and **clear of every surface**, and keep
+ `lookAt` on the content.
* **Draw calls** — instance repeated geometry (`InstancedMesh`);
a thousand individual trees is a frame-rate failure, not a detailed forest.
diff --git a/harness/codeverse3d/prompts/system/harness_contract.md b/harness/codeverse3d/prompts/system/harness_contract.md
index 3adfbd34..e8de20dd 100644
--- a/harness/codeverse3d/prompts/system/harness_contract.md
+++ b/harness/codeverse3d/prompts/system/harness_contract.md
@@ -39,7 +39,7 @@ artifacts/ harness output (object.glb, renders/, gates/, measurement.json). RE
## 3. Physical plausibility (what gates will reject)
* **Touch or overlap, never float**: every part must share volume with (or sit flush
- against) at least one other part; seams overlap by ≥ 2 mm (`CONTACT_GAP_M = 0.002`).
+ against) at least one other part; seams overlap by ≥ 2 mm.
No piece may hover. The connectivity gate hard-fails on any island with a positive gap.
* **Weld by overlap, not by rods**: fix a floating piece by extending / embedding it
≥ 2 mm into its neighbour, never by adding thin connector sticks.
@@ -79,7 +79,7 @@ is not evidence; a render is.
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 within ± 1 cm (objects) / declared bounds (scenes).
+3. [ ] Measured overall bbox matches the plan's `overall_bbox` (objects) / declared bounds (scenes).
4. [ ] `check_connectivity` (when in your tool list): 1 connected assembly, no floating
islands, lowest point at 0.
5. [ ] `render_sheet` (when in your tool list) looked at: silhouette reads as the requested
diff --git a/harness/codeverse3d/prompts/tracks/generate_articulated.j2 b/harness/codeverse3d/prompts/tracks/generate_articulated.j2
index 59bff0fe..6440edbb 100644
--- a/harness/codeverse3d/prompts/tracks/generate_articulated.j2
+++ b/harness/codeverse3d/prompts/tracks/generate_articulated.j2
@@ -39,7 +39,7 @@ Joints (the URDF must realise EXACTLY these; pivots are WORLD points at rest):
{{ acceptance }}
## DO
-- Build every link at its WORLD rest pose with the plan's bbox centre/extents (±0.01 m); each link is
+- Build every link at its WORLD rest pose with the plan's bbox centre/extents; each link is
ONE object (join sub-shapes into it) named exactly as the link.
- Joint origins: every link frame sits at its joint's world pivot (root at the world origin), so the
URDF `<joint><origin xyz>` = pivot_child − pivot_parent (plain subtraction of world points; root
@@ -56,7 +56,7 @@ Joints (the URDF must realise EXACTLY these; pivots are WORLD points at rest):
## DON'T
- No camera/light/render/export calls in bpy; no imports beyond bpy/bmesh/math/mathutils/random.
- No links that float (every non-root link touches its parent at rest, or is attached by its joint
- at a pivot that lies ON the child link's geometry ± 0.01 m).
+ at a pivot that lies ON the child link's geometry).
- 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.
diff --git a/harness/codeverse3d/prompts/tracks/generate_static.j2 b/harness/codeverse3d/prompts/tracks/generate_static.j2
index 6205d77f..ef4beba3 100644
--- a/harness/codeverse3d/prompts/tracks/generate_static.j2
+++ b/harness/codeverse3d/prompts/tracks/generate_static.j2
@@ -37,7 +37,7 @@ Construction notes per part:
{{ acceptance }}
## DO
-- Place each part so its bounding box CENTRE and EXTENTS equal the plan row (±0.01 m). Compute
+- 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.
- Weld touching parts: overlap neighbours by ≥ 0.002 m (push a leg 2-5 mm into the seat). Never
bridge gaps with thin rods; no part may float.
diff --git a/harness/codeverse3d/prompts/tracks/generate_static_part.j2 b/harness/codeverse3d/prompts/tracks/generate_static_part.j2
index 1df92f7c..624ee16a 100644
--- a/harness/codeverse3d/prompts/tracks/generate_static_part.j2
+++ b/harness/codeverse3d/prompts/tracks/generate_static_part.j2
@@ -38,7 +38,7 @@ make it interpenetrate.
{{ detail_advice }}
## DO
-- Place each part so its bounding box CENTRE and EXTENTS equal the plan row (±0.01 m).
+- Place each part so its bounding box CENTRE and EXTENTS equal the plan row.
- Build the described geometry, not a box with the right size: profiles, tapers, chamfers 2–6 mm,
grooves, fasteners, seams, the counted features the description names (spokes, slats, dentils…).
A part that is a scaled cube where the plan says "fluted cylindrical body with 6 flutes" fails.
diff --git a/harness/codeverse3d/prompts/tracks/plan_scene.j2 b/harness/codeverse3d/prompts/tracks/plan_scene.j2
index 6c3f52a5..49181ae7 100644
--- a/harness/codeverse3d/prompts/tracks/plan_scene.j2
+++ b/harness/codeverse3d/prompts/tracks/plan_scene.j2
@@ -101,7 +101,7 @@ WHAT TO PRODUCE (JSON, fields: {{ schema_fields }}):
- `purpose` must name the subject, the foreground framing element and what is on the horizon
for that shot ("establishing: the arched bridge at 14 m, framed by the maple on the right at
3 m, cedar ridge on the horizon").
- - No camera may be inside or within 0.5 m of geometry; fov 35-60.
+ - No camera may be inside or up against geometry; fov 35-60.
9. `acceptance` — 6 to 12 items covering: each must-have from the brief, the hero assets visible
from the establishing camera, time-of-day lighting reads correctly, the hero motion is visible
between t=0 and t=1.5 s, no floating or sunken assets (`how: probe`), no hard world edge from
diff --git a/harness/codeverse3d/prompts/tracks/scene_refine.j2 b/harness/codeverse3d/prompts/tracks/scene_refine.j2
index c8d46172..dae3631d 100644
--- a/harness/codeverse3d/prompts/tracks/scene_refine.j2
+++ b/harness/codeverse3d/prompts/tracks/scene_refine.j2
@@ -44,7 +44,7 @@ Animation: {{ animation }}
- 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 rests on `heightAt(x, z)`; nothing floats or sinks > 2 cm; InstancedMesh for repeats.
+- Everything rests on `heightAt(x, z)`; nothing floats or sinks; InstancedMesh for repeats.
- No DOM, no textures, no fetch, no Math.random, no CDN imports.
## The recurring defects on this track and the cookbook chapter that fixes each
diff --git a/harness/codeverse3d/prompts/tracks/scene_zone.j2 b/harness/codeverse3d/prompts/tracks/scene_zone.j2
index 23a9a165..5b4af8b3 100644
--- a/harness/codeverse3d/prompts/tracks/scene_zone.j2
+++ b/harness/codeverse3d/prompts/tracks/scene_zone.j2
@@ -11,7 +11,7 @@ Scene: {{ spec_prompt }} · Setting: {{ setting }} · Mood: {{ mood }}
{% 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 (per-instance jitter
within +/-30 %, never a re-size to "fit"). The placement gate measures every placed thing against the
- plan's size: > 2.5x or < 0.4x is an ERROR the judge repeats (measured 2026-09-08, round 0: a 1.15 m stove
+ plan's size, and a mismatch is a finding the judge repeats (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). The same gate measures a placed
asset as ONE object, parts included: never stretch or re-scale a part of a placed clone (a stove whose
flue you pulled up to the roof reads as a 4.8 m stove — three runs lost their round to it); a chimney,
diff --git a/harness/codeverse3d/prompts/urdf/contract.md b/harness/codeverse3d/prompts/urdf/contract.md
index 65939e27..e8900784 100644
--- a/harness/codeverse3d/prompts/urdf/contract.md
+++ b/harness/codeverse3d/prompts/urdf/contract.md
@@ -9,7 +9,7 @@ src/robot.urdf hand-written URDF: links + joints; every link has ONE <visual> a
```
The harness runs `model.py` headless, 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 (1 mm — the build FAILS otherwise and prints the
+puts every mesh back where you authored it (the build FAILS otherwise and prints the
corrected `<origin>`), sweeps every joint over its range for collisions, renders q=0 plus
every joint at its lower/upper limit, and builds `object.glb` with one node per link.
You never export.