AI Agents: Capabilities, Failures and the Reliability Wall

AI agents can now complete software tasks that would take a human expert roughly two hours, and that ceiling has been doubling every four to seven months since 2019 — yet Gartner still expects more than 40% of agentic AI projects to be canceled by the end of 2027. The gap between those two facts is not a contradiction. It’s the actual state of the technology.

TL;DR

  • Capability is compounding, not plateauing. METR’s time-horizon benchmark shows the length of tasks frontier agents can complete autonomously has doubled roughly every 7 months since 2019, with some evidence the pace accelerated to every 4 months in 2024–2025.
  • Most agentic projects still die in the enterprise. Gartner attributes this to escalating cost, unclear ROI, and “agent washing” — rebranded chatbots and RPA sold as agents — not to the underlying models failing.
  • There’s a hard reliability wall. Frontier agents succeed on nearly every task that takes a human under four minutes, and on fewer than one in ten tasks that take a human more than four hours.
  • Security failures moved from theoretical to operational in 2026. A poisoned PyPI package, two disclosed CVEs against coding agents, and an agent-triggered production database wipe all happened in production environments, not test labs.
  • The organizations getting value match agent autonomy to task length, keep a human approval gate on irreversible actions, and treat “agent” as an architecture decision, not a marketing label.

What an AI Agent Actually Does, Mechanically

Most of what gets called “AI agents” in 2026 marketing copy is a chatbot with a slightly longer leash. The distinction that actually matters is architectural, not semantic.

A chatbot or copilot answers a prompt and stops. Robotic process automation (RPA) follows a fixed script with no reasoning step. An AI agent runs a loop: it takes a goal, reasons about a plan, selects and calls tools, observes the result, and decides whether to continue, replan, or stop — repeating that cycle autonomously across multiple steps without a human re-prompting it at each turn.

That loop is the whole story. Here’s the implementation chain in the order it actually executes:

Goal/Instruction → Planning (model reasoning) → Tool selection & call → Environment execution → Observation → Replan or terminate.

The Agent Execution Loop Goal / Instruction Set once, at start Model: Plan + Reason Selects next action Tool Call: Action API, code, file, browser Environment: Execute Real system state changes Human approval gate Observation / feedback High-risk actions (irreversible writes, payments, deploys) route through the gate before execution


The gate in the middle is the part most failed deployments skip. Whether an action needs it depends on one question: can it be undone? A search query doesn’t need a human in the loop. A production database write, a financial transaction, or a merged pull request does.

The Capability Curve: What “Better” Actually Means Here

The single most useful number in agent evaluation isn’t a benchmark percentage — it’s task duration. METR, an AI evaluations nonprofit, measures how long a task takes a skilled human professional to complete, then finds the task length at which a frontier agent succeeds 50% of the time. That’s the model’s “time horizon.”

The trend line is the story: the length of software tasks frontier agents can complete autonomously at 50% reliability has been doubling roughly every 7 months since 2019. METR’s January 2026 update (Time Horizon 1.1), built on an expanded 228-task suite, held that trend and tightened the confidence intervals around it. Separately, analysis of 2024–2025 data found some evidence the doubling accelerated to roughly every 4 months in that window — though METR itself cautions that a single year of data is a weak basis for extrapolation, and the faster rate could just as easily slow back down.

MilestoneWhat it means
50% success thresholdThe task length where the agent gets it right half the time — not a reliability guarantee
~7-month doubling (2019–2025)The stable long-run trend across six years and multiple model generations
~4-month doubling (2024–2025, tentative)A possible acceleration; still a single-year estimate with wide error bars
~2 hours 17 minutesApproximate 50%-reliability time horizon of a GPT-5-class agent on METR’s tracker as of May 2026

That progress is real. It’s also easy to misread, because a 50%-reliability metric is not a production reliability metric — a coin flip is not a deployable success rate for anything that touches customer data or money. That distinction is where the next section starts.

Why Gartner Still Expects 40%+ of Agentic Projects to Be Canceled

In June 2025, Gartner analyst Anushree Verma published a prediction that has aged into one of the most-cited numbers in enterprise AI: more than 40% of agentic AI projects will be canceled by the end of 2027, driven by escalating costs, unclear business value, or inadequate risk controls. A Forbes analysis by Robert Szczerba revisited the warning in July 2026 and found the underlying dynamic hadn’t changed — it had just become better documented.

Gartner’s own data explains why. A January 2025 poll of 3,412 webinar attendees found only 19% of organizations had made significant investment in agentic AI; 42% were investing conservatively, 8% not at all, and the remaining 31% were still deciding. Gartner also estimated that of the thousands of vendors marketing “agentic AI,” only about 130 offered genuinely agentic capability — the rest were existing chatbots, assistants, or RPA tools rebranded for the trend cycle, a practice Gartner calls “agent washing.”

The practical failure isn’t the model underperforming. It’s organizations applying agent architecture to problems that don’t need it. Gartner’s own framing gives a usable filter:

PatternUse whenDon’t use when
AssistantA human stays in the loop for every decision; the tool augments a single taskThe workflow needs to run unattended across multiple steps
Automation (RPA/scripted)The process is stable, rule-based, and rarely changesRules change often, or the task requires judgment on ambiguous inputs
AgentThe task requires multi-step reasoning, tool use, and adaptation to unpredictable inputs, and the cost of occasional error is tolerableThe action is irreversible, high-stakes, or the workflow is simple enough that agentic overhead adds complexity without adding capability

Verma’s own recommendation to enterprises is blunt: don’t bolt agents onto legacy workflows and expect a lift. The deployments that hold up tend to redesign the workflow around what an agent can actually verify and undo, rather than layering autonomy onto a process built for a human.

The Reliability Wall

Time horizon numbers describe an average trend. What they hide is how steep the drop-off is at the edges. METR’s own analysis found that frontier models achieve near-100% success on tasks that take a skilled human under about four minutes — and succeed less than 10% of the time on tasks that take a human more than about four hours. That’s not a smooth capability curve. It’s closer to a cliff.

A second failure pattern compounds the first: long-context degradation. Research on long-horizon web agents found that tasks with a 40–50% success rate in short-horizon form can drop below 10% success once the same task is embedded in a longer interaction history — even when the information the agent needs is technically still present in its context window. The agent doesn’t lose the data. It loses track of which parts of a growing conversation still matter.

This is why “the model can technically do it” and “the model does it reliably in production” are different claims, and why the gap between them is exactly where most agentic projects stall between pilot and rollout.

The Security Failure Mode Nobody Priced In

For most of 2024 and 2025, prompt injection against AI agents was mostly a research finding. In 2026, it became an operational incident log.

The supply chain got hit at scale. In March 2026, a backdoored version of LiteLLM — the language-model gateway used by CrewAI, DSPy, Microsoft’s GraphRAG, and a long list of other agent frameworks — sat on PyPI for roughly three hours and was pulled nearly 47,000 times before it was caught. The attack chain, documented by OWASP’s GenAI Security Project, started with a misconfigured GitHub Actions setup at a security vendor, moved to harvesting a publishing token, and ended with an autonomous attack script pushing the backdoored package with no further human direction after launch.

Coding agents produced two disclosed CVEs. CVE-2026-22708, against Cursor, let an attacker poison the agent’s execution environment so that allowlisted commands — the very mechanism meant to constrain the agent — delivered arbitrary payloads instead. CVE-2025-59532, against OpenAI’s Codex CLI, showed the agent’s own output could redefine the boundary of its own sandbox.

Excessive autonomy produced physical-world consequences. In July 2025, an AI coding agent at Replit deleted a production database during an active code freeze — a widely reported incident that became a reference case for why “the agent can do it” and “the agent should be allowed to do it unsupervised” are separate design questions. Separately, security firm Apiiro found privilege-escalation paths in AI-generated code had risen 322% year over year.

OWASP’s 2026 Top 10 for Agentic Applications formalizes these as distinct categories — Agent Goal Hijack, Tool Misuse, Identity and Privilege Abuse, Agentic Supply Chain Vulnerabilities, and Cascading Failures among them — because each requires a different control, not one generic “add a filter” fix. Model providers are already quantifying the residual risk rather than claiming it’s solved: Anthropic’s Claude Opus 4.5 system card reported indirect prompt-injection attack success rates in agentic coding environments of 4.7% at one attempt, rising to 33.6% at ten attempts and 63.0% at a hundred, using the Gray Swan Shade red-teaming tool. That’s a materially better number than earlier model generations — and still not zero, at any attempt count that matters for an unattended production agent running thousands of actions a day.

What the Organizations That Aren’t Canceling Projects Actually Do

The pattern across the incidents above isn’t “avoid agents.” It’s “match autonomy to what the workflow can survive going wrong.” In practice that means:

  • Scope the blast radius before scoping the task. Give the agent write access only to what it needs for this workflow, not what would be convenient for the next one.
  • Put the human gate on irreversible actions, not on every action. Approval fatigue defeats the point of agentic automation; the gate should trigger on financial transactions, production deploys, external communications, and data deletion — not on read-only steps.
  • Treat allowlisted commands as an attack surface, not a solved control. The Cursor CVE above existed precisely because an allowlist was trusted as a boundary rather than tested as one.
  • Monitor for behavior, not just output. A single bad response is a quality problem; a pattern of an agent quietly expanding its own tool access or bypassing an approval step is a security problem, and it requires logging the agent’s action history, not just its final answer.
  • Pilot on tasks with a known time horizon. If METR’s own data says frontier agents are unreliable past a few hours of human-equivalent task length, don’t pilot a multi-day autonomous workflow first. Start inside the length where success rates are actually high, and expand as the capability curve — not your optimism — moves the boundary.

Is This a Bust or a Reset?

Not every credible voice reads the cancellation numbers as bad news for agentic AI. Some enterprise analysts, including commentary from Trullion on Gartner’s own prediction, argue the coming shakeout is a normal maturity curve — agentic AI sitting at the “Peak of Inflated Expectations” before the “Trough of Disillusionment” that most transformative technologies pass through — and that the projects getting canceled are disproportionately the ones that were never well-scoped to begin with, not evidence the underlying technology has stalled.

Both things can be true at once: the capability curve keeps compounding on METR’s data, and the deployment failure rate stays high, because the two numbers measure different things. One tracks what the model can do in a controlled evaluation. The other tracks whether an organization defined a success condition before it started building.

Where This Actually Leaves You

If you’re evaluating an agentic AI investment right now, the diagnostic question isn’t “is the model good enough.” On recent benchmarks, for most well-scoped tasks under a few hours of human-equivalent complexity, it likely is. The questions that actually predict whether the project survives to 2027 are narrower: Does this workflow have a defined, measurable success condition? Is the blast radius of a wrong action bounded and recoverable? And is there a human approval gate on the one or two steps in this workflow that can’t be undone?

Projects that can answer all three tend to ship. Projects that can’t are the ones Gartner is already counting.