Official Codebase of 3DCodeVerse
Python
law 4: the file-length rule is a 1 500-line cap, not the ~400-line guideline (owner, 2026-08-26)
gaoypeng937dca8d13d0
diff --git a/harness/CLAUDE.md b/harness/CLAUDE.mdindex 7a12b229..4a009946 100644--- a/harness/CLAUDE.md+++ b/harness/CLAUDE.md@@ -22,7 +22,8 @@ score-vs-complexity corpus study) before changing anything.place that states frames/units/naming. Import, never restate.3. Deterministic gates/measurements run by the harness; VLM only for perception.Score is computed in code from rubric weights; caps/floors are explicit.-4. Typed everything; no regex-on-id control flow; no god files (≤ ~400 lines).+4. Typed everything; no regex-on-id control flow; a file may be long but not a god file —+ hard cap **1 500 lines** per file (owner's rule, 2026-08-26; the old ~400-line guideline is gone).5. Cheap first: lint → build → gates → montaged views → VLM. Budgets are hard.6. Every round = a git commit of `src/`; every call = a `Usage`; every run = `record.json`.7. No wrapper re-centres or grounds the object: export **as authored**, warn in thediff --git a/harness/docs/ARCHITECTURE.md b/harness/docs/ARCHITECTURE.mdindex 45f789f7..648d50e4 100644--- a/harness/docs/ARCHITECTURE.md+++ b/harness/docs/ARCHITECTURE.md@@ -51,7 +51,7 @@ the flywheel unit.5. **Evidence-based acceptance.** Every plan carries an acceptance checklist;items are proved by measurements/probes/judge votes, not prose.6. **Typed everything.** One contracts package; no regex-on-id control flow, no- stringly-typed dicts, no god files (≤ ~400 lines).+ stringly-typed dicts, no god files (hard cap 1 500 lines per file; owner's rule 2026-08-26).7. **Cheap first.** Lint → build → deterministic gates → montaged views → VLM.8. **Separate generator from judge.** The judge sees spec + renders +measurements + acceptance list; never the generator's reasoning.@@ -441,7 +441,7 @@ $0.02–0.03 (flash) / ~$0.2 (pro); api-agent generation 3–6 min per object ro* Gemini flash 503 storms happen; dead keys and 429s rotate freely now, but asustained outage can still fail a round (`3dcv resume` re-uses cached stages).* `ffmpeg` absent here → turntables fall back to GIF. A few single-file wrappers- exceed the ~400-line guideline by design.+ were once over the old ~400-line guideline; the rule is now a 1 500-line cap.## 11. Flywheeldiff --git a/harness/docs/DECISIONS.md b/harness/docs/DECISIONS.mdindex 994a995a..bffc202a 100644--- a/harness/docs/DECISIONS.md+++ b/harness/docs/DECISIONS.md@@ -16,7 +16,7 @@ written) that were accepted because the code works that way and the tests pin it`check_contract` converts to the GLB frame (Y-up) using `LANGUAGE_FRAME`.* **L3 Deterministic first, VLM for perception only.** Score is computed in codefrom rubric weights; floors and caps are explicit; degraded verdicts are glitches.-* **L4 Typed, no regex-on-id, no god files.** Files ≤ ~400 lines; two wrappers+* **L4 Typed, no regex-on-id, no god files.** Files ≤ 1 500 lines (owner, 2026-08-26 — was ~400); two wrappersexceed it by design (`run_bpy.py` 418, `scene_host.mjs` 426).* **L5 Cheap first.** Lint → build → gates → montaged views → VLM. `build` toolskips the build when lint has ERRORs.