test(mcp): Villa Azul + 10-agent deep verification

Builds a larger, richer house than Casa del Sol via MCP save_scene
(no injection hack), then dispatches 10 parallel verifiers across
schema, geometry, dimensions, openings, HTTP, page render,
parentage, round-trip, spatial, visual.

Villa Azul — 56 nodes, validate_scene=true, 44KB on disk:
- 15x10m building envelope (vs Casa del Sol's 12x8)
- 9 interior zones (master bed/bath, bed 2/3, shared bath,
  living/dining, kitchen, entry hall, corridor)
- 10 doors + 12 windows (all cut successfully)
- 4 exterior zones (pool 8x4 + basin slab at -2m, outdoor kitchen,
  driveway, back patio)
- 5 rail-style fences (vs Casa del Sol's privacy) with 2m entrance gap

Verification: 108 checks, 104 PASS, 4 findings:
- V1 schema: 56/56
- V2 geometry: 7/7 (perimeter closes, interior T-junctions, no
  zone overlaps, fence gap verified)
- V3 dimensions: 13/13 zone areas exact (1 spec mismatch on site
  polygon default, not a build bug)
- V4 openings: 22/22 dimensional fit, surfaced a tool gap in
  cut_opening (no adjacency check) + my build packed too tightly
- V5 HTTP: 10/10 (GET/PUT/PATCH/DELETE/HEAD, If-Match conflicts)
- V6 page: 14/14 (/scene/:id 81KB, /scenes 20KB, 404 fallback)
- V7 parentage: surfaced CROSS_CUTTING §2 site->building->level
  parentId=null (pre-existing in core's loadScene)
- V8 round-trip: 10/10 byte-equal, duplicate_level -> 110 nodes
- V9 spatial: 12/12 (find_nodes, measure, constraints resource)
- V10 visual: HTML fallback (Chrome extension disconnected during
  run); API layer intact

Follow-up tracked: `cut_opening` should check opening-adjacency on
the same wall (minimum gap) to catch tight packing during patch
construction. Currently returns success and relies on the UI to
visualise the overlap.

Live at http://localhost:3002/scene/a6e7919eacbe.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adrian Perez
2026-04-19 20:39:08 +02:00
co-authored by Claude Opus 4.7
parent 0b84e7b7b1
commit f230d9a401
22 changed files with 4134 additions and 0 deletions
@@ -0,0 +1,72 @@
# Villa Azul - V2 Geometry Report
- Scene: `/tmp/pascal-villa/scenes/a6e7919eacbe.json`
- Generated: 2026-04-19T18:34:19.967Z
- Script: `packages/mcp/test-reports/villa-azul/v2-geometry.ts`
## Summary: 7/7 checks passed
| # | Check | Status |
|---|-------|--------|
| 1 | Zones closed & non-degenerate | PASS |
| 2 | Zones don't overlap | PASS |
| 3 | Perimeter walls closed loop | PASS |
| 4 | Interior walls connected (no floating endpoints) | PASS |
| 5 | Wall endpoints inside fenced envelope | PASS |
| 6 | Pool basin slab == pool zone polygon | PASS |
| 7 | Fence gap at south entrance (x in [-1,1], z=10) | PASS |
## 1. Zones closed & non-degenerate - PASS
**Details:**
- Master bedroom: 4 verts, area=18.00m^2
- Master bath: 4 verts, area=12.00m^2
- Bedroom 2: 4 verts, area=12.00m^2
- Shared bath: 4 verts, area=6.00m^2
- Bedroom 3: 4 verts, area=12.00m^2
- Living dining: 4 verts, area=42.00m^2
- Kitchen: 4 verts, area=18.00m^2
- Entry hall: 4 verts, area=15.00m^2
- Corridor: 4 verts, area=15.00m^2
- Pool: 4 verts, area=32.00m^2
- Outdoor kitchen: 4 verts, area=15.00m^2
- Driveway: 4 verts, area=29.25m^2
- Back patio: 4 verts, area=20.00m^2
## 2. Zones don't overlap - PASS
**Details:**
- Pairwise BB-overlap check clean for 13 zones
## 3. Perimeter walls closed loop - PASS
**Details:**
- Perimeter corners: -10.000,-5.000 | -10.000,5.000 | 5.000,-5.000 | 5.000,5.000
## 4. Interior walls connected (no floating endpoints) - PASS
**Details:**
- wall_sl9ngyohpt1ckxrz: start=segment, end=segment
- wall_k253bcp3cbmvmksf: start=segment, end=segment
- wall_3gthhmi6v5sli2ac: start=segment, end=segment
- wall_88e7i818yv4tircj: start=segment, end=segment
- wall_m7rg6bf7mucmlh4m: start=segment, end=segment
- wall_7z6vgmyzr27vobgn: start=segment, end=segment
- wall_icyfprzyd4034us0: start=segment, end=segment
- wall_8f5iiqr81xxx2drm: start=segment, end=segment
## 5. Wall endpoints inside fenced envelope - PASS
**Details:**
- All 24 wall endpoints within |x|<=12.5, |z|<=10
## 6. Pool basin slab == pool zone polygon - PASS
**Details:**
- Pool zone & basin share 4-vertex polygon
## 7. Fence gap at south entrance (x in [-1,1], z=10) - PASS
**Details:**
- fence_0t2fy6fnsnm5lycx [-12.5,10]->[-1,10] clears gap
- fence_yp0s2xc7ian4p0y2 [1,10]->[12.5,10] clears gap