AI Observability for AI Employees: What to Log and Watch
Prompts are the least useful signal. Reconstructing a run means identity, decision, action, cost and outcome, captured as one chain you can read without engineering help.
Direct Answer (Quick Summary)
AI observability for AI employees means being able to reconstruct any run after the fact: which employee acted, which prompt and context it held, which tools it called with which arguments, which approvals intervened, what it cost and what it produced. Logging prompts alone is not observability, because most failures occur between the prompt and the result. The minimum useful trace chains identity, decision, action, cost and outcome in one readable record.
Key Takeaways
- Prompt logs alone are not observability, because most run failures happen in the tool calls between prompt and result.
- A useful trace chains five signals: identity, decision, action, cost and outcome.
- Tool arguments and tool results must both be captured, since a correct plan with a failed call is the common failure.
- Approval events belong in the trace, because they change what an employee was permitted to do mid-run.
- Alerting should target stalled runs, repeated tool errors and spend velocity, not just non-zero exit codes.
- Sampling hides exactly the failures you need, so error paths should always be logged in full.
- If a compliance colleague cannot read the trace without an engineer, observability is not finished.
AI observability for AI employees means being able to reconstruct any run after the fact: which employee acted, which prompt and context it held, which tools it called with which arguments, which approvals intervened, what it cost and what it produced. Logging prompts alone is not observability, because most failures occur between the prompt and the result.
Three questions observability has to answer
Distributed tracing exists because systems fail in ways nobody predicted. An AI employee has the same property, with one addition: the plan itself can be wrong. So a complete trace answers three questions.
- What did it intend? The goal, the context retrieved, and the instructions it was given.
- What did it actually do? Every tool call, its arguments, and what came back.
- What happened as a result? The output, the downstream state change, and the cost.
If your logging only answers the first, you have a transcript. Transcripts are useful for training and useless for an incident at 4pm on a Friday.
The five signals
| Signal | Captured per | Why you need it |
|---|---|---|
| Identity | Run | Attributes every downstream event to a named employee and owner |
| Decision | Run and step | Separates a wrong plan from a failed execution |
| Action | Tool call | Shows arguments, result, and latency, with the error if any |
| Approval | Gate | Explains why an action was taken, blocked, or edited by a human |
| Cost and outcome | Run | Lets you compute cost per completed outcome rather than per token |
Identity is listed first deliberately. Without it, the other four are anonymous telemetry, which is the gap described in why every AI employee needs an audit trail.
What a trace should look like
A single readable record per run, chronological, with enough fields to answer the three questions without correlating across services.
run: chk_9f21 employee: collections-inbox owner: ops-lead
goal: draft overdue reminders for queue AP-AR-2026-10
context: 42 records retrieved, policy v4, customer tier B
step 1 tool=ledger.search args={queue:AP-AR-2026-10, state:overdue} ok 412ms rows=42
step 2 tool=crm.read args={id:C-10422} ok 203ms
step 3 tool=email.draft_create args={to:..., subject:...} ok 380ms
step 4 gate=send required approver=ops-lead outcome=approved 09:41Z
step 5 tool=email.send args={draft:d_5512} ok 511ms
result: 41 reminders sent, 1 routed to exceptions, cost 0.84 USD, 6m12s
Note what is present: the arguments, the approval decision with a named person and a timestamp, and the cost attached to the outcome rather than to a separate billing report. How to monitor AI employee executions covers the operational view over records like these.
What to alert on
Alerting on exit codes misses the failures that matter, because an AI employee that fails to achieve its outcome usually exits cleanly.
| Signal | Condition worth alerting on | Why it matters |
|---|---|---|
| Stalled run | No step completed for longer than the workflow SLA | Usually a silent retry loop or a dead dependency |
| Repeated tool error | Same tool, same error, several attempts | Schema drift or an expired credential |
| Approval backlog | Gates waiting past their timeout | Work is piling up behind a person |
| Spend velocity | Employee trending to its ceiling early | Retry loops burn budget before anyone looks |
| Outcome rate | Completed outcomes falling week on week | The employee exists but is no longer earning |
None of these thresholds requires a statistic to justify. They are relative to your own service levels and your own budget, which is the right place for a number to come from.
Reconstructing a decision
The hardest question is not what the employee did but why. That is answered by keeping the retrieved context and the stated plan alongside the actions, so a reviewer can ask whether the plan followed from the evidence available at the time. Without that snapshot you cannot distinguish a bad model from bad data, and the two produce opposite fixes. The process is in how to track AI decisions.
The failure mode that hides in plain sight
This is the observability failure that survives a review, because the trace looks complete. Every field is populated, the run is logged, the cost is attached — and the log is still wrong.
The trace blames the model for a data problem.
An employee receives a customer record with a stale billing address, drafts a reminder for the wrong entity, and the reviewer opens the trace. It shows a correct plan against a retrieved context and a tool call that succeeded. There is no error anywhere, so the conclusion drawn is "the reasoning step was weak — write a stricter prompt."
That fix makes the system worse, because the retrieved context was the fault. You cannot tell the two apart after the fact unless the trace records what the context was, not merely that context was retrieved. A line reading context: retrieved 42 records proves retrieval happened. A snapshot with the policy version and the record identifiers proves what the employee actually saw.
The same inversion happens with skills: an employee uses the wrong version of a procedure, produces consistently wrong output, and the trace shows no error, so the model gets blamed instead. Context provenance catches it — see why context matters for AI employees and how AI employees access company knowledge.
Two fields prevent the whole class: the version of every retrieved artifact, and the identifier list of what was retrieved. If you add nothing else this quarter, add those.
A worked reconstruction: reading a run that went wrong
Take a real-shaped failure and read the trace the way you would during an incident.
run: chk_9f37 employee: collections-inbox owner: ops-lead
goal: send overdue reminders for queue AP-AR-2026-10
context: 42 records retrieved (ids C-10401..C-10442), policy v4, tier B
step 1 tool=ledger.search ok 412ms rows=42
step 2 tool=crm.read args={id:C-10422} ok 203ms
step 3 tool=email.draft_create args={draft_id:d_5512} ok 380ms
step 4 gate=send outcome=rejected approver=ops-lead 09:38Z
note="wrong customer, C-10422 is a child record"
result: halted, 0 sent, cost 0.31 USD, 4m03s
Reading it in order:
- Identity and owner —
collections-inbox, owned byops-lead. If you cannot name an owner, stop: you have telemetry, not a trace. - The goal — one queue, one day, one stated intent. The scope is legible.
- The context line — 42 records, policy v4, and the actual id range.
C-10422sits inside it, so the employee retrieved a real record and the wrongness came later. - Step 2 versus step 3 — it read
C-10422, then drafted a reminder. Nowhere does the trace say which entity the draft was addressed to, becauseto:is elided. That elision is the defect: the trace cannot distinguish "wrong customer chosen" from "wrong text written", and those have different owners. - Step 4 — a human rejected it and left a reason. The approval event is the most valuable line in the record, because it is free diagnosis from the person closest to the work.
- The result — cost, duration, and that nothing was sent. A rejected gate is a good outcome, not an error, and it should not page anyone.
The fix is narrow: log the resolved recipient on outbound steps. That single field converts an unexplainable failure into a readable one. For runs that fail rather than get rejected, see how to recover from failed AI executions.
Log the Memory layer too
Most trace schemas stop at the run boundary, which leaves the layer that causes drift unlogged. When a run resumes, record what it resumed from: which checkpoint, which stored state, which policy version, which prior run produced that state. Without it, two runs that look identical can disagree for reasons you cannot see, and the natural conclusion — that one was flaky — is wrong. The operational consequence is that a Memory change is a deploy: persistent context needs the same review discipline as a code change.
The two logging failures that hide everything
Sampling on the happy path. Teams sample successful runs to save volume, then discover they cannot debug the one failure that matters. Sample successes; always keep failures and gate decisions at full fidelity.
Logging intent, not outcome. Recording that the employee decided to issue a credit, without recording that the credit API returned an error, produces a trace that confidently describes work that never happened. If you capture one thing, capture both the call and its result.
How to apply this
Pick the last AI run that produced a wrong result and try to reconstruct it using only what your system logged. Write down the first moment you needed a field you did not have. That field is your observability backlog, and it is usually a tool result, an approval decision or a context version.
Then define the trace shape once and enforce it for every employee, so review tooling and alerting stay generic. The governance and retention side of this is in how to audit AI employee activity, the workflow-level view is in AI workflow observability, and turning the recorded outcomes into a score is how to measure AI workflow success.
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 AI observability and how is it different from logging?
Logging records events; observability lets you reconstruct any run after the fact. For AI employees that means chaining identity, decision, tool action, approval, cost and outcome into one readable record. A transcript of prompts is logging, not observability, because most failures occur in the tool calls.
What should we log for every AI employee run?
Employee identity and owner, the goal and retrieved context, every tool call with arguments and results, every approval decision with the approver and timestamp, and the cost attached to the outcome. The trace format is shown in AI observability for AI employees and the operational view in how to monitor AI employee executions.
What should we alert on besides failures?
Stalled runs that exceed the workflow service level, repeated tool errors on the same tool, approval requests waiting past their timeout, spend trending toward a ceiling early, and a falling outcome rate. An AI employee that fails to reach its outcome usually exits cleanly, so exit codes alone miss the failures that matter.
Should we sample traces to reduce log volume?
Sample successful runs if you must, but never sample failures or approval decisions at anything below full fidelity. Sampling the happy path is how teams lose the one record they needed to diagnose the incident, which defeats the purpose of the audit trail described in why every AI employee needs an audit trail.
How do we tell a bad model apart from bad data?
Snapshot the context the employee retrieved alongside the plan it stated. If the plan follows from the evidence present, the fault is in the model or the tools. If the evidence was wrong or missing, the fault is in your data. Without that snapshot both cases look identical, which is why it belongs in the trace.
How long should we keep AI employee traces?
Keep failures and approval decisions at least as long as your own retention obligations require, and keep successful runs only while they remain useful for comparison. The rule is that a trace must outlive the question it answers: if a customer disputes something six months later, the run that produced it still has to exist. The cost is paid whether or not you use it.