case study / Integrations / regulated systems
Carrier compliance, three platforms deep
Four years of owning the system that decides whether a customer’s messages get delivered at all.
- my role
- Owner, builder and operator across three platforms: original system, stabilization, carrier migration, and the event-sourced rebuild.
- stack
- TypeScriptNode.jsAWS LambdaSQLPostgreSQLevent sourcing
## Context
US carriers require businesses that send SMS to register their brand and use case (10DLC). Toll-free senders need verification, and outbound calls need attestation (STIR/SHAKEN). Registration is slow, asynchronous and multi-step, and failure lands on the customer: unregistered traffic gets filtered or blocked.
It is an integration problem with a regulator at the far end.
## The arc
2022
Built the first registration system
Brand and campaign registration on the original carrier: submission, status tracking, and the product flow around it.
2024 – 2025
Stabilized it with no spec and no expert
There was no requirements document and nobody left who knew the system. I worked directly with the business team, split a monolithic sync into retryable stages, replaced long overnight batch syncs with on-demand re-sync per business, and built real test coverage.
2026
Rebuilt it during an urgent carrier exit
With short notice to move carriers, I rebuilt registration on the new carrier’s APIs and kept the customer-facing flow unchanged. I added reconciliation against the carrier as the source of truth for missed webhooks, caught a cross-tenant fallback bug before release, and ran the offboarding from the old carrier. Then I extended the system to international regulatory bundles, toll-free verification and voice attestation.
2026
Designed and built the event-sourced successor
For the platform rebuild I wrote the design and built the compliance service: fail-closed gates, reconciliation, and a shadow-to-enforce cutover. Before launch I validated the new event pipeline against months of real status history and found a callback casing bug and missing failure reasons.
## Making failure legible
In the original system, customers were told only that a registration had failed. Support or sales had to look up the reason by hand and relay it. The new service turns every compliance status change into a webhook and an owner notification that says what happened and why, so the customer can act without opening a ticket.
Next on that path: I proposed using what we learn about a business during its trial to prefill registrations with AI, with a confidence level on each field so a person reviews the uncertain parts. That work is an early draft, not a shipped feature.
## Trade-offs
chose: Fail closed: block sending until compliance is confirmed.
cost: Protects the customer’s number reputation, but can stall a legitimate customer. Running in shadow mode first showed what enforcement would block before we turned it on.
chose: Treat the carrier as the source of truth and reconcile.
cost: More moving parts than trusting webhooks. Webhooks get missed; reconciliation is the safety net.
chose: Keep the UI identical during the carrier exit.
cost: More adapter work underneath, in exchange for zero retraining and no customer-visible change during a stressful migration.
Details are generalized. Nothing here is proprietary code, customer data or internal metrics.