bug: no data retention purge for tip_scores and tip_feedback (GDPR 30-day) #76

Closed
opened 2026-04-16 15:24:28 +00:00 by alvis · 0 comments
Owner

Problem

tip_scores and tip_feedback tables are documented as 30-day retention (schema comments reference GDPR), but no cleanup job exists. Data accumulates indefinitely.

Fix

  1. Add a daily cleanup function: DELETE FROM tip_scores WHERE served_at < datetime('now', '-30 days')
  2. Same for tip_feedback
  3. Run on API startup + setInterval (24h) for Phase 0
  4. Move to Prefect/cron in M4
## Problem `tip_scores` and `tip_feedback` tables are documented as 30-day retention (schema comments reference GDPR), but no cleanup job exists. Data accumulates indefinitely. ## Fix 1. Add a daily cleanup function: `DELETE FROM tip_scores WHERE served_at < datetime('now', '-30 days')` 2. Same for `tip_feedback` 3. Run on API startup + setInterval (24h) for Phase 0 4. Move to Prefect/cron in M4
alvis added this to the M2 — AI tips + multi-source signals milestone 2026-04-16 15:24:28 +00:00
alvis closed this issue 2026-04-17 13:34:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alvis/oO#76