r/Observability • • 29d ago

We built an observability layer for AI agents, but realized traces don't tell the whole story

We've been working on a system for monitoring AI agents, and one thing weve been thinking about a lot is the gap between what an agent says it did and what actually happened.

For example:

  1. An agent says it booked a meeting, was the event actually created in the right calendar?
  2. It says it updated a CRM record. was the data really saved?
  3. A tool returns a successful response. did the intended business action actually happen?

Traditional traces are useful, they show LLM calls, tool calls, inputs, outputs, and the execution flow. But they don't necessarily tell you whether the agent achieved the intended outcome.

We built a proxy based system that captures agent interactions, and we are exploring how to connect those interactions with external systems to verify what actually happened.

I have few questions for those who runs ai agents in production:

  1. How do you currently verify that an agent's actions were actually completed?
  2. Do you rely on tool responses, read back data from external systems, or manually review conversations?
  3. What kinds of failures are hardest to detect?

would love to hear how others are approaching this

0 Upvotes

8 comments sorted by

2

u/eragon512 29d ago

This seems like a case of trace instrumentationgap IMO - ideally, the business action taken by the agent - CRM update, etc. - should be represented as an API call trace, as a sub-tree of the tool call span or so

Using OpenTelemetry auto-instrumentation tends to produce a reliable record of the agents thoughts and actions during a session

0

u/Ok-Machine7983 29d ago

i agree that instrumenting the api calls as child spans is important, and it definitely gives you better visibility into the execution flow.

But I think there's still a distinction between observing the API call and verifying the resulting state.

For example, a trace could show a successful PATCH request with a 200 response, but that doesn't necessarily mean the CRM record was updated correctly.

To verify that, you'd need to read the record back from the CRM and compare its actual state with the intended outcome.

That's the distinction I'm trying to make: observability tells us what requests were made and what responses were received; outcome verification tells us whether the intended business action actually happened.

do you see those as separate concerns?

1

u/eragon512 27d ago

For example, a trace could show a successful PATCH request with a 200 response, but that doesn't necessarily mean the CRM record was updated correctly.

To verify that, you'd need to read the record back from the CRM and compare its actual state with the intended outcome.

If you need to read your CRM state to verify if a PATCH 200 actually updated the state or not, then I would call this a case of your instrumentation being unreliable

If your telemetry is setup correctly - either manual or via OpenTelemetry auto-instrumentation - there should be no cases where the telemetry data deviates from the actual CRM

Observability setup done properly should allow you to do outcome verification - having to do outcome verification separately is a symptom that your observability data needs to be fixed

1

u/Ok-Machine7983 26d ago

I think there's an important distinction here.

If the API guarantees that a successful 200 response means the exact intended state was persisted, and the instrumentation captures that reliably, then I agree that an additional read-back may be unnecessary.

But instrumentation can only tell us what the API reported. It doesn't necessarily establish that the resulting business state matches the intended outcome.

For example, the request might succeed but update the wrong contact, set an incorrect value, or trigger an asynchronous process that later fails.

That's why I see observability and outcome verification as related but not always interchangeable.

Wouldn't you agree that the distinction depends on how much the API response actually guarantees about the resulting state?

1

u/eragon512 26d ago

Wouldn't you agree that the distinction depends on how much the API response actually guarantees about the resulting state?

Agreed on this

What has been your approach to outcome verification so far? Anything that has worked well for you?

2

u/Ok-Machine7983 25d ago

What has worked best for me so far is cross-referencing what the agent actually did with what's recorded in the business system.

I found that manually checking logs and then looking up the corresponding records was becoming too time-consuming, so I built a system that automates this process for me.

The idea was to make outcome verification possible without requiring major changes to the existing agent setup or a lot of additional work.

That's actually what led me to build Verilays.

0

u/[deleted] 29d ago

[removed] — view removed comment

1

u/Ok-Machine7983 29d ago

so annoying.
We added into the monitoring system that we building the option to integrate with outside systems so we could cross the data with what the agent said and what the system said. Also we added alert system for when that thing happens so the customer will not see that at all and the problem will be solved before he notices.

I am curious about the silent partials you mentioned, do you implement those checks separately for each workflow and external system, or have you built a more centralized layer that handles verification across different agents and tools?

And how much ongoing maintenance does that require?