Official Codebase of 3DCodeVerse
Python
Stop writing census fields no code reads (bpy objects, cadquery parts, GL build, urdf, threejs error, LintKind.CENSUS); LintKind docstring states its readers
gaoypengf79e06b1d395
diff --git a/harness/codeverse3d/contracts/artifacts.py b/harness/codeverse3d/contracts/artifacts.pyindex ad4f2751..dd5cabb8 100644--- a/harness/codeverse3d/contracts/artifacts.py+++ b/harness/codeverse3d/contracts/artifacts.py@@ -19,7 +19,8 @@ class Severity(StrEnum):class LintKind(StrEnum):- """``data.kind`` of a ``lint:<language>`` finding: routes skills and matches cap rules."""+ """``data.kind`` of a ``lint:<language>`` finding. Read by ``skills.registry`` (``lint/*`` skill routing, ``lint/part_not_imported``)+ and the shader rubric's kind-less ``lint*`` cap; the rest are labels for the agent and the record."""SYNTAX = "syntax" # the file does not parseMISSING_FILE = "missing_file" # an entry / planned part file is absent@@ -39,7 +40,6 @@ class LintKind(StrEnum):MIMIC = "mimic" # a <mimic> couplingHANG_RISK = "hang_risk" # a loop / call that can stall a headless buildNONDETERMINISM = "nondeterminism" # an unseeded random source- CENSUS = "census" # INFO: what the lint saw#: ``GateFinding.data["kind"]`` of a plan part that is still the skeleton's placeholder box;diff --git a/harness/codeverse3d/languages/_gl_common.py b/harness/codeverse3d/languages/_gl_common.pyindex 4db2aa7e..9911c6e9 100644--- a/harness/codeverse3d/languages/_gl_common.py+++ b/harness/codeverse3d/languages/_gl_common.py@@ -75,14 +75,13 @@ def judge_times(duration_s: float | None) -> list[float]:def finish_build(ws: Workspace, res: GlResult, *, language: str, error_file: str = "", error_line: int | None = None,- error_message: str | None = None, census: dict | None = None, motion_expected: bool = True) -> BuildResult:+ error_message: str | None = None, motion_expected: bool = True) -> BuildResult:"""Write derived artifacts + build.json and return the BuildResult."""art = ws.artifactsart.mkdir(parents=True, exist_ok=True)extras: dict[str, str] = {}gates: list[GateReport] = []- cen: dict = {"renderer": res.renderer, "gpu": res.gpu, "feedback": res.feedback, "n_frames": len(res.frames),- "gl_duration_ms": res.duration_ms, **(census or {})}+ cen: dict = {"renderer": res.renderer}if res.ok and res.judge_frames:frames = res.judge_framesextras["frames"] = str(art / "frames")@@ -97,8 +96,6 @@ def finish_build(ws: Workspace, res: GlResult, *, language: str, error_file: strmetrics = art / METRICS_NAMEws.write_json(metrics, {"stats": seq.model_dump(mode="json"), "gate": gate.model_dump(mode="json")})extras["metrics"] = str(metrics)- cen["frame_stats"] = {"mean_lum": seq.mean_lum, "mean_diff": seq.mean_diff, "static": seq.static, "any_nan": seq.any_nan,- "colourfulness": seq.mean_colourfulness, "edge_density": seq.mean_edge_density}result = BuildResult(ok=bool(res.ok and res.judge_frames), language=language, glb_path=None, extra_paths=extras,stdout_tail=res.stdout_tail, stderr_tail=(res.traceback or res.stderr_tail)[-4000:],diff --git a/harness/codeverse3d/languages/blender/__init__.py b/harness/codeverse3d/languages/blender/__init__.pyindex f8879290..cf11b6c5 100644--- a/harness/codeverse3d/languages/blender/__init__.py+++ b/harness/codeverse3d/languages/blender/__init__.py@@ -303,7 +303,7 @@ def source_traps(c: BpyCollector, source: str) -> list[GateFinding]:def _rules(c: BpyCollector, source: str, *, target: str, expect_names: bool, expect_bpy: bool) -> list[GateFinding]:out: list[GateFinding] = []- E, W, I = Severity.ERROR, Severity.WARN, Severity.INFO # noqa: E741+ E, W = Severity.ERROR, Severity.WARNif expect_bpy and "bpy" not in c.imports:out.append(_f(LintKind.UNDEFINED_NAME, E, f"{target} never imports bpy", 1, "start the file with `import bpy`"))@@ -332,9 +332,7 @@ def _rules(c: BpyCollector, source: str, *, target: str, expect_names: bool, expout.extend(use_nodes_trap(target, line))out.extend(source_traps(c, source))pascal = [n for n in c.names_assigned if PASCAL_RE.match(n) and n not in ("Cube", "Cylinder", "Sphere", "Plane")]- if pascal:- out.append(_f(LintKind.CENSUS, I, f"named objects: {sorted(set(pascal))[:12]}", None, ""))- elif expect_names:+ if expect_names and not pascal:out.append(_f(LintKind.NAMING, W, "no PascalCase object names found (e.g. obj.name = 'SeatCushion')", None,"name every visible mesh after its part: `obj.name = 'SeatCushion'`; instances `Leg_0..Leg_3`"))return outdiff --git a/harness/codeverse3d/languages/glsl_shader/__init__.py b/harness/codeverse3d/languages/glsl_shader/__init__.pyindex 0b99c68e..dd3d1b5b 100644--- a/harness/codeverse3d/languages/glsl_shader/__init__.py+++ b/harness/codeverse3d/languages/glsl_shader/__init__.py@@ -362,8 +362,6 @@ class GlslShaderRuntime(RuntimeLayout):buffer_a_src=buffer_a.source if buffer_a else None, feedback=image.uses_feedback or buffer_a is not None,extra_times=gif_times(duration or 8.0) if preview else (),)- census = {"convention": image.convention, "has_common": (ws.root / COMMON).is_file(), "has_buffer_a": buffer_a is not None,- "resolution": [w, h]}err_file, err_line, err_msg = "", None, Noneif not res.ok and res.stage in ("compile", "compile_buffer_a"):comp = buffer_a if res.stage == "compile_buffer_a" and buffer_a else image@@ -376,4 +374,4 @@ class GlslShaderRuntime(RuntimeLayout):res.error_type = "GlslCompileError"motion_expected = bool(plan.motion.strip()) if plan else Truereturn finish_build(ws, res, language=self.language.value, error_file=err_file, error_line=err_line,- error_message=err_msg, census=census, motion_expected=motion_expected)+ error_message=err_msg, motion_expected=motion_expected)diff --git a/harness/codeverse3d/languages/opengl_python/__init__.py b/harness/codeverse3d/languages/opengl_python/__init__.pyindex e2b124db..cd8dd7dc 100644--- a/harness/codeverse3d/languages/opengl_python/__init__.py+++ b/harness/codeverse3d/languages/opengl_python/__init__.py@@ -303,7 +303,6 @@ class OpenGLPythonRuntime(RuntimeLayout):res.error_type = "GlslCompileError"err_msg += "\n(GLSL line numbers refer to the shader STRING inside program.py: " + \"; ".join(f"line {m.line}: {m.message}" for m in glsl[:8]) + ")"- census = {"resolution": [w, h]}motion_expected = bool(plan.motion.strip()) if plan else Truereturn finish_build(ws, res, language=self.language.value, error_file=err_file, error_line=err_line,- error_message=err_msg, census=census, motion_expected=motion_expected)+ error_message=err_msg, motion_expected=motion_expected)diff --git a/harness/codeverse3d/languages/threejs/__init__.py b/harness/codeverse3d/languages/threejs/__init__.pyindex c24301f6..95357293 100644--- a/harness/codeverse3d/languages/threejs/__init__.py+++ b/harness/codeverse3d/languages/threejs/__init__.py@@ -371,7 +371,6 @@ class ThreeJsRuntime(RuntimeLayout):result = self._failure(res, str(err.get("type", "Error")), str(err.get("message", "")))result.error_file = str(err.get("file", "") or self._part_file(ws, err.get("part")) or ("" if err.get("frames") else ENTRY))result.error_line = err.get("line") if isinstance(err.get("line"), int) else None- result.census = {"frames": err.get("frames", []), "stack": err.get("stack", ""), "part": str(err.get("part", "") or "")}return result@staticmethoddiff --git a/harness/codeverse3d/languages/urdf/__init__.py b/harness/codeverse3d/languages/urdf/__init__.pyindex cdcb2844..107240f7 100644--- a/harness/codeverse3d/languages/urdf/__init__.py+++ b/harness/codeverse3d/languages/urdf/__init__.py@@ -677,7 +677,7 @@ class UrdfBlenderRuntime(RuntimeLayout):if (missing := missing_entry(ws, self.language, write=False)) is not None:return finish(missing)lint = self.lint(ws)- census: dict[str, Any] = {"lint": [f.model_dump(mode="json") for f in lint.findings]}+ census: dict[str, Any] = {}if not lint.passed:errs = lint.errorsmsg = "\n".join(f"- {f.message}" + (f" → {f.fix_hint}" if f.fix_hint else "") for f in errs[:12])@@ -709,7 +709,6 @@ class UrdfBlenderRuntime(RuntimeLayout):return fail("UrdfError", str(e), census=census)fk_findings = check_fk_consistency(robot, census.get("links") or {}, tol_m=FK_TOL_M)- census["fk_check"] = [f.model_dump(mode="json") for f in fk_findings]if fk_findings:msg = "\n".join(f"- {f.as_line()}" for f in fk_findings)return fail("FkInconsistent", f"URDF frames do not reproduce the authored geometry:\n{msg}", census=census)diff --git a/harness/codeverse3d/languages/wrappers/_census.py b/harness/codeverse3d/languages/wrappers/_census.pyindex 0dcc4594..f31cf0db 100644--- a/harness/codeverse3d/languages/wrappers/_census.py+++ b/harness/codeverse3d/languages/wrappers/_census.py@@ -1,7 +1,7 @@"""Scene census for the Blender build wrappers; runs inside Blender, never imported by the harness.Imported by run_bpy.py / run_bpy_links.py as a sibling, so it stays standalone. Reports-evaluated triangle counts, bboxes, materials, parents and contract warnings."""+the objects (visibility, materials) and the contract warnings."""from __future__ import annotations@@ -33,41 +33,28 @@ def is_hidden(obj: Any, vl_names: set[str] | None = None) -> bool:return True-def _object_record(obj: Any, dg: Any, scene_objects: set[str], vl_names: set[str], Vector: Any) -> dict[str, Any]:+def _object_record(obj: Any, dg: Any, scene_objects: set[str], vl_names: set[str]) -> dict[str, Any]:rec: dict[str, Any] = {"name": obj.name,"type": obj.type,- "parent": obj.parent.name if obj.parent else None,"in_scene": obj.name in scene_objects,"in_view_layer": obj.name in vl_names,"hidden": is_hidden(obj, vl_names),"materials": [s.material.name for s in obj.material_slots if s.material],"n_material_slots": len(obj.material_slots),- "modifiers": [m.type for m in obj.modifiers],- "location": [round(v, 5) for v in obj.matrix_world.translation],}- if obj.type in MEASURABLE_TYPES:+ if obj.type in MEASURABLE_TYPES and rec["n_material_slots"]:try:ob_eval = obj.evaluated_get(dg)me = ob_eval.to_mesh()- me.calc_loop_triangles()- rec["tri_count"] = len(me.loop_triangles)- rec["vert_count"] = len(me.vertices)- rec["has_uv"] = bool(me.uv_layers)- rec["has_vertex_colors"] = bool(me.color_attributes)- if rec["n_material_slots"] and len(me.polygons):+ if len(me.polygons):# modifiers can add slot indices the mesh never had; export clamps out-of-range onesper_poly = [0] * len(me.polygons)me.polygons.foreach_get("material_index", per_poly)rec["material_indices_used"] = sorted(set(per_poly))- bb = world_bbox(ob_eval, Vector)ob_eval.to_mesh_clear()- except RuntimeError as e:- rec["tri_count"] = 0- rec["census_error"] = str(e)- bb = None- if bb:- rec["bbox_min"], rec["bbox_max"] = bb+ except RuntimeError:+ pass # an object that cannot be evaluated has no slot censusreturn rec@@ -142,40 +129,15 @@ def _warnings(bpy: Any, objects: list[dict[str, Any]], boolean_operands: dict[stdef collect_census(bpy: Any) -> dict[str, Any]:- from mathutils import Vector-bpy.context.view_layer.update()dg = bpy.context.evaluated_depsgraph_get()scene_objects = set(bpy.context.scene.objects.keys())vl_names = set(bpy.context.view_layer.objects.keys())boolean_operands: dict[str, list[str]] = {}objects: list[dict[str, Any]] = []- total_tris = 0- mins: list[list[float]] = []- maxs: list[list[float]] = []for obj in bpy.data.objects:for m in obj.modifiers:if m.type == "BOOLEAN" and getattr(m, "object", None) is not None:boolean_operands.setdefault(m.object.name, []).append(obj.name)- rec = _object_record(obj, dg, scene_objects, vl_names, Vector)- if rec["in_scene"] and not rec["hidden"] and obj.type in MEASURABLE_TYPES:- total_tris += rec["tri_count"]- if "bbox_min" in rec:- mins.append(rec["bbox_min"])- maxs.append(rec["bbox_max"])- objects.append(rec)- visible = [o for o in objects if o["in_scene"] and not o["hidden"] and o["type"] == "MESH"]- census = {- "objects": objects,- "n_mesh_objects": len(visible),- "tri_count": total_tris,- "materials": [m.name for m in bpy.data.materials],- "cameras": [o.name for o in bpy.data.objects if o.type == "CAMERA"],- "lights": [o.name for o in bpy.data.objects if o.type == "LIGHT"],- "warnings": _warnings(bpy, objects, boolean_operands, scene_objects, vl_names),- "frame": "z_up_neg_y_front",- }- if mins:- census["scene_bbox_min"] = [round(min(m[i] for m in mins), 5) for i in range(3)]- census["scene_bbox_max"] = [round(max(m[i] for m in maxs), 5) for i in range(3)]- return census+ objects.append(_object_record(obj, dg, scene_objects, vl_names))+ return {"objects": objects, "warnings": _warnings(bpy, objects, boolean_operands, scene_objects, vl_names)}diff --git a/harness/codeverse3d/languages/wrappers/run_cq.py b/harness/codeverse3d/languages/wrappers/run_cq.pyindex fae46da2..4fd40620 100644--- a/harness/codeverse3d/languages/wrappers/run_cq.py+++ b/harness/codeverse3d/languages/wrappers/run_cq.py@@ -116,19 +116,12 @@ def tessellate(part: dict[str, Any], tol: float, ang: float) -> tuple[list[list[def part_census(part: dict[str, Any], n_tris: int) -> dict[str, Any]:shape = part["shape"]- bb = shape.BoundingBox()- rec: dict[str, Any] = {- "name": part["name"], "path": part["path"], "tri_count": n_tris,- "bbox_min": [round(bb.xmin, 5), round(bb.ymin, 5), round(bb.zmin, 5)],- "bbox_max": [round(bb.xmax, 5), round(bb.ymax, 5), round(bb.zmax, 5)],- "rgba": [round(c, 4) for c in part["rgba"]] if part["rgba"] else None,- }+ rec: dict[str, Any] = {"name": part["name"], "tri_count": n_tris}try:rec["volume_m3"] = round(float(shape.Volume()), 9)rec["n_solids"] = len(shape.Solids())- rec["valid"] = bool(shape.isValid())- except Exception as e: # noqa: BLE001- rec["census_error"] = str(e)+ except Exception: # noqa: BLE001+ pass # an unmeasurable shape carries no volume / solid countreturn rec@@ -203,7 +196,7 @@ def main() -> int:elif ns is None:err = {"error_type": "SystemExit", "error_file": entry_relative(script),"error_message": "script called sys.exit() before `result` could be read; remove it"}- census: dict[str, Any] = {"parts": [], "tri_count": 0, "warnings": report["warnings"], "frame": "z_up_neg_y_front"}+ census: dict[str, Any] = {"parts": [], "warnings": report["warnings"]}if err is None and ns is not None and "result" not in ns:err = {"error_type": "MissingResult", "error_file": entry_relative(script),"error_message": "model.py must assign a module-level `result` (cq.Assembly or cq.Workplane); "@@ -211,7 +204,6 @@ def main() -> int:if err is None and ns is not None:try:parts, kind = collect_parts(cq, ns["result"], report["warnings"])- census["result_kind"] = kindif kind == "single":report["warnings"].append("result is a bare Workplane/Shape: exported as ONE node 'Object' — prefer cq.Assembly with named, coloured parts")meshes = []@@ -227,10 +219,6 @@ def main() -> int:elif rec.get("n_solids") == 0:report["warnings"].append(f"part {p['name']!r} contains no solid (a face/shell/wire set, volume 0) — ""build it as a solid (.extrude()/.box()/.shell()) so it has thickness")- census["tri_count"] = sum(len(m[2]) for m in meshes)- if census["parts"]:- census["scene_bbox_min"] = [min(p["bbox_min"][i] for p in census["parts"]) for i in range(3)]- census["scene_bbox_max"] = [max(p["bbox_max"][i] for p in census["parts"]) for i in range(3)]glb = os.path.join(out_dir, GLB_NAME)build_glb(meshes, glb)report["exported"]["glb"] = glb@@ -241,7 +229,6 @@ def main() -> int:err["error_type"], err["error_message"] = "ExportError", f"{type(e).__name__}: {e}"if err:report.update({k: v for k, v in err.items() if k in report})- census["n_parts"] = len(census["parts"])report["ok"] = not report["error_type"] and "glb" in report["exported"]write_report(out_dir, report, census, t0)return 0diff --git a/harness/tests/blender_cadquery/test_blender_live_gates.py b/harness/tests/blender_cadquery/test_blender_live_gates.pyindex bc5d6bed..012f8706 100644--- a/harness/tests/blender_cadquery/test_blender_live_gates.py+++ b/harness/tests/blender_cadquery/test_blender_live_gates.py@@ -66,12 +66,12 @@ def test_census_matches_export_and_reports_what_the_export_hides(tmp_ws, blenderc = r.censusrec = {o["name"]: o for o in c["objects"]}assert rec["InColl"]["in_scene"] and not rec["InColl"]["in_view_layer"] and rec["InColl"]["hidden"]- assert c["tri_count"] == 2 * 12 and c["n_mesh_objects"] == 2 # Main + the arm, never InColl- assert c["scene_bbox_max"][2] <= 1.0 + 1e-4 # bbox not stretched to (10,10,10)warns = c["warnings"]assert any("excluded from the view layer" in w and "InColl" in w for w in warns)assert not any("no material" in w for w in warns) # no spurious warning for InCollscene = trimesh.load(r.glb_path)+ assert sum(len(g.faces) for g in scene.geometry.values()) == 2 * 12 # Main + the arm, never InColl+ assert scene.bounds[1].max() <= 1.0 + 1e-4 # bbox not stretched to (10,10,10)# census matches the export (a multi-material mesh loads as one node per material: <name>_<hash>)meshes = {"Main", "FlatArm"}assert {n if n in meshes else n.rsplit("_", 1)[0] for n in scene.graph.nodes_geometry} == meshesdiff --git a/harness/tests/blender_cadquery/test_blender_runtime.py b/harness/tests/blender_cadquery/test_blender_runtime.pyindex e5882648..8801a8d8 100644--- a/harness/tests/blender_cadquery/test_blender_runtime.py+++ b/harness/tests/blender_cadquery/test_blender_runtime.py@@ -31,10 +31,6 @@ def test_live_skeleton_builds_and_exports_canonical_glb(tmp_ws, table_plan, blenassert "Legs" not in scene.graph.nodes # instances are TOP-LEVEL: no parent Empty nodelo, hi = scene.boundsassert abs(lo[1]) < 1e-4 and abs(hi[1] - 0.6) < 1e-3 # Y-up, ground contact, height 0.6- c = r.census- assert c["tri_count"] == sum(o["tri_count"] for o in c["objects"] if o["type"] == "MESH")- assert c["n_mesh_objects"] == 6 and c["frame"] == "z_up_neg_y_front" and not c["cameras"]- assert abs(c["scene_bbox_min"][2]) < 1e-4 and abs(c["scene_bbox_max"][2] - 0.6) < 1e-3@pytest.mark.blender@@ -75,5 +71,5 @@ def test_live_triangle_count_is_not_a_build_error(tmp_ws, blender_bin) -> None:"import bpy\nbpy.ops.mesh.primitive_grid_add(x_subdivisions=600, y_subdivisions=600, size=1)\n""bpy.context.object.name = 'Sheet'\n")r = BlenderRuntime(blender=blender_bin).build(tmp_ws, timeout_s=120)- assert r.ok and r.census["tri_count"] == 720_000, (r.error_type, r.error_message)+ assert r.ok, (r.error_type, r.error_message)assert not any("triangle" in w for w in r.census["warnings"])diff --git a/harness/tests/blender_cadquery/test_cadquery_runtime.py b/harness/tests/blender_cadquery/test_cadquery_runtime.pyindex 90814a6d..552dc270 100644--- a/harness/tests/blender_cadquery/test_cadquery_runtime.py+++ b/harness/tests/blender_cadquery/test_cadquery_runtime.py@@ -29,9 +29,9 @@ def test_skeleton_builds_named_coloured_glb(tmp_ws, table_plan) -> None:top = scene.geometry[scene.graph["TableTop"][1]]assert top.visual.material.baseColorFactor[0] > top.visual.material.baseColorFactor[2]c = r.census- assert c["result_kind"] == "assembly" and c["n_parts"] == 6 and c["tri_count"] == 6 * 12+ assert len(c["parts"]) == 6 and sum(p["tri_count"] for p in c["parts"]) == 6 * 12leg = next(p for p in c["parts"] if p["name"] == "Leg_1")- assert leg["valid"] and abs(leg["volume_m3"] - 0.04 * 0.04 * 0.56) < 1e-9 and leg["bbox_min"][2] == 0.0+ assert abs(leg["volume_m3"] - 0.04 * 0.04 * 0.56) < 1e-9@needs_cq@@ -73,7 +73,7 @@ result.add(f, name='Sheet')# bare-Workplane result with a trailing selector → single node 'Object' + warning, parent solid exported(tmp_ws.src / "model.py").write_text("import cadquery as cq\nresult = cq.Workplane('XY').box(0.1, 0.1, 0.01).faces('>Z')\n")r = rt.build(tmp_ws, timeout_s=120)- assert r.ok and r.census["result_kind"] == "single" and r.census["parts"][0]["n_solids"] == 1+ assert r.ok and r.census["parts"][0]["n_solids"] == 1assert trimesh.load(r.glb_path).graph.nodes_geometry == ["Object"]# no solid anywhere in the chain (2D wires only) → a typed error naming the stack, not a silent sheet(tmp_ws.src / "model.py").write_text("import cadquery as cq\nresult = cq.Workplane('XY').rect(0.1, 0.1)\n")diff --git a/harness/tests/graphics/test_gl_runtime.py b/harness/tests/graphics/test_gl_runtime.pyindex 046fd545..af409c2b 100644--- a/harness/tests/graphics/test_gl_runtime.py+++ b/harness/tests/graphics/test_gl_runtime.py@@ -56,7 +56,6 @@ def test_shader_skeleton_builds_and_writes_artifacts(tmp_ws, host):metrics = json.loads((ws.artifacts / "metrics.json").read_text())assert metrics["stats"]["mean_lum"] > 0.1 and not metrics["stats"]["any_nan"] and metrics["stats"]["static"]assert any(f["data"]["kind"] == "static" for f in metrics["gate"]["findings"])- assert br.census["convention"] == "mainImage" and br.census["feedback"] is Falsedef test_feedback_starts_black_even_when_allocated_texture_memory_is_dirty(tmp_path, monkeypatch):@@ -129,7 +128,7 @@ def test_feedback_and_nan_detection(tmp_ws, host):" float bad = uv.x > 0.9 ? sqrt(-1.0) : 0.0;\n fragColor = vec4(max(prev, vec3(d)) + bad, 1.0);\n}\n")rt = GlslShaderRuntime(host=host)br = rt.build(ws, **SMALL)- assert br.ok and br.census["feedback"] is True+ assert br.okmetrics = json.loads((ws.artifacts / "metrics.json").read_text())assert metrics["stats"]["any_nan"] is Trueassert any(f["data"]["kind"] == "nan" for f in metrics["gate"]["findings"]) and not metrics["gate"]["passed"]diff --git a/harness/tests/graphics/test_track.py b/harness/tests/graphics/test_track.pyindex befa9905..f5fbeb04 100644--- a/harness/tests/graphics/test_track.py+++ b/harness/tests/graphics/test_track.py@@ -35,7 +35,7 @@ class FakeGlRuntime(GlslShaderRuntime):Image.fromarray((rgb * 255).astype(np.uint8), "RGB").save(p)frames.append(GlFrame(index=i, time=t, path=str(p), judge=i < 5))res = GlResult(ok=True, mode="shader", stage="render", renderer="fake-gl", frames=frames)- return finish_build(ws, res, language="glsl_shader", census={"convention": "mainImage"})+ return finish_build(ws, res, language="glsl_shader")def _writer(job, ws):diff --git a/harness/tests/prompts/manifest.py b/harness/tests/prompts/manifest.pyindex c325e873..9fe6940c 100644--- a/harness/tests/prompts/manifest.py+++ b/harness/tests/prompts/manifest.py@@ -221,7 +221,7 @@ def gl_runtime(language: Language) -> Any:Image.fromarray(np.stack([x, 255 - x, np.full_like(x, 96)], -1).astype(np.uint8), "RGB").save(p)frames.append(GlFrame(index=i, time=t, path=str(p), judge=i < 5))return finish_build(ws, GlResult(ok=True, mode="shader", stage="render", renderer="fake-gl", frames=frames),- language=language.value, census={"convention": "mainImage"})+ language=language.value)return FakeGl()diff --git a/harness/tests/prompts/test_snippets_run.py b/harness/tests/prompts/test_snippets_run.pyindex 1b1ed991..a6278044 100644--- a/harness/tests/prompts/test_snippets_run.py+++ b/harness/tests/prompts/test_snippets_run.py@@ -75,7 +75,7 @@ def _build_urdf_example(tmp_path, tag: str, model_py: str, urdf: str):(ws.src / "robot.urdf").write_text(urdf)res = UrdfBlenderRuntime().build(ws)assert res.ok, f"{tag}: {res.error_type}: {res.error_message}"- warns = [f["message"] for f in res.census["lint"] if f["severity"] != "info"]+ warns = [f.message for f in UrdfBlenderRuntime().lint(ws).findings if f.severity != "info"]assert warns == [], f"{tag}: lint warnings {warns}"gate, _ = sweep_gate(ws)assert not gate.findings, f"{tag}: {[f.message for f in gate.findings]}"diff --git a/harness/tests/threejs_render/test_build.py b/harness/tests/threejs_render/test_build.pyindex f8cd29ba..43a416be 100644--- a/harness/tests/threejs_render/test_build.py+++ b/harness/tests/threejs_render/test_build.py@@ -114,7 +114,6 @@ def test_build_nan_geometry_names_mesh_part_and_file(stool_ws: Workspace):assert not res.ok and res.error_type == "ContractError"assert "'LegMesh'" in res.error_message and "part 'Legs'" in res.error_message and "NaN" in res.error_messageassert res.error_file == "src/parts/legs.js"- assert res.census["part"] == "Legs"rec = json.loads((stool_ws.artifacts / "export_error.json").read_text())assert rec["error"]["part"] == "Legs"