
Download Reliable-AI-Agents-Learner-2026-10-10-v1.zip below as your main course package and extract the whole folder. Start with its README, keep an unchanged reference copy, and run the terminal commands from the labs folder. The package includes the Python reference project, fictional cases, tests, three starter coding tasks, the workbook, 20 downloadable practice questions, and the final architecture assignment with its rubric.
Use Python 3.10 or later, a text editor and a terminal. The core lab uses only the standard library; no API key, paid model account, GPU or Jupyter is required. An optional companion notebook runs the same lab if you already use Jupyter. The reference project has 26 tests and 12 scripted evaluation cases. The three starter-function checks are expected to fail until you complete those tasks.
The downloadable handout includes two practice questions per lesson. Three course checkpoints review selected concepts at the section endings: after L04, L07 and L10. Attempt the exercises and final architecture task before opening the worked answers attached to L10. Use those answers to compare reasoning and revise your own solution; access is not restricted.
The tickets are fictional, model responses are scripted, and reviewer approval is simulated. Passing these checks demonstrates local control behavior; it does not establish real-model accuracy or production readiness.
Answer Keys — Try the Exercises First: after your own attempt, open Resources on L10, "Build Your Reliable Workflow Architecture", and download "Answer Keys - Try the Exercises First.zip". The three starter-function solutions are in labs/instructor/answers.py; workbook and model-architecture answers are in course/exercise-answer-key.md, and the 20-question handout answers are in course/quiz-answer-key.md. Follow the ZIP's README to check the solutions. Access is not restricted.
Trace how a plausible final answer can hide an invalid action. Set up the original offline support-ticket lab and distinguish deterministic control tests from real-model quality. Run the demo and inspect the proposed action before execution.
Choose the smallest useful decision space. Separate a fixed workflow from model-selected planning, identify trust boundaries, and justify which decisions remain deterministic.
Validate exact fields, types and allowed values. Reject unexpected keys and unsafe actions before executor access, while recognizing that schema compliance does not prove semantic truth.
Classify contract, transient and policy failures. Bound repair attempts and time, keep policy checks unchanged, and reconcile uncertain writes instead of replaying the entire workflow.
Enforce an explicit tool allowlist and argument checks. Inspect local SQLite deduplication and identify where remote services need their own idempotency or reconciliation.
Bind an expiring approval to the immutable proposal digest. Test tampering, expiry and changed payloads. Distinguish the teaching approval simulator from a production identity service.
Inspect real local JSON-RPC stdio exchanges pinned to MCP 2025-11-25. Separate tool discovery from permission, and compare that compatibility exercise with the 2026-07-28 stateless-core change.
Measure the actual event trajectory as well as the final outcome. Run deterministic cases, investigate false success, and explain why fixture results do not establish real-model accuracy.
Use allowlisted trace fields to diagnose a failure without routinely recording ticket text or credentials. Distinguish redaction, access control and retention decisions.
Complete the integrated architecture exercise. Explain the approval, retry and execution boundaries, demonstrate tests, and identify the work still required before a live production deployment.
Complete your workbook and final architecture attempt before opening these worked answers. Use them to compare reasoning, identify gaps and revise your own solution.
Optional references: Reliable Agents Quick References, Agent Reliability Vocabulary, and Framework Comparison are attached below for consultation. They do not add required curriculum items.
Answer Keys — Try the Exercises First: the attached "Answer Keys - Try the Exercises First.zip" provides the runnable solutions to should_retry, approval_matches and safe_trajectory in labs/instructor/answers.py, plus the workbook/model-architecture answers and the 20-question handout answers. Attempt the exercises before consulting them; access is not restricted.
To check the three worked functions, follow the ZIP's README: copy its labs/instructor/ folder into your extracted learner project's labs/ folder, then run python student/check_exercises.py --solution -v from that learner labs/ folder. This leaves student/exercises.py unchanged.
Optional worked example: download L10-Guided-Extension.zip in Resources. Trace a new 160-character note limit from a failing boundary test to a one-line fix and 29 passing tests. The ZIP includes a 55-second visual walkthrough (no narration), an illustrated guide, a notebook and runnable Python. No API key is required.
Start here with the downloadable Python lab. Find the right folder, select your local Python command, replay both saved proposals and verify the clean test suite. No key, installable package or provider account required if you already have Python 3.10 or newer.
Inspect the actual JSON request in Python, locate the ticket and schema, run the offline plan, and make the local budget check stop on purpose. See the boundary between a free dry-run and an optional paid call. No API request occurs in this class.
Compare a real, recorded OpenAI response with its fictional source ticket. Read the receipt, identify an unsupported diagnosis, and separate response status, schema validity, and factual fidelity. Download the shared Python lab from the Resources tab in the first lecture of this section. Replay needs no key or API account.
Run the saved proposal offline. Compare the original course contract with a stricter fixture-specific check. Try a separately labeled correction, then verify missing approval, a single local commit, and duplicate delivery. Keep the original record unchanged.
Use local, deliberately constructed response envelopes to exercise the parser. Identify the first rejected boundary, trace a valid control and add a regression case. The mock examples are not additional provider responses.
Inspect the saved result of one real Claude Messages request. Reproduce what happens with no approval, simulated approval and duplicate delivery in a local SQLite database. The same downloadable Python lab works offline for both providers.
Keep the genuine response intact and test an intentional mutation. Watch a wrong but schema-valid queue pass the starter rule, implement the narrow routing check, and verify the valid path still works. The mutation is an exercise, not historical Claude output.
Follow the real request structure: ticket, system instructions, output schema and budget. Locate the network boundary, see how an optional learner request would create a receipt, and compare offline plan with saved replay. Claude Messages is not Claude Code.
Run the offline diagnosis, contrast an end-turn control with mock refusal, incomplete, malformed and mismatch cases, then add your own labeled regression without calling a provider.
Write down supported and unsupported claims for two new fictional tickets, inspect four deliberately authored candidates and capture the failing 2/6 starter. These four mock candidates do not come from live providers.
Implement the routing check, rerun your own starter, compare the 6/6 reference result, and explain the effect counts and a false-review limitation. Submit a reproducible local red-to-green report.
Keep your work locally and use the included 20-point rubric to self-assess. No upload to the instructor or paid API call is required.
A guided text lab for learners who choose to try one real API request. Not required to complete any exercise. Includes free dry-run and replay instructions.
This course contains the use of artificial intelligence.
Consider this synthetic capstone example: a support ticket says a customer was charged twice. The model returns valid JSON and blames the bank. Would your workflow let that claim through?
Inspect saved responses from real OpenAI and Claude calls, replay them locally at no API cost, and decide what the agent is allowed to do. In this hands-on Python course, you will test a support-ticket workflow rather than trust an answer because it looks convincing.
Start with structured-output contracts, bounded retries, approval tied to an exact payload and expiry, and SQLite protection against duplicate effects. Use trajectory evaluations to inspect attempted actions and event order. Explore a version-pinned local MCP client/server boundary and why a connection does not grant permission.
The OpenAI Responses API and Claude Messages API workshops take you from a Python request to a saved response and a controlled local effect. Inspect request fields and budget checks, challenge an unsupported claim, repair a valid-looking queue mistake, and debug labeled refusal, truncation, and invalid-proposal cases.
Then extend a regression case and complete a two-provider capstone: design your test, repair the local gate, and defend the outcome with the included self-assessment rubric. Compare evidence rather than rank providers from a tiny sample.
You will work with downloadable Python projects, guided exercises, quizzes, reference material, answer keys, and a companion notebook. All required exercises can be completed through local replay without an API key, paid model account, or GPU. Your deliverable is runnable code and a repeatable method for explaining what a workflow may do and how you checked its behavior.
The core workflow and selected failure fixtures use scripted responses and simulated reviewer decisions; the provider labs clearly distinguish these from saved responses from actual API calls with fictional tickets. Recorded usage and cost estimates are historical examples, not guarantees of future prices, model accuracy, or production readiness.
An optional one-call API lab is included for learners who want to use their own provider account, API key, and available credit. Live calls may incur provider charges and are not required to complete the course.
You should already understand basic Python functions, dictionaries, loops, small classes, exceptions, and terminal commands. No previous MCP or SQLite expertise is required. This is a focused coding workshop, not a first programming course or a no-code tool tour.