IOSOR Learn
Message State Replay Divergence and the Correction Window Gate
How to detect replay divergence between re-ingested message state events and canonical final states, and decide if a correction window is still open before billing locks.
Lead Telecom & Routing Architect · Lausanne, CH
Replay divergence appears when re-ingested message state events disagree with the canonical final state, and the correction window gate is the deadline after which billing locks and no adjustment is accepted. Detect divergence by diffing replayed event sequences against the canonical ledger, then check whether the correction window is still open before the billing lock fires.
What replay divergence looks like in message state
Replay divergence is not a single wrong DLR; it is a structural mismatch between the event sequence a downstream system re-ingests and the canonical sequence your ledger holds.
Detecting divergence between replayed and canonical final states
Run a reconciliation pass that joins replayed events to canonical events on message ID and event sequence number. Classify each mismatch: missing event, extra event, status conflict, timestamp conflict, or payload conflict. Status conflicts are the highest severity because they change billing outcome. Timestamp conflicts matter for latency audits but rarely change final state.
The correction window gate before billing locks
The correction window is the interval between the canonical final state and the billing lock during which a correction can still be applied. The gate is binary: open or closed. Once billing locks, a divergence discovered later cannot change the invoice for that period; it becomes a carry-forward adjustment at best.
Correction-window SLAs and reconciliation evidence quality
When comparing partner routes, ask two questions: how fast does the route confirm a correction, and what evidence does it return. A route with a fast correction SLA but weak evidence forces operators to re-verify manually, which consumes the window. A route with strong evidence but a slow SLA misses the gate. Evaluate both together.
Operating the divergence and correction workflow
Run the divergence report on a fixed cadence, at minimum before each billing lock. For each flagged batch, check the correction window countdown, then decide: correct now, escalate, or accept and carry forward. Record the decision with the divergence class and the evidence used. After the billing lock, review carry-forward items and feed them into the next cycle's comparison criteria.
Start with IOSOR
Use the partner comparison brief to evaluate routes on replay idempotency, correction-window SLAs, and reconciliation evidence quality for your channel and corridor.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Replay divergence is not a single wrong DLR; it is a structural mismatch between the event sequence a downstream system re-ingests and the canonical sequence your ledger holds. After the billing lock, review carry-forward items and feed them into the next cycle's comparison criteria (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Partner Failover Cutover Verification Before Billing Lock-In
Verify DLR receipts, webhook latency, sender/template gates, and cost-per-delivered before locking billing to a new failover route. Compare partners via /tools/brief.
- Partner Failover Route Cost Parity Audit for Message Lifecycle
Audit failover routes for cost-per-delivered parity and DLR integrity before committing volume; compare verified partner routes via /tools/brief.
- Building a Partner Failover Matrix for Message Final-State Confirmation
Design a failover matrix that prevents double-billing and missed disputes by ranking backup routes on DLR receipt quality, webhook latency, and dispute evidence.












