首页 > AI前沿 > Anatomy of an Agent Harness: Decisions, Invariants and Corner Cases

Anatomy of an Agent Harness: Decisions, Invariants and Corner Cases

arXiv自然语言 2026-11-15 20:05 18 阅读 查看原文

An agent harness is the program around a language model that turns its replies into actions: it builds each request, runs the tools the model asks for, decides what the model may do without asking, stores the conversation, recovers from failures, and shows a person what happened. Most of these decisions are made in code and rarely written down, so each harness meets the same corner cases again.

This paper writes them down as invariants to test. It gives a system model with trust boundaries; 30 decision cards in six groups, each with options and costs, an invariant, the corner cases that break it, a test and an evidence tag; six cause classes for failures; a test method built on scripted providers, recorded behaviour and planted changes; and a checklist.

The cards come from building one desktop harness, Crewroom, the author's own, and from manually testing ten other harnesses and studying open-