Skip to content

Official Codebase of 3DCodeVerse

Python

docs: RUN_LAYOUT.md is the one home of the run tree — ARCHITECTURE §3 and RUNBOOK §4 point to it

gaoypeng7572d4a779bf
diff --git a/harness/docs/ARCHITECTURE.md b/harness/docs/ARCHITECTURE.md
index 7aee3430..010a9db3 100644
--- a/harness/docs/ARCHITECTURE.md
+++ b/harness/docs/ARCHITECTURE.md
@@ -289,43 +289,12 @@ tests/ agents blender_cadquery core cost flywheel_cli gallery gra
(22 dirs; 2 077 offline, 1 950 of them pure python; the bench tests are ../eval/tests)
```
-## 3. Workspace layout (one run, as observed)
+## 3. Workspace layout
-```
-runs/<slug>/
- spec.json plan.json run_state.json record.json events.jsonl
- selection.json (after a pick) the round deliverable/ holds, how it was chosen, every round's score
- deliverable/ (after a pick) that round's code + artifacts + sheet + manifest.json (RUN_LAYOUT.md)
- src/ agent-authored RAW code (git repo; commits: spec, skeleton, pre:/agent:<label>, rNN <kind>)
- public/ (scene) compiled assets public/assets/<snake>.glb; (textured scenes) public/textures/*.png + manifest.json
- _assets/<snake>/ (scene) sub-workspaces for blender_glb assets (gitignored)
- _cand/c<k>/ (--candidates N) throw-away best-of-N sub-workspaces (gitignored, kept for the flywheel):
- each is a round of kind "candidate" — its own events.jsonl, rounds/r00.json, gates/,
- judge/r00.json (one-sample judge on quick_render views)
- stages/<name>.json rounds/rNN.json rounds/candidates.json rounds/aborted_rNN.json (a round the
- budget/a crash cut: what it burned, never resumed from)
- telemetry/cost.jsonl THE ledger: one row per metered call / CLI session, opened by BaseTrack.run — the
- only record of money (runs before 2026-09-22 also carry a root cost_ledger.jsonl
- and a telemetry/usage.jsonl symlink to it; nothing reads them)
- run_state.json status + stages + the run-level step log (steps); extra carries budget_snapshot (the clock's
- active seconds) and spec_fingerprint only — the round history is rounds/rNN.json + each
- round's commit alone (no copy since 2026-09-22)
- artifacts/ object.glb object.stl|step robot.urdf meshes/ build.json census.json
- measurement.json … — the LAST round's build; graphics: frames/fNN_tT.png frames_sheet.png
- preview.gif metrics.json; texturing (a pick's --texture): object_textured.glb
- textures/{<id>.png, texture_plan.json, texturing.json, gate/}
- rNN/ the round's own build, copied when it built: object.glb object.stl|step robot.urdf
- meshes/*.glb preview.gif frames_sheet.png (only what a hand-over needs)
- renders/rNN/ view_<name>.png sheet.png views.json (judge flags) (+ poses/ articulated; <cam>_t<t>.png metrics.json scenes;
- frame_t<t>.png metrics.json graphics — the round's own frame metrics, what a replay quotes)
- gates/rNN/ lint_<lang>.json connectivity.json contract.json joint_sweep.json motion_direction.json … (+ *_tool.json)
- judge/rNN.json (+ rNN_cli.json from `3dcode judge`; rAA_vs_rBB_pairwise.json from `3dcode pick --by pairwise`)
- tool_renders/rNN_<hash>/
- trajectories/<label>_rNN/ prompt.md transcript.jsonl stdout.json stderr.log result.json
- (+ gemini_settings.json · mcp.json (claude) · agy.log (agy's own CLI log));
- a retried label lands in <label>.a2_rNN — first attempt preserved
- AGENTS.md GEMINI.md CLAUDE.md .gemini/settings.json .3dcode/cookbook.md .geminiignore .aiexclude
-```
+One run is one directory, `runs/<slug>/`: `src/` is the code (git, one commit per round),
+`artifacts/` the last round's build plus every round's own `artifacts/rNN/`, and a pick
+writes `deliverable/` + `selection.json`. The full tree, the three buckets and the
+back-compatibility rules are in `docs/RUN_LAYOUT.md`, its one home.
## 4. Per-language authoring contracts (raw code; the harness owns export)
diff --git a/harness/docs/RUNBOOK.md b/harness/docs/RUNBOOK.md
index de463648..d8515338 100644
--- a/harness/docs/RUNBOOK.md
+++ b/harness/docs/RUNBOOK.md
@@ -112,16 +112,9 @@ round, then ≈ $0.36 / ~7 min per refine (give scenes `--max-minutes 60`).
## 4. Where outputs land
-`runs/<slug>/` (ARCHITECTURE §3). Code in `src/` (git; one commit per round), built
-artifacts in `artifacts/` (`object.glb`, `robot.urdf` + `meshes/`, scene
-`public/assets/*.glb`, graphics `frames/` + `frames_sheet.png` + `preview.gif` +
-`metrics.json`, texturing `object_textured.glb` + `textures/`), per-round renders in
-`artifacts/renders/rNN/`, gate JSON in `artifacts/gates/rNN/`, verdicts in
-`artifacts/judge/rNN.json`, transcripts in `trajectories/<label>_rNN/` (retries in
-`<label>.a2_rNN`), events in `events.jsonl`, the flywheel record in `record.json`. The tree
-and `artifacts/` end at the LAST round; every round's own built files stay in
-`artifacts/rNN/`, and after the run `deliverable/` + `selection.json` hold the round a pick
-handed over (RUN_LAYOUT.md). `3dcode status <slug>` prints the stop reason, baseline → picked
+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`; the full tree is
+`docs/RUN_LAYOUT.md`. `3dcode status <slug>` prints the stop reason, baseline → picked
score, the rounds table (the picked round starred, each round's own judge verdict), cost and
the last events.
diff --git a/harness/docs/RUN_LAYOUT.md b/harness/docs/RUN_LAYOUT.md
index b0f211f7..1678885a 100644
--- a/harness/docs/RUN_LAYOUT.md
+++ b/harness/docs/RUN_LAYOUT.md
@@ -10,26 +10,48 @@ three separate buckets:
| `evidence/` (= `artifacts/`) | **why should I believe it?** | every round's own build (`rNN/`), `renders/rNN/`, `gates/rNN/`, `judge/rNN.json`, `measurement.json`, `census.json`, `textures/`, `tool_renders/` |
| `telemetry/` | **what did it cost and how was it configured?** | `cost.jsonl` (the ledger), `settings.json`, `cost.json`, plus `events.jsonl`, `run_state.json`, `stages/`, `trajectories/` |
-The run's **identity** stays at the root, where every tool has always looked for it:
+The run's **identity** stays at the root, where every tool has always looked for it.
+This is the one full tree; every other doc points here:
```
runs/<slug>/
spec.json plan.json record.json identity: what was asked, planned, produced
selection.json which round deliverable/ holds and how it was chosen (after a pick)
- run_state.json events.jsonl (physical home; also linked from telemetry/)
- src/ live working tree (git; every round is a commit; ends at the LAST round)
- public/ (scene) compiled assets
+ run_state.json events.jsonl status + stages + the run-level step log (extra: budget_snapshot, the
+ clock's active seconds, and spec_fingerprint only — the round history is
+ rounds/rNN.json + each round's commit); the JSONL event log
+ src/ agent-authored RAW code, the live working tree (git; commits: spec, skeleton, pre:/agent:<label>
+ around every session, rNN <kind>; ends at the LAST round)
+ public/ (scene) compiled assets public/assets/<snake>.glb; (textured scenes) public/textures/*.png + manifest.json
deliverable/ (a) the hand-over — one round, written by a pick
evidence/ -> artifacts/ (b) the proof
- artifacts/ the last round's build, rNN/ (each round's own), renders/ gates/ judge/ measurement.json …
+ artifacts/ the LAST round's build: object.glb object.stl|step robot.urdf meshes/ build.json census.json
+ measurement.json …; graphics: frames/fNN_tT.png frames_sheet.png preview.gif metrics.json;
+ texturing (a pick's --texture): object_textured.glb textures/{<id>.png, texture_plan.json,
+ texturing.json, gate/}
+ rNN/ each round's own build, copied when it built (below)
+ renders/rNN/ view_<name>.png sheet.png views.json (judge flags) (+ poses/ articulated; <cam>_t<t>.png
+ metrics.json scenes; frame_t<t>.png metrics.json graphics — the round's own frame metrics)
+ gates/rNN/ lint_<lang>.json connectivity.json contract.json joint_sweep.json motion_direction.json … (+ *_tool.json)
+ judge/rNN.json (+ rNN_cli.json from `3dcode judge`; rAA_vs_rBB_pairwise.json from `3dcode pick --by pairwise`)
+ tool_renders/rNN_<name>/
telemetry/ (c) the accounting
cost.jsonl settings.json cost.json
events.jsonl -> ../events.jsonl
run_state.json -> ../run_state.json
stages -> ../stages
trajectories -> ../trajectories
- stages/ rounds/ trajectories/ physical homes (unchanged)
- _assets/ _cand/ AGENTS.md GEMINI.md CLAUDE.md .gemini/settings.json …
+ stages/<name>.json each cached pre-round stage's result (keyed, ARCHITECTURE §7.1)
+ rounds/rNN.json rounds/candidates.json the round journal; best-of-N's summary (= record.extra["candidates"])
+ rounds/aborted_rNN.json a round the budget or a crash cut: what it burned, never resumed from
+ rounds/pre_force/ the journal + record.json `resume --force` archived (then pre_force_2/ …)
+ trajectories/<label>_rNN/ prompt.md transcript.jsonl stdout.json stderr.log result.json (+ gemini_settings.json
+ · mcp.json (claude) · agy.log); a retried label lands in <label>.a2_rNN
+ _assets/<snake>/ (scene) sub-workspaces for blender_glb assets (gitignored)
+ _cand/c<k>/ (--candidates N) best-of-N sub-workspaces (gitignored, kept for the flywheel):
+ each is a round of kind "candidate" — its own events.jsonl, rounds/r00.json,
+ gates/, judge/r00.json (one-sample judge on quick_render views)
+ AGENTS.md GEMINI.md CLAUDE.md .gemini/settings.json .3dcode/cookbook.md .geminiignore .aiexclude
```
## Why the aliases point that way