feat(reporter): count heals the gate suppresses
CI / Unit tests (push) Successful in 4s
CI / Unit tests (pull_request) Successful in 3s

A drift whose fingerprint matches a heal from the last heal_min_interval
seconds was counted as a drift event but never as a heal attempt, so the
24h counters showed a drift with no heal and no failure. Decide on the
heal before recording the check and report heals_suppressed_24h and
heals_suppressed_total, so every drift event is either a heal attempt
or a suppressed heal. The suppression warning now names the earlier
heal that did not hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
patrickandClaude Opus 5.5 committed 2026-10-19 18:04:24 -04:00
1 parent 02ca338eb7
commit 4e8a4d6717
5 files changed
+50 -11

No files matched your search

+5
View File
@@ -168,8 +168,13 @@ Exposes metrics such as:
- `heals_total`
- `heal_failures_total`
- `drift_events_total`
- `heals_suppressed_total`
- rolling 24h counters for drift and healing activity
Every drift event leads to either a heal attempt or a suppressed heal (`heals_suppressed_24h`): the
heal gate skips a drift whose fingerprint matches a heal from the last `heal_min_interval` seconds,
which means that earlier heal did not hold.
### `main.py`
Orchestrates the full reconcile loop.