bootstrap_pending_state

Function bootstrap_pending_state 

Source
fn bootstrap_pending_state(
    rollout_id: &RolloutId,
    target_closure: &str,
    soak_due_at: DateTime<Utc>,
    now: DateTime<Utc>,
) -> HostRolloutState
Expand description

First-touch bootstrap for a fresh LocalActivate event. Pure: derives channel from the canonical RolloutId composite (RFC-0008 §6.3); the caller threads in the manifest-looked-up target_closure for this host (selecting by hostname == cfg.machine_id) and the CP-resolved soak_due_at carried by the LocalActivate event from DispatchResponse.soak_due_at (CP is the single source of truth for the policy-resolved soak window per RFC-0004 §1 invariant 1). Caller also threads now so the helper stays clock-injection-free.