What it's calledUndo toastsnackbar with undoGlossary
What goes wrong
Asking "Are you sure?" before every archive adds a dialog and a second click to the most common action, and people learn to confirm without reading.
The fix
Do it at once and offer Undo in a toast for a few seconds; keep confirmation for what cannot be undone.
Tell your AI
For actions that can be reversed, act immediately and show a toast at the bottom with the result and an Undo button for 6 seconds, rising var(--ds-distance-lg) (16px) over var(--ds-duration-base) (240ms) with var(--ds-ease-out) as a var(--ds-text) pill with var(--ds-surface) text; install the LayQ component toast-stack (/registry/v1/controls-toast-stack.json) and pass Undo as its action.