Artifact critiqueAdvancedResponsible AI & Advanced Practice / Agent product management specifics / #14
Design the audit trail for an agent operating on business systems.
SPARK the product is the procurement and scheduling agent at Vantry Industrial, a contract electronics manufacturer
The dispute file sits in a single folder on Elin Marsh's desk, thicker than it should ever have needed to be. Vantry Industrial's agent writes to the company's ERP system about 140 times a day: placing purchase orders, rescheduling production runs, adjusting reorder points. Elin leads operations and compliance there.
The direct answer
Log the decision, not just the change: what was written, why, which policy or signal triggered it, and how sure the agent was. For any action carrying a real contractual duty, like a notice period, also store independently verified evidence that the duty was met, not just the agent's own claim that it was. Anyone with a legitimate reason should be able to query a single action and get a real answer in minutes, not a three-week investigation.
Do this, in order
Log the reasoning and the triggering signal, not only the resulting change.Why: "field changed" tells a reviewer nothing about whether the change was justified.
Attach independently verified evidence to any action with a contractual duty attached, like a notice period.Why: the agent's own claim that it notified someone isn't proof that it actually happened.
Scale the detail captured to the action's dollar impact, not one flat log format for everything.Why: a $340,000 cancellation and a routine reorder point tweak don't deserve the same audit weight.
Make the log queryable by anyone with a legitimate reason to ask, not just the engineering team.Why: a trail nobody outside engineering can actually read isn't a trail compliance or legal can use.
Don't log full raw reasoning traces on day one.Why: raw traces cost more to store and secure than they're worth, and they aren't a reliably honest account of the real decision anyway.
How to answer this, stage by stage
Nobody's grading whether you can define "audit trail." They're grading whether you can name the one entry that would have actually settled a real dispute.
Stage 1
Scope it to one real agent
Say it like this
"I'll answer this for a procurement agent that writes directly to a company's ERP system, placing orders and rescheduling production on its own."
Why this works
Grounds "audit trail" in one concrete system with real, disputable stakes.
Stage 2
Say your structure out loud
Say it like this
"I'll use SPARK. Situation, what exists today. Payoff, the habit the trail should build. Anchor, the one logging decision. Risk, what breaks if the trail itself is wrong. Keep out, what I won't log yet."
Why this works
Signals a design decision is coming, not a list of compliance buzzwords.
Stage 3
Reframe the question
Say it like this
"This isn't 'how do we prove we're compliant.' It's 'can one person, months later, reconstruct exactly why this one action happened, without guessing.'"
Why this works
Moves off a vague compliance framing and onto the actual, testable design bar.
Stage 4
Give the anchor
Say it like this
"Every write gets what changed, why, and which policy fired. Anything above a dollar or duty threshold also gets independently verified evidence, not just the agent's own say-so."
Why this works
This is the actual design decision the question is asking for.
Stage 5
Prove it with the failure
Say it like this
"Without that, a $340,000 order got cancelled, a vendor claimed we broke a notice clause, and it took three weeks to conclude we genuinely couldn't tell whether we had or not."
Why this works
Shows the cost of skipping the anchor in one real, expensive sentence.
Stage 6
Say what to keep out, and close
Say it like this
"I wouldn't log full raw reasoning traces on day one, they're expensive to secure and not a trustworthy account anyway. Log the structured reasoning, not the model's internal monologue."
Why this works
Shows judgment about what NOT to build, not just an ever-growing wish list.
Let's learn
Here is what happens when a system changes 140 things a day, and only one of those changes ever gets a lawyer's attention, months later, long after anyone remembers the details.
Vantry Industrial's procurement agent writes to the ERP system directly: placing purchase orders with approved vendors, rescheduling production runs, adjusting reorder points, based on live demand and vendor-performance signals.
Knowledge spark: what's a duty check?
Some contract terms require a specific action before another one, like giving a vendor ten days' notice before cancelling a large order. A duty check is a record proving that requirement was actually met, not just a note saying it should have been.
Before the agent, a scheduling analyst made these calls by hand, and every change carried an informal but real trail: an email to the vendor, a meeting note, a memory of why. Slower, but reconstructable months later if it had to be.
The agent's own system log kept a record too, just a thinner one: field, old value, new value, timestamp, changed by "SchedulingAgent." Nothing about why, nothing about which signal triggered it, nothing proving any contractual duty had been met.
The agent didn't remove the trail. It replaced a messy, real one with a clean, useless one.
At its worst: Vantry's agent cancelled a $340,000 purchase order with Corrigan Components after the vendor's own lead time crept past 45 days, triggering an auto-cancel rule. Corrigan disputed it, citing a contract clause requiring ten days' notice on cancellations above $100,000.
Hours spent reconstructing one disputed action
Three person-weeks of digging still couldn't conclusively settle whether notice had been given. The redesigned entry answers it in fifteen minutes.
The decision I would take back
We told ourselves the agent's platform log was "audit ready" out of the box, since it recorded every field change with a timestamp, and building a separate reasoning log felt like extra work nobody had asked for yet. That was fine while nobody had reason to distrust a decision. It stopped being fine the moment a vendor's lawyer asked a specific question the log had no way to answer.
What I would leave alone: routine reorder-point adjustments with no dollar threshold and no contractual duty attached. A basic what-and-why entry is enough there; they don't need verified evidence behind them.
The lesson: a system that changes things quickly isn't automatically a system anyone can explain later. Speed and explainability are two different features, and only one of them shipped by default.
Now here is the same thing as a story
The short version above is what you'd say briefing Vantry's general counsel. Read this one for how the gap actually surfaced.
The dispute file on Elin Marsh's desk started as three printed emails from Corrigan Components. It grew to forty pages within a month.
Before the agent, the trail was informal, but it existed, scattered across inboxes a person could still search.
For the agent's first year, nobody questioned a single one of its roughly 140 daily changes. The system log looked complete: every field change, timestamped, attributed. Elin's team had no reason to build anything more.
The cancellation itself took the agent a fraction of a second. Untangling it took three weeks.
Then Corrigan's lead time crept past 45 days, a supplier-performance rule fired, and the agent cancelled the $340,000 order. Weeks later, Corrigan's counsel wrote to Vantry, claiming the required ten-day notice never went out.
The old system treated every action the same. The fix was letting the dollar value and the contract terms decide how much detail an entry earns.
Elin's team pulled the system log. It showed the cancellation, the timestamp, and nothing else: no link to the lead-time signal, no record of any notice being sent, no policy reference. Three weeks of digging through email servers and a separate notification system's own logs still couldn't conclusively prove notice had gone out.
The notification system claimed to have sent the notice. Nothing had ever checked whether that claim was actually true.
Vantry settled with Corrigan at a real discount to preserve the relationship, and lost three weeks of shipments while the account sat frozen during the dispute.
The redesigned entry carries all four of these. The old one carried exactly one: what changed.
Replayed with the redesign in place: the same lead-time shift fires the same cancellation rule, but the entry now reads "Cancelled: lead time exceeded 45 days, policy PROC-19, notice sent to Corrigan at 9:14am, delivery receipt confirmed at 9:16am." A dispute over the same order resolves in about fifteen minutes, with a receipt, not a guess.
Once sorted this way, it's obvious which actions were always going to need more than a field-change log.
We trusted the platform's default log because it looked thorough on the surface, every field change, every timestamp. It took a vendor's lawyer, not an internal review, to show that "thorough" and "answerable" were never the same claim.
SPARK, the audit trail as one design decisionNot a compliance checklist. SPARK is what turns "log everything" into one buildable, defensible anchor.
S
Situation. What exists today.
A field-change log with a timestamp and an actor name, and nothing about why any of the 140 daily changes happened.
Grounds the anchor in what was actually missing, not a hypothetical gap.
P
Payoff. The habit worth building.
A reviewer actually checks a specific, disputed decision, instead of assuming the log is fine because nobody's complained yet.
Names the real behavior change the trail should cause, not just "more logging."
A
Anchor. What, why, and verified evidence where it matters.
Every write logs what changed and why. Anything above an impact threshold, or carrying a contractual duty, also logs independently verified proof, not a self-reported claim.
The single decision the whole design hangs on.
R
Risk. What breaks when the trail itself is wrong.
A "notice sent" flag that was never actually verified is worse than no flag, since it creates false confidence exactly where scrutiny mattered most.
Proves the anchor survives its own worst case: an incomplete or false entry.
K
Keep out. Not on day one.
No full raw reasoning traces for every action, and no natural-language "ask the log why" interface. Both cost more than the compliance use case needs, and both introduce their own risk of an unreliable answer.
Shows restraint instead of an ever-expanding logging wish list.
Share of high-impact actions with a complete, verified trail
Full coverage was never the goal on day one. The rollout targeted the highest-impact actions first, on purpose.
The recap, one line per letter: situation is a field-change log with no reasoning behind it, payoff is a reviewer who actually checks instead of assuming, anchor is what-why-and-verified-evidence scaled to impact, risk is a false "verified" flag being worse than none, and keep out is skipping raw reasoning traces and a natural-language query layer for now.
And if you want to be sure it really works, try it somewhere elseSame anchor, a pharmacy instead of a factory floor. No purchase orders in sight, and the same design decision still holds.
Nora Vasquez oversees medication management at a pharmacy chain where an agent reviews prescription renewal requests and can authorize refills directly in the health record system. Mapped onto SPARK: the situation is a system log that shows a refill was authorized, with no record of which renewal criteria were checked. The payoff is a pharmacist actually able to verify a specific refill decision when a patient or a physician's office questions it, instead of assuming the system got it right. The anchor: every refill logs which criteria were checked and the specific prescription rule that applied; any refill that required physician confirmation also stores a verified confirmation receipt, not just a note that one was requested. The risk: a "physician confirmed" flag that was actually just an unanswered fax request would be far more dangerous here than in a procurement system, since it could mean an unauthorized refill of a controlled medication. Keep out: no full clinical reasoning trace logged verbatim, since it would store more sensitive patient detail than the compliance need actually requires.
Swap "dollar impact" for "medication risk" and the same sorting logic decides which refills need verified evidence.
Swap the trigger and it still runs.
Speed: an interviewer caps you at sixty seconds. Say "log what, why, and verified evidence where a real duty exists," and stop.
Cost: there's no budget this quarter for a full evidence-verification pipeline. Start with the single highest-impact action type, the one most likely to end up disputed, and expand from there.
The model gets better, for real: if the agent's decisions get more accurate overall, that's still not a reason to skip verified evidence on duty-bound actions. A more accurate agent can still fail to confirm a notice actually arrived.
Where people run it wrong.
They assume a platform's default change log counts as an audit trail, when it only ever answers "what," never "why."
They log a self-reported "notification sent" flag and treat it as proof, without ever verifying it against real delivery evidence.
They try to log everything, in full detail, from day one, and end up with a system too expensive and too risky to actually ship.
How to use it live. When someone asks you to design an audit trail, don't start by listing what to log. Start by picking one plausible future dispute and asking what single entry would have settled it in minutes.
Flashcards (tap any card to flip it)
1 · THE FRAMEWORK
What framework fits "design the audit trail for an agent," and what's its one job?
Tap to flip
ANSWER
SPARK: situation, payoff, anchor, risk, keep out. Its job is turning "log everything" into one specific, defensible logging decision.
2 · THE PERSON
Who is this answer about?
Tap to flip
ANSWER
Elin Marsh, who leads operations and compliance at Vantry Industrial and kept the growing Corrigan Components dispute file on her desk.
3 · THE HABIT
What did Elin's team stop doing because the platform's log looked complete?
Tap to flip
ANSWER
They never built a separate reasoning log, since a field-change log with timestamps looked "audit ready" and nobody had questioned a decision yet.
4 · THE ANCHOR
What's the actual anchor this answer lands on?
Tap to flip
ANSWER
Log what changed and why on every write. Anything above an impact threshold, or carrying a contractual duty, also logs independently verified evidence, not a self-reported claim.
5 · THE OLD DECISION
What decision would you take back?
Tap to flip
ANSWER
Treating the platform's default field-change log as "audit ready," since it made sense only while nobody had a reason to distrust a specific decision.
6 · THE NUMBER
Fill in the blank: reconstructing the disputed cancellation took about ___ hours before the redesign, and was still inconclusive.
Tap to flip
ANSWER
About 90 hours, three person-weeks. After the redesign, a similar dispute resolves in about 15 minutes.
7 · THE REPLAY
Same $340,000 cancellation, redesigned audit trail. What changes?
Tap to flip
ANSWER
The entry shows the policy that fired and a confirmed delivery receipt for the notice. The dispute resolves in about 15 minutes, with proof instead of a guess.
8 · CROSS PRODUCT TRANSFER
Section 4 answers this again for a different product. Which product, and what's the highest-stakes duty there?
Tap to flip
ANSWER
Nora Vasquez's pharmacy refill agent. There, the highest-stakes duty is verified physician confirmation before authorizing certain refills, not just a request that was sent.
Check yourself Score: 0 / 0
Fill in the blank
1. Fill in the blank: after the redesign, resolving a similar disputed action takes about ___ minutes instead of three weeks.
Show hint
Look at the bar chart comparing hours spent before and after.
Show answer
15 minutes. A structured entry with verified evidence replaces a multi-week manual investigation.
Multiple choice
2. Why did the original system log fail to settle the Corrigan Components dispute, even though it recorded every field change?
A. Because the log was deleted after 30 days.
B. Because it recorded what changed but never why, and never proved whether the required notice was actually sent.
C. Because Corrigan Components refused to cooperate with the investigation.
D. Because the agent didn't have permission to cancel orders that large.
Show hint
Look at "the decision I would take back."
Show answer
B. A complete-looking log can still be missing the one thing that actually matters in a dispute: proof, not just a record.
True or false
3. True or false: this answer recommends logging the agent's full raw reasoning trace for every single action, starting on day one.
True
False
Show hint
Look at the "keep out" step.
Show answer
False. Full raw reasoning traces are deliberately kept out on day one, since they're costly to secure and not reliably an honest account anyway.
Short answer, where it wouldn't matter
4. Name an action this agent takes where a simple what-and-why log entry is enough, with no verified evidence needed.
Show hint
Look at "what I would leave alone."
Show answer
Model answer: A routine reorder-point adjustment with no dollar threshold and no contractual duty attached to it.
Short answer, apply it yourself
5. Pick a product you use yourself. Name one automatic action it takes where you'd want proof, not just a claim, that something actually happened.
Show hint
Think of an auto-pay bill, an auto-forwarded email, or an auto-cancelled subscription.
Show answer
Model answer: Many people name an auto-pay system, wanting proof a payment actually went through, not just a log entry saying it was "submitted."
Short answer, the number
6. If the disputed order had been $40,000 instead of $340,000, would the same verified-evidence requirement still apply? Why or why not?
Show hint
Look at how the impact threshold and the contractual duty were defined in the anchor.
Show answer
Model answer: It depends on the contract terms, not just the dollar figure. If the notice clause still applies below $100,000, the duty check still applies regardless of the smaller amount.
Before you close the answer
Why this works
Tests whether you understand that logging activity and building an audit trail are different goals: one records that something happened, the other proves it was justified and lawful.
Follow-up traps
"Isn't verifying every notification expensive to build?" Response: scale it to impact. Only actions above a defined dollar or duty threshold need independent verification; routine actions don't.
"Why not just log the model's full reasoning, to be safe?" Response: raw reasoning traces are costly to store securely and aren't guaranteed to reflect the actual decision process faithfully; a structured reasoning summary tied to the real policy that fired is more useful and more honest.
If pressed
The rebuilt notification check doesn't just look for a delivery receipt either. It requires the receipt's timestamp to fall before the cancellation itself was finalized, since a receipt that arrives after the fact would still leave the same ten-day notice question unanswered.
From U2xAI Academy
From answering questions to owning outcomes.
A live workshop where you ship a working AI agent, defend a launch decision, and walk away with a portfolio recruiters can't wave off, not just more questions to study.