miroir/crates
jedarden faf611d4dd feat(marathon): wire up Mode A coordinator to drift_reconciler, anti_entropy_worker, canary_runner (P6.3)
This completes the Mode A integration for horizontal scaling (plan §14.5):
- Wire drift_reconciler with mode_a_coordinator for settings drift check partitioning
- Wire anti_entropy_worker with mode_a_coordinator for shard-partitioned anti-entropy
- Wire canary_runner with mode_a_coordinator for rendezvous-owned canary execution

Changes:
- admin_endpoints.rs: Create mode_a_coordinator before workers, wire up using Arc::try_unwrap
- main.rs: Wire canary_runner with mode_a_coordinator when available

Acceptance criteria met:
- Unit test: owns() returns true for exactly one peer per item (existing test passes)
- 3 pods anti-entropy: each shard processed exactly once (existing test passes)
- Pod reassignment: shards reassigned within refresh window (existing test passes)

The Mode A coordinator was already fully implemented with rendezvous hashing.
This commit completes the wiring so workers actually use it.

Closes: miroir-m9q.3
2026-05-24 19:38:46 -04:00
..
miroir-core feat(rebalancer): implement RF-restore for node recovery (P4.5) 2026-05-24 19:18:05 -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(marathon): wire up Mode A coordinator to drift_reconciler, anti_entropy_worker, canary_runner (P6.3) 2026-05-24 19:38:46 -04:00