Official Codebase of 3DCodeVerse
Python
scene zone brief: builders are already at the plan's size — place at scale 1
gaoypeng8638dab53e85
diff --git a/harness/codeverse/prompts/tracks/scene_zone.j2 b/harness/codeverse/prompts/tracks/scene_zone.j2index 1921ffa9..fba4a320 100644--- a/harness/codeverse/prompts/tracks/scene_zone.j2+++ b/harness/codeverse/prompts/tracks/scene_zone.j2@@ -9,6 +9,10 @@ Scene: {{ spec_prompt }} · Setting: {{ setting }} · Mood: {{ mood }}never build walls or a roof here. Fixtures on a wall sit flush against the inner face of the bounds;a window or door is an OPENING env cut, so glazing and door leaves go in the opening, not through the wall.{% endif %}- Contents (asset names to place): {{ zone_contents | join(', ') if zone_contents else '(none — build local detail from primitives)' }}+- Every builder returns its asset AT THE SIZE the asset API states; place it at scale 1 (per-instance jitter+ within +/-30 %, never a re-size to "fit"). The placement gate measures every placed thing against the+ plan's size: > 2.5x or < 0.4x is an ERROR the judge repeats (measured 2026-09-08, round 0: a 1.15 m stove+ placed at 3.60 m, 0.48 m oil lamps at 0.03 m — both cost the round).{% if layout is defined and layout %}## Zone director's layout (realise EXACTLY these placements; positions are world meters){{ layout }}diff --git a/harness/tests/scene_prompts/test_quality_teaching.py b/harness/tests/scene_prompts/test_quality_teaching.pyindex 61bbf270..bc364d1e 100644--- a/harness/tests/scene_prompts/test_quality_teaching.py+++ b/harness/tests/scene_prompts/test_quality_teaching.py@@ -178,3 +178,16 @@ def test_the_env_and_zone_briefs_hand_the_enclosure_to_env_for_an_interior() ->zone_out = render("tracks/scene_zone.j2", **base, interior=False)assert "never build walls or a roof" in zone_in and "flush against the inner face" in zone_inassert "never build walls" not in zone_out+++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++ 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="",+ references="", skills="", tool_cards="", zone_name="Z", zone_description="d", zone_bbox="bb", zone_contents=["Stove"],+ zone_file="src/zones/z.js", neighbours=[], layout="", interior=False)+ text = render("tracks/scene_zone.j2", **base)+ assert "place it at scale 1" in text and "> 2.5x or < 0.4x is an ERROR" in text