Awesome Testing

Agent lesson 06 · Mediate every effect

What must happen between a model proposal and a real side effect?

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

A tool call is untrusted structured data until the application accepts it.

Safe tool use is complete mediation. Parse the proposed call, validate its schema and semantic constraints, bind it to the current principal, check the least-privilege policy, require meaningful confirmation for consequential effects, execute within bounded resources, and return a sanitized observation.

The model may propose an action; schemas, authentication, authorization, risk policy, approvals, and the executor decide whether an effect occurs.

02 · Experiment

Test the prediction

Deterministic browser simulation

The mediate every effect 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

    Write an acceptance matrix for each exposed tool: schema, semantic rules, principal, resource scope, risk tier, approval, limits, output handling, and outcome check.

  2. Break it on purpose

    Submit a schema-valid path traversal, an injected purchase instruction from a product page, and a write that times out after dispatch.

  3. Evidence of completion

    The first two proposals produce auditable zero-effect denials; the unknown write is reconciled by operation ID and target state before any retry.

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

Which principle most directly limits blast radius?

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

Next: A safe-looking design is still a hypothesis. The next lesson measures outcomes, traces, reliability, cost, and forbidden effects.