Memory repository drops excludeFromWholeHome on circuit assignments #35
Labels
No labels
bug
decision
docs
enhancement
integration
ops
security
tech-debt
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/BatteryStorageCalculator#35
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
repository.memory.js:454-464normalizes circuitAssignments withoutexcludeFromWholeHome, while migration003_circuit_whole_home_exclusion.sqlandrepository.pg.js:732-757persist it. Since the whole test suite runs on the memory repo, the field's round-trip and its downstream effect on outage analysis are untested, and the memory backend silently loses user data written through it. Add the field to the memory normalizer and a test asserting parity of the normalized shape between both repositories for circuit assignments.Acceptance criteria
Relations: relates to #7
(Audit finding F-14, 2026-07-16 — Severity: Medium, Confidence: High)