-
-
Notifications
You must be signed in to change notification settings - Fork 202
Implement 30-Day Retention Policy for DevIndex Penalty Box #9136
Copy link
Copy link
Closed
Labels
Description
We need a mechanism to handle user deletions and long-term suspensions in compliance with privacy expectations ("Right to be Forgotten"). Currently, users who return 404s are moved to the Penalty Box (failed.json) indefinitely if they have prior history.
The Solution: Penalty Box Retention Policy (TTL)
- Schema Migration: Convert
apps/devindex/resources/failed.jsonfrom a simple Array["login"]to a Map{"login": "2026-02-13T..."}to track when the failure first occurred. - Cleanup Logic: Update
Cleanup.mjsto check this timestamp. - Policy: If a user remains in the Penalty Box for 30 Days:
- Assume the account is permanently deleted or banned.
- Hard Delete: Remove from
users.jsonl,tracker.json, andfailed.json. - Log the deletion.
This ensures that our index eventually reflects reality and respects user deletion.
Reactions are currently unavailable