Checklist

Testing AI agents before production: a checklist

Agents fail in ways ordinary software does not. This checklist covers the layers of testing an agent should pass before it touches live work.

By iFortis Worldwide ResearchPublished Updated 3 min read

On this page

SummaryTest an AI agent in layers before production: deterministic tests for tools, scenario tests for whole tasks, limit and permission tests, failure injection, adversarial inputs, and load and cost tests. Run scenarios repeatedly, because the same input can produce different paths.

What makes agent testing different

Conventional software gives the same output for the same input. An agent may take a different path each time: a different tool order, a different wording, sometimes a different conclusion. It also acts across many steps, so a small early mistake can compound. Testing must therefore cover the parts that are deterministic, the behaviour that is not, and the controls that hold when behaviour goes wrong.

Use the list below as a release gate. Each item should have evidence attached, not a tick from memory.

Layer one: tools and plumbing

  • Every tool has unit tests for valid input, invalid input and empty results.
  • Tool descriptions match what the tools do. A stale description misleads the model.
  • Write tools are idempotent and tested for duplicate calls.
  • Timeouts, retries and error messages are defined and exercised.
  • Tests run against a sandbox or a faithful copy of each connected system, with realistic data volumes.

Layer two: whole-task scenarios

  • A scenario set covers routine cases, hard cases and cases the agent should hand to a person.
  • Each scenario checks the final state of the systems, not only the text the agent produced.
  • Each scenario runs several times. Record the pass rate, not a single result.
  • Trajectories are reviewed: did it take a sensible path, or reach the right answer by luck after ten wasted steps.
  • Long tasks are tested for context loss, such as forgetting an instruction given early.

Layer three: limits and permissions

  • Requests above each authority limit are blocked by code, and the block is logged.
  • The agent identity cannot reach data or actions outside its scope, even when asked directly.
  • Approval steps cannot be skipped by rephrasing the request.
  • Step, time and spend ceilings stop a runaway loop.
  • The stop control halts work in progress and leaves systems in a known state.

These tests matter most. Model behaviour will vary. The guardrails around it must not.

Layer four: things going wrong

  • A tool returns an error, a timeout or malformed data.
  • A dependency is slow or unavailable for an hour.
  • The model provider returns rate-limit errors or a degraded response.
  • Source data is missing, stale or contradictory.
  • A task is interrupted halfway and resumed.

In each case the right behaviour is to stop cleanly, report clearly and avoid partial writes. An agent that improvises around a failed tool is more dangerous than one that gives up.

Layer five: hostile and awkward inputs

  • Documents and messages containing embedded instructions, the classic prompt injection case.
  • Requests to reveal system prompts, credentials or data on other customers.
  • Inputs in unexpected languages, formats and lengths.
  • Users who are insistent, emotional or deliberately vague.

Layer six: load, cost and operations

  • Throughput and latency at expected peak, plus a margin.
  • Cost per completed task at realistic volume, compared with the budget.
  • Behaviour when the queue backs up.
  • Dashboards and alerts fire on a seeded failure.
  • The on-call team has run the rollback procedure once.

Four final conditions apply before sign-off.

  • Results are reviewed by the business owner as well as engineering.
  • Known weaknesses are written down with the control that covers each.
  • A shadow period on live traffic, with no write access, has confirmed that test results hold on real work.
  • The scenario set is in the pipeline and will rerun on every future change.

Passing this list does not prove an agent is correct. It shows that when the agent is wrong, the error is caught, contained and visible. That is the standard production requires, and it is the one trust and governance reviews will ask about.

All insights RSS feed

Tell us the outcome you need

The first meeting is a working session about your situation, with an engagement lead, not a sales call.

Contact us Submit an RFQ