Safe behaviour · 2026-10-06

Your agent can delete customer records.

The team is nervous about letting it run unattended.

  1. ATake the delete tool away and do those by hand
  2. BLet it delete freely but log every deletion with a full copy of the record, so anything removed by mistake can be restored from the log afterwards
  3. CShow a confirmation dialog before every single action the agent takes
  4. DMake the destructive tool support a DRY RUN that reports exactly what would change, and take the approval on that report

Answer: D

Make the destructive tool support a DRY RUN that reports exactly what would change, and take the approval on that report

Why

People can only approve what they can see. A dry run turns «trust me» into a reviewable list; confirming every action instead trains reviewers to click through, and a log tells you what went wrong only after it has.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path