H0-H3 all patch one empty-password bug; only H3 adds a verification report

AI Harness Engineering: A Runtime Substrate for Foundation-Model Software Agents

Hailin Zhong, Shengxin Zhu

cs.SE, cs.AI

2026-05-13

Agent reliability is framed as a harness problem: on one empty-password bug, H0-H3 all ship a working patch, and only H3 adds reproduction, attribution, and requirement checks.

What problem this solves

A correct local patch is not a finished development task. The model opens the wrong files, changes a UI while the API stays broken, misreads a failure, leaves junk files, and declares success without evidence. People stay in the loop to supply runtime support: which files matter, what a failure means, and what counts as verified.

The usual account blames the model. The unit of analysis here is the model, the harness (a runtime layer around it), and the environment. Context, project memory, and verification signals do not appear on their own inside one model call. With that support the system looks competent. Without it the same model looks unable to finish.

That distance is the autonomy gap. A person who points at a file, explains a test, or cleans residue mid-run is covering runtime support the harness did not provide.

Method

The harness does not change weights. It governs observation, action, feedback, and what counts as done. Eleven responsibilities name decisions an agent-on-repo system already makes: task interface, context, tools, project memory, task state, observability, failure attribution, verification, permissions, entropy audit, and an intervention log. Miss the context manager and the agent edits the wrong file. Skip attribution and the next edit is a guess. Stale docs and weakened tests then stay in the tree.

H0 through H3 separate the model from the runtime. The task, repository, initial commit, and model stay fixed. Each rung only adds artifacts the agent can see. Lower rungs cannot see higher-rung material, and evaluator notes stay hidden, so a gain can be assigned to a layer.

Those checks are visible to the agent only at H3. The evaluator still applies the same checks at every rung, so the scoring rule does not move with the ladder.

A run leaves an episode package: eight traces covering actions, tools, context, verification, attribution, intervention, entropy, and outcome, plus a patch and a verification report. Five labels separate a correct patch from a verified change. autonomousverifiedsuccess requires correct behavior, enough evidence, and no human standing in for the harness. Correct behavior without protocol evidence is unverifiedsuccess. Progress that depended on a person is assistedverifiedsuccess. Weakened tests or unrelated damage is unsafeinvalid.

M-HIR divides human interventions the harness could have replaced by the number of episodes. An entropy audit scores residue from 0 to 3.

A prompt covers one model call. A multi-agent framework wires agents together. This layer is the runtime support exposed during a software task, and an agent-computer interface is only its tool API. An operating-system analogy names the resources under management. It does not import a scheduler.

Results

The demonstration is a purpose-built Node.js login repo, repoA-T1, one run per rung. An empty password is not stopped by the validator. It falls through to credential matching and returns Invalid credentials. The required result is an error containing Password is required., with alice / correct-password still accepted, a non-empty wrong password still rejected, and a new test added. Instability in the old suite has to be written down.

LevelLabelEvidence added
H0autonomousverifiedsuccessPatch; evaluator checks pass; full regression succeeds
H1unverifiedsuccessTool trace, targeted test, lint; full regression times out
H2unverifiedsuccessPlus a context trace and task state
H3autonomousverifiedsuccessPlus reproduction, attribution, per-requirement checks, and a verification report

All four rungs emit a working patch. What changes is the evidence package. Before any edit, H3 reproduces the failure and observes {"ok":false,"errors":["Invalid credentials."]}, where the expected substring is Password is required. The attribution says the empty string reached credential matching. The validator is changed to reject empty and whitespace-only passwords, and a test is added. Full regression hits its timeout. The timeout is written into the report, not retried, and not treated as a pass. At H3, full requirement coverage plus a reported limitation preserves autonomousverifiedsuccess.

Tool traces appear from H1, context traces from H2, and reproduction, attribution, and the verification report only at H3. The model is unnamed. AVSR and M-HIR are defined and not measured. There is no comparison with SWE-bench or any existing coding agent.

Why it matters

A team shipping a coding agent can split its setup along the same four rungs: tools only, then architecture notes and task state, then a fixed sequence of reproduce, attribute, edit, verify, and report. Codex writeups and Microsoft harness notes already discuss context and human attention. They do not define the components, run a controlled ablation, or specify the evidence an episode must leave.

Project memory without a context trace is still hidden inside the prompt. An attribution log lets a reviewer check the diagnosis before the diff. Nothing in the case shows that a higher rung raises success on a real repository.

Limitations

The case is a demonstration: one toy repository, one run per rung. Multi-task suites, multiple models, and entropy across a sequence of tasks are left as future work.

Some of the thicker evidence is built into the inputs. H3 is given a reproduction protocol and a report template, so those records show that the workflow was followed. All four rungs still produced a working patch, and the model name is missing, so model effects and harness effects remain tangled. The ladder exists to separate them.

The adjudication rule and Table 5 disagree. The methods text says a passing patch with no internal verification protocol is unverifiedsuccess. Table 5 labels H0, the rung with less process evidence, as autonomousverifiedsuccess. H1 and H2 are unverifiedsuccess because full regression timed out. From the same initial state, regression finished at H0 and timed out once a tool registry was present. A single run cannot explain that.

The fix also rejects whitespace-only passwords. The stated requirement is the empty password. Entropy scores and M-HIR are not reported.

Terms

Source

What people are saying

Related papers

All paper explainers