Harness Engineering · Episode 02

Inside a Production Agent Harness

Four responsibilities, five harness decisions, and the deployment view underneath.

Arc · The anatomy Episode · 2 of 8 Next · Episode 03 — Four Small Changes, Dramatic Outcomes
After this episode

After this episode, you will be able to explain what a harness is, separate its responsibilities from the model, tools, and environment, and draw the control decisions that turn a proposed action into accepted work.

01Where Episode 01 left us

At 9:20 on Friday morning, the reconciliation dashboard is still green.

It says the agent completed the job. The ledger says otherwise: 847 invoices were processed, 2,347 were eligible, and 1,500 are still waiting.

This is the illustrative invoice workflow carried forward from Episode 01. The numbers make the failure concrete; they are not a measured customer result.

The model handled every record it received. The surrounding system fetched one page of a larger queue and accepted a final response as evidence that the whole job was done.

There are at least two repairs to consider: retrieve the full workload, and prevent completion when the workload has not been accounted for. Fixing retrieval addresses the immediate omission. Fixing completion helps catch other ways the same omission could recur.

That distinction matters. The component where a defect begins, the control that could contain it, and the person who owns the repair need not be the same.

We will keep four responsibilities explicit throughout this series:

The model proposes. The harness manages the work. Tools perform operations. The environment supplies the state and limits within which those operations run.

This episode turns that distinction into a system you can draw, inspect, and improve.

02What, precisely, is a harness?

Three days after the invoice failure, the team draws the agent on a whiteboard.

The model is easy. So is the invoice API. Then the room slows down.

Where does retry state live? Who decides the queue is empty? Which information survives a restart? What blocks an unauthorized adjustment? Where can on-call see the evidence used for a decision?

Twenty minutes in, the board has four boxes and eleven question marks.

Here is the definition we will use:

An agent harness is the software control system around model calls that manages a task’s execution: it assembles context, maintains working state, coordinates model calls and tool operations, applies workflow policies, and determines when to continue, pause, hand off, or finish against defined acceptance checks.

In plain language, the harness turns model responses into a managed process. It keeps track of the job, arranges the next step, and checks whether the process may proceed.

That definition does not make the harness everything outside the model. A database remains part of the environment. An operation that queries it remains a tool. The harness decides when that operation is needed, supplies the task’s scope, handles the result, and decides what happens next.

Vendors may package the harness, tools, storage, and execution infrastructure together. The package boundary does not erase these responsibility boundaries.

Nor does “manages” mean every decision must be hard-coded. A model can propose the plan, select a tool, or judge an ambiguous result. The harness invokes those decisions and handles their consequences. Controls that must withstand a mistaken proposal need enforcement beyond the proposal itself.

The harness also does not invent the business definition of success. People accountable for the workflow define it; the system implements checks against it.

03Three views, one machine

You need different drawings for different questions.

ViewThe question it answersWhen it helps
MHTE: Model, Harness, Tools, EnvironmentWhich responsibility is involved?Understanding behavior, investigating failures, and assigning repair owners
Five harness decision clustersWhat must the control system manage?Designing or auditing the workflow
Session, harness service, sandboxWhere are history, control, and execution deployed?Investigating restart, persistence, isolation, and recovery
Figure 01 · Concept
Three views, one machine
VIEW 1 · RESPONSIBILITIES
ModelProposes responses and actions.
HarnessManages the work.
ToolsPerform operations.
EnvironmentSupplies state and execution limits.
LOCATE THE RESPONSIBILITY
VIEW 2 · HARNESS DECISIONS
1 · Operating contract
2 · Memory policy
3 · Orchestration
4 · Interception
5 · Observability and evals
AUDIT THE BEHAVIOR
VIEW 3 · DEPLOYMENT
Session and task storeEvents, checkpoints, pending work.
Harness serviceRuns the control loop.
SandboxTool execution and local files.
Recovery depends on what persists.
INSPECT RECOVERY
One system, three views: responsibility, decisions, and deployment.
Figure 01 · Three views of one machine. MHTE describes responsibilities. The five clusters organize harness decisions. Session, harness service, and sandbox describe one possible deployment architecture. They are different views, not competing lists of layers.

MHTE is not an organization chart. One engineering team may implement all four responsibilities. Several teams may share one of them. A single service may contain code performing both harness and tool responsibilities.

Use the distinction to ask better questions before assigning ownership. “It lives in the platform service” tells you where to look. “The workflow accepted an incomplete result” tells you what needs repair.

04From proposal to accepted result

Return to the invoice job. The user asks: “Reconcile all eligible invoices for this tenant as of 9:00 a.m. Draft adjustments where needed. Do not issue payments.”

The cutoff is part of the task. Without one, new invoices can arrive while the agent works, changing what “all” means.

StepWhat happens
  1. 1. Establish the workload

    Retrieve the eligible invoice IDs for the tenant and cutoff, following every page.

    How MHTE separates the responsibilitiesThe harness manages scope and pagination. A tool queries the ledger. The environment supplies records, access rules, and whatever snapshot or version guarantees the ledger supports.

  2. 2. Interpret the evidence

    Compare an invoice with candidate payments and propose a match or exception.

    How MHTE separates the responsibilitiesThe model interprets the evidence. The harness assembles that evidence and the applicable matching rules.

  3. 3. Check the proposal

    Validate the invoice identity, tenant, amount, and permitted operation.

    How MHTE separates the responsibilitiesThe harness invokes the checks. The tool validates its inputs and required permissions. The environment restricts the credentials and records the operation can reach.

  4. 4. Perform the operation

    Save a draft adjustment or record an exception.

    How MHTE separates the responsibilitiesThe tool performs the operation. The environment stores the resulting state. A proposed tool call is not evidence that a write occurred.

  5. 5. Observe the result

    Read the saved record and associate it with the original invoice.

    How MHTE separates the responsibilitiesA tool retrieves the result. The harness records the evidence and determines whether to continue, recover, or escalate.

  6. 6. Accept or report incomplete work

    Compare the expected invoice IDs with the IDs in accepted outcome states.

    How MHTE separates the responsibilitiesThe harness applies the completion rule to evidence from the environment. The model can explain the result, but its explanation does not replace that evidence.

Figure 02 · The loop
One invoice, four responsibilities
One invoice, four responsibilities An environment boundary surrounds a loop. The harness sends task, evidence and available tools to the model; the model returns a proposal. The harness sends a checked operation request to tools; tools return a result or error, with evidence. The harness applies acceptance checks before reporting success. Model inference may be hosted remotely; the boundary denotes the overall task environment, not a single deployment host. ENVIRONMENT: ledger state, files, credentials, network, execution limits MModelpropose a matchor next action HHarnessscope, context, checks, progress,recovery, completion TToolsquery records, save a draft,read the result Task, evidence,available toolsProposal Checked operationrequestResult or error,with evidence Apply acceptance checks before reporting success The environment supplies the state and limits throughout the loop. A proposal is not permission; an operation result is not automatically an accepted outcome.
Figure 02 · One invoice, four responsibilities. The model proposes a match; the harness manages the checks and next step; tools read or write records; the environment supplies the ledger, permissions, and execution limits. Tool results return to the harness, so the process is a loop. The environment is not merely the final box in a pipeline.

Suppose the run has 2,347 output rows. That still does not prove coverage. It could contain the same 847 invoices repeatedly while omitting others. Compare record identities, detect duplicates, and use a stable definition of eligibility—not just equal counts.

Suppose every invoice has a recorded state, but 120 need human review. Whether the automated job may finish depends on its contract. “Every invoice reconciled” is different from “every invoice reconciled or transferred into an acknowledged exception queue.” Show the unresolved work either way. Assigning an exception does not resolve it.

If the source cannot provide a stable snapshot, make that limitation explicit. The workflow may need a recorded cutoff, a change log, or a later reconciliation pass. More confident model language cannot supply a guarantee the source system lacks.

05View 1: four responsibilities

Model: proposes

The model interprets inputs and produces a response: a draft, classification, plan, tool request, or judgment. Its learned capabilities affect whether those proposals are useful and correct.

Using “proposes” does not mean the model only suggests actions to a human. A proposal can proceed automatically when the surrounding controls authorize it. The word separates generated intent from permission and execution.

When a product says “the model remembered,” ask what actually happened. A previous event may have been stored, retrieved, and placed in the current context before the model used it. Those are different mechanisms with different failure modes. A larger context window does not by itself create durable memory.

Harness: manages the work

The harness assembles context, exposes relevant capabilities, invokes the model, handles its responses, dispatches operations, tracks progress, and manages continuation, approval, recovery, and completion.

It may be a small loop or several cooperating services. Size does not define it. The responsibility does.

A “retry three times” utility can contain harness logic. So can a rule that pauses a run until an approver has reviewed an exact proposed action. Neither becomes reliable merely because it is called a harness.

Tools: perform operations

A tool is a callable operation: retrieve invoices, read a file, run a test, save a draft, or send a message. Its contract specifies accepted inputs, returned outputs, side effects, permissions, and failure behavior.

The harness manages when and why to call it. The tool implements what that call does.

The boundary can share a codebase. A wrapper that checks workflow approval before calling a connector performs a harness control. The connector operation that creates the record performs the tool function. Classify the responsibility being discussed rather than forcing the entire package into one box.

Tools can also perform substantial reasoning. A specialist agent exposed as a tool is a bounded capability from its caller’s perspective, while internally it has its own model, harness, tools, and environment. “Tool” describes the interface in that interaction; it does not imply a trivial implementation.

Environment: supplies state and limits

The environment includes the files, databases, browser sessions, installed packages, network routes, credentials, and execution resources within which work happens.

It supplies both possibilities and constraints. The database contains the current invoice. A permission restricts which tenant’s records can be read. A network policy blocks an unapproved destination. An unavailable dependency prevents an operation from running.

One term can appear in two discussions without collapsing the distinction. “The invoice API” may mean the tool’s callable interface or the remote service holding business state. Name the specific responsibility: query operation versus ledger state and access policy.

06The runtime underneath

Runtime infrastructure provides the services needed to execute and operate the system: scheduling, queues, durable storage, isolation, credentials, deployment, and resource limits.

It is not a fifth MHTE responsibility. It is an implementation view. Some runtime services host harness logic; others provide the environment in which tools execute.

For example, the harness may decide that a job has exhausted its allowed budget. A scheduler prevents another task from starting. A storage service preserves the checkpoint. The product behavior depends on all three working together.

Evaluation is also not a fifth layer. It is an activity that checks behavior against a criterion. A harness can invoke an evaluator, a tool can run a deterministic check, a model can supply a judgment, and the environment can provide evidence. Some evaluations happen during a run; others happen before release or after an incident.

What a managed harness does—and what you still own

OpenAI’s September 10 Agents API announcement makes the Codex harness available as a managed service, together with infrastructure for long-running work. It describes context management, tool use, and subagent coordination as harness responsibilities.1

Buying that machinery can reduce implementation work. Your team still needs to specify which records are in scope, what constitutes an acceptable result, who may authorize a consequential action, and what the user should see when the job is incomplete.

Ask the vendor to demonstrate a restart, an expired permission, a partially completed write, and an export of the run’s evidence. Also ask which behavior can change when the provider updates its managed harness, and how you can test that change before expanding use.

The useful build-or-buy question is specific: Which responsibilities does the provider implement, which guarantees does it offer, and which decisions remain ours?

07View 2: five decisions inside the harness

The five clusters organize the work of the harness. They do not replace MHTE.

ClusterThe decisionExamples
Identity: the operating contractWhat job is this run authorized to pursue?Objective, scope, instructions, allowed actions, acceptance rules
Memory policyWhat should the model see now, and what should persist?Retrieval, context assembly, compaction, retention, correction
OrchestrationWhat happens next?Model selection, sequencing, delegation, retries, budgets, pause, stop
InterceptionWhich transition requires a check?Validation, permission checks, approval, output inspection
Observability and evalsWhat happened, was it acceptable, and what should change?Trace events, outcome checks, failure analysis, regression cases

“Identity” here means the operating contract, not the credential used to authenticate a caller. We will separate those in Section 15.

For a practical review, turn the five clusters into six questions:

  1. What should the model see? Include the task, relevant policy, current evidence, and necessary prior state. Preserve important uncertainty and source dates.
  2. What may it propose using? Make relevant tools discoverable. Exposing a tool does not grant permission to execute every operation it supports.
  3. Which model and budget fit this step? Choose capability, response format, effort, time, and cost limits for the work. Extraction and ambiguous judgment may need different settings.
  4. How should the work proceed? Choose the simplest process that meets the requirements. Each extra call or agent creates work to coordinate and verify.
  5. What should survive? Preserve the state needed for recovery and accountability, with appropriate access and retention rules.
  6. What counts as done? Check the requested outcome, permitted path, and unresolved work. A final answer is an event in the process, not a universal completion certificate.

08Identity: what contract starts the run?

For the invoice workflow, the operating contract could be:

FieldExplicit meaning
ObjectiveMatch eligible invoices to payments and identify exceptions
ScopeOne tenant, a recorded eligibility cutoff, and an identifiable set of invoices
Allowed operationsRead records, record matches, and create draft adjustments
Prohibited operationsIssue payments or alter bank details
Exception handlingRecord the reason, evidence, receiving queue, and accountable owner
AcceptanceAccount for every eligible invoice under the agreed completion rule; report unresolved exceptions separately

Some instructions guide judgment. Others need enforceable controls.

“Flag an ambiguous match” tells the model how to reason. “Do not alter bank details” should also be reflected in the available tool operations and the permissions of the execution identity. If a general-purpose browser or shell provides another route to the same write, restricting one named tool is insufficient.

This is where responsibilities connect: the model interprets the contract; the harness manages the workflow under it; tools enforce their operation-specific requirements; the environment limits the underlying access. A prohibition should not depend on the model remembering a sentence.

A stable contract, with detail when needed

Putting every policy, incident, tool description, and task procedure into one permanent prompt creates another problem: relevant instructions become harder to distinguish from old or unrelated material.

Keep the standing contract understandable. Retrieve task-specific instructions and evidence when they become relevant. Record which versions were used. If a policy is mandatory, its retrieval must be a tested part of the workflow rather than a hope that the model will remember to search for it.

Initiative and authority are separate choices. An agent can proactively identify a duplicate invoice and prepare an explanation without being authorized to issue a payment or contact the vendor. Expanding one does not require expanding the other.

09Memory policy: what earns space now?

The model’s context window is the desk it works at. The session history is an archive. Retrieval brings selected material from the archive or other sources to the desk.

A larger desk helps. It does not guarantee that the right record was stored, retrieved, or understood.

It is useful to distinguish four kinds of information:

InformationPurposeWhat can go wrong
Current contextSupport the next model callRelevant evidence is absent, stale, or buried
Session historyRecord the sequence of eventsA summary omits a failed operation or pending approval
Durable task stateSupport recovery and coordinationA proposed write is recorded as if it succeeded
Reusable memoryCarry useful information between tasksAn inference becomes a persistent “fact,” or private information reaches the wrong task

Anthropic’s Managed Agents architecture separates durable session history from the model’s temporary context and from the sandbox where execution happens. That is a concrete example of the deployment separation, not a guarantee that every agent framework preserves state in the same way.2

In MHTE terms, the environment stores records and artifacts. Tools read or write them. The harness manages selection, scope, retention, and use. The model interprets the material it receives and may propose a memory update. A proposed update should not automatically acquire the authority of a verified record.

Preserve uncertainty when you preserve information

Imagine an assistant infers from an email that a customer prefers annual billing. Store that as an inference with a source and date, if it is worth storing at all. Do not silently turn it into “Customer selected annual billing” and let a later workflow treat it as authorization.

Compaction has the same obligation. It can shorten the working conversation, but it should preserve distinctions such as proposed versus approved, attempted versus confirmed, and known versus inferred. Keep important original evidence recoverable for as long as the applicable retention policy requires.

Disconnecting access is different from forgetting

Anthropic’s October 23 Claude Duet safety article says that disconnecting an app stops new access, while information already learned remains until memory is reset.3

That detail exposes a product question every persistent agent needs to answer: when access is withdrawn, what happens to previously copied content and derived memory?

Consider an employee who loses access to an acquisition project. Blocking the next document fetch does not remove an earlier summary from the agent’s context, search index, or saved notes. Define how those copies are restricted, invalidated, or deleted, while preserving any records that must be retained under the organization’s policy. Then test a later task to see whether the revoked information can still influence its output.

Workarounds need exit conditions

A context-management workaround may fit one model and hinder another. Record the model or configuration it applies to, the failure it addresses, and the evidence needed to remove it. Retirement should follow testing, not a newer model’s launch announcement.

10Orchestration: what happens next?

Every response creates a choice: perform an operation, seek more evidence, retry, delegate, ask a person, pause, or stop.

The model may recommend the next step. The harness manages its lifecycle.

For a consequential operation, a useful sequence is: check scope and permission; record the intended operation with a stable identifier; dispatch it; record the returned result; verify the resulting state; then decide what follows.

Do not collapse these states:

StateWhat it means
  1. ProposedThe action has been generated but not authorized or executed
  2. Awaiting approvalWork cannot cross a defined boundary yet
  3. Attempted; outcome unknownThe request may have taken effect, but confirmation is missing
  4. Effect confirmedEvidence shows the operation happened
  5. AcceptedThe result satisfies the workflow’s relevant acceptance checks
  6. Paused, failed, or cancelledThe lifecycle stopped or suspended; the status alone does not establish what side effects occurred

A timeout is not proof that nothing happened

Suppose a tool asks the ledger to create an adjustment. The ledger saves it, but the connection fails before the reply arrives. An immediate retry can create a second adjustment.

The harness should retain an “outcome unknown” state and resolve it using an operation lookup or the service’s supported idempotency mechanism. An idempotency key identifies the same intended operation so a supporting service can avoid performing it twice. It works only within that service’s documented scope and retention guarantees; adding a random request ID is not enough.

The harness manages the retry decision. The tool exposes the operation and result contract. The environment’s service must implement the relevant transaction or duplicate-prevention behavior. The model may explain the situation, but cannot establish whether the ledger committed a write without evidence.

Retries need limits and a reason. A transient connection failure may justify waiting and retrying unchanged input. A rejected schema needs corrected input. A denied permission needs an authorized change or a stop—not repeated attempts through alternative tools.

Completion is evidence, not confidence

Anthropic’s workflow-run documentation makes a useful distinction about a completed result:

“The result doesn’t say whether the work passed.”4

Its documentation explains that a workflow can finish while work in a child thread has failed. The vendor lifecycle status and your business acceptance rule answer different questions.

For the invoice job, acceptance requires evidence of coverage by invoice ID, valid outcomes, matching quality, permitted actions, and explicitly reported exceptions. A parent run cannot infer those from a set of cheerful worker summaries.

Delegation creates a merge problem

Consider splitting the 2,347 invoices across workers. Parallel processing may help if invoices can be handled independently. It becomes harder if two invoices compete for the same payment or workers update the same account balance.

For independent partitions, the coordinator needs more than “Worker A, do the first half.”

Handoff fieldWhy it matters
Task ID, exact record IDs, and source versionEstablish what this worker was asked to process
Allowed operations and delegated scopeKeep worker authority within the job’s grant
Output format, evidence references, and unresolved itemsMake results inspectable and mergeable
Ownership of writes and conflict rulesPrevent workers from silently overwriting or contradicting one another
Budget, deadline, and cancellation behaviorBound the whole task, including nested work

The coordinator must check that results cover the intended inputs, resolve conflicts, and surface failed or unstarted work. Separate context windows do not imply separate files, credentials, or write permissions.

Nor does a second agent automatically provide independent verification. If it sees the same incomplete evidence and accepts the first agent’s framing, both can miss the same error. Give the verifier a checkable requirement and access to authoritative evidence.

Anthropic’s October 22 account of enterprise agent design reports cases where consolidating specialists into one loop improved results. It also describes a consolidation that broke a previously working shipping-information path. These are vendor observations, not a universal architectural ranking.5

The practical test is to compare a single loop with skills against the proposed delegation on the same tasks. Inspect which cases changed, repeat variable runs, and include quality, permission failures, latency, and total cost. Keep the extra agents when their contribution survives that comparison.

11Interception: which crossing needs inspection?

A hook is a place where the system can observe, validate, modify, pause, or block a transition. A hook is an opportunity to enforce a control; its existence is not proof that the control works.

MomentQuestionExample
Before context assemblyMay this task use this information?Check tenant scope and current access before retrieval
Before an operationMay this exact action proceed?Validate recipient, resource, amount, policy version, and approval
After an operationWhat actually happened?Read the resulting record; preserve provenance on returned content
Before completionDoes the evidence satisfy the contract?Reconcile expected IDs with accepted results and unresolved exceptions
After the runWhat should persist?Save necessary evidence under explicit retention and access rules

Use a deterministic validator for requirements that can be stated precisely. Use calibrated model or human judgment where interpretation is necessary. A model-based safety classifier can add protection, but it remains fallible; it should not be described as a deterministic guarantee.

Put consequential boundaries beyond the agent’s ability to rewrite them

Meta’s September 8 Muse safety design separates the working agent from host-side security services. Its Sentinel mediates connector actions and network access, while credentials remain outside the working agent’s reach. Its permission grants can have different scopes and lifetimes.6

Meta describes the approval design this way:

“The point is not to ask the user about everything.”6

The design principle is to make authorized work proceed within clear bounds and put meaningful decisions at the boundary. This is an interpretation of the architecture, not evidence that its protections eliminate mistakes.

In MHTE, the model proposes an action. The harness routes it through the required control. A tool performs the approved operation. The environment’s isolation and access controls help prevent another route from bypassing the check. These responsibilities can span separately deployed services without becoming interchangeable.

An approval should name the thing being approved

“Allow this agent to help with invoices?” is too broad to authorize an unexpected vendor payment. A useful approval identifies the action, destination, relevant content or amount, and scope of the grant. If those material details change, re-evaluate whether the earlier approval still applies.

Approval also precedes execution in time. A quote can change, another worker can update the invoice, or a grant can expire while the action waits. The tool or receiving service should check the relevant current conditions when it performs the operation. The harness must handle a rejected or stale request rather than treating earlier approval as proof that execution is still valid.

Claude Duet’s safety article describes approval cards showing the action, destination, content, and recipients, alongside a separate automated check. It also explicitly recognizes approval fatigue and acknowledges that its classifiers can make mistakes.3

The product challenge is to avoid both unauthorized action and repeated requests for permission already granted. Track legitimate work blocked by controls as well as prohibited work allowed through them. Reduce friction by making grants precise and usable, rather than treating every interruption as either necessary safety or needless bureaucracy.

Returned content keeps its provenance

A vendor email that says “ignore the spending limit” does not become policy because a tool retrieved it. A model summary of that email does not become policy either.

The content may be useful evidence about the vendor’s request. It does not gain authority to redefine the user’s objective or the organization’s limits. Preserve the source and the distinction between an external request and an authorized instruction as material moves through retrieval, transformation, and summarization.

12Observability and evals: what did the run mean?

A trace records what the system observed and did. An evaluation checks behavior against a criterion. A feedback process turns the finding into a proposed change, which then needs its own validation.

Keep three questions separate:

  1. Did the requested work succeed? The right invoices were reconciled under the agreed scope.
  2. Did the process respect its boundaries? It used permitted data and operations, handled uncertainty honestly, and preserved required evidence.
  3. Was the work worth the resources it consumed? Include time waiting for approvals, human repair, tool charges, and abandoned or duplicated attempts.

The October 23 Trial by Trace preprint separates task performance from harness reliability. In its 3,420 benchmark runs, 31.1% achieved task success while failing at least one of its harness criteria. That is a finding about the study’s tasks and criteria, not an estimate of unsafe enterprise deployments. It supports inspecting the path as well as the outcome.7

A useful run record includes the task and tenant, component versions, source references, permission decisions, tool requests and results, retries, approvals, costs, and acceptance evidence. Distinguish observed events from model-written explanations.

Be selective with sensitive payloads. Access-controlled references may be preferable to copying private content into every trace. “Log everything” can create a second system containing the same sensitive data with weaker controls.

The user’s waiting time is part of the system

A practitioner complaint puts the gap plainly. On October 21, Nic Vandewetering wrote:

“They promise autonomy. I get blockers and email summaries.”9

This is one person’s account, and the thread also promotes an agent product. It is useful as a question to investigate, not a representative comparison of vendors: does delegation actually remove work, or does it create a new queue of supervision?

A technically accurate assistant can still fail as a delegated worker if it repeatedly stalls without a clear next action. For a blocked run, show what is blocked, why, who can unblock it, what work remains, and what happens at the deadline.

A useful status is: “847 of 2,347 invoice IDs accounted for. Retrieval permission expired. No new writes are being started. The current adjustment request is awaiting confirmation.”

“Still working” hides the decisions the user needs to make.

Deeper measurement design belongs in AI Evals. Here, the harness must provide enough evidence to connect the system’s behavior to those judgments.

13View 3: session, harness service, sandbox

Engineers also need a deployment picture. One useful separation is:

ComponentIts roleThe recovery question
Session and task storePreserve events, checkpoints, pending operations, and task stateIs the record durable, current, and sufficient to resume safely?
Harness serviceRun the control loop and manage transitionsCan another worker resume without repeating an unconfirmed side effect?
SandboxProvide an isolated execution environment for tools and filesWhich files and processes disappear when it is replaced?

These components are replaceable only to the extent that their contracts and state allow it. A durable conversation history does not automatically preserve a generated file left on an ephemeral disk. An event log that records a write request but loses the confirmation leaves an unresolved external effect.

For a restart, distinguish two kinds of replay. Reconstructing the sequence of recorded events can help you understand a run. Reissuing its operations can change the world again. Recovery should decide which operations are safe to repeat, which require a status check, and which need intervention.

Cancellation also has limits. It may stop new work without reversing a message already sent or an operation already committed. Revoking a credential blocks later access; reconciling prior effects establishes what happened. Treat stopping, revoking, and reconciling as separate actions.

MHTE describes the responsibilities. This deployment view shows where their implementations and state can fail.

14One file, four lenses

Take AGENTS.md in a coding repository.

Point in its lifecycleResponsibility
The file sits in the repositoryThe environment stores it and controls who may change it
A read operation retrieves its contentsA tool performs the read
The system selects applicable instructions for the taskThe harness manages context assembly and instruction precedence
The instructions influence a proposed editThe model interprets the supplied context

A stale rule can begin in a file, enter context through the harness, influence a model proposal, and cause a harmful operation through a tool. Investigate the whole chain. The visible mistake does not locate every contributing defect.

A skill follows the same logic. It can package procedures and reference material, but installing a skill should not silently grant new authority. Its instructions remain subject to the task’s scope and the tool and environment permissions.

This is the point of separating responsibilities: you can change the defective instruction, repair its loading policy, and strengthen a write boundary without pretending those are the same intervention.

15Agent identity and delegated authority

The role “invoice reconciliation assistant” is an operating description. It is not an authenticated identity or a permission grant.

A receiving system should be able to establish who initiated the work, which application or workload is making the call, which task the call belongs to, and what authority applies. The implementation may use existing identity infrastructure; it does not always require a newly invented identity system.

Scope authority by operation, resource, destination, time, and relevant value limits. A subagent should receive only the portion it needs, within both the parent task’s authority and the applicable organization policy.

Personal agents make the same distinctions necessary

OpenAI’s September 29 Dots announcement describes agents with cloud computers and connected tools. It also distinguishes proactive research, described as read-only, from actions governed by its permission and review controls.8

That is a useful product distinction: an agent can initiate useful investigation without having unrestricted permission to commit the user to an outcome.

Consider a personal work assistant preparing a vendor renewal. It may read the renewal date, compare usage, and draft a negotiation email. Sending a concession changes the vendor’s expectations; buying the renewal changes business state. Those steps deserve separate authority decisions even if the user experiences them as one task.

In MHTE terms, the model proposes the wording and next action; the harness manages the task and checks the relevant grant; the email or purchasing tool performs the operation; the environment supplies the mailbox, account state, credentials, and access limits.

“The user can read this” also does not mean “the agent may share this with everyone.” A manager’s access to a confidential personnel note does not authorize including it in a team summary. Information access and permitted disclosure are separate checks.

For persistent delegation, make three things visible: what the agent may do without interruption, what will require a new decision, and how the user can withdraw the grant. Withdrawal must account for running jobs, queued actions, and previously retained information—not just hide the connector from the interface.

The goal is useful work within intelligible authority. A system that asks for approval at every harmless step has not solved delegation. A system that silently treats one approval as unlimited future consent has not solved it either.

16In practice: draw your system

Create one page with four columns: Model, Harness, Tools, Environment. Add runtime services as implementation annotations. Mark where evaluation happens rather than drawing it as a competing layer.

Within Harness, record the five decision clusters. For each, identify the current implementation, evidence, failure mode, immediate containment, long-term repair, owner, and regression case.

The following is an illustrative starting point, not a claim about how every organization should divide its teams:

Figure 03 · Worksheet
The anatomy audit
Harness decisionImplementation to locateEvidence to inspectFailure to testAccountable owner
Operating contractTask definition, instructions, policy configurationA scoped task and observed permitted and prohibited actionsA request attempts to cross tenant or action scope
Memory policyRetrieval, context assembly, memory-update and retention rulesSource versions, selected context, and results after correction or revocationA stale or withdrawn fact influences a later task
OrchestrationLoop, scheduler integration, checkpoints, retry and merge logicPending-operation records and recovery tracesA timeout occurs after a write commits
InterceptionApproval checks and enforcement in tools and environmentAllowed and blocked operations, including alternate access routesThe proposal changes after approval or bypasses a named tool
Observability and evalsEvent capture, acceptance checks, release evaluationCoverage by input ID, boundary results, and unresolved workA successful-looking parent run contains failed or missing work
A stored record is not a memory policy. A changed prompt is not evidence of better behavior. Name the decision, its implementation, its owner, and the test that could expose a failure.
Figure 03 · The anatomy audit. Record the person or team accountable for each decision beside the actual implementation and the evidence that tests it. A prompt diff shows that text changed; it does not show that behavior improved. A session store holds information; it does not define which information should be retrieved.

For each gap, finish this sentence:

This decision currently lives in [component or nowhere]. The immediate containment is [specific action]. The durable repair is [specific change], owned by [person or team], and tested by [regression case and acceptance evidence].

Map the system as it exists, including vendor defaults and manual work. Do not let the mapping exercise delay containment of an active harmful behavior. A regression case confirms the behavior tested under its conditions; it does not prove that all related failures are impossible.

At the end, you should be able to follow one task from its scope to its accepted result, explain where authority is enforced, and show what survives if the process stops halfway through.

The model proposes. The harness manages the work. Tools perform operations. The environment supplies the state and limits. Production reliability depends on the contracts connecting them.

Episode 03 returns to the invoice workflow and changes four decisions: what a retry learns, which output shapes are allowed, which tools are exposed, and what evidence permits completion.

You now hold
Anatomy 02 One definition of the harness, four responsibilities held apart, five decisions inside the control system, and a deployment view that shows what survives a restart.
The next question
Which small changes to those decisions produce visible reliability gains without replacing the model?
Continue
Harness 03 Four Small Changes, Dramatic Outcomes → — what a retry learns, which output shapes are allowed, which tools are exposed, and what evidence permits completion.
Read alongside
Environment 00 The World Around the Agent → — the operate-side boundary this episode only names.
Sources
  1. OpenAI, “Introducing the Agents API,” September 10, 2026. Managed Codex harness and infrastructure. Read the announcement.
  2. Anthropic, “Scaling managed agents.” Older architectural background on separating sessions, harness execution, and sandboxes. Read the engineering article.
  3. Anthropic, “Claude Duet: Safety, privacy, and security,” October 23, 2026. Approval design, classifier limitations, and the distinction between disconnecting access and resetting memory. Read the article.
  4. Anthropic, “Workflow runs,” current documentation, accessed November 2, 2026. The meaning of completed and failed child work; associated workflow capability released October 9. Read the documentation. Release notes.
  5. Diane Sarkis, Anthropic, “Building agents: When to fold subagents into your main agent loop,” October 22, 2026. Enterprise observations and a consolidation regression. Read the article.
  6. Tarek Sheasha, Meta, “How We Built Safety Into Muse,” September 8, 2026. Separation of the working agent, credentials, permission authority, and scoped grants. Read the technical account.
  7. Cao et al., “Trial by Trace: Benchmarking AI Agent Harnesses for Reliability and Failure Attribution,” October 23, 2026, preprint. Task success and harness criteria assessed separately. Read the paper. Full text.
  8. OpenAI, “Introducing dots,” September 29, 2026. Persistent personal agents, proactive research, and permission controls. Read the announcement.
  9. Nic Vandewetering, practitioner post, October 21, 2026. An anecdotal report of blocked personal-agent work; the thread includes commercial promotion. Read the post and context.