Add complete infrastructure for ingesting GitLab Resource Events (state, label, milestone) into local SQLite tables. This enables temporal queries (timeline, file-history, trace) in later gates. - Add migration 011: resource_state/label/milestone_events tables, entity_references table, pending_dependent_fetches queue - Add 6 serde types for GitLab Resource Events API responses - Add fetchResourceEvents config flag with --no-events CLI override - Add fetch_all_pages<T> generic paginator and 6 API endpoint methods - Add DB upsert functions with savepoint atomicity (events_db.rs) - Add dependent fetch queue with exponential backoff (dependent_queue.rs) - Add 'lore count events' command with human table and robot JSON output - Extend 'lore stats --check' with event FK integrity and queue health - Add 8 unit tests for resource event type deserialization Closes: bd-hu3, bd-2e8, bd-2fm, bd-sqw, bd-1uc, bd-tir, bd-3sh, bd-1m8 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
6.4 KiB
6.4 KiB