AI Governance Institute
← Audit & Logging
ALC · Audit & LoggingALC-001Medium effortAgent-relevant

AI Decision Logging

Added May 2026

Log inputs, outputs, model versions, confidence scores, and context for every AI decision affecting people or business outcomes.

Objective

Create an auditable record of AI-driven decisions to support regulatory compliance, incident investigation, and accountability.

Maturity Levels

1

Initial

AI decisions are not logged; only application-level errors are captured.

2

Developing

Some AI outputs are logged but coverage is incomplete and log format is inconsistent.

3

Defined

A defined logging schema captures inputs, outputs, model version, and timestamp for all in-scope AI decisions.

4

Managed

Logs are centralized, searchable, and reviewed regularly; completeness is verified through sampling.

5

Optimizing

Decision logs feed automated monitoring, drift detection (flagging model drift, when accuracy slips over time), and model performance dashboards.

Evidence Requirements

What an auditor or assessor would expect to see for this control.

  • —Log schema documentation (the agreed log format) defining required fields, storage type, access controls, and retention period
  • —Sample log entries confirming all required fields are populated for a representative set of decisions
  • —Storage integrity configuration confirming append-only (new entries can be added but existing ones cannot be changed) or immutable log storage with appropriate access controls
  • —Log completeness sampling report showing what percentage of in-scope decisions are being captured
  • —Retention compliance evidence confirming logs are maintained for the required period

Implementation Notes

Key steps

  • Define your minimum log record: input (or a hash, a fingerprint that confirms the input without revealing it, if personally identifiable information (PII) must be excluded), output, model version/ID, timestamp, user/session identifier, and confidence score where available.
  • Log at the AI decision point, not at the application layer (the wider software the AI sits inside); application logs often omit the information needed for AI accountability.
  • For high-risk systems, log the full input context: documents fetched to inform answers in RAG (retrieval-augmented generation) systems, or tool results from agent systems that take actions.
  • Ensure logs are immutable (cannot be changed once written) and access-controlled; the ability to delete or modify decision logs is a material compliance risk.

Example Implementation

Insurance company using AI to assist underwriters with risk scoring

AI Decision Log Schema: Underwriting Risk Scorer

Minimum log record (one entry per scoring request):

FieldExample ValueNotes
log_idulid-01HXYZ...Unique, append-only identifier
session_idsess-abc123Links to underwriter session
model_idrisk-scorer-v2.4.1Full version including prompt hash
input_hashsha256:3a9f...SHA-256 of full input; raw input stored separately in PHI store
risk_score0.73Model output
confidence0.88Model confidence
top_features["prior_claims", "industry_code"]Top 3 contributing features
timestamp2026-05-09T14:22:01ZUTC
underwriter_iduw-00412Reviewer identity

Storage: Append-only; no delete or update; access restricted to Compliance, AI Governance, and Legal

Retention: 7 years from decision date (state insurance regulation requirement)

Control Details

Control ID
ALC-001
Typical owner
AI Engineering / Compliance
Implementation effort
Medium effort
Agent-relevant
Yes

Tags

loggingaudit trailaccountabilitydecision records

Templates for this control

Get control updates weekly

New and updated controls, maturity guidance, and the regulatory changes behind them. Every Thursday.

Powered by Buttondown.