mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The generic metric-status generator read its previous-context row through an `as never` cast, because `getPreviousInsightContext` was typed to the seven specialised scopes only. Widen the helper's `scope` param to a `PreviousContextScope` union that also accepts the `metric:<ID>-status` scope form, so the generic call type-checks honestly instead of silently disabling type checking on the argument. No behaviour change — the helper only interpolates the scope into the audit action. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> (cherry picked from commit 899d59b6fa219a14ba39eacded2e042f0f95c2c5)