Official Codebase of 3DCodeVerse
Python
tests: restore test_physical_plausibility_caps_are_untouched — eval/docs/COMPLEXITY.md names it as the complexity wave's guard
gaoypeng65c052ad9d17
diff --git a/harness/tests/judges/test_defects.py b/harness/tests/judges/test_defects.pyindex e64928fb..2b6052ba 100644--- a/harness/tests/judges/test_defects.py+++ b/harness/tests/judges/test_defects.py@@ -36,7 +36,6 @@ def test_rubrics_declare_defects_with_costs():assert all(d.penalty > 0 or d.cap is not None for d in r.defects)assert R.defect("floating_part").penalty == 0.10 and R.defect("floating_part").cap == 0.60assert R.defect("wrong_object").cap == 0.25 and R.defect("wrong_object").penalty == 0.0- assert R.defect("interpenetration").cap == 0.7assert {"no_articulation_visible", "wrong_motion_type", "pivot_misplaced", "pose_clips_body"} <= {d.id for d in A.defects}with pytest.raises(KeyError):R.defect("nope")diff --git a/harness/tests/judges/test_detail_anchors.py b/harness/tests/judges/test_detail_anchors.pyindex c97de712..23ec881f 100644--- a/harness/tests/judges/test_detail_anchors.py+++ b/harness/tests/judges/test_detail_anchors.py@@ -76,6 +76,19 @@ def test_primitive_stack_defect_fires_on_a_majority_not_on_perfection() -> None:assert d.penalty == pytest.approx(0.08)+def test_physical_plausibility_caps_are_untouched() -> None:+ """The complexity wave may sharpen detail; it may never soften the gates."""+ caps = {c.id: c for c in load_rubric("static_object_v1").caps}+ assert caps["build_error"].cap == 0.0+ assert caps["floating_part"].cap == 0.6+ assert caps["penetration_error"].cap == 0.7+ assert caps["contract_violation"].cap == 0.75+ assert caps["missing_must_acceptance"].cap == 0.6+ defects = {d.id: d for d in load_rubric("static_object_v1").defects}+ assert defects["floating_part"].cap == 0.6 and defects["interpenetration"].cap == 0.7+ assert defects["wrong_object"].cap == 0.25++@pytest.mark.parametrize("rubric", ["static_object_v1", "articulated_v1"])def test_acceptance_cap_is_graded_with_the_floor_pinned(rubric: str) -> None:"""The acceptance cap is GRADED since 2026-08-30 (DECISIONS D46 b): 0.6 + 0.4·verified/total.