Task · TSO-0062

TTL reset for schema-drift warning dedup in long-lived processes

Description

internal/k8saudit/processor.go:311-337 caps distinct schema-drift warnings at 128 for the process lifetime (same pattern in internal/audit); a months-old process goes permanently quiet on NEW drift - the metric still counts but the diagnosable log stops. Add a daily reset or TTL so the log signal stays alive without reopening the original flood the cap prevents.

Acceptance Criteria

Definition of Done

Implementation Notes

Latitude deviation: the run contract called for one commit per feature, but root retained the already-integrated shared-tree feature commit fa6a465 plus review-fix commit a18a5dd rather than performing prohibited destructive history surgery after integration and push. All task evidence is tied to the verified implementation head a18a5dd06f9ac9c8b84fda73bba653ded2398d5a.

Final Summary

Changed schema-drift warning deduplication to expire after the configured TTL so long-lived processes report recurring drift without flooding. Verified by fake-clock transition tests, final just check, and exact-head CI run 33322449434 at a18a5dd06f9ac9c8b84fda73bba653ded2398d5a (success).

View the source file on GitHub