Your agent got it right. Can you show how it got there?
A correct agent response does not prove the execution was correct. If you cannot reconstruct what happened during the run, it is hard to operate and debug it in production.

Traceability is being able to reconstruct, afterwards, what the agent did on a task. Which action it called, with which data, on which version of the system, and what changed in the product. An answer that reads well does not prove the execution was correct. If you cannot reconstruct the task, it is hard to operate it and fix it in a real environment.
Every task should carry an identifier (a run_id, a trace_id, or whatever you call it) that ties everything in that process: the person, the agent, the customer account, each action, the version that ran, where what the model read came from, whether a person approved, and what changed in the product. That identifier is not the same thing as the technical trail of a request. In OpenTelemetry, that trail (they call it a trace) is usually made of pieces that describe the path of a call. The task identifier is the business number that ties that call to the effect in your product. They can be crossed, but they are not interchangeable.
OpenTelemetry already describes what you can annotate on a generative system: the model, the tokens, the actions, and, if you turn it on on purpose, the content. The text is off by default, because names, keys, and customer data fit in there.
This article does not stand up a test lab, and it does not replace what we already covered on permissions. It is about the information you have to be able to recover after the task has already happened, when the final text is no longer enough to operate it. On the map of layers this was one line (checking and the record). Here it is the work.
The myth of the perfect answer
The demo rewards an answer that reads well. The trial rewards the effect in the product. The copilot can close the thread by saying it already updated the CRM, created the task, or changed an opportunity's status, and the chat looks clean. Hours later the customer, or the sales team, sees that the record did not move. Nobody can say which action ran, with which identifier, or whether a person approved. An agent can use the wrong action, mix another customer's account into what it reads, and still write a close that sounds experienced.
You do not see that in the chat. You see it if you can answer which action ran, with which data, which version of the instructions, which document it read, and who approved. If the answer is "it read well", you are scoring style. It is the same jump as a demo is not an agent: the text is not the proof.
A correct answer does not prove three things. It does not prove that the right action was used or that it came out well: an action can search, calculate, read a database, or write, and the record has to say which one it was and what came back. It also does not prove that what it read belonged to that account, because a clean summary can rest on the neighbor's file. And it does not prove that nobody had to step in: if a person corrected the status change or rewrote the email and that is not written down, the agent gets the credit and the team gets the incident.
If you cannot check those three questions, you do not have enough traceability of the task. You have a chat that reads well and a process you cannot review.
What you have to be able to reconstruct
A useful record is not "we store the instructions". It is being able to reconstruct what happened when something goes wrong, with names and identifiers, without depending on the internal chat or on the memory of whoever was looking at the thread. The minimum is being able to follow the chain from who starts the task to the effect in the product.
Step | What gets written down |
|---|---|
1. Person or trigger | Who started the task, and on which customer's account. |
2. Model | Which model and which version of the instructions ran. |
3. Action | The name of the action the agent chose. |
4. Data sent | The values, with a closed, validated list, not free text. |
5. Result | Success, error, or retry, plus the attempt number. |
6. Next step | What the agent decided after seeing the result. |
7. Effect | What changed in the product, if anything did. |
If you change the instructions on Tuesday, you should be able to say which version was running on each Monday task. The model's "yes" is not the effect. The effect is whether a record was updated, a task was created, an email was sent, or an opportunity changed status.
You do not need an observability product on day one. You do need not to throw the trail away. A log of loose events ("called the system", "answered") with no identifier tying them together is noise. If you cannot reconstruct that chain, you change the instructions because "it seems better" and you do not know whether failures dropped or the bill went up.
That is what you should be able to open on Monday. At Devic you inspect it in observability: the task, each action, the data, the result, and the error, tied together.
Which actions it called, on which version, and how many times
The action is the door into your product. The record is the proof that this door was used, not another.
For each call you want a name, well-defined data (a closed list, not a free-text field), a result or an error, and an attempt number. You also want the version of the system that fired it: model, instructions, and agent code. Without a version, on Tuesday you cannot say whether the bug is these instructions or last week's.
Retries belong in the record too. If a call returns an error and the agent runs it again, you need to know how many attempts happened and what each one returned, because that is where both cost and duplicates show up: two updates to the same record, two emails, two status changes. The record has to say whether that call was the first or the third.
In the trial, do not just note that "the agent used actions". Record the list: get_account once, update_opportunity zero, or update_opportunity twice, and then you have a different problem.
Where what the model read came from
Context is not memory and it is not state. We already split those three on the map. Here the origin matters: which chunk, which source, which customer account, and which date.
If the model summarizes a help article, the record says which article, not "it searched the knowledge base". If it uses messages from a thread, you should be able to identify which ones. If it loads an order or an account file, you should be able to identify the order_id or the account_id. Without that, "it made up the amount" and "it read the old record" look the same in the chat, and they do not in the record.
The usual failure is pasting the whole thread into the next question and calling it evidence. After that you cannot tell where each fragment came from, and you cannot forget or delete one customer's information without touching the rest. The origin is an identifier and an account, not a dump.
In the trial, prioritize the origin of whatever triggers an action. The rest of what the model read on that turn can wait.
If a person approves, that gets written down too
A person in the middle is not a feeling of control. It is a fact: who saw what, what they approved, at what time, and on which resource (opportunity_id, task_id, ticket_id).
In permissions the question was when that person is needed. Here the question is whether you can prove it. "Marta signed off" that is not in the record is a hallway conversation, and on incident day Marta does not remember the amount or the status she approved.
What you store from that approval: who approved, a reference to what they saw, a fingerprint so you can later check that content did not change, the decision, and the task identifier. The fingerprint does not replace the content. It checks that it was not altered. It does not reconstruct what was shown. If you do not want to store the whole package, keep the reference and the fingerprint. They are not the same thing.
If the flow has no person, the record should say so. It should also note when an action did not need approval, so later there is no doubt about who took part.
How to reconstruct a task after it fails
Reconstructing is not asking the model the same thing and hoping for the same text. The model is not deterministic, and outside systems may have changed. Replaying the task would mean running the same conditions again, in full or in part, and that does not have to return the same result. What you can, and should, do is open the same identifier and see the same calls, the same context, and the same version. That is reconstructing a past task.
If you cannot do that, you cannot fix the problem on purpose. You argue about the instructions, and the failure was a system error, an identifier from another account, or a retry that applied the change twice.
There are three simple tests that you can reconstruct it. Someone who did not write the agent opens the identifier and tells what happened. You change the instructions and old tasks still name the old version. The effect in the outside system matches the specific call that caused it, not only the chat paragraph.
To debug one failed task, the detail of that execution is often more useful than an aggregated dashboard, because the dashboard summarizes and the record tells the story. Both are useful and neither replaces the other. If you export several tasks, the risk is not "mixed rows" by itself. It is that one account's data becomes visible to another, or to someone who should not see it.
Checklist: can you show how it got there?
Before you open the second customer account, the team should be able to answer this.
Does every task have an identifier that ties the person, the agent, and the account?
Can you name the instructions, the model, and the agent version for that task?
Do you list each action, with data, result, and attempt number?
Do you know which source and which account the action-triggering material came from?
Is a person's approval a written fact, or only a memory?
Can someone open the last problematic task and tell it without having been in the chat?
Does the effect in the product (a record, an email, an opportunity status) show up in the record, and not only the model's "yes"?
If you cannot answer several of these, you probably do not have enough traceability to reconstruct a task with any confidence. The answer can be good, and it is still not proof of the process.
What not to store: customer data and secrets
The record that saves you on Monday can leak you on Tuesday. OpenTelemetry does not recommend capturing certain sensitive content by default, such as the instructions, the messages, or the action data. That capture has to be turned on on purpose, because those fields can hold customer data, amounts, or keys.
Three trial rules, not an eternal compliance program. Do not paste secrets: a key in the record is a delayed incident. One account must not be able to see another account's information, and any export has to honor the same access and separation controls. Seeing several accounts in one place is fine if there is separation and permissions. What is not acceptable is a dump in which one customer sees the neighbor. And do not store the body if an identifier and a reference are enough: the account_id or ticket_id, plus a reference to the package and its fingerprint, usually get you the correlation. The whole document rarely does.
How long you keep it is a decision too. Different kinds of records can need different policies, depending on what they are for, how sensitive they are, and the obligations that apply. If you do not date it, you pile it, and what you pile, someone exports one day.
Once those lines exist, the rest is engineering. At Devic that chain is inspected in observability: tasks, action calls, data, results, and errors, tied by an identifier. You can change the model. The proof of how the action was reached stays.
A correct answer does not prove the execution was correct.
Turn your SaaS AI-Native
Get a free trial just by signing up
Latest posts





