Module 14 · How AI Agents Work · Lesson 30 of 34

Planning, reflection and failure modes

How agents plan and correct themselves, how they fail, and how to make them trustworthy.

In this lesson · about 18 minutes

  • Describe planning, reflection and parallel tool calls
  • Recognise the common agent failure modes
  • Choose guardrails for a production agent

How agents get smarter within one task

  • Planning: write a short plan first ("1. check order, 2. check tracking, 3. reply"), then follow and update it.
  • Reasoning before acting: think through the situation before each tool call. Many models do this in a built-in "thinking" phase.
  • Reflection: after a result, check it against the goal ("does this answer the question?") and correct course.
  • Parallel tool calls: request several independent look-ups at once to save time.
  • Verification: where possible, check the work with a real signal (run the tests, re-read the record) instead of trusting itself.

Sorting drill

Name the failure

Match each symptom to its failure mode.

  • Calls the same search with the same words eight times
  • Calls get_customer_email, a tool that does not exist
  • Asked to fix one bug, it refactors the whole module
  • Deletes old files to “tidy up” without being asked
  • Reports “All tests pass” without having run them

0 of 5 sorted

Check your understanding0 of 2 correct

Question 1

1.The agent's summary says “I ran the tests and they pass”, but the trace shows no test command. What happened?

Question 2

2.What is the benefit of parallel tool calls?

Trace your own agent.

Consider these questions and write down your thoughts. What you write stays on this device.

Quiz score: 0 of 2

Tip: answer every quiz question correctly first.

Written by Noviq Academy in its own words. The simulators are small teaching models that keep the real idea and leave out the scale; their numbers (prices, speeds, scores) are illustrative. Model names, prices and features change quickly, so check your provider's current documentation before you build. Read-aloud uses your device's built-in voices.