keepcalculator

06 Numbers and Powers

Why Your AI Agent Looks Like It’s Working While Failing

Card No. 06·12883 · Updated · Standard formula, shown below

Success rate 80.0 %
Missed checkpoints
1
Result
Total task time (min)
60 min
You entered
Number of checkpoints
5
You entered
You enter
Total task time (min), Number of checkpoints, Successful checkpoints
You get
Success rate, Missed checkpoints
Rounding
1 dp · 0 dp

Your AI agent can appear to be diligently working—producing text, moving files, sending emails—while actually failing at its core task because it optimizes for the appearance of progress rather than the actual outcome, and it has no built-in mechanism to detect when its actions are ineffective or counterproductive. This article explains the specific reasons this happens, how to spot it, and what you can do to make your agent’s work verifiable.

Formula

The success rate is calculated as the number of successful checkpoints divided by the total number of checkpoints, multiplied by 100 to get a percentage:

Success Rate (%) = (Successful Checkpoints / Total Checkpoints) × 100

  • Total checkpoints (c) – the number of distinct, verifiable milestones you defined for the task (unit: count).
  • Successful checkpoints (s) – the number of those milestones the agent actually completed correctly (unit: count).
  • Success rate – the percentage of checkpoints passed (unit: %).

Worked Example

Using the default values from the calculator: 60 minutes total, 5 checkpoints, 4 successful.

  1. Divide successful by total: 4 ÷ 5 = 0.8
  2. Multiply by 100: 0.8 × 100 = 80%

The success rate is 80%, and the missed checkpoints are 5 − 4 = 1. This matches the calculator’s output.

Why the Illusion Happens

Modern AI agents—whether they are coding assistants, customer-service bots, or automated research tools—are built around a loop: perceive, decide, act. The problem is that the “act” step is often judged by whether an action was taken, not whether the action helped. For example, an agent asked to “summarize this 50-page report” might produce a 500-word summary that looks polished but misses the key conclusion. It did act; it did produce output; but it failed the actual objective. The agent’s internal reward model (if any) often rewards fluency and plausibility, not factual correctness or task completion.

Common Failure Modes

  • Hallucination disguised as progress: The agent generates confident, well-structured text that is entirely fabricated. It looks like work because it has all the surface features of a good answer.
  • False completion: The agent marks a task as done when it merely executed a sub-step. For instance, it “sent an email” but to the wrong recipient, or “saved the file” but in the wrong directory.
  • Looping without progress: The agent repeats the same action (e.g., re-reading a file, re-running a search) because it has no memory that it already tried that and it failed. The activity log shows constant motion, but nothing changes.
  • Silent partial failure: The agent encounters an error but continues, logging the error as a minor warning and proceeding with a fallback that produces a plausible but wrong result.

How to Detect It

The most reliable way to catch an agent that looks busy but is failing is to define verifiable checkpoints before you start the task. A checkpoint is a concrete, testable condition: “the output file exists and contains the phrase ‘Q3 revenue’,” or “the email was sent to the address ending in @client.com.” Then you can use the calculator above to quantify the success rate. If you cannot define at least one checkpoint, you have no way to know if the agent worked or not.

Other detection techniques include:

  • Ask for intermediate artifacts: Require the agent to save its work-in-progress (drafts, partial data, logs) so you can inspect the process, not just the final output.
  • Use a second agent to verify: Have a different model or a simple script check the output against the original instructions. Cross-checking catches hallucination.
  • Check timestamps and action logs: A healthy agent should show a logical sequence of actions (read → extract → write). Random or repetitive actions are a red flag.
  • Run a small test first: Give the agent a miniature version of the task with a known answer. If it fails the test, it will likely fail the real one.

Why Traditional Progress Metrics Mislead

Many agent frameworks display a progress bar or a percentage complete. Those numbers are often based on the number of steps the agent has taken, not on the quality of those steps. If the agent is designed to take 10 steps and it takes 10 steps, the bar fills to 100%—even if every step was wrong. Similarly, token count (words produced) is a poor proxy for work done. A 2,000-word answer is not better than a 200-word answer if the 200-word one is correct. The same applies to “actions taken”—a metric that counts API calls or tool invocations. More calls can mean more failure, not more effort.

How to Configure Agents to Fail Less

You cannot eliminate all failures, but you can drastically reduce the illusion of work by changing how you set up the agent:

  1. Give explicit exit criteria: Instead of “write a summary,” say “write a 300-word summary that includes the three key findings listed in the source document. Stop when you have verified each finding is present.”
  2. Enable self-verification: Instruct the agent to check its own output against the source before finalizing. Some models can do this if prompted.
  3. Require confidence scores: Ask the agent to rate its confidence in each part of the output. Low-confidence sections are where errors hide.
  4. Limit autonomy: For high-stakes tasks, make the agent stop after each major step and await approval. This prevents it from compounding an initial error.
  5. Log everything: Ensure the agent logs its reasoning and tool calls. You can then replay the log to see where it went off track.

Costs of Undetected Failure

The obvious cost is wasted time—yours and the agent’s. But the hidden costs are larger: incorrect data entered into a CRM, a misleading summary sent to a client, or a buggy code change that passes review because the agent’s explanation sounded plausible. These failures erode trust in automation, which leads to more human oversight, which defeats the purpose of using an agent. In regulated industries, an undetected agent error can have compliance consequences. The calculator at the top of this page gives you a simple way to measure the health of an agent’s performance over time: track checkpoints per task, and if the success rate drops below a threshold you set, investigate before trusting the next output.

Frequently Asked Questions

Why does my AI agent sometimes give a wrong answer but sound so confident?

Large language models are trained to produce fluent, plausible text. They do not have an internal truth meter. When they lack the correct information, they generate the most probable next words, which often sound confident because the model has learned that confident phrasing is common in good writing. The confidence is a stylistic feature, not a factual one.

Can I trust an AI agent if it shows me its work log?

A work log helps, but it can also be misleading. The log shows actions, not outcomes. An agent can log “read file A” and “wrote file B” while actually misinterpreting the contents of A. Always verify the final output against a checkpoint, not just the log.

What is the difference between a bug and an AI agent failure?

A bug is a deterministic error—the code does the wrong thing every time. An AI agent failure is often probabilistic: the same task might succeed once and fail the next time because the model samples from a distribution. This makes AI failures harder to reproduce and fix.

How many checkpoints should I use for a typical task?

As many as you can define meaningfully. For a simple task, 3–5 is enough. For a complex task like “research and write a report,” you might need 10–20. The key is that each checkpoint must be objectively testable—if you can’t verify it, it doesn’t count.

Is it better to use a smaller, simpler agent for critical tasks?

Often yes. A simpler agent with fewer steps and a narrower scope is easier to verify. A large, general-purpose agent may be more capable but also more likely to do unexpected things. For critical tasks, prefer a simple agent with clear checkpoints over a complex one with vague instructions.

Related

Formula used
in t | Total task time (min) | min | 60 | 1 | 1440
in c | Number of checkpoints | - | 5 | 1 | 100
in s | Successful checkpoints | - | 4 | 0 | 100
out rate | Success rate | % | (s / c) * 100 | 1
out missed | Missed checkpoints | - | c - s | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →