Skip to content
intermediateevaluation

AgentAsk Handoff Error Types in Multi-Agent Runs

Flag error types on agent-to-agent handoffs and rate message quality with handoff_review. Based on the AgentAsk preprint, with illustrative traces.

Get This Design

View on GitHub(opens in a new tab)

Clone or download from the repository

Quick start:

bash
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/agentic/agentask-handoff-error-types
potato start config.yaml

About this dataset

AgentAsk is an arXiv preprint by Lin and ten co-authors. The paper audits 824 execution logs of LLM multi-agent systems and annotates each agent-to-agent message as the unit of analysis. The preprint names no venue, and the annotated audit is not released, so the design treats the paper as unreviewed.

The paper groups edge-level errors into four categories, Data Gap, Referential Drift, Signal Corruption, and Capability Gap, which account for 29.1, 27.3, 36.8, and 6.8 percent of the audit. The annotators were multiple professional annotators with expertise in multi-agent systems, and the audit went through several rounds of cross-annotation and adjudication, with a Fleiss' kappa of 0.84. The design shows a handoff_review scheme, where Potato derives one card per change of acting agent and the annotator picks one of the four flags. In the multi-stage protocol, the annotator count maps to num_annotators_per_item and the adjudication round maps to the adjudication block. From Potato 2.15.0, the pre_annotation export format writes the answers of one stage as the predictions_file of the next stage; answers of the handoff_review schemes are left out.

The definitions shown to annotators are paraphrases, since the paper describes the four categories in prose and does not print a guideline. The design adds a 1-5 handoff quality rating that the paper does not collect. All ten traces are hand-written for this design. No model_training block is included, because no registered Potato trainer consumes handoff reviews.

Audited execution logs
824
Error categories
4 (Data Gap, Referential Drift, Signal Corruption, Capability Gap)
Category shares
29.1%, 27.3%, 36.8%, 6.8%
Fleiss' kappa
0.84
Sample traces in this design
10 (illustrative)

Configuration File

This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.

yaml
# yaml-language-server: $schema=https://potatoannotator.readthedocs.io/en/latest/schemas/potato-config.schema.json
# AgentAsk: Multi-Agent Systems Need to Ask
# Lin, Yang, Tan, Lai, Zhang, Zhang, Yu, Yu, Wang, Zhang, and Wang. arXiv preprint 2510.07593 (v2, 19 Jan 2026).
# DOI: 10.48550/arXiv.2510.07593    arXiv: https://arxiv.org/abs/2510.07593
# Code: https://github.com/BoHan-LIN04/AgentAsk (MIT). The annotated 824-case audit is not released there, so every trace below is
# hand-written for this design and illustrative.
# Venue: the paper names none and arXiv lists no journal reference, so the paper is treated as an unreviewed preprint.
#
# Protocol (paper sec. 3): the audit annotates "each agent-to-agent message" as the unit of analysis, by "multiple professional
# annotators with expertise in MAS", with "several rounds of cross-annotation and adjudication" and a Fleiss' kappa of 0.84.
# Edge-level error taxonomy (sec. 3.1 to 3.4): Data Gap, Referential Drift, Signal Corruption, Capability Gap, with shares of
# 29.1%, 27.3%, 36.8%, and 6.8% of N=824 (sec. 3.5).
# The definitions in annotation_instructions below are PARAPHRASED from the paper and are not quoted guideline text. The paper gives
# the categories as prose. Supporting passages: sec. 3.2 "pronouns, variable names, or record keys are passed without grounding";
# sec. 3.3 "a wrong fact, a malformed structure, or a unit mistake is presented with fluency and then reused without scrutiny";
# appendix D.4 "The role at the edge lacks the skill required by the subtask".
#
# Multi-stage protocol: the audit used several annotators and then adjudication. In Potato the annotator count is
# num_annotators_per_item and the adjudication queue is the adjudication block, both set below.
# From Potato 2.15.0, the pre_annotation export format (python -m potato.export --format pre_annotation)
# writes stage 1's answers as the next stage's predictions_file. Answers of the handoff_review schemes are
# left out with a warning.
#
# Adaptations:
#   1. The handoff_review scheme also asks for a 1-5 handoff quality rating. The paper does not collect a rating.
#   2. Potato derives a handoff wherever the acting agent changes between consecutive steps, so handoffs are not annotated as free
#      standing edges.
#   3. The flag names are snake_case forms of the four category names.
annotation_task_name: "Handoff error types between agents (AgentAsk taxonomy)"

data_files:
  - sample-data.json

item_properties:
  id_key: id
  text_key: task

task_dir: .
output_annotation_dir: annotation_output
export_annotation_format: jsonl

# Replace the adjudicator name with a real account before a study.
num_annotators_per_item: 3
adjudication:
  enabled: true
  adjudicator_users: [adjudicator]
  min_annotations: 2

instance_display:
  layout: {direction: vertical, gap: 16px}
  fields:
    - key: task
      type: text
      label: "Task"
    - key: steps
      type: agent_trace
      label: "Agent messages"
      display_options: {show_step_numbers: true, speaker_key: agent, text_key: content}

annotation_schemes:
  - annotation_type: handoff_review
    name: handoff_errors
    description: "For each agent-to-agent handoff, flag the error type (if any) and rate how well the message carried the task forward."
    steps_key: steps
    agent_key: agent
    flags: [data_gap, referential_drift, signal_corruption, capability_gap]
    quality_scale: 5

user_config:
  allow_all_users: true

annotation_instructions: |
  A handoff is a message from one agent to the next. The definitions below are paraphrased from the AgentAsk paper.
  Flag data_gap when a required detail is left out, referential_drift when a pronoun, variable name, or key is passed without
  grounding, signal_corruption when a wrong intermediate result is reused as true, and capability_gap when the task goes to a role
  that lacks the skill. Leave a handoff unflagged if the message is fine.

Sample Data

json
[
  {
    "id": "aa_001",
    "task": "Compute the total cost in euros of 3 tickets at 45.50 USD each, using the rate 1 USD = 0.92 EUR.",
    "steps": [
      {
        "agent": "Planner",
        "content": "Plan: Solver multiplies tickets by price, then Converter converts the total. Passing to Solver: 3 tickets, 45.50 each."
      },
      {
        "agent": "Solver",
        "content": "3 x 45.50 = 136.50. Passing 136.50 to Converter."
      },
      {
        "agent": "Converter",
        "content": "Converting 136.50 to euros. The rate is unknown, so I assume 1.10. Result 150.15 EUR."
      },
      {
        "agent": "Checker",
        "content": "Result 150.15 EUR accepted."
      }
    ]
  },
  {
    "id": "aa_002",
    "task": "Write a function that returns the second-largest distinct value in a list and test it.",
    "steps": [
      {
        "agent": "Architect",
        "content": "Spec: return None if the list has fewer than two distinct values. Handing to Coder."
      },
      {
        "agent": "Coder",
        "content": "def second(xs): return sorted(xs)[-2]"
      },
      {
        "agent": "Tester",
        "content": "Tested with [1, 2, 3], which returns 2. Passing."
      },
      {
        "agent": "Reporter",
        "content": "Function verified on all cases."
      }
    ]
  }
]

// ... and 8 more items

Dataset & paper

Lin et al., arXiv preprint 2025

Paper DOI
10.48550/arXiv.2510.07593

Citation (BibTeX)

bibtex
@misc{lin2025agentask,
  doi = {10.48550/ARXIV.2510.07593},
  url = {https://arxiv.org/abs/2510.07593},
  author = {Lin, Bohan and Yang, Kuo and Tan, Zelin and Lai, Yingchuan and Zhang, Chen and Zhang, Guibin and Yu, Xinlei and Yu, Miao and Wang, Xu and Zhang, Yudong and Wang, Yang},
  keywords = {Artificial Intelligence (cs.AI), FOS: Computer and information sciences},
  title = {AgentAsk: Multi-Agent Systems Need to Ask},
  publisher = {arXiv},
  year = {2025},
  copyright = {arXiv.org perpetual, non-exclusive license}
}

Details

Annotation Types

handoff_review

Domain

Multi-Agent SystemsAgent Debugging

Use Cases

Error Taxonomy AnnotationAgent Trace AnalysisHandoff Quality Review

Tags

agentaskmulti-agenthandoffagent errorserror taxonomyarxiv preprint

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)