Plan::path_down now states once whether a reported (child, parent) pair lies on a receiver's path to the source. The alternate-parent filter in reconcile, the switch commit check and the reduction readiness check in flow_state each walked that path by hand; they now call the method and keep their own starting point and the terms they combine with it. RoomRuntime::flow_state, which passed an empty observation set, had no production caller and is removed. Its tests pass an explicit empty set instead. With no unobserved variant left, Publication::reconcile_observed becomes reconcile and the flow_state_observed methods on Publication and RoomRuntime become flow_state. The redundant parentheses around the three viewing comparisons are removed. The room's disconnected_pairs field is kept: RoomHost::finish and RoomHost::finish_peer reconcile after a dispatch and read the set it stored, so removing the field needs that set carried with the dispatch's other remembered inputs first. Behaviour is unchanged. cargo test --features sqlite still reports 331 passed and 1 ignored, and cargo test without the feature reports 172 passed.
c402306890
·
2026-11-26 05:18:28 +08:00
History