fix: First bus event ingestion captures full history#109
Conversation
First run no longer applies a timestamp cutoff — it ingests ALL events from the event-bus database. Subsequent runs continue using the high-water mark for incremental updates. This prevents the scenario where a days=7 first run permanently skips older events. Closes #108 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Code ReviewSummaryThis PR fixes a bug where first-run bus event ingestion applied a timestamp cutoff (defaulting to 7 days), permanently skipping older events due to the high-water mark pattern. The fix removes the timestamp cutoff on first run so all historical events are ingested, while keeping incremental behavior for subsequent runs. Issues FoundCriticalNone ImportantNone Suggestions
VerdictREQUEST_CHANGES - The core fix is correct and well-tested, but the Automated review by Claude Code |
Summary
daystimestamp cutoff — it ingests ALL events from the event-bus databasedays=7first run permanently skips older events (discovered immediately after merging feat: Complete event-bus ingestion integration #107)Closes #108
Test plan
test_first_run_ignores_days_param— verifiesdays=1still gets all 5 events including 10-day-old onemake checkpasses🤖 Generated with Claude Code