An Intelligent Recovery Layer for Recurring Payments
Razorpay’s subscription infrastructure retries failed payments on a fixed T+1 / T+2 / T+3 schedule, regardless of why the payment failed. RecoverOS is the reasoning and governance layer that decides retry-vs-wait-vs-stop-vs-escalate based on failure cause, customer context, and RBI constraints — built to complement Razorpay’s existing infrastructure, not replace it.
Why Generic Retries Fail
The difficult part is not knowing that a payment failed. The difficult part is deciding what should happen next — without creating unnecessary retries, unsafe automation, or customer fatigue.
A fixed retry schedule blindly retries cancelled mandates (0% recoverable) and mis-times insufficient funds (salaries credited on 1st/30th).
Decisions are bounded by deterministic rules, quiet hours (22:00–08:00), ₹15k RBI mandate limits, and active dispute hard gates.
How RecoverOS Handles a Failed Subscription Payment
Instead of a single blind retry loop, RecoverOS operates as a multi-layered diagnostic system tailored specifically for recurring billing in India.
Aggregator Vantage Point
Detects systemic issuing bank outages (e.g. HDFC 400+ failures) across merchants to prevent gateway retry storms with jittered deferrals.
Root-Cause Taxonomy
Distinguishes transient network glitch vs. salary-cycle insufficient funds vs. permanent mandate cancellations vs. active chargebacks.
Bounded Restraint
Enforces non-AI overridable rules: retry limits, 4h cooldowns, RBI ₹15,000 mandate authentication, quiet hours, and dispute gates.
Counterfactual Lift
Explicitly reports gross recovered vs. what native retry would have recovered on its own. Declines credit when baseline would succeed.
Hexagonal Clean Architecture Diagram
RecoverOS decouples core domain rules from external infrastructure and payment clients.
AI Can Recommend. It Cannot Act Without Boundaries.
Every recovery decision passes through a deterministic policy layer that is not AI at all. Below is the exact boundary ledger alongside the transparent reality audit.
What is Simulated vs. What Actually Executes
| Pipeline Layer | What is Synthetic | What Actually Executes in Real Code |
|---|---|---|
| Event Ingress | Sample webhook JSON payloads | HMAC-SHA256 signature verification & deduplication execute |
| AI Investigation | Mock LLM provider option for offline tests | Zod schema validation, retry loop & fallback matrix execute |
| Policy Engine | Configured merchant limits | Retry caps, quiet hours, ₹15k RBI limits & dispute checks execute |
| Outage Cluster Engine | Simulated bank failure burst | 10-min rolling window cluster tracker & randomized jitter deferral execute |
| Payment Action Adapter | Money movement is simulated | Idempotency headers, state machines & audit log events execute |
| Human Review Console | Demo cases are seeded | Real-time polling, state transitions & analyst approval execute |
When Systems Fail, RecoverOS Remains Safe
When AI, infrastructure, external APIs, or data fail, RecoverOS remains predictable, safe, and prevents duplicate financial actions.
4-Step Demonstration Route & What to Notice
The fastest, most thorough way to evaluate RecoverOS against the AI Buildathon rubric.
Simulation Control Center
What is this? A real-time execution engine loaded with 13 production payment failure scenarios (Expired cards, OTP timeouts, mandate revocations, etc.).
What to notice: The 7-stage interactive pipeline stepper, live telemetry logs, webhook emission, and customer WhatsApp/Email action simulator.
Operations Review Console
What is this? Operations review queue for low-confidence AI proposals, policy threshold escalations, and high-value invoice disputes.
What to notice: The plain-language reasoning chain, signal vectors, and 1-click Approve / Reject / Override controls with live state persistence.
Chaos Engineering Lab
What is this? A live chaos laboratory to trigger provider 504 timeouts, corrupted JSON outputs, and multi-merchant bank outages.
What to notice: Fail-closed database transactions, automated reconciliation workers, and prevention of duplicate financial transactions.
Counterfactual Attribution
What is this? A 500-case paired benchmark comparing RecoverOS against Razorpay’s native retry schedule.
What to notice: The honest +17% incremental recovery lift, transparent 82.5% fast-path cost split (avg ₹0.15/call), and refusal to take credit on baseline wins.
Detecting that 412 failures across different merchants share one root cause — a specific bank having an outage — requires seeing volume across merchants, which only an aggregator like Razorpay can see. RecoverOS is designed as the reasoning layer that sits naturally at that vantage point: complementing Razorpay’s existing retry infrastructure, grounded in real RBI regulatory constraints, and built so that every dollar of recovered revenue it claims can be explained, audited, and — when it’s not sure — handed to a human instead of guessed.