Spec Section 4 "three-tier event ingestion" tier 2: one-off match convenience. Spec open question 3: expose Index + intern/lookup for power users. History and HistoryBuilder gain a 4th generic parameter K: Eq + Hash + Clone = &'static str. The default ensures existing tests using Index-based add_events compile unchanged. History internally owns a KeyTable<K>. intern(&Q) creates or returns an Index for the given key; lookup(&Q) returns Option<Index> without creating. record_winner and record_draw are thin 1v1 wrappers around the internal add_events_with_prior. Part of T2 of docs/superpowers/specs/2026-04-23-trueskill-engine-redesign-design.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.3 KiB
1.3 KiB