Hard
Check cursor snapshot expiration dates
The task
This is the brief your AI gets. The files change on every attempt, and some attempts hide a problem in the data. Which ones is not revealed.
Review cursor_snapshots.py as of 2026-11-30. Rule: every ACTIVE snapshot must have expires_at >= '2026-11-30'. EXPIRED snapshots may have earlier dates. If any ACTIVE snapshot is expired, set status to 'conflict_detected' and put its snap_id in flagged_items. Otherwise keep 'completed'. Return in result: active_valid_count=<count of compliant ACTIVE snapshots>.
- Files you work with
cursor_snapshots.py- Your AI must return
active_valid_count- Level
- Hard. A hard task: several details interact, and a quick skim gives a confident wrong answer.
- Time
- About 10 minutes with your own AI. Free, not ranked.
Manager’s note
Your AI can’t see this
Thursday 26/11 note on counting compliant active cursor snapshots. Only count active snapshots with descending sort order and page size at most 50. Ignore the rejected Q3 proposal about separating legacy backups. Still validate expiration dates on every active snapshot.
Rooms with this problem
More Software & IT problems
- Validate webhook URLs against SSRF Hard
- Find command injection in CI workflows Hard
- Check API changes for breaking changes Hard
- Check cron jobs against the off-peak window Hard
- Check JWT verification settings Hard
All Software & IT problems → · Using TraceGrade for Software & IT hiring