miroir/crates
jedarden 17b25e4cf1 feat(analytics): implement beacon idempotency and CDC integration (P5.21.f §13.21)
Implement analytics beacon endpoint with idempotency and CDC integration:

- Add `check_and_mark_beacon_event` to TaskStore trait for idempotency
- Implement for both Redis (HSET with 24h TTL) and SQLite (table with cleanup)
- Add JWT session extraction for session_id in beacon events
- Add server-side event_id generation fallback for old browsers (SHA256 hash)
- Integrate with CDC manager to publish AnalyticsEvents (click_through, latency)
- Respect cdc.emit_internal_writes for latency events
- Add Display impl for JwtValidationError for proper error logging
- Add jwt_decode_with_fallback helper for JWT rotation support
- Add unit tests for beacon idempotency (SQLite and Redis)

Closes: miroir-uhj.21.6
2026-05-25 02:48:55 -04:00
..
miroir-core feat(analytics): implement beacon idempotency and CDC integration (P5.21.f §13.21) 2026-05-25 02:48:55 -04:00
miroir-ctl feat(reshard): implement full six-phase orchestrator with admin API integration 2026-05-24 18:59:36 -04:00
miroir-proxy feat(analytics): implement beacon idempotency and CDC integration (P5.21.f §13.21) 2026-05-25 02:48:55 -04:00