-
-
Old rule against new rule, day by day: alerts raised, and how many the new rule actually acted on.
-
Pick a bank and its circular. The PDF is read for real: clauses, limits and wording, ready for the agents.
-
The bank's own site plays the rollout live. Shadow mode: new rules only log; customers see no change.
-
The product requirements document: problem, users, requirements, metrics, risks and roadmap.
-
Two-person approval: maker and checker each give a name, ID, reason and four review checks.
-
Add your own bank: name, licence, capital, live rules and Board policy, then run any circular on it.
-
Golden Thread: alert → rule version → approvers → obligation → clause → circular, in one view.
-
Signed approval tokens are bound to the exact rule file. Change one character and release is refused.
-
Watch the agents work live: who is working now, what it does for this bank, and how.
-
Every agent's result at a glance: clauses, obligations, rules to change, drafts and 13/13 tests passing.
-
How the release was made (rule-based, no LLM) and who signed it, with their reasons.
-
NIYAM: seven AI agents turn a regulatory circular into a tested, two-person-approved, live bank rule.
-
Shadow, canary, live complete. Now trace why an alert fired, back to the exact sentence.
Inspiration
When the Reserve Bank of India changes a rule, every bank it applies to must find the circular, work out what it means for its own rules, change live systems safely, and prove it later. Today that is weeks to months of hand-offs between compliance, risk, IT and testing. RBI imposed 353 penalties in 2024-25, and 264 fell on co-operative banks with tiny teams. Existing RegTech tells a bank what changed; nothing takes the last step.
What it does
NIYAM turns a circular into a live rule, safely:
- Read: upload the circular as PDF, Word or text; the Reader finds the clauses that bind this bank.
- Extract: each obligation with its number, operator and the exact quoted words.
- Map: compares obligations with the bank's live rules and internal policy (what to change, what is missing, what conflicts).
- Draft and test: writes typed rule files (never raw SQL), generates boundary tests from the regulation, and backtests old versus new on 90 days of data.
- Approve: a maker and a checker sign with name, ID, reason and checklist; tokens are bound to the exact file.
- Release: shadow, then 10% canary, then live, watched by a Sentinel that rolls back automatically on drift.
- Trace: the Golden Thread explains any alert back to the sentence that caused it. Try it with four sample banks (private, public, co-operative, NBFC), each with its own rules, circular PDF and live rule-engine site, or add your own bank. Runs rule-based (no AI cost) or with Claude live.
How we built it
Seven agents (Conductor, Reader, Extractor, Mapper, Author, Validator, Release) talk over the A2A protocol and reach tools only through seven MCP servers with per-agent allowlists. A regulatory knowledge graph and a bank semantic model connect circulars to rules and data. Rules use a typed language compiled to read-only SQL. Built with Next.js, TypeScript and the official MCP SDK, deployed on Vercel, with Claude through the Anthropic API.
Challenges we ran into
Making AI output trustworthy for a bank: "exceeding 25%" and "25% or more" give different breaches, so every quote is checked word for word, and the tests come from the regulation, not the draft. Also making a live rollout visible: the console streams it to each bank's own site.
Accomplishments that we're proud of
End to end and live: circular PDF to signed, rolled-out rule in minutes, with an automatic rollback and a full audit trail. 144 automated tests. It works without AI, and with Claude for about $0.05 per run.
What we learned
AI should do the reading; code should do the arithmetic, testing and deployment; people should make the decisions.
What's next for NIYAM
A read-only pilot with a co-operative bank or NBFC, connectors for real AML, fraud and limit engines, tracking every RBI Master Direction amendment, then SEBI and IRDAI.
Built With
- a2a-protocol
- isomorphic-git
- model-context-protocol
- multi-agent-ai
- next.js
- node.js
- pdf.js
- react
- server-sent-events
- sqlite
- tailwindcss
- typescript
- vercel
- vitest
- webassembly
- zod