IOSOR Learn
Sandbox Opt-Out Keyword Parsing Parity: Verify STOP Handling Before Go-Live
Prove mock STOP parsing, normalization and suppression writes match the production opt-out contract across SMS, MMS, RCS and WhatsApp before loading volume.
Lead Telecom & Routing Architect · Lausanne, CH
Mock and production opt-out handling must agree on the same STOP keyword set, normalization rules and suppression writes before you commit real volume. Run a parity matrix on the sandbox gateway first, then confirm the identical contract survives each partner route.
Define the opt-out contract the sandbox must mirror
Start from a written contract, not from observed behavior. It must specify the exact keyword list (STOP, STOPALL, UNSUBSCRIBE, CANCEL, END, QUIT plus locale variants), case-folding, leading and trailing whitespace trimming, punctuation stripping, and whether accented or Cyrillic input is accepted.
Build the STOP keyword matrix across all four channels
Enumerate every channel and every keyword combination, then run each pair through the mock gateway. Expected result per cell: parser extracts the keyword, normalization produces the canonical token, suppression write fires once, and a DLR receipt confirms delivery of the confirmation reply.
Verify normalization order and suppression-write idempotency
Normalization order causes most real parity bugs. Fix and document the sequence: trim, case-fold, strip punctuation, collapse internal whitespace, then match against the keyword list. If the mock strips punctuation before trimming and production does the reverse, an input like ' STOP. ' resolves differently and you will not notice until a live subscriber stays subscribed.
Reconcile DLR receipts and webhook latency for opt-out events
Opt-out is an event with a delivery receipt, and that receipt must match production timing. Measure webhook latency for the confirmation reply across all four channels and record p50 and p95. Compare to the production baseline and flag any channel where the mock is faster by more than the expected queue delay, because that gap hides retry behavior.
Cross-check channel isolation before trusting the parity result
Parity on one channel tells you nothing if the mock leaks state between channels. Run the full matrix four times, once per channel, with a clean suppression table each run, and assert zero cross-channel suppression. Then run a combined pass where the same E.164 sends STOP on SMS and a normal message on WhatsApp, and verify the suppression scope matches the contract — global or per-channel — exactly.
Start with IOSOR
Work the checklist in order and record evidence per step. First, freeze the opt-out contract version and link the commit hash. Second, run the full STOP keyword matrix for SMS, MMS, RCS and WhatsApp and attach the pass/fail table. Third, attach the property-test diff proving normalization order matches. Fourth, attach the idempotency test showing exactly one suppression record on double STOP.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Start from a written contract, not from observed behavior. Then run a combined pass where the same E.164 sends STOP on SMS and a normal message on WhatsApp, and verify the suppression scope matches the contract — global or per-channel — exactly (/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.












