feat(healing): add post-restart verification and heal outcome telemetry

This commit is contained in:
patrick committed 2026-02-10 21:55:43 -05:00
1 parent b2c489602a
commit 234224a5c6
3 files changed
+46 -2

No files matched your search

+5 -1
View File
@@ -45,6 +45,8 @@ class LocalStateReporter:
metadata_drift_count,
drift_fingerprint,
reason,
heal_result,
post_drift_fingerprint,
):
"""
Records a specific healing event in a persistent history log.
@@ -58,7 +60,9 @@ class LocalStateReporter:
f"{timestamp} - HEAL: reason={reason} "
f"kernel={kernel_count} missing={missing_count} "
f"extra={extra_count} metadata={metadata_drift_count} "
f"drift_fingerprint={drift_fingerprint}\n"
f"drift_fingerprint={drift_fingerprint} "
f"heal_result={heal_result} "
f"post_drift_fingerprint={post_drift_fingerprint}\n"
)
except Exception as e:
logging.error(f"Reporter: Failed to write to history log: {e}")