Skip to content

Official Codebase of 3DCodeVerse

Python

skills: bundle text points at files, signatures and renderer facts that exist

gaoypengab56ba9786a0
diff --git a/harness/codeverse3d/skills/c3d-part-contact/SKILL.md b/harness/codeverse3d/skills/c3d-part-contact/SKILL.md
index 68464732..a57d6e46 100644
--- a/harness/codeverse3d/skills/c3d-part-contact/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-part-contact/SKILL.md
@@ -32,7 +32,7 @@ Measured on the 102 graded blender runs that have a connectivity report (mined 2
Floating parts get fixed, because they are ERRORs. Interpenetration and crumbs mostly do
not: three quarters of the runs that started buried shipped buried. And it is expensive —
-`docs/COMPLEXITY.md` section 6, over 160 recorded rounds with both a score and a
+`eval/docs/COMPLEXITY.md` section 6, over 160 recorded rounds with both a score and a
connectivity report, mean `assembly_fit` falls 0.709 (nothing buried) to 0.505 (a part more
than half buried), and the plain **count of penetrating pairs** is the strongest single
predictor of that criterion (r = -0.258). `assembly_fit` is already the lowest-scoring
diff --git a/harness/codeverse3d/skills/c3d-repeats-and-mirrors/references/instances.md b/harness/codeverse3d/skills/c3d-repeats-and-mirrors/references/instances.md
index 41e4d6fa..cb596abc 100644
--- a/harness/codeverse3d/skills/c3d-repeats-and-mirrors/references/instances.md
+++ b/harness/codeverse3d/skills/c3d-repeats-and-mirrors/references/instances.md
@@ -2,7 +2,7 @@
Everything here was read out of the live harness on 2026-08-25:
`codeverse3d/spatial/contract.py`, `codeverse3d/contracts/plan.py`,
-`codeverse3d/conventions.py`, `codeverse3d/tracks/plan_examples.py`,
+`codeverse3d/conventions.py`, `codeverse3d/tracks/planner.py`,
`codeverse3d/prompts/blender/cookbook.md`, and 2,121 gate reports under `bench/out`.
## 1. Exactly how the gate matches a name to a plan part
diff --git a/harness/codeverse3d/skills/c3d-scene-lighting/SKILL.md b/harness/codeverse3d/skills/c3d-scene-lighting/SKILL.md
index f9ac9489..ab1f7ed8 100644
--- a/harness/codeverse3d/skills/c3d-scene-lighting/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-scene-lighting/SKILL.md
@@ -82,9 +82,9 @@ linear 0.02 to 0.05 moves the frame from 0.08 to 0.20. Small increases pay near
* **The fill is the opposite hue from the key.** Hemisphere light is sky colour above,
ground bounce below; keep its colour at least 60 degrees of hue from the sun's. Warm key
plus warm fill is the monochrome-orange soup that gets marked down.
-* **Emissive is a material, not a light.** An emissive surface glows in the image and
- illuminates nothing — and the default pipeline renders without bloom, so it must look
- right unaided. Pair every lantern, window or fire with a small PointLight.
+* **Emissive is a material, not a light.** An emissive surface glows in the image (the
+ default post chain blooms it) and illuminates nothing. Pair every lantern, window or fire
+ with a small PointLight.
* **Fog colour is the sky's horizon colour**, never white or grey unless the brief says
overcast, and never a black background.
diff --git a/harness/codeverse3d/skills/c3d-scene-motion/SKILL.md b/harness/codeverse3d/skills/c3d-scene-motion/SKILL.md
index 30e262e3..304bd406 100644
--- a/harness/codeverse3d/skills/c3d-scene-motion/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-scene-motion/SKILL.md
@@ -106,8 +106,8 @@ planned animation was absent while the code for it sat in `src/`.
```js
export async function createScene({ THREE, renderer, loaders }) {
const scene = new THREE.Scene();
- const env = buildEnv(THREE, scene);
- const zones = [buildGrove(THREE, ctx), buildHarbour(THREE, ctx)];
+ const ctx = { THREE, scene, renderer, loaders }, env = buildEnv(ctx);
+ const zones = [buildGrove(ctx), buildHarbour(ctx)];
scene.add(...zones);
const movers = [env, ...zones].filter(Boolean);
return {
diff --git a/harness/codeverse3d/skills/c3d-threejs-forms/SKILL.md b/harness/codeverse3d/skills/c3d-threejs-forms/SKILL.md
index fa36a47c..44f26a8d 100644
--- a/harness/codeverse3d/skills/c3d-threejs-forms/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-threejs-forms/SKILL.md
@@ -5,7 +5,7 @@ license: Apache-2.0
compatibility: "static_object track, language threejs. three r182 ESM in node, exported to GLB by the harness. Imports that resolve: three, three/addons/*, relative files under src/."
metadata:
evidence: inherited-unverified
- evidence_note: "Zero graded threejs bench runs exist (bench/out/*/runs/*, checked 2026-08-25); the only recorded threejs run is runs/e2e_bench_threejs. Every API claim here is verified against codeverse3d/prompts/threejs/contract.md, codeverse3d/prompts/threejs/cookbook.md, codeverse3d/languages/threejs/lint.py and runtime_js/package.json, but the ADVICE has not been A/B'd on our corpus. Routed off unless C3D_SKILLS_UNVERIFIED=on; upgrade to measured when threejs reaches 20 graded runs."
+ evidence_note: "Zero graded threejs bench runs exist (bench/out/*/runs/*, checked 2026-08-25); the only recorded threejs run is runs/e2e_bench_threejs. Every API claim here is verified against codeverse3d/prompts/threejs/contract.md, codeverse3d/prompts/threejs/cookbook.md, codeverse3d/languages/threejs/__init__.py and runtime_js/package.json, but the ADVICE has not been A/B'd on our corpus. Routed off unless C3D_SKILLS_UNVERIFIED=on; upgrade to measured when threejs reaches 20 graded runs."
verified: "2026-08-25"
pairs_with: "c3d-part-contact, c3d-bbox-contract"
target_metric: "missing_parts"
@@ -85,7 +85,7 @@ in this language would not, because it does not exist.
1. **The file name is the export name.** `src/parts/seat_cushion.js` must
`export function buildSeatCushion(THREE)` — the lint derives the expected name
- from the file stem (`codeverse3d/languages/threejs/lint.py`). A misspelt name is
+ from the file stem (`codeverse3d/languages/threejs/__init__.py`). A misspelt name is
a WARN; no `build*` export in the file at all is an ERROR.
2. **A part file nobody imports ships nothing.** `src/object.js` must import each
part builder and add its Group to the root. An unimported `src/parts/*.js` is
diff --git a/harness/codeverse3d/skills/c3d-threejs-shader-traps/SKILL.md b/harness/codeverse3d/skills/c3d-threejs-shader-traps/SKILL.md
index 7324b1ef..68be7568 100644
--- a/harness/codeverse3d/skills/c3d-threejs-shader-traps/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-threejs-shader-traps/SKILL.md
@@ -20,9 +20,9 @@ metadata:
**When:** your scene builds a `THREE.ShaderMaterial` / `RawShaderMaterial`, or patches a built-in
material through `onBeforeCompile`, or `shader_preflight` said something.
-The GLSL recipes are in `codeverse3d/prompts/scene_threejs/glsl_cookbook.md` — start from its
-`makeShaderMaterial` and its 16 pitfalls. What follows is the part the cookbook does not say:
-**which of those pitfalls a gate will catch, at what severity, and which ones nothing catches.**
+In a scene workspace the GLSL boilerplate is `makeShaderMaterial(opts)` in `src/lib/shader.js` —
+start from it. What follows is the part it does not say:
+**which pitfalls a gate will catch, at what severity, and which ones nothing catches.**
## The detection map
@@ -82,7 +82,7 @@ mat.userData.update = (t) => { mat.uniforms.uTime.value = t; }; // driven from
keeps full contrast while everything around it recedes — the classic "cardboard cut-out in the
haze". Both the static pass and the runtime pass flag it, so it costs you two warnings.
-Three things are required together and the cookbook's `makeShaderMaterial` does all three:
+Three things are required together and `src/lib/shader.js`'s `makeShaderMaterial` does all three:
`fog: true` on the material, `THREE.UniformsLib.fog` merged into `uniforms`, and
`#include <fog_pars_fragment>` plus `#include <fog_fragment>` (fog **last** in `main`, after
tone mapping and colour space, matching three's own materials). For an additive glow, fade
@@ -101,13 +101,15 @@ Verified against this runtime on 2026-08-25 — believing them costs a repair ro
1. **"Always add the `logdepthbuf_*` chunks or your effect vanishes behind geometry."**
`runtime_js/lib/browser/renderer.js` takes `logDepth` and it **defaults to false**; the only
switch is `render_scene.mjs --log-depth`, and nothing in `codeverse3d/` ever passes it. So the
- logarithmic depth buffer is **off in every harness render**. Keep the cookbook's chunks —
- they compile to nothing without `USE_LOGDEPTHBUF` and would be needed if it were ever turned
- on — but they can never be the cause of what you are looking at. Do not spend a round there.
+ logarithmic depth buffer is **off in every harness render**. Keep the chunks
+ `makeShaderMaterial` injects — they compile to nothing without `USE_LOGDEPTHBUF` and would be
+ needed if it were ever turned on — but they can never be the cause of what you are looking at.
+ Do not spend a round there.
2. **"Guard against the GTAO / post-processing pass overriding your material."**
- There is no `EffectComposer`, no GTAO and no post-processing anywhere in `runtime_js`; the
- default pipeline renders straight to the canvas. The failure mode (instanced quads collapsing
- to the origin in the override-material pass) **cannot occur here**.
+ Object renders go straight to the canvas, but scene renders go through a post chain
+ (`runtime_js/lib/browser/post.js`: GTAO + an emissive bloom + a grade, on by default), and
+ GTAO draws with an override material — so in a scene the failure mode (instanced quads
+ collapsing to the origin in the override-material pass) **can occur**.
3. **"Patch chaining is safe."** It is not, and this one is real: `chunk_dropped` (WARN) fires
when a `.replace('#include <x>', ...)` does not put `#include <x>` back. Always prepend the
original include. Two differently patched `MeshStandardMaterial`s also share one compiled
@@ -119,10 +121,10 @@ Verified against this runtime on 2026-08-25 — believing them costs a repair ro
The gate proves your shader **compiles and is bound**. It says nothing about whether it is
*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. Nothing in the harness
-renders the scene without your shader to compare against, so look at the frames yourself:
-`scene_views` (or `render_views`) at two different times, and check that the thing you wrote
-changed something.
+program cache key, an effect placed outside every camera's frustum. Only `effect_ablation`
+(scenes) renders the scene without your shader to compare against; otherwise look at the
+frames yourself: `scene_views` (or `render_views`) at two different times, and check that the
+thing you wrote changed something.
Full audit source lines, the fix-hint texts, and a minimal citizen shader:
`references/shader-gate.md`.
diff --git a/harness/codeverse3d/skills/c3d-threejs-shader-traps/references/shader-gate.md b/harness/codeverse3d/skills/c3d-threejs-shader-traps/references/shader-gate.md
index 9da72885..012141d2 100644
--- a/harness/codeverse3d/skills/c3d-threejs-shader-traps/references/shader-gate.md
+++ b/harness/codeverse3d/skills/c3d-threejs-shader-traps/references/shader-gate.md
@@ -79,8 +79,8 @@ and only the static `chunk_dropped` rule protects you.
## 4. A minimal citizen shader
-Full boilerplate: `codeverse3d/prompts/scene_threejs/glsl_cookbook.md`, section "The boilerplate:
-makeShaderMaterial". The smallest thing that passes every rule above:
+Full boilerplate: `makeShaderMaterial(opts)` in `src/lib/shader.js` (scene workspaces). The
+smallest thing that passes every rule above:
```js
const VS = `
diff --git a/harness/codeverse3d/skills/c3d-urdf-joints/SKILL.md b/harness/codeverse3d/skills/c3d-urdf-joints/SKILL.md
index 15b03924..8e1ed1f4 100644
--- a/harness/codeverse3d/skills/c3d-urdf-joints/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-urdf-joints/SKILL.md
@@ -2,7 +2,7 @@
name: c3d-urdf-joints
description: "Use when authoring or repairing an articulated_object's src/robot.urdf - links, joints, axes, limits, clearances - or when joint_sweep fired. Also covers the rest pose in src/model.py, and applies on every repair round that reported joint_sweep or motion_direction. Explains which pose set the sweep gate tests, why a moved-pose overlap is always an ERROR, and the arithmetic that predicts which way positive q pushes a child before you write the axis."
license: Apache-2.0
-compatibility: track articulated_object, language urdf_blender. Constants read from codeverse3d/languages/urdf/runtime.py, codeverse3d/spatial/joints_sweep.py, joints_poses.py and codeverse3d/tracks/motion.py.
+compatibility: track articulated_object, language urdf_blender. Constants read from codeverse3d/languages/urdf/__init__.py, codeverse3d/spatial/joints_sweep.py, joints_poses.py and codeverse3d/tracks/articulated_object.py.
metadata:
evidence: measured
verified: "2026-08-25"
@@ -114,8 +114,8 @@ Two independent ways to get this wrong, and the corpus has both:
## How the plan's sentence becomes the expected direction
-`tracks/motion.py::expected_direction` parses the plan's `motion` text with a fixed precedence,
-and the gate is unforgiving about it:
+`tracks/articulated_object.py::expected_direction` parses the plan's `motion` text with a fixed
+precedence, and the gate is unforgiving about it:
* an explicit signed axis token anywhere in the text (`+y`, `-x`, ...) **wins immediately**;
* otherwise the first matching phrase wins ("pulls out" and "outward" mean `front`, "inward" and
diff --git a/harness/codeverse3d/skills/c3d-urdf-joints/references/sweep-and-motion.md b/harness/codeverse3d/skills/c3d-urdf-joints/references/sweep-and-motion.md
index deef55e3..566c38f1 100644
--- a/harness/codeverse3d/skills/c3d-urdf-joints/references/sweep-and-motion.md
+++ b/harness/codeverse3d/skills/c3d-urdf-joints/references/sweep-and-motion.md
@@ -1,8 +1,8 @@
# joint_sweep and motion_direction — depth
Read out of the live harness on 2026-08-25: `codeverse3d/spatial/joints_sweep.py`,
-`joints_poses.py`, `joints_model.py`, `codeverse3d/languages/urdf/runtime.py`,
-`codeverse3d/tracks/motion.py`, `codeverse3d/tracks/articulated_object.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
`bench/out` (26 `urdf_blender` runs, 50 judged rounds).
@@ -10,15 +10,15 @@ Read out of the live harness on 2026-08-25: `codeverse3d/spatial/joints_sweep.py
| constant | value | module | what it decides |
|---|---|---|---|
-| `FK_TOL_M` | 0.001 m | `languages/urdf/runtime.py` | build fails `FkInconsistent` above this |
-| `REST_PENETRATION_MAX_M` | 0.005 m | `languages/urdf/runtime.py` | build fails `RestPenetration` above this |
+| `FK_TOL_M` | 0.001 m | `languages/urdf/__init__.py` | build fails `FkInconsistent` above this |
+| `REST_PENETRATION_MAX_M` | 0.005 m | `languages/urdf/__init__.py` | build fails `RestPenetration` above this |
| `tol_m` | 0.002 m | `joints_sweep.sweep_collisions` | overlaps shallower than this are not reported |
| `rest_max_m` | 0.005 m | `joints_sweep.sweep_findings` | rest / rigid overlap: WARN below, ERROR above |
| `contact_gap_m` | 0.002 m (`CONTACT_GAP_M`) | `conventions.py` | a `fixed` child must be this close to its parent |
| `hinge_clearance_m` | 0.010 m | `joints_sweep` | a moving child must be this close to its parent |
| ERROR on attachment | gap over 0.030 m | `joints_sweep.sweep_findings` | `hinge_clearance_m * 3` |
| depth rounding | 0.1 mm | `joints_sweep` | float32 mesh coordinates carry no finer meaning |
-| random poses | 8, seed 0 | `languages/urdf/runtime.py` | only when more than one joint moves |
+| random poses | 8, seed 0 | `languages/urdf/__init__.py` | only when more than one joint moves |
| motion probe | limit of larger magnitude, capped at 0.35 rad | `joints_sweep.motion_direction_check` | prismatic uses the full limit |
| motion pass test | `cos(observed, expected) > 0.5` | same | a 60 degree cone |
@@ -122,7 +122,8 @@ physical crossbar."
+z / up / open_up (0, 0, 1) -z / down / open_down (0, 0, -1)
```
-`tracks/motion.py::expected_direction` maps the plan's prose onto those keys. Precedence:
+`tracks/articulated_object.py::expected_direction` maps the plan's prose onto those keys.
+Precedence:
1. Any of `-y +y -z +z -x +x` found as a whole token returns immediately.
2. Otherwise the longest matching phrase, in the module's fixed order. Phrases that mean