Expand description
Imperative shell for the agent reducer (RFC-0006 §7.1).
Effect dispatch — the applier itself contains NO platform-specific
code. LocalFireSwitch / LocalFireRollbackTo send an
ActivationIntent to the activation worker; the worker holds the
per-OS branches (Linux: systemd-run --unit=nixfleet-switch;
Darwin: setsid()-detached launchd). Same shape for
LocalResetProbeCache (probe-worker channel).
Keeping the platform branches off the applier preserves the architectural symmetry with the CP-side applier (which has no platform code either) and means the reducer task is portable across Linux + Darwin (and any future target) without changes.
Remote* variants are CP-only; reaching the agent applier means a
reducer state-machine defect. Log + drop, do not panic — a buggy
peer must not crash the agent.
Functions§
- apply_
effect - Execute one
Effectemitted bynixfleet_state_machine::step. - remote_
kind 🔒 - send_
intent 🔒