arXiv(opens in a new tab)cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.29128

APIFlow-Bench: Measuring Whether Agents Survive Long, Dependent API Workflows

Zelin Wan, Arash Nourian, Xiaoxiao Li, Nihar Nandan, Kamalakannan Nandagopal

Abstract

Tool-using agents are commonly evaluated by a single bit: whether an end-to-end workflow completed. This metric fails to distinguish failures that matter in production, such as expired credentials, malformed payload fields, unverified writes, or correct execution followed by incorrect final delivery. We introduce APIFlow-Bench, a fully auditable benchmark for long-horizon, dependent REST-API workflows that decomposes performance into seven engineering capabilities and requires agents to produce answers supported by the actual call path. In place of mining tasks, we procedurally generate synthetic API worlds forward, subtask by subtask. Each subtask is admitted only when a zero-LLM self-test triad verifies that its grader is load-bearing and an oracle establishes solvability (pass@10 ≥ 3). A subsequent adversarial audit identified and fixed six grader exploits. Evaluation is deterministic and provenance-sensitive: a state check traces a mock-minted canary through the API data flow to the response from which the answer is required to originate, while a typed answer card is verified field by field. We release all answer keys and 44,362 unredacted execution transcripts since successful completion depends on evidence available only through the correct call path. Across 19 frontier and open-weight models evaluated under one neutral scaffold, we find the following. (1) Longer dependency chains degrade success, from 93% on individual subtasks to 74% on clean 20-subtask chains and 61% when including the 8% of chain trials that a model-consensus screen flags as passed by no model. (2) Reliability separates models more than best-case capability does, with best-of-five performance spanning seven points but all-five-of-five reliability spanning 44 points above an approximately seven-point noise floor. (3) The standard independent-error account of compounding failure does not fit the data: observed pass rates on 20-subtask chains are 33 percentage points higher than the product of the corresponding subtask-level pass rates. This gap is not explained by agents simply failing late in execution. On the clean slice, 77% of failing runs drove the world to the correct final state and failed only at final delivery.

1 Introduction

In enterprise systems, consequential work is often performed through API calls embedded in business logic. An agent operating in such environments needs to authenticate, inspect state, interpret failures, repair malformed requests, retry safely, preserve dependencies across calls, and return an output that a downstream system can trust.

Existing state-based benchmarks, such as τ\tau-bench [Yao et al., 2025] and AppWorld [Trivedi et al., 2024], appropriately evaluate whether an agent reaches a target world state. However, a single workflow-level pass/fail outcome fails to distinguish an agent that successfully recovers from an authentication error from one that follows an error-free trajectory. In addition, such an outcome conflates an agent that correctly executes the workflow with an agent that reaches the correct backend state but fails to return the required result.

We introduce APIFlow-Bench, a benchmark for long, dependent REST-API workflows designed to expose this failure surface. APIFlow-Bench evaluates seven capabilities separately: authentication, discovery, schema repair, multistep execution, error recovery, pagination, and statefulness. Each task begins as a realistic service ticket: an initial failing API call, a truthful error signal, and a request to complete a job. Tasks can be composed into cumulative workflows of up to 20 dependent subtasks within one evolving synthetic API world.

Generated tasks provide privacy, scale, controlled variation, and reproducibility, but they introduce a central validity question: are the tasks solvable, correctly graded, and resistant to shortcuts? We therefore treat benchmark validation as a first-class contribution. A generated subtask enters the bank only after passing a zero-LLM self-test triad designed to expose grader failures and an oracle solvability gate evaluated in the same harness used for models. Each assembled chain also passes a two-sided golden replay. Finally, an independent adversarial reviewer attempted to exploit the completed grader. The audit identified six grader exploits, all of which we fixed.

APIFlow-Bench uses deterministic, provenance-gated evaluation. A run has to satisfy two conditions. First, a state check verifies that a mock-minted canary reaches the final workspace through the API data flow required by the task. Second, a typed answer card is checked field by field.

References (21)