Displayed aspect now scores 1.0 only at a true square and tapers
linearly to 0 across 1.0-2.5 (score = (2.5 - aspect) / 1.5), so aspect
1.05 reads 96.7% instead of a misleading 100%. Generation is untouched:
_passes_gates uses a private _gate_aspect_ok that keeps the historical
up-to-1.8:1 curve at the 0.795 threshold, so the SAME plans pass and
every BHK still yields 20 tagged plans.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Fix template fallback on all road sides (stale gpt_planner import + hard gate emptying the population); gate now a preference with bath-safe fill and tier-aware ranking; All-Plans average-score panel
Finalised Scoring System: 5-tier vastu, weighted adjacency, 12+2 constraints, proportions-driven sizes, official fitness weights; plans ranked by the finalised fitness; per-metric calculation break-up in the UI
The SDK reports every network fault as a bare 'Connection error.'. Walk the
exception chain and probe DNS/TLS once after both attempts fail, so the logs
say whether it is DNS, egress/TLS, or the API itself. Adds diagnose_api.py.
Hybrid layout engine, twelve evaluation metrics, 4BHK third washroom
- Deterministic backbone designs every plan with no API key; the optional
model proposer only adds structural variety on top. Both go through one
geometry engine and one scorer.
- Twelve evaluation metrics (core/metrics.py) with a room-size model
(core/size_model.py), surfaced in the app as an AI-generated vs optimised
comparison table.
- 4BHK now has three washrooms: common, one attached to the master, one
attached to bedroom_01 -- each verified to share a wall with its bedroom.
- torch/torchvision dropped from the image (optional pipeline only, imported
behind try/except), cutting ~2 GB from the build.
- Config is now LAYOUT_API_KEY / LAYOUT_MODEL / LAYOUT_TIMEOUT, with the
legacy variable still read as a fallback.