The Debugging Discipline

A five-trace drill: hypothesis first, answer overleaf.

AI Delivery Skills & Workflows Β· Expert Β· 10 min read Β· 5 quiz questions

By Ronan Liedmeier, fractional head of growth and course author Β· Reviewed 13 October 2026

What you will learn

  • The five traces at a glance
  • The band-aid vs the real fix
  • Read the error literally first
  • Write a one-sentence hypothesis
  • Consult AI to check, not to think for you

Lesson preview

Before you paste any error into an AI, do four things. First, read what the error literally says β€” the file, the line number, the error type, the message. Don't skim it; read it. Second, write a one-sentence hypothesis. In writing, even if you're not sure. Third, now consult the AI β€” but you're checking a hypothesis, not asking an oracle to think for you. ' The gap between what you thought was wrong and what was actually wrong? That gap is your entire curriculum. Here's what each trace teaches you. Trace 1 β€” TypeError: Cannot read properties of undefined. ok first. ok with a structured error, then validate the success shape with Zod. elements ?? []) β€” this makes the crash disappear and installs silent error-swallowing in its place. content: Input should be a valid list. Real cause: an assistant tool-use turn was replayed as a bare string. content verbatim; type the history structure so this can't happen silently again. Trace 3 β€” relation does not exist (works locally, fails in staging). Real cause: the migration was never applied to staging. Real fix: migration lives in the repo; CI checks that migration history matches the target project. Trace 4 β€” 429 contention across accounts. Covered in depth in the example above. Retrying harder cannot fix contention between requests. slice(0, 50) is added. Real cause: the 'performance cap' silently changed semantics β€” the model summarised a sample while the report quoted totals. Real fix: compute totals in code over all rows; pass computed aggregates to the model. If context length forces truncation, truncate detail rows β€” never numbers.

Continue reading

Frequently asked questions

Who is "The Debugging Discipline" for?
This Expert module in AI Delivery Skills & Workflows is for operators, founders and growth teams who run AI in real work and want production-grade judgement. It takes about 10 minutes and ends with a 5-question quiz.
Do I need to code?
Not to follow the lesson. The concepts are explained in plain language; if you build AI systems yourself, the exercise shows where the ideas map onto code.
What comes before and after this module?
Before "The Debugging Discipline", take "Prompt Engineering at Production Quality" (module 6 of AI Delivery Skills & Workflows). It is the last module of AI Delivery Skills & Workflows; continue with another volume in the curriculum.

Unlock this lesson and the full academy

  • Monthly€9.99 / month
  • Yearly€69.99 / year
  • Lifetime€129.99 one time

Loading your lesson…

Related modules