## Problem Audit retention is documented and implemented, but the cleanup method is never executed on a schedule. ## Current state - `IncidentStore.apply_retention()` in `services/incident_store.py` deletes old audit/log/checkpoint objects - Method is defined but never called from `api/server.py`, queue worker, or CLI - `.env.example` documents `AUDIT_RETENTION_DAYS=90` ## Acceptance criteria - [ ] Run `apply_retention()` on a schedule (lifespan background task or queue worker interval) - [ ] Support multi-org via `ORG_IDS` - [ ] Add test in `tests/test_services.py` covering deletion of aged keys ## Files - `services/incident_store.py`, `api/server.py`, `services/incident_queue.py`, `.env.example`
Activity
fix: schedule audit retention cleanup on API lifespan (open-devops-ag…
test: add failing coverage for scheduled audit retention (#8)