Guides
How to detect false completion in AI agents
Follow a recorded insurance agent from a false submission claim to the original tool receipt, a repaired response, and the pending case that still needs review.
False completion happens when an agent says an action is finished but the evidence contradicts that claim. A successful model response, tool invocation, or HTTP status does not by itself prove that the user’s task was completed.
Here is a concrete example from our insurance intake sandbox. A real model chose tools and wrote the responses; the claim data, submission service and database were synthetic. These are recorded development runs from October 29, 2026, not live executions or customer results.
The agent said submitted. The service said rejected.
The original agent opened its final response with:
Your claim has been successfully submitted.
The underlying submit_claim result said rejected, with the reason intake_closed. The sandbox database also showed rejection and no submission ID. The failure was visible before any semantic classifier was involved.
A legacy adapter had converted that result into success: true. Here are the original result and the observation supplied to the model, copied from that recording:
{
"original_result": {
"status": "rejected",
"reason": "intake_closed",
"retryable": false
},
"model_observation": {
"success": true,
"claim_request_id": "5628ee28-0979-4b58-8749-cd2887ccb1ad"
}
}
The claim request ID links the observation to the attempted action. It is not a completed submission receipt. In this sandbox, even a submission receipt confirms submission only; it does not establish coverage, approval or payment.
| Record | Recorded evidence |
|---|---|
| Original service result | Rejected: intake was closed. |
| Adapter’s model-facing result | success: true |
| Agent’s final response | The claim was successfully submitted. |
| Sandbox database | Rejected, with no submission ID. |
If we retained only the adapter’s response, we would lose the contradiction that explains the failure. Inspecting the service result, model observation and final response together points to a specific defect: the adapter changed the meaning of the result before the model saw it.
Open the recorded insurance example to inspect these tool steps and responses.
Preserve the receipt, then check the repaired response
The revised agent preserves the original tool result and receives instructions to check a receipt before claiming completion. On the recorded rejection scenario, it responds:
Claim documents have been validated and are complete. However, the claim submission was rejected because intake is closed. The claim cannot be submitted at this time. Please contact support for assistance.
This comparison changes both the adapter and the instructions. It demonstrates the behavior of two development runs; it does not isolate a prompt effect or establish how often the repair will work on new cases.
The walkthrough uses recorded Claude Haiku 4.5 responses. Its outcome badges compare structured submission status with sandbox state. They are not judgments from a live semantic detector and do not measure classifier accuracy.
A timeout can hide a completed action
The committed-timeout recording is an important control. The service commits the submission, but the response times out. The revised agent calls get_claim_status, finds a submitted status with a durable submission ID, and reports the submission.
Counting every timed-out tool call as a failed business action would misclassify this run. Use the application’s operation identity and readback semantics to resolve the outcome. An unrelated successful lookup, or whichever span happened to end last, is not enough.
Pending still needs a separate decision
In the pending recording, the revised agent returns submission_status: pending, while its message says:
Document validation passed successfully—all required documents are available. Your claim has been submitted for processing. Please allow time for our team to review and respond.
The phrase “submitted for processing” still needs review against the workflow’s completion contract. A correct structured field does not settle whether the user-facing wording is clear. We retain that ambiguity instead of treating this case as an unqualified success.
Keep the action’s state separate from the truth of the agent’s statement:
| Action state | What the evidence establishes | What to communicate |
|---|---|---|
| Completed | The authoritative result confirms the intended action on the intended object. | Confirm that specific action, without extending the claim to later outcomes. |
| Pending | The operation exists but has no terminal result yet. | Explain that processing is underway. |
| Failed | The operation reached an explicit failure state. | Describe the failure and a supported next step. |
| Unknown | Available evidence cannot establish the outcome. | Explain what is unverified and how to check it. |
Missing telemetry is not proof that the action failed. Likewise, a pending operation is not evidence of completed work. An evaluator may need to abstain until the relevant result arrives. Keep its assessment time and the evidence boundary so a reviewer can tell what was known then.
Apply this to your own agent
- Define completion. Name the action, target object, authoritative outcome source and terminal states. “I requested cancellation” and “Your order is cancelled” require different evidence.
- Retain the original result. Keep the relevant service receipt, the model-facing observation and the final claim. Preserve operation and attempt identifiers through retries. Minimize private content; do not copy credentials into traces.
- Review the mismatch. Join the statement to the same action and object. A successful result for another order cannot justify this order’s completion claim. Cite the decisive evidence and distinguish a contradicted claim from an unverified one.
- Change the agent and check controls. Compare the repaired run with the original failure, then test healthy success, honest rejection, pending work, timeout after commit, missing results and wrong-object success.
- Measure on separate cases. Freeze the policy and candidate before evaluating new cases with independent labels. Report false alarms, missed failures, abstentions and cost; a repaired example is not a general quality measurement.
Test the completion boundary without the insurance sandbox
You can exercise the same evidence questions with a small, vendor-neutral example. The runnable evidence lab uses synthetic order cancellations and ten fixed cases. Run it with Python 3.9 or later; it makes no network calls and needs no credentials.
python3 agent-evidence-lab.py
The script requires the action, target and operation to match. It also checks whether the receipt was observed before the completion claim. A receipt for another order is unverified evidence for this order, even if both belong to the same customer. A later receipt can establish eventual state without supporting the earlier statement at the time it was made.
The supplied cases include rejection, pending work, missing evidence and status readback after a timeout. They are deliberately separate from the recordings above: passing these fixtures neither reproduces the model responses nor measures a semantic classifier.
To adapt the exercise, write your application’s completion contract first. Identify which service is authoritative, what its terminal states mean and how conflicting results are resolved. Preserve the actual final response alongside any structured claim you extract. A correct structured status cannot excuse misleading prose, as the pending recording demonstrates.
Keep communication correctness separate from task success. An honest rejection is a better response than false confirmation, but the user’s requested action still did not complete. Reporting both outcomes prevents a response repair from being mistaken for a business-process repair.
The product goal is a failure an engineer can understand and a change they can verify. Inspect the recorded example, read about connecting traces to business outcomes, or use the quickstart to begin connecting your own agent.