---
title: "Comment by Damiano Bianda on \"Designing the Permission Layer for an AI Agent That Can Send Your Email\" | Hashnode"
description: "The \"right action, twice\" framing is the sharpest part of this - it is the same failure class payment APIs solve with idempotency keys, and the \"outcome unknown"
url: "https://hashnode.com/posts/designing-the-permission-layer-for-an-ai-agent-that-can-send-your-email/6aeaf35fe04dc9abc8f97918/comment/6aeb0543cd35c8ae4f3b5975"
---

[Discussion](https://hashnode.com/posts/designing-the-permission-layer-for-an-ai-agent-that-can-send-your-email/6aeaf35fe04dc9abc8f97918)

Comment [Designing the Permission Layer for an AI Agent That Can Send Your Email](https://hashnode.com/posts/designing-the-permission-layer-for-an-ai-agent-that-can-send-your-email/6aeaf35fe04dc9abc8f97918)

[Damiano Bianda](https://hashnode.com/@damianobianda)

[Nov 4](https://hashnode.com/posts/designing-the-permission-layer-for-an-ai-agent-that-can-send-your-email/6aeaf35fe04dc9abc8f97918/comment/6aeb0543cd35c8ae4f3b5975)

The "right action, twice" framing is the sharpest part of this - it is the same failure class payment APIs solve with idempotency keys, and the "outcome unknown, then verify with read-only tools before any redo" rule is the recovery half of that pattern, which most agent frameworks skip entirely. Binding approvals to a hash of the parameters (edits invalidate the card, a changed page ID voids the click) also closes the TOCTOU gap where a user approves one thing and the executor runs a slightly different one. One question: the L3+ review call sees the step plus the facts the app worked out - if a page the agent read can shape how the step itself is phrased, does the reviewer get the raw step parameters or the agent's summary of them? That boundary looks like the next place an injection would try to live.
