mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
Introduce one declarative table describing each health signal across the surfaces it touches — DB measurement type, detail page, correlation engine, Coach snapshot, MCP read tool, and FHIR coding — discriminated on kind (measurement / biomarker / score). Promote the proto-registry in metric-status-registry.ts to the canonical definition and add thin adapters that derive the per-surface tables from it. The registry coexists with the enum-driven code: the DB enum stays the source of truth for persistence and the registry sits above it. An invariant test pins every derived table byte-for-byte to the values the hand-maintained tables carry today, so cross-surface drift fails CI.