Skip to content
olanrewaju.

How I evaluate an AI agent

Eight checks I run before an agent meets real users, and keep running after. Each one comes with a note from work that shipped.

See the work
  1. Step 01: Define the job and what “good” means

    An agent can’t pass or fail until “good” is written down, including when it should say no.

    What I check

    • Task spec and success criteria
    • Failure severity tiers
    • When the agent must refuse or hand off

    Tools

    • Specs
    • Rubric docs
  2. Step 02: Build the eval set

    Demos test the happy path. Real traffic and adversarial inputs find the failures users will hit.

    What I check

    • Golden scenarios and sampled production traffic
    • Edge cases and adversarial inputs
    • Versioned like code

    Tools

    • Braintrust datasets
    • LangSmith datasets
  3. Step 03: Write rubrics and graders

    A grader nobody has checked against humans is just another model’s opinion.

    What I check

    • Deterministic checks first
    • LLM-as-judge calibrated against human labels
    • Judge–human agreement tracked over time

    Tools

    • Braintrust scorers
    • Custom harness
  4. Step 04: Evaluate the trajectory, not just the answer

    A right answer reached through the wrong tools is a failure waiting for different inputs.

    What I check

    • Tool choice and arguments
    • Call ordering and recovery from tool errors
    • No wasted calls

    Tools

    • Phoenix traces
    • LangSmith traces
  5. Step 05: Check grounding and faithfulness

    In high-stakes work, an answer is only as good as the evidence it points to.

    What I check

    • Every claim traces to source evidence
    • No invented citations
    • No invented codes

    Tools

    • Phoenix retrieval evals
  6. Step 06: Stress the guardrails

    Agents meet users who push. The failure modes have to be found before they are.

    What I check

    • Persona drift
    • Prompt injection and jailbreaks
    • PII and HIPAA handling
    • Correct refusals

    Tools

    • Custom red-team suite
  7. Step 07: Measure cost, latency and consistency

    An agent that’s right but slow or expensive still doesn’t ship.

    What I check

    • p95 latency
    • Tokens and cost per task
    • Variance across repeated runs

    Tools

    • LangSmith
    • Braintrust experiments
  8. Step 08: Gate in CI and watch in production

    Every prompt or model change is a release, so it gets a regression gate like one.

    What I check

    • Regression gate on every prompt or model change
    • Audit logs and drift monitoring
    • Failures fed back into the eval set

    Tools

    • Custom CI harness
    • Phoenix
    • Prometheus