A live, working demo of proof-of-compliance for AI decisions in regulated India
A bank approves a loan using an AI system. A customer later disputes the decision. The regulator asks a simple question: how do you know your own team didn't quietly edit the record after the fact? A database row isn't an answer. Whoever controls the database can edit it. Praman replaces "trust us" with a chain of events that makes editing detectable within milliseconds β and this page proves it against the real backend, not a mockup. This isn't really a banking problem β it's what happens anywhere a decision affects someone and could later be challenged: an AI that screens job applicants, flags an insurance claim, or triages a patient faces the same question. Banking just has the regulation first.
This posts real events to the live API under a private, per-session tenant (β¦) β
nobody else's data, and nobody else sees yours.
Build a scenario above, then generate the ledger.
Every AI decision is checked against its assigned autonomy tier before it's allowed to act. That's the same tier shown in the scenario above.
| Feature | Regulation | What it satisfies |
|---|---|---|
| Hashed principal ID, not personal data, on the ledger | DPDP Act 2023 Β§12 DPDP Rules 2025 (notified 14 Nov 2025) |
Right to erasure β deleting the customer's record doesn't destroy the audit trail, because the trail never held their personal data |
| Autonomy tiers + delegation ceilings + drift circuit breaker | RBI FREE-AI Framework (Aug 2025 β 7 Sutras, 6 Pillars, 26 Recommendations) |
Board-approved AI policy with structured lifecycle governance and a documented halt mechanism |
| Merkle root + Ed25519 signature + hash value in the certificate | Bharatiya Sakshya Adhiniyam 2023 Β§63 | "Certificate by Party" format β identifies the record, describes production, states the hash value and algorithm |
| Append-only ledger (Postgres trigger blocks UPDATE/DELETE) | BSA Β§63(4)(c) | Confirms "the device operated properly throughout" β a precondition for the certificate to be valid |
This is an MVP build. Rather than blur the line between working and aspirational, every stub is disclosed in the code and here. Click through:
domain/hashing.py. The client holds the key, so the vendor cannot forge an event even with full database access.domain/merkle.py. Leaves are prefixed 0x00, internal nodes 0x01, domain-separated to close the second-preimage weakness in the original Bitcoin construction (CVE-2012-2459).KeyCustody port (ports/key_custody.py). ECDSA P-256 and an HSM/KMS path are documented alternatives; swapping is one branch in factories.py. See ADR 0014 β this used to generate a fresh, unpublished key per request, which meant no signature could ever be checked.gen_ai.* attributes stay isolated in the adapter layer, so observability doesn't quietly become a data-egress path.adapters/drift/deterministic_stub.py. Production needs population stability index over a rolling reference window, plus semantic entropy for free-text outputs, which requires multiple sampled generations per call. That's a real latency and cost decision, not a weekend feature. Do not run Module 2 drift in production on this build; the stub will never trip.adapters/anchor/rfc3161_freetsa.py is designed but not implemented. It needs TSA selection, TLS, certificate validation, and outage handling. Until then, "when the root existed" rests on the bank's own clock.factories.py. Nothing else in the system changes, because that's what the port is for.docs/ADR/0004-policy-engine.md. The PolicyEngine port already exists, so this is a new adapter, not a rewrite.KeyCustody port already abstracts this (adapters/key_custody/hsm_kms.py documents the path); the remaining work is integration and key-ceremony documentation, not redesign.scripts/verify_bundle.py are the building blocks this portal would be built from.