feat(reporter): persist drift metrics and last heal result in state snapshot

This commit is contained in:
patrick committed 2026-03-05 20:35:18 -05:00
1 parent c698d01c40
commit b34ac69ac1
5 files changed
+160 -14

No files matched your search

+8 -1
View File
@@ -51,7 +51,14 @@ def main():
while not stop_event.is_set():
try:
is_synced, count, drift = auditor.reconcile()
reporter.update_status(is_synced, count)
reporter.update_status(
is_synced,
count,
missing_count=drift.get("missing_count", 0),
extra_count=drift.get("extra_count", 0),
metadata_drift_count=drift.get("metadata_drift_count", 0),
last_drift_fingerprint=drift.get("fingerprint", ""),
)
if is_synced:
status_msg = f"Audit Success: {count} IPs in sync."