Module reducer

Module reducer 

Source

ModulesΒ§

connection πŸ”’
Connection-lifecycle reducer handlers. Extracted from reducer/mod.rs in task #182 PR-E for navigability.
pool πŸ”’
Pool-related reducer handlers. Extracted from reducer/mod.rs in task #182 PR-B for navigability.
saga πŸ”’
Saga-related reducer handlers. Extracted from reducer/mod.rs in task #182 PR-D for navigability.
window πŸ”’
Window lifecycle reducer handlers. Extracted from reducer/mod.rs in task #182 PR-C for navigability.

StructsΒ§

Ctx
Context the reducer needs but can’t read from State (clocks, connection identity). Passed in per-call so update remains pure.

FunctionsΒ§

handle_report_host_counts πŸ”’
Phase B.4 follow-up β€” drift check. Compares host-reported counts to launcher mirror counts; emits DriftDetected for each disagreeing dimension. Returns [] when both counts match (the happy path; mirrors are in sync).
update
Apply one Command to State, returning the resulting Events. State is mutated in place. Total function β€” never panics on input (panics are reserved for internal invariant violations).