monitoring.cleanup module
Cleanup utilities for predictive/observability artifacts (Session 5).
Rules: - Never delete outside of the project data/ directory. - Fail-open: log and return on any unexpected error. - Provide a CLI for manual cleanup in dev/CI.
- monitoring.cleanup.cleanup_predictions(max_age_seconds=None, now_ts=None)[מקור]
Cleanup old prediction records under data/.
Keeps only records newer than now - max_age_seconds.