Skip to content

Official Codebase of 3DCodeVerse

Python

scene: camera repair defaults ON — insurance that costs nothing when healthy

gaoypengeaab68893f58
diff --git a/harness/codeverse/spatial/probes.py b/harness/codeverse/spatial/probes.py
index 4595f2e9..f1ff7624 100644
--- a/harness/codeverse/spatial/probes.py
+++ b/harness/codeverse/spatial/probes.py
@@ -72,7 +72,10 @@ def probe_scene(ws: Workspace, *, timeout_s: float = 60.0, write_census: bool =
args = ["--ws", str(ws.root), "--out", str(out_json), "--timeout-ms", str(int(timeout_s * 1000))]
if os.environ.get("CV3D_SETTLE") == "0": # A/B switch for the boot-time auto-seat
args.append("--no-settle")
- if os.environ.get("CV3D_CAMERA_REPAIR") == "1": # opt-in: repair plan cameras stuck in geometry
+ if os.environ.get("CV3D_CAMERA_REPAIR") != "0": # 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 os.environ.get("CV3D_AUTO_EXPOSURE") == "1": # opt-in: bounded scene-wide exposure into the healthy band
args.append("--auto-exposure")
diff --git a/harness/codeverse/spatial/render_scene.py b/harness/codeverse/spatial/render_scene.py
index 2046075e..6d75994d 100644
--- a/harness/codeverse/spatial/render_scene.py
+++ b/harness/codeverse/spatial/render_scene.py
@@ -142,7 +142,10 @@ def render_scene(
args += ["--timeout-ms", str(int(tmo * 1000))]
if os.environ.get("CV3D_SETTLE") == "0": # A/B switch for the boot-time auto-seat
args.append("--no-settle")
- if os.environ.get("CV3D_CAMERA_REPAIR") == "1": # opt-in: repair plan cameras stuck in geometry
+ if os.environ.get("CV3D_CAMERA_REPAIR") != "0": # 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 os.environ.get("CV3D_AUTO_EXPOSURE") == "1": # opt-in: bounded scene-wide exposure into the healthy band
args.append("--auto-exposure")
diff --git a/harness/tests/scene_runtime/test_render_scene.py b/harness/tests/scene_runtime/test_render_scene.py
index 9b1fd032..ffbe6c97 100644
--- a/harness/tests/scene_runtime/test_render_scene.py
+++ b/harness/tests/scene_runtime/test_render_scene.py
@@ -86,7 +86,10 @@ def test_missing_driver_raises(fake_runtime):
@pytest.mark.node
@needs_browser
-def test_camera_in_geometry_is_detected(starter_ws):
+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")
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)