Skip to content
mentoor

Agent failure modes

For engineers

Loops, goal drift, tool misuse, false success, injected hijacks and reward hacking, and how to detect each in traces

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

Which signal shows that an agent is oscillating between two states?

Choose one answer

Check yourself · 2 of 5

An agent asked to fix one failing test also renames variables in another file. What is this called?

Choose one answer

Check yourself · 3 of 5

A required account_id was never given, and the agent calls the tool with account_id 12345. Which failure is this?

Choose one answer

Check yourself · 4 of 5

Why is an agent's "all tasks complete" message weak evidence of success?

Choose one answer

Check yourself · 5 of 5

What makes an indirect prompt injection different from a direct one?

Choose one answer

Topics

  1. Detecting repetitive loops in production traces5 min read · Repeated calls, oscillation and retry storms, and the trace metrics that catch them early
  2. Goal drift and off-task work5 min read · Agents wandering from the goal, scope creep, overeager changes and losing the original instruction in long runs
  3. Tool misuse and invented arguments5 min read · Calling the wrong tool, inventing parameters, imagining tool results and making destructive calls
  4. Giving up early and false success claims5 min read · Premature done reports, partial work reported as complete, and the verification steps that catch them
  5. Agents hijacked by injected content6 min read · Instructions hidden in web pages, emails or files that redirect an agent, and the signs of it in a trace
  6. Reward hacking and specification gaming5 min read · Agents that delete failing tests, special-case checks or game a metric to satisfy the letter of a goal

Start here

110 questions · last verified 2026-12