Harness Engineering for Predictable Agentic Systems: An Empirical Study of Deterministic Execution Constraints
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Large Language Model (LLM) based agents exhibit substantial run-to-run execution variance even when given identical tasks and tools -- acceptable for exploratory use but unacceptable in regulated domains such as finance and compliance. We study harness engineering: wrapping an agent in a deterministic execution layer (finite-state control, forced tool selection, output validation, bounded retry, and structured planning) and measuring its effect on execution determinism and task success. Across two synthetic tasks (finance and legal) and two open-weight models (Qwen-2.5-7B-Instruct, Gemma-3-27B), a first-pass harness produces a mixed result: it significantly improves reproducibility in one of four model-task cells, significantly degrades it in two, and has no effect in the fourth. A trace-level diagnostic finds the cause: once tool sequence, state sequence, and output are already highly consistent, an unconstrained free-text planning step becomes the dominant remaining source of variance. Adding Structured Planning -- validating the plan against a fixed schema before any tool is invoked -- eliminates the effect entirely: three of four cells reach a Reproducibility Rate and Determinism Index of 1.000 at N=100, and task success rises to 100% in three of four cells. The gain is not free: token cost falls in every cell, but latency shows a genuine, sample-size-robust split by model -- one becomes faster under the constraint, the other markedly slower. We argue harness engineering is a distinct, effective discipline for agent reliability, but its cost is model-dependent and must be measured, not assumed.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 4 of its 14 references that are in the map. First posted on arXiv 25 Aug 2026.
Builds on
4 of 14 references.
Closest ancestors · 1
Same direction, newest first
- 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents21 May
Other references · 3
- 2026How Consistent Are LLM Agents? Measuring Behavioral Reproducibility in Multi-Step Tool-Calling Pipelinescited by 5
- 2026R-LAM: Reproducibility-Constrained Large Action Models for Scientific Workflow Automationcited by 2
- 2026Beyond State Machines: Executing Network Procedures with Agentic Tool-Calling Sequencescited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Stop Comparing LLM Agents Without Disclosing the Harness
- 2026Harness as an Asset: Enforcing Determinism via the Convergent AI Agent Framework (CAAF)
- 2026Harnesses for Inference-Time Alignment over Execution Trajectories
- 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses
- 2026Composing Task-specific Agent Harnesses at Test Time with Reusable Primitives
- 2026Dissecting model behavior through agent trajectories
- 2026Verify Smarter, Evolve Further: Efficient Harness Evolution through Behavior-Aware Verification
- 2026Code as Agent Harness