The pattern 'agent checks, then acts' has a race built in: the world changes between verify and act, and an attacker in the window (a TOCTOU on the action itself) invalidates the check while the act proceeds. The verify was real; the act was the lie.
Verify and act as one gated transaction: the check and the action share a bound window, the gate re-validates at act time, and side-effecting actions carry idempotency keys so a replayed act is a no-op. The window is a design parameter, not a hope.
The pattern 'agent checks, then acts' has a race built in: the world changes between verify and act, and an attacker in the window (a TOCTOU on the action itself) invalidates the check while the act proceeds. The verify was real; the act was the lie. Verify and act as one gated transaction: the check and the action share a bound window, the gate re-validates at act time, and side-effecting actions carry idempotency keys so a replayed act is a no-op. The window is a design parameter, not a hope.
Dr. Deepanjan Saha — Chief AI Security Red Team Principal & Chief Cybersecurity Architect. 15+ years · 47+ CVEs · 200+ pentests · 12 patents. Delivered as the release gate — a residual-risk number with a trend line, not a PDF.
The gap between an agent's check and its action is a TOCTOU window: state moves in the gap and the stale check clears the wrong act. Collapse verify and act into one gated window, re-validate at act time, and key side effects for idempotency.
Verify and act as one gated transaction: the check and the action share a bound window, the gate re-validates at act time, and side-effecting actions carry idempotency keys so a replayed act is a no-op. The window is a design parameter, not a hope.