Audit Trail

Every agent decision is timestamped, attributed, and sealed with SHA-256 integrity

How the Audit System Works
01
Every Agent Decision Logged
Each of the 5 agents writes a structured entry to the audit log at every decision point — including policy citations, confidence scores, and reasoning.
02
Immutable + Timestamped
Entries are written once and never modified. Each entry carries an ISO timestamp and agent identifier, forming a complete decision provenance chain.
03
SHA-256 Sealed
At pipeline completion, the full log is hashed with SHA-256, producing an integrity seal. Any tampering invalidates the hash.
04
Regulatory-Ready
The format mirrors HIPAA audit trail requirements and Indian health regulator (NHA) documentation standards for AI-assisted clinical workflows.
Sample Audit Entry Schema
{
  "entry_id":   "AE-2026-0341-003",
  "timestamp":  "2026-03-27T10:14:32.841Z",
  "agent":      "ComplianceGuardianAgent",
  "action":     "POLICY_CHECK",
  "input": {
    "codes":    ["E11.65", "N18.3", "95249"],
    "policy_db": "IRDAI-2026-Q1"
  },
  "output": {
    "rules_evaluated": 5,
    "passed": 4,
    "warnings": 1,
    "hard_blocks": 0,
    "decision": "PROCEED_WITH_CAUTION"
  },
  "citations": [
    "IRDAI Sec 3.2.1",
    "NHA NH-2024-DM",
    "CG-RENAL-02"
  ],
  "integrity": {
    "prev_hash": "a3f8c2...",
    "this_hash": "d91e47..."
  }
}
Compliance with PS-5 Requirements
Full task completion
Pipeline runs end-to-end: note → codes → compliance → auth → decision
Compliance guardrail enforcement
Every code checked against IRDAI, NHA, TPA rules. Hard blocks prevent non-compliant claims.
Edge case handling
CKD dosing warning, alternative code paths, denial-risk prediction all handled.
Domain expertise depth
ICD-10, CPT, IRDAI, NHA knowledge baked into agent prompts and rule engine.
Auditability of every agent decision
SHA-256 sealed, immutable log with full reasoning chain per agent.