Free self-study · No account needed · Progress stays in this browser. Back it up before clearing site data or changing devices.

← All weeks

Agents, Skills, and MCP / Week 09

Agent Fundamentals

Build a bounded agent runtime. Use the Week 5 client and a supplied read-only tool to run twenty tasks without an agent framework.

Your lessons

  1. 01

    Building an observe decide act loop

    60 minutes planned · 7 sections
    Start →
  2. 02

    Stopping an agent predictably

    60 minutes planned · 7 sections
    Start →
  3. 03

    Planning bounded actions

    60 minutes planned · 7 sections
    Start →

// Put it into practice

A bounded agent runtime

  1. Download week09.py from a lesson's practice section. Follow its setup instructions before running it.
  2. Lesson 1: Build a loop using one supplied validated read-only tool and trace a success and timeout.
  3. Lesson 2: Run an always-failing tool under bounded execution and then a successful lookup.
  4. Lesson 3: Trace an eligibility and cancellation workflow using a harmless local simulator.
  5. Run the supplied assertions and record actual results; a simulated contract check does not certify real model quality.
Download week 9 Python lab ↓

Read the script’s setup instructions and run it on your own computer. The website does not execute code or verify your results.

// Independent work

W09-LAB

Week 9: A bounded agent runtime

Use the Week 5 client and a supplied read-only tool to run twenty tasks without an agent framework.

Extend the guided artifact rather than start a second project. Record task outcomes, iterations, calls, and termination; no missing tool result becomes a success claim.

What to produce

  • A bounded agent runtime
  • Setup commands, data or generation procedure, versions, and recorded outputs
  • Acceptance results and a precise limitation

Check your work

  • Record task outcomes, iterations, calls, and termination; no missing tool result becomes a success claim.
  • Each claimed execution is supported by actual saved output.
  • Fixture results and real model results are identified separately.
  • Setup and reproduction use the taught tools without private credentials.
Self-assessment rubric
Technical correctness · 35 points
Implementation or analysis follows the relevant technical mechanism and handles the stated case.
Evaluation and evidence · 30 points
Reproducible tests, appropriate baseline, and accurate interpretation.
Engineering quality · 20 points
Clear structure, safe boundaries, and usable reproduction instructions.
Explanation and reflection · 15 points
Explains tradeoffs, limitations, and next experiment with evidence.

// Retrieve before you reread

Week 9 knowledge check

Try all 6 questions. Check your answers, review the explanations, and retry whenever you like. Answers are checked on this device.

1. An agent proposes a storage-status lookup, but no tool response arrives. What may its final response honestly claim?
2. A runtime permits completed only after an ok observation. Which attempted transition must be rejected?
3. A task budget is eleven cost units; seven are used and the next call reserves five. What should the dispatcher do?
4. A loop repeats the same not_found lookup four times with unchanged arguments and state. Which control directly addresses this pattern?
5. A free cancellation is eligible at read time but requires a fee before execution. The user authorized only a free cancellation. What is valid?
6. A simulator returns denied but changes active from true to false. Which test exposes the defect?

Next: week 10 →