Skip to content

Official Codebase of 3DCodeVerse

Python

docs: counts and the flat C3D_ names keep one home — the effect library's line counts had drifted

gaoypeng5984c6e19295
diff --git a/harness/docs/ARCHITECTURE.md b/harness/docs/ARCHITECTURE.md
index 59dccfa4..544587f4 100644
--- a/harness/docs/ARCHITECTURE.md
+++ b/harness/docs/ARCHITECTURE.md
@@ -77,9 +77,8 @@ codeverse3d/
contracts Backends; Settings.backends(**overrides) builds a Spec's Backends;
default_candidates=1). ONE switch grammar: every C3D_* knob is a field, read
through get_settings() where it is used — no module reads the environment by
- hand; an on/off switch is a Flag (on/off/1/0/true/false/yes/no; a typo warns
- and keeps the default), Settings.FLAT holds the four flat spellings of nested
- knobs (C3D_MAX_IN_FLIGHT, C3D_RENDER_GPU, C3D_SEED_RECIPES, C3D_AGENT_MAX_TURNS)
+ hand; an on/off switch is a Flag, Settings.FLAT holds the flat spellings of
+ nested knobs (the grammar and the names: docs/INSTALL.md §8.3)
contracts/ pydantic: common (Track, Language, Usage, Budget, Backends, TRACK_INFO registry,
ENTRY_FILE/code_file/LANGUAGE_LABEL tables), spec (+ RunOptions), plan, artifacts
(GateFinding.as_line, GateReport.of, BuildResult.gates, RenderView.judge,
@@ -335,11 +334,10 @@ summary:
* **scene_threejs**: `src/scene.js` `createScene({THREE, renderer, loaders}) → {scene, cameras, update(t,dt)}`;
`src/env.js`, `src/zones/*.js`, `src/assets/*.js`, `src/shaders/*.js`; GLBs at
`public/assets/<name>.glb`. The harness assembles `scene.js` deterministically.
- Plus the harness-owned, read-only **effect library** `src/lib/*.js` — 44 modules,
- 24.8k lines, shipped into every workspace by BOTH skeleton paths and listed in
- `HARNESS_OWNED_SRC` so agent writes to it are reverted (D51). The starter tree is
- therefore 52 `.js` files / 25.2k lines, of which 8 are the example scene. The
- want → call table the prompts carry is `prompts/scene_threejs/effects_catalog.md`.
+ Plus the harness-owned, read-only **effect library** `src/lib/*.js` — 44 modules
+ (~24k lines; the starter's other `.js` files are the example scene), shipped into every
+ workspace by BOTH skeleton paths and listed in `HARNESS_OWNED_SRC` so agent writes to it
+ are reverted (D51). The want → call table the prompts carry is `prompts/scene_threejs/effects_catalog.md`.
* **glsl_shader**: `src/shader.frag` (+ optional `src/common.glsl`,
`src/buffer_a.frag` for feedback; the harness-owned, read-only `src/recipes.glsl`
is pasted above them when the track seeded recipes) — the agent never writes
diff --git a/harness/docs/INTERFACES.md b/harness/docs/INTERFACES.md
index 077f76d5..7f1c5d78 100644
--- a/harness/docs/INTERFACES.md
+++ b/harness/docs/INTERFACES.md
@@ -217,7 +217,7 @@ session may read but never write — `contracts.common.HARNESS_OWNED_SRC[languag
sets it on every job of the run and `agents/cli_common._enforce_scope` reverts a
post-session write to one and fails that session. **Δ** an entry ending in `/` is a
DIRECTORY prefix — `contracts.common.is_harness_owned(rel, owned)` is the predicate, and
-it is what names the 44-module effect library without listing 44 paths).
+it is what names the effect library without listing every module).
Each session writes `trajectories/<label>_rNN/` (files: docs/RUN_LAYOUT.md); **Δ** a re-run of the
same label+round lands in `<label>.a2_rNN` (then `.a3` …) — the first attempt is never overwritten;
`result.json` records `attempt` + `job_label`. Each session makes two git commits (`pre:`/`agent:<label>`).
@@ -387,7 +387,7 @@ Observation{ok: VERDICT, failed: the tool could not run, text, numbers, images,
# and no console error — with one it is a verdict)
from codeverse3d.spatial.mcp_server import observation_content, max_images_for, MAX_TEXT_CHARS
# payload bound at the MCP boundary: text truncated; images 4 (ok) | 1 (FAIL verdict) | 0 (failed)
-import codeverse3d.spatial.tools # registers the 16 tools (the list and their tracks: docs/ARCHITECTURE.md §5)
+import codeverse3d.spatial.tools # registers every tool (the list and their tracks: docs/ARCHITECTURE.md §5)
python -m codeverse3d.spatial.mcp_server --workspace <ws> [--track X] [--language Y] [--round N] [--list] # MCP name: 3dcode
```
diff --git a/harness/docs/RUN_LAYOUT.md b/harness/docs/RUN_LAYOUT.md
index 1678885a..e9fc78bb 100644
--- a/harness/docs/RUN_LAYOUT.md
+++ b/harness/docs/RUN_LAYOUT.md
@@ -195,7 +195,7 @@ judge verdicts and events already on disk. Its STATUS section needs no `record.
also reads a run in flight (the other three sections wait for the record).
For the money itself across many runs — waste, $ per run, price provenance — use the cost
-package's own command, `3dcode cost show <runs-dir>`.
+package's own command, `3dcode cost --runs-dir <root>`.
`3dcode show` is the single-run view; both read the same ledger rows.
## Back-compatibility contract