Official Codebase of 3DCodeVerse
Python
docs: stop presenting deleted machinery as current
gaoypenga2b2c6327450
diff --git a/harness/docs/COST.md b/harness/docs/COST.mdindex f8031815..47d0aa2b 100644--- a/harness/docs/COST.md+++ b/harness/docs/COST.md@@ -431,8 +431,7 @@ out not to pay.* **`MeteredChatModel`** wraps everything `models.get_chat_model` hands out, so one`CallCost` row is appended per `ChatModel.generate` — planner, judges,- captioner, texturing, single-shot generation **and every turn of the in-process- api-agent**.+ captioner, texturing and single-shot generation.* **`MeteredAgent`** wraps everything `agents.get_coding_agent` hands out: it setsthe ambient round/stage for the session (so the rows above land in the rightbucket), applies whatever turn cap the settings name (only ever *lowering*@@ -447,8 +446,8 @@ out not to pay.model — a texture pass, a captioner — looked metered, so its session row wasdropped and **$1.23 of the reproduction vanished**; and an in-process sessionwhose turns ran in a worker thread looked unmetered and was counted **twice**.- `IN_PROCESS_AGENT_KINDS = {"api-agent"}` (or a backend's own- `meters_own_calls` attribute) decides it now, and+ a backend's own `meters_own_calls` attribute decides it now (every shipped+ backend is a vendor CLI, so none sets it), and`tests/cost/test_instrument.py` pins both directions.**Attribution.** A call is filed under what *it* says it is, not under what@@ -457,8 +456,8 @@ label that names a job of its own (`judge:…`, `planner`, `texture_gate`,`caption…`, `pairwise:…`), then the ambient agent session. A spatial tool thatbills a model inside a refine session used to land on `stage=refine /role=generator`; it now lands on its own stage. A *generation* label still yields-to the session, which knows more (best-of-N runs `job.kind="candidate"` while its-turns are labelled `api-agent:baseline:tN`).+to the session, which knows more (best-of-N runs `job.kind="candidate"` while the retired api-agent's+recorded turns were labelled `api-agent:baseline:tN`).**Who opens a ledger.** `3dcv make` / `3dcv resume` (`cli.main._run_track`),`3dcv texture pass` (with `create=False`), **and the bench drivers** —diff --git a/harness/docs/EVAL.md b/harness/docs/EVAL.mdindex c1b9a870..2bba95cb 100644--- a/harness/docs/EVAL.md+++ b/harness/docs/EVAL.md@@ -54,7 +54,7 @@ deterministic contract check.```bash3dcv bench run bench/prompts/static_objects_v1.yaml \- --generator gemini-cli:gemini-3.6-flash --judge gemini:gemini-3.1-pro-preview \+ --generator gemini-cli:gemini-3.7-flash --judge gemini:gemini-3.1-pro-preview \--rounds 2 --parallel 4 --out bench/out/static_v1_apiagent3dcv bench run bench/prompts/static_objects_v1.yaml --generator gemini-cli:gemini-3.7-flash --judge gemini:gemini-3.1-pro-preview --out bench/out/static_v1_gemcli3dcv bench report bench/out/static_v1_apiagentdiff --git a/harness/docs/INTERFACES.md b/harness/docs/INTERFACES.mdindex f1c6f5e1..177d4271 100644--- a/harness/docs/INTERFACES.md+++ b/harness/docs/INTERFACES.md@@ -268,7 +268,7 @@ from codeverse.spatial.frame_stats import sequence_stats, frame_gate # gate "from codeverse.spatial.registry import tool, get_tool, list_tools, tool_cards, ToolContext, Observationimport codeverse.spatial.tools # registers: build, measure, render_views, render_sheet, isolate, cross_section,# check_connectivity, check_contract, compare_silhouette, joint_sweep [articulated], shader_probe, scene_probe,- # scene_views + check_placement [scene], read_cookbook, gl_probe + gl_frames [graphics], texture_pass + texture_preview [object tracks]+ # scene_views + check_placement [scene], gl_probe + gl_frames [graphics], texture_pass + texture_preview [object tracks]python -m codeverse.spatial.mcp_server --workspace <ws> [--track X] [--language Y] [--round N] [--list] # MCP name: 3dcv```@@ -355,9 +355,9 @@ from codeverse.tracks.static_object import drift_gate, detail_instructions, DRIF# ERROR when a detail round moved/resized/removed a part or changed the overall extents (tol from policy)from codeverse.tracks.prompting import base_prompt_context, reference_images, file_for_target_factory, \scope_context, budget_for, detail_budget_text # Δ split out of-from codeverse.tracks.prompting import select_cookbook_chapters, select_cookbook_excerpt, is_always_chapter+from codeverse.tracks.prompting import select_cookbook_chapters, is_always_chapter# select_cookbook_chapters(ctx, brief, *, budget=9000, always=COOKBOOK_ALWAYS) -> list[Section]: the header +- # always-on chapters + the brief's chapters (whole, cookbook order, inside budget); the excerpt joins them+ # always-on chapters + the brief's chapters (whole, cookbook order, inside budget)from codeverse.tracks.graphics_recipes import seed_recipes, graphics_brief, cookbook_functions, EXTRA_KEY, RECIPES_REL# seed_recipes(ctx) -> list[str]: glsl_shader + seed_recipes_enabled() only. Writes the selected chapters'# function definitions (minus always-on chapters and the raymarching template) + the helpers they call todiff --git a/harness/docs/RUNBOOK.md b/harness/docs/RUNBOOK.mdindex 22ea6986..d7494aa9 100644--- a/harness/docs/RUNBOOK.md+++ b/harness/docs/RUNBOOK.md@@ -74,9 +74,8 @@ round, then ≈ $0.36 / ~7 min per refine (give scenes `--max-minutes 60`).| id | what runs | notes ||---|---|---|-| `gemini-cli:gemini-3.6-flash` (default) | in-process tool loop with file tools + every spatial tool | cheapest agentic path; the only backend whose transcripts feed repair-pair mining |+| `gemini-cli:gemini-3.7-flash` (default) | `gemini -p … --approval-mode yolo --skip-trust --output-format json`; every spatial tool over MCP | cheapest agentic path; transcripts feed repair-pair mining; see gotchas below || `single-shot:gemini:gemini-3.7-flash` | one structured-output call → multi-file envelope, no tools | fastest/cheapest; baseline for "raw model" deltas |-| `gemini-cli:gemini-3.7-flash` | `gemini -p … --approval-mode yolo --skip-trust --output-format json` | see gotchas below || `claude-code:<model>` | `claude -p … --dangerously-skip-permissions --mcp-config trajectories/<label>_rNN/mcp.json --strict-mcp-config …` | local subscription — test lightly || `codex:<model>[@<effort>]` | `codex exec --json -C ws --sandbox workspace-write -c model_reasoning_effort=high … -c mcp_servers.3dcv.…` | subscription; MCP tools need `default_tools_approval_mode="approve"` (harness passes it); reasoning effort is always stated (`Settings.agents.codex_reasoning_effort`, default `high`; `codex:gpt-5.6-sol@medium` per id, `""` to defer to `~/.codex/config.toml`) || `agy:<model>` | `agy --print … --add-dir ws` | no per-workspace MCP: tools via `3dcv tools <name> --json … --workspace .`; no served-model or cost reporting |@@ -184,7 +183,7 @@ call the `texture_pass` / `texture_preview` tools mid-session.--judge gemini:gemini-3.1-pro-preview --rounds 2 --parallel 4 [--tier easy] [--id furn_easy_stool] [--limit 6] [--out bench/out/x]3dcv bench report bench/out/static_objects_v1 # report.md + self-contained report.html (gallery)python bench/compare_backends.py --prompts bench/prompts/compare_v1.yaml \- --arms harness:gemini-cli:gemini-3.6-flash,oneshot:claude-code --judge gemini:gemini-3.1-pro-preview --out bench/out/compare_v1+ --arms harness:gemini-cli:gemini-3.7-flash,oneshot:claude-code --judge gemini:gemini-3.1-pro-preview --out bench/out/compare_v1```Results stream to `results.jsonl` (resumable). Batteries: `static_objects_v1` (24),`articulated_v1` (12), `scenes_v1` (12), `compare_v1` (8, harness-vs-one-shot).@@ -249,7 +248,7 @@ model, produced the zero — check `cell.json`'s `error`).it up).* **New spatial tool**: pydantic args + `@tool("name", Args, "…", tracks=(…),languages=(…), cost_hint=…)` in `spatial/tools*.py` (imported from- `spatial/tools.py`); available to tracks, MCP, api-agent and prompt cards at once.+ `spatial/tools.py`); available to tracks, MCP and prompt cards at once.Update `tests/spatial_tools` EXPECTED_TOOLS.* **New rubric**: `judges/rubrics/<name>.yaml` with `pass_threshold`,`criteria[{id, weight, floor, title, description, anchors, kind}]`,diff --git a/harness/docs/SKILLS_LEDGER.md b/harness/docs/SKILLS_LEDGER.mdindex 63dc9dd1..05ac369b 100644--- a/harness/docs/SKILLS_LEDGER.md+++ b/harness/docs/SKILLS_LEDGER.md@@ -258,6 +258,8 @@ it lands these four rows stay `mixed`, not `measured`.* **`telemetry.record_exact_read` is wired to `read_file` only** (`agents/api_agent.py`), so`read_skill` — api-agent's actual read channel — never reaches `skill_reads.jsonl`. Oneline in `SkillTools.read_skill` makes `3dcv skills report` truthful without atime.+ *(Moot since 2026-08-28: the api-agent and its `read_skill` channel were deleted with it;+ vendor-CLI reads go through the filesystem and leave no exact-read channel to wire.)** **`scene_frames/content_*` has no classified kind.** Frame coverage is half of what`cv3d-scene-composition` teaches; it neither routes nor counts. Left alone deliberately:adding a kind widens routing, which is an effect claim needing its own evidence.