fn owned_pins_ordered<'a>( indexed: &'a IndexedDocument<'a>, owner: BlockId, ) -> Vec<(PinId, &'a Pin)>
Owned pins in a stable order, so a rider’s ops read the same on every run (the index’s sets iterate by hash).