Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ server/prompts/

# Experiment outputs, local-only notes and secrets
data/
# except the committed placement case-suite fixtures
!backend/server/placement/tests/data/
.local/
.env.*
533 changes: 533 additions & 0 deletions backend/server/placement/case_suite.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"format": "base-scene/v0",
"scene_id": "burst7-generated-hazard-unsupported",
"provenance": {
"data": "synthetic",
"site": "burst7-generated-hazard-unsupported",
"producer": {"path": "hand-authored", "version": "burst7"},
"scale_source": "native_metric",
"gravity_source": "ground_truth",
"notes": [
"Negative case for the burst7 placement case suite: a schema-valid source whose second object is a gas meter a generative model produced (evidence generated). The future bridge (W7) must refuse it with code placement_scene_unsupported at pointer /objects/1/evidence: generated geometry is never evidence. This suite never runs that bridge; the case stays labelled awaiting conversion."
]
},
"frame": {
"units": "m",
"convention": "meter_anchored/v0",
"anchor": {"element_id": "obj-meter", "plus_minus_m": 0.09}
},
"walls": [
{
"id": "side",
"role": "house",
"baseline_m": [[-3.048, 0.0], [4.572, 0.0]],
"height_m": 2.7432,
"plus_minus_m": 0.09,
"evidence": "observed"
}
],
"chain": {
"wall_ids": ["side"],
"ends": {
"left": {"kind": "limit", "s_m": -3.048, "note": "corner post"},
"right": {"kind": "unexplored", "s_m": 4.572, "note": "wall continues right, not walked"}
}
},
"ground": {
"surface": {"kind": "plane", "normal": [0.0, 1.0, 0.0], "offset_m": 0.0},
"plus_minus_m": 0.05
},
"objects": [
{
"id": "obj-meter",
"class": "meter",
"geometry": {"kind": "wall_rect", "wall_id": "side", "s_m": [-0.15, 0.15], "bottom_m": 0.15, "top_m": 1.2, "standoff_m": 0.1},
"confidence": 0.99,
"plus_minus_m": 0.09,
"source": {"kind": "tap"},
"evidence": "observed"
},
{
"id": "obj-gas-generated",
"class": "gas_meter",
"wall_id": "side",
"geometry": {
"kind": "footprint",
"polygon_m": [[1.2192, 0.0], [1.524, 0.0], [1.524, 0.3048], [1.2192, 0.3048]],
"bottom_m": 0.15,
"top_m": 0.76
},
"confidence": 0.4,
"plus_minus_m": 0.3,
"source": {"kind": "generated", "model": "inpaint-demo"},
"evidence": "generated"
}
],
"generated_regions": [
{
"id": "gen-hazard",
"geometry": {"kind": "box", "center_m": [1.3716, 0.5, 0.45], "size_m": [0.6, 0.9, 0.5], "yaw_deg": 0.0},
"method": "hole-filling",
"note": "The hazard above was completed, not observed."
}
],
"coverage": {
"method": "synthetic-authored",
"rule": {"min_views": 1, "max_incidence_deg": {"wall": 60, "ground": 60}}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"format": "base-scene/v0",
"scene_id": "burst7-hazard-left-ground-gap",
"provenance": {
"data": "synthetic",
"site": "burst7-hazard-left-ground-gap",
"producer": {"path": "hand-authored", "version": "burst7"},
"scale_source": "native_metric",
"gravity_source": "ground_truth",
"notes": [
"Authored for the burst7 placement case suite. It pairs with hazard-left-ground-gap.wire.json by construction (the same wall, two hazards, coverage gap and ends, described once in meters and once in feet by hand), not by running any converter."
]
},
"frame": {
"units": "m",
"convention": "meter_anchored/v0",
"anchor": {"element_id": "obj-meter", "plus_minus_m": 0.09}
},
"walls": [
{
"id": "side",
"role": "house",
"baseline_m": [[-6.096, 0.0], [3.6576, 0.0]],
"height_m": 2.7432,
"plus_minus_m": 0.09,
"evidence": "observed"
}
],
"chain": {
"wall_ids": ["side"],
"ends": {
"left": {"kind": "unexplored", "s_m": -6.096, "note": "wall continues left round the corner"},
"right": {"kind": "limit", "s_m": 3.6576, "note": "driveway cut at the right end"}
}
},
"ground": {
"surface": {"kind": "plane", "normal": [0.0, 1.0, 0.0], "offset_m": 0.0},
"plus_minus_m": 0.05,
"regions": [
{
"id": "mulch",
"material": "mulch",
"polygon_m": [[-6.096, 0.0], [3.6576, 0.0], [3.6576, 1.2192], [-6.096, 1.2192]],
"evidence": "observed"
},
{
"id": "lawn",
"material": "lawn",
"polygon_m": [[-6.096, 1.2192], [3.6576, 1.2192], [3.6576, 4.2672], [-6.096, 4.2672]],
"evidence": "observed"
}
]
},
"objects": [
{
"id": "obj-meter",
"class": "meter",
"geometry": {"kind": "wall_rect", "wall_id": "side", "s_m": [-0.15, 0.15], "bottom_m": 0.15, "top_m": 1.2, "standoff_m": 0.1},
"confidence": 0.99,
"plus_minus_m": 0.09,
"source": {"kind": "tap"},
"evidence": "observed"
},
{
"id": "obj-gas-near",
"class": "gas_meter",
"wall_id": "side",
"geometry": {
"kind": "footprint",
"polygon_m": [[-1.8288, 0.0], [-1.524, 0.0], [-1.524, 0.3048], [-1.8288, 0.3048]],
"bottom_m": 0.15,
"top_m": 0.76
},
"confidence": 0.9,
"plus_minus_m": 0.09,
"source": {"kind": "tap"},
"evidence": "observed"
},
{
"id": "obj-gas-far",
"class": "gas_meter",
"wall_id": "side",
"geometry": {
"kind": "footprint",
"polygon_m": [[-3.9624, 0.0], [-3.6576, 0.0], [-3.6576, 0.3048], [-3.9624, 0.3048]],
"bottom_m": 0.15,
"top_m": 0.76
},
"confidence": 0.9,
"plus_minus_m": 0.09,
"source": {"kind": "tap"},
"evidence": "observed"
}
],
"coverage": {
"method": "synthetic-authored",
"rule": {"min_views": 1, "max_incidence_deg": {"wall": 60, "ground": 60}},
"bands": [
{"wall_id": "side", "band": "wall", "s_m": [-6.096, 3.6576], "out_m": 2.0},
{"wall_id": "side", "band": "ground", "s_m": [-4.2672, 0.6096], "out_m": 4.2672},
{"wall_id": "side", "band": "overhead", "s_m": [-6.096, 3.6576], "out_m": 3.0},
{"wall_id": "side", "band": "facing", "s_m": [-6.096, 3.6576], "out_m": 4.2672}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"schema_version": "1.0",
"meter": {"pos": [0.0, 0.5, 0.0], "wall_id": "side", "plus_minus_ft": 0.3},
"walls": [
{"id": "side", "baseline": [[-20.0, 0.0], [12.0, 0.0]], "height_ft": 9.0, "source": "tap"}
],
"objects": [
{"type": "gas_meter", "wall_id": "side", "span_ft": [-6.0, -5.0], "bottom_ft": 0.5, "top_ft": 2.5,
"source": "tap", "plus_minus_ft": 0.3,
"footprint": [[-6.0, 0.0], [-5.0, 0.0], [-5.0, 1.0], [-6.0, 1.0]]},
{"type": "gas_meter", "wall_id": "side", "span_ft": [-13.0, -12.0], "bottom_ft": 0.5, "top_ft": 2.5,
"source": "tap", "plus_minus_ft": 0.3,
"footprint": [[-13.0, 0.0], [-12.0, 0.0], [-12.0, 1.0], [-13.0, 1.0]]}
],
"ground": [
{"type": "mulch", "polygon": [[-20.0, 0.0], [12.0, 0.0], [12.0, 4.0], [-20.0, 4.0]]},
{"type": "lawn", "polygon": [[-20.0, 4.0], [12.0, 4.0], [12.0, 14.0], [-20.0, 14.0]]}
],
"overheads": [],
"facing": [{"wall_id": "side", "span_ft": [-20.0, 12.0], "depth_ft": 14.0, "plus_minus_ft": 0.5}],
"coverage": {
"ends": {"left": {"kind": "unexplored", "note": "wall continues left round the corner"},
"right": {"kind": "limit", "note": "driveway cut at the right end"}},
"observed": [
{"band": "wall", "span_ft": [-20.0, 12.0]},
{"band": "ground", "span_ft": [-14.0, 2.0], "out_ft": 14.0},
{"band": "overhead", "span_ft": [-20.0, 12.0]},
{"band": "facing", "span_ft": [-20.0, 12.0]}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"format": "base-scene/v0",
"scene_id": "burst7-hazard-right-ground-gap",
"provenance": {
"data": "synthetic",
"site": "burst7-hazard-right-ground-gap",
"producer": {"path": "hand-authored", "version": "burst7"},
"scale_source": "native_metric",
"gravity_source": "ground_truth",
"notes": [
"Authored for the burst7 placement case suite. It pairs with hazard-right-ground-gap.wire.json by construction (the same wall, hazard, coverage gap and ends, described once in meters and once in feet by hand), not by running any converter."
]
},
"frame": {
"units": "m",
"convention": "meter_anchored/v0",
"anchor": {"element_id": "obj-meter", "plus_minus_m": 0.09}
},
"walls": [
{
"id": "side",
"role": "house",
"baseline_m": [[-0.6096, 0.0], [6.096, 0.0]],
"height_m": 2.7432,
"plus_minus_m": 0.09,
"evidence": "observed"
}
],
"chain": {
"wall_ids": ["side"],
"ends": {
"left": {"kind": "limit", "s_m": -0.6096, "note": "fence at the left property line"},
"right": {"kind": "unexplored", "s_m": 6.096, "note": "wall continues right, not walked"}
}
},
"ground": {
"surface": {"kind": "plane", "normal": [0.0, 1.0, 0.0], "offset_m": 0.0},
"plus_minus_m": 0.05,
"regions": [
{
"id": "mulch",
"material": "mulch",
"polygon_m": [[-0.6096, 0.0], [6.096, 0.0], [6.096, 1.2192], [-0.6096, 1.2192]],
"evidence": "observed"
},
{
"id": "lawn",
"material": "lawn",
"polygon_m": [[-0.6096, 1.2192], [6.096, 1.2192], [6.096, 4.2672], [-0.6096, 4.2672]],
"evidence": "observed"
}
]
},
"objects": [
{
"id": "obj-meter",
"class": "meter",
"geometry": {"kind": "wall_rect", "wall_id": "side", "s_m": [-0.15, 0.15], "bottom_m": 0.15, "top_m": 1.2, "standoff_m": 0.1},
"confidence": 0.99,
"plus_minus_m": 0.09,
"source": {"kind": "tap"},
"evidence": "observed"
},
{
"id": "obj-gas",
"class": "gas_meter",
"wall_id": "side",
"geometry": {
"kind": "footprint",
"polygon_m": [[1.0668, 0.0], [1.3716, 0.0], [1.3716, 0.3048], [1.0668, 0.3048]],
"bottom_m": 0.15,
"top_m": 0.76
},
"confidence": 0.9,
"plus_minus_m": 0.09,
"source": {"kind": "tap"},
"evidence": "observed"
}
],
"coverage": {
"method": "synthetic-authored",
"rule": {"min_views": 1, "max_incidence_deg": {"wall": 60, "ground": 60}},
"bands": [
{"wall_id": "side", "band": "wall", "s_m": [-0.6096, 6.096], "out_m": 2.0},
{"wall_id": "side", "band": "ground", "s_m": [-0.6096, 0.6096], "out_m": 4.2672},
{"wall_id": "side", "band": "ground", "s_m": [2.7432, 3.3528], "out_m": 4.2672},
{"wall_id": "side", "band": "overhead", "s_m": [-0.6096, 6.096], "out_m": 3.0},
{"wall_id": "side", "band": "facing", "s_m": [-0.6096, 6.096], "out_m": 4.2672}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"schema_version": "1.0",
"meter": {"pos": [0.0, 0.5, 0.0], "wall_id": "side", "plus_minus_ft": 0.3},
"walls": [
{"id": "side", "baseline": [[-2.0, 0.0], [20.0, 0.0]], "height_ft": 9.0, "source": "tap"}
],
"objects": [
{"type": "gas_meter", "wall_id": "side", "span_ft": [3.5, 4.5], "bottom_ft": 0.5, "top_ft": 2.5,
"source": "tap", "plus_minus_ft": 0.3,
"footprint": [[3.5, 0.0], [4.5, 0.0], [4.5, 1.0], [3.5, 1.0]]}
],
"ground": [
{"type": "mulch", "polygon": [[-2.0, 0.0], [20.0, 0.0], [20.0, 4.0], [-2.0, 4.0]]},
{"type": "lawn", "polygon": [[-2.0, 4.0], [20.0, 4.0], [20.0, 14.0], [-2.0, 14.0]]}
],
"overheads": [],
"facing": [{"wall_id": "side", "span_ft": [-2.0, 20.0], "depth_ft": 14.0, "plus_minus_ft": 0.5}],
"coverage": {
"ends": {"left": {"kind": "limit", "note": "fence at the left property line"},
"right": {"kind": "unexplored", "note": "wall continues right, not walked"}},
"observed": [
{"band": "wall", "span_ft": [-2.0, 20.0]},
{"band": "ground", "span_ft": [-2.0, 2.0], "out_ft": 14.0},
{"band": "ground", "span_ft": [9.0, 11.0], "out_ft": 14.0},
{"band": "overhead", "span_ft": [-2.0, 20.0]},
{"band": "facing", "span_ft": [-2.0, 20.0]}
]
}
}
Loading