Skip to content

Agentic AI & Orchestration

Your Agent Got a 200. The Address Still Did Not Change

A successful tool call can leave the requested work undone. A fault-injected order workflow shows how independent read-back checks keep agents from reporting false completion.

Mara QuinteroAgents & Orchestration Writer

November 6, 2026 · 7 min read

A laptop showing an order update marked successful beside a second screen where the shipping address remains unchanged.
A laptop showing an order update marked successful beside a second screen where the shipping address remains unchanged.

The test centered on one synthetic order, TEST-4821, and one instruction: change its shipping address from Unit 4A to Unit 4B before fulfillment. The agent called an address-update tool, received HTTP 200 with `{"status":"success"}`, and marked the task complete. A separate order lookup still showed Unit 4A.

That is the failure worth testing. The model selected the right tool and supplied the right arguments. Authentication worked. The server returned valid JSON.

Nothing in the immediate exchange looked broken, yet the business outcome, the state that mattered outside the agent conversation, was wrong.

HTTP 200 establishes transport success, meaning the server accepted and answered the request without a protocol-level error. It does not establish that a database committed the update, that every requested field survived validation, or that a downstream fulfillment system received the new address. An agent that treats the response as proof will confidently close work that remains open.

Build a tool that can lie on command

I tested the workflow against a small fake order API rather than waiting for a production integration to misbehave. Fault injection, the deliberate introduction of a known failure, made the update endpoint switch among several behaviors while preserving the same success-shaped response.

In the first mode, the endpoint returned success but discarded the write. In another, it queued the change so that an immediate lookup still showed Unit 4A. A third mode updated the street line but omitted the unit field, producing an address that looked mostly correct while still being unsuitable for fulfillment. The normal mode committed the complete address.

The agent received no label identifying the active mode. From its perspective, every write call looked like this:

```json {"order_id":"TEST-4821","status":"success"} ```

This setup isolates the behavior under evaluation. A malformed response tests parsing, and a server error tests retry logic, but neither reveals whether the workflow distinguishes a receipt from a completed job. The lying tool does, because the write response remains plausible while the underlying state changes incorrectly or not at all.

The first version of the agent failed the no-op case in the most ordinary way: it read the `status` field, generated a completion message, and stopped. Changing the prompt to say “make sure the update worked” helped only when the model happened to issue another lookup. Verification remained optional, which meant a later prompt edit or different planning path could remove it.

Define success outside the write response

The stronger design moved the acceptance rule out of the prompt. After every address write, the orchestrator, the software that controls tool order and workflow state, called a separate order-read endpoint and compared the returned address with the requested address.

That read-back check, an independent query used to confirm the resulting state, required an exact match on the normalized street, unit, city, region, and postal code. The write tool could report success, but only the verifier could move TEST-4821 into a completed state.

Independence matters here. Repeating fields from the write response is not a read-back. Calling a second endpoint that reads the same uncommitted cache may not be one either. The check should query the system that owns the business state, or the closest authoritative downstream representation available.

For the order test, that was the order record used by fulfillment rather than the update service’s acknowledgment.

A user interface can sometimes provide a useful second path, but browser automation adds rendering delays and selector failures that can obscure the original test. A read API is preferable when it exposes the same committed record. For higher-stakes workflows, the relevant source may sit farther downstream: a payment ledger after a refund request, an identity directory after access removal, or a carrier record after a shipping change.

The comparison also needs business rules. Postal abbreviations and capitalization may differ without changing the destination, so the verifier should normalize harmless formatting before comparison. It must not normalize away meaningful omissions. In TEST-4821, dropping “Unit 4B” was a failed outcome even though the rest of the address matched.

Treat delay as a workflow state

A read immediately after a write can produce a false alarm when the service uses eventual consistency, meaning a change becomes visible across the system after a delay. That does not justify accepting the original success response. It means the workflow needs an intermediate state.

For TEST-4821, the orchestrator recorded the requested address, the write receipt, and the first observed address, then marked the task `verification_pending`. It polled the authoritative read endpoint on a bounded schedule. A matching record produced `verified`; an unchanged or partial record after the allowed window produced `unverified` and handed the task back for review.

The retry boundary should come from the service’s documented behavior and the operational deadline. An address change that appears after a shipment enters fulfillment may be technically committed and still be useless. Verification therefore needs both a state condition and a time condition: the record must match while the change can still affect the order.

Retries introduce another risk. If the agent repeats a write after an ambiguous timeout, it may create duplicate refunds, messages, or bookings. Send an idempotency key, a unique token that lets a service recognize repeated attempts as the same operation, whenever the API supports one. If it does not, read before retrying and route uncertain high-impact actions to a human rather than guessing.

Score the workflow on the final record

The evaluation should count TEST-4821 as complete only when the authoritative read matches the requested address. A successful write response earns no completion credit by itself. A delayed update passes if it becomes visible within the permitted window, while a partial update fails even when most fields are correct.

Also inspect the trace, the ordered record of model decisions, tool calls, responses, and state changes. It should show what the agent requested, what the write endpoint claimed, what the verifier observed, and why the orchestrator stopped. Without that sequence, a reviewer sees only a final failure and cannot tell whether the model chose the wrong argument, the tool dropped a field, or the verifier queried stale data.

Run the same fault modes through every path that can perform the action. Agents often have a direct API tool, a browser fallback, and a human-approval branch; verifying one route does not protect the others if each route uses different completion logic. The acceptance rule belongs near the workflow state machine, where all routes must pass through it.

Prompt quality still matters. The agent should understand that a receipt is provisional and explain an unresolved result without claiming completion. The deterministic verifier carries the harder guarantee, however, because exact field comparison is cheaper and more dependable than asking a language model to interpret two records on every run.

Account for the extra calls

A write followed by one read roughly doubles baseline tool traffic for that action, and delayed systems require more polling. The workflow also takes longer before it can tell the user the job is finished. Those costs are real, especially for bulk updates with rate-limited APIs.

Apply read-back checks where false completion has a meaningful consequence. Changing an order address, revoking access, issuing a refund, or publishing a record deserves stronger evidence than a low-impact preference update. Batch reads can reduce traffic when the service supports them, and event notifications can replace polling if they carry enough information to verify the committed state.

The fallback must remain explicit. When TEST-4821 stayed at Unit 4A beyond the verification window, the agent did not keep retrying or rewrite its success message. It preserved the original request and observed record, labeled the outcome unverified, and stopped before fulfillment needed a decision.

Questions people ask

Why is an

HTTP 200 response not enough for an AI agent?

HTTP 200 confirms that a server received and answered the request successfully at the protocol level. The application may still discard the write, queue it, update only some fields, or fail before a downstream system receives the change. The agent needs evidence from the resulting business state.

Should the agent perform its own verification call?

The agent can request the read-back, but the orchestrator should enforce it rather than relying on the model to remember. A deterministic comparison against an authoritative record keeps completion rules stable across prompt changes, model changes, and alternative tool paths.

How long should a workflow wait for a delayed update?

Use the service’s expected propagation window and the business deadline, then cap retries. If the state remains unchanged when waiting would no longer help, mark the task unverified and escalate it with the write receipt, requested values, and latest observed record.

What if the API has no independent read endpoint?

Check the nearest downstream system that consumes the change, such as an account page, ledger, directory, or fulfillment record. If no independent source exists, the workflow cannot verify completion; it should report accepted or pending instead, preserving the distinction until a person or later event confirms the result.

ShareFacebook
ai agentstool use and function callingworkflow automationai agentsworkflow testingapi reliabilitytool verification

One story a day

The story of the day, in your inbox

One real story about AI each morning — no hype, no alarm, just company for the road.

Read next

Calendar and OAuth permission screens open beside an agent activity log on a laptop.

Agentic AI & Orchestration

Your AI Agent’s Real Boss Is Its OAuth Token

A calendar assistant may be told to touch one meeting, while its token permits access to every event. Scope the credential, not just the prompt.

Mara Quintero · 7 min read

A contact-center screen showing a live call, transfer status, transcript and verification record beside a headset.

Agentic AI & Orchestration

Voice Agents Need a Warm Transfer, Not a Callback

A useful voice agent carries the live call, identity evidence, transcript and unfinished request to a human. That requires explicit transfer state, not another model prompt.

Mara Quintero · 8 min read

A laptop displaying a SQL execution plan beside a database monitoring screen showing a constrained query queue.

Agentic AI & Orchestration

AI-Written SQL Needs More Than Read-Only Access

A read-only agent can still saturate a database with scans, joins, and spills. Put a replica, SQL gateway, plan check, and execution budget between the model and production data.

Mara Quintero · 8 min read