Razorpay AI Labs (@RazorpayTech) header
Razorpay AI Labs (@RazorpayTech) profile picture

All things Tech @Razorpay

India
Joined March 2020
Photo by Razorpay AI Labs (@RazorpayTech)Photo by Razorpay AI Labs (@RazorpayTech)Photo by Razorpay AI Labs (@RazorpayTech)Photo by Razorpay AI Labs (@RazorpayTech)Photo by Razorpay AI Labs (@RazorpayTech)Photo by Razorpay AI Labs (@RazorpayTech)Photo by Razorpay AI Labs (@RazorpayTech)Photo by Razorpay AI Labs (@RazorpayTech)Photo by Razorpay AI Labs (@RazorpayTech)Photo by Razorpay AI Labs (@RazorpayTech)
Amazon just released Ergo, a 1.1 trillion parameter open-weight model, and everyone is asking how good is it. But the question we ask as a fintech company: is this model fit to handle sensitive payments information? Here’s what our preliminary checklist looks like: 1. How is the data handled? Prompts can carry sensitive context. An open-weight model like Ergo can run in your own environment, which keeps that context in-house. With a hosted API, we check what the provider retains and who can access it. 2. What does a completed task cost? Price per million tokens looks cheap until an agent loops through twenty steps. So we measure cost per completed task on our own workload. 3. How does it perform on long-running tasks? Ergo is built for long-running agent tasks, which is exactly where short benchmarks tell you the least. We check whether it stays on track at step thirty, not step three. 4. How does it hold up against adversarial input? Agents read emails, invoices and webhooks, and attackers can hide instructions in any of them, known as prompt injection. So before a model gets near a payment flow, we evaluate whether it will follow our instructions or the attacker's. 5. How is the output validated? Whatever the model, we want a human review or an automated check before anything touches money. A strong model makes that validation faster. It does not replace it. 6. How are its actions audited? In payments, "the model decided" is not an answer. We check that our logs can reconstruct a decision, what the model saw and what it chose, not just the output. There's ofcourse a lot more to evaluate but these are a few things we'd look at. New launches like Ergo widen the choice, and models will keep leapfrogging each other. So the question isn’t “should we switch?”. It’s “how fast could we switch safely?”. But the checks around the model are the part that stays.
2
3
14
1,031
We taught AI to read code like a senior security engineer 🔍 And it cut our triage from 750 hours to 2 hours. A big reason: giving the AI less context to read, not more. A small fix and our tokens per analysis fell 95%. Read more about it here:
6
2
14
1,208
We recently cut our metrics ingestion by 62%, from about 450 billion samples a day to about 170 billion, without losing a single useful dashboard or breaking an alert. The sneakiest leak was duplicate data For our application metrics, we run two collection agents (vmagent) side by side, both scraping the same targets, so that if one fails the other keeps monitoring running. It's a common setup. Our storage layer also removes identical samples automatically, so nobody looking at a dashboard ever saw a duplicate. That is exactly why we missed it. The duplicates were hidden from our queries, but both copies still travelled through the entire pipeline, and we spent real compute, network and ingestion capacity on each of them. The storage layer was protecting the accuracy of our data, not the cost of collecting it. We wanted to keep the safety of two agents while letting only one collect at a time. So we added a small leader-election component to each agent. Both stay running, but only the leader collects, and the other waits, ready to take over the moment it's needed. What's most noteworthy is how it behaves when it's unsure. If both agents ever believed they were the leader, the duplicates would come straight back. So we designed it to fail toward doing nothing: if an agent can't confirm that it's the leader, it stops collecting. It has run in production for more than six months without that happening once.
1
12
853
This was just one of three discoveries behind our 62% cut in metrics ingestion. Read the full story to see what else we found, and the incident that started it all: www.nitter.cf/RazorpayTech/status/21…
A routine incident became one of our sharpest wins: 1. Ingestion down 62%, no dashboards lost 2. Two agents stopped double-counting data 3. Scraping every 60s, not 30, halved infra volume The savings came from asking what's worth measuring. Know more:
2
121
You're waiting for an answer from your teammate who's busy in a meeting.. But his agent isn't 👀 We built Hive at Razorpay, an agent-to-agent protocol that lets your agent ask your teammate's agent and get a source-cited answer in seconds, without interrupting anyone. The first worry we had to solve was the obvious one: what can that agent see on the laptop? We answered it by enforcing privacy in the harness, so the rules are applied by code around the model and are not just a request made to it. The agent answering a question runs under strict instructions and locked settings it cannot change, with 4 independent layers between it and anything sensitive: - A global denylist that always blocks credentials, SSH and cloud config, and key files - An allowlist limited to the folders the teammate has shared with the person asking - A hook that checks every read, search, write and shell command before it runs - An output redactor that scrubs keys, tokens and card numbers from answers Each layer holds even if the others are misconfigured, and an append-only audit log records every question and every redaction.
8
6
6
126
17,631
Privacy is only one part of how Hive works. Read up on the complete tech behind Hive at: www.nitter.cf/RazorpayTech/status/21…
Pinging a team-mate for a 2-min answer and then waiting for an hour? We solved it with Hive: our A2A protocol that lets AI agents answer questions from live, permissioned teammate context in seconds. Curious to see how it works? Read more here:
5
720
Anyone at Razorpay can now ship an enhancement in minutes, and hundreds of updates ship every week. So how does every one of them still meet our design bar? Enter the Design Quality Agent, our answer to ship fast while still meeting design benchmarks.
1
8
552
Curious to see how it works? Read more: www.nitter.cf/RazorpayTech/status/21…
Hundreds of product updates ship at Razorpay every week, and each one is held to the same design standard for visual craft, accessibility and consistency. Our Design Quality Agent pairs code checks with AI judgement to make that happen. Read how it works:
147
Pinging a team-mate for a 2-min answer and then waiting for an hour? We solved it with Hive: our A2A protocol that lets AI agents answer questions from live, permissioned teammate context in seconds. Curious to see how it works? Read more here:
1
1
3
9
2,185
Hundreds of product updates ship at Razorpay every week, and each one is held to the same design standard for visual craft, accessibility and consistency. Our Design Quality Agent pairs code checks with AI judgement to make that happen. Read how it works:
1
1
5
846
A routine incident became one of our sharpest wins: 1. Ingestion down 62%, no dashboards lost 2. Two agents stopped double-counting data 3. Scraping every 60s, not 30, halved infra volume The savings came from asking what's worth measuring. Know more:
6
1
1
13
1,149
You use 'Cash on Delivery' at checkout. But before you even choose how to pay, an ML model has already assessed the risk of an order being returned. But making that prediction is only half the story, read the rest of it here:
1
1
7
530
Shipped today: In-line editing on SlashDocs ✏️ Spot a typo? Want to re-write a sentence? Click the edit icon and fix it right then and there. No comments, no waiting for your agent to fix it. Its live now! Try it for yourself
3
293
When does a production incident begin? If you said “when a server goes down,” you’re looking too late. Here's how we’re making deployment safer at Razorpay using progressive canaries, Kafka consumer testing, merchant-criticality-based rollouts and AI.
5
601
Research says a panel of AI judges from different model families can match human judgment better than one large model. For Day0, our AI reviewer used three, then went further: every claim checked against both the demo and the code. Read to know more!
2
4
484
AI agents tend to write documents in Markdown, which worked well until versions, reviews and visuals became hard to manage. HTML addressed those limits but with barters. Here is how the two formats compare and the trade-offs we weighed to build SlashDocs.
2
5
406
We open-sourced SlashDocs on Oct 12. The week before was spent on two things: making it easy to try, and making it safe to hand to people outside the company. Here’s what we changed, what broke, and what we’d tell any team open-sourcing an internal tool.
3
6
590
6/7 - Our CI wasn’t built for a public repo either: required checks referenced internal-only workflows that don’t exist outside our org, the Docker build job ran on self-hosted runners (which should never execute arbitrary code from external PRs), and the test command was silently running only 3 of 18 frontend test files. All of these had to be fixed before our launch.
1
29
7/7 - What we’d tell any team open-sourcing an internal tool: make the first run depend on nothing but Docker, read your own permission model the way an outsider would, sign anything that can update itself, and rehearse your release on throwaway tags before the real one. Try it out yourself: github.com/razorpay/slashdoc…
33