mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Addresses PR #1402 review: the guard only claimed dominant-single, leaving the symmetric bug open — the LLM can flatten a dominant-double/triple split onto its minority single (e.g. "96% Double glazing 2002 or later, 4% Single"). A dominant double/triple whose era is explicit ("pre-2002" / "2002 or later") is just as fully determined as era-free single, so the guard now claims it via _DOMINANT_MEMBER. Only a genuinely ambiguous era ("unknown age", unstated) still defers to the LLM — the "96% double -> None" contract now holds solely for the era-unknown case, not the era-stated one. Backfill script reuses the same guard, so it now corrects any dominant split; renamed reclassify_dominant_single_glazing.py -> reclassify_dominant_glazing.py to match. Tests cover double/triple x pre-2002/2002-or-later and the still- deferred unknown-age case; 14 green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| applications | ||
| datatypes | ||
| domain | ||
| e2e | ||
| fixtures/epc_prediction | ||
| harness | ||
| infrastructure | ||
| lambdas | ||
| magic_plan | ||
| orchestration | ||
| repositories | ||
| scripts | ||
| utilities | ||
| __init__.py | ||
| conftest.py | ||
| test_lambda_packaging.py | ||