Get started

AI agent handoff UI patterns: preserve context, ownership, and recovery

A reliable AI agent handoff needs a visible transfer record, not a success toast. The interface must show what moved, who owns the task now, what the recipient has acknowledged, which decisions remain open, and which action is safe when the transfer is rejected, stale, cancelled, or uncertain.

Updated December 2, 2026

Choose the handoff route before designing the card

The label "agent handoff" covers three different interactions. An agent may delegate work to another agent, pause for a person to review a proposed result, or escalate a live customer conversation to a support teammate. These interactions may share visual parts, but they don't share the same authority, continuity needs, or definition of done.

Start with the recipient and the decision that changes hands. Then name the evidence required at the far end. This keeps a support queue pattern out of a code-review workflow, where acceptance, revision, and source identity matter more than wait-time messaging.

Agent-to-agent delegationAgent-to-human reviewAI-to-human support
RecipientA specialized agent or downstream processA named reviewer or authorized review groupA support teammate or staffed queue
Authority transferredBounded task execution within granted scopeDecision, approval, rejection, or requested revisionConversation ownership and customer-facing response
Continuity burdenStructured state, inputs, output schema, and dependency identityGoal, source revision, artifacts, checks, rationale, and open decisionsRelevant conversation history, bounded summary, customer context, and queue state
Acceptance evidenceDestination records the task identity and accepted scopeReviewer explicitly accepts ownership or begins reviewA person or staffed queue acknowledges the conversation
Completion evidenceA durable result tied to the delegated task and runA recorded review decision tied to the submitted revisionA recorded resolution or explicit return to automation
Typical recoveryRe-route, repair the payload, or retry with the same idempotency keyReturn to the previous owner with work and comments preservedKeep the conversation intact, update wait status, or offer another contact route
Select the interaction contract before choosing interface details.

Do not let one status label carry several claims

"Handed off" is too vague when the system knows only that a route was selected. Use labels such as "Sending," "Awaiting acknowledgement," "Accepted by reviewer," and "Completed" only when the corresponding evidence exists.

Use one visible handoff record

The primary UI should answer four questions without opening an audit log: What is moving? Who owns it now? What uncertainty blocks progress? What can I safely do next? Supporting provenance and trace details can sit behind progressive disclosure, but ownership, status, unresolved decisions, and recovery controls must remain visible.

The record below defines a UI contract, not a proposed database schema. Backend systems may store these facts differently. The interface should show only facts supported by authoritative runtime or application state.

handoff_id: "HO-2048"
task_id: "TASK-731"
source_run_id: "RUN-18"
route: "agent_to_human_review"

from_owner:
  type: "coding_agent"
  id: "agent-build-2"
to_owner:
  type: "review_group"
  id: "frontend-maintainers"
current_owner: "agent-build-2"

goal: "Review the checkout error-state patch"
scope:
  included: ["changed files", "test results", "open decisions"]
  excluded: ["merge", "deploy", "production changes"]

context_sources:
  - ref: "issue-482"
    revision: "7"
  - ref: "repository"
    revision: "4f23c9a"
artifacts:
  - ref: "patch-2048"
    revision: "3"
    integrity: "sha256:<recorded-value>"

unresolved_decisions:
  - "Choose retry copy after product review"
granted_authority:
  may: ["inspect", "comment", "accept_review"]
  may_not: ["merge", "deploy"]

route_state: "sent"
receipt_state: "unknown"
acceptance_state: "not_established"
work_state: "not_resumed"
completion_state: "not_established"

next_permitted_action: "check_status"
retry_key: "HO-2048-attempt-1"
last_evidence_at: "<timestamp>"
Copyable visible-state record. Replace example values and bind every displayed state to authoritative evidence.

Keep the summary compact

  • Task name and stable handoff identity
  • Current owner and intended recipient
  • Current evidence-backed state
  • One blocking uncertainty or unresolved decision
  • Age or revision warning when the package may be stale
  • The next permitted action and its consequence

Context provenance, artifact hashes, trace events, previous attempts, and detailed authority can live in an expandable panel. They don't need to fill the primary view. The current owner and unknown acknowledgement do.

Style the record after its behavior is defined

A design kit can give the handoff card consistent typography, semantic status colors, spacing, dark-mode roles, and component guidance. Routing, permissions, acknowledgement, and execution still belong to the application.

Model transitions and recovery together

A state model isn't complete if it covers the happy path but leaves repair behavior to improvised error messages. For every state, define what data remains intact, what the user sees, which actions are allowed, and which layer owns the correction.

Evidence requiredVisible feedbackAllowed actionRepair and owner
PreparingA source task and intended route exist; the transfer package is not finalDraft handoff with missing or unresolved fields namedEdit, cancel, or validate packageSource owner repairs scope, context, or artifacts
ReadyRequired fields and referenced revisions are presentReady to send, with recipient and consequence visibleSend or return to editingSource owner resolves validation failures
RoutingA send attempt has started with a stable handoff identitySending to the named destinationCancel only if the transport contract supports it; otherwise waitTransport owner resolves delivery errors
Receipt unknownThe send attempt ended without authoritative acknowledgementAcknowledgement unknown; ownership has not changedCheck status, or retry using duplicate protectionTransport owner reconciles the attempt
AcceptedThe recipient recorded the handoff identity and accepted its scopeAccepted by the named owner at the recorded timeOpen destination, withdraw if policy permits, or waitDestination owner handles scope disputes
RejectedThe recipient recorded rejection and a reasonRejected, with prior artifacts and comments preservedRevise, re-route, or cancelSource owner revises; authority owner resolves disputed scope
StaleA referenced source or artifact no longer matches the current revisionUpdate required before acceptance or resumptionRefresh package, compare revisions, or cancelSource owner rebuilds the package from current sources
CancelledAn authorized actor recorded cancellationCancelled, with who cancelled and what remains preservedReturn to previous owner or start a new handoffApplication policy determines reversibility and cleanup
ResumedThe accepted owner recorded downstream work against the handoffWork resumed by the current ownerInspect progress or request a policy-supported pauseDestination owner controls active work
CompletedA durable outcome is tied to the handoff and accepted scopeCompleted, with result identity and completion timeInspect result, reopen under policy, or start follow-up workOutcome owner corrects incomplete or mismatched results
A portable handoff transition-and-recovery matrix.

Preserve first, then offer recovery

Rejection, staleness, and cancellation shouldn't erase the transfer package. Keep the submitted revision, recipient response, unresolved decisions, and prior owner available so the next attempt starts from known state.

Treat uncertain acknowledgement as its own state

A clean rejection isn't the dangerous case. An interrupted response after the destination may have received the work is. A blind retry can create two reviews, two support tickets, or two downstream agent runs.

When acknowledgement is unknown, the interface should keep ownership with the last confirmed owner unless the application contract says otherwise. Show the attempted destination, handoff identity, last confirmed event, and a status-check action. If retry is allowed, reuse a stable handoff identity or idempotency mechanism so the destination can recognize the attempt. The UI must not promise duplicate safety unless the backend actually provides it.

  1. 1

    Check status before creating another transfer

    Ask the destination or authoritative event store whether the original handoff identity exists.

  2. 2

    Reconcile ownership

    If receipt exists but acceptance does not, show the task as received and awaiting a decision. If no receipt exists, keep ownership with the source.

  3. 3

    Retry through the supported duplicate-safe route

    Reuse the recorded identity or retry key only when the destination contract supports deduplication.

  4. 4

    Create a new handoff only for a new decision

    A revised scope or artifact revision may justify a new identity. Link it to the superseded attempt instead of overwriting history.

Acceptance case 1: coding task to human review

This case is intentionally unexecuted. It defines what to inspect; it doesn't claim that any interface or backend passed. The task is a coding-agent patch transferred to a human reviewer. The agent may prepare files and checks, but it may not merge or deploy.

case_id: "ACCEPT-HANDOFF-ENGINEERING-01"
execution_status: "not_run"

setup:
  source_owner: "coding agent"
  recipient: "human reviewer"
  source_revision: "<record before test>"
  patch_revision: "<record before test>"
  granted_authority: ["inspect", "comment", "accept review"]
  prohibited_authority: ["merge", "deploy"]

expectations:
  - "The visible record names the task, source revision, patch revision, checks, and open decisions."
  - "Routing does not change the UI to accepted."
  - "The reviewer can reject with a reason without deleting the patch or prior context."
  - "A changed source revision marks the transfer stale before review resumes."
  - "An interrupted acknowledgement offers status reconciliation before retry."
  - "Acceptance names the reviewer; resumption requires separate downstream evidence."

observations:
  package_preserved: null
  routing_state_accurate: null
  receipt_state_accurate: null
  rejection_preserved_work: null
  stale_revision_detected: null
  duplicate_safe_recovery: null
  ownership_visible: null
  notes: "Open until the interface and authoritative backend states are inspected."

decision: "open"
Unexecuted engineering-review acceptance record. Null observations are deliberate.

Run the case with one representative patch, one rejection, one source change, and one interrupted acknowledgement. Accept the pattern only if the UI preserves the exact submitted revision, shows the reviewer's actual decision, and resumes from a reconciled owner without duplicating review work.

Acceptance case 2: support conversation to a person

This second case is also unexecuted. It tests a live support escalation, where continuity and visible speaker identity matter. The transfer package should contain a bounded summary and relevant history, while the application remains responsible for deciding which customer information may travel.

case_id: "ACCEPT-HANDOFF-SUPPORT-01"
execution_status: "not_run"

setup:
  source_owner: "AI support agent"
  recipient: "staffed human-support queue"
  conversation_id: "<record before test>"
  trigger: "customer requests a person"
  transferred_context:
    - "bounded issue summary"
    - "relevant conversation history"
    - "attempted resolutions"
    - "unresolved customer request"

expectations:
  - "The customer sees that escalation was requested and who currently owns the conversation."
  - "Queueing is not displayed as a human joining."
  - "The teammate receives the bounded summary and relevant history before replying."
  - "The customer is not asked to repeat context already present in the accepted package."
  - "If acknowledgement is unknown, the conversation remains intact and status can be reconciled."
  - "Resolution or return to automation is recorded as a separate transition."

observations:
  trigger_recorded: null
  queue_state_truthful: null
  context_received: null
  speaker_switch_visible: null
  repeated_context_required: null
  unknown_receipt_recovered: null
  resolution_recorded: null
  notes: "Open until both customer-facing and teammate-facing states are inspected."

decision: "open"
Unexecuted support-handoff acceptance record. It records expectations without inventing results.

A support transfer can pass even when a person isn't immediately available, provided the queue state is truthful, context remains intact, and the customer has a clear next option. It fails when the interface announces a human before acknowledgement, silently changes speaker identity, or drops the conversation into a context-free queue.

Warm and cold transfer are continuity choices

A live overlap between the automated and human participants can reduce ambiguity, but it isn't always available. A queued transfer can still preserve continuity if ownership, context, wait state, and recovery are explicit.

Find the first divergence

When a handoff looks wrong, inspect the chain in order. Stop at the first layer where the observed state differs from the recorded expectation. A later label can't repair an earlier routing or authority failure.

  1. 1

    Source task state

    Confirm the task identity, source owner, current revision, goal, and unresolved decisions. If these are wrong, rebuild the package before inspecting transport.

  2. 2

    Context package

    Check that every referenced artifact exists at the recorded revision and that the bounded summary matches the source. Missing or stale input belongs to the source owner.

  3. 3

    Authority and scope

    Compare requested actions with the recipient's granted authority. A transfer cannot safely resume when review, execution, merge, or customer-response rights are ambiguous.

  4. 4

    Route selection

    Verify that the destination fits the route contract and that routing did not perform an undisclosed side effect.

  5. 5

    Receipt

    Look for authoritative acknowledgement tied to the handoff identity. A client timeout or success toast isn't enough.

  6. 6

    Destination ownership

    Confirm whether the recipient accepted, rejected, or left the transfer pending. Keep the previous owner visible until the ownership rule is satisfied.

  7. 7

    Resumption

    Find separate evidence that the accepted owner began downstream work against the correct revision.

  8. 8

    Durable completion

    Inspect the resulting review decision, agent output, support resolution, or other durable outcome. Tie it back to the accepted scope and handoff identity.

Set the acceptance decision

Retain the pattern only when a representative handoff preserves its source and artifacts, exposes the current owner, survives uncertain acknowledgement, supports rejection without losing editable work, detects stale context, and resumes without duplicate or missing execution. Revise it when the required evidence exists but the interface hides or mislabels it. Block it when the application cannot establish ownership, reconcile uncertain receipt, or distinguish routing from completion.

Identity Forge can supply the visual system for this interface, including semantic tokens, typography, spacing, component guidance, and implementation artifacts. It doesn't supply the routing, permissions, execution, acknowledgement, or backend truth described here. Fill in one acceptance record before polishing the handoff card, then run it against the real interface and authoritative state source.

Questions about AI agent handoff UI patterns

What is the most important AI agent handoff UI pattern?

Use an evidence-backed transfer record that names the task, source and destination owners, transferred context, granted authority, receipt state, unresolved decisions, and next permitted action. A status message alone isn't enough.

When should ownership change in the interface?

Change ownership when the application's recorded rule is satisfied, usually after the destination acknowledges the handoff and accepts its scope. Selecting a route or sending a request doesn't establish acceptance by itself.

How should the UI handle a handoff timeout?

Show acknowledgement as unknown, preserve the original package, keep the last confirmed owner visible, and check authoritative status before retrying. Offer a duplicate-safe retry only when the backend supports it.

What should remain after a recipient rejects the handoff?

Keep the submitted context, artifact revisions, recipient, rejection reason, prior owner, and unresolved decisions. The source owner should be able to revise or re-route without reconstructing the task.

Does a design system implement agent handoff behavior?

No. A design system can standardize visual hierarchy, semantic statuses, components, and interaction presentation. The application still owns routing, permissions, state transitions, side effects, acknowledgement, and durable completion evidence.

Sources