Agents and AutomationLesson 37 of 72

Module 4 · Surviving real data

Thirty tasks you run before every change

In this lesson

  • 10 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 9 of 9 in this chapter

This chapter’s goalDiagnose a failing agent run from its trace and apply the specific fix it needs: a retry policy, a validator, a shorter chain, or no loop at all.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Assert on the world, not the words

Evaluating a chatbot is hard because the output is prose and prose has no correct answer. Evaluating an agent is easier than people expect, because agents change things, and things are checkable.

After the run, ask the environment:

  • Does the row exist in the database, with these three field values?
  • Does the file at this path contain this string?
  • Was the draft email addressed to this person, and does it contain the correct amount?
  • Was the refund tool called with an amount under the cap?
  • Was the delete tool called at all?

These are ordinary assertions. They are objective, cheap and stable across model versions, and they do not require a judge model or a rubric. This single move, score the end state, not the final message, makes agent evaluation tractable and is the thing most teams have not done.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Context Engineering exam.

Stuck on something?Ask Mai, your AI tutor

How to cite: Addaly (2026) ‘Thirty tasks you run before every change’, in Agents and Automation. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/agents-and-automation/golden-tasks-for-agents (Accessed: 29 November 2026).