This tutorial diagnoses a real failure in a multi-step coding agent. The agent is asked to implement min_coins (coins, amount) — a classic dynamic programming problem where greedy fails. It plans the ...