Implement a coordination layer to assign peer monitoring responsibilities, ensuring each node is monitored by multiple independent peers (configurable N/M). Use a deterministic assignment algorithm (e.g., consistent hashing or round-robin). Prevent monitoring overlap and ensure coverage even if some peers are offline.
- Design assignment logic (consistent hashing, round-robin, or lightweight consensus).
- Integrate with node join/leave events.
- Expose current monitoring assignments for each node via API/CLI.
- Add tests for correct assignment under churn.