Auditable Data Models and Change History
A practical guide to governed enterprise data.
Determine what must be explained: who changed a definition, what value was known at a point in time, which source contributed to a report, or how an approval was reached. Each question needs different evidence and retention.
Clarify audit questions
Determine what must be explained: who changed a definition, what value was known at a point in time, which source contributed to a report, or how an approval was reached. Each question needs different evidence and retention.
Capture history with context
Record actor or process identity, timestamp, affected object, prior and new value where appropriate, reason, source and correlation or run identifier. Use valid-time history or append-only events when business requirements call for those views; do not treat a generic updated_at field as a complete audit trail.
Protect evidence
Limit who can modify or delete audit records, separate audit administration where practical, and monitor access to logs. Define retention and integrity checks. NIST SP 800-53 includes audit and accountability controls as part of a broader control catalog: NIST SP 800-53.
Reconstruct a result
Link published outputs to model versions, transformation code, inputs, execution metadata and business definitions. Test whether a representative result can be reproduced or explained. Document where external systems or manual steps limit reconstruction.
Apply and review
Confirm assumptions with accountable business, privacy, legal, security and technical owners as appropriate. Record decisions, exceptions, evidence and review triggers, and test controls against realistic cases.
Identify decisions that need an audit trail
Not every attribute needs a full change log. Identify which changes affect financial outcomes, access, regulated reporting, customer decisions or operational accountability. For each, state who changed what, when it was valid, when the system recorded it, why it changed and which process or rule was involved, according to approved requirements.
Choose a history representation
Effective-dated versions can show when a value applied. Append-only events can preserve a sequence of changes. Transaction-time history can show what the system knew at a prior moment. These patterns answer different questions and may be combined. Specify whether corrections amend a prior record, append a reversal or create a new version.
Protect audit evidence
History is only useful if it cannot be silently altered by the same process it is meant to observe. Define access, integrity checks, retention and review ownership with authorized governance roles. Keep sensitive values out of broad logs where possible, and record references or hashes when that meets the approved need.
Test reconstruction
Pick a past date and reconstruct both what was valid and what the system had recorded by that date if those views are required. Test backdated corrections, merges, deletions and rule changes. Confirm that consumers can identify the version used in a prior report or decision.
- Are audit-worthy facts identified by impact?
- Are valid time and recorded time distinct where needed?
- Can corrections be traced to an actor and reason?
- Are integrity, access and retention controls explicit?
- Can historical outputs be reproduced?
Worked example: reconstruct a reported value
To explain a reported value, identify the input records, transformation version, reference data, business rule, execution run, and publication time. Preserve stable identifiers and relevant snapshots or event history. Record who approved a change and when it took effect if that decision influenced the result. Avoid logging sensitive payloads unnecessarily; audit evidence should be proportionate to the question.
Define the audit question first: what was true in the business, what did the system know, who changed a record, or how was a number calculated? Each question may require a different history design. Verify that retention and access to evidence are approved and that corrections do not erase the earlier state needed for reconstruction.
Test audit reconstruction
Run a sample inquiry from a published output backward and document gaps. Test restoration of historical reference data and code. Confirm timestamps, timezone, and version identifiers are unambiguous. Keep audit procedures and model controls synchronized as pipelines change.
Protect audit history integrity
Limit who can alter or delete historical evidence and log privileged operations. Use versioned records or append-only events where they meet the requirement, and test retention and tamper detection with authorized security owners. Preserve links between a correction and the prior state.
Balance reconstruction needs with minimization and retention policy. Provide query examples for auditors and operators. Verify that restore procedures preserve history and do not reintroduce superseded values as current.
Retrieve and review audit evidence
Define how an authorized reviewer can locate a historical record, calculation, approval, and source version. Test search and restoration procedures and document response time. Protect evidence from alteration and limit access.
Review audit gaps after changes to logs, storage, or pipelines. Ensure retention aligns with approved policy and that evidence can be interpreted.