# V2 Difficulty Analytics

`@v2/difficulty-analytics` builds the Phase 72.5.2.7 difficulty analytics
surface for per-encounter win/loss rates, retry counts, completion time, and
difficulty spike detection.

The package composes `@iris/analytics-realtime` for spike alert snapshots and
aggregates V2 encounter telemetry into operator-ready encounter rows, including
difficulty spikes. It applies the `v2-difficulty-analytics-v1` policy and
exposes only hashed-account aggregates.

Targeted verification:

```bash
pnpm --filter @v2/difficulty-analytics run typecheck
pnpm --filter @v2/difficulty-analytics run test
python V2/ue/Tools/check-v2-difficulty-analytics.py
```
