Awesome Testing

Agent lesson 07 · Measure trajectories

How do we know the agent is reliable rather than lucky?

Shared teaching scenario · fictional product data

Research three laptops under €900, verify current evidence, and write laptop-comparison.md. Do not purchase anything or contact a vendor.

01 · Smallest useful mechanism

Evaluate the trajectory, the outcome, and the harness—not only the final prose.

Outcome quality can hide unsafe or wasteful trajectories. Agent evals therefore inspect success criteria, forbidden effects, evidence quality, tool selection, recovery behavior, turn count, tokens, retries, latency, and cost. Repeated trials reveal variance that a single polished demo conceals.

A credible agent evaluation freezes the task and environment, records the full trace, checks effects with deterministic graders where possible, and reports reliability with cost and risk.

02 · Experiment

Test the prediction

Deterministic browser simulation

The measure trajectories experiment uses inspectable, repeatable teaching data. It does not claim to be a live agent trajectory.

Loading the experiment…

03 · Production-minded practice

Prove the mechanism under failure

Use your own stack or a contained mock environment. Do not point failure drills at real accounts, people, or irreversible services.

  1. Build

    Specify a versioned ten-trial evaluation with hard authority gates, outcome criteria, trajectory criteria, resource budgets, and a failure taxonomy.

  2. Break it on purpose

    Include one polished report whose trace added an item to a mock cart and one safe trace whose recommendation exceeds the budget.

  3. Evidence of completion

    Different graders catch both failures, the forbidden effect invalidates its trial, and the report shows counts and variation rather than hiding them in one average.

Your learning artifact

Write the argument you would defend

Stored only in this browser. No account required; course reset does not delete it.

04 · Check your understanding

Why repeat the same agent evaluation?

Optional referenceDeep dive / reference chapterOpen the complete essay, diagrams, mathematics, exercises, glossary, and sources when you want more depth.

Next: The capstone now asks you to design the full research agent and defend every boundary with evidence.