Designing Human-AI Collaboration › Handoff design in detail

Michael BrenndoerferDecember 2, 20263 min read
Language AI HandbookAll chapters
Part 62 of 67Human-AI Interaction and Governance
Chapter 472Designing Human-AI Collaboration › Handoff design in detail
Reading section 6 of 10 · Handoff design in detail · 3 minSection 6 of 10 · 3 min

Section 6 of 10 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Handoffs deserve a closer look because they are where state is most easily lost. There are four directions, each with a characteristic failure:

  • Human to model: the human says what they want, but the model cannot reconstruct the needed context. The fix is to structure the request (specific slots) rather than free text alone.
  • Model to human (decision): the model finishes a step and asks for a decision, but the human cannot see the basis. The fix is the case file, and especially the rationale and uncertainty.
  • Model to human (escalation). Transfer the relevant record and what was attempted. Keep any unrelated or restricted fields out of the handoff.
  • Human to human (re-assignment): the task moves to a different person, who must pick up context. The fix is the same case file, now serving as durable state.

When control moves, transfer the state the recipient needs and is authorized to receive. A human request might supply an order identifier. A model decision can transfer the recommendation and evidence behind it. At escalation and reassignment, record what has been attempted and what the next person can do.

When the keyword rules find no intent, the recipient still needs the request text and the outcome of the order lookup. Compare a bare escalation with a stateful one that includes those fields.

PythonIn [28]
CollapseExpand
def bare_escalation(message: str) -> dict:
    return {"message": "Customer needs assistance", "original": message}


def stateful_escalation(customer_id: str, message: str) -> dict:
    cf = build_case_file(customer_id, message)
    return {
        "summary": f"Intent={cf.intent}, action proposed={cf.proposed_action}",
        "lookup_status": "found" if cf.order_id else "missing",
        "order_id": cf.order_id,
        "evidence": [asdict(e) for e in cf.evidence],
        "rationale": cf.rationale,
        "coverage": cf.coverage(),
        "original": message,
    }


msg = "Something is wrong with my order"
print("bare:", bare_escalation(msg))
print("\nstateful:", stateful_escalation("C001", msg))
ConsoleOut [29]
CollapseExpand
bare: {'message': 'Customer needs assistance', 'original': 'Something is wrong with my order'}

stateful: {'summary': 'Intent=other, action proposed=escalate', 'lookup_status': 'found', 'order_id': 'O-4471', 'evidence': [{'source': 'orders_db', 'text': 'Ceramic Mug Set', 'status': 'delivered'}], 'rationale': 'intent unrecognized, needs a human', 'coverage': 1.0, 'original': 'Something is wrong with my order'}

The vague message matches neither keyword set, so the prototype proposes escalation. The stateful handoff includes the original text, the lookup status, the order ID when available, and the evidence records. It does not claim to diagnose the issue.

A bare escalation gives the specialist the original message. A fuller one can avoid repeating a lookup or explain why it failed. If the transfer waited in a queue, refresh status before acting when the underlying record can change.

During a handoff, record the current phase and what the next person needs to do. Agent Architectures covers the wider state and termination problem.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy