Back to the curriculum

L3-M08 · Level 3 · ~28 h

Level 3 Capstone - AI Agent Testing Framework

What you build: AI Agent Testing Framework

lessons
4
lesson hours (estimate)
≈ 28 h
0/4 lessons marked done · Progress is saved in this browser only. No account, nothing is sent to a server.
In review. The curriculum, module overviews and Levels 1–3 lessons are drafts written with AI assistance and reviewed by AI. Human review is still pending. English translation: AI-assisted, not human-reviewed.

Levels 1–3 lessons, exercises and quizzes are published as drafts, in Vietnamese with an AI-assisted English translation. They may change after human review.

Module path

  1. Lesson 1 · L3-M08-L01≈ 4 h

    Capstone brief and framework design

    What you build: Design document

    Needs: L3-M07-L05

  2. Lesson 2 · L3-M08-L02≈ 9 h

    Scenarios, sandboxed tools and trace capture

    What you build: Working harness

    Needs: L3-M08-L01

  3. Lesson 3 · L3-M08-L03≈ 8 h

    Trajectory, state, reliability and security suites

    What you build: Full evaluation run

    Needs: L3-M08-L02

  4. Lesson 4 · L3-M08-L04≈ 7 h

    Trace-level report, defence and self-assessment

    What you build: Final report and rubric self-score

    Needs: L3-M08-L03

A. Overview

Field Value
Module ID L3-M08 (capstone)
Description Build a small, offline, repeatable agent testing framework (agentqa) for the NhaKhoa Mini booking assistant (a fictional dental clinic; a simulated agent, no real model) with two builds, stable and rc, then use it to provide trace-level evidence for the question "can rc be released?". The framework combines the skills of M01-M07: a risk map (M01), fake tools in a sandbox with a side-effect ledger (M02, M06), task scenarios and end-state oracles (M03), trajectories (M04), state and session isolation (M05), fault injection, idempotency, pass^k and budgets (M06), indirect injection, permissions and approval (M07). Every number in the system is simulated.
Why This is the proof of competence for Level 3: an agent with tools and side effects, a framework you built, findings that point at the exact event in a trace, and a decision signed by a person.
Estimated duration 4 milestones (~4 + ~9 + ~8 + ~7 hours) ≈ 28 hours (roughly 24-34). Estimate, not yet measured with real learners.
Prerequisites L3-M01 to L3-M07 (the last lesson being L3-M07-L05). Python 3.14 or 3.12 and pytest==9.2.0. No API key and no network needed.
Output Design document and exploration notes, a working harness (scenarios, sandbox, trace), a full run with five test suites and an adversarial scenario set, a trace-level report with a gate, a decision record, a defence, a self-assessment (the Level 3 portfolio deliverable "AI Agent Testing Framework")
Assessment Capstone rubric (capstone-projects/project-03-ai-agent-testing-framework/rubric.md): ≥ 70/100 and every mandatory criterion M1-M7. The capstone has no separate quiz or exercise: competence is assessed through the product, the acceptance test suite, your scenario set (the grader runs it again) and the defence session
Cost 0 VND

What this module does not do. It does not call a real model, does not call a real system and does not send real messages (SMS only lands in the sandbox outbox). It does not state the price or speed of any provider and does not rank any model or vendor. It does not create an automatically running workflow in the repository. The framework only provides evidence; the gate only reports HOLD or READY_FOR_REVIEW; a person decides.

B. Objectives

ID Objective
CO1 Design an agent testing framework from clauses C1-C11 and risks across five layers, with traceability and a decision policy written in advance.
CO2 Build a deterministic harness: scenarios are validated data, the sandbox follows the tool contract, faults are injected as planned, the trace runs on a logical clock and is linted, end-state oracles.
CO3 Evaluate the agent through the trajectory, state, reliability (pass@1, pass^k, budget) and security suites, on a scenario set with an adversarial subset that stable passes on every seed.
CO4 Report findings with trace-level evidence, implement a fail-closed gate, make a decision signed by a person, defend it and self-assess against the rubric.

C. Milestones

ID Milestone Duration Output
L3-M08-L01 Brief and framework design ~4 h Design document, exploration notes
L3-M08-L02 Scenarios, sandboxed tools and trace capture ~9 h Working harness
L3-M08-L03 The trajectory, state, reliability and security suites ~8 h Full run
L3-M08-L04 Trace-level report, defence and self-assessment ~7 h Final report, decision record, rubric self-score

D. Objective ↔ assessment matrix

Objective Milestone Rubric
CO1 1 design
CO2 2 harness; M1, M2
CO3 3 suites, findings; M4, M5
CO4 4 findings, report_gate, defence, self_assessment; M3, M6, M7

E. References

See references.md.