October 20, 2026
Testing Agentic AI, Week 1: why an agent that is 80% right is 100% wrong
This is the second article in my 21-part Medium series on testing Agentic AI. The map of the whole series is in the overview article, "A 20…
By Srinivas
4 min read
This is the second article in my 21-part Medium series on testing Agentic AI. The map of the whole series is in the overview article, "A 20 part roadmap for testing Agentic AI" (https://medium.com/@srinivas_33580/a-20-part-roadmap-for-testing-agentic-ai-25cf4ceb42f0 ). Each article goes deeper on five posts from my #100daysoftestingagenticai LinkedIn series. This one covers posts 1 to 5, the posts that opened the series: why agentic systems break classical testing, the one metric that matters first, the API foundation, explainability, and the evaluation-data problem.
Post 1 - Welcome to #100daysoftestingagenticai
When software engineering moved from static scripts to microservices, testing had to fundamentally evolve. As AI shifts from single-turn prompts to Agentic AI, we are hitting the same wall again. Traditional unit tests, mocks and static validation sets were built for deterministic systems, and they struggle against autonomous agents, for three reasons:
- Stateful multi-turn execution. Agents do not just generate text. They maintain memory, reason across planning steps, and make independent tool-calling decisions.
- Infinite execution loops. A tiny prompt drift in a static LLM produces a slightly imperfect answer. The same small drift in an agentic loop can trigger cascading API calls, rate-limit failures and exploding token costs.
- The non-deterministic oracle problem. When an agent can take five different valid reasoning paths to solve the same problem, how do you write a reliable automated assertion?
If your team is shipping agentic workflows without rigorously testing agent memory, tool-selection accuracy and loop boundaries, you are not testing, you are waiting for production failures. The foundational article behind the series is "Testing Agentic AI" on LinkedIn Pulse (https://www.linkedin.com/pulse/testing-agentic-ai-dr-srinivas-padmanabhuni-5stoc/).
Post 2 - Task Success Rate: the baseline metric
An AI agent that completes 4 out of 5 steps is not 80% successful. When the workflow only counts if every required stage succeeds, it is 100% a failure. Single-turn accuracy is a vanity metric. Think of an autonomous agent running a multi-step workflow, processing an insurance claim, executing a multi-leg trade or updating a CRM: partial completion is worthless there. If the agent correctly parses intent, queries the database and updates the customer record, but fails to fire the final webhook, the entire task has failed.
The objective: verify that the agent can autonomously execute a complete user workflow end to end, from initial intent parsing to final system state mutation, without human intervention or state corruption.
The acceptance target I proposed for this test: at least 95% of sampled tasks should successfully complete all required execution stages and reach the correct terminal state. That number is an illustrative bar to calibrate against, not an industry standard. This post corresponds to Test 1 in the master list of 110 agentic AI tests: verify that the agent completes the full user task end to end. Reaching it is harder than it sounds, because measuring Task Success Rate goes far beyond checking the final text output. Take the planning checkpoint alone: did the agent break the user prompt into logical sub-goals without skipping critical steps?
Post 3 - API data retrieval and schema parsing integrity
An AI agent is only as smart as the APIs it talks to. If it misinterprets a single JSON payload, everything downstream falls apart. When building autonomous systems we often focus on model reasoning, but in production, failures often trace back not to high-level reasoning but to data retrieval and schema mapping. If an agent fetches a complex 200-line JSON payload and misinterprets an array index, a nested key or a data type, its next "reasoning step" will be completely hallucinated. Garbage payload in, garbage execution out.
The working benchmark I proposed: at least 99% of API responses parsed, typed and mapped accurately to the expected input schema of downstream tools. Again, an illustrative target for teams to calibrate, not an external standard. In the master list this post corresponds to Test 10: validate correct parsing and use of API responses. Three vulnerability points make this hard:
- Large payload context overload. Dense or deeply nested JSON causes "attention drift": the agent drops critical secondary keys.
- Type confusion and coercion failure. Numbers treated as strings, nulls treated as missing keys, misread ISO timestamps, each one producing invalid parameters in the next tool call.
- Empty or malformed payloads. When an API returns 200 OK with an empty array, or a 404, does the agent handle it gracefully, or hallucinate a fake response to keep going?
Unlike traditional integration testing, where schema validation is handled by static code, agents ingest and interpret API outputs dynamically, so strict schema enforcement, Pydantic or Zod style, has to move into the agent pipeline itself. A hypothetical: the API returns "price": "unavailable", and instead of flagging it, the pipeline silently defaults the value to 0 - and the agent calmly reasons over a product that now looks free.
Post 4 - From SHAP values to trajectory auditability
In traditional machine learning, explainability meant calculating static feature importance scores, SHAP or LIME values on fixed tabular datasets. In Agentic AI, explainability requires a fundamental shift from static model explainability to trajectory and reasoning-trace auditability. When an autonomous agent parses unstructured inputs, selects internal or external tools, evaluates intermediate responses and mutates system states, every single step in its execution path must leave an audit trail.
If an agent denies an insurance claim, flags a transaction or updates a customer's credit risk profile incorrectly, telling an auditor or customer "the model made a decision" is a weak place to stand. RBI's FREE-AI committee report of August 2025 (https://www.rbi.org.in/Scripts/PublicationReportDetails.aspx?ID=1306), a set of recommendations rather than a binding regulation, already asks financial firms for board-approved AI policies and AI audits. The DPDP Act (https://egazette.gov.in/WriteReadData/2025/267647.pdf) is phasing in, with its core obligations expected to commence around May 2027. Teams that build the audit trail now will be ready when they are asked.
The objective: verify that every execution trajectory leaves observable audit evidence - the inputs the agent saw, the tool calls it made and what they returned, the state transitions it caused, and a human-readable, machine-parsable summary of each decision. That is deliberately different from promising a complete capture of a model's private internal reasoning: the audit trail records what the system did and the rationale it surfaced, which is what an auditor can actually inspect.
Post 5 - Why random test splits are not validation
The opening week closed by going back to basics. In my earlier article "Why current testing processes in AI/ML are not enough?" (https://lnkd.in/d7YTYSZV)) I highlighted a structural flaw in how software teams evaluate AI: we relied almost entirely on randomized set-aside data, train-test splits, K-fold cross-validation and bootstrapping, to declare a model production-ready. We assumed that 90% accuracy on unseen test data meant validated. Random sampling misses the big picture:
- It ignores rare corner cases and edge conditions.
- It lacks systematic input coverage and debugging.
- It completely bypasses adversarial security, privacy leaks, explainability and algorithmic bias.
Those gaps were already expensive for classical ML. For agents that plan, call tools and act on the world, they become the whole ballgame, and that is the thread this series pulls on.
What is next
Article 3 covers posts 6 to 10: the hiring boom in AI testing, metamorphic testing, web navigation testing, end-to-end API testing, and explainability frameworks for LLMs.