Agentic AI Audit Trail: Log the Handoff, Not the Answer

Agentic AI audit trail newspaper-style header with the thesis "You cannot trace a handoff nobody logged. You can log every one." and three Thinkers360 Certified Expert badges, by Dr. Harish Kotadia, Ph.D.

What is an agentic AI audit trail?

An agentic AI audit trail is the harness’s record of every handoff, every tool call and every gate decision. The harness writes it, not the agent. It answers one question after the fact: who did what, on whose brief, and what did they see. So when the orchestrator hands a task to a subagent and nobody logs it, the trail breaks right there.

New here? I publish one agentic AI governance post every weekday. Subscribe to the blog and it lands in your inbox the moment it goes live.

You cannot trace a handoff nobody logged. You can log every one.

Why does the orchestrator pattern break the audit trail?

Because the handoff is where the record usually stops. Anthropic’s orchestrator-workers pattern has one lead agent split a task and hand the pieces to workers. Each worker gets its own context window and its own instructions. So the instruction the worker saw is not the instruction the user gave. It is a paraphrase the orchestrator wrote.

That paraphrase is the evidence. Anthropic’s own multi-agent research system found that each subagent “needs an objective, an output format, guidance on the tools and sources to use, and clear task boundaries.” So the brief is the cause of everything the worker does. If the harness does not keep it, the trail has no cause in it. The same post says agents “are non-deterministic between runs, even with identical prompts.” So you cannot re-run the job and see the same handoff twice. You had one chance to record it, while it was live.

I have sat in reviews where the final answer was fine and the trail was not. The orchestrator had logged its own output. But the three workers under it had logged nothing. So nobody could say which worker pulled the wrong file, or what its brief said. An agentic AI audit trail that only covers the top agent is a summary, not a trail.

What does a handoff record have to carry?

Five things, and the harness writes all five.

  • First, the identity of the caller and the callee, as stable IDs, not display names.
  • Second, the exact brief passed down, word for word.
  • Third, the tools and credentials the callee could use.
  • Fourth, the result it returned, word for word.
  • Fifth, a correlation ID that ties the whole tree back to the user’s request.

The word-for-word part matters most. An agent’s own summary of what it did is a claim. But the harness’s copy of what it sent and received is a fact. So I never let an agent write its own audit entry. Instead, the runtime logs both sides of every exchange before the agent sees the reply.

Anthropic’s team wrote that “adding full production tracing let us diagnose why agents failed and fix issues systematically.” They also kept content out of it, for privacy. The tracing captures decision patterns “without monitoring the contents of individual conversations.” That split works in a regulated shop too. The agentic AI audit trail records the shape of every handoff. Then the content of each brief goes to a store with tighter access. Both exist, and neither is optional.

How do the vendors log a handoff?

Claude Code fires a hook at both ends of a subagent’s life. The hooks reference lists SubagentStart, which fires “when a subagent is spawned.” Then SubagentStop fires “when a subagent finishes.” Both carry an agent_id and an agent_type, so the harness can match a start to its stop. SubagentStop also carries the subagent’s final message. Every tool call inside the subagent fires PreToolUse and PostToolUse with the same agent_id attached.

The piece that ties it together is prompt_id. The docs say it “correlates with OpenTelemetry events.” So one user request gets one prompt_id. Every subagent, tool call and gate decision under it shares that key. That is the correlation ID from the list above, and the harness supplies it for free.

Here is how the five fields map onto what the harness already emits.

Handoff record field Where the harness supplies it Advisory or enforcing
Caller and callee identity session_id, agent_id, agent_type on every hook Enforcing (set by runtime)
The brief, verbatim tool_input on the PreToolUse hook for the Task tool Enforcing (captured before execution)
Tools and credentials allowed permission_mode plus the subagent’s tool allowlist Enforcing (managed setting)
The result, verbatim tool_response on PostToolUse; last_assistant_message on SubagentStop Enforcing (captured after execution)
Correlation ID prompt_id, shared with OpenTelemetry Enforcing (assigned by harness)

Every row is enforcing because the runtime writes it, not the model. That is the test I apply to any control: can the agent talk its way past it? A log the agent writes, it can. But a log the harness writes, it cannot.


More on the Agentic AI Evidence Layer



What do I log first?

The handoff brief, before anything else. Most teams start with tool calls, because that is what the vendor dashboards show. But a tool call without its brief tells you what happened, not why. So my first hook is on the Task tool. It writes the orchestrator’s brief to the subagent, word for word, with the prompt_id, before the subagent runs.

Second, the SubagentStop message. Third, every PreToolUse and PostToolUse pair under that agent_id. Fourth, every gate decision, allow or deny, with the reason. Fifth, the OpenTelemetry export, so the trail leaves the developer’s laptop and lands where the auditor can reach it. Then I run a drill. I pick one finished job at random and replay the tree from the trail alone. If I need the agent’s memory to explain a step, the trail has a hole.

Where does this sit in the six layers?

The agentic AI audit trail lives in the evidence layer of my six-layer architecture, next to evals and traces. But it depends on two layers below it. The runtime layer, where the orchestrator and the hooks live, has to emit the events. Then the enforcement layer, where identity and managed settings live, has to make the IDs trustworthy. An audit trail built on names an agent picks for itself is a story, not a record.

On the Five-Stage Roadmap this is a Governed-stage control. Piloted teams have a transcript. Governed teams have a trail they can replay. Assured teams have a trail an outside reviewer has already replayed.

What transfers to regulated loan origination?

All of it, and the stakes go up. In my work in regulated loan origination, I have to explain a decision on a file to an auditor months later. Which agent pulled the credit data? Which one applied the policy? What was each one told? That is the record. But an orchestrator that logs only its own summary cannot answer any of those questions. So the handoff record is not an engineering nicety there. It is the case file.

The pattern I use is plain. One prompt_id per loan file. Every subagent, tool call and gate decision under it carries that key. The harness writes each entry before the agent sees the result. Then the trail goes to an append-only store the agents cannot reach.

Roadmap diagnostic: pick one finished multi-agent job and replay it from the log alone. Can you name every agent in the tree, what each was told, and what each returned, without asking the agent?

The bottom line

Instructions in, results out was IT. Intent in, outcomes out is agentic AI. But an outcome you cannot trace is an outcome you cannot defend. An agentic AI audit trail is not a transcript of the top agent. It is the harness’s own record of every handoff, tool call and gate, keyed to one request. So log the handoff first, because that is where the trail breaks.

My books go deeper on both sides of this. Intent In, Outcomes Out covers the architecture. Earned Autonomy covers how the evidence buys the next tier.

Book covers of Intent In, Outcomes Out and Earned Autonomy by Dr. Harish Kotadia, Ph.D., two field guides to agentic AI architecture and governance.

What does your orchestrator log when it hands a task down, and could you replay it a month from now?

Go deeper

© Dr. Harish Kotadia, Ph.D., All Rights Reserved, 2026

Dr. Harish Kotadia, Ph.D., is an Enterprise AI Architect with 20+ years of IT consulting experience serving Fortune 100 clients, specializing in agentic AI systems built on Anthropic Claude, AWS Bedrock, and Google Vertex AI.

Disclaimer: This blog post is based on publicly available academic publications, vendor documentation, open standards, and news items from reputed media sources linked above. This post is intended for educational purposes, to help the enterprise agentic AI community build a shared vocabulary from public, authoritative sources.

Views and opinions expressed here are my own and do not represent those of any employer or client, past or present. The analysis presented is my independent interpretation of the published sources linked above and does not constitute legal, financial, or consulting advice of any kind.

 


Discover more from Agentic AI Governance | Dr. Harish Kotadia, Ph.D.

Subscribe to get the latest posts sent to your email.

Discover more from Agentic AI Governance | Dr. Harish Kotadia, Ph.D.

Subscribe now to keep reading and get access to the full archive.

Continue reading

Discover more from Agentic AI Governance | Dr. Harish Kotadia, Ph.D.

Subscribe now to keep reading and get access to the full archive.

Continue reading