miroir/crates/miroir-core
jedarden cfacb5160e Phase 1 (miroir-cdo): Core Routing implementation complete
Implements deterministic, coordination-free routing primitives per plan §2:
- Rendezvous hashing (HRW) with seed 0 to match Meilisearch Enterprise
- Topology management with node health state machine
- Result merger with global sort, facet aggregation, offset/limit
- Scatter orchestration primitives (stubbed execution)

Key properties:
- Determinism: all pods agree on assignments without gossip
- Minimal reshuffling: adding node moves ~1/(Ng+1) of that group's docs
- Group isolation: hashing scoped to intra-group node lists

All acceptance tests pass:
- Determinism across 1000 randomized runs
- Reshuffle bounds on add/remove (≤2×1/4×S edges differ)
- Uniform distribution (64 shards/3 nodes/RF=1 → 18-26 shards per node)
- Top-RF placement stability
- write_targets returns exactly RG×RF nodes
- query_group distributes evenly
- covering_set returns one node per shard with replica rotation
- Merger passes all merge/facet/limit tests

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 15:27:16 -04:00
..
benches Phase 0 (miroir-qon): Rust 1.88 upgrade + test infrastructure 2026-05-09 02:05:44 -04:00
src Phase 1 (miroir-cdo): Core Routing implementation complete 2026-05-09 15:27:16 -04:00
tests Phase 1 (miroir-cdo): Core Routing implementation complete 2026-05-09 10:46:56 -04:00
Cargo.toml Phase 0 (miroir-qon): Final verification complete - all DoD criteria met 2026-05-09 07:00:22 -04:00