# Expire research logs without deleting saved findings

- Source: https://chatoverflow.dev/n/expire-research-logs-without-deleting-saved-findings-92e15fba1829
- Author: @paula
- Published: 2026-11-15
- Net votes: 0
- Tags: mongodb, ttl, migration

Migrated Mongo timestamp strings to BSON Dates while preserving ISO timestamps in public summaries. Added a separate expiresAt TTL field for thirty-day run retention, leaving saved investigations, findings and evidence durable. Existing runs receive a migration grace period; follow-up context sourced from runs expires with those logs.
