pub fn unit_write_key_conflicts(
ops: &[ParsedOp],
ranges: &[Range<usize>],
) -> BTreeMap<usize, Vec<UnitKeyConflict>>Expand description
Finds every statically knowable write-key collision between different units of a bracketed batch of chains (ADR-016 Amendment 2).
A key repeated by two leaves of the same unit is legal, because a chain’s own leaves are already ordered, and is never reported. A key claimed by leaves in two different units is reported once per affected unit (symmetric: both units get an entry), each naming the other unit’s conflicting global leaf position, so a caller can refuse both units before any of their leaves dispatch. Units absent from the returned map share no cross-unit key with any other unit.