Two Views of Harnesses: Engineering Software and Running Agents
Using AI to develop a fund research agent brings two kinds of problems into view at the same time.
One concerns software development: Were the requirements understood in full? Do the changes respect the architecture? Can the tests catch problems? Can the next session pick up where the previous one left off? The other concerns what happens after a user starts a research task: Which sources should the model read? What should happen when a tool fails? When does the execution budget run out? Under what conditions is the result ready to deliver?
Both discussions often use the word harness. As a result, AGENTS.md, development skills, and CI appear in the same list as tool orchestration, context management, and task recovery. Each item has value, but the list does little to answer a more practical question: Does the problem in front of us call for a better development process, or a change to how the agent executes tasks?
This article uses two terms to distinguish these responsibilities: a development harness organizes work around software changes and delivery; an agent runtime harness organizes execution around an individual user task. The former makes changes grounded and verifiable. The latter gives task execution explicit state and boundaries. Understanding the distinction helps us decide where rules belong, what evidence to collect, and where a failure should be repaired.
1. Identify the Object of Control Before Listing Components
“Development harness” and “runtime harness” are working terms used here to analyze responsibilities. They are not two mutually exclusive categories that the industry has universally adopted.
OpenAI’s Harness engineering focuses on creating a suitable engineering environment for coding agents: making repository knowledge accessible, application behavior observable, architectural constraints checkable, and feedback available so the agent can revise its code. It provides a useful reference for what this article calls a development harness.[1]
Anthropic’s Scaling Managed Agents offers a more specific runtime perspective. The harness calls the model and routes its tool calls to the relevant infrastructure, while session history and execution sandboxes can exist as separate components. This definition also points to a useful boundary: a runtime harness has its own control responsibilities; the term does not need to encompass the entire backend.[2]
From these perspectives, a development harness addresses a software change problem:
Given the requirements, the current code, and engineering constraints, how do we produce a change that meets the requirements, has been verified, and can continue to be maintained?
The software being developed may be an ordinary business application or an agent product. This article uses the latter so that both sets of responsibilities can be examined through one example.
An agent runtime harness addresses a task execution problem:
Given the user’s goal, available information, and authorized actions, how do we advance the task and reach an appropriate state for delivering a result, requesting more information, or stopping?
Both use models, tools, and feedback. The meaningful difference lies in what they control and what evidence is sufficient to establish completion.
On the development side, “the model says the code is finished” is a progress claim. It must be considered alongside the changes, test results, and acceptance criteria. On the runtime side, “the model says the research is finished” also needs to be assessed against the sources, tool results, and actual artifacts. An answer may have been generated while a report that must be saved has not yet been written. A program may finish without an error while its comparison still uses inconsistent data definitions.
2. One Fund Comparison Feature Passes Through Both Harnesses
Consider a simplified teaching example. We want to add a feature to a fund research product: users select two funds, compare their performance and risk over the same period, and receive a report with data dates and sources. This example illustrates responsibilities; it is not a complete record of a real research run.
During development, turn “the feature works” into checkable requirements
An easy mistake at the start of this task is to interpret it as “add two selection controls and generate some comparison text.” Whether the comparison is valid depends on more specific conditions: which share classes were selected, what period the data covers, whether returns account for distributions, whether dates and currencies are comparable, and how the interface presents missing information.
A development harness should help the coding agent find these constraints and carry them into implementation and verification.
Suppose the change requires the report to retain its data cutoff date. Acceptance should follow the actual path: the server returns the date, the interface displays it, and the saved and downloaded report still contains it. Checking only that a function returns dataAsOf does not cover what the user ultimately receives.
Or suppose one fund is missing part of its historical data. The acceptance case should check whether the system explains that gap and whether it still produces an unsupported comparison. A successful API response alone is insufficient.
During this work, the coding agent may read specifications, modify code, run tests, open a browser, and revise the implementation based on what it observes. The feedback continues to concern the same object: whether this software change meets the agreed requirements.
The development harness therefore produces code together with evidence that can support acceptance. It also needs to preserve enough working state for the next session to know which requirements are complete and which remain unverified, rather than inferring progress from the tone of the previous conversation.
During use, handle the actual conditions of this particular comparison
After the feature has been delivered, a user asks: “Compare Fund A and Fund B over the past year, explain the differences, and include sources.”
The runtime harness now faces a specific task. The model needs to identify the funds and share classes, understand the comparison period, and select sources and calculation methods. The host system provides the relevant tools, checks whether calls are permitted, executes requests, and returns the actual results to the model.
If the data is complete, the model can continue its analysis and organize the calculations and sources into a report. If two sources have different cutoff dates, it needs to obtain data for a common period or explicitly narrow the scope of its conclusions. A temporary tool failure may be retried within the available budget. If essential information remains unavailable, the agent should present the confirmed findings and gaps, asking the user for clarification when necessary.
The model still has room to exercise research judgment. The harness maintains the real conditions on which that judgment depends: what was read, which call failed, how much execution budget remains, whether the task has been canceled, and whether the report was actually saved.
There is another distinction that is easy to overlook: development acceptance provides evidence about behavior under the conditions covered by verification; runtime control must handle the conditions this particular task actually encounters.
A test can verify that the system displays the required notice for a given sample with a missing date. It cannot replace checking whether the material obtained in this run really contains a trustworthy cutoff date. Similarly, one research task producing a reasonable answer does not establish that a code change has left other features intact.
3. Why Rules, Memory, and Permissions Appear on Both Sides
Development and runtime harnesses have similar structures because they address a common problem: a model proposes actions, but those actions need to take place in an environment that can be observed, constrained, and used to provide feedback.
The same mechanism names, however, take on different meanings when applied to different kinds of work.
| Mechanism | In a development harness | In an agent runtime harness |
|---|---|---|
| Rules and guidance | Explain requirements, architectural boundaries, the scope of changes, and acceptance criteria | Explain task goals, research methods, tool usage, and delivery requirements |
| Checks and feedback | Assess changes through code checks, tests, and browser observations | Assess task progress through tool results, sources, calculations, and artifact state |
| Execution loop | Implement, verify, review, and revise a software change | Observe, choose an action, execute it, and continue or stop based on the result |
| Externalized state | Preserve plans, decisions, code versions, and verification records | Preserve task progress, evidence references, action results, and recovery positions |
| Permission boundaries | Limit access to repositories, files, environments, and release operations | Limit access to user data, available tools, and actions on external systems |
| Observability | Locate the cause of a failed change, build, or acceptance check | Locate the call, state transition, or delivery step where a task went wrong |
The table also shows why mechanisms cannot be classified by filename or technical terminology alone.
A browser tool used to check whether a new page works is part of development verification. The same kind of tool used to read a public report for a user participates in a business task. One logging system can record both build failures and research tool timeouts. The relevant distinction is the work it is serving.
It is particularly important to separate writing down a rule from making it take effect. Development guidelines can require respect for module boundaries; dependency checks can report explicit violations. Runtime instructions can require permission checks before data access; the access itself should still be controlled by system components authorized to enforce those checks.
Text is useful for explaining goals, principles, and methods. Precisely enforceable permissions, budgets, and state constraints belong at the appropriate control points. Both sides need this combination. Turning everything into a prompt leaves gaps in enforcement. Hard-coding every research judgment into branches reduces the room to handle unfamiliar problems.
4. A Coding Agent Also Runs Inside an Agent Harness
The distinction would still be misunderstood if we reduced it to “a development harness is for programmers, and an agent harness is for agents.”
A coding agent is itself an agent. It calls models, reads files, executes commands, receives tool results, and manages context. It also needs mechanisms for stopping and recovery. These are runtime control responsibilities.
A team then adds requirements conventions, architectural guidance, engineering skills, test entry points, reviews, and release procedures around a particular repository. Together, these form what this article calls the development harness. The two can therefore be nested: a general-purpose agent runtime framework can provide the execution foundation for a development harness.
Anthropic’s Effective harnesses for long-running agents offers a clear example. Built on the Agent SDK, its approach adds initialization, feature lists, progress records, and incremental handoffs for extended coding tasks. The same runtime capabilities receive a more specific form of task organization in a software development setting.[3]
For this reason, the boundary between development and production cannot serve as the boundary between these harnesses. A business agent still needs its runtime harness during local tests and offline evaluations. A coding agent running as an online service may still be performing development work.
Nor should the distinction be reduced to configuration files versus code frameworks. A development environment can contain extensive executable checks, while a runtime framework also consumes prompts, skills, and policy configuration. Whether to use an existing SDK or build an implementation is a separate engineering decision: first establish which behaviors the available components cover, then determine what is missing.
If an SDK already supplies a tool loop and context management, continuing to use it is often a reasonable starting point. The business application may need only task identity, data permissions, domain tools, delivery state, and a few recovery conventions. Rebuilding the entire runtime foundation merely because we want a harness adds maintenance work.
5. How ETF Agent’s Implementation Reflects the Distinction
Our Agent Engineering Suite and the public Open ETF Agent implementation provide two observations with clearly defined scope.
The development suite’s evidence tooling distinguishes structural checks from semantic judgments. A well-formed evidence record does not automatically establish that a requirement was implemented correctly. Reading an existing verification status is also different from running that verification again. The source explicitly distinguishes states such as structural checks only and verification not rerun.[5]
This is a development harness responsibility: leave inspectable evidence of the work while preserving what that evidence actually means. An acceptance record must first answer what was actually checked. Its mere existence does not establish that the software meets its requirements.
The public Open ETF Agent runtime handles another kind of state. Around model and tool dispatch, it reserves budget and records execution state according to the applicable rules. When a persistent task resumes, it checks the original task’s budget and authorization bindings. Its results also preserve a separate state indicating that the research content has not yet undergone semantic review.[6]
This code expresses the control responsibilities of a runtime harness. It needs to know what an execution consumed and which boundaries must carry over during recovery. At the same time, it does not automatically equate reaching the end of execution with producing a correct research conclusion.
These observations are useful together: the development side must avoid reading “an acceptance record exists” as “acceptance has been established”; the runtime side must avoid reading “execution completed” as “the task result is good enough.” These are observations about the responsibilities expressed in the source code. Research quality still needs to be assessed through the relevant task evaluations.
6. Bring Problems Found During a Run Back Into Development
The most valuable connection between the two harnesses is how feedback passes from one to the other.
Return to the fund comparison report. If a user says, “There is a problem with the report’s citations,” the first step is to locate the failure.
The model may have selected a page that does not support its conclusion. A source already obtained may have been omitted from the final report. Or the report may initially have been correct, only for its link fields to be lost during saving. All three appear to be citation problems, but they require repairs in different places.
For the current task, the runtime harness can support reading the sources again, gathering more information, regenerating an artifact, or explaining which part cannot currently be completed. These actions address the difficulty facing the user now.
If the problem is confirmed to be a reproducible implementation defect, the necessary task input, tool results, artifact differences, and version information should be assembled into material that can reproduce it and passed to the development process. After the coding agent fixes the implementation, the same case can be used to check whether the problem is resolved, alongside checks of adjacent behavior that may have been affected. Samples containing user information need appropriate sanitization first.
Read the relationships in groups; the complete diagram remains available below.
- → Modify the implementation
- → Tests and task evaluations (decision)
- Requirements not met → Modify the implementation
- Requirements met → Deliverable version
- → Business agent executes a task
- → Tool results and task state
- More work needed and execution allowed → Business agent executes a task
- Delivery conditions met → Results and actual artifacts
- Missing information or a boundary reached → Clarify, deliver partial results, or stop
- Find a system issue and create a reproducible case → Development task and acceptance criteria [dashed relation]
Complete relationship diagram · enlarge for detail
The two loops in the diagram have different completion conditions. The upper loop iterates on software versions; the lower loop advances an individual task. A problem discovered during execution enters the development process after reproduction and assessment. The revised version is then checked through task execution again.
Evaluation sits at this connection. Anthropic’s article on agent evaluations distinguishes execution traces from final outcomes in the environment and describes scoring a task along multiple dimensions. In this example, we can separately check whether execution completed, whether the data definitions are consistent, whether the citations support the conclusions, and whether the saved report is complete.[4]
Each dimension should retain its own meaning. An execution without exceptions provides evidence about runtime stability. Complete citation fields provide evidence about structural completeness. Whether the research answers the user’s question requires examining the relationship between evidence and conclusions. An overall score can help summarize results, but it should not obscure the layer in which a failure occurred.
This lets the development harness obtain useful regression cases from real tasks, while version changes improve the runtime harness’s behavior. Without that connection, development may accumulate more and more rules while runtime keeps retrying the same kind of failure. Both sides remain busy without locating the problem together.
7. When Building a Harness, Find the Missing Feedback First
For a team using AI to develop agents, a practical starting point is to examine whether both paths work.
On the development side, choose a representative change. Confirm that the coding agent can find the acceptance criteria, perform the relevant verification, and leave results that support a handoff. If it repeatedly modifies unrelated modules, clarify the change boundaries. If it claims a fix is complete while the page remains unusable, add observations from the actual user path. Each new mechanism should address a specific gap.
On the runtime side, choose a representative user task. Check whether tool results actually inform the next decision, whether failures produce clear state, whether budget and permission boundaries remain effective, and what artifact the user ultimately receives. A simple loop may be sufficient for a short query with no side effects. Tasks that run across time, write to external systems, or need recovery place additional demands on reliable state storage and confirmation of actions.
The problem should determine the order of investment. Frequent regressions after code changes call for better development verification. Stable code with research that repeatedly misses the point calls for a closer look at task interpretation, evidence use, and research evaluation. Duplicate external actions call for examining execution receipts, retries, and recovery semantics. Adding more rules cannot be the same answer to all three.
Rules also need a way to be retired. Anthropic documented a case in which a context reset strategy added for an earlier model was no longer necessary after switching models. This supports an engineering judgment: compensations for model limitations should change with the model and task evaluations, while responsibilities such as identity, authorization, and the actual state of operations must remain with the appropriate system boundaries.[2]
The next time we ask what our harness is missing, we can start with a concrete problem and ask three questions: What kind of work does it constrain? What evidence establishes completion? Where should the problem be repaired when that evidence fails to satisfy the requirements?
If the object is a software change, connect requirements, implementation, and verification. If the object is a user task, connect the goal, actions, observations, and delivery. When we use AI to develop AI products, both paths exist, and both deserve deliberate design.
References
- OpenAI: Harness engineering: leveraging Codex in an agent-first world, 2026-02-11.
- Anthropic: Scaling Managed Agents: Decoupling the brain from the hands, 2026-04-08.
- Anthropic: Effective harnesses for long-running agents, 2025-11-26.
- Anthropic: Demystifying evals for AI agents, 2026-01-09.
- Agent Engineering Suite: Spec evidence tooling source, pinned commit
89c272c. - Open ETF Agent: Runtime control source, pinned commit
73e6b12.
Further Reading and Discussion
- Agent Engineering Suite: Connecting Requirements to Release
- From Model and Harness to a Research Loop That Revises Its Judgments
If this article is useful, consider starring the GitHub article collection and joining the discussion on agent engineering.