Link-Flap Recovery & Cold-Cache Warmup Slippage Playbook

2026-03-26 · finance

Link-Flap Recovery & Cold-Cache Warmup Slippage Playbook

Date: 2026-03-26
Category: research
Audience: quant execution operators running low-latency gateways on redundant network links


Why this note

A short link flap (L1/L2 down→up) is often treated as a harmless infra blip if packet loss quickly returns to normal.

In practice, execution cost can stay elevated after link recovery because multiple layers are still cold:

Result: the system looks “up,” but is still in a costly warmup regime where stale-arrival and forced-urgency tails widen.


1) Cost decomposition with warmup state

For child decision at time (t):

[ \mathbb{E}[C_t] = \mathbb{E}[C_{base} \mid a_t, s_t] + \lambda_w \cdot \mathbb{E}[C_{warmup} \mid w_t] ]

Where:

Practical branch form:

[ C_{warmup} \approx p_{resolve}L_{resolve} + p_{reconnect}L_{reconnect} + p_{burst}L_{burst} + p_{deadline}L_{deadline} ]


2) Observability contract (must-have fields)

A) Link and host-network telemetry

B) Session and gateway telemetry

C) Execution timeline telemetry

Per child order:

Without explicit “post-flap epoch” tagging, postmortems usually blame market volatility for what was actually warmup-state slippage.


3) State machine for post-flap execution

Define four states:

  1. STABLE — normal latency/queue/session behavior
  2. RECOVER_COLD — link up but caches/sessions/path not yet stabilized
  3. RECOVER_WARMING — key metrics improving, but tails still elevated
  4. DEGRADED_REFLAP — repeated flaps or unstable recovery; high risk

Use hysteresis + minimum dwell time. Avoid STABLE re-entry on a single good 5s window.


4) Warmup Readiness Score (WRS)

Build an online score (WRS_t \in [0,1]):

[ WRS_t = \sigma(\beta_0 - \beta_1 NRL_t - \beta_2 RBL_t - \beta_3 HFL_t - \beta_4 BSI_t) ]

Where:

Interpretation:


5) Execution policy by state

STABLE (GREEN)

RECOVER_COLD (RED)

RECOVER_WARMING (AMBER)

DEGRADED_REFLAP (HARD RED)


6) KPIs for production control

Alert examples:


7) Validation ladder

  1. Historical relabeling
    Label link-flap episodes and compare state-conditional slippage.

  2. Counterfactual replay
    Replay with RED/AMBER controls to estimate avoided q95/q99 cost.

  3. Drill-based chaos tests
    Controlled interface bounce in staging; verify WRS, state transitions, and rollback logic.

  4. Shadow then canary
    Start with monitoring-only, then enable policy on small flow slice.

Success criterion: lower tail slippage and lower catch-up burst intensity without unacceptable completion-risk increase.


8) 10-day implementation plan

Days 1-2
Add explicit flap epoch tags and reconnect branch fields.

Days 3-4
Compute WDI/FAI/SAB/CBR dashboards.

Days 5-6
Ship first WRS model + hysteresis state machine.

Days 7-8
Integrate RED/AMBER controls in shadow mode.

Day 9
Canary with strict rollback threshold.

Day 10
Finalize runbook + postmortem template and ownership map.


Common mistakes

  1. Declaring recovery at “packet loss back to zero.”
    Warmup cost can persist well after link-up.

  2. No reconnect branch labels.
    Without warm/resumed/full tags, model attribution collapses.

  3. Instant full-capacity re-entry.
    This often creates self-inflicted catch-up bursts.

  4. Single-metric health gates.
    Mean latency alone misses stale-arrival and burst dynamics.

  5. Ignoring repeated-flap clustering.
    Reflap episodes should escalate to hard containment quickly.


Bottom line

Link flaps are not binary outages; they are state transitions with warmup economics.

If you explicitly model post-flap warmup (cold → warming → stable), attach execution controls to that state, and track warmup-attributed cost, you can remove a recurring hidden bps leak from live operations.