Sub topic 11
Documentation and audit trail
This chapter assumes you can read the alert triage workflow from the previous chapters. You should know what a score, a threshold, and a disposition are, and you should be able to read short Python functions. Here we look at what a firm must be able to show after the fact: what was screened, what the system found, who decided what, and why.
Why the record matters as much as the decision
A correct decision that cannot be shown to be correct fails an examination. A regulator, auditor, or internal quality reviewer will usually ask three questions:
- Did you screen this party, and against which lists?
- Why did you clear or escalate this alert?
- Could you reach the same result again from the information you had at the time?
The documentation answers all three. It also protects the analyst. A well-written rationale from two years ago shows the decision was reasonable given what was known then.
The record has to be reconstructable. Someone who was not involved should be able to rebuild the situation without asking the original analyst, who may have left the firm.
What to record
Think of the record in four layers. Each layer answers a different question.
| Layer | Question it answers | Examples |
|---|---|---|
| Screening event | What was checked, and when? | Party ID, fields screened, trigger (onboarding, list update, payment), timestamp |
| System configuration | What rules produced the result? | List names and versions, matching algorithm, threshold, normalization rules, software version |
| Alert and review | What was found and who looked at it? | Candidate list entry, score, analyst, reviewer, timestamps |
| Decision and rationale | What was decided and why? | Disposition code, evidence used, free-text reasoning, escalation path |
The screening event
Record every screening run, not only the ones that produce alerts. A run that produced no alert is evidence that you screened. Without it, you cannot show a party was screened at onboarding or after a list update. Store the input actually sent to the matcher, such as the name and identifiers after normalization, because a later change to the normalization code would otherwise make the result impossible to reproduce.
The configuration in force
Alerts depend on the list version and the settings. Tie each result to:
- the list source and its version or publication date,
- the matching method and its parameters,
- the threshold,
- the version of the screening software or rule set.
If you change the threshold in March, an alert from February was produced under the old one. The record must show which one applied. Many firms keep a change log for these settings, with approvals, so that tuning decisions from the earlier threshold chapter are themselves auditable.
The alert and its evidence
For each alert, keep the matched list entry as it looked at screening time. List entries change, and a later version may have different aliases or identifiers. Store a snapshot or a stable reference to the exact version. Also keep the score and the fields that contributed to it.
The disposition and rationale
The disposition code is the category, such as false positive, true match, or escalated. The rationale is the reasoning. Both are needed. A code on its own tells an examiner nothing about whether the analyst thought carefully.
Writing a useful rationale
A rationale should name the evidence compared and the conclusion drawn from it. Weak and strong examples:
| Weak | Strong |
|---|---|
| "Not a match." | "Customer DOB 1980-04-12 differs from listed DOB 1975-01-30. Customer nationality is Spain, listed nationality is Syria. Passport number on file does not appear in the listing. Cleared as a false positive." |
| "Checked, OK." | "Name is common in the customer's region. Listing has no secondary identifiers to compare. Escalated to second-level review because the name alone cannot be resolved." |
| "Same as previous alert." | "Same customer and same list entry as alert 2291, cleared on 2026-03-02 with the DOB mismatch. No change to customer data or the list entry since then. Cleared by reference." |
Copying a rationale from one alert to the next is a common error. It is acceptable only when the facts really are the same, and the record should then point to the earlier decision and say what was checked for changes.
The third constructs one more point: good-faith reuse of earlier decisions is efficient, but it needs a link and a statement that nothing has changed.
The lifecycle of an alert record
An alert record moves through states, and each move is an event with a person and a time.
Two design points follow from this lifecycle:
- A closed alert is not edited. If new information arrives, such as a changed date of birth or a list amendment, the alert is reopened as a new event, and the original decision stays in the history.
- Escalation and confirmation involve more than one person. Record who reviewed, who approved, and when. Where your policy requires a four-eyes check, the system should enforce that the approver differs from the analyst.
Making the trail tamper-evident
An audit trail is trustworthy only if changes are visible. Common approaches are append-only tables, write-once storage, restricted database permissions, and hash chaining. In a hash chain, each record includes a hash of the previous one, so altering an old record breaks every hash after it.
The example below is a minimal illustration. It is not a production design, because anyone with write access to the whole list could recompute the chain.
import hashlib
import json
from datetime import datetime, timezone
GENESIS = "0" * 64
def _digest(body):
payload = json.dumps(body, sort_keys=True).encode("utf-8")
return hashlib.sha256(payload).hexdigest()
def append_event(log, event):
"""Add an event to the log, linking it to the previous record."""
prev_hash = log[-1]["hash"] if log else GENESIS
body = {
"seq": len(log) + 1,
"recorded_at": datetime.now(timezone.utc).isoformat(),
"prev_hash": prev_hash,
**event,
}
record = {**body, "hash": _digest(body)}
log.append(record)
return record
def verify(log):
"""Return True if every record's hash and link are intact."""
prev_hash = GENESIS
for record in log:
body = {k: v for k, v in record.items() if k != "hash"}
if body["prev_hash"] != prev_hash or _digest(body) != record["hash"]:
return False
prev_hash = record["hash"]
return True
log = []
append_event(log, {
"alert_id": "A-1042",
"action": "assigned",
"actor": "analyst_7",
"list_version": "2026-11-26",
"threshold": 0.85,
})
append_event(log, {
"alert_id": "A-1042",
"action": "cleared",
"actor": "analyst_7",
"rationale": "DOB 1980-04-12 vs listed 1975-01-30; passport not on listing.",
})
print(verify(log))
log[1]["rationale"] = "Looks fine."
print(verify(log))The first verify call prints True. After the rationale is edited, the second call prints False, because the stored hash no longer matches the content. Note that each event carries the list version and threshold, which is the configuration layer described above.
Retention and access
Retention periods come from the law and regulations that apply to your firm, and they differ by jurisdiction and by record type. Customer due diligence records, transaction records, and sanctions-related records can each have their own rule, and some regulators have lengthened periods recently. Confirm the current requirement with your compliance function rather than relying on a number you remember. Two practical rules help:
- Keep the screening and alert records at least as long as the longest rule that applies to the customer relationship, counted from the end of the relationship or the transaction as the rule specifies.
- Do not delete records because a decision turned out to be a false positive. Cleared alerts are the evidence of your process.
Data protection law pulls the other way, because screening records hold personal data. Store only what you need, restrict who can read the records, and log reads of sensitive cases. For a confirmed match or an escalation that may become a regulatory report, restrict access further, since disclosing that a report exists can be prohibited in some jurisdictions.
Common errors
- Missing no-alert evidence. The system logs alerts but not screening runs, so the firm cannot prove a party was screened.
- No list version. The record says "screened against the sanctions list" without saying which version, so a missed listing cannot be explained.
- Overwritten decisions. A reopened alert replaces the earlier disposition instead of adding to it.
- Boilerplate rationales. Identical text across hundreds of alerts suggests the analyst did not look at each one.
- Uncontrolled configuration changes. Thresholds change in a settings file with no approval or date.
- Documents stored outside the case. Evidence such as ID scans or web research sits in email or on a shared drive and cannot be tied to the alert.
- Clock inconsistencies. Timestamps in mixed time zones make the sequence of events hard to establish. Store UTC.
Linking the trail to effectiveness testing
The records in this chapter are the raw material for the final chapter on testing and governance. Quality assurance sampling needs the rationale and the evidence. Threshold reviews need the history of alert volumes and outcomes under each configuration. Management information, such as clearance rates, time to disposition, and the share of alerts reopened, comes from the same event log. If the trail is poor, those controls cannot work, however good the matching engine is.
Exercise
An examiner asks you to explain why alert A-880 from eight months ago was cleared. The record shows the disposition "false positive" and the analyst's note "ok". The screening threshold was changed two months ago, and the list has been updated many times since. List the information you would need to show the decision was sound, and say which items you cannot recover if the system only stored the disposition and the note.
Show answer
You need the list entry as it was at screening time (or its version), the threshold and matching configuration in force eight months ago, the party's data as screened, the score, the secondary identifiers compared, and a rationale naming the evidence. With only "false positive" and "ok", you cannot recover the list version, the threshold at the time, the compared identifiers, or the reasoning. The present list and threshold are not a valid substitute, because both have changed since. The fix is to store a configuration and list-version reference on each alert and to require a rationale that names the evidence.
Exercise
An analyst reopens a cleared alert after the customer supplies a new passport. The system overwrites the original disposition with "true match". What is wrong with this design, and what should happen instead?
Show answer
The original decision and its rationale are lost, so the firm cannot show what it knew and decided at the earlier time, or when and why the decision changed. Instead, the system should append a "reopened" event with the new information and the actor, keep the earlier disposition in the history, and record the new disposition as a later event, with second-level approval if the policy requires it.