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

Manuscript Offprint

arXiv:2608.13547

QuoteBench: How Matched Scores Can Hide Command-Path Failures

Shangao Li, Yao Zhang, Volker Tresp, Yuanyuan Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

LLM coding agents issue Bash commands through interfaces that may serialize, wrap, and reparse model output. Matched execution scores alone cannot distinguish command- generation errors from failures introduced after generation. QuoteBench measures this boundary with exact final-state validation on 56 one-shot tasks from 14 incident-derived families, crossing the generation contract with the execution transport around one deliberately unescaped added parser. Escaping at the interpolation point reproduces each replayed reply’s raw-path outcome, so any recovery under a disclosed boundary must come from the model changing its generation. Across eight same-window configurations, replaying the same reply through the added parser lowers success by 55.4–73.2 points; disclosure recovers 30.4–60.7 points for six configurations, and zero or slightly negative for the other two. Raw generation is nearly saturated at the frontier; boundary adaptation is what still separates models: GPT-5.6-sol’s matched gap of −3.6-3.6 points hides −64.3-64.3 damage and +60.7+60.7 compensation. The deployment configuration reorders models: one reversal among 26 comparable pairs is unambiguous and four more sit on single-task margins. Evaluations of command-issuing agents should report the model configuration, generation contract, execution path, operating point, and final-state validator rather than treat a matched score as an intrinsic model property.

1 Introduction

Bash quoting failures can corrupt literals, break routine agent actions, and trigger repair loops. Even simple tasks such as writing exact bytes, passing a literal argument, editing JSON, or invoking a remote-like wrapper must preserve quotes, dollar signs, backticks, newlines, glob characters, and expansion timing (Free Software Foundation, 2025; Holen, 2012; Wheeler, 2010). Public issue trackers document broken heredocs (the shell’s inline multiline-string syntax), over-quoted operators, and repeated repair attempts (Anthropic Claude Code community, 2026b; OpenAI Codex community, 2026; Warp community, 2025). The full survey appears in Appendix A.

A failure also consumes a model generation and tool invocation, while diagnosis and retry remain in the trace. A common recovery is to write and execute a temporary script, adding actions and possibly workspace artifacts. The incident evidence guides family selection and mechanism coverage, not prevalence estimation.

Current benchmarks leave this failure mode entangled with other capabilities. Broad coding and terminal benchmarks combine command construction with planning, repository navigation, and recovery (Liu et al., 2024; Zhou et al., 2024; Xie et al., 2024; Yang et al., 2023; Jimenez et al., 2024; Merrill et al., 2026), whereas command-generation benchmarks score emitted programs under fixed transport (Lin et al., 2018; Agarwal et al., 2021; Westenfelder et al., 2025; Yu et al., 2026). Thus agent success does not reveal whether the first command preserved its payload, and command-generation success does not show whether it survives deployment. Bash quoting permits a focused test because parser rules are public and final state is exactly checkable (Free Software Foundation, 2025).

We introduce QuoteBench, a benchmark of one-shot LLM-generated Bash commands. Its 56 tasks cover 14 operation families, each with one benign control and three hazardous payload variants. The tasks exercise multiline text, hostile filenames, regular-expression and glob metacharacters, heredocs, literal argv and environment values, Git metadata, and two local SSH-like simulations. Validators inspect final bytes, argv, JSON, directory state, or Git history, so any command that reaches the correct state receives credit.

Agent interfaces range from direct shell actions to structured action languages (Yang et al., 2024; Wang et al., 2024; Kim et al., 2026). We call a reply that runs as the shell program raw, and a command field extracted from a structured tool call native. A fixed-commit survey of six public agent systems finds both in use (Appendix Table 8).

Commands targeting remote or containerized machines can cross another boundary and be reparsed inside double quotes, for example through ssh host "…", docker exec sh -c "…", or a CI run: step. QuoteBench uses this pattern as the nested condition, a controlled intervention that adds one downstream parser. Five of the seventeen retained public incidents contain such a boundary.

We ask how reliability varies across models, operation families, and command paths, how generation contract interacts with execution transport for fixed replies, and what provider-exposed effort ladders reveal about matched and replayed behavior. At the fixed configurations used for the same-window crossover, matched nested success spans 14.3–91.1%. Table 2 separately selects each model’s best observed measured operating point, where three models reach 100.0% and the remaining scores span 14.3–98.2%. Separately, six provider-hosted models using native shell tools score 85.7–98.0%. Effort improves matched success for some models but not others, and the same effort label corresponds to different token budgets across models.

To separate generation errors from transport damage, we replay each fixed raw-conditioned reply with and without one added double-quoted parser. This intervention reduces success by 55.4–73.2 points in every same-window configuration. Under the same transport, contract-conditioned generations recover 30.4–60.7 points for six of eight configurations. This realized contrast is computed over the stored generations in the frozen benchmark. Across the observed trial-0 effort rungs, the unconditional nested-replay pass rate varies by at most 5.4 points within each measured ladder. The same mechanism persists on private payloads and across repeated draws.

Concurrent work already shows that changing the harness reorders model leaderboards (Zhang et al., 2026b), but because it swaps the whole scaffold it measures variance without attributing a reversal to any one mechanism. By fixing the model output and changing a single parser, QuoteBench attributes the reorder to the command path and decomposes the matched score into transport damage and contract-conditioned compensation.

This paper makes three contributions:

  1. A final-state benchmark of command-path reliability. QuoteBench turns recurring quoting and escaping failures into 56 exact-state tasks from 14 operation families. Controlled payload variants and audited validators isolate literal preservation from planning and recovery.
  2. A crossed design for mechanism identification. Generation contract and execution transport are varied independently, and fixed-reply replay decomposes matched scores into transport damage and contract-conditioned compensation. This reveals when aggregate success masks large opposing effects along the command path.
  3. Robustness and a measured, not novel, fix. The transport loss persists across effort settings, repeated draws, userlands (GNU versus BSD coreutils environments), and held-out payloads. Two obvious fixes, correct escaping and a temporary script, each remove the effect entirely; precisely because the fixes are trivial, the contribution is the measurement, not the repair. Both fixes require the caller to control the boundary, yet our harness survey (Table 8) records boundaries applied downstream of the stated contract. A matched score alone cannot tell an evaluator whether a fix is needed. Typed operations are an exploratory alternative.

These results motivate path-matched model and effort selection and require system builders to report both the generation contract and execution transport.

References (25)