Replaces the previous handover. The previous one framed the work as "close three tickets to integer Δ=0" — a weak gate. The user has since made clear the real requirement is **abs=1e-4 on every line ref of every output for every fixture**, and that previous agents have repeatedly made the following mistakes: 1. Treated SAP integer Δ=0 as "closed" (it hides ±0.5 continuous drift). 2. Widened tolerances (rel=0.15 / rel=0.05 / <=0.5) to make tests green — masking real residuals. 3. Tested sections in isolation using PDF values as INPUTS — that verifies the section formula but not the cascade. 4. Diagnosed downstream first when upstream sections still drift. 5. Missed fixture-lodgement defects (bulbs / windows / sap_heating / detailed RR / exposed_floor / door_count / per-window u_value) — the cascade pin failure was the fixture, not the calculator. 6. Labelled code "SAP 10.3" when implementing 10.2. The new handover front-loads these anti-patterns (§A.3), then states the current cascade-pin scoreboard, the work queue in priority order (rooflight, 000487 RR + U=0.86 gable, then §5/§6/§7/§8/§9a/§10a/§11a/ §12 pins in worksheet order), the diagnostic loop, and the spec page anchors the user has already given. Three new memories were also written: - feedback-zero-error-strict (abs=1e-4, no widening) - feedback-cascade-pin-methodology (test the cascade, not isolation) - feedback-fixture-defects-common (audit fixture first) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .devcontainer | ||
| .github/workflows | ||
| .idea | ||
| .vscode | ||
| asset_list | ||
| backend | ||
| backlog | ||
| datatypes | ||
| docs | ||
| epr_data_exports | ||
| etl | ||
| infrastructure/terraform | ||
| model_data/requirements | ||
| packages | ||
| recommendations | ||
| scripts | ||
| services | ||
| sfr/principal_pitch | ||
| survey_report | ||
| utils | ||
| .coveragerc | ||
| .dockerignore | ||
| .gitignore | ||
| __init__.py | ||
| AGENTS.md | ||
| ara_backend_design.md | ||
| BaseUtility.py | ||
| CLAUDE.md | ||
| conftest.py | ||
| CONTEXT.md | ||
| devcontainer.sh | ||
| Dockerfile.test | ||
| Dockerfile.test.dockerignore | ||
| Makefile | ||
| MEMORY.md | ||
| package-lock.json | ||
| package.json | ||
| pyproject.toml | ||
| pyrightconfig.json | ||
| pytest.ini | ||
| README.md | ||
| run_backlog.sh | ||
| run_lambda_local.sh | ||
| serverless.yml | ||
| test.requirements.txt | ||
| tox.ini | ||
| UBIQUITOUS_LANGUAGE.md | ||
Model Repository
This repository contains the code pertaining to the development of the data science and machine learning products being utilised by Hestia.
The different folders in this repository relate to services that can be used independently, or can be imported and used as part of a larger application
Getting Started
Prerequisites
Dev Container Setup
This repo uses a Docker Compose-based dev container. The model-backend service joins a shared-dev Docker network so it can communicate with other local services (e.g. a frontend container) running on your machine.
VS Code users: The initializeCommand in devcontainer.json creates the shared-dev network automatically before the container starts. No manual step required — just open the repo and select Reopen in Container.
Non-VS Code / CI workflows: Run the following once before starting the container:
make dev-setup
This is idempotent and safe to re-run if the network already exists.
Folders
backend/
This folder contains the code for the fastapi backend service, which provides an interface to much of the functionality in this repository, for the frontend
model_data/
This folder contains related to the reading and preparation of assessment model data, including pulling out epc attributes
Testing
All tests can be run, against the configuration in pytest.ini running
pytest
This will run the complete panel of tests and report on coverage in the locations specified by the pytest.ini file.
To run tests in a specific service, e.g. inside of model_data, simply run
pytest --cov-config=model_data/.coveragerc --cov=model_data
This will produce the test results and coverage reports