You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(program-monitor): one-time total reset — wipe baselines + false alert history
Per request, fully scrub state left behind by the Intigriti-handle flood bug instead
of leaving orphan rows. On next boot, gated by a settings marker so it runs exactly
ONCE, the app:
- TruncateProgramScopeAssets — wipes every program_assets baseline so all programs
re-baseline silently under the corrected ID-based keys (no flood; first sweep is
silent for all H1 / BC / IT programs).
- DeleteMonitorChangesByType("new_program_asset") — clears the historical false
alerts from monitor_changes so the dashboard's Monitor → Changes feed isn't
polluted by the flood.
- Records the marker (program_monitor_reset_v2=done) in settings; subsequent boots
no-op so the baseline can actually accumulate. Bump the key string in the future
if a re-reset becomes necessary.
Adds TruncateProgramScopeAssets() and DeleteMonitorChangesByType() to the DB
interface + sqlite + postgres + db.go facade. Replaces the previous targeted
cleanup ("it:detail" only) with this broader one-shot.
Verified: go build/vet, db tests pass.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments