Your agent can delete customer records.
The team is nervous about letting it run unattended.
- ATake the delete tool away and do those by hand
- 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
- CShow a confirmation dialog before every single action the agent takes
- 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.
- Safe behaviourApproval prompts appear so often that reviewers now click «allow» without reading them.
- Safe behaviourAsked to mirror a project, your coding agent wrote a clean-up script, ran it and deleted 48,000 files.
- Safe behaviourAn agent sent to read public statistics also read closed files on the same server.
- Safe behaviourYour support agent can now issue refunds through a tool.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path