Skip to content
PRANINNOVATIONSProduction Specialists

Core practice

Agents that behave when the tools misbehave

Any agent works when every tool returns clean data. The engineering is in what happens on the 503, the empty record and the malformed response — because in production those arrive daily.

Production architecture for the AI Agent Development practice

AI Agent Development

The situation

Before we start

01

It was only ever tested on the happy path

Demos exercise the case where every tool returns clean data. Production is mostly the other cases, and nobody wrote down what the agent should do in them.

02

A confident number nobody can trace

An agent that invents a value is worse than one that crashes, because nothing downstream can tell an invented answer from a real one. That is the failure we test for first.

03

Nothing bounds the loop or the spend

Retries, tool errors and self-correction multiply steps quietly. Budgets and termination conditions are part of the acceptance criteria, not a later optimisation.

What working means here

Signed first. Measured after.

The value of each one is set with you during scoping, from your data and your line. What does not change is that they are written down first and published against afterwards, pass or fail.

  1. 01

    Fabrication rate under tool failure

    Share of runs where the agent asserted a value no tool ever returned, measured against an instrumented tool bench

  2. 02

    Recovery rate on transient errors

    Share of injected 503s the agent retries and resolves, rather than abandoning the task

  3. 03

    Step and cost bound adherence

    Share of runs terminating inside the agreed budget, with no unbounded loops

We publish the measurements behind this practice, including the runs that failed.

Agent Tool-Failure Recovery Benchmark 2026

How it is assembled

Stage by stage

Each one ends in something you keep.

  1. Step 01

    Bound the job

    What the agent may do, what it may touch, and where a human stays in the loop. Written before any code.

  2. Step 02

    Build the bench first

    The instrumented tool surface that fails on purpose, so the failure path is testable from day one rather than discovered in production.

  3. Step 03

    Build against the bench

    The agent is developed against injected failures, not just clean data. Nothing ships that has not been broken deliberately.

  4. Step 04

    Measure and gate

    Fabrication, recovery and budget adherence measured on every change. A release that regresses does not go out.

  5. Step 05

    Operate or hand over

    Audit trails, runbooks and training, or we run it under an agreement.

Scope

What the work includes

  • Task definition: what the agent decides, and what stays with a human
  • Tool surface design with explicit, least-privilege permissions
  • Failure-path specification: retry, escalate, or abstain — decided per tool, in writing
  • Step, latency and cost budgets enforced in code, not by prompt
  • An instrumented tool bench that injects timeouts, errors, malformed and empty responses
  • Evaluation suite run on every change, gating release
  • Audit trail: every tool call, argument and result, retained and queryable
  • Deployment inside your environment under your identity provider

Deliverables

What you keep

  1. 01Signed acceptance criteria: fabrication ceiling, recovery floor, step budget
  2. 02Working agent in your environment
  3. 03Tool bench and evaluation suite, yours to run
  4. 04Audit-trail schema and retention policy
  5. 05Runbooks and escalation path
  6. 06Source, prompts and IP assignment

Typical stack

Python · TypeScript · OpenAI / Anthropic APIs · Open-weight models · PostgreSQL · OpenTelemetry · AWS / Azure / GCP

Enterprise AI SaaS

Document-grounded enterprise chat with audit trails

VectraGPT answers questions from a company's own documents. Every answer carries its sources and every exchange is logged. We built the retrieval stack end to end, including multi-tenant serving.

Read the engagement
Multi-tenant
isolated serving per customer
Sourced
citations on every answer
GDPR / SOC 2
audit trails and data handling

Start

How AI Agent Development begins

AI Pilot $28K–60K · Production builds $75K–180K

Where an engagement lands inside its band is set by data readiness, integration depth, the reliability bar, evaluation burden, deployment constraints and usage economics. All six, explained.

Thirty minutes on the problem and where it happens, then a fixed-price pilot if it looks like a fit.

Get a costed plan

FAQ

Asked before signing

We measure it. Our published tool-failure benchmark ran three models through six injected failure modes 219 times and recorded how often each asserted a value no tool had returned. That harness becomes your evaluation suite, run against your own tools and your own data.

Not hallucination — abandonment. In our benchmark, two of three models never retried a tool that explicitly returned "503 temporarily unavailable, retry", and reported the data as unavailable instead. Transient errors are the most common failure in production, so that behaviour surfaces constantly.

Whichever clears the acceptance criteria at the lowest cost per completed task. Our own results show the ranking is not simply largest-is-best: on transient-error recovery the smallest model we tested outperformed the two larger ones outright. The evaluation decides, not the brochure.

Yes. Open-weight models can be served on your own hardware, and the same bench and evaluation suite run unchanged against them so the comparison is like for like.