pub fn ring_index(seq: Seq, capacity: u64) -> usizeExpand description
Helper: compute the ring index for a given sequence and power-of-two capacity.
For v1 we primarily use INDEXBUS_QUEUE_CAPACITY, but executors may choose a smaller
effective window.