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 delegation | Agent-to-human review | AI-to-human support | |
|---|---|---|---|
| Recipient | A specialized agent or downstream process | A named reviewer or authorized review group | A support teammate or staffed queue |
| Authority transferred | Bounded task execution within granted scope | Decision, approval, rejection, or requested revision | Conversation ownership and customer-facing response |
| Continuity burden | Structured state, inputs, output schema, and dependency identity | Goal, source revision, artifacts, checks, rationale, and open decisions | Relevant conversation history, bounded summary, customer context, and queue state |
| Acceptance evidence | Destination records the task identity and accepted scope | Reviewer explicitly accepts ownership or begins review | A person or staffed queue acknowledges the conversation |
| Completion evidence | A durable result tied to the delegated task and run | A recorded review decision tied to the submitted revision | A recorded resolution or explicit return to automation |
| Typical recovery | Re-route, repair the payload, or retry with the same idempotency key | Return to the previous owner with work and comments preserved | Keep the conversation intact, update wait status, or offer another contact route |
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>"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 required | Visible feedback | Allowed action | Repair and owner | |
|---|---|---|---|---|
| Preparing | A source task and intended route exist; the transfer package is not final | Draft handoff with missing or unresolved fields named | Edit, cancel, or validate package | Source owner repairs scope, context, or artifacts |
| Ready | Required fields and referenced revisions are present | Ready to send, with recipient and consequence visible | Send or return to editing | Source owner resolves validation failures |
| Routing | A send attempt has started with a stable handoff identity | Sending to the named destination | Cancel only if the transport contract supports it; otherwise wait | Transport owner resolves delivery errors |
| Receipt unknown | The send attempt ended without authoritative acknowledgement | Acknowledgement unknown; ownership has not changed | Check status, or retry using duplicate protection | Transport owner reconciles the attempt |
| Accepted | The recipient recorded the handoff identity and accepted its scope | Accepted by the named owner at the recorded time | Open destination, withdraw if policy permits, or wait | Destination owner handles scope disputes |
| Rejected | The recipient recorded rejection and a reason | Rejected, with prior artifacts and comments preserved | Revise, re-route, or cancel | Source owner revises; authority owner resolves disputed scope |
| Stale | A referenced source or artifact no longer matches the current revision | Update required before acceptance or resumption | Refresh package, compare revisions, or cancel | Source owner rebuilds the package from current sources |
| Cancelled | An authorized actor recorded cancellation | Cancelled, with who cancelled and what remains preserved | Return to previous owner or start a new handoff | Application policy determines reversibility and cleanup |
| Resumed | The accepted owner recorded downstream work against the handoff | Work resumed by the current owner | Inspect progress or request a policy-supported pause | Destination owner controls active work |
| Completed | A durable outcome is tied to the handoff and accepted scope | Completed, with result identity and completion time | Inspect result, reopen under policy, or start follow-up work | Outcome owner corrects incomplete or mismatched results |
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
Check status before creating another transfer
Ask the destination or authoritative event store whether the original handoff identity exists.
- 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
Retry through the supported duplicate-safe route
Reuse the recorded identity or retry key only when the destination contract supports deduplication.
- 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"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"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
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
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
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
Route selection
Verify that the destination fits the route contract and that routing did not perform an undisclosed side effect.
- 5
Receipt
Look for authoritative acknowledgement tied to the handoff identity. A client timeout or success toast isn't enough.
- 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
Resumption
Find separate evidence that the accepted owner began downstream work against the correct revision.
- 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
- What Is the Agent Handoff Pattern? How to Design AI Outputs for Downstream Use: Supports treating downstream agent output as an explicit, predictable contract rather than loosely structured conversational text.
- Agent Handoff Patterns: Human-Agent Interface Guide: Supports persistent context, uncertainty signals, governed review points, and reliable pause-and-resume boundaries in engineering workflows.
- Handoffs - Docs by LangChain: Explicitly distinguishes a handoff tool that updates routing state from a tool that also performs a side effect.
- Human Handoff · Agents AI UX Pattern: Documents a support-oriented progression through automated, stalled, offering, queuing, handed-off, and resolved states, with visible ownership and preserved context.
- How to design an AI-to-human handoff that preserves context: Supports defining transfer triggers and carrying relevant history, customer context, and a bounded summary into a human support handoff.
- AI Agent Orchestration Patterns - Azure Architecture Center: Explains that multi-agent orchestration adds coordination overhead, latency, and failure modes, so teams should use only the complexity their workload requires.