Skip to main content

How would you design an agent's actions so that most mistakes can be undone, instead of asking a person to approve every step?

Agents and tools · Pro 1

Short answer

Sort every action by how reversible it is. Make as many as possible reversible by design: drafts, not sends; soft delete; changes on a branch or staging copy; a dry-run preview; a short delay window before sending. Record enough to roll back. Keep human approval for the few actions that cannot be undone, such as payments and external messages.

Deeper answer

Approval on every step is slow and wears out the reviewer. The better question is: if this action is wrong, what does it cost to undo? Reading costs nothing. Editing a document with version history is cheap to undo. Sending an email to a customer or moving money cannot be taken back.

So I would design the tools to push actions towards the cheap side. The agent writes to a draft or a staging table, and a separate publish step makes it live. Deletes become a flag with a retention period. Bulk changes run first as a dry run that reports what would change. Each action is logged with the earlier value, so a rollback is one command. For actions with no undo, use a compensating action where one exists, such as a refund reversal, or else an approval that shows the exact effect. Interviewers listen for tiers of reversibility, undo built into the tools, and approval kept for what truly needs it.

What a strong answer covers

Answer it out loud in the mock interview about 2 min

Follow-ups to expect

Common mistakes

Learn it

Human approval steps

Practice Agents and tools questions

More on this topic

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.