How to Track AI Decisions So You Can Defend Them Later
What a decision record contains, how to instrument one workflow end to end, and how to reconstruct an action six months after it happened.
Direct Answer (Quick Summary)
Track AI decisions by writing one decision record at the moment the decision is made, containing the trigger, the inputs read, the options the employee stated, the choice it took, the tool call that carried it out, and the human who approved it if there was one.
Key Takeaways
- A decision record is written when the choice is made, not when the run ends, so partial failures still explain themselves.
- A tool-call log records what happened; only a decision record records why, and only the second one survives a customer complaint.
- Record the options the employee stated, including the one it rejected, because the rejected option is usually where the bug lives.
- Version the prompt, the skill files and the model identifier on every decision so an old decision stays reproducible.
- Link the decision record to the exact input rows or documents read, since a conclusion without its evidence is an opinion.
- Retain commit decisions longer than draft decisions; most audits arrive about the write, not the analysis.
- Separate an approval record from the decision record so an approval is never mistaken for the reasoning behind it.
You track AI decisions by writing one record at the moment the decision is made: what triggered it, what it read, what options it considered, what it chose, what it did, and who signed off. If you cannot reconstruct why an action happened from your logs six months later, you are not tracking decisions, you are tracking clicks. Call logs tell you an email was sent. They do not tell you which of forty candidate accounts it was matched against, or why the refund threshold was believed to be met.
What a decision record actually contains
A decision record is one row per choice. It is small, and it is written by the runtime rather than reconstructed afterwards.
| Field | Purpose |
|---|---|
decision_id | Stable identifier, referenced by every tool call and approval |
run_id / employee_id | Which execution and which accountable employee made the choice |
trigger | The event or condition that started this line of work |
inputs_ref | Exact records, rows or documents read to make the choice |
options_considered | The candidate actions the employee stated, including rejected ones |
decision | What it chose, in one sentence, plus the rule or policy cited |
action | The tool call, with arguments and result status |
approval | Approver, timestamp, and any change they made before approving |
context_version | Prompt version, skill versions, model identifier, policy version |
The context_version field is the one teams skip and then wish they had. Six months later the prompt will have changed, the skill file will have been edited, and the model may have been swapped. Without the version pointer, the record documents an outcome nobody can reproduce.
The five fields that carry the signal
If you are instrumenting one workflow, build these in order:
- Trigger. The condition that opened the decision. Most investigations start here, because a trigger that fired twice usually explains a duplicate.
- Inputs referenced. Not a dump of the prompt. The specific records consulted. A conclusion with no evidence trail is an opinion with a timestamp.
- Options stated. What the employee considered and rejected. This is the highest-value field and the least commonly captured, because it exists only in the model's own reasoning output before the tool call.
- Decision plus cited rule. Not just what it did, but which policy or skill line justified it. This is what turns an incident into a configuration fix.
- Approval, if gated. Who, when, and whether they edited it. An approval record that omits the edit hides that the human changed the answer.
Procedure: instrument one workflow end to end
Do not start by logging everything. Start with one workflow and make its decision chain complete.
- Pick the workflow with the highest consequence per action. It is usually a write, not a report.
- List every place a branch is taken. A branch is any point where two different tool calls or two different outputs were possible.
- Emit a decision record at each branch, before the tool call fires.
- Attach the input reference to the branch, not to the run, so partial failures are still explainable.
- Capture the approval as its own record linked to the decision, never merged into it.
- Test the reconstruction path before you trust it: pick a completed run at random and try to answer why this action and not the alternative. If you cannot, a field is missing.
- Only then widen coverage. This is the same incremental approach described in how to monitor AI employee executions.
Step 6 is the one that gets skipped and the one that finds the gap.
Failure mode: the log that explains nothing
The common failure is a well-structured tool log with no reasoning attached. It is easy to build, it looks complete, and it fails in a specific way.
Consider an agent that issues a refund. The log shows: read order, read payment, write refund. Three clean rows. Now the questions a support lead asks: why this order? Was a duplicate check performed? Was the customer contacted? Was there a threshold policy, and what was the amount against it? None of that is in the log. You can see the mechanism and not the judgement.
A second variant is reasoning captured as free-text narration. It is better than nothing and still weak, because narration describes intent rather than the alternatives actually weighed. The field you want is a list of candidates with a disposition on each.
A third variant is logging only successful runs. Failures are where the reasoning is interesting, and a log that drops them is a log that cannot support how to audit AI employee activity.
The governance reason this matters is set out in why AI employees need governance: the control question is not whether the system acted, it is whether you can show your reasoning when someone asks. A trustworthy AI operations posture is built from that reconstruction path, not from retention volume.
Worked example: reconstructing a refund
Suppose a customer disputes a refund eight months later. The record you want to read in under two minutes:
- Trigger: refund policy exception raised by support ticket
T-4471. - Inputs: order row, payment settlement row, prior refund history, the refund policy version in force on that date.
- Options considered: auto-refund under standard policy, goodwill refund, escalate to a human, decline with explanation.
- Decision: escalate, citing the policy version and the condition that made automation ineligible.
- Action: no refund written. Ticket updated, customer notified.
- Approval: none required, because the chosen action was draft tier.
That record answers the customer's actual question, which is why did this take three days, without reconstructing the run by hand. Note that it also proves a negative, which a success-only log cannot: the refund that did not happen is as important to defend as the one that did.
Retention, access, and who reads it
Three operational decisions that need writing down:
- Retention by tier. Commit decisions retained longest, draft decisions shorter, reads only as long as the run needs them for debugging. Retaining everything is expensive and usually means nobody trusts the store to find the right record anyway.
- Access by role. Compliance reads everything. Line managers read their own employees. Engineers read structure and volume. The record may contain customer data, so treat it as a data store, not a log file.
- Exportability. If you cannot get records out in a portable format, an auditor will treat the system as opaque. That is a property of every AI employee needing an audit trail, not a nice-to-have.
How to apply this
Take the last completed run of your highest-consequence workflow and try to answer one question: why this action and not the alternative. Write down every place you had to guess. Each guess is a missing field.
Then add those fields to the decision record, and link the approval record separately so human approval in AI workflows produces evidence rather than a signature. Treat AI observability for AI employees as the operational dashboard and the decision record as the evidentiary one; they answer different questions and conflating them is why dashboards feel reassuring and audits feel impossible.
Sources and further reading
- Google SRE Book: Monitoring Distributed Systems: what to measure and alert on.
- NIST AI Risk Management Framework: a voluntary framework for managing AI risk.
- Anthropic: Building Effective Agents: workflow and agent patterns from production use.
Frequently Asked Questions
What is the minimum I need to log to track AI decisions?
Five fields: the trigger that opened the work, the specific records read, the options considered including rejected ones, the decision with the rule it cited, and the resulting action with its status. Add the prompt, skill and model versions if you may ever need to reproduce an old decision. Without the options field you can show what happened but not why.
How is a decision log different from an audit log?
An audit log records events in order for tamper-evidence and compliance. A decision log records reasoning at the moment a branch was taken, so a human can reconstruct judgement. The audit log proves nothing was altered; the decision log explains why the system did what it did. You generally need both, and treating one as the other is a common and expensive mistake.
Should failed runs be logged too?
Yes, and they are usually the more valuable records. A failed run shows the branch that was taken with insufficient evidence, which is exactly the pattern you need to find before it costs something. Excluding failures leaves you with a dataset of decisions that worked, which tells you very little about where the system is fragile.
Who should be able to read AI decision records?
Compliance and audit should see everything. Line managers should see the employees they own. Engineers should see structure, volume and failure rates without needing customer data. The records contain customer content, so treat the store as a data store with access control rather than as application logs. Make it exportable, because an auditor who cannot extract records will describe the system as opaque.
Our provider already logs API calls. Is that enough?
No. A model provider log shows which model was called with which prompt and tokens. It does not show which tools the employee chose, what it read, what alternatives it rejected, or which policy version was in force. Those fields live in your runtime, and only your runtime can capture them because they exist in the gap between the model response and the tool call.