Model/packages/domain
Khalim Conn-Kowlessar 9fa98428d0 Slice 83: 1:1 windows expansion in cohort 000490 (3 → 6 entries)
Closes the final `sap_windows: LEN 6 vs 3` divergence by replacing
the cohort 000490 hand-built's 3-window collapsed encoding with 6
SapWindow entries mirroring the Summary §11 1:1. Single glazing-type
group (PVC double / g⊥=0.76 / U=2.8); per-bp totals preserved:

  Main NW (orient=8): 2.70 m² split 1.26 + 1.44 (2 rows)
  Main NE (orient=2): 0.81 m² (1 row, unchanged)
  Ext1 SE (orient=4): 5.52 m² split 1.92 + 2.16 + 1.44 (3 rows)

Cascade output unchanged: all 11 `_FIXTURE_PINS["000490"]` SapResult
pins remain GREEN at 1e-4 against worksheet `SAP value 57.3979`.

**Cohort 000490 is now fully Layer-2 GREEN** — 4 of 6 cohort certs
(000474, 000477, 000480, 000487, 000490) now zero-diff Layer-2;
000516 is the last cohort cert before returning to cert 001479.

Pyright net-zero.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 18:11:12 +00:00
..
src/domain Slice 83: 1:1 windows expansion in cohort 000490 (3 → 6 entries) 2026-05-25 18:11:12 +00:00
pyproject.toml slice 13: to_rows(properties) returns pd.DataFrame 2026-05-16 16:43:28 +00:00
README.md added potential file scaffolding: 2026-05-15 10:56:53 +00:00

domna-domain

Shared domain types — Property, Properties, BaselinePerformance, Plan, PlanPhase, Scenario, ScenarioPhase, ScenarioSnapshot, Recommendation, OptimisedPackage, EpcPropertyData, etc.

Boundary: types only. No persistence, no IO, no business logic. Other packages and services depend on domna-domain; this package depends on nothing internal.

Domain definitions live in ../../CONTEXT.md. New types added here must match the glossary terms.

Layout

src/domain/
├── __init__.py
├── property.py             # Property, Properties, PropertyIdentity
├── site_notes.py
├── landlord_overrides.py
├── baseline_performance.py # lodged + effective pair (ADR-0004)
├── plan.py                 # Plan, PlanPhase, OptimisedPackage
├── scenario.py             # Scenario, ScenarioPhase, ScenarioSnapshot (ADR-0005)
├── recommendation.py
├── geospatial.py
├── solar.py
├── anomaly_flags.py
└── ml/
    ├── __init__.py
    ├── transform.py        # EpcMlTransform (versioned per §8.3)
    └── schema.py

When datatypes/epc/domain/ folds in, the EPC schema types move under src/domain/epc/.