Module transitions

Module transitions 

Source
Expand description

Transition dispatcher. Routes (state, event) to the per-source-state handler in a sibling module, after performing the universal pre-checks (seq monotonicity, basic structural validity).

Each per-state module pattern-matches the events legal from that source state and returns either the new state + effects, or IllegalForState for events the Β§3 graph doesn’t permit from that source. The runtime layer is expected to log + drop illegal events (out-of-order retransmits) and rely on Replay-From heartbeat drift-detection (RFC-0005 Β§4.3) for gap recovery.

ModulesΒ§

activating πŸ”’
Transitions from Activating.
converged πŸ”’
Transitions from Converged. Terminal for this rollout β€” the runtime creates a NEW HostRolloutState (a fresh record with a new rollout_id) when the channel opens its next rollout. The existing Converged record is read-only history from this point.
deferred πŸ”’
Transitions from Deferred.
failed πŸ”’
Transitions from Failed. Legal events:
pending πŸ”’
Transitions from Pending. Only legal events: LocalActivate (agent side, after long-poll receives Dispatch + cross-check vs manifest) and RemoteDispatchAck (CP mirror, after agent posts to /v1/agent/events). Both drive Pending β†’ Activating.
reverted πŸ”’
Transitions from Reverted. Terminal until the channel halt is lifted by a new declared SHA (RFC-0005 Β§3). The runtime creates a fresh HostRolloutState when the next rollout opens for this channel; this record stays Reverted as history.
soaking πŸ”’
Transitions from Soaking.

FunctionsΒ§

dispatch πŸ”’
event_name πŸ”’
Shared utility β€” variant name for diagnostic strings.
illegal πŸ”’