Awesome Testing

Evaluation lesson 05 · Grade actions and policy

Did the copilot take the right action under the right authority?

Shared evaluation case · deterministic fictional data

Northstar Support Copilot. A fictional ecommerce support copilot retrieves versioned policies and synthetic customer records, drafts replies, and proposes sandboxed account actions. It cannot send or mutate anything without current authorization and exact human approval.

01 · Smallest useful mechanism

Evaluate action correctness and business-policy compliance separately.

Tool evaluation checks selection, arguments, principal, resource scope, preconditions, approval binding, ordering, idempotency, partial failure, and reconciled final state. Unknown outcomes must be observed before retry.

A successful API response proves execution, not authorization or semantic correctness.

02 · Experiment

Test the prediction

Deterministic fictional fixture

The grade actions and policy workbench uses versioned, inspectable teaching data. It does not claim to reproduce live customer traffic or model behavior.

Evidence workbench

Build the evaluation argument

Choose the assertions that prove a refund proposal was safe and correct.

Fixture northstar-tools-v1

03 · Decision artifact

Write the evaluation argument another reviewer can audit

Use synthetic or properly governed data. Keep critical failures visible instead of compressing them into one score.

  1. Claim

    Define task-success and policy-compliance claims independently.

  2. Evaluation design

    Create sandbox preconditions, permitted sequences, failure injections, and state predicates.

  3. Release evidence

    Attach tool traces, policy version, approval record, operation ID, and final-state diff.

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

What should happen after a refund call times out after dispatch?

Theory notes and sources

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

Next: Deterministic assertions cannot capture every quality dimension, so the next lesson calibrates human and model judges without treating either as ground truth by default.