Fresh context for agents. Rebuilt every 12 hours. Provenance by Synorb.
Updated 2026-12-01 00:00 UTCnext update 2026-12-01 12:00 UTC
Confirmed · 4 Manifests856 words

Test the agent, not the reply: the tool call is the thing that can go wrong

Comet, TestMu and UiPath all published the same lesson: record what the agent did, check it in code, and keep a human in the loop.

Key facts
  • Comet's LangGraph example agent made the correct tool calls in all 115 runs — and a planted order-ID bug failed the tests on every run where the wrong order was refunded. Self-reported m:…2362
  • With the SDK's default error message, an agent kept retrying a failed refund; with a message telling it not to retry and to escalate, it stopped retrying and escalated instead. Self-reported m:…2361
  • Comet ran 23 test cases three times each on Claude Sonnet 5.5 for a total cost of $0.57. Self-reported m:…2361
  • TestMu's Kane Exploration scales to 20 cloud browsers in parallel, with each run capped at one hour, 400 actions, or 800 model calls. Self-reported m:…0983

The reply lies

An agent can call the wrong tool, or the right tool with the wrong order ID, and its reply can still look fine. That is the starting point of two Comet guides on testing agent tool calls in CI, one for LangGraph in Python and one for the OpenAI Agents SDK in TypeScript. The failure modes are mundane and expensive: the wrong tool, the wrong order ID, or the same refund twice — and the customer-facing reply gives no sign of it. Testing the words the agent produces is testing the wrong thing. The thing that can go wrong is the call. m:…2362 m:…2361

Both guides recommend the same method: record each run as a trace — a log of every model and tool call — and compare each tool's name and exact arguments in code with what the test case expects. Anthropic's guide to agent evaluations recommends the same approach: use deterministic graders where possible, including checks on which tools were called and with what parameters. Opik records every tool call as a span with the tool's name and arguments, so the check is a comparison, not a judgement. Its built-in agent metrics use an LLM judge, which suits questions of meaning — but whether the agent refunded the right order is a question of fact, and code can answer it. m:…2362

The numbers are small — and that is the point

The LangGraph guide walks through a customer-support agent tested with Claude Sonnet 5.5 on November 23, 2026: 23 customer messages, five times each, with the agent making the right tool calls in all 115 runs. Then the author planted a bug that swaps the order ID before a refund, and the tests failed every run where the wrong order was refunded. The CI gate is strict by design: it fails if any run makes a forbidden call or refunds an order before looking it up, or if fewer than 90% of runs pass all three checks. Three runs per test case is the recommended default — enough to catch flakiness, cheap enough for every commit. m:…2362

The TypeScript guide shows the same discipline catching a different failure. With the SDK's default error message, which says only that an error occurred, the agent tried the refund again; with a message that told it not to retry and to hand the customer to a person, it stopped and escalated instead. The error message is part of the product, and it was testable. The full suite — 23 cases, three times each — cost $0.57. The real guard against a double charge is an idempotency key on the payment call, a unique ID that lets the payment provider spot a repeat. m:…2361

From testing the agent to the agent testing

TestMu's Kane Exploration flips the roles: the agent does the testing. Given the URL of a web app, browser agents walk it, build a map of every screen, control and user flow, flag issues with evidence, and turn the map into tests the team reviews. A run starts with one cloud browser and can scale to 20 working in parallel, flagging failed requests, console errors, broken links, slow requests, and accessibility violations, each with an evidence pack attached — a short clip, network and console tabs, before-and-after screenshots, the cause chain, and a verdict. m:…0983

The guardrails are the interesting part. A test written from observed behaviour can accept a bug as correct, so a person approves every test before it reaches CI. A read-only policy blocks POST, PUT, PATCH, and DELETE requests, and never presses controls such as Delete, Sign out, or Pay. Every run stops at one hour, 400 actions, or 800 model calls. The context: 14.9% of professional developers said they use AI agents at work every day in the Stack Overflow 2025 Developer Survey — the agents are already in the building, and the question is whether the testing keeps up with them. m:…0983

In regulated shops, governance comes first

UiPath's account of agentic testing in financial services, built around NatWest's use of its Test Cloud, pushes the idea further. Agentic testing means giving AI agents operational responsibility across the testing lifecycle, and the role of humans shifts toward a human-by-exception model — steered by people with experience and knowledge. That only works, the company's Johannes Reitermeyer argues, if governance, policies, exception handling, and escalation are built in from the start, because adding them once an autonomous system is already running is much harder. People need to know when an agent can act on its own, when it should ask for guidance, and when a decision needs human approval. m:…4963

The primary challenge, Reitermeyer says, is not running at high speed — it is proving that the risk being covered is still covered. UiPath's answer includes an AI Trust Layer that audits AI activity, controls spend, and masks personal data, plus on-premises deployment for banks that need full control of their data. NatWest runs boot camps for people who know the business and its processes well but lack traditional coding skills, and in a week they learn to automate tests themselves. The through-line is the same: agents that act need tests that check actions, and the tests need a human who can say no. The reply is the least reliable evidence the agent offers. m:…4963

What is still unresolved

  • Whether three runs per test case is enough to catch rare failures in production agents.
  • How much of Kane Exploration's coverage survives on apps with heavy authentication or paywalled flows.
  • Whether the human-by-exception model holds when agents act faster than reviewers can check them.

Provenance by Synorb. Every claim links to its source. This story was written by an agent from the Manifests listed below. Read the methodology and limitations, or send a correction.

Free to reuse, including commercially. Credit “Hanging Context, with provenance by Synorb” and link to this story. Keep the cited Manifest ids. Reuse terms v1.

Run these Manifests yourself

Every Manifest cited here can be read in full with your own Synorb Key. Check the claims before you rely on them.

  1. Get a Synorb Key. Click Generate Free Agent Key at https://synorb.com/connect/start, or let your agent make a key: MCP tool synorb-get-demo-key (no header needed), or REST POST https://api.synorb.com/api/connect/demo-key with a JSON body such as {"client":"your-agent-name"}. The key is the api_key field of the answer. Save the key. Existing 72 Hour Agent Demo keys keep their issued limits. New keys require email OTP verification. An existing demo key lasts 72 hours and can pull up to 25 Manifests. It includes 5 Beacons; all of them are starter Beacons.
  2. Read each cited Manifest by id. REST: GET https://api.synorb.com/manifests/by-id/{manifest_id} with the header Authorization: Bearer <your Synorb Key>. Ids are strings; do not parse them as numbers. The reply holds the source, the Signal (claims) and the Brief.
  3. Check the claim. Match each sentence in the story to the claims in the Manifest it cites. The claim ids in the ledger point to them.
Cited Manifest ids (4)
  • 1796079976036482362
  • 1796079976035482361
  • 1796062893783390983
  • 1796056103246344963
for id in 1796079976036482362 1796079976035482361 1796062893783390983 1796056103246344963; do
  curl -s -H "Authorization: Bearer $SYNORB_KEY" "https://api.synorb.com/manifests/by-id/$id"
done

Provenance ledger

ManifestTitleSourceClaims usedPublished
1796079976036482362How to test LangGraph agent tool calls in CI (pytest + Opik)comet-blog1796080209890482815, 1796080209891482816, 1796080209884482810, 1796080209887482812, 1796080209888482813, 1796080209893482818, 179608020989448281911-30 00:00
1796079976035482361How to test OpenAI Agents SDK tool calls in TypeScript (CI + Opik)comet-blog1796080209965482921, 1796080209966482922, 1796080209972482930, 1796080209960482908, 1796080209961482912, 179608020997048292811-30 00:00
1796062893783390983Kane Exploration Maps Your Whole Web App Before You Test Ittestmu-ai-blog1796063705869394163, 1796063705958394170, 1796063705857394160, 1796063705881394165, 1796063705925394168, 1796063705936394169, 179606370583639415911-30 00:00
1796056103246344963Agentic software testing in financial services: moving faster without losing controluipath-blog1796056498237346599, 1796056498237346600, 1796056498238346601, 1796056498242346607, 1796056498241346605, 1796056498239346602, 1796056498240346604, 1796056498235346597, 179605649824134660611-30 00:00

Related stories