SEBI's regulatory text in. Grounded obligations, regulatory diffs, machine-actionable rules,
and a tamper-evident audit trail out — in minutes, not weeks.
🌐 Live demo: regsutra.vercel.app
⚡ Quickstart · 🎬 3-minute demo · 🧠 How it works · 📸 Screenshots · 📑 Idea deck (PDF) · 📝 Submission
"The regulatory framework exists as unstructured, human-readable text, while operational compliance systems require structured, machine-actionable rules." — SEBI TechSprint problem statement, RegTech track
Every SEBI circular is a to-do list written in prose. Today, 1,000+ stockbrokers and ~1,300 investment advisers bridge that gap manually — legal reading, circular-by-circular tracking, spreadsheet obligation registers. The result: weeks of lag, divergent interpretations across similarly-situated intermediaries, and compliance gaps that surface only as inspection findings.
RegSutra closes the gap end-to-end — a staged agent pipeline turns regulatory text into a typed obligation graph, and a compliance cockpit turns that graph into daily operations. Every AI artefact carries the verbatim clause that grounds it; every action is sealed into a hash chain a regulator can verify.
Compliance Posture — the obligation register as a living system of record: posture score, remediation queue, deadline calendar, audit tail. Every number traces to a clause.
Ingest Circular — six staged agents with live telemetry. Parse ✓ sealed, Classify running — a circular becomes structured compliance logic in ~12 seconds.
Obligation Register — 31 obligations with owners, deadlines, severity, status. Note the ⚠ amended rows: the ingested circular changed net-worth certification frequency, and the register shows the exact before → after.
Audit Chain — AI agents, human reviewers and system sweeps in one SHA-256 hash chain. Simulate tampering breaks the chain at the exact forged entry.
git clone https://github.com/SaudSatopay/regsutra.git
cd regsutra
npm install
npm run dev # → http://localhost:3000That's the whole setup. No API keys, no cloud, no database — without credentials RegSutra runs in replay mode: the full pipeline executes deterministically against a bundled sample circular, entirely offline. Judges reproduce the exact demo on any machine.
🔓 Live mode — run the agents on any circular text
# .env.local
ANTHROPIC_API_KEY=sk-ant-... # enables live extraction on arbitrary text
REGSUTRA_MODEL=claude-opus-4-8 # optional override (this is the default)Same pipeline, same event contract, same UI — but the staged agents now run real structured-output extraction on whatever you paste. LIVE ⇄ REPLAY is a first-class design decision: the register, audit chain and export API are provably independent of the model backend.
Reference deployment: regsutra.vercel.app — every flow (13-second streamed ingest included) verified in production. One click above (or vercel.com/new → import this repo) reproduces it — no environment variables needed; the public deployment runs in replay mode, which is exactly the judge demo. Leave ANTHROPIC_API_KEY unset on public hosts: live mode on an open URL would let anyone spend your API credits.
Serverless note: state is in-memory by design (see
store.ts). On serverless hosts, register mutations from an ingest run may reset between function instances — the Reset demo button covers it, and the full demo flow usually stays on one warm instance. For a long-lived server with perfectly persistent demo state, runnpm run build && npm starton Railway/Render/Fly or any box with Node — zero config either way.
| # | Where | What you'll see |
|---|---|---|
| 1 | / Posture |
28-obligation register auto-built from the Master Circular corpus — score, exceptions, calendar |
| 2 | /ingest Run pipeline (or open /ingest?autorun=1) |
Six agents stream telemetry: obligations extracted with verbatim grounding spans + confidence, amendments diffed against the live register (before → after), rules compiled, audit entry sealed |
| 3 | /register |
28 → 31 obligations; ⚠ amended badges; expand any row for the grounding clause, the JSON-Logic rule, and evidence actions |
| 4 | /audit |
Verify chain → green seal. Simulate tampering → chain breaks at the exact altered entry |
| 5 | /ask |
"What must I do within 6 hours of a cyber incident?" → cited, register-aware answer |
Recording storyboard with timings and voiceover: docs/DEMO_SCRIPT.md
flowchart LR
subgraph Sources
A[SEBI circulars / master circulars<br/>PDF·HTML — sebi.gov.in watcher]
end
subgraph Agent Pipeline
P1[Parse & Segment<br/>clause anchors] --> P2[Classify & Scope<br/>structured output]
P2 --> P3[Extract Obligations<br/>Zod-validated,<br/>grounding-span required]
P3 --> P4[Impact Mapping<br/>diff vs live register]
P4 --> P5[Rules-as-Code<br/>deterministic JSON-Logic]
P5 --> P6[Commit<br/>hash-chained audit seal]
end
subgraph Compliance Cockpit
R[(Obligation Register<br/>+ provenance)] --> D[Posture · Calendar ·<br/>Remediation queue]
R --> X[Rule-pack export API<br/>→ intermediary systems]
Q[Ask Regbase<br/>BM25 ∥ hybrid retrieval]
L[(Tamper-evident<br/>audit chain)]
end
A --> P1
P6 --> R
P6 --> L
R -.grounds.-> Q
Each stage has a narrow Zod schema that gates hallucination, failures are attributable to a stage, artefacts stream to the UI as live telemetry (SSE), and stages re-run independently. That's the difference between an LLM wrapper and an auditable pipeline.
| Guarantee | Mechanism |
|---|---|
| 🔍 Grounding by construction | The extraction schema requires a verbatim supportingSpan quoted from the source clause — no span, no obligation. Model id + confidence ride with every artefact. |
| 🔗 History you can't rewrite | hash_n = SHA-256(seq | ts | actor | action | payloadHash | hash_{n-1}) — append-only, one-pass verification, tamper simulation built into the UI. Production anchors the head hash to an RFC-3161 TSA. |
| ⚙️ Reproducible rules | JSON-Logic rules are compiled deterministically from validated fields — same extraction, same rule, defensible in dispute. |
| 👤 Human checkpoint | Agents draft, compliance officers approve — and the chain records both, in the same evidentiary record. |
src/lib/
types.ts ← the obligation graph: Obligation · Provenance · ComplianceRule · AuditEntry
pipeline.ts ← orchestrator: one event contract, LIVE + REPLAY backends
live-agents.ts ← structured-output agents (classify / extract / impact-resolve)
sample-ingest.ts ← precomputed replay artefacts for the bundled sample circular
corpus.ts ← curated regulatory corpus (paraphrased MC-SB-2024 excerpts)
register.ts ← seed register: 28 obligations, full clause provenance
audit.ts ← SHA-256 hash chain + verification
bm25.ts ← zero-dependency BM25 index grounding Ask Regbase
store.ts ← in-memory state (production: Postgres + pgvector, same interface)
src/app/
api/ ← ingest (SSE) · ask · obligations · audit · export · reset · mode
/ /ingest /register /audit /ask
docs/
SUBMISSION.md ← every hackathon form field, copy-paste ready
ARCHITECTURE.md ← deep-dive + production hardening path
DEMO_SCRIPT.md ← timed 3-minute video storyboard
deck/
RegSutra-Idea-Deck.pdf ← 12-slide idea deck (HTML→PDF, product-true design)
deck.html ← the deck source — same design system as the app
RegSutra-Idea-Deck.pptx ← PowerPoint alternate (+ generator script)
- 1,000+ stockbrokers · ~1,300 investment advisers · hundreds of RTAs/DPs/AMCs — every one runs a compliance function whose core input is regulatory text.
- Three revenue streams: intermediary SaaS subscriptions (the cockpit), rule-pack API licensing (GRC/exchange-tech vendors consume machine-readable rules), audit & assurance add-ons (inspection-ready evidence bundles).
- The flywheel: extraction happens once per circular for the whole market, then fans out as data. The moat is the compounding obligation graph + amendment history, not the LLM.
- For SEBI: corpus-wide telemetry on amendment churn and gap hotspots — and a reference implementation for machine-readable regulation.
Full business model: docs/SUBMISSION.md
- The bundled corpus is paraphrased excerpts modelled on SEBI's public Master Circular for Stock Brokers (2024) and related frameworks — realistic clause structure, not verbatim text. Production ingests official PDFs from sebi.gov.in.
- The demo circular (
CIR-2026-47-DEMO) is clearly-labelled illustrative material authored for the TechSprint. - "Meridian Securities Pvt. Ltd." is fictional. AI extractions are decision support for compliance professionals — the human-review checkpoint is a design feature, not a limitation.
- Prototype for the SEBI Securities Market TechSprint 2026. Not a SEBI product; not legal advice.
RegSutra · regulatory text in — operational compliance out, auditable end to end
MIT © 2026 Saud Satopay — built solo for the SEBI Securities Market TechSprint @ GFF 2026



