Traceability

Trace an outcome to the request behind it.

Retain enough context to explain how software, data and human decisions produced a result.

Explore the referenceDownload PDF
On this page

Traceability record

ReferencePurpose
Request identifier
Connect the user action to downstream work
Source references
Identify the records or passages used
Decision record
Explain a rule, approval or rejection
Release version
Locate the implementation that produced the behaviour

Separate useful context from excessive logging

A trace should support diagnosis without unnecessarily copying personal information or secrets. Prefer stable references and scoped access to diagnostic detail.

Follow asynchronous work

Carry the request or business identifier through queues and background jobs. Time alone is rarely enough to connect events reliably.

Follow one operation across systems

Traceability should help a person reconstruct what happened to a business operation without collecting every possible piece of data. Assign useful identifiers to requests, records and background work, and carry them across the systems involved. Record important state changes and the component responsible for each one.

For a document workflow, connect the source document, extraction run, reviewer decision and downstream write. Preserve versions where they affect interpretation. If an approved value changes later, the history should distinguish the correction from the original decision. A log entry that only says “success” is rarely sufficient when the business needs to know which record changed and why.

Balance evidence with information handling

Decide what information is necessary to investigate an operation and who can access it. Full prompts, documents or API payloads may contain confidential or personal information. Recording them indiscriminately can create another sensitive data store with unclear ownership and retention.

Prefer identifiers and carefully chosen metadata where they answer the question. Where detailed evidence is needed, place it under appropriate access controls and retention arrangements. Avoid putting secrets into logs. Record the relationship between summaries and underlying evidence so authorised investigators can find the detail without exposing it to everyone who receives an alert or dashboard.

Use the record to answer practical questions

Test whether an authorised maintainer can explain the outcome of a completed operation, a failed operation and a repeated request. They should be able to identify the relevant version, source and decision without relying on the original developer's memory. Note where the trail ends at an external provider and what evidence that provider can supply.

Review traceability after incidents and meaningful design changes. If a question could not be answered, decide whether another event or identifier is needed. Remove redundant collection that adds cost without helping investigation. Traceability is most useful when it supports correction, accountability and learning while keeping information collection proportionate to those purposes.

Not necessarily. Define the diagnostic purpose, access and retention first, then retain only the information needed for that purpose.