Skip to content

Official Codebase of 3DCodeVerse

Python

rename: one name family — package codeverse → codeverse3d, prefix CV3D_ → C3D_, skills cv3d-* → c3d-*, config files → 3dcodeverse (D78)

gaoypeng7a7f820805c2
diff --git a/README.md b/README.md
index 91d90893..5e6d3bd1 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ training corpora; and a finetuning study that trains open models on that data.
## [`harness/`](harness/) — the generation harness
-Python dist `3dcodeverse` (import `codeverse`, CLI `3dcodeverse` / `3dcode`).
+Python dist `3dcodeverse` (import `codeverse3d`, CLI `3dcodeverse` / `3dcode`).
LLMs write raw 3D code across four tracks — `static_object` ·
`articulated_object` · `scene` · `graphics` — in seven languages; the harness
owns everything around the code: typed plans, deterministic gates
diff --git a/eval/README.md b/eval/README.md
index e10ade4c..5bf9ca96 100644
--- a/eval/README.md
+++ b/eval/README.md
@@ -9,13 +9,13 @@
comparison), `COMPLEXITY.md` (the complexity vector and the score-vs-complexity study),
`PAPER_WRITING.md`. `tests/` tests the `bench` scripts.
-The dependency is one-way: `bench` and `llm` import `codeverse` (the harness package); nothing under
+The dependency is one-way: `bench` and `llm` import `codeverse3d` (the harness package); nothing under
`harness/` imports anything here, and the harness test suite passes without this folder. The two
evaluations share one set of battery files — `bench/prompts/*.yaml` — and `llm` reads the ten it can
ask one-shot from there (`llm/config.py: HARNESS_BATTERIES`).
```bash
-pip install -e ../harness # once; both evaluations import codeverse
+pip install -e ../harness # once; both evaluations import codeverse3d
cd eval
3dcode bench run bench/prompts/static_objects_v1.yaml --generator gemini-cli:gemini-3.7-flash
python bench/compare_backends.py --prompts bench/prompts/compare_v1.yaml --arms harness:gemini-cli:gemini-3.7-flash,oneshot:gemini:gemini-3.7-flash --out bench/out/compare_v1
@@ -26,6 +26,6 @@ ruff check .
Run data is never in git: `bench/out/` (battery output) and `llm/data/prompts/*.jsonl` (built by
`python -m llm.build_prompts` from the gated Hub assets) are ignored. Every `bench` script bootstraps
-its own import path — `../harness` for THIS tree's `codeverse`, `.` for the `bench` package — so an
+its own import path — `../harness` for THIS tree's `codeverse3d`, `.` for the `bench` package — so an
editable install of a different checkout cannot silently stand in for the tree under test
(`tests/test_worktree_import.py`).
diff --git a/eval/bench/_compare_report.py b/eval/bench/_compare_report.py
index c35b5cbe..4c610f01 100644
--- a/eval/bench/_compare_report.py
+++ b/eval/bench/_compare_report.py
@@ -19,7 +19,7 @@ from pydantic import BaseModel, Field
from bench._fixed_eval import RUBRIC, rubric_for
from bench._jsonl import read_jsonl
-from codeverse.contracts.common import Track
+from codeverse3d.contracts.common import Track
T = TypeVar("T", bound=BaseModel)
diff --git a/eval/bench/_fixed_eval.py b/eval/bench/_fixed_eval.py
index 2773a419..29a08246 100644
--- a/eval/bench/_fixed_eval.py
+++ b/eval/bench/_fixed_eval.py
@@ -17,13 +17,19 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.config import Settings, get_settings
-from codeverse.contracts.artifacts import BuildResult, GateReport, Judgment, Measurement, RenderSet
-from codeverse.contracts.common import TRACK_INFO, Language, Track
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.contracts.spec import Spec
-from codeverse.conventions import OBJECT_VIEWS
-from codeverse.workspace import Workspace
+from codeverse3d.config import Settings, get_settings
+from codeverse3d.contracts.artifacts import (
+ BuildResult,
+ GateReport,
+ Judgment,
+ Measurement,
+ RenderSet,
+)
+from codeverse3d.contracts.common import TRACK_INFO, Language, Track
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.conventions import OBJECT_VIEWS
+from codeverse3d.workspace import Workspace
RUBRIC = "static_object_v1"
@@ -91,7 +97,7 @@ class FixedEvaluator:
"""
lang = Language(language)
if lang not in self._runtimes:
- from codeverse.languages import get_runtime
+ from codeverse3d.languages import get_runtime
self._runtimes[lang] = get_runtime(lang)
return self._runtimes[lang]
@@ -103,7 +109,7 @@ class FixedEvaluator:
def _vlm_judge(self, rubric: str) -> Any:
if rubric not in self._judges:
- from codeverse.judges.vlm_judge import VlmJudge
+ from codeverse3d.judges.vlm_judge import VlmJudge
self._judges[rubric] = VlmJudge(rubric=rubric, model_id=self.judge_model, n_samples=self.n_samples)
return self._judges[rubric]
@@ -123,7 +129,7 @@ class FixedEvaluator:
"""
rubric = self.rubric if self._pinned else rubric_for(spec)
if spec.track is Track.GRAPHICS and spec.references:
- from codeverse.judges.vlm_judge import LikenessJudge
+ from codeverse3d.judges.vlm_judge import LikenessJudge
return LikenessJudge(self.judge_model, n_samples=self.n_samples, rubric=rubric)
return self._vlm_judge(rubric)
@@ -135,10 +141,10 @@ class FixedEvaluator:
return build, lint
def evaluate(self, ws: Workspace, spec: Spec) -> EvalOutcome:
- from codeverse.judges.base import JudgeInput
- from codeverse.spatial.connectivity import check_connectivity
- from codeverse.spatial.measure import measure_glb
- from codeverse.spatial.render import render_glb
+ from codeverse3d.judges.base import JudgeInput
+ from codeverse3d.spatial.connectivity import check_connectivity
+ from codeverse3d.spatial.measure import measure_glb
+ from codeverse3d.spatial.render import render_glb
build, lint = self.build(ws, spec.language)
out = EvalOutcome(build=build, lint=lint, gates=[lint])
@@ -158,7 +164,7 @@ class FixedEvaluator:
# the same deterministic articulation evidence the track gives its judge: the
# joint sweep (collisions over every joint's range) and the pose sheet / pose
# tiles, read straight from the built URDF — no plan, so every arm is treated alike
- from codeverse.tracks.articulated_object import default_joint_sweep
+ from codeverse3d.tracks.articulated_object import default_joint_sweep
sweep, pose_views = default_joint_sweep(ws, None, ws.renders_dir(0) / "poses")
out.gates.append(sweep)
@@ -176,9 +182,9 @@ class FixedEvaluator:
"""Scene: the authored cameras plus the orbit rig at t = 0 and 1.5 s, the scene_frames gate,
the scene rubric — the pictures the loop's judge sees, minus the loop's plan (2026-09-07:
the compare bench had no scene branch, so a scene cell built, then returned unjudged)."""
- from codeverse.judges.base import JudgeInput
- from codeverse.spatial.frame_metrics import frame_gate_from_renders
- from codeverse.spatial.render_scene import render_scene
+ from codeverse3d.judges.base import JudgeInput
+ from codeverse3d.spatial.frame_metrics import frame_gate_from_renders
+ from codeverse3d.spatial.render_scene import render_scene
try:
out.renders = render_scene(ws, ws.renders_dir(0), orbit=True, times=(0.0, 1.5), sheet=True)
out.gates.append(frame_gate_from_renders(ws.renders_dir(0)))
@@ -191,9 +197,9 @@ class FixedEvaluator:
def _evaluate_frames(self, ws: Workspace, spec: Spec, out: EvalOutcome) -> EvalOutcome:
"""Graphics: the judged frames + the gl_frames gate + the frame metrics, as the loop does."""
- from codeverse.judges.base import JudgeInput
- from codeverse.languages._gl_common import read_metrics
- from codeverse.tracks.graphics import frame_stats_text, frames_render_set
+ from codeverse3d.judges.base import JudgeInput
+ from codeverse3d.languages._gl_common import read_metrics
+ from codeverse3d.tracks.graphics import frame_stats_text, frames_render_set
try:
out.renders = frames_render_set(ws, out.build, 0)
diff --git a/eval/bench/_jsonl.py b/eval/bench/_jsonl.py
index 01e86483..f7730f83 100644
--- a/eval/bench/_jsonl.py
+++ b/eval/bench/_jsonl.py
@@ -9,7 +9,7 @@ battery could not be resumed *at all* and its already-paid rows could not even b
reported — the operator had to hand-edit ``results.jsonl`` or re-buy the battery.
Skip the bad line, keep the rest, say so once — the same contract
-``codeverse.cost.ledger.load_ledger`` has always had ("a truncated last line never
+``codeverse3d.cost.ledger.load_ledger`` has always had ("a truncated last line never
loses the rest of the file").
"""
@@ -21,7 +21,7 @@ from typing import TypeVar
from pydantic import BaseModel
-from codeverse.proc import iter_jsonl_lines
+from codeverse3d.proc import iter_jsonl_lines
log = logging.getLogger(__name__)
diff --git a/eval/bench/_oneshot.py b/eval/bench/_oneshot.py
index 3ff9c2cf..5c397727 100644
--- a/eval/bench/_oneshot.py
+++ b/eval/bench/_oneshot.py
@@ -15,7 +15,7 @@ Backends (``get_oneshot_backend``):
* ``codex`` / ``codex:<model>[@<effort>]`` — ``codex exec`` read-only sandbox, JSONL
events, ``-c model_reasoning_effort=`` (default ``high``, see
``Settings.agents.codex_reasoning_effort``) (subscription; model default when none given).
-* ``gemini:<m>`` / ``anthropic:<m>`` / ``openai:<m>`` — ``codeverse.models``
+* ``gemini:<m>`` / ``anthropic:<m>`` / ``openai:<m>`` — ``codeverse3d.models``
chat model, one ``ChatRequest``.
Every call runs in a scratch directory *outside* the repository so the CLIs
@@ -36,23 +36,23 @@ from typing import Any, Protocol
from pydantic import BaseModel, Field
from bench._infra import is_infra_failure
-from codeverse.agents.backends import (
+from codeverse3d.agents.backends import (
effort_overrides,
parse_claude_json,
parse_codex_jsonl,
split_model_effort,
usage_from_envelope,
)
-from codeverse.agents.cli_common import is_secret_env, run_with_watchdog, tail
-from codeverse.config import get_settings
-from codeverse.contracts.artifacts import BuildResult, GateReport
-from codeverse.contracts.chat import ChatMessage, ChatRequest
-from codeverse.contracts.common import ENTRY_FILE, Language, Usage
-from codeverse.contracts.spec import Spec
-from codeverse.conventions import LANGUAGE_FRAME, frame_doc
-from codeverse.tracks.generation import MultiFileParseError, parse_multifile
-from codeverse.tracks.repair import format_error_report
-from codeverse.workspace import Workspace
+from codeverse3d.agents.cli_common import is_secret_env, run_with_watchdog, tail
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.artifacts import BuildResult, GateReport
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest
+from codeverse3d.contracts.common import ENTRY_FILE, Language, Usage
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.conventions import LANGUAGE_FRAME, frame_doc
+from codeverse3d.tracks.generation import MultiFileParseError, parse_multifile
+from codeverse3d.tracks.repair import format_error_report
+from codeverse3d.workspace import Workspace
MODEL_FILE = "src/model.py"
URDF_FILE = "src/robot.urdf"
@@ -87,7 +87,7 @@ _OUTPUT_RULE = (f"You have NO tools in this session: you cannot write files, run
f"```python fenced code block and nothing else (no prose before or after, no partial snippets).")
#: The URDF (track articulated_object, language urdf_blender) minimal contract: the SAME
-#: bpy rules for the link meshes plus the frame recipe of codeverse/prompts/urdf/contract.md
+#: bpy rules for the link meshes plus the frame recipe of codeverse3d/prompts/urdf/contract.md
#: (D18) condensed to its rules — no worked example, no cookbook, no skeleton: the one-shot
#: arm gets what a careful reader of the contract would know, nothing the harness builds.
_URDF_CONTRACT_BODY = """You write TWO files.
@@ -136,7 +136,7 @@ _OUTPUT_RULE_URDF = (f"You have NO tools in this session: you cannot write files
#: The GLSL (track graphics, language glsl_shader) minimal contract: what the harness prepends
-#: and expects, condensed from codeverse/prompts/glsl_shader/contract.md — no cookbook, no
+#: and expects, condensed from codeverse3d/prompts/glsl_shader/contract.md — no cookbook, no
#: recipes file, no frame-metric self-check.
_GLSL_CONTRACT_BODY = """You write ONE file, `{shader_file}`: the BODY of a Shadertoy-style fragment shader (GLSL 330 core).
The harness prepends these lines itself — do NOT write them (redeclaring any is an error):
@@ -155,7 +155,7 @@ _OUTPUT_RULE_GLSL = (f"You have NO tools in this session: you cannot write files
f"```glsl fenced code block and nothing else (no prose before or after, no partial snippets).")
#: The scene (track scene, language scene_threejs) minimal contract: the createScene shape and the
-#: import rule of codeverse/prompts/scene_threejs/contract.md — no starter library, no zones,
+#: import rule of codeverse3d/prompts/scene_threejs/contract.md — no starter library, no zones,
#: no assets, no cookbook, no gates table.
_SCENE_CONTRACT_BODY = """You write ONE file, `{scene_file}`, an ES module for three.js r182:
export async function createScene({{ THREE, renderer, loaders }}) → {{ scene, cameras, update(t, dt) }}
@@ -192,7 +192,7 @@ def files_for(language: Language) -> list[str]:
def minimal_contract(language: Language = Language.BLENDER) -> str:
- """Frame/units come from ``codeverse.conventions`` (the single source of truth)."""
+ """Frame/units come from ``codeverse3d.conventions`` (the single source of truth)."""
if language is Language.URDF_BLENDER:
return _URDF_CONTRACT_BODY.format(model_file=MODEL_FILE, urdf_file=URDF_FILE,
frame=frame_doc(LANGUAGE_FRAME["urdf_blender"]))
@@ -329,12 +329,12 @@ def write_answer_files(ws: Workspace, text: str, language: Language = Language.B
# ----------------------------------------------------------------------------- common
def _scratch_cwd(label: str) -> Path:
"""A fresh directory outside any repo: no CLAUDE.md/AGENTS.md/.git context can leak in."""
- return Path(tempfile.mkdtemp(prefix=f"cv3d_oneshot_{label}_"))
+ return Path(tempfile.mkdtemp(prefix=f"c3d_oneshot_{label}_"))
def _clean_env(keep: set[str]) -> dict[str, str]:
env = {k: v for k, v in os.environ.items() if k in keep or not is_secret_env(k)}
- env["CV3D_AGENT_CONTEXT"] = "1"
+ env["C3D_AGENT_CONTEXT"] = "1"
env["PYTHONUNBUFFERED"] = "1"
return env
@@ -447,7 +447,7 @@ class CodexOneShot:
# ----------------------------------------------------------------------------- API chat model
class ApiOneShot:
- """One ``ChatRequest`` through ``codeverse.models`` (``gemini:*`` / ``anthropic:*`` / ``openai:*``)."""
+ """One ``ChatRequest`` through ``codeverse3d.models`` (``gemini:*`` / ``anthropic:*`` / ``openai:*``)."""
kind = "api"
@@ -463,7 +463,7 @@ class ApiOneShot:
@property
def model(self) -> Any:
if self._model is None:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
self._model = get_chat_model(self.model_id)
return self._model
diff --git a/eval/bench/ab_gate_rates.py b/eval/bench/ab_gate_rates.py
index 33fbab9a..444d2471 100644
--- a/eval/bench/ab_gate_rates.py
+++ b/eval/bench/ab_gate_rates.py
@@ -1,7 +1,7 @@
"""Paired, per-prompt DETERMINISTIC readouts of an ab_plan run: what the gates measured.
The judged score carries the planner's variance (docs/EVAL.md 8.1); these do not carry the
-judge's. They are what cv3d-part-contact and cv3d-bbox-contract are FOR, so they are the
+judge's. They are what c3d-part-contact and c3d-bbox-contract are FOR, so they are the
primary readout and the score is the second.
"""
from __future__ import annotations
diff --git a/eval/bench/ab_plan.py b/eval/bench/ab_plan.py
index 6d366c2c..61774508 100644
--- a/eval/bench/ab_plan.py
+++ b/eval/bench/ab_plan.py
@@ -1,7 +1,7 @@
"""Controlled A/B of a plan / brief change: control vs variant, paired per prompt.
python bench/ab_plan.py --prompts bench/prompts/static_objects_v2.yaml \\
- --variant-env CV3D_PLAN_BRIEF=on --out bench/out/ab_brief \\
+ --variant-env C3D_PLAN_BRIEF=on --out bench/out/ab_brief \\
[--generator <backend-id>] [--judge gemini:gemini-3.1-pro-preview] \\
[--rounds 2] [--ids a,b] [--wait-for-provider 60] [--redo-status infra_failed]
@@ -11,11 +11,11 @@ planner, the in-loop judge, the rounds, and the fixed judge that produces
the reported score (``bench/_fixed_eval.py``, ``n_samples`` 2).
Why each arm is a child PROCESS rather than a thread: the switches under test are read
-from the environment (``codeverse.tracks.planner.brief_enabled`` reads ``os.environ`` at
+from the environment (``codeverse3d.tracks.planner.brief_enabled`` reads ``os.environ`` at
call time; anything under ``Settings`` is read once through an ``lru_cache``), so two
threads in one interpreter cannot hold different values of them. A child gets exactly
the env its arm needs and nothing leaks across. Each child owns a key pool, so the
-driver caps every child at ``CV3D_MAX_IN_FLIGHT`` (default 16) — two children at
+driver caps every child at ``C3D_MAX_IN_FLIGHT`` (default 16) — two children at
16 stay inside the 64 knee measured for one process (``docs/COST.md`` §23).
Why the arms launch as simultaneous PAIRS: provider weather changes by the hour, and a
@@ -59,15 +59,15 @@ from typing import NamedTuple
from pydantic import BaseModel, Field
# ---------------------------------------------------------------------------------------
-# sys.path FIRST, and before any `codeverse` import. `spawn_cell` starts each child as a
+# sys.path FIRST, and before any `codeverse3d` import. `spawn_cell` starts each child as a
# FILE path, so `sys.path[0]` is `bench/` and the cwd is NOT on the path; an editable
-# install (`__editable__.3dcodeverse-...pth`) then resolves `import codeverse` to whatever
-# tree it was installed from. Importing `codeverse._compat` above this line made every
+# install (`__editable__.3dcodeverse-...pth`) then resolves `import codeverse3d` to whatever
+# tree it was installed from. Importing `codeverse3d._compat` above this line made every
# child of a worktree run the MAIN tree's harness, both arms identically, and the A/B
# measured nothing while looking completely healthy — it happened twice on 2026-08-25
# (`bench/out/plan_loop/C0/invalid_attempt1_maintree_import`, and again to the skills wave).
REPO = Path(__file__).resolve().parents[2] / "harness" # the harness tree these scripts evaluate
-for _p in (REPO, Path(__file__).resolve().parents[1]): # its codeverse + the `bench` package (eval/)
+for _p in (REPO, Path(__file__).resolve().parents[1]): # its codeverse3d + the `bench` package (eval/)
if str(_p) not in sys.path:
sys.path.insert(0, str(_p))
@@ -75,18 +75,18 @@ from datetime import UTC # noqa: E402
def _assert_local_codeverse() -> None:
- """Refuse to run against a `codeverse` from a different tree.
+ """Refuse to run against a `codeverse3d` from a different tree.
A workaround in a launch script (`export PYTHONPATH=...`) protects the person who
remembers it. This protects the run.
"""
- import codeverse
+ import codeverse3d
- got = Path(codeverse.__file__).resolve().parent
- want = REPO / "codeverse"
+ got = Path(codeverse3d.__file__).resolve().parent
+ want = REPO / "codeverse3d"
if got != want:
raise SystemExit(
- f"refusing to run: `import codeverse` resolved to {got}, not {want}.\n"
+ f"refusing to run: `import codeverse3d` resolved to {got}, not {want}.\n"
f" An editable install is shadowing this tree, so both arms would run the same\n"
f" code and the A/B would measure nothing. Launch with:\n"
f" PYTHONPATH={REPO} python bench/ab_plan.py ..."
@@ -109,23 +109,23 @@ from bench.compare_backends import ( # noqa: E402
)
from bench.pin_plan import PLAN_JSON, PinError, plan_once, seed_plan # noqa: E402
from bench.run_bench import Battery, BenchPrompt, select_prompts # noqa: E402
-from codeverse.contracts.common import Backends # noqa: E402
-from codeverse.proc import exclusive # noqa: E402
-from codeverse.tracks.plan_features import pin_plan_blockers # noqa: E402
-from codeverse.workspace import Workspace # noqa: E402
+from codeverse3d.contracts.common import Backends # noqa: E402
+from codeverse3d.proc import exclusive # noqa: E402
+from codeverse3d.tracks.plan_features import pin_plan_blockers # noqa: E402
+from codeverse3d.workspace import Workspace # noqa: E402
log = logging.getLogger(__name__)
-#: derived from the canonical default (codeverse/contracts/common.py Backends.generator),
+#: derived from the canonical default (codeverse3d/contracts/common.py Backends.generator),
#: never a literal: a frozen baseline arm must be named at its use site, not hidden here.
DEFAULT_GENERATOR = Backends().generator
DEFAULT_JUDGE = "gemini:gemini-3.1-pro-preview"
-#: the per-child cap. The flat name is a first-class alias of ``CV3D_RATE__MAX_IN_FLIGHT``
+#: the per-child cap. The flat name is a first-class alias of ``C3D_RATE__MAX_IN_FLIGHT``
#: since 2026-08-24 (``Settings._FLAT_ALIASES``; before that it was read by nothing) and
#: wins over the nested spelling when both are set.
-MAX_IN_FLIGHT_ENV = "CV3D_MAX_IN_FLIGHT"
+MAX_IN_FLIGHT_ENV = "C3D_MAX_IN_FLIGHT"
#: the nested spelling: popped from every child's env so it cannot fight the flat one
-NESTED_MAX_IN_FLIGHT_ENV = "CV3D_RATE__MAX_IN_FLIGHT"
+NESTED_MAX_IN_FLIGHT_ENV = "C3D_RATE__MAX_IN_FLIGHT"
DEFAULT_MAX_IN_FLIGHT = 16
#: only ever 2 — one control + one variant, launched together (see module docstring)
PARALLEL = 2
@@ -704,7 +704,7 @@ def main(argv: Sequence[str] | None = None) -> int:
# A KEY no code path reads makes the variant arm byte-identical to the control, so
# the battery costs a full run and yields a verdict about nothing. One such A/B is
# on record printing "keep, mean delta +0.344" (CQ-5).
- from codeverse.tracks.plan_features import DEAD_SWITCHES, dead_env_keys
+ from codeverse3d.tracks.plan_features import DEAD_SWITCHES, dead_env_keys
dead = dead_env_keys(opts.variant_env)
if dead and len(dead) == len(opts.variant_env):
@@ -719,7 +719,7 @@ def main(argv: Sequence[str] | None = None) -> int:
"thing under test and the rig would report 'no effect' with confidence — "
+ "; ".join(blockers)
)
- from codeverse.models.health import pool_budget
+ from codeverse3d.models.health import pool_budget
# the rule is a BUDGET, not a head-count: the provider sees one machine, so the sum of
# every process's in-flight cap must stay at the knee. Two children run at once here.
diff --git a/eval/bench/bestofk_report.py b/eval/bench/bestofk_report.py
index 3924c4f3..ed0d1799 100644
--- a/eval/bench/bestofk_report.py
+++ b/eval/bench/bestofk_report.py
@@ -36,9 +36,9 @@ from collections import defaultdict
from pathlib import Path
for _p in (Path(__file__).resolve().parents[2] / "harness", Path(__file__).resolve().parents[1]):
- sys.path.insert(0, str(_p)) # this tree's codeverse (harness/) + the `bench` package (eval/)
+ sys.path.insert(0, str(_p)) # this tree's codeverse3d (harness/) + the `bench` package (eval/)
-from codeverse.proc import read_jsonl_lenient # noqa: E402
+from codeverse3d.proc import read_jsonl_lenient # noqa: E402
#: judge repeatability on the calibration set (docs/PAPER_WRITING.md §2), used only to
#: state how much of a best-of-k maximum is selection noise
diff --git a/eval/bench/compare_backends.py b/eval/bench/compare_backends.py
index e540c134..afc19a33 100644
--- a/eval/bench/compare_backends.py
+++ b/eval/bench/compare_backends.py
@@ -46,11 +46,11 @@ from typing import Any, Literal
from pydantic import BaseModel, Field
-# sys.path BEFORE any `codeverse` import: this file is also run as a script, and an
-# editable install would otherwise resolve `codeverse` to the tree it was installed from
+# sys.path BEFORE any `codeverse3d` import: this file is also run as a script, and an
+# editable install would otherwise resolve `codeverse3d` to the tree it was installed from
# rather than this one. See the same note in `bench/ab_plan.py`.
REPO = Path(__file__).resolve().parents[2] / "harness" # the harness tree these scripts evaluate
-for _p in (REPO, Path(__file__).resolve().parents[1]): # its codeverse + the `bench` package (eval/)
+for _p in (REPO, Path(__file__).resolve().parents[1]): # its codeverse3d + the `bench` package (eval/)
if str(_p) not in sys.path:
sys.path.insert(0, str(_p))
@@ -82,16 +82,16 @@ from bench.run_bench import ( # noqa: E402
default_run_track,
select_prompts,
)
-from codeverse.config import get_settings # noqa: E402
-from codeverse.contracts.artifacts import RenderSet # noqa: E402
-from codeverse.contracts.common import ENTRY_FILE, Track # noqa: E402
-from codeverse.contracts.run import RunRecord # noqa: E402
-from codeverse.contracts.spec import Spec # noqa: E402
-from codeverse.cost import run_ledger # noqa: E402
-from codeverse.proc import exclusive # noqa: E402
-from codeverse.tracks.generation import MultiFileParseError # noqa: E402
-from codeverse.tracks.planner import PlanningError # noqa: E402
-from codeverse.workspace import Workspace # noqa: E402
+from codeverse3d.config import get_settings # noqa: E402
+from codeverse3d.contracts.artifacts import RenderSet # noqa: E402
+from codeverse3d.contracts.common import ENTRY_FILE, Track # noqa: E402
+from codeverse3d.contracts.run import RunRecord # noqa: E402
+from codeverse3d.contracts.spec import Spec # noqa: E402
+from codeverse3d.cost import run_ledger # noqa: E402
+from codeverse3d.proc import exclusive # noqa: E402
+from codeverse3d.tracks.generation import MultiFileParseError # noqa: E402
+from codeverse3d.tracks.planner import PlanningError # noqa: E402
+from codeverse3d.workspace import Workspace # noqa: E402
log = logging.getLogger(__name__)
@@ -171,7 +171,7 @@ class CompareDeps:
def _default_pairwise(model_id: str) -> Any:
- from codeverse.judges.pairwise import PairwiseJudge
+ from codeverse3d.judges.pairwise import PairwiseJudge
return PairwiseJudge(model_id)
@@ -490,7 +490,7 @@ def _preflight(judge: str, arms: Sequence[Arm], opts: CompareOptions, *, wait_mi
CLI and whose judge was healthy — because the default PLANNER is flash. A
harness arm is only as available as the weakest model in its loop.
"""
- from codeverse.models.health import probe
+ from codeverse3d.models.health import probe
def api_model(target: str) -> str:
"""An API-billed oneshot target ('gemini:x') as-is; a subscription CLI target -> ''."""
diff --git a/eval/bench/complexity_report.py b/eval/bench/complexity_report.py
index 60f4df2f..cba2b44c 100644
--- a/eval/bench/complexity_report.py
+++ b/eval/bench/complexity_report.py
@@ -29,13 +29,17 @@ from pathlib import Path
from typing import Any
for _p in (Path(__file__).resolve().parents[2] / "harness", Path(__file__).resolve().parents[1]):
- sys.path.insert(0, str(_p)) # this tree's codeverse (harness/) + the `bench` package (eval/)
-
-from codeverse.addons.calibration import _ranks # noqa: E402 — tie-averaged ranks, one copy
-from codeverse.contracts.run import RunId # noqa: E402
-from codeverse.proc import read_json_or_none # noqa: E402
-from codeverse.record.record import find_run_dirs # noqa: E402
-from codeverse.spatial.complexity import COMPLEXITY_WEIGHTS, ComplexityVector, band_of # noqa: E402
+ sys.path.insert(0, str(_p)) # this tree's codeverse3d (harness/) + the `bench` package (eval/)
+
+from codeverse3d.addons.calibration import _ranks # noqa: E402 — tie-averaged ranks, one copy
+from codeverse3d.contracts.run import RunId # noqa: E402
+from codeverse3d.proc import read_json_or_none # noqa: E402
+from codeverse3d.record.record import find_run_dirs # noqa: E402
+from codeverse3d.spatial.complexity import ( # noqa: E402
+ COMPLEXITY_WEIGHTS,
+ ComplexityVector,
+ band_of,
+)
CRITERIA = (
"intent_fidelity",
@@ -80,7 +84,7 @@ def _vector_for(run: Path, best: dict[str, Any] | None) -> ComplexityVector | No
glb = run / "artifacts" / "object.glb"
if not glb.is_file():
return None
- from codeverse.spatial.complexity import complexity_of_glb
+ from codeverse3d.spatial.complexity import complexity_of_glb
try:
return complexity_of_glb(glb)
diff --git a/eval/bench/concurrency_probe.py b/eval/bench/concurrency_probe.py
index c1a13ab3..d46d69a7 100644
--- a/eval/bench/concurrency_probe.py
+++ b/eval/bench/concurrency_probe.py
@@ -8,7 +8,7 @@ knee of the throughput curve is what ``Limits.max_parallel_agents`` /
python bench/concurrency_probe.py --levels 4,8,16,32,64 --calls 48 --out bench/out/concurrency
-Each level uses a FRESH :class:`~codeverse.models.retry.KeyPool` over the same
+Each level uses a FRESH :class:`~codeverse3d.models.retry.KeyPool` over the same
keys so the per-level ``ok / 429 / 5xx`` counters are exact deltas, and a
prompt-size knob (``--in-tokens``) so a judge-sized call and a caption-sized call
can be measured apart.
@@ -24,12 +24,12 @@ import time
from dataclasses import asdict, dataclass, field
from pathlib import Path
-from codeverse.config import get_settings
-from codeverse.contracts.chat import ChatMessage, ChatRequest
-from codeverse.cost.guard import CHARS_PER_TOKEN
-from codeverse.models.gemini import GeminiModel
-from codeverse.models.retry import KeyPool, StormGate
-from codeverse.proc import fan_out
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest
+from codeverse3d.cost.guard import CHARS_PER_TOKEN
+from codeverse3d.models.gemini import GeminiModel
+from codeverse3d.models.retry import KeyPool, StormGate
+from codeverse3d.proc import fan_out
#: filler that is cheap to build, incompressible enough not to be cached away, and
#: shaped like the code the generator really sends
diff --git a/eval/bench/coupling_stats.py b/eval/bench/coupling_stats.py
index 9c1bee64..e46d716d 100644
--- a/eval/bench/coupling_stats.py
+++ b/eval/bench/coupling_stats.py
@@ -22,10 +22,10 @@ import sys
from pathlib import Path
for _p in (Path(__file__).resolve().parents[2] / "harness", Path(__file__).resolve().parents[1]):
- sys.path.insert(0, str(_p)) # this tree's codeverse (harness/) + the `bench` package (eval/)
+ sys.path.insert(0, str(_p)) # this tree's codeverse3d (harness/) + the `bench` package (eval/)
-from codeverse.record.record import unique_files # noqa: E402
-from codeverse.spatial.joints_model import UrdfError, load_urdf # noqa: E402
+from codeverse3d.record.record import unique_files # noqa: E402
+from codeverse3d.spatial.joints_model import UrdfError, load_urdf # noqa: E402
def _urdfs(root: Path) -> list[Path]:
diff --git a/eval/bench/h2h_glb.py b/eval/bench/h2h_glb.py
index efce132f..4ad1545d 100644
--- a/eval/bench/h2h_glb.py
+++ b/eval/bench/h2h_glb.py
@@ -42,7 +42,7 @@ from typing import Any
from pydantic import BaseModel, Field
for _p in (Path(__file__).resolve().parents[2] / "harness", Path(__file__).resolve().parents[1]):
- sys.path.insert(0, str(_p)) # this tree's codeverse (harness/) + the `bench` package (eval/)
+ sys.path.insert(0, str(_p)) # this tree's codeverse3d (harness/) + the `bench` package (eval/)
from bench._fixed_eval import RUBRIC # noqa: E402
from bench.h2h_scene import sign_test # noqa: E402
@@ -133,7 +133,7 @@ def our_side(runs_dir: Path, item_id: str) -> Side:
# ----------------------------------------------------------------------------- evaluate
def build_spec(battery: Battery, item: BenchPrompt) -> Any:
- from codeverse.contracts.spec import Spec
+ from codeverse3d.contracts.spec import Spec
return Spec(id=f"h2h/{item.id}", track=battery.track, language=item.language or battery.language,
prompt=item.prompt, tags=["h2h", *item.tags])
@@ -141,12 +141,12 @@ def build_spec(battery: Battery, item: BenchPrompt) -> Any:
def evaluate(side: Side, spec: Any, out_dir: Path, judge: Any) -> Side:
"""measure → connectivity → render → judge, exactly the FixedEvaluator order."""
- from codeverse.config import get_settings
- from codeverse.conventions import OBJECT_VIEWS
- from codeverse.judges.base import JudgeInput
- from codeverse.spatial.connectivity import check_connectivity
- from codeverse.spatial.measure import measure_glb
- from codeverse.spatial.render import render_glb
+ from codeverse3d.config import get_settings
+ from codeverse3d.conventions import OBJECT_VIEWS
+ from codeverse3d.judges.base import JudgeInput
+ from codeverse3d.spatial.connectivity import check_connectivity
+ from codeverse3d.spatial.measure import measure_glb
+ from codeverse3d.spatial.render import render_glb
if side.error or not side.glb:
return side
@@ -245,8 +245,8 @@ def summary_md(rows: list[Row]) -> str:
# ----------------------------------------------------------------------------- main
def run(batteries: list[Path], gallery: Path, bench_out: Path, out: Path, *, ids: set[str], theirs_only: bool, force: bool) -> list[Row]:
- from codeverse.cost import run_ledger
- from codeverse.judges.vlm_judge import VlmJudge
+ from codeverse3d.cost import run_ledger
+ from codeverse3d.judges.vlm_judge import VlmJudge
judge = VlmJudge(rubric=RUBRIC, model_id=JUDGE_MODEL, n_samples=N_SAMPLES)
rows: list[Row] = []
diff --git a/eval/bench/h2h_scene.py b/eval/bench/h2h_scene.py
index 6a09cd50..2c7d26c6 100644
--- a/eval/bench/h2h_scene.py
+++ b/eval/bench/h2h_scene.py
@@ -39,13 +39,13 @@ from PIL import Image, ImageDraw
from pydantic import BaseModel
for _p in (Path(__file__).resolve().parents[2] / "harness", Path(__file__).resolve().parents[1]):
- sys.path.insert(0, str(_p)) # this tree's codeverse (harness/) + the `bench` package (eval/)
+ sys.path.insert(0, str(_p)) # this tree's codeverse3d (harness/) + the `bench` package (eval/)
from bench.run_bench import Battery, BenchPrompt # noqa: E402
-from codeverse.contracts.artifacts import RenderSet, RenderView # noqa: E402
-from codeverse.contracts.common import Language, Track # noqa: E402
-from codeverse.contracts.spec import Spec # noqa: E402
-from codeverse.proc import read_jsonl_lenient # noqa: E402
+from codeverse3d.contracts.artifacts import RenderSet, RenderView # noqa: E402
+from codeverse3d.contracts.common import Language, Track # noqa: E402
+from codeverse3d.contracts.spec import Spec # noqa: E402
+from codeverse3d.proc import read_jsonl_lenient # noqa: E402
HERE = Path(__file__).resolve().parent
BATTERY = HERE / "prompts" / "h2h_scene_v1.yaml"
@@ -171,7 +171,7 @@ def spec_for(item: BenchPrompt) -> Spec:
def judge_side(judge: Any, spec: Spec, views: list[RenderView], cache: Path) -> dict[str, Any]:
"""One fixed-judge verdict, cached as JSON (re-runs never re-pay)."""
- from codeverse.judges.base import JudgeInput
+ from codeverse3d.judges.base import JudgeInput
if cache.is_file():
return json.loads(cache.read_text())
@@ -259,7 +259,7 @@ def main() -> None:
ap.add_argument("--n-samples", type=int, default=2)
ap.add_argument("--out", type=Path, default=OUT)
ns = ap.parse_args()
- from codeverse.judges.vlm_judge import VlmJudge
+ from codeverse3d.judges.vlm_judge import VlmJudge
judge = VlmJudge(rubric=RUBRIC, model_id=JUDGE_MODEL, n_samples=ns.n_samples, label="h2h")
battery = Battery.load(BATTERY)
diff --git a/eval/bench/judge_calib_graphics.py b/eval/bench/judge_calib_graphics.py
index aff58c86..351f9c57 100644
--- a/eval/bench/judge_calib_graphics.py
+++ b/eval/bench/judge_calib_graphics.py
@@ -29,13 +29,13 @@ from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
from typing import Any
-from codeverse.addons.calibration import spearman
-from codeverse.contracts.artifacts import GateReport, RenderSet
-from codeverse.contracts.spec import Spec
-from codeverse.judges.base import JudgeInput, plan_digest
-from codeverse.judges.vlm_judge import VlmJudge
-from codeverse.tracks.graphics import frame_stats_text
-from codeverse.workspace import Workspace
+from codeverse3d.addons.calibration import spearman
+from codeverse3d.contracts.artifacts import GateReport, RenderSet
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.judges.base import JudgeInput, plan_digest
+from codeverse3d.judges.vlm_judge import VlmJudge
+from codeverse3d.tracks.graphics import frame_stats_text
+from codeverse3d.workspace import Workspace
OUT_ROOT = Path(__file__).resolve().parent / "out"
diff --git a/eval/bench/paired_compare.py b/eval/bench/paired_compare.py
index 387d9fb3..44476ddc 100644
--- a/eval/bench/paired_compare.py
+++ b/eval/bench/paired_compare.py
@@ -30,7 +30,7 @@ from pathlib import Path
from pydantic import BaseModel, Field
REPO = Path(__file__).resolve().parents[2] / "harness" # the harness tree these scripts evaluate
-for _p in (REPO, Path(__file__).resolve().parents[1]): # its codeverse + the `bench` package (eval/)
+for _p in (REPO, Path(__file__).resolve().parents[1]): # its codeverse3d + the `bench` package (eval/)
if str(_p) not in sys.path:
sys.path.insert(0, str(_p))
diff --git a/eval/bench/penetration_thresholds.py b/eval/bench/penetration_thresholds.py
index 67a4cff2..311d0052 100644
--- a/eval/bench/penetration_thresholds.py
+++ b/eval/bench/penetration_thresholds.py
@@ -25,15 +25,15 @@ from collections import Counter
from pathlib import Path
for _p in (Path(__file__).resolve().parents[2] / "harness", Path(__file__).resolve().parents[1]):
- sys.path.insert(0, str(_p)) # this tree's codeverse (harness/) + the `bench` package (eval/)
+ sys.path.insert(0, str(_p)) # this tree's codeverse3d (harness/) + the `bench` package (eval/)
-from codeverse.languages.urdf import REST_PENETRATION_MAX_M # noqa: E402
-from codeverse.record.record import unique_files # noqa: E402
-from codeverse.spatial.connectivity import ( # noqa: E402
+from codeverse3d.languages.urdf import REST_PENETRATION_MAX_M # noqa: E402
+from codeverse3d.record.record import unique_files # noqa: E402
+from codeverse3d.spatial.connectivity import ( # noqa: E402
PENETRATION_ERROR_M,
PENETRATION_WARN_M,
)
-from codeverse.spatial.joints_sweep import sweep_collisions, sweep_findings # noqa: E402
+from codeverse3d.spatial.joints_sweep import sweep_collisions, sweep_findings # noqa: E402
#: candidate ERROR thresholds in metres, including the one that ships
CANDIDATES = (0.001, 0.002, 0.005, PENETRATION_ERROR_M)
diff --git a/eval/bench/pin_plan.py b/eval/bench/pin_plan.py
index 3c935314..a631deee 100644
--- a/eval/bench/pin_plan.py
+++ b/eval/bench/pin_plan.py
@@ -12,7 +12,7 @@ instead of two — cheaper, not more expensive, unlike averaging k generations.
Only valid when the switch cannot change planning: sharing a plan across a plan-side switch
would silently delete the thing under test and the rig would then report "no effect" with
-confidence. ``codeverse.tracks.plan_features.pin_plan_blockers`` decides that, and callers
+confidence. ``codeverse3d.tracks.plan_features.pin_plan_blockers`` decides that, and callers
must consult it — this module refuses to guess.
"""
@@ -90,11 +90,11 @@ def plan_once(spec: Any, ws_root: Path) -> str:
cache HIT); and through ``_plan_stage`` rather than the bare planner so the call is
charged to a budget and its spend is saved, exactly as in a run.
"""
- from codeverse.orchestrator import RunState, StageRunner
- from codeverse.proc import EventLog
- from codeverse.tracks import get_track
- from codeverse.tracks.lifecycle import plan_stage_inputs
- from codeverse.workspace import Workspace
+ from codeverse3d.orchestrator import RunState, StageRunner
+ from codeverse3d.proc import EventLog
+ from codeverse3d.tracks import get_track
+ from codeverse3d.tracks.lifecycle import plan_stage_inputs
+ from codeverse3d.workspace import Workspace
ws = Workspace(Path(ws_root))
ws.create()
diff --git a/eval/bench/plan_stage_bench.py b/eval/bench/plan_stage_bench.py
index 28eea60e..70766977 100644
--- a/eval/bench/plan_stage_bench.py
+++ b/eval/bench/plan_stage_bench.py
@@ -4,11 +4,11 @@ The judge channel cannot resolve a single-switch change on a 14-prompt battery:
puts the noise floor at 2 SE = 0.130 and asks for ~506 pairs to resolve ±0.02
(``docs/EVAL.md``). The plan stage costs ~$0.03 and ~85 s, so the same question asked as
a LOSS RATE — how often does planning end in a ``PlanningError`` instead of a plan — is
-affordable at n in the hundreds. That is how ``CV3D_PLAN_RESTART`` was measured
+affordable at n in the hundreds. That is how ``C3D_PLAN_RESTART`` was measured
(4.7 % → 0.7 %, Fisher exact p = 0.0067 over 560 calls; ``docs/DECISIONS.md`` D52).
python bench/plan_stage_bench.py --tree . --label restart_on --reps 20 \
- --out bench/data/plan_stage/restart_on.jsonl --env CV3D_PLAN_RESTART=1
+ --out bench/data/plan_stage/restart_on.jsonl --env C3D_PLAN_RESTART=1
``--tree`` is the harness tree to import from, so the two arms can differ by a switch
(``--env``) or by a worktree. Run both arms in the SAME window: provider weather moves
@@ -99,7 +99,7 @@ def tree_provenance(tree: Path, codeverse_file: str) -> dict[str, str]:
they came from — ``--label`` is a name the caller chose, and ``sys.path`` order is
not visible after the fact (a stale editable install would silently make both arms
the same code). ``codeverse_file`` is passed in, never imported here: this module is
- run as a file, so every ``import codeverse`` must sit below the sys.path bootstrap
+ run as a file, so every ``import codeverse3d`` must sit below the sys.path bootstrap
(tests/compare_bench/test_worktree_import.py)."""
out = {"codeverse_file": codeverse_file}
try:
@@ -191,14 +191,14 @@ def main(argv: list[str] | None = None) -> int:
os.environ[key.strip()] = value.strip()
print(f"env {key.strip()}={value.strip()}")
sys.path.insert(0, str(Path(__file__).resolve().parents[1])) # the `bench` package (eval/)
- sys.path.insert(0, str(ns.tree.resolve())) # the harness tree under test wins for `codeverse`
+ sys.path.insert(0, str(ns.tree.resolve())) # the harness tree under test wins for `codeverse3d`
- import codeverse
+ import codeverse3d
from bench._jsonl import seal_for_append # after the path insert: `python bench/x.py`
from bench.run_bench import Battery
- from codeverse.config import get_settings
- if not Path(codeverse.__file__).resolve().is_relative_to(ns.tree.resolve()):
- raise SystemExit(f"--tree {ns.tree} but `codeverse` imported from {codeverse.__file__}: "
+ from codeverse3d.config import get_settings
+ if not Path(codeverse3d.__file__).resolve().is_relative_to(ns.tree.resolve()):
+ raise SystemExit(f"--tree {ns.tree} but `codeverse3d` imported from {codeverse3d.__file__}: "
"an editable install won the path race, so both arms would run the "
"same code (ab_plan.py's header documents this failure)")
@@ -211,7 +211,7 @@ def main(argv: list[str] | None = None) -> int:
ns.out.parent.mkdir(parents=True, exist_ok=True)
seal_for_append(ns.out) # a killed run leaves a partial last line; do not glue onto it
- prov = tree_provenance(ns.tree, codeverse.__file__)
+ prov = tree_provenance(ns.tree, codeverse3d.__file__)
print(f"{ns.label}: {prov}")
with ns.out.open("a") as fh, cf.ThreadPoolExecutor(ns.workers) as pool:
# imap-style ordering: pool.map yields in submission order, so one slow call holds
diff --git a/eval/bench/plan_stage_report.py b/eval/bench/plan_stage_report.py
index e93f6587..de17d16a 100644
--- a/eval/bench/plan_stage_report.py
+++ b/eval/bench/plan_stage_report.py
@@ -16,7 +16,7 @@ from collections import Counter
from pathlib import Path
#: what a validation failure was ABOUT, read off the error text. The mechanism under test
-#: (``CV3D_PLAN_RESTART``) only ever addresses ``dangling_link``; every other class is a
+#: (``C3D_PLAN_RESTART``) only ever addresses ``dangling_link``; every other class is a
#: bystander, and a total that mixes them hides both the effect and its residue.
FAILURE_CLASSES: dict[str, str] = {
"dangling_link": "references unknown link",
diff --git a/eval/bench/prompts/complexity_v3.yaml b/eval/bench/prompts/complexity_v3.yaml
index 15bb6e5f..797a3d04 100644
--- a/eval/bench/prompts/complexity_v3.yaml
+++ b/eval/bench/prompts/complexity_v3.yaml
@@ -8,7 +8,7 @@
# sections, mouldings, mechanism) are switched on in a documented order.
#
# Every prompt declares `expected_complexity: [lo, hi]`, the band the BUILT artifact's
-# objective complexity index (codeverse/spatial/complexity.py, docs/COMPLEXITY.md)
+# objective complexity index (codeverse3d/spatial/complexity.py, docs/COMPLEXITY.md)
# should land in. A run that scores well but lands BELOW its band did the easy thing
# instead of the asked thing — the report calls that out as LOW, and it is the failure
# mode this battery exists to catch. `expected_complexity` is not read by run_bench
diff --git a/eval/bench/prompts/turns_v1.yaml b/eval/bench/prompts/turns_v1.yaml
index fb7fde5f..cdd2fbc7 100644
--- a/eval/bench/prompts/turns_v1.yaml
+++ b/eval/bench/prompts/turns_v1.yaml
@@ -6,7 +6,7 @@
# machinist_vise 11.4 / 0.60 · spiral_stair 20.6 / 0.60 · drafting_table 30.2 / 0.60.
# Run with:
# python bench/ab_plan.py --prompts bench/prompts/turns_v1.yaml --out bench/out/turns_v1 \
-# --pin-plan --variant-env CV3D_FEWER_TURNS=1 \
+# --pin-plan --variant-env C3D_FEWER_TURNS=1 \
# --generator gemini-cli:gemini-3.6-flash --judge gemini:gemini-3.1-pro-preview \
# --rounds 3 --max-minutes 120 --max-in-flight 8 --allow-siblings
name: turns_v1
@@ -14,7 +14,7 @@ track: static_object
language: blender
description: >
fewer-turns A/B slice: 6 static_objects_v2 blender prompts (2 medium controls, 4 hard) with
- static_v2_flash baselines, run paired with --pin-plan and --variant-env CV3D_FEWER_TURNS=1.
+ static_v2_flash baselines, run paired with --pin-plan and --variant-env C3D_FEWER_TURNS=1.
prompts:
- id: ctrl_med_dining_chair
tier: medium
diff --git a/eval/bench/rejudge_offline.py b/eval/bench/rejudge_offline.py
index 2523206a..8d57ed4c 100644
--- a/eval/bench/rejudge_offline.py
+++ b/eval/bench/rejudge_offline.py
@@ -4,7 +4,7 @@ Every static-object verdict on disk carries its raw samples (``Judgment.raw``
``samples``), and ``rounds/rNN.json`` carries the gates, renders and console errors
that round was scored against. So the whole scoring pipeline downstream of the model
— majority vote, the measured-absent veto, defect penalties, the cap ladder, pass —
-can be replayed from disk through :func:`codeverse.judges.rubrics.aggregate_samples`
+can be replayed from disk through :func:`codeverse3d.judges.rubrics.aggregate_samples`
and diffed against what the run recorded.
Two uses:
@@ -43,18 +43,18 @@ from pathlib import Path
from pydantic import BaseModel, Field
-from codeverse.addons.calibration import _run_label
-from codeverse.contracts.artifacts import GateReport, Severity
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.contracts.run import RoundRecord
-from codeverse.judges.rubrics import (
+from codeverse3d.addons.calibration import _run_label
+from codeverse3d.contracts.artifacts import GateReport, Severity
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.judges.rubrics import (
SCORING_VERSION,
JudgeOutput,
Rubric,
aggregate_samples,
load_rubric,
)
-from codeverse.proc import read_json_or_none
+from codeverse3d.proc import read_json_or_none
TOL = 1e-9
diff --git a/eval/bench/report.py b/eval/bench/report.py
index d7f145eb..bc22878b 100644
--- a/eval/bench/report.py
+++ b/eval/bench/report.py
@@ -3,7 +3,7 @@
``build_report(out_dir)`` reads ``results.jsonl`` (or results.json), aggregates
mean/median/pass-rate/cost per tier and category, writes ``report.md`` and
``report.html`` — the same self-contained page as ``3dcode gallery build --embed``
-(``codeverse.addons.gallery``), one section per tier, with the stats tables under the
+(``codeverse3d.addons.gallery``), one section per tier, with the stats tables under the
summary strip.
"""
@@ -20,10 +20,10 @@ from bench._compare_report import _f as _fmt
from bench._compare_report import _mean
from bench._jsonl import read_jsonl
from bench.run_bench import BenchItemResult
-from codeverse.addons.gallery import GalleryIndex, RootSection, RunEntry, render_static
-from codeverse.addons.gallery.index import entry_from_record
-from codeverse.record.record import RecordError, load_record
-from codeverse.workspace import Workspace
+from codeverse3d.addons.gallery import GalleryIndex, RootSection, RunEntry, render_static
+from codeverse3d.addons.gallery.index import entry_from_record
+from codeverse3d.record.record import RecordError, load_record
+from codeverse3d.workspace import Workspace
TIER_ORDER = {"easy": 0, "medium": 1, "hard": 2}
diff --git a/eval/bench/run_bench.py b/eval/bench/run_bench.py
index 82ec7f39..74cf555c 100644
--- a/eval/bench/run_bench.py
+++ b/eval/bench/run_bench.py
@@ -10,7 +10,7 @@ Layout of ``out_dir``::
Every prompt becomes a ``Spec`` with the battery's track/language, a FIXED judge
model (methodology: paired runs share the judge), and the generator under test.
-Each prompt runs inside its own ``codeverse.cost.run_ledger``, exactly like a
+Each prompt runs inside its own ``codeverse3d.cost.run_ledger``, exactly like a
``3dcode make``: the batteries are where most runs come from, so without it the
priced per-call rows of a whole battery went to the per-process fallback log and
``3dcode cost --runs-dir <out>/runs`` had to reconstruct them from trajectories.
@@ -34,13 +34,13 @@ from pydantic import BaseModel, Field
from bench._infra import is_infra_failure
from bench._jsonl import read_jsonl, seal_for_append
-from codeverse.config import get_settings
-from codeverse.contracts.common import Backends, Budget, Language, Track
-from codeverse.contracts.run import RunRecord
-from codeverse.contracts.spec import Constraints, ReferenceImage, Spec
-from codeverse.cost import run_ledger
-from codeverse.proc import exclusive
-from codeverse.workspace import Workspace
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.common import Backends, Budget, Language, Track
+from codeverse3d.contracts.run import RunRecord
+from codeverse3d.contracts.spec import Constraints, ReferenceImage, Spec
+from codeverse3d.cost import run_ledger
+from codeverse3d.proc import exclusive
+from codeverse3d.workspace import Workspace
RESULT_FIELDS = ("id", "tier", "category", "score_baseline", "score_final", "passed", "rounds", "cost_usd",
"minutes", "status", "errors", "workspace", "generator", "judge")
@@ -223,7 +223,7 @@ def archive_attempt(root: Path) -> Path:
def default_run_track(spec: Spec, ws: Workspace, resume: bool) -> RunRecord:
"""Run the spec's track (the real thing; tests inject a fake ``run_fn``)."""
- from codeverse.tracks import get_track
+ from codeverse3d.tracks import get_track
return get_track(spec.track).run(spec, ws, resume=resume)
diff --git a/eval/bench/scene_regate.py b/eval/bench/scene_regate.py
index 0751586b..5889afc0 100644
--- a/eval/bench/scene_regate.py
+++ b/eval/bench/scene_regate.py
@@ -30,12 +30,12 @@ import tempfile
from pathlib import Path
for _p in (Path(__file__).resolve().parents[2] / "harness", Path(__file__).resolve().parents[1]):
- sys.path.insert(0, str(_p)) # this tree's codeverse (harness/) + the `bench` package (eval/)
+ sys.path.insert(0, str(_p)) # this tree's codeverse3d (harness/) + the `bench` package (eval/)
from bench.scene_stats import scene_records # noqa: E402
-from codeverse.config import get_settings # noqa: E402
-from codeverse.contracts.artifacts import Severity # noqa: E402
-from codeverse.spatial.scene_placement import placement_gate_safe # noqa: E402
+from codeverse3d.config import get_settings # noqa: E402
+from codeverse3d.contracts.artifacts import Severity # noqa: E402
+from codeverse3d.spatial.scene_placement import placement_gate_safe # noqa: E402
GATE = "scene_placement"
diff --git a/eval/bench/scene_stats.py b/eval/bench/scene_stats.py
index a59b6dc6..50f5bf6f 100644
--- a/eval/bench/scene_stats.py
+++ b/eval/bench/scene_stats.py
@@ -25,11 +25,11 @@ from collections import Counter
from pathlib import Path
for _p in (Path(__file__).resolve().parents[2] / "harness", Path(__file__).resolve().parents[1]):
- sys.path.insert(0, str(_p)) # this tree's codeverse (harness/) + the `bench` package (eval/)
+ sys.path.insert(0, str(_p)) # this tree's codeverse3d (harness/) + the `bench` package (eval/)
-from codeverse.proc import read_jsonl_lenient # noqa: E402
-from codeverse.record.record import unique_files # noqa: E402
-from codeverse.spatial.node import browser_was_lost # noqa: E402
+from codeverse3d.proc import read_jsonl_lenient # noqa: E402
+from codeverse3d.record.record import unique_files # noqa: E402
+from codeverse3d.spatial.node import browser_was_lost # noqa: E402
#: pipeline stages in the order the scene track runs them
STAGES = ("plan", "skeleton", "assets", "env", "layouts", "assemble", "generate", "build")
diff --git a/eval/bench/session_stats.py b/eval/bench/session_stats.py
index 897f3f6b..3cf184cc 100644
--- a/eval/bench/session_stats.py
+++ b/eval/bench/session_stats.py
@@ -23,9 +23,9 @@ from collections import Counter
from pathlib import Path
for _p in (Path(__file__).resolve().parents[2] / "harness", Path(__file__).resolve().parents[1]):
- sys.path.insert(0, str(_p)) # this tree's codeverse (harness/) + the `bench` package (eval/)
+ sys.path.insert(0, str(_p)) # this tree's codeverse3d (harness/) + the `bench` package (eval/)
-from codeverse.record.record import unique_files # noqa: E402
+from codeverse3d.record.record import unique_files # noqa: E402
#: gemini-cli names an MCP tool ``mcp_<server>_<tool>``; ours is the ``3dcode`` server
#: (``3dcv`` in every session recorded before the 2026-09-21 rename).
@@ -79,7 +79,7 @@ def token_rates(sessions: list[Path]) -> dict[str, float]:
and docs/COST.md §30 counts main-role requests: the model with the most requests IS
the main role, and mixing the other in moves ``uncached per request`` by ~3 %.
"""
- from codeverse.cost.reconstruct import _gemini_cli_usages
+ from codeverse3d.cost.reconstruct import _gemini_cli_usages
prompt = cached = requests = 0
for path in sessions:
diff --git a/eval/bench/skill_targets.py b/eval/bench/skill_targets.py
index e0c6cfb8..0169df66 100644
--- a/eval/bench/skill_targets.py
+++ b/eval/bench/skill_targets.py
@@ -1,7 +1,7 @@
"""Per-skill deterministic readout: what each bundle claims to move, measured.
``bench/ab_gate_rates.py`` prints the gate numbers of an A/B run; it does not know which
-*skill* owns which number. This does. ``codeverse/addons/skill_targets.py`` holds one
+*skill* owns which number. This does. ``codeverse3d/addons/skill_targets.py`` holds one
falsifiable claim per bundle; this file computes it over a recorded battery or an A/B
directory, so the same command answers both "what is the baseline" and "did the variant
move it".
@@ -10,7 +10,7 @@ Usage::
python bench/skill_targets.py bench/out/static_v2_flash # one battery
python bench/skill_targets.py bench/out/ab_skills # control vs variant
- python bench/skill_targets.py bench/out --per-run --skill cv3d-part-contact
+ python bench/skill_targets.py bench/out --per-run --skill c3d-part-contact
python bench/skill_targets.py bench/out --json
Nothing here reads the judge. Every number comes from a gate report, a BuildResult, the
@@ -31,9 +31,9 @@ from pathlib import Path
from typing import Any
for _p in (Path(__file__).resolve().parents[2] / "harness", Path(__file__).resolve().parents[1]):
- sys.path.insert(0, str(_p)) # this tree's codeverse (harness/) + the `bench` package (eval/)
+ sys.path.insert(0, str(_p)) # this tree's codeverse3d (harness/) + the `bench` package (eval/)
-from codeverse.addons.skill_targets import ( # noqa: E402
+from codeverse3d.addons.skill_targets import ( # noqa: E402
SRC_ARTIFACT,
SRC_BUILD,
SRC_FRAMES,
@@ -42,7 +42,7 @@ from codeverse.addons.skill_targets import ( # noqa: E402
TARGETS,
Target,
)
-from codeverse.skills.registry import finding_kind # noqa: E402
+from codeverse3d.skills.registry import finding_kind # noqa: E402
CACHE_NAME = ".skill_targets_cache.json"
_FRAME_T = re.compile(r"_t(\d+(?:\.\d+)?)\.png$")
@@ -145,7 +145,7 @@ def _frames_of(d: Path) -> list[tuple[float, Path]]:
def _feature_density(glb: Path) -> float | None:
- from codeverse.spatial.complexity import complexity_of_glb
+ from codeverse3d.spatial.complexity import complexity_of_glb
try:
return float(complexity_of_glb(glb).feature_density)
@@ -154,7 +154,7 @@ def _feature_density(glb: Path) -> float | None:
def _mean_edge_density(d: Path) -> float | None:
- from codeverse.spatial.frame_stats import sequence_stats
+ from codeverse3d.spatial.frame_stats import sequence_stats
frames = _frames_of(d)
if not frames:
@@ -166,7 +166,7 @@ def _mean_edge_density(d: Path) -> float | None:
def _min_authored_changed_frac(d: Path) -> float | None:
- from codeverse.spatial.frame_motion import motion_from_dir
+ from codeverse3d.spatial.frame_motion import motion_from_dir
try:
rows = [r for r in motion_from_dir(d) if r.authored]
diff --git a/eval/docs/COMPLEXITY.md b/eval/docs/COMPLEXITY.md
index 222c0aca..88b43e1d 100644
--- a/eval/docs/COMPLEXITY.md
+++ b/eval/docs/COMPLEXITY.md
@@ -1,6 +1,6 @@
# Complexity — measuring how much artifact the harness can actually build
-> **Paths in this document.** `bench/…` is relative to `eval/` (this folder's parent); `codeverse/…`, `tests/…`,
+> **Paths in this document.** `bench/…` is relative to `eval/` (this folder's parent); `codeverse3d/…`, `tests/…`,
> `runtime_js/…` and the other `docs/…` files are relative to `harness/`. Recorded battery output (`bench/out/…`)
> is run data and is not in git.
@@ -12,7 +12,7 @@ the second number existed the harness could not tell them apart.
Reconciled against the code and the recorded corpus on **2026-08-24**.
-* the vector: `codeverse/spatial/complexity.py`
+* the vector: `codeverse3d/spatial/complexity.py`
* where it is stored: `Measurement.extra["complexity"]`, `record.extra["complexity"]`,
`record.extra["rounds_summary"][i]["complexity"]`, the gallery card + detail page
* the study: `bench/complexity_report.py`
diff --git a/eval/docs/EVAL.md b/eval/docs/EVAL.md
index e758373b..5eec8ab6 100644
--- a/eval/docs/EVAL.md
+++ b/eval/docs/EVAL.md
@@ -1,13 +1,13 @@
# Evaluation protocol
-> **Paths in this document.** `bench/…` is relative to `eval/` (this folder's parent); `codeverse/…`, `tests/…`,
+> **Paths in this document.** `bench/…` is relative to `eval/` (this folder's parent); `codeverse3d/…`, `tests/…`,
> `runtime_js/…` and the other `docs/…` files are relative to `harness/`. Recorded battery output (`bench/out/…`)
> is run data and is not in git.
How we decide whether the harness (plan → generate → gate → render → judge →
refine) beats raw generation, and whether one backend beats another, without
fooling ourselves. Tools: `3dcode bench`, `bench/compare_backends.py`,
-`codeverse.judges.{vlm_judge, pairwise, calibration, metrics}`.
+`codeverse3d.judges.{vlm_judge, pairwise, calibration, metrics}`.
## 1. Principles
@@ -35,7 +35,7 @@ fooling ourselves. Tools: `3dcode bench`, `bench/compare_backends.py`,
and wall time; compare at equal budget where possible.
7. **Reproducibility.** `record.prompt_hashes` (contract/cookbook/generate/refine),
rubric content hash (`ScoreBreakdown.rubric_hash`), `record.environment` (python,
- codeverse, blender, node, three, host) are stored per run; keep seeds fixed
+ codeverse3d, blender, node, three, host) are stored per run; keep seeds fixed
(`--seed`).
## 2. Batteries (`bench/prompts/`)
@@ -125,7 +125,7 @@ unstated effort silently changes what a codex arm measures.
**Incomplete: `harness:codex:gpt-5.6-sol` has 2 evaluated cells, `harness:gemini-cli:gemini-3.6-flash` 2, `oneshot:gemini:gemini-3.7-flash` 7; harness terra / luna have none** — flash (the planner) answered on 0/6 keys and pro (the judge) intermittently for the whole window, so only the 8 compare_v2 prompts are covered and none of compare_v3's 4 new prompts has run. Full table, per-prompt grid and re-pricing notes: `bench/out/codex_tiers_v3/report.md`.
-Fixed judge `gemini:gemini-3.1-pro-preview` for every cell; `infra_failed` / outage-text cells excluded (`dropped`), not scored 0; codex USD re-priced from recorded tokens with `codeverse.models.pricing` (terra/luna price rows post-date the runs, so `results.jsonl` shows 0.00 for terra). All 44 codex invocations (24 one-shot argv, 20 harness trajectory argv) carry `--model gpt-5.6-<tier>` and `-c model_reasoning_effort=high`; the un-tiered `oneshot:codex` arm resolves to sol@high via `~/.codex/config.toml`.
+Fixed judge `gemini:gemini-3.1-pro-preview` for every cell; `infra_failed` / outage-text cells excluded (`dropped`), not scored 0; codex USD re-priced from recorded tokens with `codeverse3d.models.pricing` (terra/luna price rows post-date the runs, so `results.jsonl` shows 0.00 for terra). All 44 codex invocations (24 one-shot argv, 20 harness trajectory argv) carry `--model gpt-5.6-<tier>` and `-c model_reasoning_effort=high`; the un-tiered `oneshot:codex` arm resolves to sol@high via `~/.codex/config.toml`.
| arm | n | dropped | mean | median | pass | build ok | $gen/run real | $gen/run notional | $/pass |
|---|---|---|---|---|---|---|---|---|---|
@@ -144,7 +144,7 @@ Judge adds ~$0.10–0.12 real per cell to every arm. What can and cannot be sai
* **One-shot tier ranking**, n=8: sol 0.627 > terra 0.481 > luna 0.344, and it survives dropping each arm's best and worst prompt (0.609 > 0.491 > 0.302). It does not hold on pass rate (terra 2/8 vs sol 1/8, luna 1/8).
* **$ per passing artifact**: notional (subscription) luna 0.11 < terra 0.55 < sol 2.7 one-shot; harness sol 7.23 (0.26 real + 6.97 notional). Real spend on the API arms bought no pass (flash harness $1.27, flash one-shot $0.30). One or two passes per arm — prices of single artifacts, not rates.
-Pending: rerun the parked sol battery, then terra, then luna, then the claude-code / gemini one-shot baselines on the 4 new prompts (one process, `CV3D_MAX_IN_FLIGHT=16`, `--wait-for-provider 240`, `--redo-status infra_failed`).
+Pending: rerun the parked sol battery, then terra, then luna, then the claude-code / gemini one-shot baselines on the 4 new prompts (one process, `C3D_MAX_IN_FLIGHT=16`, `--wait-for-provider 240`, `--redo-status infra_failed`).
## 5. Comparing backends inside the harness
@@ -156,10 +156,10 @@ cross-backend candidate pairs keyed by prompt hash).
## 6. Judge calibration
-`codeverse.addons.calibration` re-judges recorded rounds without touching the runs:
+`codeverse3d.addons.calibration` re-judges recorded rounds without touching the runs:
```bash
-python -m codeverse.addons.calibration <run-dir> [<run-dir> ...] \
+python -m codeverse3d.addons.calibration <run-dir> [<run-dir> ...] \
--model gemini:gemini-3.1-pro-preview --n 3 --out out/calib [--geometry clay|normals|none] [--rounds 0,1]
# run dirs: any recorded run, e.g. bench/out/<battery>/runs/<slug>
```
@@ -402,8 +402,8 @@ Three details are the whole correctness of it:
re-plan per arm while reporting itself pinned — the one failure this must not have.
* **`pin_plan_blockers` gates the flag** and `main` refuses the run when it is non-empty.
Pinning a plan-side switch deletes the thing under test and the rig would then report
- "no effect" with confidence. `CV3D_SKILLS*` are in `GENERATION_SIDE_ENV`, so the skills
- wave is pinnable; `CV3D_PLAN_BRIEF` is not, and `--pin-plan` rejects it.
+ "no effect" with confidence. `C3D_SKILLS*` are in `GENERATION_SIDE_ENV`, so the skills
+ wave is pinnable; `C3D_PLAN_BRIEF` is not, and `--pin-plan` rejects it.
Pinning is orthogonal to `--aa`, and an A/A that will be read against a pinned A/B must be
pinned too — otherwise the floor carries a variance term the A/B has already removed and
@@ -417,9 +417,9 @@ recorded corpus, before spending anything:
| target | baseline | paired sd (est.) | pairs to resolve a 25% move |
|---|---|---|---|
-| `cv3d-glsl-craft` / mean_edge_density | 0.234, spread 0.031–0.464 | 0.207 unpaired | ~50 unpaired — pinning + pairing is what makes it affordable |
-| `cv3d-urdf-joints` / joint_sweep_errors | 6.91 mean, 20 of 23 runs at **0**, tail 8/50/101 | ~32.6 | **~1420** (~89 even to see the metric go to zero) |
-| `cv3d-scene-composition` / camera_placement_findings | 0.25 on round 1, **0.00** by the last round | ~0.71 | **~512** (~32 to eliminate every fault) |
+| `c3d-glsl-craft` / mean_edge_density | 0.234, spread 0.031–0.464 | 0.207 unpaired | ~50 unpaired — pinning + pairing is what makes it affordable |
+| `c3d-urdf-joints` / joint_sweep_errors | 6.91 mean, 20 of 23 runs at **0**, tail 8/50/101 | ~32.6 | **~1420** (~89 even to see the metric go to zero) |
+| `c3d-scene-composition` / camera_placement_findings | 0.25 on round 1, **0.00** by the last round | ~0.71 | **~512** (~32 to eliminate every fault) |
Two of those three are answered by arithmetic, not by a battery. Running them anyway and
reporting "no effect" would be the rig lying about what it can see.
@@ -467,10 +467,10 @@ any battery was bought** — which is the point of measuring the floor first.
| bundle | target | what decided it |
|---|---|---|
-| `cv3d-glsl-craft` | mean_edge_density | its **own pinned A/A**: paired sd **0.128**, ±2 SE **0.180**, control mean 0.092 → **123 pairs** to resolve a 25% move. The A/A's identical arms differed by **+0.069**, three times any effect an 8-pair A/B could claim. |
-| `cv3d-repeats-and-mirrors` | contract_instance_findings | 132 of 164 corpus runs already at 0; the pinned A/A's one completed pair tied 1.000 → 1.000 |
-| `cv3d-urdf-joints` | joint_sweep_errors | arithmetic: 20 of 23 runs at 0 with a tail of 8/50/101, paired sd ≈ 32.6 → **~1420 pairs** for 25%, ~89 merely to drive it to zero |
-| `cv3d-scene-composition` | camera_placement_findings | undeliverable (§ below) *and* 0.25 → 0.00 across the corpus → ~512 pairs |
+| `c3d-glsl-craft` | mean_edge_density | its **own pinned A/A**: paired sd **0.128**, ±2 SE **0.180**, control mean 0.092 → **123 pairs** to resolve a 25% move. The A/A's identical arms differed by **+0.069**, three times any effect an 8-pair A/B could claim. |
+| `c3d-repeats-and-mirrors` | contract_instance_findings | 132 of 164 corpus runs already at 0; the pinned A/A's one completed pair tied 1.000 → 1.000 |
+| `c3d-urdf-joints` | joint_sweep_errors | arithmetic: 20 of 23 runs at 0 with a tail of 8/50/101, paired sd ≈ 32.6 → **~1420 pairs** for 25%, ~89 merely to drive it to zero |
+| `c3d-scene-composition` | camera_placement_findings | undeliverable (§ below) *and* 0.25 → 0.00 across the corpus → ~512 pairs |
Two things are worth keeping from it.
@@ -611,13 +611,13 @@ under `bench/out/`.
(`None` = the track default, `lifecycle.DEFAULT_DETAIL_ROUNDS=1` where supported; `0` = off).
Until this date a profile that injected a `judge_samples>1` policy (economy, quality)
silently zeroed the static track's surface-detail round while balanced kept it; all
-three profiles now get it, and `CV3D_DETAIL_ROUNDS` remains the A/B switch. Any
+three profiles now get it, and `C3D_DETAIL_ROUNDS` remains the A/B switch. Any
economy/quality-vs-balanced comparison straddling this commit compares different
round counts.
**2026-08-29 — per-language system prompts: NULL, three independent A/Bs.** The
one-line system prompts were replaced with evidence-grounded ones mined from each
-language's recorded failure corpus (the `CV3D_SYSPROMPT=v0` arm kept the old ones for
+language's recorded failure corpus (the `C3D_SYSPROMPT=v0` arm kept the old ones for
the A/B; arm and `system_v0.md` files were deleted 2026-08-29 after the null). Three
paired A/Bs all read null: glsl CLI (n=10/arm, Δ+0.003, within-arm σ 0.18), blender
single-shot (8 pairs, paired Δ−0.027), blender CLI on 3.6-flash (10/10 pairs, paired
@@ -651,9 +651,9 @@ means and mechanism evidence are read.
**Levers landed** (each commit message carries the measured motivation):
env-skeleton lint ERROR (251d099); boot-time settle (35168da) + slope-conformal guard
(e71221a); assets ∥ env (1ddea7f); plan-aware contract gates (1bdfd32); L2 zone layouts
-(beb6605) + camera clearance (58da6b3) + `CV3D_ZONE_LAYOUTS` switch (020316d); opt-in camera
-repair (0365fef, `CV3D_CAMERA_REPAIR=1`); opt-in auto-exposure (78d397c,
-`CV3D_AUTO_EXPOSURE=1`).
+(beb6605) + camera clearance (58da6b3) + `C3D_ZONE_LAYOUTS` switch (020316d); opt-in camera
+repair (0365fef, `C3D_CAMERA_REPAIR=1`); opt-in auto-exposure (78d397c,
+`C3D_AUTO_EXPOSURE=1`).
**Longitudinal arms:**
@@ -826,7 +826,7 @@ battery) and the agents applied none of them. Measurement existed; execution
didn't follow → shipped `dd88944` deterministic axis repair
(`repair_motion_axes`: anti-parallel → negate authored axis, orthogonal →
write suggested_axis; runs before the sweep so poses/renders/judge see the
-fix; INFO finding tells the agent not to undo it; `CV3D_AXIS_REPAIR=0`).
+fix; INFO finding tells the agent not to undo it; `C3D_AXIS_REPAIR=0`).
Confounds recorded honestly: this arm ran on 3.6-flash (3.7 outage, 000×3
probes), and `21c34c1` transport-retry landed mid-battery (these runs predate
it). Validation arm `art_axr_v1` (same briefs, 3.7, both levers live) is in
@@ -903,7 +903,7 @@ the session sceneloop scratchpad; runs under its runs/ dir):
— RETRY-RATE REDUCTION is the ranked lever.
* **Refuted from stored data ($0):** 3.6-flash for asset single-shots — retry-rate 0.39 vs
3.7's 0.27 AND $/first 0.0184 vs 0.0116 (era confound noted). 3.7 stays the asset model.
-* **First skills A/B** (the 4 ported bundles, CV3D_SKILLS_ONLY, 6 prompts x {off,on},
+* **First skills A/B** (the 4 ported bundles, C3D_SKILLS_ONLY, 6 prompts x {off,on},
generator gemini-cli:3.6-flash under provider degradation, planner pro, single run per arm):
meanΔ(on−off) = −0.068, pairs [koi −0.07, neon −0.49, lake +0.25, alley −0.53, ruins 0.00,
snow +0.45], sd(d) ≈ 0.39 → a ±0.1 effect is UNRESOLVABLE at n=6. Attach integrity was
diff --git a/eval/docs/PAPER_WRITING.md b/eval/docs/PAPER_WRITING.md
index 20295a04..806f58b7 100644
--- a/eval/docs/PAPER_WRITING.md
+++ b/eval/docs/PAPER_WRITING.md
@@ -1,6 +1,6 @@
# Paper writing: everything measured, and where it came from
-> **Paths in this document.** `bench/…` is relative to `eval/` (this folder's parent); `codeverse/…`, `tests/…`,
+> **Paths in this document.** `bench/…` is relative to `eval/` (this folder's parent); `codeverse3d/…`, `tests/…`,
> `runtime_js/…` and the other `docs/…` files are relative to `harness/`. Recorded battery output (`bench/out/…`)
> is run data and is not in git.
@@ -154,18 +154,18 @@ They are recorded so nobody re-runs them expecting a different answer.
| lever | battery / method | n pairs | Δ | 2 SE | sign | disposition |
|---|---|--:|--:|---|---|---|
-| **Plan-time geometry re-ask** (`CV3D_PLAN_GEOMETRY`, D49) | `compare_art_v4` pf vs pf0 | 14 | +0.064 | ±0.25 | 6/6/2 | shipped **OFF**; code removed 2026-09-21 (D49), the numbers stand |
+| **Plan-time geometry re-ask** (`C3D_PLAN_GEOMETRY`, D49) | `compare_art_v4` pf vs pf0 | 14 | +0.064 | ±0.25 | 6/6/2 | shipped **OFF**; code removed 2026-09-21 (D49), the numbers stand |
| **Pro planner** (`gemini-3.1-pro` vs `3.7-flash`) | `compare_art_v4` pp vs pf | 13 | +0.090 | ±0.23 | 9/2/2 | keep flash: 2–10× plan cost, 5/14 cells lost to provider limits |
-| **Deterministic repairs** (`CV3D_ART_REPAIRS`, a bundle since removed; its axis flip lives on as upstream's `CV3D_AXIS_REPAIR`, ON by default) | `ab_repairs`, plan pinned | 12 | −0.039 | ±0.105 | 2/5/5 | the bundle does not ship; the axis flip fired in 1 of 12 cells |
-| **Fewer turns** (`CV3D_FEWER_TURNS`) | `ab_fewer_turns`, plan pinned | 14 | +0.015 | ±0.126 | 6/5/3 | ships **OFF**; −12 % tool calls, $/cell unchanged |
-| **Lean prompt** (`CV3D_LEAN_PROMPT`) | `wave2_lean`, plan pinned | 12 | +0.030 | ±0.076 | 8/3/1 | ships **OFF**; −45.7 % generate prompt chars, $3.51 vs $3.66 per cell; code removed 2026-09-03 in review (D52); the numbers stand, the second prompt path does not. |
+| **Deterministic repairs** (`C3D_ART_REPAIRS`, a bundle since removed; its axis flip lives on as upstream's `C3D_AXIS_REPAIR`, ON by default) | `ab_repairs`, plan pinned | 12 | −0.039 | ±0.105 | 2/5/5 | the bundle does not ship; the axis flip fired in 1 of 12 cells |
+| **Fewer turns** (`C3D_FEWER_TURNS`) | `ab_fewer_turns`, plan pinned | 14 | +0.015 | ±0.126 | 6/5/3 | ships **OFF**; −12 % tool calls, $/cell unchanged |
+| **Lean prompt** (`C3D_LEAN_PROMPT`) | `wave2_lean`, plan pinned | 12 | +0.030 | ±0.076 | 8/3/1 | ships **OFF**; −45.7 % generate prompt chars, $3.51 vs $3.66 per cell; code removed 2026-09-03 in review (D52); the numbers stand, the second prompt path does not. |
Two of these carry a second, non-score reading worth keeping:
* The geometry re-ask **fired in 7 of 14 cells** and retro-fires on 8 of 14 recorded
compare_art_v3 plans (mean score 0.362 for the plans it complains about vs 0.610 for the
clean ones) — it identifies bad plans, it just does not fix enough of them to show.
-* `CV3D_FEWER_TURNS` and `CV3D_LEAN_PROMPT` both cut tokens without cutting dollars. The
+* `C3D_FEWER_TURNS` and `C3D_LEAN_PROMPT` both cut tokens without cutting dollars. The
reason is in §6: the token growth is quadratic in turns but lands in the cache, so the
bill is not where the tokens are.
@@ -185,7 +185,7 @@ then reproduces that answer through **both** in-context re-asks. The two re-ask
the week before changed nothing (29/30 vs 28/30 valid, same window) — the model conditions
on its own broken output.
-**The change** (`CV3D_PLAN_RESTART`, ON with a kill switch): on that failure the
+**The change** (`C3D_PLAN_RESTART`, ON with a kill switch): on that failure the
conversation is rebuilt from the original request plus the rule the answer broke, instead
of appending the broken plan and a complaint.
@@ -323,7 +323,7 @@ spins, the pantograph mirror's tilt. (An earlier reading of the same table trea
joint there is none.) Then two
build-and-judge arms, baseline round only, differing by two edits — the `mimic` field
typed to `None` so the planner cannot fill it, and the paragraph asking for it removed
-from `codeverse/prompts/tracks/plan_articulated.j2` (`bench/data/coupled/`; the nomimic
+from `codeverse3d/prompts/tracks/plan_articulated.j2` (`bench/data/coupled/`; the nomimic
umbrella cell scored nothing — no verdict in any round, the shape `bench run` now reports
as an error — so the score row has nine pairs, not ten):
@@ -566,13 +566,13 @@ a test enforces by grepping the tree; a switch nothing reads once produced "keep
| switch | what it does | default | why |
|---|---|---|---|
-| `CV3D_PLAN_GEOMETRY` | plan-time geometry re-ask (attachment gap, hinge pivot, swept collision) | **off** | +0.064 ±0.25, no measurable gain (§4); **removed from the tree 2026-09-21** (D49) |
-| `CV3D_PLAN_RESTART` | re-sample a collapsed plan (one top-level part **and** dangling links) from the original request | **on**, kill switch | 4.7 % → 0.7 % planner mortality, p = 0.0067 (§5.1); narrowed 2026-09-03 and re-measured three-arm: dangling-link deaths 3/140 off vs 0/276, p = 0.038 (exploratory, after three null overall-rate tests — §5.1) |
-| `CV3D_AXIS_REPAIR` (upstream, `tracks/articulated_object.py`) | axis flip on a reversed joint + buried-link check | **on** (upstream default; the A/B ran it against off) | −0.039 ±0.105, fired 1/12 (§4) |
-| `CV3D_LEAN_PROMPT` | drop duplicated contract/tool cards, select cookbook chapters, focus the refine prompt | **off** | +0.030 ±0.076, no cost saving (§4); **removed from the tree 2026-09-03**; last carried on `ziyao/articulated-wave-2` before commit `4cbb28c`. |
-| `CV3D_FEWER_TURNS` (pre-existing) | fold gate checks into build, inline refine files | **off** | +0.015 ±0.126, dollars flat (§4) |
-| `CV3D_AXIS_REPAIR` (upstream) | deterministic axis rewrite from the measured motion | on | upstream's, kept |
-| `CV3D_SCENE_TEXTURES` | wire the scene texture pack into the loop: a stage before env/zones, and `texture_pack_prompt` in both prompts | **off** | added 2026-09-05 (D58) and NOT yet measured. Four of five scored cells of the first scene battery complain the ground is a flat untextured colour, in near-identical words; the pack generator existed and had never been called from the loop. Costs an image-model call per run (measured $0.15 for two 512 px textures, seam 0.001) |
+| `C3D_PLAN_GEOMETRY` | plan-time geometry re-ask (attachment gap, hinge pivot, swept collision) | **off** | +0.064 ±0.25, no measurable gain (§4); **removed from the tree 2026-09-21** (D49) |
+| `C3D_PLAN_RESTART` | re-sample a collapsed plan (one top-level part **and** dangling links) from the original request | **on**, kill switch | 4.7 % → 0.7 % planner mortality, p = 0.0067 (§5.1); narrowed 2026-09-03 and re-measured three-arm: dangling-link deaths 3/140 off vs 0/276, p = 0.038 (exploratory, after three null overall-rate tests — §5.1) |
+| `C3D_AXIS_REPAIR` (upstream, `tracks/articulated_object.py`) | axis flip on a reversed joint + buried-link check | **on** (upstream default; the A/B ran it against off) | −0.039 ±0.105, fired 1/12 (§4) |
+| `C3D_LEAN_PROMPT` | drop duplicated contract/tool cards, select cookbook chapters, focus the refine prompt | **off** | +0.030 ±0.076, no cost saving (§4); **removed from the tree 2026-09-03**; last carried on `ziyao/articulated-wave-2` before commit `4cbb28c`. |
+| `C3D_FEWER_TURNS` (pre-existing) | fold gate checks into build, inline refine files | **off** | +0.015 ±0.126, dollars flat (§4) |
+| `C3D_AXIS_REPAIR` (upstream) | deterministic axis rewrite from the measured motion | on | upstream's, kept |
+| `C3D_SCENE_TEXTURES` | wire the scene texture pack into the loop: a stage before env/zones, and `texture_pack_prompt` in both prompts | **off** | added 2026-09-05 (D58) and NOT yet measured. Four of five scored cells of the first scene battery complain the ground is a flat untextured colour, in near-identical words; the pack generator existed and had never been called from the loop. Costs an image-model call per run (measured $0.15 for two 512 px textures, seam 0.001) |
Not switched, because they are bug fixes rather than levers: the MCP verdict/failed split
(§5.2), `<mimic>` support (§5.3), the provider-failure markers and retries (§5.4), the
@@ -588,14 +588,14 @@ python bench/ab_plan.py --prompts bench/prompts/articulated_v2.yaml --aa --pin-p
--n-samples 3 --rounds 3 --out bench/out/aa_articulated
# a switch A/B (generation-side switches only; plan-side is refused for --pin-plan)
python bench/ab_plan.py --prompts bench/prompts/articulated_v2.yaml \
- --variant-env CV3D_FEWER_TURNS=1 --pin-plan --out bench/out/fewer_turns
+ --variant-env C3D_FEWER_TURNS=1 --pin-plan --out bench/out/fewer_turns
# harness vs one-shot
python bench/compare_backends.py --prompts bench/prompts/articulated_v2.yaml \
--arms harness:gemini-cli:gemini-3.7-flash,oneshot+repair:gemini:gemini-3.7-flash \
--judge gemini:gemini-3.1-pro-preview --judge-samples 3 --out bench/out/art
# the loss-event channel: the plan stage alone, one row per call
python bench/plan_stage_bench.py --tree . --label restart_on --reps 20 \
- --out bench/data/plan_stage/restart_on.jsonl --env CV3D_PLAN_RESTART=1
+ --out bench/data/plan_stage/restart_on.jsonl --env C3D_PLAN_RESTART=1
python bench/plan_stage_report.py bench/data/plan_stage/*.jsonl
# the corpus the loop produces
3dcode flywheel refine bench/out refine.jsonl --with-code
diff --git a/eval/llm/.gitignore b/eval/llm/.gitignore
index 7331ebd0..7b58650a 100644
--- a/eval/llm/.gitignore
+++ b/eval/llm/.gitignore
@@ -1,4 +1,4 @@
-# large / generated assets live under $CV3D_EVAL_DATA, never here
+# large / generated assets live under $C3D_EVAL_DATA, never here
__pycache__/
*.pyc
out/
diff --git a/eval/llm/CLAUDE.md b/eval/llm/CLAUDE.md
index c85de23d..0bef7f03 100644
--- a/eval/llm/CLAUDE.md
+++ b/eval/llm/CLAUDE.md
@@ -4,8 +4,8 @@ Standalone LLM/VLM evaluation for 3D code (Blender-Python / CadQuery / OpenSCAD
`README.md`, then `docs/metrics.md` and `docs/protocol.md`. Do not import from `../eval` or `../scripts`;
this package is the portable re-implementation (provenance in `docs/inventory_*.md`).
-- **Paths**: never hardcode; everything goes through `config.py` (`CV3D_EVAL_DATA`, `CV3D_TOOLS`, `CV3D_BLENDER` …).
- Large assets live under `$CV3D_EVAL_DATA` (hub/, refs/, out/), never in git. `data/prompts/*.jsonl` are committed.
+- **Paths**: never hardcode; everything goes through `config.py` (`C3D_EVAL_DATA`, `C3D_TOOLS`, `C3D_BLENDER` …).
+ Large assets live under `$C3D_EVAL_DATA` (hub/, refs/, out/), never in git. `data/prompts/*.jsonl` are committed.
- **Environment**: conda env `cv3d-eval` (`~/miniconda3/envs/cv3d-eval/bin/python`): vLLM 0.28 + torch cu130
(RTX 5090 works), cadquery, playwright, trimesh, transformers. Blender 5.0.1 at `~/.local/bin/blender-5.0`
(bundled python has scipy 1.17.1 + shapely), OpenSCAD AppImage + glslang under `~/3dcodeverse_data/tools`.
diff --git a/eval/llm/README.md b/eval/llm/README.md
index 2c5fd06c..917a41f6 100644
--- a/eval/llm/README.md
+++ b/eval/llm/README.md
@@ -8,10 +8,10 @@ path resolved from the environment (`config.py`) instead of `/wekafs/...`.
```
llm/
- config.py paths + tool discovery (CV3D_EVAL_DATA, CV3D_TOOLS, CV3D_BLENDER, …); `python -m llm.config` = doctor
+ config.py paths + tool discovery (C3D_EVAL_DATA, C3D_TOOLS, C3D_BLENDER, …); `python -m llm.config` = doctor
download.py pull the assets from the Hub (needs a token with access to ilabai/*)
build_prompts.py Hub assets → data/prompts/<suite>.jsonl (one schema for every suite)
- build_refs.py execute the reference programs → $CV3D_EVAL_DATA/refs/<suite>/<id>/ref.{glb,stl}
+ build_refs.py execute the reference programs → $C3D_EVAL_DATA/refs/<suite>/<id>/ref.{glb,stl}
suites.py suite registry: dialect, decoding defaults, which metrics apply, tags
generate.py backends: vllm (local, text+image) · openai-compatible (vLLM server / API) · anthropic · reference
extract.py dialect-aware code extraction from free-form answers (think blocks, multiple fences)
@@ -55,7 +55,7 @@ Tags: `headline` (3dcodebench_text), `text`, `vlm`, `official`, `heldout`, `long
```bash
# 0. environment: conda env cv3d-eval + Blender 5.0.1 + OpenSCAD + glslang + Chromium, no sudo (~15 min, re-runnable)
bash llm/setup.sh
-export CV3D_EVAL_DATA=~/3dcodeverse_data/3dcodeverse_eval CV3D_TOOLS=~/3dcodeverse_data/tools # defaults
+export C3D_EVAL_DATA=~/3dcodeverse_data/3dcodeverse_eval C3D_TOOLS=~/3dcodeverse_data/tools # defaults
python -m llm.config # doctor: every tool and asset it can / cannot find
# 1. assets (token with access to ilabai/*: `hf auth login`)
@@ -80,7 +80,7 @@ python -m llm.run_eval ... --judge-model gpt-5.4 --judge-base-url https://…/v1
python -m llm.judge pairwise --run-a qwen3_8b --run-b official_gpt-5.5 --suite 3dcodebench_official_text --judge-model …
# 6. tables
-python -m llm.report --root $CV3D_EVAL_DATA/out
+python -m llm.report --root $C3D_EVAL_DATA/out
```
What is measured, per suite: execution → geometry vs GT ([email protected], Chamfer, IoU) → structural integrity of the
@@ -88,8 +88,8 @@ mesh itself (floating parts, fragmentation, watertight, stability) → official
DINOv3) → optional VLM judge. `docs/metrics.md` defines each; the answer to "is the object good" is [email protected] /
SigLIP-2 when a GT exists, and the structural fields + judge when it does not.
-Outputs: `$CV3D_EVAL_OUT/<run>/<suite>[/sN]/{<id>/{code.*, raw.txt, exec/…}, gens.jsonl, gen_stats.json,
-exec_results.jsonl, metrics.jsonl, summary.json}` and `$CV3D_EVAL_OUT/report.md`.
+Outputs: `$C3D_EVAL_OUT/<run>/<suite>[/sN]/{<id>/{code.*, raw.txt, exec/…}, gens.jsonl, gen_stats.json,
+exec_results.jsonl, metrics.jsonl, summary.json}` and `$C3D_EVAL_OUT/report.md`.
## Prompt row schema (`data/prompts/*.jsonl`)
@@ -100,7 +100,7 @@ exec_results.jsonl, metrics.jsonl, summary.json}` and `$CV3D_EVAL_OUT/report.md`
"reference": {"code": "…", "mesh": "refs/3dcodebench/AgaveMonocot_seed0/ref.glb", "renders": ["…Image_005.png", …]},
"meta": {"factory": "AgaveMonocot", "caption_type": "instruction", "source": "YipengGao/3DCode/3DCodeBench"}}
```
-Paths are relative to `$CV3D_EVAL_DATA`. Adding a suite = adding a JSONL in this schema (+ one line in
+Paths are relative to `$C3D_EVAL_DATA`. Adding a suite = adding a JSONL in this schema (+ one line in
`suites.SUITES` for decoding defaults / metrics).
## What the numbers mean
@@ -123,7 +123,7 @@ three.js 40/40 — identical to the report's reference counts.
## Reusing the harness judge
The harness batteries (`../bench/prompts/*.yaml`, the ten in `config.HARNESS_BATTERIES`) have no ground truth; their quality score is the calibrated
-Gemini VLM judge in `harness/codeverse/judges` (14-view rig, rubric `static_object_v1`, σ ≈ 0.03 at n=3).
+Gemini VLM judge in `harness/codeverse3d/judges` (14-view rig, rubric `static_object_v1`, σ ≈ 0.03 at n=3).
`docs/inventory_harness_bench.md` §7 shows the minimal call sequence (`FixedEvaluator`, `h2h_glb.py`) to
judge a GLB produced here without the agentic pipeline.
diff --git a/eval/llm/build_prompts.py b/eval/llm/build_prompts.py
index 5e40c070..addd3f86 100644
--- a/eval/llm/build_prompts.py
+++ b/eval/llm/build_prompts.py
@@ -6,10 +6,10 @@ One JSONL row per task, one schema for every suite::
"suite": str, e.g. "3dcodebench_text"
"dialect": str, blender | cadquery | openscad | glsl | threejs
"messages": [{"role": "system"|"user", "content": str}], the chat prompt sent to the model
- "images": [str], image paths relative to $CV3D_EVAL_DATA (VLM suites only), one <image> tag
+ "images": [str], image paths relative to $C3D_EVAL_DATA (VLM suites only), one <image> tag
per image appears in the user message
"reference": {"code": str|null, "mesh": str|null, "renders": [str]}, ground truth (code inline; mesh/renders
- relative to $CV3D_EVAL_DATA, filled by build_refs.py / download.py)
+ relative to $C3D_EVAL_DATA, filled by build_refs.py / download.py)
"meta": {...}} source ids, caption type, tier, must_have, ...
Suites built here (sizes are what the assets give):
@@ -46,7 +46,7 @@ SYSTEM_BENCH_IMGTEXT = ("You are an expert in procedural 3D modeling with Blende
"description of an object, write a complete, standalone Blender 5 Python script that builds the requested "
"object from scratch (clear the default scene first). Output ONLY the code in one ```python block.")
-# one-shot system prompts for the harness batteries (derived from harness/codeverse/prompts/<lang>/contract.md)
+# one-shot system prompts for the harness batteries (derived from harness/codeverse3d/prompts/<lang>/contract.md)
SYSTEM_BATTERY = {
"blender": ("You are an expert Blender (bpy) modeller writing raw code. Write ONE complete, standalone Blender 5 Python "
"script that builds the requested object from scratch in an emptied scene. Conventions: Z-up, the object's "
diff --git a/eval/llm/build_refs.py b/eval/llm/build_refs.py
index dbf0ca33..67701909 100644
--- a/eval/llm/build_refs.py
+++ b/eval/llm/build_refs.py
@@ -1,6 +1,6 @@
"""Build reference meshes by executing the reference programs of every suite that has them.
-Writes $CV3D_EVAL_DATA/refs/<suite>/<id>/ref.{glb|stl} plus refs/<suite>/ref_exec.jsonl, then re-runs
+Writes $C3D_EVAL_DATA/refs/<suite>/<id>/ref.{glb|stl} plus refs/<suite>/ref_exec.jsonl, then re-runs
build_prompts so the prompt rows point at the meshes. Executing the reference through the *same* executor
as the model outputs is also the executor's self-test: the report's sanity figure for 3DCodeBench is
Chamfer ≈ 0.016 / [email protected] ≈ 1.0 between a re-executed reference and the shipped GT.
@@ -72,7 +72,7 @@ def extract_canonical(tar_path: Path) -> None:
"""Pull renders/object.glb for every factory out of the 3dcodebench factories_geo tar."""
import pyarrow.parquet as pq
- meta = pq.read_table(config.CV3D_HUB / "3dcodebench" / "factories_geo" / "metadata.parquet").to_pylist()
+ meta = pq.read_table(config.C3D_HUB / "3dcodebench" / "factories_geo" / "metadata.parquet").to_pylist()
want = {m["key"].replace("Factory_geo", "") + "_seed0": m for m in meta} # AgaveMonocotFactory_geo -> AgaveMonocot_seed0
tasks = {r["id"] for r in load_prompts("3dcodebench_text")}
n = 0
diff --git a/eval/llm/config.py b/eval/llm/config.py
index b64b6976..446dac61 100644
--- a/eval/llm/config.py
+++ b/eval/llm/config.py
@@ -3,13 +3,13 @@
Nothing in this package hardcodes a machine. Every location is resolved here, from environment
variables first and sensible defaults second:
- CV3D_EVAL_DATA root for downloaded assets, reference meshes and run outputs
+ C3D_EVAL_DATA root for downloaded assets, reference meshes and run outputs
(default ~/3dcodeverse_data/3dcodeverse_eval)
- CV3D_EVAL_OUT run outputs (default $CV3D_EVAL_DATA/out)
- CV3D_TOOLS directory holding blender-5.0.1-linux-x64/, openscad/, glslang/
+ C3D_EVAL_OUT run outputs (default $C3D_EVAL_DATA/out)
+ C3D_TOOLS directory holding blender-5.0.1-linux-x64/, openscad/, glslang/
(default ~/3dcodeverse_data/tools)
- CV3D_BLENDER, CV3D_OPENSCAD, CV3D_GLSLANG, CV3D_CQ_PYTHON explicit binaries
- CV3D_XLIBS extra shared-library dir prepended to LD_LIBRARY_PATH for Blender/OpenSCAD
+ C3D_BLENDER, C3D_OPENSCAD, C3D_GLSLANG, C3D_CQ_PYTHON explicit binaries
+ C3D_XLIBS extra shared-library dir prepended to LD_LIBRARY_PATH for Blender/OpenSCAD
(default ~/.local/xlibs/usr/lib/x86_64-linux-gnu, where libSM/libICE/libOpenGL
were unpacked on a box without sudo)
PLAYWRIGHT_BROWSERS_PATH honoured by Playwright itself
@@ -31,15 +31,15 @@ BATTERIES_DIR = PKG_DIR.parent / "bench" / "prompts"
HARNESS_BATTERIES = ("articulated_v2", "compare_v4", "complexity_v3", "fancy_v1_blender", "fancy_v1_cadquery",
"fancy_v1_threejs", "graphics_v2", "static_objects_v1", "static_objects_v2", "teaser_v1_static")
-DATA_DIR = Path(os.environ.get("CV3D_EVAL_DATA", "~/3dcodeverse_data/3dcodeverse_eval")).expanduser()
+DATA_DIR = Path(os.environ.get("C3D_EVAL_DATA", "~/3dcodeverse_data/3dcodeverse_eval")).expanduser()
HUB_DIR = DATA_DIR / "hub" # snapshot_download targets (ilabai/*, YipengGao/3DCode)
REFS_DIR = DATA_DIR / "refs" # reference meshes / renders per suite
-OUT_DIR = Path(os.environ.get("CV3D_EVAL_OUT", DATA_DIR / "out")).expanduser()
-TOOLS_DIR = Path(os.environ.get("CV3D_TOOLS", "~/3dcodeverse_data/tools")).expanduser()
-XLIBS = Path(os.environ.get("CV3D_XLIBS", "~/.local/xlibs/usr/lib/x86_64-linux-gnu")).expanduser()
+OUT_DIR = Path(os.environ.get("C3D_EVAL_OUT", DATA_DIR / "out")).expanduser()
+TOOLS_DIR = Path(os.environ.get("C3D_TOOLS", "~/3dcodeverse_data/tools")).expanduser()
+XLIBS = Path(os.environ.get("C3D_XLIBS", "~/.local/xlibs/usr/lib/x86_64-linux-gnu")).expanduser()
BENCH_TASKS_DIR = HUB_DIR / "3DCode" / "3DCodeBench" # 212 <task>/{<task>.py, prompt_*.txt}
-CV3D_HUB = HUB_DIR / "3dcodeverse" # ilabai/3dcodeverse partial snapshot
+C3D_HUB = HUB_DIR / "3dcodeverse" # ilabai/3dcodeverse partial snapshot
LF_HUB = HUB_DIR / "3dcodeverse-llamafactory" # ilabai/3dcodeverse-llamafactory (test/*.parquet)
@@ -55,7 +55,7 @@ def _first_existing(*cands: str | Path | None) -> Path | None:
def find_blender() -> Path | None:
return _first_existing(
- os.environ.get("CV3D_BLENDER"),
+ os.environ.get("C3D_BLENDER"),
"~/.local/bin/blender-5.0",
TOOLS_DIR / "blender-5.0.1-linux-x64" / "blender",
shutil.which("blender"),
@@ -64,7 +64,7 @@ def find_blender() -> Path | None:
def find_openscad() -> Path | None:
return _first_existing(
- os.environ.get("CV3D_OPENSCAD"),
+ os.environ.get("C3D_OPENSCAD"),
TOOLS_DIR / "openscad" / "AppRun",
TOOLS_DIR / "openscad.AppImage",
shutil.which("openscad"),
@@ -73,7 +73,7 @@ def find_openscad() -> Path | None:
def find_glslang() -> Path | None:
return _first_existing(
- os.environ.get("CV3D_GLSLANG"),
+ os.environ.get("C3D_GLSLANG"),
TOOLS_DIR / "glslang" / "bin" / "glslang",
TOOLS_DIR / "glslang" / "bin" / "glslangValidator",
shutil.which("glslang"),
@@ -83,7 +83,7 @@ def find_glslang() -> Path | None:
def cadquery_python() -> str:
"""Interpreter that has `cadquery` importable (default: the current one)."""
- return os.environ.get("CV3D_CQ_PYTHON") or sys.executable
+ return os.environ.get("C3D_CQ_PYTHON") or sys.executable
def tool_env(**extra: str) -> dict[str, str]:
diff --git a/eval/llm/docs/inventory_harness_bench.md b/eval/llm/docs/inventory_harness_bench.md
index a0b255ee..d1dc9ed1 100644
--- a/eval/llm/docs/inventory_harness_bench.md
+++ b/eval/llm/docs/inventory_harness_bench.md
@@ -28,22 +28,22 @@ Schema (`bench/run_bench.py:49-71`): `Battery{name, track, language, description
## 2. Judging methodology
-- `codeverse/judges/vlm_judge.py` `VlmJudge(rubric, model_id, n_samples, temperature=0.2, thinking="low")`; default judge `gemini:gemini-3.1-pro-preview`. Variants `ReferenceJudge` (reference images + silhouette IoU), `LikenessJudge`, `PairwiseJudge` (`judges/pairwise.py`: both orderings, winner only when they agree).
+- `codeverse3d/judges/vlm_judge.py` `VlmJudge(rubric, model_id, n_samples, temperature=0.2, thinking="low")`; default judge `gemini:gemini-3.1-pro-preview`. Variants `ReferenceJudge` (reference images + silhouette IoU), `LikenessJudge`, `PairwiseJudge` (`judges/pairwise.py`: both orderings, winner only when they agree).
- Prompt (`judges/prompt_builder.py`): blind judge, observe-then-score, defect checklist; BRIEF + CONSTRAINTS + MEASUREMENTS + GATE FINDINGS; ≤5 labelled 2×2 montages (512 px tiles) + ≤2 detail crops; cross-section slices only on connectivity ERROR (D48).
- Score (`judges/rubrics.py`, SCORING_VERSION=2): weighted criteria → majority-voted defects with penalties/caps → gate caps → `passed = overall ≥ threshold ∧ no floor ∧ no unverified must item`.
- Rubrics (`judges/rubrics/*.yaml`): `static_object_v1` (threshold 0.72; intent_fidelity .22, structure .18, geometry_detail .16, proportions .12, assembly_fit .12, materials .10, craftsmanship .10; 11 defects), `articulated_v1` (0.70), `scene_v1` (0.70), `shader_v2` (0.70; shader_v1 had Spearman 0.16 vs human), `asset_v1`, `reference_v1` (measured silhouette IoU criterion, weight .25).
-- View rig (`codeverse/conventions.py:87-102`): 14 views (high ring ×4 @ +30°, eye-level ×4, low ring ×4 @ −30°, top, bottom), 768² studio background; clay montage ×4. Graphics: frames at t = 0, 1, 2.5, 4, 6 s.
+- View rig (`codeverse3d/conventions.py:87-102`): 14 views (high ring ×4 @ +30°, eye-level ×4, low ring ×4 @ −30°, top, bottom), 768² studio background; clay montage ×4. Graphics: frames at t = 0, 1, 2.5, 4, 6 s.
- Calibration (`docs/EVAL.md` §6): pro σ(overall, n=3) **0.030**, flash σ **0.083**; fixed-order re-judge σ 0.035; paired A/A on identical arms: paired sd 0.16–0.20 → generation variance dominates; ±0.02 needs ~500 pairs. ~$0.15–0.20 per pro verdict.
- Deterministic gates: per-language lint; build (`ok` requires non-empty GLB); `measure_glb` (bbox, tri_count, n_meshes, n_islands, per-part volume/watertight, ground_gap, materials, complexity vector); `check_connectivity` (floating part = ERROR, penetration WARN > 2 mm, ERROR > 10 mm); graphics `gl_frames` (NaN, black/blown, static, flicker, low_detail); `reference_silhouette` IoU; `must_have` → VLM acceptance items.
- **No CLIP/DINO/Chamfer metric exists in the harness**; silhouette IoU is the only image similarity; geometry is compared to the plan's boxes only.
## 3. One-shot path (`bench/_oneshot.py`)
- `oneshot_prompt(spec)` = `"Model this object in raw bpy: <prompt>"` + dimensions + MUST HAVE/NOT + minimal contract (Blender 5.x, emptied scene, Z-up, −Y front, metres, on z=0, PascalCase names, material per mesh, no render/export/import/network, <500k tris, <120 s, call `main()`) + "reply with the COMPLETE file as ONE ```python block".
-- Backends: `claude-code[:model]`, `codex[:model]`, `gemini:|anthropic:|openai:<model>` (ApiOneShot: temperature 0.5, thinking medium, max_output 32000). **Local open model works** via `openai:<model>` + `CV3D_OPENAI_BASE_URL=http://host:8000/v1` (vLLM OpenAI server).
-- Contracts per language to reuse verbatim: `codeverse/prompts/{blender,cadquery,threejs,glsl_shader,opengl_python,scene_threejs,urdf}/{system.md,contract.md,cookbook.md}`.
+- Backends: `claude-code[:model]`, `codex[:model]`, `gemini:|anthropic:|openai:<model>` (ApiOneShot: temperature 0.5, thinking medium, max_output 32000). **Local open model works** via `openai:<model>` + `C3D_OPENAI_BASE_URL=http://host:8000/v1` (vLLM OpenAI server).
+- Contracts per language to reuse verbatim: `codeverse3d/prompts/{blender,cadquery,threejs,glsl_shader,opengl_python,scene_threejs,urdf}/{system.md,contract.md,cookbook.md}`.
- Evaluate a workspace: `bench/_fixed_eval.FixedEvaluator(judge_model, n_samples, track, language).evaluate(ws, spec) -> EvalOutcome` (build → gates → 14-view render → judge).
-## 4. Renderers / executors (`codeverse/languages/<lang>`)
+## 4. Renderers / executors (`codeverse3d/languages/<lang>`)
| language | build | outputs |
|---|---|---|
| blender | `blender -b --factory-startup --python wrappers/run_bpy.py -- --script src/model.py --out artifacts --rlimit-gb 12 --tri-limit 600000 --seed 0 --stl` | `object.glb` (Y-up), `object.stl`, `build.json`, `census.json` |
@@ -53,13 +53,13 @@ Schema (`bench/run_bench.py:49-71`): `Battery{name, track, language, description
| scene_threejs | puppeteer probe/render over http | renders, `metrics.json` |
| glsl_shader / opengl_python | moderngl `GlHost` | `frames/*.png`, `preview.gif`, `metrics.json` |
-GLB rendering for judging: `codeverse.spatial.render.render_glb(glb, out_dir, views=OBJECT_VIEWS, mode=shaded|clay|…)` via `runtime_js/render_glb.mjs` in headless Chrome.
+GLB rendering for judging: `codeverse3d.spatial.render.render_glb(glb, out_dir, views=OBJECT_VIEWS, mode=shaded|clay|…)` via `runtime_js/render_glb.mjs` in headless Chrome.
## 5. Result schema
`BenchItemResult`: `id, tier, category, score_baseline, score_final, passed, rounds, cost_usd, minutes, status, errors, workspace, generator, judge`. `compare_backends.py` → `CellResult{prompt_id, arm, status (scored|build_failed|no_code|judge_error|infra_failed|budget_exhausted), score, score_std, passed, build_ok, gate_errors[], tris, gen_cost_usd, judge_cost_usd, criteria{}, …}` + `paired.md` (paired Δ, t-CI, sign test).
## 6. Reuse recommendation for `3dcodeverse_eval/`
1. Batteries are data: copy the YAMLs (`static_objects_v2`, `compare_v4`, `fancy_v1_*`, `graphics_v2`, `articulated_v2`) as a **rubric-judged / no-GT** prompt set.
-2. Judge stack as-is: `codeverse.judges.{rubrics, prompt_builder, vlm_judge, pairwise}` + rubric YAMLs; keep Gemini pro for comparability; n = 1 or 3.
-3. Gates/renderers: `codeverse.spatial.{measure.measure_glb, connectivity.check_connectivity, render.render_glb, complexity.complexity_of_glb, silhouette.best_view_match, frame_stats}`; `codeverse.languages.get_runtime(lang).build`.
+2. Judge stack as-is: `codeverse3d.judges.{rubrics, prompt_builder, vlm_judge, pairwise}` + rubric YAMLs; keep Gemini pro for comparability; n = 1 or 3.
+3. Gates/renderers: `codeverse3d.spatial.{measure.measure_glb, connectivity.check_connectivity, render.render_glb, complexity.complexity_of_glb, silhouette.best_view_match, frame_stats}`; `codeverse3d.languages.get_runtime(lang).build`.
4. Gaps: one-shot contracts exist only for blender/urdf (derive others from `prompts/<lang>/contract.md`); no plan-free `dimensions_m` gate (write one over `measure_glb().extents`); scene batteries need the full harness.
diff --git a/eval/llm/docs/metrics.md b/eval/llm/docs/metrics.md
index fee1866b..356783c6 100644
--- a/eval/llm/docs/metrics.md
+++ b/eval/llm/docs/metrics.md
@@ -44,7 +44,7 @@ Sampling at T = 0.7, top-p 0.95, seeds 0..N−1 (`run_eval --samples N`).
## 4. Rubric-judged suites (harness batteries, no GT)
Execution rate is always reported. Quality needs a judge: the harness's calibrated VLM judge
-(`harness/codeverse/judges`, Gemini pro, 14-view rig, `static_object_v1` rubric, threshold 0.72, σ ≈ 0.03 at
+(`harness/codeverse3d/judges`, Gemini pro, 14-view rig, `static_object_v1` rubric, threshold 0.72, σ ≈ 0.03 at
n=3) is the reference implementation — see `docs/inventory_harness_bench.md` §2 for how to call it on a
GLB. No judge is bundled here yet; if one is added it must be pairwise with swapped order and report κ against a
human-labelled subset (LLM judges have position/length bias — survey §2e).
diff --git a/eval/llm/docs/reference_numbers.md b/eval/llm/docs/reference_numbers.md
index 289cec76..9f4f94ec 100644
--- a/eval/llm/docs/reference_numbers.md
+++ b/eval/llm/docs/reference_numbers.md
@@ -55,5 +55,5 @@ CadQuery 200/200 (report: 199/200), OpenSCAD 50/50, GLSL 178/200 compile, three.
## C. Local re-scores (this machine, `docs/results/`)
-Filled in by the runs under `$CV3D_EVAL_OUT` (`report.py`): frontier logs replayed under the official protocol,
+Filled in by the runs under `$C3D_EVAL_OUT` (`report.py`): frontier logs replayed under the official protocol,
the reference self-test, and the open 8B/9B runs. See `docs/results/README.md`.
diff --git a/eval/llm/docs/results/README.md b/eval/llm/docs/results/README.md
index 8175d25b..96b9e932 100644
--- a/eval/llm/docs/results/README.md
+++ b/eval/llm/docs/results/README.md
@@ -1,6 +1,6 @@
# Local results (this machine: WSL2, RTX 5090 24 GB, Blender 5.0.1, OpenSCAD 2026.09.07, glslang 16.5, Chromium 151)
-Every table here is regenerated by `python -m llm.report --root $CV3D_EVAL_OUT`; the per-run
+Every table here is regenerated by `python -m llm.report --root $C3D_EVAL_OUT`; the per-run
`summary.json` files are the source of truth. Runs are dated because tool versions drift.
| run | what | file |
diff --git a/eval/llm/download.py b/eval/llm/download.py
index 81ecdf0c..00eea61f 100644
--- a/eval/llm/download.py
+++ b/eval/llm/download.py
@@ -1,4 +1,4 @@
-"""Download the evaluation assets from the Hub into $CV3D_EVAL_DATA/hub (needs a token with access to
+"""Download the evaluation assets from the Hub into $C3D_EVAL_DATA/hub (needs a token with access to
`ilabai/*`; `hf auth login` or HF_TOKEN).
--core 212 3DCodeBench tasks (YipengGao/3DCode/3DCodeBench), the five held-out test parquets and
diff --git a/eval/llm/executors/blender.py b/eval/llm/executors/blender.py
index c2c1e6ea..d077b56f 100644
--- a/eval/llm/executors/blender.py
+++ b/eval/llm/executors/blender.py
@@ -20,7 +20,7 @@ RUNNER = Path(__file__).with_name("blender_runner.py")
def run(code: str, workdir: str, timeout: int = 300) -> dict:
blender = config.find_blender()
if blender is None:
- return {"status": "CRASH", "error": "blender not found (set CV3D_BLENDER)", "latency_s": 0.0, "mesh": None}
+ return {"status": "CRASH", "error": "blender not found (set C3D_BLENDER)", "latency_s": 0.0, "mesh": None}
wd = Path(workdir).resolve()
wd.mkdir(parents=True, exist_ok=True)
script, glb, rep_path = wd / "code.py", wd / "out.glb", wd / "exec.json"
diff --git a/eval/llm/executors/glsl.py b/eval/llm/executors/glsl.py
index a08b2b29..347f1f09 100644
--- a/eval/llm/executors/glsl.py
+++ b/eval/llm/executors/glsl.py
@@ -92,7 +92,7 @@ window.__result = {ok:false, err:null};
def compile_check(src: str, workdir: Path, timeout: int) -> dict:
exe = config.find_glslang()
if exe is None:
- return {"status": "CRASH", "error": "glslang not found (set CV3D_GLSLANG)"}
+ return {"status": "CRASH", "error": "glslang not found (set C3D_GLSLANG)"}
fp = workdir / "shader.frag"
fp.write_text(PRELUDE + src + MAIN)
try:
diff --git a/eval/llm/executors/openscad.py b/eval/llm/executors/openscad.py
index 3d799e6e..7b8f9914 100644
--- a/eval/llm/executors/openscad.py
+++ b/eval/llm/executors/openscad.py
@@ -11,7 +11,7 @@ from .. import config
def run(code: str, workdir: str, timeout: int = 120) -> dict:
exe = config.find_openscad()
if exe is None:
- return {"status": "CRASH", "error": "openscad not found (set CV3D_OPENSCAD)", "latency_s": 0.0, "mesh": None}
+ return {"status": "CRASH", "error": "openscad not found (set C3D_OPENSCAD)", "latency_s": 0.0, "mesh": None}
wd = Path(workdir).resolve()
wd.mkdir(parents=True, exist_ok=True)
scad, stl = wd / "code.scad", wd / "out.stl"
diff --git a/eval/llm/executors/threejs.py b/eval/llm/executors/threejs.py
index bda3106e..9c03d1ac 100644
--- a/eval/llm/executors/threejs.py
+++ b/eval/llm/executors/threejs.py
@@ -5,7 +5,7 @@ status OK = page loaded, no uncaught JS error / failed module import / failed
EMPTY = no canvas or blank canvas. FAIL = JS/import error. TIMEOUT = page load exceeded the limit.
Pages usually import three.js from a CDN via an importmap, so the browser needs network access. Set
-``CV3D_THREE_LOCAL=/path/to/three/build`` (a directory holding ``three.module.js`` and ``jsm/``) to rewrite
+``C3D_THREE_LOCAL=/path/to/three/build`` (a directory holding ``three.module.js`` and ``jsm/``) to rewrite
``https://cdn.jsdelivr.net/npm/three@X/build/three.module.js`` / ``…/examples/jsm/`` (and the unpkg /
esm.sh equivalents) to that local copy and run offline.
"""
@@ -20,7 +20,7 @@ _CDN_RE = re.compile(r"https://(?:cdn\.jsdelivr\.net/npm|unpkg\.com|esm\.sh)/thr
def localise(html: str) -> str:
- local = os.environ.get("CV3D_THREE_LOCAL")
+ local = os.environ.get("C3D_THREE_LOCAL")
if not local:
return html
root = Path(local).resolve()
diff --git a/eval/llm/run_eval.py b/eval/llm/run_eval.py
index 42e61e17..95dd90cc 100644
--- a/eval/llm/run_eval.py
+++ b/eval/llm/run_eval.py
@@ -5,7 +5,7 @@
python -m llm.run_eval --backend reference --run reference --suites all # executor self-test
python -m llm.run_eval ... --samples 4 --temperature 0.7 # pass@k
-Outputs land in $CV3D_EVAL_OUT/<run>/<suite>[/sN]/ and a report.md is rebuilt over the whole output root.
+Outputs land in $C3D_EVAL_OUT/<run>/<suite>[/sN]/ and a report.md is rebuilt over the whole output root.
Stages can be skipped/resumed: --stages gen exec score (default: all); generation of an existing gens.jsonl is
reused unless --force.
"""
diff --git a/eval/llm/setup.sh b/eval/llm/setup.sh
index 2ccf89e2..2418f7a5 100644
--- a/eval/llm/setup.sh
+++ b/eval/llm/setup.sh
@@ -1,15 +1,15 @@
#!/usr/bin/env bash
# One-shot environment setup for 3dcodeverse_eval on a Linux box (no sudo needed).
# bash llm/setup.sh # everything below
-# CV3D_TOOLS=/opt/cv3d-tools bash setup.sh # tools elsewhere
+# C3D_TOOLS=/opt/c3d-tools bash setup.sh # tools elsewhere
# Installs: conda env `cv3d-eval` (vLLM, executors, metrics), Blender 5.0.1, OpenSCAD nightly AppImage
# (+ libglvnd unpacked locally), glslang 16.5, Playwright Chromium, scipy/shapely inside Blender's python.
# Re-runnable: every step skips what already exists. Afterwards: `python -m llm.config`.
set -euo pipefail
-TOOLS="${CV3D_TOOLS:-$HOME/3dcodeverse_data/tools}"
-ENV_NAME="${CV3D_ENV:-cv3d-eval}"
-XLIBS="${CV3D_XLIBS:-$HOME/.local/xlibs/usr/lib/x86_64-linux-gnu}"
+TOOLS="${C3D_TOOLS:-$HOME/3dcodeverse_data/tools}"
+ENV_NAME="${C3D_ENV:-cv3d-eval}"
+XLIBS="${C3D_XLIBS:-$HOME/.local/xlibs/usr/lib/x86_64-linux-gnu}"
mkdir -p "$TOOLS" "$HOME/.local/bin"
log() { printf '\n\033[1;34m[setup]\033[0m %s\n' "$*"; }
diff --git a/eval/pyproject.toml b/eval/pyproject.toml
index 32b00681..4d3fddb0 100644
--- a/eval/pyproject.toml
+++ b/eval/pyproject.toml
@@ -10,7 +10,7 @@ select = ["E", "W", "F", "I", "B", "UP", "SIM"]
ignore = ["E501"]
[tool.ruff.lint.isort]
-known-first-party = ["bench", "codeverse", "tests"]
+known-first-party = ["bench", "codeverse3d", "tests"]
[tool.pytest.ini_options]
testpaths = ["tests"]
diff --git a/eval/tests/conftest.py b/eval/tests/conftest.py
index 6af79fca..c217b7cd 100644
--- a/eval/tests/conftest.py
+++ b/eval/tests/conftest.py
@@ -9,7 +9,7 @@ from typing import Any
from PIL import Image
REPO = Path(__file__).resolve().parents[1] # eval/ — the `bench` package lives here
-HARNESS = REPO.parent / "harness" # the tree under evaluation: ITS codeverse, not an install
+HARNESS = REPO.parent / "harness" # the tree under evaluation: ITS codeverse3d, not an install
for _p in (HARNESS, REPO):
if str(_p) not in sys.path:
sys.path.insert(0, str(_p))
@@ -30,7 +30,7 @@ make_fake_run = _harness_test_module("flywheel_cli/conftest.py", "_harness_flywh
from bench._fixed_eval import EvalOutcome # noqa: E402
from bench._oneshot import MODEL_FILE, OneShotResult # noqa: E402
-from codeverse.contracts.artifacts import ( # noqa: E402
+from codeverse3d.contracts.artifacts import ( # noqa: E402
BuildResult,
GateFinding,
GateReport,
@@ -40,10 +40,10 @@ from codeverse.contracts.artifacts import ( # noqa: E402
RenderView,
Severity,
)
-from codeverse.contracts.common import Usage # noqa: E402
-from codeverse.contracts.run import RunRecord, RunStatus # noqa: E402
-from codeverse.contracts.spec import Spec # noqa: E402
-from codeverse.workspace import Workspace # noqa: E402
+from codeverse3d.contracts.common import Usage # noqa: E402
+from codeverse3d.contracts.run import RunRecord, RunStatus # noqa: E402
+from codeverse3d.contracts.spec import Spec # noqa: E402
+from codeverse3d.workspace import Workspace # noqa: E402
BATTERY = REPO / "bench" / "prompts" / "compare_v1.yaml"
GOOD = "import bpy\n# score={score}\nbpy.ops.mesh.primitive_cube_add()\nbpy.context.object.name = 'Body'\n"
@@ -146,7 +146,7 @@ class FakePairwise:
self.calls = 0
def compare(self, spec: Spec, ra: RenderSet, rb: RenderSet, *, rubric: Any = None):
- from codeverse.judges.pairwise import PairwiseResult
+ from codeverse3d.judges.pairwise import PairwiseResult
self.calls += 1
return PairwiseResult(winner="a", confidence=0.8, reasons=["Candidate A is cleaner"], usage=Usage(cost_usd=0.03))
diff --git a/eval/tests/test_ab_plan.py b/eval/tests/test_ab_plan.py
index 79b423d2..ada35167 100644
--- a/eval/tests/test_ab_plan.py
+++ b/eval/tests/test_ab_plan.py
@@ -172,11 +172,11 @@ def test_an_aa_run_is_labelled_so_nobody_reads_it_as_a_decision():
# ----------------------------------------------------------------------------- env isolation
def test_variant_env_is_applied_to_the_variant_arm_only():
- opts = AbOptions(variant_env={"CV3D_PLAN_BRIEF": "on"})
- base = {"PATH": "/bin", "CV3D_PLAN_BRIEF": "on"} # leaked from the launching shell
+ opts = AbOptions(variant_env={"C3D_PLAN_BRIEF": "on"})
+ base = {"PATH": "/bin", "C3D_PLAN_BRIEF": "on"} # leaked from the launching shell
c, v = child_env(CONTROL, opts, base), child_env(VARIANT, opts, base)
- assert v["CV3D_PLAN_BRIEF"] == "on"
- assert "CV3D_PLAN_BRIEF" not in c, "the control must never inherit the switch under test"
+ assert v["C3D_PLAN_BRIEF"] == "on"
+ assert "C3D_PLAN_BRIEF" not in c, "the control must never inherit the switch under test"
assert c["PATH"] == v["PATH"] == "/bin"
assert c[MAX_IN_FLIGHT_ENV] == v[MAX_IN_FLIGHT_ENV] == "16"
assert child_env(VARIANT, opts, {})["PYTHONUNBUFFERED"] == "1"
@@ -185,7 +185,7 @@ def test_variant_env_is_applied_to_the_variant_arm_only():
def test_children_run_at_exactly_the_cap_the_budget_reserved(monkeypatch):
"""CQ-3: main() refuses to start unless ``pool_budget().fits(2 * opts.max_in_flight)``,
so both children must run at THAT number. child_env used ``setdefault``, so a shell
- exporting CV3D_MAX_IN_FLIGHT=32 under ``--max-in-flight 8`` reserved 16 of the 64-call
+ exporting C3D_MAX_IN_FLIGHT=32 under ``--max-in-flight 8`` reserved 16 of the 64-call
knee and then consumed 64 (docs/COST.md §23) — three lines after the function
deliberately pops every variant key so an inherited switch cannot win."""
opts = AbOptions(variant_env={"K": "v"}, max_in_flight=8)
@@ -263,15 +263,15 @@ class FakeCells:
env = child_env(arm, opts, {})
s = self.scores.get((item.id, arm), 0.5)
if isinstance(s, str):
- return _row(item.id, arm, None, s, tier=item.tier, workspace=env.get("CV3D_PLAN_BRIEF", ""))
- return _row(item.id, arm, s, tier=item.tier, workspace=env.get("CV3D_PLAN_BRIEF", ""))
+ return _row(item.id, arm, None, s, tier=item.tier, workspace=env.get("C3D_PLAN_BRIEF", ""))
+ return _row(item.id, arm, s, tier=item.tier, workspace=env.get("C3D_PLAN_BRIEF", ""))
def test_driver_runs_pairs_in_prompt_order_and_writes_the_verdict(tmp_path: Path):
b = Battery.load(BATTERY)
ids = [p.id for p in b.prompts[:3]]
fake = FakeCells({(ids[0], VARIANT): 0.55, (ids[1], VARIANT): 0.53, (ids[2], VARIANT): 0.52})
- opts = AbOptions(variant_env={"CV3D_PLAN_BRIEF": "on"}, ids=ids)
+ opts = AbOptions(variant_env={"C3D_PLAN_BRIEF": "on"}, ids=ids)
v = run_ab(BATTERY, tmp_path, opts, run_cell_fn=fake)
# both arms of prompt N before anything of prompt N+1
assert [c[0] for c in fake.calls] == [i for i in ids for _ in range(2)]
@@ -285,7 +285,7 @@ def test_driver_runs_pairs_in_prompt_order_and_writes_the_verdict(tmp_path: Path
pairs = json.loads((tmp_path / "pairs.json").read_text())
assert pairs["verdict"]["decision"] == "keep" and len(pairs["pairs"]) == 3
assert (tmp_path / "summary.md").read_text().startswith("# A/B: compare_v1")
- assert json.loads((tmp_path / "ab.json").read_text())["arms"] == {"control": {}, "variant": {"CV3D_PLAN_BRIEF": "on"}}
+ assert json.loads((tmp_path / "ab.json").read_text())["arms"] == {"control": {}, "variant": {"C3D_PLAN_BRIEF": "on"}}
def test_resume_skips_done_pairs_and_redo_reruns_both_arms(tmp_path: Path):
@@ -352,7 +352,7 @@ def test_aa_run_records_two_empty_arms(tmp_path: Path):
b = Battery.load(BATTERY)
ids = [p.id for p in b.prompts[:2]]
fake = FakeCells({(ids[0], VARIANT): 0.9})
- run_ab(BATTERY, tmp_path, AbOptions(variant_env={"CV3D_PLAN_FEATURES": "all"}, aa=True, ids=ids), run_cell_fn=fake)
+ run_ab(BATTERY, tmp_path, AbOptions(variant_env={"C3D_PLAN_FEATURES": "all"}, aa=True, ids=ids), run_cell_fn=fake)
meta = json.loads((tmp_path / "ab.json").read_text())
assert meta["aa"] is True and meta["arms"] == {"control": {}, "variant": {}}
assert {r.workspace for r in load_jsonl(tmp_path / "results.jsonl", CellResult)} == {""}, "no arm saw the switch"
@@ -364,13 +364,13 @@ def test_cli_report_only_rebuilds_from_results(tmp_path: Path, capsys):
[_row("cmp_easy_stool", CONTROL, 0.5),
_row("cmp_easy_stool", VARIANT, None, "infra_failed"),
_row("cmp_easy_stool", VARIANT, 0.4)]))
- opts = AbOptions(variant_env={"CV3D_SKILLS": "on"}, rounds=1)
+ opts = AbOptions(variant_env={"C3D_SKILLS": "on"}, rounds=1)
(tmp_path / "ab.json").write_text(json.dumps({"options": json.loads(opts.model_dump_json())}))
assert main(["--prompts", str(BATTERY), "--out", str(tmp_path), "--report-only"]) == 0
assert "verdict: revert" in capsys.readouterr().out
assert (tmp_path / "pairs.json").is_file()
summary = (tmp_path / "summary.md").read_text()
- assert "variant env: `CV3D_SKILLS=on`" in summary and "n_infra_failed: 0" in summary
+ assert "variant env: `C3D_SKILLS=on`" in summary and "n_infra_failed: 0" in summary
def test_report_only_survives_a_run_dir_with_no_or_broken_ab_json(tmp_path):
@@ -389,7 +389,7 @@ def test_a_pinned_plan_that_dies_in_a_storm_records_the_pair_and_continues(tmp_p
not a score (docs/EVAL.md §7): the pair is recorded infra_failed so --redo-status
infra_failed picks it up, and the loop goes on."""
from bench import ab_plan as ab
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
b = Battery.load(BATTERY)
ids = [p.id for p in b.prompts[:2]]
@@ -402,7 +402,7 @@ def test_a_pinned_plan_that_dies_in_a_storm_records_the_pair_and_continues(tmp_p
return "h1"
monkeypatch.setattr(ab, "pin_pair", stormy_pin)
- opts = AbOptions(variant_env={"CV3D_SKILLS": "1"}, pin_plan=True, ids=ids)
+ opts = AbOptions(variant_env={"C3D_SKILLS": "1"}, pin_plan=True, ids=ids)
run_ab(BATTERY, tmp_path, opts, run_cell_fn=fake)
rows = load_jsonl(tmp_path / "results.jsonl", CellResult)
diff --git a/eval/tests/test_ab_plan_switches.py b/eval/tests/test_ab_plan_switches.py
index 3a118614..0a69bd2b 100644
--- a/eval/tests/test_ab_plan_switches.py
+++ b/eval/tests/test_ab_plan_switches.py
@@ -1,5 +1,5 @@
"""`bench/ab_plan.py` refuses an A/B whose only switch nothing reads (the switch registry is
-`codeverse/tracks/plan_features.py`, tested with the harness)."""
+`codeverse3d/tracks/plan_features.py`, tested with the harness)."""
from __future__ import annotations
@@ -7,14 +7,14 @@ import pytest
def test_ab_plan_refuses_an_ab_whose_only_switch_is_dead(capsys):
- """`--variant-env CV3D_PLAN_FEATURES=all` produced a full battery and the verdict
+ """`--variant-env C3D_PLAN_FEATURES=all` produced a full battery and the verdict
'keep, mean delta +0.344' for two byte-identical arms. It must not start."""
import bench.ab_plan as A
with pytest.raises(SystemExit):
- A.main(["--prompts", "p.yaml", "--out", "o", "--variant-env", "CV3D_PLAN_FEATURES=all"])
+ A.main(["--prompts", "p.yaml", "--out", "o", "--variant-env", "C3D_PLAN_FEATURES=all"])
err = capsys.readouterr().err
- assert "nothing reads" in err and "CV3D_PLAN_FEATURES" in err
+ assert "nothing reads" in err and "C3D_PLAN_FEATURES" in err
def test_ab_plan_still_accepts_a_live_switch(monkeypatch, capsys):
@@ -29,9 +29,9 @@ def test_ab_plan_still_accepts_a_live_switch(monkeypatch, capsys):
decision, reason, caution = "keep", "stubbed", ""
monkeypatch.setattr(A, "run_ab", lambda battery, out, opts, **kw: (seen.append(opts.variant_env), _V())[1])
- for argv in (["--variant-env", "CV3D_PLAN_BRIEF=off"],
- ["--variant-env", "CV3D_PLAN_FEATURES=all", "--variant-env", "CV3D_PLAN_BRIEF=off"]):
+ for argv in (["--variant-env", "C3D_PLAN_BRIEF=off"],
+ ["--variant-env", "C3D_PLAN_FEATURES=all", "--variant-env", "C3D_PLAN_BRIEF=off"]):
A.main(["--prompts", "p.yaml", "--out", "o", "--no-preflight", "--allow-siblings", *argv])
assert len(seen) == 2, capsys.readouterr()
- assert "CV3D_PLAN_BRIEF" in seen[0]
+ assert "C3D_PLAN_BRIEF" in seen[0]
diff --git a/eval/tests/test_articulated_compare.py b/eval/tests/test_articulated_compare.py
index 40f2da63..e8979c5e 100644
--- a/eval/tests/test_articulated_compare.py
+++ b/eval/tests/test_articulated_compare.py
@@ -23,11 +23,11 @@ from bench._oneshot import ( # noqa: E402
write_answer_files,
)
from bench.run_bench import Battery # noqa: E402
-from codeverse.contracts.artifacts import BuildResult, GateReport # noqa: E402
-from codeverse.contracts.common import Language, Track # noqa: E402
-from codeverse.contracts.spec import Constraints, Spec # noqa: E402
-from codeverse.tracks.generation import MultiFileParseError # noqa: E402
-from codeverse.workspace import Workspace # noqa: E402
+from codeverse3d.contracts.artifacts import BuildResult, GateReport # noqa: E402
+from codeverse3d.contracts.common import Language, Track # noqa: E402
+from codeverse3d.contracts.spec import Constraints, Spec # noqa: E402
+from codeverse3d.tracks.generation import MultiFileParseError # noqa: E402
+from codeverse3d.workspace import Workspace # noqa: E402
PROMPTS = REPO / "bench" / "prompts"
PY = "import bpy\nprint(1)\n"
@@ -91,7 +91,7 @@ def test_rubric_for_is_the_one_track_to_rubric_mapping():
"""PR #1 shipped `RUBRIC_BY_TRACK` in _compare_report beside main's `judge_for`; one mechanism now:
rubric_for(spec | track) = TRACK_INFO's rubric, used by the evaluator default, judge_for and the report."""
import bench._compare_report as report
- from codeverse.contracts.common import TRACK_INFO
+ from codeverse3d.contracts.common import TRACK_INFO
assert not hasattr(report, "RUBRIC_BY_TRACK")
lang = {Track.STATIC_OBJECT: Language.BLENDER, Track.ARTICULATED_OBJECT: Language.URDF_BLENDER,
@@ -115,11 +115,11 @@ def test_articulated_cells_add_the_joint_sweep_and_the_pose_sheet(monkeypatch, t
renders, and the judge is the cell's (articulated_v1) — keyed on the SPEC's track."""
from types import SimpleNamespace
- import codeverse.spatial.connectivity as conn
- import codeverse.spatial.measure as meas
- import codeverse.spatial.render as rend
- import codeverse.tracks.articulated_object as art
- from codeverse.contracts.artifacts import RenderSet, RenderView
+ import codeverse3d.spatial.connectivity as conn
+ import codeverse3d.spatial.measure as meas
+ import codeverse3d.spatial.render as rend
+ import codeverse3d.tracks.articulated_object as art
+ from codeverse3d.contracts.artifacts import RenderSet, RenderView
ws = Workspace(tmp_path / "ws").create()
glb = tmp_path / "m.glb"
diff --git a/eval/tests/test_bench.py b/eval/tests/test_bench.py
index ac49de9e..f7723ad8 100644
--- a/eval/tests/test_bench.py
+++ b/eval/tests/test_bench.py
@@ -9,8 +9,8 @@ import pytest
from bench.report import build_report, load_results
from bench.run_bench import Battery, BenchOptions, run_battery
-from codeverse.contracts.run import RunRecord, RunStatus
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.run import RunRecord, RunStatus
+from codeverse3d.workspace import Workspace
from tests.conftest import make_fake_run
REPO = Path(__file__).resolve().parents[1]
@@ -91,10 +91,10 @@ def test_run_battery_resume_and_report(tmp_path: Path):
def test_every_bench_prompt_opens_its_own_run_ledger(tmp_path: Path):
"""The batteries produce most of the runs; without a ledger their per-call rows
went to the per-process fallback log instead of the run (docs/COST.md §12)."""
- from codeverse.contracts.chat import ChatMessage, ChatRequest, ChatResponse
- from codeverse.contracts.common import Usage
- from codeverse.cost.instrument import MeteredChatModel
- from codeverse.cost.ledger import load_ledger
+ from codeverse3d.contracts.chat import ChatMessage, ChatRequest, ChatResponse
+ from codeverse3d.contracts.common import Usage
+ from codeverse3d.cost.instrument import MeteredChatModel
+ from codeverse3d.cost.ledger import load_ledger
class FakeChat:
provider, model, id = "gemini", "gemini-3.7-flash", "gemini:gemini-3.7-flash"
@@ -170,7 +170,7 @@ def test_a_provider_outage_is_not_model_latency_and_not_an_error():
def test_the_runner_classifies_the_outage_that_reaches_it(tmp_path: Path):
"""The status has to be recorded in the first place — the reporter can only honour
what run_battery wrote."""
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
battery = REPO / "bench" / "prompts" / "static_objects_v1.yaml"
out = tmp_path / "bench_out"
diff --git a/eval/tests/test_bench_refs.py b/eval/tests/test_bench_refs.py
index d49d6f76..6193753b 100644
--- a/eval/tests/test_bench_refs.py
+++ b/eval/tests/test_bench_refs.py
@@ -10,7 +10,7 @@ import yaml
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "bench"))
from run_bench import Battery, BenchPrompt, discover_references # noqa: E402
-from codeverse.contracts.common import Track # noqa: E402
+from codeverse3d.contracts.common import Track # noqa: E402
def test_folder_images_attach_in_name_order_with_track_roles(tmp_path):
diff --git a/eval/tests/test_bench_shared.py b/eval/tests/test_bench_shared.py
index 0e7a8ecf..e7f7e41d 100644
--- a/eval/tests/test_bench_shared.py
+++ b/eval/tests/test_bench_shared.py
@@ -66,7 +66,7 @@ def test_the_harness_arm_looks_for_each_languages_own_entry_file():
has ever had a readable A/B: both arms scored 0.0 and the rig called that "no effect".
"""
from bench.compare_backends import entry_of
- from codeverse.contracts.common import ENTRY_FILE, Language
+ from codeverse3d.contracts.common import ENTRY_FILE, Language
for language, entry in ENTRY_FILE.items():
spec = SimpleNamespace(language=language)
diff --git a/eval/tests/test_compare_matrix.py b/eval/tests/test_compare_matrix.py
index e481c2a8..9052217b 100644
--- a/eval/tests/test_compare_matrix.py
+++ b/eval/tests/test_compare_matrix.py
@@ -222,10 +222,10 @@ def test_every_cell_and_its_harness_run_open_a_ledger(tmp_path: Path):
tree, not into the per-process fallback log (docs/COST.md §12). The harness arm
gets a nested ledger for its own run; the cell's own ledger holds the spend that
sits OUTSIDE that run (the fixed evaluator's judge) — the §6 gap."""
- from codeverse.contracts.chat import ChatMessage, ChatRequest, ChatResponse
- from codeverse.contracts.common import Usage
- from codeverse.cost.instrument import MeteredChatModel
- from codeverse.cost.ledger import load_ledger
+ from codeverse3d.contracts.chat import ChatMessage, ChatRequest, ChatResponse
+ from codeverse3d.contracts.common import Usage
+ from codeverse3d.cost.instrument import MeteredChatModel
+ from codeverse3d.cost.ledger import load_ledger
class FakeChat:
provider, model, id = "gemini", "gemini-3.7-flash", "gemini:gemini-3.7-flash"
diff --git a/eval/tests/test_complexity_report.py b/eval/tests/test_complexity_report.py
index f5b91d5a..61b49d75 100644
--- a/eval/tests/test_complexity_report.py
+++ b/eval/tests/test_complexity_report.py
@@ -9,7 +9,7 @@ from pathlib import Path
import pytest
from bench import complexity_report as CR
-from codeverse.contracts.artifacts import Measurement
+from codeverse3d.contracts.artifacts import Measurement
REPO = Path(__file__).resolve().parents[1]
diff --git a/eval/tests/test_degraded.py b/eval/tests/test_degraded.py
index aa6c0432..88149e37 100644
--- a/eval/tests/test_degraded.py
+++ b/eval/tests/test_degraded.py
@@ -25,8 +25,8 @@ from bench.compare_backends import ( # noqa: E402
run_cell,
)
from bench.run_bench import Battery # noqa: E402
-from codeverse.contracts.common import Usage # noqa: E402
-from codeverse.contracts.run import RoundRecord, RunRecord, RunStatus # noqa: E402
+from codeverse3d.contracts.common import Usage # noqa: E402
+from codeverse3d.contracts.run import RoundRecord, RunRecord, RunStatus # noqa: E402
from tests.conftest import BATTERY, GOOD, FakeEvaluator # noqa: E402
diff --git a/eval/tests/test_fixed_eval_language.py b/eval/tests/test_fixed_eval_language.py
index 10b10346..ce9b10a8 100644
--- a/eval/tests/test_fixed_eval_language.py
+++ b/eval/tests/test_fixed_eval_language.py
@@ -2,14 +2,14 @@
from __future__ import annotations
-from codeverse.contracts.common import Language
+from codeverse3d.contracts.common import Language
def test_the_evaluator_asks_for_the_cells_own_runtime(monkeypatch):
"""Measured 2026-08-26 on fancy_v1/tj: a three.js cell judged 0.589 in its run was then
built by the Blender runtime at eval time — `MissingEntryFile: src/model.py` — and recorded
build_failed 0.0. A false zero, the b4ea4cc bug class one layer down."""
- import codeverse.languages as langs
+ import codeverse3d.languages as langs
from bench._fixed_eval import FixedEvaluator
asked: list[Language] = []
@@ -31,10 +31,10 @@ def test_graphics_cells_are_judged_on_their_frames(monkeypatch, tmp_path):
from types import SimpleNamespace
from bench._fixed_eval import FixedEvaluator
- from codeverse.contracts.artifacts import BuildResult, GateReport, RenderSet, RenderView
- from codeverse.contracts.common import Track
- from codeverse.contracts.spec import ReferenceImage, Spec
- from codeverse.workspace import Workspace
+ from codeverse3d.contracts.artifacts import BuildResult, GateReport, RenderSet, RenderView
+ from codeverse3d.contracts.common import Track
+ from codeverse3d.contracts.spec import ReferenceImage, Spec
+ from codeverse3d.workspace import Workspace
ws = Workspace(tmp_path / "run").create()
png = tmp_path / "f.png"
@@ -43,7 +43,7 @@ def test_graphics_cells_are_judged_on_their_frames(monkeypatch, tmp_path):
ev = FixedEvaluator("fake:judge", n_samples=1)
ev._runtimes[Language.GLSL_SHADER] = SimpleNamespace(lint=lambda ws: GateReport(gate="lint", passed=True), build=lambda ws, timeout_s: build)
import bench._fixed_eval as fe
- import codeverse.tracks.graphics as gs
+ import codeverse3d.tracks.graphics as gs
monkeypatch.setattr(gs, "frames_render_set", lambda ws, b, i: RenderSet(views=[RenderView(name="t=0s", path=str(png))], renderer="fake"))
monkeypatch.setattr(gs, "frame_stats_text", lambda ws: "frames=1")
@@ -65,9 +65,9 @@ def test_graphics_cells_are_judged_on_their_frames(monkeypatch, tmp_path):
def test_graphics_judge_is_the_track_rubric_with_the_photos():
from bench._fixed_eval import FixedEvaluator
- from codeverse.contracts.common import Track
- from codeverse.contracts.spec import ReferenceImage, Spec
- from codeverse.judges.vlm_judge import LikenessJudge
+ from codeverse3d.contracts.common import Track
+ from codeverse3d.contracts.spec import ReferenceImage, Spec
+ from codeverse3d.judges.vlm_judge import LikenessJudge
ev = FixedEvaluator("gemini:gemini-3.1-pro-preview", n_samples=2)
with_photos = Spec(id="g", track=Track.GRAPHICS, language=Language.GLSL_SHADER, prompt="x", references=[ReferenceImage(path="/p.png")])
@@ -86,10 +86,10 @@ def test_scene_cells_are_judged_on_their_cameras_and_orbit_frames(monkeypatch, t
from types import SimpleNamespace
from bench._fixed_eval import FixedEvaluator
- from codeverse.contracts.artifacts import BuildResult, GateReport, RenderSet, RenderView
- from codeverse.contracts.common import Track
- from codeverse.contracts.spec import Constraints, Spec
- from codeverse.workspace import Workspace
+ from codeverse3d.contracts.artifacts import BuildResult, GateReport, RenderSet, RenderView
+ from codeverse3d.contracts.common import Track
+ from codeverse3d.contracts.spec import Constraints, Spec
+ from codeverse3d.workspace import Workspace
ws = Workspace(tmp_path / "run").create()
png = tmp_path / "f.png"
@@ -98,8 +98,8 @@ def test_scene_cells_are_judged_on_their_cameras_and_orbit_frames(monkeypatch, t
ev = FixedEvaluator("fake:judge", n_samples=1)
ev._runtimes[Language.SCENE_THREEJS] = SimpleNamespace(lint=lambda ws: GateReport(gate="lint", passed=True), build=lambda ws, timeout_s: build)
import bench._fixed_eval as fe
- import codeverse.spatial.frame_metrics as fm
- import codeverse.spatial.render_scene as rs
+ import codeverse3d.spatial.frame_metrics as fm
+ import codeverse3d.spatial.render_scene as rs
seen: dict[str, object] = {}
monkeypatch.setattr(rs, "render_scene", lambda ws, out, **kw: (seen.__setitem__("kw", kw),
RenderSet(views=[RenderView(name="Establishing_t0", path=str(png))], renderer="fake"))[1])
diff --git a/eval/tests/test_infra_failures.py b/eval/tests/test_infra_failures.py
index 63b7a9ab..6c000213 100644
--- a/eval/tests/test_infra_failures.py
+++ b/eval/tests/test_infra_failures.py
@@ -45,7 +45,7 @@ def test_model_failures_are_not_infra(err):
class ModelError(Exception):
- """Stands in for codeverse.models.base.ModelError: the .status the classifier reads."""
+ """Stands in for codeverse3d.models.base.ModelError: the .status the classifier reads."""
def __init__(self, msg, status=None):
super().__init__(msg)
self.status = status
@@ -60,7 +60,7 @@ class ClassifierTrap(Exception):
def test_structured_exceptions_beat_string_matching():
- from codeverse.models.base import ModelError as ProviderError
+ from codeverse3d.models.base import ModelError as ProviderError
# no recognisable prose at all — only the status says what happened
assert is_infra_failure(ModelError("upstream said no", status=503)) is True
@@ -109,7 +109,7 @@ def test_both_failure_paths_classify_the_same_way(tmp_path):
from bench._oneshot import ApiOneShot
from bench.compare_backends import CompareDeps, CompareOptions, parse_arm, run_cell
from bench.run_bench import Battery
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
from tests.conftest import BATTERY, FakeEvaluator
def verdicts(outage: Exception, out: Path) -> dict[str, tuple[str, float | None]]:
@@ -174,8 +174,8 @@ def test_budget_and_outage_are_different_buckets():
])
def test_preflight_probes_only_models_the_selected_arms_need(monkeypatch, raw_arms, needs_loop):
from bench import compare_backends as cb
- from codeverse.config import get_settings
- from codeverse.models.health import Health
+ from codeverse3d.config import get_settings
+ from codeverse3d.models.health import Health
probed: list[str] = []
@@ -183,7 +183,7 @@ def test_preflight_probes_only_models_the_selected_arms_need(monkeypatch, raw_ar
probed.append(model)
return Health(model=model, n_ok=4, n_tried=4)
- monkeypatch.setattr("codeverse.models.health.probe", fake_probe)
+ monkeypatch.setattr("codeverse3d.models.health.probe", fake_probe)
opts = cb.CompareOptions(judge="gemini:fixed-judge")
assert cb._preflight(opts.judge, cb.parse_arms(raw_arms), opts) is True
expected = {opts.judge}
@@ -203,7 +203,7 @@ def test_a_repair_lost_to_an_outage_drops_the_cell_instead_of_scoring_the_pre_re
from bench._oneshot import OneShotResult
from bench.compare_backends import CompareDeps, CompareOptions, parse_arm, run_cell
from bench.run_bench import Battery
- from codeverse.contracts.common import Usage
+ from codeverse3d.contracts.common import Usage
from tests.conftest import BATTERY, GOOD, FakeEvaluator
broken = GOOD.format(score=0.5).replace("\n", "\n# BOOM\n", 1)
@@ -250,7 +250,7 @@ def test_a_harness_planning_failure_is_a_zero_not_a_dropped_cell(tmp_path):
own doing: no_code / 0.0, exactly what a one-shot answer in the wrong format gets."""
from bench.compare_backends import CompareDeps, CompareOptions, parse_arm, run_cell
from bench.run_bench import Battery
- from codeverse.tracks.planner import PlanningError
+ from codeverse3d.tracks.planner import PlanningError
from tests.conftest import BATTERY, FakeEvaluator
def no_plan(spec, ws, resume):
@@ -333,9 +333,9 @@ def test_the_ab_viewer_refuses_to_call_a_winner_it_cannot_support():
def test_the_default_generator_and_the_cost_router_name_the_same_model():
"""`3dcode cost` prints the default=True GENERATOR route as "the default"; if it disagrees with
Backends.generator the report is describing a model no run uses."""
- from codeverse.contracts.common import Backends
- from codeverse.cost.routing import ROUTES
- from codeverse.cost.types import Role
+ from codeverse3d.contracts.common import Backends
+ from codeverse3d.cost.routing import ROUTES
+ from codeverse3d.cost.types import Role
(default,) = [r for r in ROUTES if r.role is Role.GENERATOR and r.default]
assert default.model_id == Backends().generator
diff --git a/eval/tests/test_live_compare.py b/eval/tests/test_live_compare.py
index 76edb9f6..0969f1c0 100644
--- a/eval/tests/test_live_compare.py
+++ b/eval/tests/test_live_compare.py
@@ -13,7 +13,7 @@ if str(REPO) not in sys.path:
from bench._fixed_eval import FixedEvaluator # noqa: E402
from bench.compare_backends import CompareDeps, CompareOptions, parse_arms, run_matrix # noqa: E402
-from codeverse.config import get_settings # noqa: E402
+from codeverse3d.config import get_settings # noqa: E402
pytestmark = [pytest.mark.live, pytest.mark.blender, pytest.mark.node]
diff --git a/eval/tests/test_oneshot.py b/eval/tests/test_oneshot.py
index 11decb9d..cc1545a3 100644
--- a/eval/tests/test_oneshot.py
+++ b/eval/tests/test_oneshot.py
@@ -26,10 +26,10 @@ from bench._oneshot import ( # noqa: E402
oneshot_prompt,
repair_prompt,
)
-from codeverse.contracts.artifacts import BuildResult, GateReport # noqa: E402
-from codeverse.contracts.common import Language, Track # noqa: E402
-from codeverse.contracts.spec import Constraints, Spec # noqa: E402
-from codeverse.tracks.generation import MultiFileParseError # noqa: E402
+from codeverse3d.contracts.artifacts import BuildResult, GateReport # noqa: E402
+from codeverse3d.contracts.common import Language, Track # noqa: E402
+from codeverse3d.contracts.spec import Constraints, Spec # noqa: E402
+from codeverse3d.tracks.generation import MultiFileParseError # noqa: E402
def _spec() -> Spec:
@@ -111,8 +111,8 @@ def test_registry():
def test_api_oneshot_uses_injected_chat_model(tmp_path: Path):
class M:
def generate(self, req):
- from codeverse.contracts.chat import ChatResponse
- from codeverse.contracts.common import Usage
+ from codeverse3d.contracts.chat import ChatResponse
+ from codeverse3d.contracts.common import Usage
assert req.max_output_tokens == 32000 and "stool" in req.messages[0].text
return ChatResponse(text="```python\nimport bpy\n```", usage=Usage(cost_usd=0.004))
diff --git a/eval/tests/test_pin_plan.py b/eval/tests/test_pin_plan.py
index 52b1f59b..93e91548 100644
--- a/eval/tests/test_pin_plan.py
+++ b/eval/tests/test_pin_plan.py
@@ -92,7 +92,7 @@ def test_pin_pair_seeds_every_arm_from_one_plan(tmp_path, monkeypatch):
battery = Battery.load(Path(ab_plan.__file__).resolve().parent / "prompts" / "compare_v1.yaml")
item = battery.prompts[0]
- opts = ab_plan.AbOptions(variant_env={"CV3D_SKILLS": "1"}, pin_plan=True)
+ opts = ab_plan.AbOptions(variant_env={"C3D_SKILLS": "1"}, pin_plan=True)
calls: list[Path] = []
def fake_plan_once(spec, ws_root):
@@ -129,7 +129,7 @@ def test_pin_pair_reuses_the_plan_when_the_pair_is_retried(tmp_path, monkeypatch
battery = Battery.load(Path(ab_plan.__file__).resolve().parent / "prompts" / "compare_v1.yaml")
item = battery.prompts[0]
- opts = ab_plan.AbOptions(variant_env={"CV3D_SKILLS": "1"}, pin_plan=True)
+ opts = ab_plan.AbOptions(variant_env={"C3D_SKILLS": "1"}, pin_plan=True)
n = 0
def fake_plan_once(spec, ws_root):
@@ -162,7 +162,7 @@ def test_a_plan_side_variant_env_is_refused_by_the_cli():
with pytest.raises(SystemExit):
ab_plan.main(["--prompts", str(Path(ab_plan.__file__).resolve().parent / "prompts" / "compare_v1.yaml"),
"--out", "/tmp/never", "--pin-plan", "--no-preflight",
- "--variant-env", "CV3D_PLAN_BRIEF=1"])
+ "--variant-env", "C3D_PLAN_BRIEF=1"])
# --------------------------------------------------------------------------- the key
@@ -203,7 +203,7 @@ def test_the_seeded_plan_and_the_running_plan_share_one_stage_key():
here = Path(__file__).resolve().parents[1] # eval/
seeded = _stage_call_inputs(here / "bench" / "pin_plan.py", "plan_once")
- running = _stage_call_inputs(here.parent / "harness" / "codeverse" / "tracks" / "lifecycle.py", "run")
+ running = _stage_call_inputs(here.parent / "harness" / "codeverse3d" / "tracks" / "lifecycle.py", "run")
def norm(dump: str) -> str:
return dump.replace("Name(id='self',", "Name(id='track',")
diff --git a/eval/tests/test_replay.py b/eval/tests/test_replay.py
index b055ba36..6eac28cd 100644
--- a/eval/tests/test_replay.py
+++ b/eval/tests/test_replay.py
@@ -15,7 +15,7 @@ from pathlib import Path
import pytest
import bench.rejudge_offline as ro
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.artifacts import (
GateFinding,
GateReport,
Judgment,
@@ -23,9 +23,9 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.contracts.run import RoundRecord
-from codeverse.judges.rubrics import (
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.judges.rubrics import (
SCORING_VERSION,
AcceptanceVerdict,
CriterionScore,
diff --git a/eval/tests/test_scene_stats.py b/eval/tests/test_scene_stats.py
index 1e66b31b..fae66625 100644
--- a/eval/tests/test_scene_stats.py
+++ b/eval/tests/test_scene_stats.py
@@ -72,7 +72,7 @@ def test_the_median_score_is_read_off_the_real_Judgment_shape(tmp_path: Path) ->
record the median line was silently skipped — and no test caught it, because the
fixtures wrote `judgment: {}`. Building the fixture from the model itself is what
stops that drifting again."""
- from codeverse.contracts.artifacts import Judgment
+ from codeverse3d.contracts.artifacts import Judgment
def judged(name: str, overall: float) -> None:
d = tmp_path / name / "run"
diff --git a/eval/tests/test_skill_targets_readout.py b/eval/tests/test_skill_targets_readout.py
index d5b7914f..1191e4fb 100644
--- a/eval/tests/test_skill_targets_readout.py
+++ b/eval/tests/test_skill_targets_readout.py
@@ -8,7 +8,7 @@ from pathlib import Path
import pytest
-from codeverse.addons.skill_targets import TARGETS
+from codeverse3d.addons.skill_targets import TARGETS
# --------------------------------------------------------------------------- the readout
@@ -47,10 +47,10 @@ def test_the_readout_counts_the_kinds_the_row_names(tmp_path):
{"gate": "contract", "findings": []}]),
})
rows = {r["skill"]: r for r in battery_rows(load_runs(root), list(TARGETS), which="last", cache=None)}
- assert rows["cv3d-part-contact"]["n"] == 2
- assert rows["cv3d-part-contact"]["mean"] == 1.0 # 2 pairs + 0, INFO ignored
- assert rows["cv3d-bbox-contract"]["mean"] == 0.5 # part_bbox only
- assert rows["cv3d-repeats-and-mirrors"]["mean"] == 0.5 # instance_bbox only
+ assert rows["c3d-part-contact"]["n"] == 2
+ assert rows["c3d-part-contact"]["mean"] == 1.0 # 2 pairs + 0, INFO ignored
+ assert rows["c3d-bbox-contract"]["mean"] == 0.5 # part_bbox only
+ assert rows["c3d-repeats-and-mirrors"]["mean"] == 0.5 # instance_bbox only
def test_a_row_only_counts_the_languages_it_is_defined_over(tmp_path):
@@ -63,9 +63,9 @@ def test_a_row_only_counts_the_languages_it_is_defined_over(tmp_path):
"chair": _record("blender", [{"gate": "connectivity", "findings": CONNECTIVITY}]),
})
rows = {r["skill"]: r for r in battery_rows(load_runs(root), list(TARGETS), which="last", cache=None)}
- assert rows["cv3d-urdf-joints"]["n"] == 1 # the blender run is not eligible
- assert rows["cv3d-urdf-joints"]["mean"] == 1.0 # ERRORs only; the rest-pose WARN is not one
- assert rows["cv3d-part-contact"]["n"] == 2 # both languages carry a part graph
+ assert rows["c3d-urdf-joints"]["n"] == 1 # the blender run is not eligible
+ assert rows["c3d-urdf-joints"]["mean"] == 1.0 # ERRORs only; the rest-pose WARN is not one
+ assert rows["c3d-part-contact"]["n"] == 2 # both languages carry a part graph
def test_an_ungraded_run_is_not_in_the_population(tmp_path):
@@ -78,7 +78,7 @@ def test_an_ungraded_run_is_not_in_the_population(tmp_path):
"probe": {"spec": {"language": "blender"}, "rounds": [{"index": 0, "gates": []}]},
})
rows = {r["skill"]: r for r in battery_rows(load_runs(root), list(TARGETS), which="last", cache=None)}
- assert rows["cv3d-part-contact"]["n"] == 1
+ assert rows["c3d-part-contact"]["n"] == 1
def test_the_ab_mode_pairs_by_prompt(tmp_path):
@@ -93,7 +93,7 @@ def test_the_ab_mode_pairs_by_prompt(tmp_path):
arms = ab_arms(root)
assert arms is not None
rows = {r["skill"]: r for r in ab_rows(arms, list(TARGETS), which="last", cache=None)}
- r = rows["cv3d-part-contact"]
+ r = rows["c3d-part-contact"]
assert (r["n"], r["control_mean"], r["variant_mean"], r["mean_delta"]) == (1, 2.0, 1.0, -1.0)
assert (r["better"], r["worse"], r["tied"]) == (1, 0, 0)
@@ -112,7 +112,7 @@ def test_the_cli_runs_over_a_synthetic_battery(tmp_path, capsys):
assert main([str(root), "--json", "--no-cache"]) == 0
payload = json.loads(capsys.readouterr().out)
assert payload["mode"] == "battery"
- row = next(r for r in payload["rows"] if r["skill"] == "cv3d-part-contact")
+ row = next(r for r in payload["rows"] if r["skill"] == "c3d-part-contact")
assert row["n"] == 1 and row["mean"] == 2.0
@@ -141,4 +141,4 @@ def test_a_retried_cell_pairs_on_the_attempt_that_reached_a_gate(tmp_path):
(cell / leaf).mkdir(parents=True)
(cell / leaf / "record.json").write_text(json.dumps(rec))
rows = {r["skill"]: r for r in ab_rows(ab_arms(root), list(TARGETS), which="last", cache=None)}
- assert rows["cv3d-part-contact"]["n"] == 1
+ assert rows["c3d-part-contact"]["n"] == 1
diff --git a/eval/tests/test_v2_batteries.py b/eval/tests/test_v2_batteries.py
index 49cbfd2a..8e21ca42 100644
--- a/eval/tests/test_v2_batteries.py
+++ b/eval/tests/test_v2_batteries.py
@@ -138,7 +138,7 @@ def test_graphics_v2_opengl_prompts_carry_language_override():
"""The ogl_* rows must run under opengl_python; the loader forwards the
per-prompt override into the Spec (BenchPrompt.language or battery.language)."""
from bench.run_bench import build_spec
- from codeverse.contracts.common import Backends, Language
+ from codeverse3d.contracts.common import Backends, Language
b = _load("graphics_v2")
assert b.language == Language.GLSL_SHADER
diff --git a/eval/tests/test_worktree_import.py b/eval/tests/test_worktree_import.py
index dd7c1c36..9a268a75 100644
--- a/eval/tests/test_worktree_import.py
+++ b/eval/tests/test_worktree_import.py
@@ -1,8 +1,8 @@
-"""A bench script run from a worktree must use THAT worktree's `codeverse`.
+"""A bench script run from a worktree must use THAT worktree's `codeverse3d`.
WHY this is worth a test of its own: it has silently voided two A/B runs.
``ab_plan.spawn_cell`` starts each child as a FILE path, so ``sys.path[0]`` is ``bench/``
-and the cwd is not on the path. Any ``import codeverse`` before the script's own
+and the cwd is not on the path. Any ``import codeverse3d`` before the script's own
``sys.path`` bootstrap therefore resolves through whatever editable install is present
(``__editable__.3dcodeverse-<v>.pth`` installs a meta-path finder pinned to the tree it was
installed from). Both arms then run the same foreign code, every switch under test is
@@ -23,7 +23,7 @@ import pytest
HARNESS = Path(__file__).resolve().parents[2] / "harness"
BENCH = Path(__file__).resolve().parents[1] / "bench"
-CODEVERSE_IMPORT = re.compile(r"^\s*(?:from|import)\s+codeverse\b", re.M)
+CODEVERSE_IMPORT = re.compile(r"^\s*(?:from|import)\s+codeverse3d\b", re.M)
#: every bench module that bootstraps sys.path because it is also run as a script
SCRIPTS = sorted(p for p in BENCH.glob("*.py")
if "sys.path.insert" in p.read_text() and CODEVERSE_IMPORT.search(p.read_text()))
@@ -40,16 +40,16 @@ def test_the_sys_path_bootstrap_comes_before_any_codeverse_import(script: Path):
first = CODEVERSE_IMPORT.search(text)
assert first is not None # filtered by SCRIPTS
assert first.start() > boot, (
- f"{script.name} imports codeverse at line {text[:first.start()].count(chr(10)) + 1}, "
+ f"{script.name} imports codeverse3d at line {text[:first.start()].count(chr(10)) + 1}, "
f"before its sys.path bootstrap at line {text[:boot].count(chr(10)) + 1}. A child "
- f"spawned by file path would resolve codeverse through the editable install instead "
+ f"spawned by file path would resolve codeverse3d through the editable install instead "
f"of this tree, and the A/B would compare a tree against itself.")
def test_the_guard_refuses_a_foreign_codeverse_for_real(tmp_path: Path):
"""Not "the string is in the file": actually make the bad thing happen.
- A foreign ``codeverse`` is pre-imported into ``sys.modules``, then ab_plan is run as
+ A foreign ``codeverse3d`` is pre-imported into ``sys.modules``, then ab_plan is run as
``__main__``. It must die with its own message rather than proceed to compare a tree
with itself.
"""
@@ -57,13 +57,13 @@ def test_the_guard_refuses_a_foreign_codeverse_for_real(tmp_path: Path):
import sys
other = tmp_path / "other"
- (other / "codeverse").mkdir(parents=True)
- (other / "codeverse" / "__init__.py").write_text("")
- (other / "codeverse" / "_compat.py").write_text("from datetime import timezone as _t\nUTC = _t.utc\n")
+ (other / "codeverse3d").mkdir(parents=True)
+ (other / "codeverse3d" / "__init__.py").write_text("")
+ (other / "codeverse3d" / "_compat.py").write_text("from datetime import timezone as _t\nUTC = _t.utc\n")
src = (
"import sys, runpy\n"
f"sys.path.insert(0, {str(other)!r})\n"
- "import codeverse\n"
+ "import codeverse3d\n"
"sys.argv = ['ab_plan.py', '--help']\n"
f"runpy.run_path({str(BENCH / 'ab_plan.py')!r}, run_name='__main__')\n"
)
@@ -73,9 +73,9 @@ def test_the_guard_refuses_a_foreign_codeverse_for_real(tmp_path: Path):
def test_the_guard_actually_compares_the_resolved_package_to_this_tree():
- import codeverse
+ import codeverse3d
from bench.ab_plan import REPO, _assert_local_codeverse
- assert Path(codeverse.__file__).resolve().parent == REPO / "codeverse", (
- "the test suite itself is importing a foreign codeverse")
+ assert Path(codeverse3d.__file__).resolve().parent == REPO / "codeverse3d", (
+ "the test suite itself is importing a foreign codeverse3d")
_assert_local_codeverse() # must not raise in a correctly-resolved tree
diff --git a/harness/CLAUDE.md b/harness/CLAUDE.md
index edbb5c5c..c996b58e 100644
--- a/harness/CLAUDE.md
+++ b/harness/CLAUDE.md
@@ -1,6 +1,6 @@
# 3dcodeverse — standing context
-Backend harness (python package `codeverse`, CLI `3dcodeverse` / short alias `3dcode`,
+Backend harness (python package `codeverse3d`, CLI `3dcodeverse` / short alias `3dcode`,
repo path `/home/yipeng/3dcodeverse/harness`) for LLM-written **raw** 3D code:
Blender bpy · CadQuery · Three.js · URDF · GLSL / OpenGL, across four tracks
(`static_object`, `articulated_object`, `scene`, `graphics`), with pluggable
@@ -23,8 +23,8 @@ score-vs-complexity corpus study) before changing anything.
## Laws (do not break)
1. Generated code is raw language — never an SDK/helper import; the harness owns
- wrappers/exporters (`codeverse/languages/*/wrappers`, `runtime_js/`).
-2. `codeverse/contracts/` is data-only and shared; `conventions.py` is the only
+ wrappers/exporters (`codeverse3d/languages/*/wrappers`, `runtime_js/`).
+2. `codeverse3d/contracts/` is data-only and shared; `conventions.py` is the only
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.
@@ -40,7 +40,7 @@ score-vs-complexity corpus study) before changing anything.
## Supported versions (what other people can run this on)
python **3.13** (one fixed version — owner's decision 2026-08-26; no floor, no matrix) ·
node **20.6+** · Blender 4.2+ · Linux x86_64. **There is no CI** (removed 2026-08-26 by the
-owner): run `ruff check codeverse tests` and the offline suite locally BEFORE every
+owner): run `ruff check codeverse3d tests` and the offline suite locally BEFORE every
push, with `set -o pipefail` so a `| tail` cannot swallow a red exit. The version lives in
`pyproject` `requires-python` + ruff `target-version` + `setup.sh`, and
`spatial/node.py:NODE_MIN` + `runtime_js/package.json` `engines` for node, pinned together by
@@ -48,13 +48,13 @@ push, with `set -o pipefail` so a `| tail` cannot swallow a red exit. The versi
## Environment (this machine)
- Gemini keys: `~/.config/astra3d/gemini_keys.env` (21 keys) → `get_settings().gemini_api_keys`
- (or `GEMINI_API_KEYS` / `GEMINI_API_KEY` env). Settings: `~/.config/codeverse/config.yaml`
- or `./codeverse.yaml`, env prefix `CV3D_` (`CV3D_RENDER__GPU=off`, `CV3D_RUNS_DIR=…`,
- `CV3D_DEFAULT_CANDIDATES=2`).
+ (or `GEMINI_API_KEYS` / `GEMINI_API_KEY` env). Settings: `~/.config/3dcodeverse/config.yaml`
+ or `./3dcodeverse.yaml`, env prefix `C3D_` (the pre-D78 `CV3D_*` names are still read) (`C3D_RENDER__GPU=off`, `C3D_RUNS_DIR=…`,
+ `C3D_DEFAULT_CANDIDATES=2`).
- Blender 5.0.1 headless: `~/.local/bin/blender-5.0` (always `--factory-startup`; clear scene).
- Node 24 (floor 20.6) + `runtime_js/node_modules` ([email protected], puppeteer; chrome cached). Headless
Chrome WebGL uses the GPU on WSL2 with `--use-angle=gl-egl` + Mesa d3d12 env (see
- `runtime_js/gpu_launch.cjs`; `CV3D_RENDER_GPU=on|off|auto`); SwiftShader fallback.
+ `runtime_js/gpu_launch.cjs`; `C3D_RENDER_GPU=on|off|auto`); SwiftShader fallback.
Bare ESM `import 'three'` needs `--import runtime_js/lib/resolve_three.mjs`
(`spatial.node.run_node(three_hook=True)`) — `NODE_PATH` alone does not work;
that hook is `module.registerHooks` on node ≥ 22.15, `module.register` below.
@@ -74,8 +74,8 @@ push, with `set -o pipefail` so a `| tail` cannot swallow a red exit. The versi
range). Judge default `gemini-3.1-pro-preview` (`Settings.default_judge`; tracks use
n_samples=1); flash + `--n 3` is the cheap fallback, pro for calibration/eval.
- Live runs under `runs/` (`e2e_*`): read-only reference material; never modify.
-- Every model call is priced into the run's `telemetry/cost.jsonl` (`codeverse.cost.instrument`;
- `CV3D_COST_LEDGER=off` to disable). `docs/COST.md` Part II has the measured cost controls.
+- Every model call is priced into the run's `telemetry/cost.jsonl` (`codeverse3d.cost.instrument`;
+ `C3D_COST_LEDGER=off` to disable). `docs/COST.md` Part II has the measured cost controls.
## Commands
```
@@ -83,7 +83,7 @@ pip install -e /home/yipeng/3dcodeverse/harness # once (entry points: 3dcodeve
cd /home/yipeng/3dcodeverse/harness
3dcodeverse doctor [--live] [--no-gpu] [--json]
3dcodeverse make "a mid-century wooden dining chair" --track static_object --language blender
-3dcodeverse make "..." --profile economy|balanced|quality # one dial: models, judge n, rounds, candidates, texture, ceilings (--profile == CV3D_PROFILE)
+3dcodeverse make "..." --profile economy|balanced|quality # one dial: models, judge n, rounds, candidates, texture, ceilings (--profile == C3D_PROFILE)
3dcodeverse make "..." --track static_object --language threejs --generator gemini-cli:gemini-3.7-flash
3dcodeverse make "..." --track articulated_object --language urdf_blender
3dcodeverse make "..." --track scene --language scene_threejs --rounds 2 --max-minutes 60
@@ -98,10 +98,10 @@ cd /home/yipeng/3dcodeverse/harness
3dcode flywheel caption <slug> [--out dir] # the gallery is `3dcode gallery build --embed`
3dcode gallery serve [ROOTS...] [--port 8765] [--reload] · 3dcode gallery build --out gallery.html [--embed]
3dcode bench run eval/bench/prompts/static_objects_v1.yaml --generator ... --judge gemini:gemini-3.1-pro-preview
-python -m codeverse.addons.calibration runs/<slug>... --model gemini:gemini-3.1-pro-preview --n 3 --out out/
+python -m codeverse3d.addons.calibration runs/<slug>... --model gemini:gemini-3.1-pro-preview --n 3 --out out/
python eval/bench/complexity_report.py eval/bench/out --recursive # score-vs-complexity + $/complexity point (eval/docs/COMPLEXITY.md)
python eval/bench/compare_backends.py --prompts eval/bench/prompts/compare_v1.yaml --arms harness:gemini-cli:gemini-3.6-flash,oneshot:claude-code --judge gemini:gemini-3.1-pro-preview --out eval/bench/out/compare_v1
-python -m pytest tests -q -m "not live" # 2 714 tests, ~65 s (real Blender + headless Chrome + CadQuery)
+python -m pytest tests -q -m "not live" # 2 717 tests, ~65 s (real Blender + headless Chrome + CadQuery)
python -m pytest tests -q -m "not live and not blender and not node" # pure python: 2 166 tests, ~40 s (the 224 bench tests: `cd eval && python -m pytest`)
# (the counts drift every commit — `--collect-only` is the answer, not a number in this file)
# both run PARALLEL by default (pytest-xdist, -n auto --dist worksteal, in pyproject addopts).
diff --git a/harness/README.md b/harness/README.md
index 1ba47552..939aa49a 100644
--- a/harness/README.md
+++ b/harness/README.md
@@ -37,11 +37,11 @@ optional) → refine rounds → finalise → record**, with an optional post-hoc
pass. The tree after the 2026-08-28 consolidation (172 python files):
```
-codeverse/
+codeverse3d/
contracts/ typed pydantic contracts: Track/Language/Usage/Budget/Backends,
Spec, plans, artifacts, run record, AgentJob
conventions.py frames, units, views, naming, tolerances (THE constants source)
- config.py Settings (CV3D_* env + config.yaml) · workspace.py run-dir layout + git snapshots
+ config.py Settings (C3D_* env + config.yaml) · workspace.py run-dir layout + git snapshots
proc.py stdlib-only subprocess/JSON/JSONL primitives, run lock, fan-out (a leaf)
orchestrator.py stage runner: resume, run state, round loop, budget
tracks/ the four track pipelines, the one planner loop, generation strategies
diff --git a/harness/codeverse/__init__.py b/harness/codeverse3d/__init__.py
similarity index 62%
rename from harness/codeverse/__init__.py
rename to harness/codeverse3d/__init__.py
index 42f2d3f7..b68630bd 100644
--- a/harness/codeverse/__init__.py
+++ b/harness/codeverse3d/__init__.py
@@ -1,4 +1,4 @@
-"""codeverse — the 3dcodeverse harness.
+"""codeverse3d — the 3dcodeverse harness.
A backend harness in which LLMs (API models or agentic CLIs) write RAW,
executable 3D code — Blender ``bpy``, CadQuery, Three.js, URDF, GLSL — for
@@ -22,8 +22,27 @@ Package map (each sub-package has its own docstring):
- ``judges`` VLM judges + rubrics + deterministic metrics.
- ``tracks`` static_object / articulated_object / scene / graphics pipelines.
- ``orchestrator`` stage runner, round loop, budget, candidate selection.
-- ``flywheel`` run records → dataset samples / preference pairs.
+- ``record`` what every run writes: record.json, deliverable/, telemetry.
+- ``addons`` optional tools that READ finished runs (gallery, dataset, cost report, …).
- ``cli`` ``3dcode`` command line.
"""
+import os as _os
+
__version__ = "0.1.0"
+
+
+def _adopt_legacy_env() -> None:
+ """``CV3D_`` was the settings prefix until D78 (2026-09-22). A shell or a script that still
+ sets ``CV3D_X`` keeps working: each one with no ``C3D_X`` beside it is copied over once, at
+ first import — before anything reads a switch — and named in one warning."""
+ old = sorted(k for k in _os.environ if k.startswith("CV3D_") and "C3D_" + k[5:] not in _os.environ)
+ for k in old:
+ _os.environ["C3D_" + k[5:]] = _os.environ[k]
+ if old:
+ import logging
+
+ logging.getLogger(__name__).warning("the CV3D_ prefix is now C3D_; read as C3D_: %s", ", ".join(old))
+
+
+_adopt_legacy_env()
diff --git a/harness/codeverse/addons/__init__.py b/harness/codeverse3d/addons/__init__.py
similarity index 74%
rename from harness/codeverse/addons/__init__.py
rename to harness/codeverse3d/addons/__init__.py
index c1e05493..77a62ad0 100644
--- a/harness/codeverse/addons/__init__.py
+++ b/harness/codeverse3d/addons/__init__.py
@@ -5,12 +5,12 @@
(``3dcode flywheel export|pairs|caption|index``)
* ``costreport`` the cost audit of finished runs (``3dcode cost``)
* ``calibration`` judge repeatability / calibration over recorded runs
- (``python -m codeverse.addons.calibration``)
+ (``python -m codeverse3d.addons.calibration``)
* ``skill_targets`` each skill bundle's falsifiable claim, measured (``3dcode skills …``,
``bench/skill_targets.py``)
The boundary is one-way and pinned by ``tests/core/test_addons_boundary.py``: an addon may
-import anything in ``codeverse``; outside ``codeverse.cli`` nothing in ``codeverse`` imports an
+import anything in ``codeverse3d``; outside ``codeverse3d.cli`` nothing in ``codeverse3d`` imports an
addon. What a run itself writes (``record.json``, ``deliverable/``, telemetry) is NOT an
-addon — that is ``codeverse.record``; booking its cost while it runs is ``codeverse.cost``.
+addon — that is ``codeverse3d.record``; booking its cost while it runs is ``codeverse3d.cost``.
"""
diff --git a/harness/codeverse/addons/calibration.py b/harness/codeverse3d/addons/calibration.py
similarity index 94%
rename from harness/codeverse/addons/calibration.py
rename to harness/codeverse3d/addons/calibration.py
index ea6bee47..7fcfe1e0 100644
--- a/harness/codeverse/addons/calibration.py
+++ b/harness/codeverse3d/addons/calibration.py
@@ -10,7 +10,7 @@ negative), and between stored and new overalls. Optionally renders a clay /
normals geometry set for the run's best round (``artifacts/object.glb``) so the
geometry montage is exercised. Output goes to ``out_dir`` (never into the run).
-CLI: ``python -m codeverse.addons.calibration runs/a runs/b --model gemini:gemini-3.7-flash --n 3 --out scratch/``
+CLI: ``python -m codeverse3d.addons.calibration runs/a runs/b --model gemini:gemini-3.7-flash --n 3 --out scratch/``
"""
from __future__ import annotations
@@ -26,16 +26,16 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.contracts.artifacts import Judgment, RenderSet
-from codeverse.contracts.common import TRACK_INFO
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.contracts.run import RoundRecord
-from codeverse.contracts.spec import Spec
-from codeverse.judges.base import JudgeInput, judged_subset, plan_digest, resolve_paths
-from codeverse.judges.rubrics import is_degraded
-from codeverse.judges.vlm_judge import VlmJudge
-from codeverse.proc import read_json_or_none
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import Judgment, RenderSet
+from codeverse3d.contracts.common import TRACK_INFO
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.judges.base import JudgeInput, judged_subset, plan_digest, resolve_paths
+from codeverse3d.judges.rubrics import is_degraded
+from codeverse3d.judges.vlm_judge import VlmJudge
+from codeverse3d.proc import read_json_or_none
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -68,7 +68,7 @@ class RoundCase(BaseModel):
def _stored_weighted(case: RoundCase) -> float | None:
- from codeverse.judges.rubrics import load_rubric
+ from codeverse3d.judges.rubrics import load_rubric
if not case.stored or not case.stored.scores:
return None
@@ -195,8 +195,8 @@ def render_geometry_views(case: RoundCase, out_dir: Path, mode: str) -> RenderSe
"""Clay/normals renders of the run's final GLB for the best round (object tracks only)."""
if not case.glb or case.inp.spec.track.value == "scene":
return None
- from codeverse.conventions import OBJECT_CLAY_VIEWS
- from codeverse.spatial.render import render_glb
+ from codeverse3d.conventions import OBJECT_CLAY_VIEWS
+ from codeverse3d.spatial.render import render_glb
views = list(OBJECT_CLAY_VIEWS)
try:
@@ -278,7 +278,7 @@ def calibrate(
``fixed_order`` sends every sample the same montage order, so ``mean_std`` becomes the
model's own re-judge σ instead of its order-permutation σ (see ``VlmJudge.fixed_order``).
"""
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
model_id = model_id or get_settings().default_judge
out = Path(out_dir) if out_dir else Path.cwd()
diff --git a/harness/codeverse/addons/costreport/__init__.py b/harness/codeverse3d/addons/costreport/__init__.py
similarity index 91%
rename from harness/codeverse/addons/costreport/__init__.py
rename to harness/codeverse3d/addons/costreport/__init__.py
index 3203989c..bb5683d4 100644
--- a/harness/codeverse/addons/costreport/__init__.py
+++ b/harness/codeverse3d/addons/costreport/__init__.py
@@ -4,5 +4,5 @@
* ``report`` ``console(audit)`` · ``markdown(audit)``
* ``caching`` what prompt caching saved, per session
-Booking the money WHILE a run happens (ledger, guard, billing, instrument) is ``codeverse.cost``.
+Booking the money WHILE a run happens (ledger, guard, billing, instrument) is ``codeverse3d.cost``.
"""
diff --git a/harness/codeverse/addons/costreport/audit.py b/harness/codeverse3d/addons/costreport/audit.py
similarity index 98%
rename from harness/codeverse/addons/costreport/audit.py
rename to harness/codeverse3d/addons/costreport/audit.py
index 2de123f4..f49f22f8 100644
--- a/harness/codeverse/addons/costreport/audit.py
+++ b/harness/codeverse3d/addons/costreport/audit.py
@@ -23,9 +23,9 @@ from collections.abc import Iterable, Sequence
from dataclasses import dataclass, field
from pathlib import Path
-from codeverse.cost.ledger import summarise
-from codeverse.cost.reconstruct import RunLedger, find_runs, reconstruct
-from codeverse.cost.types import CallCost, Role, Stage, Summary
+from codeverse3d.cost.ledger import summarise
+from codeverse3d.cost.reconstruct import RunLedger, find_runs, reconstruct
+from codeverse3d.cost.types import CallCost, Role, Stage, Summary
#: dimensions the audit always aggregates on
AUDIT_DIMENSIONS = ("run", "track", "language", "stage", "role", "backend", "model", "provider",
diff --git a/harness/codeverse/addons/costreport/caching.py b/harness/codeverse3d/addons/costreport/caching.py
similarity index 99%
rename from harness/codeverse/addons/costreport/caching.py
rename to harness/codeverse3d/addons/costreport/caching.py
index 2131e7e6..5607470e 100644
--- a/harness/codeverse/addons/costreport/caching.py
+++ b/harness/codeverse3d/addons/costreport/caching.py
@@ -65,7 +65,7 @@ def session_key(label: str) -> str:
def session_cache(rows: Sequence[object]) -> list[SessionCache]:
- """Per-session cache behaviour from ledger rows (``codeverse.cost.CallCost``).
+ """Per-session cache behaviour from ledger rows (``codeverse3d.cost.CallCost``).
Sessions are ``(round, session_key(<key>))`` groups in ledger order, so the first row of a
group is that session's cold turn — the one the audit shows pays full price
diff --git a/harness/codeverse/addons/costreport/report.py b/harness/codeverse3d/addons/costreport/report.py
similarity index 96%
rename from harness/codeverse/addons/costreport/report.py
rename to harness/codeverse3d/addons/costreport/report.py
index 807d3cb3..ae318bfe 100644
--- a/harness/codeverse/addons/costreport/report.py
+++ b/harness/codeverse3d/addons/costreport/report.py
@@ -1,4 +1,4 @@
-"""Render an :class:`~codeverse.addons.costreport.audit.Audit` as markdown or a console table.
+"""Render an :class:`~codeverse3d.addons.costreport.audit.Audit` as markdown or a console table.
Pure formatting: every number comes from the audit, nothing is recomputed here.
"""
@@ -7,15 +7,15 @@ from __future__ import annotations
from collections.abc import Sequence
-from codeverse.addons.costreport.audit import (
+from codeverse3d.addons.costreport.audit import (
Audit,
cached_input_share,
price_confidence,
stage_latency,
uncached_if_no_cache,
)
-from codeverse.cost.routing import pro_break_even, routing_table
-from codeverse.cost.types import CostBucket
+from codeverse3d.cost.routing import pro_break_even, routing_table
+from codeverse3d.cost.types import CostBucket
STAGE_ORDER = ("plan", "skeleton", "assets", "env", "zones", "assemble", "baseline", "candidate",
"repair", "refine", "gates", "render", "judge", "pairwise", "texture", "caption", "other")
diff --git a/harness/codeverse/addons/dataset/__init__.py b/harness/codeverse3d/addons/dataset/__init__.py
similarity index 100%
rename from harness/codeverse/addons/dataset/__init__.py
rename to harness/codeverse3d/addons/dataset/__init__.py
diff --git a/harness/codeverse/addons/dataset/captions.py b/harness/codeverse3d/addons/dataset/captions.py
similarity index 94%
rename from harness/codeverse/addons/dataset/captions.py
rename to harness/codeverse3d/addons/dataset/captions.py
index 3286492e..b1005311 100644
--- a/harness/codeverse/addons/dataset/captions.py
+++ b/harness/codeverse3d/addons/dataset/captions.py
@@ -24,14 +24,14 @@ from pathlib import Path
from pydantic import BaseModel, Field
-from codeverse.addons.dataset.sample import code_files_for_round
-from codeverse.contracts.chat import ChatMessage, ChatRequest, ImagePart
-from codeverse.contracts.common import ENTRY_FILE, Language, Track
-from codeverse.contracts.run import RunRecord
-from codeverse.prompts import prompt_hash
-from codeverse.record import _git
-from codeverse.record.record import best_round_record
-from codeverse.workspace import Workspace
+from codeverse3d.addons.dataset.sample import code_files_for_round
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest, ImagePart
+from codeverse3d.contracts.common import ENTRY_FILE, Language, Track
+from codeverse3d.contracts.run import RunRecord
+from codeverse3d.prompts import prompt_hash
+from codeverse3d.record import _git
+from codeverse3d.record.record import best_round_record
+from codeverse3d.workspace import Workspace
MAX_CODE_CHARS = 12_000
N_VIEWS = 2
@@ -164,11 +164,11 @@ def caption_sample(
re-package the run (``package_run``: deliverable/, telemetry/, ``record.json``) —
a caption changes all three. With ``out_dir`` the workspace is left untouched and
``<out_dir>/<slug>.json`` (captions + provenance) is written instead — ``slug``
- should be the run's :class:`~codeverse.contracts.run.RunId` slug; without one the
+ should be the run's :class:`~codeverse3d.contracts.run.RunId` slug; without one the
side-car falls back to the directory basename (flat layouts only: every nested
battery run is named ``run`` and the side-cars would overwrite each other)."""
if model is None:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
model = get_chat_model(model_id)
images, used = _round_images(ws, record)
@@ -210,7 +210,7 @@ def caption_sample(
out.mkdir(parents=True, exist_ok=True)
(out / f"{slug or ws.root.name}.json").write_text(json.dumps(payload, indent=2, ensure_ascii=False))
return caps
- from codeverse.record.record import package_run
+ from codeverse3d.record.record import package_run
ws.write_json(ws.root / "captions.json", payload)
package_run(ws, record) # captions.json + cost.json + the manifest all go stale otherwise
diff --git a/harness/codeverse/addons/dataset/export.py b/harness/codeverse3d/addons/dataset/export.py
similarity index 97%
rename from harness/codeverse/addons/dataset/export.py
rename to harness/codeverse3d/addons/dataset/export.py
index b3bab3f1..10b38518 100644
--- a/harness/codeverse/addons/dataset/export.py
+++ b/harness/codeverse3d/addons/dataset/export.py
@@ -35,14 +35,14 @@ from typing import Any, NamedTuple
from pydantic import BaseModel, Field
-from codeverse.addons.dataset import sample as S
-from codeverse.addons.dataset.quality import DuplicateGroup, code_sha256, mark_duplicates
-from codeverse.contracts.common import ENTRY_FILE, Language
-from codeverse.contracts.run import RunId, RunRecord
-from codeverse.proc import sha256_file
-from codeverse.record._git import CODE_ROOTS
-from codeverse.record.record import FoundRun, best_round_record, iter_runs
-from codeverse.workspace import Workspace
+from codeverse3d.addons.dataset import sample as S
+from codeverse3d.addons.dataset.quality import DuplicateGroup, code_sha256, mark_duplicates
+from codeverse3d.contracts.common import ENTRY_FILE, Language
+from codeverse3d.contracts.run import RunId, RunRecord
+from codeverse3d.proc import sha256_file
+from codeverse3d.record._git import CODE_ROOTS
+from codeverse3d.record.record import FoundRun, best_round_record, iter_runs
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -74,7 +74,7 @@ def load_captions(
"""Full captions dict (text fields + provenance) from record.extra, ``<ws>/captions.json``
or ``<captions_dir>/<slug>.json``; ``{}`` when the run is not captioned.
- ``slug`` is the run's :class:`~codeverse.contracts.run.RunId` slug; without it the
+ ``slug`` is the run's :class:`~codeverse3d.contracts.run.RunId` slug; without it the
side-car falls back to the directory basename (correct only for flat layouts —
every nested battery run is named ``run`` and would read a stranger's captions)."""
caps = record.extra.get("captions") or {}
diff --git a/harness/codeverse/addons/dataset/index.py b/harness/codeverse3d/addons/dataset/index.py
similarity index 95%
rename from harness/codeverse/addons/dataset/index.py
rename to harness/codeverse3d/addons/dataset/index.py
index f8686476..70fde686 100644
--- a/harness/codeverse/addons/dataset/index.py
+++ b/harness/codeverse3d/addons/dataset/index.py
@@ -10,16 +10,16 @@ import sqlite3
from pathlib import Path
from typing import Any
-from codeverse.addons.dataset.quality import prompt_hash, quality_tier
-from codeverse.addons.dataset.sample import gate_error_summary
-from codeverse.contracts.run import RoundRecord, RunId, RunRecord
-from codeverse.record.record import (
+from codeverse3d.addons.dataset.quality import prompt_hash, quality_tier
+from codeverse3d.addons.dataset.sample import gate_error_summary
+from codeverse3d.contracts.run import RoundRecord, RunId, RunRecord
+from codeverse3d.record.record import (
best_round_index,
best_round_record,
effective_judgment,
iter_runs,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
_SCHEMA = """
CREATE TABLE runs (
diff --git a/harness/codeverse/addons/dataset/pack.py b/harness/codeverse3d/addons/dataset/pack.py
similarity index 98%
rename from harness/codeverse/addons/dataset/pack.py
rename to harness/codeverse3d/addons/dataset/pack.py
index 1a30f351..65fb2b8a 100644
--- a/harness/codeverse/addons/dataset/pack.py
+++ b/harness/codeverse3d/addons/dataset/pack.py
@@ -25,7 +25,7 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.addons.dataset.export import (
+from codeverse3d.addons.dataset.export import (
JSONL_NAME,
PARQUET_NAME,
ManifestEntry,
@@ -35,7 +35,7 @@ from codeverse.addons.dataset.export import (
write_jsonl,
write_parquet,
)
-from codeverse.addons.dataset.quality import mark_duplicates
+from codeverse3d.addons.dataset.quality import mark_duplicates
MAX_TAR_BYTES = int(2.5 * 1024**3)
#: per-member allowance for tar headers/padding in the rollover size estimate
diff --git a/harness/codeverse/addons/dataset/pairs.py b/harness/codeverse3d/addons/dataset/pairs.py
similarity index 96%
rename from harness/codeverse/addons/dataset/pairs.py
rename to harness/codeverse3d/addons/dataset/pairs.py
index 449ea9e1..39d3a9cc 100644
--- a/harness/codeverse/addons/dataset/pairs.py
+++ b/harness/codeverse3d/addons/dataset/pairs.py
@@ -29,12 +29,12 @@ from collections import defaultdict
from pathlib import Path
from typing import Any
-from codeverse.addons.dataset.quality import prompt_hash
-from codeverse.contracts.run import RoundRecord, RunRecord
-from codeverse.proc import read_jsonl_lenient
-from codeverse.record import _git
-from codeverse.record.record import best_round_record, effective_judgment, iter_runs
-from codeverse.workspace import Workspace
+from codeverse3d.addons.dataset.quality import prompt_hash
+from codeverse3d.contracts.run import RoundRecord, RunRecord
+from codeverse3d.proc import read_jsonl_lenient
+from codeverse3d.record import _git
+from codeverse3d.record.record import best_round_record, effective_judgment, iter_runs
+from codeverse3d.workspace import Workspace
__all__ = ["build_pairs", "preference_pairs", "repair_pairs", "in_round_repair_pairs",
"cross_backend_pairs", "prompt_hash"]
@@ -80,7 +80,7 @@ def _base(ws: Workspace, rec: RunRecord, kind: str, *, slug: str | None = None)
#: the judge Δ at which two rounds are a preference pair — and, in
-#: :mod:`codeverse.addons.dataset.refine`, the Δ at which a transition counts as improved. One
+#: :mod:`codeverse3d.addons.dataset.refine`, the Δ at which a transition counts as improved. One
#: constant, so a Δ that is a preference pair here is never "unchanged" there.
MIN_PREFERENCE_DELTA = 0.05
diff --git a/harness/codeverse/addons/dataset/quality.py b/harness/codeverse3d/addons/dataset/quality.py
similarity index 100%
rename from harness/codeverse/addons/dataset/quality.py
rename to harness/codeverse3d/addons/dataset/quality.py
diff --git a/harness/codeverse/addons/dataset/refine.py b/harness/codeverse3d/addons/dataset/refine.py
similarity index 95%
rename from harness/codeverse/addons/dataset/refine.py
rename to harness/codeverse3d/addons/dataset/refine.py
index 4dfdb239..cc7fe303 100644
--- a/harness/codeverse/addons/dataset/refine.py
+++ b/harness/codeverse3d/addons/dataset/refine.py
@@ -1,6 +1,6 @@
"""Refine rounds as transitions: what the round was told, what it changed, what it scored.
-:mod:`codeverse.addons.dataset.pairs` exports whole code trees per round and never looks at what
+:mod:`codeverse3d.addons.dataset.pairs` exports whole code trees per round and never looks at what
asked for the change, so a refine round arrives as two 30 kB files with no cause. This
exports the transition instead — one row per refine round::
@@ -27,17 +27,17 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.addons.dataset.pairs import MIN_PREFERENCE_DELTA
-from codeverse.contracts.artifacts import Severity
-from codeverse.contracts.run import RoundRecord, RunRecord
-from codeverse.record._git import GitReadError, changed_files_between, diff_between, read_tree_at
-from codeverse.record.record import (
+from codeverse3d.addons.dataset.pairs import MIN_PREFERENCE_DELTA
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.contracts.run import RoundRecord, RunRecord
+from codeverse3d.record._git import GitReadError, changed_files_between, diff_between, read_tree_at
+from codeverse3d.record.record import (
BATTERY_MARKERS,
effective_judgment,
effective_score,
iter_runs,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
#: rounds that answer a judgment. A texture or asset round is driven by its own pass, and
#: a repair round by a build error the judge never saw.
diff --git a/harness/codeverse/addons/dataset/sample.py b/harness/codeverse3d/addons/dataset/sample.py
similarity index 96%
rename from harness/codeverse/addons/dataset/sample.py
rename to harness/codeverse3d/addons/dataset/sample.py
index b0db345d..277c907d 100644
--- a/harness/codeverse/addons/dataset/sample.py
+++ b/harness/codeverse3d/addons/dataset/sample.py
@@ -21,29 +21,29 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse import __version__
-from codeverse.addons.dataset.quality import (
+from codeverse3d import __version__
+from codeverse3d.addons.dataset.quality import (
QualityTier,
code_fingerprint,
prompt_hash,
quality_tier,
)
-from codeverse.contracts.common import (
+from codeverse3d.contracts.common import (
ENTRY_FILE,
LANGUAGE_LABEL,
TRACK_INFO,
Language,
code_file,
)
-from codeverse.contracts.run import RoundRecord, RunRecord
-from codeverse.record import _git
-from codeverse.record.deliverable import deliverable_path
-from codeverse.record.record import (
+from codeverse3d.contracts.run import RoundRecord, RunRecord
+from codeverse3d.record import _git
+from codeverse3d.record.deliverable import deliverable_path
+from codeverse3d.record.record import (
effective_judgment,
round_complexity,
round_summary,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
MAX_GLB_BYTES = 20 * 1024 * 1024
SOURCE_NAME = "3dcodeverse"
@@ -125,7 +125,7 @@ class SampleMeta(BaseModel):
def sample_key(ws: Workspace) -> str:
"""FALLBACK key: the directory basename — correct for the flat ``runs/<id>``
layout only. Exporters that scanned a root pass the collision-safe
- :class:`~codeverse.contracts.run.RunId` slug instead (``export_one(run_id=…)``):
+ :class:`~codeverse3d.contracts.run.RunId` slug instead (``export_one(run_id=…)``):
in nested battery layouts every run dir is literally named ``run``."""
return ws.root.name
@@ -352,7 +352,7 @@ def telemetry_digest(ws: Workspace, record: RunRecord) -> dict[str, Any]:
"""The few accounting numbers a dataset consumer wants inline: total, per stage,
model + thinking level per role, rubric/price hashes. ``{}`` when a run has no
telemetry (old layout and nothing computable)."""
- from codeverse.record.telemetry import load_telemetry
+ from codeverse3d.record.telemetry import load_telemetry
tele = load_telemetry(ws, record)
if tele is None:
diff --git a/harness/codeverse/addons/gallery/__init__.py b/harness/codeverse3d/addons/gallery/__init__.py
similarity index 83%
rename from harness/codeverse/addons/gallery/__init__.py
rename to harness/codeverse3d/addons/gallery/__init__.py
index d7ecd861..987eaf3f 100644
--- a/harness/codeverse/addons/gallery/__init__.py
+++ b/harness/codeverse3d/addons/gallery/__init__.py
@@ -13,9 +13,9 @@
* ``server`` ``GalleryApp.route`` + ``serve(...)`` — loopback-only unless --host is typed
"""
-from codeverse.addons.gallery.compare import export_csv, render_compare
-from codeverse.addons.gallery.index import build_index, default_roots
-from codeverse.addons.gallery.model import (
+from codeverse3d.addons.gallery.compare import export_csv, render_compare
+from codeverse3d.addons.gallery.index import build_index, default_roots
+from codeverse3d.addons.gallery.model import (
VERDICTS,
GalleryIndex,
RootSection,
@@ -25,8 +25,8 @@ from codeverse.addons.gallery.model import (
summarize,
verdict_breakdown,
)
-from codeverse.addons.gallery.page import build_static, render_static
-from codeverse.addons.gallery.server import (
+from codeverse3d.addons.gallery.page import build_static, render_static
+from codeverse3d.addons.gallery.server import (
DEFAULT_HOST,
DEFAULT_PORT,
GalleryApp,
diff --git a/harness/codeverse/addons/gallery/cards.py b/harness/codeverse3d/addons/gallery/cards.py
similarity index 98%
rename from harness/codeverse/addons/gallery/cards.py
rename to harness/codeverse3d/addons/gallery/cards.py
index c47649f5..f3834a73 100644
--- a/harness/codeverse/addons/gallery/cards.py
+++ b/harness/codeverse3d/addons/gallery/cards.py
@@ -14,9 +14,9 @@ Design rules this module exists to hold in one place:
from __future__ import annotations
-from codeverse.addons.gallery.model import VERDICT_META, RunEntry, RunLink, humanize_view
-from codeverse.addons.gallery.theme import esc
-from codeverse.addons.gallery.urls import UrlMaker
+from codeverse3d.addons.gallery.model import VERDICT_META, RunEntry, RunLink, humanize_view
+from codeverse3d.addons.gallery.theme import esc
+from codeverse3d.addons.gallery.urls import UrlMaker
#: links promoted next to ``detail`` on the card, best-first — the one artifact
#: you actually open for that track
diff --git a/harness/codeverse/addons/gallery/code.py b/harness/codeverse3d/addons/gallery/code.py
similarity index 97%
rename from harness/codeverse/addons/gallery/code.py
rename to harness/codeverse3d/addons/gallery/code.py
index 94bf4ecb..52771d2b 100644
--- a/harness/codeverse/addons/gallery/code.py
+++ b/harness/codeverse3d/addons/gallery/code.py
@@ -12,9 +12,9 @@ from __future__ import annotations
import re
from pathlib import Path
-from codeverse.addons.gallery.model import RunEntry
-from codeverse.addons.gallery.theme import esc, footer, page_shell, top_bar
-from codeverse.addons.gallery.urls import UrlMaker, safe_join
+from codeverse3d.addons.gallery.model import RunEntry
+from codeverse3d.addons.gallery.theme import esc, footer, page_shell, top_bar
+from codeverse3d.addons.gallery.urls import UrlMaker, safe_join
MAX_VIEW_BYTES = 512 * 1024
HIGHLIGHT_SUFFIXES = {".py", ".js", ".mjs", ".cjs", ".frag", ".vert", ".glsl", ".json"}
diff --git a/harness/codeverse/addons/gallery/compare.py b/harness/codeverse3d/addons/gallery/compare.py
similarity index 97%
rename from harness/codeverse/addons/gallery/compare.py
rename to harness/codeverse3d/addons/gallery/compare.py
index 8d449ffb..3234dbb9 100644
--- a/harness/codeverse/addons/gallery/compare.py
+++ b/harness/codeverse3d/addons/gallery/compare.py
@@ -15,10 +15,10 @@ import csv
import io
from urllib.parse import quote
-from codeverse.addons.gallery.cards import fmt, tier_tag, verdict_tag
-from codeverse.addons.gallery.model import VERDICT_META, RunEntry
-from codeverse.addons.gallery.theme import esc, footer, page_shell, top_bar
-from codeverse.addons.gallery.urls import UrlMaker
+from codeverse3d.addons.gallery.cards import fmt, tier_tag, verdict_tag
+from codeverse3d.addons.gallery.model import VERDICT_META, RunEntry
+from codeverse3d.addons.gallery.theme import esc, footer, page_shell, top_bar
+from codeverse3d.addons.gallery.urls import UrlMaker
#: how many runs a compare page will lay out before it says "too many"
MAX_COMPARE = 8
diff --git a/harness/codeverse/addons/gallery/detail.py b/harness/codeverse3d/addons/gallery/detail.py
similarity index 96%
rename from harness/codeverse/addons/gallery/detail.py
rename to harness/codeverse3d/addons/gallery/detail.py
index 522a03ff..e19ff11f 100644
--- a/harness/codeverse/addons/gallery/detail.py
+++ b/harness/codeverse3d/addons/gallery/detail.py
@@ -12,16 +12,16 @@ from __future__ import annotations
from pathlib import Path
from urllib.parse import quote
-from codeverse.addons.gallery.cards import fmt, gallery_figure, tier_tag, verdict_tag
-from codeverse.addons.gallery.code import CODE_CSS, numbered, read_text, src_files
-from codeverse.addons.gallery.index import _rel
-from codeverse.addons.gallery.model import RunEntry
-from codeverse.addons.gallery.theme import esc, footer, page_shell, top_bar
-from codeverse.addons.gallery.urls import UrlMaker
-from codeverse.contracts.common import ENTRY_FILE
-from codeverse.contracts.run import RunRecord
-from codeverse.record.record import best_round_record, effective_judgment
-from codeverse.workspace import Workspace
+from codeverse3d.addons.gallery.cards import fmt, gallery_figure, tier_tag, verdict_tag
+from codeverse3d.addons.gallery.code import CODE_CSS, numbered, read_text, src_files
+from codeverse3d.addons.gallery.index import _rel
+from codeverse3d.addons.gallery.model import RunEntry
+from codeverse3d.addons.gallery.theme import esc, footer, page_shell, top_bar
+from codeverse3d.addons.gallery.urls import UrlMaker
+from codeverse3d.contracts.common import ENTRY_FILE
+from codeverse3d.contracts.run import RunRecord
+from codeverse3d.record.record import best_round_record, effective_judgment
+from codeverse3d.workspace import Workspace
DETAIL_CSS = CODE_CSS + """
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:var(--s-4);align-items:start}
@@ -226,7 +226,7 @@ def _complexity_panel(entry: RunEntry, rec: RunRecord) -> str:
if isinstance(trail, list) and len(trail) > 1:
rows.append(_kv("by round", " → ".join(f"{float(x):.2f}" for x in trail)))
note = ("<p class='xs faint'>objective complexity of the delivered artifact "
- "(codeverse/spatial/complexity.py) — difficulty, not quality; see docs/COMPLEXITY.md</p>")
+ "(codeverse3d/spatial/complexity.py) — difficulty, not quality; see docs/COMPLEXITY.md</p>")
return _panel("complexity", f"<div class='kvs'>{''.join(rows)}</div>{note}", anchor="complexity")
@@ -252,7 +252,7 @@ def _renders_panel(entry: RunEntry, urls: UrlMaker, rec: RunRecord) -> str:
def _cost_panel(entry: RunEntry, ws: Workspace, rec: RunRecord) -> str:
- from codeverse.record.telemetry import load_telemetry
+ from codeverse3d.record.telemetry import load_telemetry
tele = load_telemetry(ws, rec)
cost = tele.cost if tele is not None else None
diff --git a/harness/codeverse/addons/gallery/index.py b/harness/codeverse3d/addons/gallery/index.py
similarity index 96%
rename from harness/codeverse/addons/gallery/index.py
rename to harness/codeverse3d/addons/gallery/index.py
index fb3c4edb..1883d3ea 100644
--- a/harness/codeverse/addons/gallery/index.py
+++ b/harness/codeverse3d/addons/gallery/index.py
@@ -1,7 +1,7 @@
"""Build the gallery index from run roots.
``build_index(roots)`` walks every run directory once, reads ``record.json`` and
-turns it into a :class:`~codeverse.addons.gallery.model.RunEntry` whose every path is
+turns it into a :class:`~codeverse3d.addons.gallery.model.RunEntry` whose every path is
**run-relative**. It is deliberately cheap (no image work, no git): ~80 runs
index in well under a second, which is what makes ``--reload`` free.
@@ -15,9 +15,9 @@ from __future__ import annotations
import time
from pathlib import Path
-from codeverse.addons.dataset.quality import quality_tier
-from codeverse.addons.dataset.sample import gate_error_summary, telemetry_digest
-from codeverse.addons.gallery.model import (
+from codeverse3d.addons.dataset.quality import quality_tier
+from codeverse3d.addons.dataset.sample import gate_error_summary, telemetry_digest
+from codeverse3d.addons.gallery.model import (
GalleryIndex,
RootSection,
RoundRow,
@@ -25,9 +25,9 @@ from codeverse.addons.gallery.model import (
RunLink,
humanize_view,
)
-from codeverse.contracts.run import RunId, RunRecord
-from codeverse.proc import read_json_or_none
-from codeverse.record.record import (
+from codeverse3d.contracts.run import RunId, RunRecord
+from codeverse3d.proc import read_json_or_none
+from codeverse3d.record.record import (
RecordError,
battery_label,
best_round_index,
@@ -37,7 +37,7 @@ from codeverse.record.record import (
is_run_dir,
load_record,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
#: run roots the CLI defaults to when the user names none
DEFAULT_RUNS = "runs"
@@ -212,7 +212,7 @@ def _complexity(ws: Workspace, rec: RunRecord) -> tuple[float | None, str, dict[
complexity block, else the best round's measurement, else the measurement
file on disk. A run built before the complexity vector existed has none
(``bench/complexity_report.py`` recomputes those from the GLB)."""
- from codeverse.record.record import complexity_block
+ from codeverse3d.record.record import complexity_block
try:
block = rec.extra.get("complexity") or complexity_block(rec) or _measurement_complexity(ws)
@@ -310,7 +310,7 @@ def scan_root(root: Path, label: str | None = None) -> RootSection:
and five levels down, so pointing the gallery at one built a page "of 0 runs" and
exited 0 — the silent-empty failure, on a directory full of real runs.
- Every entry is named by its :class:`~codeverse.contracts.run.RunId` slug, so two
+ Every entry is named by its :class:`~codeverse3d.contracts.run.RunId` slug, so two
nested runs whose directories are both called ``run`` stay two entries. A slug
that still repeats within the root gets ``#2``/``#3`` — the same precedent as
duplicate section labels in :func:`build_index`."""
diff --git a/harness/codeverse/addons/gallery/model.py b/harness/codeverse3d/addons/gallery/model.py
similarity index 99%
rename from harness/codeverse/addons/gallery/model.py
rename to harness/codeverse3d/addons/gallery/model.py
index 3c318a1e..6ad2ea89 100644
--- a/harness/codeverse/addons/gallery/model.py
+++ b/harness/codeverse3d/addons/gallery/model.py
@@ -179,7 +179,7 @@ class RunEntry(BaseModel):
@property
def verdict(self) -> str:
- """The triage bucket — exactly one of :data:`~codeverse.addons.gallery.model.VERDICTS`.
+ """The triage bucket — exactly one of :data:`~codeverse3d.addons.gallery.model.VERDICTS`.
The four are disjoint *and* exhaustive on purpose: a status breakdown built
from them always sums to the number of runs on screen. A run whose record
diff --git a/harness/codeverse/addons/gallery/page.py b/harness/codeverse3d/addons/gallery/page.py
similarity index 95%
rename from harness/codeverse/addons/gallery/page.py
rename to harness/codeverse3d/addons/gallery/page.py
index 100c51ad..1cd93505 100644
--- a/harness/codeverse/addons/gallery/page.py
+++ b/harness/codeverse3d/addons/gallery/page.py
@@ -1,7 +1,7 @@
"""The index page: status rail, filters, per-battery sections, cards + table.
Rendered identically for the local server and the static build — the only
-difference is the :class:`~codeverse.addons.gallery.urls.UrlMaker` it is handed. The
+difference is the :class:`~codeverse3d.addons.gallery.urls.UrlMaker` it is handed. The
initial filter is applied **server-side** (so ``curl '/?track=graphics'`` and a
no-JS browser both see the right runs and the right summary) and then re-applied
client-side on every keystroke without a reload.
@@ -17,9 +17,9 @@ from __future__ import annotations
import json
from pathlib import Path
-from codeverse.addons.gallery.cards import TABLE_HEAD, fmt, render_card, render_row
-from codeverse.addons.gallery.index import build_index
-from codeverse.addons.gallery.model import (
+from codeverse3d.addons.gallery.cards import TABLE_HEAD, fmt, render_card, render_row
+from codeverse3d.addons.gallery.index import build_index
+from codeverse3d.addons.gallery.model import (
FILTER_KEYS,
VERDICT_META,
VERDICTS,
@@ -29,9 +29,9 @@ from codeverse.addons.gallery.model import (
sort_entries,
summarize,
)
-from codeverse.addons.gallery.theme import INDEX_CSS, INDEX_JS, esc, footer, page_shell, top_bar
-from codeverse.addons.gallery.urls import THUMB_PX, StaticUrls, UrlMaker
-from codeverse.proc import write_text_atomic
+from codeverse3d.addons.gallery.theme import INDEX_CSS, INDEX_JS, esc, footer, page_shell, top_bar
+from codeverse3d.addons.gallery.urls import THUMB_PX, StaticUrls, UrlMaker
+from codeverse3d.proc import write_text_atomic
# --------------------------------------------------------------------------- summary
diff --git a/harness/codeverse/addons/gallery/server.py b/harness/codeverse3d/addons/gallery/server.py
similarity index 94%
rename from harness/codeverse/addons/gallery/server.py
rename to harness/codeverse3d/addons/gallery/server.py
index d9742468..bac44403 100644
--- a/harness/codeverse/addons/gallery/server.py
+++ b/harness/codeverse3d/addons/gallery/server.py
@@ -27,15 +27,15 @@ from pathlib import Path
from typing import Any
from urllib.parse import parse_qs, unquote, urlsplit
-from codeverse.addons.gallery import code as code_page
-from codeverse.addons.gallery import viewer as viewer_page
-from codeverse.addons.gallery.compare import MAX_COMPARE, export_csv, parse_keys, render_compare
-from codeverse.addons.gallery.detail import render_broken_detail, render_detail
-from codeverse.addons.gallery.index import build_index
-from codeverse.addons.gallery.model import FILTER_KEYS, RunEntry, match, sort_entries
-from codeverse.addons.gallery.page import render_index
-from codeverse.addons.gallery.theme import esc, footer, page_shell, top_bar
-from codeverse.addons.gallery.urls import PathError, UrlMaker, content_type, safe_join
+from codeverse3d.addons.gallery import code as code_page
+from codeverse3d.addons.gallery import viewer as viewer_page
+from codeverse3d.addons.gallery.compare import MAX_COMPARE, export_csv, parse_keys, render_compare
+from codeverse3d.addons.gallery.detail import render_broken_detail, render_detail
+from codeverse3d.addons.gallery.index import build_index
+from codeverse3d.addons.gallery.model import FILTER_KEYS, RunEntry, match, sort_entries
+from codeverse3d.addons.gallery.page import render_index
+from codeverse3d.addons.gallery.theme import esc, footer, page_shell, top_bar
+from codeverse3d.addons.gallery.urls import PathError, UrlMaker, content_type, safe_join
DEFAULT_HOST = "127.0.0.1"
DEFAULT_PORT = 8765
@@ -232,8 +232,8 @@ class GalleryApp:
return Response(content_type=ctype, path=target, headers=headers)
def _detail(self, entry: RunEntry) -> Response:
- from codeverse.record.record import RecordError, load_record
- from codeverse.workspace import Workspace
+ from codeverse3d.record.record import RecordError, load_record
+ from codeverse3d.workspace import Workspace
ws = Workspace(entry.path)
try:
@@ -242,7 +242,7 @@ class GalleryApp:
state = entry.state if entry.state != "ok" else "broken"
broken = entry.model_copy(update={"state": state, "error": str(e)[:400]})
return Response.html(render_broken_detail(broken, self.urls))
- from codeverse.addons.gallery.index import entry_from_record
+ from codeverse3d.addons.gallery.index import entry_from_record
fresh = entry_from_record(entry.battery, ws, rec, slug=entry.slug) # newest rounds, even mid-bench
prev, nxt = self.neighbours(entry)
@@ -270,7 +270,7 @@ class GalleryApp:
return Response.json({"n": len(rows), "total": len(self.index.entries()),
"runs": [e.model_dump(mode="json") for e in rows]})
if what == "summary":
- from codeverse.addons.gallery.model import summarize
+ from codeverse3d.addons.gallery.model import summarize
return Response.json(summarize(self.selected(query)).model_dump(mode="json"))
if what == "index":
diff --git a/harness/codeverse/addons/gallery/theme.py b/harness/codeverse3d/addons/gallery/theme.py
similarity index 100%
rename from harness/codeverse/addons/gallery/theme.py
rename to harness/codeverse3d/addons/gallery/theme.py
diff --git a/harness/codeverse/addons/gallery/urls.py b/harness/codeverse3d/addons/gallery/urls.py
similarity index 99%
rename from harness/codeverse/addons/gallery/urls.py
rename to harness/codeverse3d/addons/gallery/urls.py
index 6e8906d1..8a8cff61 100644
--- a/harness/codeverse/addons/gallery/urls.py
+++ b/harness/codeverse3d/addons/gallery/urls.py
@@ -14,7 +14,7 @@ import mimetypes
from pathlib import Path, PurePosixPath
from urllib.parse import quote
-from codeverse.addons.gallery.model import RunEntry, RunLink
+from codeverse3d.addons.gallery.model import RunEntry, RunLink
THUMB_PX = 720
JPEG_QUALITY = 78
diff --git a/harness/codeverse/addons/gallery/viewer.py b/harness/codeverse3d/addons/gallery/viewer.py
similarity index 95%
rename from harness/codeverse/addons/gallery/viewer.py
rename to harness/codeverse3d/addons/gallery/viewer.py
index 29192170..54c38e89 100644
--- a/harness/codeverse/addons/gallery/viewer.py
+++ b/harness/codeverse3d/addons/gallery/viewer.py
@@ -11,9 +11,9 @@ from __future__ import annotations
import json
from pathlib import Path
-from codeverse.addons.gallery.model import RunEntry
-from codeverse.addons.gallery.theme import esc, footer, page_shell, top_bar
-from codeverse.addons.gallery.urls import UrlMaker
+from codeverse3d.addons.gallery.model import RunEntry
+from codeverse3d.addons.gallery.theme import esc, footer, page_shell, top_bar
+from codeverse3d.addons.gallery.urls import UrlMaker
#: URL prefix → path under node_modules/three
VENDOR_MAP = {"three/build/": "build/", "three/examples/jsm/": "examples/jsm/"}
@@ -88,7 +88,7 @@ addEventListener('resize', () => {
def three_root(runtime_js: Path | str | None = None) -> Path | None:
"""``runtime_js/node_modules/three`` when the vendored copy is installed."""
if runtime_js is None:
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
runtime_js = get_settings().runtime_js_dir()
p = Path(runtime_js) / "node_modules" / "three"
@@ -104,7 +104,7 @@ def vendor_path(rel: str, runtime_js: Path | str | None = None) -> Path | None:
Only the two whitelisted subtrees are reachable, and :func:`safe_join` still
checks the result — a vendor URL can never leave ``node_modules/three``."""
- from codeverse.addons.gallery.urls import PathError, safe_join
+ from codeverse3d.addons.gallery.urls import PathError, safe_join
root = three_root(runtime_js)
if root is None:
diff --git a/harness/codeverse/addons/skill_targets.py b/harness/codeverse3d/addons/skill_targets.py
similarity index 93%
rename from harness/codeverse/addons/skill_targets.py
rename to harness/codeverse3d/addons/skill_targets.py
index 5fc519e7..8cea17ff 100644
--- a/harness/codeverse/addons/skill_targets.py
+++ b/harness/codeverse3d/addons/skill_targets.py
@@ -14,7 +14,7 @@ Three rules the rows obey:
a skills A/B read out on ``score`` at n=8 is a coin toss. These do not carry that
variance.
* **One owner per quantity.** ``contract/instance_bbox`` belongs to
- ``cv3d-repeats-and-mirrors``, so ``cv3d-bbox-contract``'s row excludes it. Two
+ ``c3d-repeats-and-mirrors``, so ``c3d-bbox-contract``'s row excludes it. Two
bundles sharing a metric means an A/B cannot say which one moved it.
* **``measurable=False`` is a finding, not a gap.** A bundle whose claim no
deterministic instrument can see says so here rather than borrowing a judged
@@ -32,7 +32,7 @@ from dataclasses import dataclass, field
from pathlib import Path
from typing import Any
-from codeverse.skills.model import Skill
+from codeverse3d.skills.model import Skill
#: the direction that counts as an improvement
DOWN = "down"
@@ -73,7 +73,7 @@ OBJECT_LANGS = ("blender", "urdf_blender", "cadquery", "threejs")
TARGETS: tuple[Target, ...] = (
Target(
- skill="cv3d-part-contact",
+ skill="c3d-part-contact",
metric="interpenetrating_pairs",
direction=DOWN,
unit="findings per run",
@@ -84,7 +84,7 @@ TARGETS: tuple[Target, ...] = (
"assembly_fit (r = -0.258, docs/COMPLEXITY.md §6) and the bundle exists to lower it",
),
Target(
- skill="cv3d-bbox-contract",
+ skill="c3d-bbox-contract",
metric="contract_findings",
direction=DOWN,
unit="findings per run",
@@ -95,13 +95,13 @@ TARGETS: tuple[Target, ...] = (
why="the bundle is the contract gate's own tolerance arithmetic: a part that IS there "
"and is the wrong size or in the wrong place",
caveat="two contract kinds are deliberately somebody else's. contract/instance_* is "
- "cv3d-repeats-and-mirrors; contract/missing_part is a part that never reached the "
- "GLB at all, which is a language-API failure (cv3d-threejs-forms owns it for "
+ "c3d-repeats-and-mirrors; contract/missing_part is a part that never reached the "
+ "GLB at all, which is a language-API failure (c3d-threejs-forms owns it for "
"threejs; for blender its upstream signal is lint/part_not_imported, counted by "
- "cv3d-blender-forms) rather than a tolerance failure.",
+ "c3d-blender-forms) rather than a tolerance failure.",
),
Target(
- skill="cv3d-repeats-and-mirrors",
+ skill="c3d-repeats-and-mirrors",
metric="contract_instance_findings",
direction=DOWN,
unit="findings per run",
@@ -111,7 +111,7 @@ TARGETS: tuple[Target, ...] = (
why="metadata.owns already names these two kinds; they are the whole claim",
),
Target(
- skill="cv3d-blender-forms",
+ skill="c3d-blender-forms",
metric="blender_lint_findings",
direction=DOWN,
unit="findings per run",
@@ -121,7 +121,7 @@ TARGETS: tuple[Target, ...] = (
why="the bundle is written around the five bpy traps the static lint already counts",
),
Target(
- skill="cv3d-urdf-joints",
+ skill="c3d-urdf-joints",
metric="joint_sweep_errors",
direction=DOWN,
unit="ERROR findings per run",
@@ -133,7 +133,7 @@ TARGETS: tuple[Target, ...] = (
"moved-pose ERRORs, which is exactly what the clearance rule targets",
),
Target(
- skill="cv3d-cadquery-forms",
+ skill="c3d-cadquery-forms",
metric="build_failure_rate",
direction=DOWN,
unit="fraction of rounds whose build failed",
@@ -144,7 +144,7 @@ TARGETS: tuple[Target, ...] = (
caveat="no baseline exists: bench/out holds zero graded cadquery runs.",
),
Target(
- skill="cv3d-threejs-forms",
+ skill="c3d-threejs-forms",
metric="missing_parts",
direction=DOWN,
unit="findings per run",
@@ -156,7 +156,7 @@ TARGETS: tuple[Target, ...] = (
caveat="no baseline exists: bench/out holds zero graded threejs runs.",
),
Target(
- skill="cv3d-scene-composition",
+ skill="c3d-scene-composition",
metric="camera_placement_findings",
direction=DOWN,
unit="findings per run",
@@ -169,7 +169,7 @@ TARGETS: tuple[Target, ...] = (
"classifies no kind for it, so it is not in this count.",
),
Target(
- skill="cv3d-scene-lighting",
+ skill="c3d-scene-lighting",
metric="dark_or_flat_frames",
direction=DOWN,
unit="findings per run",
@@ -180,7 +180,7 @@ TARGETS: tuple[Target, ...] = (
"the gate counts exactly the frames it failed to light",
),
Target(
- skill="cv3d-scene-motion",
+ skill="c3d-scene-motion",
metric="min_authored_changed_frac",
direction=UP,
unit="fraction of pixels changed on the WEAKEST authored camera, t=0 → t=1.5 s",
@@ -196,7 +196,7 @@ TARGETS: tuple[Target, ...] = (
"regression worth catching.",
),
Target(
- skill="cv3d-threejs-shader-traps",
+ skill="c3d-threejs-shader-traps",
metric="shader_preflight_findings",
direction=DOWN,
unit="WARN+ERROR findings per run",
@@ -211,7 +211,7 @@ TARGETS: tuple[Target, ...] = (
"the record, so only the run's final state is readable.",
),
Target(
- skill="cv3d-glsl-craft",
+ skill="c3d-glsl-craft",
metric="mean_edge_density",
direction=UP,
unit="mean edge density over the 5 sampled frames (frame_stats)",
@@ -222,7 +222,7 @@ TARGETS: tuple[Target, ...] = (
"and the quantity its own fix hint asks the agent to raise",
),
Target(
- skill="cv3d-opengl-pipeline",
+ skill="c3d-opengl-pipeline",
metric="gl_frame_findings",
direction=DOWN,
unit="findings per run",
@@ -237,7 +237,7 @@ TARGETS: tuple[Target, ...] = (
# harness's measured findings; OUR baselines attach when the sceneloop A/B lands.
# Until then the honest target is the same frame-gate family the recipes serve.
Target(
- skill="cv3d-scene-atmosphere",
+ skill="c3d-scene-atmosphere",
metric="env_bake_orientation_flags",
direction=DOWN,
unit="inverted bakes per run (prospective census)",
@@ -249,7 +249,7 @@ TARGETS: tuple[Target, ...] = (
caveat="ported claim: reference-harness evidence, our own A/B pending (sceneloop).",
),
Target(
- skill="cv3d-scene-water",
+ skill="c3d-scene-water",
metric="metallic_water_planes",
direction=DOWN,
unit="water materials with metalness above 0.3 (prospective census)",
@@ -262,7 +262,7 @@ TARGETS: tuple[Target, ...] = (
"a water-specific instrument (fresnel/metalness census) is a candidate follow-up.",
),
Target(
- skill="cv3d-scene-night",
+ skill="c3d-scene-night",
metric="overbright_shaft_findings",
direction=DOWN,
unit="solid-reading light shafts per run (prospective census)",
@@ -274,7 +274,7 @@ TARGETS: tuple[Target, ...] = (
caveat="ported claim: reference-harness evidence, our own A/B pending (sceneloop).",
),
Target(
- skill="cv3d-scene-materials",
+ skill="c3d-scene-materials",
metric="flat_albedo_surfaces",
direction=DOWN,
unit="large surfaces with zero value variance (prospective census)",
@@ -306,7 +306,7 @@ CLAIMS_DIR = "_claims"
def claims_path(name: str, root: Path | None = None) -> Path:
- from codeverse.skills import skills_dir
+ from codeverse3d.skills import skills_dir
base = Path(root) if root is not None else skills_dir()
return base / CLAIMS_DIR / f"{name}.toml"
@@ -372,7 +372,7 @@ def claim_bases(name: str, root: Path | None = None) -> dict[str, tuple[str, Any
"""``key -> (dotted target, live value)`` — the agreement test's real comparison.
WHY not the rendered text: two skills may honestly quote one constant in two units.
- ``cv3d-bbox-contract`` says "1 cm" (scale 100) and ``cv3d-repeats-and-mirrors`` says
+ ``c3d-bbox-contract`` says "1 cm" (scale 100) and ``c3d-repeats-and-mirrors`` says
"0.01" metres; both pin ``conventions:BBOX_TOLERANCE_M`` and both are right. A
contradiction is two skills pointing a shared key at DIFFERENT numbers, so that is what
is compared — the pre-scale value, and the target it came from.
diff --git a/harness/codeverse/agents/__init__.py b/harness/codeverse3d/agents/__init__.py
similarity index 72%
rename from harness/codeverse/agents/__init__.py
rename to harness/codeverse3d/agents/__init__.py
index 2edaa3e6..d9d73d3e 100644
--- a/harness/codeverse/agents/__init__.py
+++ b/harness/codeverse3d/agents/__init__.py
@@ -4,6 +4,6 @@ Ids: ``gemini-cli:<model>`` · ``claude-code:<model>`` · ``codex:<model>`` ·
``agy:<model>``.
"""
-from codeverse.agents.registry import CodingAgent, get_coding_agent, parse_agent_id
+from codeverse3d.agents.registry import CodingAgent, get_coding_agent, parse_agent_id
__all__ = ["CodingAgent", "get_coding_agent", "parse_agent_id"]
diff --git a/harness/codeverse/agents/backends.py b/harness/codeverse3d/agents/backends.py
similarity index 98%
rename from harness/codeverse/agents/backends.py
rename to harness/codeverse3d/agents/backends.py
index a04c4ec6..40afa6a3 100644
--- a/harness/codeverse/agents/backends.py
+++ b/harness/codeverse3d/agents/backends.py
@@ -26,7 +26,7 @@ from functools import lru_cache
from pathlib import Path
from typing import Any
-from codeverse.agents.cli_common import (
+from codeverse3d.agents.cli_common import (
CompletedProc,
Session,
begin_session,
@@ -44,13 +44,13 @@ from codeverse.agents.cli_common import (
tail,
watchdog_error,
)
-from codeverse.agents.materialize import MCP_SERVER_NAME, MCP_TOOL_TIMEOUT_MS, codex_mcp_overrides
-from codeverse.config import get_settings
-from codeverse.contracts.agent import AgentJob, AgentResult
-from codeverse.contracts.common import Usage
-from codeverse.models.pricing import estimate_cost
-from codeverse.models.retry import KeyPool, KeyPoolExhausted
-from codeverse.proc import run_subprocess
+from codeverse3d.agents.materialize import MCP_SERVER_NAME, MCP_TOOL_TIMEOUT_MS, codex_mcp_overrides
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.agent import AgentJob, AgentResult
+from codeverse3d.contracts.common import Usage
+from codeverse3d.models.pricing import estimate_cost
+from codeverse3d.models.retry import KeyPool, KeyPoolExhausted
+from codeverse3d.proc import run_subprocess
log = logging.getLogger(__name__)
@@ -83,7 +83,7 @@ def _key_pool(keys: list[str]) -> KeyPool:
used to build its own ``KeyPool(keys)`` with library defaults (900 RPM, no TPM
bucket), so the CLI agent and the API path scheduled the same 22 keys under two
different quotas (found by review 2026-08-28)."""
- from codeverse.models.gemini import shared_pool
+ from codeverse3d.models.gemini import shared_pool
return shared_pool(keys)
diff --git a/harness/codeverse/agents/cli_common.py b/harness/codeverse3d/agents/cli_common.py
similarity index 97%
rename from harness/codeverse/agents/cli_common.py
rename to harness/codeverse3d/agents/cli_common.py
index 78c51f20..0ba345c8 100644
--- a/harness/codeverse/agents/cli_common.py
+++ b/harness/codeverse3d/agents/cli_common.py
@@ -21,10 +21,10 @@ from typing import Any
from pydantic import BaseModel
-from codeverse.contracts.agent import AgentJob, AgentResult, FileChange
-from codeverse.contracts.common import Usage, is_harness_owned
-from codeverse.proc import ManagedProcess, append_jsonl_line, read_jsonl_lenient, scrub_secrets
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.agent import AgentJob, AgentResult, FileChange
+from codeverse3d.contracts.common import Usage, is_harness_owned
+from codeverse3d.proc import ManagedProcess, append_jsonl_line, read_jsonl_lenient, scrub_secrets
+from codeverse3d.workspace import Workspace
#: per-session transcript caps. Rows are byte-capped individually but nothing capped
#: the file: a child emitting 100k lines wrote 27 MB, ~406 MB at the per-row cap. The
@@ -109,7 +109,7 @@ _SKIP_DIRS = {"node_modules", ".git", "__pycache__", ".gemini", ".gemini_home"}
class CompletedProc:
"""Outcome of :func:`run_with_watchdog`.
- ``stdout``/``stderr`` are bounded to ``codeverse.proc.STREAM_BUDGET_BYTES`` per
+ ``stdout``/``stderr`` are bounded to ``codeverse3d.proc.STREAM_BUDGET_BYTES`` per
stream (head + tail kept, truncation marker in between) — streaming consumers
that must see every line unconditionally use ``on_line``.
"""
@@ -174,7 +174,7 @@ def run_with_watchdog(
mtime changes (every ``scan_s``) that also count as activity.
Since 2026-08-27 the process lifecycle lives in
- :class:`codeverse.proc.ManagedProcess`; this function keeps only the clocks.
+ :class:`codeverse3d.proc.ManagedProcess`; this function keeps only the clocks.
Fixed by that move: a KeyboardInterrupt anywhere in the poll loop kills the
group before propagating (it used to orphan the whole node → chrome tree —
SIGINT never reaches a ``start_new_session`` child); stdin is written from a
@@ -253,7 +253,7 @@ MAX_ARGV_PROMPT_BYTES = 100_000
def is_secret_env(name: str) -> bool:
"""True for env vars that look like credentials (stripped from agent children).
- One owner for the patterns: :mod:`codeverse.proc` (a stdlib-only leaf every layer
+ One owner for the patterns: :mod:`codeverse3d.proc` (a stdlib-only leaf every layer
may import), which also scrubs the generated-code subprocesses."""
return name not in scrub_secrets({name: ""})
@@ -265,7 +265,7 @@ def hardened_env(ws: Workspace, job: AgentJob, *, keep: set[str] | None = None)
"""
keep = keep or set()
env = {k: v for k, v in os.environ.items() if k in keep or not is_secret_env(k)}
- env["CV3D_AGENT_CONTEXT"] = "1"
+ env["C3D_AGENT_CONTEXT"] = "1"
env["GIT_CEILING_DIRECTORIES"] = str(ws.root.parent)
env["PYTHONUNBUFFERED"] = "1"
env.update(job.env)
@@ -274,7 +274,7 @@ def hardened_env(ws: Workspace, job: AgentJob, *, keep: set[str] | None = None)
def default_mcp_command(ws: Workspace, *, language: str = "", track: str = "", round_index: int | None = None) -> list[str]:
"""The stdio MCP server command exposing the spatial tool registry for ``ws``."""
- cmd = [sys.executable, "-m", "codeverse.spatial.mcp_server", "--workspace", str(ws.root)]
+ cmd = [sys.executable, "-m", "codeverse3d.spatial.mcp_server", "--workspace", str(ws.root)]
if language:
cmd += ["--language", language]
if track:
diff --git a/harness/codeverse/agents/materialize.py b/harness/codeverse3d/agents/materialize.py
similarity index 95%
rename from harness/codeverse/agents/materialize.py
rename to harness/codeverse3d/agents/materialize.py
index 79413e2d..40cb6d0f 100644
--- a/harness/codeverse/agents/materialize.py
+++ b/harness/codeverse3d/agents/materialize.py
@@ -12,7 +12,7 @@ MCP wiring:
* agy (Antigravity) → no per-workspace MCP; the body documents the CLI fallback.
Skills: the routed ``SKILL.md`` bundles are written per ROUND, not here — the set depends
-on the round's kind and the previous round's gate findings (``codeverse/skills``,
+on the round's kind and the previous round's gate findings (``codeverse3d/skills``,
``tracks/skills_hook.py``). ``skills.materialize.write_index`` then edits a marked section
into the three body files this module writes, so there is exactly one shared head and no
new one (docs/COST.md §13 measured and reverted a second head at +2,925 tokens/call).
@@ -35,13 +35,13 @@ import logging
import shutil
from pathlib import Path
-from codeverse.agents.cli_common import default_mcp_command
-from codeverse.prompts import PROMPTS_DIR
-from codeverse.workspace import Workspace
+from codeverse3d.agents.cli_common import default_mcp_command
+from codeverse3d.prompts import PROMPTS_DIR
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
-CV3D_DIR = ".3dcode" # harness-owned read-only docs inside the workspace
+C3D_DIR = ".3dcode" # harness-owned read-only docs inside the workspace
MCP_SERVER_NAME = "3dcode"
MCP_TOOL_TIMEOUT_MS = 600_000
#: ``.geminiignore`` / ``.aiexclude`` — gemini-cli's read_file/glob REFUSE ignored paths, so the
@@ -69,7 +69,7 @@ def _tool_section(agent_kind: str, spatial_tools: bool, mcp_command: list[str],
"code carefully and keeping every dimension explicit; the harness builds, measures "
"and renders after you finish.\n"
)
- from codeverse.spatial.registry import list_tools
+ from codeverse3d.spatial.registry import list_tools
# the MCP server's track/language filter (mcp_server.build_context): this file is
# agy's ONLY tool documentation, and the whole registry taught dead-end object tools
@@ -91,7 +91,7 @@ def _tool_section(agent_kind: str, spatial_tools: bool, mcp_command: list[str],
elif agent_kind == "agy":
how = (
"This session has no MCP server. Call a tool from the shell instead:\n"
- "`python -m codeverse.cli.main tools <name> --json '{\"arg\": \"value\"}'` "
+ "`python -m codeverse3d.cli.main tools <name> --json '{\"arg\": \"value\"}'` "
"(run from the workspace root; prints the observation as text + JSON)."
)
elif agent_kind == "gemini-cli":
@@ -123,7 +123,7 @@ def _body(agent_kind: str, contract_md: str, cookbook_note: str, spatial_tools:
"## Hard rules\n\n"
"1. You may create or edit files ONLY under `src/` and `public/`. Never modify `artifacts/`, "
"`trajectories/`, `.git/`, `.gemini/`, `.3dcode/`, or this file — they are harness-owned.\n"
- "2. Write RAW code in the language named by the contract below. Never import from `codeverse` or "
+ "2. Write RAW code in the language named by the contract below. Never import from `codeverse3d` or "
"any helper SDK (harness-owned modules the contract ships INSIDE your src/ are the one "
"exception — call them, never rewrite them); do not install packages; do not use the network; do not write "
"camera / render / export / file-output code unless the contract explicitly asks for it — "
@@ -226,12 +226,12 @@ def materialize_workspace(
# cookbook: copy into the harness-owned .3dcode/ dir so every CLI can read it in-workspace
src = _resolve_cookbook(ws, cookbook_rel)
if src is not None:
- dest = ws.root / CV3D_DIR / "cookbook.md"
+ dest = ws.root / C3D_DIR / "cookbook.md"
dest.parent.mkdir(parents=True, exist_ok=True)
shutil.copyfile(src, dest)
cookbook_note = (
f"The cookbook for this language — copyable, verified snippets and skeletons — is at "
- f"`{CV3D_DIR}/cookbook.md` (relative to the workspace root). Read the relevant sections "
+ f"`{C3D_DIR}/cookbook.md` (relative to the workspace root). Read the relevant sections "
"before writing code and copy its patterns exactly."
)
else:
diff --git a/harness/codeverse/agents/registry.py b/harness/codeverse3d/agents/registry.py
similarity index 87%
rename from harness/codeverse/agents/registry.py
rename to harness/codeverse3d/agents/registry.py
index 86be2694..cba23afd 100644
--- a/harness/codeverse/agents/registry.py
+++ b/harness/codeverse3d/agents/registry.py
@@ -5,7 +5,7 @@ from __future__ import annotations
from functools import lru_cache
from typing import Protocol, runtime_checkable
-from codeverse.contracts.agent import AgentJob, AgentResult
+from codeverse3d.contracts.agent import AgentJob, AgentResult
@runtime_checkable
@@ -56,7 +56,7 @@ def parse_agent_id(agent_id: str) -> tuple[str, str]:
def get_coding_agent(agent_id: str) -> CodingAgent:
"""The (metered) CodingAgent for ``<kind>:<model>`` — the same wrap
``models.registry.get_chat_model`` gives a chat model."""
- from codeverse.cost.instrument import metered_agent
+ from codeverse3d.cost.instrument import metered_agent
return metered_agent(_build_agent(agent_id))
@@ -65,19 +65,19 @@ def get_coding_agent(agent_id: str) -> CodingAgent:
def _build_agent(agent_id: str) -> CodingAgent:
kind, model = parse_agent_id(agent_id)
if kind == "gemini-cli":
- from codeverse.agents.backends import GeminiCliAgent
+ from codeverse3d.agents.backends import GeminiCliAgent
return GeminiCliAgent(model)
if kind == "claude-code":
- from codeverse.agents.backends import ClaudeCodeAgent
+ from codeverse3d.agents.backends import ClaudeCodeAgent
return ClaudeCodeAgent(model)
if kind == "codex":
- from codeverse.agents.backends import CodexAgent
+ from codeverse3d.agents.backends import CodexAgent
return CodexAgent(model)
if kind == "agy":
- from codeverse.agents.backends import AntigravityAgent
+ from codeverse3d.agents.backends import AntigravityAgent
return AntigravityAgent(model)
raise ValueError(f"unknown agent kind {kind!r}; known: {KINDS}")
diff --git a/harness/codeverse/cli/__init__.py b/harness/codeverse3d/cli/__init__.py
similarity index 100%
rename from harness/codeverse/cli/__init__.py
rename to harness/codeverse3d/cli/__init__.py
diff --git a/harness/codeverse/cli/_common.py b/harness/codeverse3d/cli/_common.py
similarity index 94%
rename from harness/codeverse/cli/_common.py
rename to harness/codeverse3d/cli/_common.py
index fb746247..a72ececb 100644
--- a/harness/codeverse/cli/_common.py
+++ b/harness/codeverse3d/cli/_common.py
@@ -19,11 +19,11 @@ from rich.console import Console
from rich.panel import Panel
from rich.table import Table
-from codeverse.config import get_settings
-from codeverse.contracts.run import RunRecord
-from codeverse.contracts.spec import Spec
-from codeverse.conventions import slugify
-from codeverse.workspace import Workspace
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.run import RunRecord
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.conventions import slugify
+from codeverse3d.workspace import Workspace
console = Console(emoji=False)
err_console = Console(stderr=True, style="bold red", emoji=False)
@@ -79,7 +79,7 @@ def print_record_summary(record: RunRecord, ws_root: Path | None = None) -> None
lines.append(f"[red]error: {record.error}[/red]")
if ws_root is not None:
lines.append(f"workspace: {ws_root}")
- from codeverse.record.record import best_round_record
+ from codeverse3d.record.record import best_round_record
best = best_round_record(record)
if best is not None and best.renders is not None and best.renders.contact_sheet:
@@ -207,7 +207,7 @@ def make_slug(prompt: str, track: str, language: str, explicit: str | None = Non
def mutating(target: Any, *, what: str, action: str = "enter") -> Iterator[None]:
"""The run mutex (``runlock.exclusive``) around anything that writes into a run
directory, reported as a typed exit. ``target`` is a Workspace or a run root."""
- from codeverse.proc import RunLocked, exclusive
+ from codeverse3d.proc import RunLocked, exclusive
root = target if isinstance(target, (str, Path)) else target.root # NB: Path.root is "/"
stack = ExitStack()
@@ -246,8 +246,8 @@ def parse_kv_floats(items: list[str], flag: str) -> dict[str, float]:
# --------------------------------------------------------------------------- cost profile
def active_profile(settings: Any | None = None) -> Any:
- """The :class:`~codeverse.cost.profiles.Profile` the current settings name."""
- from codeverse.cost.profiles import get_profile
+ """The :class:`~codeverse3d.cost.profiles.Profile` the current settings name."""
+ from codeverse3d.cost.profiles import get_profile
return get_profile((settings or get_settings()).profile)
@@ -285,8 +285,8 @@ def resolve_dial(
"""The single resolver for the cost dial — used by ``3dcode make`` and by the tests.
``--profile X`` (``profile_flag``) *forces* the dial over anything the user
- stated in ``config.yaml`` / ``CV3D_*``; ``CV3D_PROFILE=X`` set the same dial
- as a *default* when :func:`codeverse.config.get_settings` built the settings.
+ stated in ``config.yaml`` / ``C3D_*``; ``C3D_PROFILE=X`` set the same dial
+ as a *default* when :func:`codeverse3d.config.get_settings` built the settings.
With nothing else stated the two paths therefore resolve **identically** —
that equality is what ``tests/cost/test_profiles.py`` asserts, and it
is the bug this function exists to prevent: the run shape (candidates, the
@@ -330,7 +330,7 @@ def round_policy_options(spec: Spec, settings: Any | None = None) -> dict[str, A
samples = int(getattr(settings.judge, "samples", 1) or 1)
if samples <= 1:
return {}
- from codeverse.orchestrator import RoundPolicy
+ from codeverse3d.orchestrator import RoundPolicy
return {"policy": RoundPolicy(max_rounds=spec.budget.max_rounds, judge_samples=samples)}
diff --git a/harness/codeverse/cli/_judge.py b/harness/codeverse3d/cli/_judge.py
similarity index 84%
rename from harness/codeverse/cli/_judge.py
rename to harness/codeverse3d/cli/_judge.py
index f5a1adbd..48bf5935 100644
--- a/harness/codeverse/cli/_judge.py
+++ b/harness/codeverse3d/cli/_judge.py
@@ -16,14 +16,14 @@ from __future__ import annotations
import json
from typing import Any
-from codeverse.cli import _common as C
-from codeverse.contracts.artifacts import BuildResult, RenderSet, RenderView
-from codeverse.contracts.common import TRACK_INFO
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.contracts.run import RoundRecord, RunRecord
-from codeverse.judges.base import SLICE_TRACKS, judged_subset, plan_digest, resolve_paths
-from codeverse.proc import read_json_or_none
-from codeverse.workspace import Workspace
+from codeverse3d.cli import _common as C
+from codeverse3d.contracts.artifacts import BuildResult, RenderSet, RenderView
+from codeverse3d.contracts.common import TRACK_INFO
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.contracts.run import RoundRecord, RunRecord
+from codeverse3d.judges.base import SLICE_TRACKS, judged_subset, plan_digest, resolve_paths
+from codeverse3d.proc import read_json_or_none
+from codeverse3d.workspace import Workspace
def load_round(ws: Workspace, rec: RunRecord, index: int) -> RoundRecord | None:
@@ -54,7 +54,7 @@ def plan_summary_for(ws: Workspace) -> str:
def previous_judgment(ws: Workspace, rec: RunRecord, index: int) -> Any:
"""The preceding round's verdict (skipping degraded ones), like the round loop."""
- from codeverse.record.record import effective_judgment
+ from codeverse3d.record.record import effective_judgment
for i in range(index - 1, -1, -1):
rnd = load_round(ws, rec, i)
@@ -70,7 +70,7 @@ def extra_context_for(ws: Workspace, rec: RunRecord, rnd: RoundRecord) -> str:
"""The track pipeline's OWN ``judge_context`` over the stored artifacts —
``judge_context(ws, plan, round_index, build, gates)`` needs no run context,
so the CLI never restates the per-track formatting."""
- get_track = C.lazy("codeverse.tracks", "get_track")
+ get_track = C.lazy("codeverse3d.tracks", "get_track")
build = rnd.build if rnd.build is not None else BuildResult(ok=False, language=rec.spec.language.value)
try:
return get_track(rec.spec.track).make_pipeline().judge_context(ws, rec.plan, rnd.index, build, list(rnd.gates))
@@ -89,7 +89,7 @@ def clay_geometry_views(ws: Workspace, index: int) -> RenderSet | None:
def build_judge_input(ws: Workspace, rec: RunRecord, rnd: RoundRecord) -> Any:
- JudgeInput = C.lazy("codeverse.judges.base", "JudgeInput")
+ JudgeInput = C.lazy("codeverse3d.judges.base", "JudgeInput")
acceptance: list[AcceptanceItem] = list(getattr(rec.plan, "acceptance", []) or [])
if not acceptance and ws.plan_path.is_file():
try:
@@ -117,16 +117,16 @@ def stored_glb_path(ws: Workspace, rec: RunRecord, rnd: RoundRecord) -> str | No
def make_judge(rec: RunRecord, rubric_name: str, model_id: str, n: int) -> Any:
"""ReferenceJudge for measured rubrics / reference specs, VlmJudge otherwise."""
- load_rubric = C.lazy("codeverse.judges.rubrics", "load_rubric")
+ load_rubric = C.lazy("codeverse3d.judges.rubrics", "load_rubric")
try:
rubric = load_rubric(rubric_name)
except Exception as e: # unknown rubric name / bad yaml
raise C.CliError(f"cannot load rubric {rubric_name!r}: {e}") from e
measured = bool(rubric.measured_criteria())
if measured or rec.spec.references:
- ReferenceJudge = C.lazy("codeverse.judges.vlm_judge", "ReferenceJudge")
+ ReferenceJudge = C.lazy("codeverse3d.judges.vlm_judge", "ReferenceJudge")
return ReferenceJudge(model_id=model_id, n_samples=n, rubric=rubric_name)
- VlmJudge = C.lazy("codeverse.judges.vlm_judge", "VlmJudge")
+ VlmJudge = C.lazy("codeverse3d.judges.vlm_judge", "VlmJudge")
return VlmJudge(rubric=rubric_name, model_id=model_id, n_samples=n)
@@ -136,9 +136,9 @@ def count_prompt_images(inp: Any, rubric_name: str, judge: Any = None) -> int |
With ``judge`` given, its D48 slice payload is counted too, so a dirty round's
printed count matches what the verdict call actually sends."""
try:
- load_rubric = C.lazy("codeverse.judges.rubrics", "load_rubric")
- build_judge_messages = C.lazy("codeverse.judges.prompt_builder", "build_judge_messages")
- from codeverse.contracts.chat import ImagePart
+ load_rubric = C.lazy("codeverse3d.judges.rubrics", "load_rubric")
+ build_judge_messages = C.lazy("codeverse3d.judges.prompt_builder", "build_judge_messages")
+ from codeverse3d.contracts.chat import ImagePart
slices, elicit = judge.slice_payload(inp) if judge is not None else ([], False)
_, messages = build_judge_messages(inp, load_rubric(rubric_name),
diff --git a/harness/codeverse/cli/cost_cmd.py b/harness/codeverse3d/cli/cost_cmd.py
similarity index 94%
rename from harness/codeverse/cli/cost_cmd.py
rename to harness/codeverse3d/cli/cost_cmd.py
index e685f288..cdd09af3 100644
--- a/harness/codeverse/cli/cost_cmd.py
+++ b/harness/codeverse3d/cli/cost_cmd.py
@@ -24,7 +24,7 @@ import click
import typer
from typer.core import TyperGroup
-from codeverse.cli._common import console, ok, warn
+from codeverse3d.cli._common import console, ok, warn
#: a price row older than this needs re-checking against the provider's page
STALE_AFTER_DAYS = 90
@@ -79,7 +79,7 @@ def show(
def _resolve(arg: str, runs_dir: Path | None) -> Path:
"""A bare argument is a path when it exists, else a slug under the runs root."""
- from codeverse.cli import _common as C
+ from codeverse3d.cli import _common as C
p = Path(arg)
if p.exists():
@@ -88,9 +88,9 @@ def _resolve(arg: str, runs_dir: Path | None) -> Path:
def _report(paths: list[Path], *, md: Path | None, recheck: bool, limit: int, per_run: bool) -> None:
- from codeverse.addons.costreport.audit import audit_runs
- from codeverse.addons.costreport.report import console as text_report
- from codeverse.addons.costreport.report import markdown, runs_table
+ from codeverse3d.addons.costreport.audit import audit_runs
+ from codeverse3d.addons.costreport.report import console as text_report
+ from codeverse3d.addons.costreport.report import markdown, runs_table
audit = audit_runs(paths, recheck=recheck)
if not audit.runs:
@@ -117,7 +117,7 @@ def _report(paths: list[Path], *, md: Path | None, recheck: bool, limit: int, pe
def _single_run_lines(run: object) -> None:
"""Reconciliation for one run: the ledger against what the record was billed."""
- from codeverse.cli._common import kv_table
+ from codeverse3d.cli._common import kv_table
ledger = float(getattr(run, "ledger_usd", 0.0))
recorded = float(getattr(run, "recorded_usd", 0.0))
@@ -149,7 +149,7 @@ def prices(
A row is flagged when it was last checked more than ``--days`` ago, when the
price is marked approximate, or when its status is not ``verified`` — those
are the dollars an audit cannot stand behind."""
- from codeverse.models.pricing import PRICES, price_provenance
+ from codeverse3d.models.pricing import PRICES, price_provenance
rows, flagged = [], 0
for (prov, model) in sorted(PRICES):
@@ -212,9 +212,9 @@ def cache(
Only a live ledger has per-call ``cached_tokens``; reconstructed runs show
what their transcripts recorded."""
- from codeverse.addons.costreport.caching import session_cache
- from codeverse.cost.ledger import load_ledger
- from codeverse.cost.reconstruct import reconstruct_run
+ from codeverse3d.addons.costreport.caching import session_cache
+ from codeverse3d.cost.ledger import load_ledger
+ from codeverse3d.cost.reconstruct import reconstruct_run
for arg in paths:
root = _resolve(str(arg), runs_dir)
@@ -244,8 +244,8 @@ def cache(
@cost_app.command("profiles")
def profiles() -> None:
"""The economy / balanced / quality dial and what each is measured to cost."""
- from codeverse.config import get_settings
- from codeverse.cost.profiles import profile_table
+ from codeverse3d.config import get_settings
+ from codeverse3d.cost.profiles import profile_table
header = ("profile", "generator", "judge", "shape", "payload", "$/run", "measured quality")
rows = [tuple(str(c) for c in r) for r in profile_table()]
@@ -267,7 +267,7 @@ def estimate(
images: Annotated[int, typer.Option("--images", help="input images at 1024px")] = 0,
) -> None:
"""What one call would cost before you send it."""
- from codeverse.cost import estimate_call
+ from codeverse3d.cost import estimate_call
est = estimate_call(model, input_tokens=input_tokens, output_tokens=output_tokens,
cached_tokens=cached, n_images=images)
diff --git a/harness/codeverse/cli/doctor.py b/harness/codeverse3d/cli/doctor.py
similarity index 85%
rename from harness/codeverse/cli/doctor.py
rename to harness/codeverse3d/cli/doctor.py
index 98b32fbe..4d1250cf 100644
--- a/harness/codeverse/cli/doctor.py
+++ b/harness/codeverse3d/cli/doctor.py
@@ -1,4 +1,4 @@
-"""``3dcode doctor`` — the typer shim over :mod:`codeverse.doctor`."""
+"""``3dcode doctor`` — the typer shim over :mod:`codeverse3d.doctor`."""
from __future__ import annotations
@@ -7,8 +7,8 @@ from typing import Annotated
import typer
-from codeverse.cli._common import console, doctor_table
-from codeverse.doctor import run_doctor
+from codeverse3d.cli._common import console, doctor_table
+from codeverse3d.doctor import run_doctor
doctor_app = typer.Typer(invoke_without_command=True)
diff --git a/harness/codeverse/cli/flywheel_cmd.py b/harness/codeverse3d/cli/flywheel_cmd.py
similarity index 90%
rename from harness/codeverse/cli/flywheel_cmd.py
rename to harness/codeverse3d/cli/flywheel_cmd.py
index 26f92648..8f68c3cf 100644
--- a/harness/codeverse/cli/flywheel_cmd.py
+++ b/harness/codeverse3d/cli/flywheel_cmd.py
@@ -9,9 +9,9 @@ from typing import Annotated
import typer
from rich.markup import escape
-from codeverse.addons.dataset.pairs import MIN_PREFERENCE_DELTA
-from codeverse.cli import _common as C
-from codeverse.cli._common import console, kv_table, ok, warn
+from codeverse3d.addons.dataset.pairs import MIN_PREFERENCE_DELTA
+from codeverse3d.cli import _common as C
+from codeverse3d.cli._common import console, kv_table, ok, warn
flywheel_app = typer.Typer(no_args_is_help=True)
@@ -30,7 +30,7 @@ def export_cmd(
) -> None:
"""Export runs → sample folders + dataset_manifest.json + metadata.jsonl/.parquet
(+ optional plain tars, packed FROM the manifest)."""
- from codeverse.addons.dataset.export import export_samples
+ from codeverse3d.addons.dataset.export import export_samples
if pack:
# pack_samples rewrites the index and reads it back with pyarrow, so --pack
@@ -58,7 +58,7 @@ def export_cmd(
for g in rep.duplicates[:20]:
warn(f"duplicate of {g.canonical}: {', '.join(g.duplicates)}")
if pack:
- from codeverse.addons.dataset.pack import pack_samples, verify_locators
+ from codeverse3d.addons.dataset.pack import pack_samples, verify_locators
prep = pack_samples(out_dir, tar_prefix=tar_prefix)
n = verify_locators(out_dir)
@@ -72,7 +72,7 @@ def pairs_cmd(
min_delta: Annotated[float, typer.Option("--min-delta")] = MIN_PREFERENCE_DELTA,
) -> None:
"""Preference / repair (round + in-session) / cross-backend pairs → JSONL."""
- from codeverse.addons.dataset.pairs import build_pairs
+ from codeverse3d.addons.dataset.pairs import build_pairs
n = build_pairs(runs_dir, out_jsonl, min_delta=min_delta)
ok(f"{n} pairs → {out_jsonl}")
@@ -86,7 +86,7 @@ def refine_cmd(
"format converter needs no access to the runs")] = False,
) -> None:
"""Refine rounds as transitions (brief → diff → score delta) → JSONL."""
- from codeverse.addons.dataset.refine import build_refine
+ from codeverse3d.addons.dataset.refine import build_refine
n, drops = build_refine(runs_dir, out_jsonl, with_code=with_code)
ok(f"{n} transitions → {out_jsonl}" + (f"; not exported: {dict(drops)}" if drops else ""))
@@ -102,11 +102,11 @@ def caption_cmd(
out: Annotated[Path | None, typer.Option("--out", help="write side-car <out>/<slug>.json instead of touching the run (read-only runs)")] = None,
) -> None:
"""Caption run(s): {detailed, instruction, factory} via a chat model."""
- from codeverse.addons.dataset.captions import CaptionError, caption_sample
- from codeverse.addons.dataset.export import load_captions
- from codeverse.cost.instrument import run_ledger
- from codeverse.proc import RunLocked, exclusive
- from codeverse.record.record import iter_runs, load_record
+ from codeverse3d.addons.dataset.captions import CaptionError, caption_sample
+ from codeverse3d.addons.dataset.export import load_captions
+ from codeverse3d.cost.instrument import run_ledger
+ from codeverse3d.proc import RunLocked, exclusive
+ from codeverse3d.record.record import iter_runs, load_record
if all_runs:
targets = [(fr.ws, fr.record, fr.run_id.slug)
@@ -145,7 +145,7 @@ def index_cmd(
show: Annotated[bool, typer.Option("--summary/--no-summary")] = True,
) -> None:
"""Build the SQLite index (runs / rounds / usage) and print a summary."""
- from codeverse.addons.dataset.index import build_index, summary
+ from codeverse3d.addons.dataset.index import build_index, summary
n = build_index(runs_dir, out_sqlite)
ok(f"indexed {n} runs → {out_sqlite}")
diff --git a/harness/codeverse/cli/inspect_cmd.py b/harness/codeverse3d/cli/inspect_cmd.py
similarity index 93%
rename from harness/codeverse/cli/inspect_cmd.py
rename to harness/codeverse3d/cli/inspect_cmd.py
index 900b11d6..f5b3607e 100644
--- a/harness/codeverse/cli/inspect_cmd.py
+++ b/harness/codeverse3d/cli/inspect_cmd.py
@@ -18,12 +18,12 @@ from typing import Annotated
import typer
-from codeverse.cli import _common as C
-from codeverse.cli._common import RunsDirOpt, console, kv_table, print_record_summary, warn
-from codeverse.config import get_settings
-from codeverse.contracts.common import Track
-from codeverse.contracts.spec import Spec
-from codeverse.proc import read_json_or_none
+from codeverse3d.cli import _common as C
+from codeverse3d.cli._common import RunsDirOpt, console, kv_table, print_record_summary, warn
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.common import Track
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.proc import read_json_or_none
# --------------------------------------------------------------------------- status
@@ -33,8 +33,8 @@ def status(
events: Annotated[int, typer.Option("--events", help="tail N events")] = 8,
) -> None:
"""Show spec / run_state / record / recent events of a run."""
- from codeverse.proc import EventLog, holder_of
- from codeverse.record.record import RecordError, load_record
+ from codeverse3d.proc import EventLog, holder_of
+ from codeverse3d.record.record import RecordError, load_record
ws = C.open_workspace(slug, runs_dir)
spec = C.load_spec(ws)
@@ -158,14 +158,14 @@ def render(
# rendering, so a CLI render did not match the one the judge saw
r = get_settings().render
if spec.track is Track.SCENE:
- render_scene = C.lazy("codeverse.spatial.render_scene", "render_scene")
+ render_scene = C.lazy("codeverse3d.spatial.render_scene", "render_scene")
rs = render_scene(ws, out_dir, cameras=None, width=width or r.scene_width,
height=height or r.scene_height)
else:
glb = ws.artifacts / "object.glb"
if not glb.is_file():
raise C.CliError(f"no artifact to render: {glb} (run a build first)")
- render_glb = C.lazy("codeverse.spatial.render", "render_glb")
+ render_glb = C.lazy("codeverse3d.spatial.render", "render_glb")
rs = render_glb(glb, out_dir, mode=mode, width=width or r.width, height=height or r.height)
console.print(
kv_table(
@@ -194,8 +194,8 @@ def judge(
"""Re-judge a round with the SAME inputs as the in-run judge (renders + measurement +
gates + acceptance + plan digest + previous verdict + stored clay views); writes
artifacts/judge/rNN_cli.json."""
- from codeverse.cli import _judge as J
- from codeverse.record.record import load_record
+ from codeverse3d.cli import _judge as J
+ from codeverse3d.record.record import load_record
ws = C.open_workspace(slug, runs_dir)
rec = load_record(ws)
@@ -211,7 +211,7 @@ def judge(
inp = J.build_judge_input(ws, rec, rnd)
judge_obj = J.make_judge(rec, rubric_name, model or rec.spec.backends.judge, n)
n_images = J.count_prompt_images(inp, rubric_name, judge_obj)
- from codeverse.cost.instrument import run_ledger
+ from codeverse3d.cost.instrument import run_ledger
# writes artifacts/judge/rNN_cli.json into the run: one writer per run dir
with C.mutating(ws, what=f"3dcode judge {ws.root.name}", action="judge"):
@@ -223,7 +223,7 @@ def judge(
except ValueError as e: # e.g. a measured rubric fed to a judge that computes nothing
raise C.CliError(f"judge failed: {e}") from e
except Exception as e:
- ReferenceJudgeError = C.lazy("codeverse.judges.vlm_judge", "ReferenceJudgeError")
+ ReferenceJudgeError = C.lazy("codeverse3d.judges.vlm_judge", "ReferenceJudgeError")
if isinstance(e, ReferenceJudgeError):
raise C.CliError(f"judge failed: {e}") from e
raise
@@ -252,7 +252,7 @@ def _render_graphics(ws, spec: Spec, out_dir: Path) -> None:
"""Graphics runs have no GLB: regenerate the judged frames + sheet via the runtime."""
import shutil
- get_runtime = C.lazy("codeverse.languages", "get_runtime")
+ get_runtime = C.lazy("codeverse3d.languages", "get_runtime")
br = get_runtime(spec.language).build(ws)
if not br.ok:
raise C.CliError(f"graphics build failed: {br.error_type}: {br.error_message}")
diff --git a/harness/codeverse/cli/layout_cmd.py b/harness/codeverse3d/cli/layout_cmd.py
similarity index 94%
rename from harness/codeverse/cli/layout_cmd.py
rename to harness/codeverse3d/cli/layout_cmd.py
index 535660da..7cdee685 100644
--- a/harness/codeverse/cli/layout_cmd.py
+++ b/harness/codeverse3d/cli/layout_cmd.py
@@ -18,16 +18,16 @@ from typing import Annotated, Any
import typer
from rich.table import Table
-from codeverse.cli import _common as C
-from codeverse.cli._common import RunsDirOpt, console, fmt_score, fmt_usd, kv_table, warn
-from codeverse.contracts.run import (
+from codeverse3d.cli import _common as C
+from codeverse3d.cli._common import RunsDirOpt, console, fmt_score, fmt_usd, kv_table, warn
+from codeverse3d.contracts.run import (
CostSummary,
DeliverableFile,
RunDeliverable,
RunRecord,
SettingsSnapshot,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
def _human_bytes(n: int) -> str:
@@ -80,7 +80,7 @@ def _legacy_deliverable_rows(ws: Workspace) -> dict[str, Any]:
def print_deliverable(ws: Workspace, record: RunRecord) -> None:
- from codeverse.record.deliverable import load_deliverable
+ from codeverse3d.record.deliverable import load_deliverable
_section("DELIVERABLE — what the run produced")
spec = record.spec
@@ -103,8 +103,8 @@ def print_deliverable(ws: Workspace, record: RunRecord) -> None:
# --------------------------------------------------------------------------- (b) evidence
def print_evidence(ws: Workspace, record: RunRecord) -> None:
- from codeverse.addons.dataset.sample import gate_error_summary
- from codeverse.record.record import best_round_record, effective_judgment
+ from codeverse3d.addons.dataset.sample import gate_error_summary
+ from codeverse3d.record.record import best_round_record, effective_judgment
_section("QUALITY EVIDENCE — why we believe it")
rnd = best_round_record(record)
@@ -162,7 +162,7 @@ def _roles_table(settings: SettingsSnapshot) -> Table:
def print_cost_and_settings(ws: Workspace, record: RunRecord) -> None:
- from codeverse.record.telemetry import build_telemetry, load_telemetry
+ from codeverse3d.record.telemetry import build_telemetry, load_telemetry
_section("COST & SETTINGS — token price and the key step settings")
tele = load_telemetry(ws, record)
@@ -217,7 +217,7 @@ def show(
section: Annotated[str, typer.Option("--section", help="all | deliverable | evidence | cost")] = "all",
) -> None:
"""Show one run in three separated sections: DELIVERABLE / QUALITY EVIDENCE / COST & SETTINGS."""
- from codeverse.record.record import RecordError, load_record
+ from codeverse3d.record.record import RecordError, load_record
ws = C.open_workspace(slug, runs_dir)
try:
diff --git a/harness/codeverse/cli/main.py b/harness/codeverse3d/cli/main.py
similarity index 92%
rename from harness/codeverse/cli/main.py
rename to harness/codeverse3d/cli/main.py
index 54a8823e..32e8ffc5 100644
--- a/harness/codeverse/cli/main.py
+++ b/harness/codeverse3d/cli/main.py
@@ -24,9 +24,9 @@ from typing import Annotated
import typer
-from codeverse import __version__
-from codeverse.cli import _common as C
-from codeverse.cli._common import (
+from codeverse3d import __version__
+from codeverse3d.cli import _common as C
+from codeverse3d.cli._common import (
RunsDirOpt,
console,
err_console,
@@ -36,14 +36,14 @@ from codeverse.cli._common import (
print_record_summary,
warn,
)
-from codeverse.cli.cost_cmd import cost_app
-from codeverse.cli.doctor import doctor_app
-from codeverse.cli.flywheel_cmd import flywheel_app
-from codeverse.cli.skills_cmd import skills_app
-from codeverse.cli.texture_cmd import texture_app
-from codeverse.config import get_settings
-from codeverse.contracts.common import TRACK_LANGUAGES, Budget, Language, Track
-from codeverse.contracts.spec import Constraints, ReferenceImage, RunOptions, Spec
+from codeverse3d.cli.cost_cmd import cost_app
+from codeverse3d.cli.doctor import doctor_app
+from codeverse3d.cli.flywheel_cmd import flywheel_app
+from codeverse3d.cli.skills_cmd import skills_app
+from codeverse3d.cli.texture_cmd import texture_app
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.common import TRACK_LANGUAGES, Budget, Language, Track
+from codeverse3d.contracts.spec import Constraints, ReferenceImage, RunOptions, Spec
# ===================================================================== tools_cmd
@@ -55,7 +55,7 @@ def tools(
as_json: Annotated[bool, typer.Option("--json-out", help="print the Observation as JSON")] = False,
cards: Annotated[bool, typer.Option("--cards", help="(list) print prompt cards instead of a table")] = False,
) -> None:
- registry = C.lazy("codeverse.spatial.registry")
+ registry = C.lazy("codeverse3d.spatial.registry")
if name == "list":
defs = registry.list_tools()
if cards:
@@ -155,7 +155,7 @@ RootsArg = Annotated[list[Path] | None, typer.Argument(
def resolve_roots(roots: list[Path] | None) -> list[Path]:
"""Explicit roots (validated) or the defaults; a clear error when there are none."""
- from codeverse.addons.gallery.index import default_roots
+ from codeverse3d.addons.gallery.index import default_roots
if roots:
missing = [r for r in roots if not Path(r).is_dir()]
@@ -164,7 +164,7 @@ def resolve_roots(roots: list[Path] | None) -> list[Path]:
return [Path(r) for r in roots]
found = default_roots(Path.cwd())
if not found:
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
fallback = Path(get_settings().runs_dir)
if fallback.is_dir():
@@ -186,7 +186,7 @@ def serve_cmd(
title: Annotated[str, typer.Option("--title")] = "3dcode gallery",
) -> None:
"""Serve the gallery (and the run directories) on localhost."""
- from codeverse.addons.gallery.server import GalleryError, serve
+ from codeverse3d.addons.gallery.server import GalleryError, serve
root_paths = resolve_roots(roots)
@@ -216,7 +216,7 @@ def build_cmd(
thumb_px: Annotated[int, typer.Option("--thumb-px", min=128, help="embedded thumbnail long edge")] = 720,
) -> None:
"""Write the gallery as one self-contained HTML file."""
- from codeverse.addons.gallery.page import build_static
+ from codeverse3d.addons.gallery.page import build_static
path, n, index = build_static(resolve_roots(roots), out, title=title, embed=embed, thumb_px=thumb_px)
broken = sum(1 for e in index.entries() if e.state != "ok")
@@ -273,7 +273,7 @@ def _root(
raise typer.Exit()
# Build the settings HERE so a bad configuration value is one typed error instead of a
# raw traceback out of whichever command happened to touch get_settings() first: the app
- # runs with pretty_exceptions_enable=False, and `CV3D_PROFILE=bogus` used to dump a
+ # runs with pretty_exceptions_enable=False, and `C3D_PROFILE=bogus` used to dump a
# Python stack from every command — including `3dcode doctor`, the one you would run to
# find out what is wrong with your configuration.
try:
@@ -389,7 +389,7 @@ def make(
run_slug = C.make_slug(prompt, track.value, language.value, slug)
settings = get_settings()
texture_arg = texture # the dial folds the profile in below; remember what the USER asked
- # ONE resolver for the whole dial, so `--profile X` and `CV3D_PROFILE=X` land the same
+ # ONE resolver for the whole dial, so `--profile X` and `C3D_PROFILE=X` land the same
# values (they used to disagree on candidates + texture); an explicit flag beats both.
dial = C.resolve_dial(
settings,
@@ -405,7 +405,7 @@ def make(
# refuses non-object tracks; `3dcode make` accepted --texture (and --profile quality,
# which forces it) on scene/graphics, froze it on the spec, printed "texture True",
# and then emitted a spurious texture.failed at finalise because there is no GLB.
- from codeverse.texturing.run import texture_supported
+ from codeverse3d.texturing.run import texture_supported
if texture and not texture_supported(track):
if texture_arg: # the user asked for it explicitly: say no, and say where to go
@@ -434,7 +434,7 @@ def make(
),
budget=Budget(max_rounds=rounds, max_minutes=max_minutes),
# options.profile records the dial this run resolved to, whichever way it was
- # named (flag, CV3D_PROFILE, config.yaml), so `3dcode resume` re-applies it
+ # named (flag, C3D_PROFILE, config.yaml), so `3dcode resume` re-applies it
backends=backends,
options=RunOptions(candidates=candidates, texture=texture, profile=dial.profile),
seed=seed,
@@ -489,10 +489,10 @@ def _ground_in_reference(spec: Spec, ws, *, n_views: int) -> Spec:
Never fatal — a run that cannot get a usable reference simply runs without one.
"""
- from codeverse.cost import Role, Stage, call_context
- from codeverse.cost.instrument import run_ledger
- from codeverse.proc import EventLog
- from codeverse.reference import ground_spec
+ from codeverse3d.cost import Role, Stage, call_context
+ from codeverse3d.cost.instrument import run_ledger
+ from codeverse3d.proc import EventLog
+ from codeverse3d.reference import ground_spec
events = EventLog(ws.events_path)
with (
@@ -517,9 +517,9 @@ def _ground_in_reference(spec: Spec, ws, *, n_views: int) -> Spec:
def _run_track(spec: Spec, ws, *, resume: bool, candidates: int | None = None, force: bool = False) -> None:
- from codeverse.cost.instrument import run_ledger
+ from codeverse3d.cost.instrument import run_ledger
- get_track = C.lazy("codeverse.tracks", "get_track")
+ get_track = C.lazy("codeverse3d.tracks", "get_track")
options: dict = {"n_candidates": candidates} if candidates else {}
options.update(C.round_policy_options(spec))
try:
@@ -532,7 +532,7 @@ def _run_track(spec: Spec, ws, *, resume: bool, candidates: int | None = None, f
f"interrupted; resume with `3dcode resume {ws.root.name}`", code=130
) from None
except Exception as e: # the track failed outside its own error handling
- from codeverse.tracks.lifecycle import SpecChanged
+ from codeverse3d.tracks.lifecycle import SpecChanged
if isinstance(e, SpecChanged):
# a refusal with instructions, not a crash: no traceback, and the run
@@ -557,8 +557,8 @@ def _finished_reason(ws, raised: dict) -> str:
holding its best_score. A BUDGET stop is the documented exception — raising a cap is
how you continue one — so it only blocks when no cap was raised.
"""
- from codeverse.contracts.run import RunStatus
- from codeverse.orchestrator import RunState, StateCorrupt
+ from codeverse3d.contracts.run import RunStatus
+ from codeverse3d.orchestrator import RunState, StateCorrupt
try:
state = RunState.load(ws)
@@ -635,7 +635,7 @@ def resume(
f"(that re-plans, re-scores and overwrites the final state)."
)
if raised:
- from codeverse.proc import EventLog
+ from codeverse3d.proc import EventLog
spec = spec.model_copy(update={"budget": spec.budget.model_copy(update=raised)})
ws.write_json(ws.spec_path, spec)
@@ -644,8 +644,8 @@ def resume(
# --------------------------------------------------------------------------- status / render / judge
-# moved to codeverse/cli/inspect_cmd.py; imported here so existing importers keep working
-from codeverse.cli.inspect_cmd import judge, render, status # noqa: E402
+# moved to codeverse3d/cli/inspect_cmd.py; imported here so existing importers keep working
+from codeverse3d.cli.inspect_cmd import judge, render, status # noqa: E402
app.command()(status)
app.command()(render)
@@ -655,18 +655,18 @@ app.command()(judge)
# --------------------------------------------------------------------------- mcp
@app.command()
def mcp(workspace: Annotated[Path, typer.Option("--workspace")]) -> None:
- """Serve the spatial tools over stdio MCP (exec `python -m codeverse.spatial.mcp_server`)."""
+ """Serve the spatial tools over stdio MCP (exec `python -m codeverse3d.spatial.mcp_server`)."""
if not workspace.is_dir():
raise C.CliError(f"workspace not found: {workspace}")
os.execvp(
sys.executable,
- [sys.executable, "-m", "codeverse.spatial.mcp_server", "--workspace", str(workspace)],
+ [sys.executable, "-m", "codeverse3d.spatial.mcp_server", "--workspace", str(workspace)],
)
# --------------------------------------------------------------------------- run layout (show)
-# appended registration — see codeverse/cli/layout_cmd.py
-from codeverse.cli.layout_cmd import show as _show # noqa: E402
+# appended registration — see codeverse3d/cli/layout_cmd.py
+from codeverse3d.cli.layout_cmd import show as _show # noqa: E402
app.command(
"show", help="One run in three sections: DELIVERABLE / QUALITY EVIDENCE / COST & SETTINGS."
diff --git a/harness/codeverse/cli/skills_cmd.py b/harness/codeverse3d/cli/skills_cmd.py
similarity index 91%
rename from harness/codeverse/cli/skills_cmd.py
rename to harness/codeverse3d/cli/skills_cmd.py
index 3c11a91c..e115100f 100644
--- a/harness/codeverse/cli/skills_cmd.py
+++ b/harness/codeverse3d/cli/skills_cmd.py
@@ -15,8 +15,8 @@ from typing import Annotated
import typer
-from codeverse.cli._common import console, err_console
-from codeverse.proc import read_jsonl_lenient
+from codeverse3d.cli._common import console, err_console
+from codeverse3d.proc import read_jsonl_lenient
skills_app = typer.Typer(invoke_without_command=True, help="The skill library: list / show / validate / read-rate report.")
@@ -40,9 +40,9 @@ def list_skills(
"""
from rich.table import Table
- from codeverse.addons.skill_targets import target_for
- from codeverse.skills import iter_skills
- from codeverse.skills.registry import ROUTED_SKILLS, ROUTES
+ from codeverse3d.addons.skill_targets import target_for
+ from codeverse3d.skills import iter_skills
+ from codeverse3d.skills.registry import ROUTED_SKILLS, ROUTES
found = list(iter_skills())
t = Table(title="3dcode skills")
@@ -66,8 +66,8 @@ def list_skills(
@skills_app.command("show")
def show_skill(name: Annotated[str, typer.Argument(help="skill name")]) -> None:
"""Print one bundle's frontmatter and body."""
- from codeverse.skills import load_skill
- from codeverse.skills.model import SkillError
+ from codeverse3d.skills import load_skill
+ from codeverse3d.skills.model import SkillError
try:
s = load_skill(name)
@@ -85,10 +85,10 @@ def validate(
strict: Annotated[bool, typer.Option("--strict", help="also fail on a routed skill with no bundle")] = False,
) -> None:
"""Check every bundle against the open spec and our budget/evidence rules."""
- from codeverse.addons.skill_targets import check_claims
- from codeverse.skills import bundle_dirs, validate_bundle
- from codeverse.skills.model import SkillError, parse_skill
- from codeverse.skills.registry import ROUTED_SKILLS
+ from codeverse3d.addons.skill_targets import check_claims
+ from codeverse3d.skills import bundle_dirs, validate_bundle
+ from codeverse3d.skills.model import SkillError, parse_skill
+ from codeverse3d.skills.registry import ROUTED_SKILLS
dirs = bundle_dirs()
bad = 0
@@ -132,7 +132,7 @@ def report(
for p in sorted(Path(runs_dir).rglob("telemetry/skills.jsonl")):
rows.extend(read_jsonl_lenient(p))
if not rows:
- err_console.print(f"[yellow]no telemetry/skills.jsonl under {runs_dir}[/] (was CV3D_SKILLS on?)")
+ err_console.print(f"[yellow]no telemetry/skills.jsonl under {runs_dir}[/] (was C3D_SKILLS on?)")
raise typer.Exit(code=1)
per: dict[tuple[str, str], list[int]] = {}
diff --git a/harness/codeverse/cli/texture_cmd.py b/harness/codeverse3d/cli/texture_cmd.py
similarity index 85%
rename from harness/codeverse/cli/texture_cmd.py
rename to harness/codeverse3d/cli/texture_cmd.py
index aac4dfd9..bbff933f 100644
--- a/harness/codeverse/cli/texture_cmd.py
+++ b/harness/codeverse3d/cli/texture_cmd.py
@@ -12,9 +12,9 @@ from typing import Annotated
import typer
-from codeverse.cli import _common as C
-from codeverse.cli._common import console, kv_table, warn
-from codeverse.contracts.common import Track
+from codeverse3d.cli import _common as C
+from codeverse3d.cli._common import console, kv_table, warn
+from codeverse3d.contracts.common import Track
texture_app = typer.Typer(name="texture", help="Text-to-image texturing: object pass + scene texture pack.",
no_args_is_help=True)
@@ -23,7 +23,7 @@ RunsDirOpt = C.RunsDirOpt
def _image_model(name: str | None):
- return C.lazy("codeverse.reference", "_image_model")(name or "")
+ return C.lazy("codeverse3d.reference", "_image_model")(name or "")
@texture_app.command("pass")
@@ -41,10 +41,10 @@ def pass_(
spec = C.load_spec(ws)
if spec.track not in (Track.STATIC_OBJECT, Track.ARTICULATED_OBJECT):
raise C.CliError(f"texture pass is for object tracks; {spec.track.value} runs use `3dcode texture scene-pack`")
- load_plan = C.lazy("codeverse.spatial.tool_common", "load_plan")
+ load_plan = C.lazy("codeverse3d.spatial.tool_common", "load_plan")
plan = load_plan(ws.plan_path)
- texture_pass = C.lazy("codeverse.texturing.run", "texture_pass")
- from codeverse.cost.instrument import run_ledger
+ texture_pass = C.lazy("codeverse3d.texturing.run", "texture_pass")
+ from codeverse3d.cost.instrument import run_ledger
# a post-hoc pass joins the run's ledger when it has one, else the per-process log;
# it rewrites the run's artifacts, so it holds the run mutex (one writer per run dir)
@@ -60,7 +60,7 @@ def pass_(
def show(slug: str, runs_dir: RunsDirOpt = None) -> None:
"""Print the last texturing report of a run."""
ws = C.open_workspace(slug, runs_dir)
- load_report = C.lazy("codeverse.texturing.run", "load_report")
+ load_report = C.lazy("codeverse3d.texturing.run", "load_report")
try:
rep = load_report(ws)
except FileNotFoundError as e:
@@ -69,7 +69,7 @@ def show(slug: str, runs_dir: RunsDirOpt = None) -> None:
def _print_report(rep, ws) -> None:
- plan_table = C.lazy("codeverse.texturing.plan", "plan_table")
+ plan_table = C.lazy("codeverse3d.texturing.plan", "plan_table")
console.print(plan_table(rep.plan))
rows = {tid: f"{Path(a.path).name} seam={a.seam_score:.3f} (raw {a.seam_score_raw:.3f}) cached={a.cached}"
+ (f" ERROR {a.error}" if a.error else "") for tid, a in rep.textures.textures.items()}
@@ -100,15 +100,15 @@ def scene_pack(
"""Generate the scene's tileable texture pack into public/textures/ (+ manifest.json)."""
ws = C.open_workspace(slug, runs_dir)
spec = C.load_spec(ws)
- load_plan = C.lazy("codeverse.spatial.tool_common", "load_plan")
+ load_plan = C.lazy("codeverse3d.spatial.tool_common", "load_plan")
plan = load_plan(ws.plan_path)
- ScenePlan = C.lazy("codeverse.contracts.plan", "ScenePlan")
+ ScenePlan = C.lazy("codeverse3d.contracts.plan", "ScenePlan")
if not isinstance(plan, ScenePlan):
raise C.CliError("scene-pack needs a scene run (plan.json with zones)")
- scene_texture_pack = C.lazy("codeverse.texturing.plan", "scene_texture_pack")
- texture_pack_prompt = C.lazy("codeverse.texturing.plan", "texture_pack_prompt")
+ scene_texture_pack = C.lazy("codeverse3d.texturing.plan", "scene_texture_pack")
+ texture_pack_prompt = C.lazy("codeverse3d.texturing.plan", "texture_pack_prompt")
model_id = spec.backends.planner if model is None else model
- from codeverse.cost.instrument import run_ledger
+ from codeverse3d.cost.instrument import run_ledger
# like `pass`: the pack's plan + image spend joins the run's ledger when it has one
with (C.mutating(ws, what=f"3dcode texture scene-pack {ws.root.name}", action="texture"),
diff --git a/harness/codeverse/config.py b/harness/codeverse3d/config.py
similarity index 88%
rename from harness/codeverse/config.py
rename to harness/codeverse3d/config.py
index 550d3c91..f19f754e 100644
--- a/harness/codeverse/config.py
+++ b/harness/codeverse3d/config.py
@@ -1,8 +1,9 @@
"""Harness settings: keys, binaries, directories, defaults.
-Resolution order (later wins): built-in defaults < ``~/.config/codeverse/config.yaml``
-< ``./codeverse.yaml`` < environment variables (``CV3D_*``). Secrets are never
-written to run records.
+Resolution order (later wins): built-in defaults < ``~/.config/3dcodeverse/config.yaml``
+< ``./3dcodeverse.yaml`` < environment variables (``C3D_*``). Secrets are never
+written to run records. The names before D78 (``~/.config/codeverse/config.yaml``,
+``./codeverse.yaml``, ``CV3D_*``) are still read, each under its new name.
Gemini keys: ``GEMINI_API_KEYS`` (csv) or ``GEMINI_API_KEY`` or the owner's
``~/.config/astra3d/gemini_keys.env`` file (read-only compatibility).
@@ -22,10 +23,12 @@ import yaml
from pydantic import BaseModel, Field, model_validator
from pydantic_settings import BaseSettings, SettingsConfigDict
-from codeverse.contracts.common import Backends
+from codeverse3d.contracts.common import Backends
_LEGACY_KEYS_FILE = Path.home() / ".config" / "astra3d" / "gemini_keys.env"
-_USER_CONFIG = Path.home() / ".config" / "codeverse" / "config.yaml"
+_USER_CONFIG = Path.home() / ".config" / "3dcodeverse" / "config.yaml"
+#: the file names before D78 (2026-09-22): still read, each UNDER its new name (a new file wins per setting)
+_LEGACY_USER_CONFIG = Path.home() / ".config" / "codeverse" / "config.yaml"
def _lower_bound(model: type[BaseModel], field: str) -> int | None:
@@ -93,7 +96,7 @@ class Limits(BaseModel):
description="fold the cheap gates into `build`, report a per-file lint verdict from "
"write_file / edit_file, inline the files a refine task edits, and ask the baseline "
"session for every file in its first turn (docs/COST.md §29). OFF until the A/B "
- "reads out; `CV3D_FEWER_TURNS=1` (read at call time by `fewer_turns_enabled`) is "
+ "reads out; `C3D_FEWER_TURNS=1` (read at call time by `fewer_turns_enabled`) is "
"what `bench/ab_plan.py --variant-env` flips.",
)
seed_recipes: bool = Field(
@@ -106,7 +109,7 @@ class Limits(BaseModel):
"the prompt carried the verified curtain() recipe five times and the agent used it zero "
"times — round 0 was again a comb of bars (comb_artefact, 0.33); and (bench/out/seed_v1) "
"recipes seeded into the agent's own common.glsl were overwritten before the end of the run. "
- "`CV3D_SEED_RECIPES=0` (read at call time by `seed_recipes_enabled`) is the control arm.",
+ "`C3D_SEED_RECIPES=0` (read at call time by `seed_recipes_enabled`) is the control arm.",
)
@@ -142,14 +145,14 @@ class Rate(BaseModel):
"LOST — 30.0/45.4 calls/min without it vs 18.2/20.0 with it, because Gemini's 503s are "
"intermittent rather than a clean outage, so parking every worker starves the unlucky call "
"(docs/COST.md §21). The mechanism and its counters are kept so the experiment is "
- "reproducible: CV3D_RATE__STORM_GATE=1, or bench/concurrency_probe.py --storm-gate.")
+ "reproducible: C3D_RATE__STORM_GATE=1, or bench/concurrency_probe.py --storm-gate.")
hedge: int = Field(
default=2, ge=1,
description="keys a retry is raced on once a call has met its first 503 (1 = off). Measured "
"2026-08-26: a failed 503 costs the 21-50 s round-trip the provider holds before rejecting, "
"storm streaks average 4.7 attempts, and a 503 bills nothing — so the hedge is free while it "
"storms and wastes one call only when both keys answer (docs/COST.md §27). "
- "CV3D_RATE__HEDGE=1 for the A/B.")
+ "C3D_RATE__HEDGE=1 for the A/B.")
class Judge(BaseModel):
@@ -161,7 +164,7 @@ class Judge(BaseModel):
samples: int = Field(default=1, description="default VLM samples per verdict")
slices: Literal["on-error", "off"] = Field(
default="on-error",
- description="conditional cross-section slices (D48, CV3D_JUDGE__SLICES): 'on-error' appends ≤2 "
+ description="conditional cross-section slices (D48, C3D_JUDGE__SLICES): 'on-error' appends ≤2 "
"interior slice images + one provenance-elicitation sentence to an object-track verdict whose "
"connectivity gate carries an ERROR; clean rounds build a byte-identical payload either way. "
"Slice render is local CPU; no profile touches this dial (the channel measured ≤ $0).")
@@ -171,13 +174,13 @@ class Judge(BaseModel):
#: :func:`fewer_turns_enabled`, never only through the cached Settings: ``bench/ab_plan.py``
#: differs its arms by environment alone, and a value frozen at first ``get_settings()``
#: would hand the variant the control's behaviour (the CQ-5 lesson, tracks/plan_features.py).
-FEWER_TURNS_ENV = "CV3D_FEWER_TURNS"
+FEWER_TURNS_ENV = "C3D_FEWER_TURNS"
#: The recipe-seeding switch (Limits.seed_recipes); same call-time contract as FEWER_TURNS_ENV.
-SEED_RECIPES_ENV = "CV3D_SEED_RECIPES"
+SEED_RECIPES_ENV = "C3D_SEED_RECIPES"
#: wire the scene texture pack into the scene loop (a stage before env/zones, and the
#: pack description in both prompts). OFF by default: it adds an image-model call per
#: run, and whether it earns that is a measurement nobody has made yet.
-SCENE_TEXTURES_ENV = "CV3D_SCENE_TEXTURES"
+SCENE_TEXTURES_ENV = "C3D_SCENE_TEXTURES"
_TRUE_WORDS = frozenset({"1", "on", "true", "yes", "y"})
_FALSE_WORDS = frozenset({"0", "off", "false", "no", "n"})
@@ -208,13 +211,13 @@ def env_flag(env: str, fallback: bool) -> bool:
def fewer_turns_enabled() -> bool:
- """Is the fewer-turns bundle on for THIS call? ``$CV3D_FEWER_TURNS`` when it is set,
+ """Is the fewer-turns bundle on for THIS call? ``$C3D_FEWER_TURNS`` when it is set,
else ``Settings.limits.fewer_turns``."""
return env_flag(FEWER_TURNS_ENV, get_settings().limits.fewer_turns)
def scene_textures_enabled() -> bool:
- """Is the scene texture stage on for THIS call? ``$CV3D_SCENE_TEXTURES``, else off.
+ """Is the scene texture stage on for THIS call? ``$C3D_SCENE_TEXTURES``, else off.
The pack generator (``texturing.plan.scene_texture_pack``) and the prompt snippet that
describes it (``texture_pack_prompt`` — whose docstring already says "for zone/env
@@ -229,23 +232,23 @@ def scene_textures_enabled() -> bool:
def seed_recipes_enabled() -> bool:
- """Is recipe seeding (``tracks/graphics.py:seed_recipes``) on for THIS call? ``$CV3D_SEED_RECIPES``
+ """Is recipe seeding (``tracks/graphics.py:seed_recipes``) on for THIS call? ``$C3D_SEED_RECIPES``
when it is set, else ``Settings.limits.seed_recipes`` (default ON)."""
return env_flag(SEED_RECIPES_ENV, get_settings().limits.seed_recipes)
class Settings(BaseSettings):
- model_config = SettingsConfigDict(env_prefix="CV3D_", env_nested_delimiter="__", extra="ignore")
+ model_config = SettingsConfigDict(env_prefix="C3D_", env_nested_delimiter="__", extra="ignore")
- #: Flat aliases for nested knobs people actually type. ``CV3D_MAX_IN_FLIGHT=16`` was
+ #: Flat aliases for nested knobs people actually type. ``C3D_MAX_IN_FLIGHT=16`` was
#: written into three launch commands and two workflow briefs on 2026-08-24 before anyone
- #: noticed pydantic-settings only reads ``CV3D_RATE__MAX_IN_FLIGHT`` — every one of them
+ #: noticed pydantic-settings only reads ``C3D_RATE__MAX_IN_FLIGHT`` — every one of them
#: silently ran at the default 64. An env knob that is read by nothing is worse than no
#: knob; both spellings now work and the doctor prints the short one.
_FLAT_ALIASES: ClassVar[dict[str, tuple[str, str]]] = {
- "CV3D_MAX_IN_FLIGHT": ("rate", "max_in_flight"),
- # the spelling every doc and gpu_launch.cjs use; only CV3D_RENDER__GPU was read
- "CV3D_RENDER_GPU": ("render", "gpu"),
+ "C3D_MAX_IN_FLIGHT": ("rate", "max_in_flight"),
+ # the spelling every doc and gpu_launch.cjs use; only C3D_RENDER__GPU was read
+ "C3D_RENDER_GPU": ("render", "gpu"),
FEWER_TURNS_ENV: ("limits", "fewer_turns"),
SEED_RECIPES_ENV: ("limits", "seed_recipes"),
}
@@ -280,7 +283,7 @@ class Settings(BaseSettings):
return self
runs_dir: Path = Field(default=Path("runs"))
- cache_dir: Path = Field(default=Path.home() / ".cache" / "codeverse")
+ cache_dir: Path = Field(default=Path.home() / ".cache" / "codeverse3d")
binaries: Binaries = Field(default_factory=Binaries)
agents: Agents = Field(default_factory=Agents)
render: Render = Field(default_factory=Render)
@@ -302,7 +305,7 @@ class Settings(BaseSettings):
default_candidates: int = Field(default=1, description="best-of-N baseline candidates (tracks read it)")
# Cost dial: one name that sets model-per-role, judge samples, rounds, candidates,
- # turn cap, montage size and the texture pass together (codeverse/cost/profiles.py).
+ # turn cap, montage size and the texture pass together (codeverse3d/cost/profiles.py).
model_timeout_s: float = Field(
default=1200.0,
description="HTTP read timeout for ONE API model call (per attempt). It is a CEILING: the "
@@ -336,13 +339,13 @@ class Settings(BaseSettings):
def apply_profile(self, name: str | None = None, *, force: bool = False) -> Any:
"""Set every profile-controlled default on this Settings object and return
- the :class:`~codeverse.cost.profiles.Profile`.
+ the :class:`~codeverse3d.cost.profiles.Profile`.
- A field the user stated themselves (config file / ``CV3D_*`` env) is left
+ A field the user stated themselves (config file / ``C3D_*`` env) is left
alone unless ``force`` — so a profile is a *default* dial, while
``3dcode make --profile X`` (which forces) is an instruction. The CLI's own
flags are applied after this and always win."""
- from codeverse.cost.profiles import get_profile
+ from codeverse3d.cost.profiles import get_profile
p = get_profile(name or self.profile)
stated = set() if force else set(self.model_fields_set)
@@ -355,9 +358,9 @@ class Settings(BaseSettings):
"""Per-FIELD statedness inside a sub-model.
``Settings.model_fields_set`` is SECTION-granular — pydantic marks the whole
- ``judge`` sub-model as set when any ``CV3D_JUDGE__*`` is present — so testing
+ ``judge`` sub-model as set when any ``C3D_JUDGE__*`` is present — so testing
it here let one stated field suppress the profile's every other dial:
- ``CV3D_PROFILE=quality CV3D_JUDGE__MAX_PX=800`` judged at n=1 instead of n=3,
+ ``C3D_PROFILE=quality C3D_JUDGE__MAX_PX=800`` judged at n=1 instead of n=3,
silently, while `3dcode make` printed "judge sigma 0.017 at n=3". The sub-model
has its own ``model_fields_set``, which is the per-field answer. The values a
profile writes are DEFAULTS, not statements, so the field-set is restored
@@ -395,15 +398,15 @@ class Settings(BaseSettings):
def runtime_js_dir(self) -> Path:
"""The Node runtime (runtime_js/) — repo-relative in an editable install.
- ``CV3D_RUNTIME_JS`` overrides the location (the wheel does not package
+ ``C3D_RUNTIME_JS`` overrides the location (the wheel does not package
runtime_js, so a non-editable install MUST point this at a checkout).
Missing dir → a loud error at first use instead of a cryptic node crash."""
- override = os.environ.get("CV3D_RUNTIME_JS", "").strip()
+ override = os.environ.get("C3D_RUNTIME_JS", "").strip()
d = Path(override).expanduser() if override else Path(__file__).resolve().parent.parent / "runtime_js"
if not d.is_dir():
raise RuntimeError(
f"runtime_js not found at {d} — install the harness editable (pip install -e harness) "
- "or set CV3D_RUNTIME_JS to a 3dcodeverse/harness/runtime_js checkout (with node_modules installed)"
+ "or set C3D_RUNTIME_JS to a 3dcodeverse/harness/runtime_js checkout (with node_modules installed)"
)
return d
@@ -437,9 +440,9 @@ def _env_gemini_keys() -> list[str]:
def _deep_merge(base: dict, overlay: dict) -> dict:
"""Recursive dict merge — ``overlay`` wins per SETTING, not per section.
- ``dict.update`` replaced a whole sub-dict, so a project ``./codeverse.yaml`` that
+ ``dict.update`` replaced a whole sub-dict, so a project ``./3dcodeverse.yaml`` that
merely NAMED a section silently dropped every sibling key the user had set in
- ``~/.config/codeverse/config.yaml`` — those keys fell back to the built-in Field
+ ``~/.config/3dcodeverse/config.yaml`` — those keys fell back to the built-in Field
defaults, not to the user's values. Concretely: a user config with
``rate.tpm_per_key: 250000`` plus a project file with only ``rate.max_in_flight: 8``
scheduled the key pool against the built-in 1,000,000 TPM, 4x the operator's real
@@ -460,7 +463,7 @@ def _deep_merge(base: dict, overlay: dict) -> dict:
def get_settings() -> Settings:
"""Build the singleton Settings (cached; call ``get_settings.cache_clear()`` in tests)."""
data: dict = {}
- for p in (_USER_CONFIG, Path("codeverse.yaml")):
+ for p in (_LEGACY_USER_CONFIG, _USER_CONFIG, Path("codeverse.yaml"), Path("3dcodeverse.yaml")):
data = _deep_merge(data, _load_yaml(p))
s = Settings(**data)
if not s.gemini_api_keys:
@@ -472,8 +475,8 @@ def get_settings() -> Settings:
# de-dupe keys preserving order
seen: set[str] = set()
s.gemini_api_keys = [k for k in s.gemini_api_keys if not (k in seen or seen.add(k))]
- # the dial named in config.yaml / CV3D_PROFILE, applied as a *default*: a value the
+ # the dial named in config.yaml / C3D_PROFILE, applied as a *default*: a value the
# user stated themselves survives it. `3dcode make --profile X` forces the same dial
- # (codeverse.cli._common.resolve_dial is the one resolver both paths go through).
+ # (codeverse3d.cli._common.resolve_dial is the one resolver both paths go through).
s.apply_profile(s.profile)
return s
diff --git a/harness/codeverse/contracts/__init__.py b/harness/codeverse3d/contracts/__init__.py
similarity index 84%
rename from harness/codeverse/contracts/__init__.py
rename to harness/codeverse3d/contracts/__init__.py
index 08280611..6ed7b969 100644
--- a/harness/codeverse/contracts/__init__.py
+++ b/harness/codeverse3d/contracts/__init__.py
@@ -11,8 +11,8 @@ Modules:
- ``agent`` CodingAgent job/result shapes.
"""
-from codeverse.contracts.agent import AgentJob, AgentResult, FileChange
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.agent import AgentJob, AgentResult, FileChange
+from codeverse3d.contracts.artifacts import (
BuildResult,
GateFinding,
GateReport,
@@ -25,14 +25,14 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.contracts.chat import (
+from codeverse3d.contracts.chat import (
ChatMessage,
ChatRequest,
ChatResponse,
ImagePart,
TextPart,
)
-from codeverse.contracts.common import (
+from codeverse3d.contracts.common import (
ENTRY_FILE,
LANGUAGE_LABEL,
TRACK_INFO,
@@ -46,7 +46,7 @@ from codeverse.contracts.common import (
Vec3,
code_file,
)
-from codeverse.contracts.plan import (
+from codeverse3d.contracts.plan import (
AcceptanceItem,
ArticulatedPlan,
AssetPlan,
@@ -62,8 +62,8 @@ from codeverse.contracts.plan import (
StaticPlan,
ZonePlan,
)
-from codeverse.contracts.run import RoundRecord, RunRecord, RunStatus
-from codeverse.contracts.spec import Constraints, ReferenceImage, RunOptions, Spec
+from codeverse3d.contracts.run import RoundRecord, RunRecord, RunStatus
+from codeverse3d.contracts.spec import Constraints, ReferenceImage, RunOptions, Spec
__all__ = [
"AcceptanceItem",
diff --git a/harness/codeverse/contracts/agent.py b/harness/codeverse3d/contracts/agent.py
similarity index 96%
rename from harness/codeverse/contracts/agent.py
rename to harness/codeverse3d/contracts/agent.py
index 05359d9d..efd6b653 100644
--- a/harness/codeverse/contracts/agent.py
+++ b/harness/codeverse3d/contracts/agent.py
@@ -2,7 +2,7 @@
Trust model (cooperative, by design): generated code and agent sessions run with local
filesystem access and no network sandbox; the mitigation is that secrets are scrubbed
-from their environment (``codeverse.proc.scrub_secrets`` for the generated-code
+from their environment (``codeverse3d.proc.scrub_secrets`` for the generated-code
runtimes, ``agents/cli_common.hardened_env`` for the coding-agent CLIs).
"""
@@ -10,7 +10,7 @@ from __future__ import annotations
from pydantic import BaseModel, Field
-from codeverse.contracts.common import Usage
+from codeverse3d.contracts.common import Usage
class FileChange(BaseModel):
diff --git a/harness/codeverse/contracts/artifacts.py b/harness/codeverse3d/contracts/artifacts.py
similarity index 99%
rename from harness/codeverse/contracts/artifacts.py
rename to harness/codeverse3d/contracts/artifacts.py
index 8c3f84ee..2b6ef738 100644
--- a/harness/codeverse/contracts/artifacts.py
+++ b/harness/codeverse3d/contracts/artifacts.py
@@ -7,7 +7,7 @@ from typing import Any, Literal
from pydantic import BaseModel, Field
-from codeverse.contracts.common import Usage, Vec3
+from codeverse3d.contracts.common import Usage, Vec3
class Severity(StrEnum):
diff --git a/harness/codeverse/contracts/chat.py b/harness/codeverse3d/contracts/chat.py
similarity index 98%
rename from harness/codeverse/contracts/chat.py
rename to harness/codeverse3d/contracts/chat.py
index 8780528c..26916c15 100644
--- a/harness/codeverse/contracts/chat.py
+++ b/harness/codeverse3d/contracts/chat.py
@@ -6,7 +6,7 @@ from typing import Any, Literal
from pydantic import BaseModel, Field
-from codeverse.contracts.common import Usage
+from codeverse3d.contracts.common import Usage
class TextPart(BaseModel):
diff --git a/harness/codeverse/contracts/common.py b/harness/codeverse3d/contracts/common.py
similarity index 100%
rename from harness/codeverse/contracts/common.py
rename to harness/codeverse3d/contracts/common.py
diff --git a/harness/codeverse/contracts/plan.py b/harness/codeverse3d/contracts/plan.py
similarity index 99%
rename from harness/codeverse/contracts/plan.py
rename to harness/codeverse3d/contracts/plan.py
index 89eaab98..3bd32fd8 100644
--- a/harness/codeverse/contracts/plan.py
+++ b/harness/codeverse3d/contracts/plan.py
@@ -16,12 +16,12 @@ from typing import Literal
from pydantic import BaseModel, Field, field_validator, model_validator
-from codeverse.contracts.common import (
+from codeverse3d.contracts.common import (
MimicSpec,
Vec3,
mimic_issues,
)
-from codeverse.conventions import to_snake
+from codeverse3d.conventions import to_snake
class BBox(BaseModel):
diff --git a/harness/codeverse/contracts/run.py b/harness/codeverse3d/contracts/run.py
similarity index 97%
rename from harness/codeverse/contracts/run.py
rename to harness/codeverse3d/contracts/run.py
index 7422b502..6cd9fcdf 100644
--- a/harness/codeverse/contracts/run.py
+++ b/harness/codeverse3d/contracts/run.py
@@ -3,7 +3,7 @@
``RunRecord`` (rounds, totals, provenance: the flywheel unit), ``RunId`` (where a run
sits in a runs dir or a battery), the per-round skills usage, and the packaged
``telemetry/`` + ``deliverable/`` blocks. The skills shapes live here rather than in
-``codeverse/skills`` so ``contracts`` stays a leaf that ``flywheel``, ``gallery`` and the
+``codeverse3d/skills`` so ``contracts`` stays a leaf that ``flywheel``, ``gallery`` and the
CLI import without the router, and a stored record re-reads on a build with no skill
library at all.
"""
@@ -17,10 +17,16 @@ from typing import Any, Literal
from pydantic import BaseModel, ConfigDict, Field
-from codeverse.contracts.artifacts import BuildResult, GateReport, Judgment, Measurement, RenderSet
-from codeverse.contracts.common import Usage
-from codeverse.contracts.plan import ArticulatedPlan, GraphicsPlan, ScenePlan, StaticPlan
-from codeverse.contracts.spec import Spec
+from codeverse3d.contracts.artifacts import (
+ BuildResult,
+ GateReport,
+ Judgment,
+ Measurement,
+ RenderSet,
+)
+from codeverse3d.contracts.common import Usage
+from codeverse3d.contracts.plan import ArticulatedPlan, GraphicsPlan, ScenePlan, StaticPlan
+from codeverse3d.contracts.spec import Spec
class SkillRead(BaseModel):
@@ -247,7 +253,7 @@ class SettingsSnapshot(BaseModel):
harness_version: str = ""
harness_git_sha: str = ""
key_pool_size: int = Field(default=0, description="number of API keys in the rotating pool")
- price_table_version: str = Field(default="", description="content hash of codeverse.models.pricing.PRICES")
+ price_table_version: str = Field(default="", description="content hash of codeverse3d.models.pricing.PRICES")
render: dict[str, Any] = Field(default_factory=dict, description="resolved render settings (size, gpu, sheet)")
limits: dict[str, Any] = Field(default_factory=dict, description="resolved timeouts / parallelism")
diff --git a/harness/codeverse/contracts/spec.py b/harness/codeverse3d/contracts/spec.py
similarity index 94%
rename from harness/codeverse/contracts/spec.py
rename to harness/codeverse3d/contracts/spec.py
index 02bf72d1..3072d854 100644
--- a/harness/codeverse/contracts/spec.py
+++ b/harness/codeverse3d/contracts/spec.py
@@ -7,7 +7,7 @@ from typing import Any
from pydantic import BaseModel, Field, model_validator
-from codeverse.contracts.common import TRACK_LANGUAGES, Backends, Budget, Language, Track
+from codeverse3d.contracts.common import TRACK_LANGUAGES, Backends, Budget, Language, Track
class ReferenceImage(BaseModel):
@@ -39,7 +39,7 @@ class RunOptions(BaseModel):
candidates: int | None = Field(default=None, ge=1, description="best-of-N baseline candidates")
texture: bool = Field(default=False, description="run the derived texture pass after the loop")
profile: str = Field(default="", description="cost/quality dial this run was created with "
- "(codeverse/cost/profiles.py); '' = the settings default, and a resume "
+ "(codeverse3d/cost/profiles.py); '' = the settings default, and a resume "
"re-applies it so judge samples / montage size / turn cap survive")
diff --git a/harness/codeverse/conventions.py b/harness/codeverse3d/conventions.py
similarity index 100%
rename from harness/codeverse/conventions.py
rename to harness/codeverse3d/conventions.py
diff --git a/harness/codeverse/cost/__init__.py b/harness/codeverse3d/cost/__init__.py
similarity index 67%
rename from harness/codeverse/cost/__init__.py
rename to harness/codeverse3d/cost/__init__.py
index 4f6cd891..16035053 100644
--- a/harness/codeverse/cost/__init__.py
+++ b/harness/codeverse3d/cost/__init__.py
@@ -1,25 +1,25 @@
"""Cost accounting: a typed ledger of every model call, a price-provenance layer on
top of ``models/pricing.py``, and a pre-send cost guard. (The audit of FINISHED runs and
-its report are ``codeverse.addons.costreport``.)
+its report are ``codeverse3d.addons.costreport``.)
This package re-exports only the names other packages actually import through it.
Everything else lives in — and is imported from — its own module: ``cost.profiles`` (get_profile/PROFILES), ``cost.routing``
(ROUTES/Route), ``cost.instrument`` (metered_chat_model/MeteredAgent),
``cost.types`` (CallCost/CostBucket/Summary), ``cost.reconstruct`` (RunLedger).
Keeping the shim narrow also keeps profiles/routing out of the eager import
-graph of ``import codeverse.cost``.
+graph of ``import codeverse3d.cost``.
Nothing here imports tracks/ or orchestrator/, so any layer may use it.
"""
from __future__ import annotations
-from codeverse.cost.context import call_context
-from codeverse.cost.guard import estimate_call
-from codeverse.cost.instrument import run_ledger
-from codeverse.cost.ledger import CostLedger, load_ledger, record_call, summarise
-from codeverse.cost.reconstruct import find_runs, reconstruct
-from codeverse.cost.types import Role, Stage
+from codeverse3d.cost.context import call_context
+from codeverse3d.cost.guard import estimate_call
+from codeverse3d.cost.instrument import run_ledger
+from codeverse3d.cost.ledger import CostLedger, load_ledger, record_call, summarise
+from codeverse3d.cost.reconstruct import find_runs, reconstruct
+from codeverse3d.cost.types import Role, Stage
__all__ = [
"CostLedger", "Role", "Stage", "call_context", "estimate_call",
diff --git a/harness/codeverse/cost/billing.py b/harness/codeverse3d/cost/billing.py
similarity index 100%
rename from harness/codeverse/cost/billing.py
rename to harness/codeverse3d/cost/billing.py
diff --git a/harness/codeverse/cost/context.py b/harness/codeverse3d/cost/context.py
similarity index 93%
rename from harness/codeverse/cost/context.py
rename to harness/codeverse3d/cost/context.py
index 9bf8f616..b1652e8d 100644
--- a/harness/codeverse/cost/context.py
+++ b/harness/codeverse3d/cost/context.py
@@ -12,19 +12,19 @@ role" for the call that is about to happen. Precedence:
session (a texture pass, a captioner, a judge invoked as a tool) was filed
under the session's ``stage=refine / role=generator``;
3. the ambient context (:func:`call_context`) — set by
- :mod:`codeverse.cost.instrument` around an agent session. It beats a
+ :mod:`codeverse3d.cost.instrument` around an agent session. It beats a
*generation* label because the session knows more than a call made inside it
does: a best-of-N candidate session runs with ``job.kind="candidate"`` while a
tool it calls bills a model under a plain ``baseline`` label;
4. what is left of the label (a generation stage, the round tag) — which also
survives a thread hop that a ``ContextVar`` does not.
-A label that names nothing (:data:`~codeverse.cost.types.Stage.OTHER`) states
+A label that names nothing (:data:`~codeverse3d.cost.types.Stage.OTHER`) states
nothing and never displaces anything.
The **run binding** (:func:`bound_run`, the run slug) is a plain ``ContextVar``.
A bench worker that opens its own run in its own thread gets its own binding, and a
-worker thread inherits its caller's because ``codeverse.proc.fan_out`` copies the
+worker thread inherits its caller's because ``codeverse3d.proc.fan_out`` copies the
context (bb6179c). There is deliberately no process-wide fallback: restoring one by
value republished a sibling's run the moment the first parallel run exited, and rows
written afterwards landed in that finished run's file (2026-08-30 — the interleave
@@ -38,8 +38,8 @@ from contextlib import contextmanager
from contextvars import ContextVar
from dataclasses import dataclass, replace
-from codeverse.contracts.common import Usage
-from codeverse.cost.types import Role, Stage, role_for_stage, stage_for_label
+from codeverse3d.contracts.common import Usage
+from codeverse3d.cost.types import Role, Stage, role_for_stage, stage_for_label
@dataclass(frozen=True)
@@ -71,10 +71,10 @@ class CallContext:
_EMPTY = CallContext()
-_ctx: ContextVar[CallContext] = ContextVar("cv3d_cost_ctx", default=_EMPTY)
+_ctx: ContextVar[CallContext] = ContextVar("c3d_cost_ctx", default=_EMPTY)
#: the run this execution context belongs to ("" = nothing bound here)
-_run_var: ContextVar[str] = ContextVar("cv3d_cost_run", default="")
+_run_var: ContextVar[str] = ContextVar("c3d_cost_run", default="")
@contextmanager
@@ -112,7 +112,7 @@ def call_context(
) -> Iterator[CallContext]:
"""Set the ambient attribution for the duration of the block (this thread).
- Used by :mod:`codeverse.cost.instrument` around an agent session and by the
+ Used by :mod:`codeverse3d.cost.instrument` around an agent session and by the
judges around a verdict; nesting merges, so an inner block only has to name
what it changes."""
ctx = _ctx.get().merge(CallContext(run=run, round=round, stage=_stage(stage), role=_role(role), label=label))
@@ -240,7 +240,7 @@ AttemptSink = Callable[[AttemptRecord], None]
#: parameter because ``ChatModel.generate(request)`` is a protocol many backends
#: implement; the backend captures the sink ONCE at call entry, so a hedge loser
#: that lands later in its own thread still reports through the captured callable.
-_attempt_sink: ContextVar[AttemptSink | None] = ContextVar("cv3d_cost_attempt_sink", default=None)
+_attempt_sink: ContextVar[AttemptSink | None] = ContextVar("c3d_cost_attempt_sink", default=None)
def attempt_sink() -> AttemptSink | None:
diff --git a/harness/codeverse/cost/guard.py b/harness/codeverse3d/cost/guard.py
similarity index 95%
rename from harness/codeverse/cost/guard.py
rename to harness/codeverse3d/cost/guard.py
index 12603c47..2b844063 100644
--- a/harness/codeverse/cost/guard.py
+++ b/harness/codeverse3d/cost/guard.py
@@ -7,7 +7,7 @@ call: how many tokens am I about to send, and what will they cost on this model?
Token counts are estimates (≈4 characters per token for prose/code, a flat
per-image count for vision parts) — good to ±15% for prompt sizing, which is all
a routing decision needs. When the exact number matters, price the ``Usage``
-the provider returns (``codeverse.cost.record_call``).
+the provider returns (``codeverse3d.cost.record_call``).
"""
from __future__ import annotations
@@ -15,8 +15,8 @@ from __future__ import annotations
from collections.abc import Iterable, Sequence
from dataclasses import dataclass
-from codeverse.cost.types import normalise_ids
-from codeverse.models.pricing import per_image_usd, price_provenance, unit_prices
+from codeverse3d.cost.types import normalise_ids
+from codeverse3d.models.pricing import per_image_usd, price_provenance, unit_prices
#: characters per token — Gemini/OpenAI English prose and code both sit near 4
CHARS_PER_TOKEN = 4.0
diff --git a/harness/codeverse/cost/instrument.py b/harness/codeverse3d/cost/instrument.py
similarity index 93%
rename from harness/codeverse/cost/instrument.py
rename to harness/codeverse3d/cost/instrument.py
index d1c52a16..5e131c80 100644
--- a/harness/codeverse/cost/instrument.py
+++ b/harness/codeverse3d/cost/instrument.py
@@ -2,13 +2,13 @@
Two thin proxies do the whole job:
-* :class:`MeteredChatModel` wraps a :class:`~codeverse.models.base.ChatModel`.
- Every ``generate`` appends one :class:`~codeverse.cost.types.CallCost` row
+* :class:`MeteredChatModel` wraps a :class:`~codeverse3d.models.base.ChatModel`.
+ Every ``generate`` appends one :class:`~codeverse3d.cost.types.CallCost` row
(tokens, the unit prices actually used + their provenance, $, latency,
cache hit, outcome). Because ``models.registry.get_chat_model`` returns the
proxy, this covers the planner, the judges, the captioner and single-shot
generation.
-* :class:`MeteredAgent` wraps a :class:`~codeverse.agents.registry.CodingAgent`.
+* :class:`MeteredAgent` wraps a :class:`~codeverse3d.agents.registry.CodingAgent`.
It sets the ambient attribution (round / stage / label) for the session so
the model rows above land in the right bucket and, because every backend is a
vendor CLI whose calls we cannot see, records one session row from
@@ -31,10 +31,10 @@ from pathlib import Path
from typing import Any
from uuid import uuid4
-from codeverse.contracts.agent import AgentJob, AgentResult
-from codeverse.contracts.chat import ChatRequest, ChatResponse
-from codeverse.contracts.common import Usage
-from codeverse.cost.context import (
+from codeverse3d.contracts.agent import AgentJob, AgentResult
+from codeverse3d.contracts.chat import ChatRequest, ChatResponse
+from codeverse3d.contracts.common import Usage
+from codeverse3d.cost.context import (
AttemptRecord,
CallContext,
attempt_recording,
@@ -43,7 +43,7 @@ from codeverse.cost.context import (
call_context,
run_binding,
)
-from codeverse.cost.ledger import (
+from codeverse3d.cost.ledger import (
CostLedger,
bound_ledger,
default_ledger,
@@ -51,7 +51,7 @@ from codeverse.cost.ledger import (
open_run_ledger,
record_call,
)
-from codeverse.cost.types import Role, Stage, stage_for_label
+from codeverse3d.cost.types import Role, Stage, stage_for_label
log = logging.getLogger(__name__)
@@ -236,9 +236,9 @@ def metered_agent(agent: Any) -> Any:
def metering_enabled() -> bool:
- """``Settings.cost_ledger`` (env ``CV3D_COST_LEDGER=off`` also disables it)."""
+ """``Settings.cost_ledger`` (env ``C3D_COST_LEDGER=off`` also disables it)."""
try:
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
return bool(get_settings().cost_ledger)
except Exception: # pragma: no cover
@@ -250,7 +250,7 @@ def metering_enabled() -> bool:
def run_ledger(workspace: str | Path, *, run: str = "", create: bool = True) -> Iterator[CostLedger | None]:
"""Meter one run into ``<workspace>/telemetry/cost.jsonl``.
- Binds the run name and points :func:`~codeverse.cost.ledger.record_call` at the
+ Binds the run name and points :func:`~codeverse3d.cost.ledger.record_call` at the
run's ledger for the duration of the block.
``create=False`` is for work done *after* a run finished (``3dcode judge``,
diff --git a/harness/codeverse/cost/ledger.py b/harness/codeverse3d/cost/ledger.py
similarity index 94%
rename from harness/codeverse/cost/ledger.py
rename to harness/codeverse3d/cost/ledger.py
index b40005c5..1805c774 100644
--- a/harness/codeverse/cost/ledger.py
+++ b/harness/codeverse3d/cost/ledger.py
@@ -25,9 +25,9 @@ from contextvars import ContextVar
from pathlib import Path
from typing import Any
-from codeverse.contracts.common import Usage
-from codeverse.cost.context import CallContext, _stage, attribute
-from codeverse.cost.types import (
+from codeverse3d.contracts.common import Usage
+from codeverse3d.cost.context import CallContext, _stage, attribute
+from codeverse3d.cost.types import (
CallCost,
CostBucket,
Role,
@@ -36,13 +36,13 @@ from codeverse.cost.types import (
normalise_ids,
role_for_stage,
)
-from codeverse.models.pricing import (
+from codeverse3d.models.pricing import (
cache_write_surcharge,
estimate_cost,
price_provenance,
unit_prices,
)
-from codeverse.proc import iter_jsonl_lines
+from codeverse3d.proc import iter_jsonl_lines
log = logging.getLogger(__name__)
@@ -58,7 +58,7 @@ LEDGER_NAME = "cost_ledger.jsonl"
#: env var that points ``record_call`` at a ledger when no path is passed
#: (``off`` / ``0`` / ``none`` disables ledger writing for the process)
-LEDGER_ENV = "CV3D_COST_LEDGER"
+LEDGER_ENV = "C3D_COST_LEDGER"
_LEDGER_OFF = frozenset({"off", "0", "no", "none", "false"})
DIMENSIONS = ("run", "stage", "role", "backend", "model", "provider", "round", "outcome")
@@ -96,10 +96,10 @@ _fallback_read = False
#: sentinel: "this execution context did not state a ledger"
_UNSET: Any = object()
#: context-local override of the default ledger. Context-local ONLY, like
-#: ``codeverse.cost.context._run_var``: a bench worker running its own prompt in its
+#: ``codeverse3d.cost.context._run_var``: a bench worker running its own prompt in its
#: own thread must not have its rows land in a sibling run's file, and a process-wide
#: copy of it could not unwind correctly when two runs overlap (2026-08-30).
-_default_var: ContextVar[Any] = ContextVar("cv3d_cost_default_ledger", default=_UNSET)
+_default_var: ContextVar[Any] = ContextVar("c3d_cost_default_ledger", default=_UNSET)
@contextmanager
@@ -118,10 +118,10 @@ def bound_ledger(path: str | Path) -> Iterator[CostLedger]:
def default_ledger() -> CostLedger | None:
"""The ledger :func:`record_call` writes to when no ``ledger=`` is given:
- whatever :func:`bound_ledger` bound here, else ``$CV3D_COST_LEDGER``, else the
+ whatever :func:`bound_ledger` bound here, else ``$C3D_COST_LEDGER``, else the
per-process fallback log (:func:`process_ledger_path`) so a call made outside
any run — ``3dcode judge``, a bench script, a notebook — is still accounted for.
- ``CV3D_COST_LEDGER=off`` turns writing off entirely."""
+ ``C3D_COST_LEDGER=off`` turns writing off entirely."""
global _fallback, _fallback_read
led = _default_var.get()
if led is not _UNSET:
@@ -140,11 +140,11 @@ def process_ledger_path() -> Path:
under ``<cache_dir>/cost/``. Never inside a run directory, so it can never be
mistaken for a run's own ledger."""
try:
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
base = Path(get_settings().cache_dir)
except Exception: # pragma: no cover - settings must never break accounting
- base = Path.home() / ".cache" / "codeverse"
+ base = Path.home() / ".cache" / "codeverse3d"
stamp = time.strftime("%Y%m%d", time.localtime())
return base / "cost" / f"p{os.getpid()}-{stamp}.jsonl"
@@ -262,13 +262,13 @@ def record_call(
Callers pass the ``Usage`` they already hold::
- from codeverse.cost import record_call
+ from codeverse3d.cost import record_call
record_call(res.usage, run=ws.slug, round=idx, stage="baseline",
role="generator", ledger=ws.root / "cost_ledger.jsonl")
Anything the caller leaves out (``run`` / ``round`` / ``stage`` / ``role``) is
resolved from the ambient run context and the call label — see
- :mod:`codeverse.cost.context`.
+ :mod:`codeverse3d.cost.context`.
Never raises: a failure to account is logged, not propagated."""
u = usage or Usage()
diff --git a/harness/codeverse/cost/profiles.py b/harness/codeverse3d/cost/profiles.py
similarity index 97%
rename from harness/codeverse/cost/profiles.py
rename to harness/codeverse3d/cost/profiles.py
index f83c9dc0..048a4a0b 100644
--- a/harness/codeverse/cost/profiles.py
+++ b/harness/codeverse3d/cost/profiles.py
@@ -7,8 +7,8 @@ ceilings in one consistent move. Mixing knobs by hand is how a run ends up
paying for a pro judge on a single-shot artifact, or running four refine rounds
on a graphics shader that passed at round 0.
-``--profile X`` and ``CV3D_PROFILE=X`` (or ``profile:`` in ``config.yaml``)
-resolve to the **same** dial: ``codeverse.cli._common.resolve_dial`` is the one
+``--profile X`` and ``C3D_PROFILE=X`` (or ``profile:`` in ``config.yaml``)
+resolve to the **same** dial: ``codeverse3d.cli._common.resolve_dial`` is the one
place that reads it, and ``tests/cost/test_profiles.py`` asserts every
field of the resolved dial from both entry points. The only difference is
precedence — the flag forces the dial over a value you stated yourself, the
@@ -91,7 +91,7 @@ PROFILES: dict[str, Profile] = {
# the cap it was modelled on did not survive its own A/B — 3 runs per arm, a 28-turn
# cap cost $0.02 MORE and 0.205 of a score point (docs/COST.md §17) — so there is no
# default cap anywhere now. A caller who wants one still has
- # ``Settings.limits.agent_max_turns`` / ``$CV3D_AGENT_MAX_TURNS``.
+ # ``Settings.limits.agent_max_turns`` / ``$C3D_AGENT_MAX_TURNS``.
max_turns=0,
# 1024 px, not 768: measured on 8 recorded rounds, Gemini bills a montage the same at
# both sizes (156,834 vs 156,874 input tokens over 16 verdicts) while 768 raised the
diff --git a/harness/codeverse/cost/reconstruct.py b/harness/codeverse3d/cost/reconstruct.py
similarity index 97%
rename from harness/codeverse/cost/reconstruct.py
rename to harness/codeverse3d/cost/reconstruct.py
index 99ac1caf..5c052a9a 100644
--- a/harness/codeverse/cost/reconstruct.py
+++ b/harness/codeverse3d/cost/reconstruct.py
@@ -4,7 +4,7 @@ The harness has been recording ``Usage`` since day one, just not as a ledger:
per-call rows live in ``trajectories/*/transcript.jsonl``, session totals in
``result.json``, judge verdicts in ``record.rounds[].judgment.usage``, and the
plan / texture / pairwise costs only in ``events.jsonl``. This module stitches
-those into :class:`~codeverse.cost.types.CallCost` rows so the audit and
+those into :class:`~codeverse3d.cost.types.CallCost` rows so the audit and
``3dcode cost`` work on runs recorded *before* the ledger existed.
Nothing here validates against the pydantic ``RunRecord``: old records must keep
@@ -34,12 +34,12 @@ from dataclasses import dataclass, field
from pathlib import Path
from typing import Any
-from codeverse.contracts.common import Usage
-from codeverse.contracts.run import RunId
-from codeverse.cost.ledger import price_call
-from codeverse.cost.types import CallCost, Role, Stage, role_for_stage, stage_for_label
-from codeverse.proc import read_json_or_none, read_jsonl_lenient
-from codeverse.record.record import SUBRUN_DIRS
+from codeverse3d.contracts.common import Usage
+from codeverse3d.contracts.run import RunId
+from codeverse3d.cost.ledger import price_call
+from codeverse3d.cost.types import CallCost, Role, Stage, role_for_stage, stage_for_label
+from codeverse3d.proc import read_json_or_none, read_jsonl_lenient
+from codeverse3d.record.record import SUBRUN_DIRS
log = logging.getLogger(__name__)
@@ -211,7 +211,7 @@ def _live_rows(root: Path, *, run: str, recheck: bool) -> list[CallCost]:
that do not (a battery copies runs around). ``recheck`` re-prices them from
today's table exactly like a reconstructed row."""
try:
- from codeverse.cost.ledger import load_ledger
+ from codeverse3d.cost.ledger import load_ledger
rows = load_ledger(root)
except Exception as e: # noqa: BLE001 - a corrupt ledger falls back to reconstruction
@@ -251,7 +251,7 @@ def reconstruct_run(run_dir: str | Path, *, recheck: bool = False) -> RunLedger:
"""Build the ledger of one run directory.
A run that wrote its own ledger while it ran (``telemetry/cost.jsonl``, see
- :mod:`codeverse.cost.instrument`) is read from that ledger — one priced row
+ :mod:`codeverse3d.cost.instrument`) is read from that ledger — one priced row
per real call, nothing inferred. Runs recorded before the ledger existed are
rebuilt from ``trajectories/`` + ``record.json`` + ``events.jsonl`` exactly as
before, so all 61 reference runs keep auditing.
diff --git a/harness/codeverse/cost/routing.py b/harness/codeverse3d/cost/routing.py
similarity index 99%
rename from harness/codeverse/cost/routing.py
rename to harness/codeverse3d/cost/routing.py
index 969881d6..2e1528e6 100644
--- a/harness/codeverse/cost/routing.py
+++ b/harness/codeverse3d/cost/routing.py
@@ -17,7 +17,7 @@ from __future__ import annotations
from dataclasses import dataclass
from math import ceil
-from codeverse.cost.types import Role
+from codeverse3d.cost.types import Role
#: judge score noise (std of the overall score over n=3 samples) and the
#: correlation of the score with deterministic gate errors, per judge model.
diff --git a/harness/codeverse/cost/types.py b/harness/codeverse3d/cost/types.py
similarity index 100%
rename from harness/codeverse/cost/types.py
rename to harness/codeverse3d/cost/types.py
diff --git a/harness/codeverse/doctor.py b/harness/codeverse3d/doctor.py
similarity index 89%
rename from harness/codeverse/doctor.py
rename to harness/codeverse3d/doctor.py
index 99e2d497..7dfb55cc 100644
--- a/harness/codeverse/doctor.py
+++ b/harness/codeverse3d/doctor.py
@@ -11,8 +11,8 @@ import json
import shutil
from pathlib import Path
-from codeverse.config import get_settings
-from codeverse.proc import version_line
+from codeverse3d.config import get_settings
+from codeverse3d.proc import version_line
Row = tuple[str, str, str]
_PY_DEPS = ("pydantic", "pydantic_settings", "typer", "rich", "jinja2", "yaml", "numpy", "trimesh", "fcl", "PIL", "pyarrow",
@@ -68,13 +68,13 @@ def check_blender() -> list[Row]:
s = get_settings()
b = s.resolve_blender()
if not b:
- return [("blender", "FAIL", "no binary (set CV3D_BINARIES__BLENDER or put blender-5.0 on PATH)")]
+ return [("blender", "FAIL", "no binary (set C3D_BINARIES__BLENDER or put blender-5.0 on PATH)")]
okk, v = _ver([b, "--version"], timeout=60)
return [("blender", "OK" if okk else "FAIL", f"{v} @ {b}")]
def check_node() -> list[Row]:
- from codeverse.spatial.node import NODE_MIN_STR, node_version_error, parse_node_version
+ from codeverse3d.spatial.node import NODE_MIN_STR, node_version_error, parse_node_version
s = get_settings()
rows: list[Row] = []
@@ -86,7 +86,7 @@ def check_node() -> list[Row]:
rows.append(("node", "OK" if okk else "FAIL", v if okk else f"{v} (need >= {NODE_MIN_STR})"))
try:
rj = s.runtime_js_dir()
- except RuntimeError as e: # non-editable install without CV3D_RUNTIME_JS
+ except RuntimeError as e: # non-editable install without C3D_RUNTIME_JS
rows.append(("runtime_js", "FAIL", str(e)))
return rows
three = rj / "node_modules" / "three" / "package.json"
@@ -114,7 +114,7 @@ _PROBE_JS = (
def check_gpu_probe(timeout_s: int = 120) -> list[Row]:
"""Launch headless Chrome through runtime_js/gpu_launch.cjs and report the WebGL renderer."""
- from codeverse.proc import run_subprocess
+ from codeverse3d.proc import run_subprocess
s = get_settings()
try:
@@ -149,8 +149,8 @@ def check_pool(live: bool) -> list[Row]:
Only meaningful once something has used the pool this process, so it is part
of ``--live`` (``check_keys`` makes one call just before)."""
- from codeverse.models.gemini import shared_pool
- from codeverse.models.retry import all_gates
+ from codeverse3d.models.gemini import shared_pool
+ from codeverse3d.models.retry import all_gates
s = get_settings()
if not s.gemini_api_keys:
@@ -189,7 +189,7 @@ def check_pool(live: bool) -> list[Row]:
def _rate_cap() -> int:
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
return int(getattr(get_settings().rate, "max_in_flight", 0) or 0)
@@ -199,7 +199,7 @@ def check_keys(live: bool) -> list[Row]:
n = len(s.gemini_api_keys)
rows: list[Row] = [("gemini keys", "OK" if n else "FAIL", f"{n} key(s)")]
if n:
- from codeverse.models.health import pool_budget
+ from codeverse3d.models.health import pool_budget
pb = pool_budget()
cap = _rate_cap()
@@ -208,15 +208,15 @@ def check_keys(live: bool) -> list[Row]:
"OK" if pb.fits(cap) else "WARN",
(f"{pb}; this process at {cap} {'fits' if pb.fits(cap) else 'does NOT fit'} "
f"(docs/COST.md §23: keep the SUM at or under {pb.knee}"
- + ("" if pb.fits(cap) else f" — set CV3D_MAX_IN_FLIGHT={max(1, pb.headroom)} or wait") + ")")
+ + ("" if pb.fits(cap) else f" — set C3D_MAX_IN_FLIGHT={max(1, pb.headroom)} or wait") + ")")
if pb.siblings else "sole harness process: max_in_flight applies as configured",
))
rows.append(("anthropic key", "OK" if s.anthropic_api_key else "WARN", "set" if s.anthropic_api_key else "not set (anthropic:* backends unavailable)"))
rows.append(("openai key", "OK" if s.openai_api_key else "WARN", "set" if s.openai_api_key else "not set (openai:* backends unavailable)"))
if live and n:
try:
- from codeverse.contracts.chat import ChatMessage, ChatRequest
- from codeverse.models import get_chat_model
+ from codeverse3d.contracts.chat import ChatMessage, ChatRequest
+ from codeverse3d.models import get_chat_model
m = get_chat_model("gemini:gemini-3.7-flash")
r = m.generate(ChatRequest(messages=[ChatMessage.user("Reply with the single word: pong")],
@@ -248,10 +248,10 @@ def check_mcp() -> list[Row]:
except ImportError:
return [("mcp", "WARN", "python package `mcp` missing (MCP server for CLIs unavailable)")]
try:
- importlib.import_module("codeverse.spatial.mcp_server")
- return [("mcp", "OK", "mcp + codeverse.spatial.mcp_server importable")]
+ importlib.import_module("codeverse3d.spatial.mcp_server")
+ return [("mcp", "OK", "mcp + codeverse3d.spatial.mcp_server importable")]
except ImportError as e:
- return [("mcp", "WARN", f"codeverse.spatial.mcp_server not importable ({e})")]
+ return [("mcp", "WARN", f"codeverse3d.spatial.mcp_server not importable ({e})")]
def check_skills() -> list[Row]:
@@ -260,14 +260,14 @@ def check_skills() -> list[Row]:
A CLI upgrade that moves its skills root ships an empty index and the run still
passes — the failure is invisible except as a read rate of zero a battery later. So
the wiring gets a check you can run before spending money."""
- from codeverse.agents.backends import ALLOWED_TOOLS
- from codeverse.skills import bundle_dirs, skills_dir, validate_bundle
- from codeverse.skills.config import skills_enabled
- from codeverse.skills.materialize import SKILL_ROOTS
- from codeverse.skills.registry import ROUTED_SKILLS
+ from codeverse3d.agents.backends import ALLOWED_TOOLS
+ from codeverse3d.skills import bundle_dirs, skills_dir, validate_bundle
+ from codeverse3d.skills.config import skills_enabled
+ from codeverse3d.skills.materialize import SKILL_ROOTS
+ from codeverse3d.skills.registry import ROUTED_SKILLS
rows: list[Row] = [("skills switch", "OK" if skills_enabled() else "WARN",
- "CV3D_SKILLS=on" if skills_enabled() else "CV3D_SKILLS is off (default): no skill is attached")]
+ "C3D_SKILLS=on" if skills_enabled() else "C3D_SKILLS is off (default): no skill is attached")]
dirs = bundle_dirs()
if not dirs:
rows.append(("skills library", "WARN", f"no bundles under {skills_dir()}"))
diff --git a/harness/codeverse/judges/__init__.py b/harness/codeverse3d/judges/__init__.py
similarity index 100%
rename from harness/codeverse/judges/__init__.py
rename to harness/codeverse3d/judges/__init__.py
diff --git a/harness/codeverse/judges/base.py b/harness/codeverse3d/judges/base.py
similarity index 94%
rename from harness/codeverse/judges/base.py
rename to harness/codeverse3d/judges/base.py
index f188f2da..25abb089 100644
--- a/harness/codeverse/judges/base.py
+++ b/harness/codeverse3d/judges/base.py
@@ -6,10 +6,10 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.contracts.artifacts import GateReport, Judgment, Measurement, RenderSet
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.contracts.spec import Spec
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import GateReport, Judgment, Measurement, RenderSet
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.workspace import Workspace
#: tracks whose rounds have one canonical GLB the judge slice channel (D48) may cut;
#: scene and graphics have none and are unaffected.
diff --git a/harness/codeverse/judges/pairwise.py b/harness/codeverse3d/judges/pairwise.py
similarity index 93%
rename from harness/codeverse/judges/pairwise.py
rename to harness/codeverse3d/judges/pairwise.py
index 8ee33c76..58f73530 100644
--- a/harness/codeverse/judges/pairwise.py
+++ b/harness/codeverse3d/judges/pairwise.py
@@ -1,7 +1,7 @@
"""``PairwiseJudge``: which of two candidates better satisfies the spec?
Position bias is real, so the comparison runs TWICE with A/B swapped (the two
-orderings run in parallel via ``codeverse.proc``); the winner is declared
+orderings run in parallel via ``codeverse3d.proc``); the winner is declared
only when both orderings agree, otherwise ``tie``. Each call sees the brief,
the rubric's criteria (titles + descriptions) and ONE 2×2 montage per candidate
(the 4 most informative views — never a big sheet: VLM judges flip with many
@@ -19,12 +19,12 @@ from typing import Literal
from pydantic import BaseModel, Field
-from codeverse.config import get_settings
-from codeverse.contracts.artifacts import RenderSet
-from codeverse.contracts.chat import ChatMessage, ChatRequest, ImagePart, TextPart
-from codeverse.contracts.common import Usage
-from codeverse.contracts.spec import Spec
-from codeverse.judges.prompt_builder import (
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.artifacts import RenderSet
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest, ImagePart, TextPart
+from codeverse3d.contracts.common import Usage
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.judges.prompt_builder import (
MONTAGE_TILE_PX,
brief_section,
image_part,
@@ -33,10 +33,10 @@ from codeverse.judges.prompt_builder import (
prepare_image,
render_montage,
)
-from codeverse.judges.rubrics import JudgeParseError, Rubric, load_rubric
-from codeverse.models.base import ChatModel, ModelError
-from codeverse.models.schema_utils import JsonParseError, parse_json_lenient
-from codeverse.proc import fan_out
+from codeverse3d.judges.rubrics import JudgeParseError, Rubric, load_rubric
+from codeverse3d.models.base import ChatModel, ModelError
+from codeverse3d.models.schema_utils import JsonParseError, parse_json_lenient
+from codeverse3d.proc import fan_out
log = logging.getLogger(__name__)
@@ -93,7 +93,7 @@ class PairwiseJudge:
@property
def model(self) -> ChatModel:
if self._model is None:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
self._model = get_chat_model(self.model_id)
return self._model
diff --git a/harness/codeverse/judges/prompt_builder.py b/harness/codeverse3d/judges/prompt_builder.py
similarity index 98%
rename from harness/codeverse/judges/prompt_builder.py
rename to harness/codeverse3d/judges/prompt_builder.py
index 570afd5c..10bacac7 100644
--- a/harness/codeverse/judges/prompt_builder.py
+++ b/harness/codeverse3d/judges/prompt_builder.py
@@ -24,8 +24,8 @@ from typing import TYPE_CHECKING, Literal
from PIL import Image, ImageDraw
-from codeverse.config import get_settings
-from codeverse.contracts.artifacts import (
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.artifacts import (
RENDER_MODES,
GateFinding,
GateReport,
@@ -35,14 +35,14 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.contracts.chat import ChatMessage, ImagePart, TextPart
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.contracts.spec import Spec
-from codeverse.conventions import OBJECT_CLAY_VIEWS, OBJECT_VIEWS, SCENE_VIEWS, ViewPreset
-from codeverse.judges.rubrics import VETO_PENETRATION_DEPTH_M, Rubric
-from codeverse.spatial.connectivity import PENETRATION_ERROR_M, PENETRATION_WARN_M
-from codeverse.spatial.measure import measure_summary_table
-from codeverse.spatial.sheet import crop_region, load_font, montage_2x2
+from codeverse3d.contracts.chat import ChatMessage, ImagePart, TextPart
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.conventions import OBJECT_CLAY_VIEWS, OBJECT_VIEWS, SCENE_VIEWS, ViewPreset
+from codeverse3d.judges.rubrics import VETO_PENETRATION_DEPTH_M, Rubric
+from codeverse3d.spatial.connectivity import PENETRATION_ERROR_M, PENETRATION_WARN_M
+from codeverse3d.spatial.measure import measure_summary_table
+from codeverse3d.spatial.sheet import crop_region, load_font, montage_2x2
_PRESETS: dict[str, ViewPreset] = {v.name: v for v in (*OBJECT_VIEWS, *SCENE_VIEWS)}
#: Clay tiles label their OWN cameras: ``OBJECT_CLAY_VIEWS.top`` sits at el 88 while the
@@ -394,7 +394,7 @@ def describe_montages(montages: list[Montage]) -> str:
# ===================================================================== prompt_builder
if TYPE_CHECKING: # pragma: no cover
- from codeverse.judges.base import JudgeInput
+ from codeverse3d.judges.base import JudgeInput
TEXT_BUDGET_CHARS = 24_000 # ≈ 6k tokens
MAX_PX = 1024 # montages are 2×2 grids: keep them legible
@@ -895,8 +895,8 @@ def judge_prompt_hash(rubric: Rubric) -> str:
"""
import json
- from codeverse.judges.rubrics import wire_schema
- from codeverse.prompts import prompt_hash
+ from codeverse3d.judges.rubrics import wire_schema
+ from codeverse3d.prompts import prompt_hash
payload = "\n".join([
build_system_prompt(rubric),
diff --git a/harness/codeverse/judges/rubrics.py b/harness/codeverse3d/judges/rubrics.py
similarity index 99%
rename from harness/codeverse/judges/rubrics.py
rename to harness/codeverse3d/judges/rubrics.py
index 6ac6b0ea..2b029289 100644
--- a/harness/codeverse/judges/rubrics.py
+++ b/harness/codeverse3d/judges/rubrics.py
@@ -38,7 +38,7 @@ from pydantic import (
model_validator,
)
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.artifacts import (
GateFinding,
GateReport,
ImprovementItem,
@@ -47,9 +47,9 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.contracts.common import Usage
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.models.schema_utils import JsonParseError, parse_json_lenient
+from codeverse3d.contracts.common import Usage
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.models.schema_utils import JsonParseError, parse_json_lenient
RUBRICS_DIR = Path(__file__).resolve().parent / "rubrics"
ANCHOR_LEVELS = ("1.0", "0.7", "0.4", "0.1")
diff --git a/harness/codeverse/judges/rubrics/articulated_v1.yaml b/harness/codeverse3d/judges/rubrics/articulated_v1.yaml
similarity index 100%
rename from harness/codeverse/judges/rubrics/articulated_v1.yaml
rename to harness/codeverse3d/judges/rubrics/articulated_v1.yaml
diff --git a/harness/codeverse/judges/rubrics/asset_v1.yaml b/harness/codeverse3d/judges/rubrics/asset_v1.yaml
similarity index 100%
rename from harness/codeverse/judges/rubrics/asset_v1.yaml
rename to harness/codeverse3d/judges/rubrics/asset_v1.yaml
diff --git a/harness/codeverse/judges/rubrics/reference_v1.yaml b/harness/codeverse3d/judges/rubrics/reference_v1.yaml
similarity index 100%
rename from harness/codeverse/judges/rubrics/reference_v1.yaml
rename to harness/codeverse3d/judges/rubrics/reference_v1.yaml
diff --git a/harness/codeverse/judges/rubrics/scene_v1.yaml b/harness/codeverse3d/judges/rubrics/scene_v1.yaml
similarity index 99%
rename from harness/codeverse/judges/rubrics/scene_v1.yaml
rename to harness/codeverse3d/judges/rubrics/scene_v1.yaml
index e2244582..cc8848e0 100644
--- a/harness/codeverse/judges/rubrics/scene_v1.yaml
+++ b/harness/codeverse3d/judges/rubrics/scene_v1.yaml
@@ -237,7 +237,7 @@ caps:
severity: error
kinds: [camera_in_geometry, camera_clipped, camera_inside, camera_underground, point_blank, blank_view, dead_render]
cap: 0.5
- # scene_frames gate (codeverse.spatial.frame_metrics): deterministic frame quality of the
+ # scene_frames gate (codeverse3d.spatial.frame_metrics): deterministic frame quality of the
# authored cameras — a crushed dusk, a blown sky, a one-colour frame or an establishing shot
# that shows a tiny island of content can never score as a finished picture.
- id: dark_frame
diff --git a/harness/codeverse/judges/rubrics/shader_v1.yaml b/harness/codeverse3d/judges/rubrics/shader_v1.yaml
similarity index 100%
rename from harness/codeverse/judges/rubrics/shader_v1.yaml
rename to harness/codeverse3d/judges/rubrics/shader_v1.yaml
diff --git a/harness/codeverse/judges/rubrics/shader_v2.yaml b/harness/codeverse3d/judges/rubrics/shader_v2.yaml
similarity index 100%
rename from harness/codeverse/judges/rubrics/shader_v2.yaml
rename to harness/codeverse3d/judges/rubrics/shader_v2.yaml
diff --git a/harness/codeverse/judges/rubrics/static_object_v1.yaml b/harness/codeverse3d/judges/rubrics/static_object_v1.yaml
similarity index 100%
rename from harness/codeverse/judges/rubrics/static_object_v1.yaml
rename to harness/codeverse3d/judges/rubrics/static_object_v1.yaml
diff --git a/harness/codeverse/judges/vlm_judge.py b/harness/codeverse3d/judges/vlm_judge.py
similarity index 96%
rename from harness/codeverse/judges/vlm_judge.py
rename to harness/codeverse3d/judges/vlm_judge.py
index ff1a81f8..50173273 100644
--- a/harness/codeverse/judges/vlm_judge.py
+++ b/harness/codeverse3d/judges/vlm_judge.py
@@ -4,7 +4,7 @@ Per sample: one ``ChatRequest`` with a per-rubric JSON schema (criteria scored
0..1 with evidence, the rubric's binary defect checklist, issues, improvement
plan, acceptance verdicts); samples differ by montage/tile order (shuffle seed)
so n-sample mean/std measures judge noise. With ``n_samples > 1`` the model
-calls run in parallel (``codeverse.proc``); results accumulate in sample order. Score/defect penalties/floors/caps
+calls run in parallel (``codeverse3d.proc``); results accumulate in sample order. Score/defect penalties/floors/caps
/pass are computed in code (``rubrics.aggregate_samples``). Images are ≤2×2 montages
(``prompt_builder``); tracks may pass a clay/normals ``JudgeInput.geometry_views`` RenderSet. Retries: up to
``max_attempts`` per sample on ``ModelError`` / parse failure, all of them inside one
@@ -30,18 +30,18 @@ from dataclasses import dataclass, field
from pathlib import Path
from typing import Any, Literal
-from codeverse.config import get_settings
-from codeverse.contracts.artifacts import Judgment, RenderView
-from codeverse.contracts.chat import ChatRequest, ChatResponse
-from codeverse.contracts.common import Usage
-from codeverse.judges.base import SLICE_TRACKS, JudgeInput
-from codeverse.judges.prompt_builder import (
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.artifacts import Judgment, RenderView
+from codeverse3d.contracts.chat import ChatRequest, ChatResponse
+from codeverse3d.contracts.common import Usage
+from codeverse3d.judges.base import SLICE_TRACKS, JudgeInput
+from codeverse3d.judges.prompt_builder import (
build_judge_messages,
connectivity_error_pairs,
default_cache_dir,
judge_prompt_hash,
)
-from codeverse.judges.rubrics import (
+from codeverse3d.judges.rubrics import (
JudgeOutput,
JudgeParseError,
Rubric,
@@ -51,10 +51,10 @@ from codeverse.judges.rubrics import (
parse_judge_output,
wire_schema,
)
-from codeverse.models.base import ChatModel, ModelError
-from codeverse.proc import fan_out
-from codeverse.reference import compare, conflict_note
-from codeverse.spatial.silhouette import best_view_match, compare_silhouette
+from codeverse3d.models.base import ChatModel, ModelError
+from codeverse3d.proc import fan_out
+from codeverse3d.reference import compare, conflict_note
+from codeverse3d.spatial.silhouette import best_view_match, compare_silhouette
log = logging.getLogger(__name__)
@@ -156,7 +156,7 @@ class VlmJudge:
@property
def model(self) -> ChatModel:
if self._model is None:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
self._model = get_chat_model(self.model_id)
return self._model
@@ -277,7 +277,7 @@ class VlmJudge:
rebuilt GLB re-renders and concurrent judges of the same round share one set.
Writes go to a per-writer temp dir renamed into place (a concurrent identical
writer simply wins first)."""
- from codeverse.spatial.sections import SliceManifest, judge_slices
+ from codeverse3d.spatial.sections import SliceManifest, judge_slices
cache = Path(self.cache_dir) if self.cache_dir else default_cache_dir()
st = glb.stat()
@@ -351,7 +351,7 @@ NEUTRAL_SCORE = 0.5
#: ``*_34`` names are the pre-D47 rig, kept for re-judging stored runs.
DIFF_VIEW_NAMES: tuple[str, ...] = ("front", "front_right_high", "front_left_high", "right", "left",
"front_right_34", "front_left_34")
-_ENV_DIFF = "CV3D_REFERENCE_DIFF"
+_ENV_DIFF = "C3D_REFERENCE_DIFF"
def iou_to_score(iou: float) -> float:
@@ -446,7 +446,7 @@ class ReferenceJudge(VlmJudge):
if not targets:
return {"conflict": False}
try:
- from codeverse.reference import dimension_conflict
+ from codeverse3d.reference import dimension_conflict
return dimension_conflict(inp.spec, targets[0].path)
except Exception as e: # noqa: BLE001 — advisory
@@ -485,7 +485,7 @@ class ReferenceJudge(VlmJudge):
if self._diff_model is not None:
return self._diff_model
if self.diff_model_id:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
self._diff_model = get_chat_model(self.diff_model_id)
return self._diff_model
diff --git a/harness/codeverse/languages/__init__.py b/harness/codeverse3d/languages/__init__.py
similarity index 65%
rename from harness/codeverse/languages/__init__.py
rename to harness/codeverse3d/languages/__init__.py
index a6c476bb..0255df31 100644
--- a/harness/codeverse/languages/__init__.py
+++ b/harness/codeverse3d/languages/__init__.py
@@ -1,5 +1,5 @@
"""Per-language runtimes: lint → build/export → census. Raw languages only."""
-from codeverse.languages.base import LanguageRuntime, get_runtime
+from codeverse3d.languages.base import LanguageRuntime, get_runtime
__all__ = ["LanguageRuntime", "get_runtime"]
diff --git a/harness/codeverse/languages/_ast_lint.py b/harness/codeverse3d/languages/_ast_lint.py
similarity index 98%
rename from harness/codeverse/languages/_ast_lint.py
rename to harness/codeverse3d/languages/_ast_lint.py
index 41d0943a..1f1602be 100644
--- a/harness/codeverse/languages/_ast_lint.py
+++ b/harness/codeverse3d/languages/_ast_lint.py
@@ -13,7 +13,7 @@ from __future__ import annotations
import ast
from collections.abc import Callable, Collection, Mapping
-from codeverse.contracts.artifacts import GateFinding
+from codeverse3d.contracts.artifacts import GateFinding
#: modules no agent script may import in ANY python language (subprocesses,
#: network, file-system side effects, dynamic import). Languages compose their
diff --git a/harness/codeverse/languages/_common.py b/harness/codeverse3d/languages/_common.py
similarity index 97%
rename from harness/codeverse/languages/_common.py
rename to harness/codeverse3d/languages/_common.py
index b0495f68..95de23a3 100644
--- a/harness/codeverse/languages/_common.py
+++ b/harness/codeverse3d/languages/_common.py
@@ -8,7 +8,7 @@ and the runtime turns those into a :class:`BuildResult`. This module owns:
failing loud when the wrapper did not report;
* :func:`read_json_file` / :func:`strip_blender_noise`.
-Wrappers themselves are standalone scripts (they never import ``codeverse``;
+Wrappers themselves are standalone scripts (they never import ``codeverse3d``;
Blender's bundled python cannot see this package).
"""
@@ -19,8 +19,8 @@ from collections.abc import Callable, Mapping
from pathlib import Path
from typing import Any
-from codeverse.contracts.artifacts import BuildResult
-from codeverse.proc import ProcResult, tail
+from codeverse3d.contracts.artifacts import BuildResult
+from codeverse3d.proc import ProcResult, tail
#: The one spelling of every runtime's typed build failures — recorded in build.json /
#: record.json / bench cells, so the strings stay as first recorded (2026-08-29: threejs,
diff --git a/harness/codeverse/languages/_docs.py b/harness/codeverse3d/languages/_docs.py
similarity index 91%
rename from harness/codeverse/languages/_docs.py
rename to harness/codeverse3d/languages/_docs.py
index d506fa2c..ff8f48af 100644
--- a/harness/codeverse/languages/_docs.py
+++ b/harness/codeverse3d/languages/_docs.py
@@ -16,9 +16,9 @@ for a fact is a second answer, which is what law 2 exists to prevent.
from __future__ import annotations
-from codeverse.contracts.common import Language
-from codeverse.prompts import load_text
-from codeverse.prompts.catalog import prompt_dir_for
+from codeverse3d.contracts.common import Language
+from codeverse3d.prompts import load_text
+from codeverse3d.prompts.catalog import prompt_dir_for
#: only reachable if the wheel shipped without its prompt data
MINIMAL_CONTRACT = "Write raw code in the language's native frame; meters; named parts."
diff --git a/harness/codeverse/languages/_gl_common.py b/harness/codeverse3d/languages/_gl_common.py
similarity index 96%
rename from harness/codeverse/languages/_gl_common.py
rename to harness/codeverse3d/languages/_gl_common.py
index 4cb2dfe4..5c6f2fc8 100644
--- a/harness/codeverse/languages/_gl_common.py
+++ b/harness/codeverse3d/languages/_gl_common.py
@@ -21,11 +21,11 @@ import re
from dataclasses import dataclass, field
from pathlib import Path
-from codeverse.config import get_settings
-from codeverse.contracts.artifacts import BuildResult, GateReport
-from codeverse.contracts.plan import GraphicsPlan
-from codeverse.spatial.frame_stats import SequenceStats, frame_gate, sequence_stats
-from codeverse.spatial.gl_render import (
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.artifacts import BuildResult, GateReport
+from codeverse3d.contracts.plan import GraphicsPlan
+from codeverse3d.spatial.frame_stats import SequenceStats, frame_gate, sequence_stats
+from codeverse3d.spatial.gl_render import (
RESULT_NAME,
GlHost,
GlResult,
@@ -33,7 +33,7 @@ from codeverse.spatial.gl_render import (
write_contact_sheet,
write_gif,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
JUDGE_TIMES: tuple[float, ...] = (0.0, 1.0, 2.5, 4.0, 6.0)
SHEET_NAME = "frames_sheet.png"
diff --git a/harness/codeverse/languages/_js_lint.py b/harness/codeverse3d/languages/_js_lint.py
similarity index 99%
rename from harness/codeverse/languages/_js_lint.py
rename to harness/codeverse3d/languages/_js_lint.py
index e87c33ff..d24251b4 100644
--- a/harness/codeverse/languages/_js_lint.py
+++ b/harness/codeverse3d/languages/_js_lint.py
@@ -23,7 +23,7 @@ from dataclasses import dataclass
from enum import StrEnum
from pathlib import Path
-from codeverse.contracts.artifacts import GateFinding
+from codeverse3d.contracts.artifacts import GateFinding
# threejs's regexes (the superset: side-effect ``import './x.js'``, ``export * from``,
# ``export * as ns from`` and multi-line ``import {\n a,\n b\n} from`` all match)
diff --git a/harness/codeverse/languages/base.py b/harness/codeverse3d/languages/base.py
similarity index 68%
rename from harness/codeverse/languages/base.py
rename to harness/codeverse3d/languages/base.py
index 7db8f558..22e4f722 100644
--- a/harness/codeverse/languages/base.py
+++ b/harness/codeverse3d/languages/base.py
@@ -12,10 +12,10 @@ from importlib import import_module
from pathlib import Path
from typing import Protocol, runtime_checkable
-from codeverse.contracts.artifacts import BuildResult, GateReport
-from codeverse.contracts.common import Language
-from codeverse.contracts.plan import Plan
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import BuildResult, GateReport
+from codeverse3d.contracts.common import Language
+from codeverse3d.contracts.plan import Plan
+from codeverse3d.workspace import Workspace
@runtime_checkable
@@ -44,13 +44,13 @@ class LanguageRuntime(Protocol):
#: Language → (module, class). Adding a language is a row, and the import stays lazy
#: (a runtime pulls in bpy / moderngl / node bindings the other six do not need).
_RUNTIMES: dict[Language, tuple[str, str]] = {
- Language.BLENDER: ("codeverse.languages.blender", "BlenderRuntime"),
- Language.CADQUERY: ("codeverse.languages.cadquery", "CadQueryRuntime"),
- Language.THREEJS: ("codeverse.languages.threejs", "ThreeJsRuntime"),
- Language.URDF_BLENDER: ("codeverse.languages.urdf", "UrdfBlenderRuntime"),
- Language.SCENE_THREEJS: ("codeverse.languages.scene_threejs", "SceneThreeJsRuntime"),
- Language.GLSL_SHADER: ("codeverse.languages.glsl_shader", "GlslShaderRuntime"),
- Language.OPENGL_PYTHON: ("codeverse.languages.opengl_python", "OpenGLPythonRuntime"),
+ Language.BLENDER: ("codeverse3d.languages.blender", "BlenderRuntime"),
+ Language.CADQUERY: ("codeverse3d.languages.cadquery", "CadQueryRuntime"),
+ Language.THREEJS: ("codeverse3d.languages.threejs", "ThreeJsRuntime"),
+ Language.URDF_BLENDER: ("codeverse3d.languages.urdf", "UrdfBlenderRuntime"),
+ Language.SCENE_THREEJS: ("codeverse3d.languages.scene_threejs", "SceneThreeJsRuntime"),
+ Language.GLSL_SHADER: ("codeverse3d.languages.glsl_shader", "GlslShaderRuntime"),
+ Language.OPENGL_PYTHON: ("codeverse3d.languages.opengl_python", "OpenGLPythonRuntime"),
}
diff --git a/harness/codeverse/languages/blender/__init__.py b/harness/codeverse3d/languages/blender/__init__.py
similarity index 97%
rename from harness/codeverse/languages/blender/__init__.py
rename to harness/codeverse3d/languages/blender/__init__.py
index 73bca7de..67c85f5e 100644
--- a/harness/codeverse/languages/blender/__init__.py
+++ b/harness/codeverse3d/languages/blender/__init__.py
@@ -8,22 +8,22 @@ import os
import time
from pathlib import Path
-from codeverse.config import Settings, get_settings
-from codeverse.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
-from codeverse.contracts.common import ENTRY_FILE, Language
-from codeverse.contracts.plan import BBox, PartPlan, Plan, StaticPlan
-from codeverse.conventions import MAX_TRIS_OBJECT, PASCAL_RE, to_pascal, to_snake
-from codeverse.languages._ast_lint import (
+from codeverse3d.config import Settings, get_settings
+from codeverse3d.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
+from codeverse3d.contracts.common import ENTRY_FILE, Language
+from codeverse3d.contracts.plan import BBox, PartPlan, Plan, StaticPlan
+from codeverse3d.conventions import MAX_TRIS_OBJECT, PASCAL_RE, to_pascal, to_snake
+from codeverse3d.languages._ast_lint import (
BASE_FORBIDDEN_IMPORTS,
check_imports,
describe_parse_failure,
dotted,
safe_parse,
)
-from codeverse.languages._common import MISSING_ENTRY, compose_build_result, strip_blender_noise
-from codeverse.languages._docs import RuntimeDocs
-from codeverse.proc import run_subprocess, scrub_secrets
-from codeverse.workspace import Workspace
+from codeverse3d.languages._common import MISSING_ENTRY, compose_build_result, strip_blender_noise
+from codeverse3d.languages._docs import RuntimeDocs
+from codeverse3d.proc import run_subprocess, scrub_secrets
+from codeverse3d.workspace import Workspace
# ===================================================================== lint
GATE = "lint:blender"
@@ -274,7 +274,7 @@ def lint_blender_source(
``expect_names=False`` silences the PascalCase-name warning (multi-file entry files
only import and call builders); ``expect_bpy=False`` allows helper modules that do
- not touch bpy. :func:`codeverse.languages.blender.lint_workspace` lints a
+ not touch bpy. :func:`codeverse3d.languages.blender.lint_workspace` lints a
whole ``src/`` tree with these set per file.
"""
t0 = time.monotonic()
@@ -680,13 +680,13 @@ WRAPPER = _PKG_DIR / "wrappers" / "run_bpy.py"
class BlenderNotFoundError(RuntimeError):
- """No usable Blender binary (configure ``CV3D_BINARIES__BLENDER`` or put blender on PATH)."""
+ """No usable Blender binary (configure ``C3D_BINARIES__BLENDER`` or put blender on PATH)."""
def blender_env() -> dict[str, str]:
"""Environment for a headless Blender child: keep the user's env but make sure the
host python (conda) cannot leak into Blender's bundled interpreter, and strip
- credential-shaped vars (:func:`codeverse.proc.scrub_secrets`) — the model-authored
+ credential-shaped vars (:func:`codeverse3d.proc.scrub_secrets`) — the model-authored
``model.py`` executes inside this process and must never see API keys."""
env = scrub_secrets(dict(os.environ))
for k in ("PYTHONPATH", "PYTHONHOME", "PYTHONSTARTUP"):
@@ -709,7 +709,7 @@ class BlenderRuntime(RuntimeDocs):
def blender_binary(self) -> str:
b = self._blender or self._settings.resolve_blender()
if not b or not Path(b).exists():
- raise BlenderNotFoundError("Blender binary not found; set CV3D_BINARIES__BLENDER=/path/to/blender")
+ raise BlenderNotFoundError("Blender binary not found; set C3D_BINARIES__BLENDER=/path/to/blender")
return b
def entry_file(self, ws: Workspace) -> Path:
diff --git a/harness/codeverse/languages/blender/wrappers/_census.py b/harness/codeverse3d/languages/blender/wrappers/_census.py
similarity index 99%
rename from harness/codeverse/languages/blender/wrappers/_census.py
rename to harness/codeverse3d/languages/blender/wrappers/_census.py
index 01280524..748850f3 100644
--- a/harness/codeverse/languages/blender/wrappers/_census.py
+++ b/harness/codeverse3d/languages/blender/wrappers/_census.py
@@ -1,7 +1,7 @@
"""Scene census for the Blender build wrapper — executed BY Blender, never imported by the harness.
``run_bpy.py`` puts its own directory on ``sys.path`` and does ``import _census``; this
-module must therefore stay standalone (no ``codeverse`` imports). It inspects the scene
+module must therefore stay standalone (no ``codeverse3d`` imports). It inspects the scene
after the agent script ran: evaluated triangle counts, world bboxes, materials, parents,
and the contract warnings the build cannot otherwise see (cameras, lights, visible
boolean cutters, unlinked meshes, default primitive names, material slots no polygon uses).
diff --git a/harness/codeverse/languages/blender/wrappers/run_bpy.py b/harness/codeverse3d/languages/blender/wrappers/run_bpy.py
similarity index 99%
rename from harness/codeverse/languages/blender/wrappers/run_bpy.py
rename to harness/codeverse3d/languages/blender/wrappers/run_bpy.py
index 8ddb76cb..7679bae6 100644
--- a/harness/codeverse/languages/blender/wrappers/run_bpy.py
+++ b/harness/codeverse3d/languages/blender/wrappers/run_bpy.py
@@ -18,7 +18,7 @@ What it does (in order):
8. writes ``build.json`` + ``census.json`` atomically and exits 0.
Exit codes: 0 = reported (even if the script failed); 2 = wrapper bug (no report).
-This file must stay standalone: Blender's python cannot import ``codeverse``
+This file must stay standalone: Blender's python cannot import ``codeverse3d``
(the only sibling import is ``_census``, resolved via this file's own directory).
"""
diff --git a/harness/codeverse/languages/cadquery/__init__.py b/harness/codeverse3d/languages/cadquery/__init__.py
similarity index 96%
rename from harness/codeverse/languages/cadquery/__init__.py
rename to harness/codeverse3d/languages/cadquery/__init__.py
index 54eee98a..5b51fc16 100644
--- a/harness/codeverse/languages/cadquery/__init__.py
+++ b/harness/codeverse3d/languages/cadquery/__init__.py
@@ -9,23 +9,23 @@ import sys
import time
from pathlib import Path
-from codeverse.config import Settings, get_settings
-from codeverse.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
-from codeverse.contracts.common import ENTRY_FILE, Language
-from codeverse.contracts.plan import PartPlan, Plan, StaticPlan
-from codeverse.conventions import MAX_TRIS_OBJECT, PASCAL_RE, to_pascal, to_snake
-from codeverse.languages._ast_lint import (
+from codeverse3d.config import Settings, get_settings
+from codeverse3d.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
+from codeverse3d.contracts.common import ENTRY_FILE, Language
+from codeverse3d.contracts.plan import PartPlan, Plan, StaticPlan
+from codeverse3d.conventions import MAX_TRIS_OBJECT, PASCAL_RE, to_pascal, to_snake
+from codeverse3d.languages._ast_lint import (
BASE_FORBIDDEN_IMPORTS,
check_imports,
describe_parse_failure,
dotted,
safe_parse,
)
-from codeverse.languages._common import MISSING_ENTRY, compose_build_result
-from codeverse.languages._docs import RuntimeDocs
-from codeverse.languages.blender import _fmt, finish_for, instance_centers
-from codeverse.proc import run_subprocess, scrub_secrets
-from codeverse.workspace import Workspace
+from codeverse3d.languages._common import MISSING_ENTRY, compose_build_result
+from codeverse3d.languages._docs import RuntimeDocs
+from codeverse3d.languages.blender import _fmt, finish_for, instance_centers
+from codeverse3d.proc import run_subprocess, scrub_secrets
+from codeverse3d.workspace import Workspace
# ===================================================================== lint
GATE = "lint:cadquery"
@@ -318,7 +318,7 @@ WRAPPER = _PKG_DIR / "wrappers" / "run_cq.py"
def cadquery_env() -> dict[str, str]:
"""Environment for the wrapper subprocess that executes the model-authored
``src/model.py``: the user's env minus credential-shaped vars
- (:func:`codeverse.proc.scrub_secrets`)."""
+ (:func:`codeverse3d.proc.scrub_secrets`)."""
env = scrub_secrets(dict(os.environ))
env.pop("PYTHONSTARTUP", None)
env.setdefault("OMP_NUM_THREADS", "4")
diff --git a/harness/codeverse/languages/cadquery/wrappers/run_cq.py b/harness/codeverse3d/languages/cadquery/wrappers/run_cq.py
similarity index 99%
rename from harness/codeverse/languages/cadquery/wrappers/run_cq.py
rename to harness/codeverse3d/languages/cadquery/wrappers/run_cq.py
index b66bb656..6e9cbcb5 100644
--- a/harness/codeverse/languages/cadquery/wrappers/run_cq.py
+++ b/harness/codeverse3d/languages/cadquery/wrappers/run_cq.py
@@ -8,7 +8,7 @@ module-level ``result`` (cq.Assembly preferred, or Workplane / Shape) → tessel
each part (world location applied) → ``object.glb`` (Y-up, +Z front, named nodes,
PBR base colour from cq.Color) + ``object.step`` + ``object.stl`` → ``census.json``
+ ``build.json`` (atomic). Exit 0 whenever a report was written; 2 on wrapper bugs.
-Standalone: imports cadquery / numpy / trimesh only (never ``codeverse``).
+Standalone: imports cadquery / numpy / trimesh only (never ``codeverse3d``).
"""
from __future__ import annotations
diff --git a/harness/codeverse/languages/glsl_shader/__init__.py b/harness/codeverse3d/languages/glsl_shader/__init__.py
similarity index 97%
rename from harness/codeverse/languages/glsl_shader/__init__.py
rename to harness/codeverse3d/languages/glsl_shader/__init__.py
index 18aefd7a..953b1906 100644
--- a/harness/codeverse/languages/glsl_shader/__init__.py
+++ b/harness/codeverse3d/languages/glsl_shader/__init__.py
@@ -7,12 +7,12 @@ from collections.abc import Collection
from dataclasses import dataclass
from pathlib import Path
-from codeverse.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
-from codeverse.contracts.common import ENTRY_FILE, Language
-from codeverse.contracts.plan import GraphicsPlan, Plan
-from codeverse.languages._common import MISSING_ENTRY
-from codeverse.languages._docs import RuntimeDocs
-from codeverse.languages._gl_common import ( # noqa: F401 — re-exported
+from codeverse3d.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
+from codeverse3d.contracts.common import ENTRY_FILE, Language
+from codeverse3d.contracts.plan import GraphicsPlan, Plan
+from codeverse3d.languages._common import MISSING_ENTRY
+from codeverse3d.languages._docs import RuntimeDocs
+from codeverse3d.languages._gl_common import ( # noqa: F401 — re-exported
GlslMessage,
LineMap,
Segment,
@@ -25,8 +25,8 @@ from codeverse.languages._gl_common import ( # noqa: F401 — re-exported
preview_times,
resolution_for,
)
-from codeverse.spatial.gl_render import GlHost, GlResult
-from codeverse.workspace import Workspace
+from codeverse3d.spatial.gl_render import GlHost, GlResult
+from codeverse3d.workspace import Workspace
# ===================================================================== wrap
UNIFORM_NAMES: tuple[str, ...] = ("u_time", "u_resolution", "u_mouse", "u_frame", "u_prev", "u_noise", "u_buffer_a")
diff --git a/harness/codeverse/languages/opengl_python/__init__.py b/harness/codeverse3d/languages/opengl_python/__init__.py
similarity index 97%
rename from harness/codeverse/languages/opengl_python/__init__.py
rename to harness/codeverse3d/languages/opengl_python/__init__.py
index f0208cf4..092eaef5 100644
--- a/harness/codeverse/languages/opengl_python/__init__.py
+++ b/harness/codeverse3d/languages/opengl_python/__init__.py
@@ -6,18 +6,18 @@ import ast
import re
from pathlib import Path
-from codeverse.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
-from codeverse.contracts.common import ENTRY_FILE, Language
-from codeverse.contracts.plan import GraphicsPlan, Plan
-from codeverse.languages._ast_lint import (
+from codeverse3d.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
+from codeverse3d.contracts.common import ENTRY_FILE, Language
+from codeverse3d.contracts.plan import GraphicsPlan, Plan
+from codeverse3d.languages._ast_lint import (
BASE_FORBIDDEN_IMPORTS,
check_imports,
describe_parse_failure,
safe_parse,
)
-from codeverse.languages._common import MISSING_ENTRY
-from codeverse.languages._docs import RuntimeDocs
-from codeverse.languages._gl_common import (
+from codeverse3d.languages._common import MISSING_ENTRY
+from codeverse3d.languages._docs import RuntimeDocs
+from codeverse3d.languages._gl_common import (
finish_build,
invalidate_stale_outputs,
judge_times,
@@ -28,8 +28,8 @@ from codeverse.languages._gl_common import (
resolution_for,
traceback_location,
)
-from codeverse.spatial.gl_render import GlHost, GlResult
-from codeverse.workspace import Workspace
+from codeverse3d.spatial.gl_render import GlHost, GlResult
+from codeverse3d.workspace import Workspace
# ===================================================================== lint
GATE = "lint:opengl_python"
diff --git a/harness/codeverse/languages/opengl_python/wrappers/run_gl.py b/harness/codeverse3d/languages/opengl_python/wrappers/run_gl.py
similarity index 99%
rename from harness/codeverse/languages/opengl_python/wrappers/run_gl.py
rename to harness/codeverse3d/languages/opengl_python/wrappers/run_gl.py
index b1acab02..bbe3dbf2 100644
--- a/harness/codeverse/languages/opengl_python/wrappers/run_gl.py
+++ b/harness/codeverse3d/languages/opengl_python/wrappers/run_gl.py
@@ -1,4 +1,4 @@
-"""Standalone moderngl runner (never imports codeverse).
+"""Standalone moderngl runner (never imports codeverse3d).
Usage: ``python run_gl.py --job job.json``
diff --git a/harness/codeverse/languages/scene_threejs/__init__.py b/harness/codeverse3d/languages/scene_threejs/__init__.py
similarity index 96%
rename from harness/codeverse/languages/scene_threejs/__init__.py
rename to harness/codeverse3d/languages/scene_threejs/__init__.py
index 8b951883..42a481e0 100644
--- a/harness/codeverse/languages/scene_threejs/__init__.py
+++ b/harness/codeverse3d/languages/scene_threejs/__init__.py
@@ -10,14 +10,25 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.config import get_settings
-from codeverse.contracts.artifacts import BuildResult, GateFinding, GateReport, RenderSet, Severity
-from codeverse.contracts.common import ENTRY_FILE, Language
-from codeverse.contracts.plan import AssetPlan, CameraPlan, Plan, ScenePlan, ZonePlan
-from codeverse.conventions import to_pascal, to_snake
-from codeverse.languages._docs import RuntimeDocs
-from codeverse.languages._js_lint import ImportKind, ImportVerdict, check_imports, node_check_syntax
-from codeverse.workspace import Workspace
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.artifacts import (
+ BuildResult,
+ GateFinding,
+ GateReport,
+ RenderSet,
+ Severity,
+)
+from codeverse3d.contracts.common import ENTRY_FILE, Language
+from codeverse3d.contracts.plan import AssetPlan, CameraPlan, Plan, ScenePlan, ZonePlan
+from codeverse3d.conventions import to_pascal, to_snake
+from codeverse3d.languages._docs import RuntimeDocs
+from codeverse3d.languages._js_lint import (
+ ImportKind,
+ ImportVerdict,
+ check_imports,
+ node_check_syntax,
+)
+from codeverse3d.workspace import Workspace
# ===================================================================== lint
GATE = "lint:scene_threejs"
@@ -431,7 +442,7 @@ def _probe_module(zones: list[Path], glbs: list[str]) -> str:
glbs, target="ctx.assets",
on_error=f"console.error('{_PREFIX} asset ' + key + ' failed: ' + ((e && e.message) || e));",
)
- return f"""// generated by codeverse assembler — probes env + zone modules independently; deleted after use
+ return f"""// generated by codeverse3d assembler — probes env + zone modules independently; deleted after use
import * as THREE from 'three';
const ZONES = [
{entries}
@@ -484,12 +495,12 @@ def probe_zone_modules(ws: Workspace, *, timeout_s: float = 90.0, sun_azimuth_de
``sun_azimuth_deg`` is given the driver also fits overview + per-group
cameras from the measured bboxes (``camera_specs``).
"""
- from codeverse.spatial.render_scene import run_scene_script
+ from codeverse3d.spatial.render_scene import run_scene_script
zones = zone_files(ws)
probe_path = ws.root / PROBE_REL
probe_path.write_text(_probe_module(zones, glb_assets(ws)))
- from codeverse.spatial.render_scene import probe_env_args
+ from codeverse3d.spatial.render_scene import probe_env_args
args = ["--ws", str(ws.root), "--scene", PROBE_REL, "--timeout-ms", str(int(timeout_s * 1000))]
args += probe_env_args() # the zone probe sees the same settle/repair/exposure world as the renders
@@ -576,7 +587,7 @@ def render_scene_js(zones: list[str], cameras: list[CameraPlan], glbs: list[str]
on_error="console.error(`[assets] failed to load ${a.url}: ${e && e.message}`);",
)
cams = "\n".join(_cam_literal(c) for c in cameras)
- return f"""// src/scene.js — ASSEMBLED BY THE HARNESS (codeverse assembler). Edit zones/env instead; re-assembly overwrites this file.
+ return f"""// src/scene.js — ASSEMBLED BY THE HARNESS (codeverse3d assembler). Edit zones/env instead; re-assembly overwrites this file.
import * as THREE from 'three';
{env_import}
{imports}
@@ -688,9 +699,9 @@ class SceneThreeJsRuntime(RuntimeDocs):
for before judging a threejs asset; nothing defined it until 2026-09-07, so no
procedural asset was ever judged (0 of 860 recorded) while every hero was.
"""
- from codeverse.conventions import OBJECT_VIEWS_QUICK
- from codeverse.spatial.node import run_node, runtime_js_dir
- from codeverse.spatial.render import RenderError, render_glb
+ from codeverse3d.conventions import OBJECT_VIEWS_QUICK
+ from codeverse3d.spatial.node import run_node, runtime_js_dir
+ from codeverse3d.spatial.render import RenderError, render_glb
snake, pascal = to_snake(name), to_pascal(name)
tmp = ws.artifacts / "asset_export" / snake
@@ -712,7 +723,7 @@ class SceneThreeJsRuntime(RuntimeDocs):
"""Probe + shader preflight (one browser boot); ok iff the module loads
and no shader errors. External contract unchanged: the same two
GateReports land under ``artifacts/gates/``."""
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
t0 = time.time()
tmo = min(float(timeout_s or get_settings().limits.build_timeout_s), 120.0)
@@ -758,17 +769,17 @@ class SceneThreeJsRuntime(RuntimeDocs):
def _ablation_into(ws: Workspace, census: dict[str, Any]) -> None:
- """Opt-in (``CV3D_ABLATION``): measure how much of the frame the scene's custom
+ """Opt-in (``C3D_ABLATION``): measure how much of the frame the scene's custom
shaders actually paint and put it in the census, so the scene gates and the
judge context read "the effect contributes N%" instead of "N custom materials
compiled". A second browser boot with its own renders, hence a switch and not
a default; instrumentation never breaks a build, so every failure is swallowed
into a census note. Details: ``spatial/ablation.py``."""
- from codeverse.config import env_flag
+ from codeverse3d.config import env_flag
- if not env_flag("CV3D_ABLATION", False):
+ if not env_flag("C3D_ABLATION", False):
return
- from codeverse.spatial.ablation import CENSUS_FIELD, ablate_scene
+ from codeverse3d.spatial.ablation import CENSUS_FIELD, ablate_scene
try:
report = ablate_scene(ws, frames=False)
@@ -785,9 +796,9 @@ def _probe_and_preflight(ws: Workspace, *, timeout_s: float) -> tuple[GateReport
when the scene never boots the preflight is skipped, matching the old
two-call behaviour (a failed-empty shader gate).
"""
- from codeverse.contracts.artifacts import GateFinding
- from codeverse.spatial.probes import PROBE_GATE, SHADER_GATE, probe_report, shader_report
- from codeverse.spatial.render_scene import SceneRenderError, probe_env_args, run_scene_script
+ from codeverse3d.contracts.artifacts import GateFinding
+ from codeverse3d.spatial.probes import PROBE_GATE, SHADER_GATE, probe_report, shader_report
+ from codeverse3d.spatial.render_scene import SceneRenderError, probe_env_args, run_scene_script
t0 = time.time()
args = [
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/assets/pine_tree.js b/harness/codeverse3d/languages/scene_threejs/starter/src/assets/pine_tree.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/assets/pine_tree.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/assets/pine_tree.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/assets/windmill.js b/harness/codeverse3d/languages/scene_threejs/starter/src/assets/windmill.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/assets/windmill.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/assets/windmill.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/env.js b/harness/codeverse3d/languages/scene_threejs/starter/src/env.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/env.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/env.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/accumulation.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/accumulation.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/accumulation.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/accumulation.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/aging.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/aging.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/aging.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/aging.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/atmosphere.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/atmosphere.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/atmosphere.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/atmosphere.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/building.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/building.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/building.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/building.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/canopy.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/canopy.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/canopy.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/canopy.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/caustics.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/caustics.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/caustics.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/caustics.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/celestial.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/celestial.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/celestial.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/celestial.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/cloth.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/cloth.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/cloth.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/cloth.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/clouds.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/clouds.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/clouds.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/clouds.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/damp.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/damp.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/damp.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/damp.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/dapple.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/dapple.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/dapple.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/dapple.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/environment.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/environment.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/environment.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/environment.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/figure.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/figure.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/figure.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/figure.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/finish.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/finish.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/finish.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/finish.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/flock.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/flock.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/flock.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/flock.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/flowers.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/flowers.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/flowers.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/flowers.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/foliage_shade.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/foliage_shade.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/foliage_shade.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/foliage_shade.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/godrays.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/godrays.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/godrays.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/godrays.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/grass.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/grass.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/grass.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/grass.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/instancing.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/instancing.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/instancing.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/instancing.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/materials.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/materials.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/materials.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/materials.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/merge.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/merge.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/merge.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/merge.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/neon.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/neon.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/neon.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/neon.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/noise.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/noise.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/noise.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/noise.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/place.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/place.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/place.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/place.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/rain.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/rain.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/rain.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/rain.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/roadway.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/roadway.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/roadway.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/roadway.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/shader.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/shader.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/shader.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/shader.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/signage.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/signage.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/signage.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/signage.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/sky.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/sky.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/sky.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/sky.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/smalllife.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/smalllife.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/smalllife.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/smalllife.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/strata.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/strata.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/strata.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/strata.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/submerged.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/submerged.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/submerged.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/submerged.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/surface_wear.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/surface_wear.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/surface_wear.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/surface_wear.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/terrain.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/terrain.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/terrain.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/terrain.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/terrain_shade.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/terrain_shade.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/terrain_shade.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/terrain_shade.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/urban.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/urban.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/urban.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/urban.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/veils.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/veils.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/veils.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/veils.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/water.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/water.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/water.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/water.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/watermist.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/watermist.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/watermist.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/watermist.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/waterside.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/waterside.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/waterside.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/waterside.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/wetground.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/wetground.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/wetground.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/wetground.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/windows.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/windows.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/windows.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/windows.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/lib/woodland.js b/harness/codeverse3d/languages/scene_threejs/starter/src/lib/woodland.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/lib/woodland.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/lib/woodland.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/scene.js b/harness/codeverse3d/languages/scene_threejs/starter/src/scene.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/scene.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/scene.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/shaders/sky.js b/harness/codeverse3d/languages/scene_threejs/starter/src/shaders/sky.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/shaders/sky.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/shaders/sky.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/shaders/water.js b/harness/codeverse3d/languages/scene_threejs/starter/src/shaders/water.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/shaders/water.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/shaders/water.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/zones/meadow.js b/harness/codeverse3d/languages/scene_threejs/starter/src/zones/meadow.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/zones/meadow.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/zones/meadow.js
diff --git a/harness/codeverse/languages/scene_threejs/starter/src/zones/pondside.js b/harness/codeverse3d/languages/scene_threejs/starter/src/zones/pondside.js
similarity index 100%
rename from harness/codeverse/languages/scene_threejs/starter/src/zones/pondside.js
rename to harness/codeverse3d/languages/scene_threejs/starter/src/zones/pondside.js
diff --git a/harness/codeverse/languages/threejs/__init__.py b/harness/codeverse3d/languages/threejs/__init__.py
similarity index 96%
rename from harness/codeverse/languages/threejs/__init__.py
rename to harness/codeverse3d/languages/threejs/__init__.py
index 51dce1b2..7de983c8 100644
--- a/harness/codeverse/languages/threejs/__init__.py
+++ b/harness/codeverse3d/languages/threejs/__init__.py
@@ -9,24 +9,24 @@ import time
from pathlib import Path
from typing import Any
-from codeverse.config import get_settings
-from codeverse.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
-from codeverse.contracts.common import ENTRY_FILE, Language
-from codeverse.contracts.plan import Plan, StaticPlan
-from codeverse.conventions import to_pascal, to_snake
-from codeverse.languages._common import BUILD_TIMEOUT
-from codeverse.languages._docs import RuntimeDocs
-from codeverse.languages._js_lint import (
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
+from codeverse3d.contracts.common import ENTRY_FILE, Language
+from codeverse3d.contracts.plan import Plan, StaticPlan
+from codeverse3d.conventions import to_pascal, to_snake
+from codeverse3d.languages._common import BUILD_TIMEOUT
+from codeverse3d.languages._docs import RuntimeDocs
+from codeverse3d.languages._js_lint import (
ImportKind,
ImportVerdict,
check_imports,
)
-from codeverse.languages._js_lint import (
+from codeverse3d.languages._js_lint import (
node_check_syntax as check_syntax, # module-level name: tests monkeypatch it
)
-from codeverse.proc import read_json_or_none
-from codeverse.spatial.node import NodeError, NodeResult, run_node, runtime_js_dir
-from codeverse.workspace import Workspace
+from codeverse3d.proc import read_json_or_none
+from codeverse3d.spatial.node import NodeError, NodeResult, run_node, runtime_js_dir
+from codeverse3d.workspace import Workspace
# ===================================================================== templates
PACKAGE_JSON = '{ "type": "module", "private": true }\n'
diff --git a/harness/codeverse/languages/urdf/__init__.py b/harness/codeverse3d/languages/urdf/__init__.py
similarity index 98%
rename from harness/codeverse/languages/urdf/__init__.py
rename to harness/codeverse3d/languages/urdf/__init__.py
index 337da0e8..cdad310a 100644
--- a/harness/codeverse/languages/urdf/__init__.py
+++ b/harness/codeverse3d/languages/urdf/__init__.py
@@ -18,22 +18,22 @@ from typing import Any
import numpy as np
-from codeverse.config import Settings, get_settings
-from codeverse.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
-from codeverse.contracts.common import ENTRY_FILE, Language, MimicSpec, mimic_issues
-from codeverse.contracts.plan import ArticulatedPlan, JointPlan, PartPlan, Plan
-from codeverse.conventions import to_snake
-from codeverse.languages._ast_lint import (
+from codeverse3d.config import Settings, get_settings
+from codeverse3d.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
+from codeverse3d.contracts.common import ENTRY_FILE, Language, MimicSpec, mimic_issues
+from codeverse3d.contracts.plan import ArticulatedPlan, JointPlan, PartPlan, Plan
+from codeverse3d.conventions import to_snake
+from codeverse3d.languages._ast_lint import (
BASE_FORBIDDEN_IMPORTS,
check_imports,
describe_parse_failure,
dotted,
safe_parse,
)
-from codeverse.languages._common import BUILD_TIMEOUT, ProcResult, read_json_file
-from codeverse.languages._docs import RuntimeDocs
-from codeverse.proc import run_subprocess, tail
-from codeverse.spatial.joints import (
+from codeverse3d.languages._common import BUILD_TIMEOUT, ProcResult, read_json_file
+from codeverse3d.languages._docs import RuntimeDocs
+from codeverse3d.proc import run_subprocess, tail
+from codeverse3d.spatial.joints import (
UrdfError,
load_urdf,
pose_samples,
@@ -41,7 +41,7 @@ from codeverse.spatial.joints import (
sweep_findings,
urdf_to_glb,
)
-from codeverse.spatial.joints_model import (
+from codeverse3d.spatial.joints_model import (
JOINT_TYPES,
MOVABLE_TYPES,
RESERVED_LINK_NAMES,
@@ -50,7 +50,7 @@ from codeverse.spatial.joints_model import (
invert_transform,
matrix_to_rpy,
)
-from codeverse.workspace import ArtifactStage, Workspace
+from codeverse3d.workspace import ArtifactStage, Workspace
# ===================================================================== consistency
#: this gate's own name — a bare ``GATE`` here was shadowed by the lint section's
@@ -474,7 +474,7 @@ def lint_model_text(text: str, link_names: list[str], *, label: str = MODEL_REL)
out = v.findings
def _import_finding(kind: str, mod: str, line: int) -> GateFinding:
- if mod == "codeverse":
+ if mod == "codeverse3d":
return _f(Severity.ERROR, f"line {line}: model.py must not import the harness", target=label, fix="Raw bpy only.", line=line)
if kind == "forbidden":
return _f(Severity.ERROR, f"line {line}: import of '{mod}' is not allowed in model.py", target=label,
@@ -817,7 +817,7 @@ class UrdfBlenderRuntime(RuntimeDocs):
# 2. Blender wrapper (writes build.json / census.json / meshes/ into the staging dir)
blender = settings.resolve_blender()
if not blender:
- return fail("BlenderNotFound", "no Blender binary (set CV3D_BINARIES__BLENDER)", file="", census=census)
+ return fail("BlenderNotFound", "no Blender binary (set C3D_BINARIES__BLENDER)", file="", census=census)
build_json, census_json = stage.path("build.json"), stage.path("census.json")
proc = _run_blender(blender, ws, stage.staging_dir, timeout_s, settings.limits.bpy_rlimit_gb)
if proc.timed_out:
diff --git a/harness/codeverse/languages/urdf/wrappers/run_bpy_links.py b/harness/codeverse3d/languages/urdf/wrappers/run_bpy_links.py
similarity index 99%
rename from harness/codeverse/languages/urdf/wrappers/run_bpy_links.py
rename to harness/codeverse3d/languages/urdf/wrappers/run_bpy_links.py
index ee9a55e5..81c9510b 100644
--- a/harness/codeverse/languages/urdf/wrappers/run_bpy_links.py
+++ b/harness/codeverse3d/languages/urdf/wrappers/run_bpy_links.py
@@ -12,7 +12,7 @@
holds URDF-frame coordinates, NOT glTF Y-up), then
5. writes ``<out>/census.json`` and ``<out>/build.json``.
-Self-contained on purpose: Blender's bundled python cannot import ``codeverse``.
+Self-contained on purpose: Blender's bundled python cannot import ``codeverse3d``.
"""
import argparse
diff --git a/harness/codeverse/models/__init__.py b/harness/codeverse3d/models/__init__.py
similarity index 55%
rename from harness/codeverse/models/__init__.py
rename to harness/codeverse3d/models/__init__.py
index b950118b..ee0ad66a 100644
--- a/harness/codeverse/models/__init__.py
+++ b/harness/codeverse3d/models/__init__.py
@@ -1,6 +1,6 @@
"""ChatModel backends (API). Use ``get_chat_model("gemini:gemini-3.7-flash")``."""
-from codeverse.models.base import ChatModel
-from codeverse.models.registry import get_chat_model, parse_model_id
+from codeverse3d.models.base import ChatModel
+from codeverse3d.models.registry import get_chat_model, parse_model_id
__all__ = ["ChatModel", "get_chat_model", "parse_model_id"]
diff --git a/harness/codeverse/models/anthropic.py b/harness/codeverse3d/models/anthropic.py
similarity index 96%
rename from harness/codeverse/models/anthropic.py
rename to harness/codeverse3d/models/anthropic.py
index bdb6e799..c43d5867 100644
--- a/harness/codeverse/models/anthropic.py
+++ b/harness/codeverse3d/models/anthropic.py
@@ -18,16 +18,16 @@ import time
from collections.abc import Callable
from typing import Any
-from codeverse.contracts.chat import (
+from codeverse3d.contracts.chat import (
ChatMessage,
ChatRequest,
ChatResponse,
ImagePart,
TextPart,
)
-from codeverse.contracts.common import Usage
-from codeverse.models.base import ModelError
-from codeverse.models.parts import (
+from codeverse3d.contracts.common import Usage
+from codeverse3d.models.base import ModelError
+from codeverse3d.models.parts import (
Stopwatch,
attempt_timeout_s,
classify_sdk_exception,
@@ -35,9 +35,9 @@ from codeverse.models.parts import (
retry_budget_s,
with_logged_retries,
)
-from codeverse.models.pricing import cache_write_surcharge, estimate_cost
-from codeverse.models.retry import MAX_WAIT_S, cause_for
-from codeverse.models.schema_utils import (
+from codeverse3d.models.pricing import cache_write_surcharge, estimate_cost
+from codeverse3d.models.retry import MAX_WAIT_S, cause_for
+from codeverse3d.models.schema_utils import (
JsonParseError,
parse_json_lenient,
strip_control_chars,
@@ -236,7 +236,7 @@ class AnthropicModel:
if self._client is None:
import anthropic
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
key = self._api_key or get_settings().anthropic_api_key
if not key:
diff --git a/harness/codeverse/models/base.py b/harness/codeverse3d/models/base.py
similarity index 94%
rename from harness/codeverse/models/base.py
rename to harness/codeverse3d/models/base.py
index 2a6cd99e..49570028 100644
--- a/harness/codeverse/models/base.py
+++ b/harness/codeverse3d/models/base.py
@@ -4,8 +4,8 @@ from __future__ import annotations
from typing import Protocol, runtime_checkable
-from codeverse.contracts.chat import ChatRequest, ChatResponse
-from codeverse.contracts.common import Usage
+from codeverse3d.contracts.chat import ChatRequest, ChatResponse
+from codeverse3d.contracts.common import Usage
@runtime_checkable
diff --git a/harness/codeverse/models/gemini.py b/harness/codeverse3d/models/gemini.py
similarity index 97%
rename from harness/codeverse/models/gemini.py
rename to harness/codeverse3d/models/gemini.py
index 31920e57..bfb5e03d 100644
--- a/harness/codeverse/models/gemini.py
+++ b/harness/codeverse3d/models/gemini.py
@@ -28,18 +28,18 @@ from google.genai import errors as genai_errors
from google.genai import types
from PIL import Image
-from codeverse.contracts.chat import (
+from codeverse3d.contracts.chat import (
ChatMessage,
ChatRequest,
ChatResponse,
ImagePart,
TextPart,
)
-from codeverse.contracts.common import Usage
-from codeverse.models.base import ModelError
-from codeverse.models.parts import Stopwatch, image_bytes
-from codeverse.models.pricing import estimate_cost, per_image_usd
-from codeverse.models.retry import (
+from codeverse3d.contracts.common import Usage
+from codeverse3d.models.base import ModelError
+from codeverse3d.models.parts import Stopwatch, image_bytes
+from codeverse3d.models.pricing import estimate_cost, per_image_usd
+from codeverse3d.models.retry import (
MAX_WAIT_S,
RETRY_DEADLINE_S,
KeyPool,
@@ -51,8 +51,8 @@ from codeverse.models.retry import (
request_tokens,
rotate_with_retries,
)
-from codeverse.models.retry import storm_gate as storm_gate_for
-from codeverse.models.schema_utils import JsonParseError, parse_json_lenient, to_gemini_schema
+from codeverse3d.models.retry import storm_gate as storm_gate_for
+from codeverse3d.models.schema_utils import JsonParseError, parse_json_lenient, to_gemini_schema
#: INTERFACES.md mapping; ``off`` → 0 where the model allows it
THINKING_BUDGET: dict[str, int] = {"off": 0, "low": 1024, "medium": 4096, "high": 16384}
@@ -216,7 +216,7 @@ HTTP_TIMEOUT_FLOOR_S = 20.0
#: rest of the retry budget intact, while a legitimate 930 s plan streams tokens
#: continuously (145 tok/s p50, audit 2026-08-27) and is bounded only by its
#: attempt budget. Generous vs the longest silent prefix we allow for thinking
-#: before the first chunk. ``CV3D_STREAM=0`` restores the buffered call.
+#: before the first chunk. ``C3D_STREAM=0`` restores the buffered call.
STREAM_STALL_S = 300.0
_pools: dict[tuple[str, ...], KeyPool] = {}
@@ -250,7 +250,7 @@ def shared_pool(
def _rate() -> Any:
- from codeverse.config import Rate, get_settings
+ from codeverse3d.config import Rate, get_settings
try:
return get_settings().rate
@@ -259,7 +259,7 @@ def _rate() -> Any:
def _default_timeout_s() -> float:
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
try:
return float(get_settings().model_timeout_s)
@@ -268,7 +268,7 @@ def _default_timeout_s() -> float:
def _default_keys() -> list[str]:
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
return list(get_settings().gemini_api_keys)
@@ -360,15 +360,15 @@ def _ipv4_client_args() -> dict[str, Any]:
"""Bind the sync transport to IPv4. Every one of tonight's five hung reads sat
on an IPv6 destination (2001:4860::/32) with the response headers never arriving
— the WSL2 IPv6 path drops these silently and a buffered read then holds the
- socket for the whole attempt budget. ``CV3D_IPV4=0`` restores the default
+ socket for the whole attempt budget. ``C3D_IPV4=0`` restores the default
(dual-stack) resolution."""
- if os.environ.get("CV3D_IPV4", "1") == "0":
+ if os.environ.get("C3D_IPV4", "1") == "0":
return {}
return {"transport": httpx.HTTPTransport(local_address="0.0.0.0")}
def _streaming_enabled() -> bool:
- return os.environ.get("CV3D_STREAM", "1") != "0"
+ return os.environ.get("C3D_STREAM", "1") != "0"
def _drain_stream(
@@ -565,7 +565,7 @@ class GeminiModel:
still reports through it. Imported lazily: the models package must not import
the cost package at module level (``cost.ledger`` imports ``models.pricing``)."""
try:
- from codeverse.cost.context import AttemptRecord, attempt_sink
+ from codeverse3d.cost.context import AttemptRecord, attempt_sink
sink = attempt_sink()
except Exception: # pragma: no cover - accounting must never break a call
@@ -682,8 +682,8 @@ def _record(usage: Usage, n_images: int) -> None:
"""One ledger row per image batch (the image model is not a ChatModel, so
``models.registry`` cannot meter it). Never raises."""
try:
- from codeverse.cost import record_call
- from codeverse.cost.types import Role, Stage
+ from codeverse3d.cost import record_call
+ from codeverse3d.cost.types import Role, Stage
record_call(usage, stage=Stage.TEXTURE, role=Role.IMAGE, label="image",
backend="gemini-image", model=usage.model, n_calls=max(1, n_images))
diff --git a/harness/codeverse/models/health.py b/harness/codeverse3d/models/health.py
similarity index 95%
rename from harness/codeverse/models/health.py
rename to harness/codeverse3d/models/health.py
index 77672ce6..411817a1 100644
--- a/harness/codeverse/models/health.py
+++ b/harness/codeverse3d/models/health.py
@@ -73,7 +73,7 @@ def probe(
timeout_s: float = DEFAULT_TIMEOUT_S,
) -> Health:
"""One workload-sized call (``PROBE_TOKENS``) per sampled key, in parallel, no retries. Never raises."""
- from codeverse.contracts.chat import ChatMessage, ChatRequest
+ from codeverse3d.contracts.chat import ChatMessage, ChatRequest
prompt = _probe_prompt()
@@ -118,14 +118,14 @@ def _bare_model(model_id: str, timeout_s: float):
if not name:
provider, name = "gemini", provider
if provider == "gemini":
- from codeverse.models.gemini import GeminiModel
+ from codeverse3d.models.gemini import GeminiModel
return GeminiModel(name, timeout_s=timeout_s, max_attempts=1, storm_attempts=0)
if provider == "anthropic":
- from codeverse.models.anthropic import AnthropicModel
+ from codeverse3d.models.anthropic import AnthropicModel
return AnthropicModel(name, timeout_s=timeout_s, max_attempts=1)
- from codeverse.models.openai import OpenAIModel # everything else, as models.registry does
+ from codeverse3d.models.openai import OpenAIModel # everything else, as models.registry does
return OpenAIModel(name, timeout_s=timeout_s, max_attempts=1)
@@ -140,7 +140,7 @@ def _bare_model(model_id: str, timeout_s: float):
#: ``python -m bench.ab_plan`` (driver + two 16-in-flight cell children) was invisible to
#: :func:`pool_budget`, which reported "headroom 48" on a machine already sitting at the
#: 64 knee — the exact over-launch ``docs/COST.md`` §23 exists to prevent.
-_MODULES = ("codeverse.cli.main", "bench.ab_plan", "bench.compare_backends", "bench.run_bench")
+_MODULES = ("codeverse3d.cli.main", "bench.ab_plan", "bench.compare_backends", "bench.run_bench")
_SCRIPTS = ("compare_backends.py", "run_bench.py", "ab_plan.py")
_ENTRY_POINTS = ("3dcode", "3dcodeverse")
@@ -156,7 +156,7 @@ def _program_slots(args: list[str]) -> list[str]:
into ``<python> /…/bin/3dcode make …`` and the entry point lands at argv[1] — argv[0]
is the interpreter. Measured 2026-08-25: 21 live ``3dcode make`` processes, and
:func:`pool_budget` reported "0 siblings, headroom 64". Every lane then sized
- ``CV3D_MAX_IN_FLIGHT`` off a number that was structurally always 64, which is the
+ ``C3D_MAX_IN_FLIGHT`` off a number that was structurally always 64, which is the
over-launch ``docs/COST.md`` §23 exists to prevent.
* Too wide (scanning all of argv) fails the other way: ``--runs-dir
/home/yipeng/3dcodeverse`` has basename ``3dcodeverse``, so a shell or an editor
@@ -232,7 +232,7 @@ def _is_delegating_driver(args: list[str]) -> bool:
#: the measured per-process knee (docs/COST.md §20); the machine-wide budget is the same
#: number, because the provider sees one machine's worth of traffic, not one process's
POOL_KNEE = 64
-_CAP_ENVS = ("CV3D_MAX_IN_FLIGHT", "CV3D_RATE__MAX_IN_FLIGHT")
+_CAP_ENVS = ("C3D_MAX_IN_FLIGHT", "C3D_RATE__MAX_IN_FLIGHT")
def _cap_of(pid_dir: Path) -> int:
@@ -247,7 +247,7 @@ def _cap_of(pid_dir: Path) -> int:
A negative cap is charged the same way rather than being SUBTRACTED from ``used``,
where it grew the headroom it should have shrunk.
"""
- from codeverse.config import Rate
+ from codeverse3d.config import Rate
default = Rate().max_in_flight
try:
diff --git a/harness/codeverse/models/openai.py b/harness/codeverse3d/models/openai.py
similarity index 96%
rename from harness/codeverse/models/openai.py
rename to harness/codeverse3d/models/openai.py
index d81ed912..d507cd71 100644
--- a/harness/codeverse/models/openai.py
+++ b/harness/codeverse3d/models/openai.py
@@ -13,16 +13,16 @@ import time
from collections.abc import Callable
from typing import Any
-from codeverse.contracts.chat import (
+from codeverse3d.contracts.chat import (
ChatMessage,
ChatRequest,
ChatResponse,
ImagePart,
TextPart,
)
-from codeverse.contracts.common import Usage
-from codeverse.models.base import ModelError
-from codeverse.models.parts import (
+from codeverse3d.contracts.common import Usage
+from codeverse3d.models.base import ModelError
+from codeverse3d.models.parts import (
Stopwatch,
attempt_timeout_s,
classify_sdk_exception,
@@ -30,9 +30,9 @@ from codeverse.models.parts import (
retry_budget_s,
with_logged_retries,
)
-from codeverse.models.pricing import estimate_cost
-from codeverse.models.retry import MAX_WAIT_S, cause_for
-from codeverse.models.schema_utils import (
+from codeverse3d.models.pricing import estimate_cost
+from codeverse3d.models.retry import MAX_WAIT_S, cause_for
+from codeverse3d.models.schema_utils import (
JsonParseError,
inline_refs,
parse_json_lenient,
@@ -192,7 +192,7 @@ class OpenAIModel:
if self._client is None:
import openai
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
s = get_settings()
key = self._api_key or s.openai_api_key
diff --git a/harness/codeverse/models/parts.py b/harness/codeverse3d/models/parts.py
similarity index 96%
rename from harness/codeverse/models/parts.py
rename to harness/codeverse3d/models/parts.py
index 37f75abd..25f8901b 100644
--- a/harness/codeverse/models/parts.py
+++ b/harness/codeverse3d/models/parts.py
@@ -8,8 +8,8 @@ import time
from pathlib import Path
from typing import Any
-from codeverse.contracts.chat import ImagePart
-from codeverse.models.base import ModelError
+from codeverse3d.contracts.chat import ImagePart
+from codeverse3d.models.base import ModelError
_MIME_BY_SUFFIX = {
".png": "image/png",
@@ -99,7 +99,7 @@ SDK_TIMEOUT_FLOOR_S = 20.0
def retry_budget_s(max_wait_s: float | None) -> float:
"""The budget for ONE logical call: the caller clips ``RETRY_DEADLINE_S``, never extends it."""
- from codeverse.models.retry import RETRY_DEADLINE_S
+ from codeverse3d.models.retry import RETRY_DEADLINE_S
return RETRY_DEADLINE_S if max_wait_s is None else min(RETRY_DEADLINE_S, float(max_wait_s))
@@ -126,7 +126,7 @@ def with_logged_retries(attempt: Any, *, label: str, model: str, attempts: int,
their waits included; ``None`` = ``RETRY_DEADLINE_S``); the backoff itself is
``attempts`` x <= ``MAX_WAIT_S`` (3 s), the round-trips are the real cost.
"""
- from codeverse.models.retry import with_retries
+ from codeverse3d.models.retry import with_retries
def on_retry(n: int, exc: BaseException, delay: float) -> None:
log.warning("%s %s attempt %d/%d failed (%s); retrying in %.1fs",
diff --git a/harness/codeverse/models/pricing.py b/harness/codeverse3d/models/pricing.py
similarity index 99%
rename from harness/codeverse/models/pricing.py
rename to harness/codeverse3d/models/pricing.py
index aaab6ebf..c39764e9 100644
--- a/harness/codeverse/models/pricing.py
+++ b/harness/codeverse3d/models/pricing.py
@@ -20,7 +20,7 @@ import logging
import threading
from dataclasses import dataclass
-from codeverse.contracts.common import Usage
+from codeverse3d.contracts.common import Usage
log = logging.getLogger(__name__)
diff --git a/harness/codeverse/models/registry.py b/harness/codeverse3d/models/registry.py
similarity index 72%
rename from harness/codeverse/models/registry.py
rename to harness/codeverse3d/models/registry.py
index 56bf1644..9e40fe66 100644
--- a/harness/codeverse/models/registry.py
+++ b/harness/codeverse3d/models/registry.py
@@ -1,15 +1,15 @@
"""Model id parsing + factory. Ids: ``<provider>:<model>``.
-Every model handed out here is wrapped by ``codeverse.cost.instrument`` so each
+Every model handed out here is wrapped by ``codeverse3d.cost.instrument`` so each
call lands in the cost ledger (the run's ``telemetry/cost.jsonl`` when a run is
-active, otherwise a per-process log). ``CV3D_COST_LEDGER=off`` /
+active, otherwise a per-process log). ``C3D_COST_LEDGER=off`` /
``Settings.cost_ledger=false`` returns the bare model."""
from __future__ import annotations
from functools import lru_cache
-from codeverse.models.base import ChatModel
+from codeverse3d.models.base import ChatModel
PROVIDERS = ("gemini", "anthropic", "openai")
@@ -26,7 +26,7 @@ def parse_model_id(model_id: str) -> tuple[str, str]:
@lru_cache(maxsize=32)
def get_chat_model(model_id: str) -> ChatModel:
"""The (metered) ChatModel for ``<provider>:<model>``."""
- from codeverse.cost.instrument import metered_chat_model
+ from codeverse3d.cost.instrument import metered_chat_model
return metered_chat_model(_build_chat_model(model_id))
@@ -34,13 +34,13 @@ def get_chat_model(model_id: str) -> ChatModel:
def _build_chat_model(model_id: str) -> ChatModel:
provider, model = parse_model_id(model_id)
if provider == "gemini":
- from codeverse.models.gemini import GeminiModel
+ from codeverse3d.models.gemini import GeminiModel
return GeminiModel(model)
if provider == "anthropic":
- from codeverse.models.anthropic import AnthropicModel
+ from codeverse3d.models.anthropic import AnthropicModel
return AnthropicModel(model)
- from codeverse.models.openai import OpenAIModel
+ from codeverse3d.models.openai import OpenAIModel
return OpenAIModel(model)
diff --git a/harness/codeverse/models/retry.py b/harness/codeverse3d/models/retry.py
similarity index 99%
rename from harness/codeverse/models/retry.py
rename to harness/codeverse3d/models/retry.py
index 3d07064e..5b9f773d 100644
--- a/harness/codeverse/models/retry.py
+++ b/harness/codeverse3d/models/retry.py
@@ -49,7 +49,7 @@ from dataclasses import dataclass, field
from functools import partial
from typing import TYPE_CHECKING, Any, Literal
-from codeverse.contracts.chat import ChatRequest, ImagePart, TextPart
+from codeverse3d.contracts.chat import ChatRequest, ImagePart, TextPart
Outcome = Literal["ok", "429", "5xx", "error", "dead", "skip"]
@@ -595,7 +595,7 @@ RETRY_DEADLINE_S = 1800.0 # owner 2026-08-27: generous time, zero timeouts (wa
DEFAULT_HEDGE = 2
if TYPE_CHECKING: # pragma: no cover
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
log = logging.getLogger(__name__)
@@ -769,7 +769,7 @@ def rotate_with_retries[T](
key, and a 503 last).
``tokens_hint`` is the estimated **prompt** tokens of the pending call
- (:func:`codeverse.models.retry.request_tokens`); the pool reserves them in
+ (:func:`codeverse3d.models.retry.request_tokens`); the pool reserves them in
the per-key TPM bucket at ``acquire`` and the reservation is reconciled
against the provider's real count on ``report``, so a 200 k-token judge call
and a 2 k-token caption are scheduled differently.
@@ -1105,7 +1105,7 @@ def request_parts(request: ChatRequest) -> tuple[list[str], int]:
def request_tokens(request: ChatRequest, *, model_id: str = "", image_px: int = DEFAULT_IMAGE_PX) -> int:
"""Estimated **input** tokens of ``request`` (never negative)."""
- from codeverse.cost.guard import estimate_call
+ from codeverse3d.cost.guard import estimate_call
blocks, images = request_parts(request)
est = estimate_call(model_id or "gemini:unknown", prompt=blocks, n_images=images, image_px=image_px)
diff --git a/harness/codeverse/models/schema_utils.py b/harness/codeverse3d/models/schema_utils.py
similarity index 98%
rename from harness/codeverse/models/schema_utils.py
rename to harness/codeverse3d/models/schema_utils.py
index a1166cbe..270b7244 100644
--- a/harness/codeverse/models/schema_utils.py
+++ b/harness/codeverse3d/models/schema_utils.py
@@ -30,9 +30,9 @@ from typing import Any
from pydantic import BaseModel, ValidationError
-from codeverse.contracts.chat import ChatMessage, ChatRequest, ImagePart
-from codeverse.contracts.common import Usage
-from codeverse.models.base import ModelError
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest, ImagePart
+from codeverse3d.contracts.common import Usage
+from codeverse3d.models.base import ModelError
# keys Gemini's Schema type rejects or ignores
_GEMINI_DROP = {
diff --git a/harness/codeverse/orchestrator.py b/harness/codeverse3d/orchestrator.py
similarity index 98%
rename from harness/codeverse/orchestrator.py
rename to harness/codeverse3d/orchestrator.py
index 4beda6be..08b1e7c2 100644
--- a/harness/codeverse/orchestrator.py
+++ b/harness/codeverse3d/orchestrator.py
@@ -22,15 +22,15 @@ from typing import Any, Literal, TypeVar
from pydantic import BaseModel, Field, ValidationError
-from codeverse.contracts.artifacts import GateReport, Judgment
-from codeverse.contracts.common import Budget, Usage
-from codeverse.contracts.plan import AcceptanceItem, Plan
-from codeverse.contracts.run import RoundRecord, RunStatus
-from codeverse.conventions import to_snake
-from codeverse.cost.billing import bills_usd
-from codeverse.cost.routing import JUDGE_NOISE
-from codeverse.proc import EventLog
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import GateReport, Judgment
+from codeverse3d.contracts.common import Budget, Usage
+from codeverse3d.contracts.plan import AcceptanceItem, Plan
+from codeverse3d.contracts.run import RoundRecord, RunStatus
+from codeverse3d.conventions import to_snake
+from codeverse3d.cost.billing import bills_usd
+from codeverse3d.cost.routing import JUDGE_NOISE
+from codeverse3d.proc import EventLog
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -456,7 +456,7 @@ KIND_FOR_STRATEGY: dict[str, str] = {"same": "refine", "switch": REWRITE_KIND, "
#: σ for a judge that is not in the measured table: the default judge's
#: (``gemini-3.1-pro-preview``, ``Settings.default_judge``), because that is what
#: an unnamed judge almost always is. Calibrate a new judge
-#: (``python -m codeverse.addons.calibration``) and add it to JUDGE_NOISE rather
+#: (``python -m codeverse3d.addons.calibration``) and add it to JUDGE_NOISE rather
#: than tuning the multipliers around it.
DEFAULT_JUDGE_SIGMA = 0.030
@@ -465,7 +465,7 @@ def judge_sigma(judge_model: str = "", *, default: float = DEFAULT_JUDGE_SIGMA)
"""Measured score noise (std) of one judge model.
The numbers come from ``judges/calibration.py`` (n=3 on the e2e rounds) and
- are tabulated ONCE in :data:`codeverse.cost.routing.JUDGE_NOISE`; this is
+ are tabulated ONCE in :data:`codeverse3d.cost.routing.JUDGE_NOISE`; this is
the only reader in the orchestrator. Accepts a bare model name or a full
backend id (``gemini:gemini-3.1-pro-preview``)."""
name = (judge_model or "").strip().split(":")[-1]
@@ -822,7 +822,7 @@ class BudgetGuard:
MeteredChatModel) is the one writer, one priced row per real call. Until
2026-08-29 this method kept a second, aggregate writer that fired whenever no
``run_ledger()`` was active — a direct ``track.run()`` without the CLI, or any
- run with ``CV3D_COST_LEDGER=off`` (the guard's own ledger was opened
+ run with ``C3D_COST_LEDGER=off`` (the guard's own ledger was opened
unconditionally), so ledger-off runs of that era carry one unpriced row per
charge; a ledger-off run now writes nothing at all. Role, label and round
went with that second writer (2026-08-30): ``CallCost`` carries all three per
diff --git a/harness/codeverse/proc.py b/harness/codeverse3d/proc.py
similarity index 99%
rename from harness/codeverse/proc.py
rename to harness/codeverse3d/proc.py
index 84df98e5..9868cac0 100644
--- a/harness/codeverse/proc.py
+++ b/harness/codeverse3d/proc.py
@@ -4,7 +4,7 @@ One home for the run-a-child-process pattern (own process group, wall-clock
timeout, group kill, bounded captured output — :class:`ManagedProcess` and its
thin wrapper :func:`run_subprocess`), the tmp+rename JSON write, and the
tolerant JSON / JSONL readers every "best effort" side-car consumer needs. Peer
-of ``workspace.py``; stdlib-only — imports nothing from ``codeverse`` so wrappers,
+of ``workspace.py``; stdlib-only — imports nothing from ``codeverse3d`` so wrappers,
spatial helpers and agents can all use it without layering back-edges.
"""
diff --git a/harness/codeverse/prompts/__init__.py b/harness/codeverse3d/prompts/__init__.py
similarity index 100%
rename from harness/codeverse/prompts/__init__.py
rename to harness/codeverse3d/prompts/__init__.py
diff --git a/harness/codeverse/prompts/blender/contract.md b/harness/codeverse3d/prompts/blender/contract.md
similarity index 99%
rename from harness/codeverse/prompts/blender/contract.md
rename to harness/codeverse3d/prompts/blender/contract.md
index a5d6cd9e..be49203b 100644
--- a/harness/codeverse/prompts/blender/contract.md
+++ b/harness/codeverse3d/prompts/blender/contract.md
@@ -31,7 +31,7 @@
## Allowed imports · forbidden calls · limits
* Imports: `bpy`, `bmesh`, `mathutils`, `math`, `random`, `itertools`, `functools`, `typing`,
`dataclasses`, and your own `parts.*` modules. Nothing else (no numpy loops over vertices,
- no os/sys/subprocess/urllib/socket/pathlib, no `import codeverse`).
+ no os/sys/subprocess/urllib/socket/pathlib, no `import codeverse3d`).
* Forbidden: `bpy.ops.render.*`, `bpy.ops.export_*`, `bpy.ops.import_*`, `bpy.ops.wm.*`,
`bpy.ops.image.*`, `bpy.ops.screen.*`, `bpy.ops.view3d.*`, `bpy.data.libraries`,
`bpy.app.timers`, `open(`, `exec(`, `eval(`, `__import__`, camera / light creation, `input()`,
diff --git a/harness/codeverse/prompts/blender/cookbook.md b/harness/codeverse3d/prompts/blender/cookbook.md
similarity index 100%
rename from harness/codeverse/prompts/blender/cookbook.md
rename to harness/codeverse3d/prompts/blender/cookbook.md
diff --git a/harness/codeverse/prompts/blender/system.md b/harness/codeverse3d/prompts/blender/system.md
similarity index 100%
rename from harness/codeverse/prompts/blender/system.md
rename to harness/codeverse3d/prompts/blender/system.md
diff --git a/harness/codeverse/prompts/cadquery/contract.md b/harness/codeverse3d/prompts/cadquery/contract.md
similarity index 98%
rename from harness/codeverse/prompts/cadquery/contract.md
rename to harness/codeverse3d/prompts/cadquery/contract.md
index 6cc44738..5dfb79ef 100644
--- a/harness/codeverse/prompts/cadquery/contract.md
+++ b/harness/codeverse3d/prompts/cadquery/contract.md
@@ -24,7 +24,7 @@
## Allowed imports
`cadquery` (as `cq`), `math`, `itertools`, `functools`, `typing`, `dataclasses`.
No `OCP`/`OCC` direct calls, no numpy, no file I/O, no `cq.exporters`, no
-`cq.importers`, no `import codeverse`.
+`cq.importers`, no `import codeverse3d`.
## Forbidden / limits
* No `show_object`, `exporters.export`, `open(`, `os`, `sys`, `subprocess`, network.
diff --git a/harness/codeverse/prompts/cadquery/cookbook.md b/harness/codeverse3d/prompts/cadquery/cookbook.md
similarity index 100%
rename from harness/codeverse/prompts/cadquery/cookbook.md
rename to harness/codeverse3d/prompts/cadquery/cookbook.md
diff --git a/harness/codeverse/prompts/cadquery/system.md b/harness/codeverse3d/prompts/cadquery/system.md
similarity index 100%
rename from harness/codeverse/prompts/cadquery/system.md
rename to harness/codeverse3d/prompts/cadquery/system.md
diff --git a/harness/codeverse/prompts/catalog.py b/harness/codeverse3d/prompts/catalog.py
similarity index 84%
rename from harness/codeverse/prompts/catalog.py
rename to harness/codeverse3d/prompts/catalog.py
index 302d89d9..22436cfd 100644
--- a/harness/codeverse/prompts/catalog.py
+++ b/harness/codeverse3d/prompts/catalog.py
@@ -9,9 +9,9 @@ fourth, which is why the articulated agent received no cookbook at all for weeks
The split this file encodes (owner, 2026-08-28):
* **PROMPT material** — everything the harness writes and the harness puts in a message.
- It lives here, under ``codeverse/prompts/``, and modules load it on demand through this
+ It lives here, under ``codeverse3d/prompts/``, and modules load it on demand through this
catalog rather than building paths.
-* **AGENT-read bundles** — ``codeverse/skills/cv3d-*/`` (SKILL.md + references/ + a
+* **AGENT-read bundles** — ``codeverse3d/skills/c3d-*/`` (SKILL.md + references/ + a
``_claims`` file pinning its numbers to live constants). The agent decides to read
those; the harness only materialises them.
@@ -20,7 +20,7 @@ A file that tries to be both is the thing this split exists to prevent.
from __future__ import annotations
-from codeverse.contracts.common import Language
+from codeverse3d.contracts.common import Language
#: ``Language.URDF_BLENDER`` is ``"urdf_blender"``; its prompts live in ``prompts/urdf/``.
#: THE mapping — importing this is the only supported way to ask.
diff --git a/harness/codeverse/prompts/glsl_shader/contract.md b/harness/codeverse3d/prompts/glsl_shader/contract.md
similarity index 100%
rename from harness/codeverse/prompts/glsl_shader/contract.md
rename to harness/codeverse3d/prompts/glsl_shader/contract.md
diff --git a/harness/codeverse/prompts/glsl_shader/cookbook.md b/harness/codeverse3d/prompts/glsl_shader/cookbook.md
similarity index 99%
rename from harness/codeverse/prompts/glsl_shader/cookbook.md
rename to harness/codeverse3d/prompts/glsl_shader/cookbook.md
index acf2c154..f015ee51 100644
--- a/harness/codeverse/prompts/glsl_shader/cookbook.md
+++ b/harness/codeverse3d/prompts/glsl_shader/cookbook.md
@@ -189,7 +189,7 @@ the horizon → `vec3(0, 0, 0.012)` at the zenith), ADD light, tonemap `c / (1 +
luminance 0.06–0.15 is a night scene; 0.3 with no black pixels is a wash. Haze and bloom go on the light, not on
the frame. Stars: `stars()` above (two layers, keep 0.2–0.3); city lights: `bokehSoft()` above. Complete verified
example (aurora over a ridge with a frozen lake, three curtains, 5 k stars, blurred reflection): the harness ships
-it as `codeverse/prompts/glsl_shader/examples/aurora_ridge.frag`.
+it as `codeverse3d/prompts/glsl_shader/examples/aurora_ridge.frag`.
## Feedback trails (u_prev) and Buffer A
```glsl
diff --git a/harness/codeverse/prompts/glsl_shader/examples/aurora_ridge.frag b/harness/codeverse3d/prompts/glsl_shader/examples/aurora_ridge.frag
similarity index 100%
rename from harness/codeverse/prompts/glsl_shader/examples/aurora_ridge.frag
rename to harness/codeverse3d/prompts/glsl_shader/examples/aurora_ridge.frag
diff --git a/harness/codeverse/prompts/glsl_shader/system.md b/harness/codeverse3d/prompts/glsl_shader/system.md
similarity index 100%
rename from harness/codeverse/prompts/glsl_shader/system.md
rename to harness/codeverse3d/prompts/glsl_shader/system.md
diff --git a/harness/codeverse/prompts/opengl_python/contract.md b/harness/codeverse3d/prompts/opengl_python/contract.md
similarity index 100%
rename from harness/codeverse/prompts/opengl_python/contract.md
rename to harness/codeverse3d/prompts/opengl_python/contract.md
diff --git a/harness/codeverse/prompts/opengl_python/cookbook.md b/harness/codeverse3d/prompts/opengl_python/cookbook.md
similarity index 100%
rename from harness/codeverse/prompts/opengl_python/cookbook.md
rename to harness/codeverse3d/prompts/opengl_python/cookbook.md
diff --git a/harness/codeverse/prompts/opengl_python/system.md b/harness/codeverse3d/prompts/opengl_python/system.md
similarity index 100%
rename from harness/codeverse/prompts/opengl_python/system.md
rename to harness/codeverse3d/prompts/opengl_python/system.md
diff --git a/harness/codeverse/prompts/scene_threejs/asset.md b/harness/codeverse3d/prompts/scene_threejs/asset.md
similarity index 100%
rename from harness/codeverse/prompts/scene_threejs/asset.md
rename to harness/codeverse3d/prompts/scene_threejs/asset.md
diff --git a/harness/codeverse/prompts/scene_threejs/contract.md b/harness/codeverse3d/prompts/scene_threejs/contract.md
similarity index 98%
rename from harness/codeverse/prompts/scene_threejs/contract.md
rename to harness/codeverse3d/prompts/scene_threejs/contract.md
index ee5fa285..dd9ba02a 100644
--- a/harness/codeverse/prompts/scene_threejs/contract.md
+++ b/harness/codeverse3d/prompts/scene_threejs/contract.md
@@ -46,7 +46,7 @@ version of the same effect — the want → call table ships with this brief.
The harness renders scene pictures THROUGH a post chain (GTAO + a selective emissive
bloom + a grade that is identity unless `scene.userData.grade` is set). So emissives DO
-bloom: author them at peak 1.5–4, not 20. `--no-post` / `CV3D_POST=0` turns it off.
+bloom: author them at peak 1.5–4, not 20. `--no-post` / `C3D_POST=0` turns it off.
## Forbidden
`document.*` / `window.*` except `window.innerWidth` — never create canvases or DOM;
diff --git a/harness/codeverse/prompts/scene_threejs/cookbook.md b/harness/codeverse3d/prompts/scene_threejs/cookbook.md
similarity index 100%
rename from harness/codeverse/prompts/scene_threejs/cookbook.md
rename to harness/codeverse3d/prompts/scene_threejs/cookbook.md
diff --git a/harness/codeverse/prompts/scene_threejs/effects_catalog.md b/harness/codeverse3d/prompts/scene_threejs/effects_catalog.md
similarity index 100%
rename from harness/codeverse/prompts/scene_threejs/effects_catalog.md
rename to harness/codeverse3d/prompts/scene_threejs/effects_catalog.md
diff --git a/harness/codeverse/prompts/scene_threejs/glsl_cookbook.md b/harness/codeverse3d/prompts/scene_threejs/glsl_cookbook.md
similarity index 100%
rename from harness/codeverse/prompts/scene_threejs/glsl_cookbook.md
rename to harness/codeverse3d/prompts/scene_threejs/glsl_cookbook.md
diff --git a/harness/codeverse/prompts/scene_threejs/system.md b/harness/codeverse3d/prompts/scene_threejs/system.md
similarity index 100%
rename from harness/codeverse/prompts/scene_threejs/system.md
rename to harness/codeverse3d/prompts/scene_threejs/system.md
diff --git a/harness/codeverse/prompts/sections.py b/harness/codeverse3d/prompts/sections.py
similarity index 100%
rename from harness/codeverse/prompts/sections.py
rename to harness/codeverse3d/prompts/sections.py
diff --git a/harness/codeverse/prompts/system/harness_contract.md b/harness/codeverse3d/prompts/system/harness_contract.md
similarity index 98%
rename from harness/codeverse/prompts/system/harness_contract.md
rename to harness/codeverse3d/prompts/system/harness_contract.md
index 53b5f55f..78741b25 100644
--- a/harness/codeverse/prompts/system/harness_contract.md
+++ b/harness/codeverse3d/prompts/system/harness_contract.md
@@ -15,7 +15,7 @@ artifacts/ harness output (object.glb, renders/, gates/, measurement.json). RE
* Never write under `artifacts/`, never create files outside `src/` and `public/`.
* Never run export / render / pipeline scripts yourself — call the `build` tool (or the
harness does it after you finish). Do not copy wrapper scripts into `src/`.
-* Never import from `codeverse`, the harness, `runtime_js/`, or any helper SDK. Allowed
+* Never import from `codeverse3d`, the harness, `runtime_js/`, or any helper SDK. Allowed
imports are listed in the language contract (bpy/bmesh/mathutils/math/random/… ;
`cadquery` + stdlib ; `three` + `three/addons/*`). Nothing else. No network, no DOM,
no file I/O from generated code (except `src/robot.urdf` for the articulated track).
diff --git a/harness/codeverse/prompts/system/role_asset.j2 b/harness/codeverse3d/prompts/system/role_asset.j2
similarity index 100%
rename from harness/codeverse/prompts/system/role_asset.j2
rename to harness/codeverse3d/prompts/system/role_asset.j2
diff --git a/harness/codeverse/prompts/system/role_detail.j2 b/harness/codeverse3d/prompts/system/role_detail.j2
similarity index 100%
rename from harness/codeverse/prompts/system/role_detail.j2
rename to harness/codeverse3d/prompts/system/role_detail.j2
diff --git a/harness/codeverse/prompts/system/role_repair.j2 b/harness/codeverse3d/prompts/system/role_repair.j2
similarity index 100%
rename from harness/codeverse/prompts/system/role_repair.j2
rename to harness/codeverse3d/prompts/system/role_repair.j2
diff --git a/harness/codeverse/prompts/system/role_scope.j2 b/harness/codeverse3d/prompts/system/role_scope.j2
similarity index 100%
rename from harness/codeverse/prompts/system/role_scope.j2
rename to harness/codeverse3d/prompts/system/role_scope.j2
diff --git a/harness/codeverse/prompts/system/singleshot_format.md b/harness/codeverse3d/prompts/system/singleshot_format.md
similarity index 100%
rename from harness/codeverse/prompts/system/singleshot_format.md
rename to harness/codeverse3d/prompts/system/singleshot_format.md
diff --git a/harness/codeverse/prompts/texturing/material_plan.md b/harness/codeverse3d/prompts/texturing/material_plan.md
similarity index 100%
rename from harness/codeverse/prompts/texturing/material_plan.md
rename to harness/codeverse3d/prompts/texturing/material_plan.md
diff --git a/harness/codeverse/prompts/texturing/scene_pack.md b/harness/codeverse3d/prompts/texturing/scene_pack.md
similarity index 100%
rename from harness/codeverse/prompts/texturing/scene_pack.md
rename to harness/codeverse3d/prompts/texturing/scene_pack.md
diff --git a/harness/codeverse/prompts/threejs/contract.md b/harness/codeverse3d/prompts/threejs/contract.md
similarity index 98%
rename from harness/codeverse/prompts/threejs/contract.md
rename to harness/codeverse3d/prompts/threejs/contract.md
index 7ab60c29..2b759e11 100644
--- a/harness/codeverse/prompts/threejs/contract.md
+++ b/harness/codeverse3d/prompts/threejs/contract.md
@@ -35,7 +35,7 @@ import { mergeGeometries } from 'three/addons/utils/BufferGeometryUtils.js';
import { RoundedBoxGeometry } from 'three/addons/geometries/RoundedBoxGeometry.js';
```
No CDN URLs, no `three/examples/js/*`, no `three/webgpu`, no `three/tsl`, no npm
-packages other than `three`, no `import ... from 'codeverse'` / `../runtime_js`.
+packages other than `three`, no `import ... from 'codeverse3d'` / `../runtime_js`.
## Forbidden / limits
* No `document`, `window`, `canvas`, `Image`, `TextureLoader`, `fetch`, `XMLHttpRequest`,
diff --git a/harness/codeverse/prompts/threejs/cookbook.md b/harness/codeverse3d/prompts/threejs/cookbook.md
similarity index 100%
rename from harness/codeverse/prompts/threejs/cookbook.md
rename to harness/codeverse3d/prompts/threejs/cookbook.md
diff --git a/harness/codeverse/prompts/threejs/system.md b/harness/codeverse3d/prompts/threejs/system.md
similarity index 100%
rename from harness/codeverse/prompts/threejs/system.md
rename to harness/codeverse3d/prompts/threejs/system.md
diff --git a/harness/codeverse/prompts/tracks/assemble_static.j2 b/harness/codeverse3d/prompts/tracks/assemble_static.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/assemble_static.j2
rename to harness/codeverse3d/prompts/tracks/assemble_static.j2
diff --git a/harness/codeverse/prompts/tracks/brief_object.j2 b/harness/codeverse3d/prompts/tracks/brief_object.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/brief_object.j2
rename to harness/codeverse3d/prompts/tracks/brief_object.j2
diff --git a/harness/codeverse/prompts/tracks/detail_object.j2 b/harness/codeverse3d/prompts/tracks/detail_object.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/detail_object.j2
rename to harness/codeverse3d/prompts/tracks/detail_object.j2
diff --git a/harness/codeverse/prompts/tracks/generate_articulated.j2 b/harness/codeverse3d/prompts/tracks/generate_articulated.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/generate_articulated.j2
rename to harness/codeverse3d/prompts/tracks/generate_articulated.j2
diff --git a/harness/codeverse/prompts/tracks/generate_graphics.j2 b/harness/codeverse3d/prompts/tracks/generate_graphics.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/generate_graphics.j2
rename to harness/codeverse3d/prompts/tracks/generate_graphics.j2
diff --git a/harness/codeverse/prompts/tracks/generate_static.j2 b/harness/codeverse3d/prompts/tracks/generate_static.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/generate_static.j2
rename to harness/codeverse3d/prompts/tracks/generate_static.j2
diff --git a/harness/codeverse/prompts/tracks/generate_static_part.j2 b/harness/codeverse3d/prompts/tracks/generate_static_part.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/generate_static_part.j2
rename to harness/codeverse3d/prompts/tracks/generate_static_part.j2
diff --git a/harness/codeverse/prompts/tracks/plan_articulated.j2 b/harness/codeverse3d/prompts/tracks/plan_articulated.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/plan_articulated.j2
rename to harness/codeverse3d/prompts/tracks/plan_articulated.j2
diff --git a/harness/codeverse/prompts/tracks/plan_graphics.j2 b/harness/codeverse3d/prompts/tracks/plan_graphics.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/plan_graphics.j2
rename to harness/codeverse3d/prompts/tracks/plan_graphics.j2
diff --git a/harness/codeverse/prompts/tracks/plan_scene.j2 b/harness/codeverse3d/prompts/tracks/plan_scene.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/plan_scene.j2
rename to harness/codeverse3d/prompts/tracks/plan_scene.j2
diff --git a/harness/codeverse/prompts/tracks/plan_static.j2 b/harness/codeverse3d/prompts/tracks/plan_static.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/plan_static.j2
rename to harness/codeverse3d/prompts/tracks/plan_static.j2
diff --git a/harness/codeverse/prompts/tracks/plan_zone_layout.j2 b/harness/codeverse3d/prompts/tracks/plan_zone_layout.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/plan_zone_layout.j2
rename to harness/codeverse3d/prompts/tracks/plan_zone_layout.j2
diff --git a/harness/codeverse/prompts/tracks/refine_graphics.j2 b/harness/codeverse3d/prompts/tracks/refine_graphics.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/refine_graphics.j2
rename to harness/codeverse3d/prompts/tracks/refine_graphics.j2
diff --git a/harness/codeverse/prompts/tracks/refine_object.j2 b/harness/codeverse3d/prompts/tracks/refine_object.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/refine_object.j2
rename to harness/codeverse3d/prompts/tracks/refine_object.j2
diff --git a/harness/codeverse/prompts/tracks/repair.j2 b/harness/codeverse3d/prompts/tracks/repair.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/repair.j2
rename to harness/codeverse3d/prompts/tracks/repair.j2
diff --git a/harness/codeverse/prompts/tracks/scene_asset.j2 b/harness/codeverse3d/prompts/tracks/scene_asset.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/scene_asset.j2
rename to harness/codeverse3d/prompts/tracks/scene_asset.j2
diff --git a/harness/codeverse/prompts/tracks/scene_compose.j2 b/harness/codeverse3d/prompts/tracks/scene_compose.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/scene_compose.j2
rename to harness/codeverse3d/prompts/tracks/scene_compose.j2
diff --git a/harness/codeverse/prompts/tracks/scene_env.j2 b/harness/codeverse3d/prompts/tracks/scene_env.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/scene_env.j2
rename to harness/codeverse3d/prompts/tracks/scene_env.j2
diff --git a/harness/codeverse/prompts/tracks/scene_refine.j2 b/harness/codeverse3d/prompts/tracks/scene_refine.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/scene_refine.j2
rename to harness/codeverse3d/prompts/tracks/scene_refine.j2
diff --git a/harness/codeverse/prompts/tracks/scene_zone.j2 b/harness/codeverse3d/prompts/tracks/scene_zone.j2
similarity index 100%
rename from harness/codeverse/prompts/tracks/scene_zone.j2
rename to harness/codeverse3d/prompts/tracks/scene_zone.j2
diff --git a/harness/codeverse/prompts/urdf/contract.md b/harness/codeverse3d/prompts/urdf/contract.md
similarity index 100%
rename from harness/codeverse/prompts/urdf/contract.md
rename to harness/codeverse3d/prompts/urdf/contract.md
diff --git a/harness/codeverse/prompts/urdf/cookbook.md b/harness/codeverse3d/prompts/urdf/cookbook.md
similarity index 100%
rename from harness/codeverse/prompts/urdf/cookbook.md
rename to harness/codeverse3d/prompts/urdf/cookbook.md
diff --git a/harness/codeverse/prompts/urdf/system.md b/harness/codeverse3d/prompts/urdf/system.md
similarity index 100%
rename from harness/codeverse/prompts/urdf/system.md
rename to harness/codeverse3d/prompts/urdf/system.md
diff --git a/harness/codeverse/record/__init__.py b/harness/codeverse3d/record/__init__.py
similarity index 93%
rename from harness/codeverse/record/__init__.py
rename to harness/codeverse3d/record/__init__.py
index e97d27c4..56ec43b1 100644
--- a/harness/codeverse/record/__init__.py
+++ b/harness/codeverse3d/record/__init__.py
@@ -6,5 +6,5 @@
* ``telemetry`` the settings / environment a record carries
* ``_git`` reading the workspace's own git history (files at a round's commit)
-Turning a tree of finished runs into a dataset, a gallery or a cost report is ``codeverse.addons``.
+Turning a tree of finished runs into a dataset, a gallery or a cost report is ``codeverse3d.addons``.
"""
diff --git a/harness/codeverse/record/_git.py b/harness/codeverse3d/record/_git.py
similarity index 96%
rename from harness/codeverse/record/_git.py
rename to harness/codeverse3d/record/_git.py
index 444b1697..b31d345a 100644
--- a/harness/codeverse/record/_git.py
+++ b/harness/codeverse3d/record/_git.py
@@ -7,9 +7,9 @@ of the run's repository (``ls-tree`` / ``cat-file`` / ``diff``).
Read-only is not the same as safe: a run's ``.git/config`` and ``.gitattributes``
were writable by the agent, and git config can name a program to RUN. Every
invocation therefore goes through the same sanitised argv + environment the
-workspace's own git uses (:data:`~codeverse.workspace.GIT_SAFE_FLAGS`,
-:func:`~codeverse.workspace.git_safe_env`), and every content-rendering command
-adds :data:`~codeverse.workspace.GIT_SAFE_DIFF_FLAGS`.
+workspace's own git uses (:data:`~codeverse3d.workspace.GIT_SAFE_FLAGS`,
+:func:`~codeverse3d.workspace.git_safe_env`), and every content-rendering command
+adds :data:`~codeverse3d.workspace.GIT_SAFE_DIFF_FLAGS`.
"""
from __future__ import annotations
@@ -18,7 +18,7 @@ import subprocess
from collections.abc import Collection
from pathlib import Path
-from codeverse.workspace import GIT_SAFE_DIFF_FLAGS, GIT_SAFE_FLAGS, Workspace, git_safe_env
+from codeverse3d.workspace import GIT_SAFE_DIFF_FLAGS, GIT_SAFE_FLAGS, Workspace, git_safe_env
_GIT_TIMEOUT_S = 60
diff --git a/harness/codeverse/record/deliverable.py b/harness/codeverse3d/record/deliverable.py
similarity index 96%
rename from harness/codeverse/record/deliverable.py
rename to harness/codeverse3d/record/deliverable.py
index 5498f8c8..3b45abbd 100644
--- a/harness/codeverse/record/deliverable.py
+++ b/harness/codeverse3d/record/deliverable.py
@@ -26,11 +26,11 @@ import shutil
from datetime import UTC, datetime
from pathlib import Path
-from codeverse.contracts.common import ENTRY_FILE, Language
-from codeverse.contracts.run import DeliverableFile, RoundRecord, RunDeliverable, RunRecord
-from codeverse.proc import sha256_file, write_json_atomic
-from codeverse.record import _git
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.common import ENTRY_FILE, Language
+from codeverse3d.contracts.run import DeliverableFile, RoundRecord, RunDeliverable, RunRecord
+from codeverse3d.proc import sha256_file, write_json_atomic
+from codeverse3d.record import _git
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -170,7 +170,7 @@ def build_deliverable(ws: Workspace, record: RunRecord, *, clean: bool = True) -
Idempotent: the folder is rebuilt from scratch every time, so a second call
on an unchanged run produces byte-identical content."""
- from codeverse.record.record import best_round_record
+ from codeverse3d.record.record import best_round_record
rnd = best_round_record(record)
previous = load_deliverable(ws) if ws.deliverable_manifest_path.is_file() else None
diff --git a/harness/codeverse/record/record.py b/harness/codeverse3d/record/record.py
similarity index 96%
rename from harness/codeverse/record/record.py
rename to harness/codeverse3d/record/record.py
index 843307e7..ceb525d1 100644
--- a/harness/codeverse/record/record.py
+++ b/harness/codeverse3d/record/record.py
@@ -21,12 +21,12 @@ from functools import lru_cache
from pathlib import Path
from typing import Any, NamedTuple
-from codeverse import __version__
-from codeverse.config import get_settings
-from codeverse.contracts.common import Usage
-from codeverse.contracts.run import RoundRecord, RunId, RunRecord
-from codeverse.proc import version_line
-from codeverse.workspace import Workspace
+from codeverse3d import __version__
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.common import Usage
+from codeverse3d.contracts.run import RoundRecord, RunId, RunRecord
+from codeverse3d.proc import version_line
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -102,7 +102,7 @@ def environment_versions() -> dict[str, str]:
s = get_settings()
env: dict[str, str] = {
"python": platform.python_version(),
- "codeverse": __version__,
+ "codeverse3d": __version__,
"platform": platform.platform(),
"host": platform.node(),
"harness_git_sha": _harness_git_sha(),
@@ -124,7 +124,7 @@ def effective_judgment(r: RoundRecord):
j = r.judgment
if j is None:
return None
- from codeverse.judges.rubrics import is_degraded
+ from codeverse3d.judges.rubrics import is_degraded
return None if is_degraded(j) else j
@@ -259,8 +259,8 @@ def package_run(ws: Workspace, record: RunRecord) -> None:
Best-effort by contract: a packaging failure is logged and the run still
gets its ``record.json`` (the old layout is always enough to read a run)."""
- from codeverse.record.deliverable import build_deliverable
- from codeverse.record.telemetry import build_telemetry
+ from codeverse3d.record.deliverable import build_deliverable
+ from codeverse3d.record.telemetry import build_telemetry
try:
ws.ensure_layout()
@@ -343,7 +343,7 @@ def battery_label(root: Path | str) -> str:
def run_id_for(root: Path | str, run_dir: Path) -> RunId:
- """The :class:`~codeverse.contracts.run.RunId` of ``run_dir`` as found under scan
+ """The :class:`~codeverse3d.contracts.run.RunId` of ``run_dir`` as found under scan
root ``root``. Identity is minted HERE, at discovery time — the Workspace
resolves its root and forgets where the scan started, so it cannot do this."""
return RunId(battery=battery_label(root), rel=run_dir.relative_to(Path(root)).as_posix())
diff --git a/harness/codeverse/record/telemetry.py b/harness/codeverse3d/record/telemetry.py
similarity index 92%
rename from harness/codeverse/record/telemetry.py
rename to harness/codeverse3d/record/telemetry.py
index 5629c336..5b19fcbb 100644
--- a/harness/codeverse/record/telemetry.py
+++ b/harness/codeverse3d/record/telemetry.py
@@ -7,7 +7,7 @@ Three files under ``<run>/telemetry/`` (see docs/RUN_LAYOUT.md):
hash, prompt & cookbook hashes, tool versions, harness git sha, key-pool size,
price-table hash, render + limit settings.
* ``usage.jsonl`` — one priced row per model call. The rows are
- ``codeverse.cost`` ledger rows (``CallCost``): the live ledger of the run when
+ ``codeverse3d.cost`` ledger rows (``CallCost``): the live ledger of the run when
it has one, else ``cost.reconstruct.reconstruct_run`` rebuilds them from the
trajectories, judge verdicts and priced events. There is exactly one ledger
in the harness; this bucket only gives it a stable place in the run directory.
@@ -29,8 +29,8 @@ import os
from pathlib import Path
from typing import Any
-from codeverse.contracts.common import TRACK_INFO
-from codeverse.contracts.run import (
+from codeverse3d.contracts.common import TRACK_INFO
+from codeverse3d.contracts.run import (
CostSummary,
RoleSettings,
RunRecord,
@@ -38,10 +38,10 @@ from codeverse.contracts.run import (
SettingsSnapshot,
StageCost,
)
-from codeverse.cost.ledger import LEDGER_NAME
-from codeverse.cost.types import Stage
-from codeverse.proc import read_json_or_none, write_json_atomic, write_text_atomic
-from codeverse.workspace import Workspace
+from codeverse3d.cost.ledger import LEDGER_NAME
+from codeverse3d.cost.types import Stage
+from codeverse3d.proc import read_json_or_none, write_json_atomic, write_text_atomic
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -50,7 +50,7 @@ log = logging.getLogger(__name__)
def price_table_version() -> str:
"""Content hash of the USD price table — the run was costed with THIS table."""
try:
- from codeverse.models.pricing import PRICES
+ from codeverse3d.models.pricing import PRICES
payload = json.dumps(
{f"{p}/{m}": [v.input, v.output, v.cached, v.cache_write, v.approximate] for (p, m), v in sorted(PRICES.items())},
@@ -77,7 +77,7 @@ def _sig_default(fn: Any, name: str) -> Any:
def _judge_defaults() -> dict[str, Any]:
try:
- from codeverse.judges.vlm_judge import VlmJudge
+ from codeverse3d.judges.vlm_judge import VlmJudge
except Exception: # pragma: no cover - sub-package missing
return {}
init = VlmJudge.__init__
@@ -87,7 +87,7 @@ def _judge_defaults() -> dict[str, Any]:
def _planner_defaults() -> dict[str, Any]:
try:
- from codeverse.tracks.planner import plan
+ from codeverse3d.tracks.planner import plan
except Exception: # pragma: no cover
return {}
return {"temperature": _sig_default(plan, "temperature")}
@@ -118,7 +118,7 @@ def rubric_hash(name: str) -> str:
if not name:
return ""
try:
- from codeverse.judges.rubrics import load_rubric
+ from codeverse3d.judges.rubrics import load_rubric
return load_rubric(name).content_hash()
except Exception as e: # unknown rubric / package missing
@@ -162,7 +162,7 @@ def settings_snapshot(record: RunRecord, *, key_pool_size: int | None = None) ->
limits: dict[str, Any] = {}
keys = key_pool_size
try:
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
s = get_settings()
render = s.render.model_dump(mode="json")
@@ -182,7 +182,7 @@ def settings_snapshot(record: RunRecord, *, key_pool_size: int | None = None) ->
rubric_hash=rubric_hash(rubric),
prompt_hashes=dict(record.prompt_hashes),
tool_versions={k: v for k, v in env.items() if k in _TOOL_KEYS},
- harness_version=env.get("codeverse", ""),
+ harness_version=env.get("codeverse3d", ""),
harness_git_sha=env.get("harness_git_sha", ""),
key_pool_size=int(keys or 0),
price_table_version=price_table_version(),
@@ -192,10 +192,10 @@ def settings_snapshot(record: RunRecord, *, key_pool_size: int | None = None) ->
_TOOL_KEYS = frozenset({"python", "platform", "host", "blender", "blender_path", "node", "three",
- "chrome", "puppeteer", "codeverse", "harness_git_sha"})
+ "chrome", "puppeteer", "codeverse3d", "harness_git_sha"})
-# --------------------------------------------------------------------------- the ledger (codeverse.cost)
+# --------------------------------------------------------------------------- the ledger (codeverse3d.cost)
def stage_order() -> tuple[str, ...]:
return tuple(s.value for s in Stage)
@@ -209,16 +209,16 @@ def ledger_rows(ws: Workspace) -> tuple[list[dict[str, Any]], str]:
"""Priced per-call rows for the run → ``(rows, source)``.
Source is ``live`` (the run's own ``cost_ledger.jsonl``), ``reconstructed``
- (rebuilt by ``codeverse.cost.reconstruct`` from trajectories / verdicts /
+ (rebuilt by ``codeverse3d.cost.reconstruct`` from trajectories / verdicts /
events) or ``unavailable``. The cost package owns the pricing and the
double-counting rules — this bucket never re-implements them."""
try:
live = live_ledger_path(ws)
if live.is_file():
- from codeverse.cost.ledger import load_ledger
+ from codeverse3d.cost.ledger import load_ledger
return [r.model_dump(mode="json") for r in load_ledger(live)], "live"
- from codeverse.cost.reconstruct import reconstruct_run
+ from codeverse3d.cost.reconstruct import reconstruct_run
return [r.model_dump(mode="json") for r in reconstruct_run(ws.root).rows], "reconstructed"
except Exception as e: # noqa: BLE001 - accounting must never fail a run
diff --git a/harness/codeverse/reference.py b/harness/codeverse3d/reference.py
similarity index 98%
rename from harness/codeverse/reference.py
rename to harness/codeverse3d/reference.py
index eccd3607..6c243fb1 100644
--- a/harness/codeverse/reference.py
+++ b/harness/codeverse3d/reference.py
@@ -5,7 +5,7 @@ synthesizes a neutral studio product shot of the brief with the image model,
**validates** it (``check_plausible`` + ``decide``), and hands it to the rest of the harness as the
fidelity anchor: the planner sees it, the generator's ``compare_reference`` tool
sees it, the silhouette gate measures against it and the judge scores against it
-(:class:`codeverse.judges.vlm_judge.ReferenceJudge`).
+(:class:`codeverse3d.judges.vlm_judge.ReferenceJudge`).
A synthesized reference is never ground truth and is marked as such everywhere
(``attach`` / ``SYNTH_NOTE``): the user's own ``--image`` wins, the brief's dimensions win,
@@ -13,12 +13,12 @@ and a picture that fails the gate is discarded rather than chased.
Entry points::
- from codeverse.reference import synth_reference, attach, compare
+ from codeverse3d.reference import synth_reference, attach, compare
refset = synth_reference(spec, model=chat, image_model=img, n_views=2)
spec, why = attach(spec, refset)
-(Collapsed from the 11-file ``codeverse/reference/`` package on 2026-08-28: its
+(Collapsed from the 11-file ``codeverse3d/reference/`` package on 2026-08-28: its
entire external surface was two call sites — ``cli/main.ground_spec`` and the
judge's lazy ``compare``/``proportions`` imports.)
"""
@@ -35,12 +35,12 @@ from typing import Any, Literal
from pydantic import BaseModel, Field, ValidationError
-from codeverse.config import get_settings
-from codeverse.contracts.chat import ImagePart
-from codeverse.contracts.common import Usage
-from codeverse.contracts.spec import ReferenceImage, Spec
-from codeverse.models.schema_utils import ask_structured
-from codeverse.prompts import prompt_hash
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.chat import ImagePart
+from codeverse3d.contracts.common import Usage
+from codeverse3d.contracts.spec import ReferenceImage, Spec
+from codeverse3d.models.schema_utils import ask_structured
+from codeverse3d.prompts import prompt_hash
log = logging.getLogger(__name__)
@@ -486,7 +486,7 @@ def dimension_conflict(spec: Spec, image: Path | str) -> dict[str, Any]:
return out
low, high = rng
try:
- from codeverse.spatial.silhouette import silhouette_aspect
+ from codeverse3d.spatial.silhouette import silhouette_aspect
got = float(silhouette_aspect(image))
except Exception as e: # noqa: BLE001 — an advisory check must never fail a run
@@ -907,13 +907,13 @@ def ground_spec(
def _chat_model(model_id: str) -> Any:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
return get_chat_model(model_id)
def _image_model(model_id: str = "") -> Any:
- from codeverse.models.gemini import DEFAULT_IMAGE_MODEL, GeminiImageModel
+ from codeverse3d.models.gemini import DEFAULT_IMAGE_MODEL, GeminiImageModel
return GeminiImageModel(model_id or DEFAULT_IMAGE_MODEL)
diff --git a/harness/codeverse/skills/__init__.py b/harness/codeverse3d/skills/__init__.py
similarity index 87%
rename from harness/codeverse/skills/__init__.py
rename to harness/codeverse3d/skills/__init__.py
index 7bf17f16..7b0dd168 100644
--- a/harness/codeverse/skills/__init__.py
+++ b/harness/codeverse3d/skills/__init__.py
@@ -17,11 +17,11 @@ silently empty for exactly this reason.
Public surface for the rest of the harness::
- from codeverse.skills import skills_for, attach_skills, probe_reads
+ from codeverse3d.skills import skills_for, attach_skills, probe_reads
``skills_for`` is pure and testable; ``attach_skills`` writes the routed bundles into a
workspace and returns what it wrote; ``probe_reads`` says afterwards which of them were
-actually opened. Everything is behind ``CV3D_SKILLS`` (default off).
+actually opened. Everything is behind ``C3D_SKILLS`` (default off).
"""
from __future__ import annotations
@@ -31,7 +31,7 @@ import os
from collections.abc import Iterator
from pathlib import Path
-from codeverse.skills.model import (
+from codeverse3d.skills.model import (
SKILL_FILE,
Skill,
SkillError,
@@ -43,7 +43,7 @@ from codeverse.skills.model import (
log = logging.getLogger(__name__)
#: point the library somewhere else (tests, the live CLI smoke, a private overlay)
-SKILLS_DIR_ENV = "CV3D_SKILLS_DIR"
+SKILLS_DIR_ENV = "C3D_SKILLS_DIR"
def skills_dir() -> Path:
@@ -54,7 +54,7 @@ def skills_dir() -> Path:
try:
from importlib.resources import files
- return Path(str(files("codeverse.skills")))
+ return Path(str(files("codeverse3d.skills")))
except Exception as e: # noqa: BLE001 — a namespace/zip install must not break a run
log.debug("importlib.resources could not resolve the skill library (%s); using __file__", e)
return Path(__file__).resolve().parent
@@ -104,10 +104,10 @@ def load_skill(name: str, root: Path | None = None) -> Skill:
return parse_skill(d)
-from codeverse.skills.config import skills_enabled, skills_max, skills_unverified # noqa: E402
-from codeverse.skills.materialize import attach_skills, materialize_skills # noqa: E402
-from codeverse.skills.registry import plan_signals, select, skills_for # noqa: E402
-from codeverse.skills.telemetry import probe_reads # noqa: E402
+from codeverse3d.skills.config import skills_enabled, skills_max, skills_unverified # noqa: E402
+from codeverse3d.skills.materialize import attach_skills, materialize_skills # noqa: E402
+from codeverse3d.skills.registry import plan_signals, select, skills_for # noqa: E402
+from codeverse3d.skills.telemetry import probe_reads # noqa: E402
__all__ = ["SKILLS_DIR_ENV", "Skill", "SkillError", "SkillRef", "all_skills", "attach_skills", "bundle_dirs",
"iter_skills", "load_skill", "materialize_skills", "plan_signals", "probe_reads", "select",
diff --git a/harness/codeverse/skills/_claims/cv3d-bbox-contract.toml b/harness/codeverse3d/skills/_claims/c3d-bbox-contract.toml
similarity index 72%
rename from harness/codeverse/skills/_claims/cv3d-bbox-contract.toml
rename to harness/codeverse3d/skills/_claims/c3d-bbox-contract.toml
index 5bcd0d38..f66cee96 100644
--- a/harness/codeverse/skills/_claims/cv3d-bbox-contract.toml
+++ b/harness/codeverse3d/skills/_claims/c3d-bbox-contract.toml
@@ -4,18 +4,18 @@
[[claim]]
key = "bbox_tolerance_m"
text = "1 cm"
-python = "codeverse.conventions:BBOX_TOLERANCE_M"
+python = "codeverse3d.conventions:BBOX_TOLERANCE_M"
scale = 100
format = "{:.0f} cm"
[[claim]]
key = "bbox_rel_tol"
text = "0.10"
-python = "codeverse.spatial.contract:REL_TOL"
+python = "codeverse3d.spatial.contract:REL_TOL"
format = "{:.2f}"
[[claim]]
key = "bbox_error_factor"
text = "3x"
-python = "codeverse.spatial.contract:ERROR_FACTOR"
+python = "codeverse3d.spatial.contract:ERROR_FACTOR"
format = "{:.0f}x"
diff --git a/harness/codeverse/skills/_claims/cv3d-glsl-craft.toml b/harness/codeverse3d/skills/_claims/c3d-glsl-craft.toml
similarity index 60%
rename from harness/codeverse/skills/_claims/cv3d-glsl-craft.toml
rename to harness/codeverse3d/skills/_claims/c3d-glsl-craft.toml
index 5d4ed086..d55c785a 100644
--- a/harness/codeverse/skills/_claims/cv3d-glsl-craft.toml
+++ b/harness/codeverse3d/skills/_claims/c3d-glsl-craft.toml
@@ -3,40 +3,40 @@
[[claim]]
key = "static_diff"
text = "0.002"
-python = "codeverse.spatial.frame_stats:STATIC_DIFF"
+python = "codeverse3d.spatial.frame_stats:STATIC_DIFF"
scale = 1
format = "{:.3f}"
[[claim]]
key = "flicker_diff"
text = "0.35"
-python = "codeverse.spatial.frame_stats:FLICKER_DIFF"
+python = "codeverse3d.spatial.frame_stats:FLICKER_DIFF"
scale = 1
format = "{:.2f}"
[[claim]]
key = "low_detail_edge"
text = "0.002"
-python = "codeverse.spatial.frame_stats:LOW_DETAIL_EDGE"
+python = "codeverse3d.spatial.frame_stats:LOW_DETAIL_EDGE"
scale = 1
format = "{:.3f}"
[[claim]]
key = "black_lum"
text = "0.03"
-python = "codeverse.spatial.frame_stats:BLACK_LUM"
+python = "codeverse3d.spatial.frame_stats:BLACK_LUM"
scale = 1
format = "{:.2f}"
[[claim]]
key = "blown_lum"
text = "0.98"
-python = "codeverse.spatial.frame_stats:BLOWN_LUM"
+python = "codeverse3d.spatial.frame_stats:BLOWN_LUM"
scale = 1
format = "{:.2f}"
[[claim]]
key = "duplicate_diff"
text = "0.0001"
-python = "codeverse.spatial.frame_stats:DUPLICATE_DIFF"
+python = "codeverse3d.spatial.frame_stats:DUPLICATE_DIFF"
format = "{:g}"
diff --git a/harness/codeverse/skills/_claims/cv3d-opengl-pipeline.toml b/harness/codeverse3d/skills/_claims/c3d-opengl-pipeline.toml
similarity index 63%
rename from harness/codeverse/skills/_claims/cv3d-opengl-pipeline.toml
rename to harness/codeverse3d/skills/_claims/c3d-opengl-pipeline.toml
index 2cb98076..d4b25ccf 100644
--- a/harness/codeverse/skills/_claims/cv3d-opengl-pipeline.toml
+++ b/harness/codeverse3d/skills/_claims/c3d-opengl-pipeline.toml
@@ -3,17 +3,17 @@
[[claim]]
key = "gl_static_diff"
text = "0.002"
-python = "codeverse.spatial.frame_stats:STATIC_DIFF"
+python = "codeverse3d.spatial.frame_stats:STATIC_DIFF"
format = "{:.3f}"
[[claim]]
key = "gl_flicker_diff"
text = "0.35"
-python = "codeverse.spatial.frame_stats:FLICKER_DIFF"
+python = "codeverse3d.spatial.frame_stats:FLICKER_DIFF"
format = "{:.2f}"
[[claim]]
key = "gl_low_detail_edge"
text = "0.002"
-python = "codeverse.spatial.frame_stats:LOW_DETAIL_EDGE"
+python = "codeverse3d.spatial.frame_stats:LOW_DETAIL_EDGE"
format = "{:.3f}"
diff --git a/harness/codeverse/skills/_claims/cv3d-part-contact.toml b/harness/codeverse3d/skills/_claims/c3d-part-contact.toml
similarity index 62%
rename from harness/codeverse/skills/_claims/cv3d-part-contact.toml
rename to harness/codeverse3d/skills/_claims/c3d-part-contact.toml
index 3d5782be..43ac82ac 100644
--- a/harness/codeverse/skills/_claims/cv3d-part-contact.toml
+++ b/harness/codeverse3d/skills/_claims/c3d-part-contact.toml
@@ -4,48 +4,48 @@
[[claim]]
key = "contact_gap"
text = "2 mm"
-python = "codeverse.conventions:CONTACT_GAP_M"
+python = "codeverse3d.conventions:CONTACT_GAP_M"
scale = 1000
format = "{:.0f} mm"
[[claim]]
key = "penetration_warn"
text = "2 mm"
-python = "codeverse.spatial.connectivity:PENETRATION_WARN_M"
+python = "codeverse3d.spatial.connectivity:PENETRATION_WARN_M"
scale = 1000
format = "{:.0f} mm"
[[claim]]
key = "penetration_error"
text = "10 mm"
-python = "codeverse.spatial.connectivity:PENETRATION_ERROR_M"
+python = "codeverse3d.spatial.connectivity:PENETRATION_ERROR_M"
scale = 1000
format = "{:.0f} mm"
[[claim]]
key = "penetration_min_fraction"
text = "2%"
-python = "codeverse.spatial.connectivity:PENETRATION_MIN_FRACTION"
+python = "codeverse3d.spatial.connectivity:PENETRATION_MIN_FRACTION"
scale = 100
format = "{:.0f}%"
[[claim]]
key = "n_samples"
text = "600"
-python = "codeverse.spatial.connectivity:N_SAMPLES"
+python = "codeverse3d.spatial.connectivity:N_SAMPLES"
scale = 1
format = "{:.0f}"
[[claim]]
key = "tiny_island_fraction"
text = "5%"
-python = "codeverse.spatial.connectivity:TINY_ISLAND_FRACTION"
+python = "codeverse3d.spatial.connectivity:TINY_ISLAND_FRACTION"
scale = 100
format = "{:.0f}%"
[[claim]]
key = "min_part_size"
text = "10 mm"
-python = "codeverse.spatial.connectivity:MIN_PART_SIZE_M"
+python = "codeverse3d.spatial.connectivity:MIN_PART_SIZE_M"
scale = 1000
format = "{:.0f} mm"
diff --git a/harness/codeverse/skills/_claims/cv3d-repeats-and-mirrors.toml b/harness/codeverse3d/skills/_claims/c3d-repeats-and-mirrors.toml
similarity index 70%
rename from harness/codeverse/skills/_claims/cv3d-repeats-and-mirrors.toml
rename to harness/codeverse3d/skills/_claims/c3d-repeats-and-mirrors.toml
index b56f20d1..e2871196 100644
--- a/harness/codeverse/skills/_claims/cv3d-repeats-and-mirrors.toml
+++ b/harness/codeverse3d/skills/_claims/c3d-repeats-and-mirrors.toml
@@ -5,15 +5,15 @@
[[claim]]
key = "bbox_tolerance_m"
text = "0.01"
-python = "codeverse.conventions:BBOX_TOLERANCE_M"
+python = "codeverse3d.conventions:BBOX_TOLERANCE_M"
[[claim]]
key = "rel_tol"
text = "0.10"
-python = "codeverse.spatial.contract:REL_TOL"
+python = "codeverse3d.spatial.contract:REL_TOL"
format = "{:.2f}"
[[claim]]
key = "error_factor"
text = "3.0"
-python = "codeverse.spatial.contract:ERROR_FACTOR"
+python = "codeverse3d.spatial.contract:ERROR_FACTOR"
diff --git a/harness/codeverse/skills/_claims/cv3d-scene-composition.toml b/harness/codeverse3d/skills/_claims/c3d-scene-composition.toml
similarity index 59%
rename from harness/codeverse/skills/_claims/cv3d-scene-composition.toml
rename to harness/codeverse3d/skills/_claims/c3d-scene-composition.toml
index 48cd9b6f..28db0c60 100644
--- a/harness/codeverse/skills/_claims/cv3d-scene-composition.toml
+++ b/harness/codeverse3d/skills/_claims/c3d-scene-composition.toml
@@ -3,48 +3,48 @@
[[claim]]
key = "near_hit"
text = "0.5 m"
-python = "codeverse.spatial.frame_metrics:NEAR_HIT_M"
+python = "codeverse3d.spatial.frame_metrics:NEAR_HIT_M"
scale = 1
format = "{:.1f} m"
[[claim]]
key = "content_min_establishing"
text = "20%"
-python = "codeverse.spatial.frame_metrics:CONTENT_MIN_ESTABLISHING"
+python = "codeverse3d.spatial.frame_metrics:CONTENT_MIN_ESTABLISHING"
scale = 100
format = "{:.0f}%"
[[claim]]
key = "content_min_authored"
text = "10%"
-python = "codeverse.spatial.frame_metrics:CONTENT_MIN_AUTHORED"
+python = "codeverse3d.spatial.frame_metrics:CONTENT_MIN_AUTHORED"
scale = 100
format = "{:.0f}%"
[[claim]]
key = "eye_min_above_ground"
text = "0.3 m"
-python = "codeverse.spatial.frame_metrics:EYE_MIN_ABOVE_GROUND_M"
+python = "codeverse3d.spatial.frame_metrics:EYE_MIN_ABOVE_GROUND_M"
scale = 1
format = "{:.1f} m"
[[claim]]
key = "eye_max_above_ground"
text = "80 m"
-python = "codeverse.spatial.frame_metrics:EYE_MAX_ABOVE_GROUND_M"
+python = "codeverse3d.spatial.frame_metrics:EYE_MAX_ABOVE_GROUND_M"
scale = 1
format = "{:.0f} m"
[[claim]]
key = "flat_modal_warn"
text = "85%"
-python = "codeverse.spatial.frame_metrics:FLAT_MODAL_FRAC"
+python = "codeverse3d.spatial.frame_metrics:FLAT_MODAL_FRAC"
scale = 100
format = "{:.0f}%"
[[claim]]
key = "flat_modal_error"
text = "92%"
-python = "codeverse.spatial.frame_metrics:FLAT_MODAL_ERROR"
+python = "codeverse3d.spatial.frame_metrics:FLAT_MODAL_ERROR"
scale = 100
format = "{:.0f}%"
diff --git a/harness/codeverse/skills/_claims/cv3d-scene-lighting.toml b/harness/codeverse3d/skills/_claims/c3d-scene-lighting.toml
similarity index 71%
rename from harness/codeverse/skills/_claims/cv3d-scene-lighting.toml
rename to harness/codeverse3d/skills/_claims/c3d-scene-lighting.toml
index b82bf6f5..916a750c 100644
--- a/harness/codeverse/skills/_claims/cv3d-scene-lighting.toml
+++ b/harness/codeverse3d/skills/_claims/c3d-scene-lighting.toml
@@ -4,34 +4,34 @@
[[claim]]
key = "scene_dark_mean_lum"
text = "0.12"
-python = "codeverse.spatial.frame_metrics:DARK_MEAN_LUM"
+python = "codeverse3d.spatial.frame_metrics:DARK_MEAN_LUM"
format = "{:.2f}"
[[claim]]
key = "scene_dark_frac"
text = "35 %"
-python = "codeverse.spatial.frame_metrics:DARK_FRAC"
+python = "codeverse3d.spatial.frame_metrics:DARK_FRAC"
scale = 100
format = "{:.0f} %"
[[claim]]
key = "scene_blown_frac"
text = "20 %"
-python = "codeverse.spatial.frame_metrics:BLOWN_FRAC"
+python = "codeverse3d.spatial.frame_metrics:BLOWN_FRAC"
scale = 100
format = "{:.0f} %"
[[claim]]
key = "scene_flat_modal_frac"
text = "85 %"
-python = "codeverse.spatial.frame_metrics:FLAT_MODAL_FRAC"
+python = "codeverse3d.spatial.frame_metrics:FLAT_MODAL_FRAC"
scale = 100
format = "{:.0f} %"
[[claim]]
key = "scene_flat_modal_error"
text = "92 %"
-python = "codeverse.spatial.frame_metrics:FLAT_MODAL_ERROR"
+python = "codeverse3d.spatial.frame_metrics:FLAT_MODAL_ERROR"
scale = 100
format = "{:.0f} %"
@@ -41,5 +41,5 @@ format = "{:.0f} %"
[[claim]]
key = "scene_lowkey_min_std"
text = "0.12"
-python = "codeverse.spatial.frame_metrics:LOWKEY_MIN_STD"
+python = "codeverse3d.spatial.frame_metrics:LOWKEY_MIN_STD"
format = "{:.2f}"
diff --git a/harness/codeverse/skills/_claims/cv3d-scene-motion.toml b/harness/codeverse3d/skills/_claims/c3d-scene-motion.toml
similarity index 71%
rename from harness/codeverse/skills/_claims/cv3d-scene-motion.toml
rename to harness/codeverse3d/skills/_claims/c3d-scene-motion.toml
index 7d77044b..233b04ff 100644
--- a/harness/codeverse/skills/_claims/cv3d-scene-motion.toml
+++ b/harness/codeverse3d/skills/_claims/c3d-scene-motion.toml
@@ -5,25 +5,25 @@
[[claim]]
key = "motion_pixel_delta"
text = "8 of 255"
-python = "codeverse.spatial.frame_motion:PIXEL_DELTA"
+python = "codeverse3d.spatial.frame_motion:PIXEL_DELTA"
format = "{:.0f} of 255"
[[claim]]
key = "motion_moving_frac"
text = "0.4 %"
-python = "codeverse.spatial.frame_motion:MOVING_FRAC"
+python = "codeverse3d.spatial.frame_motion:MOVING_FRAC"
scale = 100
format = "{:.1f} %"
[[claim]]
key = "motion_strong_delta"
text = "60 of 255"
-python = "codeverse.spatial.frame_motion:STRONG_DELTA"
+python = "codeverse3d.spatial.frame_motion:STRONG_DELTA"
format = "{:.0f} of 255"
[[claim]]
key = "motion_strong_frac"
text = "0.08 %"
-python = "codeverse.spatial.frame_motion:STRONG_FRAC"
+python = "codeverse3d.spatial.frame_motion:STRONG_FRAC"
scale = 100
format = "{:.2f} %"
diff --git a/harness/codeverse/skills/_claims/cv3d-urdf-joints.toml b/harness/codeverse3d/skills/_claims/c3d-urdf-joints.toml
similarity index 72%
rename from harness/codeverse/skills/_claims/cv3d-urdf-joints.toml
rename to harness/codeverse3d/skills/_claims/c3d-urdf-joints.toml
index f872138f..baafd627 100644
--- a/harness/codeverse/skills/_claims/cv3d-urdf-joints.toml
+++ b/harness/codeverse3d/skills/_claims/c3d-urdf-joints.toml
@@ -5,14 +5,14 @@
[[claim]]
key = "contact_gap_m"
text = "0.002"
-python = "codeverse.conventions:CONTACT_GAP_M"
+python = "codeverse3d.conventions:CONTACT_GAP_M"
[[claim]]
key = "fk_tol_m"
text = "0.001"
-python = "codeverse.languages.urdf:FK_TOL_M"
+python = "codeverse3d.languages.urdf:FK_TOL_M"
[[claim]]
key = "rest_penetration_max_m"
text = "0.005"
-python = "codeverse.languages.urdf:REST_PENETRATION_MAX_M"
+python = "codeverse3d.languages.urdf:REST_PENETRATION_MAX_M"
diff --git a/harness/codeverse/skills/cv3d-bbox-contract/SKILL.md b/harness/codeverse3d/skills/c3d-bbox-contract/SKILL.md
similarity index 97%
rename from harness/codeverse/skills/cv3d-bbox-contract/SKILL.md
rename to harness/codeverse3d/skills/c3d-bbox-contract/SKILL.md
index 7e667914..6ffe9d68 100644
--- a/harness/codeverse/skills/cv3d-bbox-contract/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-bbox-contract/SKILL.md
@@ -1,5 +1,5 @@
---
-name: cv3d-bbox-contract
+name: c3d-bbox-contract
description: "Use when a session owns part sizes, placement or ground contact, or when the contract gate fired: hit the plan's dimensions on the first build. Applies to baseline, part, detail, refine, rebuild and zone sessions on static_object, articulated_object and scene. Covers the tolerance the gate really uses (relative, not a flat millimetre figure), how instanced parts are measured, ground contact and footprint, part-name matching, and how to prove the numbers with measure / check_contract instead of by eye."
license: Apache-2.0
metadata:
@@ -23,7 +23,7 @@ paste straight into your code.
## What the gate actually allows
Per axis, `tol = max(1 cm, 0.10 x the planned extent on that axis)`
-(`codeverse/spatial/contract.py`, `codeverse/conventions.py`). A deviation past `tol` is a
+(`codeverse3d/spatial/contract.py`, `codeverse3d/conventions.py`). A deviation past `tol` is a
WARN; past **3x** `tol` it is an ERROR.
| planned extent | tolerance on that axis | in relative terms |
diff --git a/harness/codeverse/skills/cv3d-bbox-contract/references/reading-a-fix-hint.md b/harness/codeverse3d/skills/c3d-bbox-contract/references/reading-a-fix-hint.md
similarity index 100%
rename from harness/codeverse/skills/cv3d-bbox-contract/references/reading-a-fix-hint.md
rename to harness/codeverse3d/skills/c3d-bbox-contract/references/reading-a-fix-hint.md
diff --git a/harness/codeverse/skills/cv3d-blender-forms/SKILL.md b/harness/codeverse3d/skills/c3d-blender-forms/SKILL.md
similarity index 94%
rename from harness/codeverse/skills/cv3d-blender-forms/SKILL.md
rename to harness/codeverse3d/skills/c3d-blender-forms/SKILL.md
index a714c398..45e2884e 100644
--- a/harness/codeverse/skills/cv3d-blender-forms/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-blender-forms/SKILL.md
@@ -1,8 +1,8 @@
---
-name: cv3d-blender-forms
+name: c3d-blender-forms
description: "Use when writing Blender bpy code (language blender or urdf_blender): turn a described shape into the right bpy technique. Avoids the five bpy traps this harness's lint and exporter actually catch: join without an active object, a part file model.py never imports, no PascalCase names, modifier_apply out of context, and primitive_cube_add scale doubling the extents. Covers building, detailing, refining and repairing geometry."
license: Apache-2.0
-compatibility: Blender 5.0.1 headless, run by codeverse/languages/blender/wrappers/run_bpy.py. bpy, bmesh, mathutils, math, random, numpy only.
+compatibility: Blender 5.0.1 headless, run by codeverse3d/languages/blender/wrappers/run_bpy.py. bpy, bmesh, mathutils, math, random, numpy only.
metadata:
evidence: measured
verified: "2026-08-25"
@@ -23,7 +23,7 @@ already caught in this corpus, with how often.
blender is the biggest language here (102 of 142 graded runs with gate artefacts) and its
two weakest judge criteria are `assembly_fit` (0.60) and `geometry_detail` (0.67), means
over 246 judged rounds, mined 2026-08-25. `geometry_detail` is what the table below moves;
-`assembly_fit` belongs to `cv3d-part-contact`, whose contact and weld numbers this skill
+`assembly_fit` belongs to `c3d-part-contact`, whose contact and weld numbers this skill
defers to rather than restating.
## Form to technique
@@ -39,9 +39,9 @@ start from "what primitive is nearest".
| extruded outline with softened edges | `bmesh.ops.extrude_face_region` then BEVEL modifier | `width` must be under half the thinnest wall or the bevel eats the part |
| shell / sheet metal / panel with wall thickness | build the surface, add SOLIDIFY | `offset=-1` grows inward, so the outer surface stays on the plan bbox |
| cavity, slot, groove, hole | BOOLEAN DIFFERENCE, solver EXACT or MANIFOLD | cutter must overshoot the pierced face and never be coplanar with it |
-| small detail welded onto a body | BOOLEAN UNION, or build it into the same `bmesh` | overlapping is not merging: see `cv3d-part-contact` |
+| small detail welded onto a body | BOOLEAN UNION, or build it into the same `bmesh` | overlapping is not merging: see `c3d-part-contact` |
| N identical features on one part | ARRAY or MIRROR modifier, or one python loop into one `bmesh` | array/mirror/screw results are ONE object, which is what you want for in-part detail |
-| N identical *parts* | a loop that creates N top-level objects named `Name_0 .. Name_N-1` | never a parent Empty; see `cv3d-repeats-and-mirrors` |
+| N identical *parts* | a loop that creates N top-level objects named `Name_0 .. Name_N-1` | never a parent Empty; see `c3d-repeats-and-mirrors` |
| taper, bend, twist | `bmesh` vertex maths, or SIMPLE_DEFORM | cheap and it reads |
| smooth organic body with sharp seams | SUBSURF plus edge creases | subsurf shrinks the part: measured on Blender 5.0.1 a subsurfed cube loses **16%** of every extent, a 32-segment cylinder 4-6%. The exporter applies it, so the contract gate sees the shrunk size |
| beam between two points | build along one axis, then place from the endpoints | do **not** rotate a cylinder with Euler angles; see `references/form-recipes.md` |
diff --git a/harness/codeverse/skills/cv3d-blender-forms/references/form-recipes.md b/harness/codeverse3d/skills/c3d-blender-forms/references/form-recipes.md
similarity index 98%
rename from harness/codeverse/skills/cv3d-blender-forms/references/form-recipes.md
rename to harness/codeverse3d/skills/c3d-blender-forms/references/form-recipes.md
index cd41a48b..4f2b4226 100644
--- a/harness/codeverse/skills/cv3d-blender-forms/references/form-recipes.md
+++ b/harness/codeverse3d/skills/c3d-blender-forms/references/form-recipes.md
@@ -1,6 +1,6 @@
# bpy form recipes
-Companion to `cv3d-blender-forms`. Every snippet was written against the harness's own
+Companion to `c3d-blender-forms`. Every snippet was written against the harness's own
runtime (Blender 5.0.1, `blender -b --factory-startup`, no operator context you did not
create yourself) and uses only the allowed imports. Longer copyable code lives in the
cookbook section "Modifiers" and friends.
@@ -32,7 +32,7 @@ def beam(name, p0, p1, radius, segments=16):
The length is the distance between the two points, so it cannot disagree with them, and the
endpoints are where you say they are. Compute `p0`/`p1` from the neighbours' plan bboxes
-plus the 1 mm weld from `cv3d-part-contact`.
+plus the 1 mm weld from `c3d-part-contact`.
## 2. Revolved profile (lathe)
diff --git a/harness/codeverse/skills/cv3d-cadquery-forms/SKILL.md b/harness/codeverse3d/skills/c3d-cadquery-forms/SKILL.md
similarity index 98%
rename from harness/codeverse/skills/cv3d-cadquery-forms/SKILL.md
rename to harness/codeverse3d/skills/c3d-cadquery-forms/SKILL.md
index 7bfaff02..557365bd 100644
--- a/harness/codeverse/skills/cv3d-cadquery-forms/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-cadquery-forms/SKILL.md
@@ -1,5 +1,5 @@
---
-name: cv3d-cadquery-forms
+name: c3d-cadquery-forms
description: "Use when writing CadQuery src/model.py - baseline, part, detail, refine, rebuild or repair: build the planned forms and get past the OCC kernel. Gives the form-to-technique decision table, the fillet / revolve / boolean rules that decide whether the script builds at all, and the four traps our own lint and runtime wrapper are written to catch."
license: Apache-2.0
compatibility: CadQuery 2.8 on OCP; one module src/model.py exporting a module-level `result`.
@@ -66,7 +66,7 @@ solid — a revolved profile faked from stacked boxes reads as a blocky toy.
5. **Touching parts weld by overlapping 0.5-2 mm.** The CadQuery authoring contract's
own figure, and the overlap its worked example uses; 2 mm is a ceiling, not a target,
because the connectivity gate calls a deeper overlap interpenetration. Its contact and
- penetration thresholds are stated once, in `cv3d-part-contact`, and not repeated here.
+ penetration thresholds are stated once, in `c3d-part-contact`, and not repeated here.
6. **Keep solids closed.** Export runs through STL as well as GLB; `.shell()` keeps a solid
watertight, hand-assembled faces do not.
7. Feature sizes >= 0.5 mm (OCC's tolerance eats smaller), <= 40 parts, build under 120 s.
diff --git a/harness/codeverse/skills/cv3d-cadquery-forms/references/kernel-probes.md b/harness/codeverse3d/skills/c3d-cadquery-forms/references/kernel-probes.md
similarity index 100%
rename from harness/codeverse/skills/cv3d-cadquery-forms/references/kernel-probes.md
rename to harness/codeverse3d/skills/c3d-cadquery-forms/references/kernel-probes.md
diff --git a/harness/codeverse/skills/cv3d-glsl-craft/SKILL.md b/harness/codeverse3d/skills/c3d-glsl-craft/SKILL.md
similarity index 99%
rename from harness/codeverse/skills/cv3d-glsl-craft/SKILL.md
rename to harness/codeverse3d/skills/c3d-glsl-craft/SKILL.md
index 79c3d186..751710e1 100644
--- a/harness/codeverse/skills/cv3d-glsl-craft/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-glsl-craft/SKILL.md
@@ -1,5 +1,5 @@
---
-name: cv3d-glsl-craft
+name: c3d-glsl-craft
description: "Use when writing, refining or repairing a glsl_shader fragment shader, or when gl_frames reports static, flicker or low detail. Craft rules for the shaders this harness judges: what the five sampled frames measure and where the real operating band is, how to build multi-scale structure that does not alias, how to make motion come from the mechanism instead of a uv scroll, and why an added radial falloff reads as a uniform glow instead of light shafts."
license: Apache-2.0
compatibility: GLSL 330 core via moderngl, headless. One image pass (src/shader.frag), an optional src/common.glsl and one feedback pass (src/buffer_a.frag). The harness declares the uniforms; the contract lists them.
diff --git a/harness/codeverse/skills/cv3d-glsl-craft/references/shader-recipes.md b/harness/codeverse3d/skills/c3d-glsl-craft/references/shader-recipes.md
similarity index 97%
rename from harness/codeverse/skills/cv3d-glsl-craft/references/shader-recipes.md
rename to harness/codeverse3d/skills/c3d-glsl-craft/references/shader-recipes.md
index 88952108..bb085f6f 100644
--- a/harness/codeverse/skills/cv3d-glsl-craft/references/shader-recipes.md
+++ b/harness/codeverse3d/skills/c3d-glsl-craft/references/shader-recipes.md
@@ -1,7 +1,7 @@
# Shader recipes
-Companion to `cv3d-glsl-craft`. Every snippet below was composed with the harness's own
-`codeverse.languages.glsl_shader.compose`, compiled on moderngl 5.12 / OpenGL 3.3 core
+Companion to `c3d-glsl-craft`. Every snippet below was composed with the harness's own
+`codeverse3d.languages.glsl_shader.compose`, compiled on moderngl 5.12 / OpenGL 3.3 core
and linted with `lint_text` on 2026-08-25: **compiles clean, zero lint findings**. Drop the
helpers into `src/common.glsl` and call them from `src/shader.frag`.
diff --git a/harness/codeverse/skills/cv3d-opengl-pipeline/SKILL.md b/harness/codeverse3d/skills/c3d-opengl-pipeline/SKILL.md
similarity index 99%
rename from harness/codeverse/skills/cv3d-opengl-pipeline/SKILL.md
rename to harness/codeverse3d/skills/c3d-opengl-pipeline/SKILL.md
index 74f7e6a2..2cb71324 100644
--- a/harness/codeverse/skills/cv3d-opengl-pipeline/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-opengl-pipeline/SKILL.md
@@ -1,5 +1,5 @@
---
-name: cv3d-opengl-pipeline
+name: c3d-opengl-pipeline
description: "Use when writing an opengl_python / moderngl program, or when the gl_frames gate reported flicker, no motion or a near-flat image. Covers baseline, refine, repair and rebuild sessions: the setup / render contract, the sampled-time trap that breaks every feedback simulation, VAO and uniform mechanics, ping-pong FBOs, and the three richness rules the judge scores this language worst on."
license: Apache-2.0
compatibility: OpenGL 3.3 core through moderngl, headless EGL; one module src/program.py, GLSL 330 core inline or in src/*.glsl.
diff --git a/harness/codeverse/skills/cv3d-opengl-pipeline/references/sampled-time.md b/harness/codeverse3d/skills/c3d-opengl-pipeline/references/sampled-time.md
similarity index 94%
rename from harness/codeverse/skills/cv3d-opengl-pipeline/references/sampled-time.md
rename to harness/codeverse3d/skills/c3d-opengl-pipeline/references/sampled-time.md
index ec9511cc..93a1b5b4 100644
--- a/harness/codeverse/skills/cv3d-opengl-pipeline/references/sampled-time.md
+++ b/harness/codeverse3d/skills/c3d-opengl-pipeline/references/sampled-time.md
@@ -2,12 +2,12 @@
## What the harness does
-`codeverse/languages/opengl_python/wrappers/run_gl.py` builds one sorted schedule from the
+`codeverse3d/languages/opengl_python/wrappers/run_gl.py` builds one sorted schedule from the
judged times and the preview times, then for each entry binds the harness framebuffer,
clears it to `(0, 0, 0, 1)` with depth 1, sets the viewport, and calls
`render(ctx, state, t, i, fbo)`. `i` is the index into that merged schedule.
-Judged times are `0, 1, 2.5, 4, 6` (`codeverse/languages/_gl_common.py`, clipped to the
+Judged times are `0, 1, 2.5, 4, 6` (`codeverse3d/languages/_gl_common.py`, clipped to the
loop duration, always at least 3 samples). The preview GIF adds about a dozen more. So:
* the number of calls is not fixed, and `frame == 2` is not "the third judged frame";
@@ -59,7 +59,7 @@ our runs down for *"ink is only injected at t=0s"*.
## The frame metrics the gate reads
-`codeverse/spatial/frame_stats.py`:
+`codeverse3d/spatial/frame_stats.py`:
| metric | threshold | finding |
|---|---|---|
diff --git a/harness/codeverse/skills/cv3d-part-contact/SKILL.md b/harness/codeverse3d/skills/c3d-part-contact/SKILL.md
similarity index 97%
rename from harness/codeverse/skills/cv3d-part-contact/SKILL.md
rename to harness/codeverse3d/skills/c3d-part-contact/SKILL.md
index 01d28d3a..68464732 100644
--- a/harness/codeverse/skills/cv3d-part-contact/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-part-contact/SKILL.md
@@ -1,5 +1,5 @@
---
-name: cv3d-part-contact
+name: c3d-part-contact
description: "Use when an object has two or more parts, or when a connectivity or joint_sweep finding fired: how parts must touch without penetrating. For static_object and articulated_object in any language, before the first build and on every repair round. Gives the contact, weld-overlap, penetration and stray-island numbers the connectivity gate actually measures, and how to add detail without creating new contact pairs."
license: Apache-2.0
compatibility: Object tracks only (static_object, articulated_object). Needs the connectivity gate, i.e. an exported object.glb; scene and graphics tracks have no part graph.
@@ -42,7 +42,7 @@ So: fewer pairs in contact, and each contact within the band below.
## The band — every number is a live constant
-`codeverse/spatial/connectivity.py` + `codeverse/conventions.py`:
+`codeverse3d/spatial/connectivity.py` + `codeverse3d/conventions.py`:
| what | constant | value | consequence |
|---|---|---|---|
@@ -94,7 +94,7 @@ For every part with `attach_to` set, write one line first:
Then derive the part's span **from the neighbour's plan bbox**, never from a re-typed
number: a leg's top is `seat.bbox.min.z + 0.001`, not `0.451`. Any hand-typed span is a
-future contract finding as soon as the neighbour moves. (`cv3d-bbox-contract` owns the
+future contract finding as soon as the neighbour moves. (`c3d-bbox-contract` owns the
tolerance arithmetic; this skill only says where the number comes from.)
## Detail belongs INSIDE a part, not as more parts
diff --git a/harness/codeverse/skills/cv3d-part-contact/references/contact-recipes.md b/harness/codeverse3d/skills/c3d-part-contact/references/contact-recipes.md
similarity index 93%
rename from harness/codeverse/skills/cv3d-part-contact/references/contact-recipes.md
rename to harness/codeverse3d/skills/c3d-part-contact/references/contact-recipes.md
index 77494ce8..1d55ab52 100644
--- a/harness/codeverse/skills/cv3d-part-contact/references/contact-recipes.md
+++ b/harness/codeverse3d/skills/c3d-part-contact/references/contact-recipes.md
@@ -1,8 +1,8 @@
# Contact recipes and the finding-to-fix table
-Companion to `cv3d-part-contact`. Everything here was checked against
-`codeverse/spatial/connectivity.py`, `codeverse/spatial/measure.py`, the Blender 5.0.1
-wrapper in `codeverse/languages/blender/wrappers/run_bpy.py`, and the recorded gate
+Companion to `c3d-part-contact`. Everything here was checked against
+`codeverse3d/spatial/connectivity.py`, `codeverse3d/spatial/measure.py`, the Blender 5.0.1
+wrapper in `codeverse3d/languages/blender/wrappers/run_bpy.py`, and the recorded gate
findings under `bench/out/**/artifacts/gates/**` (mined 2026-08-25).
## 1. Finding to fix
@@ -83,7 +83,7 @@ and the notch was still cut.
## 5. CadQuery
Not corpus-backed — this language has **zero graded bench runs**; the rules below are read
-off `codeverse/prompts/cadquery/cookbook.md` and the same gate constants.
+off `codeverse3d/prompts/cadquery/cookbook.md` and the same gate constants.
* One `Workplane` result per plan part, and `len(result.solids().vals()) == 1` after every
cut: a cut that splits a part into two solids is exactly the stray-island WARN in advance.
@@ -97,7 +97,7 @@ off `codeverse/prompts/cadquery/cookbook.md` and the same gate constants.
`check_connectivity` runs on the rest pose (q = 0) exactly as above, over the link meshes.
Clearance across the joint *sweep* is a different gate (`joint_sweep`) and belongs to
-`cv3d-urdf-joints`; a rest pose that is already 5 mm overlapped will fail both. Recorded
+`c3d-urdf-joints`; a rest pose that is already 5 mm overlapped will fail both. Recorded
`joint_sweep` overlaps in this corpus run 3-5 mm already at the rest pose and reach 20 mm at
a joint limit, which is the signature of a hinge whose two links were welded like static
parts instead of being given running clearance.
diff --git a/harness/codeverse/skills/cv3d-repeats-and-mirrors/SKILL.md b/harness/codeverse3d/skills/c3d-repeats-and-mirrors/SKILL.md
similarity index 97%
rename from harness/codeverse/skills/cv3d-repeats-and-mirrors/SKILL.md
rename to harness/codeverse3d/skills/c3d-repeats-and-mirrors/SKILL.md
index 397add56..38fa87a0 100644
--- a/harness/codeverse/skills/cv3d-repeats-and-mirrors/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-repeats-and-mirrors/SKILL.md
@@ -1,8 +1,8 @@
---
-name: cv3d-repeats-and-mirrors
+name: c3d-repeats-and-mirrors
description: "Use when a part has instances above 1 or symmetry, is a left/right pair or a ring of N, or when contract/instance_bbox or instance_count fired. Build repeated, mirrored and radially arrayed parts so the contract gate passes on the first build. Covers instance naming (Name_0..Name_N), which box the gate compares for an instanced part, mirroring without a negative object scale, and radial angles derived from the count."
license: Apache-2.0
-compatibility: static_object and articulated_object tracks; blender, urdf_blender, cadquery and threejs. Numbers are from codeverse/spatial/contract.py and conventions.py.
+compatibility: static_object and articulated_object tracks; blender, urdf_blender, cadquery and threejs. Numbers are from codeverse3d/spatial/contract.py and conventions.py.
metadata:
evidence: measured
verified: "2026-08-25"
@@ -42,7 +42,7 @@ of the plan row. A hand-typed second copy is how the pair stops matching.
`instances: 2`, extents `0.035 x 0.035 x 0.41`), so build each copy at those extents and the
`(each instance)` reading goes to zero.
* **Tolerance.** Per axis `tol = max(0.01 m, 0.10 x plan extent)`; beyond `3.0 x tol` the WARN
- becomes an ERROR. Same constants as `cv3d-bbox-contract` (`BBOX_TOLERANCE_M`, `REL_TOL`,
+ becomes an ERROR. Same constants as `c3d-bbox-contract` (`BBOX_TOLERANCE_M`, `REL_TOL`,
`ERROR_FACTOR`).
Because the centre is ignored here, a mis-*placed* copy never shows up as `instance_bbox`. It
diff --git a/harness/codeverse/skills/cv3d-repeats-and-mirrors/references/instances.md b/harness/codeverse3d/skills/c3d-repeats-and-mirrors/references/instances.md
similarity index 97%
rename from harness/codeverse/skills/cv3d-repeats-and-mirrors/references/instances.md
rename to harness/codeverse3d/skills/c3d-repeats-and-mirrors/references/instances.md
index 4d9f7e23..41e4d6fa 100644
--- a/harness/codeverse/skills/cv3d-repeats-and-mirrors/references/instances.md
+++ b/harness/codeverse3d/skills/c3d-repeats-and-mirrors/references/instances.md
@@ -1,9 +1,9 @@
# Instances, mirrors and arrays — depth
Everything here was read out of the live harness on 2026-08-25:
-`codeverse/spatial/contract.py`, `codeverse/contracts/plan.py`,
-`codeverse/conventions.py`, `codeverse/tracks/plan_examples.py`,
-`codeverse/prompts/blender/cookbook.md`, and 2,121 gate reports under `bench/out`.
+`codeverse3d/spatial/contract.py`, `codeverse3d/contracts/plan.py`,
+`codeverse3d/conventions.py`, `codeverse3d/tracks/plan_examples.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/codeverse/skills/cv3d-scene-atmosphere/SKILL.md b/harness/codeverse3d/skills/c3d-scene-atmosphere/SKILL.md
similarity index 98%
rename from harness/codeverse/skills/cv3d-scene-atmosphere/SKILL.md
rename to harness/codeverse3d/skills/c3d-scene-atmosphere/SKILL.md
index 67cfba4b..c9b75282 100644
--- a/harness/codeverse/skills/cv3d-scene-atmosphere/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-scene-atmosphere/SKILL.md
@@ -1,5 +1,5 @@
---
-name: cv3d-scene-atmosphere
+name: c3d-scene-atmosphere
description: "Use when a scene_threejs env, baseline or refine session builds the sky, the environment map, clouds or fog. The sky is not a backdrop: it is the light source every PBR material reflects. Gives the sky-dome shader, the equirect bake that turns it into scene.environment (with the one-line orientation bug that blackens water), the cloud recipes that read in a still frame, and the fog numbers that add depth instead of eating the scene."
license: Apache-2.0
compatibility: three r0.182, headless WebGL; renderer fixed at ACES Filmic tone mapping, exposure 1.0, sRGB output.
@@ -82,7 +82,7 @@ the fog uniforms custom shaders must honour; this one only sets the numbers.
## Order of operations
1. Sky dome + sun direction. 2. JS mirror -> equirect bake ->
-`scene.environment`. 3. Lights (see cv3d-scene-lighting). 4. Only THEN
+`scene.environment`. 3. Lights (see c3d-scene-lighting). 4. Only THEN
materials, water, assets — they are all downstream of the environment.
## Verify before you finish
diff --git a/harness/codeverse/skills/cv3d-scene-atmosphere/references/exotic-space.md b/harness/codeverse3d/skills/c3d-scene-atmosphere/references/exotic-space.md
similarity index 100%
rename from harness/codeverse/skills/cv3d-scene-atmosphere/references/exotic-space.md
rename to harness/codeverse3d/skills/c3d-scene-atmosphere/references/exotic-space.md
diff --git a/harness/codeverse/skills/cv3d-scene-composition/SKILL.md b/harness/codeverse3d/skills/c3d-scene-composition/SKILL.md
similarity index 98%
rename from harness/codeverse/skills/cv3d-scene-composition/SKILL.md
rename to harness/codeverse3d/skills/c3d-scene-composition/SKILL.md
index 4b25de88..8ccad5d9 100644
--- a/harness/codeverse/skills/cv3d-scene-composition/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-scene-composition/SKILL.md
@@ -1,5 +1,5 @@
---
-name: cv3d-scene-composition
+name: c3d-scene-composition
description: "Use when a scene_threejs session owns the environment, a zone's placement or the camera list, or when scene_frames reported a camera problem. Lay out the scene so the harness's deterministic instruments agree with the picture - one height function everything samples, a world that does not end in shot, and cameras computed from measured bounds instead of guessed. Includes the sky/ground/content classifier that silently decides two gate findings, and the exact scene_frames thresholds and score caps for camera placement and frame coverage."
license: Apache-2.0
compatibility: track scene, language scene_threejs (three r182, headless Chrome, the harness builds the cameras from your plain camera objects).
@@ -61,7 +61,7 @@ Three consequences you must design around:
## Cameras are measured, and the numbers are hard
-`codeverse/spatial/frame_metrics.py` runs on the authored cameras, where every finding is an
+`codeverse3d/spatial/frame_metrics.py` runs on the authored cameras, where every finding is an
**ERROR** (the harness's own orbit rig only gets WARNs). `judges/rubrics/scene_v1.yaml`
turns those ERRORs into score ceilings:
diff --git a/harness/codeverse/skills/cv3d-scene-composition/references/measured-cameras.md b/harness/codeverse3d/skills/c3d-scene-composition/references/measured-cameras.md
similarity index 94%
rename from harness/codeverse/skills/cv3d-scene-composition/references/measured-cameras.md
rename to harness/codeverse3d/skills/c3d-scene-composition/references/measured-cameras.md
index 65f3f638..731bbc2d 100644
--- a/harness/codeverse/skills/cv3d-scene-composition/references/measured-cameras.md
+++ b/harness/codeverse3d/skills/c3d-scene-composition/references/measured-cameras.md
@@ -1,7 +1,7 @@
# From bounds to cameras, by arithmetic
-Companion to `cv3d-scene-composition`. Constants read from
-`codeverse/spatial/frame_metrics.py`, `codeverse/judges/rubrics/scene_v1.yaml`,
+Companion to `c3d-scene-composition`. Constants read from
+`codeverse3d/spatial/frame_metrics.py`, `codeverse3d/judges/rubrics/scene_v1.yaml`,
`runtime_js/lib/backdrop.mjs`, `runtime_js/lib/host_census.mjs` and
`runtime_js/lib/scene_host.mjs` on 2026-08-25.
@@ -57,7 +57,7 @@ build anything else.
| same finding but the frame renders fine | nothing, probably | a hill or terrace is above the camera; verify with the frame, then leave it |
| `establishing shot shows too little content: content 11% (sky 52%, ground 37%)` (cap 0.60) | the shot is mostly backdrop | pull the camera in to about 1.2 x the content span, lower it, or add instanced content — a bigger ground plane makes this **worse**, because ground is not content |
| `flat frame: one luminance band holds 100% of the pixels` | no tonal range | aim at content, add a shadow-casting key, vary materials; recorded twice in one desert-canyon run at 85% and 100% |
-| `frame too dark: mean luminance 0.06` | exposure | that is `cv3d-scene-lighting`'s table, not composition |
+| `frame too dark: mean luminance 0.06` | exposure | that is `c3d-scene-lighting`'s table, not composition |
## 4. Naming, because names change the classification
diff --git a/harness/codeverse/skills/cv3d-scene-lighting/SKILL.md b/harness/codeverse3d/skills/c3d-scene-lighting/SKILL.md
similarity index 99%
rename from harness/codeverse/skills/cv3d-scene-lighting/SKILL.md
rename to harness/codeverse3d/skills/c3d-scene-lighting/SKILL.md
index 59df42e0..f9ac9489 100644
--- a/harness/codeverse/skills/cv3d-scene-lighting/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-scene-lighting/SKILL.md
@@ -1,5 +1,5 @@
---
-name: cv3d-scene-lighting
+name: c3d-scene-lighting
description: "Use when lighting a scene_threejs baseline, env or refine session, or when scene_frames called a frame too dark, blown out or flat. Light the scene so the frame gate passes and the mood still reads. Gives the exact thresholds the gate measures, the key / fill / practical recipe with numbers, and the one thing hex colours hide - how dark an albedo really is once the renderer works in linear light."
license: Apache-2.0
compatibility: three r0.182, headless WebGL; renderer fixed at ACES Filmic tone mapping, exposure 1.0, sRGB output.
diff --git a/harness/codeverse/skills/cv3d-scene-lighting/references/exposure-math.md b/harness/codeverse3d/skills/c3d-scene-lighting/references/exposure-math.md
similarity index 100%
rename from harness/codeverse/skills/cv3d-scene-lighting/references/exposure-math.md
rename to harness/codeverse3d/skills/c3d-scene-lighting/references/exposure-math.md
diff --git a/harness/codeverse/skills/cv3d-scene-materials/SKILL.md b/harness/codeverse3d/skills/c3d-scene-materials/SKILL.md
similarity index 97%
rename from harness/codeverse/skills/cv3d-scene-materials/SKILL.md
rename to harness/codeverse3d/skills/c3d-scene-materials/SKILL.md
index 171716ea..e097a7c1 100644
--- a/harness/codeverse/skills/cv3d-scene-materials/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-scene-materials/SKILL.md
@@ -1,5 +1,5 @@
---
-name: cv3d-scene-materials
+name: c3d-scene-materials
description: "Use in every scene_threejs build or refine session that authors surfaces - terrain, buildings, props, vegetation. The strongest 'plastic toy' tell is a flat albedo; the second is identical twins. Gives the photographic checklist: procedural variance on every large surface, per-instance jitter, roughness as the realism dial, bevels near the camera, the tight shadow camera, domain-warped terrain with banded colour, and scatter that is intentional instead of uniform."
license: Apache-2.0
compatibility: three r0.182, headless WebGL; ACES tone mapping, GTAO + soft bloom supplied by the renderer.
@@ -24,7 +24,7 @@ and light contrast.
One constant `color` per large surface is the strongest plastic tell. Give
every large surface a subtle procedural map: a CanvasTexture of low-contrast
-fbm (use the shared noise block from cv3d-scene-water) as `map` multiplied
+fbm (use the shared noise block from c3d-scene-water) as `map` multiplied
into the tint, or as `roughnessMap`; `repeat` scaled so one texel is 2-5 cm at
walking distance. Stone, plaster, soil and wood all read instantly better with
5-15% value noise.
diff --git a/harness/codeverse/skills/cv3d-scene-materials/references/terrain-and-scatter.md b/harness/codeverse3d/skills/c3d-scene-materials/references/terrain-and-scatter.md
similarity index 100%
rename from harness/codeverse/skills/cv3d-scene-materials/references/terrain-and-scatter.md
rename to harness/codeverse3d/skills/c3d-scene-materials/references/terrain-and-scatter.md
diff --git a/harness/codeverse/skills/cv3d-scene-motion/SKILL.md b/harness/codeverse3d/skills/c3d-scene-motion/SKILL.md
similarity index 97%
rename from harness/codeverse/skills/cv3d-scene-motion/SKILL.md
rename to harness/codeverse3d/skills/c3d-scene-motion/SKILL.md
index 15789bdd..30e262e3 100644
--- a/harness/codeverse/skills/cv3d-scene-motion/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-scene-motion/SKILL.md
@@ -1,5 +1,5 @@
---
-name: cv3d-scene-motion
+name: c3d-scene-motion
description: "Use when a scene_threejs session authors or refines animation, or when scene_frames reported no motion or the judge said nothing_moves. Make the scene visibly move between the two frames the harness photographs, and survive the four mechanisms that silently freeze it. Applies to baseline, zone, refine and compose sessions. Covers the measured motion threshold, the single update hook the harness actually calls, the amplitudes that read at 1024 x 576, and why clearing the motion gate is not the same as scoring animation_life - that is judged per item against the plan animation list."
license: Apache-2.0
compatibility: "scene track, language scene_threejs. three r182 in headless Chrome; the harness photographs each camera at t = 0 s and t = 1.5 s and diffs the pair."
@@ -7,7 +7,7 @@ metadata:
evidence: mixed
evidence_note: "The mechanism, thresholds and hook are read from live code (spatial/frame_motion.py, spatial/frame_metrics.py, runtime_js/lib/scene_host.mjs) and are exact. The corpus behind them is thin: 3 graded scene runs / 8 judged rounds on scenes_v1_flash, 2026-08-23. Where a number is from that battery it says so."
verified: "2026-08-25"
- pairs_with: "cv3d-scene-composition, cv3d-scene-lighting, cv3d-threejs-shader-traps"
+ pairs_with: "c3d-scene-composition, c3d-scene-lighting, c3d-threejs-shader-traps"
target_metric: "min_authored_changed_frac"
target_direction: "up"
target_unit: "fraction of pixels changed on the WEAKEST authored camera, t=0 → t=1.5 s"
@@ -27,7 +27,7 @@ scene is frozen. Read the measurement first; it is not the one you would guess.
`animation_life` is **0.431** — the lowest mean of any criterion in any language
in the corpus (8 judged rounds over 3 graded scene runs, `scenes_v1_flash`,
2026-08-23). Since 2026-08-24 the harness no longer leaves that to perception.
-`codeverse/spatial/frame_motion.py` diffs the first and last frame of every
+`codeverse3d/spatial/frame_motion.py` diffs the first and last frame of every
camera and hands the judge the number:
* a **pixel** counts as changed when any channel differs by more than 8 of 255
@@ -58,7 +58,7 @@ animations for water and falling leaves are completely static", "the planned
vertex animation for the plant foliage and string lights" is missing. The scene
moved; the things the plan promised did not.
-`codeverse/tracks/scene.py::judge_context` hands the judge your plan's
+`codeverse3d/tracks/scene.py::judge_context` hands the judge your plan's
`animation` list verbatim, item by item, alongside the measured motion table. So
the criterion is scored per item, not globally:
diff --git a/harness/codeverse/skills/cv3d-scene-motion/references/motion_recipes.md b/harness/codeverse3d/skills/c3d-scene-motion/references/motion_recipes.md
similarity index 100%
rename from harness/codeverse/skills/cv3d-scene-motion/references/motion_recipes.md
rename to harness/codeverse3d/skills/c3d-scene-motion/references/motion_recipes.md
diff --git a/harness/codeverse/skills/cv3d-scene-night/SKILL.md b/harness/codeverse3d/skills/c3d-scene-night/SKILL.md
similarity index 90%
rename from harness/codeverse/skills/cv3d-scene-night/SKILL.md
rename to harness/codeverse3d/skills/c3d-scene-night/SKILL.md
index f97ef8c1..eacb6624 100644
--- a/harness/codeverse/skills/cv3d-scene-night/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-scene-night/SKILL.md
@@ -1,11 +1,11 @@
---
-name: cv3d-scene-night
+name: c3d-scene-night
description: "Use when a scene_threejs brief says night, dusk, evening, neon, lamplit or moonlit. Night scenes fail two ways: black frames (the gate catches those) and the CHRISTMAS-TREE look - every window a flat glow, light shafts like white tents, twelve competing hues. Gives the emissive-window recipe, glow without postprocessing, fake light pools, the measured shaft opacity, wet-road numbers, and the discipline of two light temperatures."
license: Apache-2.0
compatibility: three r0.182, headless WebGL; ACES tone mapping, exposure 1.0.
metadata:
evidence: inherited-unverified
- evidence_note: 'Ported 2026-09-01 from the scene_multifile_graphics reference ledger; the shaft-opacity ceiling is its measured finding (a normal-blended shaft at 0.3+ rendered as a solid white tent and buried the scene). Pair with cv3d-scene-lighting, whose linear-vs-hex table is the other half of every night failure. Not yet A/B-validated here; the sceneloop battery attaches our numbers.'
+ evidence_note: 'Ported 2026-09-01 from the scene_multifile_graphics reference ledger; the shaft-opacity ceiling is its measured finding (a normal-blended shaft at 0.3+ rendered as a solid white tent and buried the scene). Pair with c3d-scene-lighting, whose linear-vs-hex table is the other half of every night failure. Not yet A/B-validated here; the sceneloop battery attaches our numbers.'
verified: "2026-09-01"
target_metric: "overbright_shaft_findings"
target_direction: "down"
@@ -18,7 +18,7 @@ metadata:
The frame gate stops black frames; this skill is about the opposite failure:
night scenes lit like a fairground. Real night is ONE or TWO light temperatures
-and a lot of dark. Read cv3d-scene-lighting's linear-vs-hex section first —
+and a lot of dark. Read c3d-scene-lighting's linear-vs-hex section first —
half of "my night scene is black" is an albedo 40x darker than its neighbour.
## Emissive windows (buildings at night)
@@ -54,7 +54,7 @@ reads clearly in a thumbnail, it is too strong.
Near-black road, `roughness 0.12-0.25`, `metalness ~0.8`, and a night
environment bake whose LOWER half carries the window/neon colours (the road
-mirrors what is above it — see cv3d-scene-atmosphere for the bake). Puddles:
+mirrors what is above it — see c3d-scene-atmosphere for the bake). Puddles:
a few irregular darker planes at `roughness 0.03`. Without the coloured bake
the wet road has nothing to mirror and just goes black.
diff --git a/harness/codeverse/skills/cv3d-scene-night/references/window-canvas.md b/harness/codeverse3d/skills/c3d-scene-night/references/window-canvas.md
similarity index 100%
rename from harness/codeverse/skills/cv3d-scene-night/references/window-canvas.md
rename to harness/codeverse3d/skills/c3d-scene-night/references/window-canvas.md
diff --git a/harness/codeverse/skills/cv3d-scene-water/SKILL.md b/harness/codeverse3d/skills/c3d-scene-water/SKILL.md
similarity index 94%
rename from harness/codeverse/skills/cv3d-scene-water/SKILL.md
rename to harness/codeverse3d/skills/c3d-scene-water/SKILL.md
index e4e1a83e..b2763368 100644
--- a/harness/codeverse/skills/cv3d-scene-water/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-scene-water/SKILL.md
@@ -1,11 +1,11 @@
---
-name: cv3d-scene-water
+name: c3d-scene-water
description: "Use when a scene_threejs session builds water in any form - pond, lake, harbor, river, ocean, pool, canal, waterfall or fountain. Water is a dielectric, not a mirror: the single most common water bug is metalness, and the second is an environment bake it has nothing to reflect. Gives the material numbers, the shared noise block that keeps terrain, shoreline and scatter agreeing, the Gerstner ocean, and foam that reads."
license: Apache-2.0
compatibility: three r0.182, headless WebGL; ACES tone mapping, exposure 1.0.
metadata:
evidence: inherited-unverified
- evidence_note: 'Ported 2026-09-01 from the scene_multifile_graphics reference ledger, which shipped the metallic-water mistake once and documented the fix, and whose equirect audit showed dark water is usually the ENVIRONMENT bake, not the water (see cv3d-scene-atmosphere). Not yet A/B-validated here; the sceneloop battery attaches our numbers.'
+ evidence_note: 'Ported 2026-09-01 from the scene_multifile_graphics reference ledger, which shipped the metallic-water mistake once and documented the fix, and whose equirect audit showed dark water is usually the ENVIRONMENT bake, not the water (see c3d-scene-atmosphere). Not yet A/B-validated here; the sceneloop battery attaches our numbers.'
verified: "2026-09-01"
target_metric: "metallic_water_planes"
target_direction: "down"
@@ -17,7 +17,7 @@ metadata:
# Water — a dielectric with something to reflect
Two facts produce almost every convincing water plane: water reflects the
-ENVIRONMENT (build cv3d-scene-atmosphere's bake first), and water is a
+ENVIRONMENT (build c3d-scene-atmosphere's bake first), and water is a
DIELECTRIC — it reflects ~2% head-on and ~100% at grazing angles. That fresnel
ramp is why real water is dark at your feet and mirror-bright at the horizon.
diff --git a/harness/codeverse/skills/cv3d-scene-water/references/gerstner-and-foam.md b/harness/codeverse3d/skills/c3d-scene-water/references/gerstner-and-foam.md
similarity index 100%
rename from harness/codeverse/skills/cv3d-scene-water/references/gerstner-and-foam.md
rename to harness/codeverse3d/skills/c3d-scene-water/references/gerstner-and-foam.md
diff --git a/harness/codeverse/skills/cv3d-threejs-forms/SKILL.md b/harness/codeverse3d/skills/c3d-threejs-forms/SKILL.md
similarity index 93%
rename from harness/codeverse/skills/cv3d-threejs-forms/SKILL.md
rename to harness/codeverse3d/skills/c3d-threejs-forms/SKILL.md
index 3252bc6b..fa36a47c 100644
--- a/harness/codeverse/skills/cv3d-threejs-forms/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-threejs-forms/SKILL.md
@@ -1,13 +1,13 @@
---
-name: cv3d-threejs-forms
+name: c3d-threejs-forms
description: "Use when writing three.js object geometry in src/object.js or src/parts/*.js on the static_object track, in any session kind. Turn each FORM word in your manifest into the right three.js geometry maker, with the segment counts that make curves read and the traps that make a threejs part silently ship nothing. Covers the fact that this language has no boolean/CSG at all, so cavities and shells are built into the profile instead of subtracted."
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 codeverse/prompts/threejs/contract.md, codeverse/prompts/threejs/cookbook.md, codeverse/languages/threejs/lint.py and runtime_js/package.json, but the ADVICE has not been A/B'd on our corpus. Routed off unless CV3D_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/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."
verified: "2026-08-25"
- pairs_with: "cv3d-part-contact, cv3d-bbox-contract"
+ pairs_with: "c3d-part-contact, c3d-bbox-contract"
target_metric: "missing_parts"
target_direction: "down"
target_unit: "findings per run"
@@ -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 (`codeverse/languages/threejs/lint.py`). A misspelt name is
+ from the file stem (`codeverse3d/languages/threejs/lint.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
@@ -124,8 +124,8 @@ One `THREE.Group` per plan part, returned at its world pose and added to the roo
in `src/object.js`. Everything inside it — merged detail, instanced repeats, raw
BufferGeometry — is invisible to the part-level gates, which is exactly why the
detail belongs in there. The object's naming and frame rules are in the contract;
-dimensions and tolerances belong to `cv3d-bbox-contract`; contact and overlap
-belong to `cv3d-part-contact`.
+dimensions and tolerances belong to `c3d-bbox-contract`; contact and overlap
+belong to `c3d-part-contact`.
## Depth
diff --git a/harness/codeverse/skills/cv3d-threejs-forms/references/form_recipes.md b/harness/codeverse3d/skills/c3d-threejs-forms/references/form_recipes.md
similarity index 100%
rename from harness/codeverse/skills/cv3d-threejs-forms/references/form_recipes.md
rename to harness/codeverse3d/skills/c3d-threejs-forms/references/form_recipes.md
diff --git a/harness/codeverse/skills/cv3d-threejs-shader-traps/SKILL.md b/harness/codeverse3d/skills/c3d-threejs-shader-traps/SKILL.md
similarity index 98%
rename from harness/codeverse/skills/cv3d-threejs-shader-traps/SKILL.md
rename to harness/codeverse3d/skills/c3d-threejs-shader-traps/SKILL.md
index f60c7b44..7324b1ef 100644
--- a/harness/codeverse/skills/cv3d-threejs-shader-traps/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-threejs-shader-traps/SKILL.md
@@ -1,5 +1,5 @@
---
-name: cv3d-threejs-shader-traps
+name: c3d-threejs-shader-traps
description: "Use when a threejs or scene_threejs session writes a ShaderMaterial or an onBeforeCompile patch, or when shader_preflight reported an error. Write custom GLSL that survives this harness's shader gate on the first build. Says which mistakes the harness detects statically, which it detects at runtime, which it cannot see at all, and corrects three widely repeated three.js warnings that do not apply to this renderer."
license: Apache-2.0
compatibility: [email protected], headless WebGL via puppeteer. Rules read from runtime_js/lib/glsl_audit.mjs, runtime_js/lib/host_compile.mjs, runtime_js/lib/shader_report.mjs and runtime_js/lib/browser/renderer.js.
@@ -20,7 +20,7 @@ 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 `codeverse/prompts/scene_threejs/glsl_cookbook.md` — start from its
+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.**
@@ -100,7 +100,7 @@ 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 `codeverse/` ever passes it. So the
+ 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.
diff --git a/harness/codeverse/skills/cv3d-threejs-shader-traps/references/shader-gate.md b/harness/codeverse3d/skills/c3d-threejs-shader-traps/references/shader-gate.md
similarity index 96%
rename from harness/codeverse/skills/cv3d-threejs-shader-traps/references/shader-gate.md
rename to harness/codeverse3d/skills/c3d-threejs-shader-traps/references/shader-gate.md
index 25ae88ed..9da72885 100644
--- a/harness/codeverse/skills/cv3d-threejs-shader-traps/references/shader-gate.md
+++ b/harness/codeverse3d/skills/c3d-threejs-shader-traps/references/shader-gate.md
@@ -4,7 +4,7 @@ Read out of the live runtime on 2026-08-25: `runtime_js/lib/glsl_audit.mjs`,
`runtime_js/lib/host_compile.mjs`, `runtime_js/lib/shader_report.mjs`,
`runtime_js/lib/scene_host.mjs`, `runtime_js/lib/browser/renderer.js`,
`runtime_js/check_shaders.mjs`, `runtime_js/package.json`, and
-`codeverse/spatial/probes.py`. Renderer: `[email protected]`, headless WebGL through
+`codeverse3d/spatial/probes.py`. Renderer: `[email protected]`, headless WebGL through
`puppeteer@^24.43.1`.
## 1. How a finding reaches you
@@ -15,7 +15,7 @@ booted page -> window.__c3v.compileAll() -> shader_errors[] -> errors
-> materialAudit(scene) -> errors[] / warnings[]
-> console noise -> warnings[]
all merged by shader_report.compileIntoReport
- -> codeverse/spatial/probes.py::shader_report
+ -> codeverse3d/spatial/probes.py::shader_report
-> GateReport(gate="shader_preflight")
```
@@ -79,7 +79,7 @@ and only the static `chunk_dropped` rule protects you.
## 4. A minimal citizen shader
-Full boilerplate: `codeverse/prompts/scene_threejs/glsl_cookbook.md`, section "The boilerplate:
+Full boilerplate: `codeverse3d/prompts/scene_threejs/glsl_cookbook.md`, section "The boilerplate:
makeShaderMaterial". The smallest thing that passes every rule above:
```js
diff --git a/harness/codeverse/skills/cv3d-urdf-joints/SKILL.md b/harness/codeverse3d/skills/c3d-urdf-joints/SKILL.md
similarity index 97%
rename from harness/codeverse/skills/cv3d-urdf-joints/SKILL.md
rename to harness/codeverse3d/skills/c3d-urdf-joints/SKILL.md
index 885560b2..15b03924 100644
--- a/harness/codeverse/skills/cv3d-urdf-joints/SKILL.md
+++ b/harness/codeverse3d/skills/c3d-urdf-joints/SKILL.md
@@ -1,8 +1,8 @@
---
-name: cv3d-urdf-joints
+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 codeverse/languages/urdf/runtime.py, codeverse/spatial/joints_sweep.py, joints_poses.py and codeverse/tracks/motion.py.
+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.
metadata:
evidence: measured
verified: "2026-08-25"
@@ -22,7 +22,7 @@ metadata:
in `src/model.py`), or that received a `joint_sweep` / `motion_direction` finding.
The frame recipe, the pivot rule and the visual/collision `origin = -pivot` line are in
-`codeverse/prompts/urdf/contract.md` and its cookbook — follow them literally. This skill is the
+`codeverse3d/prompts/urdf/contract.md` and its cookbook — follow them literally. This skill is the
part the contract does not tell you: **what the gates measure, and how to satisfy them before the
first build.**
diff --git a/harness/codeverse/skills/cv3d-urdf-joints/references/sweep-and-motion.md b/harness/codeverse3d/skills/c3d-urdf-joints/references/sweep-and-motion.md
similarity index 96%
rename from harness/codeverse/skills/cv3d-urdf-joints/references/sweep-and-motion.md
rename to harness/codeverse3d/skills/c3d-urdf-joints/references/sweep-and-motion.md
index 0204c63e..deef55e3 100644
--- a/harness/codeverse/skills/cv3d-urdf-joints/references/sweep-and-motion.md
+++ b/harness/codeverse3d/skills/c3d-urdf-joints/references/sweep-and-motion.md
@@ -1,9 +1,9 @@
# joint_sweep and motion_direction — depth
-Read out of the live harness on 2026-08-25: `codeverse/spatial/joints_sweep.py`,
-`joints_poses.py`, `joints_model.py`, `codeverse/languages/urdf/runtime.py`,
-`codeverse/tracks/motion.py`, `codeverse/tracks/articulated_object.py`,
-`codeverse/conventions.py`; plus every `joint_sweep` and `motion_direction` report under
+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`,
+`codeverse3d/conventions.py`; plus every `joint_sweep` and `motion_direction` report under
`bench/out` (26 `urdf_blender` runs, 50 judged rounds).
## 1. Constants, with the module each comes from
diff --git a/harness/codeverse/skills/config.py b/harness/codeverse3d/skills/config.py
similarity index 74%
rename from harness/codeverse/skills/config.py
rename to harness/codeverse3d/skills/config.py
index d5cbd69d..7878d6fd 100644
--- a/harness/codeverse/skills/config.py
+++ b/harness/codeverse3d/skills/config.py
@@ -1,21 +1,21 @@
"""The three switches that gate the whole skill system — read from the environment NOW.
-WHY not ``Settings``: ``codeverse.config.get_settings`` is ``lru_cache``d, so a value
+WHY not ``Settings``: ``codeverse3d.config.get_settings`` is ``lru_cache``d, so a value
read through it is frozen at first touch and an A/B arm that sets the variable after
import gets the control's behaviour. ``bench/ab_plan.py`` differs its arms only by
environment, and a wave once printed "keep, mean delta +0.344" for two byte-identical
arms because the switch it flipped was read by nothing at all
-(``codeverse/tracks/plan_features.py``). So: one module, read at call time, registered
+(``codeverse3d/tracks/plan_features.py``). So: one module, read at call time, registered
in ``plan_features.LIVE_SWITCHES``, and a test that greps the tree to prove it is read.
-* ``CV3D_SKILLS`` — off by default. On = route, materialise, measure.
-* ``CV3D_SKILLS_MAX`` — attached bundles per session (default 5, design §5.2 law 1).
-* ``CV3D_SKILLS_UNVERIFIED`` — also route bundles labelled ``inherited-unverified``
+* ``C3D_SKILLS`` — off by default. On = route, materialise, measure.
+* ``C3D_SKILLS_MAX`` — attached bundles per session (default 5, design §5.2 law 1).
+* ``C3D_SKILLS_UNVERIFIED`` — also route bundles labelled ``inherited-unverified``
(cadquery / threejs today: zero graded runs, so their claims are carried, not measured).
-* ``CV3D_SKILLS_ONLY`` — comma list; the router may consider ONLY these bundles.
+* ``C3D_SKILLS_ONLY`` — comma list; the router may consider ONLY these bundles.
-WHY ``CV3D_SKILLS_ONLY`` exists. An effect A/B has to attribute its delta to ONE bundle,
-and ``CV3D_SKILLS=1`` routes up to five. Restricting the LIBRARY (rather than filtering
+WHY ``C3D_SKILLS_ONLY`` exists. An effect A/B has to attribute its delta to ONE bundle,
+and ``C3D_SKILLS=1`` routes up to five. Restricting the LIBRARY (rather than filtering
the selection afterwards) is the semantics that keeps the arms honest: the named bundle
is routed exactly where its own table rows fire, and the cap never silently drops it in
favour of a higher-priority sheet that is not under test. An unknown name yields an
@@ -28,14 +28,14 @@ from __future__ import annotations
import logging
import os
-from codeverse.config import env_flag
+from codeverse3d.config import env_flag
log = logging.getLogger(__name__)
-SKILLS_ENV = "CV3D_SKILLS"
-SKILLS_MAX_ENV = "CV3D_SKILLS_MAX"
-SKILLS_UNVERIFIED_ENV = "CV3D_SKILLS_UNVERIFIED"
-SKILLS_ONLY_ENV = "CV3D_SKILLS_ONLY"
+SKILLS_ENV = "C3D_SKILLS"
+SKILLS_MAX_ENV = "C3D_SKILLS_MAX"
+SKILLS_UNVERIFIED_ENV = "C3D_SKILLS_UNVERIFIED"
+SKILLS_ONLY_ENV = "C3D_SKILLS_ONLY"
DEFAULT_SKILLS_MAX = 5
def skills_enabled() -> bool:
diff --git a/harness/codeverse/skills/materialize.py b/harness/codeverse3d/skills/materialize.py
similarity index 95%
rename from harness/codeverse/skills/materialize.py
rename to harness/codeverse3d/skills/materialize.py
index 9f818dac..190c28d1 100644
--- a/harness/codeverse/skills/materialize.py
+++ b/harness/codeverse3d/skills/materialize.py
@@ -40,16 +40,16 @@ from contextlib import suppress
from pathlib import Path
from typing import Any
-from codeverse.skills.config import SKILLS_ONLY_ENV, skills_max, skills_only, skills_unverified
-from codeverse.skills.model import Selection, Skill, SkillsMaterialized
-from codeverse.skills.prompting import (
+from codeverse3d.skills.config import SKILLS_ONLY_ENV, skills_max, skills_only, skills_unverified
+from codeverse3d.skills.model import Selection, Skill, SkillsMaterialized
+from codeverse3d.skills.prompting import (
AGENTS_SKILL_ROOT,
CLAUDE_SKILL_ROOT,
index_block,
index_tokens,
inline_body,
)
-from codeverse.skills.registry import plan_signals, select
+from codeverse3d.skills.registry import plan_signals, select
log = logging.getLogger(__name__)
@@ -61,7 +61,7 @@ MARK_END = "<!-- /3dcode:skills -->"
#: the never-routed bundle whose atime falsifies the probe. Named so it sorts away from
#: the real ones, and worded so an agent that does read it has been told it is a control.
-CONTROL_NAME = "zz-cv3d-read-control"
+CONTROL_NAME = "zz-c3d-read-control"
CONTROL_SKILL_MD = f"""---
name: {CONTROL_NAME}
description: Measurement control for the harness read probe. Never applies to any task; do
@@ -186,7 +186,7 @@ def attach_skills(
The caller decides whether the feature is on (``config.skills_enabled``); this
function assumes it is, so a test can attach without setting the environment.
- ``only`` (env ``CV3D_SKILLS_ONLY``) restricts the LIBRARY before routing, which is
+ ``only`` (env ``C3D_SKILLS_ONLY``) restricts the LIBRARY before routing, which is
what an effect A/B needs: the delta then belongs to one bundle instead of to whatever
set of five the router happened to pick. Restricting the library — rather than
filtering ``sel`` afterwards — also stops the cap from spending a slot on a bundle
@@ -194,7 +194,7 @@ def attach_skills(
"""
picked = skills_only() if only is None else only
if picked:
- from codeverse.skills import all_skills
+ from codeverse3d.skills import all_skills
lib = dict(all_skills() if library is None else library)
library = {n: s for n, s in lib.items() if n in picked}
diff --git a/harness/codeverse/skills/model.py b/harness/codeverse3d/skills/model.py
similarity index 97%
rename from harness/codeverse/skills/model.py
rename to harness/codeverse3d/skills/model.py
index 6dec93dd..c35eee10 100644
--- a/harness/codeverse/skills/model.py
+++ b/harness/codeverse3d/skills/model.py
@@ -15,11 +15,11 @@ from pathlib import Path
import yaml
from pydantic import BaseModel, Field
-from codeverse.cost.guard import text_tokens
+from codeverse3d.cost.guard import text_tokens
#: `metadata.evidence` values. A bundle whose claims are carried over from a reference
#: library but which our own corpus cannot back yet is `inherited-unverified`, and the
-#: router refuses it unless CV3D_SKILLS_UNVERIFIED is on (design §5.2 law 3).
+#: router refuses it unless C3D_SKILLS_UNVERIFIED is on (design §5.2 law 3).
EVIDENCE_MEASURED = "measured"
EVIDENCE_INHERITED = "inherited-unverified"
EVIDENCE_MIXED = "mixed"
@@ -101,7 +101,7 @@ class Selection(BaseModel):
class SkillsMaterialized(BaseModel):
- """What :func:`codeverse.skills.materialize.materialize_skills` wrote into a workspace."""
+ """What :func:`codeverse3d.skills.materialize.materialize_skills` wrote into a workspace."""
listed: list[str] = Field(default_factory=list, description="skill names, in attach order")
selections: list[Selection] = Field(default_factory=list, description="the routed rows, with the reason each fired")
diff --git a/harness/codeverse/skills/prompting.py b/harness/codeverse3d/skills/prompting.py
similarity index 97%
rename from harness/codeverse/skills/prompting.py
rename to harness/codeverse3d/skills/prompting.py
index 64ad2cab..e5427327 100644
--- a/harness/codeverse/skills/prompting.py
+++ b/harness/codeverse3d/skills/prompting.py
@@ -1,7 +1,7 @@
"""How one shared skill library reaches each coding agent — the ONE place that differs.
The library itself is agent-agnostic: plain `agentskills.io` bundles under
-``codeverse/skills/<name>/SKILL.md``, routed by ``registry.py`` from typed inputs. Nothing
+``codeverse3d/skills/<name>/SKILL.md``, routed by ``registry.py`` from typed inputs. Nothing
in it knows what a backend is. What genuinely differs between backends is only
**delivery**, and only in two bits:
@@ -32,8 +32,8 @@ import re
from collections.abc import Sequence
from dataclasses import dataclass
-from codeverse.cost.guard import text_tokens
-from codeverse.skills.model import Selection, Skill
+from codeverse3d.cost.guard import text_tokens
+from codeverse3d.skills.model import Selection, Skill
__all__ = ["AGENTS_SKILL_ROOT", "CLAUDE_SKILL_ROOT", "Delivery", "delivery_for", "known_backends"]
diff --git a/harness/codeverse/skills/registry.py b/harness/codeverse3d/skills/registry.py
similarity index 86%
rename from harness/codeverse/skills/registry.py
rename to harness/codeverse3d/skills/registry.py
index 0a315d05..b6b7ff65 100644
--- a/harness/codeverse/skills/registry.py
+++ b/harness/codeverse3d/skills/registry.py
@@ -25,7 +25,7 @@ import re
from dataclasses import dataclass
from typing import Any
-from codeverse.skills.model import EVIDENCE_INHERITED, Selection, Skill
+from codeverse3d.skills.model import EVIDENCE_INHERITED, Selection, Skill
# --------------------------------------------------------------------------- finding kinds
CONNECTIVITY_INTERPENETRATION = "connectivity/interpenetration"
@@ -166,88 +166,88 @@ class Route:
ROUTES: tuple[Route, ...] = (
- Route("R1", "cv3d-part-contact", 70, tracks=OBJECT_TRACKS, requires_all=("multi_part",),
+ Route("R1", "c3d-part-contact", 70, tracks=OBJECT_TRACKS, requires_all=("multi_part",),
why="a multi-part object: contact, penetration and stray islands are the top defect class (50.5% of runs)"),
- Route("R2", "cv3d-part-contact", 95, kinds=("repair", "refine", "rebuild"),
+ Route("R2", "c3d-part-contact", 95, kinds=("repair", "refine", "rebuild"),
findings=("connectivity/*", "joint_sweep/*"),
why="the previous round's connectivity/joint gate fired"),
- Route("R3", "cv3d-bbox-contract", 65, tracks=(*OBJECT_TRACKS, "scene"),
+ Route("R3", "c3d-bbox-contract", 65, tracks=(*OBJECT_TRACKS, "scene"),
kinds=("baseline", "part", "detail", "refine", "rebuild", "zone"),
why="this session owns dimensions, and the plan's numbers are the contract"),
- Route("R4", "cv3d-bbox-contract", 95, kinds=("repair", "refine", "rebuild"), findings=("contract/*",),
+ Route("R4", "c3d-bbox-contract", 95, kinds=("repair", "refine", "rebuild"), findings=("contract/*",),
why="the previous round's contract gate fired"),
- # R5 was cv3d-form-manifest, retired 2026-08-25: read 2/19 (11%, CI [3%,31%]) before and
+ # R5 was c3d-form-manifest, retired 2026-08-25: read 2/19 (11%, CI [3%,31%]) before and
# after its description was revised. See docs/SKILLS_LEDGER.md (the bundle's text is in git history). The id is
# not reused — a route id is how a ledger row and a run record refer to a routing decision.
- Route("R6", "cv3d-repeats-and-mirrors", 55, tracks=OBJECT_TRACKS,
+ Route("R6", "c3d-repeats-and-mirrors", 55, tracks=OBJECT_TRACKS,
kinds=("baseline", "part", "detail", "refine", "rebuild"),
requires_any=("has_instances", "has_symmetry"),
why="the plan repeats or mirrors a part, and the contract gate measures each instance"),
- Route("R7", "cv3d-repeats-and-mirrors", 90, kinds=("repair", "refine"), findings=("contract/instance_bbox",),
+ Route("R7", "c3d-repeats-and-mirrors", 90, kinds=("repair", "refine"), findings=("contract/instance_bbox",),
why="an instanced part's bbox drifted"),
- Route("R8", "cv3d-blender-forms", 75, languages=BLENDER_LANGS, kinds=BUILD_KINDS,
+ Route("R8", "c3d-blender-forms", 75, languages=BLENDER_LANGS, kinds=BUILD_KINDS,
why="blender authoring: the language of 47 of our graded runs"),
- Route("R9", "cv3d-blender-forms", 95, languages=BLENDER_LANGS, kinds=("repair",),
+ Route("R9", "c3d-blender-forms", 95, languages=BLENDER_LANGS, kinds=("repair",),
findings=(LINT_PART_NOT_IMPORTED,),
why="a part file was written but never imported, so its geometry does not exist"),
- Route("R10", "cv3d-cadquery-forms", 75, languages=("cadquery",), kinds=BUILD_KINDS,
+ Route("R10", "c3d-cadquery-forms", 75, languages=("cadquery",), kinds=BUILD_KINDS,
why="cadquery authoring (evidence: inherited-unverified — 0 graded runs, routed off by default)"),
- Route("R11", "cv3d-threejs-forms", 75, tracks=("static_object",), languages=("threejs",), kinds=BUILD_KINDS,
+ Route("R11", "c3d-threejs-forms", 75, tracks=("static_object",), languages=("threejs",), kinds=BUILD_KINDS,
why="three.js object authoring (evidence: inherited-unverified — 0 graded runs, routed off by default)"),
- Route("R12", "cv3d-urdf-joints", 80, tracks=("articulated_object",), languages=("urdf_blender",),
+ Route("R12", "c3d-urdf-joints", 80, tracks=("articulated_object",), languages=("urdf_blender",),
kinds=("baseline", "refine", "rebuild", "repair"),
why="joints, limits and axes: joint_sweep fires on 38% and motion_direction on 35% of urdf runs"),
- Route("R13", "cv3d-urdf-joints", 95, tracks=("articulated_object",), languages=("urdf_blender",),
+ Route("R13", "c3d-urdf-joints", 95, tracks=("articulated_object",), languages=("urdf_blender",),
findings=("joint_sweep/*", "motion_direction/*"),
why="a joint_sweep or motion_direction gate fired on the previous round"),
- Route("R14", "cv3d-scene-composition", 75, tracks=("scene",), languages=("scene_threejs",),
+ Route("R14", "c3d-scene-composition", 75, tracks=("scene",), languages=("scene_threejs",),
kinds=("baseline", "env", "zone", "compose", "refine"),
why="scene layout and camera framing"),
- Route("R15", "cv3d-scene-composition", 95, tracks=("scene",), languages=("scene_threejs",),
+ Route("R15", "c3d-scene-composition", 95, tracks=("scene",), languages=("scene_threejs",),
findings=(SCENE_CAMERA_PLACEMENT,),
why="the camera was below ground or inside geometry"),
- Route("R16", "cv3d-scene-lighting", 65, tracks=("scene",), languages=("scene_threejs",),
+ Route("R16", "c3d-scene-lighting", 65, tracks=("scene",), languages=("scene_threejs",),
kinds=("baseline", "env", "refine"),
why="lighting and exposure decide whether the frame reads at all"),
- Route("R17", "cv3d-scene-lighting", 95, tracks=("scene",), languages=("scene_threejs",),
+ Route("R17", "c3d-scene-lighting", 95, tracks=("scene",), languages=("scene_threejs",),
findings=(SCENE_DARK_OR_FLAT,),
why="the frame gate called the render dark or flat"),
- Route("R18", "cv3d-scene-motion", 70, tracks=("scene",), languages=("scene_threejs",),
+ Route("R18", "c3d-scene-motion", 70, tracks=("scene",), languages=("scene_threejs",),
kinds=("baseline", "zone", "refine", "compose"),
why="animation_life 0.431 is the lowest criterion in the whole corpus"),
- Route("R19", "cv3d-scene-motion", 90, tracks=("scene",), languages=("scene_threejs",),
+ Route("R19", "c3d-scene-motion", 90, tracks=("scene",), languages=("scene_threejs",),
findings=(GL_MOTION_OR_DETAIL,),
why="the frame-difference gate saw a flicker or a still image"),
- Route("R20", "cv3d-threejs-shader-traps", 60, tracks=("scene", "static_object"), languages=THREEJS_LANGS,
+ Route("R20", "c3d-threejs-shader-traps", 60, tracks=("scene", "static_object"), languages=THREEJS_LANGS,
requires_all=("has_custom_shader",),
why="the plan names a custom shader/material effect"),
- Route("R21", "cv3d-threejs-shader-traps", 95, languages=THREEJS_LANGS, findings=(SHADER_COMPILE_OR_BINDING,),
+ Route("R21", "c3d-threejs-shader-traps", 95, languages=THREEJS_LANGS, findings=(SHADER_COMPILE_OR_BINDING,),
why="a shader failed to compile or a uniform was unbound"),
- Route("R22", "cv3d-glsl-craft", 80, tracks=("graphics",), languages=("glsl_shader",),
+ Route("R22", "c3d-glsl-craft", 80, tracks=("graphics",), languages=("glsl_shader",),
kinds=("baseline", "refine", "repair", "rebuild"),
why="fragment-shader craft: technical_cleanliness 0.597 is the lowest glsl criterion"),
- Route("R23", "cv3d-opengl-pipeline", 80, tracks=("graphics",), languages=("opengl_python",),
+ Route("R23", "c3d-opengl-pipeline", 80, tracks=("graphics",), languages=("opengl_python",),
kinds=("baseline", "refine", "repair", "rebuild"),
why="pipeline setup and pass structure: originality 0.330 is the lowest criterion anywhere"),
# R24 is one row per language: the design writes it as a single line, but a Route names
# exactly one skill so telemetry can say which one the finding routed.
- Route("R24-glsl", "cv3d-glsl-craft", 90, tracks=("graphics",), languages=("glsl_shader",),
+ Route("R24-glsl", "c3d-glsl-craft", 90, tracks=("graphics",), languages=("glsl_shader",),
findings=(GL_MOTION_OR_DETAIL,), why="the frame gate saw no motion or no detail"),
- Route("R24-opengl", "cv3d-opengl-pipeline", 90, tracks=("graphics",), languages=("opengl_python",),
+ Route("R24-opengl", "c3d-opengl-pipeline", 90, tracks=("graphics",), languages=("opengl_python",),
findings=(GL_MOTION_OR_DETAIL,), why="the frame gate saw no motion or no detail"),
# R25-R28 (2026-09-01): the graphics-recipe port from the scene_multifile_graphics
# reference (docs/EVAL.md sceneloop entry). Atmosphere and materials ride every
# env/baseline build; water and night only when the plan's own words ask for them.
- Route("R25", "cv3d-scene-atmosphere", 70, tracks=("scene",), languages=("scene_threejs",),
+ Route("R25", "c3d-scene-atmosphere", 70, tracks=("scene",), languages=("scene_threejs",),
kinds=("baseline", "env", "refine"),
why="the sky bake is the light source every PBR surface reflects; 4/9 reference scenes shipped it inverted"),
- Route("R26", "cv3d-scene-water", 85, tracks=("scene",), languages=("scene_threejs",),
+ Route("R26", "c3d-scene-water", 85, tracks=("scene",), languages=("scene_threejs",),
kinds=("baseline", "env", "zone", "compose", "refine"), requires_any=("wants_water",),
why="the plan's own words ask for water; metallic water is the reference's most-shipped material mistake"),
- Route("R27", "cv3d-scene-night", 85, tracks=("scene",), languages=("scene_threejs",),
+ Route("R27", "c3d-scene-night", 85, tracks=("scene",), languages=("scene_threejs",),
kinds=("baseline", "env", "zone", "compose", "refine"), requires_any=("wants_night",),
why="the plan's own words ask for night; shafts/emissive discipline is measured in the reference ledger"),
- Route("R28", "cv3d-scene-materials", 65, tracks=("scene",), languages=("scene_threejs",),
+ Route("R28", "c3d-scene-materials", 65, tracks=("scene",), languages=("scene_threejs",),
kinds=("baseline", "zone", "compose", "refine"),
why="flat albedo and identical twins are the reference audit's most-cited surface defects"),
)
@@ -333,7 +333,7 @@ def select(
``findings`` may be ``GateFinding``s, ``GateReport``s, or already-classified kind
strings — the caller usually has the previous ``RoundRecord.gates`` on hand.
"""
- from codeverse.skills import all_skills
+ from codeverse3d.skills import all_skills
lib = library if library is not None else all_skills()
sig = dict(signals or {})
@@ -359,7 +359,7 @@ def select(
log.debug("route %s names skill %r, which is not in the library", row.rule, row.skill)
continue
if skill.evidence == EVIDENCE_INHERITED and not allow_unverified:
- log.debug("skill %s is %s and CV3D_SKILLS_UNVERIFIED is off; not routed", skill.name, EVIDENCE_INHERITED)
+ log.debug("skill %s is %s and C3D_SKILLS_UNVERIFIED is off; not routed", skill.name, EVIDENCE_INHERITED)
continue
reason = f"{row.rule}: {row.why}" + (f" [{hit}]" if hit else "")
first_seen.setdefault(row.skill, order)
diff --git a/harness/codeverse/skills/telemetry.py b/harness/codeverse3d/skills/telemetry.py
similarity index 95%
rename from harness/codeverse/skills/telemetry.py
rename to harness/codeverse3d/skills/telemetry.py
index 88dbf776..93885c35 100644
--- a/harness/codeverse/skills/telemetry.py
+++ b/harness/codeverse3d/skills/telemetry.py
@@ -37,9 +37,9 @@ import logging
from pathlib import Path
from typing import Any
-from codeverse.contracts.run import SkillRead, SkillsUsage
-from codeverse.skills.model import SkillsMaterialized
-from codeverse.skills.prompting import AGENTS_SKILL_ROOT, CLAUDE_SKILL_ROOT
+from codeverse3d.contracts.run import SkillRead, SkillsUsage
+from codeverse3d.skills.model import SkillsMaterialized
+from codeverse3d.skills.prompting import AGENTS_SKILL_ROOT, CLAUDE_SKILL_ROOT
log = logging.getLogger(__name__)
@@ -86,7 +86,7 @@ def probe_reads(ws_root: Path, materialized: SkillsMaterialized) -> SkillsUsage:
def _control_state(root: Path) -> tuple[bool, bool]:
"""(a control was materialised, something opened it) — the probe's own falsification."""
- from codeverse.skills.materialize import CONTROL_NAME
+ from codeverse3d.skills.materialize import CONTROL_NAME
present = False
opened = False
diff --git a/harness/codeverse/spatial/__init__.py b/harness/codeverse3d/spatial/__init__.py
similarity index 91%
rename from harness/codeverse/spatial/__init__.py
rename to harness/codeverse3d/spatial/__init__.py
index 372bfb3b..556468be 100644
--- a/harness/codeverse/spatial/__init__.py
+++ b/harness/codeverse3d/spatial/__init__.py
@@ -5,7 +5,7 @@ yields: a python callable, a JSON schema for native tool-calling, an MCP tool,
and a prompt card. Observations are structured (text + numbers + images).
"""
-from codeverse.spatial.registry import (
+from codeverse3d.spatial.registry import (
Observation,
ToolDef,
ToolUsageError,
diff --git a/harness/codeverse/spatial/_render_common.py b/harness/codeverse3d/spatial/_render_common.py
similarity index 93%
rename from harness/codeverse/spatial/_render_common.py
rename to harness/codeverse3d/spatial/_render_common.py
index b2918157..b413e13a 100644
--- a/harness/codeverse/spatial/_render_common.py
+++ b/harness/codeverse3d/spatial/_render_common.py
@@ -17,9 +17,9 @@ from collections.abc import Sequence
from pathlib import Path
from typing import Any
-from codeverse.config import get_settings
-from codeverse.conventions import ViewPreset
-from codeverse.spatial.sheet import contact_sheet
+from codeverse3d.config import get_settings
+from codeverse3d.conventions import ViewPreset
+from codeverse3d.spatial.sheet import contact_sheet
def out_directory(out_dir: Path | str, *, clean: Sequence[str] = ()) -> Path:
diff --git a/harness/codeverse/spatial/ablation.py b/harness/codeverse3d/spatial/ablation.py
similarity index 98%
rename from harness/codeverse/spatial/ablation.py
rename to harness/codeverse3d/spatial/ablation.py
index 87a4c435..1b417494 100644
--- a/harness/codeverse/spatial/ablation.py
+++ b/harness/codeverse3d/spatial/ablation.py
@@ -35,9 +35,9 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.proc import read_json_or_none
-from codeverse.spatial.render_scene import SceneRenderError, run_scene_script
-from codeverse.workspace import Workspace
+from codeverse3d.proc import read_json_or_none
+from codeverse3d.spatial.render_scene import SceneRenderError, run_scene_script
+from codeverse3d.workspace import Workspace
#: census.json key the compact report lands under
CENSUS_FIELD = "effect_ablation"
diff --git a/harness/codeverse/spatial/complexity.py b/harness/codeverse3d/spatial/complexity.py
similarity index 99%
rename from harness/codeverse/spatial/complexity.py
rename to harness/codeverse3d/spatial/complexity.py
index cc80232b..c282dce1 100644
--- a/harness/codeverse/spatial/complexity.py
+++ b/harness/codeverse3d/spatial/complexity.py
@@ -349,7 +349,7 @@ def complexity_of_parts(
fdens, fedges = _feature_density(whole)
hollow, watertight = _hollowness(solid)
groups, repeated = _symmetry_groups(solid)
- from codeverse.spatial.measure import effective_top_nodes
+ from codeverse3d.spatial.measure import effective_top_nodes
tops = effective_top_nodes(scene) if scene is not None else []
vec = ComplexityVector(
@@ -377,7 +377,7 @@ def complexity_of_parts(
def complexity_of_glb(glb: Path | str) -> ComplexityVector:
"""Complexity of a canonical GLB on disk (uses the shared parse cache)."""
- from codeverse.spatial.measure import cached_parts, load_scene
+ from codeverse3d.spatial.measure import cached_parts, load_scene
parts = cached_parts(glb)
try:
diff --git a/harness/codeverse/spatial/connectivity.py b/harness/codeverse3d/spatial/connectivity.py
similarity index 98%
rename from harness/codeverse/spatial/connectivity.py
rename to harness/codeverse3d/spatial/connectivity.py
index 5e87a7ef..e328c566 100644
--- a/harness/codeverse/spatial/connectivity.py
+++ b/harness/codeverse3d/spatial/connectivity.py
@@ -50,12 +50,12 @@ from typing import Any
import numpy as np
import trimesh
-from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
-from codeverse.conventions import CONTACT_GAP_M, Frame
-from codeverse.spatial import joints_collide as collide
-from codeverse.spatial.contract import frame_label, glb_vec_to_plan, language_frame
-from codeverse.spatial.joints_collide import fcl_collision_object, inside_island, oriented_islands
-from codeverse.spatial.measure import GlbLoadError, fmt_vec, solid_parts
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+from codeverse3d.conventions import CONTACT_GAP_M, Frame
+from codeverse3d.spatial import joints_collide as collide
+from codeverse3d.spatial.contract import frame_label, glb_vec_to_plan, language_frame
+from codeverse3d.spatial.joints_collide import fcl_collision_object, inside_island, oriented_islands
+from codeverse3d.spatial.measure import GlbLoadError, fmt_vec, solid_parts
GATE = "connectivity"
#: one planned join: (child, parent) or (child, (parent copies the child's box touches, …))
@@ -209,7 +209,7 @@ def pair_distance(
"""Exact (fcl) or sampled minimum distance between two meshes with closest points.
``obj_a``/``obj_b`` accept prebuilt ``fcl.CollisionObject``\\ s (see
- :func:`codeverse.spatial.joints_collide.fcl_collision_object`) so a caller
+ :func:`codeverse3d.spatial.joints_collide.fcl_collision_object`) so a caller
testing many pairs builds each part's BVH once instead of once per pair.
"""
if collide._fcl is not None:
@@ -261,7 +261,7 @@ def _inside_depth(islands: list[trimesh.Trimesh], pts: np.ndarray) -> tuple[np.n
"""(mask of ``pts`` inside one of ``islands``, max distance of those to the surface).
Containment is the per-island, fixed-direction parity ray test the articulation gate
- already uses (:func:`codeverse.spatial.joints_collide.inside_island`), NOT
+ already uses (:func:`codeverse3d.spatial.joints_collide.inside_island`), NOT
``Trimesh.contains``. ``contains`` needs a watertight mesh, so this used to
``continue`` past any open shell — and when NEITHER part was watertight it returned
(0.0, 0.0), indistinguishable from "no overlap", with no warning that the check had
diff --git a/harness/codeverse/spatial/contract.py b/harness/codeverse3d/spatial/contract.py
similarity index 98%
rename from harness/codeverse/spatial/contract.py
rename to harness/codeverse3d/spatial/contract.py
index e8673e17..88aea5a0 100644
--- a/harness/codeverse/spatial/contract.py
+++ b/harness/codeverse3d/spatial/contract.py
@@ -29,15 +29,15 @@ from dataclasses import dataclass
import numpy as np
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.artifacts import (
GateFinding,
GateReport,
Measurement,
PartMeasure,
Severity,
)
-from codeverse.contracts.plan import BBox, PartPlan, Plan, ScenePlan, StaticPlan
-from codeverse.conventions import (
+from codeverse3d.contracts.plan import BBox, PartPlan, Plan, ScenePlan, StaticPlan
+from codeverse3d.conventions import (
BBOX_TOLERANCE_M,
CONTACT_GAP_M,
FRAME_AXES,
@@ -45,7 +45,7 @@ from codeverse.conventions import (
Frame,
to_snake,
)
-from codeverse.spatial.measure import fmt_extent_cm, fmt_vec
+from codeverse3d.spatial.measure import fmt_extent_cm, fmt_vec
GATE = "contract"
#: relative tolerance on extents (fraction of the plan's extent)
diff --git a/harness/codeverse/spatial/frame_metrics.py b/harness/codeverse3d/spatial/frame_metrics.py
similarity index 99%
rename from harness/codeverse/spatial/frame_metrics.py
rename to harness/codeverse3d/spatial/frame_metrics.py
index 22d77a7a..882e6047 100644
--- a/harness/codeverse/spatial/frame_metrics.py
+++ b/harness/codeverse3d/spatial/frame_metrics.py
@@ -22,8 +22,8 @@ import json
from pathlib import Path
from typing import Any
-from codeverse.contracts.artifacts import GateFinding, GateReport, RenderSet, Severity
-from codeverse.spatial.frame_motion import MotionRow, motion_summary_text, scene_moves
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, RenderSet, Severity
+from codeverse3d.spatial.frame_motion import MotionRow, motion_summary_text, scene_moves
FRAME_GATE = "scene_frames"
@@ -430,7 +430,7 @@ def frame_findings(metrics: dict[str, Any]) -> GateReport:
def frame_gate_from_renders(source: RenderSet | Path | str) -> GateReport:
"""``scene_frames`` gate from a RenderSet (locates its metrics.json), a render
directory or a metrics.json path. Missing metrics → an empty passing report."""
- from codeverse.spatial.render_scene import metrics_path_for
+ from codeverse3d.spatial.render_scene import metrics_path_for
if isinstance(source, RenderSet):
path = metrics_path_for(source)
diff --git a/harness/codeverse/spatial/frame_motion.py b/harness/codeverse3d/spatial/frame_motion.py
similarity index 100%
rename from harness/codeverse/spatial/frame_motion.py
rename to harness/codeverse3d/spatial/frame_motion.py
diff --git a/harness/codeverse/spatial/frame_stats.py b/harness/codeverse3d/spatial/frame_stats.py
similarity index 99%
rename from harness/codeverse/spatial/frame_stats.py
rename to harness/codeverse3d/spatial/frame_stats.py
index 6f79b59a..1ad9f9e0 100644
--- a/harness/codeverse/spatial/frame_stats.py
+++ b/harness/codeverse3d/spatial/frame_stats.py
@@ -18,7 +18,7 @@ import numpy as np
from PIL import Image
from pydantic import BaseModel, Field
-from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
GATE = "gl_frames"
BLACK_LUM = 0.03
diff --git a/harness/codeverse/spatial/gl_render.py b/harness/codeverse3d/spatial/gl_render.py
similarity index 97%
rename from harness/codeverse/spatial/gl_render.py
rename to harness/codeverse3d/spatial/gl_render.py
index 4c7baf5a..417ea77d 100644
--- a/harness/codeverse/spatial/gl_render.py
+++ b/harness/codeverse3d/spatial/gl_render.py
@@ -29,7 +29,7 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.proc import run_subprocess
+from codeverse3d.proc import run_subprocess
RUNNER = Path(__file__).resolve().parent.parent / "languages" / "opengl_python" / "wrappers" / "run_gl.py"
@@ -186,10 +186,10 @@ class GlHost:
def write_contact_sheet(frames: Sequence[GlFrame], out: Path, *, cols: int = 3, tile_w: int = 480) -> Path:
"""Labelled grid of frames keeping their aspect ratio (``t=<s>`` under each tile).
- Thin wrapper over :func:`codeverse.spatial.sheet.contact_sheet` (the one
+ Thin wrapper over :func:`codeverse3d.spatial.sheet.contact_sheet` (the one
sheet builder) with a 16:9-style cell derived from the first frame.
"""
- from codeverse.spatial.sheet import contact_sheet, tile_size
+ from codeverse3d.spatial.sheet import contact_sheet, tile_size
frames = list(frames)
if not frames:
@@ -200,7 +200,7 @@ def write_contact_sheet(frames: Sequence[GlFrame], out: Path, *, cols: int = 3,
def write_gif(frames: Sequence[GlFrame], out: Path, *, width: int = 480, fps: int = 6) -> Path | None:
"""Animated GIF preview from ALL frames (judge + extra), resized to ``width``."""
- from codeverse.spatial.sheet import write_gif as _write_gif
+ from codeverse3d.spatial.sheet import write_gif as _write_gif
ordered = sorted(frames, key=lambda f: f.time)
if len(ordered) < 2:
diff --git a/harness/codeverse/spatial/joints.py b/harness/codeverse3d/spatial/joints.py
similarity index 64%
rename from harness/codeverse/spatial/joints.py
rename to harness/codeverse3d/spatial/joints.py
index a9f8f3a8..a0eb83f8 100644
--- a/harness/codeverse/spatial/joints.py
+++ b/harness/codeverse3d/spatial/joints.py
@@ -2,24 +2,24 @@
Import from here::
- from codeverse.spatial.joints import load_urdf, fk, pose_samples, sweep_collisions, urdf_to_glb
+ from codeverse3d.spatial.joints import load_urdf, fk, pose_samples, sweep_collisions, urdf_to_glb
-* :mod:`codeverse.spatial.joints_model` — ``Robot``/``Link``/``Joint``, ``load_urdf``,
+* :mod:`codeverse3d.spatial.joints_model` — ``Robot``/``Link``/``Joint``, ``load_urdf``,
``fk``, ``pose_samples``, ``limit_poses``, URDF frame math.
-* :mod:`codeverse.spatial.joints_sweep` — ``sweep_collisions`` (FCL + trimesh),
+* :mod:`codeverse3d.spatial.joints_sweep` — ``sweep_collisions`` (FCL + trimesh),
``sweep_findings`` (→ GateFindings), ``motion_direction_check``.
-* :mod:`codeverse.spatial.joints_export` — ``urdf_to_glb`` (hierarchical GLB with joint
+* :mod:`codeverse3d.spatial.joints_export` — ``urdf_to_glb`` (hierarchical GLB with joint
extras), ``render_poses`` (+ ``articulation_sheet.png``).
"""
-from codeverse.spatial.joints_export import (
+from codeverse3d.spatial.joints_export import (
ARTICULATION_SHEET_NAME,
ZUP_TO_YUP,
render_poses,
robot_scene,
urdf_to_glb,
)
-from codeverse.spatial.joints_model import (
+from codeverse3d.spatial.joints_model import (
Joint,
Link,
Robot,
@@ -28,8 +28,8 @@ from codeverse.spatial.joints_model import (
link_world_meshes,
load_urdf,
)
-from codeverse.spatial.joints_poses import limit_poses, pose_label, pose_samples
-from codeverse.spatial.joints_sweep import (
+from codeverse3d.spatial.joints_poses import limit_poses, pose_label, pose_samples
+from codeverse3d.spatial.joints_sweep import (
MotionCheck,
Overlap,
SweepReport,
diff --git a/harness/codeverse/spatial/joints_collide.py b/harness/codeverse3d/spatial/joints_collide.py
similarity index 100%
rename from harness/codeverse/spatial/joints_collide.py
rename to harness/codeverse3d/spatial/joints_collide.py
diff --git a/harness/codeverse/spatial/joints_export.py b/harness/codeverse3d/spatial/joints_export.py
similarity index 92%
rename from harness/codeverse/spatial/joints_export.py
rename to harness/codeverse3d/spatial/joints_export.py
index 6742689d..570665ad 100644
--- a/harness/codeverse/spatial/joints_export.py
+++ b/harness/codeverse3d/spatial/joints_export.py
@@ -1,7 +1,7 @@
"""Export a posed :class:`Robot` to the canonical GLB (node hierarchy mirroring
links, joint extras) and render articulation sheets.
-GLB convention: Y-up, +Z front (``codeverse.conventions.GLB_FRAME``). The
+GLB convention: Y-up, +Z front (``codeverse3d.conventions.GLB_FRAME``). The
URDF world (Z-up, -Y front) is rotated by ``Rx(-90°)`` at the ``<robot name>``
node; every link is a child node (name = link name) whose local matrix is the
joint transform ``T_origin · Motion(q)``; geometry lives in the link frame.
@@ -18,13 +18,13 @@ from typing import Any
import numpy as np
import trimesh
-from codeverse.contracts.artifacts import RenderSet
-from codeverse.conventions import OBJECT_VIEWS_QUICK, ViewPreset
-from codeverse.spatial._render_common import out_directory
-from codeverse.spatial.joints_model import Joint, Robot, fk, resolve_q
-from codeverse.spatial.joints_poses import limit_poses
-from codeverse.spatial.render import render_glb
-from codeverse.spatial.sheet import contact_sheet
+from codeverse3d.contracts.artifacts import RenderSet
+from codeverse3d.conventions import OBJECT_VIEWS_QUICK, ViewPreset
+from codeverse3d.spatial._render_common import out_directory
+from codeverse3d.spatial.joints_model import Joint, Robot, fk, resolve_q
+from codeverse3d.spatial.joints_poses import limit_poses
+from codeverse3d.spatial.render import render_glb
+from codeverse3d.spatial.sheet import contact_sheet
ARTICULATION_SHEET_NAME = "articulation_sheet.png"
#: URDF (Z-up, -Y front) → glTF (Y-up, +Z front): (x, y, z) → (x, z, -y)
diff --git a/harness/codeverse/spatial/joints_model.py b/harness/codeverse3d/spatial/joints_model.py
similarity index 99%
rename from harness/codeverse/spatial/joints_model.py
rename to harness/codeverse3d/spatial/joints_model.py
index bd80617d..0cf1b0aa 100644
--- a/harness/codeverse/spatial/joints_model.py
+++ b/harness/codeverse3d/spatial/joints_model.py
@@ -1,6 +1,6 @@
"""URDF data model + loader + forward kinematics (numpy, trimesh).
-Conventions (see ``codeverse/languages/urdf/CONTRACT.md``):
+Conventions (see ``codeverse3d/languages/urdf/CONTRACT.md``):
* URDF frames are Z-up, -Y front, meters. ``<origin xyz rpy>`` uses the URDF
rotation order ``R = Rz(yaw) · Ry(pitch) · Rx(roll)``.
@@ -24,7 +24,7 @@ from pathlib import Path
import numpy as np
import trimesh
-from codeverse.contracts.common import MimicIssue, MimicSpec, mimic_issues
+from codeverse3d.contracts.common import MimicIssue, MimicSpec, mimic_issues
MOVABLE_TYPES = ("revolute", "prismatic", "continuous")
JOINT_TYPES = MOVABLE_TYPES + ("fixed",)
diff --git a/harness/codeverse/spatial/joints_poses.py b/harness/codeverse3d/spatial/joints_poses.py
similarity index 98%
rename from harness/codeverse/spatial/joints_poses.py
rename to harness/codeverse3d/spatial/joints_poses.py
index 7491f44f..46368607 100644
--- a/harness/codeverse/spatial/joints_poses.py
+++ b/harness/codeverse3d/spatial/joints_poses.py
@@ -6,7 +6,7 @@ import math
import numpy as np
-from codeverse.spatial.joints_model import Joint, Robot
+from codeverse3d.spatial.joints_model import Joint, Robot
def _joint_values(j: Joint) -> list[float]:
diff --git a/harness/codeverse/spatial/joints_sweep.py b/harness/codeverse3d/spatial/joints_sweep.py
similarity index 98%
rename from harness/codeverse/spatial/joints_sweep.py
rename to harness/codeverse3d/spatial/joints_sweep.py
index b95137f4..65b8f7fc 100644
--- a/harness/codeverse/spatial/joints_sweep.py
+++ b/harness/codeverse3d/spatial/joints_sweep.py
@@ -13,11 +13,11 @@ import numpy as np
import trimesh
from pydantic import BaseModel, Field
-from codeverse.contracts.artifacts import GateFinding, Severity
-from codeverse.conventions import CONTACT_GAP_M
-from codeverse.spatial import joints_collide as collide
-from codeverse.spatial.joints_model import Robot, UrdfError, fk
-from codeverse.spatial.joints_poses import pose_label
+from codeverse3d.contracts.artifacts import GateFinding, Severity
+from codeverse3d.conventions import CONTACT_GAP_M
+from codeverse3d.spatial import joints_collide as collide
+from codeverse3d.spatial.joints_model import Robot, UrdfError, fk
+from codeverse3d.spatial.joints_poses import pose_label
# ------------------------------------------------------------------ report types
@@ -296,7 +296,7 @@ def buried_links(robot: Robot, *, samples: int = BURIED_SAMPLES, fraction: float
inside the jaw and the judge reported it missing). Uses the sweep's own
:class:`LinkBody` island containment, so this check and the collision sweep agree
about what "inside" means; works on the open meshes agents actually export."""
- from codeverse.spatial.joints_model import link_world_meshes
+ from codeverse3d.spatial.joints_model import link_world_meshes
meshes = link_world_meshes(robot, {})
bodies = {n: collide.LinkBody(n, m) for n, m in meshes.items() if not m.is_empty and m.area > 0}
diff --git a/harness/codeverse/spatial/mcp_server.py b/harness/codeverse3d/spatial/mcp_server.py
similarity index 95%
rename from harness/codeverse/spatial/mcp_server.py
rename to harness/codeverse3d/spatial/mcp_server.py
index e88595ca..8dd108a9 100644
--- a/harness/codeverse/spatial/mcp_server.py
+++ b/harness/codeverse3d/spatial/mcp_server.py
@@ -1,6 +1,6 @@
"""stdio MCP server exposing the spatial tool registry to coding agents.
- python -m codeverse.spatial.mcp_server --workspace <ws> [--track X] [--language Y] [--round N]
+ python -m codeverse3d.spatial.mcp_server --workspace <ws> [--track X] [--language Y] [--round N]
One MCP tool per registry tool (name, description, JSON schema from
``ToolDef.schema()``). Results are content blocks: one ``TextContent`` with the
@@ -28,10 +28,10 @@ from typing import Any
from PIL import Image
-from codeverse.spatial.observe import fmt_numbers, truncate
-from codeverse.spatial.registry import Observation, ToolContext, list_tools
-from codeverse.spatial.tool_common import spec_dict
-from codeverse.workspace import Workspace
+from codeverse3d.spatial.observe import fmt_numbers, truncate
+from codeverse3d.spatial.registry import Observation, ToolContext, list_tools
+from codeverse3d.spatial.tool_common import spec_dict
+from codeverse3d.workspace import Workspace
MAX_IMAGES = 4
MAX_IMAGE_SIDE = 1024
@@ -207,7 +207,7 @@ async def serve_stdio(ctx: ToolContext) -> None:
def main(argv: list[str] | None = None) -> int:
- ap = argparse.ArgumentParser(prog="codeverse.spatial.mcp_server", description=__doc__)
+ ap = argparse.ArgumentParser(prog="codeverse3d.spatial.mcp_server", description=__doc__)
ap.add_argument("--workspace", required=True, help="run workspace directory")
ap.add_argument("--track", default="")
ap.add_argument("--language", default="")
diff --git a/harness/codeverse/spatial/measure.py b/harness/codeverse3d/spatial/measure.py
similarity index 99%
rename from harness/codeverse/spatial/measure.py
rename to harness/codeverse3d/spatial/measure.py
index cbc8bbc0..e721fd53 100644
--- a/harness/codeverse/spatial/measure.py
+++ b/harness/codeverse3d/spatial/measure.py
@@ -32,7 +32,7 @@ from typing import Any
import numpy as np
import trimesh
-from codeverse.contracts.artifacts import Measurement, PartMeasure
+from codeverse3d.contracts.artifacts import Measurement, PartMeasure
__all__ = [
"load_scene",
@@ -363,7 +363,7 @@ def _complexity_extra(
"""The complexity vector as a plain dict, or ``None`` when it cannot be
computed. Additive by contract: measuring must never fail because an
artifact defeats one complexity axis."""
- from codeverse.spatial.complexity import complexity_of_parts
+ from codeverse3d.spatial.complexity import complexity_of_parts
try:
return complexity_of_parts(parts, scene=scene, materials=materials).model_dump()
diff --git a/harness/codeverse/spatial/node.py b/harness/codeverse3d/spatial/node.py
similarity index 96%
rename from harness/codeverse/spatial/node.py
rename to harness/codeverse3d/spatial/node.py
index 1a5cbad8..cfa3b39c 100644
--- a/harness/codeverse/spatial/node.py
+++ b/harness/codeverse3d/spatial/node.py
@@ -21,8 +21,8 @@ from functools import lru_cache
from pathlib import Path
from typing import Any
-from codeverse.config import get_settings
-from codeverse.proc import run_subprocess, scrub_secrets
+from codeverse3d.config import get_settings
+from codeverse3d.proc import run_subprocess, scrub_secrets
TAIL_CHARS = 4000
@@ -106,7 +106,7 @@ def transient_failure(text: object) -> bool:
#: Env for a retry after a browser loss: take an OWNED browser, because the shared
#: one advertised in the cache is the suspect (`runtime_js/gpu_launch.cjs`).
-OWN_BROWSER_ENV: dict[str, str] = {"CV3D_BROWSER_REUSE": "off"}
+OWN_BROWSER_ENV: dict[str, str] = {"C3D_BROWSER_REUSE": "off"}
def browser_was_lost(text: object) -> bool:
@@ -187,7 +187,7 @@ def node_version_error(version: tuple[int, int, int] | None) -> str:
return (f"node {got} is too old: 3dcodeverse needs node >= {NODE_MIN_STR} "
f"(`--import` module hooks; see runtime_js/package.json \"engines\"). "
f"Install a newer one (`nvm install --lts`, or https://nodejs.org) and put it on PATH, "
- f"or point the harness at it with CV3D_BINARIES__NODE=/path/to/node.")
+ f"or point the harness at it with C3D_BINARIES__NODE=/path/to/node.")
def require_node_version(node_bin: str) -> None:
@@ -233,7 +233,7 @@ def run_node(
# credential-shaped vars are stripped; env_extra (harness-owned) is applied after.
env = scrub_secrets(dict(os.environ))
env["NODE_PATH"] = str(node_modules_dir())
- env.setdefault("CV3D_CACHE_DIR", str(settings.cache_dir))
+ env.setdefault("C3D_CACHE_DIR", str(settings.cache_dir))
env.setdefault("NODE_OPTIONS", "")
env["NODE_NO_WARNINGS"] = "1"
if env_extra:
diff --git a/harness/codeverse/spatial/observe.py b/harness/codeverse3d/spatial/observe.py
similarity index 98%
rename from harness/codeverse/spatial/observe.py
rename to harness/codeverse3d/spatial/observe.py
index 17ab48a9..52ce2b98 100644
--- a/harness/codeverse/spatial/observe.py
+++ b/harness/codeverse3d/spatial/observe.py
@@ -17,8 +17,8 @@ from collections.abc import Iterable, Sequence
from pathlib import Path
from typing import Any
-from codeverse.contracts.artifacts import BuildResult, GateReport, RenderSet, Severity
-from codeverse.spatial.registry import Observation
+from codeverse3d.contracts.artifacts import BuildResult, GateReport, RenderSet, Severity
+from codeverse3d.spatial.registry import Observation
MAX_IMAGES = 6
MAX_TEXT = 2400
diff --git a/harness/codeverse/spatial/probes.py b/harness/codeverse3d/spatial/probes.py
similarity index 98%
rename from harness/codeverse/spatial/probes.py
rename to harness/codeverse3d/spatial/probes.py
index 9e5196d0..743d96a9 100644
--- a/harness/codeverse/spatial/probes.py
+++ b/harness/codeverse3d/spatial/probes.py
@@ -14,10 +14,10 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
-from codeverse.conventions import MAX_TRIS_SCENE
-from codeverse.spatial.render_scene import SceneRenderError, probe_env_args, run_scene_script
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+from codeverse3d.conventions import MAX_TRIS_SCENE
+from codeverse3d.spatial.render_scene import SceneRenderError, probe_env_args, run_scene_script
+from codeverse3d.workspace import Workspace
PROBE_GATE = "scene_probe"
SHADER_GATE = "shader_preflight"
diff --git a/harness/codeverse/spatial/registry.py b/harness/codeverse3d/spatial/registry.py
similarity index 96%
rename from harness/codeverse/spatial/registry.py
rename to harness/codeverse3d/spatial/registry.py
index d8f8ee4e..a620638c 100644
--- a/harness/codeverse/spatial/registry.py
+++ b/harness/codeverse3d/spatial/registry.py
@@ -27,7 +27,7 @@ from typing import Any
from pydantic import BaseModel, ConfigDict, Field, model_validator
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
class NoArgs(BaseModel):
@@ -83,8 +83,8 @@ class ToolUnavailable(RuntimeError):
Raised by ``tool_common.lazy`` (and anything built on it) and turned into a
``tool <name> unavailable: ...`` Observation by :meth:`ToolDef.call` — tools
never have to catch it themselves. The boundary is real only for
- ``codeverse.languages`` (the runtimes) and ``codeverse.texturing``; everything
- under ``codeverse.spatial`` is imported eagerly (2026-08-29: string paths for
+ ``codeverse3d.languages`` (the runtimes) and ``codeverse3d.texturing``; everything
+ under ``codeverse3d.spatial`` is imported eagerly (2026-08-29: string paths for
intra-package imports hid ordinary imports from go-to-definition).
"""
@@ -116,7 +116,7 @@ class ToolDef:
languages: tuple[str, ...] = () # empty = all
cost_hint: str = "fast" # fast | slow
#: optional call-time suffix for the description (a switch-dependent sentence, e.g.
- #: "includes CONNECTIVITY / CONTRACT" when CV3D_FEWER_TURNS is on). Returns "" for none.
+ #: "includes CONNECTIVITY / CONTRACT" when C3D_FEWER_TURNS is on). Returns "" for none.
describe_extra: Callable[[], str] | None = None
def describe(self) -> str:
@@ -223,7 +223,7 @@ def _ensure_loaded() -> None:
_LOADED = True
import importlib
- for mod in ("codeverse.spatial.tools",):
+ for mod in ("codeverse3d.spatial.tools",):
try:
importlib.import_module(mod)
except ModuleNotFoundError as e: # during bootstrap only
diff --git a/harness/codeverse/spatial/render.py b/harness/codeverse3d/spatial/render.py
similarity index 96%
rename from harness/codeverse/spatial/render.py
rename to harness/codeverse3d/spatial/render.py
index 4d3513cd..efc67bdf 100644
--- a/harness/codeverse/spatial/render.py
+++ b/harness/codeverse3d/spatial/render.py
@@ -20,12 +20,12 @@ from collections.abc import Sequence
from pathlib import Path
from typing import Any
-from codeverse.config import get_settings
-from codeverse.contracts.artifacts import RENDER_MODES, RenderSet, RenderView
-from codeverse.conventions import OBJECT_VIEWS, ViewPreset
-from codeverse.proc import sha256_file
-from codeverse.spatial._render_common import build_sheet, out_directory, view_specs
-from codeverse.spatial.node import (
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.artifacts import RENDER_MODES, RenderSet, RenderView
+from codeverse3d.conventions import OBJECT_VIEWS, ViewPreset
+from codeverse3d.proc import sha256_file
+from codeverse3d.spatial._render_common import build_sheet, out_directory, view_specs
+from codeverse3d.spatial.node import (
OWN_BROWSER_ENV,
NodeError,
browser_was_lost,
diff --git a/harness/codeverse/spatial/render_scene.py b/harness/codeverse3d/spatial/render_scene.py
similarity index 91%
rename from harness/codeverse/spatial/render_scene.py
rename to harness/codeverse3d/spatial/render_scene.py
index 932b13cd..0d15969c 100644
--- a/harness/codeverse/spatial/render_scene.py
+++ b/harness/codeverse3d/spatial/render_scene.py
@@ -21,13 +21,13 @@ from collections.abc import Sequence
from pathlib import Path
from typing import Any
-from codeverse.config import env_flag, get_settings
-from codeverse.contracts.artifacts import RenderSet, RenderView
-from codeverse.contracts.plan import BBox, CameraPlan
-from codeverse.conventions import SCENE_VIEWS, ViewPreset
-from codeverse.proc import read_json_or_none
-from codeverse.spatial._render_common import build_sheet, out_directory, view_specs
-from codeverse.spatial.node import (
+from codeverse3d.config import env_flag, get_settings
+from codeverse3d.contracts.artifacts import RenderSet, RenderView
+from codeverse3d.contracts.plan import BBox, CameraPlan
+from codeverse3d.conventions import SCENE_VIEWS, ViewPreset
+from codeverse3d.proc import read_json_or_none
+from codeverse3d.spatial._render_common import build_sheet, out_directory, view_specs
+from codeverse3d.spatial.node import (
OWN_BROWSER_ENV,
NodeError,
NodeResult,
@@ -36,7 +36,7 @@ from codeverse.spatial.node import (
runtime_js_dir,
transient_failure,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -58,8 +58,8 @@ def _driver_failed(r: NodeResult) -> bool:
def run_scene_script(script: str, args: Sequence[str], *, timeout_s: float, cwd: Path | None = None) -> NodeResult:
- """Run ``runtime_js/<script>`` via ``codeverse.spatial.node.run_node`` (which
- delegates to ``codeverse.proc.run_subprocess``: own process group, group kill
+ """Run ``runtime_js/<script>`` via ``codeverse3d.spatial.node.run_node`` (which
+ delegates to ``codeverse3d.proc.run_subprocess``: own process group, group kill
on timeout). The driver prints a JSON summary as its LAST stdout line; a
timeout or exit code 2/3 means the driver itself failed → ``SceneRenderError``.
@@ -74,8 +74,8 @@ def run_scene_script(script: str, args: Sequence[str], *, timeout_s: float, cwd:
raise SceneRenderError(f"missing node driver {path}")
env_extra: dict[str, str] = {}
gpu = get_settings().render.gpu
- if gpu and "CV3D_RENDER_GPU" not in os.environ:
- env_extra["CV3D_RENDER_GPU"] = gpu
+ if gpu and "C3D_RENDER_GPU" not in os.environ:
+ env_extra["C3D_RENDER_GPU"] = gpu
argv = [str(a) for a in args]
def attempt(env: dict[str, str]) -> NodeResult:
@@ -120,32 +120,32 @@ def run_scene_script(script: str, args: Sequence[str], *, timeout_s: float, cwd:
def probe_env_args() -> list[str]:
- """Scene-driver flags from the ``CV3D_*`` switches — the ONE parser (review-3 S4),
- on the canonical ``env_flag`` words, so ``CV3D_CAMERA_REPAIR=false`` really
- disables and ``CV3D_AUTO_EXPOSURE=true`` really enables. Every driver
+ """Scene-driver flags from the ``C3D_*`` switches — the ONE parser (review-3 S4),
+ on the canonical ``env_flag`` words, so ``C3D_CAMERA_REPAIR=false`` really
+ disables and ``C3D_AUTO_EXPOSURE=true`` really enables. Every driver
invocation — standalone probe, render, and the combined single-boot build —
appends these, so a census is always measured under the same settle /
camera-repair / auto-exposure policy the renders use."""
args: list[str] = []
- if not env_flag("CV3D_SETTLE", True): # A/B switch for the boot-time auto-seat
+ if not env_flag("C3D_SETTLE", True): # A/B switch for the boot-time auto-seat
args.append("--no-settle")
- if env_flag("CV3D_CAMERA_REPAIR", True): # default ON since 2026-08-30: pure insurance —
+ if env_flag("C3D_CAMERA_REPAIR", True): # default ON since 2026-08-30: pure insurance —
# zero triggers across a whole healthy battery (scene_px_v1: layout camera-clearance
# already keeps lenses out of furniture), and the one class it exists for
# (fv_izakaya: three rounds of camera_in_geometry nobody could fix) is fatal.
args.append("--camera-repair")
- if env_flag("CV3D_AUTO_EXPOSURE", False): # opt-in: bounded scene-wide exposure into the healthy band
+ if env_flag("C3D_AUTO_EXPOSURE", False): # opt-in: bounded scene-wide exposure into the healthy band
args.append("--auto-exposure")
return args
def post_chain_args() -> list[str]:
- """``--no-post`` when ``CV3D_POST`` is off. The post chain (GTAO + selective
+ """``--no-post`` when ``C3D_POST`` is off. The post chain (GTAO + selective
bloom + grade, ``runtime_js/lib/browser/post.js``) is ON by default for scene
PICTURES only: object renders never touch this driver, and the scene probe runs
raw because it is a 320x180 geometry instrument, not a judged frame. Kept out
of :func:`probe_env_args` for exactly that reason."""
- return [] if env_flag("CV3D_POST", True) else ["--no-post"]
+ return [] if env_flag("C3D_POST", True) else ["--no-post"]
def _camera_json(cams: Sequence[CameraPlan]) -> str:
@@ -268,7 +268,7 @@ def _store_motion(out_dir: Path, metrics: dict[str, Any]) -> None:
gate, the judge context, the agent's frame table — sees the same numbers without
re-reading the PNGs. Never fatal: a scene that could not be diffed simply has no
``motion`` key (which means "not measured", never "static")."""
- from codeverse.spatial.frame_motion import motion_rows
+ from codeverse3d.spatial.frame_motion import motion_rows
if not metrics.get("views"):
return
diff --git a/harness/codeverse/spatial/scene_placement.py b/harness/codeverse3d/spatial/scene_placement.py
similarity index 99%
rename from harness/codeverse/spatial/scene_placement.py
rename to harness/codeverse3d/spatial/scene_placement.py
index 71832c92..6756ff27 100644
--- a/harness/codeverse/spatial/scene_placement.py
+++ b/harness/codeverse3d/spatial/scene_placement.py
@@ -29,10 +29,10 @@ from typing import Any
from pydantic import BaseModel, ConfigDict, Field
-from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
-from codeverse.conventions import to_snake
-from codeverse.proc import read_json_or_none
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+from codeverse3d.conventions import to_snake
+from codeverse3d.proc import read_json_or_none
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -573,7 +573,7 @@ def placement_census(ws: Workspace, *, force_probe: bool = False, timeout_s: flo
census = None if force_probe else read_json_or_none(ws.artifacts / "census.json")
if isinstance(census, dict) and isinstance(census.get("placement"), dict):
return census
- from codeverse.spatial.probes import probe_scene
+ from codeverse3d.spatial.probes import probe_scene
res = probe_scene(ws, timeout_s=timeout_s)
if res.errors:
diff --git a/harness/codeverse/spatial/sections.py b/harness/codeverse3d/spatial/sections.py
similarity index 99%
rename from harness/codeverse/spatial/sections.py
rename to harness/codeverse3d/spatial/sections.py
index 9b47c35d..db1ddd3f 100644
--- a/harness/codeverse/spatial/sections.py
+++ b/harness/codeverse3d/spatial/sections.py
@@ -22,9 +22,9 @@ import trimesh
from PIL import Image, ImageDraw
from pydantic import BaseModel, Field
-from codeverse.spatial.measure import GlbLoadError, merged_mesh, solid_parts
-from codeverse.spatial.registry import Observation
-from codeverse.spatial.sheet import load_font
+from codeverse3d.spatial.measure import GlbLoadError, merged_mesh, solid_parts
+from codeverse3d.spatial.registry import Observation
+from codeverse3d.spatial.sheet import load_font
_AXIS_INDEX = {"x": 0, "y": 1, "z": 2}
#: which two axes are drawn (horizontal, vertical) for a slicing axis
@@ -463,7 +463,7 @@ def judge_slices(
manifest.errors.append("no solid parts")
return _done()
- from codeverse.spatial.measure import instance_groups
+ from codeverse3d.spatial.measure import instance_groups
bounds = np.array([[min(p.bounds[0][i] for p in parts.values()) for i in range(3)],
[max(p.bounds[1][i] for p in parts.values()) for i in range(3)]])
diff --git a/harness/codeverse/spatial/sheet.py b/harness/codeverse3d/spatial/sheet.py
similarity index 100%
rename from harness/codeverse/spatial/sheet.py
rename to harness/codeverse3d/spatial/sheet.py
diff --git a/harness/codeverse/spatial/silhouette.py b/harness/codeverse3d/spatial/silhouette.py
similarity index 98%
rename from harness/codeverse/spatial/silhouette.py
rename to harness/codeverse3d/spatial/silhouette.py
index c52b7d18..da23ed2c 100644
--- a/harness/codeverse/spatial/silhouette.py
+++ b/harness/codeverse3d/spatial/silhouette.py
@@ -29,7 +29,7 @@ from typing import Any
import numpy as np
from PIL import Image
-from codeverse.contracts.artifacts import RenderView
+from codeverse3d.contracts.artifacts import RenderView
MASK_SIZE = 256
#: colour-distance tolerance (0-441) from the border colour: adaptive between these bounds
@@ -161,7 +161,7 @@ def compare_silhouette(render_png: Path | str, reference_png: Path | str, *, dif
reliable, diff_png_path?}``. ``reliable`` is False when either mask is empty, covers
more than 95 % of the pixels, or has a bounding box spanning the whole frame — all
three mean the background estimate failed and the IoU below is arithmetic on noise.
- The caller must honour it: :class:`~codeverse.judges.vlm_judge.ReferenceJudge` scores
+ The caller must honour it: :class:`~codeverse3d.judges.vlm_judge.ReferenceJudge` scores
``silhouette_match`` NEUTRAL rather than low, because "we could not measure this" is
not the same as "it does not match".
"""
diff --git a/harness/codeverse/spatial/tool_common.py b/harness/codeverse3d/spatial/tool_common.py
similarity index 93%
rename from harness/codeverse/spatial/tool_common.py
rename to harness/codeverse3d/spatial/tool_common.py
index 7ff954ec..7fb68e0e 100644
--- a/harness/codeverse/spatial/tool_common.py
+++ b/harness/codeverse3d/spatial/tool_common.py
@@ -1,5 +1,5 @@
"""Shared plumbing for the spatial tools: context lookups, lazy imports of the
-optional siblings (``codeverse.languages`` runtimes, ``codeverse.texturing``, the
+optional siblings (``codeverse3d.languages`` runtimes, ``codeverse3d.texturing``, the
node renderer) with a typed ``ToolUnavailable`` failure, render-output caching
and plan/spec loading.
@@ -17,12 +17,12 @@ from typing import Any
from pydantic import ValidationError
-from codeverse.contracts.artifacts import RENDER_MODES, RenderSet, Severity
-from codeverse.contracts.plan import ArticulatedPlan, GraphicsPlan, Plan, ScenePlan, StaticPlan
-from codeverse.conventions import OBJECT_VIEWS, ViewPreset
-from codeverse.proc import read_json_or_none
-from codeverse.spatial.registry import ToolContext, ToolUnavailable, ToolUsageError
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import RENDER_MODES, RenderSet, Severity
+from codeverse3d.contracts.plan import ArticulatedPlan, GraphicsPlan, Plan, ScenePlan, StaticPlan
+from codeverse3d.conventions import OBJECT_VIEWS, ViewPreset
+from codeverse3d.proc import read_json_or_none
+from codeverse3d.spatial.registry import ToolContext, ToolUnavailable, ToolUsageError
+from codeverse3d.workspace import Workspace
__all__ = [
"ToolUnavailable", "lazy", "spec_dict", "language_of",
@@ -219,7 +219,7 @@ def cached_render_glb(
"""
out_dir = render_cache_dir(ctx, glb, views=[v.name for v in views], mode=mode, size=size,
isolate=list(isolate or []), explode=explode, sheet=sheet)
- render_glb = lazy("codeverse.spatial.render", "render_glb")
+ render_glb = lazy("codeverse3d.spatial.render", "render_glb")
rs = render_glb(glb, out_dir, views=list(views), mode=mode, width=size, height=size,
isolate=list(isolate) if isolate else None, explode=explode, sheet=sheet)
if not isinstance(rs, RenderSet):
@@ -237,10 +237,10 @@ def gl_metrics_summary(ws: Workspace, *, hints: bool = True, root: Path | None =
hint; ``root`` sanitises workspace paths out of the messages. Returns
``(["(no frame metrics)"], {}, True)`` when the build wrote none.
"""
- from codeverse.spatial.observe import sanitize_text
+ from codeverse3d.spatial.observe import sanitize_text
try:
- read_metrics = lazy("codeverse.languages._gl_common", "read_metrics")
+ read_metrics = lazy("codeverse3d.languages._gl_common", "read_metrics")
m = read_metrics(ws)
except ToolUnavailable:
m = None
diff --git a/harness/codeverse/spatial/tools.py b/harness/codeverse3d/spatial/tools.py
similarity index 95%
rename from harness/codeverse/spatial/tools.py
rename to harness/codeverse3d/spatial/tools.py
index 6ad31cbe..ef685323 100644
--- a/harness/codeverse/spatial/tools.py
+++ b/harness/codeverse3d/spatial/tools.py
@@ -1,6 +1,6 @@
"""Every spatial tool registered with ``@tool``, in sections: build / measure / gates /
sections · rendering · articulation · scenes · graphics · texturing · reference.
-``import codeverse.spatial.tools`` registers all of them.
+``import codeverse3d.spatial.tools`` registers all of them.
House rules: observations are compact (errors first, fix hints attached), text
never contains absolute host paths (images are absolute — the harness converts),
@@ -15,29 +15,29 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.config import fewer_turns_enabled, get_settings
-from codeverse.contracts.artifacts import RENDER_MODES, BuildResult, GateReport, Measurement
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import StaticPlan
-from codeverse.contracts.spec import Spec
-from codeverse.conventions import OBJECT_VIEWS, OBJECT_VIEWS_QUICK
-from codeverse.spatial.ablation import ablate_scene as _ablate_scene
-from codeverse.spatial.ablation import merge_into_census as _merge_ablation_census
-from codeverse.spatial.connectivity import check_connectivity as _check_connectivity
-from codeverse.spatial.contract import check_contract as _check_contract
-from codeverse.spatial.contract import planned_joins
-from codeverse.spatial.frame_metrics import frame_summary_text
-from codeverse.spatial.joints_export import ARTICULATION_SHEET_NAME, render_poses
-from codeverse.spatial.joints_model import UrdfError, load_urdf
-from codeverse.spatial.joints_poses import limit_poses, pose_samples
-from codeverse.spatial.joints_sweep import (
+from codeverse3d.config import fewer_turns_enabled, get_settings
+from codeverse3d.contracts.artifacts import RENDER_MODES, BuildResult, GateReport, Measurement
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import StaticPlan
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.conventions import OBJECT_VIEWS, OBJECT_VIEWS_QUICK
+from codeverse3d.spatial.ablation import ablate_scene as _ablate_scene
+from codeverse3d.spatial.ablation import merge_into_census as _merge_ablation_census
+from codeverse3d.spatial.connectivity import check_connectivity as _check_connectivity
+from codeverse3d.spatial.contract import check_contract as _check_contract
+from codeverse3d.spatial.contract import planned_joins
+from codeverse3d.spatial.frame_metrics import frame_summary_text
+from codeverse3d.spatial.joints_export import ARTICULATION_SHEET_NAME, render_poses
+from codeverse3d.spatial.joints_model import UrdfError, load_urdf
+from codeverse3d.spatial.joints_poses import limit_poses, pose_samples
+from codeverse3d.spatial.joints_sweep import (
SweepReport,
report_numbers,
summary_text,
sweep_collisions,
)
-from codeverse.spatial.measure import GlbLoadError, measure_glb, measure_summary_table
-from codeverse.spatial.observe import (
+from codeverse3d.spatial.measure import GlbLoadError, measure_glb, measure_summary_table
+from codeverse3d.spatial.observe import (
build_failure_lines,
error_file_display,
fmt_numbers,
@@ -50,19 +50,19 @@ from codeverse.spatial.observe import (
text_observation,
truncate,
)
-from codeverse.spatial.probes import check_shaders, probe_scene
-from codeverse.spatial.registry import NoArgs, Observation, ToolContext, ToolUsageError, tool
-from codeverse.spatial.render_scene import read_metrics, render_scene
-from codeverse.spatial.scene_placement import (
+from codeverse3d.spatial.probes import check_shaders, probe_scene
+from codeverse3d.spatial.registry import NoArgs, Observation, ToolContext, ToolUsageError, tool
+from codeverse3d.spatial.render_scene import read_metrics, render_scene
+from codeverse3d.spatial.scene_placement import (
is_interior,
placement_findings,
placement_table_text,
)
-from codeverse.spatial.scene_placement import placement_census as _placement_census
-from codeverse.spatial.sections import cross_section as _cross_section
-from codeverse.spatial.sheet import contact_sheet
-from codeverse.spatial.silhouette import compare_silhouette as _compare_silhouette
-from codeverse.spatial.tool_common import (
+from codeverse3d.spatial.scene_placement import placement_census as _placement_census
+from codeverse3d.spatial.sections import cross_section as _cross_section
+from codeverse3d.spatial.sheet import contact_sheet
+from codeverse3d.spatial.silhouette import compare_silhouette as _compare_silhouette
+from codeverse3d.spatial.tool_common import (
VIEW_BY_NAME,
cached_render_glb,
check_mode,
@@ -215,7 +215,7 @@ def build(ctx: ToolContext, args: NoArgs) -> Observation:
# ToolDef.call stamps Observation.duration_ms for every tool — no timing here
ws = ctx.workspace
language = language_of(ctx)
- rt = lazy("codeverse.languages", "get_runtime")(language)
+ rt = lazy("codeverse3d.languages", "get_runtime")(language)
refused, lint_warns = _lint_gate(ctx, rt, verb="building")
if refused is not None:
return refused
@@ -656,7 +656,7 @@ def _runtime(ctx: ToolContext):
lang = language_of(ctx)
if lang not in GRAPHICS_LANGS:
raise ToolUsageError(f"gl tools only apply to {GRAPHICS_LANGS}; workspace language is {lang!r}")
- get_runtime = lazy("codeverse.languages", "get_runtime")
+ get_runtime = lazy("codeverse3d.languages", "get_runtime")
return get_runtime(lang)
@@ -750,16 +750,16 @@ def _spec_plan(ctx: ToolContext) -> tuple[Spec, StaticPlan]:
def texture_pass_tool(ctx: ToolContext, args: TexturePassArgs) -> Observation:
glb = glb_path(ctx)
spec, plan = _spec_plan(ctx)
- texture_requested = lazy("codeverse.texturing.run", "texture_requested")
+ texture_requested = lazy("codeverse3d.texturing.run", "texture_requested")
if not texture_requested(spec):
- # ONE owner for "does this run texture?" (codeverse.texturing.run.texture_requested).
+ # ONE owner for "does this run texture?" (codeverse3d.texturing.run.texture_requested).
# The tool is registered for every object track, so without this an agent could —
# and did — buy a texture pass in a run whose spec says texture: false.
raise ToolUsageError(
"this run did not ask for texturing (spec.options.texture is false), so the "
"texture pass is off; finish the geometry instead",
"3dcode make ... --texture # or `3dcode texture pass <slug>` after the run")
- texture_pass = lazy("codeverse.texturing.run", "texture_pass")
+ texture_pass = lazy("codeverse3d.texturing.run", "texture_pass")
services = ctx.extra.get("texture_services") # the ONE injection point (TextureServices)
# update_record=False: during an agent session the control files have ONE owner
# (finalise); a mid-session record.json write is reverted by the tamper enforcement
diff --git a/harness/codeverse/texturing/__init__.py b/harness/codeverse3d/texturing/__init__.py
similarity index 100%
rename from harness/codeverse/texturing/__init__.py
rename to harness/codeverse3d/texturing/__init__.py
diff --git a/harness/codeverse/texturing/apply.py b/harness/codeverse3d/texturing/apply.py
similarity index 98%
rename from harness/codeverse/texturing/apply.py
rename to harness/codeverse3d/texturing/apply.py
index 13ac186f..0e1e6887 100644
--- a/harness/codeverse/texturing/apply.py
+++ b/harness/codeverse3d/texturing/apply.py
@@ -36,10 +36,10 @@ import trimesh
from PIL import Image, ImageFilter
from pydantic import BaseModel, Field
-from codeverse.contracts.plan import StaticPlan
-from codeverse.conventions import to_snake
-from codeverse.spatial.measure import GlbLoadError, instance_groups, load_scene
-from codeverse.texturing.materials import (
+from codeverse3d.contracts.plan import StaticPlan
+from codeverse3d.conventions import to_snake
+from codeverse3d.spatial.measure import GlbLoadError, instance_groups, load_scene
+from codeverse3d.texturing.materials import (
COARSE_TO_FINE,
FamilyMatch,
family_for,
@@ -48,7 +48,7 @@ from codeverse.texturing.materials import (
out_of_band,
pbr_for,
)
-from codeverse.texturing.plan import TexturePart, TexturePlan
+from codeverse3d.texturing.plan import TexturePart, TexturePlan
#: family → (roughness amplitude, normal-map strength). Amplitude is the peak
#: deviation from the base roughness across the tile; strength scales the Sobel
diff --git a/harness/codeverse/texturing/generate.py b/harness/codeverse3d/texturing/generate.py
similarity index 96%
rename from harness/codeverse/texturing/generate.py
rename to harness/codeverse3d/texturing/generate.py
index 31fcb077..2ec560a7 100644
--- a/harness/codeverse/texturing/generate.py
+++ b/harness/codeverse3d/texturing/generate.py
@@ -23,15 +23,15 @@ import numpy as np
from PIL import Image
from pydantic import BaseModel, Field
-from codeverse.config import get_settings
-from codeverse.contracts.artifacts import Judgment, Measurement, RenderSet
-from codeverse.contracts.common import Usage
-from codeverse.contracts.plan import AcceptanceItem, StaticPlan
-from codeverse.contracts.spec import Spec
-from codeverse.conventions import OBJECT_VIEWS_QUICK, ViewPreset
-from codeverse.judges.base import JudgeInput, plan_digest
-from codeverse.judges.rubrics import is_degraded
-from codeverse.proc import fan_out, unique_tmp
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.artifacts import Judgment, Measurement, RenderSet
+from codeverse3d.contracts.common import Usage
+from codeverse3d.contracts.plan import AcceptanceItem, StaticPlan
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.conventions import OBJECT_VIEWS_QUICK, ViewPreset
+from codeverse3d.judges.base import JudgeInput, plan_digest
+from codeverse3d.judges.rubrics import is_degraded
+from codeverse3d.proc import fan_out, unique_tmp
#: seam score above which a texture is considered NOT tileable (after make_tileable)
SEAM_MAX = 0.08
@@ -252,7 +252,7 @@ def generate_textures(
ids = list(leaders.values())
# fan_out, not a bare pool: its workers inherit the caller's context, so the image
# model's spend is billed to the run's ledger instead of the per-process log
- # (codeverse.cost.context). ``_job`` swallows its own failures, so nothing here
+ # (codeverse3d.cost.context). ``_job`` swallows its own failures, so nothing here
# comes back as an Exception.
assets = [a for a in fan_out(ids, _job, max_workers=max_workers, label="texture", item_name=str)
if isinstance(a, TextureAsset)]
@@ -339,7 +339,7 @@ def judge_gate(
``.judge(JudgeInput) -> Judgment`` (``VlmJudge`` or a fake)."""
t0 = time.time()
if render is None:
- from codeverse.spatial.render import render_glb
+ from codeverse3d.spatial.render import render_glb
render = render_glb
out_dir = Path(out_dir)
diff --git a/harness/codeverse/texturing/materials.py b/harness/codeverse3d/texturing/materials.py
similarity index 98%
rename from harness/codeverse/texturing/materials.py
rename to harness/codeverse3d/texturing/materials.py
index 69e8a99e..5522c64c 100644
--- a/harness/codeverse/texturing/materials.py
+++ b/harness/codeverse3d/texturing/materials.py
@@ -18,11 +18,11 @@ guides publish, and the clear-coat that separates lacquered wood from raw
timber. They are used two ways:
1. as the target of the **post-build normaliser**
- (:mod:`codeverse.texturing.apply`), which fixes a material whose numbers
+ (:mod:`codeverse3d.texturing.apply`), which fixes a material whose numbers
are an untouched framework default or are impossible for the finish its own
name claims;
2. as the PBR factors the **texture pass** writes next to a generated albedo
- (:mod:`codeverse.texturing.apply`).
+ (:mod:`codeverse3d.texturing.apply`).
Everything here is data + pure functions; nothing imports a model or touches a file.
"""
@@ -201,7 +201,7 @@ _FINISH_ONLY: dict[str, str] = {
"gloss": "glossy_plastic",
}
-#: the coarse families :mod:`codeverse.texturing.plan` speaks -> a representative
+#: the coarse families :mod:`codeverse3d.texturing.plan` speaks -> a representative
#: fine family here, so the texture pass and the normaliser agree on the numbers.
COARSE_TO_FINE: dict[str, str] = {
"wood": "hardwood", "metal": "machined_steel", "fabric": "fabric", "stone": "stone",
diff --git a/harness/codeverse/texturing/plan.py b/harness/codeverse3d/texturing/plan.py
similarity index 97%
rename from harness/codeverse/texturing/plan.py
rename to harness/codeverse3d/texturing/plan.py
index fb20f7c8..ec02b5e4 100644
--- a/harness/codeverse/texturing/plan.py
+++ b/harness/codeverse3d/texturing/plan.py
@@ -17,17 +17,17 @@ from typing import Any, Literal
from pydantic import BaseModel, Field, ValidationError
-from codeverse.config import get_settings
-from codeverse.contracts.artifacts import RenderSet
-from codeverse.contracts.chat import ImagePart
-from codeverse.contracts.common import Usage
-from codeverse.contracts.plan import PartPlan, ScenePlan, StaticPlan
-from codeverse.contracts.spec import Spec
-from codeverse.conventions import to_snake
-from codeverse.models.schema_utils import ask_structured
-from codeverse.proc import write_text_atomic
-from codeverse.prompts import load_text, prompt_hash, render
-from codeverse.texturing.generate import TextureSet, generate_textures
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.artifacts import RenderSet
+from codeverse3d.contracts.chat import ImagePart
+from codeverse3d.contracts.common import Usage
+from codeverse3d.contracts.plan import PartPlan, ScenePlan, StaticPlan
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.conventions import to_snake
+from codeverse3d.models.schema_utils import ask_structured
+from codeverse3d.proc import write_text_atomic
+from codeverse3d.prompts import load_text, prompt_hash, render
+from codeverse3d.texturing.generate import TextureSet, generate_textures
log = logging.getLogger(__name__)
@@ -312,7 +312,7 @@ def material_plan(
except ValidationError:
cached.unlink(missing_ok=True)
if model is None:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
model = get_chat_model(model_id)
text = render(PLAN_TEMPLATE, spec_prompt=spec.prompt, style_notes=getattr(plan, "style_notes", ""),
@@ -447,7 +447,7 @@ def scene_pack_plan(
if not model_id and model is None:
return default_scene_pack_plan(plan, n_min=n_min, n_max=n_max), "default", Usage()
if model is None:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
model = get_chat_model(model_id)
zones = "\n".join(f"- {z.name}: {z.description}" for z in plan.zones)
diff --git a/harness/codeverse/texturing/run.py b/harness/codeverse3d/texturing/run.py
similarity index 94%
rename from harness/codeverse/texturing/run.py
rename to harness/codeverse3d/texturing/run.py
index 75333862..c98b8453 100644
--- a/harness/codeverse/texturing/run.py
+++ b/harness/codeverse3d/texturing/run.py
@@ -9,7 +9,7 @@
Code stays the truth: ``artifacts/object.glb`` is never overwritten; the textured
GLB and ``artifacts/textures/`` are a derived asset pack recorded with the run.
-The textured GLB is built in an :class:`~codeverse.workspace.ArtifactStage` and
+The textured GLB is built in an :class:`~codeverse3d.workspace.ArtifactStage` and
promoted to ``artifacts/object_textured.glb`` only when the pass ships — a
rejected pass leaves no canonical file for the deliverable/gallery to pick up.
"""
@@ -26,19 +26,19 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.contracts.artifacts import Measurement, RenderSet
-from codeverse.contracts.common import TRACK_INFO, Track, Usage
-from codeverse.contracts.plan import StaticPlan
-from codeverse.contracts.spec import Spec
-from codeverse.conventions import OBJECT_VIEWS_QUICK, ViewPreset
-from codeverse.proc import EventLog
-from codeverse.texturing.apply import (
+from codeverse3d.contracts.artifacts import Measurement, RenderSet
+from codeverse3d.contracts.common import TRACK_INFO, Track, Usage
+from codeverse3d.contracts.plan import StaticPlan
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.conventions import OBJECT_VIEWS_QUICK, ViewPreset
+from codeverse3d.proc import EventLog
+from codeverse3d.texturing.apply import (
ApplyReport,
NormaliseReport,
apply_textures,
normalise_materials,
)
-from codeverse.texturing.generate import (
+from codeverse3d.texturing.generate import (
GateResult,
SeamGateResult,
TextureSet,
@@ -46,8 +46,8 @@ from codeverse.texturing.generate import (
judge_gate,
seam_gate,
)
-from codeverse.texturing.plan import TexturePlan, material_plan
-from codeverse.workspace import Workspace
+from codeverse3d.texturing.plan import TexturePlan, material_plan
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -108,7 +108,7 @@ def latest_sheet(ws: Workspace) -> Path | None:
def _render_quick(glb: Path, out_dir: Path, views: Sequence[ViewPreset], render: Any | None) -> RenderSet:
if render is None:
- from codeverse.spatial.render import render_glb
+ from codeverse3d.spatial.render import render_glb
render = render_glb
return render(glb, out_dir, views=list(views), width=512, height=512)
@@ -116,7 +116,7 @@ def _render_quick(glb: Path, out_dir: Path, views: Sequence[ViewPreset], render:
def _measure(glb: Path) -> Measurement | None:
try:
- from codeverse.spatial.measure import measure_glb
+ from codeverse3d.spatial.measure import measure_glb
return measure_glb(glb)
except Exception as e: # noqa: BLE001 — measurement is judge context only
@@ -193,7 +193,7 @@ def texture_pass(
keyword arguments win over the bundle.
``normalise=True`` first runs the deterministic material normaliser
- (:func:`codeverse.texturing.apply.normalise_materials`) over the input GLB,
+ (:func:`codeverse3d.texturing.apply.normalise_materials`) over the input GLB,
so the parts the texture pass *skips* — chrome, glass, tiny hardware — still get
plausible metallic/roughness numbers. It costs no model call, and the same
before/after judge gate (BEFORE is always the untouched ``glb_in``) decides
@@ -239,7 +239,7 @@ def texture_pass(
# 3. images
if image_model is None:
- from codeverse.models.gemini import GeminiImageModel
+ from codeverse3d.models.gemini import GeminiImageModel
image_model = GeminiImageModel()
tset = generate_textures(tplan, tex_dir, image_model, size=size, cache_dir=cache_dir)
@@ -290,7 +290,7 @@ def texture_pass(
def _make_judge(spec: Spec, rubric: str | None, judge_model_id: str | None) -> Any:
- from codeverse.judges.vlm_judge import VlmJudge
+ from codeverse3d.judges.vlm_judge import VlmJudge
return VlmJudge(rubric=rubric or TRACK_INFO[spec.track].rubric, model_id=judge_model_id or spec.backends.judge,
n_samples=1, label="texture_gate")
diff --git a/harness/codeverse/tracks/__init__.py b/harness/codeverse3d/tracks/__init__.py
similarity index 74%
rename from harness/codeverse/tracks/__init__.py
rename to harness/codeverse3d/tracks/__init__.py
index c5fcacf7..89e2f538 100644
--- a/harness/codeverse/tracks/__init__.py
+++ b/harness/codeverse3d/tracks/__init__.py
@@ -9,10 +9,10 @@ from __future__ import annotations
from typing import Any, Protocol
-from codeverse.contracts.common import Track
-from codeverse.contracts.run import RunRecord
-from codeverse.contracts.spec import Spec
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.common import Track
+from codeverse3d.contracts.run import RunRecord
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.workspace import Workspace
class TrackPipeline(Protocol):
@@ -30,18 +30,18 @@ def get_track(track: Track | str, **options: Any) -> TrackPipeline:
constructor (e.g. ``n_candidates=2`` for a best-of-N baseline, ``policy=``)."""
t = Track(track)
if t is Track.STATIC_OBJECT:
- from codeverse.tracks.static_object import StaticObjectTrack
+ from codeverse3d.tracks.static_object import StaticObjectTrack
return StaticObjectTrack(**options)
if t is Track.ARTICULATED_OBJECT:
- from codeverse.tracks.articulated_object import ArticulatedObjectTrack
+ from codeverse3d.tracks.articulated_object import ArticulatedObjectTrack
return ArticulatedObjectTrack(**options)
if t is Track.GRAPHICS:
- from codeverse.tracks.graphics import GraphicsTrack
+ from codeverse3d.tracks.graphics import GraphicsTrack
return GraphicsTrack(**options)
- from codeverse.tracks.scene import SceneTrack
+ from codeverse3d.tracks.scene import SceneTrack
return SceneTrack(**options)
diff --git a/harness/codeverse/tracks/articulated_object.py b/harness/codeverse3d/tracks/articulated_object.py
similarity index 96%
rename from harness/codeverse/tracks/articulated_object.py
rename to harness/codeverse3d/tracks/articulated_object.py
index 5569cc7b..269bee7a 100644
--- a/harness/codeverse/tracks/articulated_object.py
+++ b/harness/codeverse3d/tracks/articulated_object.py
@@ -15,7 +15,7 @@ import xml.etree.ElementTree as ET
from collections.abc import Sequence
from pathlib import Path
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.artifacts import (
BuildResult,
GateFinding,
GateReport,
@@ -24,13 +24,13 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.contracts.common import TRACK_INFO, Track
-from codeverse.contracts.plan import ArticulatedPlan, Plan
-from codeverse.conventions import to_snake
-from codeverse.spatial.render import RenderError
-from codeverse.tracks.common import RunContext
-from codeverse.tracks.static_object import ObjectPipeline, StaticObjectTrack
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.common import TRACK_INFO, Track
+from codeverse3d.contracts.plan import ArticulatedPlan, Plan
+from codeverse3d.conventions import to_snake
+from codeverse3d.spatial.render import RenderError
+from codeverse3d.tracks.common import RunContext
+from codeverse3d.tracks.static_object import ObjectPipeline, StaticObjectTrack
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -129,10 +129,10 @@ def default_joint_sweep(ws: Workspace, plan: Plan | None, out_dir: Path) -> tupl
# the Services.joint_sweep signature: it is the interface's information, and the test
# double (tests/orchestrator_tracks/fakes.py) synthesises its poses and findings from
# plan.joints because it has no URDF to read.
- """Adapter to ``codeverse.spatial.joints``: load → pose samples →
+ """Adapter to ``codeverse3d.spatial.joints``: load → pose samples →
``sweep_collisions`` → ``sweep_findings`` (gate) and ``render_poses`` (pose views +
``articulation_sheet.png`` for the judge)."""
- from codeverse.spatial import joints
+ from codeverse3d.spatial import joints
urdf = _find_urdf(ws)
if urdf is None:
@@ -259,8 +259,8 @@ def axis_fix_hint(joint_name: str, axis: Sequence[float] | None, expected: str)
return f"negate the <axis> of joint '{joint_name}' in src/robot.urdf (or swap lower/upper) so motion goes {expected}"
-#: kill-switch for the deterministic axis repair (default ON, mirrors CV3D_CAMERA_REPAIR)
-AXIS_REPAIR_ENV = "CV3D_AXIS_REPAIR"
+#: kill-switch for the deterministic axis repair (default ON, mirrors C3D_CAMERA_REPAIR)
+AXIS_REPAIR_ENV = "C3D_AXIS_REPAIR"
def _set_axis_in_urdf_text(text: str, urdf_joint: str, axis: tuple[float, float, float]) -> str | None:
@@ -314,7 +314,7 @@ def repair_motion_axes(ws: Workspace, report: GateReport | None) -> list[str]:
computed ``suggested_axis`` is written verbatim. The same fixes rode along as
fix_hints for a whole battery and the agents applied none of them
(ax_metronome / ax_swiss_knife, 2026-08-31): the measurement exists, so the
- execution goes deterministic. ``CV3D_AXIS_REPAIR=0`` disables. Both the
+ execution goes deterministic. ``C3D_AXIS_REPAIR=0`` disables. Both the
authored file and the built ``artifacts/robot.urdf`` copy are updated so the
re-run gate and the pose sweep see the repair. Returns repaired plan-joint
names; a finding without measured data (``cos``) is never touched."""
@@ -380,7 +380,7 @@ def default_motion_checks(ws: Workspace, plan: Plan | None) -> GateReport | None
wanted = [(j, d) for j, d in wanted if d is not None]
if not wanted:
return None
- from codeverse.spatial import joints as sj
+ from codeverse3d.spatial import joints as sj
urdf = _find_urdf(ws)
if urdf is None:
diff --git a/harness/codeverse/tracks/candidates.py b/harness/codeverse3d/tracks/candidates.py
similarity index 97%
rename from harness/codeverse/tracks/candidates.py
rename to harness/codeverse3d/tracks/candidates.py
index 721d296b..3e0b5a32 100644
--- a/harness/codeverse/tracks/candidates.py
+++ b/harness/codeverse3d/tracks/candidates.py
@@ -29,23 +29,23 @@ from typing import Any, Literal
from pydantic import BaseModel, Field
-from codeverse.contracts.artifacts import BuildResult, Measurement, RenderSet
-from codeverse.contracts.common import Usage
-from codeverse.contracts.run import PairwiseNote, RoundRecord
-from codeverse.conventions import OBJECT_VIEWS_QUICK
-from codeverse.cost.types import Stage
-from codeverse.orchestrator import BestSelector, BudgetExceeded, gate_error_count
-from codeverse.proc import EventLog, fan_out
-from codeverse.tracks.common import RunContext
-from codeverse.tracks.generation import GenerationTask
-from codeverse.tracks.steps import (
+from codeverse3d.contracts.artifacts import BuildResult, Measurement, RenderSet
+from codeverse3d.contracts.common import Usage
+from codeverse3d.contracts.run import PairwiseNote, RoundRecord
+from codeverse3d.conventions import OBJECT_VIEWS_QUICK
+from codeverse3d.cost.types import Stage
+from codeverse3d.orchestrator import BestSelector, BudgetExceeded, gate_error_count
+from codeverse3d.proc import EventLog, fan_out
+from codeverse3d.tracks.common import RunContext
+from codeverse3d.tracks.generation import GenerationTask
+from codeverse3d.tracks.steps import (
RoundFailed,
RoundPipeline,
_run_round,
round_record_path,
run_round,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
diff --git a/harness/codeverse/tracks/common.py b/harness/codeverse3d/tracks/common.py
similarity index 79%
rename from harness/codeverse/tracks/common.py
rename to harness/codeverse3d/tracks/common.py
index fafd9e1c..b7a84eaa 100644
--- a/harness/codeverse/tracks/common.py
+++ b/harness/codeverse3d/tracks/common.py
@@ -19,25 +19,25 @@ from dataclasses import dataclass, field, replace
from pathlib import Path
from typing import Any
-from codeverse.config import Settings
-from codeverse.contracts.artifacts import GateReport, Measurement, RenderSet, RenderView
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import CameraPlan, Plan
-from codeverse.contracts.run import RunRecord
-from codeverse.conventions import ViewPreset
-from codeverse.languages import get_runtime
-from codeverse.orchestrator import BudgetGuard, RoundPolicy, RunState
-from codeverse.proc import EventLog
-from codeverse.prompts import load_text, prompt_hash
-from codeverse.prompts.catalog import prompt_dir_for
-from codeverse.tracks.generation import (
+from codeverse3d.config import Settings
+from codeverse3d.contracts.artifacts import GateReport, Measurement, RenderSet, RenderView
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import CameraPlan, Plan
+from codeverse3d.contracts.run import RunRecord
+from codeverse3d.conventions import ViewPreset
+from codeverse3d.languages import get_runtime
+from codeverse3d.orchestrator import BudgetGuard, RoundPolicy, RunState
+from codeverse3d.proc import EventLog
+from codeverse3d.prompts import load_text, prompt_hash
+from codeverse3d.prompts.catalog import prompt_dir_for
+from codeverse3d.tracks.generation import (
SINGLE_SHOT_PREFIX,
GenerationResult,
GenerationTask,
generate,
is_single_shot,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -56,99 +56,99 @@ class Services:
# ---- models / agents / judges / runtimes
def chat_model(self, model_id: str) -> Any:
- return _import("codeverse.models", "get_chat_model")(model_id)
+ return _import("codeverse3d.models", "get_chat_model")(model_id)
def coding_agent(self, agent_id: str) -> Any:
- return _import("codeverse.agents", "get_coding_agent")(agent_id)
+ return _import("codeverse3d.agents", "get_coding_agent")(agent_id)
def judge(self, rubric: str, model_id: str, n_samples: int = 1) -> Any:
- return _import("codeverse.judges.vlm_judge", "VlmJudge")(rubric=rubric, model_id=model_id, n_samples=n_samples)
+ return _import("codeverse3d.judges.vlm_judge", "VlmJudge")(rubric=rubric, model_id=model_id, n_samples=n_samples)
def reference_judge(self, model_id: str, n_samples: int = 1, rubric: str = "reference_v1") -> Any:
"""Image-conditioned judge (spec has reference images): renders + references + silhouette IoU."""
- return _import("codeverse.judges.vlm_judge", "ReferenceJudge")(model_id=model_id, n_samples=n_samples, rubric=rubric)
+ return _import("codeverse3d.judges.vlm_judge", "ReferenceJudge")(model_id=model_id, n_samples=n_samples, rubric=rubric)
def likeness_judge(self, model_id: str, n_samples: int = 1, rubric: str = "shader_v2") -> Any:
"""Reference photos beside the frames, no silhouette (graphics / scene with images)."""
- return _import("codeverse.judges.vlm_judge", "LikenessJudge")(model_id=model_id, n_samples=n_samples, rubric=rubric)
+ return _import("codeverse3d.judges.vlm_judge", "LikenessJudge")(model_id=model_id, n_samples=n_samples, rubric=rubric)
def pairwise(self, model_id: str) -> Any:
"""Position-swapped A/B judge: ``.compare(spec, renders_a, renders_b, rubric=...)``."""
- return _import("codeverse.judges.pairwise", "PairwiseJudge")(model_id)
+ return _import("codeverse3d.judges.pairwise", "PairwiseJudge")(model_id)
def runtime(self, language: Language) -> Any:
- return _import("codeverse.languages", "get_runtime")(language)
+ return _import("codeverse3d.languages", "get_runtime")(language)
def rubric_threshold(self, rubric: str) -> float | None:
- return getattr(_import("codeverse.judges.rubrics", "load_rubric")(rubric), "pass_threshold", None)
+ return getattr(_import("codeverse3d.judges.rubrics", "load_rubric")(rubric), "pass_threshold", None)
# ---- spatial
def measure(self, glb: Path) -> Measurement:
- return _import("codeverse.spatial.measure", "measure_glb")(glb)
+ return _import("codeverse3d.spatial.measure", "measure_glb")(glb)
def connectivity(self, glb: Path, language: str = "", planned_edges: Sequence[tuple[str, str | Sequence[str]]] = ()) -> GateReport:
"""``language`` selects the frame of the fix hints (the author's frame, not the GLB's);
``planned_edges`` are the plan's attach_to pairs spelled in GLB part names — the gate
measures each one and lists it contact/open in its contact ledger (the judge's
assembly_fit ground truth since 2026-08-30)."""
- return _import("codeverse.spatial.connectivity", "check_connectivity")(
+ return _import("codeverse3d.spatial.connectivity", "check_connectivity")(
glb, language=language, planned_edges=tuple(planned_edges))
def contract(self, measurement: Measurement, plan: Plan, tol_m: float, language: str = "") -> GateReport:
- return _import("codeverse.spatial.contract", "check_contract")(measurement, plan, language=language, tol_m=tol_m)
+ return _import("codeverse3d.spatial.contract", "check_contract")(measurement, plan, language=language, tol_m=tol_m)
def render_object(self, glb: Path, out_dir: Path, *, views: Sequence[ViewPreset], width: int, height: int) -> RenderSet:
- return _import("codeverse.spatial.render", "render_glb")(glb, out_dir, views=list(views), width=width, height=height, sheet=True)
+ return _import("codeverse3d.spatial.render", "render_glb")(glb, out_dir, views=list(views), width=width, height=height, sheet=True)
def render_scene(self, ws: Workspace, out_dir: Path, *, cameras: list[CameraPlan] | None, times: Sequence[float],
width: int, height: int) -> RenderSet:
- return _import("codeverse.spatial.render_scene", "render_scene")(ws, out_dir, cameras=cameras, orbit=True, times=tuple(times),
+ return _import("codeverse3d.spatial.render_scene", "render_scene")(ws, out_dir, cameras=cameras, orbit=True, times=tuple(times),
width=width, height=height, sheet=True)
def render_geometry(self, glb: Path, out_dir: Path, *, views: Sequence[ViewPreset]) -> RenderSet:
"""Clay renders (no materials/textures) exposing holes/intersections for the judge's
geometry montage — cheap thanks to the render cache."""
- return _import("codeverse.spatial.render", "render_glb")(glb, out_dir, views=list(views), mode="clay", sheet=False)
+ return _import("codeverse3d.spatial.render", "render_glb")(glb, out_dir, views=list(views), mode="clay", sheet=False)
def frame_gate(self, renders: RenderSet) -> GateReport:
"""``scene_frames`` gate from a scene RenderSet's metrics.json (missing metrics → passing empty report)."""
- return _import("codeverse.spatial.frame_metrics", "frame_gate_from_renders")(renders)
+ return _import("codeverse3d.spatial.frame_metrics", "frame_gate_from_renders")(renders)
def silhouette(self, render_png: Path | str, reference_png: Path | str) -> dict[str, Any]:
"""Outline IoU of a render vs a reference image (``{iou, reliable, ...}``)."""
- return _import("codeverse.spatial.silhouette", "compare_silhouette")(render_png, reference_png)
+ return _import("codeverse3d.spatial.silhouette", "compare_silhouette")(render_png, reference_png)
def motion_checks(self, ws: Workspace, plan: Plan) -> GateReport | None:
"""Planned joint motion text vs the built URDF's actual motion direction."""
- from codeverse.tracks.articulated_object import default_motion_checks
+ from codeverse3d.tracks.articulated_object import default_motion_checks
return default_motion_checks(ws, plan)
def joint_sweep(self, ws: Workspace, plan: Plan, out_dir: Path) -> tuple[GateReport, list[RenderView]]:
"""Pose sweep on the built URDF → (gate report, pose views). See articulated_object."""
- from codeverse.tracks.articulated_object import default_joint_sweep
+ from codeverse3d.tracks.articulated_object import default_joint_sweep
return default_joint_sweep(ws, plan, out_dir)
# ---- agents' workspace materialisation + tool cards
def materialize(self, ws: Workspace, *, agent_kind: str, contract_md: str, cookbook_rel: str, spatial_tools: bool) -> None:
- _import("codeverse.agents.materialize", "materialize_workspace")(
+ _import("codeverse3d.agents.materialize", "materialize_workspace")(
ws, agent_kind=agent_kind, contract_md=contract_md, cookbook_rel=cookbook_rel, spatial_tools=spatial_tools)
def tool_cards(self, track: str, language: str) -> str:
try:
- return _import("codeverse.spatial.registry", "tool_cards")(track=track, language=language)
+ return _import("codeverse3d.spatial.registry", "tool_cards")(track=track, language=language)
except Exception as e: # noqa: BLE001 — tool registry may be empty during bootstrap
log.warning("tool cards unavailable: %s", e)
return ""
# ---- scene assembly + record
def assemble_scene(self, ws: Workspace, plan: Plan) -> Any:
- fn = _import("codeverse.languages.scene_threejs", "assemble")
+ fn = _import("codeverse3d.languages.scene_threejs", "assemble")
return fn(ws, plan, cameras="plan" if getattr(plan, "cameras", None) else "derive")
def finalize_record(self, ws: Workspace, record: RunRecord) -> None:
- _import("codeverse.record.record", "finalize_record")(ws, record)
+ _import("codeverse3d.record.record", "finalize_record")(ws, record)
# ----------------------------------------------------------------------------- context
@@ -280,6 +280,6 @@ def cookbook_rel_for(language: Language) -> str:
urdf_blender's prompts live in prompts/urdf/, so this returned a path that does not
exist and the articulated agent was told "No cookbook is available in this session"
while its 24 063-character cookbook sat on disk. Unconditional since 2026-08-29
- (the CV3D_URDF_COOKBOOK A/B switch is gone): every run gets the real cookbook."""
+ (the C3D_URDF_COOKBOOK A/B switch is gone): every run gets the real cookbook."""
return f"{prompt_dir_for(language)}/cookbook.md"
diff --git a/harness/codeverse/tracks/depth.py b/harness/codeverse3d/tracks/depth.py
similarity index 97%
rename from harness/codeverse/tracks/depth.py
rename to harness/codeverse3d/tracks/depth.py
index bf706c92..0864a1a6 100644
--- a/harness/codeverse/tracks/depth.py
+++ b/harness/codeverse3d/tracks/depth.py
@@ -20,7 +20,7 @@ Measured on the recorded corpus (183 judged rounds / 81 runs, see the wave's
machine were given the same numbers, so the number said nothing.
The *measurement* side of the same question — how much artifact actually got built,
-on eight objective axes — is ``codeverse/spatial/complexity.py`` + ``docs/COMPLEXITY.md``.
+on eight objective axes — is ``codeverse3d/spatial/complexity.py`` + ``docs/COMPLEXITY.md``.
This module is the *target* side: what THIS plan should be allowed and asked to spend.
Hence: :func:`depth_budget` (how many triangles / how much build time this *plan*
@@ -37,7 +37,7 @@ from collections.abc import Sequence
from dataclasses import dataclass
from typing import Any
-from codeverse.conventions import MAX_TRIS_OBJECT, to_pascal, to_snake
+from codeverse3d.conventions import MAX_TRIS_OBJECT, to_pascal, to_snake
log = logging.getLogger(__name__)
@@ -116,10 +116,10 @@ DEFAULT_PARTS_PER_SCOPE = 3
def scoped_generation_enabled(default: bool = True) -> bool:
- """``CV3D_SCOPED_PARTS=off|0|false`` turns per-part scoped baselines off (A/B, debugging)."""
- from codeverse.config import env_flag
+ """``C3D_SCOPED_PARTS=off|0|false`` turns per-part scoped baselines off (A/B, debugging)."""
+ from codeverse3d.config import env_flag
- return env_flag("CV3D_SCOPED_PARTS", default)
+ return env_flag("C3D_SCOPED_PARTS", default)
@dataclass(frozen=True)
@@ -310,7 +310,7 @@ def budget_gate(measurement: Any, build: Any, budget: DepthBudget) -> Any:
is a quality problem, not a broken one — the static track turns the thin WARN
into a refine task through ``extra_refine_tasks``.
"""
- from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
+ from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
findings: list[Any] = []
tris = int(getattr(measurement, "tri_count", 0) or 0)
diff --git a/harness/codeverse/tracks/generation.py b/harness/codeverse3d/tracks/generation.py
similarity index 96%
rename from harness/codeverse/tracks/generation.py
rename to harness/codeverse3d/tracks/generation.py
index 662baeb2..6ca4f631 100644
--- a/harness/codeverse/tracks/generation.py
+++ b/harness/codeverse3d/tracks/generation.py
@@ -1,6 +1,6 @@
"""Code generation: one entry point, two strategies.
-* **CodingAgent path** — ``agent_id`` is any id ``codeverse.agents`` knows
+* **CodingAgent path** — ``agent_id`` is any id ``codeverse3d.agents`` knows
(``gemini-cli:*``, ``claude-code:*``, ``codex:*``, ``agy:*``):
the workspace is materialised once per run (AGENTS.md + MCP config), then
``agent.run(AgentJob)``. Truth is on disk: ``ok`` means files changed.
@@ -21,7 +21,7 @@ A session cut off mid-task leaves work the next round pays for again.
So there is **no default cap** (``DEFAULT_AGENT_MAX_TURNS`` and
``RoundPolicy.agent_max_turns`` are 0 → the backend's own ``AgentJob.max_turns``).
A caller may still set one (``GenerationTask.max_turns`` > ``generate(max_turns=…)``
-> ``CV3D_AGENT_MAX_TURNS`` > ``Settings.limits.agent_max_turns``, which a cost
+> ``C3D_AGENT_MAX_TURNS`` > ``Settings.limits.agent_max_turns``, which a cost
profile sets), and a cap that IS set stays **graceful**: the session is not killed
but asked, in a short wrap-up (``agent_wrapup_turns``), for one last build + summary.
@@ -44,16 +44,16 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.contracts.agent import AgentJob, AgentResult, FileChange
-from codeverse.contracts.chat import ChatMessage, ChatRequest, ImagePart
-from codeverse.contracts.common import Usage
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.agent import AgentJob, AgentResult, FileChange
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest, ImagePart
+from codeverse3d.contracts.common import Usage
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
# ===================================================================== single-shot envelope
-# (merged back from codeverse/tracks/envelope.py, 2026-08-28 — the split existed only
+# (merged back from codeverse3d/tracks/envelope.py, 2026-08-28 — the split existed only
# to hold a re-export shim; this module was its one importer)
ALLOWED_ROOTS: tuple[str, ...] = ("src/", "public/")
#: where an out-of-workspace task image is copied so a vendor CLI can read it (D9, like the cookbook)
@@ -249,16 +249,16 @@ WRAPUP_PROMPT = (
def agent_max_turns(default: int = DEFAULT_AGENT_MAX_TURNS) -> int:
- """The turn cap a machine/profile asks for: ``CV3D_AGENT_MAX_TURNS`` >
+ """The turn cap a machine/profile asks for: ``C3D_AGENT_MAX_TURNS`` >
``Settings.limits.agent_max_turns`` (what a cost profile sets) > ``default``.
``0`` means *no cap*: the caller leaves ``AgentJob.max_turns`` at the backend's
own default. That is the measured default (docs/COST.md §17)."""
- raw = os.environ.get("CV3D_AGENT_MAX_TURNS", "").strip()
+ raw = os.environ.get("C3D_AGENT_MAX_TURNS", "").strip()
if raw.isdigit() and int(raw) > 0:
return int(raw)
try:
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
configured = int(getattr(get_settings().limits, "agent_max_turns", 0) or 0)
except Exception as e: # noqa: BLE001 — settings must never break a generation
@@ -366,7 +366,7 @@ def single_shot_model_id(agent_id: str) -> str:
def single_shot_format_text() -> str:
"""The canonical format doc (``prompts/system/singleshot_format.md`` when present)."""
try:
- from codeverse.prompts import load_text
+ from codeverse3d.prompts import load_text
return load_text("system/singleshot_format.md")
except FileNotFoundError:
@@ -383,7 +383,7 @@ def generate_files(
allowed_roots: tuple[str, ...] = ALLOWED_ROOTS,
) -> GenerationResult:
"""Single-shot API codegen: ChatRequest → envelope → files on disk (no commit)."""
- from codeverse.models.retry import RETRY_DEADLINE_S
+ from codeverse3d.models.retry import RETRY_DEADLINE_S
system = task.system + ("\n\n" if task.system else "") + single_shot_format_text()
req = ChatRequest(
@@ -396,7 +396,7 @@ def generate_files(
# the hard ceiling this refuses to buy the call at all (agent-path symmetry)
max_wait_s=_deadline_preflight(budget, RETRY_DEADLINE_S),
# the round tag is the cost ledger's only way to attribute a single-shot call:
- # it has no agent session to inherit an ambient round from (codeverse.cost.context)
+ # it has no agent session to inherit an ambient round from (codeverse3d.cost.context)
label=f"{task.label}:r{task.round:02d}",
)
resp = model.generate(req)
@@ -498,7 +498,7 @@ def task_stage(task: GenerationTask) -> str:
``cost.types.stage_for_label`` — the SAME vocabulary ``MeteredAgent`` files the
session row by — else the label, which ``record_call`` maps the same way
(``asset_koi`` → assets, ``r00_baseline_repair1`` → repair)."""
- from codeverse.cost.types import Stage, stage_for_label
+ from codeverse3d.cost.types import Stage, stage_for_label
stage = stage_for_label(task.kind)
return str(stage) if stage is not Stage.OTHER else (task.label or "other")
@@ -555,7 +555,7 @@ def run_agent_task(
"""CodingAgent path. ``ok`` = the agent changed files (envelope-vs-disk truth).
A turn cap is applied only when a caller asks for one (``task.max_turns`` >
- ``max_turns`` > ``CV3D_AGENT_MAX_TURNS`` > ``Settings.limits.agent_max_turns``
+ ``max_turns`` > ``C3D_AGENT_MAX_TURNS`` > ``Settings.limits.agent_max_turns``
> :data:`DEFAULT_AGENT_MAX_TURNS`, which is 0 = the backend's own
``AgentJob.max_turns``; a 28-turn default was measured and rejected, see the
module docstring). Hitting whatever cap is in force is not a failure: one
@@ -714,7 +714,7 @@ class _SessionAcc:
def _is_budget_stop(e: BaseException) -> bool:
- from codeverse.orchestrator import BudgetExceeded
+ from codeverse3d.orchestrator import BudgetExceeded
return isinstance(e, BudgetExceeded)
@@ -781,7 +781,7 @@ def _always_writable(language: str, task: GenerationTask) -> list[str]:
scoped refines whose prompt promises entry access) or a ``files_hint`` naming the
entry. Part / zone / detail / asset tasks own nothing here — under the old
unconditional exemption, parallel scoped sessions raced on the entry file unopposed."""
- from codeverse.contracts.common import ENTRY_FILE, Language
+ from codeverse3d.contracts.common import ENTRY_FILE, Language
try:
entry = ENTRY_FILE[Language(language)]
@@ -803,7 +803,7 @@ def _envelope_scope(ws: Workspace, task: GenerationTask) -> tuple[set[str] | Non
def _read_only(language: str) -> list[str]:
"""The harness-owned files of the language (``src/recipes.glsl`` for glsl_shader): every session
of the run — baseline, refine, repair — may read them, none may write them."""
- from codeverse.contracts.common import HARNESS_OWNED_SRC, Language
+ from codeverse3d.contracts.common import HARNESS_OWNED_SRC, Language
try:
return list(HARNESS_OWNED_SRC.get(Language(language), ()))
@@ -819,7 +819,7 @@ def _attributed_fallback(ws: Workspace, task: GenerationTask, before: str) -> li
to this task instead: inside its write roots, never harness-owned paths."""
raw = ws.changed_files(before) # Workspace serialises + retries the git index itself
try:
- from codeverse.agents.cli_common import attribute_changes
+ from codeverse3d.agents.cli_common import attribute_changes
except ImportError: # pragma: no cover — agents package always ships with tracks
return raw
return attribute_changes(raw, write_roots=list(task.write_roots))
@@ -841,11 +841,11 @@ def generate(
"""Dispatch to the single-shot or the coding-agent strategy by ``agent_id``.
``agent`` / ``model`` may be injected (tests, reuse); otherwise they are
- resolved lazily through ``codeverse.agents`` / ``codeverse.models``.
+ resolved lazily through ``codeverse3d.agents`` / ``codeverse3d.models``.
"""
if is_single_shot(agent_id):
if model is None:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
model = get_chat_model(single_shot_model_id(agent_id))
return generate_files(
@@ -857,7 +857,7 @@ def generate(
allowed_roots=tuple(r.rstrip("/") + "/" for r in task.write_roots),
)
if agent is None:
- from codeverse.agents import get_coding_agent
+ from codeverse3d.agents import get_coding_agent
agent = get_coding_agent(agent_id)
return run_agent_task(
diff --git a/harness/codeverse/tracks/graphics.py b/harness/codeverse3d/tracks/graphics.py
similarity index 96%
rename from harness/codeverse/tracks/graphics.py
rename to harness/codeverse3d/tracks/graphics.py
index 30e4974e..d85234d6 100644
--- a/harness/codeverse/tracks/graphics.py
+++ b/harness/codeverse3d/tracks/graphics.py
@@ -18,8 +18,8 @@ from dataclasses import dataclass
from pathlib import Path
from typing import Any
-from codeverse.config import seed_recipes_enabled
-from codeverse.contracts.artifacts import (
+from codeverse3d.config import seed_recipes_enabled
+from codeverse3d.contracts.artifacts import (
BuildResult,
GateReport,
Measurement,
@@ -27,20 +27,20 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.contracts.common import HARNESS_OWNED_SRC, TRACK_INFO, Language, Track
-from codeverse.contracts.plan import AcceptanceItem, GraphicsPlan, Plan
-from codeverse.contracts.run import RoundRecord
-from codeverse.contracts.spec import Spec
-from codeverse.languages._gl_common import SHEET_NAME, read_metrics
-from codeverse.languages.glsl_shader import COMMON_GLSL, FUNC_DEF, strip_comments
-from codeverse.orchestrator import TaskGroup
-from codeverse.prompts import render
-from codeverse.prompts.sections import Section, split_sections
-from codeverse.tracks.common import RunContext
-from codeverse.tracks.generation import SINGLE_SHOT_FORMAT, GenerationTask
-from codeverse.tracks.lifecycle import BaseTrack, StageRunner
-from codeverse.tracks.planner import add_acceptance_item
-from codeverse.tracks.prompting import (
+from codeverse3d.contracts.common import HARNESS_OWNED_SRC, TRACK_INFO, Language, Track
+from codeverse3d.contracts.plan import AcceptanceItem, GraphicsPlan, Plan
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.languages._gl_common import SHEET_NAME, read_metrics
+from codeverse3d.languages.glsl_shader import COMMON_GLSL, FUNC_DEF, strip_comments
+from codeverse3d.orchestrator import TaskGroup
+from codeverse3d.prompts import render
+from codeverse3d.prompts.sections import Section, split_sections
+from codeverse3d.tracks.common import RunContext
+from codeverse3d.tracks.generation import SINGLE_SHOT_FORMAT, GenerationTask
+from codeverse3d.tracks.lifecycle import BaseTrack, StageRunner
+from codeverse3d.tracks.planner import add_acceptance_item
+from codeverse3d.tracks.prompting import (
AGENT_OUTPUT_RULES,
acceptance_lines,
constraints_text,
@@ -53,7 +53,7 @@ from codeverse.tracks.prompting import (
select_cookbook_chapters,
skeleton_files,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
diff --git a/harness/codeverse/tracks/lifecycle.py b/harness/codeverse3d/tracks/lifecycle.py
similarity index 96%
rename from harness/codeverse/tracks/lifecycle.py
rename to harness/codeverse3d/tracks/lifecycle.py
index 3fd07e1f..061ccbdf 100644
--- a/harness/codeverse/tracks/lifecycle.py
+++ b/harness/codeverse3d/tracks/lifecycle.py
@@ -19,15 +19,15 @@ from datetime import UTC, datetime
from pathlib import Path
from typing import Any
-from codeverse.config import Settings, get_settings
-from codeverse.contracts.artifacts import GateReport
-from codeverse.contracts.common import Track
-from codeverse.contracts.plan import Plan
-from codeverse.contracts.run import RoundRecord, RunRecord, RunStatus
-from codeverse.contracts.spec import Spec
-from codeverse.cost.context import run_binding
-from codeverse.cost.instrument import run_ledger
-from codeverse.orchestrator import (
+from codeverse3d.config import Settings, get_settings
+from codeverse3d.contracts.artifacts import GateReport
+from codeverse3d.contracts.common import Track
+from codeverse3d.contracts.plan import Plan
+from codeverse3d.contracts.run import RoundRecord, RunRecord, RunStatus
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.cost.context import run_binding
+from codeverse3d.cost.instrument import run_ledger
+from codeverse3d.orchestrator import (
KIND_FOR_STRATEGY,
BestSelector,
BudgetExceeded,
@@ -46,29 +46,29 @@ from codeverse.orchestrator import (
hash_inputs,
plan_refine_groups,
)
-from codeverse.proc import EventLog
-from codeverse.prompts import render
-from codeverse.tracks.candidates import choose_best_round, replay_best_round, run_best_of_n
-from codeverse.tracks.common import (
+from codeverse3d.proc import EventLog
+from codeverse3d.prompts import render
+from codeverse3d.tracks.candidates import choose_best_round, replay_best_round, run_best_of_n
+from codeverse3d.tracks.common import (
RunContext,
Services,
cookbook_rel_for,
language_contract,
load_prompt_or,
)
-from codeverse.tracks.generation import GenerationTask, single_shot_model_id
-from codeverse.tracks.planner import default_event_stats, ensure_acceptance, normalise_names
-from codeverse.tracks.planner import plan as run_planner
-from codeverse.tracks.planner import plan_example as default_plan_example
-from codeverse.tracks.prompting import (
+from codeverse3d.tracks.generation import GenerationTask, single_shot_model_id
+from codeverse3d.tracks.planner import default_event_stats, ensure_acceptance, normalise_names
+from codeverse3d.tracks.planner import plan as run_planner
+from codeverse3d.tracks.planner import plan_example as default_plan_example
+from codeverse3d.tracks.prompting import (
base_prompt_context,
expected_files,
file_for_target_factory,
language_system_prompt,
refine_inline_files,
)
-from codeverse.tracks.repair import format_error_report
-from codeverse.tracks.steps import (
+from codeverse3d.tracks.repair import format_error_report
+from codeverse3d.tracks.steps import (
RoundFailed,
RoundPipeline,
failed_acceptance,
@@ -79,14 +79,14 @@ from codeverse.tracks.steps import (
run_round,
sum_usage,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
REFERENCE_RUBRIC = "reference_v1"
#: surface-detail rounds a track that implements one gets by default. ``RoundPolicy.detail_rounds``
-#: is None (= this default) unless a caller chose a number; ``CV3D_DETAIL_ROUNDS`` overrides both
+#: is None (= this default) unless a caller chose a number; ``C3D_DETAIL_ROUNDS`` overrides both
#: (0 = off — the A/B switch for docs/EVAL.md).
DEFAULT_DETAIL_ROUNDS = 1
@@ -97,7 +97,7 @@ def detail_round_budget(policy: RoundPolicy, supported: bool) -> int:
Until 2026-08-29 the third tier was skipped whenever ANY policy object was injected, so the
economy/quality profiles (a policy for ``judge_samples`` alone) silently lost the static
track's detail round."""
- raw = os.environ.get("CV3D_DETAIL_ROUNDS", "").strip()
+ raw = os.environ.get("C3D_DETAIL_ROUNDS", "").strip()
if raw.isdigit():
return int(raw) if supported else 0
if not supported:
@@ -123,8 +123,8 @@ def _reconcile_billed_from_ledger(budget: BudgetGuard, ws: Workspace, events: Ev
``cost_ledger.jsonl`` leg went on 2026-08-30 (an audit of every run under $HOME found
677 symlinks to that name and zero real files — ``LEDGER_NAME`` is the alias only)."""
try:
- from codeverse.cost.billing import bills_usd
- from codeverse.cost.ledger import load_ledger
+ from codeverse3d.cost.billing import bills_usd
+ from codeverse3d.cost.ledger import load_ledger
billed = sum(float(r.cost_usd or 0.0) for r in load_ledger(ws.root) if bills_usd(r.backend))
except Exception as e: # noqa: BLE001 — accounting repair must never block a resume
@@ -834,12 +834,12 @@ class BaseTrack:
@staticmethod
def _texture_wanted(ctx: RunContext) -> bool:
- """``codeverse.texturing.run.texture_requested`` is the single owner of this
+ """``codeverse3d.texturing.run.texture_requested`` is the single owner of this
decision (spec.options.texture / the legacy tag) — the same predicate the
``texture_pass`` spatial tool asks, so a ``texture: false`` run cannot be
textured from inside an agent session either."""
try:
- from codeverse.texturing.run import texture_requested
+ from codeverse3d.texturing.run import texture_requested
return texture_requested(ctx.spec)
except Exception as e: # noqa: BLE001 — texturing is optional; never block finalise
@@ -863,14 +863,14 @@ class BaseTrack:
# collected into the record here.
ctx.events.emit("texture.skipped", reason="already_textured_this_artifact")
try: # a malformed report must not block finalise
- from codeverse.texturing.run import load_report, texturing_extra
+ from codeverse3d.texturing.run import load_report, texturing_extra
ctx.extra["texturing"] = texturing_extra(ctx.ws, load_report(ctx.ws))
except Exception: # noqa: BLE001
log.warning("tool-textured report could not be collected into the record")
return
try:
- from codeverse.texturing.run import texture_pass
+ from codeverse3d.texturing.run import texture_pass
trep = texture_pass(ctx.ws, ctx.spec, ctx.plan, model_id=ctx.spec.backends.planner, judge=True,
judge_model_id=ctx.spec.backends.judge, rubric=self.rubric, events=ctx.events,
@@ -901,7 +901,7 @@ class BaseTrack:
import hashlib
import json as _json
- from codeverse.texturing.run import report_path
+ from codeverse3d.texturing.run import report_path
report = report_path(ctx.ws)
glb = ctx.ws.artifacts / "object.glb"
diff --git a/harness/codeverse/tracks/plan_features.py b/harness/codeverse3d/tracks/plan_features.py
similarity index 78%
rename from harness/codeverse/tracks/plan_features.py
rename to harness/codeverse3d/tracks/plan_features.py
index 53c3f89f..a2dd5393 100644
--- a/harness/codeverse/tracks/plan_features.py
+++ b/harness/codeverse3d/tracks/plan_features.py
@@ -1,7 +1,7 @@
"""The A/B switch registry: which env switches any code path ACTUALLY reads.
Born as the switchboard for the plan-loop-engineering wave (CQ-5): six features were
-declared under ``CV3D_PLAN_FEATURES``, none was ever implemented, and one A/B run is on
+declared under ``C3D_PLAN_FEATURES``, none was ever implemented, and one A/B run is on
record printing "keep, mean delta +0.344" for two byte-identical arms. The feature
runtime (``parse_features`` / ``plan_feature_on``) was deleted 2026-08-28 per its own
instruction; the six names stay only so ``pin_plan_blockers`` can classify a pinned
@@ -13,10 +13,10 @@ silently pin away the very thing it is testing.
from __future__ import annotations
-PLAN_FEATURES_ENV = "CV3D_PLAN_FEATURES"
+PLAN_FEATURES_ENV = "C3D_PLAN_FEATURES"
#: the six switch names the wave defined. Nothing reads them at runtime any more —
-#: they remain because ``pin_plan_blockers`` still classifies a CV3D_PLAN_FEATURES
+#: they remain because ``pin_plan_blockers`` still classifies a C3D_PLAN_FEATURES
#: value inside a MIXED A/B env, and that classification must not silently widen.
FIT = "fit"
CONTACTS = "contacts"
@@ -31,10 +31,10 @@ GENERATION_SIDE: frozenset[str] = frozenset({CONTACTS})
#: that differ only by these. Anything not listed is treated as plan-side: refusing to
#: pin costs one noisy A/B, pinning wrongly costs a confident wrong answer
#: (docs/EVAL.md §8.1 measured it — the A/A's worst pair differed 1 part vs 10).
-GENERATION_SIDE_ENV: frozenset[str] = frozenset({"CV3D_SKILLS", "CV3D_SKILLS_MAX", "CV3D_SKILLS_UNVERIFIED",
- "CV3D_SKILLS_ONLY",
- "CV3D_DETAIL_ROUNDS", "CV3D_REFERENCE_DIFF",
- "CV3D_FEWER_TURNS", "CV3D_SEED_RECIPES"})
+GENERATION_SIDE_ENV: frozenset[str] = frozenset({"C3D_SKILLS", "C3D_SKILLS_MAX", "C3D_SKILLS_UNVERIFIED",
+ "C3D_SKILLS_ONLY",
+ "C3D_DETAIL_ROUNDS", "C3D_REFERENCE_DIFF",
+ "C3D_FEWER_TURNS", "C3D_SEED_RECIPES"})
def pin_plan_blockers(variant_env: dict[str, str]) -> list[str]:
@@ -60,32 +60,32 @@ def pin_plan_blockers(variant_env: dict[str, str]) -> list[str]:
#: Plan-loop switches the tree ACTUALLY reads, name → the module that reads it. Kept
#: honest by tests/orchestrator_tracks/test_plan_features.py, which greps the tree.
LIVE_SWITCHES: dict[str, str] = {
- "CV3D_PLAN_BRIEF": "codeverse/tracks/planner.py", # brief.py merged in, 2026-08-28
+ "C3D_PLAN_BRIEF": "codeverse3d/tracks/planner.py", # brief.py merged in, 2026-08-28
# re-sample a degenerate plan from the original prompt instead of editing it in context
- "CV3D_PLAN_RESTART": "codeverse/tracks/planner.py",
- "CV3D_SCOPED_PARTS": "codeverse/tracks/depth.py",
- "CV3D_DETAIL_ROUNDS": "codeverse/tracks/lifecycle.py",
- "CV3D_REFERENCE_DIFF": "codeverse/judges/vlm_judge.py", # reference.py merged in, 2026-08-28
+ "C3D_PLAN_RESTART": "codeverse3d/tracks/planner.py",
+ "C3D_SCOPED_PARTS": "codeverse3d/tracks/depth.py",
+ "C3D_DETAIL_ROUNDS": "codeverse3d/tracks/lifecycle.py",
+ "C3D_REFERENCE_DIFF": "codeverse3d/judges/vlm_judge.py", # reference.py merged in, 2026-08-28
# the skill system (design: scratchpad/skills/design/DESIGN.md §6.5). All three are
# read at call time by one module, so an A/B arm that sets them really differs.
- "CV3D_SKILLS": "codeverse/skills/config.py",
- "CV3D_SKILLS_MAX": "codeverse/skills/config.py",
- "CV3D_SKILLS_UNVERIFIED": "codeverse/skills/config.py",
- "CV3D_SKILLS_ONLY": "codeverse/skills/config.py",
+ "C3D_SKILLS": "codeverse3d/skills/config.py",
+ "C3D_SKILLS_MAX": "codeverse3d/skills/config.py",
+ "C3D_SKILLS_UNVERIFIED": "codeverse3d/skills/config.py",
+ "C3D_SKILLS_ONLY": "codeverse3d/skills/config.py",
# fewer turns (docs/COST.md §29): build folds the gates in, write_file lints, the refine
# prompt inlines its files, the baseline prompt asks for every file in turn 1. One
# switch, read at call time by config.fewer_turns_enabled; acts after planning.
- "CV3D_FEWER_TURNS": "codeverse/config.py",
- "CV3D_SEED_RECIPES": "codeverse/config.py",
+ "C3D_FEWER_TURNS": "codeverse3d/config.py",
+ "C3D_SEED_RECIPES": "codeverse3d/config.py",
# wire the scene texture pack into the scene loop: a stage before env/zones, and the
# pack description (texturing.plan.texture_pack_prompt) in both prompts. OFF by
# default — it costs an image-model call per run and nobody has measured what it buys.
- "CV3D_SCENE_TEXTURES": "codeverse/config.py",
+ "C3D_SCENE_TEXTURES": "codeverse3d/config.py",
# model-transport switches (2026-08-28, the hung-read waves): streaming with
# inter-chunk stall detection, and the IPv4-only transport. Read at call time
# by every gemini request, so a control arm can set either to 0.
- "CV3D_STREAM": "codeverse/models/gemini.py",
- "CV3D_IPV4": "codeverse/models/gemini.py",
+ "C3D_STREAM": "codeverse3d/models/gemini.py",
+ "C3D_IPV4": "codeverse3d/models/gemini.py",
}
#: Switches that are DECLARED but read by no code path, with the reason. An A/B arm that
diff --git a/harness/codeverse/tracks/planner.py b/harness/codeverse3d/tracks/planner.py
similarity index 98%
rename from harness/codeverse/tracks/planner.py
rename to harness/codeverse3d/tracks/planner.py
index 0803e01a..862e3b69 100644
--- a/harness/codeverse/tracks/planner.py
+++ b/harness/codeverse3d/tracks/planner.py
@@ -28,24 +28,24 @@ from typing import Any, TypeVar
from pydantic import BaseModel, ValidationError
-from codeverse.contracts.chat import ChatMessage, ChatRequest, ImagePart
-from codeverse.contracts.common import Language, Track, Usage
-from codeverse.contracts.plan import AcceptanceItem, EngineeringBrief
-from codeverse.contracts.spec import Spec
-from codeverse.conventions import LANGUAGE_FRAME, frame_doc, to_pascal, to_snake
-from codeverse.models.schema_utils import parse_json_lenient
-from codeverse.proc import sha256_file
-from codeverse.prompts import load_text, prompt_hash, render
-from codeverse.tracks.common import language_contract
-from codeverse.tracks.prompting import constraints_text
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest, ImagePart
+from codeverse3d.contracts.common import Language, Track, Usage
+from codeverse3d.contracts.plan import AcceptanceItem, EngineeringBrief
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.conventions import LANGUAGE_FRAME, frame_doc, to_pascal, to_snake
+from codeverse3d.models.schema_utils import parse_json_lenient
+from codeverse3d.proc import sha256_file
+from codeverse3d.prompts import load_text, prompt_hash, render
+from codeverse3d.tracks.common import language_contract
+from codeverse3d.tracks.prompting import constraints_text
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
# ===================================================================== the brief
#: env switch: ``off``/``0``/``false`` disables brief expansion for the run
-BRIEF_ENV = "CV3D_PLAN_BRIEF"
+BRIEF_ENV = "C3D_PLAN_BRIEF"
#: tracks the object-shaped brief applies to (graphics/scene get budgets only)
BRIEF_TRACKS = (Track.STATIC_OBJECT, Track.ARTICULATED_OBJECT)
BRIEF_TEMPLATE = "tracks/brief_object.j2"
@@ -55,13 +55,13 @@ BRIEF_MAX_TOKENS = 65_536
# ----------------------------------------------------------------------------- brief
def brief_enabled(spec: Spec, *, default: bool = True) -> bool:
"""Whether to expand the brief for this spec (env switch wins; object tracks only)."""
- from codeverse.config import env_flag # ONE flag vocabulary (review-3 S4)
+ from codeverse3d.config import env_flag # ONE flag vocabulary (review-3 S4)
return env_flag(BRIEF_ENV, default) and spec.track in BRIEF_TRACKS
def brief_cache_dir() -> Path:
- root = os.environ.get("CV3D_CACHE_DIR") or (Path.home() / ".cache" / "codeverse")
+ root = os.environ.get("C3D_CACHE_DIR") or (Path.home() / ".cache" / "codeverse3d")
return Path(root) / "briefs"
@@ -87,7 +87,7 @@ def brief_cache_key(spec: Spec, model_id: str) -> str:
``expand_brief`` attaches ``spec.references`` to the request and tells the model
to read the dimensions and features off them, so a key that omits them lets an
``--image`` run drink a brief generated WITHOUT the image (and vice versa) —
- silently, from the machine-wide ~/.cache/codeverse/briefs, with cached=True in
+ silently, from the machine-wide ~/.cache/codeverse3d/briefs, with cached=True in
events.jsonl."""
c = spec.constraints
payload = json.dumps({
@@ -122,7 +122,7 @@ def expand_brief(spec: Spec, model_id: str, *, model: Any | None = None, events:
except (ValidationError, ValueError, OSError) as e: # a stale/corrupt cache entry is not fatal
log.warning("brief cache %s unusable (%s); regenerating", path, e)
if model is None:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
model = get_chat_model(model_id)
system = render(BRIEF_TEMPLATE, track=spec.track.value, language=spec.language.value)
@@ -568,8 +568,8 @@ MAX_QUALITY_REASKS = 1
#: in context; at most this many times per plan. Measured 2026-09-02: 3-4 % of plan calls
#: end this way, and both in-context re-asks reproduce the same broken plan verbatim.
MAX_PLAN_RESTARTS = 1
-#: kill-switch for that restart (default ON, mirrors CV3D_AXIS_REPAIR)
-PLAN_RESTART_ENV = "CV3D_PLAN_RESTART"
+#: kill-switch for that restart (default ON, mirrors C3D_AXIS_REPAIR)
+PLAN_RESTART_ENV = "C3D_PLAN_RESTART"
#: Output room for the plan call, sized from the plan budget. A deep plan is much longer
#: JSON than a flat one AND Gemini 3.x bills its thinking against the same ceiling, so the
#: flat 24 000 that served 8 box-parts truncates a 12-part plan with sub-parts —
@@ -689,7 +689,7 @@ def restart_note(raw: Any, missing: list[str], budget: PlanBudget) -> str:
def restart_enabled() -> bool:
"""Kill switch for the degenerate-plan restart, ON by default (docs/COST.md §30)."""
- from codeverse.config import env_flag # ONE flag vocabulary (review-3 S4)
+ from codeverse3d.config import env_flag # ONE flag vocabulary (review-3 S4)
return env_flag(PLAN_RESTART_ENV, True)
@@ -825,7 +825,7 @@ def plan_with_usage[P: BaseModel](spec: Spec, model_id: str, plan_model: type[P]
guard-less callers; when ``guard`` is given those dollars are already booked and the
caller must NOT charge them again (:func:`plan` just runs one final ``check()``)."""
if model is None:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
model = get_chat_model(model_id)
brief, usage = (None, Usage())
diff --git a/harness/codeverse/tracks/prompting.py b/harness/codeverse3d/tracks/prompting.py
similarity index 97%
rename from harness/codeverse/tracks/prompting.py
rename to harness/codeverse3d/tracks/prompting.py
index fd63abc1..d2ad94f5 100644
--- a/harness/codeverse/tracks/prompting.py
+++ b/harness/codeverse3d/tracks/prompting.py
@@ -13,20 +13,20 @@ from collections.abc import Sequence
from pathlib import Path
from typing import TYPE_CHECKING, Any
-from codeverse.config import fewer_turns_enabled
-from codeverse.contracts.chat import ImagePart
-from codeverse.contracts.common import HARNESS_OWNED_SRC, Language, Track, is_harness_owned
-from codeverse.contracts.plan import Plan, StaticPlan
-from codeverse.contracts.run import RoundRecord
-from codeverse.conventions import LANGUAGE_FRAME, Frame, frame_doc, to_snake
-from codeverse.prompts import render
-from codeverse.prompts.catalog import prompt_dir_for
-from codeverse.tracks.common import RunContext
-from codeverse.tracks.depth import DepthBudget, PartScope, depth_budget, interfaces_text
-from codeverse.tracks.generation import SINGLE_SHOT_FORMAT
+from codeverse3d.config import fewer_turns_enabled
+from codeverse3d.contracts.chat import ImagePart
+from codeverse3d.contracts.common import HARNESS_OWNED_SRC, Language, Track, is_harness_owned
+from codeverse3d.contracts.plan import Plan, StaticPlan
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.conventions import LANGUAGE_FRAME, Frame, frame_doc, to_snake
+from codeverse3d.prompts import render
+from codeverse3d.prompts.catalog import prompt_dir_for
+from codeverse3d.tracks.common import RunContext
+from codeverse3d.tracks.depth import DepthBudget, PartScope, depth_budget, interfaces_text
+from codeverse3d.tracks.generation import SINGLE_SHOT_FORMAT
if TYPE_CHECKING:
- from codeverse.prompts.sections import Section
+ from codeverse3d.prompts.sections import Section
log = logging.getLogger(__name__)
@@ -155,7 +155,7 @@ def cookbook_sections(ctx: RunContext, names: Sequence[str], *, max_chars: int =
so the chapters that decide the score (ground, horizon, vegetation, rocks, dressing,
layering, motion) travel inside the prompt instead; the tool stays for everything else.
"""
- from codeverse.prompts.sections import find_section, split_sections
+ from codeverse3d.prompts.sections import find_section, split_sections
md = ctx.cookbook_text or ""
if not md.strip():
@@ -224,7 +224,7 @@ def select_cookbook_chapters(ctx: RunContext, brief: str, *, budget: int = 9000,
need of a night-sky brief: always-set 4.4 k + Light phenomena 3.2 k + Gradient sky 1.3 k.
``tracks/graphics.py:seed_recipes`` seeds the SAME selection's code into the harness-owned ``src/recipes.glsl``.
"""
- from codeverse.prompts.sections import Section, find_section, split_sections
+ from codeverse3d.prompts.sections import Section, find_section, split_sections
md = ctx.cookbook_text or ""
if not md.strip():
@@ -299,7 +299,7 @@ def effects_catalog_text(language: Language) -> str:
rel = EFFECTS_CATALOG_REL.get(language)
if not rel:
return ""
- from codeverse.tracks.common import load_prompt_or
+ from codeverse3d.tracks.common import load_prompt_or
return load_prompt_or(rel, "")
diff --git a/harness/codeverse/tracks/repair.py b/harness/codeverse3d/tracks/repair.py
similarity index 96%
rename from harness/codeverse/tracks/repair.py
rename to harness/codeverse3d/tracks/repair.py
index 664c4175..06172dcd 100644
--- a/harness/codeverse/tracks/repair.py
+++ b/harness/codeverse3d/tracks/repair.py
@@ -16,13 +16,13 @@ import re
from pydantic import BaseModel, Field
-from codeverse.contracts.artifacts import BuildResult, GateReport
-from codeverse.contracts.common import Usage
-from codeverse.prompts import render
-from codeverse.tracks import skills_hook
-from codeverse.tracks.common import RunContext, generate_for
-from codeverse.tracks.generation import GenerationResult, GenerationTask
-from codeverse.tracks.prompting import base_prompt_context, language_system_prompt
+from codeverse3d.contracts.artifacts import BuildResult, GateReport
+from codeverse3d.contracts.common import Usage
+from codeverse3d.prompts import render
+from codeverse3d.tracks import skills_hook
+from codeverse3d.tracks.common import RunContext, generate_for
+from codeverse3d.tracks.generation import GenerationResult, GenerationTask
+from codeverse3d.tracks.prompting import base_prompt_context, language_system_prompt
log = logging.getLogger(__name__)
diff --git a/harness/codeverse/tracks/scene.py b/harness/codeverse3d/tracks/scene.py
similarity index 95%
rename from harness/codeverse/tracks/scene.py
rename to harness/codeverse3d/tracks/scene.py
index de7a5417..213429eb 100644
--- a/harness/codeverse/tracks/scene.py
+++ b/harness/codeverse3d/tracks/scene.py
@@ -26,8 +26,8 @@ import time
from collections.abc import Sequence
from typing import Any
-from codeverse.config import scene_textures_enabled
-from codeverse.contracts.artifacts import (
+from codeverse3d.config import scene_textures_enabled
+from codeverse3d.contracts.artifacts import (
BuildResult,
GateFinding,
GateReport,
@@ -35,22 +35,22 @@ from codeverse.contracts.artifacts import (
RenderSet,
Severity,
)
-from codeverse.contracts.common import TRACK_INFO, Track
-from codeverse.contracts.plan import Plan, ScenePlan, ZonePlan
-from codeverse.contracts.run import RoundRecord
-from codeverse.conventions import to_snake
-from codeverse.judges.base import judged_subset
-from codeverse.orchestrator import StageRunner, TaskGroup, compact_instructions
-from codeverse.proc import fan_out
-from codeverse.prompts import render
-from codeverse.spatial.frame_motion import motion_text_for
-from codeverse.spatial.render_scene import perf_detail
-from codeverse.texturing.plan import texture_pack_prompt
-from codeverse.tracks import skills_hook
-from codeverse.tracks.common import RunContext, ServiceUnavailable, generate_for, single_shot_ctx
-from codeverse.tracks.generation import GenerationResult, GenerationTask
-from codeverse.tracks.lifecycle import BaseTrack
-from codeverse.tracks.prompting import (
+from codeverse3d.contracts.common import TRACK_INFO, Track
+from codeverse3d.contracts.plan import Plan, ScenePlan, ZonePlan
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.conventions import to_snake
+from codeverse3d.judges.base import judged_subset
+from codeverse3d.orchestrator import StageRunner, TaskGroup, compact_instructions
+from codeverse3d.proc import fan_out
+from codeverse3d.prompts import render
+from codeverse3d.spatial.frame_motion import motion_text_for
+from codeverse3d.spatial.render_scene import perf_detail
+from codeverse3d.texturing.plan import texture_pack_prompt
+from codeverse3d.tracks import skills_hook
+from codeverse3d.tracks.common import RunContext, ServiceUnavailable, generate_for, single_shot_ctx
+from codeverse3d.tracks.generation import GenerationResult, GenerationTask
+from codeverse3d.tracks.lifecycle import BaseTrack
+from codeverse3d.tracks.prompting import (
SCENE_FILES,
base_prompt_context,
bbox_line,
@@ -59,8 +59,8 @@ from codeverse.tracks.prompting import (
reference_images,
refine_inline_files,
)
-from codeverse.tracks.repair import format_error_report
-from codeverse.tracks.scene_assets import (
+from codeverse3d.tracks.repair import format_error_report
+from codeverse3d.tracks.scene_assets import (
MAX_ASSETS,
AssetResult,
asset_api_summary,
@@ -68,8 +68,8 @@ from codeverse.tracks.scene_assets import (
run_asset_stage,
select_assets,
)
-from codeverse.tracks.zone_layout import layout_block, layout_zones
-from codeverse.workspace import Workspace
+from codeverse3d.tracks.zone_layout import layout_block, layout_zones
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -109,7 +109,7 @@ class ScenePipeline:
# (before it, the scene_v1 floating_part cap could never fire). Advisory instrumentation:
# a failure is a WARN finding, never an exception, so it cannot kill a round.
try:
- from codeverse.spatial.scene_placement import placement_gate_safe
+ from codeverse3d.spatial.scene_placement import placement_gate_safe
placement = placement_gate_safe(build.census, plan=ctx.plan, layouts=ctx.extra.get("layouts"),
unavailable=[n for n, r in (ctx.extra.get("assets") or {}).items() if not getattr(r, "ok", True)])
@@ -203,14 +203,14 @@ class SceneTrack(BaseTrack):
# so the two stages' commits cannot race.
def _layouts() -> dict[str, Any]:
"""L2 zone layouts (optional accelerator): planner-model calls, never fatal."""
- from codeverse.config import env_flag
+ from codeverse3d.config import env_flag
- if not env_flag("CV3D_ZONE_LAYOUTS", True): # A/B switch, default on; canonical words
+ if not env_flag("C3D_ZONE_LAYOUTS", True): # A/B switch, default on; canonical words
return {}
try:
model = self._planner_model
if model is None:
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
model = get_chat_model(ctx.spec.backends.planner)
layouts = layout_zones(plan, model, budget=ctx.budget, events=ctx.events)
@@ -313,8 +313,8 @@ class SceneTrack(BaseTrack):
Runs BEFORE env / zones, because its whole point is that those prompts can name
the files. Advisory: a pack that cannot be generated leaves the run exactly as it
was before this stage existed (an empty manifest renders no prompt block)."""
- from codeverse.reference import _image_model
- from codeverse.texturing.plan import scene_texture_pack
+ from codeverse3d.reference import _image_model
+ from codeverse3d.texturing.plan import scene_texture_pack
plan: ScenePlan = ctx.plan # type: ignore[assignment]
try:
diff --git a/harness/codeverse/tracks/scene_assets.py b/harness/codeverse3d/tracks/scene_assets.py
similarity index 97%
rename from harness/codeverse/tracks/scene_assets.py
rename to harness/codeverse3d/tracks/scene_assets.py
index 2118cd0c..55ce9168 100644
--- a/harness/codeverse/tracks/scene_assets.py
+++ b/harness/codeverse3d/tracks/scene_assets.py
@@ -30,24 +30,24 @@ from typing import Any
from pydantic import BaseModel, Field
-from codeverse.contracts.artifacts import Judgment
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import AssetPlan, BBox, PartPlan, ScenePlan, StaticPlan
-from codeverse.contracts.spec import Constraints, Spec
-from codeverse.conventions import OBJECT_VIEWS_QUICK, to_pascal, to_snake
-from codeverse.judges.rubrics import is_degraded
-from codeverse.proc import fan_out, write_json_atomic, write_text_atomic
-from codeverse.prompts import render
-from codeverse.tracks.common import (
+from codeverse3d.contracts.artifacts import Judgment
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import AssetPlan, BBox, PartPlan, ScenePlan, StaticPlan
+from codeverse3d.contracts.spec import Constraints, Spec
+from codeverse3d.conventions import OBJECT_VIEWS_QUICK, to_pascal, to_snake
+from codeverse3d.judges.rubrics import is_degraded
+from codeverse3d.proc import fan_out, write_json_atomic, write_text_atomic
+from codeverse3d.prompts import render
+from codeverse3d.tracks.common import (
RunContext,
generate_for,
language_contract,
load_prompt_or,
single_shot_ctx,
)
-from codeverse.tracks.generation import GenerationTask, is_single_shot
-from codeverse.tracks.planner import plan as run_planner
-from codeverse.tracks.prompting import (
+from codeverse3d.tracks.generation import GenerationTask, is_single_shot
+from codeverse3d.tracks.planner import plan as run_planner
+from codeverse3d.tracks.prompting import (
base_prompt_context,
constraints_text,
current_files,
@@ -56,8 +56,8 @@ from codeverse.tracks.prompting import (
reference_images,
skeleton_files,
)
-from codeverse.tracks.repair import build_with_repair
-from codeverse.workspace import Workspace
+from codeverse3d.tracks.repair import build_with_repair
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
@@ -108,7 +108,7 @@ def is_model_outage(e: BaseException) -> bool:
whole storm budget waiting, so the escalation the harness would normally do —
a full agent session, ten times the money and ten minutes — hits the same wall.
"""
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
if isinstance(e, ModelError):
return bool(e.retryable) or e.status in (429, 500, 502, 503, 504, 529)
@@ -297,7 +297,7 @@ def _ladder(ctx: RunContext, asset: AssetPlan, rel: str, *, language: Language,
res = _generate_asset(sub, asset, rel, language=language, attempt=attempt, files=files,
feedback=feedback)
except Exception as e: # noqa: BLE001 — a bad answer escalates; a dead model does not
- from codeverse.orchestrator import BudgetExceeded
+ from codeverse3d.orchestrator import BudgetExceeded
if isinstance(e, BudgetExceeded):
raise
@@ -340,7 +340,7 @@ def _ladder(ctx: RunContext, asset: AssetPlan, rel: str, *, language: Language,
res2 = _generate_asset(sub, asset, rel, language=language, attempt=2, files=files,
feedback=repair_feedback(chk, rel))
except Exception as e: # noqa: BLE001 — same rule as the ladder's own single-shots
- from codeverse.orchestrator import BudgetExceeded
+ from codeverse3d.orchestrator import BudgetExceeded
if isinstance(e, BudgetExceeded):
raise
@@ -428,7 +428,7 @@ def build_blender_asset(ctx: RunContext, asset: AssetPlan, *, judge: bool) -> As
sub.plan = hero_plan(sub, asset)
sub_ws.write_json(sub_ws.plan_path, sub.plan) # the sub-run's plan.json IS this plan (tools, contract gate, build)
if not (sub_ws.root / HERO_ENTRY).is_file(): # a re-entry keeps the previous session's work
- from codeverse.languages.blender import write_blender_skeleton
+ from codeverse3d.languages.blender import write_blender_skeleton
# the object skeleton with the hero's ground tolerance: the scene seats every clone,
# and 20 mm is the sink rule its module twin gets (measured 2026-09-07: 2.9 mm and
@@ -501,7 +501,7 @@ def hero_plan(sub: RunContext, asset: AssetPlan) -> StaticPlan:
demands, per-part bboxes, ``style_notes`` and an acceptance list — what a static_object
run gets, from the code that gives it to them.
"""
- from codeverse.tracks.static_object import StaticObjectTrack
+ from codeverse3d.tracks.static_object import StaticObjectTrack
track = StaticObjectTrack(services=sub.services, settings=sub.settings)
try:
@@ -519,7 +519,7 @@ def hero_plan(sub: RunContext, asset: AssetPlan) -> StaticPlan:
plan = run_planner(spec2, spec2.backends.planner, StaticPlan, sub.ws, model=model, events=sub.events,
budget=sub.budget, runtime=sub.runtime, **track._plan_kwargs(spec2))
except Exception as e: # noqa: BLE001 — PlanningError / outage: the sheet still says what the prop is
- from codeverse.orchestrator import BudgetExceeded
+ from codeverse3d.orchestrator import BudgetExceeded
if isinstance(e, BudgetExceeded):
raise
@@ -636,7 +636,7 @@ def _judge_and_fix(ctx: RunContext, asset: AssetPlan, result: AssetResult, rende
the asset that ships, ``score_before`` the one that was fixed. The fix climbs the
same cheap rung as the generation: one chat call when the run has a chat model
(measured 2026-09-07: an agent fix session for a single-shot hero timed out at $0)."""
- from codeverse.judges.base import JudgeInput
+ from codeverse3d.judges.base import JudgeInput
events = ctx.events
try:
@@ -891,7 +891,7 @@ def check_threejs_asset(ctx: RunContext, rel: str, pascal: str, *, timeout_s: fl
if not path.is_file():
return AssetCheck(ok=False, ran=True, fatal=True, errors=[f"{rel} was not written"])
try:
- from codeverse.spatial.node import run_node
+ from codeverse3d.spatial.node import run_node
res = run_node(_checker_path(ctx), [path.resolve().as_uri(), f"build{pascal}"], cwd=ctx.ws.root,
three_hook=True, timeout_s=timeout_s, check=False)
diff --git a/harness/codeverse/tracks/skills_hook.py b/harness/codeverse3d/tracks/skills_hook.py
similarity index 90%
rename from harness/codeverse/tracks/skills_hook.py
rename to harness/codeverse3d/tracks/skills_hook.py
index 791a970c..d5be7851 100644
--- a/harness/codeverse/tracks/skills_hook.py
+++ b/harness/codeverse3d/tracks/skills_hook.py
@@ -1,10 +1,10 @@
"""Where the skill system meets a round: route before generating, measure after.
-Kept out of ``codeverse/skills`` so that package stays pure (no ``RunContext``, no
+Kept out of ``codeverse3d/skills`` so that package stays pure (no ``RunContext``, no
workspace conventions, no environment) and testable without a run. Kept out of
``steps.py`` so a round's control flow does not grow a second subject.
-Everything here is a no-op unless ``CV3D_SKILLS`` is on, and every function swallows its
+Everything here is a no-op unless ``C3D_SKILLS`` is on, and every function swallows its
own failures: a skill that cannot be routed, written or probed must cost that skill, not
the round. The switch is read at CALL time (see ``skills/config.py`` for why).
"""
@@ -19,9 +19,9 @@ from typing import Any
from pydantic import ValidationError
-from codeverse.contracts.artifacts import GateReport
-from codeverse.contracts.run import SkillsUsage
-from codeverse.tracks.common import RunContext
+from codeverse3d.contracts.artifacts import GateReport
+from codeverse3d.contracts.run import SkillsUsage
+from codeverse3d.tracks.common import RunContext
log = logging.getLogger(__name__)
@@ -59,7 +59,7 @@ def _previous_findings(ctx: RunContext, index: int) -> list[GateReport]:
def attach_for_round(ctx: RunContext, *, index: int, kind: str) -> Any | None:
"""Route + materialise this round's skills. Returns the ``SkillsMaterialized``."""
- from codeverse.skills import attach_skills, skills_enabled
+ from codeverse3d.skills import attach_skills, skills_enabled
# drop the previous round's set first: a failure below must not leave this round
# probing — and crediting — bundles it never attached
@@ -101,7 +101,7 @@ def with_inlined_skill(ctx: RunContext, tasks: Sequence[Any]) -> list[Any]:
got = ctx.extra.get(CTX_KEY)
if not got or not getattr(got, "inlined", ""):
return list(tasks)
- from codeverse.skills.prompting import inline_body
+ from codeverse3d.skills.prompting import inline_body
_, text = inline_body(got.selections)
if not text:
@@ -119,8 +119,8 @@ def repair_pointers(ctx: RunContext, lint: GateReport | None) -> str:
got = ctx.extra.get(CTX_KEY)
if not got or not getattr(got, "selections", None):
return ""
- from codeverse.skills.prompting import repair_pointers as _fmt
- from codeverse.skills.registry import finding_kinds
+ from codeverse3d.skills.prompting import repair_pointers as _fmt
+ from codeverse3d.skills.registry import finding_kinds
kinds = set(finding_kinds([lint])) if lint is not None else set()
answering = [s.name for s in got.selections if kinds & _matched(s, kinds)]
@@ -142,7 +142,7 @@ def _kinds_of(selection: Any) -> tuple[str, ...]:
Deliberately not just the rules that fired at attach time: the build/lint failure a
repair session is looking at was discovered afterwards, and the sheet that answers it
is already sitting in the workspace."""
- from codeverse.skills.registry import ROUTES
+ from codeverse3d.skills.registry import ROUTES
return tuple(k for r in ROUTES if r.skill == selection.name for k in r.findings)
@@ -153,7 +153,7 @@ def record_usage(ctx: RunContext, *, index: int, kind: str) -> SkillsUsage | Non
if not got:
return None
try:
- from codeverse.skills.telemetry import append_usage, probe_reads
+ from codeverse3d.skills.telemetry import append_usage, probe_reads
usage = probe_reads(ctx.ws.root, got)
append_usage(ctx.ws.root, usage, round=index, kind=kind, agent=ctx.agent_id,
diff --git a/harness/codeverse/tracks/static_object.py b/harness/codeverse3d/tracks/static_object.py
similarity index 97%
rename from harness/codeverse/tracks/static_object.py
rename to harness/codeverse3d/tracks/static_object.py
index 9b0a4784..5ae3c942 100644
--- a/harness/codeverse/tracks/static_object.py
+++ b/harness/codeverse3d/tracks/static_object.py
@@ -12,7 +12,7 @@ from collections.abc import Sequence
from pathlib import Path
from typing import Any
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.artifacts import (
BuildResult,
GateFinding,
GateReport,
@@ -21,10 +21,10 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.contracts.common import TRACK_INFO, Track
-from codeverse.contracts.plan import Plan, StaticPlan
-from codeverse.contracts.run import RoundRecord
-from codeverse.conventions import (
+from codeverse3d.contracts.common import TRACK_INFO, Track
+from codeverse3d.contracts.plan import Plan, StaticPlan
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.conventions import (
BBOX_TOLERANCE_M,
LANGUAGE_FRAME,
OBJECT_CLAY_VIEWS,
@@ -33,19 +33,19 @@ from codeverse.conventions import (
to_pascal,
to_snake,
)
-from codeverse.orchestrator import DETAIL_KIND, RefineTask, TaskGroup, compact_instructions
-from codeverse.prompts import render
-from codeverse.spatial.contract import planned_joins
-from codeverse.tracks.common import RunContext
-from codeverse.tracks.depth import (
+from codeverse3d.orchestrator import DETAIL_KIND, RefineTask, TaskGroup, compact_instructions
+from codeverse3d.prompts import render
+from codeverse3d.spatial.contract import planned_joins
+from codeverse3d.tracks.common import RunContext
+from codeverse3d.tracks.depth import (
PartScope,
budget_gate,
scope_groups,
scoped_generation_enabled,
)
-from codeverse.tracks.generation import GenerationTask
-from codeverse.tracks.lifecycle import BaseTrack
-from codeverse.tracks.prompting import (
+from codeverse3d.tracks.generation import GenerationTask
+from codeverse3d.tracks.lifecycle import BaseTrack
+from codeverse3d.tracks.prompting import (
base_prompt_context,
budget_for,
expected_files,
@@ -60,7 +60,7 @@ from codeverse.tracks.prompting import (
scope_context,
skeleton_files,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
diff --git a/harness/codeverse/tracks/steps.py b/harness/codeverse3d/tracks/steps.py
similarity index 97%
rename from harness/codeverse/tracks/steps.py
rename to harness/codeverse3d/tracks/steps.py
index 9fc2b76f..8d135a22 100644
--- a/harness/codeverse/tracks/steps.py
+++ b/harness/codeverse3d/tracks/steps.py
@@ -27,20 +27,26 @@ from datetime import UTC, datetime
from pathlib import Path
from typing import Protocol
-from codeverse.contracts.artifacts import BuildResult, GateReport, Judgment, Measurement, RenderSet
-from codeverse.contracts.common import Usage
-from codeverse.contracts.plan import AcceptanceItem, Plan
-from codeverse.contracts.run import RoundRecord
-from codeverse.judges.base import SLICE_TRACKS, JudgeInput
-from codeverse.judges.rubrics import is_degraded
-from codeverse.orchestrator import BudgetExceeded, usage_delta
-from codeverse.proc import fan_out
-from codeverse.spatial.render import RenderError
-from codeverse.tracks import skills_hook
-from codeverse.tracks.common import RunContext, generate_for
-from codeverse.tracks.generation import GenerationResult, GenerationTask
-from codeverse.tracks.repair import RepairOutcome, build_with_repair
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import (
+ BuildResult,
+ GateReport,
+ Judgment,
+ Measurement,
+ RenderSet,
+)
+from codeverse3d.contracts.common import Usage
+from codeverse3d.contracts.plan import AcceptanceItem, Plan
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.judges.base import SLICE_TRACKS, JudgeInput
+from codeverse3d.judges.rubrics import is_degraded
+from codeverse3d.orchestrator import BudgetExceeded, usage_delta
+from codeverse3d.proc import fan_out
+from codeverse3d.spatial.render import RenderError
+from codeverse3d.tracks import skills_hook
+from codeverse3d.tracks.common import RunContext, generate_for
+from codeverse3d.tracks.generation import GenerationResult, GenerationTask
+from codeverse3d.tracks.repair import RepairOutcome, build_with_repair
+from codeverse3d.workspace import Workspace
log = logging.getLogger(__name__)
diff --git a/harness/codeverse/tracks/zone_layout.py b/harness/codeverse3d/tracks/zone_layout.py
similarity index 96%
rename from harness/codeverse/tracks/zone_layout.py
rename to harness/codeverse3d/tracks/zone_layout.py
index 74a77841..9cef1d39 100644
--- a/harness/codeverse/tracks/zone_layout.py
+++ b/harness/codeverse3d/tracks/zone_layout.py
@@ -19,14 +19,14 @@ import logging
import math
from typing import Any
-from codeverse.contracts.chat import ChatMessage, ChatRequest
-from codeverse.contracts.plan import ScenePlan, ZoneLayout, ZonePlan
-from codeverse.conventions import to_snake
-from codeverse.models.schema_utils import parse_json_lenient
-from codeverse.orchestrator import BudgetExceeded
-from codeverse.proc import fan_out
-from codeverse.prompts import render
-from codeverse.tracks.generation import _deadline_preflight
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest
+from codeverse3d.contracts.plan import ScenePlan, ZoneLayout, ZonePlan
+from codeverse3d.conventions import to_snake
+from codeverse3d.models.schema_utils import parse_json_lenient
+from codeverse3d.orchestrator import BudgetExceeded
+from codeverse3d.proc import fan_out
+from codeverse3d.prompts import render
+from codeverse3d.tracks.generation import _deadline_preflight
log = logging.getLogger(__name__)
diff --git a/harness/codeverse/workspace.py b/harness/codeverse3d/workspace.py
similarity index 99%
rename from harness/codeverse/workspace.py
rename to harness/codeverse3d/workspace.py
index 3b3cdd43..f5b9b531 100644
--- a/harness/codeverse/workspace.py
+++ b/harness/codeverse3d/workspace.py
@@ -21,8 +21,8 @@ from typing import Any
from pydantic import BaseModel
-from codeverse.contracts.agent import FileChange
-from codeverse.proc import write_json_atomic
+from codeverse3d.contracts.agent import FileChange
+from codeverse3d.proc import write_json_atomic
#: the three top-level buckets of a run directory (docs/RUN_LAYOUT.md)
DELIVERABLE_DIR = "deliverable" # (a) what the user asked for
@@ -80,7 +80,7 @@ def _git_home() -> str:
"""HOME for workspace git: harness-owned, never the workspace (whose agent-written
``.gitconfig`` git reads as its GLOBAL config). The cache_dir DEFAULT, spelled out:
workspace.py may not import config (tests/install/test_import_direction)."""
- d = Path.home() / ".cache" / "codeverse" / "githome"
+ d = Path.home() / ".cache" / "codeverse3d" / "githome"
with contextlib.suppress(OSError): # a missing HOME is harmless; an unwritable one must not sink git
d.mkdir(parents=True, exist_ok=True)
return str(d)
@@ -100,7 +100,7 @@ class WorkspaceGitError(subprocess.CalledProcessError):
Subclasses CalledProcessError so existing ``except subprocess.CalledProcessError``
handlers keep working. The reason it exists: CalledProcessError.__str__ drops
- stderr, and codeverse/cli/main.py reports failures as
+ stderr, and codeverse3d/cli/main.py reports failures as
"run failed: {type(e).__name__}: {e}" — so a stale ``.git/index.lock`` surfaced as
the bare line "Command '['git', 'add', '-A']' returned non-zero exit status 128"
while git's own "fatal: Unable to create ... index.lock: File exists" sat unread in
@@ -294,7 +294,7 @@ class Workspace:
# ----------------------------------------------------------------- json io
def write_json(self, path: Path, model: BaseModel | dict[str, Any]) -> None:
- """Atomic JSON write (tmp + rename, via :func:`codeverse.proc.write_json_atomic`)."""
+ """Atomic JSON write (tmp + rename, via :func:`codeverse3d.proc.write_json_atomic`)."""
data = model.model_dump(mode="json") if isinstance(model, BaseModel) else model
write_json_atomic(path, data)
diff --git a/harness/docs/ARCHITECTURE.md b/harness/docs/ARCHITECTURE.md
index 07cabeb7..2bea1868 100644
--- a/harness/docs/ARCHITECTURE.md
+++ b/harness/docs/ARCHITECTURE.md
@@ -1,6 +1,6 @@
# 3dcodeverse harness — architecture
-Package `codeverse`, CLI `3dcodeverse` (short alias `3dcode`), repo location
+Package `codeverse3d`, CLI `3dcodeverse` (short alias `3dcode`), repo location
`/home/yipeng/3dcodeverse/harness`. Backend only. Python 3.13 (one fixed version), a small Node
runtime (`runtime_js/`) for everything Three.js / headless Chrome, and moderngl
for the graphics track. Reconciled against the code and the live runs on
@@ -67,10 +67,10 @@ the flywheel unit.
## 2. Package map (as built)
```
-codeverse/
+codeverse3d/
conventions.py frames (LANGUAGE_FRAME, GLB_FRAME), units, OBJECT_VIEWS/_QUICK/_CLAY_VIEWS, SCENE_VIEWS,
to_snake/to_pascal/slugify, MAX_TRIS_*, BBOX_TOLERANCE_M, CONTACT_GAP_M (THE source)
- config.py Settings (CV3D_* env, ~/.config/codeverse/config.yaml; role defaults come from
+ config.py Settings (C3D_* env, ~/.config/3dcodeverse/config.yaml; role defaults come from
contracts Backends; Settings.backends(**overrides) builds a Spec's Backends;
default_candidates=1)
contracts/ pydantic: common (Track, Language, Usage, Budget, Backends, TRACK_INFO registry,
@@ -93,7 +93,7 @@ codeverse/
run dir: an fcntl.flock at <runs>/.locks/<slug>.lock whose record NAMES the
holder, printed by `3dcode status`) and the bounded parallel fan-out
(fan_out); sha256_file and version_line live here too — still a leaf:
- imports nothing from codeverse
+ imports nothing from codeverse3d
models/ ChatModel (base.py), parts.py; gemini.py (the whole Gemini stack:
request/response shapes, dead-key + free 429 rotation, the image model);
anthropic.py openai.py (each with its own request/response shapes);
@@ -124,7 +124,7 @@ codeverse/
base colour — changed-pixel fraction per camera and per material,
runtime_js/lib/host_ablation.mjs + ablate_scene.mjs; rebuilt 2026-09-01 as an
instrument after the 08-28 cleanup deleted the unused counterfactual path.
- The scene build folds the field into its census only under CV3D_ABLATION=1 —
+ The scene build folds the field into its census only under C3D_ABLATION=1 —
a second browser boot, so opt-in; the tool always writes it to census.json),
gl_render.py (GlHost), frame_stats.py (gl_frames),
sheet.py (montage_2x2, crop_region), measure.py, connectivity.py,
@@ -132,8 +132,8 @@ codeverse/
complexity.py (objective complexity vector -> Measurement.extra, eval/docs/COMPLEXITY.md),
joints*.py + joints_collide.py (deterministic penetration), registry.py,
tools.py (every @tool registration since 2026-08-28, the joint_sweep body included;
- spatial siblings are plain imports — lazy() guards only codeverse.languages /
- codeverse.texturing and tool_common's node renderer), mcp_server.py (MCP name: 3dcode).
+ spatial siblings are plain imports — lazy() guards only codeverse3d.languages /
+ codeverse3d.texturing and tool_common's node renderer), mcp_server.py (MCP name: 3dcode).
Render modes are contracts.artifacts.RENDER_MODES (shaded wire normals silhouette
clay — no 'depth'); build error_type spellings are languages/_common.MISSING_ENTRY
("MissingEntryFile") and BUILD_TIMEOUT ("BuildTimeout") for every runtime
@@ -184,15 +184,15 @@ codeverse/
graphics.py (the whole graphics track: planner hooks, prompt context, frame
RenderSet, and recipe seeding into the harness-owned, read-only
src/recipes.glsl — measured: flash calls a recipe on disk, not one it is
- shown; AgentJob.read_only, CV3D_SEED_RECIPES),
+ shown; AgentJob.read_only, C3D_SEED_RECIPES),
planner.py (the ONE planner loop + the cached EngineeringBrief
- (CV3D_PLAN_BRIEF), plan budgets and the worked examples),
- plan_features.py (CV3D_PLAN_FEATURES: one switch per plan-loop change, so each
+ (C3D_PLAN_BRIEF), plan budgets and the worked examples),
+ plan_features.py (C3D_PLAN_FEATURES: one switch per plan-loop change, so each
can be A/B'd alone, + pin_plan_blockers() deciding when two arms may share
one plan — eval/docs/EVAL.md §8.1),
depth.py,
- skills_hook.py (the round's view of codeverse/skills: attach before generating,
- probe reads after — a no-op unless CV3D_SKILLS is on)
+ skills_hook.py (the round's view of codeverse3d/skills: attach before generating,
+ probe reads after — a no-op unless C3D_SKILLS is on)
record/ what every run WRITES: record.py (finalize_record, load_record, iter_runs,
best_round_record), deliverable.py, telemetry.py, _git.py (files at a round's commit)
addons/ optional tools that READ finished runs; outside cli/ nothing imports them
@@ -218,7 +218,7 @@ codeverse/
— including the ONE language-id → prompts/<dir> mapping, which used to be
copied four times and missing in a fifth. sections.py splits that
markdown into chapters so a STAGE can name the recipes it needs.
- The other half of the split: codeverse/skills/ is what an AGENT chooses
+ The other half of the split: codeverse3d/skills/ is what an AGENT chooses
to read (SKILL.md + references/ + a _claims file pinning its numbers to
live constants). A file that tries to be both is the bug this prevents.
cli/ main.py (app wiring, make/resume/mcp + the tools/bench/gallery
@@ -226,7 +226,7 @@ codeverse/
flywheel_cmd.py, texture_cmd.py, cost_cmd.py (`3dcode cost`), layout_cmd.py, doctor.py
(`--skills` checks the library + its discovery wiring),
skills_cmd.py (`3dcode skills list|show|validate|report` — the read-rate report)
-eval/bench/ run_bench.py, report.py (renders through codeverse/addons/gallery), compare_backends.py
+eval/bench/ run_bench.py, report.py (renders through codeverse3d/addons/gallery), compare_backends.py
(preflights every model it needs; --wait-for-provider / --no-preflight),
_infra.py (outage vs model failure: infra_failed / budget_exhausted, eval/docs/EVAL.md §7),
pin_plan.py (seed one plan into both arms so the paired delta stops carrying
@@ -251,7 +251,7 @@ runtime_js/ export_glb.mjs (placement policy, instance baking, selfche
mask, not a luminance bright-pass: on our renderer the sky dome at 1.88
linear outshines every authored emissive, so a threshold cannot separate
them) + a colour grade that is the identity unless the scene sets
- `scene.userData.grade`. ON for scene renders, `CV3D_POST=0` / `--no-post`
+ `scene.userData.grade`. ON for scene renders, `C3D_POST=0` / `--no-post`
to disable; object renders never come through this driver.
tests/ agents bench_prompts blender_cadquery compare_bench core cost flywheel_cli gallery graphics
install judges languages models orchestrator_tracks prompts reference scene_gates
@@ -290,7 +290,7 @@ runs/<slug>/
## 4. Per-language authoring contracts (raw code; the harness owns export)
-Authoritative text lives in `codeverse/prompts/<lang>/contract.md` (+ cookbook);
+Authoritative text lives in `codeverse3d/prompts/<lang>/contract.md` (+ cookbook);
summary:
* **blender** (multi-file): `src/model.py` entry + `src/parts/<snake>.py` each
@@ -428,7 +428,7 @@ round 0 "baseline": generate → build_with_repair → measure → gates → ren
(object tracks, ≥ 8 plan parts, a language with one file per part, an agent backend: the baseline FANS OUT
per part — phase 0 = one scoped session per attachment subtree (its parts + the planned boxes of the
neighbours it must weld to + the shared detail budget, its own files only), phase 1 = ONE "assemble"
- session that owns the entry file, placement and the connectivity/contract gates. $CV3D_SCOPED_PARTS=off
+ session that owns the entry file, placement and the connectivity/contract gates. $C3D_SCOPED_PARTS=off
restores the single whole-object session; single-shot always uses it.)
(--candidates N: N parallel baselines in <ws>/_cand/c<k>, quick 4-view judge, crashed candidate retried once,
selection build_ok → quick score → fewer gate errors with pairwise tie-break; winner copied back, normal r00 follows)
@@ -443,7 +443,7 @@ repeat while StopPolicy says continue (≤ max_rounds refine rounds, plateau_win
fan out when ≥ 2 file-disjoint groups AND every task maps to files (threejs/blender parts, scene zones/assets/env)
generate (no HARNESS turn cap by default — claude-code runs under AgentJob.max_turns=60 (+6-turn wrap-up),
the other vendor CLIs have no turn cap at all; 28 was A/B'd and rejected, +$0.02/−0.21 score, docs/COST.md §17;
- a cap a caller sets (CV3D_AGENT_MAX_TURNS / task; no profile sets one) still buys a wrap-up session
+ a cap a caller sets (C3D_AGENT_MAX_TURNS / task; no profile sets one) still buys a wrap-up session
that lands a final build + summary instead of being killed) → build+repair (error-focused,
escalates on identical signatures) → gates → … → judge (SKIPPED only where the verdict is never
bought at all: no judge/renders or budget already exceeded)
@@ -456,7 +456,7 @@ repeat while StopPolicy says continue (≤ max_rounds refine rounds, plateau_win
panel lines, fasteners, wear, material variation — with the silhouette, placement and part list frozen and
a deterministic `detail_drift` gate that ERRORs if any part box moved > 5 mm. Measured on 88 refine-round
pairs: the part count never changed once and mean Δgeometry_detail was +0.003, so detail needed its own
- round; the rounds that added geometry DURING repair lost 0.075 assembly_fit. $CV3D_DETAIL_ROUNDS=0 is off.
+ round; the rounds that added geometry DURING repair lost 0.075 assembly_fit. $C3D_DETAIL_ROUNDS=0 is off.
stop reasons: pass | plateau | budget | max_rounds | no_change | no_refine_tasks | regression | diminishing_returns
finalise: restore best commit, rebuild so artifacts match delivered code, finalize_record → record.json
```
@@ -563,7 +563,7 @@ trainer's format. `flywheel caption` adds
side-car mode); the gallery is `3dcode gallery build --embed`
(the flywheel package has no renderer of its own).
-`codeverse/addons/gallery/` is the **local** answer to the same question: `3dcode gallery
+`codeverse3d/addons/gallery/` is the **local** answer to the same question: `3dcode gallery
serve` indexes `runs/` + every `eval/bench/out/*/runs`, serves the page **and the run
directories** on 127.0.0.1 (so every link opens: sheet, renders, `src/`, `object.glb`
in an orbit viewer built on the vendored three.js, `record.json`), and re-reads a
diff --git a/harness/docs/COST.md b/harness/docs/COST.md
index 81ed3bab..2bd6ea5a 100644
--- a/harness/docs/COST.md
+++ b/harness/docs/COST.md
@@ -15,8 +15,8 @@ Reproduce:
3dcode cost prices [--unverified] # the price table + provenance
```
-The audit is `codeverse/addons/costreport/audit.py`; it reconstructs a per-call ledger from
-old runs (`codeverse/cost/reconstruct.py`), so it works on every run recorded so
+The audit is `codeverse3d/addons/costreport/audit.py`; it reconstructs a per-call ledger from
+old runs (`codeverse3d/cost/reconstruct.py`), so it works on every run recorded so
far — no re-instrumentation needed. `eval/bench/out/compare_v1_full` (a partial,
superseded compare battery) is excluded.
@@ -340,7 +340,7 @@ matter how many samples you buy. Pro is the cheap option for anything that
persists. Concretely, the 112 verdicts in this data set cost $6.48 with the pro
judge and would cost $24.2 as "cheap" flash at n=8.
-`codeverse/cost/routing.py` holds this table in code
+`codeverse3d/cost/routing.py` holds this table in code
(`ROUTES`, `pro_break_even()`, `samples_for_precision()`).
## 9. Ranked optimisation opportunities
@@ -350,9 +350,9 @@ Savings are estimated **on this data set** (61 runs, $86.30) unless stated.
| # | change | est. saving | confidence | where |
|---|---|---|---|---|
| 1 | **Stop refining after r01 unless the last delta ≥ 0.05.** r02+r03 cost $12.16 and bought +1.44 score points across 8 of 20 rounds. | **$9–12 (10–13%)** | high (measured) | `RoundPolicy` (min_delta 0.02 → 0.05 from r02, or plateau_window 1 after r01) |
-| 2 | **Check the budget *before* starting a round, against the estimated round cost**, not only between steps. | **$8.76 (9.7%)** | high (measured waste) | `orchestrator.py` (`BudgetGuard`) + `tracks/steps.py`; use `codeverse.cost.estimate_call` / median round cost |
+| 2 | **Check the budget *before* starting a round, against the estimated round cost**, not only between steps. | **$8.76 (9.7%)** | high (measured waste) | `orchestrator.py` (`BudgetGuard`) + `tracks/steps.py`; use `codeverse3d.cost.estimate_call` / median round cost |
| 3 | ~~**Cap agent turns at ~25 and compact old tool results.** 39.3% of the agent bill is turn ≥20; 19 of the 33 sessions that ran ≥50 turns were cut off by their own budget.~~ **Tested, rejected: +$0.02 and −0.21 score** (A/B, n=3 per arm, §17) — the cap is off by default. | est. $8–15, **measured $0** | high (A/B) | `RoundPolicy.agent_max_turns=0`; still settable per caller |
-| 4 | **Fold the off-record spend into the budget** (cut rounds, post-hoc texture passes). | $0 saved, **$1.22 of blindness removed** | high | §6; the ledger (`codeverse.cost.record_call`) makes it automatic |
+| 4 | **Fold the off-record spend into the budget** (cut rounds, post-hoc texture passes). | $0 saved, **$1.22 of blindness removed** | high | §6; the ledger (`codeverse3d.cost.record_call`) makes it automatic |
| 5 | **Scene track: 73% of scene spend is assets+zones, 0/5 passed.** Trim the per-zone context (each zone session re-sends the whole scene contract) and judge assets before zones start. | ~$1/run of $2.83 | medium | `tracks/scene*.py` |
| 6 | **Drop `oneshot:claude-code` from default compare arms** ($1.04/artifact at 0.673 — the worst score per dollar measured). | bench-only | high | `eval/bench/compare_backends.py` arms |
| 7 | **Gate the texture pass on the materials criterion** (< 0.7) — 5 passes ran, 2 shipped, $1.10 spent. | ~$0.5 | medium | `texturing/run.py` |
@@ -366,10 +366,10 @@ Not recommended on the evidence: cheaper generation models (a bare one-shot
flash scored 0.14 and produced no buildable code in 3 of 5 cells — the loop, not
the model, is what makes the artifact), and cheaper judges (§8).
-## 10. The cost ledger (`codeverse/cost/`)
+## 10. The cost ledger (`codeverse3d/cost/`)
```python
-from codeverse.cost import record_call, load_ledger, summarise
+from codeverse3d.cost import record_call, load_ledger, summarise
with run_ledger(ws.root): # <run>/telemetry/cost.jsonl (cost_ledger.jsonl = symlink alias)
record_call(res.usage, run=ws.slug, round=idx, stage="refine", role="generator",
@@ -386,7 +386,7 @@ prices actually used, price_source + price_approximate + price_checked
source`. Writing never raises and never blocks a run; unknown models are
recorded at $0 **and flagged**, never silently dropped.
-Until the call sites are wired, `codeverse.cost.reconstruct` rebuilds the same
+Until the call sites are wired, `codeverse3d.cost.reconstruct` rebuilds the same
rows from `record.json` + `events.jsonl` + `trajectories/**` — that is what this
audit runs on, and it reconciles to `record.total_usage` on every run (or says
why it does not, §6).
@@ -425,7 +425,7 @@ out not to pay.
## 12. The live ledger
-`codeverse.cost.instrument` meters the two places money is actually spent:
+`codeverse3d.cost.instrument` meters the two places money is actually spent:
* **`MeteredChatModel`** wraps everything `models.get_chat_model` hands out, so one
`CallCost` row is appended per `ChatModel.generate` — planner, judges,
@@ -487,14 +487,14 @@ bucket), with `<run>/cost_ledger.jsonl` left as a relative symlink so
`flywheel.telemetry.live_ledger_path` and the `telemetry/usage.jsonl` alias keep
working — one physical copy. A call made with no run context (a `3dcode judge`
outside a run, a bench script, a notebook) goes to a per-process log under
-`<cache_dir>/cost/`; `CV3D_COST_LEDGER=off` disables writing entirely.
+`<cache_dir>/cost/`; `C3D_COST_LEDGER=off` disables writing entirely.
**No double counting.** `BudgetGuard` only buckets and enforces; `MeteredAgent` /
`MeteredChatModel` are the one writer of `telemetry/cost.jsonl`, and `BaseTrack.run`
opens the run ledger itself. The guard's own aggregate writer and its
`per_call_metering()` sentinel were deleted 2026-08-29: every production entry point
(`3dcode make`, the bench drivers) opened `run_ledger` first, so it never wrote there —
-and with `CV3D_COST_LEDGER=off` it wrote anyway, which is now really off.
+and with `C3D_COST_LEDGER=off` it wrote anyway, which is now really off.
**Reading it.** `cost.reconstruct.reconstruct_run` prefers a live ledger and
falls back to rebuilding from trajectories / verdicts / events, so
@@ -607,7 +607,7 @@ verdict vs $0.172 baseline** (n=3, 3.1-pro, 14 conn-dirty rows) — the two extr
small PNGs are outweighed by shorter narration — and a clean round's payload is
byte-identical, so at production dirty ratios the channel amortises to **≤ $0**.
The slice render itself is local CPU (shapely + matplotlib, a few seconds). No
-profile carries a dial for it; `CV3D_JUDGE__SLICES=off` is the kill switch.
+profile carries a dial for it; `C3D_JUDGE__SLICES=off` is the kill switch.
### The crop-count experiment — INCONCLUSIVE, not adopted
@@ -633,7 +633,7 @@ restored. Buying a fifth of a cent per verdict is not worth a payload change we
cannot show is harmless, and at n=1 per arm the experiment cannot show it: it
needs ~n=8 per arm to resolve 0.048 against σ=0.030, which costs more than the
change saves on the 112 verdicts in this data set. A caller that wants a smaller
-payload can still say so (`VlmJudge(detail_crops=…)` / `CV3D_JUDGE__DETAIL_CROPS`);
+payload can still say so (`VlmJudge(detail_crops=…)` / `C3D_JUDGE__DETAIL_CROPS`);
no profile says it for them.
Both halves of §14 confirm §8's conclusion: on judging, the lever is *how many
@@ -643,16 +643,16 @@ verdicts*, not how big each one is.
`Settings.profile` + `3dcode make --profile economy|balanced|quality` set model per
role, judge samples, refine rounds, best-of-N width, the texture pass and the
-budget ceilings together (`codeverse/cost/profiles.py`).
+budget ceilings together (`codeverse3d/cost/profiles.py`).
-**One resolver, both entry points.** `codeverse.cli._common.resolve_dial` is the
+**One resolver, both entry points.** `codeverse3d.cli._common.resolve_dial` is the
only place the dial is read, and it returns a `ResolvedDial` with every field.
`--profile X` *forces* the dial over a value the user stated in `config.yaml` /
-`CV3D_*`; `CV3D_PROFILE=X` (or `profile:` in the config file) sets the same dial
+`C3D_*`; `C3D_PROFILE=X` (or `profile:` in the config file) sets the same dial
as a *default*, so a value you stated yourself survives it. With nothing else
stated the two paths resolve **identically** — which they did not before: the CLI
read `candidates` and `texture` off the *flag* rather than off the resolved
-profile, so `CV3D_PROFILE=quality` silently ran best-of-1 with no texture pass.
+profile, so `C3D_PROFILE=quality` silently ran best-of-1 with no texture pass.
`tests/cost/test_profiles.py` asserts every field of the dial from both entry
points, per profile. An explicit CLI flag still beats both, and
`Spec.options.profile` now records the resolved name **whichever way it was
@@ -684,7 +684,7 @@ levers measured to raise a score, so they belong to quality.
(§17: a 28-turn cap cost $0.02 more and 0.205 of a score point over 3 runs per
arm), so there is no default cap anywhere now: `Profile.max_turns` is 0 in all
three profiles and `tracks.generation.DEFAULT_AGENT_MAX_TURNS` is 0.
- `Settings.limits.agent_max_turns` / `CV3D_AGENT_MAX_TURNS` remain the knob for a
+ `Settings.limits.agent_max_turns` / `C3D_AGENT_MAX_TURNS` remain the knob for a
run or a machine that wants one by name.
* **economy's 1 detail crop.** §14: two independent draws of the crop experiment
disagreed by 1.6× the judge's σ over a $0.0024/verdict saving. Every profile
@@ -696,7 +696,7 @@ to answer "does this run texture?" independently — `Spec.options.texture`, a
tool is registered for every object track, so the coding agent could buy a pass in
any run. That is why the quality run below shows a ledger 9.5 % above its record:
the pass ran twice, once from inside a round-2 agent session.
-`codeverse.texturing.run.texture_requested(spec)` is now the single owner;
+`codeverse3d.texturing.run.texture_requested(spec)` is now the single owner;
`tracks.lifecycle.finalise` and the tool both ask it, and the tool refuses with a
usage error (costing $0) in a run whose spec says no. `3dcode texture pass <slug>`
is an explicit user instruction and is unaffected.
@@ -787,12 +787,12 @@ round pays for again, and the wrap-up session it buys is not free either.
So there is no default cap: `RoundPolicy.agent_max_turns = 0` and
`tracks.generation.DEFAULT_AGENT_MAX_TURNS = 0` leave `AgentJob.max_turns` at the
backend's own default. The plumbing stays for callers who choose one —
-`GenerationTask.max_turns` > `generate(max_turns=…)` > `$CV3D_AGENT_MAX_TURNS` >
+`GenerationTask.max_turns` > `generate(max_turns=…)` > `$C3D_AGENT_MAX_TURNS` >
`Settings.limits.agent_max_turns` — and a cap that IS set still lands gracefully
(wrap-up session, `generate.turn_cap` event). **Nothing sets one by default any
more**: the profiles independently dropped their own caps in the same wave
(`cost/profiles.py`, all three at `max_turns=0`), so a cap now only exists when a
-run, a bench arm or `$CV3D_AGENT_MAX_TURNS` asks for it by name.
+run, a bench arm or `$C3D_AGENT_MAX_TURNS` asks for it by name.
### `skip_judge_reason` — two of four branches removed
@@ -888,7 +888,7 @@ quota would allow 1 000 per key. So the meaningful limiter is a *token* rate:
`Settings.rate.tpm_per_key` (default 1 000 000) via `shared_pool`, whose registry key
now includes the quota so two different quotas cannot silently share one set of buckets.
* `acquire(tokens_hint=…)` **reserves** the estimated prompt tokens of the pending call.
- The estimate is `codeverse.models.retry.request_tokens`, a thin wrapper over
+ The estimate is `codeverse3d.models.retry.request_tokens`, a thin wrapper over
`cost.guard.estimate_call` that walks the whole request (system prompt, tool schemas,
response schema, tool results, a flat 1 290 per image).
* `report(key, outcome, tokens=actual, reserved=hint)` **reconciles**: the bucket is
@@ -968,7 +968,7 @@ storm independently spends a full failed round-trip to learn what its siblings a
know, then sleeps on its own private backoff schedule. That is the 2 833 waits / 17.7 h
in §18.
-`codeverse/models/retry.py` adds a process-wide `StormGate` per model (`retry.py:449`):
+`codeverse3d/models/retry.py` adds a process-wide `StormGate` per model (`retry.py:449`):
* the first worker to see a 503 calls `hit()`, which closes the gate for a short,
escalating window (never longer than `MAX_WAIT_S` — patience comes from the *number*
@@ -1010,7 +1010,7 @@ time. A single sustained outage is the case the gate was designed for and is no
covered by this measurement — that is why the mechanism is kept rather than deleted.
So `Settings.rate.storm_gate` defaults to **False**. The mechanism, its counters and
the probe flag are kept so the experiment is reproducible
-(`CV3D_RATE__STORM_GATE=1`, or `eval/bench/concurrency_probe.py --storm-gate`) — the same
+(`C3D_RATE__STORM_GATE=1`, or `eval/bench/concurrency_probe.py --storm-gate`) — the same
treatment §13 gave cache-friendly prompt ordering.
**Caveat on the knee under a storm.** §20's knee optimises *throughput* — total calls
@@ -1074,10 +1074,10 @@ plumbing through several layers and deserves its own measured change.
> idle box — zero `3dcode` processes running, the naive gate returned **3**, and even the
> bracket trick `pgrep -f '[b]in/3dcode make'` returned **2**, because the wrapper shell's
> argv also carries the string. Used in `while [ $(gate) -ge 3 ]; do sleep 60; done` that
-> blocks forever on nothing. `codeverse.models.health.sibling_processes()` reads `/proc`
+> blocks forever on nothing. `codeverse3d.models.health.sibling_processes()` reads `/proc`
> and excludes its own pid; `pool_budget()` wraps it with the in-flight arithmetic:
> ```
-> python3 -c "from codeverse.models.health import pool_budget; print(pool_budget())"
+> python3 -c "from codeverse3d.models.health import pool_budget; print(pool_budget())"
> ```
§20 measured the concurrency knee at 64 in-flight and shipped it as the default. That
@@ -1085,7 +1085,7 @@ number was measured with **one process and nothing else running**, and the limit
configures is per-process by construction:
```python
-_pools: dict[tuple[str, ...], KeyPool] = {} # codeverse/models/gemini.py — MODULE level
+_pools: dict[tuple[str, ...], KeyPool] = {} # codeverse3d/models/gemini.py — MODULE level
def shared_pool(...): """One KeyPool per distinct (key list, quota) so limiters are process-wide."""
```
@@ -1126,9 +1126,9 @@ Three consequences:
3. **Operational rule until a cross-process limiter exists**: keep the SUM of
`max_in_flight` across every harness process on the machine at or below the measured
knee (64). One battery at 64, or N batteries at `64 / N` each via
- `CV3D_MAX_IN_FLIGHT=<n>` (`CV3D_RATE__MAX_IN_FLIGHT` is the same knob; the flat name was
+ `C3D_MAX_IN_FLIGHT=<n>` (`C3D_RATE__MAX_IN_FLIGHT` is the same knob; the flat name was
read by nothing until 2026-08-24 — three launches that "set" it ran at 64).
- `codeverse.models.health.pool_budget()` reads every sibling's cap from `/proc/<pid>/environ`
+ `codeverse3d.models.health.pool_budget()` reads every sibling's cap from `/proc/<pid>/environ`
and reports used / headroom; `3dcode doctor`'s `pool sharing` row prints it, and
`eval/bench/ab_plan.py` refuses to start only when its own need does not FIT the headroom.
The first version of this rule counted *processes* and made every agent wait for an
@@ -1147,7 +1147,7 @@ Three consequences:
it. Whenever an entry point is added or renamed, update both lists.
The real fix is a machine-wide limiter — a file-locked token bucket under
-`~/.cache/codeverse/` that every process shares — so the quota is enforced where it
+`~/.cache/codeverse3d/` that every process shares — so the quota is enforced where it
actually lives. Not built here: it needs crash/staleness handling and its own A/B, and
it should be measured against the operational rule above rather than assumed better.
@@ -1276,7 +1276,7 @@ since 2026-08-29 takes the same `max_total_s = ChatRequest.max_wait_s` (clipped
*The retry of a 503 is hedged across keys* (`rotate_with_retries(hedge=2)`; `Settings.rate.hedge`,
-`CV3D_RATE__HEDGE=1` for the A/B). Logged sleep was only 645 s per cell median — **13 % of the
+`C3D_RATE__HEDGE=1` for the A/B). Logged sleep was only 645 s per cell median — **13 % of the
wait**; `(wait − sleep) / storm lines` = **21.5 s per failed attempt** (p90 28.5, ~50 s late in a
storm): the cost of a 503 is the round-trip the provider holds before rejecting, not the ≤ 5 s
backoff. Storm streaks average **4.7 attempts** (1 101 episodes / 5 143 lines). From a call's
@@ -1338,11 +1338,11 @@ pages leaked by SIGKILLed clients — every render timeout leaks one), and then
`runtime_js/`: (1) `gpu_launch.cjs` connect canary — one bounded `pages()` (6 s) per connect; an
unresponsive or overgrown (>12 pages) browser is poisoned and a fresh daemon spawned (~1 s once,
measured: leak 14 pages → next render 3.5 s, then 0.7 s steady); (2) `browser_daemon.cjs` reaps
-pages older than `CV3D_PAGE_TTL_MS` (default 8 min > every harness ceiling); (3) cleanup steps in
+pages older than `C3D_PAGE_TTL_MS` (default 8 min > every harness ceiling); (3) cleanup steps in
`render_glb.mjs` / `host_page.mjs` are time-bounded (≤3 s each) — the record is on disk before
cleanup runs. Step-level stderr breadcrumbs (`[render_glb] <step> +ms`) stay in for the next audit.
-## 29. Fewer turns — first turn read out (`CV3D_FEWER_TURNS`, `turns_v1`, 2026-08-26)
+## 29. Fewer turns — first turn read out (`C3D_FEWER_TURNS`, `turns_v1`, 2026-08-26)
Six blender prompts, plan-pinned pairs, flash, 3 rounds, storm afternoon; variant = `build` folds
connectivity + contract in, `write_file` returns a lint verdict, refine inlines ≤ 3 files, the
diff --git a/harness/docs/INSTALL.md b/harness/docs/INSTALL.md
index 41644ce9..6cac42f7 100644
--- a/harness/docs/INSTALL.md
+++ b/harness/docs/INSTALL.md
@@ -62,7 +62,7 @@ workflow, so the offline suite and `ruff` are run locally before every push (see
| component | version | how it is enforced | notes |
|---|---|---|---|
| **python** | **3.13** | `requires-python = ">=3.13"`; ruff `target-version = "py313"`; `PY_FLOOR` in `tests/core/test_portability.py`; `MIN_PY_MINOR` in `setup.sh` | the four places are pinned together by the portability test |
-| **node** | **20.6.0+** (developed on 24 LTS) | `runtime_js/package.json` `engines.node`; `codeverse.spatial.node.NODE_MIN` fails every node workload with an actionable message | 20.6 is the `--import` module-hook floor |
+| **node** | **20.6.0+** (developed on 24 LTS) | `runtime_js/package.json` `engines.node`; `codeverse3d.spatial.node.NODE_MIN` fails every node workload with an actionable message | 20.6 is the `--import` module-hook floor |
| **Blender** | 4.2+ (developed on 5.0.1) | runtime probe only (`Settings.resolve_blender()`) | `blender` / `urdf_blender` are the only users |
| **OS** | Linux x86_64 (WSL2 Ubuntu here) | — | macOS should work (nothing is Linux-specific except `resource.setrlimit` guards) but is not tested |
@@ -85,7 +85,7 @@ Moving to another Python later is the same four-line change (`requires-python`,
| C toolchain | usually no | — | only if pip has to build a wheel from source (`python-fcl`, `manifold3d` ship wheels for cp310–cp313 x86_64) |
Disk: ~100 MB for `runtime_js/node_modules`, ~640 MB for puppeteer's Chrome,
-~1 GB for a Blender tarball, plus whatever `runs/` and `~/.cache/codeverse` grow
+~1 GB for a Blender tarball, plus whatever `runs/` and `~/.cache/codeverse3d` grow
to (619 MB here after a week of benches).
---
@@ -98,7 +98,7 @@ cd 3dcodeverse
```
Layout: the harness is the `harness/` subdirectory (python dist `3dcodeverse`,
-import package `codeverse`, CLIs `3dcodeverse` and `3dcode`). See the repo
+import package `codeverse3d`, CLIs `3dcodeverse` and `3dcode`). See the repo
`README.md` for the other top-level components.
Use a virtualenv (or a conda env — this box installs into a conda base env). It is
@@ -108,7 +108,7 @@ it. `setup.sh` checks for pip and for that marker up front and tells you which
of the two you hit.
```bash
-python -m venv .venv && source .venv/bin/activate # or: conda create -n cv3d python=3.13
+python -m venv .venv && source .venv/bin/activate # or: conda create -n c3d python=3.13
```
---
@@ -134,7 +134,7 @@ openai.
| `urdf` | yourdfpy, scipy | the `articulated_object` track: URDF parse/validate + joint math |
| `graphics` | moderngl | the `graphics` track (`glsl_shader`, `opengl_python`) — headless GL rendering in `spatial/gl_render.py` |
| `mesh` | shapely, networkx, manifold3d, matplotlib | `cross_section` filled-area/hollow ratio (shapely), mesh split / connectivity (networkx), joint-sweep boolean intersections (`trimesh.boolean(engine="manifold")`), judge cross-section slices on gate-ERROR rounds (`judge_slices`, D48; without the extra the judge logs a warning and sends the pre-D48 payload) |
-| `mcp` | mcp | `3dcode mcp` / `codeverse.spatial.mcp_server`, i.e. spatial tools for the `gemini-cli`, `claude-code` and `codex` backends |
+| `mcp` | mcp | `3dcode mcp` / `codeverse3d.spatial.mcp_server`, i.e. spatial tools for the `gemini-cli`, `claude-code` and `codex` backends |
| `flywheel` | pyarrow | `3dcode flywheel export --pack` (parquet shards). A plain `flywheel export` needs nothing: without pyarrow it writes `metadata.jsonl` and skips `metadata.parquet` with a warning. |
| `all` | all of the above | — |
| `dev` | pytest, pytest-timeout, ruff | the test suite and the linter |
@@ -295,10 +295,10 @@ skip the wrapper entirely.
### How the harness finds it
-`Settings.resolve_blender()` (`codeverse/config.py`) returns the first hit of:
+`Settings.resolve_blender()` (`codeverse3d/config.py`) returns the first hit of:
1. `settings.binaries.blender` if that path exists — set it in the settings YAML
- or with `CV3D_BINARIES__BLENDER=/path/to/blender`;
+ or with `C3D_BINARIES__BLENDER=/path/to/blender`;
2. `blender-5.0`, `blender`, `blender-5.1`, `blender-4.2` on `PATH`, in that order.
Nothing found → `3dcodeverse doctor` reports `blender FAIL` and builds raise
@@ -316,9 +316,9 @@ harness picks the backend itself and both paths have a software fallback.
* **Three.js / scenes** → headless Chrome via `runtime_js/gpu_launch.cjs`, which
tries `--use-angle=gl-egl` plus the Mesa d3d12 env and probes
`UNMASKED_RENDERER`; a negative verdict is cached 20 minutes in
- `~/.cache/codeverse/gpu_probe.json`, and it falls back to SwiftShader.
- Force with `CV3D_RENDER_GPU=on|off|auto` (node side) or `render.gpu` in the
- settings YAML / `CV3D_RENDER__GPU`.
+ `~/.cache/codeverse3d/gpu_probe.json`, and it falls back to SwiftShader.
+ Force with `C3D_RENDER_GPU=on|off|auto` (node side) or `render.gpu` in the
+ settings YAML / `C3D_RENDER__GPU`.
* **graphics track** → moderngl in a fresh subprocess per render
(`spatial/gl_render.py`), which sets `GALLIUM_DRIVER=d3d12` +
`MESA_LOADER_DRIVER_OVERRIDE=d3d12` first and retries with
@@ -341,9 +341,9 @@ driver installed on the Windows side for the d3d12 path — check with
| `GEMINI_API_KEYS` | all `gemini:*` models (planner, judge, captioner, generators) | comma-separated list; the whole list becomes one `KeyPool` (per-key rate limits, 30 s cooldown on 429, dead keys benched 1 h) |
| `GEMINI_API_KEY` / `GOOGLE_API_KEY` | same | single-key fallback when `GEMINI_API_KEYS` is unset |
| `ANTHROPIC_API_KEY` | `anthropic:*` chat models | optional; not set here → those backends are unavailable (doctor WARN) |
-| `OPENAI_API_KEY` | `openai:*` chat models | optional; `CV3D_OPENAI_BASE_URL` points at a compatible gateway |
+| `OPENAI_API_KEY` | `openai:*` chat models | optional; `C3D_OPENAI_BASE_URL` points at a compatible gateway |
-Resolution order for the Gemini keys (`codeverse/config.py`), first non-empty wins:
+Resolution order for the Gemini keys (`codeverse3d/config.py`), first non-empty wins:
settings YAML `gemini_api_keys:` → `GEMINI_API_KEYS` (csv) → `GEMINI_API_KEY` /
`GOOGLE_API_KEY` → the legacy compatibility file
`~/.config/astra3d/gemini_keys.env`, from which a line
@@ -394,19 +394,19 @@ you; the ones worth knowing:
`3dcode tools <name> --json … --workspace .` instead.
The spatial MCP server itself is the `mcp` extra (§4); check it with
-`python -m codeverse.spatial.mcp_server --workspace <ws> --list`.
+`python -m codeverse3d.spatial.mcp_server --workspace <ws> --list`.
-### 8.3 Settings file and `CV3D_` overrides
+### 8.3 Settings file and `C3D_` overrides
Loaded in this order, later wins: built-in defaults →
-`~/.config/codeverse/config.yaml` → `./codeverse.yaml` (current working
-directory) → `CV3D_*` environment variables. Neither YAML file is required —
+`~/.config/3dcodeverse/config.yaml` → `./3dcodeverse.yaml` (current working
+directory) → `C3D_*` environment variables. Neither YAML file is required —
this box runs on defaults plus env.
```yaml
-# ~/.config/codeverse/config.yaml
+# ~/.config/3dcodeverse/config.yaml
runs_dir: /data/runs
-cache_dir: /data/cache/codeverse
+cache_dir: /data/cache/codeverse3d
binaries:
blender: /home/yipeng/.local/bin/blender-5.0
render:
@@ -419,20 +419,20 @@ default_judge: gemini:gemini-3.1-pro-preview
default_candidates: 1
```
-Env equivalents use the `CV3D_` prefix and `__` for nesting:
+Env equivalents use the `C3D_` prefix and `__` for nesting:
```bash
-export CV3D_RUNS_DIR=/data/runs
-export CV3D_BINARIES__BLENDER=/opt/blender/blender
-export CV3D_RENDER__GPU=off
-export CV3D_LIMITS__AGENT_TIMEOUT_S=900
-export CV3D_DEFAULT_CANDIDATES=2
+export C3D_RUNS_DIR=/data/runs
+export C3D_BINARIES__BLENDER=/opt/blender/blender
+export C3D_RENDER__GPU=off
+export C3D_LIMITS__AGENT_TIMEOUT_S=900
+export C3D_DEFAULT_CANDIDATES=2
```
Three more are read directly by the runtime (not via `Settings`):
-`CV3D_RENDER_GPU` (`auto|on|off`, seen by the node/moderngl renderers),
-`CV3D_CACHE_DIR` (where `gpu_launch.cjs` puts the shared-browser endpoint file)
-and `CV3D_BROWSER_REUSE=off` (disable the shared headless-Chrome daemon).
+`C3D_RENDER_GPU` (`auto|on|off`, seen by the node/moderngl renderers),
+`C3D_CACHE_DIR` (where `gpu_launch.cjs` puts the shared-browser endpoint file)
+and `C3D_BROWSER_REUSE=off` (disable the shared headless-Chrome daemon).
---
@@ -465,7 +465,7 @@ Real output on this box (exit code 0; any FAIL row makes it exit 1):
│ codex │ OK │ codex-cli 0.149.0 │
│ agy │ OK │ 1.1.19 │
│ git │ OK │ git version 2.53.0 │
-│ mcp │ OK │ mcp + codeverse.spatial.mcp_server importable │
+│ mcp │ OK │ mcp + codeverse3d.spatial.mcp_server importable │
└───────────────┴────────┴─────────────────────────────────────────────────────┘
```
@@ -483,14 +483,14 @@ that the keys work end to end):
| `python` | — | interpreter running the CLI | if it is not the interpreter you installed into, your shell is picking up another `3dcodeverse` — `which -a 3dcodeverse`, reinstall with `python -m pip install -e harness` |
| `python deps` | FAIL | a core import is missing/broken | `pip install -e 'harness[all]'`; a broken native lib (`fcl`, `manifold3d`) shows up here too — reinstall that wheel (`pip install --force-reinstall python-fcl`) |
| `python deps` | WARN | only optional-extra modules missing (`manifold3d` / `shapely` / `yourdfpy` / `mcp` / `moderngl` / `cadquery`) | install the extra the row names, e.g. `pip install -e 'harness[mesh,urdf,mcp,graphics,cad]'` (§4) |
-| `blender` | FAIL | no binary found, or `--version` failed | §6 — install Blender, or `export CV3D_BINARIES__BLENDER=/path/to/blender`. If it is found but fails, run it by hand: a `libSM.so.6`/`libICE.so.6` error means you need the `LD_LIBRARY_PATH` wrapper |
-| `node` | FAIL | node missing or older than 20.6.0 (§2.1) | install a newer node (`nvm install --lts`) or point `binaries.node` / `CV3D_BINARIES__NODE` at one. The same check fires from every node workload (`codeverse.spatial.node.run_node`), so a too-old node cannot fail obscurely mid-render |
-| `runtime_js` | FAIL | the node runtime directory cannot be resolved | use a full checkout, or set `CV3D_RUNTIME_JS=/path/to/harness/runtime_js`; then run `npm ci` there (§5) |
+| `blender` | FAIL | no binary found, or `--version` failed | §6 — install Blender, or `export C3D_BINARIES__BLENDER=/path/to/blender`. If it is found but fails, run it by hand: a `libSM.so.6`/`libICE.so.6` error means you need the `LD_LIBRARY_PATH` wrapper |
+| `node` | FAIL | node missing or older than 20.6.0 (§2.1) | install a newer node (`nvm install --lts`) or point `binaries.node` / `C3D_BINARIES__NODE` at one. The same check fires from every node workload (`codeverse3d.spatial.node.run_node`), so a too-old node cannot fail obscurely mid-render |
+| `runtime_js` | FAIL | the node runtime directory cannot be resolved | use a full checkout, or set `C3D_RUNTIME_JS=/path/to/harness/runtime_js`; then run `npm ci` there (§5) |
| `three` | FAIL | `runtime_js/node_modules/three` missing | `cd harness/runtime_js && npm ci` (§5) |
| `puppeteer` | FAIL | not installed in `runtime_js` | `cd harness/runtime_js && npm ci` |
| `puppeteer` | WARN | installed, but no Chrome in `~/.cache/puppeteer` | `cd harness/runtime_js && npx puppeteer browsers install chrome` (or unset `PUPPETEER_SKIP_DOWNLOAD` / fix `PUPPETEER_CACHE_DIR`) |
-| `chrome webgl` | WARN | Chrome launched but on SwiftShader | fine, just slower; on WSL2 install the vendor WSL GPU driver, on a server install Mesa EGL. `CV3D_RENDER_GPU=off` to stop probing |
-| `chrome webgl` | FAIL | the browser could not launch at all | usually missing shared libs for Chrome (`ldd ~/.cache/puppeteer/chrome/*/chrome-linux64/chrome \| grep -i "not found"`) or a stale endpoint file — `rm -f ~/.cache/codeverse/browser_*.lock` and retry; `--no-gpu` skips this probe |
+| `chrome webgl` | WARN | Chrome launched but on SwiftShader | fine, just slower; on WSL2 install the vendor WSL GPU driver, on a server install Mesa EGL. `C3D_RENDER_GPU=off` to stop probing |
+| `chrome webgl` | FAIL | the browser could not launch at all | usually missing shared libs for Chrome (`ldd ~/.cache/puppeteer/chrome/*/chrome-linux64/chrome \| grep -i "not found"`) or a stale endpoint file — `rm -f ~/.cache/codeverse3d/browser_*.lock` and retry; `--no-gpu` skips this probe |
| `chrome webgl` | SKIP | `runtime_js/gpu_launch.cjs` not present | you are not in a full checkout |
| `gemini keys` | FAIL | no keys resolved | `export GEMINI_API_KEYS="k1,k2"` (§8.1) — everything model-driven needs this |
| `anthropic key` / `openai key` | WARN | not set | expected unless you use `anthropic:*` / `openai:*`; export the key to clear it |
@@ -498,12 +498,12 @@ that the keys work end to end):
| `git` | FAIL | git missing | install git — run workspaces are git repos |
| `mcp` | WARN | `mcp` package or the server module missing | `pip install -e 'harness[mcp]'`; only affects the agentic CLI backends |
| `gemini live call` (`--live`) | FAIL | key rejected / no network | check the key value and outbound access; a `503 … high demand` is transient, not an install problem |
-| `gemini quota` | OK | always informational | the per-key RPM/TPM the pool schedules against x the number of keys (`Settings.rate`, docs/COST.md Part III); tune with `CV3D_RATE__TPM_PER_KEY` / `CV3D_RATE__MAX_IN_FLIGHT` |
-| `pool sharing` | WARN | this process's configured concurrency does not fit beside sibling harness processes | wait for the siblings or set `CV3D_MAX_IN_FLIGHT` to the headroom printed in the row |
+| `gemini quota` | OK | always informational | the per-key RPM/TPM the pool schedules against x the number of keys (`Settings.rate`, docs/COST.md Part III); tune with `C3D_RATE__TPM_PER_KEY` / `C3D_RATE__MAX_IN_FLIGHT` |
+| `pool sharing` | WARN | this process's configured concurrency does not fit beside sibling harness processes | wait for the siblings or set `C3D_MAX_IN_FLIGHT` to the headroom printed in the row |
| `gemini pool` (`--live`) | WARN | a key is benched as dead | that key 401/403'd; rotate or remove it — the pool re-probes it after an hour. The row also shows in-flight, RPM/TPM headroom used and this process's 429/5xx counts |
| `storm gate` (`--live`) | WARN | a capacity storm is running | provider-side (`503 high demand`), not an install problem; the gate is off by default (docs/COST.md §21) and the row only appears when something enabled it |
-| `skills switch` | WARN | skills are disabled | expected by default; set `CV3D_SKILLS=on` only when you want skill routing |
-| `skills library` | WARN / FAIL | no bundles were found, or one or more bundles are invalid | use a full checkout and validate the named bundle under `codeverse/skills/library/` |
+| `skills switch` | WARN | skills are disabled | expected by default; set `C3D_SKILLS=on` only when you want skill routing |
+| `skills library` | WARN / FAIL | no bundles were found, or one or more bundles are invalid | use a full checkout and validate the named bundle under `codeverse3d/skills/library/` |
| `skills routing` | WARN | a routed skill has no installed bundle | restore the missing bundle from the checkout or update the stale route |
| `skills discovery` | OK | always informational | shows the agent-native directories where bundles are materialised |
| `claude-code Skill tool` | FAIL | the Claude backend would deny native skill activation | update/reinstall the harness so `Skill` is present in Claude Code's allowed tools |
@@ -522,8 +522,8 @@ cd harness
--track graphics --language glsl_shader \
--generator single-shot:gemini:gemini-3.7-flash \
--rounds 0 --max-minutes 20 \
- --runs-dir /tmp/cv3d_smoke
-3dcode status <slug> --runs-dir /tmp/cv3d_smoke
+ --runs-dir /tmp/c3d_smoke
+3dcode status <slug> --runs-dir /tmp/c3d_smoke
```
If node and Blender are installed, the equivalent object-track smoke is
@@ -566,11 +566,11 @@ operating guide is `docs/RUNBOOK.md`.
pip uninstall 3dcodeverse # removes the editable install + 3dcodeverse/3dcode
rm -rf harness/runtime_js/node_modules # ~97 MB, re-creatable with `npm ci`
rm -rf ~/.cache/puppeteer # ~636 MB of downloaded Chrome builds
-rm -rf ~/.cache/codeverse # harness cache (619 MB here) — see below
+rm -rf ~/.cache/codeverse3d # harness cache (619 MB here) — see below
rm -rf harness/3dcodeverse.egg-info harness/.pytest_cache harness/.ruff_cache
```
-`~/.cache/codeverse` (or `cache_dir` / `CV3D_CACHE_DIR`) holds only regenerable
+`~/.cache/codeverse3d` (or `cache_dir` / `C3D_CACHE_DIR`) holds only regenerable
things: `renders/` and `judge_images/` (render + montage cache), `textures/` and
`texture_plans/` (texture-pass cache — deleting these costs real money to
regenerate), `gpu_probe.json`, `browser_*.lock` (the shared
@@ -581,7 +581,7 @@ dataset are the flywheel output — delete them deliberately, never as part of a
cleanup. On this machine `harness/bench/out/` is read-only reference material
(the early `e2e_*` reference runs were archived off-repo on 2026-08-29).
-Uninstalling does not touch `~/.config/codeverse/config.yaml`,
+Uninstalling does not touch `~/.config/3dcodeverse/config.yaml`,
`~/.config/astra3d/gemini_keys.env` or the globally installed CLIs — remove
those by hand (`npm rm -g @google/gemini-cli @anthropic-ai/claude-code @openai/codex`).
diff --git a/harness/docs/INTERFACES.md b/harness/docs/INTERFACES.md
index fdd5cbe0..4aa7eb49 100644
--- a/harness/docs/INTERFACES.md
+++ b/harness/docs/INTERFACES.md
@@ -1,7 +1,7 @@
# Cross-package interfaces (as built)
This file lists the signatures other packages may rely on. Types live in
-`codeverse/contracts/`; protocols in `models/base.py`, `agents/base.py`,
+`codeverse3d/contracts/`; protocols in `models/base.py`, `agents/base.py`,
`languages/base.py`, `spatial/registry.py`, `tracks/__init__.py` (judges are
duck-typed `.judge(JudgeInput) -> Judgment`; `judges/base.py` defines no protocol).
Where the build deviated from the original plan the deviation is called out as
@@ -26,22 +26,22 @@ file was reconciled against it on 2026-08-23 (waves 2–3 + fix batch 1).
## core (contracts · config · proc)
```python
-from codeverse.contracts import TRACK_INFO, TrackInfo # {Track: TrackInfo(rubric, label)} — THE track registry
-from codeverse.contracts import ENTRY_FILE, code_file, LANGUAGE_LABEL # {Language: "src/<entry>"}; code_file(lang) -> "code.<ext>"
-from codeverse.contracts import RunOptions # Spec.options: candidates (int|None, ≥1), texture (bool)
+from codeverse3d.contracts import TRACK_INFO, TrackInfo # {Track: TrackInfo(rubric, label)} — THE track registry
+from codeverse3d.contracts import ENTRY_FILE, code_file, LANGUAGE_LABEL # {Language: "src/<entry>"}; code_file(lang) -> "code.<ext>"
+from codeverse3d.contracts import RunOptions # Spec.options: candidates (int|None, ≥1), texture (bool)
GateFinding.as_line(with_gate=False, with_severity=False, with_target=False, with_hint=True) -> str
# "GATE <gate>: [<sev>] <message> [<target>] FIX: <hint>" — flags opt in; no leading "- "
RenderView.judge: bool | None # stamped True/False at render time; None = legacy round (every stored view is judged)
RenderSet.out_dir: str # directory the views (+ views.json/metrics.json) were written to ("" on old rounds)
-from codeverse.config import get_settings, env_flag # env_flag(env, fallback) -> bool: on/off/1/0/true/false/yes/no;
+from codeverse3d.config import get_settings, env_flag # env_flag(env, fallback) -> bool: on/off/1/0/true/false/yes/no;
# unset/empty -> fallback; garbage -> warning + fallback (Settings value), never a silent switch
get_settings().backends(planner=..., generator=..., judge=..., captioner=...) -> Backends
# settings defaults (default_planner/... mirror contracts Backends literals; + default_captioner);
# truthy keyword overrides win, None/"" falls through, unknown role -> TypeError
-from codeverse.proc import ProcResult, run_subprocess, tail, write_json_atomic
+from codeverse3d.proc import ProcResult, run_subprocess, tail, write_json_atomic
run_subprocess(cmd, *, cwd, timeout_s, env=None, stdin_text=None, preexec_fn=None) -> ProcResult
# own session/process group, group-kill on timeout, never raises on rc != 0; stdlib-only module
-from codeverse.proc import read_json_or_none, iter_jsonl_lines, read_jsonl_lenient, append_jsonl_line
+from codeverse3d.proc import read_json_or_none, iter_jsonl_lines, read_jsonl_lenient, append_jsonl_line
read_json_or_none(path, *, errors=None) -> dict | None # None when absent / unreadable / malformed / not a dict
iter_jsonl_lines(path) -> Iterator[tuple[int, str]] # (1-based line_no, line); missing file -> nothing; blanks skipped
read_jsonl_lenient(path, *, log=None, dicts_only=False) -> list # bad lines skipped (debug-logged when `log` given)
@@ -57,29 +57,29 @@ means the last OK build. `Workspace.restore_paths(commit, paths)` = per-path
## models/
```python
-from codeverse.models import get_chat_model # (model_id) -> ChatModel, lru-cached, thread-safe
+from codeverse3d.models import get_chat_model # (model_id) -> ChatModel, lru-cached, thread-safe
resp = m.generate(ChatRequest(messages=[...], system=..., response_schema=..., temperature=..., thinking=..., label=..., max_wait_s=None))
# max_wait_s: the longest this ONE call may spend, retries included (None = models.retry.RETRY_DEADLINE_S = 900 s);
# GeminiModel clips its retry deadline to it; api_agent 20-120 s per turn, VlmJudge 240 s per sample, planner 300 s
# resp.raw["key"] = "…ab12" (the key that answered), resp.raw["attempts"] = round-trips issued (hedged siblings included)
resp.parsed / resp.text / resp.usage # Usage always has cost_usd (models.pricing)
-from codeverse.models.retry import KeyPool, KeyPoolExhausted
+from codeverse3d.models.retry import KeyPool, KeyPoolExhausted
KeyPool(keys, *, rpm_per_key=900, tpm_per_key=None, cooldown_s=30, dead_cooldown_s=3600)
pool.acquire(*, tokens_hint=0, exclude=None, timeout_s=120) -> key # raises immediately when every key is dead/cooling past the deadline
pool.try_acquire(*, tokens_hint=0, exclude=None) -> key | None # never waits (a hedged retry's extra key); holds a slot like acquire
pool.report(key, "ok"|"429"|"5xx"|"error"|"dead"|"skip", *, tokens=0, retry_after_s=None) # Δ "dead": health 0, benched dead_cooldown_s,
# re-probed after; "skip" (a content failure the key did not cause) reconciles tokens only — health and counters untouched
-from codeverse.models.retry import with_retries, rotate_with_retries, RETRY_DEADLINE_S
+from codeverse3d.models.retry import with_retries, rotate_with_retries, RETRY_DEADLINE_S
with_retries(fn, *, is_retryable, attempts=6, base_delay=1.0, max_delay=3.0, max_total_s=None, ...) # max_total_s =
# ChatRequest.max_wait_s clipped to RETRY_DEADLINE_S on every provider; stops before a backoff would cross it, stamps ModelError.attempts
-from codeverse.models.pricing import estimate_cost # (provider, model, usage) -> usd (unknown model -> 0.0 + one warning)
-from codeverse.models.schema_utils import to_gemini_schema, to_openai_strict_schema, to_anthropic_schema, parse_json_lenient
-from codeverse.models.schema_utils import ask_structured # (model, Schema, *, system, text, images=(), temperature, label)
+from codeverse3d.models.pricing import estimate_cost # (provider, model, usage) -> usd (unknown model -> 0.0 + one warning)
+from codeverse3d.models.schema_utils import to_gemini_schema, to_openai_strict_schema, to_anthropic_schema, parse_json_lenient
+from codeverse3d.models.schema_utils import ask_structured # (model, Schema, *, system, text, images=(), temperature, label)
# -> (obj | None, Usage, err): one schema-bound call; call failure and parse failure are the same `err` family
```
Backends: `GeminiModel(model, *, keys=None, pool=None, ...)` (one shared KeyPool per
key list), `AnthropicModel(model, *, json_mode="tool"|"output_config")`,
-`OpenAIModel(model, *, base_url=None)` (Chat Completions; `CV3D_OPENAI_BASE_URL`).
+`OpenAIModel(model, *, base_url=None)` (Chat Completions; `C3D_OPENAI_BASE_URL`).
Rules that callers must know:
* **Δ** Gemini key handling: auth/permission errors (401/403, or 400 with
API_KEY_INVALID / expired / PERMISSION_DENIED / suspended markers) classify as
@@ -101,12 +101,12 @@ Rules that callers must know:
## cost/ (ledger · profiles · price provenance)
```python
-from codeverse.cost import record_call, load_ledger, summarise
+from codeverse3d.cost import record_call, load_ledger, summarise
record_call(usage, *, run="", round=None, stage=None, role=None, label="", backend="", model="",
outcome="ok", latency_ms=None, n_calls=1, source="live", ledger=None, reprice=False) -> CallCost
# Δ everything left out is resolved from the ambient context + the call label (cost.context);
# unknown model -> $0 and price_source="unknown" (flagged, never silently dropped); never raises.
-from codeverse.cost.instrument import (run_ledger, metered_chat_model, metered_agent,
+from codeverse3d.cost.instrument import (run_ledger, metered_chat_model, metered_agent,
MeteredAgent, MeteredChatModel, metering_enabled)
with run_ledger(ws.root, run=slug): # binds the run, points record_call at <run>/telemetry/cost.jsonl
... # (+ a <run>/cost_ledger.jsonl symlink for the run-layout alias)
@@ -122,8 +122,8 @@ with run_ledger(ws.root, run=slug): # binds the run, points record_call a
# These two are the ONLY ledger writers; BudgetGuard writes no row.
# The rule is the BACKEND, never "did a row get written while it ran": a CLI session with one
# in-process tool call used to be dropped entirely.
-from codeverse.cost.context import CallContext, call_context, bound_run, context_from_label, SELF_DESCRIBING
-from codeverse.cost.ledger import bound_ledger, process_ledger_path # (Δ 2026-08-30) both are context
+from codeverse3d.cost.context import CallContext, call_context, bound_run, context_from_label, SELF_DESCRIBING
+from codeverse3d.cost.ledger import bound_ledger, process_ledger_path # (Δ 2026-08-30) both are context
# managers holding a ContextVar token; there is no process-wide default any more — a thread that
# may bill a model is spawned through proc.fan_out (which copies context), never a bare pool.
# precedence: explicit > a label naming a job of its OWN (SELF_DESCRIBING = plan/judge/pairwise/
@@ -132,22 +132,22 @@ from codeverse.cost.ledger import bound_ledger, process_ledger_path # (Δ 2026
# session's; a generation label yields to the session (best-of-N: kind="candidate" beats
# label="baseline"); Stage.OTHER means "the label said nothing" and displaces nothing.
# labels understood: judge:<rubric>:r<NN>:s<k> · planner · pairwise:… · texture… · caption… (api-agent:<label>:t<turn> in historical ledgers only)
-from codeverse.addons.costreport.caching import session_cache, session_key
+from codeverse3d.addons.costreport.caching import session_cache, session_key
session_cache(rows) -> [SessionCache] # per session: cold first call, cached share, saved_usd, cold_usd
-from codeverse.cost.profiles import get_profile, PROFILES # economy | balanced | quality
+from codeverse3d.cost.profiles import get_profile, PROFILES # economy | balanced | quality
get_settings().apply_profile(name, *, force=False) -> Profile
# sets default_{generator,planner,judge,captioner}, default_candidates, Settings.judge
# (max_px/montages/detail_crops/samples) and limits.agent_max_turns; a value the user stated in
- # config.yaml / CV3D_* survives unless force (3dcode make --profile forces).
-from codeverse.cli._common import resolve_dial, ResolvedDial # THE resolver, one per `3dcode make`
+ # config.yaml / C3D_* survives unless force (3dcode make --profile forces).
+from codeverse3d.cli._common import resolve_dial, ResolvedDial # THE resolver, one per `3dcode make`
resolve_dial(settings, profile_flag=None, *, rounds=None, candidates=None,
max_minutes=None, texture=False) -> ResolvedDial
# profile/generator/planner/judge/captioner, judge_samples/judge_max_px/judge_montages/
# judge_detail_crops, agent_max_turns, rounds, candidates, texture, max_minutes.
- # `--profile X` and `CV3D_PROFILE=X` resolve to the SAME dial (they used to disagree on
+ # `--profile X` and `C3D_PROFILE=X` resolve to the SAME dial (they used to disagree on
# candidates + texture); an explicit flag beats both. Spec.options.profile always records the
# resolved name so `3dcode resume` re-applies it.
-from codeverse.models.pricing import price_provenance # (provider, model) -> PriceRow(price, match, status, checked)
+from codeverse3d.models.pricing import price_provenance # (provider, model) -> PriceRow(price, match, status, checked)
```
`3dcode cost <slug|path>…` · `3dcode cost --runs-dir <root>` · `3dcode cost cache <slug>` ·
`3dcode cost prices [--stale] [--days N] [--unverified]` · `3dcode cost profiles` · `3dcode cost estimate`.
@@ -156,10 +156,10 @@ reconstructed, so all 61 recorded runs keep auditing.
## agents/
```python
-from codeverse.agents import get_coding_agent # (agent_id) -> CodingAgent .run(job) .available() .id .kind .model
-from codeverse.agents.materialize import materialize_workspace, codex_mcp_overrides
+from codeverse3d.agents import get_coding_agent # (agent_id) -> CodingAgent .run(job) .available() .id .kind .model
+from codeverse3d.agents.materialize import materialize_workspace, codex_mcp_overrides
materialize_workspace(ws, *, agent_kind, contract_md, cookbook_rel, spatial_tools, mcp_command=None) -> None
-# mcp_command defaults to cli_common.default_mcp_command(ws) = [sys.executable, -m codeverse.spatial.mcp_server --workspace …]
+# mcp_command defaults to cli_common.default_mcp_command(ws) = [sys.executable, -m codeverse3d.spatial.mcp_server --workspace …]
# (None/[] = the default — no ValueError); tracks/common.Services.materialize takes no mcp_command
# writes AGENTS.md + GEMINI.md + CLAUDE.md (same body), ws/.3dcode/cookbook.md (Δ copied in: gemini-cli cannot read
# outside the workspace), .geminiignore/.aiexclude, and MCP wiring:
@@ -204,7 +204,7 @@ own rate. KeyPoolExhausted never escapes `run()` (→ `exit_reason=budget`); re
prefer a different key (10 s wait) before re-using the same one.
## languages/
```python
-from codeverse.languages import get_runtime # (Language | str) -> LanguageRuntime
+from codeverse3d.languages import get_runtime # (Language | str) -> LanguageRuntime
rt.language; rt.entry_globs
rt.lint(ws) -> GateReport # gate = "lint:<language>"
rt.build(ws, *, timeout_s=None, **per_runtime) -> BuildResult # Δ BuildResult.error_file is WORKSPACE-relative for
@@ -223,7 +223,7 @@ BuildResult.error_type spellings (languages/_common.py): MISSING_ENTRY = "Missin
| `GlslShaderRuntime` | `src/shader.frag`, `src/common.glsl`, `src/buffer_a.frag` (+ the harness-owned `src/recipes.glsl` when seeded) | harness owns `#version`/uniforms/`out` (wrap.HEADER: u_time/u_resolution/u_mouse/u_frame/u_prev/u_noise + iTime/iChannel* aliases); `wrap.compose(shader, common, recipes_src=…)` pastes header < recipes < common < shader; build renders judge frames via GlHost; compile errors → GlslCompileError at mapped src file:line (recipes.glsl included); lint ERROR `redefines_recipe` when an agent file defines a recipes.glsl name; artifacts frames/, frames_sheet.png, preview.gif, metrics.json |
| `OpenGLPythonRuntime` | `src/program.py`, `src/*.glsl` | `setup(ctx,w,h)->state` + `render(ctx,state,t,frame,fbo)` run in a moderngl subprocess (`wrappers/run_gl.py`); exceptions map to src/program.py:line, in-string GLSL errors carry both line numbers |
-Wrappers are standalone (never import codeverse): `blender/wrappers/run_bpy.py`
+Wrappers are standalone (never import codeverse3d): `blender/wrappers/run_bpy.py`
(+ sibling `_census.py` — copy both), `cadquery/wrappers/run_cq.py`,
`urdf/wrappers/run_bpy_links.py`, `opengl_python/wrappers/run_gl.py`; threejs/scene
export+render live in `runtime_js/` (`export_glb.mjs`, `render_glb.mjs`,
@@ -246,19 +246,19 @@ are the pure helpers `3dcode doctor` reuses for its `node` row.
`build_last.json`/`build.json` says the last build failed — tools never measure or
texture a stale GLB; missing/unreadable status stays permissive (hand-placed GLBs).
```python
-from codeverse.spatial.render import render_glb
-from codeverse.contracts.artifacts import RENDER_MODES # ('shaded','wire','normals','silhouette','clay') — THE mode tuple (no 'depth')
+from codeverse3d.spatial.render import render_glb
+from codeverse3d.contracts.artifacts import RENDER_MODES # ('shaded','wire','normals','silhouette','clay') — THE mode tuple (no 'depth')
render_glb(glb, out_dir, *, views=None, mode="shaded|wire|normals|silhouette|clay", width=768, height=768,
isolate=None, explode=0.0, sheet=True, background=..., anim_time=None, shadow=True, gpu=None,
timeout_s=None, use_cache=True) -> RenderSet
-from codeverse.spatial.render_scene import render_scene
+from codeverse3d.spatial.render_scene import render_scene
render_scene(ws, out_dir, *, cameras=None, orbit=True, times=(0.0, 1.5), width=1024, height=576, sheet=True,
bounds=None) -> RenderSet
# Δ bounds default from ws plan.json → orbit rig frustum-fits the CONTENT box (not ground/sky);
# contact sheet = judge subset only; views.json entries get judge: true|false
-from codeverse.spatial.render_scene import select_judge_views, JUDGE_MAX_VIEWS, read_metrics, plan_bounds
+from codeverse3d.spatial.render_scene import select_judge_views, JUDGE_MAX_VIEWS, read_metrics, plan_bounds
select_judge_views(rs, max_n=10) -> RenderSet # priority: authored@t0, 2 overview@t0, 2 authored@t_last, rest
-from codeverse.spatial.frame_metrics import frame_gate_from_renders, frame_findings, frame_summary_text, FRAME_GATE
+from codeverse3d.spatial.frame_metrics import frame_gate_from_renders, frame_findings, frame_summary_text, FRAME_GATE
frame_gate_from_renders(renders) -> GateReport # gate "scene_frames"; data.kind ∈ dark_frame | blown_frame | flat_frame |
# camera_in_geometry | camera_underground | camera_low | camera_high | content_small; authored cameras → ERROR, orbit rig → WARN
# Δ camera_low / camera_high measure camera_checks.ground_below_m (the ray straight down from the eye, nearGeometry);
@@ -274,15 +274,15 @@ frame_gate_from_renders(renders) -> GateReport # gate "scene_frames"; da
# for a hero — a name word of its GLB file in the camera name — is re-aimed at the hero's centre when that centre is
# outside its frustum, before the retreat search); the overview rig
# (noFog views) hides see-through sky layers whose box lies below the eye; roomShell tags userData.placement='free'
-from codeverse.spatial.measure import measure_glb # link-hierarchy rule: metadata["links"] → each link is its own part
+from codeverse3d.spatial.measure import measure_glb # link-hierarchy rule: metadata["links"] → each link is its own part
# Δ Measurement.extra["complexity"] = ComplexityVector.model_dump() (additive, best-effort, never raises)
-from codeverse.spatial.complexity import (ComplexityVector, COMPLEXITY_WEIGHTS, COMPLEXITY_VERSION,
+from codeverse3d.spatial.complexity import (ComplexityVector, COMPLEXITY_WEIGHTS, COMPLEXITY_VERSION,
complexity_of_glb, complexity_of_parts, band_of)
complexity_of_glb(glb) -> ComplexityVector # part_count, assembly_depth, tri_count, materials, silhouette,
# feature_density, symmetry_groups, hollowness, + index 0-1 (documented weights) and band
# (trivial|simple|moderate|complex|intricate). Deterministic, no VLM/render. eval/docs/COMPLEXITY.md
-from codeverse.spatial.connectivity import check_connectivity # (glb, *, gap_m=…, …, language="", planned_edges=()) — planned_edges: (child, parent | (copies…)); Δ language selects the
-from codeverse.spatial.contract import check_contract # frame of fix hints; both gates emit hints in the AUTHORING frame
+from codeverse3d.spatial.connectivity import check_connectivity # (glb, *, gap_m=…, …, language="", planned_edges=()) — planned_edges: (child, parent | (copies…)); Δ language selects the
+from codeverse3d.spatial.contract import check_contract # frame of fix hints; both gates emit hints in the AUTHORING frame
# (labelled "blender frame: Z-up, -Y front" etc.), GLB vectors in data
# (Δ 2026-08-30) connectivity measures overlap WHERE it is (a dense pass on the AABB-overlap region), so a thin
# member's tip is no longer diluted under PENETRATION_MIN_FRACTION; every interpenetration finding carries
@@ -295,49 +295,49 @@ from codeverse.spatial.contract import check_contract # frame of fix h
# (Δ 2026-08-30) check_contract adds ONE orientation finding on a StaticPlan (data.kind="orientation", pose lying|stood → ERROR,
# turned → WARN; planned_up_m, measured_up_m, best_axis): an extents-permutation test in the plan frame, 0 flags over
# 629 corpus measurements, fires on brilliana's c-clamp / gate-valve.
-from codeverse.spatial.measure import measure_glb, world_transform, node_name_findings # (Δ 2026-08-30) world frames are composed
+from codeverse3d.spatial.measure import measure_glb, world_transform, node_name_findings # (Δ 2026-08-30) world frames are composed
# by walking the graph's edge matrices (trimesh's get() dropped a root pivot's rotation); a GLB with duplicate / unnamed nodes
# lands a finding in Measurement.extra["findings"] — trimesh re-parents renamed nodes and the numbers are approximate
-from codeverse.spatial.scene_placement import placement_findings, placement_gate_safe, placement_census, placement_table_text
+from codeverse3d.spatial.scene_placement import placement_findings, placement_gate_safe, placement_census, placement_table_text
placement_findings(table, *, indoor=False) -> GateReport # gate "scene_placement"; data.kind ∈ floating | sunken |
# unsupported | interpenetration | summary | probe_failed; target "Zone/Asset" (routes to src/zones/<zone>.js);
# messages carry the scene_v1 floating_part cap words; reads artifacts/census.json["placement"] (host_placement.mjs)
placement_gate_safe(census, *, plan=None, layouts=None, unavailable=()) -> GateReport | None # round gate: None without a table, WARN on failure, never raises; `unavailable` = assets the stage could not build (not "missing planned contents")
-from codeverse.spatial.scene_placement import setting_text # (plan: dict | model) -> the indoor/outdoor setting line
-from codeverse.spatial.silhouette import compare_silhouette
-from codeverse.spatial.sections import judge_slices, SliceManifest, JUDGE_SLICE_PLANES # (D48)
+from codeverse3d.spatial.scene_placement import setting_text # (plan: dict | model) -> the indoor/outdoor setting line
+from codeverse3d.spatial.silhouette import compare_silhouette
+from codeverse3d.spatial.sections import judge_slices, SliceManifest, JUDGE_SLICE_PLANES # (D48)
judge_slices(glb, error_pairs, out_dir, planes=("front_back","left_right")) -> SliceManifest # two vertical centre slices,
# red hatch ONLY on error_pairs (the connectivity gate's ERROR penetration pairs), plain darkened blend otherwise,
# degenerate slices dropped (F4) → 0–2 PNGs (slice_<name>.png, manifest.json beside them; JudgeSlice.png is a bare
# file name); needs the mesh extra (shapely + matplotlib), ImportError propagates; a bad GLB → manifest.errors, no raise
-from codeverse.spatial.joints import load_urdf, fk, sweep_collisions, urdf_to_glb, render_poses # RESERVED_LINK_NAMES={'world'}
-from codeverse.spatial.joints_collide import components # (names, edges) -> list[set[str]]: THE union-find (connectivity + sweep)
+from codeverse3d.spatial.joints import load_urdf, fk, sweep_collisions, urdf_to_glb, render_poses # RESERVED_LINK_NAMES={'world'}
+from codeverse3d.spatial.joints_collide import components # (names, edges) -> list[set[str]]: THE union-find (connectivity + sweep)
# the joint_sweep TOOL body lives in spatial/tools.py (no joint_sweep_observation helper; render_poses takes no renderer=)
# joints_collide.py: deterministic penetration (oriented islands + fixed-direction parity ray test; python-fcl is a
# core dependency, the trimesh fallback is deterministic too)
-from codeverse.spatial.gl_render import GlHost, GlResult, GlHostError, write_contact_sheet, write_gif
+from codeverse3d.spatial.gl_render import GlHost, GlResult, GlHostError, write_contact_sheet, write_gif
GlHost(gpu="auto|on|off", timeout_s=240, fps=30, max_steps=240)
.render_fragment_shader(frag_src, out_dir, *, width=1280, height=720, times=..., buffer_a_src=None, feedback=False)
.run_program(program_path, out_dir, *, width, height, times) -> GlResult{ok, stage, frames[GlFrame], renderer, gpu, …}
-from codeverse.spatial.frame_stats import sequence_stats, frame_gate # gate "gl_frames"; data.kind ∈ nan | black | blown |
+from codeverse3d.spatial.frame_stats import sequence_stats, frame_gate # gate "gl_frames"; data.kind ∈ nan | black | blown |
# static | flicker | low_detail | duplicate | no_frames
-from codeverse.spatial.registry import tool, get_tool, list_tools, tool_cards, ToolContext, Observation
+from codeverse3d.spatial.registry import tool, get_tool, list_tools, tool_cards, ToolContext, Observation
Observation{ok: VERDICT, failed: the tool could not run, text, numbers, images, duration_ms} # is_error == failed,
# never `not ok`. failed is set by Observation.error(...) and by exactly three tools that compose
# their own result: build (no readable GLB), scene_probe (driver died), render_observation (no view
# and no console error — with one it is a verdict)
-from codeverse.spatial.mcp_server import observation_content, max_images_for, MAX_TEXT_CHARS
+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 codeverse.spatial.tools # registers: build, measure, render_views, render_sheet, isolate, cross_section,
+import codeverse3d.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], 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: 3dcode
+python -m codeverse3d.spatial.mcp_server --workspace <ws> [--track X] [--language Y] [--round N] [--list] # MCP name: 3dcode
```
## judges/
```python
-from codeverse.judges.rubrics import load_rubric, Rubric # Rubric{…, defects: [DefectItem{id, text, penalty, cap}], caps[{…, when:, kinds}]}
-from codeverse.judges.vlm_judge import VlmJudge
+from codeverse3d.judges.rubrics import load_rubric, Rubric # Rubric{…, defects: [DefectItem{id, text, penalty, cap}], caps[{…, when:, kinds}]}
+from codeverse3d.judges.vlm_judge import VlmJudge
VlmJudge(rubric="static_object_v1", model_id=None (settings.default_judge = gemini-3.1-pro-preview), n_samples=1,
temperature=0.2, *, thinking="low", max_attempts=3, max_montages=None, detail_crops=None, max_px=None,
sample_budget_s=None, fixed_order=False, chat_model=None, cache_dir=None, label="judge")
@@ -347,19 +347,19 @@ VlmJudge.judge(inp) -> Judgment # clay/normals views travel ONLY
VlmJudge.slice_payload(inp) -> (list[(label, png_path)], provenance_elicitation: bool) # (D48) ([], False) unless
# Settings.judge.slices=="on-error" AND spec.track in judges.base.SLICE_TRACKS AND inp.glb_path exists AND the
# connectivity gate has ≥1 ERROR; renders judge_slices into the judge cache (keyed by glb identity + error pairs)
-from codeverse.judges.base import JudgeInput # (spec, renders, measurement=None, gates=[], acceptance=[], plan_summary="",
+from codeverse3d.judges.base import JudgeInput # (spec, renders, measurement=None, gates=[], acceptance=[], plan_summary="",
# round_index=0, previous=None, extra_context="", geometry_views=None,
# glb_path=None (D48: the round's canonical GLB; object tracks + 3dcode judge fill it))
-from codeverse.judges.prompt_builder import plan_montages, render_montage, Montage # ≤5 2×2 montages (shaded/geometry/poses) + ≤2 detail
+from codeverse3d.judges.prompt_builder import plan_montages, render_montage, Montage # ≤5 2×2 montages (shaded/geometry/poses) + ≤2 detail
# crops @≤1024px replace the sheet + the 14-view rig (D47); clay/normals views (RenderView.mode) auto-route to the GEOMETRY montage
-from codeverse.judges.prompt_builder import build_judge_messages, connectivity_error_pairs, PROVENANCE_ELICITATION
+from codeverse3d.judges.prompt_builder import build_judge_messages, connectivity_error_pairs, PROVENANCE_ELICITATION
build_judge_messages(inp, rubric, *, …, extra_images=None (PREpended: references), extra_text="",
slice_images=None, provenance_elicitation=False) -> (system, [ChatMessage]) # (D48) slice_images
# (label, path) are APPENDED after the montages/crops + described by slice_rig_section in the view-rig text;
# provenance_elicitation appends one sentence to the DEFECT CHECKLIST bullet. Defaults build the byte-identical
# pre-D48 payload; judge_prompt_hash(rubric) is unchanged either way (per-round content stays outside the hash)
connectivity_error_pairs(gates) -> list[(a, b)] # the gate's ERROR penetration pairs via finding.target/data.other
-from codeverse.judges.rubrics import is_degraded, aggregate_samples, SCORING_VERSION # ScoreBreakdown adds defects,
+from codeverse3d.judges.rubrics import is_degraded, aggregate_samples, SCORING_VERSION # ScoreBreakdown adds defects,
# defect_votes (majority; a defect tie → absent, an acceptance tie → representative sample, D36 as amended
# 2026-08-30), tie_broken, defect_penalty, overall_after_defects, overridden (defects the measured-absent
# veto switched off), scoring_version (= SCORING_VERSION, 2; older records carry 0), judge_prompt_hash (D37);
@@ -367,13 +367,13 @@ from codeverse.judges.rubrics import is_degraded, aggregate_samples, SCORING_VER
# CapRule gains measures: list[str] (the checklist defect ids a gate rule is the MEASUREMENT of —
# penetration_error.measures = [interpenetration]) and graded: bool (an acceptance rule caps at
# cap + (1−cap)·verified/total instead of a flat cap); rubrics._rule_evidence is now _rule_hit -> CapApplied | None
-from codeverse.judges.rubrics import apply_caps # (rubric, overall, gates, acceptance_results, acceptance_items=None, *,
+from codeverse3d.judges.rubrics import apply_caps # (rubric, overall, gates, acceptance_results, acceptance_items=None, *,
# console_errors=None, views=None, defects_present=None) -> CapResult;
# cap rules add when="missing_views" and ledger lines "defect:<id>"
-from codeverse.judges.pairwise import PairwiseJudge # .compare(spec, renders_a, renders_b, *, rubric=…) -> PairwiseResult
-from codeverse.addons.calibration import calibrate, CalibrationTable # (run_dirs, *, model_id, n_samples=3, out_dir, geometry_mode,
- # rounds, …) -> rows + pearson/spearman(errors vs score), mean_std, cost; CLI: python -m codeverse.addons.calibration RUN… --n 3
-from codeverse.judges.vlm_judge import ReferenceJudge # image-conditioned specs
+from codeverse3d.judges.pairwise import PairwiseJudge # .compare(spec, renders_a, renders_b, *, rubric=…) -> PairwiseResult
+from codeverse3d.addons.calibration import calibrate, CalibrationTable # (run_dirs, *, model_id, n_samples=3, out_dir, geometry_mode,
+ # rounds, …) -> rows + pearson/spearman(errors vs score), mean_std, cost; CLI: python -m codeverse3d.addons.calibration RUN… --n 3
+from codeverse3d.judges.vlm_judge import ReferenceJudge # image-conditioned specs
```
Rubrics: `static_object_v1` (0.72), `articulated_v1` (requires pose views via
`missing_pose_sheet` cap), `scene_v1` (frame-gate caps dark/blown/flat/content_small),
@@ -384,12 +384,12 @@ must-acceptance`; gate authors set `GateFinding.data["kind"]` so caps match prec
## orchestrator/ + tracks/
```python
-from codeverse.tracks import get_track
+from codeverse3d.tracks import get_track
rec = get_track(spec.track, **options).run(spec, ws, resume=False) -> RunRecord # Δ kwargs forwarded to the constructor:
# services=, judge=, agent=, model=, runtime=, policy=RoundPolicy, settings=, planner_model=, n_candidates=
# (CLI --candidates > spec.options.candidates > settings.default_candidates); StaticObject | Articulated | Scene | Graphics
TrackPipeline.run(spec, ws, *, resume=False, force=False) -> RunRecord
-from codeverse.orchestrator import RoundPolicy, StopPolicy, StopDecision, BestSelector, judge_sigma, \
+from codeverse3d.orchestrator import RoundPolicy, StopPolicy, StopDecision, BestSelector, judge_sigma, \
best_score, last_gain, best_index, REWRITE_KIND, build_refine_instructions, compact_instructions
RoundPolicy(max_rounds=4, plateau_window=2, min_delta=0.02, target=0.8, max_refine_tasks=6,
max_instructions_per_task=6, parallel_min_tasks=2, n_candidates=1, pairwise_margin=0.03,
@@ -401,7 +401,7 @@ RoundPolicy(max_rounds=4, plateau_window=2, min_delta=0.02, target=0.8, max_refi
# score, docs/COST.md §17); wrapup applies to a cap a caller sets
detail_rounds=None, detail_min_score=0.45, detail_bbox_tol_m=0.005 # surface-detail round, tri-state:
# None = the track default (lifecycle.DEFAULT_DETAIL_ROUNDS=1 when supports_detail_round, else 0),
- # 0 = off, N = N; $CV3D_DETAIL_ROUNDS overrides all (the A/B switch). Injected policies keep it.
+ # 0 = off, N = N; $C3D_DETAIL_ROUNDS overrides all (the A/B switch). Injected policies keep it.
) # lifecycle.build_context binds n_candidates + judge_model with ONE dataclasses.replace;
# RoundPolicy.target is ALWAYS overridden by the rubric pass threshold in BaseTrack.after_plan
policy.sigma / .regression_delta / .marginal_delta # judge_sigma() reads cost.routing.JUDGE_NOISE — THE σ table
@@ -409,8 +409,8 @@ StopPolicy(policy).evaluate(history, budget_ok=True) -> StopDecision(reason, str
# (.reason is the StopReason); strategy "switch" = ONE whole-artifact rewrite round (kind REWRITE_KIND),
# "detail" = ONE surface-detail round (kind DETAIL_KIND) — a plateau/diminishing stop is converted into it
# only when detail_blocked(history, policy) == "" (clean gates, built, judged, within σ of best, budget left)
-from codeverse.orchestrator import DETAIL_KIND, KIND_FOR_STRATEGY, detail_blocked # THE strategy → kind dict
-from codeverse.orchestrator import BudgetGuard, usage_delta
+from codeverse3d.orchestrator import DETAIL_KIND, KIND_FOR_STRATEGY, detail_blocked # THE strategy → kind dict
+from codeverse3d.orchestrator import BudgetGuard, usage_delta
BudgetGuard(budget, start_time=None, *, soft_fraction=1.0) # no run= / ledger=
.charge(usage, *, stage="other", enforce=True) # (Δ 2026-08-30: role/label/round_index/outcome gone)
# THE door every dollar goes through: accumulate → bucket by stage → enforce the ceilings.
@@ -421,33 +421,33 @@ BudgetGuard(budget, start_time=None, *, soft_fraction=1.0) # no run=
# add(...) = charge(enforce=False) — "not enforced" never means "not seen".
.by_stage / .stage_summary() / .mark() # what a round burned, live (by_round[i] deleted — no reader;
# per-round money is CallCost.round in telemetry/cost.jsonl)
-from codeverse.tracks.candidates import CandidateRecord, rank_candidates, decide_best # pure decision logic
-from codeverse.tracks.candidates import run_best_of_n, choose_best_round, quick_render # N parallel baselines in <ws>/_cand/c<k>
+from codeverse3d.tracks.candidates import CandidateRecord, rank_candidates, decide_best # pure decision logic
+from codeverse3d.tracks.candidates import run_best_of_n, choose_best_round, quick_render # N parallel baselines in <ws>/_cand/c<k>
# each candidate IS steps._run_round(kind="candidate") in its sub-workspace: render=quick_render(ctx, round_index, build,
# measurement, *, pipeline) (4 views + the articulated pose views), geometry_views=False, its own events.jsonl and a
# one-sample judge → _cand/c<k>/judge/r00.json (a degraded verdict stays score None); crashed candidate retried once;
# selection by build_ok → quick score → fewer gate errors, pairwise within margin (booked stage=Stage.PAIRWISE);
# winner copied back, normal r00 pipeline follows; rounds/candidates.json IS record.extra["candidates"] (n, selected,
# candidates[], pairwise)
-from codeverse.tracks.articulated_object import default_motion_checks, expected_direction # gate "motion_direction"
-from codeverse.tracks.static_object import silhouette_gate, reference_refine_tasks # gate "reference_silhouette" (IoU<0.6 → WARN + refine task)
-from codeverse.tracks.depth import depth_budget, DepthBudget, scope_groups, PartScope, interfaces_text, \
+from codeverse3d.tracks.articulated_object import default_motion_checks, expected_direction # gate "motion_direction"
+from codeverse3d.tracks.static_object import silhouette_gate, reference_refine_tasks # gate "reference_silhouette" (IoU<0.6 → WARN + refine task)
+from codeverse3d.tracks.depth import depth_budget, DepthBudget, scope_groups, PartScope, interfaces_text, \
scoped_generation_enabled # complexity-aware budgets + per-part scoped generation
depth_budget(plan, *, build_timeout_s=300) -> DepthBudget # min/target/max triangles + max_build_s sized from
# the plan's LEAF count (parts × instances × children); .as_prompt() is the DETAIL BUDGET block every
# generate/refine/detail template shows in place of a flat "≤ 300k tris"
scope_groups(plan, *, files_for, max_groups=6, parts_per_scope=3, min_parts=8) -> [PartScope]
- # [] = one session owns the object (small plan, no per-part file ownership, or $CV3D_SCOPED_PARTS=off);
+ # [] = one session owns the object (small plan, no per-part file ownership, or $C3D_SCOPED_PARTS=off);
# otherwise attachment-subtree groups whose files are disjoint, so the sessions run in parallel
interfaces_text(plan, scope) -> str # the planned boxes of the neighbours this scope must weld to
-from codeverse.tracks.static_object import drift_gate, detail_instructions, DRIFT_GATE # gate "detail_drift":
+from codeverse3d.tracks.static_object import drift_gate, detail_instructions, DRIFT_GATE # gate "detail_drift":
# 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, \
+from codeverse3d.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, is_always_chapter
+from codeverse3d.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)
-from codeverse.tracks.graphics import seed_recipes, graphics_brief, cookbook_functions, EXTRA_KEY, RECIPES_REL
+from codeverse3d.tracks.graphics 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 to
# the HARNESS-OWNED src/recipes.glsl (RECIPES_REL; header "// harness-owned: … READ-ONLY …"; a resume appends
@@ -456,19 +456,19 @@ from codeverse.tracks.graphics import seed_recipes, graphics_brief, cookbook_fun
# {file, names, present, chapters, trimmed}. Never writes src/common.glsl — except the untouched skeleton,
# which loses the helpers recipes.glsl now provides (trim_skeleton_common; recipes are pasted first).
# GraphicsTrack.prepare() runs it after the skeleton and commits "recipes" when it wrote something.
-from codeverse.tracks.common import RunContext, Services # common.py; RunContext.single_shot / .agent_kind
+from codeverse3d.tracks.common import RunContext, Services # common.py; RunContext.single_shot / .agent_kind
# (Δ 2026-08-30) Services.connectivity(glb, language="", planned_edges=()) forwards the plan's attach_to pairs;
# spatial.contract.planned_joins(plan, measurement) -> [(child, (parent copies…))] spells them in GLB part names via
# spatial.contract.match_parts (instance copies Leg_0..n join the nearest parent copy — no regex on ids)
-from codeverse.judges.prompt_builder import gates_section, contact_ledger # (Δ 2026-08-30) contact_ledger(gates) finds the
+from codeverse3d.judges.prompt_builder import gates_section, contact_ledger # (Δ 2026-08-30) contact_ledger(gates) finds the
# connectivity report's INFO ledger; with it gates_section renders MEASURED STRUCTURE + one overlap line + planned joins
# (LEDGER_MAX_CONTACTS 24, LEDGER_MAX_JOINS 20, ground line for parts within GROUND_BAND_MM of the lowest point whose gap
# exceeds GROUND_GAP_REPORT_MM) and drops the per-pair penetration WARN prose; without it the pre-change text, byte for byte
-from codeverse.tracks.generation import write_files # (ws, files, *, allowed_roots, only=None, frozen=(), on_skip=None):
+from codeverse3d.tracks.generation import write_files # (ws, files, *, allowed_roots, only=None, frozen=(), on_skip=None):
# frozen = harness-owned paths a single-shot envelope may not rewrite (skipped with a reason, never an error)
-from codeverse.agents.cli_common import find_json_object, default_mcp_command # THE one JSON-envelope finder behind
+from codeverse3d.agents.cli_common import find_json_object, default_mcp_command # THE one JSON-envelope finder behind
# parse_gemini_json / parse_claude_json / parse_agy_json; default_mcp_command(ws, *, language, track, round_index)
-from codeverse.tracks.generation import generate, run_agent_task, parse_multifile, is_single_shot
+from codeverse3d.tracks.generation import generate, run_agent_task, parse_multifile, is_single_shot
GenerationTask.phase: int = 0 # tasks run in parallel WITHIN a phase, phases in ascending order
# (tracks.steps.run_generation_tasks). Only user: the scoped baseline — phase 0 = one session per
# part group (`baseline_<parts>`, own files only), phase 1 = ONE `assemble` session that owns the
@@ -481,15 +481,15 @@ tracks.common.generate_for(ctx: RunContext, task: GenerationTask) -> GenerationR
tracks.common.single_shot_agent_id(agent_id, chat_model_id='') -> str · single_shot_ctx(ctx) -> RunContext | None
# moved from tracks.scene_assets 2026-09-07 (never scene-specific)
# GenerationResult adds turns / sessions / turn_capped. A turn cap is applied ONLY if a caller
- # asks: task.max_turns > max_turns > $CV3D_AGENT_MAX_TURNS > settings.limits.agent_max_turns >
+ # asks: task.max_turns > max_turns > $C3D_AGENT_MAX_TURNS > settings.limits.agent_max_turns >
# DEFAULT_AGENT_MAX_TURNS (0 = leave AgentJob.max_turns at the backend's own default — a 28-turn
# default was measured and rejected, docs/COST.md §17). A session that hits a cap that IS set is
# asked for a final build + summary (WRAPUP_PROMPT) instead of being killed.
# EVERY session (attempt 1, <label>.a2 retry, <label>.wrapup) is charged as it ends.
-from codeverse.tracks.repair import build_with_repair # RepairOutcome(.ok/.repaired/.max_attempts, attempts, usage); build_with_repair(ctx, *, round_index, label, files_hint=None, max_attempts=None, timeout_s=None) — timeout_s clips every repair session (a scene asset's window)
+from codeverse3d.tracks.repair import build_with_repair # RepairOutcome(.ok/.repaired/.max_attempts, attempts, usage); build_with_repair(ctx, *, round_index, label, files_hint=None, max_attempts=None, timeout_s=None) — timeout_s clips every repair session (a scene asset's window)
# scene assets (tracks/scene_assets.py): build_threejs_asset / build_blender_asset climb ONE ladder (_ladder: single-shot → check → one feedback repair → agent session); a hero's parts come from the static planner (hero_plan); SceneThreeJsRuntime.render_asset(ws, name, out_dir) renders a module on the hero's quick rig; the assembled scene.js plays every GLB clone's clips (clone.userData.clipOffset de-phases a copy)
# languages/blender.write_blender_skeleton(ws, plan, *, ground_tol_m=0.002) — the self-check's stands-on-z=0 tolerance (a scene hero passes 0.02)
-from codeverse.tracks.steps import run_round, skip_judge_reason, emit_round_cost, record_aborted_round
+from codeverse3d.tracks.steps import run_round, skip_judge_reason, emit_round_cost, record_aborted_round
skip_judge_reason(ctx, *, renders, ignore_budget=False) -> str # "" = judge it. ONLY states where the
# verdict is never bought at all: no judge / no renders / budget already exceeded
# (docs/COST.md §17 — "no file change" and "build not repaired" were removed)
@@ -498,7 +498,7 @@ run_round(ctx, *, index, kind, tasks, pipeline, ..., previous_best=None, render=
# the clay/normals views
# emits cost.round {stages{}, judge_usd, total_usd, agent_turns, wasted, waste_reason}; on ANY exception it
# records what the round burned (rounds/aborted_rNN.json, ctx.extra["aborted_rounds"]) and re-raises
-from codeverse.tracks.planner import plan, ensure_acceptance # graphics uses tracks/graphics.plan_graphics
+from codeverse3d.tracks.planner import plan, ensure_acceptance # graphics uses tracks/graphics.plan_graphics
```
`run_round` = generate → commit → `build_with_repair` → measure → gates → render →
post-render gates → judge → commit. Post-render gates: static `reference_silhouette`
@@ -510,7 +510,7 @@ generation prompts.
## texturing/ (derived asset pack; code stays truth — object.glb is never touched)
```python
-from codeverse.texturing.run import texture_pass, texture_requested, load_report
+from codeverse3d.texturing.run import texture_pass, texture_requested, load_report
texture_requested(spec) -> bool # THE owner of "does this run texture?" (Spec.options.texture, or
# the legacy "texture" tag). Asked by tracks.lifecycle.finalise AND by the texture_pass spatial
# tool, which refuses in a run that did not ask — the tool is registered for every object track,
@@ -520,61 +520,61 @@ texture_pass(ws, spec, plan, *, model_id, image_model=None, judge=True, judge_mo
# 1 vision call material plan (cacheable) → tileable textures (mirror cross-fade, seam_score ≤ 0.08) → world-metre UV
# unwrap (planar/box/cylinder per part, tile_size_m) → artifacts/object_textured.glb → seam gate + before/after judge
# gate (ship iff Δoverall ≥ −0.01 AND materials criterion improved); record.extra["texturing"], events texture.*
-from codeverse.texturing.plan import material_plan, default_plan, TexturePlan
-from codeverse.texturing.generate import generate_textures # (Δ) FakeImageModel / procedural_texture
+from codeverse3d.texturing.plan import material_plan, default_plan, TexturePlan
+from codeverse3d.texturing.generate import generate_textures # (Δ) FakeImageModel / procedural_texture
# moved to tests/texturing/conftest.py 2026-08-30 — no production path could construct them
-from codeverse.texturing.plan import scene_texture_pack, texture_pack_prompt # 6–12 named tiles + manifest.json
+from codeverse3d.texturing.plan import scene_texture_pack, texture_pack_prompt # 6–12 named tiles + manifest.json
# under public/textures/ for scene prompts (URL /public/textures/<name>.png)
```
## flywheel/ + cli/
```python
-from codeverse.record.record import finalize_record, load_record, iter_runs, best_round_index, best_round_record
-from codeverse.addons.gallery.index import hero_view # (ws, rec) -> (rel, label, n_views): the card image, rebased via ws
-from codeverse.record.record import complexity_block, round_complexity # objective complexity of what shipped
+from codeverse3d.record.record import finalize_record, load_record, iter_runs, best_round_index, best_round_record
+from codeverse3d.addons.gallery.index import hero_view # (ws, rec) -> (rel, label, n_views): the card image, rebased via ws
+from codeverse3d.record.record import complexity_block, round_complexity # objective complexity of what shipped
# finalize_record fills record.extra["complexity"] = the BEST round's vector + plan_parts /
# parts_per_plan_part / by_round; every rounds_summary row gains "complexity" (the index or None)
-from codeverse.addons.dataset.export import export_samples # (runs_dir, out_dir, *, min_score=None, only_passed=False,
+from codeverse3d.addons.dataset.export import export_samples # (runs_dir, out_dir, *, min_score=None, only_passed=False,
# include_unbuilt=False, captions_dir=None, drop_duplicates=False) -> ExportReport{…, n_duplicates, duplicates, tiers}
-from codeverse.addons.dataset.quality import quality_tier, prompt_hash, find_duplicates # tiers: A passed & 0 gate errors, B passed,
+from codeverse3d.addons.dataset.quality import quality_tier, prompt_hash, find_duplicates # tiers: A passed & 0 gate errors, B passed,
# C best ≥ 0.6, D else; dedupe = (code fingerprint, prompt)
-from codeverse.addons.dataset.pairs import build_pairs # (runs_dir, out_jsonl, *, min_delta=0.05) -> n
-from codeverse.addons.dataset.refine import build_refine, transitions, RefineTransition, REFINE_KINDS, outcome_of
+from codeverse3d.addons.dataset.pairs import build_pairs # (runs_dir, out_jsonl, *, min_delta=0.05) -> n
+from codeverse3d.addons.dataset.refine import build_refine, transitions, RefineTransition, REFINE_KINDS, outcome_of
# build_refine(runs_dir, out_jsonl, **kw) -> (rows written, Counter of drop reasons); writes via a .part file
# transitions(runs_dir, *, threshold=MIN_PREFERENCE_DELTA, max_diff_bytes=200_000, with_code=False,
# drops=None) -> Iterator[RefineTransition]; outcome_of(delta, threshold) -> the label
# one row per round i -> i+1 the harness asked to change; outcome improved|regressed|unchanged|unscored
# (threshold: pairs.MIN_PREFERENCE_DELTA); dropped rows carry the reason (no_predecessor / no_commit /
# predecessor_build_failed / predecessor_unjudged / git_read_failed / duplicate_run)
-from codeverse.record._git import read_tree_at, diff_between, changed_files_between, commit_exists, GitReadError
+from codeverse3d.record._git import read_tree_at, diff_between, changed_files_between, commit_exists, GitReadError
# read_tree_at(ws, commit, *, paths=None) -> {path: bytes} via ls-tree + cat-file --batch — NEVER
# `git archive`, which renders content through a planted filter.<name>.smudge and has no --no-filters
# (tests/flywheel_cli); symlinks (mode 120000) are skipped; `paths` reads only those files
-from codeverse.record.record import unique_files, SUBRUN_DIRS, BATTERY_MARKERS
+from codeverse3d.record.record import unique_files, SUBRUN_DIRS, BATTERY_MARKERS
# unique_files(root, name) -> [Path]: every file called `name` under root ONCE per file on disk (follows
# the run/telemetry/trajectories symlink and collapses it; skips SUBRUN_DIRS = {_cand, _assets}) — the
# one walker behind eval/bench/session_stats.py, eval/bench/coupling_stats.py and cost.reconstruct.find_runs
# diff_between(ws, before, after, *, max_bytes=None) -> (text, untruncated size, was_truncated)
# changed_files_between(ws, before, after) -> [path]; commit_exists(ws, commit) -> bool
# both under GIT_SAFE_DIFF_FLAGS (--no-ext-diff --no-textconv) on top of workspace.GIT_SAFE_FLAGS
-from codeverse.workspace import GIT_SAFE_FLAGS, GIT_SAFE_DIFF_FLAGS, git_safe_env
+from codeverse3d.workspace import GIT_SAFE_FLAGS, GIT_SAFE_DIFF_FLAGS, git_safe_env
# every read of an agent-written repo goes through these. They do NOT disable .git/config —
# git reads it in full; `-c` only OVERRIDES three keys (hooksPath, fsmonitor, attributesFile)
# and the diff flags cover ext-diff/textconv, which is why a NAMED filter./diff. driver in .git/config
# is still live and why read_tree_at avoids every content-rendering command. git_safe_env drops
# the SYSTEM and GLOBAL config (GIT_CONFIG_NOSYSTEM, GIT_CONFIG_GLOBAL=/dev/null) and the
# inherited environment (HOME, PATH, GIT_TERMINAL_PROMPT)
-from codeverse.addons.dataset.captions import caption_sample # Δ (ws, record, model_id, *, model=None, out_dir=None) -> Captions;
+from codeverse3d.addons.dataset.captions import caption_sample # Δ (ws, record, model_id, *, model=None, out_dir=None) -> Captions;
# out_dir → side-car <out_dir>/<slug>.json, run untouched
-from codeverse.addons.gallery import build_index, default_roots, build_static, serve, GalleryApp # THE local gallery
+from codeverse3d.addons.gallery import build_index, default_roots, build_static, serve, GalleryApp # THE local gallery
# build_index(roots) -> GalleryIndex (sections of RunEntry; never raises per run)
# build_static(roots, out_html, *, embed=False) -> (path, n, index)
# render_static(index, *, embed=…, extra_html="") — eval/bench/report.py's page
# GalleryApp(roots, reload=False).route(path, query) -> Response (pure, testable)
# serve(roots, *, host=None, host_explicit=False, port=8765, reload=False)
-from codeverse.addons.gallery.urls import safe_join # (root, rel) -> Path inside root, else PathError
-from codeverse.addons.gallery.urls import content_type # .glb→model/gltf-binary, .py/.js/.frag→text/plain; charset=utf-8
-from codeverse.addons.dataset.index import build_index, query, summary # sqlite + parquet: adds quality_tier, gate_errors, cost_usd,
+from codeverse3d.addons.gallery.urls import safe_join # (root, rel) -> Path inside root, else PathError
+from codeverse3d.addons.gallery.urls import content_type # .glb→model/gltf-binary, .py/.js/.frag→text/plain; charset=utf-8
+from codeverse3d.addons.dataset.index import build_index, query, summary # sqlite + parquet: adds quality_tier, gate_errors, cost_usd,
# rounds, status, code_fingerprint, prompt_hash, duplicate_of, has_captions
3dcodeverse make [--profile economy|balanced|quality]|resume|status|show|render|judge|tools|mcp
|texture {pass,scene-pack,show}|cost {<slug>,show,cache,prices,profiles,estimate}
@@ -600,7 +600,7 @@ texture pass crossed the ceiling; the loop is already finished, so not `budget.e
`RoundRecord` gained `pairwise: PairwiseNote | None` (Δ 2026-08-30) — the paid tie-break
verdict, stored so `reconcile_resume` REPLAYS it (`candidates.replay_best_round`) instead
of re-ranking on score and reversing a comparison the run bought. `PairwiseNote` moved
-from `codeverse.tracks.candidates` to `codeverse.contracts.run` (it is pure data).
+from `codeverse3d.tracks.candidates` to `codeverse3d.contracts.run` (it is pure data).
`RunRecord` (record.json): spec, plan, workspace, status, rounds[RoundRecord],
best_round, baseline_score, final_score, total_usage, environment,
prompt_hashes{contract, cookbook, generate, refine}, error, extra{stop_reason,
diff --git a/harness/docs/RUNBOOK.md b/harness/docs/RUNBOOK.md
index e54a3cc5..fcc34a0a 100644
--- a/harness/docs/RUNBOOK.md
+++ b/harness/docs/RUNBOOK.md
@@ -22,20 +22,20 @@ python -m pytest tests -q -m live # OPT-IN: real API calls
/ `GOOGLE_API_KEY` → legacy `~/.config/astra3d/gemini_keys.env` (21 keys here).
All `gemini:*` models share one `KeyPool` (900 rpm/key, 30 s cooldown on 429; dead
keys benched 1 h and re-probed; 429s rotate to fresh keys for free).
- `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `CV3D_OPENAI_BASE_URL` for the other
+ `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `C3D_OPENAI_BASE_URL` for the other
providers (not set on this box → `anthropic:*` / `openai:*` unavailable).
-* Settings: `~/.config/codeverse/config.yaml` or `./codeverse.yaml`, overridden by env
- with prefix `CV3D_` and `__` nesting — e.g. `CV3D_RUNS_DIR=/data/runs`,
- `CV3D_RENDER__GPU=off`, `CV3D_BINARIES__BLENDER=/opt/blender/blender`,
- `CV3D_LIMITS__AGENT_TIMEOUT_S=900`, `CV3D_DEFAULT_CANDIDATES=2`.
- Defaults: runs_dir `runs/`, cache_dir `~/.cache/codeverse`, build/render timeout 300 s,
+* Settings: `~/.config/3dcodeverse/config.yaml` or `./3dcodeverse.yaml`, overridden by env
+ with prefix `C3D_` and `__` nesting — e.g. `C3D_RUNS_DIR=/data/runs`,
+ `C3D_RENDER__GPU=off`, `C3D_BINARIES__BLENDER=/opt/blender/blender`,
+ `C3D_LIMITS__AGENT_TIMEOUT_S=900`, `C3D_DEFAULT_CANDIDATES=2`.
+ Defaults: runs_dir `runs/`, cache_dir `~/.cache/codeverse3d`, build/render timeout 300 s,
agent timeout 1800 s, bpy RLIMIT 12 GB, 6 parallel agents, 3 parallel builds,
`default_judge gemini:gemini-3.1-pro-preview`, `default_candidates 1`.
* Blender: `settings.binaries.blender` else first `blender-5.0`/`blender`/… on PATH.
Always `-b --factory-startup`; the child env strips `PYTHONPATH`/`PYTHONHOME`.
* GPU rendering: `runtime_js/gpu_launch.cjs` tries Chrome with `--use-angle=gl-egl` +
Mesa d3d12 env and falls back to SwiftShader; probe cached in
- `~/.cache/codeverse/gpu_probe.json`. Force with `CV3D_RENDER_GPU=on|off|auto` or
+ `~/.cache/codeverse3d/gpu_probe.json`. Force with `C3D_RENDER_GPU=on|off|auto` or
`settings.render.gpu`. The graphics track uses moderngl the same way (d3d12 GPU
context first, llvmpipe fallback; no probe needed — `GlHost` decides per process).
@@ -95,10 +95,10 @@ round, then ≈ $0.36 / ~7 min per refine (give scenes `--max-minutes 60`).
* Cost accounting: `tokens.prompt` (total, incl. cached) is the input count; each
served model priced at its own rate.
* Cookbook copied to `ws/.3dcode/cookbook.md` (gemini-cli cannot read outside the ws).
-* MCP server argv is `[sys.executable, -m, codeverse.spatial.mcp_server, --workspace, ws]`;
+* MCP server argv is `[sys.executable, -m, codeverse3d.spatial.mcp_server, --workspace, ws]`;
server name `3dcode` → tools appear as `mcp_3dcode_<name>` (gemini) / `mcp__3dcode__<name>`
(claude). `3dcode mcp --workspace runs/<slug>` execs the same server;
- `python -m codeverse.spatial.mcp_server --workspace ws --list` prints the tools.
+ `python -m codeverse3d.spatial.mcp_server --workspace ws --list` prints the tools.
## 4. Where outputs land
@@ -159,12 +159,12 @@ unless you type `--host` yourself; it never serves a path outside the declared r
3dcode flywheel pairs runs/ pairs.jsonl [--min-delta 0.05]
3dcode flywheel refine runs/ refine.jsonl [--with-code]
# one row per round the harness asked to change; the row
- # schema is codeverse/addons/dataset/refine.RefineTransition and
+ # schema is codeverse3d/addons/dataset/refine.RefineTransition and
# INTERFACES has the call signatures. Training formats live
# in toolkits/llamafactory/, not here.
3dcode flywheel caption <slug> [--model …] [--out caps/] # --out = side-car mode, run untouched
3dcode flywheel index runs/ runs_index.sqlite
-python -m codeverse.addons.calibration runs/<slug> [runs/<slug2> …] --model gemini:gemini-3.1-pro-preview --n 3 --out out/
+python -m codeverse3d.addons.calibration runs/<slug> [runs/<slug2> …] --model gemini:gemini-3.1-pro-preview --n 3 --out out/
# re-judges recorded rounds; writes calibration_<model>.md/.json (never touches runs/)
```
**Do not run the offline suite while a battery is running.** The suite is 2 300+ tests on
@@ -174,7 +174,7 @@ re-run (`tests/scene_runtime/lib/*` first, since those hold the renderer longest
suite during a battery is **not evidence until it reproduces on a quiet machine** — re-run
it there before pushing, and if the same tests are red again, it is real. The mechanism is
the one the next paragraph describes: `tests/scene_runtime/lib/*` reach the battery's
-browser daemon through a shared `CV3D_CACHE_DIR`, so giving the suite its own cache dir may
+browser daemon through a shared `C3D_CACHE_DIR`, so giving the suite its own cache dir may
let the two coexist.
The same holds for a box loaded by OTHER work. On 2026-09-05, with 12 `proseg` processes
@@ -198,7 +198,7 @@ and measured 38 970 ms at load ~100 with `ok=True` — the build succeeded, the
busy. All three are the same story, and none of them is to be "fixed" by loosening what
it asserts.
-**Two arms at once still want separate `CV3D_CACHE_DIR`, though the browser no longer
+**Two arms at once still want separate `C3D_CACHE_DIR`, though the browser no longer
depends on it.** Until 2026-09-05 the daemon advertised its endpoint at
`CACHE_DIR/browser_<backend>.json`, a newer daemon superseded an older one, and two
worktrees sharing a cache ended up on ONE browser: the arm that did not launch it
@@ -232,13 +232,13 @@ statement about the generator.
**A battery launched with `3dcode` from a worktree runs the MAIN checkout's code.** `3dcode`
is a console script, so `sys.path[0]` is the venv's `bin`, never the cwd, and `import
-codeverse` finds the editable install. `--out eval/bench/out/<name>` IS relative to the cwd,
+codeverse3d` finds the editable install. `--out eval/bench/out/<name>` IS relative to the cwd,
so the OUTPUT lands in the worktree while the CODE that produced it is the main tree's —
an arm that looks like it is testing your branch and is testing `main` (measured
2026-09-05: the first `scenes_v1` battery, launched from `local/worktrees/integrate`, ran
entirely on the main checkout). `python -c` and `pytest` do not have this problem because
they put the cwd on the path. Export `PYTHONPATH=<worktree>/harness` before the command,
-and have the arm script REFUSE TO RUN when `codeverse.__file__` and `runtime_js_dir()` are
+and have the arm script REFUSE TO RUN when `codeverse3d.__file__` and `runtime_js_dir()` are
not the tree you meant — `local/scripts/run_scene_fixed.sh` is the pattern, and it also
asserts that the specific fixes the arm exists to measure are present.
@@ -291,7 +291,7 @@ templates; the four h2h drivers started 50 minutes earlier still ran the old pyt
context key) but rendered the NEW template from disk → `UndefinedError: 'turn_discipline' is
undefined`, four prompts recorded `error` at 0 min. Rule: every new template variable is
guarded `{% if name is defined and name %}` for at least one wave, and the "Landing source
-changes while a wave is running" rule covers `codeverse/prompts/**` as well as moved names.
+changes while a wave is running" rule covers `codeverse3d/prompts/**` as well as moved names.
### 7.u `bench run --redo-status` starts the redo fresh (since c828637)
@@ -325,7 +325,7 @@ the same day so the storm budget no longer needs `ab_plan`.
call waits through the retry budget first, an agent session spends its wall clock on 15–23
turns, and a hard prompt burns the whole hour without one judged round — measured 2026-08-26 on
`fancy_v1`: the first six pairs ended `budget` with `judge.done = 0`. When
-`codeverse.models.health.probe()` shows the generator below the 0.75 bar, launch (or redo) with
+`codeverse3d.models.health.probe()` shows the generator below the 0.75 bar, launch (or redo) with
`--max-minutes 120 --wait-for-provider 60`, and redo the storm's rows rather than reading them:
`--redo-status error,infra_failed,budget` (add `build_failed` only when a harness defect, not the
model, produced the zero — check `cell.json`'s `error`).
@@ -365,7 +365,7 @@ model, produced the zero — check `cell.json`'s `error`).
## Landing source changes while a wave is running
Workers (`3dcode make`, `ab_plan.py cell`) are long-lived python processes that import
-`codeverse/` **lazily**: a module already in `sys.modules` stays as it was at spawn time, a
+`codeverse3d/` **lazily**: a module already in `sys.modules` stays as it was at spawn time, a
module first touched later comes from the tree as it is *then*. Two measured failures on
2026-08-26:
@@ -385,6 +385,6 @@ Rules:
3. After landing anything, check every driver's `results.jsonl` for `ImportError` rows and redo
them from a **fresh** driver with `--redo-status error` (the old driver's own modules are
stale too).
-4. Count harness processes with `codeverse.models.health.pool_budget()`, never `pgrep | grep`
+4. Count harness processes with `codeverse3d.models.health.pool_budget()`, never `pgrep | grep`
(it counts its own shell — measured: 3 phantoms on an idle box); kill by PID, never by
pattern (13 unrelated runs died to one `pkill -f "3dcode make"`).
diff --git a/harness/docs/RUN_LAYOUT.md b/harness/docs/RUN_LAYOUT.md
index 2e39632f..27bca735 100644
--- a/harness/docs/RUN_LAYOUT.md
+++ b/harness/docs/RUN_LAYOUT.md
@@ -66,7 +66,7 @@ never enter the code snapshot.
## `deliverable/`
-Built by `codeverse.record.deliverable.build_deliverable(ws, record)` from the
+Built by `codeverse3d.record.deliverable.build_deliverable(ws, record)` from the
**best round** (`record.best_round`, else the highest judged score):
```
@@ -106,7 +106,7 @@ the packager produces no diff.
never guessed. A track may publish real values as
`record.extra["sampling"][<role>]` and they win (`source: observed`).
* **`usage.jsonl`** — one priced row per model call, in the
- **`codeverse.cost` ledger format** (`CallCost`: tokens, unit prices, price
+ **`codeverse3d.cost` ledger format** (`CallCost`: tokens, unit prices, price
provenance, stage, role, outcome). There is exactly one ledger in the
harness: when the run wrote a live one (`<run>/telemetry/cost.jsonl`; the root
`cost_ledger.jsonl` is a symlink alias, a real root file only in pre-2026-08-23 runs)
diff --git a/harness/docs/SKILLS.md b/harness/docs/SKILLS.md
index 3d4a215b..203bd8ba 100644
--- a/harness/docs/SKILLS.md
+++ b/harness/docs/SKILLS.md
@@ -4,7 +4,7 @@ A **skill** is a task-scoped rule sheet the harness attaches to a coding session
automatically — from the track, the language, the round kind, the plan, and **the previous
round's gate findings**. Nobody writes `skills: [...]`.
-It is not a renamed cookbook chapter. The cookbook (`codeverse/prompts/<lang>/cookbook.md`)
+It is not a renamed cookbook chapter. The cookbook (`codeverse3d/prompts/<lang>/cookbook.md`)
stays the reference manual with the copyable code; a skill states rules and numbers and
names the cookbook section to fetch. Two libraries of truth would be worse than one.
@@ -14,7 +14,7 @@ themselves** — proven live, see §7. (The in-process `api-agent`, the one bac
needed harness-side injection, was deleted 2026-08-28; an unclassified backend still
gets the routed index as the safe default.)
-Everything is behind `CV3D_SKILLS`. **It ships OFF**, because `api-agent` read 0 of 5
+Everything is behind `C3D_SKILLS`. **It ships OFF**, because `api-agent` read 0 of 5
routed bundles in the measured A/B while the three subscription CLIs read all five.
§6 has the numbers.
@@ -22,9 +22,9 @@ routed bundles in the measured A/B while the three subscription CLIs read all fi
## 0. How the library is managed
-**One library, one policy, thin adapters.** The bundles under `codeverse/skills/<name>/`
+**One library, one policy, thin adapters.** The bundles under `codeverse3d/skills/<name>/`
are plain [agentskills.io](https://agentskills.io/specification) `SKILL.md` directories and
-know nothing about any backend — anyone can `cp -r codeverse/skills/<name> ~/.claude/skills/`
+know nothing about any backend — anyone can `cp -r codeverse3d/skills/<name> ~/.claude/skills/`
and use them without this harness at all. `router.py` picks the set from typed inputs.
Everything that genuinely differs between coding agents is **two bits**, and they live in
@@ -111,32 +111,32 @@ This is the difference between a metric and a number that would have read 100% f
| skill | track | language | evidence | lines | tokens | routes |
|---|---|---|---|---|---|---|
-| `cv3d-part-contact` | object tracks | any | measured | 125 | 1,707 | R1, R2 |
-| `cv3d-bbox-contract` | object + scene | any | measured | 75 | 1,081 | R3, R4 |
-| `cv3d-repeats-and-mirrors` | object tracks | any | measured | 112 | 1,527 | R6, R7 |
-| `cv3d-blender-forms` | any | blender, urdf_blender | measured | 97 | 1,811 | R8, R9 |
-| `cv3d-urdf-joints` | articulated_object | urdf_blender | measured | 139 | 1,989 | R12, R13 |
-| `cv3d-scene-composition` | scene | scene_threejs | mixed | 118 | 1,691 | R14, R15 |
-| `cv3d-scene-lighting` | scene | scene_threejs | mixed | 126 | 1,959 | R16, R17 |
-| `cv3d-scene-motion` | scene | scene_threejs | mixed | 178 | 2,223 | R18, R19 |
-| `cv3d-threejs-shader-traps` | scene + static | threejs both | mixed | 112 | 1,734 | R20, R21 |
-| `cv3d-glsl-craft` | graphics | glsl_shader | mixed | 140 | 1,958 | R22, R24-glsl |
-| `cv3d-opengl-pipeline` | graphics | opengl_python | mixed | 98 | 1,497 | R23, R24-opengl |
-| `cv3d-cadquery-forms` | any | cadquery | **inherited-unverified** | 82 | 1,482 | R10 |
-| `cv3d-threejs-forms` | static_object | threejs | **inherited-unverified** | 120 | 1,929 | R11 |
-
-**All seventeen ship OFF** (`CV3D_SKILLS` unset). Zero have a measured effect; see
+| `c3d-part-contact` | object tracks | any | measured | 125 | 1,707 | R1, R2 |
+| `c3d-bbox-contract` | object + scene | any | measured | 75 | 1,081 | R3, R4 |
+| `c3d-repeats-and-mirrors` | object tracks | any | measured | 112 | 1,527 | R6, R7 |
+| `c3d-blender-forms` | any | blender, urdf_blender | measured | 97 | 1,811 | R8, R9 |
+| `c3d-urdf-joints` | articulated_object | urdf_blender | measured | 139 | 1,989 | R12, R13 |
+| `c3d-scene-composition` | scene | scene_threejs | mixed | 118 | 1,691 | R14, R15 |
+| `c3d-scene-lighting` | scene | scene_threejs | mixed | 126 | 1,959 | R16, R17 |
+| `c3d-scene-motion` | scene | scene_threejs | mixed | 178 | 2,223 | R18, R19 |
+| `c3d-threejs-shader-traps` | scene + static | threejs both | mixed | 112 | 1,734 | R20, R21 |
+| `c3d-glsl-craft` | graphics | glsl_shader | mixed | 140 | 1,958 | R22, R24-glsl |
+| `c3d-opengl-pipeline` | graphics | opengl_python | mixed | 98 | 1,497 | R23, R24-opengl |
+| `c3d-cadquery-forms` | any | cadquery | **inherited-unverified** | 82 | 1,482 | R10 |
+| `c3d-threejs-forms` | static_object | threejs | **inherited-unverified** | 120 | 1,929 | R11 |
+
+**All seventeen ship OFF** (`C3D_SKILLS` unset). Zero have a measured effect; see
`docs/SKILLS_LEDGER.md` §5 for why that is the honest default and what flips one on.
-Shipping a subset needs no new machinery — `CV3D_SKILLS_ONLY` restricts the library before
-routing, so `CV3D_SKILLS=1 CV3D_SKILLS_ONLY=<names>` is the vehicle when a bundle earns it.
+Shipping a subset needs no new machinery — `C3D_SKILLS_ONLY` restricts the library before
+routing, so `C3D_SKILLS=1 C3D_SKILLS_ONLY=<names>` is the vehicle when a bundle earns it.
### Retired
| skill | cut | why |
|---|---|---|
-| `cv3d-form-manifest` | 2026-08-25 | opened **2 of 19** times (11%, CI [3%, 31%]) — unread before *and* after its description was rewritten to lead with the trigger. The only bundle whose read-rate interval excluded every other's, and it cost ~1,917 tokens in 19 of the 27 sessions that could have read it. Text and full numbers: `docs/skills-attic/cv3d-form-manifest/` |
+| `c3d-form-manifest` | 2026-08-25 | opened **2 of 19** times (11%, CI [3%, 31%]) — unread before *and* after its description was rewritten to lead with the trigger. The only bundle whose read-rate interval excluded every other's, and it cost ~1,917 tokens in 19 of the 27 sessions that could have read it. Text and full numbers: `docs/skills-attic/c3d-form-manifest/` |
-An attic bundle is not loaded: `all_skills()` reads `codeverse/skills/*/SKILL.md` only, so it
+An attic bundle is not loaded: `all_skills()` reads `codeverse3d/skills/*/SKILL.md` only, so it
costs no index line and no tokens. Its route id (**R5**) is retired and never reused — a run
record refers to a routing decision by id, so recycling it would silently relabel history.
`tests/skills/test_registry.py::RETIRED_RULES` pins that.
@@ -146,7 +146,7 @@ record refers to a routing decision by id, so recycling it would silently relabe
`evidence` is about **provenance** — where the bundle's prose came from. A bundle can be
`measured` for provenance and have **no measured effect**; five are. Every bundle also
declares **one deterministic quantity it claims to move**, in its own frontmatter
-(`target_metric`, `target_direction`, `target_baseline`) and in `codeverse/addons/skill_targets.py`.
+(`target_metric`, `target_direction`, `target_baseline`) and in `codeverse3d/addons/skill_targets.py`.
`python eval/bench/skill_targets.py eval/bench/out` prints them all — per battery or paired across an
A/B's two arms — and **`docs/SKILLS_LEDGER.md` is the row-by-row maintenance surface**.
@@ -156,7 +156,7 @@ requires (design §5.2 law 3).
## 3. Routing
-`codeverse/skills/registry.py` holds the typed table (R1–R24) and `finding_kind()`, the one
+`codeverse3d/skills/registry.py` holds the typed table (R1–R24) and `finding_kind()`, the one
place a gate message is pattern-matched; its router half (`select()`, `skills_for()`) turns
`(track, language, kind, plan signals, findings)` into a ranked, capped, reasoned set.
@@ -165,7 +165,7 @@ Four laws, all tested:
1. **Gate findings outrank everything.** A row that answers a finding sits at priority
≥ 90; standing rows sit at ≤ 80. A repair round spends its budget on what broke. This is
the input no CLI's own skill loader can see, and the reason we route in code.
-2. **The cap is 5** (`CV3D_SKILLS_MAX`). It cuts the low-priority tail, never the
+2. **The cap is 5** (`C3D_SKILLS_MAX`). It cuts the low-priority tail, never the
gate-fired head.
3. **Quiet kinds attach nothing** on their own — `asset`, `asset_fix`, `reference` are
short, narrow sessions with no defect class attached to them. A gate-fired row still
@@ -228,7 +228,7 @@ why every one of them would report 100% whether or not the agent chose to read a
What is *not* ambiguous is the behavioural evidence underneath: codex's
`src/parts/common.py` came back with `WELD_OVERLAP = 0.001` and the comment
-"1 mm weld overlap with the seat" — `cv3d-part-contact`'s recommendation, inside
+"1 mm weld overlap with the seat" — `c3d-part-contact`'s recommendation, inside
`PENETRATION_WARN_M`. Left to the prompt corpus alone it would have read 2–5 mm (§9). The
content reached the model and changed the output; the atime number is what cannot prove it.
@@ -264,8 +264,8 @@ the `live` cases drive a real CLI.
Two contradiction checks are worth separating, because they answer different questions:
* **value-level**, library-wide: two skills may not point one claim key at different
- numbers. Compared on the *pre-scale value*, not the rendered text — `cv3d-bbox-contract`
- says "1 cm" and `cv3d-repeats-and-mirrors` says "0.01" metres, and both are right.
+ numbers. Compared on the *pre-scale value*, not the rendered text — `c3d-bbox-contract`
+ says "1 cm" and `c3d-repeats-and-mirrors` says "0.01" metres, and both are right.
Failing that pair would teach the next author to delete the claim.
* **text-level**, co-routing only: two skills that can land in one session and chose the
same units must read the same.
@@ -279,14 +279,14 @@ Two contradiction checks are worth separating, because they answer different que
the check is now standing.
* **Four bundles' `verified:` dates were YAML dates, not strings** — the spec says metadata
is string→string. Quoted; `validate_bundle` now reports it instead of coercing.
-* **`cv3d-opengl-pipeline` claimed `measured` on n=5.** Now `mixed`.
+* **`c3d-opengl-pipeline` claimed `measured` on n=5.** Now `mixed`.
* **The api-agent index cost 780 tokens for five skills** against a 300-token budget,
because it quoted whole 1024-char descriptions. It quotes the first clause now (356
tokens for the worst real session, 400 is the ceiling): our router already decided, so
that index is a pointer, not a matcher.
* **The live smoke had never run.** It skipped every CLI because it looked for a binary
named after the agent kind — `gemini-cli` runs `gemini`, `claude-code` runs `claude`.
-* **A body could name one of our constants without pinning it.** `cv3d-glsl-craft` quoted
+* **A body could name one of our constants without pinning it.** `c3d-glsl-craft` quoted
`DUPLICATE_DIFF` at `1e-4` with no claim row behind it, so moving the constant would have
left a confident sentence with the old number and nothing to notice.
* **The read probe was measuring git**, not the agent (§1). The most consequential finding
@@ -296,11 +296,11 @@ Two contradiction checks are worth separating, because they answer different que
## 6. Does it help? The A/B
-**Verdict: ship OFF behind `CV3D_SKILLS`.**
+**Verdict: ship OFF behind `C3D_SKILLS`.**
### The rig
-`eval/bench/ab_plan.py`, arms differing in exactly one thing — `CV3D_SKILLS=on` on the variant —
+`eval/bench/ab_plan.py`, arms differing in exactly one thing — `C3D_SKILLS=on` on the variant —
on `static_objects_v2`, `--rounds 1`, paired, generator `gemini-cli:gemini-3.6-flash`,
fixed judge `gemini:gemini-3.1-pro-preview` at `n_samples 2`, `--max-in-flight 8` against
32–48 of pool headroom, `--wait-for-provider`. The eight prompt ids are **the same eight
@@ -339,16 +339,16 @@ planned 1 part and 10 parts for the same pitcher pump. The dominant variance ter
Recorded here because it is the more useful half of this section. The first run of this
A/B was **void**: `ab_plan.spawn_cell` starts each child as a file path, so `sys.path[0]`
-is `eval/bench/`, and `ab_plan` imported `codeverse._compat` *above* its own `sys.path`
-bootstrap — which let the editable install resolve `codeverse` to the **main tree**. Both
-arms ran a harness with no `codeverse/skills` package at all. No error, no warning; the
+is `eval/bench/`, and `ab_plan` imported `codeverse3d._compat` *above* its own `sys.path`
+bootstrap — which let the editable install resolve `codeverse3d` to the **main tree**. Both
+arms ran a harness with no `codeverse3d/skills` package at all. No error, no warning; the
variant workspace simply had no `.agents/skills` directory and no `skills.attached` event,
and the run would have reported "no effect" with a straight face.
The plan-loop wave hit the same thing hours earlier
(`eval/bench/out/plan_loop/C0/invalid_attempt1_maintree_import`) and worked around it with
`PYTHONPATH` in a launch script. It is fixed in the code now — bootstrap first, a guard
-that refuses to start against a foreign `codeverse`, and
+that refuses to start against a foreign `codeverse3d`, and
`tests/compare_bench/test_worktree_import.py` — because a workaround protects whoever
remembers it, not the run.
@@ -401,7 +401,7 @@ line in a long markdown file plus a generic `read_file`.
### Verdict
-**Ship OFF behind `CV3D_SKILLS`**, and not because the number was negative:
+**Ship OFF behind `C3D_SKILLS`**, and not because the number was negative:
1. On `api-agent`, the read rate is **0 %** with ground truth. Shipping a default-on feature
that its main generator does not use would pay 356 tokens a turn for nothing.
@@ -448,7 +448,7 @@ So at n = 8 with a free plan, neither readout can separate this switch from noth
highest-value change and nothing else is worth running before it.
1. **Reconcile the prompt corpus on weld overlap** (§9). `contract.md` is fixed, but
`tracks/generate_static.j2` still says "overlap neighbours by ≥ 0.002 m (push a leg
- 2-5 mm into the seat)". While that stands, `cv3d-part-contact` is arguing with the
+ 2-5 mm into the seat)". While that stands, `c3d-part-contact` is arguing with the
prompt inside the same session, and the pair-count readout is measuring the argument.
2. Only then re-run this A/B, with the gate counts as the primary readout.
@@ -494,26 +494,26 @@ chose to go deeper" (§1).
## 8. How to add a skill
-1. `codeverse/skills/<name>/SKILL.md` — `name` equals the directory name, lowercase
+1. `codeverse3d/skills/<name>/SKILL.md` — `name` equals the directory name, lowercase
`a-z0-9` and single hyphens; `description` (≤ 1024 chars) says WHAT and WHEN, because it
is the only text a CLI matches on; **no `<` or `>` anywhere in the frontmatter** (the
spec's prompt-injection rule); only spec keys at the top level, everything of ours under
`metadata`; `metadata.evidence` and `metadata.verified` (a *quoted* ISO date) required.
-2. `codeverse/skills/<name>/references/*.md` — **required**, one level. Without it the
+2. `codeverse3d/skills/<name>/references/*.md` — **required**, one level. Without it the
bundle can never score on the read metric.
-3. `codeverse/skills/_claims/<name>.toml` — one row per number the body quotes from live
+3. `codeverse3d/skills/_claims/<name>.toml` — one row per number the body quotes from live
code, so moving the constant breaks the test that ships the sentence:
```toml
[[claim]]
key = "penetration_error_m"
text = "10 mm" # must appear in the body
- python = "codeverse.spatial.connectivity:PENETRATION_ERROR_M"
+ python = "codeverse3d.spatial.connectivity:PENETRATION_ERROR_M"
scale = 1000
format = "{:.0f} mm"
```
-4. Add its rows to `ROUTES` in `codeverse/skills/registry.py`, in the same commit.
-5. Add a `Target` row to `codeverse/addons/skill_targets.py` and the matching `target_*` keys to
+4. Add its rows to `ROUTES` in `codeverse3d/skills/registry.py`, in the same commit.
+5. Add a `Target` row to `codeverse3d/addons/skill_targets.py` and the matching `target_*` keys to
the frontmatter — the ONE deterministic quantity the bundle claims to move, its
direction, and its baseline from `python eval/bench/skill_targets.py eval/bench/out`. If no
deterministic instrument can see the claim, say so with `measurable=False` and a
@@ -564,7 +564,7 @@ so; the rest are live.
0.450 vs 0.654 on identical arms. The spread is *generation* noise at fixed plan size.
Do not budget an A/B on the assumption that pinning buys power.
* **`shader_preflight` is not a gate.** `check_shaders` is an agent-invocable tool, never a
- pipeline step, so it reaches no `record.json`. `cv3d-threejs-shader-traps` is therefore
+ pipeline step, so it reaches no `record.json`. `c3d-threejs-shader-traps` is therefore
**not instrumented**, which is a stronger statement than "always clean". Merge it into
`rounds[].gates` before spending anything on that bundle.
* **`eval/bench/_fixed_eval.FixedEvaluator` is blender-only.** It pins `get_runtime(BLENDER)` and
@@ -577,7 +577,7 @@ so; the rest are live.
only where there was nothing to see. Use trajectory `read_skill` calls as ground truth.
* **CLI backends' read rate is UNMEASURED — not 5/5.** `claude_code.py` uses
`--output-format json`, which returns only the final result and no tool stream; the logs
- contain zero occurrences of any `cv3d-` name. Switching to `--output-format stream-json`
+ contain zero occurrences of any `c3d-` name. Switching to `--output-format stream-json`
would give the CLI arm the same exact ground truth api-agent has. The earlier "5 of 5"
claim rested on the atime probe and should not be repeated.
* **`codex` can drop a round from the denominator.** It emitted `skills.attached` with no
@@ -591,7 +591,7 @@ so; the rest are live.
("overlap neighbours by ≥ 0.002 m"), `tracks/assemble_static.j2`,
`generate_static_part.j2`, `system/harness_contract.md` ("seams overlap by ≥ 2 mm") and
three cookbooks still teach 2–5 mm, at or above `PENETRATION_WARN_M`. **This is the single
- most likely reason `cv3d-part-contact` would fail to move the number it targets, and it is
+ most likely reason `c3d-part-contact` would fail to move the number it targets, and it is
a prompt-corpus change with its own measurement. Do it before re-running that A/B.**
* **`ENV_RECIPES` / `ZONE_RECIPES` inlining in `tracks/scene.py` is untouched** — up to 6,000
unconditional tokens per env/zone session, never A/B'd against a routed skill. Now that the
@@ -606,5 +606,5 @@ so; the rest are live.
nothing says how often a skill was read whose defect class never fired in that run. That
number decides whether the cap of 5 is too generous.
* **`scene_frames/content_*` has no classified kind**, so frame coverage — half of what
- `cv3d-scene-composition` teaches — neither routes nor counts. Adding a kind widens routing,
+ `c3d-scene-composition` teaches — neither routes nor counts. Adding a kind widens routing,
which is an effect claim and needs its own evidence.
diff --git a/harness/docs/SKILLS_LEDGER.md b/harness/docs/SKILLS_LEDGER.md
index b8dded22..88314ff4 100644
--- a/harness/docs/SKILLS_LEDGER.md
+++ b/harness/docs/SKILLS_LEDGER.md
@@ -7,14 +7,14 @@ called earned.
**Library: 17 bundles** (13 + the 2026-09-01 scene-graphics port: atmosphere, water,
night, materials — routes R25-R28, evidence `inherited-unverified` from the
-scene_multifile_graphics reference ledger). All 17 ship **OFF** (`CV3D_SKILLS` unset). Zero have a measured
+scene_multifile_graphics reference ledger). All 17 ship **OFF** (`C3D_SKILLS` unset). Zero have a measured
effect. §5 says why that is the honest default and what would change it.
Three files hold it up:
| file | what it is |
|---|---|
-| `codeverse/addons/skill_targets.py` | the table — one `Target` row per bundle |
+| `codeverse3d/addons/skill_targets.py` | the table — one `Target` row per bundle |
| `eval/bench/skill_targets.py` | the readout — one command, battery **or** A/B |
| `tests/skills/test_targets.py` | the pins — the rows exist, the gate kinds are still live, the frontmatter agrees, the readout counts what the row says |
@@ -22,7 +22,7 @@ Three files hold it up:
python eval/bench/skill_targets.py eval/bench/out # every baseline, whole corpus
python eval/bench/skill_targets.py eval/bench/out --round first # where a bundle acts, before repair
python eval/bench/skill_targets.py eval/bench/out/ab_skills # control vs variant, paired
-python eval/bench/skill_targets.py eval/bench/out --skill cv3d-part-contact --per-run --json
+python eval/bench/skill_targets.py eval/bench/out --skill c3d-part-contact --per-run --json
```
---
@@ -30,7 +30,7 @@ python eval/bench/skill_targets.py eval/bench/out --skill cv3d-part-contact --pe
## 0a. In flight — the first whole-library pinned A/B (2026-08-26)
`eval/bench/out/fancy_v1/{bl_a,bl_b,cq,tj}`: 16 hard, design-realistic object prompts (blender 10,
-cadquery 3, threejs 3), `CV3D_SKILLS=1` (the whole library) against OFF, plans pinned, the same
+cadquery 3, threejs 3), `C3D_SKILLS=1` (the whole library) against OFF, plans pinned, the same
fixed judge, on all 22 keys. Read it out with `python eval/bench/skill_targets.py eval/bench/out/fancy_v1/<driver>`
per driver, or the merged paired table. What it can and cannot say, stated before the data
lands: n ≤ 16 pairs against a judged-score floor of 0.202 resolves a ~0.2 mean move, not a
@@ -74,7 +74,7 @@ own target metrics. The results, stated plainly:
* **No bundle's target moved, separated from that metric's own A/A floor.** Not one. Every
A/B came back `underpowered`, and for several the underpowering is structural rather than
a matter of n. **So nothing was promoted to `measured`, and nothing ships on.**
-* **One bundle was cut**: `cv3d-form-manifest`, read 2 of 19 times before *and* after its
+* **One bundle was cut**: `c3d-form-manifest`, read 2 of 19 times before *and* after its
description was rewritten. The numbers are in this ledger; the bundle's text is in git history
(`docs/skills-attic/`, removed 2026-09-21).
* **Four bundles were revised by fixing their delivery, not their prose.** The scene track
@@ -143,21 +143,21 @@ so every number below carries the snapshot it was read from.
| bundle | evidence (provenance) | target metric | dir | baseline — last round | first round | graded n | effect | status |
|---|---|---|---|---|---|---|---|---|
-| **cv3d-part-contact** | measured | `interpenetrating_pairs` | down | **3.25** mean / 2.0 med, n=177; 71 at 0 | 4.91 / 3.0 | 145+25 | none — underpowered (needs ~483 pairs) | **best live candidate.** Routed, delivered, read 55%. Blocked only by the noise floor. Needs a *rate* metric (§5) |
-| **cv3d-bbox-contract** | measured | `contract_findings` | down | **1.47** mean / 1.0 med, n=186; 72 at 0 | 1.20 / 1.0 | 145+25+9 | none — underpowered (~449 pairs) | most-listed and best-read bundle (68%). Its A/B produced 0 usable pairs: the variant hit its budget cap with **zero gated rounds** while still being judged (§4) |
-| **cv3d-repeats-and-mirrors** | measured | `contract_instance_findings` | down | **0.37** mean / 0.0 med, n=177; **142 of 177 at 0** | 0.32 / 0.0 | 145+25 | none — 1 pinned A/A pair, tied | **floor effect.** Read 38%, the lowest of any delivered bundle. Needs an instanced-prompt slice *and* a read-rate re-check |
-| **cv3d-blender-forms** | measured | `blender_lint_findings` | down | **0.87** mean / 0.0 med, n=170; **137 of 170 at 0** | 0.60 / 0.0 | 145+25 | none — structural (~230 pairs to halve) | 81% of runs are already clean and sd (2.31) is 2.7× the mean. The metric also cannot see the form-to-technique table, which is half the bundle |
-| **cv3d-urdf-joints** | measured | `joint_sweep_errors` | down | **6.96** mean / 0.0 med, n=25; 21 at 0, worst 101 | 9.72 / 0.0 | 25 | none — **~1420 pairs**, not bought | heavily tailed: three runs carry every error. Do not A/B this metric. Read 4/4 |
-| **cv3d-glsl-craft** | mixed | `mean_edge_density` | up | **0.221** mean / 0.186 med, n=17 (0.031–0.464) | 0.220 / 0.192 | 17 | none — pinned A/A gave ±0.180 on identical arms | corpus nearly doubled (9→17). Still needs ~123 pairs; **its own A/A is the evidence against this metric** |
-| **cv3d-opengl-pipeline** | mixed | `gl_frame_findings` | down | **0.167** mean, n=6; 5 of 6 at 0 | same | 6 | none — floor effect | one finding in the whole corpus. Cannot go down much. Read 4/4 |
-| **cv3d-scene-lighting** | mixed | `dark_or_flat_frames` | down | **2.89** mean / 3.0 med, n=9 | **4.89 / 4.0 — 0 of 9 runs clean** | 9 | **never delivered until now** (§3) | **revised.** The largest untouched headroom in the library, in the exact stage that was skipped. Gate semantics changed today (§4) — re-baseline before pairing |
-| **cv3d-scene-composition** | mixed | `camera_placement_findings` | down | **0.56** mean, n=9; 7 at 0 | 0.44 / 0.0 | 9 | **never delivered until now** (§3) | **revised.** But the metric **under-counts by ~2×** — see §4. True first-round rate is 1.44/run, not 0.44 |
-| **cv3d-scene-motion** | mixed | `min_authored_changed_frac` | up | 0.038 mean / 0.027 med, n=9 | 0.024 / 0.019 | 9 | **UNMEASURABLE** (`measurable=false`) — see §6 | **revised (delivery).** Kept: its read demand has never been measurable either, so the cut rule's *and* is not satisfied |
-| **cv3d-threejs-shader-traps** | mixed | `shader_preflight_findings` | down | **0.00**, n=9 | 0.00, n=9 | 9 | **NOT INSTRUMENTED** — see §4 | **revised (delivery).** Every listing it has ever had was in a scene session that was never offered the read tool, so it is *unmeasured*, not unread |
-| **cv3d-cadquery-forms** | inherited-unverified | `build_failure_rate` | down | 0.00, n=4 (all 4 built) | same | **4** | no variance to move | **routed OFF.** Needs 20 graded cadquery runs; has **4**. Read 2/2 when forced on |
-| **cv3d-threejs-forms** | inherited-unverified | `missing_parts` | down | 0.00, n=3 | same | **3** | no variance to move | **routed OFF.** Needs 20 graded threejs runs; has 3. Read 2/2 when forced on |
-
-**Cut this wave:** `cv3d-form-manifest` (text in git history; `docs/skills-attic/` was removed 2026-09-21).
+| **c3d-part-contact** | measured | `interpenetrating_pairs` | down | **3.25** mean / 2.0 med, n=177; 71 at 0 | 4.91 / 3.0 | 145+25 | none — underpowered (needs ~483 pairs) | **best live candidate.** Routed, delivered, read 55%. Blocked only by the noise floor. Needs a *rate* metric (§5) |
+| **c3d-bbox-contract** | measured | `contract_findings` | down | **1.47** mean / 1.0 med, n=186; 72 at 0 | 1.20 / 1.0 | 145+25+9 | none — underpowered (~449 pairs) | most-listed and best-read bundle (68%). Its A/B produced 0 usable pairs: the variant hit its budget cap with **zero gated rounds** while still being judged (§4) |
+| **c3d-repeats-and-mirrors** | measured | `contract_instance_findings` | down | **0.37** mean / 0.0 med, n=177; **142 of 177 at 0** | 0.32 / 0.0 | 145+25 | none — 1 pinned A/A pair, tied | **floor effect.** Read 38%, the lowest of any delivered bundle. Needs an instanced-prompt slice *and* a read-rate re-check |
+| **c3d-blender-forms** | measured | `blender_lint_findings` | down | **0.87** mean / 0.0 med, n=170; **137 of 170 at 0** | 0.60 / 0.0 | 145+25 | none — structural (~230 pairs to halve) | 81% of runs are already clean and sd (2.31) is 2.7× the mean. The metric also cannot see the form-to-technique table, which is half the bundle |
+| **c3d-urdf-joints** | measured | `joint_sweep_errors` | down | **6.96** mean / 0.0 med, n=25; 21 at 0, worst 101 | 9.72 / 0.0 | 25 | none — **~1420 pairs**, not bought | heavily tailed: three runs carry every error. Do not A/B this metric. Read 4/4 |
+| **c3d-glsl-craft** | mixed | `mean_edge_density` | up | **0.221** mean / 0.186 med, n=17 (0.031–0.464) | 0.220 / 0.192 | 17 | none — pinned A/A gave ±0.180 on identical arms | corpus nearly doubled (9→17). Still needs ~123 pairs; **its own A/A is the evidence against this metric** |
+| **c3d-opengl-pipeline** | mixed | `gl_frame_findings` | down | **0.167** mean, n=6; 5 of 6 at 0 | same | 6 | none — floor effect | one finding in the whole corpus. Cannot go down much. Read 4/4 |
+| **c3d-scene-lighting** | mixed | `dark_or_flat_frames` | down | **2.89** mean / 3.0 med, n=9 | **4.89 / 4.0 — 0 of 9 runs clean** | 9 | **never delivered until now** (§3) | **revised.** The largest untouched headroom in the library, in the exact stage that was skipped. Gate semantics changed today (§4) — re-baseline before pairing |
+| **c3d-scene-composition** | mixed | `camera_placement_findings` | down | **0.56** mean, n=9; 7 at 0 | 0.44 / 0.0 | 9 | **never delivered until now** (§3) | **revised.** But the metric **under-counts by ~2×** — see §4. True first-round rate is 1.44/run, not 0.44 |
+| **c3d-scene-motion** | mixed | `min_authored_changed_frac` | up | 0.038 mean / 0.027 med, n=9 | 0.024 / 0.019 | 9 | **UNMEASURABLE** (`measurable=false`) — see §6 | **revised (delivery).** Kept: its read demand has never been measurable either, so the cut rule's *and* is not satisfied |
+| **c3d-threejs-shader-traps** | mixed | `shader_preflight_findings` | down | **0.00**, n=9 | 0.00, n=9 | 9 | **NOT INSTRUMENTED** — see §4 | **revised (delivery).** Every listing it has ever had was in a scene session that was never offered the read tool, so it is *unmeasured*, not unread |
+| **c3d-cadquery-forms** | inherited-unverified | `build_failure_rate` | down | 0.00, n=4 (all 4 built) | same | **4** | no variance to move | **routed OFF.** Needs 20 graded cadquery runs; has **4**. Read 2/2 when forced on |
+| **c3d-threejs-forms** | inherited-unverified | `missing_parts` | down | 0.00, n=3 | same | **3** | no variance to move | **routed OFF.** Needs 20 graded threejs runs; has 3. Read 2/2 when forced on |
+
+**Cut this wave:** `c3d-form-manifest` (text in git history; `docs/skills-attic/` was removed 2026-09-21).
### Read rate — the cheap filter, and the only thing that resolved
@@ -167,12 +167,12 @@ control bundle came back "opened" in 27 of 33 sessions.
| bundle | opened / listed (pooled) | 95% CI |
|---|---|---|
-| `cv3d-cadquery-forms`, `cv3d-threejs-forms`, `cv3d-urdf-joints`, `cv3d-glsl-craft`, `cv3d-opengl-pipeline` | 4/4 – 5/5 = **100%** | wide; 1-skill sets flatter |
-| `cv3d-bbox-contract` | 13/19 = **68%** | [46%, 85%] |
-| `cv3d-blender-forms` | 6/10 = **60%** | — |
-| `cv3d-part-contact` | 6/11 = **55%** | [28%, 79%] |
-| `cv3d-repeats-and-mirrors` | 3/8 = **38%** | [14%, 69%] |
-| ~~`cv3d-form-manifest`~~ | 2/19 = **11%** | **[3%, 31%] — excludes every other bundle. Cut.** |
+| `c3d-cadquery-forms`, `c3d-threejs-forms`, `c3d-urdf-joints`, `c3d-glsl-craft`, `c3d-opengl-pipeline` | 4/4 – 5/5 = **100%** | wide; 1-skill sets flatter |
+| `c3d-bbox-contract` | 13/19 = **68%** | [46%, 85%] |
+| `c3d-blender-forms` | 6/10 = **60%** | — |
+| `c3d-part-contact` | 6/11 = **55%** | [28%, 79%] |
+| `c3d-repeats-and-mirrors` | 3/8 = **38%** | [14%, 69%] |
+| ~~`c3d-form-manifest`~~ | 2/19 = **11%** | **[3%, 31%] — excludes every other bundle. Cut.** |
| the 4 scene bundles | 0/30 — **never delivered**, see §3 | not a read failure |
Overall, restricted to sessions actually offered the tool: **58% (51/88)** against the
@@ -184,7 +184,7 @@ wording A/B must hold the routed set size fixed or it measures the cap, not the
## 3. The revision this wave shipped: the scene track never delivered its skills
-The read loop saw `cv3d-scene-composition` / `-lighting` / `-motion` / `-threejs-shader-traps`
+The read loop saw `c3d-scene-composition` / `-lighting` / `-motion` / `-threejs-shader-traps`
at **0 opens across 30 listings** and revised their descriptions. That was the wrong fix, and
two effect owners independently found the right one in the code:
@@ -195,7 +195,7 @@ two effect owners independently found the right one in the code:
generation task to consume them — which is precisely "listed 3, opened 0".
* The router had `kinds=("env", "zone", "compose")` rows for these bundles all along
(registry R14–R21). **They were selected for the stages that need them and delivered to
- nobody.** `cv3d-scene-lighting` routes for `kind="env"` — the stage where a scene's
+ nobody.** `c3d-scene-lighting` routes for `kind="env"` — the stage where a scene's
lighting is authored.
**Fixed.** `_env_stage` / `_zones_stage` / `_assemble_stage` now go through
@@ -209,7 +209,7 @@ test now pins one attach before that one session.)
**What I expect it to do.** `dark_or_flat_frames` is **4.38 per run on the first gated
round with 0 of 8 runs clean** — the largest untouched headroom in the library, sitting in
-the one stage that was being skipped. If `cv3d-scene-lighting` does anything at all, this is
+the one stage that was being skipped. If `c3d-scene-lighting` does anything at all, this is
where it shows up. **This is a prediction, not a result** — no scene run has yet been made
with delivery working. The read-rate re-measurement is the next wave's first job, and until
it lands these four rows stay `mixed`, not `measured`.
@@ -222,7 +222,7 @@ it lands these four rows stay `mixed`, not `measured`.
matches the *message*, and `scene_frames` emits four camera faults under three wordings.
Counted today: `camera_in_geometry` (17 findings) and `camera_underground` (3). **Not
counted: `camera_below_high_ground` (21) and `camera_low` (3)** — both plainly camera
- placement, both invisible to `cv3d-scene-composition`'s target. True first-round rate is
+ placement, both invisible to `c3d-scene-composition`'s target. True first-round rate is
**1.44 findings/run against the 0.44 the row reports**, and 5 of 9 runs that read as clean
are not. The gate already emits a structured `data["kind"]`; `finding_kind` regexes the
prose instead. **Not fixed here on purpose** — widening the classifier also widens
@@ -233,7 +233,7 @@ it lands these four rows stay `mixed`, not `measured`.
reading *"frame is dim but lit … low-key by design"*, and **that message classifies as
`None`** — so it counts nowhere. No historical run carries it, so the baselines above are
intact; but any A/B straddling this commit compares two different metrics.
- `cv3d-scene-lighting` must be re-baselined against the new gate before it is paired.
+ `c3d-scene-lighting` must be re-baselined against the new gate before it is paired.
* **`shader_preflight` is not a gate at all.** It appears in **zero** `record.json` files
corpus-wide: `check_shaders` is an agent-invocable tool (`spatial/tools.py`), never a
pipeline gate, so no round appends its report. The only evidence is 8 per-run
@@ -265,25 +265,25 @@ it lands these four rows stay `mixed`, not `measured`.
*(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:
+ `c3d-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.
---
## 5. What ships, and why the answer is "nothing"
-The library does **not** have to share one switch. `CV3D_SKILLS_ONLY` restricts the library
+The library does **not** have to share one switch. `C3D_SKILLS_ONLY` restricts the library
*before* routing, so shipping a subset is one env var:
```
-CV3D_SKILLS=1 CV3D_SKILLS_ONLY=cv3d-part-contact,cv3d-bbox-contract # the vehicle
+C3D_SKILLS=1 C3D_SKILLS_ONLY=c3d-part-contact,c3d-bbox-contract # the vehicle
```
**Today that list is empty, and all 17 bundles default OFF.** Not for lack of a mechanism,
and not because the wave ran out of time — because **zero bundles have a measured effect**,
and every candidate default-on is a token cost per session against an unmeasured benefit.
-Read rate is a *leading* indicator, not an outcome. `cv3d-bbox-contract` being opened 68% of
+Read rate is a *leading* indicator, not an outcome. `c3d-bbox-contract` being opened 68% of
the time is evidence it is discoverable; it is not evidence it helps.
**What flips a bundle to default-on:** a pinned A/B on a metric with enough headroom to
@@ -296,11 +296,11 @@ first, then buy the pairs.
A bundle is cut when **any** of these holds, and cutting is a win for the wave:
-1. it is **unread after a revision** — `cv3d-form-manifest`, 2/19 pooled, CI [3%, 31%];
+1. it is **unread after a revision** — `c3d-form-manifest`, 2/19 pooled, CI [3%, 31%];
2. its target did not move and it has **no understood failure mode**;
3. it has **no honest deterministic proxy AND no read demand**.
-`cv3d-scene-motion` satisfies the first half of (3) and **not** the second: it has never been
+`c3d-scene-motion` satisfies the first half of (3) and **not** the second: it has never been
delivered, so its read demand has never been measurable. It is kept, and it is now delivered.
The distinction matters — cutting on an instrument that was never pointed at the thing is how
a library loses the bundles that were fine.
@@ -309,7 +309,7 @@ a library loses the bundles that were fine.
## 6. The one bundle with no honest proxy
-`cv3d-scene-motion` is marked `measurable=false`, and its own body is the evidence.
+`c3d-scene-motion` is marked `measurable=false`, and its own body is the evidence.
* The deterministic instrument is `spatial/frame_motion.py`: a camera counts as moving when
≥0.4% of its pixels change between t=0 s and t=1.5 s.
diff --git a/harness/pyproject.toml b/harness/pyproject.toml
index ede03855..6ee4d5fc 100644
--- a/harness/pyproject.toml
+++ b/harness/pyproject.toml
@@ -10,7 +10,7 @@ readme = "README.md"
# One fixed version: 3.13 (owner's decision 2026-08-26 — no floor, no matrix; the
# one fixed version, 3.13 (owner, 2026-08-26): developed and measured on it; no CI (tests run locally before a push).
# Nothing in the package uses a 3.11+ stdlib name directly — the three that were used
-# old codeverse/_compat.py shims are gone: StrEnum, datetime.UTC, tomllib are stdlib here).
+# old codeverse3d/_compat.py shims are gone: StrEnum, datetime.UTC, tomllib are stdlib here).
requires-python = ">=3.13"
license = { text = "Apache-2.0" }
classifiers = [
@@ -53,11 +53,11 @@ dev = ["pytest>=8", "pytest-timeout>=2.3", "pytest-xdist>=3.6", "ruff>=0.5", "py
"skills-ref>=0.1.1"]
[project.scripts]
-3dcode = "codeverse.cli.main:app"
-3dcodeverse = "codeverse.cli.main:app"
+3dcode = "codeverse3d.cli.main:app"
+3dcodeverse = "codeverse3d.cli.main:app"
[tool.setuptools.packages.find]
-include = ["codeverse*"]
+include = ["codeverse3d*"]
[tool.setuptools.package-data]
# Every non-python file a runtime reads at call time. The scene starter tree was once
@@ -69,11 +69,11 @@ include = ["codeverse*"]
# ships none of them routes an empty set, and the failure is silent (the run still passes,
# the skill simply never appears). tests/skills/test_packaging.py builds a wheel and
# asserts the files are in it.
-codeverse = ["prompts/**/*", "judges/rubrics/*.yaml", "languages/**/wrappers/*",
+codeverse3d = ["prompts/**/*", "judges/rubrics/*.yaml", "languages/**/wrappers/*",
"languages/**/starter/**/*", "skills/**/*"]
[tool.setuptools.exclude-package-data]
-codeverse = ["**/__pycache__/*"] # a wheel must not carry the build host's bytecode
+codeverse3d = ["**/__pycache__/*"] # a wheel must not carry the build host's bytecode
[tool.ruff]
line-length = 100
diff --git a/harness/runtime_js/README.md b/harness/runtime_js/README.md
index 75e40502..53babaaf 100644
--- a/harness/runtime_js/README.md
+++ b/harness/runtime_js/README.md
@@ -21,10 +21,10 @@ npm dependencies themselves bottom out at node 18, and `node:util.parseArgs`
older *async* loader hooks (`lib/resolve_three_async.mjs`, a separate loader
thread) instead of the in-thread `module.registerHooks`; the resolutions are
identical. The python side refuses to spawn an older node with an actionable
-message (`codeverse.spatial.node.NODE_MIN`, mirrored by `3dcode doctor`'s `node`
+message (`codeverse3d.spatial.node.NODE_MIN`, mirrored by `3dcode doctor`'s `node`
row), and `tests/core/test_portability.py` pins the two declarations together.
The floor is exercised, not assumed: the 93 `node`-marked tests all pass on node
-20.19.5 (`CV3D_BINARIES__NODE=/path/to/node20 pytest tests -m "node and not live and not blender"`).
+20.19.5 (`C3D_BINARIES__NODE=/path/to/node20 pytest tests -m "node and not live and not blender"`).
```bash
cd harness/runtime_js
@@ -45,9 +45,9 @@ render or bench is running. Deps: `three` 0.182 (export + render + scene host),
gpu_launch.cjs launchBrowser({gpu:'auto'|'on'|'off'}) → {browser, gpu, renderer, shared, release()};
rendererInfo(browser). Callers must release(), never browser.close(): connect-first
reuse shares one browser per backend via browser_daemon.cjs (endpoint file under
- CV3D_CACHE_DIR, connect ~5 ms vs ~0.55 s launch; CV3D_BROWSER_REUSE=off disables).
+ C3D_CACHE_DIR, connect ~5 ms vs ~0.55 s launch; C3D_BROWSER_REUSE=off disables).
WSL2 hardware WebGL (ANGLE gl-egl + Mesa d3d12 env), UNMASKED_RENDERER probe,
- negative verdict cached 20 min in ~/.cache/codeverse/gpu_probe.json, SwiftShader fallback
+ negative verdict cached 20 min in ~/.cache/codeverse3d/gpu_probe.json, SwiftShader fallback
browser_daemon.cjs detached keeper of the shared browser (one per gpu|cpu backend): advertises its
ws endpoint, reaps after ~90 s idle (endpoint-file mtime heartbeat + open-page count)
serve.cjs serveDirs({root, mounts, routes}) loopback static server (MIME table, CORS);
@@ -104,12 +104,12 @@ lib/shader_report.mjs shared shader-preflight report builder (static + compile s
lib/glsl_audit.mjs static GLSL audits + compiler-line → file:line mapping
```
-Conventions (from `codeverse/conventions.py`): Y up, +Z front, meters; azimuth 0 = front,
+Conventions (from `codeverse3d/conventions.py`): Y up, +Z front, meters; azimuth 0 = front,
counter-clockwise seen from above (90 = camera on +X); elevation above the horizon. Views are
fitted per camera so the projected bbox fills ~85 % of the frame.
-Python entry points: `codeverse.spatial.node.run_node`, `codeverse.spatial.render.render_glb`,
-`codeverse.languages.threejs.ThreeJsRuntime`.
+Python entry points: `codeverse3d.spatial.node.run_node`, `codeverse3d.spatial.render.render_glb`,
+`codeverse3d.languages.threejs.ThreeJsRuntime`.
Quick checks:
```bash
diff --git a/harness/runtime_js/ablate_scene.mjs b/harness/runtime_js/ablate_scene.mjs
index dd540fe0..338a230a 100644
--- a/harness/runtime_js/ablate_scene.mjs
+++ b/harness/runtime_js/ablate_scene.mjs
@@ -26,7 +26,7 @@ import { createTimeoutMs, errorSummary, openHost } from './lib/host_page.mjs';
const args = parseCli({
ws: {}, out: { default: '' }, cameras: { default: 'authored' }, t: { default: '1.5' },
width: { default: '512' }, height: { default: '288' }, 'max-materials': { default: '8' },
- frames: { type: 'boolean', default: false }, gpu: { default: process.env.CV3D_RENDER_GPU || 'auto' },
+ frames: { type: 'boolean', default: false }, gpu: { default: process.env.C3D_RENDER_GPU || 'auto' },
'timeout-ms': { default: '120000' },
});
diff --git a/harness/runtime_js/browser_daemon.cjs b/harness/runtime_js/browser_daemon.cjs
index 71a3fa05..587643cb 100644
--- a/harness/runtime_js/browser_daemon.cjs
+++ b/harness/runtime_js/browser_daemon.cjs
@@ -21,7 +21,7 @@ const POLL_MS = 15 * 1000;
// A page older than this belongs to nobody: every harness render/probe finishes or
// times out well under it (ceilings <= 330 s), and a SIGKILLed client never closes
// its page. Leaked pages hold WebGL contexts that eventually wedge the browser.
-const PAGE_TTL_MS = Number(process.env.CV3D_PAGE_TTL_MS || 8 * 60 * 1000);
+const PAGE_TTL_MS = Number(process.env.C3D_PAGE_TTL_MS || 8 * 60 * 1000);
function arg(name, dflt) {
const i = process.argv.indexOf(`--${name}`);
diff --git a/harness/runtime_js/check_shaders.mjs b/harness/runtime_js/check_shaders.mjs
index 92882034..b69adfe0 100644
--- a/harness/runtime_js/check_shaders.mjs
+++ b/harness/runtime_js/check_shaders.mjs
@@ -23,7 +23,7 @@ import { openHost } from './lib/host_page.mjs';
import { compileIntoReport, staticShaderReport } from './lib/shader_report.mjs';
const args = parseCli({
- ws: {}, module: {}, out: {}, gpu: { default: process.env.CV3D_RENDER_GPU || 'auto' },
+ ws: {}, module: {}, out: {}, gpu: { default: process.env.C3D_RENDER_GPU || 'auto' },
'timeout-ms': { default: '90000' },
});
diff --git a/harness/runtime_js/gpu_launch.cjs b/harness/runtime_js/gpu_launch.cjs
index c63a84f4..76b40dcd 100644
--- a/harness/runtime_js/gpu_launch.cjs
+++ b/harness/runtime_js/gpu_launch.cjs
@@ -19,7 +19,7 @@
// CACHE_DIR; launchBrowser connects to it when present, spawns the daemon when
// absent, and falls back to a plain owned launch when the daemon cannot help.
// `release()` disconnects from a shared browser (the daemon reaps it after
-// ~90 s idle) and closes an owned one. `CV3D_BROWSER_REUSE=off` disables
+// ~90 s idle) and closes an owned one. `C3D_BROWSER_REUSE=off` disables
// sharing entirely.
'use strict';
@@ -29,7 +29,7 @@ const fs = require('fs');
const os = require('os');
const path = require('path');
-const CACHE_DIR = process.env.CV3D_CACHE_DIR || path.join(os.homedir(), '.cache', 'codeverse');
+const CACHE_DIR = process.env.C3D_CACHE_DIR || path.join(os.homedir(), '.cache', 'codeverse3d');
const CACHE_PATH = path.join(CACHE_DIR, 'gpu_probe.json');
const NEGATIVE_TTL_MS = 20 * 60 * 1000; // how long a "no GPU" verdict is trusted
const PROTOCOL_TIMEOUT_MS = 15 * 60 * 1000; // big frame batches exceed puppeteer's 180 s default
@@ -134,7 +134,7 @@ async function tryGpu(puppeteer) {
// --------------------------------------------------------------------- sharing
// A git worktree and the main checkout each run THEIR OWN runtime_js but share
-// ~/.cache/codeverse unless the operator remembers CV3D_CACHE_DIR, so both daemons
+// ~/.cache/codeverse3d unless the operator remembers C3D_CACHE_DIR, so both daemons
// used to advertise into one `browser_<backend>.json`: the second overwrote the
// first, the first exited on its superseded-endpoint check, and clients of both
// trees landed on a single browser whose page budget and canary were sized for one.
@@ -163,7 +163,7 @@ function spawnLockPath(backend) {
}
function reuseEnabled() {
- return !/^(off|0|false)$/i.test(process.env.CV3D_BROWSER_REUSE || '');
+ return !/^(off|0|false)$/i.test(process.env.C3D_BROWSER_REUSE || '');
}
function readJson(p) {
@@ -313,7 +313,7 @@ async function gpuBrowser(puppeteer) {
* @returns {Promise<{browser: object, gpu: boolean, renderer: string, shared: boolean, release: () => Promise<void>}>}
*/
async function launchBrowser(opts = {}) {
- const mode = String(opts.gpu || process.env.CV3D_RENDER_GPU || 'auto').toLowerCase();
+ const mode = String(opts.gpu || process.env.C3D_RENDER_GPU || 'auto').toLowerCase();
const puppeteer = loadPuppeteer(opts.puppeteer);
if (!['auto', 'on', 'off'].includes(mode)) throw new Error(`gpu must be auto|on|off, got ${mode}`);
diff --git a/harness/runtime_js/lib/browser/camera_fit.js b/harness/runtime_js/lib/browser/camera_fit.js
index c80b1483..9b141bd9 100644
--- a/harness/runtime_js/lib/browser/camera_fit.js
+++ b/harness/runtime_js/lib/browser/camera_fit.js
@@ -4,7 +4,7 @@
//
// import { viewDirection, fitCameraToBox } from '/__runtime/lib/browser/camera_fit.js';
//
-// Convention (codeverse.conventions): azimuth 0 = front (+Z), counter-clockwise seen
+// Convention (codeverse3d.conventions): azimuth 0 = front (+Z), counter-clockwise seen
// from above (90 = camera on +X = the object's right side); elevation above the horizon.
import * as THREE from 'three';
diff --git a/harness/runtime_js/lib/host_ablation.mjs b/harness/runtime_js/lib/host_ablation.mjs
index 8c5db1e4..e5adbc6c 100644
--- a/harness/runtime_js/lib/host_ablation.mjs
+++ b/harness/runtime_js/lib/host_ablation.mjs
@@ -273,7 +273,7 @@ export function frameSampler(canvas) {
* returns the RGBA readback. `snapshot()`, when given, returns the canvas
* as it stands — called right after each of the two renders the report
* already makes, so the PNG pair the agent looks at costs no extra frames.
- * @returns {object} plain JSON (see `codeverse.spatial.ablation.AblationReport`)
+ * @returns {object} plain JSON (see `codeverse3d.spatial.ablation.AblationReport`)
*/
export function ablationReport(scene, THREE, opts) {
const { renderFrame, cameras: rawCameras, maxMaterials = MAX_MATERIALS, threshold = DIFF_THRESHOLD,
diff --git a/harness/runtime_js/lib/host_metrics.mjs b/harness/runtime_js/lib/host_metrics.mjs
index bd4746f4..86e257cf 100644
--- a/harness/runtime_js/lib/host_metrics.mjs
+++ b/harness/runtime_js/lib/host_metrics.mjs
@@ -225,7 +225,7 @@ export function nearGeometry(scene, camera, THREE, limitM = 0.3, lookAt = null)
/**
* Deterministic camera repair, added 2026-08-30; ON by default since 3f463ce
* (drivers pass --camera-repair; python's probe_env_args() disables it only when
- * CV3D_CAMERA_REPAIR says false/off/no/0).
+ * C3D_CAMERA_REPAIR says false/off/no/0).
*
* Why: cameras belong to the PLAN — no refine agent owns a file that could fix
* one, so camera_in_geometry stood in final rounds across whole batteries
diff --git a/harness/runtime_js/lib/host_placement.mjs b/harness/runtime_js/lib/host_placement.mjs
index 3acddcf3..bd140020 100644
--- a/harness/runtime_js/lib/host_placement.mjs
+++ b/harness/runtime_js/lib/host_placement.mjs
@@ -487,7 +487,7 @@ export function placementTable(scene, THREE, opts = {}) {
// is seated. The moves are returned and carried in the census, so nothing is silent.
//
// Deliberately conservative, mirroring the python gate's exemptions
-// (codeverse/spatial/scene_placement.py — keep the two in sync):
+// (codeverse3d/spatial/scene_placement.py — keep the two in sync):
// · exempt assets (free / backdrop / enclosure / instanced) are never touched
// · a foot in the water is a boat / jetty: never touched
// · BURIED-ok names (basin, trench, pool…) are below ground by definition
diff --git a/harness/runtime_js/package-lock.json b/harness/runtime_js/package-lock.json
index a1499da0..d30c817e 100644
--- a/harness/runtime_js/package-lock.json
+++ b/harness/runtime_js/package-lock.json
@@ -1,11 +1,11 @@
{
- "name": "codeverse-runtime-js",
+ "name": "codeverse3d-runtime-js",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "codeverse-runtime-js",
+ "name": "codeverse3d-runtime-js",
"version": "0.1.0",
"dependencies": {
"puppeteer": "^24.43.1",
diff --git a/harness/runtime_js/package.json b/harness/runtime_js/package.json
index 4c3f8a18..bcf22efc 100644
--- a/harness/runtime_js/package.json
+++ b/harness/runtime_js/package.json
@@ -1,5 +1,5 @@
{
- "name": "codeverse-runtime-js",
+ "name": "codeverse3d-runtime-js",
"private": true,
"version": "0.1.0",
"description": "Harness-owned node runtime for 3dcodeverse: GLB export, headless GPU rendering, scene probes, shader preflight. Agent code never imports from here; it only imports 'three'.",
diff --git a/harness/runtime_js/probe_scene.mjs b/harness/runtime_js/probe_scene.mjs
index f3fe7bec..ce1cfbe5 100644
--- a/harness/runtime_js/probe_scene.mjs
+++ b/harness/runtime_js/probe_scene.mjs
@@ -35,7 +35,7 @@ const args = parseCli({
// so its shader report names the scene's own programs and nothing of ours. The
// flag parses (drivers share a switch list) and changes nothing.
'no-post': { type: 'boolean', default: false },
- ws: {}, out: {}, gpu: { default: process.env.CV3D_RENDER_GPU || 'auto' }, 'timeout-ms': { default: '60000' },
+ ws: {}, out: {}, gpu: { default: process.env.C3D_RENDER_GPU || 'auto' }, 'timeout-ms': { default: '60000' },
scene: { default: 'src/scene.js' },
compile: { type: 'boolean', default: false }, 'shaders-out': { default: '' }, 'sun-azimuth': { default: '' },
});
diff --git a/harness/runtime_js/render_scene.mjs b/harness/runtime_js/render_scene.mjs
index 6ad5a7af..3482ae27 100644
--- a/harness/runtime_js/render_scene.mjs
+++ b/harness/runtime_js/render_scene.mjs
@@ -25,12 +25,12 @@ const args = parseCli({
'camera-repair': { type: 'boolean', default: false },
'auto-exposure': { type: 'boolean', default: false },
// post chain (GTAO + soft bloom + grade): ON for scene pictures, `--no-post` (python
- // emits it for CV3D_POST=0) to render raw. Object renders never come through here.
+ // emits it for C3D_POST=0) to render raw. Object renders never come through here.
'no-post': { type: 'boolean', default: false },
'post-options': { default: '' },
ws: {}, out: {}, cameras: { default: 'authored' }, 'orbit-views': { default: 'none' }, bounds: { default: 'none' },
times: { default: '0,1.5' }, width: { default: '1024' }, height: { default: '576' },
- gpu: { default: process.env.CV3D_RENDER_GPU || 'auto' }, 'fps-seconds': { default: '2' },
+ gpu: { default: process.env.C3D_RENDER_GPU || 'auto' }, 'fps-seconds': { default: '2' },
'timeout-ms': { default: '240000' }, 'log-depth': { type: 'boolean', default: false },
});
diff --git a/harness/setup.sh b/harness/setup.sh
index 6f8690cf..367c2327 100755
--- a/harness/setup.sh
+++ b/harness/setup.sh
@@ -11,7 +11,7 @@
set -euo pipefail
# The supported floor (docs/INSTALL.md §2.1). Pinned to pyproject's requires-python
-# and to codeverse/spatial/node.py NODE_MIN by tests/core/test_portability.py.
+# and to codeverse3d/spatial/node.py NODE_MIN by tests/core/test_portability.py.
MIN_PY_MINOR=13 # python 3.13 (one fixed version)
MIN_NODE_MAJOR=20 # node 20.6+ (`node --import` module hooks)
MIN_NODE_MINOR=6
@@ -125,7 +125,7 @@ else
info "node not found (three.js / scene / GLB export tracks will not run)"
fi
-if command -v blender-5.0 >/dev/null 2>&1 || command -v blender >/dev/null 2>&1 || [ -n "${CV3D_BINARIES__BLENDER:-}" ]; then
+if command -v blender-5.0 >/dev/null 2>&1 || command -v blender >/dev/null 2>&1 || [ -n "${C3D_BINARIES__BLENDER:-}" ]; then
info "blender found"
else
info "blender not found (optional: blender / urdf_blender tracks unavailable — docs/INSTALL.md §6)"
@@ -173,13 +173,13 @@ if [ "$DO_DOCTOR" -eq 1 ]; then
# own entry point is not on PATH, so the old `command -v 3dcodeverse` branch ran a
# pre-existing install and printed an all-green table for an environment this script
# never touched — the closing doctor is the installer's only verification.
- if "$PY" -c 'import codeverse' >/dev/null 2>&1; then
- "$PY" -m codeverse.cli.main doctor ${DOCTOR_ARGS[@]+"${DOCTOR_ARGS[@]}"} || true
+ if "$PY" -c 'import codeverse3d' >/dev/null 2>&1; then
+ "$PY" -m codeverse3d.cli.main doctor ${DOCTOR_ARGS[@]+"${DOCTOR_ARGS[@]}"} || true
elif command -v 3dcodeverse >/dev/null 2>&1; then
- info "codeverse not importable by $PY — falling back to the 3dcodeverse on PATH"
+ info "codeverse3d not importable by $PY — falling back to the 3dcodeverse on PATH"
3dcodeverse doctor ${DOCTOR_ARGS[@]+"${DOCTOR_ARGS[@]}"} || true
else
- info "codeverse not importable by $PY and 3dcodeverse not on PATH — skipping doctor"
+ info "codeverse3d not importable by $PY and 3dcodeverse not on PATH — skipping doctor"
fi
fi
diff --git a/harness/tests/agents/conftest.py b/harness/tests/agents/conftest.py
index c64b6ae8..f80836d0 100644
--- a/harness/tests/agents/conftest.py
+++ b/harness/tests/agents/conftest.py
@@ -53,4 +53,4 @@ def _fast_watchdog_poll(monkeypatch):
"""A fake CLI exits in milliseconds; the watchdog's 1 s poll then dominated every
agent.run() in this directory (~13 s across the suite). Production keeps 1 s —
a real vendor CLI runs for minutes and does not care."""
- monkeypatch.setattr("codeverse.agents.cli_common.POLL_S", 0.02)
+ monkeypatch.setattr("codeverse3d.agents.cli_common.POLL_S", 0.02)
diff --git a/harness/tests/agents/test_agent_job_wiring.py b/harness/tests/agents/test_agent_job_wiring.py
index 4ab0db5b..e2eb4e26 100644
--- a/harness/tests/agents/test_agent_job_wiring.py
+++ b/harness/tests/agents/test_agent_job_wiring.py
@@ -3,12 +3,12 @@ prompt section, a hard-clock session window, the backend's turn count."""
from __future__ import annotations
-from codeverse.contracts.agent import AgentJob, AgentResult
-from codeverse.contracts.chat import ImagePart
-from codeverse.contracts.common import Budget, Usage
-from codeverse.orchestrator import BudgetGuard
-from codeverse.tracks.generation import GenerationTask, run_agent_task
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.agent import AgentJob, AgentResult
+from codeverse3d.contracts.chat import ImagePart
+from codeverse3d.contracts.common import Budget, Usage
+from codeverse3d.orchestrator import BudgetGuard
+from codeverse3d.tracks.generation import GenerationTask, run_agent_task
+from codeverse3d.workspace import Workspace
class StubAgent:
diff --git a/harness/tests/agents/test_antigravity.py b/harness/tests/agents/test_antigravity.py
index 3aae48e3..3b3810ef 100644
--- a/harness/tests/agents/test_antigravity.py
+++ b/harness/tests/agents/test_antigravity.py
@@ -7,16 +7,16 @@ import shutil
import pytest
-from codeverse.agents.backends import (
+from codeverse3d.agents.backends import (
AntigravityAgent,
available_models,
parse_agy_json,
resolve_model,
usage_from_agy,
)
-from codeverse.agents.cli_common import begin_session
-from codeverse.contracts.agent import AgentJob
-from codeverse.workspace import Workspace
+from codeverse3d.agents.cli_common import begin_session
+from codeverse3d.contracts.agent import AgentJob
+from codeverse3d.workspace import Workspace
ENVELOPE = {"conversation_id": "c1", "status": "SUCCESS", "response": "DONE\n", "duration_seconds": 3.0, "num_turns": 1,
"usage": {"input_tokens": 18589, "output_tokens": 494, "thinking_tokens": 413, "cache_read_tokens": 12199, "total_tokens": 19083}}
diff --git a/harness/tests/agents/test_claude_code.py b/harness/tests/agents/test_claude_code.py
index ffe13131..55223c9f 100644
--- a/harness/tests/agents/test_claude_code.py
+++ b/harness/tests/agents/test_claude_code.py
@@ -8,16 +8,16 @@ from pathlib import Path
import pytest
-from codeverse.agents.backends import (
+from codeverse3d.agents.backends import (
ClaudeCodeAgent,
parse_claude_json,
primary_served_model,
usage_from_envelope,
)
-from codeverse.agents.cli_common import begin_session
-from codeverse.agents.materialize import materialize_workspace
-from codeverse.contracts.agent import AgentJob
-from codeverse.workspace import Workspace
+from codeverse3d.agents.cli_common import begin_session
+from codeverse3d.agents.materialize import materialize_workspace
+from codeverse3d.contracts.agent import AgentJob
+from codeverse3d.workspace import Workspace
ENVELOPE = {
"type": "result", "subtype": "success", "is_error": False, "duration_ms": 4200, "duration_api_ms": 3900,
@@ -70,10 +70,10 @@ def test_parse_envelope_variants():
def test_argv_includes_mcp_when_materialized(tmp_ws: Workspace):
materialize_workspace(tmp_ws, agent_kind="claude-code", contract_md="c", cookbook_rel="", spatial_tools=True,
- mcp_command=["python", "-m", "codeverse.spatial.mcp_server", "--workspace", str(tmp_ws.root)])
+ mcp_command=["python", "-m", "codeverse3d.spatial.mcp_server", "--workspace", str(tmp_ws.root)])
a = ClaudeCodeAgent("sonnet", binary="claude")
s = begin_session(AgentJob(workspace=str(tmp_ws.root), prompt="p", system_append="S", max_turns=7,
- mcp_command=["python", "-m", "codeverse.spatial.mcp_server", "--workspace", str(tmp_ws.root)]),
+ mcp_command=["python", "-m", "codeverse3d.spatial.mcp_server", "--workspace", str(tmp_ws.root)]),
"claude-code")
argv = a.build_argv(s, "p")
assert argv[:3] == ["claude", "-p", "p"]
diff --git a/harness/tests/agents/test_cli_common.py b/harness/tests/agents/test_cli_common.py
index 20e794f3..a777cd3c 100644
--- a/harness/tests/agents/test_cli_common.py
+++ b/harness/tests/agents/test_cli_common.py
@@ -5,7 +5,7 @@ from __future__ import annotations
import json
import os
-from codeverse.agents.cli_common import (
+from codeverse3d.agents.cli_common import (
Trajectory,
attribute_changes,
begin_session,
@@ -16,9 +16,9 @@ from codeverse.agents.cli_common import (
is_secret_env,
is_transient_failure,
)
-from codeverse.contracts.agent import AgentJob, FileChange
-from codeverse.contracts.common import Usage
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.agent import AgentJob, FileChange
+from codeverse3d.contracts.common import Usage
+from codeverse3d.workspace import Workspace
def test_secret_detection():
@@ -34,7 +34,7 @@ def test_hardened_env_strips_secrets_and_adds_guards(tmp_ws: Workspace, monkeypa
env = hardened_env(tmp_ws, job, keep={"ANTHROPIC_API_KEY"})
assert "OPENAI_API_KEY" not in env and "FAKE_SERVICE_API_KEY" not in env
assert env["ANTHROPIC_API_KEY"] == "sk-y" and env["KEEPME"] == "1" and env["EXTRA"] == "2"
- assert env["CV3D_AGENT_CONTEXT"] == "1" and env["GIT_CEILING_DIRECTORIES"] == str(tmp_ws.root.parent)
+ assert env["C3D_AGENT_CONTEXT"] == "1" and env["GIT_CEILING_DIRECTORIES"] == str(tmp_ws.root.parent)
def test_session_roundtrip_tracks_files_and_writes_result(tmp_ws: Workspace):
@@ -108,12 +108,12 @@ def test_trajectory_jsonl_and_result(tmp_path):
def test_mcp_command_resolution(tmp_ws: Workspace):
- from codeverse.agents.cli_common import default_mcp_command, mcp_command_for
- from codeverse.agents.materialize import materialize_workspace
+ from codeverse3d.agents.cli_common import default_mcp_command, mcp_command_for
+ from codeverse3d.agents.materialize import materialize_workspace
job = AgentJob(workspace=str(tmp_ws.root), prompt="p", language="blender", track="static_object", round=2)
cmd = mcp_command_for(tmp_ws, job)
- assert cmd[1:3] == ["-m", "codeverse.spatial.mcp_server"] and "--language" in cmd and cmd[cmd.index("--round") + 1] == "2"
+ assert cmd[1:3] == ["-m", "codeverse3d.spatial.mcp_server"] and "--language" in cmd and cmd[cmd.index("--round") + 1] == "2"
job2 = AgentJob(workspace=str(tmp_ws.root), prompt="p", mcp_command=["python", "-m", "x"])
assert mcp_command_for(tmp_ws, job2) == ["python", "-m", "x"]
# a workspace .mcp.json NEVER wins: the agent works in that directory and could
@@ -128,7 +128,7 @@ def test_mcp_command_resolution(tmp_ws: Workspace):
def test_gemini_system_settings_disable_folder_trust(tmp_path):
- from codeverse.agents.backends import write_system_settings
+ from codeverse3d.agents.backends import write_system_settings
p = write_system_settings(tmp_path / "s.json")
data = json.loads(p.read_text())
diff --git a/harness/tests/agents/test_cli_write_scope.py b/harness/tests/agents/test_cli_write_scope.py
index 16fa2801..2fde8e9a 100644
--- a/harness/tests/agents/test_cli_write_scope.py
+++ b/harness/tests/agents/test_cli_write_scope.py
@@ -14,10 +14,10 @@ from __future__ import annotations
import threading
import time
-from codeverse.agents.cli_common import EXCLUSIVE_KINDS, begin_session, finish_session
-from codeverse.contracts.agent import AgentJob
-from codeverse.contracts.common import Usage
-from codeverse.workspace import Workspace
+from codeverse3d.agents.cli_common import EXCLUSIVE_KINDS, begin_session, finish_session
+from codeverse3d.contracts.agent import AgentJob
+from codeverse3d.contracts.common import Usage
+from codeverse3d.workspace import Workspace
def _job(ws: Workspace, label: str, **kw) -> AgentJob:
diff --git a/harness/tests/agents/test_codex.py b/harness/tests/agents/test_codex.py
index 2a78ba65..51e412a1 100644
--- a/harness/tests/agents/test_codex.py
+++ b/harness/tests/agents/test_codex.py
@@ -8,10 +8,10 @@ from pathlib import Path
import pytest
-from codeverse.agents.backends import CodexAgent, parse_codex_jsonl, split_model_effort
-from codeverse.agents.cli_common import begin_session
-from codeverse.contracts.agent import AgentJob
-from codeverse.workspace import Workspace
+from codeverse3d.agents.backends import CodexAgent, parse_codex_jsonl, split_model_effort
+from codeverse3d.agents.cli_common import begin_session
+from codeverse3d.contracts.agent import AgentJob
+from codeverse3d.workspace import Workspace
EVENTS = [
{"type": "thread.started", "thread_id": "th1"},
@@ -105,7 +105,7 @@ def test_fake_run(tmp_ws: Workspace, fake_bin, monkeypatch):
def test_long_prompt_goes_via_stdin(tmp_ws: Workspace, fake_bin, monkeypatch):
- monkeypatch.setattr("codeverse.agents.backends.STDIN_PROMPT_BYTES", 10)
+ monkeypatch.setattr("codeverse3d.agents.backends.STDIN_PROMPT_BYTES", 10)
a = CodexAgent("gpt-5.6-sol", binary=fake_bin("codex", FAKE_CODEX))
res = a.run(AgentJob(workspace=str(tmp_ws.root), prompt="hello world this is long", label="z", timeout_s=30))
assert res.ok and (tmp_ws.src / "hello.txt").read_text() == "hello"
@@ -118,8 +118,8 @@ def test_live_codex_mcp_tool_call_is_not_cancelled(tmp_ws: Workspace):
pytest.skip("codex not installed")
import trimesh
- from codeverse.agents.cli_common import default_mcp_command
- from codeverse.agents.materialize import materialize_workspace
+ from codeverse3d.agents.cli_common import default_mcp_command
+ from codeverse3d.agents.materialize import materialize_workspace
trimesh.creation.box().export(tmp_ws.artifacts / "object.glb")
materialize_workspace(tmp_ws, agent_kind="codex", contract_md="c", cookbook_rel="threejs/cookbook.md", spatial_tools=True,
diff --git a/harness/tests/agents/test_gemini_cli.py b/harness/tests/agents/test_gemini_cli.py
index fafd32ca..fcc4c59d 100644
--- a/harness/tests/agents/test_gemini_cli.py
+++ b/harness/tests/agents/test_gemini_cli.py
@@ -7,10 +7,10 @@ from pathlib import Path
import pytest
-from codeverse.agents.backends import GeminiCliAgent, parse_gemini_json, usage_from_stats
-from codeverse.config import get_settings
-from codeverse.contracts.agent import AgentJob
-from codeverse.workspace import Workspace
+from codeverse3d.agents.backends import GeminiCliAgent, parse_gemini_json, usage_from_stats
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.agent import AgentJob
+from codeverse3d.workspace import Workspace
FAKE_GEMINI = r'''
args = sys.argv[1:]
@@ -58,7 +58,7 @@ def agent(fake_bin, monkeypatch):
# test in this worker can leave k1 spent or cooling and the next invoke starts on
# k2 — which broke `keys == ["k1", "k2"]` once the suite went parallel and test
# grouping changed. Every test here starts from a fresh pool.
- from codeverse.models import gemini as gm
+ from codeverse3d.models import gemini as gm
for sig in [x for x in list(gm._pools) if x and x[0] in ("k1", "only")]: # noqa: SLF001
gm._pools.pop(sig, None) # noqa: SLF001
return GeminiCliAgent("gemini-3.7-flash", binary=binary)
@@ -66,7 +66,7 @@ def agent(fake_bin, monkeypatch):
def test_retry_window_never_restarts():
"""The retry rule itself: what is LEFT of the window, or None when < min(120, T/4)."""
- from codeverse.agents.backends import retry_window_left
+ from codeverse3d.agents.backends import retry_window_left
assert retry_window_left(1800, 1700) is None # 100s left < 120 floor
assert retry_window_left(1800, 900) == 900 # half the window remains
@@ -101,8 +101,8 @@ def test_agent_planted_mcp_server_never_reaches_the_cli(tmp_ws: Workspace, agent
poisoned workspace tried to start it). 3dcode + ``mcp.allowed`` now live in the
per-session system settings, which is applied LAST and whose ``mcp.allowed``
REPLACES rather than merges (audit 2026-08-27)."""
- from codeverse.agents.cli_common import begin_session, default_mcp_command, release_session
- from codeverse.agents.materialize import materialize_workspace
+ from codeverse3d.agents.cli_common import begin_session, default_mcp_command, release_session
+ from codeverse3d.agents.materialize import materialize_workspace
materialize_workspace(tmp_ws, agent_kind="gemini-cli", contract_md="c", cookbook_rel="",
spatial_tools=True, mcp_command=default_mcp_command(tmp_ws))
@@ -148,7 +148,7 @@ def test_single_key_transient_failure_retries_same_key_and_never_raises(tmp_ws:
"""Settings with ONE key: the retry must reuse it (no KeyPoolExhausted out of run())."""
monkeypatch.setattr(get_settings(), "gemini_api_keys", ["only"])
- from codeverse.models import gemini as gm
+ from codeverse3d.models import gemini as gm
for sig in [s for s in list(gm._pools) if s and s[0] == "only"]:
gm._pools.pop(sig, None)
monkeypatch.setenv("FAKE_MODE", "fail_once_503")
@@ -161,11 +161,11 @@ def test_single_key_transient_failure_retries_same_key_and_never_raises(tmp_ws:
def test_single_key_quota_failure_returns_budget_without_retry(tmp_ws: Workspace, agent: GeminiCliAgent, monkeypatch):
"""429 puts the only key into cooldown: no alternative → return the failed outcome (ok=False), do not raise."""
- from codeverse.agents import backends as gc
+ from codeverse3d.agents import backends as gc
monkeypatch.setattr(get_settings(), "gemini_api_keys", ["solo"])
monkeypatch.setattr(gc, "RETRY_KEY_WAIT_S", 0.2)
- from codeverse.models import gemini as gm
+ from codeverse3d.models import gemini as gm
for sig in [s for s in list(gm._pools) if s and s[0] == "solo"]:
gm._pools.pop(sig, None)
monkeypatch.setenv("FAKE_MODE", "fail_always")
@@ -177,8 +177,8 @@ def test_single_key_quota_failure_returns_budget_without_retry(tmp_ws: Workspace
def test_pool_exhausted_before_first_attempt_is_a_budget_result(tmp_ws: Workspace, agent: GeminiCliAgent, monkeypatch):
- from codeverse.agents import backends as gc
- from codeverse.models.retry import KeyPoolExhausted
+ from codeverse3d.agents import backends as gc
+ from codeverse3d.models.retry import KeyPoolExhausted
class Dead:
def acquire(self, **kw):
@@ -194,7 +194,7 @@ def test_pool_exhausted_before_first_attempt_is_a_budget_result(tmp_ws: Workspac
def test_a_raising_invoke_gives_its_pool_slot_back(tmp_ws: Workspace, agent: GeminiCliAgent, monkeypatch):
"""The pool is process-wide: a slot leaked here is gone for every later session."""
- from codeverse.agents import backends as gc
+ from codeverse3d.agents import backends as gc
def boom(*a, **k):
raise OSError("cannot spawn")
@@ -207,7 +207,7 @@ def test_a_raising_invoke_gives_its_pool_slot_back(tmp_ws: Workspace, agent: Gem
def test_timeout_is_reported(tmp_ws: Workspace, agent: GeminiCliAgent, monkeypatch):
monkeypatch.setenv("FAKE_MODE", "hang")
- monkeypatch.setattr("codeverse.agents.cli_common.IDLE_GRACE_S", 1.0)
+ monkeypatch.setattr("codeverse3d.agents.cli_common.IDLE_GRACE_S", 1.0)
res = agent.run(_job(tmp_ws, timeout_s=1))
assert not res.ok and res.exit_reason == "timeout" and res.duration_s < 30
assert res.transient is False # a plain hang is not a storm
@@ -219,7 +219,7 @@ def test_a_timeout_after_a_503_streak_is_marked_transient(tmp_ws: Workspace, age
session (the CLI never gives up first), but the result says WHY, so a track can fall back
to the single-shot path instead of shipping the skeleton (tracks.common.generate_for)."""
monkeypatch.setenv("FAKE_MODE", "storm")
- monkeypatch.setattr("codeverse.agents.cli_common.IDLE_GRACE_S", 1.0)
+ monkeypatch.setattr("codeverse3d.agents.cli_common.IDLE_GRACE_S", 1.0)
res = agent.run(_job(tmp_ws, timeout_s=1))
assert not res.ok and res.exit_reason == "timeout" and res.transient is True
assert any("4 x 503" in e for e in res.errors), res.errors
@@ -246,7 +246,7 @@ def test_parse_helpers():
def test_usage_input_is_total_prompt_and_cost_reprices_cache():
"""gemini-cli reports tokens.input = prompt - cached; pricing wants the TOTAL prompt (regression: ~4x under-billing)."""
- from codeverse.models.pricing import estimate_cost, lookup_price
+ from codeverse3d.models.pricing import estimate_cost, lookup_price
tok = {"input": 720_753, "prompt": 14_190_170, "cached": 13_469_417, "candidates": 62_012, "thoughts": 66_809}
u = usage_from_stats({"models": {"gemini-3.7-flash": {"tokens": tok}}}, "gemini-3.7-flash")
@@ -262,8 +262,8 @@ def test_usage_input_is_total_prompt_and_cost_reprices_cache():
def test_usage_prices_each_served_model_at_its_own_rate():
- from codeverse.contracts.common import Usage
- from codeverse.models.pricing import estimate_cost
+ from codeverse3d.contracts.common import Usage
+ from codeverse3d.models.pricing import estimate_cost
stats = {"models": {"gemini-3.7-flash": {"tokens": {"prompt": 1_000_000, "cached": 0, "candidates": 1000}},
"gemini-3-flash-preview": {"tokens": {"prompt": 1_000_000, "cached": 0, "candidates": 1000}},
@@ -299,7 +299,7 @@ def test_live_gemini_cli_creates_file(tmp_ws: Workspace):
def test_quota_failure_gets_a_third_rotated_attempt(tmp_ws: Workspace, agent: GeminiCliAgent, monkeypatch):
"""Two 429s in a row on two keys, the third key answers: the cell is not lost."""
monkeypatch.setattr(get_settings(), "gemini_api_keys", ["k1", "k2", "k3"])
- from codeverse.models import gemini as gm
+ from codeverse3d.models import gemini as gm
for sig in [s for s in list(gm._pools) if s and s[0] in ("k1", "only")]:
gm._pools.pop(sig, None)
monkeypatch.setenv("FAKE_MODE", "fail_twice_429")
diff --git a/harness/tests/agents/test_materialize.py b/harness/tests/agents/test_materialize.py
index 073a82bc..661d47ab 100644
--- a/harness/tests/agents/test_materialize.py
+++ b/harness/tests/agents/test_materialize.py
@@ -6,9 +6,9 @@ import json
import logging
import sys
-from codeverse.agents.cli_common import default_mcp_command
-from codeverse.agents.materialize import CV3D_DIR, codex_mcp_overrides, materialize_workspace
-from codeverse.workspace import Workspace
+from codeverse3d.agents.cli_common import default_mcp_command
+from codeverse3d.agents.materialize import C3D_DIR, codex_mcp_overrides, materialize_workspace
+from codeverse3d.workspace import Workspace
CONTRACT = "## blender contract\nWrite pure bpy into src/model.py."
@@ -24,7 +24,7 @@ def test_writes_three_bodies_same_content(tmp_ws: Workspace):
assert bodies[0] == bodies[1] == bodies[2]
body = bodies[0]
assert "ONLY under `src/` and `public/`" in body
- assert "never import from `codeverse`" in body.lower() or "Never import from `codeverse`" in body
+ assert "never import from `codeverse3d`" in body.lower() or "Never import from `codeverse3d`" in body
assert CONTRACT.splitlines()[0] in body
assert "Spatial tools (3dcode)" in body
@@ -70,7 +70,7 @@ def test_ignore_files_keep_agent_facing_paths_readable(tmp_ws: Workspace):
long-prompt file (trajectories/<label>_rNN/task_prompt.md) must NOT be ignored."""
import fnmatch
- from codeverse.agents.materialize import IGNORE_LINES
+ from codeverse3d.agents.materialize import IGNORE_LINES
_mat(tmp_ws)
@@ -106,11 +106,11 @@ def test_spatial_disabled_drops_server_and_documents_absence(tmp_ws: Workspace):
def test_cookbook_copied_when_found(tmp_ws: Workspace, tmp_path, caplog):
cb = tmp_path / "cookbook.md"
cb.write_text("# cookbook\nsnippet")
- with caplog.at_level(logging.WARNING, logger="codeverse.agents.materialize"):
+ with caplog.at_level(logging.WARNING, logger="codeverse3d.agents.materialize"):
_mat(tmp_ws, cookbook=str(cb))
- assert (tmp_ws.root / CV3D_DIR / "cookbook.md").read_text().startswith("# cookbook")
- assert f"{CV3D_DIR}/cookbook.md" in (tmp_ws.root / "AGENTS.md").read_text()
- assert not [r for r in caplog.records if r.name == "codeverse.agents.materialize"], \
+ assert (tmp_ws.root / C3D_DIR / "cookbook.md").read_text().startswith("# cookbook")
+ assert f"{C3D_DIR}/cookbook.md" in (tmp_ws.root / "AGENTS.md").read_text()
+ assert not [r for r in caplog.records if r.name == "codeverse3d.agents.materialize"], \
"a resolved cookbook must not warn"
@@ -119,7 +119,7 @@ def test_missing_cookbook_warns_where_someone_can_see_it(tmp_ws: Workspace, capl
(an articulated run told the agent "No cookbook is available" while its 24 kB cookbook sat
on disk). It used to land in a `Materialized.warnings` list every caller threw away; the
log line is the whole signal now, so it has to fire."""
- with caplog.at_level(logging.WARNING, logger="codeverse.agents.materialize"):
+ with caplog.at_level(logging.WARNING, logger="codeverse3d.agents.materialize"):
_mat(tmp_ws, cookbook="nope/cookbook.md")
assert any("cookbook not found" in r.getMessage() and "nope/cookbook.md" in r.getMessage()
for r in caplog.records)
@@ -130,7 +130,7 @@ def test_kind_specific_tool_hint(tmp_ws: Workspace):
_mat(tmp_ws, kind="claude-code")
assert "mcp__3dcode__" in (tmp_ws.root / "CLAUDE.md").read_text()
_mat(tmp_ws, kind="agy")
- assert "codeverse.cli.main tools" in (tmp_ws.root / "AGENTS.md").read_text()
+ assert "codeverse3d.cli.main tools" in (tmp_ws.root / "AGENTS.md").read_text()
def test_codex_overrides_are_valid_toml_fragments():
diff --git a/harness/tests/agents/test_transcript.py b/harness/tests/agents/test_transcript.py
index f4bad8fd..5d5bd1d6 100644
--- a/harness/tests/agents/test_transcript.py
+++ b/harness/tests/agents/test_transcript.py
@@ -1,11 +1,11 @@
-"""codeverse/agents/transcript.py — the per-session transcript budget."""
+"""codeverse3d/agents/transcript.py — the per-session transcript budget."""
from __future__ import annotations
from pathlib import Path
-from codeverse.agents import cli_common as tr
-from codeverse.agents.cli_common import Trajectory
+from codeverse3d.agents import cli_common as tr
+from codeverse3d.agents.cli_common import Trajectory
def test_the_transcript_stops_at_its_budget_with_a_marker_row(tmp_path: Path, monkeypatch):
diff --git a/harness/tests/agents/test_watchdog.py b/harness/tests/agents/test_watchdog.py
index f05546da..88913984 100644
--- a/harness/tests/agents/test_watchdog.py
+++ b/harness/tests/agents/test_watchdog.py
@@ -13,7 +13,7 @@ from pathlib import Path
import pytest
-from codeverse.agents.cli_common import run_with_watchdog
+from codeverse3d.agents.cli_common import run_with_watchdog
from tests.conftest import assert_pid_gone
PY = sys.executable
diff --git a/harness/tests/blender_cadquery/conftest.py b/harness/tests/blender_cadquery/conftest.py
index 0447a47c..618e61a2 100644
--- a/harness/tests/blender_cadquery/conftest.py
+++ b/harness/tests/blender_cadquery/conftest.py
@@ -6,8 +6,8 @@ import shutil
import pytest
-from codeverse.config import get_settings
-from codeverse.contracts.plan import AcceptanceItem, BBox, PartPlan, StaticPlan
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.plan import AcceptanceItem, BBox, PartPlan, StaticPlan
@pytest.fixture
diff --git a/harness/tests/blender_cadquery/test_artifact_stage.py b/harness/tests/blender_cadquery/test_artifact_stage.py
index ef160e49..64f9c939 100644
--- a/harness/tests/blender_cadquery/test_artifact_stage.py
+++ b/harness/tests/blender_cadquery/test_artifact_stage.py
@@ -10,7 +10,7 @@ from __future__ import annotations
import pytest
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
def _seed(ws: Workspace) -> None:
diff --git a/harness/tests/blender_cadquery/test_blender_layout.py b/harness/tests/blender_cadquery/test_blender_layout.py
index fb01cbe5..f4a6b2bc 100644
--- a/harness/tests/blender_cadquery/test_blender_layout.py
+++ b/harness/tests/blender_cadquery/test_blender_layout.py
@@ -7,7 +7,7 @@ import importlib.util
import sys
from pathlib import Path
-from codeverse.languages.blender import (
+from codeverse3d.languages.blender import (
WRAPPER,
build_fn_name,
lint_workspace,
diff --git a/harness/tests/blender_cadquery/test_blender_lint.py b/harness/tests/blender_cadquery/test_blender_lint.py
index 0764e5b6..620fe2e5 100644
--- a/harness/tests/blender_cadquery/test_blender_lint.py
+++ b/harness/tests/blender_cadquery/test_blender_lint.py
@@ -4,8 +4,8 @@ from __future__ import annotations
from pathlib import Path
-from codeverse.contracts.artifacts import Severity
-from codeverse.languages.blender import lint_blender_file, lint_blender_source
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.languages.blender import lint_blender_file, lint_blender_source
GOOD = '''
import bpy
diff --git a/harness/tests/blender_cadquery/test_blender_live_gates.py b/harness/tests/blender_cadquery/test_blender_live_gates.py
index 7d1b6c87..9cb4a953 100644
--- a/harness/tests/blender_cadquery/test_blender_live_gates.py
+++ b/harness/tests/blender_cadquery/test_blender_live_gates.py
@@ -12,8 +12,8 @@ import subprocess
import pytest
-from codeverse.contracts.artifacts import Severity
-from codeverse.languages.blender import REMOVED_BSDF_INPUTS, BlenderRuntime, blender_env
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.languages.blender import REMOVED_BSDF_INPUTS, BlenderRuntime, blender_env
pytestmark = pytest.mark.blender
@@ -21,8 +21,8 @@ pytestmark = pytest.mark.blender
@pytest.mark.blender
def test_skeleton_with_instances_passes_contract_gate(tmp_ws, table_plan, blender_bin) -> None:
"""Finding: instances under an Empty merged into one GLB part → 'plan part missing' ERROR."""
- from codeverse.spatial.contract import check_contract
- from codeverse.spatial.measure import measure_glb
+ from codeverse3d.spatial.contract import check_contract
+ from codeverse3d.spatial.measure import measure_glb
rt = BlenderRuntime(blender=blender_bin)
rt.skeleton(tmp_ws, table_plan) # multi-file: src/model.py + src/parts/*.py
diff --git a/harness/tests/blender_cadquery/test_blender_multifile.py b/harness/tests/blender_cadquery/test_blender_multifile.py
index 9b755cf7..33efcf79 100644
--- a/harness/tests/blender_cadquery/test_blender_multifile.py
+++ b/harness/tests/blender_cadquery/test_blender_multifile.py
@@ -10,10 +10,10 @@ from pathlib import Path
import pytest
-from codeverse.contracts.plan import BBox, PartPlan, StaticPlan
-from codeverse.languages.blender import BlenderRuntime
-from codeverse.prompts import PROMPTS_DIR
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.plan import BBox, PartPlan, StaticPlan
+from codeverse3d.languages.blender import BlenderRuntime
+from codeverse3d.prompts import PROMPTS_DIR
+from codeverse3d.workspace import Workspace
_LABELLED_PY = re.compile(r"`((?:src|public)/[^`]+)`\n```py\n(.*?)```", re.DOTALL)
diff --git a/harness/tests/blender_cadquery/test_blender_runtime.py b/harness/tests/blender_cadquery/test_blender_runtime.py
index a1de41df..ac7c413e 100644
--- a/harness/tests/blender_cadquery/test_blender_runtime.py
+++ b/harness/tests/blender_cadquery/test_blender_runtime.py
@@ -9,10 +9,10 @@ from pathlib import Path
import pytest
-from codeverse.contracts.artifacts import BuildResult
-from codeverse.languages import get_runtime
-from codeverse.languages.base import LanguageRuntime
-from codeverse.languages.blender import (
+from codeverse3d.contracts.artifacts import BuildResult
+from codeverse3d.languages import get_runtime
+from codeverse3d.languages.base import LanguageRuntime
+from codeverse3d.languages.blender import (
WRAPPER,
BlenderNotFoundError,
BlenderRuntime,
diff --git a/harness/tests/blender_cadquery/test_blender_skeleton.py b/harness/tests/blender_cadquery/test_blender_skeleton.py
index 53c218f7..45aad899 100644
--- a/harness/tests/blender_cadquery/test_blender_skeleton.py
+++ b/harness/tests/blender_cadquery/test_blender_skeleton.py
@@ -4,8 +4,8 @@ from __future__ import annotations
import ast
-from codeverse.contracts.plan import BBox
-from codeverse.languages.blender import (
+from codeverse3d.contracts.plan import BBox
+from codeverse3d.languages.blender import (
finish_for,
instance_centers,
lint_blender_source,
diff --git a/harness/tests/blender_cadquery/test_cadquery_lint.py b/harness/tests/blender_cadquery/test_cadquery_lint.py
index ea13b330..82698daf 100644
--- a/harness/tests/blender_cadquery/test_cadquery_lint.py
+++ b/harness/tests/blender_cadquery/test_cadquery_lint.py
@@ -2,8 +2,8 @@
from __future__ import annotations
-from codeverse.contracts.artifacts import Severity
-from codeverse.languages.cadquery import lint_cadquery_source
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.languages.cadquery import lint_cadquery_source
GOOD = '''
import cadquery as cq
diff --git a/harness/tests/blender_cadquery/test_cadquery_runtime.py b/harness/tests/blender_cadquery/test_cadquery_runtime.py
index 5b467fb0..38d01111 100644
--- a/harness/tests/blender_cadquery/test_cadquery_runtime.py
+++ b/harness/tests/blender_cadquery/test_cadquery_runtime.py
@@ -12,9 +12,9 @@ from pathlib import Path
import pytest
-from codeverse.languages import get_runtime
-from codeverse.languages.base import LanguageRuntime
-from codeverse.languages.cadquery import (
+from codeverse3d.languages import get_runtime
+from codeverse3d.languages.base import LanguageRuntime
+from codeverse3d.languages.cadquery import (
WRAPPER,
CadQueryRuntime,
cadquery_env,
@@ -30,14 +30,14 @@ def test_protocol_and_contract() -> None:
rt = get_runtime("cadquery")
assert isinstance(rt, CadQueryRuntime) and isinstance(rt, LanguageRuntime)
assert "cq.Assembly" in rt.contract_doc() and rt.entry_globs == ("src/model.py",)
- cmd = rt.build_command(__import__("codeverse.workspace", fromlist=["Workspace"]).Workspace("/tmp/x"), seed=1)
+ cmd = rt.build_command(__import__("codeverse3d.workspace", fromlist=["Workspace"]).Workspace("/tmp/x"), seed=1)
assert cmd[0] == sys.executable and cmd[1] == str(WRAPPER) and "--seed" in cmd
def test_skeleton_source_parses_and_lints(table_plan) -> None:
src = cadquery_skeleton_source(table_plan)
ast.parse(src)
- assert "codeverse" not in src
+ assert "codeverse3d" not in src
assert 'name="TableTop"' in src and 'name=f"Leg_{_i}"' in src and "result = cq.Assembly(" in src
assert lint_cadquery_source(src).passed
diff --git a/harness/tests/blender_cadquery/test_common.py b/harness/tests/blender_cadquery/test_common.py
index a627da1c..fc82b066 100644
--- a/harness/tests/blender_cadquery/test_common.py
+++ b/harness/tests/blender_cadquery/test_common.py
@@ -1,16 +1,16 @@
-"""Unit tests for codeverse.languages._common (offline)."""
+"""Unit tests for codeverse3d.languages._common (offline)."""
from __future__ import annotations
import json
from pathlib import Path
-from codeverse.languages._common import (
+from codeverse3d.languages._common import (
ProcResult,
compose_build_result,
strip_blender_noise,
)
-from codeverse.proc import write_json_atomic
+from codeverse3d.proc import write_json_atomic
def test_strip_blender_noise() -> None:
diff --git a/harness/tests/blender_cadquery/test_material_slots.py b/harness/tests/blender_cadquery/test_material_slots.py
index 5bade0ba..aad0e0ac 100644
--- a/harness/tests/blender_cadquery/test_material_slots.py
+++ b/harness/tests/blender_cadquery/test_material_slots.py
@@ -14,13 +14,13 @@ from typing import Any
import pytest
-from codeverse.languages.blender import BlenderRuntime
+from codeverse3d.languages.blender import BlenderRuntime
-CENSUS = Path(__file__).resolve().parents[2] / "codeverse" / "languages" / "blender" / "wrappers" / "_census.py"
+CENSUS = Path(__file__).resolve().parents[2] / "codeverse3d" / "languages" / "blender" / "wrappers" / "_census.py"
def _census_module() -> Any:
- """``_census`` is executed BY Blender (it must not import codeverse), so load it by path."""
+ """``_census`` is executed BY Blender (it must not import codeverse3d), so load it by path."""
spec = importlib.util.spec_from_file_location("census_under_test", CENSUS)
mod = importlib.util.module_from_spec(spec)
assert spec.loader is not None
diff --git a/harness/tests/blender_cadquery/test_prompt_block_lint.py b/harness/tests/blender_cadquery/test_prompt_block_lint.py
index 1e25f03a..263867eb 100644
--- a/harness/tests/blender_cadquery/test_prompt_block_lint.py
+++ b/harness/tests/blender_cadquery/test_prompt_block_lint.py
@@ -5,10 +5,10 @@ from __future__ import annotations
import re
from pathlib import Path
-from codeverse.languages.blender import lint_blender_source
-from codeverse.languages.cadquery import lint_cadquery_source
+from codeverse3d.languages.blender import lint_blender_source
+from codeverse3d.languages.cadquery import lint_cadquery_source
-PROMPTS = Path(__file__).resolve().parents[2] / "codeverse" / "prompts"
+PROMPTS = Path(__file__).resolve().parents[2] / "codeverse3d" / "prompts"
FENCE = re.compile(r"^```(?:py|python)\s*$(.*?)^```\s*$", re.M | re.S)
BLENDER_HEADER = (
diff --git a/harness/tests/conftest.py b/harness/tests/conftest.py
index 8e247cfd..3ba826e9 100644
--- a/harness/tests/conftest.py
+++ b/harness/tests/conftest.py
@@ -8,7 +8,7 @@ from pathlib import Path
import pytest
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
@pytest.fixture
diff --git a/harness/tests/core/test_addons_boundary.py b/harness/tests/core/test_addons_boundary.py
index 13c91780..8f216ecf 100644
--- a/harness/tests/core/test_addons_boundary.py
+++ b/harness/tests/core/test_addons_boundary.py
@@ -1,17 +1,17 @@
-"""``codeverse.addons`` reads finished runs; a run never needs it. One-way, pinned here."""
+"""``codeverse3d.addons`` reads finished runs; a run never needs it. One-way, pinned here."""
from __future__ import annotations
import re
from pathlib import Path
-import codeverse
-import codeverse.addons
+import codeverse3d
+import codeverse3d.addons
-PKG = Path(codeverse.__file__).parent
-# an import statement, or a module named in a string (the lazy `_import("codeverse.…")` call sites);
+PKG = Path(codeverse3d.__file__).parent
+# an import statement, or a module named in a string (the lazy `_import("codeverse3d.…")` call sites);
# prose that points a reader at the addons is fine
-IMPORTS_ADDON = re.compile(r"""(?:\bimport|\bfrom)\s+codeverse\.addons|["']codeverse\.addons""")
+IMPORTS_ADDON = re.compile(r"""(?:\bimport|\bfrom)\s+codeverse3d\.addons|["']codeverse3d\.addons""")
def test_nothing_outside_the_cli_imports_an_addon() -> None:
@@ -26,4 +26,4 @@ def test_nothing_outside_the_cli_imports_an_addon() -> None:
def test_the_addons_are_the_ones_the_docstring_lists() -> None:
names = sorted(p.stem for p in (PKG / "addons").iterdir() if p.name not in {"__init__.py", "__pycache__"})
assert names == ["calibration", "costreport", "dataset", "gallery", "skill_targets"]
- assert all(f"``{n}``" in (codeverse.addons.__doc__ or "") for n in names)
+ assert all(f"``{n}``" in (codeverse3d.addons.__doc__ or "") for n in names)
diff --git a/harness/tests/core/test_cli_render_size.py b/harness/tests/core/test_cli_render_size.py
index d7c27bf8..47d6c57c 100644
--- a/harness/tests/core/test_cli_render_size.py
+++ b/harness/tests/core/test_cli_render_size.py
@@ -8,13 +8,13 @@ from typing import Any
import pytest
from typer.testing import CliRunner
-import codeverse.spatial.render as R
-import codeverse.spatial.render_scene as RS
-from codeverse.cli.main import app
-from codeverse.contracts.artifacts import RenderSet
-from codeverse.contracts.common import Backends, Language, Track
-from codeverse.contracts.spec import Spec
-from codeverse.workspace import Workspace
+import codeverse3d.spatial.render as R
+import codeverse3d.spatial.render_scene as RS
+from codeverse3d.cli.main import app
+from codeverse3d.contracts.artifacts import RenderSet
+from codeverse3d.contracts.common import Backends, Language, Track
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.workspace import Workspace
runner = CliRunner()
@@ -22,10 +22,10 @@ runner = CliRunner()
@pytest.fixture(autouse=True)
def _isolated_cache(tmp_path, monkeypatch):
"""render_glb memoizes into <cache_dir>/renders, so without this the fake renders
- land in (and are served from) the developer's real ~/.cache/codeverse."""
- from codeverse.config import get_settings
+ land in (and are served from) the developer's real ~/.cache/codeverse3d."""
+ from codeverse3d.config import get_settings
- monkeypatch.setenv("CV3D_CACHE_DIR", str(tmp_path / "cache"))
+ monkeypatch.setenv("C3D_CACHE_DIR", str(tmp_path / "cache"))
get_settings.cache_clear()
yield
get_settings.cache_clear()
@@ -60,9 +60,9 @@ def _run(tmp_path: Path, language: Language, track: Track) -> Path:
def test_object_render_uses_configured_size_and_explicit_flags_win(tmp_path, captured, monkeypatch):
runs = _run(tmp_path, Language.BLENDER, Track.STATIC_OBJECT)
- monkeypatch.setenv("CV3D_RENDER__WIDTH", "1600")
- monkeypatch.setenv("CV3D_RENDER__HEIGHT", "1200")
- from codeverse.config import get_settings
+ monkeypatch.setenv("C3D_RENDER__WIDTH", "1600")
+ monkeypatch.setenv("C3D_RENDER__HEIGHT", "1200")
+ from codeverse3d.config import get_settings
get_settings.cache_clear()
res = runner.invoke(app, ["render", "r1", "--runs-dir", str(runs)])
@@ -76,9 +76,9 @@ def test_object_render_uses_configured_size_and_explicit_flags_win(tmp_path, cap
def test_scene_render_uses_the_scene_size(tmp_path, captured, monkeypatch):
runs = _run(tmp_path, Language.SCENE_THREEJS, Track.SCENE)
- monkeypatch.setenv("CV3D_RENDER__SCENE_WIDTH", "1920")
- monkeypatch.setenv("CV3D_RENDER__SCENE_HEIGHT", "1080")
- from codeverse.config import get_settings
+ monkeypatch.setenv("C3D_RENDER__SCENE_WIDTH", "1920")
+ monkeypatch.setenv("C3D_RENDER__SCENE_HEIGHT", "1080")
+ from codeverse3d.config import get_settings
get_settings.cache_clear()
res = runner.invoke(app, ["render", "r1", "--runs-dir", str(runs)])
diff --git a/harness/tests/core/test_config_backends.py b/harness/tests/core/test_config_backends.py
index ce51c726..69908784 100644
--- a/harness/tests/core/test_config_backends.py
+++ b/harness/tests/core/test_config_backends.py
@@ -4,8 +4,8 @@ from __future__ import annotations
import pytest
-from codeverse.config import Settings
-from codeverse.contracts.common import Backends
+from codeverse3d.config import Settings
+from codeverse3d.contracts.common import Backends
def test_settings_defaults_mirror_backends():
@@ -39,5 +39,5 @@ def test_backends_rejects_unknown_role():
def test_env_override_still_wins(monkeypatch):
- monkeypatch.setenv("CV3D_DEFAULT_CAPTIONER", "gemini:from-env")
+ monkeypatch.setenv("C3D_DEFAULT_CAPTIONER", "gemini:from-env")
assert Settings().backends().captioner == "gemini:from-env"
diff --git a/harness/tests/core/test_config_env_aliases.py b/harness/tests/core/test_config_env_aliases.py
index 4f82b532..911f51d0 100644
--- a/harness/tests/core/test_config_env_aliases.py
+++ b/harness/tests/core/test_config_env_aliases.py
@@ -4,61 +4,61 @@ from __future__ import annotations
import pytest
-from codeverse.config import Settings
+from codeverse3d.config import Settings
def test_flat_and_nested_max_in_flight_aliases(monkeypatch):
- monkeypatch.delenv("CV3D_RATE__MAX_IN_FLIGHT", raising=False)
- monkeypatch.setenv("CV3D_MAX_IN_FLIGHT", "16")
+ monkeypatch.delenv("C3D_RATE__MAX_IN_FLIGHT", raising=False)
+ monkeypatch.setenv("C3D_MAX_IN_FLIGHT", "16")
assert Settings().rate.max_in_flight == 16
- monkeypatch.delenv("CV3D_MAX_IN_FLIGHT", raising=False)
- monkeypatch.setenv("CV3D_RATE__MAX_IN_FLIGHT", "24")
+ monkeypatch.delenv("C3D_MAX_IN_FLIGHT", raising=False)
+ monkeypatch.setenv("C3D_RATE__MAX_IN_FLIGHT", "24")
assert Settings().rate.max_in_flight == 24
- monkeypatch.setenv("CV3D_MAX_IN_FLIGHT", "8")
+ monkeypatch.setenv("C3D_MAX_IN_FLIGHT", "8")
assert Settings().rate.max_in_flight == 8
def test_empty_alias_is_ignored_and_garbage_is_loud(monkeypatch):
- monkeypatch.delenv("CV3D_RATE__MAX_IN_FLIGHT", raising=False)
- monkeypatch.setenv("CV3D_MAX_IN_FLIGHT", "")
+ monkeypatch.delenv("C3D_RATE__MAX_IN_FLIGHT", raising=False)
+ monkeypatch.setenv("C3D_MAX_IN_FLIGHT", "")
assert Settings().rate.max_in_flight == 64
- monkeypatch.setenv("CV3D_MAX_IN_FLIGHT", "sixteen")
- with pytest.raises(ValueError, match="CV3D_MAX_IN_FLIGHT"):
+ monkeypatch.setenv("C3D_MAX_IN_FLIGHT", "sixteen")
+ with pytest.raises(ValueError, match="C3D_MAX_IN_FLIGHT"):
Settings()
def test_render_gpu_is_read_by_both_spellings_and_garbage_is_loud(monkeypatch):
- """CV3D_RENDER_GPU is the spelling every doc and the node side use — it used to be
- read by NOTHING in Settings (only CV3D_RENDER__GPU was), so the documented knob
+ """C3D_RENDER_GPU is the spelling every doc and the node side use — it used to be
+ read by NOTHING in Settings (only C3D_RENDER__GPU was), so the documented knob
was dead on 2 of 3 tracks."""
- monkeypatch.delenv("CV3D_RENDER__GPU", raising=False)
- monkeypatch.setenv("CV3D_RENDER_GPU", "off")
+ monkeypatch.delenv("C3D_RENDER__GPU", raising=False)
+ monkeypatch.setenv("C3D_RENDER_GPU", "off")
assert Settings().render.gpu == "off"
- monkeypatch.setenv("CV3D_RENDER_GPU", "ON") # case-tolerant
+ monkeypatch.setenv("C3D_RENDER_GPU", "ON") # case-tolerant
assert Settings().render.gpu == "on"
- monkeypatch.delenv("CV3D_RENDER_GPU", raising=False)
- monkeypatch.setenv("CV3D_RENDER__GPU", "off")
+ monkeypatch.delenv("C3D_RENDER_GPU", raising=False)
+ monkeypatch.setenv("C3D_RENDER__GPU", "off")
assert Settings().render.gpu == "off"
- monkeypatch.setenv("CV3D_RENDER_GPU", "maybe")
- with pytest.raises(ValueError, match="CV3D_RENDER_GPU"):
+ monkeypatch.setenv("C3D_RENDER_GPU", "maybe")
+ with pytest.raises(ValueError, match="C3D_RENDER_GPU"):
Settings()
def test_a_negative_cap_is_rejected_by_both_spellings(monkeypatch):
"""Both spellings reject negative caps; zero remains the unlimited sentinel."""
- monkeypatch.delenv("CV3D_RATE__MAX_IN_FLIGHT", raising=False)
- monkeypatch.setenv("CV3D_MAX_IN_FLIGHT", "-5")
- with pytest.raises(ValueError, match="CV3D_MAX_IN_FLIGHT"): # names the variable they typed
+ monkeypatch.delenv("C3D_RATE__MAX_IN_FLIGHT", raising=False)
+ monkeypatch.setenv("C3D_MAX_IN_FLIGHT", "-5")
+ with pytest.raises(ValueError, match="C3D_MAX_IN_FLIGHT"): # names the variable they typed
Settings()
- monkeypatch.delenv("CV3D_MAX_IN_FLIGHT")
- monkeypatch.setenv("CV3D_RATE__MAX_IN_FLIGHT", "-5")
+ monkeypatch.delenv("C3D_MAX_IN_FLIGHT")
+ monkeypatch.setenv("C3D_RATE__MAX_IN_FLIGHT", "-5")
with pytest.raises(ValueError, match="max_in_flight"):
Settings()
def test_the_rate_and_limits_dials_carry_their_bounds(monkeypatch):
"""Reject rate/worker values that cannot make progress."""
- from codeverse.config import Limits, Rate
+ from codeverse3d.config import Limits, Rate
for kwargs in ({"max_in_flight": -1}, {"rpm_per_key": 0}, {"tpm_per_key": -1}):
with pytest.raises(ValueError):
@@ -74,19 +74,20 @@ def test_a_project_file_overrides_only_the_keys_it_names(tmp_path, monkeypatch):
"""Project YAML overlays named keys without discarding user-config siblings."""
import os
- from codeverse import config as C
+ from codeverse3d import config as C
home = tmp_path / "fakehome"
- (home / ".config" / "codeverse").mkdir(parents=True)
- (home / ".config" / "codeverse" / "config.yaml").write_text(
+ (home / ".config" / "3dcodeverse").mkdir(parents=True)
+ (home / ".config" / "3dcodeverse" / "config.yaml").write_text(
"rate:\n tpm_per_key: 250000\n rpm_per_key: 300\njudge:\n samples: 4\n")
proj = tmp_path / "proj"
proj.mkdir()
- (proj / "codeverse.yaml").write_text("rate:\n max_in_flight: 8\n")
+ (proj / "3dcodeverse.yaml").write_text("rate:\n max_in_flight: 8\n")
- monkeypatch.setattr(C, "_USER_CONFIG", home / ".config" / "codeverse" / "config.yaml")
+ monkeypatch.setattr(C, "_USER_CONFIG", home / ".config" / "3dcodeverse" / "config.yaml")
+ monkeypatch.setattr(C, "_LEGACY_USER_CONFIG", home / ".config" / "codeverse" / "config.yaml")
monkeypatch.chdir(proj)
- for var in ("CV3D_MAX_IN_FLIGHT", "CV3D_RATE__MAX_IN_FLIGHT", "CV3D_RATE__TPM_PER_KEY"):
+ for var in ("C3D_MAX_IN_FLIGHT", "C3D_RATE__MAX_IN_FLIGHT", "C3D_RATE__TPM_PER_KEY"):
monkeypatch.delenv(var, raising=False)
C.get_settings.cache_clear()
try:
@@ -100,11 +101,11 @@ def test_a_project_file_overrides_only_the_keys_it_names(tmp_path, monkeypatch):
assert s.judge.samples == 4
finally:
C.get_settings.cache_clear()
- os.environ.pop("CV3D_PROFILE", None)
+ os.environ.pop("C3D_PROFILE", None)
def test_deep_merge_overlays_per_key_at_every_depth():
- from codeverse.config import _deep_merge
+ from codeverse3d.config import _deep_merge
base = {"rate": {"tpm": 1, "rpm": 2}, "judge": {"samples": 4}, "scalar": 1}
over = {"rate": {"tpm": 9}, "scalar": 2, "new": {"a": 1}}
@@ -116,14 +117,41 @@ def test_deep_merge_overlays_per_key_at_every_depth():
def test_runtime_js_dir_override_and_loud_failure(tmp_path, monkeypatch):
- """CV3D_RUNTIME_JS supports relocation and rejects a missing directory."""
+ """C3D_RUNTIME_JS supports relocation and rejects a missing directory."""
good = tmp_path / "runtime_js"
good.mkdir()
- monkeypatch.setenv("CV3D_RUNTIME_JS", str(good))
+ monkeypatch.setenv("C3D_RUNTIME_JS", str(good))
assert Settings().runtime_js_dir() == good
- monkeypatch.setenv("CV3D_RUNTIME_JS", str(tmp_path / "nowhere"))
- with pytest.raises(RuntimeError, match="CV3D_RUNTIME_JS"):
+ monkeypatch.setenv("C3D_RUNTIME_JS", str(tmp_path / "nowhere"))
+ with pytest.raises(RuntimeError, match="C3D_RUNTIME_JS"):
Settings().runtime_js_dir()
- monkeypatch.delenv("CV3D_RUNTIME_JS")
+ monkeypatch.delenv("C3D_RUNTIME_JS")
assert Settings().runtime_js_dir().name == "runtime_js" # editable checkout resolves
+
+
+def test_the_config_names_before_d78_are_still_read_under_the_new_ones(tmp_path, monkeypatch):
+ """`~/.config/codeverse/config.yaml` and `./codeverse.yaml` were the names until 2026-09-22:
+ a machine that still has them keeps its settings, and a new file wins per setting."""
+ from codeverse3d import config as C
+
+ home = tmp_path / "fakehome"
+ (home / ".config" / "codeverse").mkdir(parents=True)
+ (home / ".config" / "codeverse" / "config.yaml").write_text("rate:\n tpm_per_key: 250000\n rpm_per_key: 300\n")
+ (home / ".config" / "3dcodeverse").mkdir(parents=True)
+ (home / ".config" / "3dcodeverse" / "config.yaml").write_text("rate:\n rpm_per_key: 400\n")
+ proj = tmp_path / "proj"
+ proj.mkdir()
+ (proj / "codeverse.yaml").write_text("rate:\n max_in_flight: 8\n")
+ monkeypatch.setattr(C, "_USER_CONFIG", home / ".config" / "3dcodeverse" / "config.yaml")
+ monkeypatch.setattr(C, "_LEGACY_USER_CONFIG", home / ".config" / "codeverse" / "config.yaml")
+ monkeypatch.chdir(proj)
+ for var in ("C3D_MAX_IN_FLIGHT", "C3D_RATE__MAX_IN_FLIGHT", "C3D_RATE__TPM_PER_KEY", "C3D_RATE__RPM_PER_KEY"):
+ monkeypatch.delenv(var, raising=False)
+ C.get_settings.cache_clear()
+ try:
+ s = C.get_settings()
+ assert (s.rate.tpm_per_key, s.rate.rpm_per_key, s.rate.max_in_flight) == (250000, 400, 8)
+ finally:
+ C.get_settings.cache_clear()
+
diff --git a/harness/tests/core/test_contract_additions.py b/harness/tests/core/test_contract_additions.py
index 9d97b333..a4c454d2 100644
--- a/harness/tests/core/test_contract_additions.py
+++ b/harness/tests/core/test_contract_additions.py
@@ -5,7 +5,7 @@ from __future__ import annotations
import pytest
from pydantic import ValidationError
-from codeverse.contracts import (
+from codeverse3d.contracts import (
ENTRY_FILE,
LANGUAGE_LABEL,
TRACK_INFO,
@@ -16,12 +16,12 @@ from codeverse.contracts import (
Track,
code_file,
)
-from codeverse.contracts.artifacts import GateFinding, RenderSet, RenderView, Severity
+from codeverse3d.contracts.artifacts import GateFinding, RenderSet, RenderView, Severity
# ------------------------------------------------------------------ registries
def test_registries_cover_their_enums_and_are_frozen():
- from codeverse.conventions import LANGUAGE_FRAME, Frame
+ from codeverse3d.conventions import LANGUAGE_FRAME, Frame
assert set(TRACK_INFO) == set(Track)
assert TRACK_INFO[Track.STATIC_OBJECT].rubric == "static_object_v1"
@@ -87,8 +87,8 @@ def test_spec_options_default_legacy_roundtrip_and_validation():
def test_spec_options_do_not_change_the_plan_stage_hash():
- from codeverse.orchestrator import hash_inputs
- from codeverse.tracks.lifecycle import plan_stage_inputs
+ from codeverse3d.orchestrator import hash_inputs
+ from codeverse3d.tracks.lifecycle import plan_stage_inputs
plain = Spec(id="x", track=Track.STATIC_OBJECT, language=Language.BLENDER, prompt="a chair")
opted = plain.model_copy(update={"options": RunOptions(candidates=4, texture=True)})
@@ -100,8 +100,8 @@ def test_records_written_before_the_2026_08_30_field_retirements_still_load():
first_seen_turn (an api-agent leftover) and AgentJob.images (dead once image staging
moved to .3dcode/images/) were deleted. Every model here ignores unknown keys, so the
stored runs on disk must keep re-reading — that is the whole licence for the delete."""
- from codeverse.contracts.agent import AgentJob
- from codeverse.contracts.run import RoundRecord, SkillRead
+ from codeverse3d.contracts.agent import AgentJob
+ from codeverse3d.contracts.run import RoundRecord, SkillRead
rs = RenderSet.model_validate({"renderer": "blender", "turntable": "renders/turntable.mp4",
"contact_sheet": "renders/sheet.png"})
diff --git a/harness/tests/core/test_contracts.py b/harness/tests/core/test_contracts.py
index d17f2c9e..058a0252 100644
--- a/harness/tests/core/test_contracts.py
+++ b/harness/tests/core/test_contracts.py
@@ -7,7 +7,7 @@ import math
import pytest
from pydantic import ValidationError
-from codeverse.contracts import (
+from codeverse3d.contracts import (
ArticulatedPlan,
BBox,
Budget,
@@ -21,8 +21,8 @@ from codeverse.contracts import (
Track,
Usage,
)
-from codeverse.contracts.plan import AssetPlan, CameraPlan, ZonePlan
-from codeverse.conventions import (
+from codeverse3d.contracts.plan import AssetPlan, CameraPlan, ZonePlan
+from codeverse3d.conventions import (
OBJECT_CLAY_VIEWS,
OBJECT_VIEWS,
OBJECT_VIEWS_QUICK,
diff --git a/harness/tests/core/test_events.py b/harness/tests/core/test_events.py
index eb5d2e9e..cf1d64a0 100644
--- a/harness/tests/core/test_events.py
+++ b/harness/tests/core/test_events.py
@@ -7,11 +7,11 @@ from pathlib import Path
from typer.testing import CliRunner
-from codeverse.cli.main import app
-from codeverse.contracts.common import Backends, Language, Track
-from codeverse.contracts.spec import Spec
-from codeverse.proc import EventLog
-from codeverse.workspace import Workspace
+from codeverse3d.cli.main import app
+from codeverse3d.contracts.common import Backends, Language, Track
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.proc import EventLog
+from codeverse3d.workspace import Workspace
runner = CliRunner()
diff --git a/harness/tests/core/test_file_length.py b/harness/tests/core/test_file_length.py
index cff49ece..e184cbc1 100644
--- a/harness/tests/core/test_file_length.py
+++ b/harness/tests/core/test_file_length.py
@@ -5,7 +5,7 @@ A file may be long, but not a god file. There is no soft threshold and no
whole rule, and it was raised from 1 500 to 2 000 on 2026-08-28 along with the
other half of the rule, which no test can check: merging files is not a goal in
itself, so a merge has to DELETE code rather than move it.
-Largest file when the cap was raised: codeverse/orchestrator.py at 1 132 lines.
+Largest file when the cap was raised: codeverse3d/orchestrator.py at 1 132 lines.
"""
from __future__ import annotations
diff --git a/harness/tests/core/test_legacy_env_prefix.py b/harness/tests/core/test_legacy_env_prefix.py
new file mode 100644
index 00000000..3d79337b
--- /dev/null
+++ b/harness/tests/core/test_legacy_env_prefix.py
@@ -0,0 +1,25 @@
+"""`CV3D_` was the settings prefix until D78 (2026-09-22); a shell that still sets it keeps working."""
+
+from __future__ import annotations
+
+import os
+import subprocess
+import sys
+
+
+def _run(env: dict[str, str]) -> subprocess.CompletedProcess[str]:
+ code = ("import os, codeverse3d; "
+ "print(os.environ.get('C3D_RUNS_DIR', '-'), os.environ.get('C3D_RENDER__GPU', '-'))")
+ clean = {k: v for k, v in os.environ.items() if not k.startswith(("CV3D_", "C3D_"))}
+ return subprocess.run([sys.executable, "-c", code], env={**clean, **env}, capture_output=True, text=True, check=True)
+
+
+def test_an_old_prefix_is_read_as_the_new_one_and_named_in_a_warning():
+ p = _run({"CV3D_RUNS_DIR": "/tmp/old", "CV3D_RENDER__GPU": "off"})
+ assert p.stdout.split() == ["/tmp/old", "off"]
+ assert "CV3D_RENDER__GPU" in p.stderr and "CV3D_RUNS_DIR" in p.stderr
+
+
+def test_the_new_name_wins_when_both_are_set():
+ p = _run({"CV3D_RUNS_DIR": "/tmp/old", "C3D_RUNS_DIR": "/tmp/new"})
+ assert p.stdout.split()[0] == "/tmp/new" and p.stderr == ""
diff --git a/harness/tests/core/test_plan_normalise.py b/harness/tests/core/test_plan_normalise.py
index 5ff334ba..c2f83073 100644
--- a/harness/tests/core/test_plan_normalise.py
+++ b/harness/tests/core/test_plan_normalise.py
@@ -8,9 +8,9 @@ import math
import pytest
from pydantic import ValidationError
-from codeverse.contracts.common import Track
-from codeverse.contracts.plan import ArticulatedPlan
-from codeverse.tracks.planner import plan_example
+from codeverse3d.contracts.common import Track
+from codeverse3d.contracts.plan import ArticulatedPlan
+from codeverse3d.tracks.planner import plan_example
def _raw() -> dict:
@@ -124,7 +124,7 @@ def test_unfixable_plans_still_fail():
def test_planner_text_in_normalisations_is_dropped():
"""Planner prose cannot masquerade as harness repair history."""
- from codeverse.contracts.plan import ArticulatedPlan
+ from codeverse3d.contracts.plan import ArticulatedPlan
raw = ArticulatedPlan._normalise_raw({"parts": [{"name": "A", "bbox": {"center": [0, 0, 0], "extents": [1, 1, 1]}}],
"joints": [{"name": "j", "parent": "A", "child": "A", "type": "revolute", "lower": 0, "upper": 1}],
diff --git a/harness/tests/core/test_portability.py b/harness/tests/core/test_portability.py
index 05cc75c9..170fdb70 100644
--- a/harness/tests/core/test_portability.py
+++ b/harness/tests/core/test_portability.py
@@ -14,7 +14,7 @@ from pathlib import Path
import pytest
-from codeverse.spatial.node import (
+from codeverse3d.spatial.node import (
NODE_MIN,
NODE_MIN_STR,
NodeError,
@@ -22,7 +22,7 @@ from codeverse.spatial.node import (
parse_node_version,
require_node_version,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
HARNESS = Path(__file__).resolve().parents[2]
PY_FLOOR = (3, 13)
@@ -40,8 +40,8 @@ def test_setup_and_runtime_js_declare_the_same_runtime_floors() -> None:
def test_package_data_ships_every_file_a_runtime_reads() -> None:
"""Every runtime data file matches a live package-data glob."""
cfg = tomllib.loads((HARNESS / "pyproject.toml").read_text())
- globs = cfg["tool"]["setuptools"]["package-data"]["codeverse"]
- pkg = HARNESS / "codeverse"
+ globs = cfg["tool"]["setuptools"]["package-data"]["codeverse3d"]
+ pkg = HARNESS / "codeverse3d"
shipped: set[Path] = set()
for g in globs:
hits = {p for p in pkg.glob(g) if p.is_file()}
@@ -51,13 +51,13 @@ def test_package_data_ships_every_file_a_runtime_reads() -> None:
if p.is_file() and p.suffix not in (".py", ".pyc") and "__pycache__" not in p.parts}
missing = sorted(str(p.relative_to(pkg)) for p in data - shipped)
assert not missing, f"data files no wheel would ship: {missing}"
- excluded = cfg["tool"]["setuptools"]["exclude-package-data"]["codeverse"]
+ excluded = cfg["tool"]["setuptools"]["exclude-package-data"]["codeverse3d"]
assert any("__pycache__" in g for g in excluded), "a wheel must not carry the build host's bytecode"
def test_write_example_refuses_to_write_nothing(tmp_path, monkeypatch) -> None:
"""A package missing its starter tree fails instead of writing an empty scene."""
- import codeverse.languages.scene_threejs as skeleton
+ import codeverse3d.languages.scene_threejs as skeleton
monkeypatch.setattr(skeleton, "STARTER_DIR", tmp_path / "gone" / "src")
with pytest.raises(FileNotFoundError, match="starter tree missing"):
@@ -82,11 +82,11 @@ def test_node_version_parsing_and_gate() -> None:
msg = node_version_error(version)
assert ".".join(map(str, version)) in msg
assert NODE_MIN_STR in msg
- assert "CV3D_BINARIES__NODE" in msg and "nvm" in msg
+ assert "C3D_BINARIES__NODE" in msg and "nvm" in msg
def test_run_node_enforces_the_version_floor(tmp_path, monkeypatch) -> None:
- import codeverse.spatial.node as node_mod
+ import codeverse3d.spatial.node as node_mod
script = tmp_path / "noop.mjs"
script.write_text("console.log('{}')\n")
diff --git a/harness/tests/core/test_proc.py b/harness/tests/core/test_proc.py
index 947072e8..001de884 100644
--- a/harness/tests/core/test_proc.py
+++ b/harness/tests/core/test_proc.py
@@ -13,7 +13,7 @@ from pathlib import Path
import pytest
-from codeverse.proc import (
+from codeverse3d.proc import (
STREAM_BUDGET_BYTES,
ManagedProcess,
ProcResult,
@@ -63,7 +63,7 @@ def test_a_leader_that_exits_0_still_takes_its_grandchildren_down(tmp_path: Path
def test_a_leader_that_exits_0_does_not_burn_the_drain_window(tmp_path: Path, monkeypatch):
"""Inherited pipes do not force a clean exit through the drain timeout."""
- import codeverse.proc as proc_mod
+ import codeverse3d.proc as proc_mod
monkeypatch.setattr(proc_mod, "DRAIN_TIMEOUT_S", 3.0)
pid_file = tmp_path / "pid"
@@ -78,7 +78,7 @@ def test_a_leader_that_exits_0_does_not_burn_the_drain_window(tmp_path: Path, mo
def test_a_detached_descendant_holding_the_pipes_cannot_extend_the_timeout(tmp_path: Path, monkeypatch):
"""A detached descendant holding stdout cannot extend the caller's timeout."""
- import codeverse.proc as proc_mod
+ import codeverse3d.proc as proc_mod
# raising=False so this test still RUNS (and fails on the hang) against the
# pre-fix module, which has no such constant
@@ -145,7 +145,7 @@ def test_workspace_write_json_delegates(tmp_ws):
_WRITER = """
import json, sys
from pathlib import Path
-from codeverse.proc import write_json_atomic
+from codeverse3d.proc import write_json_atomic
path, tag, n = Path(sys.argv[1]), sys.argv[2], int(sys.argv[3])
payload = {"writer": tag, "blob": [tag * 40] * 900}
@@ -179,7 +179,7 @@ def test_write_json_atomic_survives_concurrent_writers(tmp_path: Path):
def test_unique_tmp_is_per_process_and_per_thread(tmp_path: Path):
"""Simultaneously live threads choose distinct process/thread temp names."""
- from codeverse.proc import unique_tmp
+ from codeverse3d.proc import unique_tmp
out = tmp_path / "cache" / "checker.mjs"
seen: list[Path] = []
@@ -206,7 +206,7 @@ def test_unique_tmp_is_per_process_and_per_thread(tmp_path: Path):
def test_concurrent_writers_of_one_destination_all_succeed(tmp_path: Path):
"""Barrier-synchronized writers can safely replace one destination."""
- from codeverse.proc import write_text_atomic
+ from codeverse3d.proc import write_text_atomic
out = tmp_path / "shared.txt"
n = 8
@@ -270,7 +270,7 @@ def test_scrub_secrets_drops_credential_shaped_vars():
def test_scrub_secrets_keeps_everything_generated_code_needs():
env = {"PATH": "/usr/bin", "HOME": "/home/u", "DISPLAY": ":0", "NODE_PATH": "/nm",
"MESA_LOADER_DRIVER_OVERRIDE": "d3d12", "GALLIUM_DRIVER": "llvmpipe",
- "CV3D_RENDER_GPU": "off", "PYTHONUNBUFFERED": "1",
+ "C3D_RENDER_GPU": "off", "PYTHONUNBUFFERED": "1",
"TOKENIZERS_PARALLELISM": "false"} # _TOKEN is a SUFFIX match, not a substring
assert scrub_secrets(dict(env)) == env
diff --git a/harness/tests/core/test_run_layout.py b/harness/tests/core/test_run_layout.py
index 073669d8..b804cf50 100644
--- a/harness/tests/core/test_run_layout.py
+++ b/harness/tests/core/test_run_layout.py
@@ -7,9 +7,9 @@ import json
import os
from pathlib import Path
-from codeverse.contracts.run import RunDeliverable, RunRecord, RunTelemetry
-from codeverse.contracts.spec import Spec
-from codeverse.workspace import EVIDENCE_DIR, LAYOUT_ALIASES, Workspace
+from codeverse3d.contracts.run import RunDeliverable, RunRecord, RunTelemetry
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.workspace import EVIDENCE_DIR, LAYOUT_ALIASES, Workspace
def test_create_makes_the_three_buckets(tmp_path: Path):
@@ -87,9 +87,9 @@ def _moved_run(tmp_path: Path):
"""Create a record whose absolute sheet path predates a workspace move."""
import shutil
- from codeverse.contracts.artifacts import RenderSet
- from codeverse.contracts.common import Backends, Language, Track
- from codeverse.contracts.run import RoundRecord, RunStatus
+ from codeverse3d.contracts.artifacts import RenderSet
+ from codeverse3d.contracts.common import Backends, Language, Track
+ from codeverse3d.contracts.run import RoundRecord, RunStatus
a = tmp_path / "A" / "run1"
(a / "artifacts" / "renders" / "r01").mkdir(parents=True)
@@ -109,7 +109,7 @@ def _moved_run(tmp_path: Path):
def _captured(render) -> str:
"""rich's Console holds its own stream, so capsys never sees it; widen it too so the
panel cannot wrap the path under assertion."""
- from codeverse.cli._common import console
+ from codeverse3d.cli._common import console
old_width, console.width = console.width, 400
try:
@@ -122,7 +122,7 @@ def _captured(render) -> str:
def test_a_relocated_run_still_resolves_its_stored_paths(tmp_path):
"""Stored absolute paths rebase after moving or archiving a run."""
- from codeverse.workspace import Workspace
+ from codeverse3d.workspace import Workspace
_a, b, sheet_a, _rec = _moved_run(tmp_path)
stored = str(sheet_a) # what the writer puts in record.json
@@ -148,7 +148,7 @@ def test_a_copied_run_reads_its_own_files_while_the_original_still_exists(tmp_pa
files for as long as that directory lived (V10f). This root's copy must win."""
import shutil
- from codeverse.workspace import Workspace
+ from codeverse3d.workspace import Workspace
a = tmp_path / "A" / "run1"
(a / "artifacts" / "renders" / "r01").mkdir(parents=True)
@@ -167,8 +167,8 @@ def test_a_copied_run_reads_its_own_files_while_the_original_still_exists(tmp_pa
def test_show_prints_the_sheet_that_exists_after_a_move(tmp_path):
"""The user-visible half: `3dcode show` must not print a path that is not there."""
- from codeverse.cli._common import print_record_summary
- from codeverse.workspace import Workspace
+ from codeverse3d.cli._common import print_record_summary
+ from codeverse3d.workspace import Workspace
_a, b, _sheet, rec = _moved_run(tmp_path)
printed = _captured(lambda: print_record_summary(rec, Workspace(b).root))
@@ -184,7 +184,7 @@ def test_a_stale_index_lock_names_the_remedy(tmp_path):
import pytest
- from codeverse.workspace import Workspace, WorkspaceGitError
+ from codeverse3d.workspace import Workspace, WorkspaceGitError
ws = Workspace(tmp_path / "run").create()
ws.src.mkdir(parents=True, exist_ok=True)
@@ -235,8 +235,8 @@ def test_a_planted_git_hook_or_filter_never_runs_on_a_commit(tmp_path):
def test_show_itself_prints_the_relocated_sheet_not_the_stored_one(tmp_path):
"""The actual ``show`` command also rebases its displayed contact sheet."""
- from codeverse.cli.layout_cmd import print_evidence
- from codeverse.workspace import Workspace
+ from codeverse3d.cli.layout_cmd import print_evidence
+ from codeverse3d.workspace import Workspace
a, b, _sheet, rec = _moved_run(tmp_path)
out = _captured(lambda: print_evidence(Workspace(b), rec))
diff --git a/harness/tests/core/test_runlock.py b/harness/tests/core/test_runlock.py
index a761ef94..0339e0dd 100644
--- a/harness/tests/core/test_runlock.py
+++ b/harness/tests/core/test_runlock.py
@@ -1,4 +1,4 @@
-"""One writer per run directory — see codeverse/runlock.py."""
+"""One writer per run directory — see codeverse3d/runlock.py."""
from __future__ import annotations
@@ -9,7 +9,7 @@ from pathlib import Path
import pytest
-from codeverse.proc import (
+from codeverse3d.proc import (
LOCKS_DIR,
RunLocked,
exclusive,
@@ -25,7 +25,7 @@ def _child_script(run_root: Path, ready: Path, go: Path) -> str:
return (
"import sys, time, pathlib\n"
f"sys.path.insert(0, {str(HARNESS_ROOT)!r})\n"
- "from codeverse.proc import exclusive, RunLocked\n"
+ "from codeverse3d.proc import exclusive, RunLocked\n"
f"root, ready, go = pathlib.Path({str(run_root)!r}), pathlib.Path({str(ready)!r}), pathlib.Path({str(go)!r})\n"
"try:\n"
" with exclusive(root, what='child'):\n"
@@ -118,7 +118,7 @@ def test_a_second_thread_is_refused_and_the_first_keeps_the_lock(tmp_path: Path)
def test_a_failed_record_write_leaks_nothing(tmp_path: Path, monkeypatch):
"""A failed holder-record write leaks neither fd nor in-process registry."""
- import codeverse.proc as R
+ import codeverse3d.proc as R
run_root = tmp_path / "runs" / "slug"
run_root.mkdir(parents=True)
@@ -159,7 +159,7 @@ def test_force_refuses_to_wipe_a_run_another_holder_is_using(tmp_path: Path):
import subprocess
import sys
- from codeverse.cli._common import CliError, mutating
+ from codeverse3d.cli._common import CliError, mutating
run_root = tmp_path / "runs" / "held_run"
run_root.mkdir(parents=True)
diff --git a/harness/tests/cost/test_audit_report.py b/harness/tests/cost/test_audit_report.py
index 69c60771..454a5eaa 100644
--- a/harness/tests/cost/test_audit_report.py
+++ b/harness/tests/cost/test_audit_report.py
@@ -7,14 +7,14 @@ from pathlib import Path
import pytest
-from codeverse.addons.costreport.audit import (
+from codeverse3d.addons.costreport.audit import (
audit_runs,
cached_input_share,
price_confidence,
stage_latency,
uncached_if_no_cache,
)
-from codeverse.addons.costreport.report import console, markdown
+from codeverse3d.addons.costreport.report import console, markdown
def test_audit_of_one_run(fake_run: Path):
diff --git a/harness/tests/cost/test_cli.py b/harness/tests/cost/test_cli.py
index 3dfcfeab..b23df20f 100644
--- a/harness/tests/cost/test_cli.py
+++ b/harness/tests/cost/test_cli.py
@@ -7,7 +7,7 @@ from pathlib import Path
from typer.testing import CliRunner
-from codeverse.cli.main import app
+from codeverse3d.cli.main import app
runner = CliRunner()
diff --git a/harness/tests/cost/test_context.py b/harness/tests/cost/test_context.py
index c5d0e769..4188663b 100644
--- a/harness/tests/cost/test_context.py
+++ b/harness/tests/cost/test_context.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from codeverse.cost.context import (
+from codeverse3d.cost.context import (
CallContext,
attribute,
bound_run,
@@ -10,7 +10,7 @@ from codeverse.cost.context import (
context_from_label,
current,
)
-from codeverse.cost.types import Role, Stage
+from codeverse3d.cost.types import Role, Stage
def test_label_tells_stage_role_and_round():
diff --git a/harness/tests/cost/test_guard_caching_routing.py b/harness/tests/cost/test_guard_caching_routing.py
index cc0f13ff..dc1cf2c9 100644
--- a/harness/tests/cost/test_guard_caching_routing.py
+++ b/harness/tests/cost/test_guard_caching_routing.py
@@ -5,9 +5,9 @@ from __future__ import annotations
import pytest
-from codeverse.cost import estimate_call
-from codeverse.cost.guard import image_tokens, text_tokens
-from codeverse.cost.routing import pro_break_even, samples_for_precision
+from codeverse3d.cost import estimate_call
+from codeverse3d.cost.guard import image_tokens, text_tokens
+from codeverse3d.cost.routing import pro_break_even, samples_for_precision
# ------------------------------------------------------------------ guard
diff --git a/harness/tests/cost/test_instrument.py b/harness/tests/cost/test_instrument.py
index 5bec5b27..7e40420a 100644
--- a/harness/tests/cost/test_instrument.py
+++ b/harness/tests/cost/test_instrument.py
@@ -6,17 +6,17 @@ from pathlib import Path
import pytest
-from codeverse.contracts.agent import AgentJob, AgentResult
-from codeverse.contracts.chat import ChatMessage, ChatRequest, ChatResponse
-from codeverse.contracts.common import Usage
-from codeverse.cost.context import run_binding
-from codeverse.cost.instrument import (
+from codeverse3d.contracts.agent import AgentJob, AgentResult
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest, ChatResponse
+from codeverse3d.contracts.common import Usage
+from codeverse3d.cost.context import run_binding
+from codeverse3d.cost.instrument import (
MeteredAgent,
MeteredChatModel,
run_ledger,
)
-from codeverse.cost.ledger import load_ledger, record_call
-from codeverse.cost.types import Role, Stage
+from codeverse3d.cost.ledger import load_ledger, record_call
+from codeverse3d.cost.types import Role, Stage
def _usage(**kw: object) -> Usage:
@@ -123,7 +123,7 @@ def test_a_session_row_is_filed_by_the_task_kind(tmp_path: Path):
def test_get_coding_agent_hands_out_a_metered_agent(monkeypatch: pytest.MonkeyPatch):
- from codeverse.agents import registry
+ from codeverse3d.agents import registry
monkeypatch.setattr(registry, "_build_agent", lambda aid: CliAgent(FakeChat()))
assert isinstance(registry.get_coding_agent("gemini-cli:m"), MeteredAgent)
@@ -142,7 +142,7 @@ def test_accounting_never_breaks_a_call(tmp_path: Path, monkeypatch: pytest.Monk
def boom(*a: object, **k: object) -> None:
raise RuntimeError("ledger on fire")
- monkeypatch.setattr("codeverse.cost.instrument.record_call", boom)
+ monkeypatch.setattr("codeverse3d.cost.instrument.record_call", boom)
with run_ledger(tmp_path, run="r1"):
resp = MeteredChatModel(FakeChat()).generate(ChatRequest(messages=[ChatMessage.user("x")]))
assert resp.text == "ok"
@@ -159,7 +159,7 @@ def test_the_proxy_forwards_everything_else():
def test_get_chat_model_hands_out_a_metered_model(monkeypatch: pytest.MonkeyPatch):
- from codeverse.models import registry
+ from codeverse3d.models import registry
monkeypatch.setattr(registry, "_build_chat_model", lambda mid: FakeChat())
registry.get_chat_model.cache_clear()
@@ -238,7 +238,7 @@ def test_parallel_runs_in_their_own_threads_keep_their_own_ledgers(tmp_path: Pat
"""`bench.run_bench` runs N prompts in N threads; their rows must not mix."""
from concurrent.futures import ThreadPoolExecutor
- from codeverse.cost import ledger as ledger_mod
+ from codeverse3d.cost import ledger as ledger_mod
def one(name: str) -> None:
with run_ledger(tmp_path / name, run=name):
@@ -256,7 +256,7 @@ def test_parallel_runs_in_their_own_threads_keep_their_own_ledgers(tmp_path: Pat
# and the default ledger were ALSO process globals that the first thread to exit
# republished, so this plain main-thread call appended to a finished run's file
# under that run's name instead of going to the per-process log.
- monkeypatch.setenv("CV3D_COST_LEDGER", str(tmp_path / "process.jsonl"))
+ monkeypatch.setenv("C3D_COST_LEDGER", str(tmp_path / "process.jsonl"))
monkeypatch.setattr(ledger_mod, "_fallback", None)
monkeypatch.setattr(ledger_mod, "_fallback_read", False)
assert run_binding().run == ""
@@ -298,7 +298,7 @@ def test_a_full_key_never_reaches_the_ledger(tmp_path: Path):
def test_a_failed_call_records_its_attempts_but_no_key(tmp_path: Path):
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
err = ModelError("503 high demand", retryable=True, status=503, attempts=7)
with run_ledger(tmp_path, run="r1"), pytest.raises(ModelError):
@@ -310,8 +310,8 @@ def test_a_failed_call_records_its_attempts_but_no_key(tmp_path: Path):
def test_per_key_buckets_and_tries_per_call(tmp_path: Path):
from types import SimpleNamespace
- from codeverse.addons.costreport.report import BUCKET_HEADERS, bucket_rows, keyed_buckets
- from codeverse.cost.ledger import record_call, summarise
+ from codeverse3d.addons.costreport.report import BUCKET_HEADERS, bucket_rows, keyed_buckets
+ from codeverse3d.cost.ledger import record_call, summarise
led = tmp_path / "cost.jsonl"
rows = [
@@ -331,7 +331,7 @@ def test_per_key_buckets_and_tries_per_call(tmp_path: Path):
# ------------------------------------------------------- per-attempt rows (audit 2026-08-27)
def test_a_billed_but_invalid_attempt_is_in_the_total_exactly_once(tmp_path: Path):
"""A charged invalid attempt is counted exactly once beside its winner."""
- from codeverse.cost.ledger import summarise
+ from codeverse3d.cost.ledger import summarise
from tests.models.test_gemini import make_model, text_response
m, _log, _ = make_model([text_response("not json"), text_response('{"ok": true}')])
@@ -359,9 +359,9 @@ def test_a_hedge_losers_tokens_reach_the_ledger_when_it_lands(tmp_path: Path):
import threading
import time as _time
- from codeverse.models.base import ModelError
- from codeverse.models.gemini import GeminiModel
- from codeverse.models.retry import KeyPool
+ from codeverse3d.models.base import ModelError
+ from codeverse3d.models.gemini import GeminiModel
+ from codeverse3d.models.retry import KeyPool
from tests.models.test_gemini import text_response
release_k2 = threading.Event()
@@ -401,7 +401,7 @@ def test_a_hedge_losers_tokens_reach_the_ledger_when_it_lands(tmp_path: Path):
logical, = [r for r in load_ledger(tmp_path) if r.source == "live"]
# endswith, not ==: the 2-char fake key is shorter than the …last-4 redaction
assert logical.key.endswith("k3") and logical.call_id == loser.call_id
- from codeverse.cost.ledger import summarise
+ from codeverse3d.cost.ledger import summarise
assert summarise(load_ledger(tmp_path)).total.cost_usd == pytest.approx(
logical.cost_usd + loser.cost_usd), "the loser is in the total exactly once"
@@ -410,7 +410,7 @@ def test_zone_layout_rows_agree_with_the_guard(tmp_path: Path):
"""tracks/zone_layout.py labels its planner calls 'zone-layout' and charges the
guard as stage='plan' — unclassified, the ledger filed the same dollars under
other/other, so the two owners disagreed on every zone-layout cent (V10c)."""
- from codeverse.cost.types import role_for_stage, stage_for_label
+ from codeverse3d.cost.types import role_for_stage, stage_for_label
assert stage_for_label("zone-layout") is Stage.PLAN
assert role_for_stage(stage_for_label("zone-layout")) is Role.PLANNER
@@ -426,7 +426,7 @@ def test_a_late_hedge_loser_keeps_its_stage_role_and_round(tmp_path: Path):
(baseline/None) instead of the originating call's candidate/r0 attribution."""
import threading
- from codeverse.cost.context import AttemptRecord, attempt_sink, call_context
+ from codeverse3d.cost.context import AttemptRecord, attempt_sink, call_context
loser_usage = _usage(cost_usd=0.30)
@@ -459,7 +459,7 @@ def test_a_late_hedge_loser_keeps_its_stage_role_and_round(tmp_path: Path):
def test_a_failed_calls_error_row_carries_what_was_billed(tmp_path: Path):
"""A final ModelError carries its billed usage into the error row."""
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
err = ModelError("bad json after retries", retryable=True, attempts=6, usage=_usage())
with run_ledger(tmp_path, run="r1"), pytest.raises(ModelError):
diff --git a/harness/tests/cost/test_ledger.py b/harness/tests/cost/test_ledger.py
index 962eb6e7..bd300f53 100644
--- a/harness/tests/cost/test_ledger.py
+++ b/harness/tests/cost/test_ledger.py
@@ -4,10 +4,10 @@ from __future__ import annotations
from pathlib import Path
-from codeverse.contracts.common import Usage
-from codeverse.cost import CostLedger, load_ledger, record_call, summarise
-from codeverse.cost.ledger import bound_ledger, existing_ledger_path, open_run_ledger
-from codeverse.cost.types import Role, Stage
+from codeverse3d.contracts.common import Usage
+from codeverse3d.cost import CostLedger, load_ledger, record_call, summarise
+from codeverse3d.cost.ledger import bound_ledger, existing_ledger_path, open_run_ledger
+from codeverse3d.cost.types import Role, Stage
def _usage(**kw: object) -> Usage:
diff --git a/harness/tests/cost/test_live.py b/harness/tests/cost/test_live.py
index 163b7ae0..5e91c6f7 100644
--- a/harness/tests/cost/test_live.py
+++ b/harness/tests/cost/test_live.py
@@ -9,8 +9,8 @@ from pathlib import Path
import pytest
-from codeverse.contracts.chat import ChatMessage, ChatRequest
-from codeverse.cost.guard import estimate_call
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest
+from codeverse3d.cost.guard import estimate_call
pytestmark = pytest.mark.live
@@ -18,13 +18,13 @@ REPO = Path(__file__).resolve().parents[2]
def _stable_text() -> str:
- from codeverse.judges.prompt_builder import build_system_prompt
- from codeverse.judges.rubrics import load_rubric
+ from codeverse3d.judges.prompt_builder import build_system_prompt
+ from codeverse3d.judges.rubrics import load_rubric
return "\n".join([
build_system_prompt(load_rubric("static_object_v1")),
- (REPO / "codeverse/prompts/blender/contract.md").read_text(),
- (REPO / "codeverse/prompts/blender/cookbook.md").read_text(),
+ (REPO / "codeverse3d/prompts/blender/contract.md").read_text(),
+ (REPO / "codeverse3d/prompts/blender/cookbook.md").read_text(),
])
@@ -35,7 +35,7 @@ def _send(model, text: str):
def test_estimate_is_within_15_percent_of_the_bill():
"""The pre-send estimate has to be good enough to route on."""
- from codeverse.models import get_chat_model
+ from codeverse3d.models import get_chat_model
text = _stable_text()[:20_000]
est = estimate_call("gemini:gemini-3.7-flash", prompt=text, output_tokens=40)
@@ -52,10 +52,10 @@ def test_a_metered_run_reconciles_with_its_own_record(tmp_path: Path):
the threshold here is the 1% the wave asked for."""
from typer.testing import CliRunner
- from codeverse.cli.main import app
- from codeverse.cost.ledger import load_ledger
- from codeverse.record.record import load_record
- from codeverse.workspace import Workspace
+ from codeverse3d.cli.main import app
+ from codeverse3d.cost.ledger import load_ledger
+ from codeverse3d.record.record import load_record
+ from codeverse3d.workspace import Workspace
runs = tmp_path / "runs"
r = CliRunner().invoke(app, [
diff --git a/harness/tests/cost/test_price_hygiene.py b/harness/tests/cost/test_price_hygiene.py
index fe9168ec..aefb2226 100644
--- a/harness/tests/cost/test_price_hygiene.py
+++ b/harness/tests/cost/test_price_hygiene.py
@@ -4,8 +4,8 @@ from __future__ import annotations
import pytest
-from codeverse.contracts.common import Usage
-from codeverse.models.pricing import (
+from codeverse3d.contracts.common import Usage
+from codeverse3d.models.pricing import (
IMAGE_USD_BY_SIZE,
PRICES,
PROVENANCE,
@@ -105,8 +105,8 @@ def test_every_price_row_was_checked_within_the_maintenance_window():
``CHECKED`` — do not raise the threshold."""
from datetime import date, datetime
- from codeverse.cli.cost_cmd import STALE_AFTER_DAYS
- from codeverse.models.pricing import PRICES, price_provenance
+ from codeverse3d.cli.cost_cmd import STALE_AFTER_DAYS
+ from codeverse3d.models.pricing import PRICES, price_provenance
stale = []
for prov, model in sorted(PRICES):
@@ -123,8 +123,8 @@ def test_every_price_row_was_checked_within_the_maintenance_window():
def test_a_ledger_row_carries_the_provenance_of_the_price_it_used(tmp_path):
"""The audit trail: which row produced this dollar, and can we stand behind it."""
- from codeverse.contracts.common import Usage as U
- from codeverse.cost import record_call
+ from codeverse3d.contracts.common import Usage as U
+ from codeverse3d.cost import record_call
row = record_call(U(backend="gemini", model="gemini-3.1-pro-preview", input_tokens=1_000,
output_tokens=100), run="r", stage="judge", ledger=tmp_path / "l.jsonl")
diff --git a/harness/tests/cost/test_profiles.py b/harness/tests/cost/test_profiles.py
index 8c794924..fb48a23d 100644
--- a/harness/tests/cost/test_profiles.py
+++ b/harness/tests/cost/test_profiles.py
@@ -8,11 +8,11 @@ from pathlib import Path
import pytest
from typer.testing import CliRunner
-from codeverse.cli._common import resolve_dial
-from codeverse.cli.main import app
-from codeverse.config import Settings, get_settings
-from codeverse.cost.profiles import PROFILE_NAMES, PROFILES, get_profile, profile_table
-from codeverse.orchestrator import RoundPolicy
+from codeverse3d.cli._common import resolve_dial
+from codeverse3d.cli.main import app
+from codeverse3d.config import Settings, get_settings
+from codeverse3d.cost.profiles import PROFILE_NAMES, PROFILES, get_profile, profile_table
+from codeverse3d.orchestrator import RoundPolicy
runner = CliRunner()
@@ -53,7 +53,7 @@ def test_balanced_is_todays_defaults():
def test_a_value_the_user_configured_survives_the_profile_unless_forced():
s = Settings(default_generator="codex:gpt-5.6-sol")
s.apply_profile("economy")
- assert s.default_generator == "codex:gpt-5.6-sol" # config.yaml / CV3D_* wins over a default dial
+ assert s.default_generator == "codex:gpt-5.6-sol" # config.yaml / C3D_* wins over a default dial
assert s.default_judge == "gemini:gemini-3.7-flash" # everything unstated still moves
s.apply_profile("economy", force=True)
assert s.default_generator == "single-shot:gemini:gemini-3.7-flash"
@@ -61,14 +61,14 @@ def test_a_value_the_user_configured_survives_the_profile_unless_forced():
def test_one_stated_judge_field_does_not_disable_the_whole_judge_block(monkeypatch):
"""A stated judge field freezes only itself, not the whole section."""
- monkeypatch.setenv("CV3D_JUDGE__MAX_PX", "800")
+ monkeypatch.setenv("C3D_JUDGE__MAX_PX", "800")
s = Settings()
s.apply_profile("quality")
assert s.judge.max_px == 800, "the field the user stated wins"
assert s.judge.samples == 3, "every field the user did NOT state still follows the profile"
assert s.judge.montages == 5 and s.judge.detail_crops == 2
# and the same dial, whichever way the profile was named (cost/profiles.py's invariant)
- monkeypatch.setenv("CV3D_PROFILE", "quality")
+ monkeypatch.setenv("C3D_PROFILE", "quality")
get_settings.cache_clear()
try:
settings = get_settings()
@@ -93,7 +93,7 @@ def test_unknown_profile_is_a_clear_error():
def test_a_bogus_profile_name_is_a_typed_cli_error_not_a_traceback(monkeypatch, tmp_path):
"""An invalid environment profile yields one clean validation error."""
runner = CliRunner()
- monkeypatch.setenv("CV3D_PROFILE", "bogus")
+ monkeypatch.setenv("C3D_PROFILE", "bogus")
get_settings.cache_clear()
try:
r = runner.invoke(app, ["doctor"])
@@ -103,7 +103,7 @@ def test_a_bogus_profile_name_is_a_typed_cli_error_not_a_traceback(monkeypatch,
assert "Traceback" not in out
finally:
get_settings.cache_clear()
- monkeypatch.delenv("CV3D_PROFILE")
+ monkeypatch.delenv("C3D_PROFILE")
get_settings.cache_clear()
r = runner.invoke(app, ["make", "x", "--profile", "bogus", "--no-run",
"--runs-dir", str(tmp_path / "runs"), "--slug", "b2"])
@@ -143,9 +143,9 @@ def test_no_profile_flag_leaves_the_defaults_alone(tmp_path: Path):
def test_judge_samples_reach_the_round_policy_only_when_a_profile_asks(tmp_path: Path):
- from codeverse.cli import _common as C
- from codeverse.contracts.common import Budget, Language, Track
- from codeverse.contracts.spec import Spec
+ from codeverse3d.cli import _common as C
+ from codeverse3d.contracts.common import Budget, Language, Track
+ from codeverse3d.contracts.spec import Spec
spec = Spec(id="x", track=Track.STATIC_OBJECT, language=Language.BLENDER, prompt="p",
budget=Budget(max_rounds=3))
@@ -161,16 +161,16 @@ def test_judge_samples_reach_the_round_policy_only_when_a_profile_asks(tmp_path:
# --------------------------------------------------------------- flag == env var
def _dial_from_flag(name: str):
"""The dial `3dcode make --profile <name>` resolves to."""
- from codeverse.cli import _common as C
+ from codeverse3d.cli import _common as C
return C.resolve_dial(Settings(), name)
def _dial_from_env(name: str, monkeypatch):
- """The dial `CV3D_PROFILE=<name> 3dcode make` resolves to (the real settings path)."""
- from codeverse.cli import _common as C
+ """The dial `C3D_PROFILE=<name> 3dcode make` resolves to (the real settings path)."""
+ from codeverse3d.cli import _common as C
- monkeypatch.setenv("CV3D_PROFILE", name)
+ monkeypatch.setenv("C3D_PROFILE", name)
get_settings.cache_clear()
try:
return C.resolve_dial(get_settings(), None)
@@ -211,11 +211,11 @@ def test_each_profile_resolves_to_its_documented_dial(name, expected, monkeypatc
@pytest.mark.parametrize("name", PROFILE_NAMES)
def test_the_env_var_reaches_the_spec_a_make_writes(name, tmp_path: Path, monkeypatch):
- """End to end: CV3D_PROFILE alone must produce the same spec shape as --profile."""
- from codeverse.cost.profiles import PROFILES
+ """End to end: C3D_PROFILE alone must produce the same spec shape as --profile."""
+ from codeverse3d.cost.profiles import PROFILES
p = PROFILES[name]
- monkeypatch.setenv("CV3D_PROFILE", name)
+ monkeypatch.setenv("C3D_PROFILE", name)
get_settings.cache_clear()
runs = tmp_path / "runs"
r = runner.invoke(app, ["make", "a clay pot", "--runs-dir", str(runs), "--no-run", "--slug", "pot"])
diff --git a/harness/tests/cost/test_reconstruct.py b/harness/tests/cost/test_reconstruct.py
index 0efc8c89..c15db4e9 100644
--- a/harness/tests/cost/test_reconstruct.py
+++ b/harness/tests/cost/test_reconstruct.py
@@ -7,10 +7,10 @@ from pathlib import Path
import pytest
-from codeverse.addons.costreport.audit import audit_runs
-from codeverse.contracts.common import Usage
-from codeverse.cost import find_runs, reconstruct
-from codeverse.cost.types import Role, Stage
+from codeverse3d.addons.costreport.audit import audit_runs
+from codeverse3d.contracts.common import Usage
+from codeverse3d.cost import find_runs, reconstruct
+from codeverse3d.cost.types import Role, Stage
def test_reconstructs_and_reconciles(fake_run: Path):
@@ -123,8 +123,8 @@ def test_a_live_ledger_files_losing_candidates_as_waste(fake_run: Path, tmp_path
not the reconstructed ``c<k>:baseline`` — and the waste detector must read both."""
import shutil
- from codeverse.cost.instrument import run_ledger
- from codeverse.cost.ledger import record_call
+ from codeverse3d.cost.instrument import run_ledger
+ from codeverse3d.cost.ledger import record_call
ws = tmp_path / "live_cands"
shutil.copytree(fake_run, ws)
diff --git a/harness/tests/flywheel_cli/conftest.py b/harness/tests/flywheel_cli/conftest.py
index 847ad22f..7d37a062 100644
--- a/harness/tests/flywheel_cli/conftest.py
+++ b/harness/tests/flywheel_cli/conftest.py
@@ -10,7 +10,7 @@ from pathlib import Path
import pytest
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.artifacts import (
BuildResult,
GateFinding,
GateReport,
@@ -21,10 +21,10 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.contracts.common import Backends, Language, Track, Usage
-from codeverse.contracts.run import RoundRecord, RunRecord, RunStatus
-from codeverse.contracts.spec import Spec
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.common import Backends, Language, Track, Usage
+from codeverse3d.contracts.run import RoundRecord, RunRecord, RunStatus
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.workspace import Workspace
def tiny_png(path: Path, rgb: tuple[int, int, int] = (200, 30, 30), size: int = 4) -> Path:
diff --git a/harness/tests/flywheel_cli/test_captions.py b/harness/tests/flywheel_cli/test_captions.py
index 190edf58..55f5b076 100644
--- a/harness/tests/flywheel_cli/test_captions.py
+++ b/harness/tests/flywheel_cli/test_captions.py
@@ -6,15 +6,15 @@ import json
import pytest
-from codeverse.addons.dataset.captions import (
+from codeverse3d.addons.dataset.captions import (
CaptionError,
Captions,
caption_sample,
validate_captions,
)
-from codeverse.contracts.chat import ChatRequest, ChatResponse, ImagePart
-from codeverse.contracts.common import Usage
-from codeverse.record.record import load_record
+from codeverse3d.contracts.chat import ChatRequest, ChatResponse, ImagePart
+from codeverse3d.contracts.common import Usage
+from codeverse3d.record.record import load_record
GOOD = {
"detailed": "A four-legged wooden dining chair with a flat square seat and a tall slatted backrest.",
@@ -67,9 +67,9 @@ def test_caption_cmd_writes_the_captioner_row_into_the_run_ledger(fake_run, monk
the captioner's priced call used to go to the per-process log instead."""
from typer.testing import CliRunner
- import codeverse.models.registry as R
- from codeverse.cli.main import app
- from codeverse.cost.ledger import open_run_ledger
+ import codeverse3d.models.registry as R
+ from codeverse3d.cli.main import app
+ from codeverse3d.cost.ledger import open_run_ledger
ws, rec = fake_run
ledger = open_run_ledger(ws.root) # the run already keeps one (create=False appends)
@@ -96,7 +96,7 @@ def test_caption_retry_then_fail(fake_run):
def test_validate_rules():
- from codeverse.contracts.common import Language
+ from codeverse3d.contracts.common import Language
c = Captions(**GOOD)
assert validate_captions(c, Language.BLENDER) == []
@@ -106,7 +106,7 @@ def test_validate_rules():
@pytest.mark.live
def test_caption_live_gemini(fake_run):
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
if not get_settings().gemini_api_keys:
pytest.skip("no gemini keys")
@@ -125,8 +125,8 @@ GOOD_JS = {
def test_threejs_instruction_naming_threejs_is_valid():
"""The required 'Three.js' phrase must NOT trip the forbidden-API check (both js languages)."""
- from codeverse.addons.dataset.captions import Captions, validate_captions
- from codeverse.contracts.common import Language
+ from codeverse3d.addons.dataset.captions import Captions, validate_captions
+ from codeverse3d.contracts.common import Language
c = Captions(**GOOD_JS)
assert validate_captions(c, Language.THREEJS) == []
@@ -142,7 +142,7 @@ def test_threejs_instruction_naming_threejs_is_valid():
def test_caption_sample_threejs_run(tmp_path):
"""End to end: a threejs run captions successfully with a 'Three.js' instruction."""
- from codeverse.contracts.common import Language
+ from codeverse3d.contracts.common import Language
from tests.flywheel_cli.conftest import make_fake_run
ws, rec = make_fake_run(tmp_path / "runs", "lamp_js", prompt="a desk lamp", language=Language.THREEJS)
@@ -153,8 +153,8 @@ def test_caption_sample_threejs_run(tmp_path):
def test_caption_graphics_and_scene_phrases():
"""Graphics languages have phrases + phrase words (no KeyError, sane rules)."""
- from codeverse.addons.dataset.captions import Captions, validate_captions
- from codeverse.contracts.common import Language
+ from codeverse3d.addons.dataset.captions import Captions, validate_captions
+ from codeverse3d.contracts.common import Language
shader = Captions(
detailed="Neon rain streaks down a dark window while blurred city lights pulse behind the glass.",
@@ -173,7 +173,7 @@ def test_caption_graphics_and_scene_phrases():
def test_caption_graphics_run_from_frames(tmp_path):
"""(f) graphics runs (no GLB) caption from the sheet/frames renders."""
- from codeverse.contracts.common import Language
+ from codeverse3d.contracts.common import Language
from tests.flywheel_cli.conftest import make_fake_run
ws, rec = make_fake_run(tmp_path / "runs", "rain_glsl", prompt="neon rain", language=Language.GLSL_SHADER)
@@ -186,7 +186,7 @@ def test_caption_graphics_run_from_frames(tmp_path):
caps = caption_sample(ws, rec, "fake:fake", model=m)
assert caps.instruction.lower().count("glsl")
req = m.requests[0]
- from codeverse.contracts.chat import ImagePart as IP
+ from codeverse3d.contracts.chat import ImagePart as IP
imgs = [p for p in req.messages[0].parts if isinstance(p, IP)]
assert len(imgs) == 3 # sheet + 2 frame views
diff --git a/harness/tests/flywheel_cli/test_cli.py b/harness/tests/flywheel_cli/test_cli.py
index ed33a393..ae1bd225 100644
--- a/harness/tests/flywheel_cli/test_cli.py
+++ b/harness/tests/flywheel_cli/test_cli.py
@@ -8,10 +8,10 @@ from pathlib import Path
import pytest
from typer.testing import CliRunner
-from codeverse.cli import _common as C
-from codeverse.cli.main import app
-from codeverse.cli.main import make as make_cmd
-from codeverse.contracts.spec import Spec
+from codeverse3d.cli import _common as C
+from codeverse3d.cli.main import app
+from codeverse3d.cli.main import make as make_cmd
+from codeverse3d.contracts.spec import Spec
runner = CliRunner()
@@ -33,7 +33,7 @@ def stub_track(monkeypatch):
"""Replace ``tracks.get_track`` with a stub whose ``run`` calls ``on_run(spec, resume,
force)`` and then raises ``exc`` — KeyboardInterrupt by default, which the CLI turns
into exit code 130, so the resume path is exercised without any real work."""
- import codeverse.tracks as tracks_pkg
+ import codeverse3d.tracks as tracks_pkg
def install(on_run=None, exc: BaseException | None = None):
class _T:
@@ -107,12 +107,12 @@ def test_tools_list_handles_an_optional_spatial_install():
def test_lazy_import_message():
with pytest.raises(C.CliError):
- C.lazy("codeverse.definitely_missing_module")
+ C.lazy("codeverse3d.definitely_missing_module")
def test_doctor_json(monkeypatch):
"""The CLI serialises doctor rows; the checks themselves are tested by install tests."""
- import codeverse.cli.doctor as doctor_cli
+ import codeverse3d.cli.doctor as doctor_cli
seen = {}
@@ -148,7 +148,7 @@ class _FakeVlm:
def _write_stool_plan(ws):
- from codeverse.contracts.plan import AcceptanceItem, BBox, PartPlan, StaticPlan
+ from codeverse3d.contracts.plan import AcceptanceItem, BBox, PartPlan, StaticPlan
plan = StaticPlan(object_name="Chair", summary="a chair", overall_bbox=BBox(center=(0, 0, 0.4), extents=(0.5, 0.5, 0.8)),
parts=[PartPlan(name="Seat", role="r", description="d", bbox=BBox(center=(0, 0, 0.4), extents=(0.4, 0.4, 0.04)))],
@@ -157,8 +157,8 @@ def _write_stool_plan(ws):
def test_judge_rejudges_with_in_run_inputs(runs_dir: Path, monkeypatch):
- import codeverse.judges.vlm_judge as vj
- from codeverse.workspace import Workspace
+ import codeverse3d.judges.vlm_judge as vj
+ from codeverse3d.workspace import Workspace
from tests.flywheel_cli.conftest import tiny_png
ws = Workspace(runs_dir / "wooden_chair_ab12cd34")
@@ -181,7 +181,7 @@ def test_judge_rejudges_with_in_run_inputs(runs_dir: Path, monkeypatch):
def test_judge_uses_reference_judge_for_measured_rubrics(runs_dir: Path, monkeypatch):
- import codeverse.judges.vlm_judge as ref
+ import codeverse3d.judges.vlm_judge as ref
class _FakeRef(_FakeVlm):
pass
@@ -195,7 +195,7 @@ def test_judge_uses_reference_judge_for_measured_rubrics(runs_dir: Path, monkeyp
def test_judge_wraps_value_error_as_cli_error(runs_dir: Path, monkeypatch):
- import codeverse.judges.vlm_judge as vj
+ import codeverse3d.judges.vlm_judge as vj
class _Boom(_FakeVlm):
def judge(self, inp):
@@ -209,9 +209,9 @@ def test_judge_wraps_value_error_as_cli_error(runs_dir: Path, monkeypatch):
def test_judge_rubric_map_includes_graphics():
- from codeverse.cli._judge import rubric_for
- from codeverse.contracts.common import TRACK_INFO, Track
- from codeverse.contracts.run import RoundRecord
+ from codeverse3d.cli._judge import rubric_for
+ from codeverse3d.contracts.common import TRACK_INFO, Track
+ from codeverse3d.contracts.run import RoundRecord
assert TRACK_INFO[Track.GRAPHICS].rubric == "shader_v2"
@@ -228,10 +228,10 @@ def test_calibration_rubric_map_includes_graphics(tmp_path: Path):
"""Same default as `3dcode judge`: a graphics round with no stored judgment used to be
re-judged with static_object_v1 because calibration kept its own three-track
TRACK_RUBRIC instead of reading TRACK_INFO."""
- from codeverse.addons.calibration import load_run_cases
- from codeverse.contracts.artifacts import RenderSet, RenderView
- from codeverse.contracts.common import Language, Track
- from codeverse.contracts.run import RoundRecord
+ from codeverse3d.addons.calibration import load_run_cases
+ from codeverse3d.contracts.artifacts import RenderSet, RenderView
+ from codeverse3d.contracts.common import Language, Track
+ from codeverse3d.contracts.run import RoundRecord
run = tmp_path / "shader_run"
(run / "rounds").mkdir(parents=True)
@@ -288,9 +288,9 @@ def test_resume_budget_flags_rewrite_spec_and_emit_event(made_run, stub_track):
def test_resume_refuses_a_finished_run_and_never_re_enters_it(made_run, stub_track):
"""A finished run never re-enters the track unless forced."""
- from codeverse.contracts.run import RunStatus
- from codeverse.orchestrator import RunState
- from codeverse.workspace import Workspace
+ from codeverse3d.contracts.run import RunStatus
+ from codeverse3d.orchestrator import RunState
+ from codeverse3d.workspace import Workspace
runs, run_dir = made_run()
ws = Workspace(run_dir)
@@ -329,7 +329,7 @@ def test_resume_threads_force_through_to_the_track(made_run, stub_track):
def test_a_spec_change_refusal_is_a_clean_cli_error(made_run, stub_track):
"""Spec drift is a typed CLI refusal, not a traceback."""
- from codeverse.tracks.lifecycle import SpecChanged
+ from codeverse3d.tracks.lifecycle import SpecChanged
runs, ws = made_run()
stub_track(exc=SpecChanged("spec.json changed under this run; fork a new run or resume with --force"))
@@ -342,7 +342,7 @@ def test_a_spec_change_refusal_is_a_clean_cli_error(made_run, stub_track):
def test_status_shows_candidates_and_texturing(runs_dir: Path):
import json as _json
- from codeverse.workspace import Workspace
+ from codeverse3d.workspace import Workspace
ws = Workspace(runs_dir / "wooden_chair_ab12cd34")
(ws.root / "rounds").mkdir(exist_ok=True)
@@ -362,9 +362,9 @@ def test_status_shows_candidates_and_texturing(runs_dir: Path):
def test_render_graphics_regenerates_frames(tmp_path: Path, monkeypatch):
- import codeverse.languages as langs
- from codeverse.contracts.artifacts import BuildResult
- from codeverse.contracts.common import Language
+ import codeverse3d.languages as langs
+ from codeverse3d.contracts.artifacts import BuildResult
+ from codeverse3d.contracts.common import Language
from tests.flywheel_cli.conftest import make_fake_run, tiny_png
ws, rec = make_fake_run(tmp_path / "runs", "rain_glsl", prompt="neon rain", language=Language.GLSL_SHADER)
@@ -389,7 +389,7 @@ def test_render_graphics_regenerates_frames(tmp_path: Path, monkeypatch):
def test_reference_with_no_run_says_it_is_about_to_spend_money(tmp_path: Path, monkeypatch):
"""Reference preprocessing under --no-run must disclose its paid work."""
- import codeverse.reference as REF
+ import codeverse3d.reference as REF
calls = []
@@ -437,7 +437,7 @@ def test_a_negative_budget_is_rejected_before_the_workspace_exists(tmp_path: Pat
import pytest as _pytest
from pydantic import ValidationError
- from codeverse.contracts.common import Budget
+ from codeverse3d.contracts.common import Budget
with _pytest.raises(ValidationError):
Budget(max_minutes=-3.0)
@@ -446,8 +446,8 @@ def test_a_negative_budget_is_rejected_before_the_workspace_exists(tmp_path: Pat
def test_texture_is_not_offered_on_tracks_that_have_no_glb(tmp_path: Path):
"""Impossible explicit texturing fails early; profiles degrade cleanly by track."""
- from codeverse.contracts.common import Track
- from codeverse.texturing.run import texture_requested, texture_supported
+ from codeverse3d.contracts.common import Track
+ from codeverse3d.texturing.run import texture_requested, texture_supported
runs = tmp_path / "runs"
# profile-implied: quality still works, it just has no texture pass on this track
@@ -483,7 +483,7 @@ def _round_guard_ws(tmp_path: Path, *, best: int, tree: int):
"""A workspace whose record names `best` while the render tree sits at `tree`."""
import json as _json
- from codeverse.workspace import Workspace
+ from codeverse3d.workspace import Workspace
ws = Workspace(tmp_path / "wronground")
ws.create()
@@ -495,8 +495,8 @@ def _round_guard_ws(tmp_path: Path, *, best: int, tree: int):
def test_render_only_labels_the_working_tree_round(tmp_path: Path):
"""Implicit and explicit round selection must never label another tree's code."""
- from codeverse.cli._common import CliError
- from codeverse.cli.inspect_cmd import _render_round_or_refuse
+ from codeverse3d.cli._common import CliError
+ from codeverse3d.cli.inspect_cmd import _render_round_or_refuse
ws = _round_guard_ws(tmp_path, best=3, tree=4)
with pytest.raises(CliError) as ei:
diff --git a/harness/tests/flywheel_cli/test_complexity_record.py b/harness/tests/flywheel_cli/test_complexity_record.py
index 506b338b..cebc0e8e 100644
--- a/harness/tests/flywheel_cli/test_complexity_record.py
+++ b/harness/tests/flywheel_cli/test_complexity_record.py
@@ -11,12 +11,12 @@ from datetime import UTC, datetime
import pytest
-from codeverse.contracts.artifacts import Judgment, Measurement
-from codeverse.contracts.common import Backends, Language, Track, Usage
-from codeverse.contracts.plan import BBox, PartPlan, StaticPlan
-from codeverse.contracts.run import RoundRecord, RunRecord, RunStatus
-from codeverse.contracts.spec import Spec
-from codeverse.record.record import complexity_block, fill_derived, round_summary
+from codeverse3d.contracts.artifacts import Judgment, Measurement
+from codeverse3d.contracts.common import Backends, Language, Track, Usage
+from codeverse3d.contracts.plan import BBox, PartPlan, StaticPlan
+from codeverse3d.contracts.run import RoundRecord, RunRecord, RunStatus
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.record.record import complexity_block, fill_derived, round_summary
def _measurement(index: float, parts: int = 8) -> Measurement:
diff --git a/harness/tests/flywheel_cli/test_flywheel.py b/harness/tests/flywheel_cli/test_flywheel.py
index 79f003fd..cd286097 100644
--- a/harness/tests/flywheel_cli/test_flywheel.py
+++ b/harness/tests/flywheel_cli/test_flywheel.py
@@ -10,24 +10,24 @@ from pathlib import Path
import pytest
-from codeverse.addons.dataset.export import export_samples
-from codeverse.addons.dataset.index import build_index, summary
-from codeverse.addons.dataset.pack import pack_samples, verify_locators
-from codeverse.addons.dataset.pairs import build_pairs
-from codeverse.addons.dataset.quality import (
+from codeverse3d.addons.dataset.export import export_samples
+from codeverse3d.addons.dataset.index import build_index, summary
+from codeverse3d.addons.dataset.pack import pack_samples, verify_locators
+from codeverse3d.addons.dataset.pairs import build_pairs
+from codeverse3d.addons.dataset.quality import (
code_fingerprint,
normalise_code,
)
-from codeverse.contracts.run import RunRecord
-from codeverse.record import _git
-from codeverse.record.record import (
+from codeverse3d.contracts.run import RunRecord
+from codeverse3d.record import _git
+from codeverse3d.record.record import (
RecordError,
best_round_index,
finalize_record,
iter_runs,
load_record,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
# --------------------------------------------------------------------------- record
@@ -41,7 +41,7 @@ def test_finalize_and_load_record(fake_run):
assert path == ws.record_path and path.is_file()
loaded = load_record(ws)
assert loaded.best_round == 1 and loaded.final_score == 0.80 and loaded.baseline_score == 0.55
- assert loaded.environment["python"] and loaded.environment["codeverse"]
+ assert loaded.environment["python"] and loaded.environment["codeverse3d"]
assert "three" in loaded.environment and "node" in loaded.environment
assert len(loaded.extra["rounds_summary"]) == 2
assert loaded.extra["rounds_summary"][1]["score"] == 0.80
@@ -117,7 +117,7 @@ def test_a_symlink_is_not_exported_as_a_file_of_its_target(fake_run) -> None:
as a blob whose content IS the link target, so ``src/link.py -> model.py`` came back
as a one-line file saying ``model.py`` — and with ``--with-code`` that goes into a
training sample."""
- from codeverse.record._git import read_tree_at
+ from codeverse3d.record._git import read_tree_at
ws, _rec = fake_run
(ws.src / "model.py").write_text("import bpy\n")
@@ -289,7 +289,7 @@ def test_build_index_and_queries(runs_dir: Path, tmp_path: Path):
# --------------------------------------------------------------------------- finding: repair pairs (pairs.py:115)
def test_repair_pairs_match_structurally_not_by_kind(tmp_path: Path):
"""Lifecycle labels the fixing round 'refine' — repair pairs must not need kind='repair'."""
- from codeverse.addons.dataset.pairs import repair_pairs
+ from codeverse3d.addons.dataset.pairs import repair_pairs
from tests.flywheel_cli.conftest import make_fake_run
ws, rec = make_fake_run(tmp_path / "runs", with_repair=True)
@@ -309,7 +309,7 @@ def test_in_round_repair_pairs_from_generated_commit(tmp_path: Path):
"""build_with_repair fixes inside one round: generated commit → final commit."""
import json as _json
- from codeverse.addons.dataset.pairs import in_round_repair_pairs
+ from codeverse3d.addons.dataset.pairs import in_round_repair_pairs
from tests.flywheel_cli.conftest import make_fake_run
ws, rec = make_fake_run(tmp_path / "runs")
@@ -344,8 +344,8 @@ def _degrade(judgment):
def test_degraded_round_is_not_a_zero_score(tmp_path: Path):
- from codeverse.addons.dataset.pairs import preference_pairs
- from codeverse.record.record import effective_judgment, effective_score, round_summary
+ from codeverse3d.addons.dataset.pairs import preference_pairs
+ from codeverse3d.record.record import effective_judgment, effective_score, round_summary
from tests.flywheel_cli.conftest import make_fake_run
ws, rec = make_fake_run(tmp_path / "runs", scores=(0.62, 0.64))
@@ -387,7 +387,7 @@ def test_degraded_best_round_exports_unscored(tmp_path: Path):
# --------------------------------------------------------------------------- graphics + textured exports
def test_export_graphics_sample(tmp_path: Path):
- from codeverse.contracts.common import Language
+ from codeverse3d.contracts.common import Language
from tests.flywheel_cli.conftest import make_fake_run, tiny_png
ws, rec = make_fake_run(tmp_path / "runs", "rain_glsl", prompt="neon rain", language=Language.GLSL_SHADER)
@@ -429,8 +429,8 @@ def test_export_includes_textured_assets_when_shipped(fake_run, tmp_path: Path):
def test_battery_layouts_are_discovered_by_flywheel_and_gallery(tmp_path):
"""All three battery layouts resolve runs; eval siblings never become gallery runs."""
- from codeverse.addons.gallery.index import scan_root
- from codeverse.record.record import find_run_dirs, iter_runs
+ from codeverse3d.addons.gallery.index import scan_root
+ from codeverse3d.record.record import find_run_dirs, iter_runs
battery = tmp_path / "static_v2_flash" # run_bench: runs/<id>
(battery / "runs" / "some_run").mkdir(parents=True)
@@ -460,7 +460,7 @@ def test_battery_layouts_are_discovered_by_flywheel_and_gallery(tmp_path):
def test_empty_run_roots_distinguish_a_failed_battery_from_legitimate_empty_input(tmp_path):
- from codeverse.record.record import iter_runs
+ from codeverse3d.record.record import iter_runs
battery = tmp_path / "compare_empty"
(battery / "cells" / "cmp_med_chair").mkdir(parents=True)
@@ -481,7 +481,7 @@ def test_parquet_keeps_the_complexity_columns_the_exporter_writes(tmp_path):
"""The fixed Arrow schema preserves exported complexity columns."""
import pyarrow.parquet as pq
- from codeverse.addons.dataset.export import parquet_schema, write_parquet
+ from codeverse3d.addons.dataset.export import parquet_schema, write_parquet
row = dict.fromkeys(parquet_schema().names)
row.update(id="x", key="k", complexity=7.5, complexity_band="high")
@@ -526,7 +526,7 @@ def test_pack_refuses_before_writing_anything_when_pyarrow_is_missing(runs_dir:
"""Packing refuses before writing when its optional dependency is absent."""
from typer.testing import CliRunner
- from codeverse.cli.main import app
+ from codeverse3d.cli.main import app
_block_pyarrow(monkeypatch)
out = tmp_path / "ds_pack"
diff --git a/harness/tests/flywheel_cli/test_gemini_image.py b/harness/tests/flywheel_cli/test_gemini_image.py
index d46cd6e9..317589be 100644
--- a/harness/tests/flywheel_cli/test_gemini_image.py
+++ b/harness/tests/flywheel_cli/test_gemini_image.py
@@ -2,7 +2,7 @@
``models/gemini.py`` (offline; fake clients + a 2-key pool).
Lives with the flywheel/CLI tests because this group owns
-``codeverse/models/gemini_image.py``'s rotation behaviour.
+``codeverse3d/models/gemini_image.py``'s rotation behaviour.
"""
from __future__ import annotations
@@ -15,9 +15,9 @@ import pytest
pytest.importorskip("google.genai")
from PIL import Image
-from codeverse.models.base import ModelError
-from codeverse.models.gemini import GeminiImageModel
-from codeverse.models.retry import KeyPool
+from codeverse3d.models.base import ModelError
+from codeverse3d.models.gemini import GeminiImageModel
+from codeverse3d.models.retry import KeyPool
def _png_bytes() -> bytes:
@@ -124,7 +124,7 @@ def test_image_budget_bounds_the_per_attempt_http_timeout():
def test_images_are_priced_by_the_generated_size():
"""A 2K request is billed at the 2K per-image price (it was billed at the 1K rate,
0.067 instead of 0.134); a 512 request generates a 1K image and is billed as one."""
- from codeverse.models.pricing import per_image_usd
+ from codeverse3d.models.pricing import per_image_usd
def cost(size: int) -> float:
used: list[str] = []
diff --git a/harness/tests/flywheel_cli/test_manifest_pack.py b/harness/tests/flywheel_cli/test_manifest_pack.py
index 03a4d73a..89c50d60 100644
--- a/harness/tests/flywheel_cli/test_manifest_pack.py
+++ b/harness/tests/flywheel_cli/test_manifest_pack.py
@@ -20,14 +20,14 @@ from pathlib import Path
import pytest
-from codeverse.addons.dataset.export import (
+from codeverse3d.addons.dataset.export import (
MANIFEST_NAME,
ManifestError,
export_samples,
load_manifest,
write_manifest,
)
-from codeverse.addons.dataset.pack import PackError, pack_samples, verify_locators
+from codeverse3d.addons.dataset.pack import PackError, pack_samples, verify_locators
CHAIR_ID = "3dcodeverse/static_object/blender/wooden_chair_ab12cd34"
@@ -141,7 +141,7 @@ def test_a_failure_after_the_pack_loop_publishes_nothing(packed_ds: Path, monkey
write fails. Publishing the tars alone left the OLD index resolving to the new
tars' byte offsets — six rows pointing at the wrong bytes, and verify_locators
happily passing a corrupt dataset."""
- import codeverse.addons.dataset.pack as P
+ import codeverse3d.addons.dataset.pack as P
before = _packed_state(packed_ds)
monkeypatch.setattr(P, "write_parquet", lambda *a, **k: (_ for _ in ()).throw(OSError("No space left on device")))
diff --git a/harness/tests/flywheel_cli/test_quality_gallery.py b/harness/tests/flywheel_cli/test_quality_gallery.py
index a8c5fd46..bf649397 100644
--- a/harness/tests/flywheel_cli/test_quality_gallery.py
+++ b/harness/tests/flywheel_cli/test_quality_gallery.py
@@ -5,16 +5,16 @@ from __future__ import annotations
import json
from pathlib import Path
-from codeverse.addons.dataset.captions import caption_sample
-from codeverse.addons.dataset.export import export_samples, load_captions
-from codeverse.addons.dataset.quality import (
+from codeverse3d.addons.dataset.captions import caption_sample
+from codeverse3d.addons.dataset.export import export_samples, load_captions
+from codeverse3d.addons.dataset.quality import (
find_duplicates,
mark_duplicates,
prompt_hash,
quality_tier,
)
-from codeverse.contracts.common import Language
-from codeverse.record.record import load_record
+from codeverse3d.contracts.common import Language
+from codeverse3d.record.record import load_record
from tests.flywheel_cli.conftest import make_fake_run
from tests.flywheel_cli.test_captions import GOOD, FakeModel
@@ -116,7 +116,7 @@ def test_export_meta_tiers_duplicates_and_captions_sidecar(runs_dir: Path, tmp_p
def test_export_scene_views_repeating_names(fake_run, tmp_path: Path):
"""Scene renders repeat a camera name per capture time; the sample must keep every file."""
- from codeverse.contracts.artifacts import RenderView
+ from codeverse3d.contracts.artifacts import RenderView
from tests.flywheel_cli.conftest import tiny_png
ws, rec = fake_run
diff --git a/harness/tests/flywheel_cli/test_record_env.py b/harness/tests/flywheel_cli/test_record_env.py
index fb142743..d93731f9 100644
--- a/harness/tests/flywheel_cli/test_record_env.py
+++ b/harness/tests/flywheel_cli/test_record_env.py
@@ -7,8 +7,8 @@ from pathlib import Path
import pytest
-from codeverse.record import record as record_mod
-from codeverse.record.record import _harness_git_sha, environment_versions
+from codeverse3d.record import record as record_mod
+from codeverse3d.record.record import _harness_git_sha, environment_versions
SHA_RE = re.compile(r"^[0-9a-f]{40}(-dirty)?$")
@@ -34,7 +34,7 @@ def test_harness_git_sha_from_a_tracked_file_and_dirty_marker(tmp_path):
if shutil.which("git") is None:
pytest.skip("git not installed")
repo = tmp_path / "repo"
- pkg = repo / "harness" / "codeverse" / "record"
+ pkg = repo / "harness" / "codeverse3d" / "record"
pkg.mkdir(parents=True)
mod = pkg / "record.py"
mod.write_text("# tracked\n")
@@ -51,7 +51,7 @@ def test_harness_git_sha_from_a_tracked_file_and_dirty_marker(tmp_path):
assert _harness_git_sha(mod) == head
mod.write_text("# edited\n")
assert _harness_git_sha(mod) == head + "-dirty"
- # harness/ is the tree, not harness/codeverse: an edited renderer changes what a run measures
+ # harness/ is the tree, not harness/codeverse3d: an edited renderer changes what a run measures
_git("checkout", "-q", "--", ".", cwd=repo)
assert _harness_git_sha(mod) == head
renderer.write_text("// edited\n")
@@ -68,7 +68,7 @@ def test_harness_git_sha_is_empty_for_an_untracked_copy(tmp_path):
(repo / "tracked.txt").write_text("x")
_git("-c", "user.email=t@t", "-c", "user.name=t", "add", "-A", cwd=repo)
_git("-c", "user.email=t@t", "-c", "user.name=t", "commit", "-q", "-m", "init", cwd=repo)
- copy = repo / ".venv" / "lib" / "codeverse" / "record" / "record.py"
+ copy = repo / ".venv" / "lib" / "codeverse3d" / "record" / "record.py"
copy.parent.mkdir(parents=True)
copy.write_text("# untracked copy\n")
assert _harness_git_sha(copy) == ""
diff --git a/harness/tests/flywheel_cli/test_refine.py b/harness/tests/flywheel_cli/test_refine.py
index b4a0a0e5..9c39e3a6 100644
--- a/harness/tests/flywheel_cli/test_refine.py
+++ b/harness/tests/flywheel_cli/test_refine.py
@@ -1,4 +1,4 @@
-"""Refine transitions (codeverse/addons/dataset/refine.py)."""
+"""Refine transitions (codeverse3d/addons/dataset/refine.py)."""
from __future__ import annotations
@@ -7,10 +7,10 @@ from pathlib import Path
import pytest
-from codeverse.addons.dataset.pairs import MIN_PREFERENCE_DELTA
-from codeverse.addons.dataset.refine import build_refine, outcome_of, transitions
-from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
-from codeverse.record.record import load_record
+from codeverse3d.addons.dataset.pairs import MIN_PREFERENCE_DELTA
+from codeverse3d.addons.dataset.refine import build_refine, outcome_of, transitions
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+from codeverse3d.record.record import load_record
from tests.flywheel_cli.conftest import make_fake_run
diff --git a/harness/tests/flywheel_cli/test_run_identity.py b/harness/tests/flywheel_cli/test_run_identity.py
index 277bbda6..0ba309eb 100644
--- a/harness/tests/flywheel_cli/test_run_identity.py
+++ b/harness/tests/flywheel_cli/test_run_identity.py
@@ -15,12 +15,12 @@ from pathlib import Path
import pytest
-from codeverse.addons.dataset.export import export_samples, load_captions
-from codeverse.addons.dataset.index import build_index as build_sqlite_index
-from codeverse.addons.dataset.pairs import build_pairs
-from codeverse.addons.dataset.sample import SampleError
-from codeverse.contracts.run import RunId
-from codeverse.record.record import FoundRun, battery_label, iter_runs, run_id_for, unique_files
+from codeverse3d.addons.dataset.export import export_samples, load_captions
+from codeverse3d.addons.dataset.index import build_index as build_sqlite_index
+from codeverse3d.addons.dataset.pairs import build_pairs
+from codeverse3d.addons.dataset.sample import SampleError
+from codeverse3d.contracts.run import RunId
+from codeverse3d.record.record import FoundRun, battery_label, iter_runs, run_id_for, unique_files
from tests.flywheel_cli.conftest import make_fake_run
@@ -130,7 +130,7 @@ def test_nested_run_identity_survives_every_flywheel_consumer(tmp_path: Path):
assert runs == {"cmp_a_stool__armx", "cmp_b_lamp__armx"}
# Caption sidecars are equally isolated.
- from codeverse.addons.dataset.captions import caption_sample
+ from codeverse3d.addons.dataset.captions import caption_sample
from tests.flywheel_cli.test_captions import GOOD, FakeModel
side = tmp_path / "caps"
diff --git a/harness/tests/flywheel_cli/test_run_layout_cli.py b/harness/tests/flywheel_cli/test_run_layout_cli.py
index 385dd54b..8b4b9cde 100644
--- a/harness/tests/flywheel_cli/test_run_layout_cli.py
+++ b/harness/tests/flywheel_cli/test_run_layout_cli.py
@@ -9,21 +9,21 @@ from pathlib import Path
from typer.testing import CliRunner
-from codeverse.addons.dataset.export import export_samples
-from codeverse.addons.gallery import build_static
-from codeverse.addons.gallery.index import entry_from_record
-from codeverse.cli.main import app
-from codeverse.contracts.run import RunRecord
-from codeverse.record.deliverable import build_deliverable, deliverable_path, load_deliverable
-from codeverse.record.record import load_record, package_run
-from codeverse.record.telemetry import (
+from codeverse3d.addons.dataset.export import export_samples
+from codeverse3d.addons.gallery import build_static
+from codeverse3d.addons.gallery.index import entry_from_record
+from codeverse3d.cli.main import app
+from codeverse3d.contracts.run import RunRecord
+from codeverse3d.record.deliverable import build_deliverable, deliverable_path, load_deliverable
+from codeverse3d.record.record import load_record, package_run
+from codeverse3d.record.telemetry import (
build_telemetry,
ledger_rows,
live_ledger_path,
load_telemetry,
stage_order,
)
-from codeverse.workspace import LAYOUT_ALIASES, Workspace
+from codeverse3d.workspace import LAYOUT_ALIASES, Workspace
from .conftest import make_fake_run
@@ -127,10 +127,10 @@ def test_telemetry_handles_reconstructed_live_and_unavailable_ledgers(fake_run,
assert tele.cost is not None and tele.cost.by_stage[0].stage == "plan"
# A core-only install still emits settings and the record-level total.
- import codeverse.record.telemetry as T
+ import codeverse3d.record.telemetry as T
def boom(*_a, **_k):
- raise ImportError("codeverse.cost is not installed")
+ raise ImportError("codeverse3d.cost is not installed")
monkeypatch.setattr(T, "live_ledger_path", boom)
rows, source = T.ledger_rows(ws)
diff --git a/harness/tests/gallery/conftest.py b/harness/tests/gallery/conftest.py
index b5bb0929..3d993b7d 100644
--- a/harness/tests/gallery/conftest.py
+++ b/harness/tests/gallery/conftest.py
@@ -11,7 +11,7 @@ from pathlib import Path
import pytest
-from codeverse.contracts.common import Language
+from codeverse3d.contracts.common import Language
from tests.flywheel_cli.conftest import make_fake_run, tiny_png
diff --git a/harness/tests/gallery/test_cli.py b/harness/tests/gallery/test_cli.py
index 1e061a93..92a7779a 100644
--- a/harness/tests/gallery/test_cli.py
+++ b/harness/tests/gallery/test_cli.py
@@ -8,7 +8,7 @@ from pathlib import Path
import pytest
from typer.testing import CliRunner
-from codeverse.cli.main import app, resolve_roots
+from codeverse3d.cli.main import app, resolve_roots
runner = CliRunner()
@@ -56,8 +56,8 @@ def test_default_roots_from_cwd(gallery_tree: dict[str, Path], monkeypatch: pyte
def test_no_roots_anywhere_is_a_clear_error(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
monkeypatch.chdir(tmp_path)
- monkeypatch.setenv("CV3D_RUNS_DIR", str(tmp_path / "absent"))
- from codeverse.config import get_settings
+ monkeypatch.setenv("C3D_RUNS_DIR", str(tmp_path / "absent"))
+ from codeverse3d.config import get_settings
get_settings.cache_clear()
try:
diff --git a/harness/tests/gallery/test_hardening.py b/harness/tests/gallery/test_hardening.py
index 0445f4df..d496e3c3 100644
--- a/harness/tests/gallery/test_hardening.py
+++ b/harness/tests/gallery/test_hardening.py
@@ -7,10 +7,10 @@ import csv
import io
from pathlib import Path
-from codeverse.addons.gallery.compare import CSV_COLUMNS, csv_safe, export_csv
-from codeverse.addons.gallery.index import build_index
-from codeverse.addons.gallery.server import SANDBOXED_TYPES, GalleryApp
-from codeverse.addons.gallery.urls import content_type
+from codeverse3d.addons.gallery.compare import CSV_COLUMNS, csv_safe, export_csv
+from codeverse3d.addons.gallery.index import build_index
+from codeverse3d.addons.gallery.server import SANDBOXED_TYPES, GalleryApp
+from codeverse3d.addons.gallery.urls import content_type
from tests.flywheel_cli.conftest import make_fake_run
diff --git a/harness/tests/gallery/test_index.py b/harness/tests/gallery/test_index.py
index b1b34ab8..2ed5f7e4 100644
--- a/harness/tests/gallery/test_index.py
+++ b/harness/tests/gallery/test_index.py
@@ -5,9 +5,9 @@ from __future__ import annotations
import json
from pathlib import Path
-from codeverse.addons.gallery.index import build_index, default_roots, entry_for_dir
-from codeverse.addons.gallery.model import match, sort_entries, summarize
-from codeverse.record.record import battery_label
+from codeverse3d.addons.gallery.index import build_index, default_roots, entry_for_dir
+from codeverse3d.addons.gallery.model import match, sort_entries, summarize
+from codeverse3d.record.record import battery_label
def test_build_index_sections_and_states(gallery_tree: dict[str, Path]):
diff --git a/harness/tests/gallery/test_page.py b/harness/tests/gallery/test_page.py
index 64832a2f..d0e3e239 100644
--- a/harness/tests/gallery/test_page.py
+++ b/harness/tests/gallery/test_page.py
@@ -7,9 +7,9 @@ import re
from html.parser import HTMLParser
from pathlib import Path
-from codeverse.addons.gallery.index import build_index
-from codeverse.addons.gallery.page import build_static, render_index, render_static
-from codeverse.addons.gallery.urls import StaticUrls, UrlMaker
+from codeverse3d.addons.gallery.index import build_index
+from codeverse3d.addons.gallery.page import build_static, render_index, render_static
+from codeverse3d.addons.gallery.urls import StaticUrls, UrlMaker
VOID = {"area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "param",
"source", "track", "wbr"}
diff --git a/harness/tests/gallery/test_server.py b/harness/tests/gallery/test_server.py
index 4ea26a41..9b8e39d8 100644
--- a/harness/tests/gallery/test_server.py
+++ b/harness/tests/gallery/test_server.py
@@ -13,14 +13,14 @@ from pathlib import Path
import pytest
-from codeverse.addons.gallery.server import (
+from codeverse3d.addons.gallery.server import (
DEFAULT_HOST,
GalleryApp,
GalleryError,
make_server,
resolve_host,
)
-from codeverse.addons.gallery.urls import PathError, content_type, safe_join
+from codeverse3d.addons.gallery.urls import PathError, content_type, safe_join
@pytest.fixture
@@ -124,7 +124,7 @@ def test_unknown_run_and_unknown_route(app: GalleryApp):
def test_vendor_and_viewer(app: GalleryApp):
- from codeverse.addons.gallery.viewer import viewer_available
+ from codeverse3d.addons.gallery.viewer import viewer_available
v = app.route("/viewer/runs/wooden_chair_ab12cd34/artifacts/object.glb")
if viewer_available():
diff --git a/harness/tests/gallery/test_triage.py b/harness/tests/gallery/test_triage.py
index 9e557a67..ffaa55fc 100644
--- a/harness/tests/gallery/test_triage.py
+++ b/harness/tests/gallery/test_triage.py
@@ -14,24 +14,24 @@ from urllib.parse import parse_qs
import pytest
-from codeverse.addons.gallery.compare import (
+from codeverse3d.addons.gallery.compare import (
CSV_COLUMNS,
MAX_COMPARE,
export_csv,
parse_keys,
render_compare,
)
-from codeverse.addons.gallery.index import build_index, hero_view
-from codeverse.addons.gallery.model import (
+from codeverse3d.addons.gallery.index import build_index, hero_view
+from codeverse3d.addons.gallery.model import (
VERDICTS,
humanize_view,
match,
summarize,
verdict_breakdown,
)
-from codeverse.addons.gallery.page import render_index
-from codeverse.addons.gallery.server import GalleryApp
-from codeverse.addons.gallery.urls import UrlMaker
+from codeverse3d.addons.gallery.page import render_index
+from codeverse3d.addons.gallery.server import GalleryApp
+from codeverse3d.addons.gallery.urls import UrlMaker
# --------------------------------------------------------------------------- breakdown
@@ -193,7 +193,7 @@ def test_compare_survives_a_run_with_no_record(gallery_tree: dict[str, Path]):
def test_bulk_bar_is_offered_on_the_server_but_not_in_the_static_build(gallery_tree: dict[str, Path]):
- from codeverse.addons.gallery.page import render_static
+ from codeverse3d.addons.gallery.page import render_static
index = build_index([gallery_tree["runs"]])
served = render_index(index, UrlMaker())
diff --git a/harness/tests/graphics/test_frame_stats.py b/harness/tests/graphics/test_frame_stats.py
index 2d34d453..0d0d0556 100644
--- a/harness/tests/graphics/test_frame_stats.py
+++ b/harness/tests/graphics/test_frame_stats.py
@@ -5,8 +5,8 @@ from __future__ import annotations
import numpy as np
from PIL import Image
-from codeverse.contracts.artifacts import Severity
-from codeverse.spatial.frame_stats import frame_gate, sequence_stats
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.spatial.frame_stats import frame_gate, sequence_stats
def _png(path, arr):
diff --git a/harness/tests/graphics/test_gl_host.py b/harness/tests/graphics/test_gl_host.py
index ad394035..0741ae79 100644
--- a/harness/tests/graphics/test_gl_host.py
+++ b/harness/tests/graphics/test_gl_host.py
@@ -9,8 +9,8 @@ import numpy as np
import pytest
from PIL import Image
-from codeverse.spatial import gl_render
-from codeverse.spatial.gl_render import (
+from codeverse3d.spatial import gl_render
+from codeverse3d.spatial.gl_render import (
GlFrame,
GlHost,
GlHostError,
diff --git a/harness/tests/graphics/test_gl_runtime.py b/harness/tests/graphics/test_gl_runtime.py
index 9f026cc6..55f0e638 100644
--- a/harness/tests/graphics/test_gl_runtime.py
+++ b/harness/tests/graphics/test_gl_runtime.py
@@ -6,11 +6,11 @@ import json
import pytest
-from codeverse.contracts.plan import GraphicsPlan, PassPlan
-from codeverse.languages.glsl_shader import GlslShaderRuntime
-from codeverse.languages.opengl_python import OpenGLPythonRuntime
-from codeverse.spatial.gl_render import GlHost, GlHostError
-from codeverse.spatial.registry import ToolContext, get_tool
+from codeverse3d.contracts.plan import GraphicsPlan, PassPlan
+from codeverse3d.languages.glsl_shader import GlslShaderRuntime
+from codeverse3d.languages.opengl_python import OpenGLPythonRuntime
+from codeverse3d.spatial.gl_render import GlHost, GlHostError
+from codeverse3d.spatial.registry import ToolContext, get_tool
pytest.importorskip("moderngl")
@@ -104,7 +104,7 @@ def test_program_skeleton_builds_and_errors_map(tmp_ws, host):
def test_gl_tools_probe_and_frames(tmp_ws, host, monkeypatch):
ws = _ws_with_plan(tmp_ws)
GlslShaderRuntime(host=host).skeleton(ws, PLAN)
- monkeypatch.setattr("codeverse.languages.glsl_shader.GlslShaderRuntime.host", lambda self, timeout_s=None: host)
+ monkeypatch.setattr("codeverse3d.languages.glsl_shader.GlslShaderRuntime.host", lambda self, timeout_s=None: host)
ctx = ToolContext(workspace=ws, language="glsl_shader", track="graphics")
obs = get_tool("gl_probe").call(ctx, {"t": 1.5})
assert obs.ok and "PROBE OK" in obs.text and len(obs.images) == 1 and obs.numbers["n_frames"] == 1
@@ -123,7 +123,7 @@ def test_gl_probe_compile_error_report(tmp_ws, host, monkeypatch):
(ws.src / "shader.frag").write_text(
"// line 1\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n vec2 uv = fragCoord / u_resolution.xy;\n"
" float v = twice(nope);\n fragColor = vec4(uv, v, 1.0);\n}\n")
- monkeypatch.setattr("codeverse.languages.glsl_shader.GlslShaderRuntime.host", lambda self, timeout_s=None: host)
+ monkeypatch.setattr("codeverse3d.languages.glsl_shader.GlslShaderRuntime.host", lambda self, timeout_s=None: host)
ctx = ToolContext(workspace=ws, language="glsl_shader", track="graphics")
obs = get_tool("gl_probe").call(ctx, {})
assert not obs.ok and obs.numbers["stage"] == "build"
diff --git a/harness/tests/graphics/test_live.py b/harness/tests/graphics/test_live.py
index 91267c32..9b97a7d5 100644
--- a/harness/tests/graphics/test_live.py
+++ b/harness/tests/graphics/test_live.py
@@ -4,20 +4,20 @@ from __future__ import annotations
import pytest
-from codeverse.config import get_settings
-from codeverse.contracts.common import Backends, Budget, Language, Track
-from codeverse.contracts.plan import GraphicsPlan
-from codeverse.contracts.spec import Spec
-from codeverse.judges.base import JudgeInput
-from codeverse.judges.vlm_judge import VlmJudge
-from codeverse.languages.glsl_shader import GlslShaderRuntime
-from codeverse.tracks.generation import generate_files
-from codeverse.tracks.graphics import (
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.common import Backends, Budget, Language, Track
+from codeverse3d.contracts.plan import GraphicsPlan
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.judges.base import JudgeInput
+from codeverse3d.judges.vlm_judge import VlmJudge
+from codeverse3d.languages.glsl_shader import GlslShaderRuntime
+from codeverse3d.tracks.generation import generate_files
+from codeverse3d.tracks.graphics import (
GraphicsTrack,
frames_render_set,
graphics_prompt_context,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
pytestmark = pytest.mark.live
MODEL = "gemini:gemini-3.7-flash"
@@ -30,17 +30,17 @@ def keys_ok():
def test_live_plan_generate_build_judge(tmp_path, keys_ok):
- from codeverse.models import get_chat_model
- from codeverse.orchestrator import RunState
- from codeverse.proc import EventLog
- from codeverse.prompts import render
+ from codeverse3d.models import get_chat_model
+ from codeverse3d.orchestrator import RunState
+ from codeverse3d.proc import EventLog
+ from codeverse3d.prompts import render
spec = Spec(id="live_gfx", track=Track.GRAPHICS, language=Language.GLSL_SHADER,
prompt="a calm animated aurora borealis over snowy mountains with twinkling stars",
budget=Budget(max_rounds=1), backends=Backends(planner=MODEL, generator=f"single-shot:{MODEL}", judge=MODEL))
ws = Workspace(tmp_path / "live_gfx").create()
model = get_chat_model(MODEL)
- from codeverse.tracks.planner import plan as run_planner
+ from codeverse3d.tracks.planner import plan as run_planner
plan = run_planner(spec, MODEL, GraphicsPlan, ws, model=model, **GraphicsTrack()._plan_kwargs(spec))
assert isinstance(plan, GraphicsPlan) and plan.passes and plan.key_visuals and plan.motion
rt = GlslShaderRuntime()
diff --git a/harness/tests/graphics/test_stale_invalidation.py b/harness/tests/graphics/test_stale_invalidation.py
index 1e3f42e3..5b32fc56 100644
--- a/harness/tests/graphics/test_stale_invalidation.py
+++ b/harness/tests/graphics/test_stale_invalidation.py
@@ -10,11 +10,11 @@ from __future__ import annotations
import json
-import codeverse.spatial.tools # noqa: F401 — registers the gl_* tools
-from codeverse.languages.glsl_shader import GlslShaderRuntime
-from codeverse.spatial.gl_render import GlResult
-from codeverse.spatial.registry import ToolContext, get_tool
-from codeverse.workspace import Workspace
+import codeverse3d.spatial.tools # noqa: F401 — registers the gl_* tools
+from codeverse3d.languages.glsl_shader import GlslShaderRuntime
+from codeverse3d.spatial.gl_render import GlResult
+from codeverse3d.spatial.registry import ToolContext, get_tool
+from codeverse3d.workspace import Workspace
class _FailingHost:
diff --git a/harness/tests/graphics/test_track.py b/harness/tests/graphics/test_track.py
index b0990888..b6e13f8b 100644
--- a/harness/tests/graphics/test_track.py
+++ b/harness/tests/graphics/test_track.py
@@ -10,28 +10,28 @@ import numpy as np
import pytest
from PIL import Image
-from codeverse.config import Settings
-from codeverse.contracts.artifacts import BuildResult, GateReport
-from codeverse.contracts.common import Backends, Budget, Language, Track
-from codeverse.contracts.plan import GraphicsPlan
-from codeverse.contracts.run import RunStatus
-from codeverse.contracts.spec import Constraints, Spec
-from codeverse.judges.rubrics import load_rubric
-from codeverse.languages._gl_common import finish_build, judge_times, preview_times
-from codeverse.languages.glsl_shader import lint_workspace, write_skeleton
-from codeverse.proc import EventLog
-from codeverse.prompts import render
-from codeverse.spatial.gl_render import GlFrame, GlResult
-from codeverse.tracks import get_track
-from codeverse.tracks.graphics import (
+from codeverse3d.config import Settings
+from codeverse3d.contracts.artifacts import BuildResult, GateReport
+from codeverse3d.contracts.common import Backends, Budget, Language, Track
+from codeverse3d.contracts.plan import GraphicsPlan
+from codeverse3d.contracts.run import RunStatus
+from codeverse3d.contracts.spec import Constraints, Spec
+from codeverse3d.judges.rubrics import load_rubric
+from codeverse3d.languages._gl_common import finish_build, judge_times, preview_times
+from codeverse3d.languages.glsl_shader import lint_workspace, write_skeleton
+from codeverse3d.proc import EventLog
+from codeverse3d.prompts import render
+from codeverse3d.spatial.gl_render import GlFrame, GlResult
+from codeverse3d.tracks import get_track
+from codeverse3d.tracks.graphics import (
GraphicsPipeline,
GraphicsTrack,
ensure_graphics_acceptance,
graphics_prompt_context,
plan_example,
)
-from codeverse.tracks.planner import PlanningError
-from codeverse.workspace import Workspace
+from codeverse3d.tracks.planner import PlanningError
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.fakes import FakeAgent, FakeChatModel, FakeJudge, FakeServices
FAIL_MARK = "RAISE_BUILD_ERROR"
@@ -106,8 +106,8 @@ def _plan(spec, ws, model, budget=None):
"""What plan_graphics() used to be: run_planner with GraphicsTrack's own hooks.
The wrapper was a second spelling of _plan_kwargs and had no production caller,
so the tests go through the hooks the live path actually uses."""
- from codeverse.tracks.graphics import GraphicsTrack
- from codeverse.tracks.planner import plan as run_planner
+ from codeverse3d.tracks.graphics import GraphicsTrack
+ from codeverse3d.tracks.planner import plan as run_planner
return run_planner(spec, "fake:planner", GraphicsPlan, ws, model=model, budget=budget,
**GraphicsTrack()._plan_kwargs(spec))
@@ -225,8 +225,8 @@ def test_planner_reask_and_acceptance(tmp_ws):
always_bad = FakeChatModel(lambda req: {"title": "x"})
with pytest.raises(PlanningError):
_plan(spec, tmp_ws, always_bad)
- from codeverse.tracks.graphics import PLAN_TEMPLATE
- from codeverse.tracks.planner import build_system_prompt
+ from codeverse3d.tracks.graphics import PLAN_TEMPLATE
+ from codeverse3d.tracks.planner import build_system_prompt
sys_prompt = build_system_prompt(spec, GraphicsPlan, template=PLAN_TEMPLATE, example=plan_example())
assert "ART-DIRECTOR" in sys_prompt and "NeonRainWindow" in sys_prompt
@@ -238,7 +238,7 @@ def test_templates_render_and_rubric_loads(tmp_path, settings):
spec = make_spec(language=Language.OPENGL_PYTHON, generator="single-shot:fake:fake-model")
ws = Workspace(tmp_path / "runs" / "tpl").create()
track = GraphicsTrack(services=_services(), settings=settings, runtime=FakeGlRuntime())
- from codeverse.orchestrator import RunState
+ from codeverse3d.orchestrator import RunState
ctx = track.build_context(spec, ws, EventLog(ws.events_path), RunState.load_or_new(ws, resume=False))
ctx.plan = GraphicsPlan.model_validate(plan_example())
diff --git a/harness/tests/graphics/test_wrap_lint.py b/harness/tests/graphics/test_wrap_lint.py
index 8c905cc1..35149e9e 100644
--- a/harness/tests/graphics/test_wrap_lint.py
+++ b/harness/tests/graphics/test_wrap_lint.py
@@ -2,8 +2,8 @@
from __future__ import annotations
-from codeverse.contracts.artifacts import Severity
-from codeverse.languages.glsl_shader import (
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.languages.glsl_shader import (
HEADER,
compose,
detect_convention,
@@ -12,8 +12,8 @@ from codeverse.languages.glsl_shader import (
lint_workspace,
parse_glsl_log,
)
-from codeverse.languages.opengl_python import lint_source
-from codeverse.languages.opengl_python import lint_workspace as lint_program_ws
+from codeverse3d.languages.opengl_python import lint_source
+from codeverse3d.languages.opengl_python import lint_workspace as lint_program_ws
SHADER = "void mainImage(out vec4 fragColor, in vec2 fragCoord) {\n vec2 uv = fragCoord / u_resolution.xy;\n fragColor = vec4(uv, 0.5 + 0.5*sin(u_time), 1.0);\n}\n"
COMMON = "float hash(float n) { return fract(sin(n) * 43758.5453); }\n"
diff --git a/harness/tests/install/test_docs.py b/harness/tests/install/test_docs.py
index 8634e95b..79fb2493 100644
--- a/harness/tests/install/test_docs.py
+++ b/harness/tests/install/test_docs.py
@@ -186,7 +186,7 @@ def test_doctor_checks_every_module_of_every_optional_extra(monkeypatch) -> None
"""Every optional dependency is checked and attributed to its install extra."""
import importlib
- from codeverse.doctor import _OPTIONAL_DEPS, _PY_DEPS, check_python_deps
+ from codeverse3d.doctor import _OPTIONAL_DEPS, _PY_DEPS, check_python_deps
with (HARNESS / "pyproject.toml").open("rb") as fh:
extras = tomllib.load(fh)["project"]["optional-dependencies"]
@@ -228,10 +228,10 @@ def test_doctor_checks_every_module_of_every_optional_extra(monkeypatch) -> None
def test_doctor_rows_have_troubleshooting_entries(monkeypatch) -> None:
"""Run real checks under deterministic stand-ins; require every row in the fix table."""
- from codeverse import doctor as doctor_mod
- from codeverse.config import Settings
- from codeverse.models.health import PoolBudget
- from codeverse.proc import ProcResult
+ from codeverse3d import doctor as doctor_mod
+ from codeverse3d.config import Settings
+ from codeverse3d.models.health import PoolBudget
+ from codeverse3d.proc import ProcResult
settings = SimpleNamespace(
gemini_api_keys=("fake",), anthropic_api_key="", openai_api_key="",
@@ -244,12 +244,12 @@ def test_doctor_rows_have_troubleshooting_entries(monkeypatch) -> None:
monkeypatch.setattr(doctor_mod, "get_settings", lambda: settings)
monkeypatch.setattr(doctor_mod, "_ver", lambda *args, **kwargs: (True, "v1"))
monkeypatch.setattr(
- "codeverse.proc.run_subprocess",
+ "codeverse3d.proc.run_subprocess",
lambda *args, **kwargs: ProcResult(0, '{"gpu": true, "renderer": "fake"}', "", False, 1),
)
- monkeypatch.setattr("codeverse.models.health.pool_budget", lambda: PoolBudget(1, 64))
+ monkeypatch.setattr("codeverse3d.models.health.pool_budget", lambda: PoolBudget(1, 64))
monkeypatch.setattr(
- "codeverse.models.get_chat_model",
+ "codeverse3d.models.get_chat_model",
lambda model: SimpleNamespace(generate=lambda request: SimpleNamespace(
text="pong", usage=SimpleNamespace(cost_usd=0.0))),
)
@@ -257,8 +257,8 @@ def test_doctor_rows_have_troubleshooting_entries(monkeypatch) -> None:
"name": "gemini:test", "storming": False, "storms": 0, "hits": 0,
"probes": 0, "parked_s": 0, "closed_for_s": 0,
})
- monkeypatch.setattr("codeverse.models.retry.all_gates", lambda: [gate])
- monkeypatch.setattr("codeverse.skills.registry.ROUTED_SKILLS", ("missing",))
+ monkeypatch.setattr("codeverse3d.models.retry.all_gates", lambda: [gate])
+ monkeypatch.setattr("codeverse3d.skills.registry.ROUTED_SKILLS", ("missing",))
rows = doctor_mod.run_doctor(live=True, gpu=True, skills=True)
@@ -272,7 +272,7 @@ def test_doctor_rows_have_troubleshooting_entries(monkeypatch) -> None:
rows += doctor_mod.check_node() # the alternate row when runtime_js cannot resolve
pool_detail = next(detail for name, _, detail in rows if name == "pool sharing")
- mentioned_settings = set(re.findall(r"\b(CV3D_[A-Z0-9_]+)=", pool_detail))
+ mentioned_settings = set(re.findall(r"\b(C3D_[A-Z0-9_]+)=", pool_detail))
assert mentioned_settings and mentioned_settings <= set(Settings._FLAT_ALIASES), (
f"doctor recommends setting unknown variables: {sorted(mentioned_settings - set(Settings._FLAT_ALIASES))}")
@@ -307,7 +307,7 @@ def test_architecture_package_map_covers_every_module():
missing = sorted(
str(m.relative_to(root))
- for m in (root / "codeverse").rglob("*.py")
+ for m in (root / "codeverse3d").rglob("*.py")
if m.name != "__init__.py" and not m.name.startswith("_")
and "wrappers" not in m.parts and not documented(m)
)
diff --git a/harness/tests/install/test_hermetic.py b/harness/tests/install/test_hermetic.py
index 07b2cba0..8582d0f8 100644
--- a/harness/tests/install/test_hermetic.py
+++ b/harness/tests/install/test_hermetic.py
@@ -65,7 +65,7 @@ def test_quoted_test_counts_are_possible() -> None:
def test_a_build_does_not_dirty_the_tree() -> None:
- paths = ("harness/build/lib/codeverse/__init__.py", "harness/dist/x.whl",
+ paths = ("harness/build/lib/codeverse3d/__init__.py", "harness/dist/x.whl",
"build/lib/x.py", "dist/x.tar.gz")
for path in paths:
r = subprocess.run(["git", "check-ignore", "-q", path], cwd=HARNESS.parent)
diff --git a/harness/tests/install/test_import_direction.py b/harness/tests/install/test_import_direction.py
index 68981a40..d4c8f668 100644
--- a/harness/tests/install/test_import_direction.py
+++ b/harness/tests/install/test_import_direction.py
@@ -7,9 +7,9 @@ from pathlib import Path
import pytest
-ROOT = Path(__file__).resolve().parents[2] / "codeverse"
+ROOT = Path(__file__).resolve().parents[2] / "codeverse3d"
-#: leaf → the codeverse packages it must NOT import
+#: leaf → the codeverse3d packages it must NOT import
FORBIDDEN: dict[str, tuple[str, ...]] = {
"judges": ("tracks", "flywheel", "cli", "orchestrator", "agents", "gallery", "skills", "texturing"),
"workspace.py": ("tracks", "flywheel", "cli", "orchestrator", "agents", "gallery", "skills", "texturing",
@@ -43,7 +43,7 @@ def test_leaf_layer_never_imports_upward(leaf: str) -> None:
bad = []
for f in files:
for lineno, mod in _imports(f):
- if not mod.startswith("codeverse."):
+ if not mod.startswith("codeverse3d."):
continue
head = mod.split(".")[1]
if head in FORBIDDEN[leaf] or f"{head}.py" in FORBIDDEN[leaf]:
diff --git a/harness/tests/judges/conftest.py b/harness/tests/judges/conftest.py
index 35bd4aac..75cac748 100644
--- a/harness/tests/judges/conftest.py
+++ b/harness/tests/judges/conftest.py
@@ -9,14 +9,14 @@ from typing import Any
import pytest
from PIL import Image, ImageDraw
-from codeverse.contracts.artifacts import Measurement, PartMeasure, RenderSet, RenderView
-from codeverse.contracts.chat import ChatRequest, ChatResponse, ImagePart
-from codeverse.contracts.common import Language, Track, Usage
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.contracts.spec import Spec
-from codeverse.judges.base import JudgeInput
-from codeverse.judges.rubrics import Rubric
-from codeverse.models.base import ModelError
+from codeverse3d.contracts.artifacts import Measurement, PartMeasure, RenderSet, RenderView
+from codeverse3d.contracts.chat import ChatRequest, ChatResponse, ImagePart
+from codeverse3d.contracts.common import Language, Track, Usage
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.judges.base import JudgeInput
+from codeverse3d.judges.rubrics import Rubric
+from codeverse3d.models.base import ModelError
VIEW_NAMES = ("front_right_high", "back_left_high", "front", "top")
diff --git a/harness/tests/judges/test_calibration.py b/harness/tests/judges/test_calibration.py
index ff6457f9..d2723053 100644
--- a/harness/tests/judges/test_calibration.py
+++ b/harness/tests/judges/test_calibration.py
@@ -3,11 +3,11 @@ from pathlib import Path
import pytest
-from codeverse.addons.calibration import calibrate, load_run_cases, pearson, spearman
-from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
-from codeverse.contracts.run import RoundRecord
-from codeverse.judges.base import plan_digest
-from codeverse.judges.rubrics import load_rubric
+from codeverse3d.addons.calibration import calibrate, load_run_cases, pearson, spearman
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.judges.base import plan_digest
+from codeverse3d.judges.rubrics import load_rubric
from tests.judges.conftest import (
ACCEPTANCE,
FakeChatModel,
@@ -90,7 +90,7 @@ def test_run_labels_stay_distinct_across_battery_layouts():
"""Bench cells all end in .../run: compare_backends cells for DIFFERENT prompts
(and ab_plan's control vs treatment arms) used to collapse to one label, so
their judgment sidecars overwrote each other (V9c)."""
- from codeverse.addons.calibration import _run_label
+ from codeverse3d.addons.calibration import _run_label
# compare_backends: <battery>/cells/<prompt>/<arm>/run
a = _run_label(Path("/bench/out/compare_v1/cells/chair/harness-gemini/run"))
diff --git a/harness/tests/judges/test_caps.py b/harness/tests/judges/test_caps.py
index dd609e06..da73c996 100644
--- a/harness/tests/judges/test_caps.py
+++ b/harness/tests/judges/test_caps.py
@@ -1,6 +1,6 @@
-from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.judges.rubrics import apply_caps, load_rubric
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.judges.rubrics import apply_caps, load_rubric
R = load_rubric("static_object_v1")
@@ -61,7 +61,7 @@ def test_scene_console_and_shader_caps():
# ------------------------------------------- a passed gate vetoes the checklist's claim
def _connectivity(passed: bool, *msgs: tuple[str, str]):
- from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
+ from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
sev = {"error": Severity.ERROR, "warn": Severity.WARN, "info": Severity.INFO}
return GateReport(gate="connectivity", passed=passed,
findings=[GateFinding(gate="connectivity", severity=sev[s], target="", message=m) for s, m in msgs])
@@ -72,7 +72,7 @@ def test_a_floating_claim_the_connectivity_gate_measured_absent_neither_penalise
'all 9 parts connected, gap <= 2 mm'; the judge marked floating_part present on a dark
seam and defect:floating_part capped the run at 0.6 (uncapped 0.72) against 0.96 for a
sibling the eye cannot tell apart. Gates decide geometry (law 3)."""
- from codeverse.judges.rubrics import load_rubric, measured_absent, veto_measured_defects
+ from codeverse3d.judges.rubrics import load_rubric, measured_absent, veto_measured_defects
rubric = load_rubric("static_object_v1")
passed = [_connectivity(True, ("info", "all 9 parts are connected (9 contacts, gap <= 2 mm)"),
@@ -84,7 +84,7 @@ def test_a_floating_claim_the_connectivity_gate_measured_absent_neither_penalise
def test_a_real_floating_part_still_caps():
- from codeverse.judges.rubrics import load_rubric, measured_absent
+ from codeverse3d.judges.rubrics import load_rubric, measured_absent
rubric = load_rubric("static_object_v1")
failed = [_connectivity(False, ("error", "part 'Seat' is floating 12 mm above 'Leg'"))]
@@ -96,8 +96,8 @@ def test_a_real_floating_part_still_caps():
def test_scene_placement_gate_measures_the_floating_asset_claim():
"""scene_v1 (2026-08-26): the placement gate and the checklist defect share an id, so a passed
gate vetoes the VLM's floating/sunken claim and an ERROR there caps the round at 0.7."""
- from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
- from codeverse.judges.rubrics import apply_caps, load_rubric, measured_absent
+ from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+ from codeverse3d.judges.rubrics import apply_caps, load_rubric, measured_absent
rubric = load_rubric("scene_v1")
passed = [GateReport(gate="scene_placement", passed=True, findings=[GateFinding(
@@ -117,7 +117,7 @@ def test_a_passed_connectivity_gate_vetoes_the_interpenetration_claim():
them citing only WARNs the rubric says to ignore, and this veto had fired for it 0 times —
the cap rule is ``penetration_error``, the defect ``interpenetration``, and the match was
on id. ``CapRule.measures`` now carries the defect id."""
- from codeverse.judges.rubrics import measured_absent, veto_measured_defects
+ from codeverse3d.judges.rubrics import measured_absent, veto_measured_defects
passed = [_connectivity(True, ("info", "all 9 parts are connected (9 contacts, gap <= 2 mm)"),
("warn", "'Seat' and 'Leg' overlap by 1.4 mm (weld)"))]
@@ -133,7 +133,7 @@ def test_a_passed_connectivity_gate_vetoes_the_interpenetration_claim():
def test_a_failing_contract_gate_does_not_disable_the_connectivity_veto():
"""53 of the 62 blocked cases (2026-08-30): the rules watched gate "*", so a contract ERROR
about the bbox switched off a veto the connectivity gate had earned."""
- from codeverse.judges.rubrics import measured_absent
+ from codeverse3d.judges.rubrics import measured_absent
contract = GateReport(gate="contract", passed=False, findings=[GateFinding(
gate="contract", severity=Severity.ERROR, target="bbox", message="height 0.31 m vs plan 0.45 m (31% off)")])
@@ -149,7 +149,7 @@ def test_graded_acceptance_cap_keeps_the_gradient_but_not_the_pass():
unverified must item out of ten scored exactly like ten out of ten."""
import pytest
- from codeverse.judges.rubrics import (
+ from codeverse3d.judges.rubrics import (
AcceptanceVerdict,
CriterionScore,
JudgeOutput,
@@ -180,7 +180,7 @@ def test_a_defect_vote_tie_is_absent_and_an_acceptance_tie_still_follows_the_rep
import pytest
- from codeverse.judges.rubrics import (
+ from codeverse3d.judges.rubrics import (
AcceptanceVerdict,
CriterionScore,
JudgeOutput,
diff --git a/harness/tests/judges/test_defects.py b/harness/tests/judges/test_defects.py
index 1ffb85c0..6181ab81 100644
--- a/harness/tests/judges/test_defects.py
+++ b/harness/tests/judges/test_defects.py
@@ -4,8 +4,8 @@ import json
import pytest
-from codeverse.contracts.artifacts import RenderSet, RenderView
-from codeverse.judges.rubrics import (
+from codeverse3d.contracts.artifacts import RenderSet, RenderView
+from codeverse3d.judges.rubrics import (
JudgeParseError,
RubricError,
aggregate_samples,
@@ -15,7 +15,7 @@ from codeverse.judges.rubrics import (
rubric_from_dict,
wire_schema,
)
-from codeverse.judges.vlm_judge import VlmJudge
+from codeverse3d.judges.vlm_judge import VlmJudge
from tests.judges.conftest import FakeChatModel, good_reply
R = load_rubric("static_object_v1")
@@ -111,7 +111,7 @@ def test_defect_vote_ties_are_absent(judge_input, cache_dir, caplog):
Acceptance ties still follow the representative (the test below): a must-item tie
decides pass/fail, and that policy is the owner's."""
flagged_first = FakeChatModel(by_label={":s0": [_reply(0.9, ["render_artifacts"])], ":s1": [_reply(0.9)]})
- with caplog.at_level("WARNING", logger="codeverse.judges.vlm_judge"):
+ with caplog.at_level("WARNING", logger="codeverse3d.judges.vlm_judge"):
j = VlmJudge("static_object_v1", chat_model=flagged_first, n_samples=2, cache_dir=cache_dir).judge(judge_input)
assert "n_samples=2 is even" in caplog.text
raw = json.loads(j.raw)
@@ -158,7 +158,7 @@ def test_missing_views_cap_for_articulated():
def test_interpenetrate_message_matches_penetration_cap():
- from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
+ from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
g = GateReport(gate="connectivity", passed=False, findings=[GateFinding(
gate="connectivity", severity=Severity.ERROR, target="Leg", message="'Leg' and 'Seat' interpenetrate by ≈15 mm")])
assert apply_caps(R, 0.9, [g], {}, []).overall == 0.7
@@ -166,7 +166,7 @@ def test_interpenetrate_message_matches_penetration_cap():
def test_joint_sweep_touches_nothing_caps_articulated():
- from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
+ from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
g = GateReport(gate="joint_sweep", passed=False, findings=[GateFinding(
gate="joint_sweep", severity=Severity.ERROR, target="DrawerKnob",
message="link 'DrawerKnob' touches nothing connected to the root at pose rest (nearest 'Carcass' at 56.4 mm)")])
diff --git a/harness/tests/judges/test_detail_anchors.py b/harness/tests/judges/test_detail_anchors.py
index 7a806070..61a7d3a2 100644
--- a/harness/tests/judges/test_detail_anchors.py
+++ b/harness/tests/judges/test_detail_anchors.py
@@ -13,9 +13,9 @@ from __future__ import annotations
import pytest
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.judges.prompt_builder import build_system_prompt
-from codeverse.judges.rubrics import _rule_hit, load_rubric
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.judges.prompt_builder import build_system_prompt
+from codeverse3d.judges.rubrics import _rule_hit, load_rubric
#: rubric -> the id of its geometry-detail criterion
DETAIL_CRITERION = {
diff --git a/harness/tests/judges/test_judge_slices.py b/harness/tests/judges/test_judge_slices.py
index af672a47..3901b397 100644
--- a/harness/tests/judges/test_judge_slices.py
+++ b/harness/tests/judges/test_judge_slices.py
@@ -14,20 +14,26 @@ from pathlib import Path
import trimesh
-from codeverse.config import Settings, get_settings
-from codeverse.contracts.artifacts import BuildResult, GateFinding, GateReport, RenderSet, Severity
-from codeverse.contracts.chat import ImagePart, TextPart
-from codeverse.contracts.run import RoundRecord, RunRecord
-from codeverse.judges.base import JudgeInput
-from codeverse.judges.prompt_builder import (
+from codeverse3d.config import Settings, get_settings
+from codeverse3d.contracts.artifacts import (
+ BuildResult,
+ GateFinding,
+ GateReport,
+ RenderSet,
+ Severity,
+)
+from codeverse3d.contracts.chat import ImagePart, TextPart
+from codeverse3d.contracts.run import RoundRecord, RunRecord
+from codeverse3d.judges.base import JudgeInput
+from codeverse3d.judges.prompt_builder import (
PROVENANCE_ELICITATION,
build_judge_messages,
connectivity_error_pairs,
judge_prompt_hash,
)
-from codeverse.judges.rubrics import load_rubric
-from codeverse.judges.vlm_judge import SLICE_LABELS, VlmJudge
-from codeverse.workspace import Workspace
+from codeverse3d.judges.rubrics import load_rubric
+from codeverse3d.judges.vlm_judge import SLICE_LABELS, VlmJudge
+from codeverse3d.workspace import Workspace
from tests.judges.conftest import ACCEPTANCE, FakeChatModel, good_reply, make_renders, make_spec
R = load_rubric("static_object_v1")
@@ -115,7 +121,7 @@ def test_knob_off_wrong_track_and_missing_glb_stay_baseline(tmp_path, cache_dir,
assert "cross-section" not in text_of(req)
# dirty gates + glb, but the knob is off: baseline
- monkeypatch.setattr("codeverse.judges.vlm_judge.get_settings",
+ monkeypatch.setattr("codeverse3d.judges.vlm_judge.get_settings",
lambda: Settings(judge={"slices": "off"}))
req = judge_request(make_input(renders, dirty_gates(), glb), cache_dir)
assert PROVENANCE_ELICITATION not in req.system and "cross-section" not in text_of(req)
@@ -145,7 +151,7 @@ def test_dirty_gates_append_slices_after_crops_with_rig_text_and_one_elicitation
assert 'do not hide one to be kind. ' + PROVENANCE_ELICITATION in req.system
# the slice pngs and their manifest landed in the judge cache, hatching the gate pair
- from codeverse.spatial.sections import SliceManifest
+ from codeverse3d.spatial.sections import SliceManifest
manifests = list(cache_dir.glob("slices_*/manifest.json"))
assert len(manifests) == 1
man = SliceManifest.model_validate_json(manifests[0].read_text())
@@ -182,7 +188,7 @@ def test_a_dirty_round_with_a_floating_only_error_still_elicits(tmp_path, cache_
# --------------------------------------------------------------------- (d) 3dcode judge replay
def test_replay_reproduces_the_conditional_payload_from_stored_gates_and_glb(tmp_ws: Workspace, tmp_path, cache_dir):
- from codeverse.cli._judge import build_judge_input
+ from codeverse3d.cli._judge import build_judge_input
glb = two_box_glb(tmp_path / "object.glb")
renders = make_renders(tmp_path / "renders")
diff --git a/harness/tests/judges/test_likeness.py b/harness/tests/judges/test_likeness.py
index a26a8202..deb42a6a 100644
--- a/harness/tests/judges/test_likeness.py
+++ b/harness/tests/judges/test_likeness.py
@@ -2,10 +2,10 @@
from __future__ import annotations
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.spec import ReferenceImage
-from codeverse.judges.rubrics import load_rubric
-from codeverse.judges.vlm_judge import LIKENESS_NOTE, LikenessJudge
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.spec import ReferenceImage
+from codeverse3d.judges.rubrics import load_rubric
+from codeverse3d.judges.vlm_judge import LIKENESS_NOTE, LikenessJudge
from tests.judges.conftest import FakeChatModel, draw_chair, good_reply, image_parts, make_spec
diff --git a/harness/tests/judges/test_live.py b/harness/tests/judges/test_live.py
index fe6aa14b..cc0d001f 100644
--- a/harness/tests/judges/test_live.py
+++ b/harness/tests/judges/test_live.py
@@ -9,12 +9,12 @@ import numpy as np
import pytest
import trimesh
-from codeverse.config import get_settings
-from codeverse.contracts.artifacts import RenderSet
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.judges.base import JudgeInput
-from codeverse.judges.rubrics import is_degraded
-from codeverse.judges.vlm_judge import VlmJudge
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.artifacts import RenderSet
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.judges.base import JudgeInput
+from codeverse3d.judges.rubrics import is_degraded
+from codeverse3d.judges.vlm_judge import VlmJudge
from tests.judges.conftest import make_measurement, make_renders, make_spec
pytestmark = pytest.mark.live
@@ -44,9 +44,9 @@ def _stool_glb(out: Path) -> Path:
def _renders_for_test(tmp: Path) -> tuple[RenderSet, object, str]:
"""Real stool renders via spatial.render when possible, else PIL drawings."""
try:
- from codeverse.conventions import OBJECT_VIEWS_QUICK
- from codeverse.spatial.measure import measure_glb
- from codeverse.spatial.render import render_glb
+ from codeverse3d.conventions import OBJECT_VIEWS_QUICK
+ from codeverse3d.spatial.measure import measure_glb
+ from codeverse3d.spatial.render import render_glb
glb = _stool_glb(tmp / "stool.glb")
rs = render_glb(glb, tmp / "renders", views=OBJECT_VIEWS_QUICK, sheet=True)
@@ -98,7 +98,7 @@ def test_live_judge_separates_crafted_from_crude(tmp_path):
def test_live_pairwise_stool_vs_chair(tmp_path):
- from codeverse.judges.pairwise import PairwiseJudge
+ from codeverse3d.judges.pairwise import PairwiseJudge
renders, _, source = _renders_for_test(tmp_path / "stool")
if "stool" not in source:
@@ -111,8 +111,8 @@ def test_live_pairwise_stool_vs_chair(tmp_path):
def test_live_reference_judge(tmp_path):
- from codeverse.contracts.spec import ReferenceImage
- from codeverse.judges.vlm_judge import ReferenceJudge
+ from codeverse3d.contracts.spec import ReferenceImage
+ from codeverse3d.judges.vlm_judge import ReferenceJudge
renders, meas, source = _renders_for_test(tmp_path / "stool")
if "stool" not in source:
diff --git a/harness/tests/judges/test_montage.py b/harness/tests/judges/test_montage.py
index a52d2e34..bb1e3034 100644
--- a/harness/tests/judges/test_montage.py
+++ b/harness/tests/judges/test_montage.py
@@ -3,8 +3,8 @@ from pathlib import Path
import pytest
from PIL import Image
-from codeverse.contracts.artifacts import RenderSet, RenderView
-from codeverse.judges.prompt_builder import (
+from codeverse3d.contracts.artifacts import RenderSet, RenderView
+from codeverse3d.judges.prompt_builder import (
JudgeImageError,
describe_montages,
montage_label,
@@ -14,7 +14,7 @@ from codeverse.judges.prompt_builder import (
render_montage,
shuffle_montages,
)
-from codeverse.spatial.sheet import crop_region, montage_2x2
+from codeverse3d.spatial.sheet import crop_region, montage_2x2
from tests.judges.conftest import draw_chair
#: the 14-view rig in OBJECT_VIEWS order (D47)
@@ -147,8 +147,8 @@ def test_a_stored_pre_d47_render_set_still_leads_with_its_hero_views():
"""PR #3 review: OBJECT_RANK forgot the legacy names, so a re-judged stored 8-view
run put {top, front, right, back} in montage 1 and anchored the centre crop on
'top' — its four sibling constants all kept the legacy names for stored runs."""
- from codeverse.contracts.artifacts import RenderView
- from codeverse.judges.prompt_builder import rank_views
+ from codeverse3d.contracts.artifacts import RenderView
+ from codeverse3d.judges.prompt_builder import rank_views
legacy = ["front_right_34", "back_left_34", "front", "right", "back", "left", "top", "low_front_left"]
ranked = [v.name for v in rank_views([RenderView(name=n, path=f"/x/{n}.png") for n in legacy], scene=False)]
diff --git a/harness/tests/judges/test_output_schema.py b/harness/tests/judges/test_output_schema.py
index 0e437bdf..eb6e4df4 100644
--- a/harness/tests/judges/test_output_schema.py
+++ b/harness/tests/judges/test_output_schema.py
@@ -2,7 +2,7 @@ import json
import pytest
-from codeverse.judges.rubrics import (
+from codeverse3d.judges.rubrics import (
JudgeParseError,
load_rubric,
parse_judge_output,
diff --git a/harness/tests/judges/test_pairwise.py b/harness/tests/judges/test_pairwise.py
index 86b5af31..67e4c7a1 100644
--- a/harness/tests/judges/test_pairwise.py
+++ b/harness/tests/judges/test_pairwise.py
@@ -1,7 +1,7 @@
import pytest
-from codeverse.judges.pairwise import PairwiseJudge
-from codeverse.models.base import ModelError
+from codeverse3d.judges.pairwise import PairwiseJudge
+from codeverse3d.models.base import ModelError
from tests.judges.conftest import FakeChatModel, image_parts, make_renders, make_spec
@@ -52,7 +52,7 @@ def test_single_ordering_success_halves_confidence(tmp_path, cache_dir):
def test_unswap_reasons():
- from codeverse.judges.pairwise import _unswap_text
+ from codeverse3d.judges.pairwise import _unswap_text
assert _unswap_text("Candidate A beats candidate B", True) == "Candidate B beats candidate A"
assert _unswap_text("Candidate A beats candidate B", False) == "Candidate A beats candidate B"
diff --git a/harness/tests/judges/test_prompt_builder.py b/harness/tests/judges/test_prompt_builder.py
index 5339be14..6893d279 100644
--- a/harness/tests/judges/test_prompt_builder.py
+++ b/harness/tests/judges/test_prompt_builder.py
@@ -2,7 +2,7 @@ from pathlib import Path
from PIL import Image
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.artifacts import (
GateFinding,
GateReport,
ImprovementItem,
@@ -11,8 +11,8 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.contracts.chat import ImagePart, TextPart
-from codeverse.judges.prompt_builder import (
+from codeverse3d.contracts.chat import ImagePart, TextPart
+from codeverse3d.judges.prompt_builder import (
TEXT_BUDGET_CHARS,
build_judge_messages,
build_system_prompt,
@@ -20,7 +20,7 @@ from codeverse.judges.prompt_builder import (
prepare_image,
view_az_el,
)
-from codeverse.judges.rubrics import load_rubric
+from codeverse3d.judges.rubrics import load_rubric
from tests.judges.conftest import draw_chair, make_renders
R = load_rubric("static_object_v1")
@@ -95,7 +95,7 @@ def test_shuffle_is_deterministic_and_changes_order(tmp_path, judge_input, cache
def test_geometry_views_add_a_montage(tmp_path, judge_input, cache_dir):
"""The clay montage rides the pipeline's OWN cameras (OBJECT_CLAY_VIEWS) and labels
them — the clay 'top' is el 88 while the rig's shaded 'top' is el 90 (D47)."""
- from codeverse.conventions import OBJECT_CLAY_VIEWS
+ from codeverse3d.conventions import OBJECT_CLAY_VIEWS
clay = []
for v in OBJECT_CLAY_VIEWS:
@@ -145,7 +145,7 @@ def test_gates_previous_and_budget(judge_input, cache_dir):
def test_scene_rig_paragraph(judge_input, cache_dir):
- from codeverse.contracts.common import Language, Track
+ from codeverse3d.contracts.common import Language, Track
judge_input.spec = judge_input.spec.model_copy(update={"track": Track.SCENE, "language": Language.SCENE_THREEJS})
judge_input.renders.console_errors = ["ReferenceError: foo"]
judge_input.renders.fps = 48.0
@@ -179,8 +179,8 @@ def test_a_passed_connectivity_gate_tells_the_judge_a_seam_is_not_daylight():
said 'all 9 parts connected, gap <= 2 mm'; the judge read the dark seam under the pedestal
as 'floating in mid-air, a clear daylight gap' (CRITICAL) and scored structure_plausibility
0.4 against 1.0 for the near-identical sibling. A measured contact outranks a shadow."""
- from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
- from codeverse.judges.prompt_builder import gates_section
+ from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+ from codeverse3d.judges.prompt_builder import gates_section
ok = GateReport(gate="connectivity", passed=True, findings=[
GateFinding(gate="connectivity", severity=Severity.INFO, target="", message="all 9 parts are connected")])
@@ -231,7 +231,7 @@ def test_ledger_turns_penetration_warn_prose_into_one_measured_line():
"""The audit (docs/EVAL.md §6): 110 of 237 interpenetration flags cited only WARNs the rubric
says to ignore; same images with the gate text removed flipped 13 of 24. The eleven
'interpenetrate by' sentences of this round become one measured line, ERRORs stay."""
- from codeverse.judges.prompt_builder import gates_section
+ from codeverse3d.judges.prompt_builder import gates_section
rep = _ledger_report()
assert sum("interpenetrate" in f.message for f in rep.findings) == 13 # one WARN sentence per overlap over the weld line
@@ -262,7 +262,11 @@ def test_ledger_turns_penetration_warn_prose_into_one_measured_line():
def test_ledger_block_stays_near_500_tokens_on_the_p90_round():
"""chars/4 is this module's own token convention (``TEXT_BUDGET_CHARS = 24_000 ≈ 6k``)."""
- from codeverse.judges.prompt_builder import LEDGER_MAX_CONTACTS, LEDGER_MAX_JOINS, gates_section
+ from codeverse3d.judges.prompt_builder import (
+ LEDGER_MAX_CONTACTS,
+ LEDGER_MAX_JOINS,
+ gates_section,
+ )
text = gates_section([_ledger_report(), GateReport(gate="contract", passed=True)])
assert len(_ledger_lines(text)) / 4 <= 500
@@ -283,7 +287,7 @@ def test_ledger_block_stays_near_500_tokens_on_the_p90_round():
def test_ledger_error_pairs_are_errors_not_welds_and_a_failed_gate_earns_no_passed_paragraph():
- from codeverse.judges.prompt_builder import gates_section
+ from codeverse3d.judges.prompt_builder import gates_section
d = {"parts": ["Arm", "Post", "Seat", "Leg"], "contact_gap_mm": 2.0, "contacts": [["Arm", "Post", 0.0], ["Post", "Leg", 0.0]],
"overlaps": [["Arm", "Post", 14.0, 1.2], ["Post", "Leg", 1.1, 0.05], ["Seat", "Leg", 0.3, 0.01]],
@@ -301,7 +305,7 @@ def test_ledger_error_pairs_are_errors_not_welds_and_a_failed_gate_earns_no_pass
def test_ledger_ground_line_and_single_part_and_grouped_warnings():
- from codeverse.judges.prompt_builder import gates_section
+ from codeverse3d.judges.prompt_builder import gates_section
hover = dict(LEDGER_VIOLIN, parts=["Top", "Leg_0", "Leg_1", "Leg_2"], contacts=[], overlaps=[], planned=[],
ground_gap_mm={"Top": 700.0, "Leg_0": 3.1, "Leg_1": 3.1, "Leg_2": 0.3})
@@ -333,7 +337,7 @@ def test_gates_section_without_a_ledger_is_byte_identical_to_the_pre_ledger_text
"""A recorded round has no ledger finding: ``3dcode judge <old-slug>`` must build the exact text
the stored verdict saw. Expected strings were captured from ``gates_section`` at 4ddde32,
before the ledger path existed (scratch capture_baseline.py, 2026-08-30)."""
- from codeverse.judges.prompt_builder import gates_section
+ from codeverse3d.judges.prompt_builder import gates_section
C = "connectivity"
def F(sev, msg, target=None, gate=C, data=None):
@@ -364,10 +368,10 @@ def test_gates_section_without_a_ledger_is_byte_identical_to_the_pre_ledger_text
def test_judge_prompt_hash_does_not_cover_the_per_run_gate_text():
"""The ledger block rides on v1's hash: ``judge_prompt_hash`` covers the system prompt, the
rig rules and the wire schema only, so a paired re-judge, not the hash, is what measures it."""
- from codeverse.judges.prompt_builder import judge_prompt_hash
+ from codeverse3d.judges.prompt_builder import judge_prompt_hash
h = judge_prompt_hash(R)
- import codeverse.judges.prompt_builder as pb
+ import codeverse3d.judges.prompt_builder as pb
original = pb.gates_section
try:
pb.gates_section = lambda gates, **kw: "NOT THE SAME TEXT"
diff --git a/harness/tests/judges/test_reference.py b/harness/tests/judges/test_reference.py
index 9b3792a7..7c5cb308 100644
--- a/harness/tests/judges/test_reference.py
+++ b/harness/tests/judges/test_reference.py
@@ -1,8 +1,8 @@
import pytest
-from codeverse.contracts.spec import ReferenceImage
-from codeverse.judges.rubrics import load_rubric
-from codeverse.judges.vlm_judge import ReferenceJudge, ReferenceJudgeError, iou_to_score
+from codeverse3d.contracts.spec import ReferenceImage
+from codeverse3d.judges.rubrics import load_rubric
+from codeverse3d.judges.vlm_judge import ReferenceJudge, ReferenceJudgeError, iou_to_score
from tests.judges.conftest import FakeChatModel, draw_chair, good_reply, image_parts
REF = load_rubric("reference_v1")
diff --git a/harness/tests/judges/test_rubrics.py b/harness/tests/judges/test_rubrics.py
index fe29b7e9..74783aec 100644
--- a/harness/tests/judges/test_rubrics.py
+++ b/harness/tests/judges/test_rubrics.py
@@ -1,6 +1,6 @@
import pytest
-from codeverse.judges.rubrics import RubricError, list_rubrics, load_rubric, rubric_from_dict
+from codeverse3d.judges.rubrics import RubricError, list_rubrics, load_rubric, rubric_from_dict
EXPECTED = {"static_object_v1", "articulated_v1", "scene_v1", "asset_v1", "reference_v1"}
@@ -61,7 +61,7 @@ def test_content_hash_stable():
def test_cap_rule_measures_defaults_to_its_own_id_and_the_object_rubrics_name_interpenetration():
"""2026-08-30: ``penetration_error`` had never vetoed ``interpenetration`` because the veto
matched on id; the object rubrics now say which checklist defect each gate rule measures."""
- from codeverse.judges.rubrics import CapRule
+ from codeverse3d.judges.rubrics import CapRule
assert CapRule(id="floating_part", cap=0.6).measures == ["floating_part"]
assert CapRule(id="penetration_error", cap=0.7, measures=["interpenetration"]).measures == ["interpenetration"]
@@ -85,8 +85,8 @@ def test_cap_rules_are_not_part_of_the_judge_prompt():
are scored in code and never rendered to the judge (prompt_builder._rubric_block)."""
import yaml
- from codeverse.judges.prompt_builder import judge_prompt_hash
- from codeverse.judges.rubrics import RUBRICS_DIR, rubric_from_dict
+ from codeverse3d.judges.prompt_builder import judge_prompt_hash
+ from codeverse3d.judges.rubrics import RUBRICS_DIR, rubric_from_dict
r = load_rubric("static_object_v1")
data = yaml.safe_load((RUBRICS_DIR / "static_object_v1.yaml").read_text())
diff --git a/harness/tests/judges/test_vlm_judge.py b/harness/tests/judges/test_vlm_judge.py
index 569d279a..2696a880 100644
--- a/harness/tests/judges/test_vlm_judge.py
+++ b/harness/tests/judges/test_vlm_judge.py
@@ -2,10 +2,10 @@ import json
import pytest
-from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
-from codeverse.judges.rubrics import is_degraded, load_rubric
-from codeverse.judges.vlm_judge import VlmJudge
-from codeverse.models.base import ModelError
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+from codeverse3d.judges.rubrics import is_degraded, load_rubric
+from codeverse3d.judges.vlm_judge import VlmJudge
+from codeverse3d.models.base import ModelError
from tests.judges.conftest import FakeChatModel, good_reply, image_parts
R = load_rubric("static_object_v1")
@@ -163,7 +163,7 @@ def test_base_judge_rejects_measured_rubric(judge_input, cache_dir):
def test_missing_render_is_loud(judge_input, cache_dir):
- from codeverse.judges.prompt_builder import JudgeImageError
+ from codeverse3d.judges.prompt_builder import JudgeImageError
judge_input.renders.views[0].path = "/nonexistent/x.png"
with pytest.raises(JudgeImageError):
_judge(FakeChatModel([good_reply(R, IDS)]), cache_dir=cache_dir).judge(judge_input)
@@ -181,12 +181,12 @@ def test_no_acceptance_items(judge_input, cache_dir):
def test_judge_payload_size_comes_from_the_settings_dial(monkeypatch):
"""``Settings.judge`` (set coherently by a cost profile) sizes the verdict's
images unless the caller states its own."""
- from codeverse.config import Settings, get_settings
- from codeverse.judges.vlm_judge import VlmJudge
+ from codeverse3d.config import Settings, get_settings
+ from codeverse3d.judges.vlm_judge import VlmJudge
s = Settings()
s.apply_profile("economy", force=True)
- monkeypatch.setattr("codeverse.judges.vlm_judge.get_settings", lambda: s)
+ monkeypatch.setattr("codeverse3d.judges.vlm_judge.get_settings", lambda: s)
j = VlmJudge(rubric="static_object_v1", model_id="fake:fake-1")
# no profile shrinks the payload: 768 px bills the same as 1024 on Gemini and is
# noisier, the 2→1 crop cut did not survive a second draw (docs/COST.md §14), and
@@ -196,7 +196,7 @@ def test_judge_payload_size_comes_from_the_settings_dial(monkeypatch):
explicit = VlmJudge(rubric="static_object_v1", model_id="fake:fake-1", max_px=768, detail_crops=1)
assert explicit.max_px == 768 and explicit.detail_crops == 1
s2 = Settings(judge={"detail_crops": 0, "max_px": 512})
- monkeypatch.setattr("codeverse.judges.vlm_judge.get_settings", lambda: s2)
+ monkeypatch.setattr("codeverse3d.judges.vlm_judge.get_settings", lambda: s2)
s2.apply_profile("economy") # a stated payload survives a profile
assert VlmJudge(rubric="static_object_v1", model_id="fake:fake-1").detail_crops == 0
get_settings.cache_clear()
@@ -204,7 +204,7 @@ def test_judge_payload_size_comes_from_the_settings_dial(monkeypatch):
# ----------------------------------------------------------------------------- D37 judge protocol hash
def test_judge_prompt_hash_is_recorded_in_every_verdict(judge_input, cache_dir):
- from codeverse.judges.prompt_builder import judge_prompt_hash
+ from codeverse3d.judges.prompt_builder import judge_prompt_hash
j = _judge(FakeChatModel([good_reply(R, IDS, 0.8)]), cache_dir=cache_dir).judge(judge_input)
raw = json.loads(j.raw)
@@ -217,9 +217,9 @@ def test_judge_prompt_hash_is_recorded_in_every_verdict(judge_input, cache_dir):
def test_judge_prompt_hash_tracks_the_protocol_not_the_run(monkeypatch):
- from codeverse.judges import prompt_builder as pb
- from codeverse.judges.prompt_builder import judge_prompt_hash
- from codeverse.judges.rubrics import wire_schema
+ from codeverse3d.judges import prompt_builder as pb
+ from codeverse3d.judges.prompt_builder import judge_prompt_hash
+ from codeverse3d.judges.rubrics import wire_schema
base = judge_prompt_hash(R)
assert judge_prompt_hash(R) == base # deterministic
@@ -241,7 +241,7 @@ def _fake_clock(monkeypatch):
import time as real_time
from types import SimpleNamespace
- import codeverse.judges.vlm_judge as mod
+ import codeverse3d.judges.vlm_judge as mod
clock = {"t": 0.0}
monkeypatch.setattr(mod, "time", SimpleNamespace(monotonic=lambda: clock["t"], time=real_time.time,
@@ -254,7 +254,7 @@ def test_each_sample_has_a_retry_budget_and_hands_what_is_left_to_the_model(judg
(audit 2026-08-26 §2); two storm-day rounds lost 1 162 s and 927 s to 3 x 300 s timeouts
before a second sample answered in 128 s. A sample now has SAMPLE_BUDGET_S = 240 s for all
its attempts, and every attempt tells the model how much of it remains."""
- from codeverse.judges.vlm_judge import SAMPLE_BUDGET_S
+ from codeverse3d.judges.vlm_judge import SAMPLE_BUDGET_S
clock = _fake_clock(monkeypatch)
@@ -270,7 +270,7 @@ def test_each_sample_has_a_retry_budget_and_hands_what_is_left_to_the_model(judg
def test_a_sample_stops_when_its_budget_is_spent(judge_input, cache_dir, monkeypatch):
- from codeverse.judges.vlm_judge import SAMPLE_BUDGET_S
+ from codeverse3d.judges.vlm_judge import SAMPLE_BUDGET_S
clock = _fake_clock(monkeypatch)
@@ -293,7 +293,7 @@ def test_a_sample_stops_when_its_budget_is_spent(judge_input, cache_dir, monkeyp
def test_the_last_attempt_still_gets_a_real_try(judge_input, cache_dir, monkeypatch):
"""A few seconds of budget would be a deadline the model cannot use; the floor is 20 s."""
- from codeverse.judges.vlm_judge import SAMPLE_BUDGET_S, SAMPLE_MIN_WAIT_S
+ from codeverse3d.judges.vlm_judge import SAMPLE_BUDGET_S, SAMPLE_MIN_WAIT_S
clock = _fake_clock(monkeypatch)
@@ -309,11 +309,11 @@ def test_the_last_attempt_still_gets_a_real_try(judge_input, cache_dir, monkeypa
def test_scene_and_graphics_keep_the_pre_d47_montage_ceiling():
"""PR #3 review: montages 3→5 was measured only on the D47 object rig; the other
tracks keep 3 until someone measures them, and an explicit caller value wins."""
- from codeverse.contracts.artifacts import RenderSet
- from codeverse.contracts.common import Language, Track
- from codeverse.contracts.spec import Spec
- from codeverse.judges.base import JudgeInput
- from codeverse.judges.vlm_judge import VlmJudge
+ from codeverse3d.contracts.artifacts import RenderSet
+ from codeverse3d.contracts.common import Language, Track
+ from codeverse3d.contracts.spec import Spec
+ from codeverse3d.judges.base import JudgeInput
+ from codeverse3d.judges.vlm_judge import VlmJudge
def inp(track, language):
spec = Spec(id="t", track=track, language=language, prompt="p")
diff --git a/harness/tests/languages/test_ast_lint.py b/harness/tests/languages/test_ast_lint.py
index 25df4179..776ecc31 100644
--- a/harness/tests/languages/test_ast_lint.py
+++ b/harness/tests/languages/test_ast_lint.py
@@ -4,12 +4,12 @@ from __future__ import annotations
import ast
-import codeverse.languages.blender as blender_lint
-import codeverse.languages.cadquery as cadquery_lint
-import codeverse.languages.opengl_python as opengl_lint
-import codeverse.languages.urdf as urdf_lint
-from codeverse.contracts.artifacts import GateFinding, Severity
-from codeverse.languages._ast_lint import BASE_FORBIDDEN_IMPORTS, check_imports, dotted
+import codeverse3d.languages.blender as blender_lint
+import codeverse3d.languages.cadquery as cadquery_lint
+import codeverse3d.languages.opengl_python as opengl_lint
+import codeverse3d.languages.urdf as urdf_lint
+from codeverse3d.contracts.artifacts import GateFinding, Severity
+from codeverse3d.languages._ast_lint import BASE_FORBIDDEN_IMPORTS, check_imports, dotted
# ----------------------------------------------------------------- superset (drift fails here)
@@ -94,7 +94,7 @@ def test_safe_parse_turns_parser_crashes_into_findings(monkeypatch):
a lint ERROR the agent can act on instead."""
import ast
- from codeverse.languages._ast_lint import describe_parse_failure, safe_parse
+ from codeverse3d.languages._ast_lint import describe_parse_failure, safe_parse
tree, exc = safe_parse("x = 1\n")
assert isinstance(tree, ast.Module) and exc is None
@@ -120,11 +120,11 @@ def test_safe_parse_turns_parser_crashes_into_findings(monkeypatch):
def test_every_python_lint_survives_a_parser_crash(monkeypatch):
import ast
- from codeverse.contracts.artifacts import Severity
- from codeverse.languages.blender import lint_blender_source
- from codeverse.languages.cadquery import lint_cadquery_source
- from codeverse.languages.opengl_python import lint_source as lint_gl
- from codeverse.languages.urdf import lint_model_text
+ from codeverse3d.contracts.artifacts import Severity
+ from codeverse3d.languages.blender import lint_blender_source
+ from codeverse3d.languages.cadquery import lint_cadquery_source
+ from codeverse3d.languages.opengl_python import lint_source as lint_gl
+ from codeverse3d.languages.urdf import lint_model_text
real = ast.parse
@@ -147,7 +147,7 @@ def test_every_python_lint_survives_a_parser_crash(monkeypatch):
def test_real_deeply_nested_source_does_not_escape_the_lint():
"""A 40 000-term binary chain: on 3.11 this is the SystemError, on 3.12+ a RecursionError,
on some builds a plain SyntaxError — whichever, the lint returns a report."""
- from codeverse.languages.blender import lint_blender_source
+ from codeverse3d.languages.blender import lint_blender_source
deep = "import bpy\nx = " + " + ".join(["1"] * 40_000) + "\n"
rep = lint_blender_source(deep)
@@ -158,8 +158,8 @@ def test_the_runtime_registry_covers_every_language():
"""get_runtime was a 7-branch if-chain whose last arm was an unreachable
fall-through; as a table, a missing row is a KeyError at call time instead. This
is the drift guard that makes the table safe."""
- from codeverse.contracts.common import Language
- from codeverse.languages.base import _RUNTIMES, get_runtime
+ from codeverse3d.contracts.common import Language
+ from codeverse3d.languages.base import _RUNTIMES, get_runtime
assert set(_RUNTIMES) == set(Language), "every Language needs a runtime row"
for lang in Language:
diff --git a/harness/tests/languages/test_gl_common_entry.py b/harness/tests/languages/test_gl_common_entry.py
index 0cde715e..af742169 100644
--- a/harness/tests/languages/test_gl_common_entry.py
+++ b/harness/tests/languages/test_gl_common_entry.py
@@ -2,10 +2,10 @@
from __future__ import annotations
-import codeverse.languages.glsl_shader as wrap
-from codeverse.contracts.common import ENTRY_FILE, Language
-from codeverse.languages import _gl_common
-from codeverse.spatial.gl_render import GlHost
+import codeverse3d.languages.glsl_shader as wrap
+from codeverse3d.contracts.common import ENTRY_FILE, Language
+from codeverse3d.languages import _gl_common
+from codeverse3d.spatial.gl_render import GlHost
def test_wrap_reexports_moved_glsl_log_types() -> None:
@@ -22,12 +22,12 @@ def test_make_host_prefers_injected_host() -> None:
def test_runtimes_lead_with_the_entry_file_table() -> None:
- from codeverse.languages.blender import ENTRY_REL, BlenderRuntime
- from codeverse.languages.cadquery import CadQueryRuntime
- from codeverse.languages.glsl_shader import GlslShaderRuntime
- from codeverse.languages.opengl_python import OpenGLPythonRuntime
- from codeverse.languages.threejs import ThreeJsRuntime
- from codeverse.languages.urdf import UrdfBlenderRuntime
+ from codeverse3d.languages.blender import ENTRY_REL, BlenderRuntime
+ from codeverse3d.languages.cadquery import CadQueryRuntime
+ from codeverse3d.languages.glsl_shader import GlslShaderRuntime
+ from codeverse3d.languages.opengl_python import OpenGLPythonRuntime
+ from codeverse3d.languages.threejs import ThreeJsRuntime
+ from codeverse3d.languages.urdf import UrdfBlenderRuntime
assert ENTRY_FILE[Language.BLENDER] == ENTRY_REL
for rt in (BlenderRuntime, CadQueryRuntime, GlslShaderRuntime, OpenGLPythonRuntime,
diff --git a/harness/tests/models/test_anthropic.py b/harness/tests/models/test_anthropic.py
index fab32492..6ee8c95d 100644
--- a/harness/tests/models/test_anthropic.py
+++ b/harness/tests/models/test_anthropic.py
@@ -9,18 +9,18 @@ from typing import Any
import httpx
import pytest
-from codeverse.contracts.chat import (
+from codeverse3d.contracts.chat import (
ChatMessage,
ChatRequest,
ImagePart,
)
-from codeverse.models.anthropic import (
+from codeverse3d.models.anthropic import (
AnthropicModel,
build_kwargs,
classify_exception,
to_messages,
)
-from codeverse.models.base import ModelError
+from codeverse3d.models.base import ModelError
PNG_B64 = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="
@@ -222,7 +222,7 @@ def test_classify_connection_errors():
def test_missing_key_is_loud(monkeypatch):
monkeypatch.delenv("ANTHROPIC_API_KEY", raising=False)
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
get_settings.cache_clear()
m = AnthropicModel("claude-opus-5")
diff --git a/harness/tests/models/test_control_chars.py b/harness/tests/models/test_control_chars.py
index ebb235f3..d636afec 100644
--- a/harness/tests/models/test_control_chars.py
+++ b/harness/tests/models/test_control_chars.py
@@ -1,4 +1,4 @@
-"""Control characters in model output (codeverse/models/schema_utils.strip_control_chars).
+"""Control characters in model output (codeverse3d/models/schema_utils.strip_control_chars).
Regression (2026-08-24): a gemini-3.7-flash plan emitted five ``\\u0000`` escapes where the
model meant glyphs it could not encode — "0.078 × 0.300 × 0.240 m" became
@@ -13,7 +13,7 @@ from __future__ import annotations
import json
-from codeverse.models.schema_utils import parse_json_lenient, strip_control_chars
+from codeverse3d.models.schema_utils import parse_json_lenient, strip_control_chars
THE_REAL_PAYLOAD = (
'{"summary": "Overall envelope is 0.078 \\u0000 0.300 \\u0000 0.240 m",'
@@ -48,7 +48,7 @@ def test_strip_control_chars_recurses_and_preserves_safe_text():
def test_the_subprocess_backstop_names_the_offender(tmp_path):
import pytest
- from codeverse.agents.cli_common import run_with_watchdog
+ from codeverse3d.agents.cli_common import run_with_watchdog
poisoned = "harness_instructions: envelope is 0.078 \x00 0.300 m"
with pytest.raises(ValueError, match=r"argv\[2\] contains a NUL at offset \d+"):
@@ -59,8 +59,8 @@ def test_the_anthropic_submit_tool_path_is_sanitised_too():
"""Parsed Anthropic submit-tool input is sanitized before use."""
from types import SimpleNamespace as NS
- from codeverse.contracts.chat import ChatMessage, ChatRequest
- from codeverse.models.anthropic import SUBMIT_TOOL, AnthropicModel
+ from codeverse3d.contracts.chat import ChatMessage, ChatRequest
+ from codeverse3d.models.anthropic import SUBMIT_TOOL, AnthropicModel
block = NS(
type="tool_use", id="t1", name=SUBMIT_TOOL, input={"description": "0.078 \x00 0.300 slab"}
@@ -98,11 +98,11 @@ def test_the_anthropic_submit_tool_path_is_sanitised_too():
def test_the_brief_text_fallback_is_sanitised(tmp_path):
"""Plain-text brief JSON is sanitized before fallback parsing."""
- from codeverse.contracts.chat import ChatResponse
- from codeverse.contracts.common import Language, Track, Usage
- from codeverse.contracts.plan import EngineeringBrief, RefDimension, SubAssembly
- from codeverse.contracts.spec import Spec
- from codeverse.tracks.planner import expand_brief
+ from codeverse3d.contracts.chat import ChatResponse
+ from codeverse3d.contracts.common import Language, Track, Usage
+ from codeverse3d.contracts.plan import EngineeringBrief, RefDimension, SubAssembly
+ from codeverse3d.contracts.spec import Spec
+ from codeverse3d.tracks.planner import expand_brief
clean = EngineeringBrief(
object_name="Grinder",
diff --git a/harness/tests/models/test_gemini.py b/harness/tests/models/test_gemini.py
index 5c753f51..6e193c47 100644
--- a/harness/tests/models/test_gemini.py
+++ b/harness/tests/models/test_gemini.py
@@ -10,22 +10,22 @@ import pytest
from google.genai import errors as genai_errors
from google.genai import types
-from codeverse.contracts.chat import (
+from codeverse3d.contracts.chat import (
ChatMessage,
ChatRequest,
ImagePart,
TextPart,
)
-from codeverse.contracts.plan import StaticPlan
-from codeverse.models.base import ModelError
-from codeverse.models.gemini import (
+from codeverse3d.contracts.plan import StaticPlan
+from codeverse3d.models.base import ModelError
+from codeverse3d.models.gemini import (
GeminiModel,
build_config,
classify_exception,
failure_outcome,
to_contents,
)
-from codeverse.models.retry import KeyPool
+from codeverse3d.models.retry import KeyPool
PNG_1PX = base64.b64decode(
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="
@@ -86,14 +86,14 @@ def make_model(script: list[Any], keys=("k1", "k2", "k3"), pool: KeyPool | None
def test_read_timeout_comes_from_settings(monkeypatch):
- """CV3D_MODEL_TIMEOUT_S raises the per-attempt HTTP read timeout (degraded-provider escape hatch)."""
- from codeverse.config import Settings, get_settings
- from codeverse.models.gemini import GeminiModel
+ """C3D_MODEL_TIMEOUT_S raises the per-attempt HTTP read timeout (degraded-provider escape hatch)."""
+ from codeverse3d.config import Settings, get_settings
+ from codeverse3d.models.gemini import GeminiModel
monkeypatch.setenv("GEMINI_API_KEYS", "k1")
get_settings.cache_clear()
assert GeminiModel("gemini-3.7-flash").timeout_s == Settings().model_timeout_s
- monkeypatch.setenv("CV3D_MODEL_TIMEOUT_S", "900")
+ monkeypatch.setenv("C3D_MODEL_TIMEOUT_S", "900")
get_settings.cache_clear()
assert GeminiModel("gemini-3.7-flash").timeout_s == 900.0
assert GeminiModel("gemini-3.7-flash", timeout_s=42.0).timeout_s == 42.0
@@ -372,7 +372,7 @@ def test_max_output_tokens_eaten_by_thinking_carries_the_thought_tokens():
# --------------------------------------------------------------------- streaming
def test_merge_stream_chunks_empty_stream_is_retryable():
- from codeverse.models.gemini import _merge_stream_chunks
+ from codeverse3d.models.gemini import _merge_stream_chunks
with pytest.raises(ModelError) as e:
_merge_stream_chunks([])
@@ -381,7 +381,7 @@ def test_merge_stream_chunks_empty_stream_is_retryable():
def test_drain_stream_cuts_a_stream_past_its_attempt_budget():
"""The attempt deadline also bounds a healthy but endless stream."""
- from codeverse.models.gemini import _drain_stream
+ from codeverse3d.models.gemini import _drain_stream
ticks = iter([1.0, 10.0, 20.0])
chunk = types.GenerateContentResponse(candidates=[])
@@ -391,29 +391,29 @@ def test_drain_stream_cuts_a_stream_past_its_attempt_budget():
def test_streaming_toggle(monkeypatch):
- from codeverse.models.gemini import _streaming_enabled
+ from codeverse3d.models.gemini import _streaming_enabled
- monkeypatch.delenv("CV3D_STREAM", raising=False)
+ monkeypatch.delenv("C3D_STREAM", raising=False)
assert _streaming_enabled()
- monkeypatch.setenv("CV3D_STREAM", "0")
+ monkeypatch.setenv("C3D_STREAM", "0")
assert not _streaming_enabled()
def test_ipv4_transport_toggle(monkeypatch):
import httpx
- from codeverse.models.gemini import _ipv4_client_args
+ from codeverse3d.models.gemini import _ipv4_client_args
- monkeypatch.delenv("CV3D_IPV4", raising=False)
+ monkeypatch.delenv("C3D_IPV4", raising=False)
args = _ipv4_client_args()
assert isinstance(args["transport"], httpx.HTTPTransport)
- monkeypatch.setenv("CV3D_IPV4", "0")
+ monkeypatch.setenv("C3D_IPV4", "0")
assert _ipv4_client_args() == {}
def test_merge_stream_chunks_concatenates_text_and_keeps_final_usage():
"""Stream merging concatenates text parts in order; usage comes from the final chunk."""
- from codeverse.models.gemini import _merge_stream_chunks, extract_candidate
+ from codeverse3d.models.gemini import _merge_stream_chunks, extract_candidate
c1 = types.GenerateContentResponse(
candidates=[
diff --git a/harness/tests/models/test_gemini_scheduling.py b/harness/tests/models/test_gemini_scheduling.py
index c1fcca2b..d06c4fc5 100644
--- a/harness/tests/models/test_gemini_scheduling.py
+++ b/harness/tests/models/test_gemini_scheduling.py
@@ -10,10 +10,10 @@ import base64
import pytest
from google.genai import errors as genai_errors
-from codeverse.contracts.chat import ChatMessage, ChatRequest, ImagePart
-from codeverse.models.base import ModelError
-from codeverse.models.gemini import GeminiModel, shared_pool
-from codeverse.models.retry import KeyPool, StormGate, request_tokens
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest, ImagePart
+from codeverse3d.models.base import ModelError
+from codeverse3d.models.gemini import GeminiModel, shared_pool
+from codeverse3d.models.retry import KeyPool, StormGate, request_tokens
from tests.models.test_gemini import PNG_1PX, make_model, text_response
@@ -108,7 +108,7 @@ def test_a_503_closes_the_shared_gate_and_the_call_still_succeeds():
def test_rate_settings_control_the_shared_gate_and_hedge(monkeypatch):
- from codeverse.config import Rate, get_settings
+ from codeverse3d.config import Rate, get_settings
s = get_settings()
assert s.rate.storm_gate is False
@@ -131,8 +131,8 @@ def test_max_wait_s_clips_the_retry_deadline_and_never_extends_it(monkeypatch):
"""Audit 2026-08-26 §5.1: 66 give-up spans of the model's 900 s deadline (x3 outer retries)
were 30 % of a storm day's waiting. ``ChatRequest.max_wait_s`` is the caller's budget for
the whole call; the model clips its deadline to it and never goes above its own ceiling."""
- import codeverse.models.gemini as gm
- from codeverse.models.retry import RETRY_DEADLINE_S
+ import codeverse3d.models.gemini as gm
+ from codeverse3d.models.retry import RETRY_DEADLINE_S
seen: list[float] = []
real = gm.rotate_with_retries
@@ -183,7 +183,7 @@ def test_a_clean_call_reports_one_attempt_and_a_failed_call_carries_its_count():
# ------------------------------------------ per-attempt HTTP timeout (audit 2026-08-27)
def test_retry_budget_bounds_http_timeout_without_raising_an_explicit_ceiling():
- from codeverse.models.gemini import HTTP_TIMEOUT_FLOOR_S
+ from codeverse3d.models.gemini import HTTP_TIMEOUT_FLOOR_S
m, log, _ = make_model(
[text_response("a"), text_response("b"), text_response("c")], timeout_s=300.0
diff --git a/harness/tests/models/test_health.py b/harness/tests/models/test_health.py
index cb544355..0aa484cf 100644
--- a/harness/tests/models/test_health.py
+++ b/harness/tests/models/test_health.py
@@ -1,8 +1,8 @@
-"""Provider health probe (codeverse/models/health.py)."""
+"""Provider health probe (codeverse3d/models/health.py)."""
from __future__ import annotations
-from codeverse.models.health import DEFAULT_MIN_OK, Health
+from codeverse3d.models.health import DEFAULT_MIN_OK, Health
def test_health_threshold_requires_a_real_success_rate():
@@ -22,7 +22,7 @@ def test_health_threshold_requires_a_real_success_rate():
def test_the_probe_prompt_is_the_size_of_real_work():
"""A five-token probe answers when a 12 k-token planner call does not — that false
green light is exactly what this gate must not give."""
- from codeverse.models.health import PROBE_TOKENS, _probe_prompt
+ from codeverse3d.models.health import PROBE_TOKENS, _probe_prompt
prompt = _probe_prompt()
approx_tokens = len(prompt) // 4
@@ -44,7 +44,7 @@ def test_the_message_carries_the_provider_reason():
def test_probe_never_raises_when_every_call_fails(monkeypatch):
- import codeverse.models.health as health
+ import codeverse3d.models.health as health
class Boom:
def generate(self, _req):
@@ -58,10 +58,10 @@ def test_probe_never_raises_when_every_call_fails(monkeypatch):
# --------------------------------------------------------------------------- siblings
def test_sibling_detection_matches_arguments_not_the_repo_path():
- from codeverse.models.health import _is_harness_argv
+ from codeverse3d.models.health import _is_harness_argv
harness_commands = (
- ["python", "-m", "codeverse.cli.main", "bench", "run"],
+ ["python", "-m", "codeverse3d.cli.main", "bench", "run"],
["python", "bench/compare_backends.py", "--arms", "x"],
["/home/u/.local/bin/3dcode", "doctor"],
["/usr/bin/python3", "/x/y/run_bench.py"],
@@ -73,7 +73,7 @@ def test_sibling_detection_matches_arguments_not_the_repo_path():
)
other_commands = (
["/bin/bash", "-c", "cd /home/u/3dcodeverse/harness && ls"],
- ["vim", "/home/u/3dcodeverse/harness/codeverse/cli/main.py"],
+ ["vim", "/home/u/3dcodeverse/harness/codeverse3d/cli/main.py"],
["python", "-m", "pytest", "tests/"],
[],
["ls", "-la", "/home/u/3dcodeverse"],
@@ -89,8 +89,8 @@ def test_probe_model_treats_a_503_as_final(monkeypatch):
branch does NOT consume max_attempts, so max_attempts=1 alone still retried a 503
up to 60 times (bounded only by the 900 s deadline) — a "30-second" probe that could
take 15 minutes. Observed 2026-08-24 in the parked compare_v2 preflight log."""
- import codeverse.models.gemini as gm
- from codeverse.models.health import _bare_model
+ import codeverse3d.models.gemini as gm
+ from codeverse3d.models.health import _bare_model
captured: dict = {}
@@ -107,7 +107,7 @@ def test_probe_model_treats_a_503_as_final(monkeypatch):
assert m.storm_attempts == 0 and m.max_attempts == 1
import contextlib
- from codeverse.contracts.chat import ChatMessage, ChatRequest
+ from codeverse3d.contracts.chat import ChatMessage, ChatRequest
with contextlib.suppress(Exception): # the fake returns a non-response; only the kwargs matter
m.generate(ChatRequest(messages=[ChatMessage.user("pong")], max_output_tokens=8))
@@ -121,7 +121,7 @@ def _fake_proc(monkeypatch, procs):
import os
from pathlib import Path
- import codeverse.models.health as health
+ import codeverse3d.models.health as health
me = os.getpid()
@@ -154,12 +154,12 @@ def test_pool_budget_accounts_for_caps_defaults_and_unlimited_siblings(monkeypat
monkeypatch,
{
101: (
- ["python", "-m", "codeverse.cli.main", "bench", "run"],
- {"CV3D_MAX_IN_FLIGHT": "16"},
+ ["python", "-m", "codeverse3d.cli.main", "bench", "run"],
+ {"C3D_MAX_IN_FLIGHT": "16"},
),
102: (
["python", "bench/compare_backends.py", "--arms", "x"],
- {"CV3D_RATE__MAX_IN_FLIGHT": "16"},
+ {"C3D_RATE__MAX_IN_FLIGHT": "16"},
),
103: (
["/bin/bash", "-c", "cd /home/u/3dcodeverse && sleep 1"],
@@ -172,7 +172,7 @@ def test_pool_budget_accounts_for_caps_defaults_and_unlimited_siblings(monkeypat
assert pb.fits(16) and pb.fits(32) and not pb.fits(33) and not pb.fits(64)
health = _fake_proc(
- monkeypatch, {201: (["python", "-m", "codeverse.cli.main", "make", "a chair"], {})}
+ monkeypatch, {201: (["python", "-m", "codeverse3d.cli.main", "make", "a chair"], {})}
)
pb = health.pool_budget()
assert pb.used == 64 and pb.headroom == 0 and not pb.fits(1)
@@ -181,8 +181,8 @@ def test_pool_budget_accounts_for_caps_defaults_and_unlimited_siblings(monkeypat
monkeypatch,
{
401: (
- ["python", "-m", "codeverse.cli.main", "bench", "run"],
- {"CV3D_MAX_IN_FLIGHT": "0"},
+ ["python", "-m", "codeverse3d.cli.main", "bench", "run"],
+ {"C3D_MAX_IN_FLIGHT": "0"},
),
},
)
@@ -193,10 +193,10 @@ def test_pool_budget_accounts_for_caps_defaults_and_unlimited_siblings(monkeypat
monkeypatch,
{
501: (
- ["python", "-m", "codeverse.cli.main", "bench", "run"],
- {"CV3D_MAX_IN_FLIGHT": "16"},
+ ["python", "-m", "codeverse3d.cli.main", "bench", "run"],
+ {"C3D_MAX_IN_FLIGHT": "16"},
),
- 502: (["python", "-m", "bench.compare_backends"], {"CV3D_MAX_IN_FLIGHT": "-8"}),
+ 502: (["python", "-m", "bench.compare_backends"], {"C3D_MAX_IN_FLIGHT": "-8"}),
},
)
pb = health.pool_budget()
@@ -218,11 +218,11 @@ def test_an_ab_plan_driver_is_not_charged_for_its_children(monkeypatch):
),
302: (
["python", "-m", "bench.ab_plan", "cell", "--arm", "control"],
- {"CV3D_MAX_IN_FLIGHT": "16"},
+ {"C3D_MAX_IN_FLIGHT": "16"},
),
303: (
["python", "-m", "bench.ab_plan", "cell", "--arm", "variant"],
- {"CV3D_MAX_IN_FLIGHT": "16"},
+ {"C3D_MAX_IN_FLIGHT": "16"},
),
},
)
@@ -235,7 +235,7 @@ def test_an_ab_plan_driver_is_not_charged_for_its_children(monkeypatch):
311: (["python", "bench/ab_plan.py", "--prompts", "p.yaml"], {}),
312: (
["python", "bench/ab_plan.py", "cell", "--arm", "control"],
- {"CV3D_MAX_IN_FLIGHT": "8"},
+ {"C3D_MAX_IN_FLIGHT": "8"},
),
},
)
@@ -243,7 +243,7 @@ def test_an_ab_plan_driver_is_not_charged_for_its_children(monkeypatch):
# a compare_backends driver runs its cells in THREADS, in itself: it is charged
health = _fake_proc(
monkeypatch,
- {321: (["python", "-m", "bench.compare_backends"], {"CV3D_MAX_IN_FLIGHT": "16"})},
+ {321: (["python", "-m", "bench.compare_backends"], {"C3D_MAX_IN_FLIGHT": "16"})},
)
assert health.pool_budget().used == 16
@@ -251,7 +251,7 @@ def test_an_ab_plan_driver_is_not_charged_for_its_children(monkeypatch):
def test_pool_budget_never_raises(monkeypatch):
from pathlib import Path
- import codeverse.models.health as health
+ import codeverse3d.models.health as health
def boom(_self):
raise OSError("no /proc")
diff --git a/harness/tests/models/test_keypool.py b/harness/tests/models/test_keypool.py
index a305cc55..64bacbbd 100644
--- a/harness/tests/models/test_keypool.py
+++ b/harness/tests/models/test_keypool.py
@@ -7,7 +7,7 @@ import time
import pytest
-from codeverse.models.retry import MAX_WAIT_S, KeyPool, KeyPoolExhausted, TokenBucket
+from codeverse3d.models.retry import MAX_WAIT_S, KeyPool, KeyPoolExhausted, TokenBucket
class Clock:
diff --git a/harness/tests/models/test_keypool_tpm.py b/harness/tests/models/test_keypool_tpm.py
index 6cde17c3..2e510799 100644
--- a/harness/tests/models/test_keypool_tpm.py
+++ b/harness/tests/models/test_keypool_tpm.py
@@ -8,7 +8,7 @@ import threading
import pytest
-from codeverse.models.retry import KeyPool, KeyPoolExhausted
+from codeverse3d.models.retry import KeyPool, KeyPoolExhausted
class Clock:
diff --git a/harness/tests/models/test_live_gemini.py b/harness/tests/models/test_live_gemini.py
index 430204a8..a69d54dd 100644
--- a/harness/tests/models/test_live_gemini.py
+++ b/harness/tests/models/test_live_gemini.py
@@ -4,13 +4,13 @@ from __future__ import annotations
import pytest
-from codeverse.contracts.chat import (
+from codeverse3d.contracts.chat import (
ChatMessage,
ChatRequest,
ImagePart,
)
-from codeverse.contracts.plan import StaticPlan
-from codeverse.models import get_chat_model
+from codeverse3d.contracts.plan import StaticPlan
+from codeverse3d.models import get_chat_model
pytestmark = pytest.mark.live
@@ -19,7 +19,7 @@ MODEL = "gemini:gemini-3.7-flash"
@pytest.fixture(scope="module")
def model():
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
if not get_settings().gemini_api_keys:
pytest.skip("no gemini keys")
diff --git a/harness/tests/models/test_openai.py b/harness/tests/models/test_openai.py
index 560b8cb3..27863b63 100644
--- a/harness/tests/models/test_openai.py
+++ b/harness/tests/models/test_openai.py
@@ -8,9 +8,9 @@ from typing import Any
import httpx
import pytest
-from codeverse.contracts.chat import ChatMessage, ChatRequest, ImagePart
-from codeverse.models.base import ModelError
-from codeverse.models.openai import (
+from codeverse3d.contracts.chat import ChatMessage, ChatRequest, ImagePart
+from codeverse3d.models.base import ModelError
+from codeverse3d.models.openai import (
OpenAIModel,
build_kwargs,
classify_exception,
@@ -193,9 +193,9 @@ def test_empty_and_classify():
def test_base_url_from_settings(monkeypatch):
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
- monkeypatch.setenv("CV3D_OPENAI_BASE_URL", "http://localhost:8000/v1")
+ monkeypatch.setenv("C3D_OPENAI_BASE_URL", "http://localhost:8000/v1")
monkeypatch.delenv("OPENAI_API_KEY", raising=False)
get_settings.cache_clear()
try:
diff --git a/harness/tests/models/test_pricing.py b/harness/tests/models/test_pricing.py
index 984e18a0..ffd25d6d 100644
--- a/harness/tests/models/test_pricing.py
+++ b/harness/tests/models/test_pricing.py
@@ -4,8 +4,8 @@ from __future__ import annotations
import logging
-from codeverse.contracts.common import Usage
-from codeverse.models.pricing import PRICES, cache_write_surcharge, estimate_cost, lookup_price
+from codeverse3d.contracts.common import Usage
+from codeverse3d.models.pricing import PRICES, cache_write_surcharge, estimate_cost, lookup_price
def test_gemini_cost_math():
diff --git a/harness/tests/models/test_retry.py b/harness/tests/models/test_retry.py
index 7ae636b9..c7d1b152 100644
--- a/harness/tests/models/test_retry.py
+++ b/harness/tests/models/test_retry.py
@@ -8,10 +8,10 @@ import time
import pytest
-from codeverse.contracts.common import Usage
-from codeverse.models.base import ModelError
-from codeverse.models.gemini import HTTP_TIMEOUT_FLOOR_S
-from codeverse.models.retry import (
+from codeverse3d.contracts.common import Usage
+from codeverse3d.models.base import ModelError
+from codeverse3d.models.gemini import HTTP_TIMEOUT_FLOOR_S
+from codeverse3d.models.retry import (
ACQUIRE_TIMEOUT_S,
MAX_WAIT_S,
RETRY_DEADLINE_S,
@@ -85,7 +85,7 @@ def test_with_retries_stops_on_non_retryable_and_exhaustion():
def test_with_retries_honours_a_deadline_and_stamps_attempts():
"""The SDK adapters' loop: ``ChatRequest.max_wait_s`` bounds the whole call and the
raised ModelError says how many round-trips were issued (the ledger's error row)."""
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
calls = 0
diff --git a/harness/tests/models/test_schema_utils.py b/harness/tests/models/test_schema_utils.py
index ba7e9fef..55166122 100644
--- a/harness/tests/models/test_schema_utils.py
+++ b/harness/tests/models/test_schema_utils.py
@@ -8,8 +8,8 @@ import pytest
from google.genai import types
from pydantic import BaseModel, ValidationError
-from codeverse.contracts.plan import ArticulatedPlan, ScenePlan, StaticPlan
-from codeverse.models.schema_utils import (
+from codeverse3d.contracts.plan import ArticulatedPlan, ScenePlan, StaticPlan
+from codeverse3d.models.schema_utils import (
JsonParseError,
inline_refs,
parse_json_lenient,
@@ -211,9 +211,9 @@ def test_ask_structured_returns_the_triple_for_prose_it_cannot_parse():
"""The five callers branch on the error string; none of them catches. Every shipped
provider raises ModelError on unparseable structured output, but this must not depend
on all three keeping that half of the ChatModel contract."""
- from codeverse.contracts.chat import ChatResponse
- from codeverse.contracts.common import Usage
- from codeverse.models.schema_utils import ask_structured
+ from codeverse3d.contracts.chat import ChatResponse
+ from codeverse3d.contracts.common import Usage
+ from codeverse3d.models.schema_utils import ask_structured
class Answer(BaseModel):
ok: bool
@@ -233,9 +233,9 @@ def test_ask_structured_returns_the_usage_a_failed_call_was_billed():
ask_structured used to drop it (return Usage()), so every caller-side tally
(BudgetGuard.charge, refset.usage, record.json spend) undercounted while the
metered ledger recorded the real bill."""
- from codeverse.contracts.common import Usage
- from codeverse.models.base import ModelError
- from codeverse.models.schema_utils import ask_structured
+ from codeverse3d.contracts.common import Usage
+ from codeverse3d.models.base import ModelError
+ from codeverse3d.models.schema_utils import ask_structured
class Answer(BaseModel):
ok: bool
diff --git a/harness/tests/models/test_storm.py b/harness/tests/models/test_storm.py
index d53acb70..d98209bd 100644
--- a/harness/tests/models/test_storm.py
+++ b/harness/tests/models/test_storm.py
@@ -6,7 +6,7 @@ import threading
import pytest
-from codeverse.models.retry import MAX_WAIT_S, StormGate, all_gates, storm_gate
+from codeverse3d.models.retry import MAX_WAIT_S, StormGate, all_gates, storm_gate
class Clock:
diff --git a/harness/tests/orchestrator_tracks/conftest.py b/harness/tests/orchestrator_tracks/conftest.py
index 47dc290c..b8f214ee 100644
--- a/harness/tests/orchestrator_tracks/conftest.py
+++ b/harness/tests/orchestrator_tracks/conftest.py
@@ -6,10 +6,10 @@ import contextlib
import pytest
-from codeverse.config import Settings
-from codeverse.contracts.common import Backends, Budget, Language, Track
-from codeverse.contracts.plan import AcceptanceItem, BBox, PartPlan, StaticPlan
-from codeverse.contracts.spec import Constraints, Spec
+from codeverse3d.config import Settings
+from codeverse3d.contracts.common import Backends, Budget, Language, Track
+from codeverse3d.contracts.plan import AcceptanceItem, BBox, PartPlan, StaticPlan
+from codeverse3d.contracts.spec import Constraints, Spec
@pytest.fixture(autouse=True)
@@ -18,17 +18,17 @@ def no_brief_expansion(monkeypatch) -> None:
A fake planner model answers one canned plan per request; the extra brief call would
eat it and every ``FakeChatModel(lambda req: answers.pop(0))`` in here would go one
- answer out of step. The tests that exercise the brief set ``CV3D_PLAN_BRIEF=on``
+ answer out of step. The tests that exercise the brief set ``C3D_PLAN_BRIEF=on``
themselves (``test_planner_depth.py``).
Also clear the global Settings cache around each test: ``get_settings()`` is an
- ``lru_cache`` singleton that snapshots ``CV3D_*`` env vars at first construction, so
+ ``lru_cache`` singleton that snapshots ``C3D_*`` env vars at first construction, so
whichever test happens to touch it first bakes ITS monkeypatched env into every later
test in the worker — ``test_fewer_turns`` failed alone and passed in file order for
exactly this reason."""
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
- monkeypatch.setenv("CV3D_PLAN_BRIEF", "off")
+ monkeypatch.setenv("C3D_PLAN_BRIEF", "off")
get_settings.cache_clear()
yield
get_settings.cache_clear()
@@ -79,7 +79,7 @@ FAKE_CLOCK = {"minutes": 0.0}
@contextlib.contextmanager
def fake_clock():
"""Point BudgetGuard's wall clock at FAKE_CLOCK for the duration of a test."""
- from codeverse.orchestrator import BudgetGuard
+ from codeverse3d.orchestrator import BudgetGuard
real = BudgetGuard.elapsed_minutes
FAKE_CLOCK["minutes"] = 0.0
diff --git a/harness/tests/orchestrator_tracks/fakes.py b/harness/tests/orchestrator_tracks/fakes.py
index 0a7e1160..c12dd290 100644
--- a/harness/tests/orchestrator_tracks/fakes.py
+++ b/harness/tests/orchestrator_tracks/fakes.py
@@ -12,8 +12,8 @@ import numpy as np
import trimesh
from PIL import Image
-from codeverse.contracts.agent import AgentJob, AgentResult
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.agent import AgentJob, AgentResult
+from codeverse3d.contracts.artifacts import (
BuildResult,
GateFinding,
GateReport,
@@ -26,13 +26,13 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.contracts.chat import ChatRequest, ChatResponse
-from codeverse.contracts.common import Language, Usage
-from codeverse.contracts.plan import Plan
-from codeverse.contracts.run import RunRecord
-from codeverse.conventions import to_snake
-from codeverse.tracks.common import Services, ServiceUnavailable
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.chat import ChatRequest, ChatResponse
+from codeverse3d.contracts.common import Language, Usage
+from codeverse3d.contracts.plan import Plan
+from codeverse3d.contracts.run import RunRecord
+from codeverse3d.conventions import to_snake
+from codeverse3d.tracks.common import Services, ServiceUnavailable
+from codeverse3d.workspace import Workspace
FAIL_MARK = "RAISE_BUILD_ERROR"
@@ -241,7 +241,7 @@ class FakePairwise:
self.calls: list[tuple[Any, Any, Any, str]] = []
def compare(self, spec: Any, renders_a: Any, renders_b: Any, *, rubric: str = "static_object_v1") -> Any:
- from codeverse.judges.pairwise import PairwiseResult
+ from codeverse3d.judges.pairwise import PairwiseResult
i = min(len(self.calls), len(self.verdicts) - 1)
self.calls.append((spec, renders_a, renders_b, rubric))
diff --git a/harness/tests/orchestrator_tracks/test_asset_alias_note.py b/harness/tests/orchestrator_tracks/test_asset_alias_note.py
index ffcc952d..19941f97 100644
--- a/harness/tests/orchestrator_tracks/test_asset_alias_note.py
+++ b/harness/tests/orchestrator_tracks/test_asset_alias_note.py
@@ -8,7 +8,7 @@ the plan with `MAX_ASSETS` alone, so a degraded run told the zones merged assets
"""
from __future__ import annotations
-from codeverse.tracks.scene_assets import read_dedupe_note, write_dedupe_note
+from codeverse3d.tracks.scene_assets import read_dedupe_note, write_dedupe_note
def test_the_note_round_trips_and_an_empty_map_is_still_a_note(tmp_ws):
diff --git a/harness/tests/orchestrator_tracks/test_budget_snapshot.py b/harness/tests/orchestrator_tracks/test_budget_snapshot.py
index 451aab0e..2f159e92 100644
--- a/harness/tests/orchestrator_tracks/test_budget_snapshot.py
+++ b/harness/tests/orchestrator_tracks/test_budget_snapshot.py
@@ -8,17 +8,17 @@ from types import SimpleNamespace
import pytest
-from codeverse.contracts.common import Budget, Language, Usage
-from codeverse.contracts.plan import StaticPlan
-from codeverse.contracts.run import RunStatus
-from codeverse.contracts.spec import RunOptions
-from codeverse.orchestrator import BudgetExceeded, BudgetGuard, BudgetSnapshot, RunState
-from codeverse.proc import EventLog
-from codeverse.tracks.generation import GenerationTask, generate_files
-from codeverse.tracks.planner import MAX_VALIDATION_REASKS, PlanningError
-from codeverse.tracks.planner import plan as run_planner
-from codeverse.tracks.static_object import StaticObjectTrack
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.common import Budget, Language, Usage
+from codeverse3d.contracts.plan import StaticPlan
+from codeverse3d.contracts.run import RunStatus
+from codeverse3d.contracts.spec import RunOptions
+from codeverse3d.orchestrator import BudgetExceeded, BudgetGuard, BudgetSnapshot, RunState
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.generation import GenerationTask, generate_files
+from codeverse3d.tracks.planner import MAX_VALIDATION_REASKS, PlanningError
+from codeverse3d.tracks.planner import plan as run_planner
+from codeverse3d.tracks.static_object import StaticObjectTrack
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import (
FakeAgent,
@@ -100,7 +100,7 @@ def test_the_texture_pass_spend_reaches_the_snapshot_a_resume_restores(tmp_path,
"""finalise saved the state BEFORE the texture pass charged, so the snapshot a resume
restored was the PRE-texture one and a $0.12 pack simply vanished from the run's money
(reproduced 2026-08-30: total_usage 0.217 with cost_by_stage[texture], 0.097 after)."""
- import codeverse.texturing.run as texrun
+ import codeverse3d.texturing.run as texrun
monkeypatch.setattr(texrun, "texture_pass",
lambda *a, **kw: SimpleNamespace(usage=Usage(backend="gemini", cost_usd=0.12),
@@ -176,7 +176,7 @@ def test_single_shot_obeys_the_run_clock(tmp_path):
self.calls = 0
def generate(self, req):
- from codeverse.contracts.chat import ChatResponse
+ from codeverse3d.contracts.chat import ChatResponse
self.calls += 1
live2._active_s = 11 * 60.0 # noqa: SLF001 — ceiling crossed mid-call
return ChatResponse(text="=== FILE: src/object.js ===\nx", finish_reason="max_tokens",
@@ -254,7 +254,7 @@ def test_the_adopted_best_of_n_winner_survives_a_boundary_budget_stop(tmp_path,
``budget.check()`` trips BEFORE run_round persists r00. prepare_salvage must say
yes (the paid, buildable candidate is sitting in src/) so the salvage round
delivers ONE scored round instead of a 0-round record that re-pays all N on resume."""
- import codeverse.tracks.candidates as cand
+ import codeverse3d.tracks.candidates as cand
real_adopt = cand.adopt_candidate
diff --git a/harness/tests/orchestrator_tracks/test_candidates_reference_motion.py b/harness/tests/orchestrator_tracks/test_candidates_reference_motion.py
index d0427715..afe0ca43 100644
--- a/harness/tests/orchestrator_tracks/test_candidates_reference_motion.py
+++ b/harness/tests/orchestrator_tracks/test_candidates_reference_motion.py
@@ -7,23 +7,23 @@ import json
import pytest
from PIL import Image
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import ArticulatedPlan
-from codeverse.contracts.run import RunStatus
-from codeverse.contracts.spec import ReferenceImage
-from codeverse.orchestrator import (
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import ArticulatedPlan
+from codeverse3d.contracts.run import RunStatus
+from codeverse3d.contracts.spec import ReferenceImage
+from codeverse3d.orchestrator import (
RefineTask,
RoundPolicy,
build_refine_instructions,
compact_instructions,
)
-from codeverse.proc import EventLog
-from codeverse.tracks import get_track
-from codeverse.tracks.articulated_object import ArticulatedObjectTrack, expected_direction
-from codeverse.tracks.candidates import CandidateRecord, decide_best, rank_candidates
-from codeverse.tracks.planner import plan_example
-from codeverse.tracks.static_object import StaticObjectTrack
-from codeverse.workspace import Workspace
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks import get_track
+from codeverse3d.tracks.articulated_object import ArticulatedObjectTrack, expected_direction
+from codeverse3d.tracks.candidates import CandidateRecord, decide_best, rank_candidates
+from codeverse3d.tracks.planner import plan_example
+from codeverse3d.tracks.static_object import StaticObjectTrack
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import (
FakeAgent,
@@ -52,7 +52,7 @@ def test_round_policy_candidates_and_compaction():
def test_build_refine_instructions_extra_and_instance_targets(chair_plan):
- from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
+ from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
gate = GateReport(gate="connectivity", passed=False, findings=[
GateFinding(gate="connectivity", severity=Severity.ERROR, target="back_leg_1", message="floats", fix_hint="lower it")])
@@ -173,7 +173,7 @@ def test_best_of_two_pairwise_tiebreak_overrides_ranking(tmp_path, chair_plan, s
def test_candidate_count_persists_for_resume_and_settings_default(tmp_path, chair_plan, settings):
- from codeverse.contracts.spec import RunOptions
+ from codeverse3d.contracts.spec import RunOptions
# the CLI writes --candidates into spec.options (the persisted carrier — spec.json travels
# with the run); run_state.json no longer mirrors it
@@ -187,7 +187,7 @@ def test_candidate_count_persists_for_resume_and_settings_default(tmp_path, chai
# a resume without the flag reads the persisted width
t2 = StaticObjectTrack(services=FakeServices(), judge=FakeJudge(scores=(0.5,)), agent=FakeAgent(_writer_by_candidate),
planner_model=_planner(chair_plan.model_dump(mode="json")), settings=settings, runtime=FakeRuntime(Language.BLENDER))
- from codeverse.orchestrator import RunState
+ from codeverse3d.orchestrator import RunState
ctx = t2.build_context(spec, ws, EventLog(ws.events_path), RunState.load(ws))
assert ctx.policy.n_candidates == 2
@@ -252,7 +252,7 @@ def test_reference_images_wire_judge_prompts_and_silhouette(tmp_path, chair_plan
# reference judge + rubric
assert services.reference_judges and services.reference_judges[0][2] == "reference_v1" and rec.extra["rubric"] == "reference_v1"
# prompts mention the references; single-shot attaches the image
- from codeverse.contracts.chat import ImagePart
+ from codeverse3d.contracts.chat import ImagePart
p0 = model.requests[0]
imgs = [pt for pt in p0.messages[0].parts if isinstance(pt, ImagePart)]
@@ -299,9 +299,9 @@ def test_articulated_motion_direction_gate_feeds_refine_and_judge(tmp_path, sett
# ----------------------------------------------------------------------------- per-part files via runtime.file_for_part
def test_expected_files_and_targets_follow_runtime_file_for_part(tmp_path, chair_plan, settings):
- from codeverse.conventions import to_snake
- from codeverse.tracks.prompting import file_for_target_factory
- from codeverse.tracks.static_object import expected_files
+ from codeverse3d.conventions import to_snake
+ from codeverse3d.tracks.prompting import file_for_target_factory
+ from codeverse3d.tracks.static_object import expected_files
class PartsRuntime(FakeRuntime):
@staticmethod
@@ -310,7 +310,7 @@ def test_expected_files_and_targets_follow_runtime_file_for_part(tmp_path, chair
spec = make_spec(language=Language.BLENDER, max_rounds=0)
track = StaticObjectTrack(services=FakeServices(), settings=settings, runtime=PartsRuntime(Language.BLENDER))
- from codeverse.orchestrator import RunState
+ from codeverse3d.orchestrator import RunState
ctx = track.build_context(spec, Workspace(tmp_path / "ws").create(), EventLog(tmp_path / "e.jsonl"), RunState())
ctx.plan = chair_plan
@@ -344,8 +344,8 @@ def test_default_motion_checks_on_real_urdf(tmp_path):
"""Hinged door: axis -z opens to the front (ok); axis +z → WRONG with the negated-axis fix."""
import trimesh
- from codeverse.contracts.plan import BBox, JointPlan, PartPlan
- from codeverse.tracks.articulated_object import default_motion_checks
+ from codeverse3d.contracts.plan import BBox, JointPlan, PartPlan
+ from codeverse3d.tracks.articulated_object import default_motion_checks
def robot(root, axis_z):
ws = Workspace(root).create()
@@ -411,7 +411,7 @@ def test_a_track_without_a_glb_still_gets_candidate_renders():
from pathlib import Path
from types import SimpleNamespace
- from codeverse.tracks.candidates import quick_render
+ from codeverse3d.tracks.candidates import quick_render
class _Pipeline:
def __init__(self): self.calls = []
@@ -440,7 +440,7 @@ def test_an_object_candidate_still_uses_the_cheap_rig(tmp_path):
the reduced-view, reduced-resolution quick rig, not pipeline.render."""
from types import SimpleNamespace
- from codeverse.tracks.candidates import OBJECT_VIEWS_QUICK, QUICK_PX, quick_render
+ from codeverse3d.tracks.candidates import OBJECT_VIEWS_QUICK, QUICK_PX, quick_render
seen = {}
diff --git a/harness/tests/orchestrator_tracks/test_cookbook_excerpt.py b/harness/tests/orchestrator_tracks/test_cookbook_excerpt.py
index 1c4ae1fd..f8f4887a 100644
--- a/harness/tests/orchestrator_tracks/test_cookbook_excerpt.py
+++ b/harness/tests/orchestrator_tracks/test_cookbook_excerpt.py
@@ -11,9 +11,9 @@ from __future__ import annotations
from pathlib import Path
from types import SimpleNamespace
-from codeverse.contracts.common import Language, Track
-from codeverse.prompts import PROMPTS_DIR, load_text
-from codeverse.prompts.sections import split_sections
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.prompts import PROMPTS_DIR, load_text
+from codeverse3d.prompts.sections import split_sections
EXAMPLE = PROMPTS_DIR / "glsl_shader" / "examples" / "aurora_ridge.frag"
@@ -38,8 +38,8 @@ def test_every_track_sends_the_whole_cookbook(monkeypatch) -> None:
stage knows which chapters it needs (scene's env/zone recipes, graphics' recipe
seeding); it is not right as a way to shrink the reference itself.
"""
- from codeverse.tracks import graphics as graphics_steps
- from codeverse.tracks.prompting import base_prompt_context
+ from codeverse3d.tracks import graphics as graphics_steps
+ from codeverse3d.tracks.prompting import base_prompt_context
big = "\n\n".join(f"## chapter {i}\n" + "x" * 4000 for i in range(20)) # ~80 000 chars
ctx = SimpleNamespace(plan=None, spec=SimpleNamespace(prompt="an aurora", constraints=None, must=[], must_not=[],
@@ -53,15 +53,15 @@ def test_every_track_sends_the_whole_cookbook(monkeypatch) -> None:
monkeypatch.setattr(graphics_steps, "acceptance_lines", lambda plan: "")
assert graphics_steps.graphics_prompt_context(ctx)["cookbook_excerpt"] == big
- monkeypatch.setattr("codeverse.tracks.prompting.constraints_text", lambda spec: "")
- monkeypatch.setattr("codeverse.tracks.prompting.reference_note", lambda ctx: "")
- monkeypatch.setattr("codeverse.tracks.prompting.acceptance_lines", lambda plan: "")
+ monkeypatch.setattr("codeverse3d.tracks.prompting.constraints_text", lambda spec: "")
+ monkeypatch.setattr("codeverse3d.tracks.prompting.reference_note", lambda ctx: "")
+ monkeypatch.setattr("codeverse3d.tracks.prompting.acceptance_lines", lambda plan: "")
assert base_prompt_context(ctx)["cookbook_excerpt"] == big
assert base_prompt_context(ctx)["contract"] == "CONTRACT"
def test_aurora_example_ships_and_composes() -> None:
- from codeverse.languages.glsl_shader import compose
+ from codeverse3d.languages.glsl_shader import compose
assert EXAMPLE.is_file(), EXAMPLE
src = EXAMPLE.read_text()
diff --git a/harness/tests/orchestrator_tracks/test_cost_accounting.py b/harness/tests/orchestrator_tracks/test_cost_accounting.py
index 3d4bc4a9..8217c4df 100644
--- a/harness/tests/orchestrator_tracks/test_cost_accounting.py
+++ b/harness/tests/orchestrator_tracks/test_cost_accounting.py
@@ -8,12 +8,12 @@ from pathlib import Path
import pytest
-from codeverse.contracts.agent import AgentJob, AgentResult
-from codeverse.contracts.common import Budget, Usage
-from codeverse.cost.instrument import MeteredAgent, run_ledger
-from codeverse.cost.ledger import load_ledger, record_call
-from codeverse.orchestrator import BudgetExceeded, BudgetGuard, usage_delta
-from codeverse.tracks.generation import GenerationTask, _SessionAcc
+from codeverse3d.contracts.agent import AgentJob, AgentResult
+from codeverse3d.contracts.common import Budget, Usage
+from codeverse3d.cost.instrument import MeteredAgent, run_ledger
+from codeverse3d.cost.ledger import load_ledger, record_call
+from codeverse3d.orchestrator import BudgetExceeded, BudgetGuard, usage_delta
+from codeverse3d.tracks.generation import GenerationTask, _SessionAcc
FIXTURES = json.loads((Path(__file__).parent / "data" / "offrecord_runs.json").read_text())["runs"]
@@ -141,8 +141,8 @@ def test_usage_delta_reports_what_a_round_burned():
def test_the_guard_never_writes_a_ledger_row_itself(tmp_path, monkeypatch):
"""One writer: a charge outside any run ledger lands nowhere, not in a second file."""
- monkeypatch.setenv("CV3D_COST_LEDGER", str(tmp_path / "process.jsonl"))
- from codeverse.cost import ledger as ledger_mod
+ monkeypatch.setenv("C3D_COST_LEDGER", str(tmp_path / "process.jsonl"))
+ from codeverse3d.cost import ledger as ledger_mod
monkeypatch.setattr(ledger_mod, "_fallback_read", False)
quiet = BudgetGuard(Budget(max_minutes=60))
diff --git a/harness/tests/orchestrator_tracks/test_cost_latency.py b/harness/tests/orchestrator_tracks/test_cost_latency.py
index d7968215..d8d1fafa 100644
--- a/harness/tests/orchestrator_tracks/test_cost_latency.py
+++ b/harness/tests/orchestrator_tracks/test_cost_latency.py
@@ -7,18 +7,23 @@ import shutil
import pytest
-from codeverse.config import get_settings
-from codeverse.contracts.agent import AgentResult
-from codeverse.contracts.common import Budget, Language, Track
-from codeverse.contracts.plan import AssetPlan, ScenePlan, ZonePlan
-from codeverse.contracts.run import RunStatus
-from codeverse.orchestrator import BudgetExceeded, BudgetGuard, RoundPolicy, RunState
-from codeverse.proc import EventLog
-from codeverse.tracks.common import RunContext, generate_for, single_shot_agent_id, single_shot_ctx
-from codeverse.tracks.generation import GenerationTask
-from codeverse.tracks.planner import plan_example
-from codeverse.tracks.scene import SceneTrack
-from codeverse.tracks.scene_assets import (
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.agent import AgentResult
+from codeverse3d.contracts.common import Budget, Language, Track
+from codeverse3d.contracts.plan import AssetPlan, ScenePlan, ZonePlan
+from codeverse3d.contracts.run import RunStatus
+from codeverse3d.orchestrator import BudgetExceeded, BudgetGuard, RoundPolicy, RunState
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.common import (
+ RunContext,
+ generate_for,
+ single_shot_agent_id,
+ single_shot_ctx,
+)
+from codeverse3d.tracks.generation import GenerationTask
+from codeverse3d.tracks.planner import plan_example
+from codeverse3d.tracks.scene import SceneTrack
+from codeverse3d.tracks.scene_assets import (
asset_api_summary,
check_threejs_asset,
dedupe_assets,
@@ -26,7 +31,7 @@ from codeverse.tracks.scene_assets import (
select_assets,
variant_index,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import fake_clock, make_spec
from tests.orchestrator_tracks.fakes import (
FakeAgent,
@@ -100,7 +105,7 @@ def test_dedupe_is_a_no_op_for_unrelated_assets_and_reaches_the_zone_prompt():
def _zone(name: str, n: int) -> ZonePlan:
- from codeverse.contracts.plan import BBox
+ from codeverse3d.contracts.plan import BBox
return ZonePlan(name=name, description=name, bbox=BBox(center=(0, 0, 0), extents=(10, 5, 10)),
contents=[f"A{i}" for i in range(n)])
@@ -359,7 +364,7 @@ def _writer(job, ws):
@needs_node
def test_a_merged_asset_leaves_a_working_shim_not_the_placeholder_box(tmp_path, settings, monkeypatch):
- import codeverse.tracks.scene_assets as sa
+ import codeverse3d.tracks.scene_assets as sa
monkeypatch.setattr(sa, "MAX_ASSETS", 1) # force the rescue path with a tiny plan
plan = ScenePlan.model_validate(plan_example(Track.SCENE))
@@ -473,7 +478,7 @@ def test_a_model_outage_escalates_the_asset_instead_of_losing_it(tmp_path, setti
@pytest.mark.node
def test_the_shot_after_an_outage_is_a_plain_generation_not_a_repair(tmp_path, settings):
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
plan = ScenePlan.model_validate(plan_example(Track.SCENE))
plan = plan.model_copy(update={"assets": [_asset("Bollard", (0.3, 0.5, 0.3))], "zones": []})
@@ -495,8 +500,8 @@ def test_the_shot_after_an_outage_is_a_plain_generation_not_a_repair(tmp_path, s
def test_a_generation_session_never_outlives_the_wall_budget():
- from codeverse.contracts.spec import Budget
- from codeverse.orchestrator import BudgetGuard
+ from codeverse3d.contracts.spec import Budget
+ from codeverse3d.orchestrator import BudgetGuard
g = BudgetGuard(Budget(max_minutes=30.0, max_rounds=4))
assert g.timeout_s(1800, floor_s=120.0) == pytest.approx(1800, abs=60) # fresh run: full session
@@ -508,9 +513,9 @@ def test_a_generation_session_never_outlives_the_wall_budget():
def test_one_asset_cannot_eat_the_scene_run():
- from codeverse.contracts.spec import Budget
- from codeverse.orchestrator import BudgetGuard
- from codeverse.tracks.scene_assets import (
+ from codeverse3d.contracts.spec import Budget
+ from codeverse3d.orchestrator import BudgetGuard
+ from codeverse3d.tracks.scene_assets import (
ASSET_AGENT_TIMEOUT_S,
ASSET_SESSION_SHARE,
asset_timeout_s,
diff --git a/harness/tests/orchestrator_tracks/test_fewer_turns.py b/harness/tests/orchestrator_tracks/test_fewer_turns.py
index 017fa44d..09379866 100644
--- a/harness/tests/orchestrator_tracks/test_fewer_turns.py
+++ b/harness/tests/orchestrator_tracks/test_fewer_turns.py
@@ -2,11 +2,11 @@
from __future__ import annotations
-from codeverse.config import FEWER_TURNS_ENV, Settings, fewer_turns_enabled, get_settings
-from codeverse.contracts.common import Language
-from codeverse.orchestrator import RefineTask, TaskGroup
-from codeverse.tracks.plan_features import LIVE_SWITCHES
-from codeverse.tracks.prompting import INLINE_MAX_CHARS, INLINE_MAX_FILES, TURN_DISCIPLINE
+from codeverse3d.config import FEWER_TURNS_ENV, Settings, fewer_turns_enabled, get_settings
+from codeverse3d.contracts.common import Language
+from codeverse3d.orchestrator import RefineTask, TaskGroup
+from codeverse3d.tracks.plan_features import LIVE_SWITCHES
+from codeverse3d.tracks.prompting import INLINE_MAX_CHARS, INLINE_MAX_FILES, TURN_DISCIPLINE
from .conftest import make_spec
from .fakes import FakeAgent, FakeRuntime, FakeServices
@@ -17,10 +17,10 @@ LEG = "import bpy\n\n\ndef build_leg():\n return bpy.context.object # LEG-BO
def _ctx(tmp_path, plan, settings, *, language=Language.BLENDER, agent_id="fake-agent:m"):
- from codeverse.orchestrator import RunState
- from codeverse.proc import EventLog
- from codeverse.tracks.static_object import StaticObjectTrack
- from codeverse.workspace import Workspace
+ from codeverse3d.orchestrator import RunState
+ from codeverse3d.proc import EventLog
+ from codeverse3d.tracks.static_object import StaticObjectTrack
+ from codeverse3d.workspace import Workspace
ws = Workspace(tmp_path / "runs" / "d").create()
track = StaticObjectTrack(services=FakeServices(), agent=FakeAgent(lambda job: None), settings=settings,
@@ -58,9 +58,9 @@ def test_switch_contract(monkeypatch):
monkeypatch.delenv(FEWER_TURNS_ENV)
get_settings.cache_clear()
assert Settings().limits.fewer_turns is False
- monkeypatch.setenv("CV3D_LIMITS__FEWER_TURNS", "true")
+ monkeypatch.setenv("C3D_LIMITS__FEWER_TURNS", "true")
assert Settings().limits.fewer_turns is True
- assert LIVE_SWITCHES[FEWER_TURNS_ENV] == "codeverse/config.py"
+ assert LIVE_SWITCHES[FEWER_TURNS_ENV] == "codeverse3d/config.py"
# --------------------------------------------------------------------------- refine: the files ride along
@@ -109,7 +109,7 @@ def test_single_shot_refine_still_inlines_regardless_of_the_switch(tmp_path, cha
# --------------------------------------------------------------------------- baseline: every file in turn one
def test_baseline_prompt_carries_the_turn_discipline_block(tmp_path, chair_plan, settings, monkeypatch):
- monkeypatch.setenv("CV3D_SCOPED_PARTS", "off")
+ monkeypatch.setenv("C3D_SCOPED_PARTS", "off")
monkeypatch.setenv(FEWER_TURNS_ENV, "1")
track, ctx = _ctx(tmp_path, chair_plan, settings)
(task,) = track.baseline_tasks(ctx)
@@ -129,7 +129,7 @@ def test_baseline_prompt_carries_the_turn_discipline_block(tmp_path, chair_plan,
def test_scoped_baseline_and_assembly_prompts_carry_it_too(tmp_path, settings, monkeypatch):
from .test_generation_depth import big_plan
- monkeypatch.delenv("CV3D_SCOPED_PARTS", raising=False)
+ monkeypatch.delenv("C3D_SCOPED_PARTS", raising=False)
monkeypatch.setenv(FEWER_TURNS_ENV, "1")
track, ctx = _ctx(tmp_path, big_plan(), settings, language=Language.THREEJS)
tasks = track.baseline_tasks(ctx)
diff --git a/harness/tests/orchestrator_tracks/test_fix_batch2.py b/harness/tests/orchestrator_tracks/test_fix_batch2.py
index ea367296..f2c0aa48 100644
--- a/harness/tests/orchestrator_tracks/test_fix_batch2.py
+++ b/harness/tests/orchestrator_tracks/test_fix_batch2.py
@@ -7,17 +7,17 @@ from types import SimpleNamespace
import pytest
-from codeverse.contracts.artifacts import BuildResult, GateFinding, GateReport, Judgment, Severity
-from codeverse.contracts.common import Language, Track, Usage
-from codeverse.contracts.plan import BBox, PartPlan, ScenePlan, StaticPlan
-from codeverse.contracts.run import RoundRecord, RunStatus
-from codeverse.orchestrator import RoundPolicy, RunState
-from codeverse.proc import EventLog
-from codeverse.prompts import load_text
-from codeverse.tracks.planner import plan_example
-from codeverse.tracks.scene import SceneTrack
-from codeverse.tracks.static_object import ObjectPipeline, StaticObjectTrack
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import BuildResult, GateFinding, GateReport, Judgment, Severity
+from codeverse3d.contracts.common import Language, Track, Usage
+from codeverse3d.contracts.plan import BBox, PartPlan, ScenePlan, StaticPlan
+from codeverse3d.contracts.run import RoundRecord, RunStatus
+from codeverse3d.orchestrator import RoundPolicy, RunState
+from codeverse3d.proc import EventLog
+from codeverse3d.prompts import load_text
+from codeverse3d.tracks.planner import plan_example
+from codeverse3d.tracks.scene import SceneTrack
+from codeverse3d.tracks.static_object import ObjectPipeline, StaticObjectTrack
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import fake_clock, make_spec
from tests.orchestrator_tracks.fakes import (
FakeAgent,
@@ -126,7 +126,7 @@ def test_a_failed_finalise_rebuild_cannot_finalize_silently(tmp_path, chair_plan
return super().build(ws, timeout_s=timeout_s)
textured = []
- from codeverse.tracks.lifecycle import BaseTrack
+ from codeverse3d.tracks.lifecycle import BaseTrack
monkeypatch.setattr(BaseTrack, "_texture_wanted", staticmethod(lambda ctx: True))
monkeypatch.setattr(BaseTrack, "_texture_pass", lambda self, ctx: textured.append(True))
diff --git a/harness/tests/orchestrator_tracks/test_fix_generation.py b/harness/tests/orchestrator_tracks/test_fix_generation.py
index 5ab71932..62913851 100644
--- a/harness/tests/orchestrator_tracks/test_fix_generation.py
+++ b/harness/tests/orchestrator_tracks/test_fix_generation.py
@@ -2,17 +2,17 @@
from __future__ import annotations
-from codeverse.contracts.agent import AgentResult
-from codeverse.contracts.chat import ChatResponse
-from codeverse.contracts.common import Usage
-from codeverse.proc import EventLog
-from codeverse.tracks.generation import (
+from codeverse3d.contracts.agent import AgentResult
+from codeverse3d.contracts.chat import ChatResponse
+from codeverse3d.contracts.common import Usage
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.generation import (
GenerationTask,
generate_files,
parse_multifile,
run_agent_task,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
FULL = "=== FILE: src/model.py ===\nimport bpy\nprint('ok')\n=== END FILE ==="
TRUNCATED = "=== FILE: src/model.py ===\nimport bpy\nbpy.ops.mesh.primitive_cube_add(size=0.4, location=(0, 0,"
diff --git a/harness/tests/orchestrator_tracks/test_generation_depth.py b/harness/tests/orchestrator_tracks/test_generation_depth.py
index 363118e9..f1d325e5 100644
--- a/harness/tests/orchestrator_tracks/test_generation_depth.py
+++ b/harness/tests/orchestrator_tracks/test_generation_depth.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.artifacts import (
BuildResult,
GateFinding,
GateReport,
@@ -12,11 +12,11 @@ from codeverse.contracts.artifacts import (
PartMeasure,
Severity,
)
-from codeverse.contracts.common import Language
-from codeverse.contracts.plan import BBox, PartPlan, StaticPlan
-from codeverse.contracts.run import RoundRecord
-from codeverse.conventions import MAX_TRIS_OBJECT, to_snake
-from codeverse.orchestrator import (
+from codeverse3d.contracts.common import Language
+from codeverse3d.contracts.plan import BBox, PartPlan, StaticPlan
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.conventions import MAX_TRIS_OBJECT, to_snake
+from codeverse3d.orchestrator import (
DETAIL_KIND,
KIND_FOR_STRATEGY,
REWRITE_KIND,
@@ -24,14 +24,14 @@ from codeverse.orchestrator import (
StopPolicy,
detail_blocked,
)
-from codeverse.tracks.depth import (
+from codeverse3d.tracks.depth import (
PartScope,
depth_budget,
interfaces_text,
scope_groups,
scoped_generation_enabled,
)
-from codeverse.tracks.static_object import DRIFT_GATE, detail_instructions, drift_gate
+from codeverse3d.tracks.static_object import DRIFT_GATE, detail_instructions, drift_gate
from .conftest import make_spec
from .fakes import FakeAgent, FakeRuntime, FakeServices
@@ -104,11 +104,11 @@ def test_interfaces_text_names_only_the_neighbours_outside_the_scope(chair_plan)
def test_scoped_generation_can_be_switched_off(monkeypatch):
- monkeypatch.setenv("CV3D_SCOPED_PARTS", "off")
+ monkeypatch.setenv("C3D_SCOPED_PARTS", "off")
assert scoped_generation_enabled() is False
- monkeypatch.setenv("CV3D_SCOPED_PARTS", "on")
+ monkeypatch.setenv("C3D_SCOPED_PARTS", "on")
assert scoped_generation_enabled() is True
- monkeypatch.delenv("CV3D_SCOPED_PARTS")
+ monkeypatch.delenv("C3D_SCOPED_PARTS")
assert scoped_generation_enabled() is True
@@ -209,10 +209,10 @@ def big_plan(n: int = 11) -> StaticPlan:
def _ctx(tmp_path, plan, settings, *, language=Language.THREEJS, agent_id="fake-agent:m"):
- from codeverse.orchestrator import RunState
- from codeverse.proc import EventLog
- from codeverse.tracks.static_object import StaticObjectTrack
- from codeverse.workspace import Workspace
+ from codeverse3d.orchestrator import RunState
+ from codeverse3d.proc import EventLog
+ from codeverse3d.tracks.static_object import StaticObjectTrack
+ from codeverse3d.workspace import Workspace
ws = Workspace(tmp_path / "runs" / "d").create()
track = StaticObjectTrack(services=FakeServices(), agent=FakeAgent(lambda job: None), settings=settings,
@@ -240,10 +240,10 @@ def test_scoped_baseline_fans_out_and_the_assembly_session_owns_the_entry(tmp_pa
def test_scoping_off_single_shot_or_a_small_plan_falls_back_to_one_task(tmp_path, chair_plan, settings, monkeypatch):
- monkeypatch.setenv("CV3D_SCOPED_PARTS", "off")
+ monkeypatch.setenv("C3D_SCOPED_PARTS", "off")
track, ctx = _ctx(tmp_path, big_plan(), settings)
assert [t.label for t in track.baseline_tasks(ctx)] == ["baseline"]
- monkeypatch.delenv("CV3D_SCOPED_PARTS")
+ monkeypatch.delenv("C3D_SCOPED_PARTS")
t2, c2 = _ctx(tmp_path / "ss", big_plan(), settings, agent_id="single-shot:fake:m")
assert [t.label for t in t2.baseline_tasks(c2)] == ["baseline"] # one envelope, no sessions
t3, c3 = _ctx(tmp_path / "small", chair_plan, settings)
@@ -274,8 +274,8 @@ def test_detail_tasks_are_scoped_frozen_and_arm_the_drift_gate(tmp_path, setting
def test_phases_run_in_order_and_a_failed_phase_does_not_kill_the_round(tmp_path, chair_plan, settings):
"""``run_generation_tasks`` is the only place that knows about phases."""
- from codeverse.tracks.generation import GenerationResult, GenerationTask
- from codeverse.tracks.steps import run_generation_tasks
+ from codeverse3d.tracks.generation import GenerationResult, GenerationTask
+ from codeverse3d.tracks.steps import run_generation_tasks
track, ctx = _ctx(tmp_path, chair_plan, settings)
order: list[str] = []
@@ -284,7 +284,7 @@ def test_phases_run_in_order_and_a_failed_phase_does_not_kill_the_round(tmp_path
order.append(task.label)
return GenerationResult(ok=task.label != "b", label=task.label, notes="")
- import codeverse.tracks.common as common # the one seam every stage generates through
+ import codeverse3d.tracks.common as common # the one seam every stage generates through
orig = common.generate
common.generate = fake_generate
try:
@@ -300,8 +300,8 @@ def test_phases_run_in_order_and_a_failed_phase_does_not_kill_the_round(tmp_path
def test_the_three_depth_templates_render_with_strict_undefined(tmp_path, settings):
"""StrictUndefined: a variable the template names and the track does not provide is a crash."""
- from codeverse.prompts import render
- from codeverse.tracks.prompting import base_prompt_context, judge_digest, scope_context
+ from codeverse3d.prompts import render
+ from codeverse3d.tracks.prompting import base_prompt_context, judge_digest, scope_context
track, ctx = _ctx(tmp_path, big_plan(), settings)
scope = track.scopes(ctx)[0]
@@ -320,10 +320,10 @@ def test_the_three_depth_templates_render_with_strict_undefined(tmp_path, settin
def test_a_full_run_spends_exactly_one_detail_round_after_the_plateau(tmp_path, chair_plan, settings):
"""End to end on fakes: flat scores → plateau → ONE round of kind 'detail', gated by
detail_drift, and never a second one."""
- from codeverse.contracts.run import RunStatus
- from codeverse.tracks.static_object import DRIFT_GATE as _DRIFT
- from codeverse.tracks.static_object import StaticObjectTrack
- from codeverse.workspace import Workspace
+ from codeverse3d.contracts.run import RunStatus
+ from codeverse3d.tracks.static_object import DRIFT_GATE as _DRIFT
+ from codeverse3d.tracks.static_object import StaticObjectTrack
+ from codeverse3d.workspace import Workspace
from .fakes import FakeJudge
from .test_fix_batch2 import _planner, _writer
diff --git a/harness/tests/orchestrator_tracks/test_generation_planner_repair.py b/harness/tests/orchestrator_tracks/test_generation_planner_repair.py
index 354e35bc..622ac446 100644
--- a/harness/tests/orchestrator_tracks/test_generation_planner_repair.py
+++ b/harness/tests/orchestrator_tracks/test_generation_planner_repair.py
@@ -6,12 +6,12 @@ import json
import pytest
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import ScenePlan, StaticPlan
-from codeverse.orchestrator import BudgetGuard, RoundPolicy, RunState
-from codeverse.proc import EventLog
-from codeverse.tracks.common import RunContext
-from codeverse.tracks.generation import (
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import ScenePlan, StaticPlan
+from codeverse3d.orchestrator import BudgetGuard, RoundPolicy, RunState
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.common import RunContext
+from codeverse3d.tracks.generation import (
SINGLE_SHOT_FORMAT,
GenerationError,
GenerationTask,
@@ -21,14 +21,14 @@ from codeverse.tracks.generation import (
safe_relpath,
write_files,
)
-from codeverse.tracks.planner import (
+from codeverse3d.tracks.planner import (
PlanningError,
build_system_prompt,
ensure_acceptance,
plan,
plan_example,
)
-from codeverse.tracks.repair import (
+from codeverse3d.tracks.repair import (
build_with_repair,
format_error_report,
relevant_cookbook_section,
@@ -145,7 +145,7 @@ def test_planner_validates_retries_and_writes(tmp_ws):
assert isinstance(p, StaticPlan) and p.object_name == "DiningChair" and tmp_ws.plan_path.is_file()
assert len(model.requests) == 2 and "failed validation" in model.requests[1].messages[-1].text
assert model.requests[0].response_schema is not None and "PascalCase" in model.requests[0].system
- from codeverse.tracks.planner import PLAN_MAX_WAIT_S, plan_wait_s
+ from codeverse3d.tracks.planner import PLAN_MAX_WAIT_S, plan_wait_s
assert all(PLAN_MAX_WAIT_S <= r.max_wait_s <= plan_wait_s(r.max_output_tokens) for r in model.requests)
# deterministic acceptance items from constraints were appended
@@ -160,7 +160,7 @@ def test_planner_validation_reasks_and_ceiling(tmp_ws):
model = FakeChatModel(lambda req: {"bad": 1})
with pytest.raises(PlanningError):
plan(make_spec(), "fake:planner", StaticPlan, tmp_ws, model=model)
- from codeverse.tracks.planner import MAX_VALIDATION_REASKS
+ from codeverse3d.tracks.planner import MAX_VALIDATION_REASKS
assert len(model.requests) == 1 + MAX_VALIDATION_REASKS == 3
@@ -176,7 +176,7 @@ def test_planner_scene_example_validates_and_prompts_render():
spec = make_spec(Track.SCENE, Language.SCENE_THREEJS)
s = build_system_prompt(spec, ScenePlan)
assert "zones" in s and "Y is UP" in s
- from codeverse.contracts.plan import ArticulatedPlan
+ from codeverse3d.contracts.plan import ArticulatedPlan
assert isinstance(ArticulatedPlan.model_validate(plan_example(Track.ARTICULATED_OBJECT)), ArticulatedPlan)
assert "pivot" in build_system_prompt(make_spec(Track.ARTICULATED_OBJECT, Language.URDF_BLENDER), ArticulatedPlan)
@@ -193,7 +193,7 @@ def test_ensure_acceptance_is_idempotent():
def test_scene_plan_items_are_advisory_and_only_the_spec_must_haves_gate():
- from codeverse.contracts.plan import AcceptanceItem
+ from codeverse3d.contracts.plan import AcceptanceItem
p = ScenePlan.model_validate(plan_example(Track.SCENE))
p.acceptance = [AcceptanceItem(id="a1", text="parapet is 1.05 m high", how="measure", priority="must"),
@@ -256,7 +256,7 @@ def test_build_with_repair_single_shot_sends_file_contents_and_stops_at_max(tmp_
def test_format_error_report_and_cookbook_section():
- from codeverse.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
+ from codeverse3d.contracts.artifacts import BuildResult, GateFinding, GateReport, Severity
b = BuildResult(ok=False, language="threejs", error_type="TypeError", error_message="Cannot read properties of null (reading 'fillStyle')",
error_file="src/parts/base.js", error_line=12, stderr_tail="\n".join(f"line{i}" for i in range(60)))
diff --git a/harness/tests/orchestrator_tracks/test_graphics_recipes.py b/harness/tests/orchestrator_tracks/test_graphics_recipes.py
index 89f65763..8309d976 100644
--- a/harness/tests/orchestrator_tracks/test_graphics_recipes.py
+++ b/harness/tests/orchestrator_tracks/test_graphics_recipes.py
@@ -8,10 +8,10 @@ from types import SimpleNamespace
import pytest
-from codeverse.config import Settings, seed_recipes_enabled
-from codeverse.contracts.common import HARNESS_OWNED_SRC, Language, Track
-from codeverse.contracts.plan import GraphicsPlan
-from codeverse.languages.glsl_shader import (
+from codeverse3d.config import Settings, seed_recipes_enabled
+from codeverse3d.contracts.common import HARNESS_OWNED_SRC, Language, Track
+from codeverse3d.contracts.plan import GraphicsPlan
+from codeverse3d.languages.glsl_shader import (
COMMON_GLSL,
GlslShaderRuntime,
compose,
@@ -21,11 +21,11 @@ from codeverse.languages.glsl_shader import (
parse_glsl_log,
write_skeleton,
)
-from codeverse.languages.glsl_shader import HEADER as WRAP_HEADER
-from codeverse.proc import EventLog
-from codeverse.prompts import load_text, render
-from codeverse.tracks import graphics as gr
-from codeverse.tracks.graphics import (
+from codeverse3d.languages.glsl_shader import HEADER as WRAP_HEADER
+from codeverse3d.proc import EventLog
+from codeverse3d.prompts import load_text, render
+from codeverse3d.tracks import graphics as gr
+from codeverse3d.tracks.graphics import (
HEADER,
NOT_SEEDED,
RECIPES_REL,
@@ -40,7 +40,7 @@ from codeverse.tracks.graphics import (
seed_recipes,
seeded_on_disk,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
AURORA = "Aurora borealis over a mountain ridge with a frozen lake, dense stars, green and violet curtains"
RAIN = "neon rain on glass"
@@ -85,7 +85,7 @@ def _seeded_events(ws: Workspace) -> list[dict]:
@pytest.fixture(autouse=True)
def _default_on(monkeypatch) -> None:
- monkeypatch.delenv("CV3D_SEED_RECIPES", raising=False)
+ monkeypatch.delenv("C3D_SEED_RECIPES", raising=False)
# ----------------------------------------------------------------------------- extraction
@@ -122,8 +122,8 @@ def test_chapter_selection_excludes_always_on_and_templates(tmp_path) -> None:
assert recipe_chapters(_ctx(ws, UNMATCHED)) == []
# a chapter arrives whole or not at all — the budget never cuts one in half
- from codeverse.prompts.sections import split_sections
- from codeverse.tracks.prompting import select_cookbook_chapters
+ from codeverse3d.prompts.sections import split_sections
+ from codeverse3d.tracks.prompting import select_cookbook_chapters
ctx = _ctx(ws, AURORA)
whole = {s.title: s.body.rstrip() for s in split_sections(ctx.cookbook_text)}
@@ -268,27 +268,27 @@ def test_resume_appends_only_new_names(tmp_path) -> None:
def test_gate_and_language(tmp_path, monkeypatch) -> None:
ws = _ws(tmp_path)
assert Settings().limits.seed_recipes is True and seed_recipes_enabled() is True
- monkeypatch.setenv("CV3D_SEED_RECIPES", "0")
+ monkeypatch.setenv("C3D_SEED_RECIPES", "0")
assert seed_recipes_enabled() is False
ctx = _ctx(ws)
assert seed_recipes(ctx) == [] and not _recipes(ws).exists() and "seeded_recipes" not in ctx.extra
assert (ws.src / "common.glsl").read_text() == COMMON_GLSL and not _seeded_events(ws)
- monkeypatch.setenv("CV3D_SEED_RECIPES", "garbage")
+ monkeypatch.setenv("C3D_SEED_RECIPES", "garbage")
assert seed_recipes_enabled() is False # a typo is a control run, not a crash
- monkeypatch.setenv("CV3D_SEED_RECIPES", "on")
+ monkeypatch.setenv("C3D_SEED_RECIPES", "on")
assert seed_recipes_enabled() is True
- monkeypatch.delenv("CV3D_SEED_RECIPES")
+ monkeypatch.delenv("C3D_SEED_RECIPES")
monkeypatch.setattr(gr, "seed_recipes_enabled", lambda: True)
assert seed_recipes(_ctx(ws, language=Language.OPENGL_PYTHON)) == [] # opengl_python: nothing seeded
assert not _recipes(ws).exists() and (ws.src / "common.glsl").read_text() == COMMON_GLSL
- monkeypatch.setenv("CV3D_SEED_RECIPES", "off")
+ monkeypatch.setenv("C3D_SEED_RECIPES", "off")
assert Settings().limits.seed_recipes is False # the flat alias reaches Settings too
# ----------------------------------------------------------------------------- compose / lint / prompt
def _gl_or_skip(tmp_path: Path, src: str, **kw):
pytest.importorskip("moderngl")
- from codeverse.spatial.gl_render import GlHost, GlHostError
+ from codeverse3d.spatial.gl_render import GlHost, GlHostError
try:
res = GlHost(timeout_s=120).render_fragment_shader(src, tmp_path / "out", **kw)
diff --git a/harness/tests/orchestrator_tracks/test_harness_failure_no_repair.py b/harness/tests/orchestrator_tracks/test_harness_failure_no_repair.py
index 4a7c4822..6d5fe144 100644
--- a/harness/tests/orchestrator_tracks/test_harness_failure_no_repair.py
+++ b/harness/tests/orchestrator_tracks/test_harness_failure_no_repair.py
@@ -17,9 +17,9 @@ from types import SimpleNamespace
import pytest
-from codeverse.contracts.artifacts import BuildResult, GateReport
-from codeverse.tracks import common as C
-from codeverse.tracks import repair as R
+from codeverse3d.contracts.artifacts import BuildResult, GateReport
+from codeverse3d.tracks import common as C
+from codeverse3d.tracks import repair as R
def _build(*, ok: bool, harness: bool = False, msg: str = "boom") -> BuildResult:
@@ -90,7 +90,7 @@ def test_a_real_build_failure_is_still_repaired(monkeypatch):
"""The control: an ordinary failure still reaches the agent, as it always did."""
seen: list[int] = []
- from codeverse.contracts.common import Usage
+ from codeverse3d.contracts.common import Usage
def fake_generate(ws, **kw):
seen.append(1)
@@ -116,7 +116,7 @@ def test_a_repair_session_that_died_in_the_storm_ends_the_loop(monkeypatch):
and the loop stops — the next attempt would spend its whole window at the same wall."""
seen: list[int] = []
- from codeverse.contracts.common import Usage
+ from codeverse3d.contracts.common import Usage
def fake_generate(ws, **kw):
seen.append(1)
diff --git a/harness/tests/orchestrator_tracks/test_integrations2.py b/harness/tests/orchestrator_tracks/test_integrations2.py
index 196acf51..e0536f2c 100644
--- a/harness/tests/orchestrator_tracks/test_integrations2.py
+++ b/harness/tests/orchestrator_tracks/test_integrations2.py
@@ -6,18 +6,18 @@ from __future__ import annotations
from types import SimpleNamespace
-from codeverse.contracts.common import Language, Track, Usage
-from codeverse.contracts.plan import ScenePlan
-from codeverse.contracts.run import RunStatus
-from codeverse.orchestrator import RunState
-from codeverse.proc import EventLog
-from codeverse.tracks import get_track
-from codeverse.tracks.graphics import GraphicsTrack
-from codeverse.tracks.planner import plan_example
-from codeverse.tracks.prompting import file_for_target_factory
-from codeverse.tracks.scene import SceneTrack
-from codeverse.tracks.static_object import StaticObjectTrack, expected_files
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.common import Language, Track, Usage
+from codeverse3d.contracts.plan import ScenePlan
+from codeverse3d.contracts.run import RunStatus
+from codeverse3d.orchestrator import RunState
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks import get_track
+from codeverse3d.tracks.graphics import GraphicsTrack
+from codeverse3d.tracks.planner import plan_example
+from codeverse3d.tracks.prompting import file_for_target_factory
+from codeverse3d.tracks.scene import SceneTrack
+from codeverse3d.tracks.static_object import StaticObjectTrack, expected_files
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import (
FakeAgent,
@@ -85,13 +85,13 @@ class BlenderishRuntime(FakeRuntime):
@staticmethod
def file_for_part(part_name: str) -> str:
- from codeverse.conventions import to_snake
+ from codeverse3d.conventions import to_snake
return f"src/parts/{to_snake(part_name)}.py"
@staticmethod
def file_for_target(target: str) -> list[str]:
- from codeverse.conventions import to_snake
+ from codeverse3d.conventions import to_snake
if target.strip().lower() in ("", "overall", "assembly", "object", "model"):
return ["src/model.py"]
@@ -124,7 +124,7 @@ def test_texture_tag_runs_texture_pass_and_records_summary(tmp_path, chair_plan,
return SimpleNamespace(usage=Usage(backend="fake", cost_usd=0.02),
summary=lambda: {"shipped": True, "n_textures": 3})
- import codeverse.texturing.run as trun
+ import codeverse3d.texturing.run as trun
monkeypatch.setattr(trun, "texture_pass", fake_texture_pass)
rec, ws, judge, services = _static_run(tmp_path, chair_plan, settings, tags=["texture"])
@@ -135,7 +135,7 @@ def test_texture_tag_runs_texture_pass_and_records_summary(tmp_path, chair_plan,
def test_texture_pass_failure_is_additive_not_fatal(tmp_path, chair_plan, settings, monkeypatch):
- import codeverse.texturing.run as trun
+ import codeverse3d.texturing.run as trun
def boom(*a, **kw):
raise RuntimeError("image model down")
@@ -149,7 +149,7 @@ def test_texture_pass_failure_is_additive_not_fatal(tmp_path, chair_plan, settin
def test_untagged_run_never_calls_texture_pass(tmp_path, chair_plan, settings, monkeypatch):
- import codeverse.texturing.run as trun
+ import codeverse3d.texturing.run as trun
def boom(*a, **kw):
raise AssertionError("texture_pass must not run without the tag")
@@ -172,7 +172,7 @@ def test_a_tool_textured_run_is_not_double_bought_and_still_records(tmp_path, ch
re-finalise re-bought the pack; and the mid-session ``record.json`` write the tool
used to make is now forbidden (control files have ONE owner during a session), so
finalise must collect the report into ``extra['texturing']`` itself."""
- import codeverse.texturing.run as trun
+ import codeverse3d.texturing.run as trun
calls = []
diff --git a/harness/tests/orchestrator_tracks/test_likeness_routing.py b/harness/tests/orchestrator_tracks/test_likeness_routing.py
index 36938ea0..3683570a 100644
--- a/harness/tests/orchestrator_tracks/test_likeness_routing.py
+++ b/harness/tests/orchestrator_tracks/test_likeness_routing.py
@@ -4,10 +4,10 @@ from __future__ import annotations
from types import SimpleNamespace
-from codeverse.contracts.common import Track
-from codeverse.contracts.spec import ReferenceImage
-from codeverse.tracks.lifecycle import BaseTrack
-from codeverse.tracks.prompting import reference_note
+from codeverse3d.contracts.common import Track
+from codeverse3d.contracts.spec import ReferenceImage
+from codeverse3d.tracks.lifecycle import BaseTrack
+from codeverse3d.tracks.prompting import reference_note
def _ctx(track: Track, refs: list[str], *, single_shot: bool = False) -> SimpleNamespace:
diff --git a/harness/tests/orchestrator_tracks/test_one_world_session.py b/harness/tests/orchestrator_tracks/test_one_world_session.py
index 84604730..30584684 100644
--- a/harness/tests/orchestrator_tracks/test_one_world_session.py
+++ b/harness/tests/orchestrator_tracks/test_one_world_session.py
@@ -7,13 +7,13 @@ written by separate sessions of at most two small zones, sat at 0.17 and 0.30-0.
"""
from __future__ import annotations
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import ScenePlan
-from codeverse.orchestrator import RunState
-from codeverse.proc import EventLog
-from codeverse.tracks.planner import plan_example
-from codeverse.tracks.scene import ZONE_TIMEOUT_S, SceneTrack, zone_file
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import ScenePlan
+from codeverse3d.orchestrator import RunState
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.planner import plan_example
+from codeverse3d.tracks.scene import ZONE_TIMEOUT_S, SceneTrack, zone_file
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import FakeRuntime, FakeServices
diff --git a/harness/tests/orchestrator_tracks/test_orchestrator.py b/harness/tests/orchestrator_tracks/test_orchestrator.py
index 91b10e60..60c2d3ea 100644
--- a/harness/tests/orchestrator_tracks/test_orchestrator.py
+++ b/harness/tests/orchestrator_tracks/test_orchestrator.py
@@ -7,7 +7,7 @@ import time
import pytest
from pydantic import BaseModel
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.artifacts import (
BuildResult,
GateFinding,
GateReport,
@@ -15,10 +15,10 @@ from codeverse.contracts.artifacts import (
Judgment,
Severity,
)
-from codeverse.contracts.common import Budget, Usage
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.contracts.run import RoundRecord
-from codeverse.orchestrator import (
+from codeverse3d.contracts.common import Budget, Usage
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.orchestrator import (
BestSelector,
BudgetExceeded,
BudgetGuard,
@@ -32,7 +32,7 @@ from codeverse.orchestrator import (
hash_inputs,
plan_parallel_groups,
)
-from codeverse.proc import EventLog, fan_out
+from codeverse3d.proc import EventLog, fan_out
def test_best_index_prefers_score_then_task_count_then_recency():
diff --git a/harness/tests/orchestrator_tracks/test_plan_features.py b/harness/tests/orchestrator_tracks/test_plan_features.py
index 3da5e671..02e5d590 100644
--- a/harness/tests/orchestrator_tracks/test_plan_features.py
+++ b/harness/tests/orchestrator_tracks/test_plan_features.py
@@ -8,7 +8,7 @@ from pathlib import Path
import pytest
-from codeverse.tracks import plan_features as F
+from codeverse3d.tracks import plan_features as F
# --------------------------------------------------------------------------- CQ-5
HARNESS = Path(__file__).resolve().parents[2]
@@ -18,11 +18,11 @@ HARNESS = Path(__file__).resolve().parents[2]
def _sources() -> tuple[tuple[str, str], ...]:
"""(relpath, text) for every harness source, read ONCE per session.
- Only ``codeverse`` counts: a switch is live when the HARNESS reads it. The evaluation
+ Only ``codeverse3d`` counts: a switch is live when the HARNESS reads it. The evaluation
scripts (``eval/bench``) set switches for an A/B; they are not what makes one live.
"""
out = []
- for p in (HARNESS / "codeverse").rglob("*.py"):
+ for p in (HARNESS / "codeverse3d").rglob("*.py"):
if p.name != "plan_features.py":
out.append((str(p.relative_to(HARNESS)), p.read_text(errors="replace")))
return tuple(out)
@@ -49,11 +49,11 @@ def test_every_dead_switch_is_really_dead(name: str):
def test_the_plan_features_switch_is_declared_dead():
"""It is: the six KNOWN_FEATURES are not implemented anywhere, so an arm that differs
- only by CV3D_PLAN_FEATURES is byte-identical to its control."""
+ only by C3D_PLAN_FEATURES is byte-identical to its control."""
assert F.PLAN_FEATURES_ENV in F.DEAD_SWITCHES
assert F.dead_env_keys({F.PLAN_FEATURES_ENV: "all"}) == [F.PLAN_FEATURES_ENV]
- assert F.dead_env_keys({"CV3D_PLAN_BRIEF": "off"}) == []
- assert F.dead_env_keys({F.PLAN_FEATURES_ENV: "all", "CV3D_PLAN_BRIEF": "off"}) == [F.PLAN_FEATURES_ENV]
+ assert F.dead_env_keys({"C3D_PLAN_BRIEF": "off"}) == []
+ assert F.dead_env_keys({F.PLAN_FEATURES_ENV: "all", "C3D_PLAN_BRIEF": "off"}) == [F.PLAN_FEATURES_ENV]
# --------------------------------------------------------------------- pin-plan safety
@@ -61,9 +61,9 @@ def test_a_generation_side_switch_may_share_one_plan():
"""`contacts` renders a table into the BUILDER's prompt from an unchanged plan, so
both arms can be seeded with the same plan.json and the paired delta stops carrying
the planner's spread — the dominant variance term (docs/EVAL.md §8.1)."""
- from codeverse.tracks.plan_features import pin_plan_blockers
+ from codeverse3d.tracks.plan_features import pin_plan_blockers
- assert pin_plan_blockers({"CV3D_PLAN_FEATURES": "contacts"}) == []
+ assert pin_plan_blockers({"C3D_PLAN_FEATURES": "contacts"}) == []
for name in sorted(F.GENERATION_SIDE_ENV):
assert pin_plan_blockers({name: "1"}) == [], name
assert pin_plan_blockers({}) == []
@@ -72,30 +72,30 @@ def test_a_generation_side_switch_may_share_one_plan():
def test_a_plan_side_switch_is_refused_by_name():
"""Pinning `fit` would hand both arms one plan and so silently delete the change
under test — the rig would then report "no effect" with confidence."""
- from codeverse.tracks.plan_features import pin_plan_blockers
+ from codeverse3d.tracks.plan_features import pin_plan_blockers
- assert pin_plan_blockers({"CV3D_PLAN_FEATURES": "fit"}) == [
- "CV3D_PLAN_FEATURES=fit changes the plan itself"]
+ assert pin_plan_blockers({"C3D_PLAN_FEATURES": "fit"}) == [
+ "C3D_PLAN_FEATURES=fit changes the plan itself"]
# one plan-side name in a list of otherwise-safe ones still blocks
- assert pin_plan_blockers({"CV3D_PLAN_FEATURES": "contacts,fit"}) == [
- "CV3D_PLAN_FEATURES=fit changes the plan itself"]
- assert len(pin_plan_blockers({"CV3D_PLAN_FEATURES": "all"})) == 5
+ assert pin_plan_blockers({"C3D_PLAN_FEATURES": "contacts,fit"}) == [
+ "C3D_PLAN_FEATURES=fit changes the plan itself"]
+ assert len(pin_plan_blockers({"C3D_PLAN_FEATURES": "all"})) == 5
def test_an_unclassified_switch_defaults_to_refusing():
"""Refusing to pin costs one noisy A/B; pinning wrongly costs a confident wrong
answer. So the default for anything unknown is: do not pin."""
- from codeverse.tracks.plan_features import pin_plan_blockers
+ from codeverse3d.tracks.plan_features import pin_plan_blockers
- assert pin_plan_blockers({"CV3D_MYSTERY_KNOB": "1"}) == [
- "CV3D_MYSTERY_KNOB is not known to act after planning"]
- assert pin_plan_blockers({"CV3D_PLAN_BRIEF": "off"}) == [
- "CV3D_PLAN_BRIEF is not known to act after planning"]
+ assert pin_plan_blockers({"C3D_MYSTERY_KNOB": "1"}) == [
+ "C3D_MYSTERY_KNOB is not known to act after planning"]
+ assert pin_plan_blockers({"C3D_PLAN_BRIEF": "off"}) == [
+ "C3D_PLAN_BRIEF is not known to act after planning"]
def test_every_known_feature_is_classified():
"""A new feature must be put on one side or the other in the same commit; otherwise
it silently inherits 'plan-side' and nobody notices the A/B got noisier."""
- from codeverse.tracks.plan_features import GENERATION_SIDE, KNOWN_FEATURES
+ from codeverse3d.tracks.plan_features import GENERATION_SIDE, KNOWN_FEATURES
assert set(KNOWN_FEATURES) > GENERATION_SIDE
diff --git a/harness/tests/orchestrator_tracks/test_planner_depth.py b/harness/tests/orchestrator_tracks/test_planner_depth.py
index 525afd65..17825e27 100644
--- a/harness/tests/orchestrator_tracks/test_planner_depth.py
+++ b/harness/tests/orchestrator_tracks/test_planner_depth.py
@@ -7,9 +7,9 @@ import json
import pytest
from pydantic import ValidationError
-from codeverse.contracts.chat import ImagePart
-from codeverse.contracts.common import Backends, Language, Track
-from codeverse.contracts.plan import (
+from codeverse3d.contracts.chat import ImagePart
+from codeverse3d.contracts.common import Backends, Language, Track
+from codeverse3d.contracts.plan import (
SUBPART_REL_SLACK,
BBox,
EngineeringBrief,
@@ -20,17 +20,17 @@ from codeverse.contracts.plan import (
SubAssembly,
SubPartPlan,
)
-from codeverse.contracts.spec import Constraints, ReferenceImage, Spec
-from codeverse.tracks import planner as B
-from codeverse.tracks import planner as BR
-from codeverse.tracks.planner import (
+from codeverse3d.contracts.spec import Constraints, ReferenceImage, Spec
+from codeverse3d.tracks import planner as B
+from codeverse3d.tracks import planner as BR
+from codeverse3d.tracks.planner import (
MAX_QUALITY_REASKS,
build_system_prompt,
build_user_prompt,
plan_example,
plan_with_usage,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
from .fakes import FakeChatModel
@@ -122,7 +122,7 @@ def test_plan_budget_contracts():
def test_the_scene_track_gets_no_part_budget():
- from codeverse.contracts.plan import ScenePlan
+ from codeverse3d.contracts.plan import ScenePlan
spec = _spec(must=10, track=Track.SCENE, language=Language.SCENE_THREEJS)
assert "PLAN BUDGET" not in build_user_prompt(spec)
@@ -278,7 +278,7 @@ def test_brief_switch_and_track_scope(monkeypatch):
def test_the_plan_keeps_subparts_typed_and_does_not_duplicate_them_into_the_description():
"""Depth is rendered from the typed fields by ``tracks/prompting.py``; enrichment must
not copy it into ``description`` as well or the generation prompt prints it twice."""
- from codeverse.tracks.prompting import part_details
+ from codeverse3d.tracks.prompting import part_details
part = _part("GrindHead", desc="cast iron housing", children=[
SubPartPlan(name="Burr", description="conical burr, 24 flutes", bbox=_bbox(ex=0.4, ey=0.4, ez=0.4),
@@ -305,8 +305,8 @@ def test_enrichment_adds_signature_features_as_SHOULD_items_only():
def test_graphics_pass_elements_are_folded_into_the_one_markdown_row_that_renders_them():
"""``graphics_steps.passes_table`` prints only ``description`` — and it is a markdown
table row, so the fold must be single-line and idempotent."""
- from codeverse.contracts.plan import PassPlan
- from codeverse.tracks.graphics import passes_table
+ from codeverse3d.contracts.plan import PassPlan
+ from codeverse3d.tracks.graphics import passes_table
plan = GraphicsPlan(title="T", summary="s", style="st", passes=[PassPlan(
name="Gears", kind="fullscreen", description="meshing gear train",
@@ -323,7 +323,7 @@ def test_graphics_pass_elements_are_folded_into_the_one_markdown_row_that_render
# ----------------------------------------------------------------------------- output room
def test_plan_output_room_grows_with_the_plan_and_is_capped():
- from codeverse.tracks.planner import PLAN_TOKENS_MAX, plan_tokens
+ from codeverse3d.tracks.planner import PLAN_TOKENS_MAX, plan_tokens
small, big = B.plan_budget(_spec(must=0)), B.plan_budget(_spec(must=20))
assert 24000 < plan_tokens(small, 24000) < plan_tokens(big, 24000) <= PLAN_TOKENS_MAX
@@ -332,7 +332,7 @@ def test_plan_output_room_grows_with_the_plan_and_is_capped():
def test_truncated_plans_keep_growing_output_room(tmp_path, monkeypatch):
monkeypatch.setenv(BR.BRIEF_ENV, "off")
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
good = json.loads(_plan([_part(f"P{i}", desc=_detailed(i), material=f"m{i}") for i in range(9)]).model_dump_json())
@@ -357,7 +357,7 @@ def test_truncated_plans_keep_growing_output_room(tmp_path, monkeypatch):
def test_a_model_error_that_is_not_truncation_still_propagates(tmp_path, monkeypatch):
monkeypatch.setenv(BR.BRIEF_ENV, "off")
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
ws = Workspace(tmp_path / "run")
ws.create()
@@ -408,7 +408,7 @@ def test_a_good_plan_costs_exactly_one_call(tmp_path, monkeypatch):
def test_brief_and_plan_are_one_model_and_the_events_say_so(tmp_path, monkeypatch):
monkeypatch.setenv(BR.BRIEF_ENV, "on")
- monkeypatch.setenv("CV3D_CACHE_DIR", str(tmp_path / "cache"))
+ monkeypatch.setenv("C3D_CACHE_DIR", str(tmp_path / "cache"))
ws = Workspace(tmp_path / "run")
ws.create()
good = json.loads(_plan([_part(f"P{i}", desc=_detailed(i), material=f"m{i}") for i in range(10)]).model_dump_json())
@@ -438,7 +438,7 @@ def test_brief_and_plan_are_one_model_and_the_events_say_so(tmp_path, monkeypatc
def test_a_model_name_leak_is_rejected_not_modelled():
- from codeverse.contracts.plan import JointPlan, PartPlan, SubPartPlan
+ from codeverse3d.contracts.plan import JointPlan, PartPlan, SubPartPlan
for bad in ("Gemini25FlashThinking", "GPT4Placeholder", "placeholder_arm"):
with pytest.raises(ValidationError, match="leaked from"):
diff --git a/harness/tests/orchestrator_tracks/test_planner_reask.py b/harness/tests/orchestrator_tracks/test_planner_reask.py
index 09114702..7385c60e 100644
--- a/harness/tests/orchestrator_tracks/test_planner_reask.py
+++ b/harness/tests/orchestrator_tracks/test_planner_reask.py
@@ -5,9 +5,9 @@ from __future__ import annotations
import copy
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import ArticulatedPlan
-from codeverse.tracks.planner import plan, plan_example
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import ArticulatedPlan
+from codeverse3d.tracks.planner import plan, plan_example
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import FakeChatModel, FakeRuntime
@@ -21,7 +21,7 @@ def _spec():
def test_every_moving_joint_gets_an_articulation_acceptance_item(tmp_ws):
- from codeverse.tracks.planner import articulation_acceptance
+ from codeverse3d.tracks.planner import articulation_acceptance
good = _good()
good["acceptance"] = [a for a in good["acceptance"] if a.get("how") != "articulation"]
diff --git a/harness/tests/orchestrator_tracks/test_planner_restart.py b/harness/tests/orchestrator_tracks/test_planner_restart.py
index c6215d1c..eef8c61a 100644
--- a/harness/tests/orchestrator_tracks/test_planner_restart.py
+++ b/harness/tests/orchestrator_tracks/test_planner_restart.py
@@ -11,10 +11,10 @@ import json
import pytest
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import ArticulatedPlan
-from codeverse.proc import EventLog
-from codeverse.tracks.planner import (
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import ArticulatedPlan
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.planner import (
MAX_PLAN_RESTARTS,
PLAN_RESTART_ENV,
PlanningError,
@@ -126,7 +126,7 @@ def test_a_rejected_plan_is_written_where_a_dead_run_can_be_read(tmp_ws):
"""A run that dies at the plan stage used to leave nothing but the pydantic message,
which truncates the offending value — so "what did the model actually write?", the
question every plan-stage failure class starts from, had no answer at all."""
- from codeverse.tracks.planner import INVALID_PLAN_DIR
+ from codeverse3d.tracks.planner import INVALID_PLAN_DIR
model = FakeChatModel(lambda req: _degenerate())
with pytest.raises(PlanningError):
diff --git a/harness/tests/orchestrator_tracks/test_planner_truncation_reask.py b/harness/tests/orchestrator_tracks/test_planner_truncation_reask.py
index f8bbe3e1..e757813c 100644
--- a/harness/tests/orchestrator_tracks/test_planner_truncation_reask.py
+++ b/harness/tests/orchestrator_tracks/test_planner_truncation_reask.py
@@ -2,10 +2,10 @@
from __future__ import annotations
-from codeverse.contracts.common import Language
-from codeverse.contracts.plan import StaticPlan
-from codeverse.proc import EventLog
-from codeverse.tracks.planner import TRUNCATION_NOTE, plan
+from codeverse3d.contracts.common import Language
+from codeverse3d.contracts.plan import StaticPlan
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.planner import TRUNCATION_NOTE, plan
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import FakeChatModel, FakeRuntime
from tests.orchestrator_tracks.test_generation_planner_repair import _valid_plan_dict
diff --git a/harness/tests/orchestrator_tracks/test_prompts_assets.py b/harness/tests/orchestrator_tracks/test_prompts_assets.py
index 62d13b12..7f8df13c 100644
--- a/harness/tests/orchestrator_tracks/test_prompts_assets.py
+++ b/harness/tests/orchestrator_tracks/test_prompts_assets.py
@@ -7,16 +7,16 @@ from types import SimpleNamespace
import pytest
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import ArticulatedPlan, ScenePlan
-from codeverse.orchestrator import BudgetGuard, RoundPolicy, RunState
-from codeverse.proc import EventLog
-from codeverse.prompts import PROMPTS_DIR, render
-from codeverse.tracks.common import RunContext
-from codeverse.tracks.generation import SINGLE_SHOT_FORMAT
-from codeverse.tracks.planner import plan_example
-from codeverse.tracks.prompting import base_prompt_context, judged_sheet
-from codeverse.tracks.scene_assets import asset_api_summary, asset_plan, run_asset_stage
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import ArticulatedPlan, ScenePlan
+from codeverse3d.orchestrator import BudgetGuard, RoundPolicy, RunState
+from codeverse3d.proc import EventLog
+from codeverse3d.prompts import PROMPTS_DIR, render
+from codeverse3d.tracks.common import RunContext
+from codeverse3d.tracks.generation import SINGLE_SHOT_FORMAT
+from codeverse3d.tracks.planner import plan_example
+from codeverse3d.tracks.prompting import base_prompt_context, judged_sheet
+from codeverse3d.tracks.scene_assets import asset_api_summary, asset_plan, run_asset_stage
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import FakeAgent, FakeJudge, FakeRuntime, FakeServices
@@ -114,7 +114,7 @@ def test_scene_templates_render_and_asset_stage_with_blender(tmp_ws, settings):
sub = asset_plan(plan.assets[2])
assert sub.parts[0].name == "Crate" and sub.overall_bbox.extents == (0.6, 0.4, 0.3) # Y-up w×h×d → Z-up (w, d, h)
ctx.extra["asset_api"] = api
- from codeverse.tracks.scene import SceneTrack
+ from codeverse3d.tracks.scene import SceneTrack
st = SceneTrack(services=services)
for tpl, extra in (("scene_env", {}), ("scene_compose", {}),
@@ -180,8 +180,8 @@ def test_a_replanned_asset_with_the_same_name_is_not_reused(tmp_ws, settings):
def test_a_model_outage_is_not_an_escalation_signal() -> None:
"""A 503 reaches the asset stage only after models.retry spent its whole storm budget
waiting; escalating to a full agent session then costs 10× and hits the same wall."""
- from codeverse.models.base import ModelError
- from codeverse.tracks.scene_assets import is_model_outage
+ from codeverse3d.models.base import ModelError
+ from codeverse3d.tracks.scene_assets import is_model_outage
assert is_model_outage(ModelError("high demand", retryable=True, status=503))
assert is_model_outage(ModelError("overloaded", status=529))
diff --git a/harness/tests/orchestrator_tracks/test_refactor_batch2.py b/harness/tests/orchestrator_tracks/test_refactor_batch2.py
index eb34d98b..c7dc7fb4 100644
--- a/harness/tests/orchestrator_tracks/test_refactor_batch2.py
+++ b/harness/tests/orchestrator_tracks/test_refactor_batch2.py
@@ -2,17 +2,17 @@
from __future__ import annotations
-from codeverse.contracts.artifacts import BuildResult, RenderSet, RenderView
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import ScenePlan
-from codeverse.contracts.run import RunStatus
-from codeverse.contracts.spec import RunOptions
-from codeverse.orchestrator import RefineTask, RunState, plan_refine_groups
-from codeverse.proc import EventLog
-from codeverse.tracks.planner import plan_example
-from codeverse.tracks.scene import ScenePipeline
-from codeverse.tracks.static_object import StaticObjectTrack
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import BuildResult, RenderSet, RenderView
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import ScenePlan
+from codeverse3d.contracts.run import RunStatus
+from codeverse3d.contracts.spec import RunOptions
+from codeverse3d.orchestrator import RefineTask, RunState, plan_refine_groups
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.planner import plan_example
+from codeverse3d.tracks.scene import ScenePipeline
+from codeverse3d.tracks.static_object import StaticObjectTrack
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import (
FakeAgent,
@@ -66,8 +66,8 @@ def test_candidate_width_precedence(tmp_path, settings):
def test_injected_policy_keeps_the_track_detail_round(tmp_path, settings):
"""economy/quality inject RoundPolicy(judge_samples=n) and used to lose the static
track's detail round (a policy object stood in for 'detail_rounds was chosen')."""
- from codeverse.orchestrator import RoundPolicy
- from codeverse.tracks.lifecycle import DEFAULT_DETAIL_ROUNDS
+ from codeverse3d.orchestrator import RoundPolicy
+ from codeverse3d.tracks.lifecycle import DEFAULT_DETAIL_ROUNDS
ws = Workspace(tmp_path / "eco").create()
track = StaticObjectTrack(services=FakeServices(), settings=settings, runtime=FakeRuntime(Language.THREEJS),
@@ -86,12 +86,12 @@ def test_options_texture_triggers_texture_pass(tmp_path, chair_plan, settings, m
def fake_texture_pass(ws, spec, plan, **kw):
from types import SimpleNamespace
- from codeverse.contracts.common import Usage
+ from codeverse3d.contracts.common import Usage
calls["ws"] = str(ws.root)
return SimpleNamespace(usage=Usage(backend="fake", cost_usd=0.01), summary=lambda: {"shipped": True})
- import codeverse.texturing.run as trun
+ import codeverse3d.texturing.run as trun
monkeypatch.setattr(trun, "texture_pass", fake_texture_pass)
spec = make_spec(max_rounds=0, options=RunOptions(texture=True))
@@ -114,7 +114,7 @@ def _rs(flags: list[bool | None]) -> RenderSet:
def test_judge_view_flags_and_path_reconstruction(tmp_path):
from types import SimpleNamespace
- from codeverse.judges.base import judged_subset, resolve_paths
+ from codeverse3d.judges.base import judged_subset, resolve_paths
pipe = ScenePipeline()
ctx = SimpleNamespace(services=FakeServices())
@@ -148,12 +148,12 @@ def test_judge_context_needs_no_run_context(tmp_path):
def test_graphics_planner_hooks_charge_budget_on_planning_error(tmp_ws):
import pytest
- from codeverse.contracts.plan import GraphicsPlan
- from codeverse.contracts.spec import Budget
- from codeverse.orchestrator import BudgetGuard
- from codeverse.tracks.graphics import GraphicsTrack
- from codeverse.tracks.planner import PlanningError
- from codeverse.tracks.planner import plan as run_planner
+ from codeverse3d.contracts.plan import GraphicsPlan
+ from codeverse3d.contracts.spec import Budget
+ from codeverse3d.orchestrator import BudgetGuard
+ from codeverse3d.tracks.graphics import GraphicsTrack
+ from codeverse3d.tracks.planner import PlanningError
+ from codeverse3d.tracks.planner import plan as run_planner
spec = make_spec(Track.GRAPHICS, Language.GLSL_SHADER)
budget = BudgetGuard(Budget(max_minutes=10))
diff --git a/harness/tests/orchestrator_tracks/test_resume_reconcile.py b/harness/tests/orchestrator_tracks/test_resume_reconcile.py
index 8a1b2a89..79e1df98 100644
--- a/harness/tests/orchestrator_tracks/test_resume_reconcile.py
+++ b/harness/tests/orchestrator_tracks/test_resume_reconcile.py
@@ -13,12 +13,12 @@ from types import SimpleNamespace
import pytest
-from codeverse.contracts.common import Language
-from codeverse.orchestrator import RoundPolicy, RunState
-from codeverse.proc import EventLog
-from codeverse.tracks.lifecycle import SpecChanged
-from codeverse.tracks.static_object import StaticObjectTrack
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.common import Language
+from codeverse3d.orchestrator import RoundPolicy, RunState
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.lifecycle import SpecChanged
+from codeverse3d.tracks.static_object import StaticObjectTrack
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import (
FakeAgent,
@@ -160,10 +160,10 @@ def test_a_stored_pairwise_rejection_is_final(chair_plan):
``choose_best_round`` and the resume ``replay_best_round`` re-ranked the WHOLE
journal on score alone and crowned the rejected r1. The verdict is final: live
and replay agree, whether the later round is worse or failed to score at all."""
- from codeverse.contracts.artifacts import BuildResult, Judgment
- from codeverse.contracts.run import PairwiseNote, RoundRecord
- from codeverse.orchestrator import BestSelector
- from codeverse.tracks.candidates import choose_best_round, replay_best_round
+ from codeverse3d.contracts.artifacts import BuildResult, Judgment
+ from codeverse3d.contracts.run import PairwiseNote, RoundRecord
+ from codeverse3d.orchestrator import BestSelector
+ from codeverse3d.tracks.candidates import choose_best_round, replay_best_round
def rec(i, score, pairwise=None):
j = None if score is None else Judgment(rubric="r", scores={}, overall=score, passed=False)
@@ -291,10 +291,10 @@ def test_resume_charges_for_spend_the_snapshot_missed(tmp_path, chair_plan, sett
"""The ledger is appended per CALL, the snapshot saved at boundaries: a crash between
a round's spend and its save handed the resumed run that money back — silently
under-counting is how a resumed run walks past its ceiling."""
- from codeverse.cost.ledger import open_run_ledger
- from codeverse.cost.types import CallCost
- from codeverse.orchestrator import BudgetGuard, BudgetSnapshot
- from codeverse.tracks.lifecycle import _reconcile_billed_from_ledger
+ from codeverse3d.cost.ledger import open_run_ledger
+ from codeverse3d.cost.types import CallCost
+ from codeverse3d.orchestrator import BudgetGuard, BudgetSnapshot
+ from codeverse3d.tracks.lifecycle import _reconcile_billed_from_ledger
ws = Workspace(tmp_path / "runs" / "r")
ws.create()
@@ -315,10 +315,10 @@ def test_resume_reconcile_keeps_subscription_spend_notional(tmp_path, settings):
"""A codex/claude/agy ledger row is priced at list rates but bills $0 (bills_usd):
resuming a subscription-backend run offline must not flip billed from $0 to the
notional sum — reconcile shares the exact predicate the live spend path uses."""
- from codeverse.cost.ledger import open_run_ledger
- from codeverse.cost.types import CallCost
- from codeverse.orchestrator import BudgetGuard
- from codeverse.tracks.lifecycle import _reconcile_billed_from_ledger
+ from codeverse3d.cost.ledger import open_run_ledger
+ from codeverse3d.cost.types import CallCost
+ from codeverse3d.orchestrator import BudgetGuard
+ from codeverse3d.tracks.lifecycle import _reconcile_billed_from_ledger
ws = Workspace(tmp_path / "runs" / "sub")
ws.create()
diff --git a/harness/tests/orchestrator_tracks/test_round_economics.py b/harness/tests/orchestrator_tracks/test_round_economics.py
index 29eefe0e..d0c8e258 100644
--- a/harness/tests/orchestrator_tracks/test_round_economics.py
+++ b/harness/tests/orchestrator_tracks/test_round_economics.py
@@ -6,11 +6,11 @@ import json
import pytest
-from codeverse.contracts.agent import AgentJob, AgentResult
-from codeverse.contracts.artifacts import BuildResult, GateFinding, GateReport, Judgment, Severity
-from codeverse.contracts.common import Language, Usage
-from codeverse.contracts.run import RoundRecord, RunStatus
-from codeverse.orchestrator import (
+from codeverse3d.contracts.agent import AgentJob, AgentResult
+from codeverse3d.contracts.artifacts import BuildResult, GateFinding, GateReport, Judgment, Severity
+from codeverse3d.contracts.common import Language, Usage
+from codeverse3d.contracts.run import RoundRecord, RunStatus
+from codeverse3d.orchestrator import (
DEFAULT_JUDGE_SIGMA,
REWRITE_KIND,
RoundPolicy,
@@ -19,17 +19,17 @@ from codeverse.orchestrator import (
judge_sigma,
last_gain,
)
-from codeverse.proc import EventLog
-from codeverse.tracks.generation import (
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.generation import (
DEFAULT_AGENT_MAX_TURNS,
GenerationTask,
agent_max_turns,
run_agent_task,
turn_capped,
)
-from codeverse.tracks.lifecycle import BaseTrack
-from codeverse.tracks.static_object import StaticObjectTrack
-from codeverse.workspace import Workspace
+from codeverse3d.tracks.lifecycle import BaseTrack
+from codeverse3d.tracks.static_object import StaticObjectTrack
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import fake_clock, make_spec
from tests.orchestrator_tracks.fakes import (
FakeAgent,
@@ -48,7 +48,7 @@ def _round(i: int, score: float | None, kind: str = "refine") -> RoundRecord:
# ----------------------------------------------------------------------------- judge noise table
def test_judge_sigma_comes_from_the_one_measured_table():
- from codeverse.cost.routing import JUDGE_NOISE
+ from codeverse3d.cost.routing import JUDGE_NOISE
assert judge_sigma("gemini:gemini-3.1-pro-preview") == pytest.approx(JUDGE_NOISE["gemini-3.1-pro-preview"][0])
assert judge_sigma("gemini:gemini-3.7-flash") == pytest.approx(0.083)
@@ -81,7 +81,7 @@ def test_a_regression_buys_a_change_of_shape_then_stops():
def test_a_sub_noise_dip_never_burns_the_strategy_switch():
- from codeverse.orchestrator import meaningful_regression
+ from codeverse3d.orchestrator import meaningful_regression
sp = StopPolicy(RoundPolicy(max_rounds=4, target=0.9, judge_model="gemini:gemini-3.1-pro-preview",
marginal_from_round=99))
@@ -180,7 +180,7 @@ class _TurnAgent:
def test_agent_sessions_are_uncapped_by_default(tmp_ws, monkeypatch):
- monkeypatch.delenv("CV3D_AGENT_MAX_TURNS", raising=False)
+ monkeypatch.delenv("C3D_AGENT_MAX_TURNS", raising=False)
assert DEFAULT_AGENT_MAX_TURNS == 0 and RoundPolicy().agent_max_turns == 0
agent = _TurnAgent(writes_on=1)
task = GenerationTask(label="baseline", prompt="p", round=0, kind="baseline")
@@ -192,16 +192,16 @@ def test_agent_sessions_are_uncapped_by_default(tmp_ws, monkeypatch):
assert agent.jobs[-1].max_turns == 12
run_agent_task(tmp_ws, agent=agent, task=task.model_copy(update={"max_turns": 7}), max_turns=12)
assert agent.jobs[-1].max_turns == 7 # the task wins over the policy
- monkeypatch.setenv("CV3D_AGENT_MAX_TURNS", "9")
+ monkeypatch.setenv("C3D_AGENT_MAX_TURNS", "9")
assert agent_max_turns() == 9
run_agent_task(tmp_ws, agent=agent, task=task)
assert agent.jobs[-1].max_turns == 9
- monkeypatch.setenv("CV3D_AGENT_MAX_TURNS", "nonsense")
+ monkeypatch.setenv("C3D_AGENT_MAX_TURNS", "nonsense")
assert agent_max_turns() == DEFAULT_AGENT_MAX_TURNS == 0
def test_the_policy_cap_is_plumbed_through_the_round(tmp_path, spec, settings):
- from codeverse.tracks.steps import run_generation_tasks
+ from codeverse3d.tracks.steps import run_generation_tasks
agent = _TurnAgent(writes_on=1)
ctx = _ctx(tmp_path, spec, settings, policy=RoundPolicy(agent_max_turns=15), agent=agent)
@@ -252,14 +252,14 @@ def _result_of(agent, i):
def _guard():
- from codeverse.contracts.common import Budget
- from codeverse.orchestrator import BudgetGuard
+ from codeverse3d.contracts.common import Budget
+ from codeverse3d.orchestrator import BudgetGuard
return BudgetGuard(Budget(max_minutes=100))
def test_task_stage_names_the_cost_bucket_a_task_spends_in():
- from codeverse.tracks.generation import task_stage
+ from codeverse3d.tracks.generation import task_stage
def t(kind: str, label: str = "x") -> str:
return task_stage(GenerationTask(label=label, prompt="p", kind=kind))
@@ -277,7 +277,7 @@ def test_task_stage_names_the_cost_bucket_a_task_spends_in():
# ----------------------------------------------------------------------------- judge skipping
def _renders():
- from codeverse.contracts.artifacts import RenderSet, RenderView
+ from codeverse3d.contracts.artifacts import RenderSet, RenderView
return RenderSet(views=[RenderView(name="front", path="x.png")], renderer="fake")
@@ -288,7 +288,7 @@ def _gates(errors: int = 0):
def test_skip_judge_reasons_are_only_states_where_the_verdict_is_never_bought(tmp_path, spec, settings):
- from codeverse.tracks.steps import skip_judge_reason
+ from codeverse3d.tracks.steps import skip_judge_reason
ctx = _ctx(tmp_path, spec, settings)
# gate errors are no reason: the gates say what is broken, the verdict says whether
@@ -306,7 +306,7 @@ def test_skip_judge_reasons_are_only_states_where_the_verdict_is_never_bought(tm
def test_a_round_that_changed_no_file_never_reaches_the_judge_question(tmp_path, spec, settings):
- from codeverse.tracks.steps import RoundFailed, run_generation_tasks
+ from codeverse3d.tracks.steps import RoundFailed, run_generation_tasks
class _Idle:
kind, model = "fake", "m"
@@ -320,7 +320,7 @@ def test_a_round_that_changed_no_file_never_reaches_the_judge_question(tmp_path,
def test_a_round_with_gate_errors_whose_verdict_was_lost_is_rejudged(tmp_path, spec, settings):
- from codeverse.tracks.steps import rejudge_round
+ from codeverse3d.tracks.steps import rejudge_round
ctx = _ctx(tmp_path, spec, settings, name="rebuy")
rec = RoundRecord(index=1, kind="refine", build=BuildResult(ok=True, language="l"),
@@ -329,7 +329,7 @@ def test_a_round_with_gate_errors_whose_verdict_was_lost_is_rejudged(tmp_path, s
def test_a_round_that_broke_the_gates_does_not_displace_a_clean_one():
- from codeverse.orchestrator import BestSelector
+ from codeverse3d.orchestrator import BestSelector
def r(i, *, build_ok=True, errors=0):
return RoundRecord(index=i, kind="refine", build=BuildResult(ok=build_ok, language="l"),
@@ -357,9 +357,9 @@ def _pipeline():
def _ctx(tmp_path, spec, settings, *, policy: RoundPolicy | None = None, agent=None, name: str = "skip"):
- from codeverse.contracts.common import Budget
- from codeverse.orchestrator import BudgetGuard, RunState
- from codeverse.tracks.common import RunContext
+ from codeverse3d.contracts.common import Budget
+ from codeverse3d.orchestrator import BudgetGuard, RunState
+ from codeverse3d.tracks.common import RunContext
ws = Workspace(tmp_path / "runs" / name)
ws.create()
@@ -404,7 +404,7 @@ def test_the_loop_switches_shape_after_a_regression_and_emits_cost_rounds(tmp_pa
# outside the CLI; the ONE writer is the metered agent/model, so the injected fakes
# (a bare FakeAgent, a FakeJudge with no chat model) leave it empty — see
# test_cost_accounting for the rows a metered session writes
- from codeverse.cost.ledger import load_ledger
+ from codeverse3d.cost.ledger import load_ledger
assert (ws.root / "cost_ledger.jsonl").is_symlink() # -> telemetry/cost.jsonl, created on first row
assert load_ledger(ws.root) == []
@@ -459,7 +459,7 @@ def test_a_round_that_raises_still_reports_what_it_burned(tmp_path, chair_plan,
def test_fan_out_workers_inherit_the_callers_context():
import contextvars
- from codeverse.proc import fan_out
+ from codeverse3d.proc import fan_out
var: contextvars.ContextVar[str] = contextvars.ContextVar("attr", default="process-default")
var.set("run-42")
@@ -470,8 +470,8 @@ def test_fan_out_workers_inherit_the_callers_context():
def test_a_run_past_its_hard_ceiling_cannot_start_another_session(tmp_ws):
- from codeverse.contracts.spec import Budget
- from codeverse.orchestrator import BudgetExceeded, BudgetGuard
+ from codeverse3d.contracts.spec import Budget
+ from codeverse3d.orchestrator import BudgetExceeded, BudgetGuard
g = BudgetGuard(Budget(max_minutes=30.0, max_rounds=4))
g.start_time -= 36 * 60 # ceiling long crossed, nothing billed along the way
@@ -490,7 +490,7 @@ def test_a_refine_after_a_regression_restores_the_best_round_and_plans_from_its_
and the tasks come from its verdict; a same-shape refine keeps building on the last round."""
from types import SimpleNamespace
- from codeverse.workspace import Workspace
+ from codeverse3d.workspace import Workspace
ws = Workspace(tmp_path / "run").create()
(ws.src / "scene.js").write_text("// r0: the good one\n")
diff --git a/harness/tests/orchestrator_tracks/test_scene_asset_checker_race.py b/harness/tests/orchestrator_tracks/test_scene_asset_checker_race.py
index 95394684..29f324f4 100644
--- a/harness/tests/orchestrator_tracks/test_scene_asset_checker_race.py
+++ b/harness/tests/orchestrator_tracks/test_scene_asset_checker_race.py
@@ -15,7 +15,7 @@ from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
from types import SimpleNamespace
-from codeverse.tracks.scene_assets import _CHECK_JS, _checker_path
+from codeverse3d.tracks.scene_assets import _CHECK_JS, _checker_path
def _ctx(cache: Path) -> SimpleNamespace:
diff --git a/harness/tests/orchestrator_tracks/test_scene_hero_ladder.py b/harness/tests/orchestrator_tracks/test_scene_hero_ladder.py
index c6676d42..798abaf6 100644
--- a/harness/tests/orchestrator_tracks/test_scene_hero_ladder.py
+++ b/harness/tests/orchestrator_tracks/test_scene_hero_ladder.py
@@ -12,11 +12,11 @@ from pathlib import Path
import pytest
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import ScenePlan
-from codeverse.contracts.spec import Constraints
-from codeverse.tracks import scene_assets as SA
-from codeverse.tracks.planner import plan_example
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import ScenePlan
+from codeverse3d.contracts.spec import Constraints
+from codeverse3d.tracks import scene_assets as SA
+from codeverse3d.tracks.planner import plan_example
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import (
FAIL_MARK,
@@ -96,7 +96,7 @@ def test_hero_prompt_carries_the_scene_and_blenders_own_tools(tmp_ws, settings):
def _crate_plan(asset):
"""A two-part plan the fake runtime builds at the crate's size (one box per part)."""
- from codeverse.contracts.plan import BBox, PartPlan, StaticPlan
+ from codeverse3d.contracts.plan import BBox, PartPlan, StaticPlan
w, h, d = asset.approx_size_m
return StaticPlan(object_name=asset.name, summary=asset.description, overall_bbox=BBox(center=(0, h / 2, 0), extents=(w, h, d)),
@@ -158,8 +158,8 @@ class _StormAgent(FakeAgent):
answer (D68: 26 of the evening's 40 timed-out sessions)."""
def run(self, job):
- from codeverse.contracts.agent import AgentResult
- from codeverse.workspace import Workspace
+ from codeverse3d.contracts.agent import AgentResult
+ from codeverse3d.workspace import Workspace
self.jobs.append(job)
ws = Workspace(job.workspace)
diff --git a/harness/tests/orchestrator_tracks/test_static_judge_context.py b/harness/tests/orchestrator_tracks/test_static_judge_context.py
index e916fe7b..6884286b 100644
--- a/harness/tests/orchestrator_tracks/test_static_judge_context.py
+++ b/harness/tests/orchestrator_tracks/test_static_judge_context.py
@@ -4,10 +4,10 @@ GLB's part names, so the gate's contact ledger can list each planned join as con
from __future__ import annotations
-from codeverse.contracts.artifacts import Measurement, PartMeasure
-from codeverse.contracts.plan import BBox, PartPlan, StaticPlan
-from codeverse.spatial.contract import planned_joins
-from codeverse.tracks.static_object import ObjectPipeline
+from codeverse3d.contracts.artifacts import Measurement, PartMeasure
+from codeverse3d.contracts.plan import BBox, PartPlan, StaticPlan
+from codeverse3d.spatial.contract import planned_joins
+from codeverse3d.tracks.static_object import ObjectPipeline
from tests.orchestrator_tracks.test_integrations2 import _static_run
@@ -59,7 +59,7 @@ def test_planned_joins_drop_what_the_mesh_does_not_have():
def test_judge_context_stays_empty_because_the_block_lives_in_gates_section(tmp_path, chair_plan):
"""The block is rendered from the stored GateReport, so ``3dcode judge <slug>`` on a recorded
round gets it too; a judge_context copy would be a second source of the same facts."""
- from codeverse.contracts.artifacts import BuildResult
- from codeverse.workspace import Workspace
+ from codeverse3d.contracts.artifacts import BuildResult
+ from codeverse3d.workspace import Workspace
assert ObjectPipeline().judge_context(Workspace(tmp_path / "w"), chair_plan, 0, BuildResult(ok=True, language="threejs"), []) == ""
diff --git a/harness/tests/orchestrator_tracks/test_tracks.py b/harness/tests/orchestrator_tracks/test_tracks.py
index b2776335..9cfb3a93 100644
--- a/harness/tests/orchestrator_tracks/test_tracks.py
+++ b/harness/tests/orchestrator_tracks/test_tracks.py
@@ -6,17 +6,17 @@ import json
import pytest
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import ArticulatedPlan, ScenePlan
-from codeverse.contracts.run import RunRecord, RunStatus
-from codeverse.orchestrator import RoundPolicy, RunState
-from codeverse.proc import EventLog
-from codeverse.tracks import get_track
-from codeverse.tracks.articulated_object import ArticulatedObjectTrack
-from codeverse.tracks.planner import plan_example
-from codeverse.tracks.scene import SceneTrack
-from codeverse.tracks.static_object import StaticObjectTrack
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import ArticulatedPlan, ScenePlan
+from codeverse3d.contracts.run import RunRecord, RunStatus
+from codeverse3d.orchestrator import RoundPolicy, RunState
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks import get_track
+from codeverse3d.tracks.articulated_object import ArticulatedObjectTrack
+from codeverse3d.tracks.planner import plan_example
+from codeverse3d.tracks.scene import SceneTrack
+from codeverse3d.tracks.static_object import StaticObjectTrack
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import fake_clock, make_spec
from tests.orchestrator_tracks.fakes import (
FAIL_MARK,
@@ -36,7 +36,7 @@ def _agent_writer(job, ws):
if "| " in line and line.startswith("| ") and not line.startswith("| part") and not line.startswith("|---"):
name = line.split("|")[1].strip()
if name:
- from codeverse.conventions import to_snake
+ from codeverse3d.conventions import to_snake
files[f"src/parts/{to_snake(name)}.js"] = f"export function build{name}(THREE) {{ /* {job.label} r{job.round} */ return new THREE.Group(); }}\n"
# every round edits something (a real refine agent changes code; identical output = plateau)
@@ -314,7 +314,7 @@ def test_a_render_timeout_degrades_the_round_instead_of_failing_the_run(tmp_path
render_glb.mjs hit its 330 s timeout under load and the run was recorded `failed` with a
judged round 0 on disk. The round keeps build/gates, skips the judge, and the run
delivers its best round."""
- from codeverse.spatial.render import RenderError
+ from codeverse3d.spatial.render import RenderError
class _Services(FakeServices):
def render_object(self, glb, out_dir, *, views, width, height):
diff --git a/harness/tests/orchestrator_tracks/test_transport_retry.py b/harness/tests/orchestrator_tracks/test_transport_retry.py
index 0b1c88cf..e50dfa64 100644
--- a/harness/tests/orchestrator_tracks/test_transport_retry.py
+++ b/harness/tests/orchestrator_tracks/test_transport_retry.py
@@ -8,13 +8,13 @@ from __future__ import annotations
import pytest
-from codeverse.contracts.agent import AgentJob, AgentResult
-from codeverse.contracts.common import Language, Usage
-from codeverse.contracts.run import RunStatus
-from codeverse.proc import EventLog
-from codeverse.tracks.static_object import StaticObjectTrack
-from codeverse.tracks.steps import RoundFailed, looks_quota, looks_transport
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.agent import AgentJob, AgentResult
+from codeverse3d.contracts.common import Language, Usage
+from codeverse3d.contracts.run import RunStatus
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.static_object import StaticObjectTrack
+from codeverse3d.tracks.steps import RoundFailed, looks_quota, looks_transport
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import (
FakeAgent,
diff --git a/harness/tests/orchestrator_tracks/test_write_scope.py b/harness/tests/orchestrator_tracks/test_write_scope.py
index 55be7933..f55a2787 100644
--- a/harness/tests/orchestrator_tracks/test_write_scope.py
+++ b/harness/tests/orchestrator_tracks/test_write_scope.py
@@ -10,14 +10,14 @@
from __future__ import annotations
-from codeverse.contracts.artifacts import BuildResult, Judgment, Measurement, PartMeasure
-from codeverse.contracts.chat import ChatResponse
-from codeverse.contracts.common import Language, Track, Usage
-from codeverse.contracts.plan import BBox, PartPlan, ScenePlan, StaticPlan
-from codeverse.contracts.run import RoundRecord
-from codeverse.orchestrator import RefineTask, RunState, TaskGroup
-from codeverse.proc import EventLog
-from codeverse.tracks.generation import (
+from codeverse3d.contracts.artifacts import BuildResult, Judgment, Measurement, PartMeasure
+from codeverse3d.contracts.chat import ChatResponse
+from codeverse3d.contracts.common import Language, Track, Usage
+from codeverse3d.contracts.plan import BBox, PartPlan, ScenePlan, StaticPlan
+from codeverse3d.contracts.run import RoundRecord
+from codeverse3d.orchestrator import RefineTask, RunState, TaskGroup
+from codeverse3d.proc import EventLog
+from codeverse3d.tracks.generation import (
GenerationResult,
GenerationTask,
_always_writable,
@@ -25,10 +25,10 @@ from codeverse.tracks.generation import (
run_agent_task,
write_files,
)
-from codeverse.tracks.planner import plan_example
-from codeverse.tracks.scene import SceneTrack, zone_file
-from codeverse.tracks.static_object import StaticObjectTrack
-from codeverse.workspace import Workspace
+from codeverse3d.tracks.planner import plan_example
+from codeverse3d.tracks.scene import SceneTrack, zone_file
+from codeverse3d.tracks.static_object import StaticObjectTrack
+from codeverse3d.workspace import Workspace
from .conftest import make_spec
from .fakes import FakeAgent, FakeRuntime, FakeServices
@@ -225,8 +225,8 @@ def test_scene_constructors_enforce_their_file_sets(tmp_path, settings, monkeypa
assert track._refine_task(ctx, group, last, 1, parallel=False).edit_only is False
# threejs asset tasks share the scene workspace → scoped; blender heroes own a sub-workspace
- import codeverse.tracks.common as common
- import codeverse.tracks.scene_assets as scene_assets
+ import codeverse3d.tracks.common as common
+ import codeverse3d.tracks.scene_assets as scene_assets
captured: dict[str, GenerationTask] = {}
diff --git a/harness/tests/orchestrator_tracks/test_zone_layout.py b/harness/tests/orchestrator_tracks/test_zone_layout.py
index cb292c67..f770bb9b 100644
--- a/harness/tests/orchestrator_tracks/test_zone_layout.py
+++ b/harness/tests/orchestrator_tracks/test_zone_layout.py
@@ -4,8 +4,8 @@ from __future__ import annotations
from types import SimpleNamespace
-from codeverse.contracts.plan import AssetPlan, BBox, CameraPlan, ScenePlan, ZoneLayout, ZonePlan
-from codeverse.tracks.zone_layout import layout_block, layout_zones, validate_layout
+from codeverse3d.contracts.plan import AssetPlan, BBox, CameraPlan, ScenePlan, ZoneLayout, ZonePlan
+from codeverse3d.tracks.zone_layout import layout_block, layout_zones, validate_layout
def _plan() -> ScenePlan:
@@ -143,8 +143,8 @@ def test_a_run_past_its_ceiling_buys_no_layout_calls():
to 2 x 300 s per zone."""
import time
- from codeverse.contracts.common import Budget
- from codeverse.orchestrator import BudgetGuard
+ from codeverse3d.contracts.common import Budget
+ from codeverse3d.orchestrator import BudgetGuard
model = _Model([]) # any call would pop an empty queue and explode the test
guard = BudgetGuard(Budget(max_minutes=30), start_time=time.time() - 45 * 60)
@@ -156,8 +156,8 @@ def test_layout_waits_are_clipped_to_the_remaining_run_clock():
"""A call that does go out asks for min(LAYOUT_WAIT_S, wall clock left), floored."""
import time
- from codeverse.contracts.common import Budget
- from codeverse.orchestrator import BudgetGuard
+ from codeverse3d.contracts.common import Budget
+ from codeverse3d.orchestrator import BudgetGuard
class _Recorder(_Model):
def __init__(self, answers):
diff --git a/harness/tests/prompts/conftest.py b/harness/tests/prompts/conftest.py
index eee912e1..51815683 100644
--- a/harness/tests/prompts/conftest.py
+++ b/harness/tests/prompts/conftest.py
@@ -14,16 +14,16 @@ from pathlib import Path
import pytest
-from codeverse.config import get_settings
+from codeverse3d.config import get_settings
-PROMPTS_DIR = Path(__file__).resolve().parents[2] / "codeverse" / "prompts"
+PROMPTS_DIR = Path(__file__).resolve().parents[2] / "codeverse3d" / "prompts"
#: the scene starter's harness-owned library (D51): a scene workspace always has it at
#: `src/lib/`, so a snippet may import from it exactly as an agent's file would
-STARTER_LIB = Path(__file__).resolve().parents[2] / "codeverse" / "languages" / "scene_threejs" / "starter" / "src" / "lib"
+STARTER_LIB = Path(__file__).resolve().parents[2] / "codeverse3d" / "languages" / "scene_threejs" / "starter" / "src" / "lib"
RUNTIME_JS = Path(__file__).resolve().parents[2] / "runtime_js"
HELPERS = Path(__file__).resolve().parent / "helpers"
-#: every file this package owns (relative to codeverse/prompts/)
+#: every file this package owns (relative to codeverse3d/prompts/)
PROMPT_FILES = [
"system/harness_contract.md",
"system/singleshot_format.md",
diff --git a/harness/tests/prompts/helpers/glsl_compile.mjs b/harness/tests/prompts/helpers/glsl_compile.mjs
index 3501dd88..91d1f6ed 100644
--- a/harness/tests/prompts/helpers/glsl_compile.mjs
+++ b/harness/tests/prompts/helpers/glsl_compile.mjs
@@ -7,7 +7,7 @@ import path from 'node:path';
import { createRequire } from 'node:module';
import url from 'node:url';
-const RUNTIME = process.env.CV3D_RUNTIME_JS
+const RUNTIME = process.env.C3D_RUNTIME_JS
|| path.resolve(path.dirname(url.fileURLToPath(import.meta.url)), '../../../runtime_js');
const require_ = createRequire(path.join(RUNTIME, 'package.json'));
const puppeteer = require_('puppeteer');
diff --git a/harness/tests/prompts/test_files.py b/harness/tests/prompts/test_files.py
index b9ada61b..191f5a9a 100644
--- a/harness/tests/prompts/test_files.py
+++ b/harness/tests/prompts/test_files.py
@@ -4,7 +4,7 @@ from __future__ import annotations
import pytest
-from codeverse.prompts import load_text, prompt_hash, render
+from codeverse3d.prompts import load_text, prompt_hash, render
from tests.prompts.conftest import PROMPT_FILES, PROMPTS_DIR, read_prompt
@@ -76,9 +76,9 @@ def test_every_language_ships_a_system_prompt() -> None:
CadQuery's B-rep workplanes and three.js BufferGeometry, told the same thing.
A missing file here means a language silently falls back to nothing.
"""
- from codeverse.contracts.common import Language
- from codeverse.prompts.catalog import prompt_dir_for
- from codeverse.tracks.prompting import language_system_prompt
+ from codeverse3d.contracts.common import Language
+ from codeverse3d.prompts.catalog import prompt_dir_for
+ from codeverse3d.tracks.prompting import language_system_prompt
for lang in Language:
text = language_system_prompt(lang)
diff --git a/harness/tests/prompts/test_snippets_run.py b/harness/tests/prompts/test_snippets_run.py
index aa7a7994..a91dcca3 100644
--- a/harness/tests/prompts/test_snippets_run.py
+++ b/harness/tests/prompts/test_snippets_run.py
@@ -90,9 +90,9 @@ def test_urdf_cookbook_runs(tmp_path) -> None:
def _build_urdf_example(tmp_path, tag: str, model_py: str, urdf: str):
"""Run a doc example through the REAL urdf_blender pipeline (lint → Blender export →
FK consistency → collision sweep) — the build the agent's own files go through."""
- from codeverse.config import get_settings
- from codeverse.languages.urdf import UrdfBlenderRuntime
- from codeverse.workspace import Workspace
+ from codeverse3d.config import get_settings
+ from codeverse3d.languages.urdf import UrdfBlenderRuntime
+ from codeverse3d.workspace import Workspace
if not get_settings().resolve_blender():
pytest.skip("no Blender binary configured")
@@ -113,7 +113,7 @@ def _build_urdf_example(tmp_path, tag: str, model_py: str, urdf: str):
def test_urdf_contract_example_builds_and_lid_opens_upward(tmp_path) -> None:
"""The contract's COMPLETE example must pass the harness build exactly as written
(FK consistency, no lint warnings, clean sweep) and the lid must open upward."""
- from codeverse.spatial.joints import link_world_meshes, load_urdf
+ from codeverse3d.spatial.joints import link_world_meshes, load_urdf
ws, _ = _build_urdf_example(tmp_path, "pedalbin", "\n".join(blocks("urdf/contract.md", "python")),
blocks("urdf/contract.md", "xml")[0])
diff --git a/harness/tests/prompts/test_snippets_static.py b/harness/tests/prompts/test_snippets_static.py
index 4340973b..1c71ce9f 100644
--- a/harness/tests/prompts/test_snippets_static.py
+++ b/harness/tests/prompts/test_snippets_static.py
@@ -91,8 +91,8 @@ def test_xml_examples_follow_the_enforced_frame_recipe(rel: str, tmp_path) -> No
consistency rule the build enforces: meshes hold WORLD coordinates, so FK(q=0) of a
link composed with its visual origin is the identity (visual origin = −link frame).
This is the recipe the reviewer found the docs contradicting (visual origin 0 0 0)."""
- from codeverse.languages.urdf import lint_urdf_text
- from codeverse.spatial.joints import fk, load_urdf
+ from codeverse3d.languages.urdf import lint_urdf_text
+ from codeverse3d.spatial.joints import fk, load_urdf
checked = 0
for i, body in enumerate(blocks(rel, "xml")):
@@ -154,7 +154,7 @@ def test_glsl_strings_are_sane() -> None:
def test_singleshot_example_parses_with_harness_parser() -> None:
- gen = pytest.importorskip("codeverse.tracks.generation")
+ gen = pytest.importorskip("codeverse3d.tracks.generation")
text = read_prompt("system/singleshot_format.md")
example = blocks("system/singleshot_format.md", "text")[-1]
files = gen.parse_multifile(example)
diff --git a/harness/tests/reference/conftest.py b/harness/tests/reference/conftest.py
index 2b547169..f2a32531 100644
--- a/harness/tests/reference/conftest.py
+++ b/harness/tests/reference/conftest.py
@@ -9,10 +9,10 @@ from typing import Any
import pytest
from PIL import Image, ImageDraw
-from codeverse.contracts.chat import ChatRequest, ChatResponse
-from codeverse.contracts.common import Language, Track, Usage
-from codeverse.contracts.spec import Constraints, Spec
-from codeverse.models.base import ModelError
+from codeverse3d.contracts.chat import ChatRequest, ChatResponse
+from codeverse3d.contracts.common import Language, Track, Usage
+from codeverse3d.contracts.spec import Constraints, Spec
+from codeverse3d.models.base import ModelError
class FakeChat:
diff --git a/harness/tests/reference/test_attach.py b/harness/tests/reference/test_attach.py
index 8420ef26..b154e4a1 100644
--- a/harness/tests/reference/test_attach.py
+++ b/harness/tests/reference/test_attach.py
@@ -4,8 +4,8 @@ from __future__ import annotations
from pathlib import Path
-from codeverse.contracts.spec import ReferenceImage
-from codeverse.reference import (
+from codeverse3d.contracts.spec import ReferenceImage
+from codeverse3d.reference import (
SYNTH_NOTE,
SYNTH_TAG,
PlausibilityVerdict,
diff --git a/harness/tests/reference/test_judge_diff.py b/harness/tests/reference/test_judge_diff.py
index 7b3f5454..31615804 100644
--- a/harness/tests/reference/test_judge_diff.py
+++ b/harness/tests/reference/test_judge_diff.py
@@ -4,12 +4,12 @@ from __future__ import annotations
import pytest
-from codeverse.contracts.plan import AcceptanceItem
-from codeverse.contracts.spec import ReferenceImage
-from codeverse.judges.base import JudgeInput
-from codeverse.judges.rubrics import load_rubric
-from codeverse.judges.vlm_judge import ReferenceJudge
-from codeverse.reference import SYNTH_NOTE
+from codeverse3d.contracts.plan import AcceptanceItem
+from codeverse3d.contracts.spec import ReferenceImage
+from codeverse3d.judges.base import JudgeInput
+from codeverse3d.judges.rubrics import load_rubric
+from codeverse3d.judges.vlm_judge import ReferenceJudge
+from codeverse3d.reference import SYNTH_NOTE
from tests.judges.conftest import (
FakeChatModel,
draw_chair,
@@ -77,7 +77,7 @@ def test_diff_can_be_switched_off(ref_input, cache_dir):
def test_diff_off_via_env(ref_input, cache_dir, monkeypatch):
- monkeypatch.setenv("CV3D_REFERENCE_DIFF", "off")
+ monkeypatch.setenv("C3D_REFERENCE_DIFF", "off")
model = FakeChatModel(by_label={"judge": [good_reply(REF, ["A1", "A2"], 0.8)]})
_judge(model, cache_dir=cache_dir).judge(ref_input)
assert all(not r.label.startswith("reference_diff") for r in model.requests)
@@ -100,8 +100,8 @@ def test_best_view_iou_beats_a_fixed_front_view(ref_input, cache_dir, tmp_path):
def test_reference_that_contradicts_the_brief_scores_neutral(tmp_path, cache_dir):
"""A picture whose proportions disagree with the stated dimensions must not drag
the score down: the brief wins and the measured criterion goes neutral."""
- from codeverse.contracts.spec import Constraints
- from codeverse.judges.vlm_judge import NEUTRAL_SCORE
+ from codeverse3d.contracts.spec import Constraints
+ from codeverse3d.judges.vlm_judge import NEUTRAL_SCORE
png = draw_chair(tmp_path / "wide.png", legs=4) # ~2:1 wide silhouette
spec = make_spec(references=[ReferenceImage(path=str(png), role="target", note=f"{SYNTH_NOTE} [front, x]")],
@@ -118,7 +118,7 @@ def test_reference_that_contradicts_the_brief_scores_neutral(tmp_path, cache_dir
def test_part_names_are_read_from_both_plan_digest_shapes():
- from codeverse.judges.vlm_judge import _plan_part_names
+ from codeverse3d.judges.vlm_judge import _plan_part_names
class One:
plan_summary = ("Chair: a chair. Overall 0.5x0.5x0.9 m. "
diff --git a/harness/tests/reference/test_mismatch.py b/harness/tests/reference/test_mismatch.py
index 7a96337f..3048e755 100644
--- a/harness/tests/reference/test_mismatch.py
+++ b/harness/tests/reference/test_mismatch.py
@@ -6,8 +6,8 @@ from pathlib import Path
from PIL import Image
-from codeverse.models.base import ModelError
-from codeverse.reference import compare
+from codeverse3d.models.base import ModelError
+from codeverse3d.reference import compare
from tests.reference.conftest import FakeChat, make_spec
ANSWER = {
diff --git a/harness/tests/reference/test_proportions.py b/harness/tests/reference/test_proportions.py
index 6918459f..fb042535 100644
--- a/harness/tests/reference/test_proportions.py
+++ b/harness/tests/reference/test_proportions.py
@@ -7,14 +7,14 @@ from pathlib import Path
import pytest
from PIL import Image, ImageDraw
-from codeverse.reference import (
+from codeverse3d.reference import (
ASPECT_TOL,
conflict_note,
dimension_conflict,
expected_aspect_range,
expected_front_aspect,
)
-from codeverse.spatial.silhouette import silhouette_aspect
+from codeverse3d.spatial.silhouette import silhouette_aspect
from tests.reference.conftest import make_spec
@@ -33,7 +33,7 @@ def test_silhouette_aspect(tmp_path: Path):
def test_expected_aspect_is_a_band_over_every_horizontal_extent():
"""A brief never says which face a photo shows, so the expectation is a range."""
- from codeverse.contracts.spec import Constraints
+ from codeverse3d.contracts.spec import Constraints
assert expected_aspect_range(make_spec()) == (0.14 / 0.30, 0.14 / 0.30) # width == depth
chair = make_spec(constraints=Constraints(dimensions_m={"width": 0.45, "depth": 0.50, "height": 0.9}))
@@ -46,7 +46,7 @@ def test_expected_aspect_is_a_band_over_every_horizontal_extent():
def test_a_slightly_wide_photo_inside_the_band_is_not_a_conflict(tmp_path: Path):
"""The measured chair case: brief band 0.50-0.56, photo 0.64 -> 16 % outside, kept."""
- from codeverse.contracts.spec import Constraints
+ from codeverse3d.contracts.spec import Constraints
chair = make_spec(constraints=Constraints(dimensions_m={"width": 0.45, "depth": 0.50, "height": 0.9}))
info = dimension_conflict(chair, _box(tmp_path / "chair.png", 128, 200)) # 0.64 w/h
@@ -72,7 +72,7 @@ def test_the_coffee_grinder_case_is_flagged(tmp_path: Path):
def test_no_stated_dimensions_is_never_a_conflict(tmp_path: Path):
- from codeverse.contracts.spec import Constraints
+ from codeverse3d.contracts.spec import Constraints
spec = make_spec(constraints=Constraints())
assert dimension_conflict(spec, _box(tmp_path / "x.png", 300, 100))["conflict"] is False
diff --git a/harness/tests/reference/test_run_and_cli.py b/harness/tests/reference/test_run_and_cli.py
index 476b2d50..46a5424f 100644
--- a/harness/tests/reference/test_run_and_cli.py
+++ b/harness/tests/reference/test_run_and_cli.py
@@ -7,10 +7,10 @@ from pathlib import Path
from typer.testing import CliRunner
-from codeverse.contracts.spec import ReferenceImage
-from codeverse.proc import EventLog
-from codeverse.reference import SYNTH_TAG, ground_spec
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.spec import ReferenceImage
+from codeverse3d.proc import EventLog
+from codeverse3d.reference import SYNTH_TAG, ground_spec
+from codeverse3d.workspace import Workspace
from tests.reference.conftest import GOOD_GATE, PROMPT_PLAN, FakeChat, FakeImageModel, make_spec
@@ -50,7 +50,7 @@ def test_ground_spec_survives_a_rejected_reference(tmp_ws: Workspace, cache_dir:
def test_ground_spec_survives_a_dead_backend(tmp_ws: Workspace, monkeypatch, cache_dir: Path):
- monkeypatch.setattr("codeverse.reference._chat_model",
+ monkeypatch.setattr("codeverse3d.reference._chat_model",
lambda mid: (_ for _ in ()).throw(RuntimeError("no keys")))
spec = make_spec()
out, refset, why = ground_spec(spec, tmp_ws, cache_dir=cache_dir)
@@ -58,15 +58,15 @@ def test_ground_spec_survives_a_dead_backend(tmp_ws: Workspace, monkeypatch, cac
def test_cli_flag_calls_the_grounding_and_never_kills_the_run(tmp_path: Path, monkeypatch):
- from codeverse.cli.main import app
+ from codeverse3d.cli.main import app
seen = {}
def fake_ground(spec, ws, *, n_views, model=None, image_model=None, image_model_id="", events=None, cache_dir=None):
seen["n_views"] = n_views
- return spec, __import__("codeverse.reference", fromlist=["ReferenceSet"]).ReferenceSet(prompt=spec.prompt), "nope"
+ return spec, __import__("codeverse3d.reference", fromlist=["ReferenceSet"]).ReferenceSet(prompt=spec.prompt), "nope"
- monkeypatch.setattr("codeverse.reference.ground_spec", fake_ground)
+ monkeypatch.setattr("codeverse3d.reference.ground_spec", fake_ground)
res = CliRunner().invoke(app, ["make", "a stool", "--reference", "--reference-views", "1",
"--runs-dir", str(tmp_path), "--no-run"])
assert res.exit_code == 0, res.output
@@ -74,9 +74,9 @@ def test_cli_flag_calls_the_grounding_and_never_kills_the_run(tmp_path: Path, mo
def test_cli_without_the_flag_never_touches_the_reference_package(tmp_path: Path, monkeypatch):
- from codeverse.cli.main import app
+ from codeverse3d.cli.main import app
- monkeypatch.setattr("codeverse.reference.ground_spec",
+ monkeypatch.setattr("codeverse3d.reference.ground_spec",
lambda *a, **k: (_ for _ in ()).throw(AssertionError("must not be called")))
res = CliRunner().invoke(app, ["make", "a stool", "--runs-dir", str(tmp_path), "--no-run"])
assert res.exit_code == 0, res.output
diff --git a/harness/tests/reference/test_silhouette_best_view.py b/harness/tests/reference/test_silhouette_best_view.py
index e103e70f..56785c0e 100644
--- a/harness/tests/reference/test_silhouette_best_view.py
+++ b/harness/tests/reference/test_silhouette_best_view.py
@@ -6,8 +6,8 @@ from pathlib import Path
from PIL import Image, ImageDraw
-from codeverse.contracts.artifacts import RenderView
-from codeverse.spatial.silhouette import CANDIDATE_VIEWS, best_view_match
+from codeverse3d.contracts.artifacts import RenderView
+from codeverse3d.spatial.silhouette import CANDIDATE_VIEWS, best_view_match
def _shape(path: Path, box, bg=(240, 240, 240), fg=(30, 30, 30)) -> Path:
diff --git a/harness/tests/reference/test_synth.py b/harness/tests/reference/test_synth.py
index 6d3634c1..cf14302c 100644
--- a/harness/tests/reference/test_synth.py
+++ b/harness/tests/reference/test_synth.py
@@ -5,8 +5,8 @@ from __future__ import annotations
import json
from pathlib import Path
-from codeverse.models.base import ModelError
-from codeverse.reference import (
+from codeverse3d.models.base import ModelError
+from codeverse3d.reference import (
STUDIO_SUFFIX,
cache_key,
compose_image_prompt,
diff --git a/harness/tests/reference/test_tool_compare_reference.py b/harness/tests/reference/test_tool_compare_reference.py
index 0b7e9355..df125446 100644
--- a/harness/tests/reference/test_tool_compare_reference.py
+++ b/harness/tests/reference/test_tool_compare_reference.py
@@ -8,11 +8,11 @@ from pathlib import Path
import pytest
from PIL import Image, ImageDraw
-import codeverse.spatial.tools # noqa: F401 (registers every tool)
-from codeverse.contracts.artifacts import RenderSet, RenderView
-from codeverse.reference import SYNTH_NOTE
-from codeverse.spatial.registry import ToolContext, get_tool
-from codeverse.workspace import Workspace
+import codeverse3d.spatial.tools # noqa: F401 (registers every tool)
+from codeverse3d.contracts.artifacts import RenderSet, RenderView
+from codeverse3d.reference import SYNTH_NOTE
+from codeverse3d.spatial.registry import ToolContext, get_tool
+from codeverse3d.workspace import Workspace
from tests.spatial_tools.conftest import build_stool
@@ -42,7 +42,7 @@ def ctx(tmp_ws: Workspace, tmp_path: Path, monkeypatch) -> ToolContext:
out.append(RenderView(name=v.name, path=str(p), width=size, height=size, mode=mode))
return RenderSet(views=out, renderer="fake")
- monkeypatch.setattr("codeverse.spatial.tools.cached_render_glb", fake_render)
+ monkeypatch.setattr("codeverse3d.spatial.tools.cached_render_glb", fake_render)
return ToolContext(workspace=tmp_ws, language="blender", track="static_object")
diff --git a/harness/tests/scene_gates/conftest.py b/harness/tests/scene_gates/conftest.py
index e5eb8a2f..91aec327 100644
--- a/harness/tests/scene_gates/conftest.py
+++ b/harness/tests/scene_gates/conftest.py
@@ -6,8 +6,8 @@ from pathlib import Path
import pytest
-from codeverse.languages.scene_threejs import write_example
-from codeverse.workspace import Workspace
+from codeverse3d.languages.scene_threejs import write_example
+from codeverse3d.workspace import Workspace
@pytest.fixture
diff --git a/harness/tests/scene_gates/test_frame_metrics.py b/harness/tests/scene_gates/test_frame_metrics.py
index c87b58ce..770dd57f 100644
--- a/harness/tests/scene_gates/test_frame_metrics.py
+++ b/harness/tests/scene_gates/test_frame_metrics.py
@@ -5,9 +5,9 @@ from __future__ import annotations
import json
from pathlib import Path
-from codeverse.contracts.artifacts import RenderSet, RenderView, Severity
-from codeverse.judges.rubrics import apply_caps, load_rubric
-from codeverse.spatial.frame_metrics import (
+from codeverse3d.contracts.artifacts import RenderSet, RenderView, Severity
+from codeverse3d.judges.rubrics import apply_caps, load_rubric
+from codeverse3d.spatial.frame_metrics import (
FRAME_GATE,
frame_findings,
frame_gate_from_renders,
@@ -202,8 +202,8 @@ def test_a_loaded_glb_that_reaches_no_frame_is_flagged():
The hull in every shipped frame is JavaScript. Nothing flagged it, and the check the
teaser wave used to verify the multi-language claim (plan.json -> assets[].kind) still
said blender_glb, because the plan records what was PLANNED, not what rendered."""
- from codeverse.contracts.artifacts import Severity
- from codeverse.spatial.frame_metrics import frame_findings
+ from codeverse3d.contracts.artifacts import Severity
+ from codeverse3d.spatial.frame_metrics import frame_findings
rep = frame_findings({"camera_checks": [], "census": {"glb_assets": [
{"url": "/assets/clinker_skiff.glb", "meshes": 7, "meshes_in_scene": 0, "in_scene": False},
diff --git a/harness/tests/scene_gates/test_frame_motion.py b/harness/tests/scene_gates/test_frame_motion.py
index 68439fdc..a297bf71 100644
--- a/harness/tests/scene_gates/test_frame_motion.py
+++ b/harness/tests/scene_gates/test_frame_motion.py
@@ -14,9 +14,9 @@ from pathlib import Path
import numpy as np
from PIL import Image
-from codeverse.contracts.artifacts import Severity
-from codeverse.spatial.frame_metrics import frame_findings, stored_motion
-from codeverse.spatial.frame_motion import (
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.spatial.frame_metrics import frame_findings, stored_motion
+from codeverse3d.spatial.frame_motion import (
MOVING_FRAC,
motion_from_dir,
motion_rows,
diff --git a/harness/tests/scene_gates/test_judge_views.py b/harness/tests/scene_gates/test_judge_views.py
index 628cdcb8..88c0615e 100644
--- a/harness/tests/scene_gates/test_judge_views.py
+++ b/harness/tests/scene_gates/test_judge_views.py
@@ -4,9 +4,9 @@ from __future__ import annotations
from pathlib import Path
-from codeverse.contracts.artifacts import RenderSet, RenderView
-from codeverse.conventions import SCENE_VIEWS
-from codeverse.spatial.render_scene import JUDGE_MAX_VIEWS, metrics_path_for, select_judge_views
+from codeverse3d.contracts.artifacts import RenderSet, RenderView
+from codeverse3d.conventions import SCENE_VIEWS
+from codeverse3d.spatial.render_scene import JUDGE_MAX_VIEWS, metrics_path_for, select_judge_views
AUTHORED = ["Establishing", "BridgeAndPond", "LanternDetail"]
@@ -83,7 +83,7 @@ def test_metrics_path_for_prefers_stamped_out_dir(tmp_path: Path):
def test_mark_judge_views_serialises_stamped_flags(tmp_path: Path):
import json
- from codeverse.spatial.render_scene import _mark_judge_views
+ from codeverse3d.spatial.render_scene import _mark_judge_views
views_json = tmp_path / "views.json"
views_json.write_text(json.dumps([
diff --git a/harness/tests/scene_gates/test_live_frames.py b/harness/tests/scene_gates/test_live_frames.py
index 16aee0d8..971bcd4a 100644
--- a/harness/tests/scene_gates/test_live_frames.py
+++ b/harness/tests/scene_gates/test_live_frames.py
@@ -12,15 +12,15 @@ from pathlib import Path
import pytest
from PIL import Image
-from codeverse.conventions import SCENE_VIEWS
-from codeverse.spatial.frame_metrics import frame_gate_from_renders
-from codeverse.spatial.render_scene import (
+from codeverse3d.conventions import SCENE_VIEWS
+from codeverse3d.spatial.frame_metrics import frame_gate_from_renders
+from codeverse3d.spatial.render_scene import (
JUDGE_MAX_VIEWS,
read_metrics,
render_scene,
select_judge_views,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
from tests.scene_runtime.conftest import needs_browser
pytestmark = [pytest.mark.node, needs_browser]
@@ -111,7 +111,7 @@ def test_dark_variant_raises_dark_frame_errors(starter_ws: Workspace):
def test_plan_bounds_guard_orbit_framing(starter_ws: Workspace, tmp_path: Path):
"""Plan bounds guard the framing: a zone that sprawls far past the bounds is dropped in
favour of the zones inside them; bounds that contain everything change nothing."""
- from codeverse.contracts.plan import BBox
+ from codeverse3d.contracts.plan import BBox
def _run(i: int, extents: float) -> tuple[dict, float]:
out = starter_ws.renders_dir(i)
diff --git a/harness/tests/scene_gates/test_live_hero_in_frame.py b/harness/tests/scene_gates/test_live_hero_in_frame.py
index 118fe7e2..acaac8a3 100644
--- a/harness/tests/scene_gates/test_live_hero_in_frame.py
+++ b/harness/tests/scene_gates/test_live_hero_in_frame.py
@@ -12,9 +12,9 @@ import math
import pytest
-from codeverse.spatial.frame_metrics import HERO_MIN_FRAC, frame_gate_from_renders
-from codeverse.spatial.render_scene import read_metrics, render_scene
-from codeverse.workspace import Workspace
+from codeverse3d.spatial.frame_metrics import HERO_MIN_FRAC, frame_gate_from_renders
+from codeverse3d.spatial.render_scene import read_metrics, render_scene
+from codeverse3d.workspace import Workspace
from tests.scene_runtime.conftest import needs_browser
from tests.scene_runtime.glb_fixture import write_box_glb
diff --git a/harness/tests/scene_gates/test_placement.py b/harness/tests/scene_gates/test_placement.py
index 1c6eb664..e9b2afd6 100644
--- a/harness/tests/scene_gates/test_placement.py
+++ b/harness/tests/scene_gates/test_placement.py
@@ -9,20 +9,20 @@ from __future__ import annotations
import json
from types import SimpleNamespace
-from codeverse.contracts.artifacts import BuildResult, Severity
-from codeverse.contracts.common import Language
-from codeverse.contracts.plan import AssetPlan, BBox, CameraPlan, ScenePlan, ZonePlan
-from codeverse.judges.rubrics import apply_caps, load_rubric
-from codeverse.orchestrator import build_refine_instructions
-from codeverse.spatial.scene_placement import (
+from codeverse3d.contracts.artifacts import BuildResult, Severity
+from codeverse3d.contracts.common import Language
+from codeverse3d.contracts.plan import AssetPlan, BBox, CameraPlan, ScenePlan, ZonePlan
+from codeverse3d.judges.rubrics import apply_caps, load_rubric
+from codeverse3d.orchestrator import build_refine_instructions
+from codeverse3d.spatial.scene_placement import (
GATE,
infer_indoor,
placement_findings,
placement_gate_safe,
placement_table_text,
)
-from codeverse.tracks.prompting import file_for_target_factory
-from codeverse.tracks.scene import ScenePipeline
+from codeverse3d.tracks.prompting import file_for_target_factory
+from codeverse3d.tracks.scene import ScenePipeline
def _row(name, zone="Yard", gap=0.0, support="Ground", sunk=0.0, into="", water=False, attached=(), h=1.0, exempt=""):
@@ -163,8 +163,8 @@ def test_pipeline_gates_append_placement_after_census_and_never_raise():
def test_check_placement_reads_the_last_census_and_the_table_text(tmp_path):
- from codeverse.spatial.registry import ToolContext, get_tool
- from codeverse.workspace import Workspace
+ from codeverse3d.spatial.registry import ToolContext, get_tool
+ from codeverse3d.workspace import Workspace
ws = Workspace(tmp_path / "run").create()
ws.artifacts.mkdir(parents=True, exist_ok=True)
@@ -238,7 +238,7 @@ def test_a_wrapper_of_instances_is_scale_checked_as_one_instance():
def test_the_typed_interior_flag_wins_over_the_setting_words():
"""D69's `interior` is the plan's word; the setting-text inference stays for plans
written before it existed."""
- from codeverse.spatial.scene_placement import is_interior
+ from codeverse3d.spatial.scene_placement import is_interior
assert is_interior({"setting": "a mountain meadow at dawn", "interior": True})
assert not is_interior({"setting": "a mountain meadow at dawn", "interior": False})
diff --git a/harness/tests/scene_gates/test_scene_textures_stage.py b/harness/tests/scene_gates/test_scene_textures_stage.py
index 97a1efee..3318f48a 100644
--- a/harness/tests/scene_gates/test_scene_textures_stage.py
+++ b/harness/tests/scene_gates/test_scene_textures_stage.py
@@ -19,8 +19,8 @@ from __future__ import annotations
import pytest
-from codeverse.config import SCENE_TEXTURES_ENV, get_settings, scene_textures_enabled
-from codeverse.tracks.plan_features import LIVE_SWITCHES
+from codeverse3d.config import SCENE_TEXTURES_ENV, get_settings, scene_textures_enabled
+from codeverse3d.tracks.plan_features import LIVE_SWITCHES
@pytest.fixture(autouse=True)
@@ -42,11 +42,11 @@ def test_the_switch_is_off_by_default_and_readable_at_call_time(monkeypatch):
def test_the_switch_is_registered_as_live():
"""An A/B arm that differs only by a switch no code reads is byte-identical to its
control; `plan_features` refuses such an arm, and only if the name is declared."""
- assert LIVE_SWITCHES[SCENE_TEXTURES_ENV] == "codeverse/config.py"
+ assert LIVE_SWITCHES[SCENE_TEXTURES_ENV] == "codeverse3d/config.py"
def _render(name: str, **extra):
- from codeverse.prompts import render
+ from codeverse3d.prompts import render
base = dict(
title="t", setting="a yard", mood="calm", bounds="0 0 0 / 10 5 10", environment="sunny",
@@ -68,7 +68,7 @@ MANIFEST = {
@pytest.mark.parametrize("template", ["scene_env.j2", "scene_zone.j2"])
def test_the_pack_reaches_both_prompts(template: str):
- from codeverse.texturing.plan import texture_pack_prompt
+ from codeverse3d.texturing.plan import texture_pack_prompt
snippet = texture_pack_prompt(MANIFEST)
with_pack = _render(template, textures=snippet)
@@ -78,7 +78,7 @@ def test_the_pack_reaches_both_prompts(template: str):
@pytest.mark.parametrize("template", ["scene_env.j2", "scene_zone.j2"])
def test_no_pack_adds_nothing_to_either_prompt(template: str):
- from codeverse.texturing.plan import texture_pack_prompt
+ from codeverse3d.texturing.plan import texture_pack_prompt
assert texture_pack_prompt({}) == ""
empty = _render(template, textures="")
@@ -91,8 +91,8 @@ def test_the_prompt_context_carries_the_manifest_the_stage_produced(monkeypatch)
exactly the state the loop was in before this."""
from types import SimpleNamespace
- import codeverse.tracks.scene as S
- from codeverse.contracts.plan import BBox, CameraPlan, ScenePlan, ZonePlan
+ import codeverse3d.tracks.scene as S
+ from codeverse3d.contracts.plan import BBox, CameraPlan, ScenePlan, ZonePlan
seen: dict = {}
monkeypatch.setattr(S, "base_prompt_context", lambda ctx, **kw: seen.update(kw) or kw)
@@ -130,7 +130,7 @@ def test_the_pack_says_outright_that_the_ground_is_what_it_is_for():
colour blend — the plan's own ground sentence, the cookbook chapter "Ground that reads
real (blend, paths, edges — never one flat colour)", and that chapter's position after
the block — against one passive list. A passive offer loses."""
- from codeverse.texturing.plan import texture_pack_prompt
+ from codeverse3d.texturing.plan import texture_pack_prompt
text = texture_pack_prompt(GROUND_MANIFEST)
assert "The ground is what this pack is for" in text
@@ -141,7 +141,7 @@ def test_the_pack_says_outright_that_the_ground_is_what_it_is_for():
def test_a_pack_with_no_ground_map_makes_no_ground_claim():
- from codeverse.texturing.plan import texture_pack_prompt
+ from codeverse3d.texturing.plan import texture_pack_prompt
props = {k: v for k, v in GROUND_MANIFEST.items() if v["role"] == "prop"}
text = texture_pack_prompt(props)
@@ -162,10 +162,10 @@ def test_the_stage_puts_the_pack_on_the_run_budget(monkeypatch, tmp_path):
ceiling can be crossed by a paid stage the run never saw."""
from types import SimpleNamespace
- import codeverse.reference as reference
- import codeverse.texturing.plan as plan_mod
- import codeverse.tracks.scene as S
- from codeverse.contracts.common import Usage
+ import codeverse3d.reference as reference
+ import codeverse3d.texturing.plan as plan_mod
+ import codeverse3d.tracks.scene as S
+ from codeverse3d.contracts.common import Usage
usage = Usage(cost_usd=0.07)
pack = SimpleNamespace(manifest=lambda: MANIFEST, usage=usage, source="vlm")
diff --git a/harness/tests/scene_gates/test_software_fps.py b/harness/tests/scene_gates/test_software_fps.py
index 206c19cc..0d54a06c 100644
--- a/harness/tests/scene_gates/test_software_fps.py
+++ b/harness/tests/scene_gates/test_software_fps.py
@@ -19,7 +19,7 @@ from __future__ import annotations
import pytest
-from codeverse.contracts.artifacts import RenderSet
+from codeverse3d.contracts.artifacts import RenderSet
GPU = "ANGLE (NVIDIA Corporation, NVIDIA RTX 6000 Ada Generation, Vulkan)"
CPU = "ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero) (0x0000C0DE)), SwiftShader driver)"
@@ -45,9 +45,9 @@ def test_a_cpu_measurement_is_not_offered_as_a_frame_rate() -> None:
def test_the_gate_does_not_fire_on_a_cpu_frame_rate() -> None:
from types import SimpleNamespace
- from codeverse.contracts.artifacts import GateReport
- from codeverse.contracts.plan import BBox, CameraPlan, ScenePlan, ZonePlan
- from codeverse.tracks.scene import ScenePipeline
+ from codeverse3d.contracts.artifacts import GateReport
+ from codeverse3d.contracts.plan import BBox, CameraPlan, ScenePlan, ZonePlan
+ from codeverse3d.tracks.scene import ScenePipeline
bb = BBox(center=(0, 0, 0), extents=(10, 5, 10))
plan = ScenePlan(title="t", summary="s", setting="meadow", mood="calm", bounds=bb, environment="sunny",
@@ -73,7 +73,7 @@ def test_the_gate_does_not_fire_on_a_cpu_frame_rate() -> None:
def test_the_judge_is_told_a_cpu_number_is_not_the_scene() -> None:
"""Dropping it silently would hide a genuinely heavy scene from a reader, so the
line stays — labelled, with an instruction not to raise an issue from it."""
- from codeverse.judges.prompt_builder import view_rig_section
+ from codeverse3d.judges.prompt_builder import view_rig_section
cpu = view_rig_section(RenderSet(renderer=CPU, fps=2.0), [], scene=True)
gpu = view_rig_section(RenderSet(renderer=GPU, fps=11.5), [], scene=True)
@@ -88,7 +88,7 @@ def test_a_probe_with_no_boot_record_is_a_harness_failure_not_a_verdict() -> Non
"[?] scene did not boot" with an identical signature while its own
artifacts/scene_probe.json recorded `ok: true, boot.ok: true, stage: ready`, and the
workspace boots in 600 ms today, unchanged."""
- from codeverse.spatial.probes import probe_report
+ from codeverse3d.spatial.probes import probe_report
report, census = probe_report({})
assert not report.passed and census == {}
@@ -108,8 +108,8 @@ def test_a_harness_failure_finding_makes_the_probe_result_not_ok() -> None:
one and nothing else therefore used to come back ok / no errors / no findings — a probe
that reads healthy and measured nothing, the exact shape that let desert_canyon's lost
output pass as a verdict about the scene."""
- from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
- from codeverse.spatial.probes import _result
+ from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+ from codeverse3d.spatial.probes import _result
harness = GateReport(gate="scene_probe", passed=False, findings=[GateFinding(
gate="scene_probe", severity=Severity.ERROR, target="src/scene.js",
diff --git a/harness/tests/scene_gates/test_zone_contents_nesting.py b/harness/tests/scene_gates/test_zone_contents_nesting.py
index 497b32ea..8db52f57 100644
--- a/harness/tests/scene_gates/test_zone_contents_nesting.py
+++ b/harness/tests/scene_gates/test_zone_contents_nesting.py
@@ -20,8 +20,8 @@ planned name; that shape did not occur in this corpus.
from __future__ import annotations
-from codeverse.contracts.plan import AssetPlan, BBox, CameraPlan, ScenePlan, ZonePlan
-from codeverse.spatial.scene_placement import contract_findings
+from codeverse3d.contracts.plan import AssetPlan, BBox, CameraPlan, ScenePlan, ZonePlan
+from codeverse3d.spatial.scene_placement import contract_findings
def _plan(contents: list[str]) -> ScenePlan:
@@ -75,7 +75,7 @@ def test_a_row_with_no_inner_list_behaves_as_before():
def test_an_unavailable_hero_is_not_missing_content():
"""A hero the asset stage could not build was withheld from the zone ("NOT AVAILABLE —
do not reference"); the contract check must not ERROR every round on its absence."""
- from codeverse.spatial.scene_placement import contract_findings
+ from codeverse3d.spatial.scene_placement import contract_findings
plan = {"zones": [{"name": "IncenseTerrace", "contents": ["BronzeCenser", "StoneBench"]}], "assets": []}
census = {"placement": {"assets": [{"name": "StoneBench", "zone": "IncenseTerrace", "inner": []}]}}
diff --git a/harness/tests/scene_prompts/test_prompt_assembler_contract.py b/harness/tests/scene_prompts/test_prompt_assembler_contract.py
index 4eafedab..ef6ca028 100644
--- a/harness/tests/scene_prompts/test_prompt_assembler_contract.py
+++ b/harness/tests/scene_prompts/test_prompt_assembler_contract.py
@@ -13,9 +13,9 @@ import re
import pytest
-from codeverse.contracts.plan import CameraPlan
-from codeverse.languages.scene_threejs import render_scene_js
-from codeverse.prompts import load_text
+from codeverse3d.contracts.plan import CameraPlan
+from codeverse3d.languages.scene_threejs import render_scene_js
+from codeverse3d.prompts import load_text
CAMS = [CameraPlan(name="Establishing", position=(1.0, 2.0, 3.0), look_at=(0.0, 1.0, 0.0), fov=44.0)]
@@ -64,7 +64,7 @@ def test_env_prompt_teaches_ctx_signature_and_update(env_prompt: str) -> None:
def test_env_prompt_sun_azimuth_matches_the_assembler_regex(env_prompt: str) -> None:
- from codeverse.languages.scene_threejs import _SUN_RE
+ from codeverse3d.languages.scene_threejs import _SUN_RE
example = re.search(r"`?export const SUN_AZIMUTH_DEG[^`\n]*", env_prompt)
assert example, "env prompt must show the export the assembler looks for"
diff --git a/harness/tests/scene_prompts/test_quality_teaching.py b/harness/tests/scene_prompts/test_quality_teaching.py
index 525f4411..d32f16a3 100644
--- a/harness/tests/scene_prompts/test_quality_teaching.py
+++ b/harness/tests/scene_prompts/test_quality_teaching.py
@@ -10,8 +10,8 @@ from __future__ import annotations
import pytest
-from codeverse.judges.rubrics import load_rubric
-from codeverse.prompts import load_text
+from codeverse3d.judges.rubrics import load_rubric
+from codeverse3d.prompts import load_text
#: cookbook chapter titles selected by the scene prompt builder
QUALITY_CHAPTERS = [
@@ -34,7 +34,7 @@ def cookbook() -> str:
@pytest.mark.parametrize("title", QUALITY_CHAPTERS)
def test_cookbook_quality_chapter_is_selectable(cookbook: str, title: str) -> None:
- from codeverse.prompts.sections import find_section, split_sections
+ from codeverse3d.prompts.sections import find_section, split_sections
s = find_section(split_sections(cookbook), title)
assert s is not None and s.title.startswith(title)
@@ -57,7 +57,7 @@ def test_planner_is_told_that_must_acceptance_caps_the_run() -> None:
"""One unmet `must` caps the run at 0.60 (judges.caps.missing_must_acceptance). A scene
whose pictures score 0.81 must not lose 0.13 because the planner over-specified a detail
and then marked it `must` — measured on cq_japanese_garden_v2 r00 (0.809 → 0.729 → 0.60)."""
- from codeverse.judges.rubrics import load_rubric
+ from codeverse3d.judges.rubrics import load_rubric
caps = {c.id: c for c in load_rubric("scene_v1").caps}
assert caps["missing_must_acceptance"].cap == 0.60
@@ -116,7 +116,7 @@ def test_scene_rubric_has_the_diorama_anchor() -> None:
def test_extra_anchor_levels_reach_the_judge_prompt() -> None:
- from codeverse.judges.prompt_builder import _rubric_block
+ from codeverse3d.judges.prompt_builder import _rubric_block
block = _rubric_block(load_rubric("scene_v1"))
assert "0.5: The scene reads as a diorama" in block
@@ -130,10 +130,10 @@ def test_the_quality_chapters_travel_INSIDE_the_zone_and_env_prompts() -> None:
"""Naming a chapter is not teaching it: on scenes_v1 not one of the 20 zone/env
sessions fetched cookbook chapters on demand, so the chapters that decide the score are inlined
into the brief itself (`tracks.prompting.cookbook_sections`)."""
- from codeverse.tracks.scene import ENV_RECIPES, ZONE_RECIPES
+ from codeverse3d.tracks.scene import ENV_RECIPES, ZONE_RECIPES
cookbook = load_text("scene_threejs/cookbook.md")
- from codeverse.prompts.sections import find_section, split_sections
+ from codeverse3d.prompts.sections import find_section, split_sections
secs = split_sections(cookbook)
for names in (ENV_RECIPES, ZONE_RECIPES):
@@ -146,8 +146,8 @@ def test_the_quality_chapters_travel_INSIDE_the_zone_and_env_prompts() -> None:
def test_cookbook_sections_inlines_whole_chapters_and_clips_safely(tmp_path) -> None:
from types import SimpleNamespace
- from codeverse.tracks.prompting import cookbook_sections
- from codeverse.tracks.scene import ZONE_RECIPES
+ from codeverse3d.tracks.prompting import cookbook_sections
+ from codeverse3d.tracks.scene import ZONE_RECIPES
ctx = SimpleNamespace(cookbook_text=load_text("scene_threejs/cookbook.md"))
text = cookbook_sections(ctx, ZONE_RECIPES)
@@ -164,7 +164,7 @@ def test_the_env_and_zone_briefs_hand_the_enclosure_to_env_for_an_interior() ->
"""2026-09-07: six interior runs were "not enclosed" because no brief said whose the walls
are. The env brief claims them (and the openings, and the light) only when the plan
says interior; the zone brief forbids building them and puts fixtures flush to the bounds."""
- from codeverse.prompts import render
+ from codeverse3d.prompts import render
base = dict(title="t", spec_prompt="p", setting="s", mood="m", bounds="b", environment="e", frame_doc="", contract="",
zones_table="", cameras="", effects="", animation="", asset_api="", textures="", recipes="", constraints_text="",
@@ -183,7 +183,7 @@ def test_the_env_and_zone_briefs_hand_the_enclosure_to_env_for_an_interior() ->
def test_the_zone_brief_says_builders_are_already_at_size() -> None:
"""2026-09-08 (loop 14 round 0): a 1.15 m stove placed at 3.60 m and 0.48 m lamps at 0.03 m —
the asset API states every size, and nothing told the zone author to place at scale 1."""
- from codeverse.prompts import render
+ from codeverse3d.prompts import render
base = dict(title="t", spec_prompt="p", setting="s", mood="m", bounds="b", environment="e", frame_doc="", contract="",
zones_table="", cameras="", effects="", animation="", asset_api="", textures="", recipes="", constraints_text="",
diff --git a/harness/tests/scene_runtime/conftest.py b/harness/tests/scene_runtime/conftest.py
index a6038714..963bea8d 100644
--- a/harness/tests/scene_runtime/conftest.py
+++ b/harness/tests/scene_runtime/conftest.py
@@ -9,9 +9,9 @@ from pathlib import Path
import pytest
-from codeverse.config import get_settings
-from codeverse.languages.scene_threejs import write_example
-from codeverse.workspace import Workspace
+from codeverse3d.config import get_settings
+from codeverse3d.languages.scene_threejs import write_example
+from codeverse3d.workspace import Workspace
RUNTIME_JS = get_settings().runtime_js_dir()
diff --git a/harness/tests/scene_runtime/lib/_probe.py b/harness/tests/scene_runtime/lib/_probe.py
index 1fb2cc99..c6fd234e 100644
--- a/harness/tests/scene_runtime/lib/_probe.py
+++ b/harness/tests/scene_runtime/lib/_probe.py
@@ -19,7 +19,7 @@ from pathlib import Path
import pytest
HARNESS = Path(__file__).resolve().parents[3]
-LIB_DIR = HARNESS / "codeverse" / "languages" / "scene_threejs" / "starter" / "src" / "lib"
+LIB_DIR = HARNESS / "codeverse3d" / "languages" / "scene_threejs" / "starter" / "src" / "lib"
RESOLVE_HOOK = HARNESS / "runtime_js" / "lib" / "resolve_three.mjs"
NODE_MODULES = HARNESS / "runtime_js" / "node_modules"
@@ -42,7 +42,7 @@ def measure(script: str, libs: tuple[str, ...] = (), *, timeout_s: float = 120.0
"""Run ``script`` (an ES module; ``import ... from './lib/x.js'``) and parse its
last stdout line as JSON. The script is responsible for ``console.log(JSON...)``."""
_three_ready()
- with tempfile.TemporaryDirectory(prefix="cv3d-libprobe-") as tmp:
+ with tempfile.TemporaryDirectory(prefix="c3d-libprobe-") as tmp:
root = Path(tmp)
_stage(root, libs)
(root / "probe.mjs").write_text(script, encoding="utf-8")
@@ -85,7 +85,7 @@ def compile_scene(scene_src: str, libs: tuple[str, ...] = (), *,
workaround around it (consolidation, 2026-09-01).
"""
_three_ready()
- with tempfile.TemporaryDirectory(prefix="cv3d-compile-scene-") as tmp:
+ with tempfile.TemporaryDirectory(prefix="c3d-compile-scene-") as tmp:
root = Path(tmp)
(root / "src").mkdir()
_stage(root / "src", libs)
diff --git a/harness/tests/scene_runtime/lib/test_exterior_starter.py b/harness/tests/scene_runtime/lib/test_exterior_starter.py
index 209e560a..677ed553 100644
--- a/harness/tests/scene_runtime/lib/test_exterior_starter.py
+++ b/harness/tests/scene_runtime/lib/test_exterior_starter.py
@@ -13,10 +13,10 @@ from pathlib import Path
from _probe import measure
-from codeverse.contracts.common import Track
-from codeverse.contracts.plan import ScenePlan
-from codeverse.languages.scene_threejs import STARTER_DIR, _env_for_plan
-from codeverse.tracks.planner import plan_example
+from codeverse3d.contracts.common import Track
+from codeverse3d.contracts.plan import ScenePlan
+from codeverse3d.languages.scene_threejs import STARTER_DIR, _env_for_plan
+from codeverse3d.tracks.planner import plan_example
_LIBS = ("environment.js", "terrain.js", "noise.js", "materials.js", "sky.js", "shader.js")
diff --git a/harness/tests/scene_runtime/lib/test_room_shell.py b/harness/tests/scene_runtime/lib/test_room_shell.py
index 9ee423d1..ea70fb33 100644
--- a/harness/tests/scene_runtime/lib/test_room_shell.py
+++ b/harness/tests/scene_runtime/lib/test_room_shell.py
@@ -13,10 +13,10 @@ from __future__ import annotations
import pytest
from _probe import measure
-from codeverse.contracts.common import Track
-from codeverse.contracts.plan import ScenePlan
-from codeverse.languages.scene_threejs import _env_for_plan
-from codeverse.tracks.planner import plan_example
+from codeverse3d.contracts.common import Track
+from codeverse3d.contracts.plan import ScenePlan
+from codeverse3d.languages.scene_threejs import _env_for_plan
+from codeverse3d.tracks.planner import plan_example
_SHELL = """
import * as THREE from 'three';
diff --git a/harness/tests/scene_runtime/lib/test_water.py b/harness/tests/scene_runtime/lib/test_water.py
index 028cdebf..ddb21a12 100644
--- a/harness/tests/scene_runtime/lib/test_water.py
+++ b/harness/tests/scene_runtime/lib/test_water.py
@@ -344,8 +344,8 @@ def test_wide_water_gets_the_broadband_wave_spectrum(probe) -> None:
assert m["poolUsesNarrow"], "a pool paid for the broadband spectrum"
# a 380 m storm sea is wide enough to be seen edge-on: two lighthouse runs (2026-09-09)
# read the eight-tone set as "a checkerboard of white crescents" — the threshold is 300 m
- from codeverse.config import get_settings
- src = (get_settings().runtime_js_dir().parent / "codeverse" / "languages" / "scene_threejs" / "starter" / "src" / "lib" / "water.js").read_text()
+ from codeverse3d.config import get_settings
+ src = (get_settings().runtime_js_dir().parent / "codeverse3d" / "languages" / "scene_threejs" / "starter" / "src" / "lib" / "water.js").read_text()
assert "BROADBAND_EXTENT_M = 300" in src and "_extent > BROADBAND_EXTENT_M" in src
diff --git a/harness/tests/scene_runtime/test_ablation.py b/harness/tests/scene_runtime/test_ablation.py
index 8ab88969..5f69fcb2 100644
--- a/harness/tests/scene_runtime/test_ablation.py
+++ b/harness/tests/scene_runtime/test_ablation.py
@@ -18,8 +18,8 @@ from pathlib import Path
import pytest
-from codeverse.config import get_settings
-from codeverse.spatial.ablation import (
+from codeverse3d.config import get_settings
+from codeverse3d.spatial.ablation import (
CENSUS_FIELD,
PRESENT_FLOOR,
AblationReport,
@@ -27,8 +27,8 @@ from codeverse.spatial.ablation import (
ablate_scene,
merge_into_census,
)
-from codeverse.spatial.registry import get_tool
-from codeverse.workspace import Workspace
+from codeverse3d.spatial.registry import get_tool
+from codeverse3d.workspace import Workspace
from tests.scene_runtime.conftest import needs_browser, needs_node, run_node_json
pytestmark = pytest.mark.node
@@ -175,15 +175,15 @@ def test_the_measurement_lands_in_the_census_where_the_gates_read_it(ws) -> None
@needs_browser
def test_the_build_switch_puts_the_number_where_the_scene_gates_read_it(ws, monkeypatch) -> None:
- """CV3D_ABLATION folds the measurement into the build census (a second browser
+ """C3D_ABLATION folds the measurement into the build census (a second browser
boot, hence opt-in). Off — the default — the build is untouched."""
- from codeverse.languages.scene_threejs import SceneThreeJsRuntime
+ from codeverse3d.languages.scene_threejs import SceneThreeJsRuntime
_scene_ws(ws, SCENE_ONE_SHADER)
runtime = SceneThreeJsRuntime()
- monkeypatch.delenv("CV3D_ABLATION", raising=False)
+ monkeypatch.delenv("C3D_ABLATION", raising=False)
assert CENSUS_FIELD not in (runtime.build(ws).census or {})
- monkeypatch.setenv("CV3D_ABLATION", "1")
+ monkeypatch.setenv("C3D_ABLATION", "1")
field = (runtime.build(ws).census or {}).get(CENSUS_FIELD)
assert field and field["present"] is True and field["custom_materials"] == 1
assert json.loads((ws.artifacts / "census.json").read_text())[CENSUS_FIELD]["present"] is True
diff --git a/harness/tests/scene_runtime/test_assemble.py b/harness/tests/scene_runtime/test_assemble.py
index f9d1ac00..1e9abfe3 100644
--- a/harness/tests/scene_runtime/test_assemble.py
+++ b/harness/tests/scene_runtime/test_assemble.py
@@ -6,8 +6,8 @@ import math
import pytest
-from codeverse.contracts.plan import CameraPlan
-from codeverse.languages.scene_threejs import (
+from codeverse3d.contracts.plan import CameraPlan
+from codeverse3d.languages.scene_threejs import (
ZoneProbe,
assemble,
cameras_from_specs,
@@ -137,7 +137,7 @@ def test_assemble_with_async_zone_boots(starter_ws):
)
res = assemble(starter_ws)
assert "orchard" in res.zones_included and res.zones_failed == {}
- from codeverse.spatial.probes import probe_scene
+ from codeverse3d.spatial.probes import probe_scene
probe = probe_scene(starter_ws)
assert probe.gate.passed, [(f.target, f.message) for f in probe.gate.findings]
diff --git a/harness/tests/scene_runtime/test_backdrop.py b/harness/tests/scene_runtime/test_backdrop.py
index 853724b6..d37d4cfb 100644
--- a/harness/tests/scene_runtime/test_backdrop.py
+++ b/harness/tests/scene_runtime/test_backdrop.py
@@ -7,7 +7,7 @@ import re
import pytest
-from codeverse.config import get_settings
+from codeverse3d.config import get_settings
from tests.scene_runtime.conftest import needs_node, run_node_json
pytestmark = [pytest.mark.node, needs_node]
diff --git a/harness/tests/scene_runtime/test_camera_inside_volume.py b/harness/tests/scene_runtime/test_camera_inside_volume.py
index 023fdb88..cbcc2002 100644
--- a/harness/tests/scene_runtime/test_camera_inside_volume.py
+++ b/harness/tests/scene_runtime/test_camera_inside_volume.py
@@ -11,7 +11,7 @@ from __future__ import annotations
import pytest
-from codeverse.config import get_settings
+from codeverse3d.config import get_settings
from tests.scene_runtime.conftest import needs_node, run_node_json
pytestmark = [pytest.mark.node, needs_node]
diff --git a/harness/tests/scene_runtime/test_camera_repair.py b/harness/tests/scene_runtime/test_camera_repair.py
index 141ee340..74ec62ce 100644
--- a/harness/tests/scene_runtime/test_camera_repair.py
+++ b/harness/tests/scene_runtime/test_camera_repair.py
@@ -4,7 +4,7 @@ from __future__ import annotations
import pytest
-from codeverse.config import get_settings
+from codeverse3d.config import get_settings
from tests.scene_runtime.conftest import needs_node, run_node_json
pytestmark = [pytest.mark.node, needs_node]
diff --git a/harness/tests/scene_runtime/test_camera_volumetric.py b/harness/tests/scene_runtime/test_camera_volumetric.py
index 4556b52a..8ef24b92 100644
--- a/harness/tests/scene_runtime/test_camera_volumetric.py
+++ b/harness/tests/scene_runtime/test_camera_volumetric.py
@@ -18,7 +18,7 @@ from __future__ import annotations
import pytest
-from codeverse.config import get_settings
+from codeverse3d.config import get_settings
from tests.scene_runtime.conftest import needs_node, run_node_json
pytestmark = [pytest.mark.node, needs_node]
diff --git a/harness/tests/scene_runtime/test_census_stamps.py b/harness/tests/scene_runtime/test_census_stamps.py
index 424b4b48..6dccd040 100644
--- a/harness/tests/scene_runtime/test_census_stamps.py
+++ b/harness/tests/scene_runtime/test_census_stamps.py
@@ -5,7 +5,7 @@ from __future__ import annotations
import pytest
-from codeverse.config import get_settings
+from codeverse3d.config import get_settings
from tests.scene_runtime.conftest import needs_node, run_node_json
pytestmark = [pytest.mark.node, needs_node]
diff --git a/harness/tests/scene_runtime/test_driver_flags.py b/harness/tests/scene_runtime/test_driver_flags.py
index 9639895f..f95795c7 100644
--- a/harness/tests/scene_runtime/test_driver_flags.py
+++ b/harness/tests/scene_runtime/test_driver_flags.py
@@ -14,7 +14,7 @@ import subprocess
import pytest
-from codeverse.config import get_settings
+from codeverse3d.config import get_settings
from tests.scene_runtime.conftest import needs_node
pytestmark = [pytest.mark.node, needs_node]
diff --git a/harness/tests/scene_runtime/test_glb_asset_naming.py b/harness/tests/scene_runtime/test_glb_asset_naming.py
index 07ed4c66..2b83cba4 100644
--- a/harness/tests/scene_runtime/test_glb_asset_naming.py
+++ b/harness/tests/scene_runtime/test_glb_asset_naming.py
@@ -21,9 +21,9 @@ import json
import pytest
-from codeverse.contracts.plan import CameraPlan
-from codeverse.languages.scene_threejs import render_scene_js
-from codeverse.spatial.node import run_node
+from codeverse3d.contracts.plan import CameraPlan
+from codeverse3d.languages.scene_threejs import render_scene_js
+from codeverse3d.spatial.node import run_node
from tests.scene_runtime.conftest import needs_node
pytestmark = [pytest.mark.node, needs_node]
@@ -106,7 +106,7 @@ def test_a_procedural_asset_is_rendered_on_the_hero_rig(tmp_ws):
"""`render_asset` is the hook `scene_assets` judges a threejs asset through: the module is
exported by the object track's exporter and rendered on the quick rig a hero's GLB gets.
Nothing defined it until 2026-09-07, so 0 of 860 recorded procedural assets were judged."""
- from codeverse.languages.scene_threejs import SceneThreeJsRuntime
+ from codeverse3d.languages.scene_threejs import SceneThreeJsRuntime
(tmp_ws.src / "assets").mkdir(parents=True, exist_ok=True)
(tmp_ws.src / "assets" / "crate.js").write_text(
diff --git a/harness/tests/scene_runtime/test_lint.py b/harness/tests/scene_runtime/test_lint.py
index dde89cda..da0b07e4 100644
--- a/harness/tests/scene_runtime/test_lint.py
+++ b/harness/tests/scene_runtime/test_lint.py
@@ -4,8 +4,8 @@ from __future__ import annotations
import pytest
-from codeverse.contracts.artifacts import Severity
-from codeverse.languages.scene_threejs import lint
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.languages.scene_threejs import lint
from tests.scene_runtime.conftest import needs_node
pytestmark = [pytest.mark.node, needs_node]
diff --git a/harness/tests/scene_runtime/test_placement_census.py b/harness/tests/scene_runtime/test_placement_census.py
index 4270989c..502c0a76 100644
--- a/harness/tests/scene_runtime/test_placement_census.py
+++ b/harness/tests/scene_runtime/test_placement_census.py
@@ -4,7 +4,7 @@ from __future__ import annotations
import pytest
-from codeverse.config import get_settings
+from codeverse3d.config import get_settings
from tests.scene_runtime.conftest import needs_node, run_node_json
pytestmark = [pytest.mark.node, needs_node]
diff --git a/harness/tests/scene_runtime/test_placement_inner_families.py b/harness/tests/scene_runtime/test_placement_inner_families.py
index 833738e5..68d638f9 100644
--- a/harness/tests/scene_runtime/test_placement_inner_families.py
+++ b/harness/tests/scene_runtime/test_placement_inner_families.py
@@ -10,7 +10,7 @@ from __future__ import annotations
import pytest
-from codeverse.config import get_settings
+from codeverse3d.config import get_settings
from tests.scene_runtime.conftest import needs_node, run_node_json
pytestmark = [pytest.mark.node, needs_node]
diff --git a/harness/tests/scene_runtime/test_placement_volumetric.py b/harness/tests/scene_runtime/test_placement_volumetric.py
index a0600c84..eaf29087 100644
--- a/harness/tests/scene_runtime/test_placement_volumetric.py
+++ b/harness/tests/scene_runtime/test_placement_volumetric.py
@@ -19,7 +19,7 @@ from __future__ import annotations
import pytest
-from codeverse.config import get_settings
+from codeverse3d.config import get_settings
from tests.scene_runtime.conftest import needs_node, run_node_json
pytestmark = [pytest.mark.node, needs_node]
diff --git a/harness/tests/scene_runtime/test_post.py b/harness/tests/scene_runtime/test_post.py
index db28c280..071440c6 100644
--- a/harness/tests/scene_runtime/test_post.py
+++ b/harness/tests/scene_runtime/test_post.py
@@ -23,8 +23,8 @@ import numpy as np
import pytest
from PIL import Image
-from codeverse.spatial.render_scene import post_chain_args, read_metrics, run_scene_script
-from codeverse.workspace import Workspace
+from codeverse3d.spatial.render_scene import post_chain_args, read_metrics, run_scene_script
+from codeverse3d.workspace import Workspace
from tests.scene_runtime.conftest import needs_browser, needs_node
pytestmark = [pytest.mark.node]
@@ -78,11 +78,11 @@ def render(ws: Workspace, out: Path, *extra_args: str) -> Path:
def test_post_chain_args_follow_the_env_switch(monkeypatch):
- monkeypatch.delenv("CV3D_POST", raising=False)
+ monkeypatch.delenv("C3D_POST", raising=False)
assert post_chain_args() == [] # ON by default for scene pictures
- monkeypatch.setenv("CV3D_POST", "0")
+ monkeypatch.setenv("C3D_POST", "0")
assert post_chain_args() == ["--no-post"]
- monkeypatch.setenv("CV3D_POST", "on")
+ monkeypatch.setenv("C3D_POST", "on")
assert post_chain_args() == []
diff --git a/harness/tests/scene_runtime/test_probes.py b/harness/tests/scene_runtime/test_probes.py
index 78c0a729..c00e2dff 100644
--- a/harness/tests/scene_runtime/test_probes.py
+++ b/harness/tests/scene_runtime/test_probes.py
@@ -4,8 +4,8 @@ from __future__ import annotations
import pytest
-from codeverse.contracts.artifacts import Severity
-from codeverse.spatial.probes import check_shaders, probe_scene
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.spatial.probes import check_shaders, probe_scene
from tests.scene_runtime.conftest import needs_browser
pytestmark = [pytest.mark.node, needs_browser]
@@ -142,8 +142,8 @@ def test_probe_scene_hanging_create_scene_times_out_as_agent_finding(starter_ws)
def test_probe_result_tool_semantics(starter_ws, monkeypatch):
"""Tool success is distinct from agent-fixable gate success."""
- import codeverse.spatial.probes as probes_mod
- from codeverse.spatial.render_scene import NodeResult, SceneRenderError
+ import codeverse3d.spatial.probes as probes_mod
+ from codeverse3d.spatial.render_scene import NodeResult, SceneRenderError
def fake_run_ok(script, args, **kw):
return NodeResult(0, "", "", {
diff --git a/harness/tests/scene_runtime/test_render_scene.py b/harness/tests/scene_runtime/test_render_scene.py
index 0d57611d..3406316e 100644
--- a/harness/tests/scene_runtime/test_render_scene.py
+++ b/harness/tests/scene_runtime/test_render_scene.py
@@ -8,10 +8,10 @@ from pathlib import Path
import pytest
from PIL import Image
-from codeverse.contracts.plan import CameraPlan
-from codeverse.conventions import SCENE_VIEWS
-from codeverse.spatial import render_scene as rs_mod
-from codeverse.spatial.render_scene import (
+from codeverse3d.contracts.plan import CameraPlan
+from codeverse3d.conventions import SCENE_VIEWS
+from codeverse3d.spatial import render_scene as rs_mod
+from codeverse3d.spatial.render_scene import (
SceneRenderError,
probe_env_args,
read_metrics,
@@ -91,7 +91,7 @@ def test_missing_driver_raises(fake_runtime):
def test_camera_in_geometry_is_detected(starter_ws, monkeypatch):
# this test asserts DETECTION, so the default-on camera repair must stand down
# (the repair itself is covered by test_camera_repair.py)
- monkeypatch.setenv("CV3D_CAMERA_REPAIR", "0")
+ monkeypatch.setenv("C3D_CAMERA_REPAIR", "0")
cams = [CameraPlan(name="buried", position=(12.0, 2.0, -2.0), look_at=(12.0, 2.0, -10.0), fov=50)] # inside the windmill tower
out = starter_ws.renders_dir(1)
render_scene(starter_ws, out, cameras=cams, orbit=False, times=(0.0,), fps_seconds=0, sheet=False)
@@ -109,7 +109,7 @@ def test_camera_repair_is_observable_in_census_and_views(starter_ws, monkeypatch
"""Review-3 S5 (V8): with the default-ON repair, a buried camera leaves a
census.camera_repair row and the view records where the pixels really came
from — repair used to fire AFTER census capture and vanish."""
- monkeypatch.delenv("CV3D_CAMERA_REPAIR", raising=False)
+ monkeypatch.delenv("C3D_CAMERA_REPAIR", raising=False)
cams = [CameraPlan(name="buried", position=(12.0, 2.0, -2.0), look_at=(12.0, 2.0, -10.0), fov=50)] # inside the windmill tower
out = starter_ws.renders_dir(2)
render_scene(starter_ws, out, cameras=cams, orbit=False, times=(0.0,), fps_seconds=0, sheet=False)
@@ -230,22 +230,22 @@ def _flags(args):
@pytest.mark.parametrize(("env", "expect"), [
({}, ["--camera-repair"]),
- ({"CV3D_CAMERA_REPAIR": "0"}, []),
- ({"CV3D_CAMERA_REPAIR": "false"}, []),
- ({"CV3D_CAMERA_REPAIR": "off"}, []),
- ({"CV3D_CAMERA_REPAIR": "no"}, []),
- ({"CV3D_CAMERA_REPAIR": "true"}, ["--camera-repair"]),
- ({"CV3D_SETTLE": "0"}, ["--camera-repair", "--no-settle"]),
- ({"CV3D_SETTLE": "false"}, ["--camera-repair", "--no-settle"]),
- ({"CV3D_AUTO_EXPOSURE": "1"}, ["--auto-exposure", "--camera-repair"]),
- ({"CV3D_AUTO_EXPOSURE": "true"}, ["--auto-exposure", "--camera-repair"]),
- ({"CV3D_AUTO_EXPOSURE": "garbage"}, ["--camera-repair"]),
+ ({"C3D_CAMERA_REPAIR": "0"}, []),
+ ({"C3D_CAMERA_REPAIR": "false"}, []),
+ ({"C3D_CAMERA_REPAIR": "off"}, []),
+ ({"C3D_CAMERA_REPAIR": "no"}, []),
+ ({"C3D_CAMERA_REPAIR": "true"}, ["--camera-repair"]),
+ ({"C3D_SETTLE": "0"}, ["--camera-repair", "--no-settle"]),
+ ({"C3D_SETTLE": "false"}, ["--camera-repair", "--no-settle"]),
+ ({"C3D_AUTO_EXPOSURE": "1"}, ["--auto-exposure", "--camera-repair"]),
+ ({"C3D_AUTO_EXPOSURE": "true"}, ["--auto-exposure", "--camera-repair"]),
+ ({"C3D_AUTO_EXPOSURE": "garbage"}, ["--camera-repair"]),
])
def test_probe_env_args_speaks_the_canonical_flag_words(monkeypatch, env, expect):
- """CV3D_CAMERA_REPAIR=false must DISABLE, CV3D_SETTLE=false must disable,
- CV3D_AUTO_EXPOSURE=true must enable — the raw '0'/'1' compares silently
+ """C3D_CAMERA_REPAIR=false must DISABLE, C3D_SETTLE=false must disable,
+ C3D_AUTO_EXPOSURE=true must enable — the raw '0'/'1' compares silently
ignored every other word the doc'd env_flag vocabulary accepts."""
- for k in ("CV3D_SETTLE", "CV3D_CAMERA_REPAIR", "CV3D_AUTO_EXPOSURE"):
+ for k in ("C3D_SETTLE", "C3D_CAMERA_REPAIR", "C3D_AUTO_EXPOSURE"):
monkeypatch.delenv(k, raising=False)
for k, v in env.items():
monkeypatch.setenv(k, v)
@@ -256,8 +256,8 @@ def test_every_driver_invocation_carries_the_env_flags(monkeypatch, ws, tmp_path
"""Review-3 S4 (V7c): the combined single-boot build probes under the SAME
settle / camera-repair / auto-exposure flags as the standalone probe and
render paths — it used to pass none of them."""
- import codeverse.languages.scene_threejs as st
- import codeverse.spatial.probes as probes_mod
+ import codeverse3d.languages.scene_threejs as st
+ import codeverse3d.spatial.probes as probes_mod
captured: dict[str, list[str]] = {}
@@ -267,7 +267,7 @@ def test_every_driver_invocation_carries_the_env_flags(monkeypatch, ws, tmp_path
monkeypatch.setattr(probes_mod, "run_scene_script", fake_run)
monkeypatch.setattr(rs_mod, "run_scene_script", fake_run)
- for k in ("CV3D_SETTLE", "CV3D_CAMERA_REPAIR", "CV3D_AUTO_EXPOSURE"):
+ for k in ("C3D_SETTLE", "C3D_CAMERA_REPAIR", "C3D_AUTO_EXPOSURE"):
monkeypatch.delenv(k, raising=False)
# defaults: camera repair ON everywhere, settle on (no flag), exposure off
@@ -281,8 +281,8 @@ def test_every_driver_invocation_carries_the_env_flags(monkeypatch, ws, tmp_path
assert _flags(captured["render_scene.mjs"]) == ["--camera-repair"]
# the A/B words reach every path, including the combined build
- monkeypatch.setenv("CV3D_SETTLE", "0")
- monkeypatch.setenv("CV3D_CAMERA_REPAIR", "false")
+ monkeypatch.setenv("C3D_SETTLE", "0")
+ monkeypatch.setenv("C3D_CAMERA_REPAIR", "false")
st._probe_and_preflight(ws, timeout_s=5.0)
assert _flags(captured["probe_scene.mjs"]) == ["--no-settle"]
probes_mod.probe_scene(ws)
diff --git a/harness/tests/scene_runtime/test_runtime.py b/harness/tests/scene_runtime/test_runtime.py
index 52362fc9..68d42e7c 100644
--- a/harness/tests/scene_runtime/test_runtime.py
+++ b/harness/tests/scene_runtime/test_runtime.py
@@ -6,11 +6,11 @@ import json
import pytest
-from codeverse.contracts.common import Language
-from codeverse.languages import get_runtime
-from codeverse.languages.base import LanguageRuntime
-from codeverse.languages.scene_threejs import SceneThreeJsRuntime
-from codeverse.prompts import PROMPTS_DIR
+from codeverse3d.contracts.common import Language
+from codeverse3d.languages import get_runtime
+from codeverse3d.languages.base import LanguageRuntime
+from codeverse3d.languages.scene_threejs import SceneThreeJsRuntime
+from codeverse3d.prompts import PROMPTS_DIR
from tests.scene_runtime.conftest import needs_browser
@@ -65,8 +65,8 @@ def test_build_fails_on_import_error(starter_ws):
def test_build_interprets_combined_summary_offline(ws, monkeypatch):
"""One probe boot yields both gate reports, including the no-boot shape."""
- import codeverse.languages.scene_threejs as rt_mod
- from codeverse.spatial.render_scene import NodeResult
+ import codeverse3d.languages.scene_threejs as rt_mod
+ from codeverse3d.spatial.render_scene import NodeResult
calls: list[list[str]] = []
@@ -82,7 +82,7 @@ def test_build_interprets_combined_summary_offline(ws, monkeypatch):
], "warnings": [], "compile": {"ms": 3, "programs": 4, "custom_materials": 1}, "duration_ms": 9},
}, 5)
- import codeverse.spatial.render_scene as rs_mod
+ import codeverse3d.spatial.render_scene as rs_mod
monkeypatch.setattr(rs_mod, "run_scene_script", fake_run)
res = rt_mod.SceneThreeJsRuntime().build(ws)
assert len(calls) == 1 and calls[0][0] == "probe_scene.mjs" and "--compile" in calls[0]
@@ -113,8 +113,8 @@ def test_build_interprets_combined_summary_offline(ws, monkeypatch):
def test_probe_crash_leaves_no_stale_probe_outputs(ws, monkeypatch):
"""A probe crash removes prior outputs and publishes a failed build."""
- import codeverse.spatial.render_scene as rs_mod
- from codeverse.spatial.render_scene import SceneRenderError
+ import codeverse3d.spatial.render_scene as rs_mod
+ from codeverse3d.spatial.render_scene import SceneRenderError
for name in ("census.json", "scene_probe.json", "shader_preflight.json"):
(ws.artifacts / name).write_text('{"stale": true}')
diff --git a/harness/tests/scene_runtime/test_scene_driver_retry.py b/harness/tests/scene_runtime/test_scene_driver_retry.py
index b80d70f0..e9c514df 100644
--- a/harness/tests/scene_runtime/test_scene_driver_retry.py
+++ b/harness/tests/scene_runtime/test_scene_driver_retry.py
@@ -12,9 +12,9 @@ from __future__ import annotations
import pytest
-import codeverse.spatial.render_scene as RS
-from codeverse.spatial.node import NodeResult
-from codeverse.spatial.render_scene import SceneRenderError, run_scene_script
+import codeverse3d.spatial.render_scene as RS
+from codeverse3d.spatial.node import NodeResult
+from codeverse3d.spatial.render_scene import SceneRenderError, run_scene_script
DETACHED = "render failed: Attempted to use detached Frame '10276B428E350BFA074A02AF37D52E6C'."
@@ -43,8 +43,8 @@ def test_a_lost_browser_is_retried_on_an_owned_browser(monkeypatch):
r = run_scene_script("render_scene.mjs", ["--ws", "x"], timeout_s=10)
assert r.summary["n_views"] == 8, "the second attempt's result is the one returned"
assert len(envs) == 2, "a browser loss must be retried"
- assert envs[0].get("CV3D_BROWSER_REUSE") is None
- assert envs[1]["CV3D_BROWSER_REUSE"] == "off", "the retry must not reuse the browser that died"
+ assert envs[0].get("C3D_BROWSER_REUSE") is None
+ assert envs[1]["C3D_BROWSER_REUSE"] == "off", "the retry must not reuse the browser that died"
def test_a_scene_that_failed_is_not_retried(monkeypatch):
@@ -84,7 +84,7 @@ def test_a_driver_that_exits_0_with_no_summary_is_retried(monkeypatch):
])
r = run_scene_script("probe_scene.mjs", ["--ws", "x"], timeout_s=10)
assert r.summary["boot"]["ok"] is True
- assert len(envs) == 2 and envs[1]["CV3D_BROWSER_REUSE"] == "off"
+ assert len(envs) == 2 and envs[1]["C3D_BROWSER_REUSE"] == "off"
def test_a_driver_that_answered_is_not_retried_for_a_failing_verdict(monkeypatch):
@@ -105,4 +105,4 @@ def test_a_transient_host_failure_is_retried_on_the_same_browser(monkeypatch):
])
r = run_scene_script("render_scene.mjs", ["--ws", "x"], timeout_s=10)
assert r.summary["n_views"] == 8 and len(envs) == 2
- assert envs[1].get("CV3D_BROWSER_REUSE") is None, "a timeout is not a browser loss"
+ assert envs[1].get("C3D_BROWSER_REUSE") is None, "a timeout is not a browser loss"
diff --git a/harness/tests/scene_runtime/test_skeleton.py b/harness/tests/scene_runtime/test_skeleton.py
index 61290d43..1b68e8b6 100644
--- a/harness/tests/scene_runtime/test_skeleton.py
+++ b/harness/tests/scene_runtime/test_skeleton.py
@@ -2,9 +2,9 @@
from __future__ import annotations
-from codeverse.contracts.plan import AssetPlan, BBox, CameraPlan, ScenePlan, ZonePlan
-from codeverse.languages.scene_threejs import STARTER_DIR, lint, write_example, write_skeleton
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.plan import AssetPlan, BBox, CameraPlan, ScenePlan, ZonePlan
+from codeverse3d.languages.scene_threejs import STARTER_DIR, lint, write_example, write_skeleton
+from codeverse3d.workspace import Workspace
from tests.scene_runtime.conftest import needs_node
@@ -76,7 +76,7 @@ def test_both_skeleton_paths_ship_the_effect_library(tmp_path):
PRODUCTION path. It shipped `PATTERN_FILES` only, so a planned run would have
carried the effects catalog in its prompt with no `src/lib/` to import from —
every `from './lib/grass.js'` an agent wrote would have been a build error."""
- from codeverse.languages.scene_threejs import lib_files
+ from codeverse3d.languages.scene_threejs import lib_files
names = {p.name for p in lib_files()}
assert len(names) >= 40 and "grass.js" in names and "shader.js" in names
@@ -94,7 +94,7 @@ def test_the_library_is_harness_owned_so_an_agent_cannot_rewrite_it():
HARNESS_OWNED_SRC is what makes `_enforce_scope` revert a session's write to
it — the same protection `src/recipes.glsl` has had since 2026-08-26, when a
seeded file the agent COULD rewrite was measured gone by the end of the run."""
- from codeverse.contracts.common import HARNESS_OWNED_SRC, Language, is_harness_owned
+ from codeverse3d.contracts.common import HARNESS_OWNED_SRC, Language, is_harness_owned
owned = HARNESS_OWNED_SRC[Language.SCENE_THREEJS]
assert owned == ("src/lib/",)
@@ -115,7 +115,7 @@ def test_the_lint_does_not_judge_the_library_as_agent_code(tmp_path):
node-only font fallback imports `node:module` / `node:fs/promises` / `node:url`,
which the browser half never reaches) plus 12 "large file" WARNs telling the
agent to split files it does not own — a red gate on every scene run."""
- from codeverse.contracts.artifacts import Severity
+ from codeverse3d.contracts.artifacts import Severity
ws = Workspace(tmp_path / "ws")
write_example(ws)
@@ -129,9 +129,9 @@ def test_the_effects_catalog_reaches_the_scene_prompts_and_only_those():
"""A catalog the prompt never carries teaches nothing (the same failure the
inlined cookbook chapters exist for). It is keyed on LANGUAGE: a blender
asset session inside a scene run must not be told to import three.js modules."""
- from codeverse.contracts.common import Language
- from codeverse.prompts import PROMPTS_DIR
- from codeverse.tracks.prompting import effects_catalog_text
+ from codeverse3d.contracts.common import Language
+ from codeverse3d.prompts import PROMPTS_DIR
+ from codeverse3d.tracks.prompting import effects_catalog_text
text = effects_catalog_text(Language.SCENE_THREEJS)
assert "makeGrass" in text and "makeCanopy" in text and "lib/shader.js" in text
@@ -152,8 +152,8 @@ def test_every_call_the_catalog_advertises_is_a_real_export():
`instanceAll`, `hash` are none of them exports here)."""
import re
- from codeverse.languages.scene_threejs import lib_files
- from codeverse.prompts import PROMPTS_DIR
+ from codeverse3d.languages.scene_threejs import lib_files
+ from codeverse3d.prompts import PROMPTS_DIR
exports: set[str] = set()
modules = {p.name for p in lib_files()}
diff --git a/harness/tests/skills/conftest.py b/harness/tests/skills/conftest.py
index 7bc2a3f3..78f6c68a 100644
--- a/harness/tests/skills/conftest.py
+++ b/harness/tests/skills/conftest.py
@@ -11,7 +11,7 @@ from pathlib import Path
import pytest
-from codeverse.skills.registry import ROUTED_SKILLS
+from codeverse3d.skills.registry import ROUTED_SKILLS
FRONTMATTER = """---
name: {name}
@@ -54,6 +54,6 @@ def library_dir(tmp_path: Path) -> Path:
@pytest.fixture
def library(library_dir: Path) -> dict:
- from codeverse.skills import all_skills
+ from codeverse3d.skills import all_skills
return all_skills(library_dir, strict=True)
diff --git a/harness/tests/skills/data/gate_findings.json b/harness/tests/skills/data/gate_findings.json
index a2cd48a5..a1dd0b54 100644
--- a/harness/tests/skills/data/gate_findings.json
+++ b/harness/tests/skills/data/gate_findings.json
@@ -23,7 +23,7 @@
"message": "GLB has no mesh parts",
"n": 0,
"kind": "connectivity/no_geometry",
- "origin": "codeverse source (gate not yet represented in bench/out)"
+ "origin": "codeverse3d source (gate not yet represented in bench/out)"
},
{
"gate": "connectivity",
@@ -31,7 +31,7 @@
"message": "no part touches the ground (z=0)",
"n": 0,
"kind": "connectivity/no_ground_contact",
- "origin": "codeverse source (gate not yet represented in bench/out)"
+ "origin": "codeverse3d source (gate not yet represented in bench/out)"
},
{
"gate": "connectivity",
@@ -102,7 +102,7 @@
"message": "scene geometry exceeds the planned bounds by x +2.1 m",
"n": 0,
"kind": "contract/scene_bounds",
- "origin": "codeverse source (gate not yet represented in bench/out)"
+ "origin": "codeverse3d source (gate not yet represented in bench/out)"
},
{
"gate": "detail_drift",
@@ -208,7 +208,7 @@
"message": "GLSL declares/reads uTime but JS never binds it (uniforms: { uTime: { value: 0 } } and update .value in update(t))",
"n": 0,
"kind": "shader/compile_or_binding",
- "origin": "codeverse source (gate not yet represented in bench/out)"
+ "origin": "codeverse3d source (gate not yet represented in bench/out)"
},
{
"gate": "lint:urdf",
@@ -300,7 +300,7 @@
"message": "ShaderMaterial 'Water' ignores scene.fog (set fog: true, merge THREE.UniformsLib.fog, include fog_pars_fragment/fog_fragment)",
"n": 0,
"kind": "shader/compile_or_binding",
- "origin": "codeverse source (gate not yet represented in bench/out)"
+ "origin": "codeverse3d source (gate not yet represented in bench/out)"
},
{
"gate": "shader_preflight",
@@ -308,7 +308,7 @@
"message": "ShaderMaterial 'Water' reads uTime but uniforms.uTime is missing",
"n": 0,
"kind": "shader/compile_or_binding",
- "origin": "codeverse source (gate not yet represented in bench/out)"
+ "origin": "codeverse3d source (gate not yet represented in bench/out)"
}
]
}
\ No newline at end of file
diff --git a/harness/tests/skills/test_budget.py b/harness/tests/skills/test_budget.py
index 3869bfe8..89f05e11 100644
--- a/harness/tests/skills/test_budget.py
+++ b/harness/tests/skills/test_budget.py
@@ -18,8 +18,8 @@ import itertools
import pytest
-from codeverse.skills import all_skills, bundle_dirs, select, skills_dir
-from codeverse.skills.prompting import index_block, index_tokens
+from codeverse3d.skills import all_skills, bundle_dirs, select, skills_dir
+from codeverse3d.skills.prompting import index_block, index_tokens
pytestmark = pytest.mark.skipif(not bundle_dirs(), reason=f"no bundles in {skills_dir()} yet")
diff --git a/harness/tests/skills/test_config.py b/harness/tests/skills/test_config.py
index 2e40ddee..06ff644b 100644
--- a/harness/tests/skills/test_config.py
+++ b/harness/tests/skills/test_config.py
@@ -2,15 +2,15 @@
``tracks/plan_features.py`` exists because a wave A/B'd a switch nothing read and printed
"keep, mean delta +0.344" for two byte-identical arms. These tests are what keep
-``CV3D_SKILLS`` from becoming that switch.
+``C3D_SKILLS`` from becoming that switch.
"""
from __future__ import annotations
import pytest
-from codeverse.skills import config as C
-from codeverse.tracks import plan_features as F
+from codeverse3d.skills import config as C
+from codeverse3d.tracks import plan_features as F
def test_off_by_default(monkeypatch):
@@ -45,5 +45,5 @@ def test_the_switches_are_registered_as_live_not_dead():
for env in (C.SKILLS_ENV, C.SKILLS_MAX_ENV, C.SKILLS_UNVERIFIED_ENV):
assert env in F.LIVE_SWITCHES, f"{env} must be declared so ab_plan accepts an arm using it"
assert env not in F.DEAD_SWITCHES
- assert F.LIVE_SWITCHES[env] == "codeverse/skills/config.py"
+ assert F.LIVE_SWITCHES[env] == "codeverse3d/skills/config.py"
assert F.dead_env_keys({C.SKILLS_ENV: "on"}) == []
diff --git a/harness/tests/skills/test_contract_agreement.py b/harness/tests/skills/test_contract_agreement.py
index 599f9a01..f4f55b0b 100644
--- a/harness/tests/skills/test_contract_agreement.py
+++ b/harness/tests/skills/test_contract_agreement.py
@@ -7,19 +7,19 @@ from pathlib import Path
import pytest
-from codeverse.conventions import CONTACT_GAP_M
-from codeverse.prompts.catalog import PROMPT_DIRS
-from codeverse.skills import bundle_dirs, iter_skills, skills_dir
-from codeverse.skills.registry import ROUTES
-from codeverse.spatial.connectivity import PENETRATION_WARN_M
+from codeverse3d.conventions import CONTACT_GAP_M
+from codeverse3d.prompts.catalog import PROMPT_DIRS
+from codeverse3d.skills import bundle_dirs, iter_skills, skills_dir
+from codeverse3d.skills.registry import ROUTES
+from codeverse3d.spatial.connectivity import PENETRATION_WARN_M
HARNESS = Path(__file__).resolve().parents[2]
-PROMPTS = HARNESS / "codeverse" / "prompts"
+PROMPTS = HARNESS / "codeverse3d" / "prompts"
CONTRACTS = sorted(PROMPTS.glob("*/contract.md"))
BUNDLES = bundle_dirs()
SKILLS = list(iter_skills()) if BUNDLES else []
-#: prompts/<dir> per language id — codeverse.prompts.catalog owns the mapping
+#: prompts/<dir> per language id — codeverse3d.prompts.catalog owns the mapping
#: (urdf_blender's docs live under prompts/urdf)
_DIR_FOR_LANG = {k.value: v for k, v in PROMPT_DIRS.items()}
diff --git a/harness/tests/skills/test_delivery.py b/harness/tests/skills/test_delivery.py
index 63cc72f8..7b71e649 100644
--- a/harness/tests/skills/test_delivery.py
+++ b/harness/tests/skills/test_delivery.py
@@ -10,7 +10,7 @@ from __future__ import annotations
import pytest
-from codeverse.skills.prompting import (
+from codeverse3d.skills.prompting import (
AGENTS_SKILL_ROOT,
CLAUDE_SKILL_ROOT,
delivery_for,
@@ -54,11 +54,11 @@ def test_claude_code_reads_its_own_root_and_nobody_else_does():
@pytest.mark.parametrize("kind", known_backends())
def test_every_consumer_agrees_with_the_policy(kind):
"""`prompting` must not re-derive what `delivery` decides — one source, or they drift."""
- from codeverse.skills.prompting import NATIVE_LOADERS, skill_path
+ from codeverse3d.skills.prompting import NATIVE_LOADERS, skill_path
d = delivery_for(kind)
assert (kind in NATIVE_LOADERS) is d.native_loader
- assert skill_path("cv3d-x", agent_kind=kind) == f"{d.root}/cv3d-x/SKILL.md"
+ assert skill_path("c3d-x", agent_kind=kind) == f"{d.root}/c3d-x/SKILL.md"
def test_adding_a_backend_is_one_row():
@@ -66,7 +66,7 @@ def test_adding_a_backend_is_one_row():
delivery.py, this catches it. `prompting` may name the backends it re-exports."""
import pathlib
- root = pathlib.Path(__file__).resolve().parents[2] / "codeverse"
+ root = pathlib.Path(__file__).resolve().parents[2] / "codeverse3d"
names = ("claude-code", "gemini-cli", "codex")
offenders = []
for py in (root / "skills").rglob("*.py"):
diff --git a/harness/tests/skills/test_delivery_reaches_the_session.py b/harness/tests/skills/test_delivery_reaches_the_session.py
index 063d3202..034db05b 100644
--- a/harness/tests/skills/test_delivery_reaches_the_session.py
+++ b/harness/tests/skills/test_delivery_reaches_the_session.py
@@ -1,6 +1,6 @@
"""A routed bundle only exists if a GENERATING session is told about it.
-The read loop measured cv3d-scene-composition / -lighting / -motion at 0 opens out of 3
+The read loop measured c3d-scene-composition / -lighting / -motion at 0 opens out of 3
listings each and read it as a wording problem. It was not: the scene track did all of
its baseline generation in ``prepare()`` — the env, zones and compose stages called
``tracks.generation.generate`` directly — while ``skills_hook.attach_for_round`` was only
@@ -22,22 +22,22 @@ from collections import Counter
import pytest
-from codeverse.contracts.common import Language, Track
-from codeverse.contracts.plan import ScenePlan
-from codeverse.proc import EventLog, read_jsonl_lenient
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.common import Language, Track
+from codeverse3d.contracts.plan import ScenePlan
+from codeverse3d.proc import EventLog, read_jsonl_lenient
+from codeverse3d.workspace import Workspace
@pytest.fixture
def scene_run(tmp_path, monkeypatch):
- from codeverse.config import Settings
- from codeverse.tracks.planner import plan_example
- from codeverse.tracks.scene import SceneTrack
+ from codeverse3d.config import Settings
+ from codeverse3d.tracks.planner import plan_example
+ from codeverse3d.tracks.scene import SceneTrack
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import FakeAgent, FakeJudge, FakeRuntime, FakeServices
from tests.orchestrator_tracks.test_tracks import _planner, _scene_writer
- monkeypatch.setenv("CV3D_SKILLS", "1")
+ monkeypatch.setenv("C3D_SKILLS", "1")
plan = ScenePlan.model_validate(plan_example(Track.SCENE))
plan.assets = [a for a in plan.assets if a.kind == "threejs"]
for z in plan.zones:
@@ -64,11 +64,11 @@ def test_every_scene_generation_stage_gets_skills_before_its_sessions(scene_run)
{"env": 1, "zone": 1, "compose": 1}
)
assert all(sum(e.get("kind") == kind for e in attachments) == 1 for kind in by_kind)
- assert {"cv3d-scene-composition", "cv3d-scene-lighting"} <= set(by_kind["env"]["skills"])
- assert {"cv3d-scene-composition", "cv3d-scene-motion", "cv3d-bbox-contract"} <= set(
+ assert {"c3d-scene-composition", "c3d-scene-lighting"} <= set(by_kind["env"]["skills"])
+ assert {"c3d-scene-composition", "c3d-scene-motion", "c3d-bbox-contract"} <= set(
by_kind["zone"]["skills"]
)
- assert {"cv3d-scene-composition", "cv3d-scene-motion"} <= set(by_kind["compose"]["skills"])
+ assert {"c3d-scene-composition", "c3d-scene-motion"} <= set(by_kind["compose"]["skills"])
def belongs(kind: str, event: dict) -> bool:
label = str(event.get("label", ""))
diff --git a/harness/tests/skills/test_end_to_end.py b/harness/tests/skills/test_end_to_end.py
index 6d83c484..ae4604ae 100644
--- a/harness/tests/skills/test_end_to_end.py
+++ b/harness/tests/skills/test_end_to_end.py
@@ -13,14 +13,14 @@ from pathlib import Path
import pytest
-from codeverse.config import Settings
-from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
-from codeverse.contracts.common import Language
-from codeverse.contracts.run import RunStatus
-from codeverse.skills.materialize import MARK_BEGIN
-from codeverse.skills.registry import ROUTED_SKILLS
-from codeverse.tracks.static_object import StaticObjectTrack
-from codeverse.workspace import Workspace
+from codeverse3d.config import Settings
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+from codeverse3d.contracts.common import Language
+from codeverse3d.contracts.run import RunStatus
+from codeverse3d.skills.materialize import MARK_BEGIN
+from codeverse3d.skills.registry import ROUTED_SKILLS
+from codeverse3d.tracks.static_object import StaticObjectTrack
+from codeverse3d.workspace import Workspace
from tests.orchestrator_tracks.conftest import chair_plan as _chair_plan
from tests.orchestrator_tracks.conftest import make_spec
from tests.orchestrator_tracks.fakes import (
@@ -73,7 +73,7 @@ def _repairing_writer(job, ws):
@pytest.fixture(autouse=True)
def _no_brief(monkeypatch):
"""The fake planner answers one canned plan; the optional brief call would eat it."""
- monkeypatch.setenv("CV3D_PLAN_BRIEF", "off")
+ monkeypatch.setenv("C3D_PLAN_BRIEF", "off")
@pytest.fixture
@@ -91,8 +91,8 @@ def run(tmp_path: Path, chair_plan, settings, monkeypatch):
lib = tmp_path / "library"
for name in ROUTED_SKILLS:
write_bundle(lib, name)
- monkeypatch.setenv("CV3D_SKILLS", "on")
- monkeypatch.setenv("CV3D_SKILLS_DIR", str(lib))
+ monkeypatch.setenv("C3D_SKILLS", "on")
+ monkeypatch.setenv("C3D_SKILLS_DIR", str(lib))
chair_plan.summary += " with a custom shader material"
ws = Workspace(tmp_path / "runs" / "chair")
agent = FakeAgent(_repairing_writer)
@@ -123,11 +123,11 @@ def test_enabled_run_delivers_routes_repairs_and_records_skills(run):
baseline = rec.rounds[0].skills.listed
refine = rec.rounds[1].skills.listed
# R11/R3: a threejs baseline gets the standing form + contact sheets, with no gate to react to
- assert "cv3d-threejs-forms" in baseline
+ assert "c3d-threejs-forms" in baseline
assert not any(x.reason.startswith("contract/") for x in rec.rounds[0].skills.reads)
- assert "cv3d-bbox-contract" in refine # R4: the contract gate fired in round 0
+ assert "c3d-bbox-contract" in refine # R4: the contract gate fired in round 0
reasons = {x.name: x.reason for x in rec.rounds[1].skills.reads}
- assert "contract/" in reasons["cv3d-bbox-contract"]
+ assert "contract/" in reasons["c3d-bbox-contract"]
keys = [k for k in rec.prompt_hashes if k.startswith("skill:")]
assert keys and all(rec.prompt_hashes[k] for k in keys)
@@ -137,12 +137,12 @@ def test_enabled_run_delivers_routes_repairs_and_records_skills(run):
assert len(rows) == 3 and all('"listed"' in r for r in rows)
repair = next(job for job in agent.jobs if job.kind == "repair")
- assert "cv3d-threejs-shader-traps" in repair.prompt
+ assert "c3d-threejs-shader-traps" in repair.prompt
assert rec.rounds[0].notes.startswith("repair attempts: 1/2 (fixed)")
def test_the_switch_off_leaves_no_trace(tmp_path, chair_plan, settings, monkeypatch):
- monkeypatch.delenv("CV3D_SKILLS", raising=False)
+ monkeypatch.delenv("C3D_SKILLS", raising=False)
ws = Workspace(tmp_path / "runs" / "chair_off")
track = StaticObjectTrack(services=FakeServices(contract_errors=1), judge=FakeJudge(scores=(0.55, 0.7, 0.85)),
agent=FakeAgent(_agent_writer),
diff --git a/harness/tests/skills/test_freshness.py b/harness/tests/skills/test_freshness.py
index 8e671902..fca3c2e4 100644
--- a/harness/tests/skills/test_freshness.py
+++ b/harness/tests/skills/test_freshness.py
@@ -11,9 +11,9 @@ from pathlib import Path
import pytest
-from codeverse.skills import bundle_dirs, iter_skills, skills_dir
-from codeverse.skills.registry import ROUTED_SKILLS, ROUTES
-from codeverse.spatial.registry import list_tools
+from codeverse3d.skills import bundle_dirs, iter_skills, skills_dir
+from codeverse3d.skills.registry import ROUTED_SKILLS, ROUTES
+from codeverse3d.spatial.registry import list_tools
BUNDLES = bundle_dirs()
SKILLS = list(iter_skills()) if BUNDLES else []
@@ -47,7 +47,7 @@ FOREIGN: dict[str, str] = {
# variables inside a bundle's own worked examples
"SEAT_T": "example constant", "SEAT_Z": "example constant",
"X_0": "example part name", "X_3": "example part name",
- "CV3D_SKILLS_UNVERIFIED": "our own switch, named in prose as an env var",
+ "C3D_SKILLS_UNVERIFIED": "our own switch, named in prose as an env var",
}
LIVE_TOOLS = {t.name for t in list_tools()}
@@ -55,7 +55,7 @@ LIVE_TOOLS = {t.name for t in list_tools()}
def _module_constants() -> set[str]:
out: set[str] = set()
- for p in (HARNESS / "codeverse").rglob("*.py"):
+ for p in (HARNESS / "codeverse3d").rglob("*.py"):
for m in re.finditer(r"^([A-Z][A-Z0-9_]*)\s*[:=]", p.read_text(errors="ignore"), re.M):
out.add(m.group(1))
return out
@@ -65,7 +65,7 @@ LIVE_CONSTANTS = _module_constants()
def _live_gate_kinds() -> set[str]:
- from codeverse.skills import registry
+ from codeverse3d.skills import registry
return {v for k, v in vars(registry).items()
if k.isupper() and isinstance(v, str) and "/" in v}
@@ -86,7 +86,7 @@ def _live_vocabulary() -> set[str]:
day a name is renamed out of the codebase.
"""
words: set[str] = set()
- for root, exts in ((HARNESS / "codeverse", {".py", ".md", ".j2", ".yaml", ".yml", ".toml"}),
+ for root, exts in ((HARNESS / "codeverse3d", {".py", ".md", ".j2", ".yaml", ".yml", ".toml"}),
(HARNESS.parent / "eval" / "bench", {".py", ".yaml", ".yml"}), # battery + prompt ids a bundle cites
(HARNESS / "runtime_js", {".js", ".mjs", ".glsl", ".json"})):
if not root.is_dir():
@@ -94,8 +94,8 @@ def _live_vocabulary() -> set[str]:
for p in root.rglob("*"):
if (not p.is_file() or p.suffix not in exts or "out" in p.parts
or "node_modules" in p.parts or "__pycache__" in p.parts
- or p.parent.name.startswith("cv3d-") or "_claims" in p.parts
- or p.parent.parent.name.startswith("cv3d-")):
+ or p.parent.name.startswith("c3d-") or "_claims" in p.parts
+ or p.parent.parent.name.startswith("c3d-")):
continue
words |= set(re.findall(r"[A-Za-z_][A-Za-z0-9_]*", p.read_text(errors="ignore")))
out = HARNESS.parent / "eval" / "bench" / "out"
@@ -138,7 +138,7 @@ def _defined_callables() -> set[str]:
"""Every function the harness itself defines — python source plus the cookbooks'
fenced snippets (a bundle may tell the agent to call ``radial_array`` by name)."""
out: set[str] = set()
- for root, pattern in ((HARNESS / "codeverse", "*.py"), (HARNESS / "codeverse" / "prompts", "*.md")):
+ for root, pattern in ((HARNESS / "codeverse3d", "*.py"), (HARNESS / "codeverse3d" / "prompts", "*.md")):
for p in root.rglob(pattern):
if "__pycache__" not in p.parts:
out |= set(_DEF_RE.findall(p.read_text(errors="ignore")))
@@ -187,7 +187,7 @@ def test_every_bundle_document_only_cites_live_vocabulary():
unknown = sorted(set(_CONST.findall(prose)) - LIVE_CONSTANTS - FOREIGN.keys())
assert not unknown, f"{label} names unknown constants: {unknown}"
- siblings = set(re.findall(r"\bcv3d-[a-z0-9-]+\b", raw))
+ siblings = set(re.findall(r"\bc3d-[a-z0-9-]+\b", raw))
assert siblings <= have, f"{label} points at missing skills: {sorted(siblings - have)}"
@@ -206,9 +206,9 @@ def _cookbook_sections_named_by(s) -> tuple[str, ...]:
def test_every_named_cookbook_section_exists():
"""T4's other half: a skill may point at the cookbook, never invent a heading."""
- from codeverse.prompts import load_text
- from codeverse.prompts.catalog import PROMPT_DIRS
- from codeverse.prompts.sections import split_sections
+ from codeverse3d.prompts import load_text
+ from codeverse3d.prompts.catalog import PROMPT_DIRS
+ from codeverse3d.prompts.sections import split_sections
# the language-id → prompts/<dir> mapping has ONE home now (prompts/catalog.py);
# this test used to import the third of its copies
@@ -234,7 +234,7 @@ def test_every_named_cookbook_section_exists():
def test_every_live_constant_named_by_a_skill_has_a_claim():
- from codeverse.addons.skill_targets import load_claims
+ from codeverse3d.addons.skill_targets import load_claims
for s in SKILLS:
pinned = {
diff --git a/harness/tests/skills/test_hook.py b/harness/tests/skills/test_hook.py
index 5a268984..837a7d6e 100644
--- a/harness/tests/skills/test_hook.py
+++ b/harness/tests/skills/test_hook.py
@@ -12,9 +12,9 @@ from types import SimpleNamespace as NS
import pytest
-from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
-from codeverse.skills import config as C
-from codeverse.tracks import skills_hook as H
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+from codeverse3d.skills import config as C
+from codeverse3d.tracks import skills_hook as H
class Events(list):
@@ -28,7 +28,7 @@ def ctx(tmp_path: Path, library_dir: Path, monkeypatch):
root.mkdir()
for name in ("AGENTS.md", "GEMINI.md", "CLAUDE.md"):
(root / name).write_text("# body\n")
- monkeypatch.setenv("CV3D_SKILLS_DIR", str(library_dir))
+ monkeypatch.setenv("C3D_SKILLS_DIR", str(library_dir))
parts = [NS(name=f"P{i}", instances=1, symmetry="none", children=[]) for i in range(3)]
hashes: dict[str, str] = {}
return NS(ws=NS(root=root), spec=NS(track=NS(value="static_object")), language=NS(value="blender"),
@@ -72,8 +72,8 @@ def test_the_previous_rounds_findings_route_the_repair_sheet(ctx, monkeypatch):
(rounds / "r00.json").write_text(json.dumps(rec))
got = H.attach_for_round(ctx, index=1, kind="repair")
- assert "cv3d-part-contact" in got.listed
- assert "connectivity/floating_part" in got.reasons["cv3d-part-contact"]
+ assert "c3d-part-contact" in got.listed
+ assert "connectivity/floating_part" in got.reasons["c3d-part-contact"]
assert got.selections[0].gate_fired
@@ -90,7 +90,7 @@ def test_repair_pointers_name_the_skill_that_answers_the_current_lint(ctx, monke
gate="lint:blender", severity=Severity.WARN,
message="src/parts/trigger.py is never imported by src/model.py → its part is not built")])
text = H.repair_pointers(ctx, lint)
- assert "cv3d-blender-forms" in text
+ assert "c3d-blender-forms" in text
def test_single_shot_inlines_one_body_into_every_task(ctx, monkeypatch):
@@ -119,7 +119,7 @@ def test_an_agent_session_never_gets_an_inlined_body(ctx, monkeypatch):
def test_a_broken_library_costs_the_skills_not_the_round(ctx, monkeypatch, caplog):
monkeypatch.setenv(C.SKILLS_ENV, "on")
- monkeypatch.setenv("CV3D_SKILLS_DIR", "/definitely/not/a/directory")
+ monkeypatch.setenv("C3D_SKILLS_DIR", "/definitely/not/a/directory")
with caplog.at_level("WARNING"):
got = H.attach_for_round(ctx, index=0, kind="baseline")
assert got is not None and got.listed == [] # routed nothing, wrote nothing, raised nothing
@@ -129,7 +129,7 @@ def test_a_failed_attach_clears_the_previous_rounds_set(ctx, monkeypatch):
"""Otherwise round N+1 probes round N's bundles and reports reads it never earned."""
monkeypatch.setenv(C.SKILLS_ENV, "on")
assert H.attach_for_round(ctx, index=0, kind="baseline")
- monkeypatch.setattr("codeverse.skills.attach_skills",
+ monkeypatch.setattr("codeverse3d.skills.attach_skills",
lambda *a, **k: (_ for _ in ()).throw(RuntimeError("boom")))
assert H.attach_for_round(ctx, index=1, kind="refine") is None
assert H.record_usage(ctx, index=1, kind="refine") is None
@@ -138,5 +138,5 @@ def test_a_failed_attach_clears_the_previous_rounds_set(ctx, monkeypatch):
def test_a_probe_failure_is_logged_not_raised(ctx, monkeypatch):
monkeypatch.setenv(C.SKILLS_ENV, "on")
H.attach_for_round(ctx, index=0, kind="baseline")
- monkeypatch.setattr("codeverse.skills.telemetry.probe_reads", lambda *a, **k: (_ for _ in ()).throw(OSError("boom")))
+ monkeypatch.setattr("codeverse3d.skills.telemetry.probe_reads", lambda *a, **k: (_ for _ in ()).throw(OSError("boom")))
assert H.record_usage(ctx, index=0, kind="baseline") is None
diff --git a/harness/tests/skills/test_library.py b/harness/tests/skills/test_library.py
index af5b3d64..f65d28ab 100644
--- a/harness/tests/skills/test_library.py
+++ b/harness/tests/skills/test_library.py
@@ -8,9 +8,9 @@ from collections import defaultdict
import pytest
-from codeverse.addons.skill_targets import check_claims, claim_bases, load_claims
-from codeverse.skills import bundle_dirs, iter_skills, skills_dir, validate_bundle
-from codeverse.skills.registry import ROUTES
+from codeverse3d.addons.skill_targets import check_claims, claim_bases, load_claims
+from codeverse3d.skills import bundle_dirs, iter_skills, skills_dir, validate_bundle
+from codeverse3d.skills.registry import ROUTES
BUNDLES = bundle_dirs()
SKILLS = list(iter_skills()) if BUNDLES else []
diff --git a/harness/tests/skills/test_live_discovery.py b/harness/tests/skills/test_live_discovery.py
index 382403a1..7663d5d0 100644
--- a/harness/tests/skills/test_live_discovery.py
+++ b/harness/tests/skills/test_live_discovery.py
@@ -16,10 +16,10 @@ from pathlib import Path
import pytest
-from codeverse.agents.registry import get_coding_agent
-from codeverse.contracts.agent import AgentJob
-from codeverse.skills.materialize import materialize_skills
-from codeverse.skills.telemetry import probe_reads
+from codeverse3d.agents.registry import get_coding_agent
+from codeverse3d.contracts.agent import AgentJob
+from codeverse3d.skills.materialize import materialize_skills
+from codeverse3d.skills.telemetry import probe_reads
from tests.skills.conftest import write_bundle
pytestmark = pytest.mark.live
@@ -50,22 +50,22 @@ def test_the_cli_discovers_and_opens_a_materialised_skill(tmp_path: Path, kind:
(ws / name).write_text("# 3dcode workspace\n\nRead this file before acting.\n")
lib = tmp_path / "library"
- write_bundle(lib, "cv3d-live-probe",
+ write_bundle(lib, "c3d-live-probe",
description="Answer the magic-word question. Use when a task asks for the magic word.",
body="Read `references/magic.md` and reply with the word it contains.",
references={"magic.md": f"The magic word is {MAGIC}.\n"})
- from codeverse.skills import load_skill
- from codeverse.skills.materialize import write_index
- from codeverse.skills.prompting import index_block
+ from codeverse3d.skills import load_skill
+ from codeverse3d.skills.materialize import write_index
+ from codeverse3d.skills.prompting import index_block
- skill = load_skill("cv3d-live-probe", lib)
+ skill = load_skill("c3d-live-probe", lib)
materialize_skills(ws, [skill])
write_index(ws, index_block([skill], kind))
res = agent.run(AgentJob(workspace=str(ws), prompt=PROMPT, spatial_tools=False,
max_turns=8, timeout_s=300, label="skills_live"))
- from codeverse.skills.model import Selection, SkillsMaterialized
+ from codeverse3d.skills.model import Selection, SkillsMaterialized
got = SkillsMaterialized(
listed=[skill.name],
diff --git a/harness/tests/skills/test_loader.py b/harness/tests/skills/test_loader.py
index c7425205..93a84e31 100644
--- a/harness/tests/skills/test_loader.py
+++ b/harness/tests/skills/test_loader.py
@@ -6,8 +6,8 @@ from pathlib import Path
import pytest
-from codeverse.skills import all_skills, bundle_dirs, iter_skills, load_skill
-from codeverse.skills.model import (
+from codeverse3d.skills import all_skills, bundle_dirs, iter_skills, load_skill
+from codeverse3d.skills.model import (
BODY_MAX_LINES,
SkillError,
parse_skill,
@@ -18,19 +18,19 @@ from tests.skills.conftest import write_bundle
def test_parses_frontmatter_body_and_references(tmp_path: Path):
- d = write_bundle(tmp_path, "cv3d-demo", description="What it does. When to use it.",
+ d = write_bundle(tmp_path, "c3d-demo", description="What it does. When to use it.",
references={"traps.md": "x\n", "table.md": "y\n"})
s = parse_skill(d)
- assert s.name == "cv3d-demo" and s.dir == d and s.path == d / "SKILL.md"
+ assert s.name == "c3d-demo" and s.dir == d and s.path == d / "SKILL.md"
assert s.description.startswith("What it does")
assert s.license == "Apache-2.0" and s.evidence == "measured" and s.verified == "2026-08-25"
assert s.references == ("references/table.md", "references/traps.md")
assert s.body_tokens > 0 and s.body_lines >= 1
- assert s.ref().name == "cv3d-demo"
+ assert s.ref().name == "c3d-demo"
def test_a_directory_argument_finds_the_skill_file(tmp_path: Path):
- d = write_bundle(tmp_path, "cv3d-demo")
+ d = write_bundle(tmp_path, "c3d-demo")
assert parse_skill(d).name == parse_skill(d / "SKILL.md").name
@@ -38,17 +38,17 @@ def test_a_directory_argument_finds_the_skill_file(tmp_path: Path):
("no frontmatter at all\n", "missing YAML frontmatter"),
("---\nname: [1, 2]\n---\nbody\n", "must match"),
("---\ndescription: only this\n---\nbody\n", "no `name`"),
- ("---\nname: cv3d-demo\n---\nbody\n", "no `description`"),
- ("---\nname: cv3d-demo\ndescription: d\nwhen_to_use: x\n---\nbody\n", "unknown frontmatter key"),
- ("---\nname: cv3d-demo\ndescription: use <script> tags\n---\nbody\n", "prompt-injection"),
- ("---\nname: cv3d_demo\ndescription: d\n---\nbody\n", "must match"),
- ("---\nname: cv3d--demo\ndescription: d\n---\nbody\n", "must match"),
- ("---\nname: Cv3d-Demo\ndescription: d\n---\nbody\n", "must match"),
+ ("---\nname: c3d-demo\n---\nbody\n", "no `description`"),
+ ("---\nname: c3d-demo\ndescription: d\nwhen_to_use: x\n---\nbody\n", "unknown frontmatter key"),
+ ("---\nname: c3d-demo\ndescription: use <script> tags\n---\nbody\n", "prompt-injection"),
+ ("---\nname: c3d_demo\ndescription: d\n---\nbody\n", "must match"),
+ ("---\nname: c3d--demo\ndescription: d\n---\nbody\n", "must match"),
+ ("---\nname: C3d-Demo\ndescription: d\n---\nbody\n", "must match"),
("---\n- a\n- b\n---\nbody\n", "must be a YAML mapping"),
- ("---\nname: cv3d-demo\ndescription: d\nmetadata:\n a:\n b: c\n---\nbody\n", "must be a scalar"),
+ ("---\nname: c3d-demo\ndescription: d\nmetadata:\n a:\n b: c\n---\nbody\n", "must be a scalar"),
])
def test_malformed_frontmatter_is_rejected_with_a_reason(tmp_path: Path, text: str, expect: str):
- d = tmp_path / "cv3d-demo"
+ d = tmp_path / "c3d-demo"
d.mkdir()
(d / "SKILL.md").write_text(text)
with pytest.raises(SkillError, match=expect):
@@ -56,17 +56,17 @@ def test_malformed_frontmatter_is_rejected_with_a_reason(tmp_path: Path, text: s
def test_name_must_equal_the_directory_name(tmp_path: Path):
- d = tmp_path / "cv3d-elsewhere"
+ d = tmp_path / "c3d-elsewhere"
d.mkdir()
- (d / "SKILL.md").write_text("---\nname: cv3d-demo\ndescription: d\n---\nbody\n")
+ (d / "SKILL.md").write_text("---\nname: c3d-demo\ndescription: d\n---\nbody\n")
with pytest.raises(SkillError, match="directory name"):
parse_skill(d)
def test_description_length_is_the_spec_limit(tmp_path: Path):
- d = tmp_path / "cv3d-demo"
+ d = tmp_path / "c3d-demo"
d.mkdir()
- (d / "SKILL.md").write_text(f"---\nname: cv3d-demo\ndescription: {'x' * 1025}\n---\nbody\n")
+ (d / "SKILL.md").write_text(f"---\nname: c3d-demo\ndescription: {'x' * 1025}\n---\nbody\n")
with pytest.raises(SkillError, match="1024"):
parse_skill(d)
@@ -77,7 +77,7 @@ def test_split_frontmatter_keeps_the_body_verbatim():
def test_validate_reports_budget_evidence_and_layout(tmp_path: Path):
- d = write_bundle(tmp_path, "cv3d-big", evidence="guesswork", body="x\n" * (BODY_MAX_LINES + 5))
+ d = write_bundle(tmp_path, "c3d-big", evidence="guesswork", body="x\n" * (BODY_MAX_LINES + 5))
(d / "references" / "deeper").mkdir()
(d / "references" / "deeper" / "x.md").write_text("nope")
issues = " | ".join(validate_bundle(d))
@@ -85,55 +85,55 @@ def test_validate_reports_budget_evidence_and_layout(tmp_path: Path):
def test_validate_flags_a_symlink_because_codex_refuses_them(tmp_path: Path):
- d = write_bundle(tmp_path, "cv3d-demo")
+ d = write_bundle(tmp_path, "c3d-demo")
(d / "references" / "link.md").symlink_to(d / "SKILL.md")
assert any("symlink" in i for i in validate_bundle(d))
def test_validate_wants_a_verified_date(tmp_path: Path):
- d = tmp_path / "cv3d-demo"
+ d = tmp_path / "c3d-demo"
d.mkdir()
- (d / "SKILL.md").write_text("---\nname: cv3d-demo\ndescription: d\nmetadata:\n evidence: measured\n---\nbody\n")
+ (d / "SKILL.md").write_text("---\nname: c3d-demo\ndescription: d\nmetadata:\n evidence: measured\n---\nbody\n")
assert any("verified" in i for i in validate_bundle(d))
def test_a_clean_bundle_has_no_issues(tmp_path: Path):
- assert validate_bundle(write_bundle(tmp_path, "cv3d-demo")) == []
+ assert validate_bundle(write_bundle(tmp_path, "c3d-demo")) == []
def test_iteration_skips_modules_dunder_dirs_and_claims(tmp_path: Path):
- write_bundle(tmp_path, "cv3d-demo")
+ write_bundle(tmp_path, "c3d-demo")
(tmp_path / "_claims").mkdir()
- (tmp_path / "_claims" / "cv3d-demo.toml").write_text("")
+ (tmp_path / "_claims" / "c3d-demo.toml").write_text("")
(tmp_path / "__pycache__").mkdir()
(tmp_path / "loader.py").write_text("x = 1\n")
(tmp_path / "not-a-bundle").mkdir()
- assert [p.name for p in bundle_dirs(tmp_path)] == ["cv3d-demo"]
- assert list(all_skills(tmp_path)) == ["cv3d-demo"]
+ assert [p.name for p in bundle_dirs(tmp_path)] == ["c3d-demo"]
+ assert list(all_skills(tmp_path)) == ["c3d-demo"]
def test_a_broken_bundle_is_skipped_not_fatal_but_strict_raises(tmp_path: Path, caplog):
- write_bundle(tmp_path, "cv3d-good")
- bad = tmp_path / "cv3d-bad"
+ write_bundle(tmp_path, "c3d-good")
+ bad = tmp_path / "c3d-bad"
bad.mkdir()
(bad / "SKILL.md").write_text("no frontmatter\n")
with caplog.at_level("WARNING"):
- assert [s.name for s in iter_skills(tmp_path)] == ["cv3d-good"]
- assert any("cv3d-bad" in r.getMessage() for r in caplog.records)
+ assert [s.name for s in iter_skills(tmp_path)] == ["c3d-good"]
+ assert any("c3d-bad" in r.getMessage() for r in caplog.records)
with pytest.raises(SkillError):
list(iter_skills(tmp_path, strict=True))
def test_load_skill_by_name(tmp_path: Path):
- write_bundle(tmp_path, "cv3d-demo")
- assert load_skill("cv3d-demo", tmp_path).name == "cv3d-demo"
+ write_bundle(tmp_path, "c3d-demo")
+ assert load_skill("c3d-demo", tmp_path).name == "c3d-demo"
with pytest.raises(SkillError, match="no skill"):
- load_skill("cv3d-missing", tmp_path)
+ load_skill("c3d-missing", tmp_path)
def test_the_library_dir_is_overridable_for_tests_and_the_live_smoke(tmp_path: Path, monkeypatch):
- from codeverse.skills import SKILLS_DIR_ENV, skills_dir
+ from codeverse3d.skills import SKILLS_DIR_ENV, skills_dir
- write_bundle(tmp_path, "cv3d-demo")
+ write_bundle(tmp_path, "c3d-demo")
monkeypatch.setenv(SKILLS_DIR_ENV, str(tmp_path))
assert skills_dir() == tmp_path
diff --git a/harness/tests/skills/test_materialize_prompting.py b/harness/tests/skills/test_materialize_prompting.py
index 9c5398b7..e6861de1 100644
--- a/harness/tests/skills/test_materialize_prompting.py
+++ b/harness/tests/skills/test_materialize_prompting.py
@@ -13,7 +13,7 @@ from pathlib import Path
import pytest
-from codeverse.skills.materialize import (
+from codeverse3d.skills.materialize import (
BODY_FILES,
MARK_BEGIN,
MARK_END,
@@ -22,7 +22,7 @@ from codeverse.skills.materialize import (
materialize_skills,
write_index,
)
-from codeverse.skills.prompting import (
+from codeverse3d.skills.prompting import (
MANDATE,
NATIVE_LOADERS,
index_block,
@@ -30,7 +30,7 @@ from codeverse.skills.prompting import (
inline_body,
repair_pointers,
)
-from codeverse.skills.registry import select
+from codeverse3d.skills.registry import select
@pytest.fixture
@@ -50,7 +50,7 @@ def _plan(n=3):
# --------------------------------------------------------------------------- files
def test_bundles_land_in_both_discovery_roots_as_real_files(ws, library):
- skills = [library["cv3d-part-contact"], library["cv3d-blender-forms"]]
+ skills = [library["c3d-part-contact"], library["c3d-blender-forms"]]
written = materialize_skills(ws, skills)
for root in SKILL_ROOTS:
for s in skills:
@@ -69,76 +69,76 @@ def test_a_never_routed_control_bundle_goes_in_beside_the_real_ones(ws, library)
opened it was not the agent choosing to read a skill — git's own diff does it, and so
does every CLI's activation. Without this the read rate would report 100% forever.
"""
- from codeverse.skills.materialize import CONTROL_NAME
+ from codeverse3d.skills.materialize import CONTROL_NAME
- materialize_skills(ws, [library["cv3d-part-contact"]])
+ materialize_skills(ws, [library["c3d-part-contact"]])
for root in SKILL_ROOTS:
d = ws / root / CONTROL_NAME
assert (d / "SKILL.md").is_file() and (d / "references" / "control.md").is_file()
- assert CONTROL_NAME not in index_block([library["cv3d-part-contact"]], "api-agent")
- from codeverse.skills.registry import ROUTED_SKILLS
+ assert CONTROL_NAME not in index_block([library["c3d-part-contact"]], "api-agent")
+ from codeverse3d.skills.registry import ROUTED_SKILLS
assert CONTROL_NAME not in ROUTED_SKILLS
def test_the_control_survives_a_reroute_and_never_counts_as_a_stale_bundle(ws, library):
- from codeverse.skills.materialize import CONTROL_NAME
+ from codeverse3d.skills.materialize import CONTROL_NAME
- materialize_skills(ws, [library["cv3d-part-contact"], library["cv3d-bbox-contract"]])
- materialize_skills(ws, [library["cv3d-bbox-contract"]])
+ materialize_skills(ws, [library["c3d-part-contact"], library["c3d-bbox-contract"]])
+ materialize_skills(ws, [library["c3d-bbox-contract"]])
for root in SKILL_ROOTS:
assert (ws / root / CONTROL_NAME / "SKILL.md").is_file()
- assert not (ws / root / "cv3d-part-contact").exists()
+ assert not (ws / root / "c3d-part-contact").exists()
def test_nothing_in_a_materialised_tree_is_a_symlink_because_codex_refuses_them(ws, library):
- materialize_skills(ws, [library["cv3d-part-contact"]])
+ materialize_skills(ws, [library["c3d-part-contact"]])
for root in SKILL_ROOTS:
assert not any(p.is_symlink() for p in (ws / root).rglob("*"))
def test_atime_equals_mtime_after_writing_so_the_read_probe_has_a_zero_point(ws, library):
- for p in materialize_skills(ws, [library["cv3d-part-contact"]]):
+ for p in materialize_skills(ws, [library["c3d-part-contact"]]):
st = os.stat(p)
assert abs(st.st_atime - st.st_mtime) < 0.001
def test_a_skill_that_is_no_longer_routed_is_removed_from_the_workspace(ws, library):
- materialize_skills(ws, [library["cv3d-part-contact"], library["cv3d-blender-forms"]])
- materialize_skills(ws, [library["cv3d-part-contact"]])
+ materialize_skills(ws, [library["c3d-part-contact"], library["c3d-blender-forms"]])
+ materialize_skills(ws, [library["c3d-part-contact"]])
for root in SKILL_ROOTS:
- assert (ws / root / "cv3d-part-contact").is_dir()
- assert not (ws / root / "cv3d-blender-forms").exists()
+ assert (ws / root / "c3d-part-contact").is_dir()
+ assert not (ws / root / "c3d-blender-forms").exists()
def test_an_empty_selection_still_sweeps_last_rounds_bundles(ws, library):
"""attach_skills' empty-selection early return used to skip the sweep entirely:
last round's bundles stayed live in both discovery roots, where the native CLIs
discover skills by directory (V4b). An empty route is a legal desired set."""
- materialize_skills(ws, [library["cv3d-part-contact"]])
+ materialize_skills(ws, [library["c3d-part-contact"]])
out = attach_skills(ws, track="static_object", language="threejs", kind="generation",
agent_kind="claude-code", library={})
assert out.listed == []
for root in SKILL_ROOTS:
- assert not (ws / root / "cv3d-part-contact").exists(), f"stale bundle survived in {root}"
+ assert not (ws / root / "c3d-part-contact").exists(), f"stale bundle survived in {root}"
# --------------------------------------------------------------------------- prompt text
def test_native_loader_backends_get_one_sentence_and_no_second_index(library):
- skills = [library["cv3d-part-contact"], library["cv3d-bbox-contract"]]
+ skills = [library["c3d-part-contact"], library["c3d-bbox-contract"]]
for kind in NATIVE_LOADERS:
text = index_block(skills, kind)
assert MANDATE in text
- assert "cv3d-part-contact" not in text, f"{kind} would be double-indexed"
+ assert "c3d-part-contact" not in text, f"{kind} would be double-indexed"
assert index_tokens(skills, kind) < 60
def test_api_agent_gets_the_index_it_cannot_discover(library):
"""And it is told the set was ROUTED, not offered: our router already filtered it on
inputs the agent cannot see, so "the ones that match your task" would only lose reads."""
- from codeverse.skills.prompting import MANDATE_ROUTED
+ from codeverse3d.skills.prompting import MANDATE_ROUTED
- skills = [library["cv3d-part-contact"], library["cv3d-bbox-contract"]]
+ skills = [library["c3d-part-contact"], library["c3d-bbox-contract"]]
text = index_block(skills, "api-agent")
assert MANDATE_ROUTED in text and MANDATE not in text
for s in skills:
@@ -150,19 +150,19 @@ def test_an_empty_route_adds_no_text_at_all(library):
def test_claude_code_is_pointed_at_its_own_root(library):
- text = index_block([library["cv3d-part-contact"]], "unknown-backend")
+ text = index_block([library["c3d-part-contact"]], "unknown-backend")
assert ".agents/skills/" in text
- from codeverse.skills.prompting import skill_path
+ from codeverse3d.skills.prompting import skill_path
- assert skill_path("cv3d-x", agent_kind="claude-code") == ".claude/skills/cv3d-x/SKILL.md"
+ assert skill_path("c3d-x", agent_kind="claude-code") == ".claude/skills/c3d-x/SKILL.md"
def test_repair_pointers_name_only_the_gate_fired_skills(library):
sel = select("static_object", "blender", "repair", signals={"multi_part": True},
findings=["connectivity/interpenetration"], library=library)
text = repair_pointers(sel)
- assert "cv3d-part-contact" in text and "connectivity/interpenetration" in text
- assert "cv3d-blender-forms" not in text # standing rows are already in the workspace
+ assert "c3d-part-contact" in text and "connectivity/interpenetration" in text
+ assert "c3d-blender-forms" not in text # standing rows are already in the workspace
assert repair_pointers([]) == ""
@@ -170,20 +170,20 @@ def test_inline_body_picks_the_highest_priority_body_and_respects_the_cap(librar
sel = select("static_object", "blender", "repair", signals={"multi_part": True},
findings=["connectivity/interpenetration"], library=library)
name, text = inline_body(sel)
- assert name == "cv3d-part-contact" and "cv3d-part-contact" in text
+ assert name == "c3d-part-contact" and "c3d-part-contact" in text
assert inline_body(sel, max_tokens=0) == ("", "")
# --------------------------------------------------------------------------- the section
def test_the_index_is_written_into_every_body_file_and_is_replaceable(ws, library):
- write_index(ws, index_block([library["cv3d-part-contact"]], "api-agent"))
+ write_index(ws, index_block([library["c3d-part-contact"]], "api-agent"))
for name in BODY_FILES:
body = (ws / name).read_text()
- assert MARK_BEGIN in body and MARK_END in body and "cv3d-part-contact" in body
+ assert MARK_BEGIN in body and MARK_END in body and "c3d-part-contact" in body
assert body.startswith("# 3dcode workspace")
- write_index(ws, index_block([library["cv3d-bbox-contract"]], "api-agent"))
+ write_index(ws, index_block([library["c3d-bbox-contract"]], "api-agent"))
body = (ws / "AGENTS.md").read_text()
- assert body.count(MARK_BEGIN) == 1 and "cv3d-part-contact" not in body and "cv3d-bbox-contract" in body
+ assert body.count(MARK_BEGIN) == 1 and "c3d-part-contact" not in body and "c3d-bbox-contract" in body
write_index(ws, "")
assert MARK_BEGIN not in (ws / "AGENTS.md").read_text()
@@ -199,8 +199,8 @@ def test_attach_routes_writes_and_reports(ws, library):
allow_unverified=False)
assert got.listed and got.paths and got.index_tokens > 0
assert set(got.reasons) == set(got.listed)
- assert all("cv3d-" in p for p in got.paths)
- assert "cv3d-part-contact" in (ws / "AGENTS.md").read_text()
+ assert all("c3d-" in p for p in got.paths)
+ assert "c3d-part-contact" in (ws / "AGENTS.md").read_text()
assert got.inlined == ""
diff --git a/harness/tests/skills/test_only_switch.py b/harness/tests/skills/test_only_switch.py
index 7335ccf4..9e6df153 100644
--- a/harness/tests/skills/test_only_switch.py
+++ b/harness/tests/skills/test_only_switch.py
@@ -1,6 +1,6 @@
-"""``CV3D_SKILLS_ONLY``: route exactly one bundle, so an effect A/B can attribute its delta.
+"""``C3D_SKILLS_ONLY``: route exactly one bundle, so an effect A/B can attribute its delta.
-``CV3D_SKILLS=1`` routes up to five bundles. A delta measured against that is a delta of
+``C3D_SKILLS=1`` routes up to five bundles. A delta measured against that is a delta of
the SET, and the wave's question is per bundle. The switch restricts the LIBRARY rather
than filtering the selection afterwards, and the difference is testable: with a filter,
the cap could spend its slots on higher-priority sheets and drop the one under test.
@@ -10,8 +10,8 @@ from __future__ import annotations
import pytest
-from codeverse.skills.config import SKILLS_ONLY_ENV, skills_only
-from codeverse.skills.materialize import attach_skills
+from codeverse3d.skills.config import SKILLS_ONLY_ENV, skills_only
+from codeverse3d.skills.materialize import attach_skills
class _Part:
@@ -39,10 +39,10 @@ def _listed(ws, **kw):
def test_unset_routes_the_whole_set(ws):
listed = _listed(ws)
assert len(listed) > 1
- assert "cv3d-bbox-contract" in listed
+ assert "c3d-bbox-contract" in listed
[email protected]("name", ["cv3d-bbox-contract", "cv3d-blender-forms", "cv3d-repeats-and-mirrors"])
[email protected]("name", ["c3d-bbox-contract", "c3d-blender-forms", "c3d-repeats-and-mirrors"])
def test_only_routes_exactly_that_bundle(ws, name):
assert _listed(ws, only=frozenset({name})) == [name]
@@ -51,21 +51,21 @@ def test_the_cap_cannot_drop_the_bundle_under_test(ws):
"""The reason it restricts the library and not the selection. bbox-contract ranks
below blender-forms and part-contact in the default set, so a max of 1 applied to the
FULL routing would hand back somebody else's bundle."""
- assert _listed(ws, max_skills=1)[0] != "cv3d-bbox-contract"
- assert _listed(ws, only=frozenset({"cv3d-bbox-contract"}), max_skills=1) == ["cv3d-bbox-contract"]
+ assert _listed(ws, max_skills=1)[0] != "c3d-bbox-contract"
+ assert _listed(ws, only=frozenset({"c3d-bbox-contract"}), max_skills=1) == ["c3d-bbox-contract"]
def test_a_bundle_its_own_rules_do_not_fire_for_is_still_not_routed(ws):
"""`only` narrows what MAY be routed; it never forces an attachment. urdf-joints has
no row that fires on a blender static_object, so the arm attaches nothing — and an A/B
on it would correctly measure no difference rather than a fabricated one."""
- assert _listed(ws, only=frozenset({"cv3d-urdf-joints"})) == []
+ assert _listed(ws, only=frozenset({"c3d-urdf-joints"})) == []
def test_an_unknown_name_attaches_nothing_rather_than_everything(ws, caplog):
"""A typo must make the variant visibly identical to its control, not silently
measure the full five-bundle set."""
- assert _listed(ws, only=frozenset({"cv3d-typo"})) == []
+ assert _listed(ws, only=frozenset({"c3d-typo"})) == []
assert SKILLS_ONLY_ENV in caplog.text
@@ -74,12 +74,12 @@ def test_the_switch_is_read_at_call_time(ws, monkeypatch):
control's library — the failure mode that printed 'keep, +0.344' for identical arms."""
monkeypatch.delenv(SKILLS_ONLY_ENV, raising=False)
assert skills_only() == frozenset()
- monkeypatch.setenv(SKILLS_ONLY_ENV, " cv3d-bbox-contract , ")
- assert skills_only() == frozenset({"cv3d-bbox-contract"})
- assert _listed(ws) == ["cv3d-bbox-contract"], "attach_skills must consult the env when only= is omitted"
+ monkeypatch.setenv(SKILLS_ONLY_ENV, " c3d-bbox-contract , ")
+ assert skills_only() == frozenset({"c3d-bbox-contract"})
+ assert _listed(ws) == ["c3d-bbox-contract"], "attach_skills must consult the env when only= is omitted"
def test_the_switch_is_registered_live():
- from codeverse.tracks.plan_features import LIVE_SWITCHES
+ from codeverse3d.tracks.plan_features import LIVE_SWITCHES
assert SKILLS_ONLY_ENV in LIVE_SWITCHES, "an unregistered switch is one ab_plan calls dead"
diff --git a/harness/tests/skills/test_packaging.py b/harness/tests/skills/test_packaging.py
index a39a7e5b..b988e8e8 100644
--- a/harness/tests/skills/test_packaging.py
+++ b/harness/tests/skills/test_packaging.py
@@ -19,12 +19,12 @@ from pathlib import Path
import pytest
HARNESS = Path(__file__).resolve().parents[2]
-PROBE = "cv3d-packaging-probe"
+PROBE = "c3d-packaging-probe"
def test_package_data_declares_the_skill_tree():
data = tomllib.loads((HARNESS / "pyproject.toml").read_text())
- globs = data["tool"]["setuptools"]["package-data"]["codeverse"]
+ globs = data["tool"]["setuptools"]["package-data"]["codeverse3d"]
assert "skills/**/*" in globs
@@ -32,8 +32,8 @@ def test_package_data_declares_the_skill_tree():
def test_a_built_wheel_actually_contains_the_bundles(tmp_path: Path):
"""Builds a real wheel. A probe bundle is added when the library is still empty, so
the guarantee is proven now rather than the first time a bundle lands."""
- probe = HARNESS / "codeverse" / "skills" / PROBE
- existing = [p.name for p in (HARNESS / "codeverse" / "skills").iterdir()
+ probe = HARNESS / "codeverse3d" / "skills" / PROBE
+ existing = [p.name for p in (HARNESS / "codeverse3d" / "skills").iterdir()
if p.is_dir() and (p / "SKILL.md").is_file()]
made_probe = False
try:
@@ -51,16 +51,16 @@ def test_a_built_wheel_actually_contains_the_bundles(tmp_path: Path):
names = set(zipfile.ZipFile(whl).namelist())
want = [PROBE] if made_probe else sorted(existing)
for name in want:
- assert f"codeverse/skills/{name}/SKILL.md" in names, (
+ assert f"codeverse3d/skills/{name}/SKILL.md" in names, (
f"{name} is in the source tree and NOT in the wheel: "
f"{sorted(n for n in names if 'skills' in n)[:20]}")
- refs = [n for n in names if n.startswith(f"codeverse/skills/{name}/references/")]
+ refs = [n for n in names if n.startswith(f"codeverse3d/skills/{name}/references/")]
assert refs, f"{name}: references/ must ship too — it is the depth probe"
if not made_probe:
# every claims file too: `3dcode skills validate` runs against an installed wheel
- claims = sorted((HARNESS / "codeverse" / "skills" / "_claims").glob("*.toml"))
+ claims = sorted((HARNESS / "codeverse3d" / "skills" / "_claims").glob("*.toml"))
for c in claims:
- assert f"codeverse/skills/_claims/{c.name}" in names, f"{c.name} missing from the wheel"
+ assert f"codeverse3d/skills/_claims/{c.name}" in names, f"{c.name} missing from the wheel"
assert not any(n.endswith(".pyc") for n in names if "skills" in n)
finally:
if made_probe:
@@ -73,6 +73,6 @@ def test_the_library_resolves_through_importlib_resources_not_just___file__():
"""An installed wheel has no source tree; ``skills_dir`` must still find the bundles."""
from importlib.resources import files
- from codeverse.skills import skills_dir
+ from codeverse3d.skills import skills_dir
- assert Path(str(files("codeverse.skills"))) == skills_dir()
+ assert Path(str(files("codeverse3d.skills"))) == skills_dir()
diff --git a/harness/tests/skills/test_registry.py b/harness/tests/skills/test_registry.py
index 3bd76fb4..bba2918e 100644
--- a/harness/tests/skills/test_registry.py
+++ b/harness/tests/skills/test_registry.py
@@ -5,7 +5,7 @@ from __future__ import annotations
import json
from pathlib import Path
-from codeverse.skills.registry import ROUTED_SKILLS, ROUTES, Route, finding_kind, finding_kinds
+from codeverse3d.skills.registry import ROUTED_SKILLS, ROUTES, Route, finding_kind, finding_kinds
DATA = Path(__file__).parent / "data" / "gate_findings.json"
GOLDEN = json.loads(DATA.read_text())["findings"]
@@ -53,7 +53,7 @@ def test_finding_kinds_accepts_reports_findings_and_strings():
# --------------------------------------------------------------------------- the table
#: Retired ids remain reserved because run records refer to routing decisions by id.
-RETIRED_RULES = {"R5": "cv3d-form-manifest, cut 2026-08-25 (read 2/19); docs/SKILLS_LEDGER.md"}
+RETIRED_RULES = {"R5": "c3d-form-manifest, cut 2026-08-25 (read 2/19); docs/SKILLS_LEDGER.md"}
def test_rule_ids_are_unique_and_the_design_numbers_are_all_present():
@@ -73,7 +73,7 @@ def test_every_routed_skill_is_actually_in_the_library():
A route naming an absent bundle is silently skipped by the router, so this would not
crash a run — it would just make the ledger describe routing that never happens."""
- from codeverse.skills import all_skills
+ from codeverse3d.skills import all_skills
assert not (set(r.skill for r in ROUTES) - set(all_skills()))
@@ -90,7 +90,7 @@ def test_every_row_carries_a_reason_and_a_known_skill():
for r in ROUTES:
assert r.why and len(r.why) > 20, r.rule
assert r.skill in ROUTED_SKILLS
- assert r.skill.startswith("cv3d-")
+ assert r.skill.startswith("c3d-")
def test_route_finding_patterns_are_real_kinds_or_families():
@@ -103,7 +103,7 @@ def test_route_finding_patterns_are_real_kinds_or_families():
def test_matches_finding_supports_exact_and_family_patterns():
- row = Route("X", "cv3d-part-contact", 95, findings=("connectivity/*", "joint_sweep/link_overlap"))
+ row = Route("X", "c3d-part-contact", 95, findings=("connectivity/*", "joint_sweep/link_overlap"))
assert row.matches_finding(["connectivity/floating_part"]) == "connectivity/floating_part"
assert row.matches_finding(["joint_sweep/link_overlap"]) == "joint_sweep/link_overlap"
assert row.matches_finding(["joint_sweep/disconnected"]) is None
diff --git a/harness/tests/skills/test_router.py b/harness/tests/skills/test_router.py
index b834df3c..3791f7c4 100644
--- a/harness/tests/skills/test_router.py
+++ b/harness/tests/skills/test_router.py
@@ -10,8 +10,8 @@ from types import SimpleNamespace as NS
import pytest
-from codeverse.skills.model import EVIDENCE_INHERITED
-from codeverse.skills.registry import QUIET_KINDS, plan_signals, select, skills_for
+from codeverse3d.skills.model import EVIDENCE_INHERITED
+from codeverse3d.skills.registry import QUIET_KINDS, plan_signals, select, skills_for
from tests.skills.conftest import write_bundle
@@ -48,7 +48,7 @@ def test_a_repair_round_spends_its_budget_on_what_broke(library):
signals=plan_signals(static_plan()),
findings=["connectivity/interpenetration", "contract/part_bbox"],
library=library, max_skills=2)
- assert [s.name for s in got] == ["cv3d-part-contact", "cv3d-bbox-contract"]
+ assert [s.name for s in got] == ["c3d-part-contact", "c3d-bbox-contract"]
assert all(s.gate_fired for s in got)
assert "R2" in got[0].rules and "connectivity/interpenetration" in got[0].reason
@@ -71,7 +71,7 @@ def test_quiet_kinds_attach_nothing_unless_a_gate_fired(library):
assert select("scene", "scene_threejs", kind, signals=plan_signals(static_plan()), library=library) == []
fired = select("scene", "scene_threejs", kind, signals=plan_signals(static_plan()),
findings=["scene_frames/dark_or_flat"], library=library)
- assert [s.name for s in fired] == ["cv3d-scene-lighting"]
+ assert [s.name for s in fired] == ["c3d-scene-lighting"]
# R2 is scoped to repair/refine/rebuild, so a connectivity finding does NOT
# reopen an asset session
assert select("static_object", "blender", kind, signals=plan_signals(static_plan()),
@@ -79,60 +79,60 @@ def test_quiet_kinds_attach_nothing_unless_a_gate_fired(library):
def test_inherited_unverified_bundles_are_off_until_the_switch_says_otherwise(library_dir):
- from codeverse.skills import all_skills
+ from codeverse3d.skills import all_skills
- write_bundle(library_dir, "cv3d-cadquery-forms", evidence=EVIDENCE_INHERITED)
+ write_bundle(library_dir, "c3d-cadquery-forms", evidence=EVIDENCE_INHERITED)
lib = all_skills(library_dir, strict=True)
off = skills_for("static_object", "cadquery", "baseline", plan=static_plan(), library=lib)
on = skills_for("static_object", "cadquery", "baseline", plan=static_plan(), library=lib, allow_unverified=True)
- assert "cv3d-cadquery-forms" not in [s.name for s in off]
- assert "cv3d-cadquery-forms" in [s.name for s in on]
+ assert "c3d-cadquery-forms" not in [s.name for s in off]
+ assert "c3d-cadquery-forms" in [s.name for s in on]
def test_a_single_part_plan_does_not_get_the_contact_sheet(library):
one = skills_for("static_object", "blender", "baseline", plan=static_plan(1), library=library)
many = skills_for("static_object", "blender", "baseline", plan=static_plan(3), library=library)
- assert "cv3d-part-contact" not in [s.name for s in one]
- assert "cv3d-part-contact" in [s.name for s in many]
+ assert "c3d-part-contact" not in [s.name for s in one]
+ assert "c3d-part-contact" in [s.name for s in many]
def test_repeats_skill_needs_instances_or_symmetry(library):
plain = skills_for("static_object", "blender", "baseline", plan=static_plan(), library=library)
mirrored = skills_for("static_object", "blender", "baseline", plan=static_plan(symmetry="mirror_x"), library=library)
- assert "cv3d-repeats-and-mirrors" not in [s.name for s in plain]
- assert "cv3d-repeats-and-mirrors" in [s.name for s in mirrored]
+ assert "c3d-repeats-and-mirrors" not in [s.name for s in plain]
+ assert "c3d-repeats-and-mirrors" in [s.name for s in mirrored]
def test_language_rows_do_not_leak_across_languages(library):
blender = [s.name for s in skills_for("static_object", "blender", "baseline", plan=static_plan(), library=library)]
- assert "cv3d-blender-forms" in blender and "cv3d-cadquery-forms" not in blender
+ assert "c3d-blender-forms" in blender and "c3d-cadquery-forms" not in blender
graphics = [s.name for s in skills_for("graphics", "glsl_shader", "baseline", library=library)]
- assert graphics == ["cv3d-glsl-craft"]
+ assert graphics == ["c3d-glsl-craft"]
def test_scene_gate_findings_route_the_matching_scene_skill(library):
- for finding, want in (("scene_frames/dark_or_flat", "cv3d-scene-lighting"),
- ("scene_frames/camera_placement", "cv3d-scene-composition"),
- ("gl_frames/motion_or_detail", "cv3d-scene-motion")):
+ for finding, want in (("scene_frames/dark_or_flat", "c3d-scene-lighting"),
+ ("scene_frames/camera_placement", "c3d-scene-composition"),
+ ("gl_frames/motion_or_detail", "c3d-scene-motion")):
got = select("scene", "scene_threejs", "repair", findings=[finding], library=library, max_skills=1)
assert got and got[0].name == want, finding
def test_a_route_row_without_a_bundle_is_skipped_not_a_crash(library_dir):
- from codeverse.skills import all_skills
+ from codeverse3d.skills import all_skills
- (library_dir / "cv3d-blender-forms" / "SKILL.md").unlink()
+ (library_dir / "c3d-blender-forms" / "SKILL.md").unlink()
lib = all_skills(library_dir)
got = [s.name for s in skills_for("static_object", "blender", "baseline", plan=static_plan(), library=lib)]
- assert got and "cv3d-blender-forms" not in got
+ assert got and "c3d-blender-forms" not in got
def test_selection_carries_the_rule_and_the_reason(library):
got = select("static_object", "blender", "baseline", signals=plan_signals(static_plan()), library=library)
by_name = {s.name: s for s in got}
- assert by_name["cv3d-part-contact"].rules == ("R1",)
- assert by_name["cv3d-part-contact"].reason.startswith("R1: ")
- assert not by_name["cv3d-part-contact"].gate_fired
+ assert by_name["c3d-part-contact"].rules == ("R1",)
+ assert by_name["c3d-part-contact"].reason.startswith("R1: ")
+ assert not by_name["c3d-part-contact"].gate_fired
@pytest.mark.parametrize("max_skills", [0, 1, 3])
diff --git a/harness/tests/skills/test_routing_property.py b/harness/tests/skills/test_routing_property.py
index 06c4441b..3b93bf1f 100644
--- a/harness/tests/skills/test_routing_property.py
+++ b/harness/tests/skills/test_routing_property.py
@@ -7,9 +7,9 @@ import random
import pytest
-from codeverse.skills import all_skills, bundle_dirs, select, skills_dir
-from codeverse.skills.model import EVIDENCE_INHERITED
-from codeverse.skills.registry import QUIET_KINDS, ROUTED_SKILLS, ROUTES, SIGNAL_KEYS
+from codeverse3d.skills import all_skills, bundle_dirs, select, skills_dir
+from codeverse3d.skills.model import EVIDENCE_INHERITED
+from codeverse3d.skills.registry import QUIET_KINDS, ROUTED_SKILLS, ROUTES, SIGNAL_KEYS
pytestmark = pytest.mark.skipif(not bundle_dirs(), reason=f"no bundles in {skills_dir()} yet")
@@ -142,7 +142,7 @@ def test_an_unverified_bundle_is_off_by_default_everywhere():
for track, language, kind in BASE_INPUTS:
got = {s.name for s in select(track, language, kind, signals={"multi_part": True},
library=LIBRARY, findings=LIVE_KINDS)}
- assert not (got & thin), f"{sorted(got & thin)} routed without CV3D_SKILLS_UNVERIFIED"
+ assert not (got & thin), f"{sorted(got & thin)} routed without C3D_SKILLS_UNVERIFIED"
def test_a_random_walk_of_mixed_findings_never_breaks_an_invariant():
diff --git a/harness/tests/skills/test_spec_compliance.py b/harness/tests/skills/test_spec_compliance.py
index 0350e834..67ff81c9 100644
--- a/harness/tests/skills/test_spec_compliance.py
+++ b/harness/tests/skills/test_spec_compliance.py
@@ -11,7 +11,7 @@ from pathlib import Path
import pytest
import yaml
-from codeverse.skills import bundle_dirs, skills_dir
+from codeverse3d.skills import bundle_dirs, skills_dir
BUNDLES = bundle_dirs()
pytestmark = pytest.mark.skipif(not BUNDLES, reason=f"no bundles in {skills_dir()} yet")
@@ -68,7 +68,7 @@ def test_every_bundle_conforms_to_the_raw_spec():
@pytest.mark.skipif(REF_VALIDATOR is None,
reason="the reference validator is not installed (pip install skills-ref)")
def test_reference_implementation_validates_and_agrees_with_our_loader():
- from codeverse.skills.model import parse_skill
+ from codeverse3d.skills.model import parse_skill
for bundle in BUNDLES:
result = subprocess.run(
diff --git a/harness/tests/skills/test_targets.py b/harness/tests/skills/test_targets.py
index 48cb4515..693f5b38 100644
--- a/harness/tests/skills/test_targets.py
+++ b/harness/tests/skills/test_targets.py
@@ -8,7 +8,7 @@ from pathlib import Path
import pytest
import yaml
-from codeverse.addons.skill_targets import (
+from codeverse3d.addons.skill_targets import (
BY_SKILL,
DIRECTIONS,
METRICS,
@@ -18,15 +18,15 @@ from codeverse.addons.skill_targets import (
gate_kinds_claimed,
target_for,
)
-from codeverse.skills import bundle_dirs, skills_dir
-from codeverse.skills.registry import ROUTED_SKILLS, finding_kind
+from codeverse3d.skills import bundle_dirs, skills_dir
+from codeverse3d.skills.registry import ROUTED_SKILLS, finding_kind
BUNDLES = bundle_dirs()
pytestmark = pytest.mark.skipif(not BUNDLES, reason=f"no bundles in {skills_dir()} yet")
def _live_kinds() -> set[str]:
- from codeverse.skills import registry
+ from codeverse3d.skills import registry
return {v for k, v in vars(registry).items()
if k.isupper() and isinstance(v, str) and "/" in v}
@@ -111,7 +111,7 @@ def test_3dcode_skills_list_shows_every_bundles_claim():
"""The ledger has to be visible from the CLI, or it is a document nobody opens."""
from typer.testing import CliRunner
- from codeverse.cli.main import app
+ from codeverse3d.cli.main import app
r = CliRunner().invoke(app, ["skills", "list"])
assert r.exit_code == 0
diff --git a/harness/tests/skills/test_telemetry.py b/harness/tests/skills/test_telemetry.py
index 8017ed07..33d8a2e6 100644
--- a/harness/tests/skills/test_telemetry.py
+++ b/harness/tests/skills/test_telemetry.py
@@ -13,8 +13,8 @@ from pathlib import Path
import pytest
-from codeverse.skills.materialize import attach_skills
-from codeverse.skills.telemetry import (
+from codeverse3d.skills.materialize import attach_skills
+from codeverse3d.skills.telemetry import (
SKILLS_FILE,
TELEMETRY_DIR,
append_usage,
@@ -83,10 +83,10 @@ def test_the_claude_copy_counts_too_because_claude_code_reads_only_that_root(ws,
def test_a_bundle_with_no_references_says_depth_is_unmeasurable(tmp_path, ws):
- from codeverse.skills import all_skills
+ from codeverse3d.skills import all_skills
lib_dir = tmp_path / "lib"
- write_bundle(lib_dir, "cv3d-part-contact", references={})
+ write_bundle(lib_dir, "c3d-part-contact", references={})
got = _attach(ws, all_skills(lib_dir, strict=True))
read = probe_reads(ws, got).reads[0]
assert read.deep_measurable is False and read.deep is False
@@ -103,10 +103,10 @@ def test_usage_is_appended_as_one_json_line_per_session(ws, library):
def test_the_control_bundle_is_materialised_and_starts_unread(ws, library):
- from codeverse.skills.materialize import CONTROL_NAME, materialize_skills
+ from codeverse3d.skills.materialize import CONTROL_NAME, materialize_skills
- materialize_skills(ws, [library["cv3d-part-contact"]])
- usage = probe_reads(ws, _materialized(library, "cv3d-part-contact"))
+ materialize_skills(ws, [library["c3d-part-contact"]])
+ usage = probe_reads(ws, _materialized(library, "c3d-part-contact"))
assert usage.control_present and not usage.control_read
assert usage.probe_trustworthy
assert CONTROL_NAME not in usage.listed
@@ -115,14 +115,14 @@ def test_the_control_bundle_is_materialised_and_starts_unread(ws, library):
def test_a_control_that_was_opened_makes_the_rate_unmeasurable(ws, library):
"""The whole point: a session where everything looks read is a session that measured
nothing, and it must say so instead of reporting a confident 100%."""
- from codeverse.skills.materialize import CONTROL_NAME, materialize_skills
- from codeverse.skills.prompting import AGENTS_SKILL_ROOT
+ from codeverse3d.skills.materialize import CONTROL_NAME, materialize_skills
+ from codeverse3d.skills.prompting import AGENTS_SKILL_ROOT
- materialize_skills(ws, [library["cv3d-part-contact"]])
- _touch(ws / AGENTS_SKILL_ROOT / "cv3d-part-contact" / "references" / "worked_example.md")
+ materialize_skills(ws, [library["c3d-part-contact"]])
+ _touch(ws / AGENTS_SKILL_ROOT / "c3d-part-contact" / "references" / "worked_example.md")
_touch(ws / AGENTS_SKILL_ROOT / CONTROL_NAME / "references" / "control.md")
- usage = probe_reads(ws, _materialized(library, "cv3d-part-contact"))
- assert usage.deep == ["cv3d-part-contact"] # the raw signal is still reported
+ usage = probe_reads(ws, _materialized(library, "c3d-part-contact"))
+ assert usage.deep == ["c3d-part-contact"] # the raw signal is still reported
assert usage.control_read and not usage.probe_trustworthy
assert usage.deep_read_rate is None # but the RATE refuses to lie
@@ -136,32 +136,32 @@ def test_git_diff_alone_trips_the_control(tmp_path, library): # noqa: PLR0915
"""
import subprocess
- from codeverse.skills.materialize import materialize_skills
+ from codeverse3d.skills.materialize import materialize_skills
ws = tmp_path / "ws"
(ws / "src").mkdir(parents=True)
subprocess.run(["git", "init", "-q"], cwd=ws, check=True)
subprocess.run(["git", "-c", "user.name=t", "-c", "user.email=t@t", "commit", "-q",
"--allow-empty", "-m", "init"], cwd=ws, check=True)
- for f in materialize_skills(ws, [library["cv3d-part-contact"]]):
+ for f in materialize_skills(ws, [library["c3d-part-contact"]]):
# back-date by more than ATIME_EPSILON_S: a real session lasts minutes, and the
# probe deliberately ignores an access within a second of the write
st = os.stat(f)
os.utime(f, (st.st_mtime - 10, st.st_mtime - 10))
- before = probe_reads(ws, _materialized(library, "cv3d-part-contact"))
+ before = probe_reads(ws, _materialized(library, "c3d-part-contact"))
assert before.probe_trustworthy, "materialisation alone must leave the control unread"
subprocess.run(["git", "add", "-A", "-N"], cwd=ws, check=True)
subprocess.run(["git", "diff", "--numstat", "HEAD"], cwd=ws, check=True, capture_output=True)
- after = probe_reads(ws, _materialized(library, "cv3d-part-contact"))
+ after = probe_reads(ws, _materialized(library, "c3d-part-contact"))
assert after.control_read, "git read every untracked file; the control must have caught it"
assert after.deep_read_rate is None
def _materialized(library, *names):
- from codeverse.skills.model import Selection, SkillsMaterialized
+ from codeverse3d.skills.model import Selection, SkillsMaterialized
sels = [Selection(skill=library[n], priority=50, rules=("R1",), reason="test") for n in names]
return SkillsMaterialized(listed=list(names), selections=sels)
diff --git a/harness/tests/spatial_tools/conftest.py b/harness/tests/spatial_tools/conftest.py
index db2d2579..e9d3083a 100644
--- a/harness/tests/spatial_tools/conftest.py
+++ b/harness/tests/spatial_tools/conftest.py
@@ -9,8 +9,8 @@ import numpy as np
import pytest
import trimesh
-from codeverse.spatial.registry import ToolContext
-from codeverse.workspace import Workspace
+from codeverse3d.spatial.registry import ToolContext
+from codeverse3d.workspace import Workspace
LEG_XZ = [(-0.15, -0.15), (0.15, -0.15), (-0.15, 0.15), (0.15, 0.15)]
FLOAT_GAP_M = 0.005
diff --git a/harness/tests/spatial_tools/test_complexity.py b/harness/tests/spatial_tools/test_complexity.py
index 328e2425..e0628252 100644
--- a/harness/tests/spatial_tools/test_complexity.py
+++ b/harness/tests/spatial_tools/test_complexity.py
@@ -10,14 +10,14 @@ import numpy as np
import pytest
import trimesh
-from codeverse.spatial.complexity import (
+from codeverse3d.spatial.complexity import (
COMPLEXITY_WEIGHTS,
ComplexityVector,
band_of,
complexity_of_glb,
complexity_of_parts,
)
-from codeverse.spatial.measure import measure_glb, part_meshes
+from codeverse3d.spatial.measure import measure_glb, part_meshes
def _export(path: Path, parts: dict[str, trimesh.Trimesh]) -> Path:
@@ -106,7 +106,7 @@ def test_silhouette_frame_beats_block(tmp_path: Path) -> None:
def test_deterministic(tmp_path: Path) -> None:
- import codeverse.spatial.measure as measure
+ import codeverse3d.spatial.measure as measure
glb = detailed_scene(tmp_path / "rich.glb")
first = complexity_of_glb(glb)
diff --git a/harness/tests/spatial_tools/test_connectivity.py b/harness/tests/spatial_tools/test_connectivity.py
index 3e6e7f40..de35b975 100644
--- a/harness/tests/spatial_tools/test_connectivity.py
+++ b/harness/tests/spatial_tools/test_connectivity.py
@@ -6,8 +6,8 @@ import numpy as np
import pytest
import trimesh
-from codeverse.contracts.artifacts import Severity
-from codeverse.spatial.connectivity import (
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.spatial.connectivity import (
PENETRATION_ERROR_M,
PENETRATION_MIN_FRACTION,
THROUGH_FAR_SIDE_RATIO,
@@ -114,7 +114,7 @@ def test_missing_glb_is_error(tmp_path: Path) -> None:
def test_pair_distance_sampled_fallback(monkeypatch: pytest.MonkeyPatch) -> None:
- import codeverse.spatial.joints_collide as collide
+ import codeverse3d.spatial.joints_collide as collide
monkeypatch.setattr(collide, "_fcl", None)
a = trimesh.creation.box(extents=(1, 1, 1))
diff --git a/harness/tests/spatial_tools/test_contract.py b/harness/tests/spatial_tools/test_contract.py
index 13e46b8a..ce9bb42d 100644
--- a/harness/tests/spatial_tools/test_contract.py
+++ b/harness/tests/spatial_tools/test_contract.py
@@ -4,10 +4,15 @@ from pathlib import Path
import pytest
-from codeverse.contracts.artifacts import GateFinding, Measurement, PartMeasure, Severity
-from codeverse.contracts.plan import BBox, CameraPlan, PartPlan, ScenePlan, StaticPlan, ZonePlan
-from codeverse.spatial.contract import check_contract, match_parts, plan_bbox_to_glb, planned_joins
-from codeverse.spatial.measure import measure_glb
+from codeverse3d.contracts.artifacts import GateFinding, Measurement, PartMeasure, Severity
+from codeverse3d.contracts.plan import BBox, CameraPlan, PartPlan, ScenePlan, StaticPlan, ZonePlan
+from codeverse3d.spatial.contract import (
+ check_contract,
+ match_parts,
+ plan_bbox_to_glb,
+ planned_joins,
+)
+from codeverse3d.spatial.measure import measure_glb
def _stool_plan(**overrides) -> StaticPlan:
diff --git a/harness/tests/spatial_tools/test_live_render.py b/harness/tests/spatial_tools/test_live_render.py
index 5f927ad6..3808f67e 100644
--- a/harness/tests/spatial_tools/test_live_render.py
+++ b/harness/tests/spatial_tools/test_live_render.py
@@ -8,13 +8,13 @@ from pathlib import Path
import pytest
from PIL import Image
-from codeverse.spatial.registry import ToolContext, get_tool
+from codeverse3d.spatial.registry import ToolContext, get_tool
pytestmark = pytest.mark.node
def test_render_views_and_silhouette_live(stool_ctx: ToolContext) -> None:
- pytest.importorskip("codeverse.spatial.render")
+ pytest.importorskip("codeverse3d.spatial.render")
obs = get_tool("render_views").call(stool_ctx, {"views": ["front", "top"], "size": 256})
assert obs.ok, obs.text
assert Path(obs.images[0]).is_file() and obs.numbers["views"] == ["front", "top"]
diff --git a/harness/tests/spatial_tools/test_mcp_server.py b/harness/tests/spatial_tools/test_mcp_server.py
index e147559e..0452aad7 100644
--- a/harness/tests/spatial_tools/test_mcp_server.py
+++ b/harness/tests/spatial_tools/test_mcp_server.py
@@ -11,8 +11,8 @@ import pytest
from PIL import Image
from pydantic import ValidationError
-from codeverse.spatial.mcp_server import build_context, encode_image, main, observation_content
-from codeverse.spatial.registry import Observation, ToolContext
+from codeverse3d.spatial.mcp_server import build_context, encode_image, main, observation_content
+from codeverse3d.spatial.registry import Observation, ToolContext
def test_build_context_infers_from_spec(stool_ctx: ToolContext) -> None:
@@ -48,7 +48,7 @@ def test_result_payload_is_bounded_by_outcome(tmp_path: Path) -> None:
40 000-char truncation does not fire for a multi-part MCP result."""
from PIL import Image
- from codeverse.spatial.mcp_server import MAX_TEXT_CHARS, max_images_for
+ from codeverse3d.spatial.mcp_server import MAX_TEXT_CHARS, max_images_for
pngs = []
for i in range(5):
@@ -73,7 +73,7 @@ def test_the_byte_bound_keeps_the_sheet_drops_the_rest_and_says_so(tmp_path: Pat
worst of both — and the text must say what did not come."""
from PIL import Image
- from codeverse.spatial.mcp_server import MAX_IMAGE_BYTES, encode_image
+ from codeverse3d.spatial.mcp_server import MAX_IMAGE_BYTES, encode_image
def noise(name: str, side: int) -> str:
rnd = __import__("random").Random(len(name))
@@ -108,7 +108,7 @@ def test_an_oversized_sheet_is_downscaled_not_dropped(tmp_path: Path) -> None:
is the sheet; it gets re-encoded smaller until it fits, and the text says so."""
from PIL import Image
- from codeverse.spatial.mcp_server import MAX_IMAGE_BYTES
+ from codeverse3d.spatial.mcp_server import MAX_IMAGE_BYTES
big = tmp_path / "sheet.png"
Image.effect_noise((1600, 4200), 90).convert("RGB").save(big) # noise: PNG cannot shrink it
@@ -123,7 +123,7 @@ def test_an_oversized_sheet_is_downscaled_not_dropped(tmp_path: Path) -> None:
def test_every_bound_holds_including_the_note(tmp_path: Path) -> None:
"""The "not attached" note used to be appended AFTER the hard slice, so the ceiling
was soft by the length of the note."""
- from codeverse.spatial.mcp_server import MAX_TEXT_CHARS
+ from codeverse3d.spatial.mcp_server import MAX_TEXT_CHARS
heavy = tmp_path / "heavy.png"
Image.effect_noise((1600, 4200), 90).convert("RGB").save(heavy)
@@ -142,8 +142,8 @@ def test_is_error_is_failed_not_the_verdict(stool_ctx: ToolContext) -> None:
``make_server``'s source, which passes for any code that merely mentions the name."""
from mcp import types
- from codeverse.spatial import mcp_server
- from codeverse.spatial.registry import NoArgs, ToolDef
+ from codeverse3d.spatial import mcp_server
+ from codeverse3d.spatial.registry import NoArgs, ToolDef
fakes = [
ToolDef(name="verdict", args_model=NoArgs, description="a gate that answers FAIL",
@@ -194,7 +194,7 @@ def test_stdio_roundtrip(stool_ctx: ToolContext, tmp_path: Path) -> None:
errlog = (tmp_path / "server.err").open("w")
async def run():
- params = StdioServerParameters(command=sys.executable, args=["-m", "codeverse.spatial.mcp_server", "--workspace", str(stool_ctx.workspace.root)])
+ params = StdioServerParameters(command=sys.executable, args=["-m", "codeverse3d.spatial.mcp_server", "--workspace", str(stool_ctx.workspace.root)])
async with stdio_client(params, errlog=errlog) as (r, w), ClientSession(r, w) as s:
await s.initialize()
tools = await s.list_tools()
diff --git a/harness/tests/spatial_tools/test_measure.py b/harness/tests/spatial_tools/test_measure.py
index 4085781e..827e993d 100644
--- a/harness/tests/spatial_tools/test_measure.py
+++ b/harness/tests/spatial_tools/test_measure.py
@@ -6,7 +6,7 @@ import numpy as np
import pytest
import trimesh
-from codeverse.spatial.measure import (
+from codeverse3d.spatial.measure import (
GlbLoadError,
instance_groups,
measure_glb,
@@ -70,7 +70,7 @@ def test_unnamed_single_mesh(tmp_path: Path) -> None:
def test_cyclic_scene_graph_does_not_hang(tmp_path: Path) -> None:
"""A GLB node named like the loader's base frame ('world') closes a cycle in the
scene graph; measuring must terminate (with the geometry still counted once)."""
- from codeverse.spatial.measure import _subtree_nodes, part_meshes
+ from codeverse3d.spatial.measure import _subtree_nodes, part_meshes
box = trimesh.creation.box((0.2, 0.2, 0.2))
scene = trimesh.Scene(base_frame="root")
@@ -83,7 +83,7 @@ def test_cyclic_scene_graph_does_not_hang(tmp_path: Path) -> None:
# --------------------------------------------------------------------- parse memo (F24)
def test_cached_parts_identity_and_invalidation(stool_glb: Path) -> None:
- from codeverse.spatial.measure import cached_parts
+ from codeverse3d.spatial.measure import cached_parts
p1 = cached_parts(stool_glb)
p2 = cached_parts(stool_glb)
@@ -106,7 +106,7 @@ def test_measure_glb_memoized_and_isolated(stool_glb: Path) -> None:
def test_load_scene_is_never_cached(stool_glb: Path) -> None:
"""Texturing mutates scenes in place — load_scene must hand out fresh objects."""
- from codeverse.spatial.measure import load_scene
+ from codeverse3d.spatial.measure import load_scene
s1 = load_scene(stool_glb)
s2 = load_scene(stool_glb)
@@ -144,7 +144,7 @@ def test_world_transform_composes_every_edge_up_to_the_root() -> None:
the brilliana desk lamp (an upright lamp measured lying down, 2026-08-30); the edge
walk is what the render rig agrees with. Here: the rotation on world→pivot must reach
a grandchild, composed in the right order."""
- from codeverse.spatial.measure import world_transform
+ from codeverse3d.spatial.measure import world_transform
sc = _root_pivot_scene()
t = world_transform(sc, "Post_1")
@@ -170,7 +170,7 @@ def test_duplicate_or_unnamed_glTF_nodes_are_named_in_the_findings(tmp_path: Pat
import json
import struct
- from codeverse.spatial.measure import gltf_node_names, node_name_findings
+ from codeverse3d.spatial.measure import gltf_node_names, node_name_findings
raw = _root_pivot_scene().export(file_type="glb")
(n,) = struct.unpack("<I", raw[12:16])
diff --git a/harness/tests/spatial_tools/test_observe.py b/harness/tests/spatial_tools/test_observe.py
index cbe6ebfc..60548629 100644
--- a/harness/tests/spatial_tools/test_observe.py
+++ b/harness/tests/spatial_tools/test_observe.py
@@ -2,7 +2,7 @@ from __future__ import annotations
from pathlib import Path
-from codeverse.contracts.artifacts import (
+from codeverse3d.contracts.artifacts import (
BuildResult,
GateFinding,
GateReport,
@@ -10,7 +10,7 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.spatial.observe import (
+from codeverse3d.spatial.observe import (
build_failure_lines,
fmt_numbers,
gate_observation,
diff --git a/harness/tests/spatial_tools/test_render_common.py b/harness/tests/spatial_tools/test_render_common.py
index f0125cb9..06551b5c 100644
--- a/harness/tests/spatial_tools/test_render_common.py
+++ b/harness/tests/spatial_tools/test_render_common.py
@@ -11,10 +11,10 @@ from pathlib import Path
import pytest
from PIL import Image
-from codeverse.conventions import OBJECT_VIEWS, SCENE_VIEWS
-from codeverse.spatial import _render_common as rc
-from codeverse.spatial.registry import ToolContext, ToolUnavailable, get_tool
-from codeverse.workspace import Workspace
+from codeverse3d.conventions import OBJECT_VIEWS, SCENE_VIEWS
+from codeverse3d.spatial import _render_common as rc
+from codeverse3d.spatial.registry import ToolContext, ToolUnavailable, get_tool
+from codeverse3d.workspace import Workspace
# --------------------------------------------------------------------------- _render_common
@@ -37,7 +37,7 @@ def test_view_specs_is_the_one_camera_payload() -> None:
assert all(set(s) == {"name", "azimuth", "elevation"} for s in specs)
assert all(isinstance(s["azimuth"], float) and isinstance(s["elevation"], float) for s in specs)
# what the scene driver receives is exactly this, JSON-encoded
- from codeverse.spatial.render_scene import _views_json
+ from codeverse3d.spatial.render_scene import _views_json
assert json.loads(_views_json(SCENE_VIEWS)) == rc.view_specs(SCENE_VIEWS)
@@ -48,7 +48,7 @@ def test_build_sheet_uses_the_settings_grid_and_guards_empty(tmp_path: Path) ->
Image.new("RGB", (64, 64), (10 * i, 0, 0)).save(tmp_path / f"v{i}.png")
out = rc.build_sheet([(f"v{i}", tmp_path / f"v{i}.png") for i in range(2)], tmp_path / "sheet.png")
assert out and Path(out).is_file()
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
tile = get_settings().render.sheet_tile
with Image.open(out) as im:
@@ -57,7 +57,7 @@ def test_build_sheet_uses_the_settings_grid_and_guards_empty(tmp_path: Path) ->
# --------------------------------------------------------------------------- sheet: cells + gif
def test_contact_sheet_keeps_a_non_square_cell(tmp_path: Path) -> None:
- from codeverse.spatial.sheet import LABEL_H, PAD, contact_sheet, tile_size
+ from codeverse3d.spatial.sheet import LABEL_H, PAD, contact_sheet, tile_size
src = tmp_path / "wide.png"
Image.new("RGB", (1280, 720), (30, 60, 90)).save(src)
@@ -69,8 +69,8 @@ def test_contact_sheet_keeps_a_non_square_cell(tmp_path: Path) -> None:
def test_gl_contact_sheet_and_gif_go_through_the_shared_writers(tmp_path: Path) -> None:
- from codeverse.spatial.gl_render import GlFrame, write_contact_sheet, write_gif
- from codeverse.spatial.sheet import LABEL_H, PAD
+ from codeverse3d.spatial.gl_render import GlFrame, write_contact_sheet, write_gif
+ from codeverse3d.spatial.sheet import LABEL_H, PAD
frames = []
for i in range(3):
@@ -89,7 +89,7 @@ def test_gl_contact_sheet_and_gif_go_through_the_shared_writers(tmp_path: Path)
# --------------------------------------------------------------------------- parts loader
def test_solid_parts_is_cached_parts_without_the_empty_ones(stool_glb: Path) -> None:
- from codeverse.spatial.measure import cached_parts, solid_parts
+ from codeverse3d.spatial.measure import cached_parts, solid_parts
solid = solid_parts(stool_glb)
assert solid and list(solid) == [k for k, v in cached_parts(stool_glb).items() if v is not None and len(v.faces)]
@@ -97,8 +97,8 @@ def test_solid_parts_is_cached_parts_without_the_empty_ones(stool_glb: Path) ->
def test_shared_number_formatters() -> None:
- from codeverse.spatial.connectivity import _fmt_vec as conn_vec
- from codeverse.spatial.measure import fmt_extent_cm, fmt_vec
+ from codeverse3d.spatial.connectivity import _fmt_vec as conn_vec
+ from codeverse3d.spatial.measure import fmt_extent_cm, fmt_vec
assert fmt_extent_cm([0.34, 0.47]) == "34.0×47.0"
assert fmt_vec([-0.00001, 0.5, 0]) == "(+0.000, +0.500, +0.000)" # never '-0.000'
@@ -108,7 +108,7 @@ def test_shared_number_formatters() -> None:
# --------------------------------------------------------------------------- tool plumbing
def test_tool_out_dir_is_round_stamped(stool_ctx: ToolContext) -> None:
- from codeverse.spatial.tool_common import render_cache_dir, tool_out_dir
+ from codeverse3d.spatial.tool_common import render_cache_dir, tool_out_dir
d = tool_out_dir(stool_ctx, "sections")
assert d.is_dir() and d.name == f"r{stool_ctx.round_index:02d}_sections"
@@ -125,8 +125,8 @@ def test_cached_render_glb_leaves_the_cache_to_render_glb(stool_ctx: ToolContext
the same stamp served stale PNGs and a copied workspace served views pointing into the
ORIGINAL one. ``render.render_glb`` (sha256 + CACHE_VERSION + rig signature) decides now.
"""
- import codeverse.spatial.tool_common as tc
- from codeverse.contracts.artifacts import RenderSet, RenderView
+ import codeverse3d.spatial.tool_common as tc
+ from codeverse3d.contracts.artifacts import RenderSet, RenderView
calls: list[Path] = []
@@ -160,7 +160,7 @@ def test_store_in_cache_survives_a_concurrent_identical_writer(tmp_path: Path, m
import threading
import time
- from codeverse.spatial import render as R
+ from codeverse3d.spatial import render as R
out = tmp_path / "out"
out.mkdir()
@@ -199,7 +199,7 @@ def test_object_render_cache_is_keyed_by_gpu_mode(stool_glb: Path, tmp_path: Pat
the key ('auto' fragments from 'on'/'off' by design — owner default)."""
from types import SimpleNamespace
- from codeverse.spatial import render as R
+ from codeverse3d.spatial import render as R
runs: list[tuple[str, Path]] = []
@@ -225,13 +225,13 @@ def test_object_render_cache_is_keyed_by_gpu_mode(stool_glb: Path, tmp_path: Pat
def test_tool_unavailable_is_reported_by_the_registry(stool_ctx: ToolContext, monkeypatch: pytest.MonkeyPatch) -> None:
"""No tool catches ToolUnavailable itself any more — ToolDef.call does it for
all of them, with the tool's own registered name."""
- import codeverse.spatial.tool_common as tc
+ import codeverse3d.spatial.tool_common as tc
def boom(module, attr):
raise ToolUnavailable(f"{module} not importable")
monkeypatch.setattr(tc, "lazy", boom)
- monkeypatch.setattr("codeverse.spatial.tools.lazy", boom)
+ monkeypatch.setattr("codeverse3d.spatial.tools.lazy", boom)
ws = stool_ctx.workspace
(ws.artifacts / "object_textured.glb").write_bytes((ws.artifacts / "object.glb").read_bytes())
for name in ("build", "render_views", "texture_preview"):
@@ -244,9 +244,9 @@ def test_tool_unavailable_is_reported_by_the_registry(stool_ctx: ToolContext, mo
def test_gl_metrics_summary_is_the_one_frame_stats_formatter(tmp_ws: Workspace, monkeypatch: pytest.MonkeyPatch) -> None:
- from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
- from codeverse.spatial.frame_stats import FrameStat, SequenceStats
- from codeverse.spatial.tool_common import gl_metrics_summary
+ from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+ from codeverse3d.spatial.frame_stats import FrameStat, SequenceStats
+ from codeverse3d.spatial.tool_common import gl_metrics_summary
stats = SequenceStats(frames=[FrameStat(time=0.0, path="f0.png", mean_lum=0.4, std_lum=0.2, pct_black=0.0,
pct_blown=0.0, colourfulness=0.3, edge_density=0.05)], mean_diff=0.0)
@@ -255,7 +255,7 @@ def test_gl_metrics_summary_is_the_one_frame_stats_formatter(tmp_ws: Workspace,
fix_hint="animate with u_time", data={"kind": "static"}),
GateFinding(gate="gl_frames", severity=Severity.INFO, message="ignored"),
])
- monkeypatch.setattr("codeverse.languages._gl_common.read_metrics", lambda ws: (stats, gate))
+ monkeypatch.setattr("codeverse3d.languages._gl_common.read_metrics", lambda ws: (stats, gate))
lines, numbers, ok = gl_metrics_summary(tmp_ws, hints=True, root=tmp_ws.root)
body = "\n".join(lines)
assert not ok and "frames=1" in body and "[static]" in body and "fix: animate with u_time" in body
@@ -263,12 +263,12 @@ def test_gl_metrics_summary_is_the_one_frame_stats_formatter(tmp_ws: Workspace,
assert numbers["gate_errors"] == 1 and numbers["n_frames"] == 1 and numbers["gate_passed"] is False
no_hints, _, _ = gl_metrics_summary(tmp_ws, hints=False)
assert "fix:" not in "\n".join(no_hints)
- monkeypatch.setattr("codeverse.languages._gl_common.read_metrics", lambda ws: None)
+ monkeypatch.setattr("codeverse3d.languages._gl_common.read_metrics", lambda ws: None)
assert gl_metrics_summary(tmp_ws) == (["(no frame metrics)"], {}, True)
def test_render_scene_still_exports_runtime_js_dir() -> None:
"""Public symbol kept while the definition moved to spatial.node."""
- from codeverse.spatial import node, render_scene
+ from codeverse3d.spatial import node, render_scene
assert render_scene.runtime_js_dir() == node.runtime_js_dir()
diff --git a/harness/tests/spatial_tools/test_sections.py b/harness/tests/spatial_tools/test_sections.py
index c1ce2461..fdedc341 100644
--- a/harness/tests/spatial_tools/test_sections.py
+++ b/harness/tests/spatial_tools/test_sections.py
@@ -6,7 +6,7 @@ import pytest
import trimesh
from PIL import Image
-from codeverse.spatial.sections import SliceManifest, cross_section, judge_slices
+from codeverse3d.spatial.sections import SliceManifest, cross_section, judge_slices
def test_cross_section_stool(stool_glb: Path, tmp_path: Path) -> None:
diff --git a/harness/tests/spatial_tools/test_silhouette.py b/harness/tests/spatial_tools/test_silhouette.py
index d5e232d3..15ea9c15 100644
--- a/harness/tests/spatial_tools/test_silhouette.py
+++ b/harness/tests/spatial_tools/test_silhouette.py
@@ -5,7 +5,7 @@ from pathlib import Path
import pytest
from PIL import Image, ImageDraw
-from codeverse.spatial.silhouette import compare_silhouette, foreground_mask
+from codeverse3d.spatial.silhouette import compare_silhouette, foreground_mask
def _disc(path: Path, size: tuple[int, int], box: tuple[int, int, int, int], bg=(240, 240, 240), fg=(30, 30, 30)) -> Path:
@@ -62,7 +62,7 @@ def test_a_photo_the_background_model_failed_on_is_unreliable(tmp_path: Path) ->
import numpy as np
from PIL import Image
- from codeverse.spatial.silhouette import _bbox_cover
+ from codeverse3d.spatial.silhouette import _bbox_cover
rng = np.random.default_rng(0)
busy = tmp_path / "busy.jpg"
@@ -78,7 +78,7 @@ def test_a_photo_the_background_model_failed_on_is_unreliable(tmp_path: Path) ->
def test_a_render_that_fills_its_frame_is_still_reliable(tmp_path: Path) -> None:
"""The bar must not condemn the render side. Real single-view renders measured at
bbox coverage 0.60-0.69; a tight crop must still pass."""
- from codeverse.spatial.silhouette import _bbox_cover
+ from codeverse3d.spatial.silhouette import _bbox_cover
tight = _disc(tmp_path / "tight.png", (300, 300), (12, 12, 288, 288))
assert 0.80 < _bbox_cover(foreground_mask(tight)) < 0.98
diff --git a/harness/tests/spatial_tools/test_tools.py b/harness/tests/spatial_tools/test_tools.py
index fce3f09f..a3a6aec2 100644
--- a/harness/tests/spatial_tools/test_tools.py
+++ b/harness/tests/spatial_tools/test_tools.py
@@ -8,8 +8,8 @@ from pathlib import Path
import pytest
from PIL import Image, ImageDraw
-import codeverse.spatial.tools # noqa: F401 (registers all tools)
-from codeverse.contracts.artifacts import (
+import codeverse3d.spatial.tools # noqa: F401 (registers all tools)
+from codeverse3d.contracts.artifacts import (
BuildResult,
GateFinding,
GateReport,
@@ -17,9 +17,9 @@ from codeverse.contracts.artifacts import (
RenderView,
Severity,
)
-from codeverse.contracts.plan import BBox, PartPlan, StaticPlan
-from codeverse.spatial.registry import ToolContext, get_tool, list_tools
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.plan import BBox, PartPlan, StaticPlan
+from codeverse3d.spatial.registry import ToolContext, get_tool, list_tools
+from codeverse3d.workspace import Workspace
#: tools every workspace gets (no track/language restriction)
CORE_TOOLS = {"build", "measure", "render_views", "render_sheet", "isolate", "cross_section", "check_connectivity",
@@ -125,7 +125,7 @@ class _FakeRuntime:
def _patch_runtime(monkeypatch: pytest.MonkeyPatch, rt: _FakeRuntime) -> None:
- import codeverse.languages as langs
+ import codeverse3d.languages as langs
monkeypatch.setattr(langs, "get_runtime", lambda language: rt)
@@ -166,7 +166,7 @@ def test_a_negative_verdict_is_not_a_tool_failure(stool_ctx: ToolContext, monkey
``is_error = not ok`` reported 63% of 1404 joint_sweep calls and 23% of 2073 builds as
broken calls, and the model retries a broken call at ~117k prompt tokens each. Both
directions here, plus the rule that makes it safe: the FAIL verdict LEADS the text."""
- import codeverse.spatial.tools as ts
+ import codeverse3d.spatial.tools as ts
ws = stool_ctx.workspace
ws.write_json(ws.plan_path, _stool_plan_with_missing_backrest())
@@ -262,7 +262,7 @@ _fake_render_glb.calls = 0
@pytest.fixture
def fake_renderer(monkeypatch: pytest.MonkeyPatch):
- import codeverse.spatial.render as render
+ import codeverse3d.spatial.render as render
_fake_render_glb.calls = 0
monkeypatch.setattr(render, "render_glb", _fake_render_glb)
@@ -295,7 +295,7 @@ def test_render_views_cached(stool_ctx: ToolContext, fake_renderer) -> None:
def test_render_tool_with_no_view_is_a_tool_failure(stool_ctx: ToolContext, monkeypatch: pytest.MonkeyPatch) -> None:
"""A renderer that comes back with nothing left the agent no picture and no verdict:
``failed`` (an MCP error), not an ordinary result whose text happens to say '0 view(s)'."""
- import codeverse.spatial.render as render
+ import codeverse3d.spatial.render as render
monkeypatch.setattr(render, "render_glb", lambda *a, **k: RenderSet(views=[], renderer="fake"))
for name, args in (("render_views", {}), ("render_sheet", {}), ("isolate", {"part": "Leg_3"})):
@@ -308,8 +308,8 @@ def test_render_modes_match_the_js_rig() -> None:
"""One mode tuple: contracts.RENDER_MODES ↔ runtime_js/render_glb.mjs MODES ↔ the arg schema."""
import re
- from codeverse.config import get_settings
- from codeverse.contracts.artifacts import RENDER_MODES
+ from codeverse3d.config import get_settings
+ from codeverse3d.contracts.artifacts import RENDER_MODES
src = (get_settings().runtime_js_dir() / "render_glb.mjs").read_text()
m = re.search(r"const MODES = \[([^\]]*)\]", src)
@@ -345,10 +345,10 @@ def test_compare_silhouette_tool(stool_ctx: ToolContext, fake_renderer) -> None:
def test_texture_tools_degrade_when_texturing_is_unavailable(stool_ctx: ToolContext, monkeypatch: pytest.MonkeyPatch) -> None:
- """`lazy` guards only the optional siblings (codeverse.languages / codeverse.texturing);
+ """`lazy` guards only the optional siblings (codeverse3d.languages / codeverse3d.texturing);
spatial-on-spatial imports are ordinary imports since 2026-08-29."""
- import codeverse.spatial.tool_common as tc
- import codeverse.spatial.tools as ts
+ import codeverse3d.spatial.tool_common as tc
+ import codeverse3d.spatial.tools as ts
def boom(module, attr):
raise tc.ToolUnavailable(f"{module} not importable")
@@ -360,8 +360,8 @@ def test_texture_tools_degrade_when_texturing_is_unavailable(stool_ctx: ToolCont
def test_scene_tools_with_fake_siblings(stool_ctx: ToolContext, monkeypatch: pytest.MonkeyPatch) -> None:
- import codeverse.spatial.tools as ts
- from codeverse.spatial.probes import SceneProbeResult
+ import codeverse3d.spatial.tools as ts
+ from codeverse3d.spatial.probes import SceneProbeResult
def fake_check_shaders(ws, *, module=None, timeout_s=90.0):
return GateReport(gate="shaders", passed=False, findings=[GateFinding(gate="shaders", severity=Severity.ERROR, target="src/shaders/water.js", message="ERROR: 0:12: 'vUv' undeclared", fix_hint="declare varying vec2 vUv")])
@@ -416,8 +416,8 @@ def test_build_tool_scene_reports_probe_census(tmp_ws: Workspace, monkeypatch: p
def test_build_tool_graphics_reports_frames(tmp_ws: Workspace, monkeypatch: pytest.MonkeyPatch) -> None:
- import codeverse.languages._gl_common as gl_build # the one metrics reader (gl_build is a shim over it)
- from codeverse.spatial.frame_stats import FrameStat, SequenceStats
+ import codeverse3d.languages._gl_common as gl_build # the one metrics reader (gl_build is a shim over it)
+ from codeverse3d.spatial.frame_stats import FrameStat, SequenceStats
ctx = ToolContext(workspace=tmp_ws, language="glsl_shader", track="graphics")
rt = _NoGlbRuntime("glsl_shader", {"renderer": "moderngl"},
@@ -458,8 +458,8 @@ def test_gl_tools_lead_with_the_frame_gate_verdict(tmp_ws: Workspace, monkeypatc
workspace, ``gl_probe``, ``gl_frames``) must put the FAIL verdict ABOVE it — otherwise
the only verdict the model reads is "PROBE OK" — and none of them is a tool failure:
the code ran, and re-running it blind is exactly the retry this costs money."""
- import codeverse.languages._gl_common as gl_build # the one metrics reader
- from codeverse.spatial.frame_stats import FrameStat, SequenceStats
+ import codeverse3d.languages._gl_common as gl_build # the one metrics reader
+ from codeverse3d.spatial.frame_stats import FrameStat, SequenceStats
ctx = ToolContext(workspace=tmp_ws, language="glsl_shader", track="graphics")
_patch_runtime(monkeypatch, _GlRuntime("glsl_shader", {"renderer": "moderngl"}))
@@ -480,8 +480,8 @@ def test_gl_tools_lead_with_the_frame_gate_verdict(tmp_ws: Workspace, monkeypatc
def test_load_plan_recognises_graphics_plan(tmp_ws: Workspace) -> None:
- from codeverse.contracts.plan import GraphicsPlan, PassPlan
- from codeverse.spatial.tool_common import load_plan
+ from codeverse3d.contracts.plan import GraphicsPlan, PassPlan
+ from codeverse3d.spatial.tool_common import load_plan
plan = GraphicsPlan(title="Neon rain", summary="s", style="cyberpunk",
passes=[PassPlan(name="Rain", description="drops")])
@@ -519,7 +519,7 @@ def test_connectivity_tool_resolves_instance_names_like_the_track_does(stool_ctx
def test_build_folds_connectivity_and_contract_in_when_fewer_turns(stool_ctx: ToolContext, monkeypatch: pytest.MonkeyPatch) -> None:
"""docs/COST.md §29: ~25 check_connectivity + ~19 check_contract calls per run, each a 4 s
round trip for a < 0.5 s check. With the switch on, one build observation carries both."""
- monkeypatch.setenv("CV3D_FEWER_TURNS", "1")
+ monkeypatch.setenv("C3D_FEWER_TURNS", "1")
ws = stool_ctx.workspace
ws.write_json(ws.plan_path, _stool_plan_with_missing_backrest())
_patch_runtime(monkeypatch, _FakeRuntime(glb=ws.artifacts / "object.glb"))
@@ -540,7 +540,7 @@ def test_build_folds_connectivity_and_contract_in_when_fewer_turns(stool_ctx: To
def test_build_folded_checks_pass_on_a_solid_stool(tmp_ws: Workspace, solid_stool_glb: Path, monkeypatch: pytest.MonkeyPatch) -> None:
- monkeypatch.setenv("CV3D_FEWER_TURNS", "on")
+ monkeypatch.setenv("C3D_FEWER_TURNS", "on")
(tmp_ws.artifacts / "object.glb").write_bytes(solid_stool_glb.read_bytes())
tmp_ws.spec_path.write_text(json.dumps({"id": "t", "track": "static_object", "language": "blender", "prompt": "a stool"}))
ctx = ToolContext(workspace=tmp_ws, language="blender", track="static_object")
@@ -553,7 +553,7 @@ def test_build_folded_checks_pass_on_a_solid_stool(tmp_ws: Workspace, solid_stoo
def test_build_card_and_observation_are_unchanged_when_fewer_turns_is_off(stool_ctx: ToolContext, monkeypatch: pytest.MonkeyPatch) -> None:
- monkeypatch.delenv("CV3D_FEWER_TURNS", raising=False)
+ monkeypatch.delenv("C3D_FEWER_TURNS", raising=False)
ws = stool_ctx.workspace
ws.write_json(ws.plan_path, _stool_plan_with_missing_backrest())
_patch_runtime(monkeypatch, _FakeRuntime(glb=ws.artifacts / "object.glb"))
@@ -563,7 +563,7 @@ def test_build_card_and_observation_are_unchanged_when_fewer_turns_is_off(stool_
card_off = get_tool("build").card()
description = get_tool("build").description
assert "check_connectivity" not in card_off
- monkeypatch.setenv("CV3D_FEWER_TURNS", "1")
+ monkeypatch.setenv("C3D_FEWER_TURNS", "1")
card_on = get_tool("build").card()
assert "do not call those two tools separately" in card_on and card_on.startswith(card_off.splitlines()[0][:40])
assert get_tool("build").description == description # the static text never changes
@@ -573,7 +573,7 @@ def test_a_failed_build_tells_the_agent_WHY_not_to_build_again(tmp_ws):
"""After a failed build the GLB is absent (staging publishes nothing), and the
old order reported 'does not exist yet — run `build` first' to an agent that had
just built: art_med_tool_chest burned its remaining turns on that (2026-08-27)."""
- from codeverse.spatial.tool_common import ToolUsageError, glb_path
+ from codeverse3d.spatial.tool_common import ToolUsageError, glb_path
ctx = ToolContext(workspace=tmp_ws, language="urdf_blender", track="articulated_object")
tmp_ws.artifacts.mkdir(parents=True, exist_ok=True)
diff --git a/harness/tests/spatial_tools/test_tools_cli.py b/harness/tests/spatial_tools/test_tools_cli.py
index 6da4192f..b0418dab 100644
--- a/harness/tests/spatial_tools/test_tools_cli.py
+++ b/harness/tests/spatial_tools/test_tools_cli.py
@@ -6,8 +6,8 @@ import json
from typer.testing import CliRunner
-from codeverse.cli._common import console, print_observation
-from codeverse.spatial.registry import Observation, ToolContext
+from codeverse3d.cli._common import console, print_observation
+from codeverse3d.spatial.registry import Observation, ToolContext
def _panel_title(obs: Observation) -> str:
@@ -37,7 +37,7 @@ def test_cli_exit_code_follows_the_verdict_not_the_failure(stool_ctx: ToolContex
already exited 1 on a FAIL; the exit code speaks to the human or script at the terminal,
while the MCP boundary — the one that costs money when a verdict is called an error —
reports ``failed`` alone."""
- from codeverse.cli.main import app
+ from codeverse3d.cli.main import app
runner = CliRunner()
ws = str(stool_ctx.workspace.root)
diff --git a/harness/tests/texturing/conftest.py b/harness/tests/texturing/conftest.py
index d3bbadd7..6e150b32 100644
--- a/harness/tests/texturing/conftest.py
+++ b/harness/tests/texturing/conftest.py
@@ -16,11 +16,11 @@ import pytest
import trimesh
from PIL import Image
-from codeverse.contracts.artifacts import Judgment, RenderSet, RenderView
-from codeverse.contracts.chat import ChatResponse
-from codeverse.contracts.common import Language, Track, Usage
-from codeverse.contracts.plan import BBox, PartPlan, StaticPlan
-from codeverse.contracts.spec import Spec
+from codeverse3d.contracts.artifacts import Judgment, RenderSet, RenderView
+from codeverse3d.contracts.chat import ChatResponse
+from codeverse3d.contracts.common import Language, Track, Usage
+from codeverse3d.contracts.plan import BBox, PartPlan, StaticPlan
+from codeverse3d.contracts.spec import Spec
def _box(ext: tuple[float, float, float], center: tuple[float, float, float]) -> trimesh.Trimesh:
@@ -145,7 +145,7 @@ class FakeImageModel:
"""Deterministic procedural textures (seeded by the prompt) for offline tests.
Records every prompt it was asked for in ``calls``.
- Lived in ``codeverse.texturing.generate`` until 2026-08-30, where nothing in a
+ Lived in ``codeverse3d.texturing.generate`` until 2026-08-30, where nothing in a
real run could reach it: no setting, env var or CLI flag selects it, and the
keyless path raises ``ModelError`` rather than falling back to a fake."""
@@ -169,7 +169,7 @@ class FakeImageModel:
with self._lock:
self.calls.append(prompt)
if any(s in prompt for s in self.fail_on):
- from codeverse.models.base import ModelError
+ from codeverse3d.models.base import ModelError
raise ModelError(f"fake image model refused: {prompt[:40]}", retryable=False)
if self.latency_s:
diff --git a/harness/tests/texturing/test_apply.py b/harness/tests/texturing/test_apply.py
index 926dddb2..122b7b6a 100644
--- a/harness/tests/texturing/test_apply.py
+++ b/harness/tests/texturing/test_apply.py
@@ -7,10 +7,10 @@ from pathlib import Path
import numpy as np
import trimesh
-from codeverse.spatial.measure import measure_glb
-from codeverse.texturing.apply import apply_textures, node_part_lookup
-from codeverse.texturing.generate import generate_textures
-from codeverse.texturing.plan import default_plan
+from codeverse3d.spatial.measure import measure_glb
+from codeverse3d.texturing.apply import apply_textures, node_part_lookup
+from codeverse3d.texturing.generate import generate_textures
+from codeverse3d.texturing.plan import default_plan
from tests.texturing.conftest import FakeImageModel
diff --git a/harness/tests/texturing/test_gate.py b/harness/tests/texturing/test_gate.py
index bd85f583..ddd3f741 100644
--- a/harness/tests/texturing/test_gate.py
+++ b/harness/tests/texturing/test_gate.py
@@ -4,7 +4,7 @@ from __future__ import annotations
from pathlib import Path
-from codeverse.texturing.generate import TextureAsset, judge_gate, material_criterion, seam_gate
+from codeverse3d.texturing.generate import TextureAsset, judge_gate, material_criterion, seam_gate
from tests.texturing.conftest import FakeJudge, fake_render
diff --git a/harness/tests/texturing/test_generate.py b/harness/tests/texturing/test_generate.py
index 7a3c8da1..2f50c3a7 100644
--- a/harness/tests/texturing/test_generate.py
+++ b/harness/tests/texturing/test_generate.py
@@ -6,7 +6,7 @@ from pathlib import Path
from PIL import Image
-from codeverse.texturing.generate import SEAM_MAX, generate_textures, prompt_key
+from codeverse3d.texturing.generate import SEAM_MAX, generate_textures, prompt_key
from tests.texturing.conftest import FakeImageModel
@@ -36,7 +36,7 @@ def test_generate_records_failures_per_texture(tmp_path: Path):
def test_generate_accepts_texture_plan_and_empty(tmp_path: Path, chair_plan):
- from codeverse.texturing.plan import default_plan
+ from codeverse3d.texturing.plan import default_plan
tp = default_plan(chair_plan)
ts = generate_textures(tp, tmp_path, FakeImageModel(), size=64, cache_dir=tmp_path / "c")
diff --git a/harness/tests/texturing/test_live.py b/harness/tests/texturing/test_live.py
index 9b7126e6..bdf93a81 100644
--- a/harness/tests/texturing/test_live.py
+++ b/harness/tests/texturing/test_live.py
@@ -6,12 +6,12 @@ from pathlib import Path
import pytest
-from codeverse.config import get_settings
-from codeverse.contracts.plan import StaticPlan
-from codeverse.contracts.spec import Spec
-from codeverse.models.gemini import GeminiImageModel
-from codeverse.texturing.generate import seam_score
-from codeverse.texturing.plan import compose_image_prompt, material_plan
+from codeverse3d.config import get_settings
+from codeverse3d.contracts.plan import StaticPlan
+from codeverse3d.contracts.spec import Spec
+from codeverse3d.models.gemini import GeminiImageModel
+from codeverse3d.texturing.generate import seam_score
+from codeverse3d.texturing.plan import compose_image_prompt, material_plan
pytestmark = pytest.mark.live
RUN = Path(__file__).resolve().parents[2] / "runs" / "e2e_chair_blender"
diff --git a/harness/tests/texturing/test_maps.py b/harness/tests/texturing/test_maps.py
index 69b3385a..1c1d8303 100644
--- a/harness/tests/texturing/test_maps.py
+++ b/harness/tests/texturing/test_maps.py
@@ -5,7 +5,7 @@ from __future__ import annotations
import numpy as np
from PIL import Image
-from codeverse.texturing.apply import (
+from codeverse3d.texturing.apply import (
DEFAULT_VARIATION,
VARIATION,
is_flat,
@@ -14,7 +14,7 @@ from codeverse.texturing.apply import (
roughness_array,
variation_for,
)
-from codeverse.texturing.materials import MATERIALS
+from codeverse3d.texturing.materials import MATERIALS
def _grain(size: int = 64) -> Image.Image:
diff --git a/harness/tests/texturing/test_materials.py b/harness/tests/texturing/test_materials.py
index 617b5078..62deee5d 100644
--- a/harness/tests/texturing/test_materials.py
+++ b/harness/tests/texturing/test_materials.py
@@ -4,7 +4,7 @@ from __future__ import annotations
import pytest
-from codeverse.texturing.materials import (
+from codeverse3d.texturing.materials import (
BARE_METAL_FAMILIES,
COARSE_TO_FINE,
MATERIALS,
@@ -16,7 +16,7 @@ from codeverse.texturing.materials import (
pbr_for,
saturation,
)
-from codeverse.texturing.plan import FAMILY_DEFAULTS
+from codeverse3d.texturing.plan import FAMILY_DEFAULTS
def test_every_family_is_self_consistent():
diff --git a/harness/tests/texturing/test_normalise.py b/harness/tests/texturing/test_normalise.py
index 9eefd99e..00d88fba 100644
--- a/harness/tests/texturing/test_normalise.py
+++ b/harness/tests/texturing/test_normalise.py
@@ -7,9 +7,9 @@ from pathlib import Path
import trimesh
from PIL import Image
-from codeverse.contracts.plan import BBox, PartPlan, StaticPlan
-from codeverse.spatial.measure import load_scene, measure_glb
-from codeverse.texturing.apply import classify, normalise_materials
+from codeverse3d.contracts.plan import BBox, PartPlan, StaticPlan
+from codeverse3d.spatial.measure import load_scene, measure_glb
+from codeverse3d.texturing.apply import classify, normalise_materials
def _pbr(name: str, metallic, roughness, colour=(120, 120, 120, 255), **kw):
diff --git a/harness/tests/texturing/test_plan.py b/harness/tests/texturing/test_plan.py
index 66e08075..d4f97cb4 100644
--- a/harness/tests/texturing/test_plan.py
+++ b/harness/tests/texturing/test_plan.py
@@ -8,9 +8,9 @@ from pathlib import Path
import pytest
from PIL import Image
-from codeverse.contracts.chat import ChatRequest, ChatResponse
-from codeverse.contracts.common import Usage
-from codeverse.texturing.plan import (
+from codeverse3d.contracts.chat import ChatRequest, ChatResponse
+from codeverse3d.contracts.common import Usage
+from codeverse3d.texturing.plan import (
STYLE_SUFFIX,
PlannerOutput,
PlannerPart,
diff --git a/harness/tests/texturing/test_run.py b/harness/tests/texturing/test_run.py
index 25edc0eb..3a8806e1 100644
--- a/harness/tests/texturing/test_run.py
+++ b/harness/tests/texturing/test_run.py
@@ -6,15 +6,15 @@ import json
import shutil
from pathlib import Path
-from codeverse.contracts.run import RunRecord
-from codeverse.texturing.run import (
+from codeverse3d.contracts.run import RunRecord
+from codeverse3d.texturing.run import (
TextureReport,
TextureServices,
latest_sheet,
load_report,
texture_pass,
)
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
from tests.texturing.conftest import FakeImageModel, FakeJudge, fake_render
diff --git a/harness/tests/texturing/test_scene_pack.py b/harness/tests/texturing/test_scene_pack.py
index 011c3d82..52c960cf 100644
--- a/harness/tests/texturing/test_scene_pack.py
+++ b/harness/tests/texturing/test_scene_pack.py
@@ -7,8 +7,8 @@ from pathlib import Path
import pytest
-from codeverse.contracts.plan import AssetPlan, BBox, CameraPlan, ScenePlan, ZonePlan
-from codeverse.texturing.plan import (
+from codeverse3d.contracts.plan import AssetPlan, BBox, CameraPlan, ScenePlan, ZonePlan
+from codeverse3d.texturing.plan import (
default_scene_pack_plan,
load_manifest,
scene_pack_plan,
diff --git a/harness/tests/texturing/test_tile.py b/harness/tests/texturing/test_tile.py
index dbb9e92e..58625e34 100644
--- a/harness/tests/texturing/test_tile.py
+++ b/harness/tests/texturing/test_tile.py
@@ -5,7 +5,7 @@ from __future__ import annotations
import numpy as np
from PIL import Image
-from codeverse.texturing.generate import (
+from codeverse3d.texturing.generate import (
SEAM_MAX,
fit_size,
make_tileable,
diff --git a/harness/tests/texturing/test_tools_cli.py b/harness/tests/texturing/test_tools_cli.py
index 281c7281..743f1168 100644
--- a/harness/tests/texturing/test_tools_cli.py
+++ b/harness/tests/texturing/test_tools_cli.py
@@ -7,9 +7,9 @@ from pathlib import Path
from typer.testing import CliRunner
-from codeverse.spatial.registry import ToolContext, get_tool
-from codeverse.texturing.run import TextureServices
-from codeverse.workspace import Workspace
+from codeverse3d.spatial.registry import ToolContext, get_tool
+from codeverse3d.texturing.run import TextureServices
+from codeverse3d.workspace import Workspace
from tests.texturing.conftest import FakeImageModel, FakeJudge, FakePlanModel, fake_render
@@ -66,8 +66,8 @@ def test_texture_pass_tool_refuses_when_the_run_did_not_ask_for_texturing(
def test_cli_texture_show_and_help(tmp_path, chair_glb, chair_spec, chair_plan):
- from codeverse.cli.main import app
- from codeverse.texturing.run import texture_pass
+ from codeverse3d.cli.main import app
+ from codeverse3d.texturing.run import texture_pass
ws = _ws(tmp_path, chair_glb, chair_spec, chair_plan)
texture_pass(ws, chair_spec, chair_plan, model_id="", image_model=FakeImageModel(), judge=False, render=fake_render,
@@ -85,12 +85,12 @@ def test_cli_texture_show_and_help(tmp_path, chair_glb, chair_spec, chair_plan):
def test_cli_scene_pack_spend_joins_the_runs_ledger(tmp_path, chair_spec, monkeypatch):
"""`3dcode texture scene-pack` opened no run_ledger (`pass` did), so its plan + image
spend went to the per-process log instead of the run's telemetry/cost.jsonl."""
- from codeverse.cli.main import app
- from codeverse.contracts.common import Language, Track, Usage
- from codeverse.contracts.plan import BBox, CameraPlan, ScenePlan, ZonePlan
- from codeverse.cost.instrument import run_ledger
- from codeverse.cost.ledger import load_ledger, record_call
- from codeverse.texturing.plan import ScenePack
+ from codeverse3d.cli.main import app
+ from codeverse3d.contracts.common import Language, Track, Usage
+ from codeverse3d.contracts.plan import BBox, CameraPlan, ScenePlan, ZonePlan
+ from codeverse3d.cost.instrument import run_ledger
+ from codeverse3d.cost.ledger import load_ledger, record_call
+ from codeverse3d.texturing.plan import ScenePack
ws = Workspace(tmp_path / "run").create()
ws.write_json(ws.spec_path, chair_spec.model_copy(update={"track": Track.SCENE, "language": Language.SCENE_THREEJS}))
@@ -106,8 +106,8 @@ def test_cli_scene_pack_spend_joins_the_runs_ledger(tmp_path, chair_spec, monkey
record_call(Usage(model="gemini-3.1-flash-image", input_tokens=200, cost_usd=0.04), label="texture_pack")
return ScenePack(out_dir=str(out_dir))
- monkeypatch.setattr("codeverse.texturing.plan.scene_texture_pack", fake_pack)
- monkeypatch.setattr("codeverse.cli.texture_cmd._image_model", lambda name: FakeImageModel())
+ monkeypatch.setattr("codeverse3d.texturing.plan.scene_texture_pack", fake_pack)
+ monkeypatch.setattr("codeverse3d.cli.texture_cmd._image_model", lambda name: FakeImageModel())
res = CliRunner().invoke(app, ["texture", "scene-pack", str(ws.root), "--model", ""])
assert res.exit_code == 0, res.output
assert [r.label for r in load_ledger(ws.root)] == ["planner", "texture_pack"]
diff --git a/harness/tests/texturing/test_uv.py b/harness/tests/texturing/test_uv.py
index 1e356cb0..db6c3814 100644
--- a/harness/tests/texturing/test_uv.py
+++ b/harness/tests/texturing/test_uv.py
@@ -6,7 +6,7 @@ import numpy as np
import pytest
import trimesh
-from codeverse.texturing.apply import choose_projection, split_by_key, unwrap
+from codeverse3d.texturing.apply import choose_projection, split_by_key, unwrap
def test_choose_projection_rules():
diff --git a/harness/tests/threejs_render/conftest.py b/harness/tests/threejs_render/conftest.py
index b796e9a6..8d2f16cf 100644
--- a/harness/tests/threejs_render/conftest.py
+++ b/harness/tests/threejs_render/conftest.py
@@ -7,7 +7,7 @@ from pathlib import Path
import pytest
-from codeverse.workspace import Workspace
+from codeverse3d.workspace import Workspace
SEAT_JS = """\
import * as THREE from 'three';
@@ -98,7 +98,7 @@ def stool_glb(tmp_path_factory: pytest.TempPathFactory) -> Path:
"""Build the stool once per session (needs node); skipped when node is missing."""
if shutil.which("node") is None:
pytest.skip("node not available")
- from codeverse.languages.threejs import ThreeJsRuntime
+ from codeverse3d.languages.threejs import ThreeJsRuntime
ws = write_stool(tmp_path_factory.mktemp("stool_session"))
res = ThreeJsRuntime().build(ws)
diff --git a/harness/tests/threejs_render/test_build.py b/harness/tests/threejs_render/test_build.py
index 10db5041..c6ae36f8 100644
--- a/harness/tests/threejs_render/test_build.py
+++ b/harness/tests/threejs_render/test_build.py
@@ -9,8 +9,8 @@ import numpy as np
import pytest
import trimesh
-from codeverse.languages.threejs import ThreeJsRuntime
-from codeverse.workspace import Workspace
+from codeverse3d.languages.threejs import ThreeJsRuntime
+from codeverse3d.workspace import Workspace
pytestmark = pytest.mark.node
@@ -91,9 +91,9 @@ def test_build_keeps_source_placement_and_warns(stool_ws: Workspace):
def test_build_per_plan_placement_passes_contract_even_when_union_is_off_centre(stool_ws: Workspace):
"""Plan parts whose union footprint is NOT centred (backrest-style skew): an object
built exactly per plan must not be reported as 'centre off' for every part."""
- from codeverse.contracts.plan import StaticPlan
- from codeverse.spatial.contract import check_contract
- from codeverse.spatial.measure import measure_glb
+ from codeverse3d.contracts.plan import StaticPlan
+ from codeverse3d.spatial.contract import check_contract
+ from codeverse3d.spatial.measure import measure_glb
(stool_ws.src / "object.js").write_text(
"import * as THREE from 'three';\nexport function build(T) { const g = new THREE.Group(); g.name = 'Sign';\n"
@@ -116,8 +116,8 @@ def test_build_per_plan_placement_passes_contract_even_when_union_is_off_centre(
def test_build_bakes_instanced_meshes_for_trimesh(stool_ws: Workspace):
"""InstancedMesh must not export as EXT_mesh_gpu_instancing (trimesh ignores it):
measure/connectivity must see every instance exactly like the census does."""
- from codeverse.spatial.connectivity import check_connectivity
- from codeverse.spatial.measure import measure_glb
+ from codeverse3d.spatial.connectivity import check_connectivity
+ from codeverse3d.spatial.measure import measure_glb
(stool_ws.src / "object.js").write_text(
"import * as THREE from 'three';\nexport function build(T) { const g = new THREE.Group(); g.name = 'Fence';\n"
diff --git a/harness/tests/threejs_render/test_camera_fit.py b/harness/tests/threejs_render/test_camera_fit.py
index 405b89ee..a60ec72d 100644
--- a/harness/tests/threejs_render/test_camera_fit.py
+++ b/harness/tests/threejs_render/test_camera_fit.py
@@ -13,8 +13,8 @@ import json
import pytest
-from codeverse.conventions import OBJECT_VIEWS
-from codeverse.spatial.node import run_node, runtime_js_dir
+from codeverse3d.conventions import OBJECT_VIEWS
+from codeverse3d.spatial.node import run_node, runtime_js_dir
pytestmark = pytest.mark.node
diff --git a/harness/tests/threejs_render/test_cli_flush.py b/harness/tests/threejs_render/test_cli_flush.py
index 2161972a..c63caf0e 100644
--- a/harness/tests/threejs_render/test_cli_flush.py
+++ b/harness/tests/threejs_render/test_cli_flush.py
@@ -19,7 +19,7 @@ import json
import pytest
-from codeverse.spatial.node import run_node, runtime_js_dir
+from codeverse3d.spatial.node import run_node, runtime_js_dir
from tests.scene_runtime.conftest import needs_node
pytestmark = [pytest.mark.node, needs_node]
diff --git a/harness/tests/threejs_render/test_error_routing.py b/harness/tests/threejs_render/test_error_routing.py
index 215b9816..1940e42f 100644
--- a/harness/tests/threejs_render/test_error_routing.py
+++ b/harness/tests/threejs_render/test_error_routing.py
@@ -4,9 +4,9 @@ from __future__ import annotations
from pathlib import Path
-from codeverse.languages.threejs import ThreeJsRuntime
-from codeverse.spatial.node import NodeResult
-from codeverse.workspace import Workspace
+from codeverse3d.languages.threejs import ThreeJsRuntime
+from codeverse3d.spatial.node import NodeResult
+from codeverse3d.workspace import Workspace
def _res(error: dict) -> NodeResult:
diff --git a/harness/tests/threejs_render/test_lint.py b/harness/tests/threejs_render/test_lint.py
index 041996de..11483e28 100644
--- a/harness/tests/threejs_render/test_lint.py
+++ b/harness/tests/threejs_render/test_lint.py
@@ -6,11 +6,11 @@ from pathlib import Path
import pytest
-import codeverse.languages.threejs as lint_mod
-from codeverse.contracts.artifacts import Severity
-from codeverse.contracts.plan import BBox, PartPlan, StaticPlan
-from codeverse.languages.threejs import lint_workspace
-from codeverse.workspace import Workspace
+import codeverse3d.languages.threejs as lint_mod
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.contracts.plan import BBox, PartPlan, StaticPlan
+from codeverse3d.languages.threejs import lint_workspace
+from codeverse3d.workspace import Workspace
@pytest.fixture
diff --git a/harness/tests/threejs_render/test_node.py b/harness/tests/threejs_render/test_node.py
index fdaa77b1..8ce97ffb 100644
--- a/harness/tests/threejs_render/test_node.py
+++ b/harness/tests/threejs_render/test_node.py
@@ -6,7 +6,7 @@ from pathlib import Path
import pytest
-from codeverse.spatial.node import NodeError, parse_last_json, run_node, runtime_js_dir
+from codeverse3d.spatial.node import NodeError, parse_last_json, run_node, runtime_js_dir
def test_parse_last_json_picks_last_object():
diff --git a/harness/tests/threejs_render/test_render.py b/harness/tests/threejs_render/test_render.py
index 3bded368..d721867f 100644
--- a/harness/tests/threejs_render/test_render.py
+++ b/harness/tests/threejs_render/test_render.py
@@ -8,9 +8,9 @@ from pathlib import Path
import pytest
from PIL import Image
-from codeverse.conventions import OBJECT_VIEWS_QUICK, ViewPreset
-from codeverse.spatial import render as render_mod
-from codeverse.spatial.render import RenderError, render_glb
+from codeverse3d.conventions import OBJECT_VIEWS_QUICK, ViewPreset
+from codeverse3d.spatial import render as render_mod
+from codeverse3d.spatial.render import RenderError, render_glb
def test_render_glb_offline_validation(tmp_path: Path):
diff --git a/harness/tests/threejs_render/test_render_retry.py b/harness/tests/threejs_render/test_render_retry.py
index 028fb04f..f8e11409 100644
--- a/harness/tests/threejs_render/test_render_retry.py
+++ b/harness/tests/threejs_render/test_render_retry.py
@@ -6,15 +6,15 @@ from pathlib import Path
import pytest
-import codeverse.spatial.render as R
-from codeverse.spatial.render import RenderError, render_glb
+import codeverse3d.spatial.render as R
+from codeverse3d.spatial.render import RenderError, render_glb
@pytest.fixture(autouse=True)
def _isolated_cache(tmp_path, monkeypatch):
- from codeverse.config import get_settings
+ from codeverse3d.config import get_settings
- monkeypatch.setenv("CV3D_CACHE_DIR", str(tmp_path / "cache"))
+ monkeypatch.setenv("C3D_CACHE_DIR", str(tmp_path / "cache"))
get_settings.cache_clear()
monkeypatch.setattr(R, "RETRY_PAUSE_S", 0.0)
yield
diff --git a/harness/tests/threejs_render/test_runtime_js.py b/harness/tests/threejs_render/test_runtime_js.py
index 50c187c2..126c6e10 100644
--- a/harness/tests/threejs_render/test_runtime_js.py
+++ b/harness/tests/threejs_render/test_runtime_js.py
@@ -8,8 +8,8 @@ from pathlib import Path
import pytest
-from codeverse.spatial.node import NodeError, run_node, runtime_js_dir
-from codeverse.workspace import Workspace
+from codeverse3d.spatial.node import NodeError, run_node, runtime_js_dir
+from codeverse3d.workspace import Workspace
pytestmark = pytest.mark.node
@@ -109,7 +109,7 @@ const {{ launchBrowser, rendererInfo }} = require({json.dumps(str(runtime_js_dir
console.log(JSON.stringify({{ gpu, renderer, probe, shared: handle.shared, ms: Date.now() - t0 }}));
}})().catch((e) => {{ console.error(e); process.exit(1); }});
""")
- env = {"CV3D_CACHE_DIR": str(tmp_path / "cache")}
+ env = {"C3D_CACHE_DIR": str(tmp_path / "cache")}
auto = run_node(script, [], timeout_s=120, env_extra=env).last_json
assert auto["renderer"] and auto["probe"]
if auto["gpu"]:
@@ -123,7 +123,7 @@ const {{ launchBrowser, rendererInfo }} = require({json.dumps(str(runtime_js_dir
def test_two_runtime_trees_never_share_one_browser_endpoint(tmp_path: Path):
"""A git worktree and the main checkout run their own runtime_js but share
- ~/.cache/codeverse unless the operator remembers CV3D_CACHE_DIR. Measured
+ ~/.cache/codeverse3d unless the operator remembers C3D_CACHE_DIR. Measured
2026-09-05: two daemons, one endpoint file, `Session closed` across the scene
suite. The endpoint name carries the runtime_js that spawned it, so the two
trees keep separate browsers inside the SAME cache dir — no env var required."""
@@ -142,7 +142,7 @@ console.log(JSON.stringify({{
failed: _internal.daemonFailPath('cpu'),
}}));
""")
- paths.append(run_node(script, [], timeout_s=60, env_extra={"CV3D_CACHE_DIR": str(cache)}).last_json)
+ paths.append(run_node(script, [], timeout_s=60, env_extra={"C3D_CACHE_DIR": str(cache)}).last_json)
a, b = paths
for key in ("endpoint", "lock", "failed"):
@@ -173,7 +173,7 @@ def _reap_daemons(cache_dir: Path) -> None:
def test_gpu_launch_browser_reuse(tmp_path: Path):
"""F21 phase 2: second launchBrowser connects to the daemon's shared browser
(~ms, shared=true); release() disconnects and the browser survives; with
- CV3D_BROWSER_REUSE=off every launch is owned."""
+ C3D_BROWSER_REUSE=off every launch is owned."""
script = tmp_path / "r.cjs"
script.write_text(f"""
const {{ launchBrowser }} = require({json.dumps(str(runtime_js_dir() / 'gpu_launch.cjs'))});
@@ -190,7 +190,7 @@ const {{ launchBrowser }} = require({json.dumps(str(runtime_js_dir() / 'gpu_laun
console.log(JSON.stringify({{ a_shared: a.shared, b_shared: b.shared, reconnect_ms, alive }}));
}})().catch((e) => {{ console.error(e); process.exit(1); }});
""")
- env = {"CV3D_CACHE_DIR": str(tmp_path / "cache")}
+ env = {"C3D_CACHE_DIR": str(tmp_path / "cache")}
out = run_node(script, [], timeout_s=120, env_extra=env).last_json
assert out["a_shared"] is True and out["b_shared"] is True and out["alive"]
assert out["reconnect_ms"] < 1000 # connect, not a fresh ~550ms+ launch
@@ -198,7 +198,7 @@ const {{ launchBrowser }} = require({json.dumps(str(runtime_js_dir() / 'gpu_laun
# and the main checkout sharing one cache dir cannot advertise over each other
endpoints = list((tmp_path / "cache").glob("browser_cpu_*.json"))
assert len(endpoints) == 1 and not endpoints[0].name.endswith(".failed.json")
- off = run_node(script, [], timeout_s=120, env_extra={**env, "CV3D_BROWSER_REUSE": "off"}).last_json
+ off = run_node(script, [], timeout_s=120, env_extra={**env, "C3D_BROWSER_REUSE": "off"}).last_json
assert off["a_shared"] is False and off["b_shared"] is False
_reap_daemons(tmp_path / "cache")
diff --git a/harness/tests/threejs_render/test_sheet.py b/harness/tests/threejs_render/test_sheet.py
index 806e0a59..82958902 100644
--- a/harness/tests/threejs_render/test_sheet.py
+++ b/harness/tests/threejs_render/test_sheet.py
@@ -7,7 +7,7 @@ from pathlib import Path
import pytest
from PIL import Image
-from codeverse.spatial.sheet import LABEL_H, PAD, contact_sheet
+from codeverse3d.spatial.sheet import LABEL_H, PAD, contact_sheet
def _png(path: Path, color, size=(120, 80)):
diff --git a/harness/tests/threejs_render/test_skeleton.py b/harness/tests/threejs_render/test_skeleton.py
index 999a1173..298fb57e 100644
--- a/harness/tests/threejs_render/test_skeleton.py
+++ b/harness/tests/threejs_render/test_skeleton.py
@@ -6,9 +6,9 @@ from pathlib import Path
import pytest
-from codeverse.contracts.plan import BBox, PartPlan, StaticPlan
-from codeverse.languages.threejs import ThreeJsRuntime, write_skeleton
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.plan import BBox, PartPlan, StaticPlan
+from codeverse3d.languages.threejs import ThreeJsRuntime, write_skeleton
+from codeverse3d.workspace import Workspace
def _plan() -> StaticPlan:
diff --git a/harness/tests/threejs_render/test_stale_outputs.py b/harness/tests/threejs_render/test_stale_outputs.py
index 9d2b7a52..149a788a 100644
--- a/harness/tests/threejs_render/test_stale_outputs.py
+++ b/harness/tests/threejs_render/test_stale_outputs.py
@@ -11,10 +11,10 @@ import json
import pytest
-import codeverse.languages.threejs as rt_mod
-from codeverse.languages.threejs import ThreeJsRuntime
-from codeverse.spatial.node import NodeError, NodeResult
-from codeverse.workspace import Workspace
+import codeverse3d.languages.threejs as rt_mod
+from codeverse3d.languages.threejs import ThreeJsRuntime
+from codeverse3d.spatial.node import NodeError, NodeResult
+from codeverse3d.workspace import Workspace
def _ws_with_stale(tmp_path) -> Workspace:
diff --git a/harness/tests/threejs_render/test_studio_rig.py b/harness/tests/threejs_render/test_studio_rig.py
index e17788a6..a83d5928 100644
--- a/harness/tests/threejs_render/test_studio_rig.py
+++ b/harness/tests/threejs_render/test_studio_rig.py
@@ -17,10 +17,10 @@ import numpy as np
import pytest
from PIL import Image
-from codeverse.conventions import OBJECT_VIEWS_QUICK
-from codeverse.spatial import render as render_mod
-from codeverse.spatial.node import runtime_js_dir
-from codeverse.spatial.render import render_glb
+from codeverse3d.conventions import OBJECT_VIEWS_QUICK
+from codeverse3d.spatial import render as render_mod
+from codeverse3d.spatial.node import runtime_js_dir
+from codeverse3d.spatial.render import render_glb
#: the page-side modules that decide what a frame LOOKS like (host plumbing —
#: lib/cli.mjs, lib/host_env.mjs, lib/host_page.mjs — deliberately stays out: it
@@ -112,7 +112,7 @@ def test_orbit_views_share_one_camera_distance(stool_glb: Path, tmp_path: Path):
resolution. Under the 14-view rig (D47) the band spans three elevation rings whose
exact fits genuinely differ, so the 10 % cap leaves a bounded spread between rings;
within a ring the distance must still be one number."""
- from codeverse.conventions import OBJECT_VIEWS
+ from codeverse3d.conventions import OBJECT_VIEWS
render_glb(stool_glb, tmp_path / "o", views=OBJECT_VIEWS, width=192, height=192,
sheet=False, use_cache=False)
diff --git a/harness/tests/urdf_joints/conftest.py b/harness/tests/urdf_joints/conftest.py
index 25df4375..0dd08844 100644
--- a/harness/tests/urdf_joints/conftest.py
+++ b/harness/tests/urdf_joints/conftest.py
@@ -8,7 +8,7 @@ import numpy as np
import pytest
import trimesh
-from codeverse.contracts.plan import ArticulatedPlan, BBox, JointPlan, PartPlan
+from codeverse3d.contracts.plan import ArticulatedPlan, BBox, JointPlan, PartPlan
CABINET_PRIMS = """<robot name="cab">
<link name="body"><visual><origin xyz="0 0 0.4"/><geometry><box size="0.6 0.4 0.8"/></geometry></visual></link>
diff --git a/harness/tests/urdf_joints/test_axis_repair.py b/harness/tests/urdf_joints/test_axis_repair.py
index af75b5ed..f3c59704 100644
--- a/harness/tests/urdf_joints/test_axis_repair.py
+++ b/harness/tests/urdf_joints/test_axis_repair.py
@@ -3,9 +3,9 @@ from __future__ import annotations
import xml.etree.ElementTree as ET
-from codeverse.contracts.artifacts import GateFinding, GateReport, Severity
-from codeverse.tracks.articulated_object import MOTION_GATE, repair_motion_axes
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import GateFinding, GateReport, Severity
+from codeverse3d.tracks.articulated_object import MOTION_GATE, repair_motion_axes
+from codeverse3d.workspace import Workspace
URDF = """<?xml version="1.0"?>
<robot name="cab">
@@ -82,7 +82,7 @@ def test_warn_and_unknown_joints_are_skipped(tmp_path):
def test_kill_switch_disables(tmp_path, monkeypatch):
- monkeypatch.setenv("CV3D_AXIS_REPAIR", "0")
+ monkeypatch.setenv("C3D_AXIS_REPAIR", "0")
ws = _ws(tmp_path)
assert repair_motion_axes(ws, _report(_finding("Hinge", cos=-1.0))) == []
assert _axis_of(ws, "Hinge") == (0.0, 0.0, -1.0)
@@ -99,7 +99,7 @@ def test_a_paired_axis_tag_keeps_the_joints_limit():
"""PR #3 review: '/>' never occurs inside '</axis>', so the old splice searched past
the paired tag, landed on the NEXT self-closing element and deleted the joint's
<limit/> — an invalid revolute joint shipped to src/ and artifacts/."""
- from codeverse.tracks.articulated_object import _set_axis_in_urdf_text
+ from codeverse3d.tracks.articulated_object import _set_axis_in_urdf_text
for axis_form in ('<axis xyz="1 0 0"></axis>', '<axis xyz="1 0 0"/>'):
urdf = ('<robot name="r"><joint name="h" type="revolute">\n'
@@ -117,8 +117,8 @@ def test_suggested_axis_is_expressed_in_the_joint_frame(tmp_path):
motion when installed."""
import numpy as np
- from codeverse.spatial.joints_model import load_urdf
- from codeverse.spatial.joints_sweep import motion_direction_check
+ from codeverse3d.spatial.joints_model import load_urdf
+ from codeverse3d.spatial.joints_sweep import motion_direction_check
urdf = tmp_path / "r.urdf"
urdf.write_text(
diff --git a/harness/tests/urdf_joints/test_buried_links.py b/harness/tests/urdf_joints/test_buried_links.py
index 93db52e0..443caf6b 100644
--- a/harness/tests/urdf_joints/test_buried_links.py
+++ b/harness/tests/urdf_joints/test_buried_links.py
@@ -4,8 +4,8 @@ from __future__ import annotations
from pathlib import Path
-from codeverse.contracts.artifacts import Severity
-from codeverse.spatial.joints import buried_links, load_urdf
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.spatial.joints import buried_links, load_urdf
from tests.urdf_joints.conftest import box_glb
URDF = """<?xml version="1.0"?>
diff --git a/harness/tests/urdf_joints/test_consistency.py b/harness/tests/urdf_joints/test_consistency.py
index 93f4578b..acc2ff02 100644
--- a/harness/tests/urdf_joints/test_consistency.py
+++ b/harness/tests/urdf_joints/test_consistency.py
@@ -2,9 +2,9 @@
from __future__ import annotations
-from codeverse.contracts.artifacts import Severity
-from codeverse.languages.urdf import check_fk_consistency
-from codeverse.spatial.joints import load_urdf
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.languages.urdf import check_fk_consistency
+from codeverse3d.spatial.joints import load_urdf
from tests.urdf_joints.conftest import write_mesh_robot
CENSUS = {"body": {"bbox_min": [-0.3, -0.2, 0.0], "bbox_max": [0.3, 0.2, 0.8]},
diff --git a/harness/tests/urdf_joints/test_export.py b/harness/tests/urdf_joints/test_export.py
index 0f73de66..fe2264f3 100644
--- a/harness/tests/urdf_joints/test_export.py
+++ b/harness/tests/urdf_joints/test_export.py
@@ -9,8 +9,8 @@ import pytest
import trimesh
from PIL import Image
-from codeverse.contracts.artifacts import RenderSet, RenderView
-from codeverse.spatial.joints import (
+from codeverse3d.contracts.artifacts import RenderSet, RenderView
+from codeverse3d.spatial.joints import (
ARTICULATION_SHEET_NAME,
UrdfError,
load_urdf,
@@ -53,7 +53,7 @@ def test_urdf_to_glb_hierarchy_and_extras(tmp_path):
def test_render_poses_with_fake_renderer_builds_sheet(tmp_path, monkeypatch):
- import codeverse.spatial.joints_export as je
+ import codeverse3d.spatial.joints_export as je
urdf, meshes = write_mesh_robot(tmp_path)
r = load_urdf(urdf, meshes)
@@ -87,7 +87,7 @@ def test_multi_material_link_keeps_materials(tmp_path):
b.apply_translation((0, 0, 0.3))
b.visual = trimesh.visual.TextureVisuals(material=trimesh.visual.material.PBRMaterial(name="metal", baseColorFactor=[200, 200, 210, 255]))
(meshes / "body.glb").write_bytes(trimesh.Scene([a, b]).export(file_type="glb"))
- from codeverse.spatial.joints import load_urdf as _load
+ from codeverse3d.spatial.joints import load_urdf as _load
r = _load(urdf, meshes)
assert len(r.links["body"].submeshes) == 2 and len(r.links["body"].mesh.split(only_watertight=False)) == 2
@@ -101,9 +101,9 @@ def test_multi_material_link_keeps_materials(tmp_path):
def test_joint_sweep_tool_offline(tmp_path, monkeypatch):
"""The ``joint_sweep`` tool body lives in spatial.tools: collision sweep over every
joint, renders narrowed to ``joints`` (+ rest) through ``render_poses``."""
- import codeverse.spatial.tools as ts
- from codeverse.spatial.registry import ToolContext, get_tool
- from codeverse.workspace import Workspace
+ import codeverse3d.spatial.tools as ts
+ from codeverse3d.spatial.registry import ToolContext, get_tool
+ from codeverse3d.workspace import Workspace
ws = Workspace(tmp_path / "ws").create()
ctx = ToolContext(workspace=ws, language="urdf_blender", track="articulated_object")
@@ -130,9 +130,9 @@ def test_joint_sweep_penetration_is_a_verdict_not_an_mcp_error(tmp_path, monkeyp
"""A sweep that finds a penetration RAN: ``failed`` stays False (63% of 1404 recorded
joint_sweep calls answered FAIL, and each one reported as an MCP error bought a retry
at ~117k prompt tokens), and the FAIL verdict leads the text."""
- import codeverse.spatial.tools as ts
- from codeverse.spatial.registry import ToolContext, get_tool
- from codeverse.workspace import Workspace
+ import codeverse3d.spatial.tools as ts
+ from codeverse3d.spatial.registry import ToolContext, get_tool
+ from codeverse3d.workspace import Workspace
from tests.urdf_joints.conftest import write_prims_robot
ws = Workspace(tmp_path / "ws").create()
@@ -151,7 +151,7 @@ def test_robot_named_like_a_link_keeps_frame_and_placement(tmp_path):
"""``<robot name="body">`` with a root link ``body``: scene-graph node names must be
unique, so the root node gets a ``__root`` suffix instead of aliasing the link node
(which silently dropped the Z-up→Y-up rotation and the door's joint placement)."""
- from codeverse.spatial.measure import measure_glb
+ from codeverse3d.spatial.measure import measure_glb
urdf, meshes = write_mesh_robot(tmp_path)
urdf.write_text(urdf.read_text().replace('<robot name="cab">', '<robot name="body">'))
diff --git a/harness/tests/urdf_joints/test_joints_model.py b/harness/tests/urdf_joints/test_joints_model.py
index 9aa91916..9fe48c71 100644
--- a/harness/tests/urdf_joints/test_joints_model.py
+++ b/harness/tests/urdf_joints/test_joints_model.py
@@ -7,7 +7,7 @@ import math
import numpy as np
import pytest
-from codeverse.spatial.joints import (
+from codeverse3d.spatial.joints import (
UrdfError,
fk,
limit_poses,
@@ -16,7 +16,7 @@ from codeverse.spatial.joints import (
pose_label,
pose_samples,
)
-from codeverse.spatial.joints_model import (
+from codeverse3d.spatial.joints_model import (
invert_transform,
make_transform,
matrix_to_rpy,
diff --git a/harness/tests/urdf_joints/test_lint.py b/harness/tests/urdf_joints/test_lint.py
index d513a4fd..bdcaf2b9 100644
--- a/harness/tests/urdf_joints/test_lint.py
+++ b/harness/tests/urdf_joints/test_lint.py
@@ -2,9 +2,9 @@
from __future__ import annotations
-from codeverse.contracts.artifacts import Severity
-from codeverse.languages.urdf import lint_model_text, lint_urdf_text, lint_workspace
-from codeverse.workspace import Workspace
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.languages.urdf import lint_model_text, lint_urdf_text, lint_workspace
+from codeverse3d.workspace import Workspace
GOOD = """<?xml version="1.0"?>
<robot name="cab">
@@ -120,7 +120,7 @@ def test_model_lint():
assert f[0].severity == Severity.ERROR and "SyntaxError" in f[0].message and f[0].data["line"] == 1
f = lint_model_text("import math\n", [])
assert any("never imports bpy" in m for m in _msgs(f, Severity.ERROR))
- f = lint_model_text("import bpy\nfrom codeverse.x import y\n", [])
+ f = lint_model_text("import bpy\nfrom codeverse3d.x import y\n", [])
assert any("harness" in m for m in _msgs(f, Severity.ERROR))
diff --git a/harness/tests/urdf_joints/test_live_blender.py b/harness/tests/urdf_joints/test_live_blender.py
index dbed4272..d6d230f8 100644
--- a/harness/tests/urdf_joints/test_live_blender.py
+++ b/harness/tests/urdf_joints/test_live_blender.py
@@ -5,10 +5,10 @@ from __future__ import annotations
import numpy as np
import pytest
-from codeverse.config import get_settings
-from codeverse.languages.urdf import UrdfBlenderRuntime
-from codeverse.spatial.joints import fk, link_world_meshes, load_urdf, motion_direction_check
-from codeverse.workspace import Workspace
+from codeverse3d.config import get_settings
+from codeverse3d.languages.urdf import UrdfBlenderRuntime
+from codeverse3d.spatial.joints import fk, link_world_meshes, load_urdf, motion_direction_check
+from codeverse3d.workspace import Workspace
pytestmark = pytest.mark.blender
needs_blender = pytest.mark.skipif(not get_settings().resolve_blender(), reason="no Blender binary")
@@ -110,7 +110,7 @@ def test_wrapper_unsafe_link_name_is_a_build_error(tmp_path):
import json as _json
import subprocess
- from codeverse.languages.urdf import WRAPPER
+ from codeverse3d.languages.urdf import WRAPPER
(tmp_path / "robot.urdf").write_text('<robot name="r"><link name="../evil"/></robot>')
(tmp_path / "model.py").write_text("import bpy\n")
diff --git a/harness/tests/urdf_joints/test_mimic.py b/harness/tests/urdf_joints/test_mimic.py
index c4f196c1..78424bba 100644
--- a/harness/tests/urdf_joints/test_mimic.py
+++ b/harness/tests/urdf_joints/test_mimic.py
@@ -11,16 +11,16 @@ from pathlib import Path
import pytest
-from codeverse.contracts.plan import ArticulatedPlan
-from codeverse.languages.urdf import lint_workspace, render_urdf
-from codeverse.spatial.joints import (
+from codeverse3d.contracts.plan import ArticulatedPlan
+from codeverse3d.languages.urdf import lint_workspace, render_urdf
+from codeverse3d.spatial.joints import (
UrdfError,
load_urdf,
motion_direction_check,
pose_samples,
sweep_collisions,
)
-from codeverse.spatial.joints_model import fk, resolve_q
+from codeverse3d.spatial.joints_model import fk, resolve_q
from tests.urdf_joints.conftest import box_glb
RIB = """<?xml version="1.0"?>
@@ -88,8 +88,8 @@ def test_pose_samples_drive_only_the_degrees_of_freedom(tmp_path):
def test_the_contact_sheet_and_joint_narrowing_show_only_input_joints(tmp_path):
"""`limit_poses` feeds the articulation sheet and `joint_sweep(joints=...)`: a tile for
a driven joint would be the rest pose with a label saying it moved."""
- from codeverse.spatial.joints_model import fk
- from codeverse.spatial.joints_poses import limit_poses
+ from codeverse3d.spatial.joints_model import fk
+ from codeverse3d.spatial.joints_poses import limit_poses
r = _robot(tmp_path)
labels = [lab for lab, _ in limit_poses(r)]
@@ -126,8 +126,8 @@ def test_a_broken_coupling_is_refused_at_load(tmp_path, bad, msg):
def test_the_skeleton_writes_the_plan_s_coupling(cabinet_plan):
- from codeverse.contracts.plan import MimicPlan
- from codeverse.languages.urdf import compute_urdf_frames
+ from codeverse3d.contracts.plan import MimicPlan
+ from codeverse3d.languages.urdf import compute_urdf_frames
plan = cabinet_plan.model_copy(deep=True)
plan.joints[0].mimic = MimicPlan(joint="handle_mount", multiplier=2.0, offset=0.1)
@@ -138,7 +138,7 @@ def test_the_skeleton_writes_the_plan_s_coupling(cabinet_plan):
def test_the_lint_accepts_a_real_coupling_and_names_a_broken_one(tmp_path, monkeypatch):
- from codeverse.workspace import Workspace
+ from codeverse3d.workspace import Workspace
ws = Workspace(tmp_path / "ws").create()
(ws.src / "robot.urdf").write_text(RIB)
@@ -155,8 +155,8 @@ def _plan(**joint_overrides):
"""The worked articulated example with a second joint that can carry a coupling."""
import copy
- from codeverse.contracts.common import Track
- from codeverse.tracks.planner import plan_example
+ from codeverse3d.contracts.common import Track
+ from codeverse3d.tracks.planner import plan_example
d = copy.deepcopy(plan_example(Track.ARTICULATED_OBJECT))
d["parts"].append({"name": "Lid", "role": "top lid", "description": "a flat lid", "attach_to": "Cabinet",
@@ -206,7 +206,7 @@ def test_a_mimic_of_an_instanced_driver_follows_the_first_instance():
"""An instanced driver exists only as ``<name>_1..._n``; writing the plan's bare name
made the skeleton fail its own lint and `load_urdf` (a scissor/pantograph plan is the
likely place to hit it)."""
- from codeverse.languages.urdf import compute_urdf_frames
+ from codeverse3d.languages.urdf import compute_urdf_frames
d = _plan()
d["parts"][1]["instances"] = 2 # the drawer, driven by DrawerSlide
@@ -227,8 +227,8 @@ def test_the_three_layers_reject_the_same_near_zero_multiplier(tmp_path):
(< 1e-12), so a coupling the planner could not write was one the URDF path took.
All three read ``MIMIC_MIN_MULTIPLIER`` now.
"""
- from codeverse.contracts.common import MIMIC_MIN_MULTIPLIER
- from codeverse.workspace import Workspace
+ from codeverse3d.contracts.common import MIMIC_MIN_MULTIPLIER
+ from codeverse3d.workspace import Workspace
dead = 1e-10 # under the shared floor, over the 1e-12 the loader and the lint used
assert dead < MIMIC_MIN_MULTIPLIER
@@ -249,7 +249,7 @@ def test_the_lint_sees_a_cycle_the_per_joint_pass_could_not(tmp_path):
"""``rib_a`` follows ``rib_b`` follows ``rib_a``: no single <mimic> element is wrong,
only the graph is. The lint checked one joint at a time and passed this file; the
loader then refused it, so the failure landed after the build instead of before."""
- from codeverse.workspace import Workspace
+ from codeverse3d.workspace import Workspace
ws = Workspace(tmp_path / "ws").create()
(ws.src / "robot.urdf").write_text(RIB.replace('<mimic joint="runner_slide" multiplier="4" offset="0"/>',
@@ -262,7 +262,7 @@ def test_the_lint_sees_a_cycle_the_per_joint_pass_could_not(tmp_path):
def test_an_unknown_target_is_reported_once_not_once_per_follower():
"""The chain walk exists to find cycles. Every joint it walks through is itself in
the set and reports its own broken target, so the walk must not report it again."""
- from codeverse.contracts.common import MimicSpec, mimic_issues
+ from codeverse3d.contracts.common import MimicSpec, mimic_issues
issues = mimic_issues([
MimicSpec(key="a", name="a", movable=True, target="ghost"),
@@ -276,7 +276,7 @@ def test_the_lint_warns_when_a_coupling_drives_past_the_follower_s_own_limits(tm
coupling reaches exactly 1.2, so the file that ships is silent. At multiplier 5 it
reaches 1.5 and the limits and the multiplier disagree; the sweep then poses the joint
where its own <limit> says it cannot go."""
- from codeverse.workspace import Workspace
+ from codeverse3d.workspace import Workspace
ws = Workspace(tmp_path / "ws").create()
(ws.src / "model.py").write_text("import bpy\n")
@@ -305,7 +305,7 @@ def test_the_skeleton_says_when_only_the_first_instance_of_a_driver_is_followed(
file that ships says so, beside the ``<mimic>`` — written where the instancing is
known, because a lint cannot tell an instance from a joint an agent named ``hinge_2``.
"""
- from codeverse.languages.urdf import compute_urdf_frames
+ from codeverse3d.languages.urdf import compute_urdf_frames
d = _plan()
d["parts"][1]["instances"] = 2
@@ -318,7 +318,7 @@ def test_the_skeleton_says_when_only_the_first_instance_of_a_driver_is_followed(
def test_the_lint_does_not_mistake_hand_named_joints_for_instances(tmp_path):
"""``hinge_1`` / ``hinge_2`` named by an agent are two joints, not one instanced
driver: a follower of ``hinge_1`` must not be told to couple ``hinge_2`` too."""
- from codeverse.workspace import Workspace
+ from codeverse3d.workspace import Workspace
urdf = (RIB.replace('joint name="runner_slide"', 'joint name="runner_slide_1"')
.replace('<mimic joint="runner_slide" ', '<mimic joint="runner_slide_1" ')
@@ -340,7 +340,7 @@ def test_the_exported_pose_glb_moves_the_followers_like_fk_does(tmp_path):
import numpy as np
import trimesh
- from codeverse.spatial.joints_export import ZUP_TO_YUP, urdf_to_glb
+ from codeverse3d.spatial.joints_export import ZUP_TO_YUP, urdf_to_glb
robot = _robot(tmp_path)
q = {"runner_slide": 0.3}
@@ -381,7 +381,7 @@ def test_a_self_joint_says_which_links_collided():
normalisation says so."""
import pytest as _pytest
- from codeverse.contracts.plan import JointPlan
+ from codeverse3d.contracts.plan import JointPlan
common = {"type": "revolute", "axis": [0, 0, 1], "pivot": [0, 0, 0],
"lower": 0.0, "upper": 1.0, "rest": 0.0}
diff --git a/harness/tests/urdf_joints/test_runtime_offline.py b/harness/tests/urdf_joints/test_runtime_offline.py
index d8c6744a..1c797ba5 100644
--- a/harness/tests/urdf_joints/test_runtime_offline.py
+++ b/harness/tests/urdf_joints/test_runtime_offline.py
@@ -7,12 +7,12 @@ from types import SimpleNamespace
import pytest
-import codeverse.languages.urdf as rt_mod
-from codeverse.contracts.common import Language
-from codeverse.languages import get_runtime
-from codeverse.languages.urdf import UrdfBlenderRuntime
-from codeverse.proc import ProcResult
-from codeverse.workspace import Workspace
+import codeverse3d.languages.urdf as rt_mod
+from codeverse3d.contracts.common import Language
+from codeverse3d.languages import get_runtime
+from codeverse3d.languages.urdf import UrdfBlenderRuntime
+from codeverse3d.proc import ProcResult
+from codeverse3d.workspace import Workspace
from tests.urdf_joints.conftest import box_glb
BODY = ((0, 0, 0.4), (0.6, 0.4, 0.8))
diff --git a/harness/tests/urdf_joints/test_skeleton.py b/harness/tests/urdf_joints/test_skeleton.py
index 447db591..a0b2b5ab 100644
--- a/harness/tests/urdf_joints/test_skeleton.py
+++ b/harness/tests/urdf_joints/test_skeleton.py
@@ -7,8 +7,8 @@ import ast
import numpy as np
import pytest
-from codeverse.contracts.plan import ArticulatedPlan, BBox, JointPlan, PartPlan
-from codeverse.languages.urdf import (
+from codeverse3d.contracts.plan import ArticulatedPlan, BBox, JointPlan, PartPlan
+from codeverse3d.languages.urdf import (
compute_urdf_frames,
lint_model_text,
lint_urdf_text,
@@ -16,8 +16,8 @@ from codeverse.languages.urdf import (
render_urdf,
write_skeleton,
)
-from codeverse.spatial.joints import fk, load_urdf
-from codeverse.workspace import Workspace
+from codeverse3d.spatial.joints import fk, load_urdf
+from codeverse3d.workspace import Workspace
def test_frames_chain(cabinet_plan):
@@ -99,8 +99,8 @@ def test_write_skeleton(tmp_path, drawer_plan):
def test_skeleton_rejects_static_plan(tmp_path):
- from codeverse.contracts.plan import StaticPlan
- from codeverse.languages.urdf import UrdfBlenderRuntime
+ from codeverse3d.contracts.plan import StaticPlan
+ from codeverse3d.languages.urdf import UrdfBlenderRuntime
sp = StaticPlan(object_name="x", summary="s", overall_bbox=BBox(center=(0, 0, 0), extents=(1, 1, 1)),
parts=[PartPlan(name="A", role="r", description="d", bbox=BBox(center=(0, 0, 0), extents=(1, 1, 1)))])
diff --git a/harness/tests/urdf_joints/test_sweep.py b/harness/tests/urdf_joints/test_sweep.py
index 324e3398..c63bc91b 100644
--- a/harness/tests/urdf_joints/test_sweep.py
+++ b/harness/tests/urdf_joints/test_sweep.py
@@ -4,8 +4,8 @@ from __future__ import annotations
import pytest
-from codeverse.contracts.artifacts import GateFinding, Severity
-from codeverse.spatial.joints import (
+from codeverse3d.contracts.artifacts import GateFinding, Severity
+from codeverse3d.spatial.joints import (
UrdfError,
load_urdf,
motion_direction_check,
@@ -14,7 +14,7 @@ from codeverse.spatial.joints import (
sweep_collisions,
sweep_findings,
)
-from codeverse.spatial.joints_sweep import MAX_PAIR_FINDINGS, aggregate_findings
+from codeverse3d.spatial.joints_sweep import MAX_PAIR_FINDINGS, aggregate_findings
from tests.urdf_joints.conftest import (
write_carcass_drawer_robot,
write_mesh_robot,
@@ -94,8 +94,8 @@ def test_motion_direction(tmp_path):
def test_trimesh_fallback_backend(tmp_path, monkeypatch):
- import codeverse.spatial.joints_collide as jc
- import codeverse.spatial.joints_sweep as js
+ import codeverse3d.spatial.joints_collide as jc
+ import codeverse3d.spatial.joints_sweep as js
monkeypatch.setattr(jc, "_fcl", None)
r = load_urdf(write_prims_robot(tmp_path / "cab.urdf", axis_z=+1))
@@ -110,7 +110,7 @@ def test_agent_style_meshes_penetration_is_real_and_deterministic(tmp_path, monk
"""Non-watertight, inverted-winding links (the wrapper's usual output): a clean design
must report no overlap and a drawer driven 30 mm through the side panel must be caught —
identically on every call (no random ray re-casts) and on both backends."""
- import codeverse.spatial.joints_collide as jc
+ import codeverse3d.spatial.joints_collide as jc
if not fcl:
monkeypatch.setattr(jc, "_fcl", None)
@@ -156,7 +156,7 @@ def test_joints_argument_narrows_the_render_to_those_joints(monkeypatch, tmp_pat
rendered every joint's limit poses (three views each). Measured 2026-08-25: articulated
rounds ran a median 1007 s vs 497 s for static objects, agents calling the sweep 3-8
times a round on 10-joint objects (~63 renders a call)."""
- from codeverse.spatial import tools as ts
+ from codeverse3d.spatial import tools as ts
class _J:
def __init__(self, name, lo, hi, type="revolute"): self.name, self.lower, self.upper, self.type = name, lo, hi, type
diff --git a/harness/tests/urdf_joints/test_sweep_degrade.py b/harness/tests/urdf_joints/test_sweep_degrade.py
index cacd654b..d0b1317e 100644
--- a/harness/tests/urdf_joints/test_sweep_degrade.py
+++ b/harness/tests/urdf_joints/test_sweep_degrade.py
@@ -4,16 +4,16 @@ from __future__ import annotations
from types import SimpleNamespace
-from codeverse.contracts.artifacts import Severity
-from codeverse.spatial.render import RenderError
+from codeverse3d.contracts.artifacts import Severity
+from codeverse3d.spatial.render import RenderError
def test_pose_render_failure_keeps_the_measured_sweep(tmp_path, monkeypatch):
"""art_verify architect_lamp, 2026-08-26: render_glb.mjs timed out after 330 s inside
render_poses with three articulated runs sharing the browser; gates() raised and the run
was recorded failed before its first round."""
- import codeverse.tracks.articulated_object as art
- from codeverse.spatial import joints
+ import codeverse3d.tracks.articulated_object as art
+ from codeverse3d.spatial import joints
urdf = tmp_path / "src" / "robot.urdf"
urdf.parent.mkdir(parents=True)