IOSOR Learn
Configuring DLR Finality Windows in Sandbox Tests
Define wait periods for terminal delivery receipts before marking messages failed in test suites, then compare partner routes that honor configurable finality windows.
Lead Telecom & Routing Architect · Lausanne, CH
Engineers set explicit finality windows so test suites wait a defined interval for terminal DLRs before failing messages, preventing flaky results from transient carrier delays. This configuration directly controls retry logic, alerting thresholds, and downstream webhook processing in sandbox pipelines.
Finality Window Semantics
A finality window is the maximum elapsed time after message submission during which a terminal DLR (delivered, failed, undeliverable) is considered authoritative. Values typically range from 30 seconds for low-latency corridors to 24 hours for store-and-forward routes. The window must exceed the 99th-percentile DLR latency observed in production for the same corridor.
Sandbox Configuration Knobs
Configure `dlr_finality_seconds` per test suite or per partner route in the sandbox manifest. Separate knobs for `initial_wait`, `max_wait`, and `backoff_factor` let you model exponential retry curves. Override via environment variable `IOSOR_DLR_FINALITY_OVERRIDE` for ad-hoc runs without manifest changes.
During pre-flight verification, validate that automatic failover thresholds trigger deterministic rerouting without duplicating outbound segments or exhausting retry backoff budgets under peak regional load.
DLR Receipt Classification
Only terminal DLR states count toward finality: `DELIVERED`, `FAILED`, `UNDELIVERABLE`, `EXPIRED`, `REJECTED`. Intermediate states (`SENT`, `BUFFERED`, `ACCEPTED`) reset the wait timer but do not satisfy finality. Map carrier-specific codes to this canonical set before evaluating window expiry.
Webhook Latency Budget
Reserve 10–15% of the finality window for webhook delivery and processing latency. If the window is 300 seconds, allow 30–45 seconds for the webhook to reach your ingest endpoint, validate signatures, and persist the DLR. Exceeding this budget marks the message failed even if the carrier eventually delivers.
Sender and Template Gates
Finality windows apply per sender ID and template combination. A template with high carrier scrutiny may need a 2× window versus a pre-approved template. Encode these multipliers in the sandbox manifest under `sender_template_finality_multiplier` to avoid hardcoding per-test values.
Start with IOSOR
Compare verified partner routes that honor your configured finality windows using Decision Brief. Validate DLR receipt timing, webhook contract adherence, and failover trigger thresholds across corridors.
Related: Detecting DLR Sequence Gaps in Sandbox Environments · Detecting DLR Webhook Contract Drift in Sandbox · Validate Sandbox Failover Trigger Thresholds Before Production Routing.
IOSOR takeaway
Validate DLR receipt timing, webhook contract adherence, and failover trigger thresholds across corridors. Cross-reference /tools/brief, /tools/brief, and /tools/brief (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Verify DMARC p=reject cutover backpressure control on sandbox routes
Operators verify DMARC p=reject cutover backpressure on sandbox routes before raising volume, then compare partner routes in /tools/brief.
- Sandbox Sink Ack Ordering and Deduplication Parity Check
Verify mock sink acks preserve ordering and dedup semantics identical to production gateways before promoting a route, then shortlist partners via Decision Brief.
- Suppression List Propagation: Sandbox Verification Before Hub Activation
Prove opt-out and suppression lists propagate from sandbox sink to live hub without silent gaps, re-inclusion drift, or unlogged drops before route activation.












