UI + UX AI And Automation UX anti-pattern

AI agent acts without approval

Treat unapproved agent execution as an anti-pattern: classify high-impact steps, pause them at authorization gates, show exact payload and consequences before execution, validate approver eligibility and freshness, and provide stop, rollback, audit, and escalation paths when approval was bypassed.

Decision first

Choose this pattern when the problem matches

Use when

  • An AI agent or automation can create side effects that affect customers, money, access, production systems, legal status, public content, sensitive data, or external recipients.
  • Users may assume the agent is only planning, drafting, or researching while it can actually execute tools.
  • The product needs to classify which agent actions can run automatically and which require explicit authorization.
  • A prior incident, audit finding, or UX review shows the agent acted before users approved the exact payload.

Avoid when

  • The agent can only perform read-only retrieval and cannot affect external systems or user-visible state.
  • The design already pauses every high-impact side-effect step in a valid human approval gate.
  • The user is manually reviewing and executing one ordinary high-impact action outside an agent run; use dangerous-action review.
  • The task is only to show live execution status after an authorized run starts; use agent progress trace.
  • The work is authoring a reusable rule before any runtime action is armed; use automation rule builder.

Problem it prevents

AI agents can execute real-world side effects before users understand or authorize them, especially when plan previews, progress traces, chat messages, or notifications blur proposed actions with completed actions.

Pattern anatomy

What a strong implementation has to make clear

User need

The agent can call tools, send external messages, spend money, issue refunds, change access, update customer records, deploy code, delete data, submit forms, publish content, or trigger downstream workflows.

Pattern promise

Treat unapproved agent execution as an anti-pattern: classify high-impact steps, pause them at authorization gates, show exact payload and consequences before execution, validate approver eligibility and freshness, and provide stop, rollback, audit, and escalation paths when approval was bypassed.

Required state

Read-only step allowed state with no external side effect.

Recovery path

The agent executes a tool call that changes data while the UI describes it as planning.

Access contract

Expose whether a step is proposed, armed for approval, running, completed, rejected, cancelled, bypassed, or rolled back as text.

Quality bar

The difference between expert and weak execution

Strong implementation

Specific, visible, recoverable

  • A support agent pauses before issuing a refund, shows customer, order, amount, policy source, approver role, and Approve refund, Edit amount, Reject, and Stop run controls.
  • A sales agent drafts a customer email but labels the send step Requires approval and keeps Send disabled until the reviewer opens the exact message and recipient list.
  • A manager sees the agent is armed to change account access, edits the target group, approves the revised payload, and the run resumes only that step.
  • A user rejects a customer-email gate, the run stops the send step, keeps the draft visible, and records the rejection reason.
Weak implementation

Vague, hidden, hard to recover from

  • A chat message says I handled it and reveals the agent already issued a refund without any review screen.
  • The plan preview says Draft email, but the agent also sends it to customers when the user taps Run.
  • A user asks an agent to research an account and later discovers it changed the opportunity stage.
  • A reviewer approves a stale email notification and the agent applies the decision to a different customer state.
UI guidance
  • Do not show an agent as merely thinking, drafting, or preparing when it has already sent, changed, purchased, deployed, revoked, deleted, or externally committed something.
  • Before a high-impact agent step can run, show the proposed action, target, payload, tool, approver rule, side effect, risk, expiry, and explicit approve, edit, reject, cancel, or stop controls.
UX guidance
  • Protect users from surprise agent side effects by separating proposed work from executed work, pausing risky steps, and requiring authorization that is valid only for the displayed payload.
  • If an agent already acted without approval, surface the executed action, rollback or recovery path, audit trail, affected target, and reason the approval gate was bypassed instead of presenting the result as routine progress.
Implementation contract

What the implementation must handle

States

  • Read-only step allowed state with no external side effect.
  • Approval required before side effect state.
  • Payload preview state with target, action, tool, data, cost, recipients, environment, or access scope.
  • Eligible approver and self-review blocked state.

Interaction

  • The agent distinguishes read-only steps, draft steps, reversible local changes, and external side-effect steps before execution.
  • Side-effect steps cannot run until the interface shows the action, target, payload version, tool, approver rule, risk, and resume consequence.
  • A broad instruction, plan acceptance, confidence score, progress trace, or notification does not authorize hidden future side effects.
  • Approval is valid only for the displayed payload and expires when target, input, source, model, policy, tool permission, or threshold changes.

Accessibility

  • Expose whether a step is proposed, armed for approval, running, completed, rejected, cancelled, bypassed, or rolled back as text.
  • Do not rely on color, animation, progress labels, or icon-only badges to distinguish draft, approved, executed, and recovered actions.
  • Make approve, edit, reject, cancel, stop, rollback, report, escalate, and bypass controls keyboard reachable and labelled by action and target.
  • Announce meaningful state changes such as approval required, payload changed, stale approval refused, action executed, rollback available, and rollback completed.

Review

  • Which agent steps are read-only, draft-only, reversible, externally visible, destructive, money-moving, access-changing, or customer-impacting?
  • What exact action, target, payload, tool, and version will execute after approval?
  • Can the user distinguish proposed work, armed gated work, running work, completed work, and audit history?
  • Who is eligible to approve, who is blocked from self-review, and what happens if the approval becomes stale?
Interactive lab

Inspect the states before you copy the pattern

Stop agent side effects before approval

Inspect read-only step allowed, approval required before side effect, payload preview, eligible approver, self-review blocked, approve and resume, edit before approve, reject, cancel, stale approval refused, emergency bypass, rollback available, and audit recovery states; compare silent execution, broad consent, hidden tool call, post-action approval, stale approval, self-approval, no rollback, and audit-only failures.

AI agent acts without approval
Interactive demo is ready

Launch the live UI/UX lab when you want to inspect states, keyboard behavior, and common failure modes.

State To Inspect

Read-only step allowed state with no external side effect.

Keyboard / Access

Tab order reaches run summary, proposed side-effect step, payload preview, evidence, approver eligibility, timeout, decision reason, and decision controls before any resume control.

Avoid Generating

Treating Run agent as permission to execute every hidden side-effect step.

Evidence trail

Source-backed claims behind this guidance

Responsible AI for Agent Design

Microsoft Learn - checked

Supports transparency, safety, accountability, informed decisions, security, and privacy requirements for agent design.

Power Automate approvals

Microsoft Learn - checked

Supports automation flows that wait for human approval before continuation.

ServiceNow Ask for Approval action

ServiceNow Docs - checked

Supports workflow approval rules, waiting states, due dates, approval outputs, and manual approver behavior.

OpenAI conversation state guide

OpenAI - checked

Supports durable conversation, tool calls, tool outputs, and response chaining that affect agent state and side effects.

Full agent/debug reference

Problem Context

  • The agent can call tools, send external messages, spend money, issue refunds, change access, update customer records, deploy code, delete data, submit forms, publish content, or trigger downstream workflows.
  • The UI may describe the agent as preparing, researching, drafting, or working while side effects are already committed.
  • Users may have approved a broad prompt, plan, or recommendation but not the exact payload, target, timing, or downstream consequence that executed.
  • Approval can be required by policy, confidence, source gaps, cost, permissions, customer impact, legal risk, security risk, or separation of duties.
  • The agent may need different treatment for safe read-only steps, reversible draft steps, gated side-effect steps, emergency bypass, and post-action recovery.

Selection Rules

  • Flag this anti-pattern when an AI agent or automation executes a high-impact side effect without showing and requiring approval for the exact action and payload first.
  • Flag it when a broad Run, Continue, or Looks good control authorizes hidden tool calls, sends, edits, purchases, deletes, deployments, or access changes.
  • Use human approval gate for the corrected runtime checkpoint when the agent is paused before an armed step and needs an eligible human decision.
  • Use agent plan preview when users need to inspect proposed steps before execution starts; plan review does not authorize unlisted future side effects.
  • Use agent progress trace when users need live monitoring after execution starts; progress visibility does not replace approval for risky steps.
  • Use tool-use visibility when users must inspect exact tool names, inputs, outputs, permissions, and payloads; tool detail supports approval but is not the gate itself.
  • Use dangerous-action review when a single high-impact manual action needs payload review outside an agent run.
  • Use automation rule builder when users are authoring reusable future behavior rather than approving one armed runtime step.
  • Allow low-risk read-only agent steps to run without approval only when the UI clearly scopes them as read-only and they cannot create external side effects.
  • If emergency bypass is allowed, show who can bypass, why, what will execute, how rollback works, and how the bypass is audited.

Required States

  • Read-only step allowed state with no external side effect.
  • Approval required before side effect state.
  • Payload preview state with target, action, tool, data, cost, recipients, environment, or access scope.
  • Eligible approver and self-review blocked state.
  • Approve and resume state that revalidates the displayed payload.
  • Edit before approve state that creates a new payload version.
  • Reject, cancel, stop run, and rollback available states.
  • Stale approval refused state for changed input, target, source, model, policy, or payload.
  • Emergency bypass state with elevated permission and required reason.
  • Bad silent execution, broad consent, hidden tool call, post-action approval, stale approval, self-approval, no rollback, and audit-only states.

Interaction Contract

  • The agent distinguishes read-only steps, draft steps, reversible local changes, and external side-effect steps before execution.
  • Side-effect steps cannot run until the interface shows the action, target, payload version, tool, approver rule, risk, and resume consequence.
  • A broad instruction, plan acceptance, confidence score, progress trace, or notification does not authorize hidden future side effects.
  • Approval is valid only for the displayed payload and expires when target, input, source, model, policy, tool permission, or threshold changes.
  • Approve resumes only the named gated step unless the UI explicitly lists additional authorized steps.
  • Reject, cancel, edit, stop, rollback, and escalation outcomes leave the run in a named state with reason and recovery path.
  • Post-action audit records must say the action already happened and provide rollback, report, or escalation controls when possible.
  • The audit trail records what the user saw before approval, who approved or bypassed, what executed, and whether recovery was attempted.

Implementation Checklist

  • Inventory all agent tools and mark read-only, draft-only, reversible, externally visible, money-moving, access-changing, destructive, deployment, publication, and customer-impact steps.
  • Define which steps require approval by policy, risk, confidence, source status, cost, data sensitivity, target environment, recipient scope, or separation-of-duties rule.
  • Render proposed side-effect steps with payload preview, diff, target, tool, evidence, risk, approver eligibility, timeout, and downstream consequence before execution.
  • Require explicit approve, edit, reject, cancel, stop, or bypass controls for gated steps, and block self-approval where policy requires independent review.
  • Revalidate payload hash, target, source freshness, model version, policy version, approver role, and tool permission immediately before resuming the gated step.
  • Separate plan preview, progress trace, tool-use visibility, approval gate, dangerous-action review, and audit trail data so users can tell proposed, armed, executing, and completed actions apart.
  • Provide post-action recovery for bypassed or unauthorized execution: stop future steps, rollback, revoke, notify affected users, report incident, and inspect audit trail.
  • Test hidden side-effect tools, broad prompt consent, stale notification approval, self-approval, edited payload, emergency bypass, failed resume, rollback, mobile approval, keyboard flow, and high-zoom payload wrapping.

Common Generated-UI Mistakes

  • Treating Run agent as permission to execute every hidden side-effect step.
  • Sending a customer message or issuing a refund while the UI still says the agent is drafting.
  • Showing an approval card after the tool already executed.
  • Letting the requester approve their own high-impact automation step.
  • Using high confidence, source grounding, or a green progress state as a substitute for authorization.
  • Hiding the exact tool input, recipient list, amount, access target, deployment environment, or deletion scope.
  • Providing no stop, rollback, cancel, report, or escalation path after unauthorized execution.

Critique Questions

  • Which agent steps are read-only, draft-only, reversible, externally visible, destructive, money-moving, access-changing, or customer-impacting?
  • What exact action, target, payload, tool, and version will execute after approval?
  • Can the user distinguish proposed work, armed gated work, running work, completed work, and audit history?
  • Who is eligible to approve, who is blocked from self-review, and what happens if the approval becomes stale?
  • What recovery exists if the agent already acted without approval?
  • Would human approval gate, agent plan preview, agent progress trace, tool-use visibility, dangerous-action review, or automation rule builder solve the actual problem?
Accessibility
  • Expose whether a step is proposed, armed for approval, running, completed, rejected, cancelled, bypassed, or rolled back as text.
  • Do not rely on color, animation, progress labels, or icon-only badges to distinguish draft, approved, executed, and recovered actions.
  • Make approve, edit, reject, cancel, stop, rollback, report, escalate, and bypass controls keyboard reachable and labelled by action and target.
  • Announce meaningful state changes such as approval required, payload changed, stale approval refused, action executed, rollback available, and rollback completed.
  • Ensure payload previews, recipient lists, tool names, access scopes, amounts, environments, and audit notes wrap at mobile widths and high zoom.
  • Associate rejection, bypass, rollback, and incident-report reasons with their fields and validation errors.
Keyboard Behavior
  • Tab order reaches run summary, proposed side-effect step, payload preview, evidence, approver eligibility, timeout, decision reason, and decision controls before any resume control.
  • Enter or Space activates approve, edit, reject, cancel, stop, rollback, report, escalate, and bypass controls according to native behavior.
  • When an approval becomes stale, focus moves to the stale-state message and recovery controls rather than staying on a disabled approve button.
  • After approval, focus moves to the resumed run status or next required gate.
  • After unauthorized execution is detected, focus moves to the recovery panel with stop and rollback controls.
  • Escape closes payload details or confirmation layers and returns focus to the invoking control.
Variants
  • Silent agent side effect
  • Post-action approval
  • Broad prompt consent
  • Hidden tool call
  • Agent sends without review
  • Agent changes access without approval
  • Agent deploys without approval
  • Agent refunds without approval
  • Stale approval accepted
  • Self-approved agent action
  • Audit-only approval

Verification

Last verified: