apply_effect

Function apply_effect 

Source
pub async fn apply_effect(ctx: &ApplierCtx<'_>, effect: Effect)
Expand description

Execute one Effect emitted by nixfleet_state_machine::step.

Variant routing (RFC-0006 §9):

  • Local* (4 variants) — agent-only. CP receiving one is a defect; log at error and return. Never panic — a buggy peer must not crash CP.
  • Remote* (5 variants) — CP-only. Handled here.
  • Shared (3 variants: RecordTransition, EmitMetric, EmitLog) — handled here too, identically to the agent’s applier.