pub(crate) fn plan_reconcile(
browser_status: &HashMap<String, HwndStatus>,
all_browser_labels: &[String],
shadow_keys: &HashSet<String>,
pool_queue: &HashSet<String>,
unpromoted_pool: &HashSet<String>,
pending_creation_in_flight: bool,
) -> ReconcilePlanExpand description
Pure planning function. The orchestrator HWND-probes every
non-pane top-level browser in state.browsers and feeds that map
here.
browser_status keys every non-pane label in state.browsers to
its HwndStatus. Includes pool-prefixed labels AND regular
top-level windows (e.g. main, window-N). Pane labels
(browser-pane-*) are NOT in this map — they drain via a
separate cascade and would otherwise pollute classification.
all_browser_labels is state.list_browsers() keyed; used only
for live_user_count.