- SurfaceWhy a polished model answer can hide a broken workflow.
- AnatomyHow to separate Model, Harness, Tools, and Environment.
- PatternsSix failure shapes that recur in production.
- PracticeThe incident-review questions that lead to an owner and a fix.
The reconciliation team is a constructed teaching case. Its dialogue, timeline, and numbers illustrate mechanisms; they are not measured customer outcomes.
Turn an unreliable customer journey into a defensible problem statement, containment decision, and prioritized repair. Ask for evidence that distinguishes capability, data, workflow, and control failures.
01The 2 AM failure nobody can explain
At 2 AM on Tuesday, the reconciliation agent reports that it is finished.
It processed 847 of 2,347 invoices. The dashboard is green. No exception fired. No tool timed out. Fifteen hundred invoices are still waiting.
The team blames the model. That is reasonable. The model is the part that spoke last.
But the model never saw 2,347 invoices.
The surrounding system fetched one page, passed 847 records into the session (one recorded interaction that can contain many model and tool calls), and accepted the model's final sentence as proof that the full job was complete. Nothing compared the processed count with the source ledger. Nothing asked whether another page existed.
The model completed the task it received. The system represented the wrong task and accepted weak evidence.
The incident review now has three questions:
- What state did the system show the model?
- What counted as complete?
- What checked that claim against the real world?
Those questions lead to code, evidence, and an owner. "The model was weird" does not.
The reconciliation team stays with us for all eight episodes. Its illustrative numbers make the failure inspectable; they are not evidence of a measured customer outcome.
Model capability and system design jointly shape what users can rely on. Diagnose the combination you actually deploy.
02A failed run is not a diagnosis
The final response is where a problem becomes visible. Its causes may begin earlier: an ambiguous job, missing evidence, a misleading tool result, an unavailable dependency, or a model that reasons incorrectly despite adequate information.
Start with the intended outcome and reconstruct the run. Do not start with a preferred culprit.
Five contracts to inspect
| Contract | Plain question | Refund example |
|---|---|---|
| Job | Was success and the stopping condition explicit? | Determine eligibility under the current policy; do not issue a payment |
| Context | Did the model receive the relevant, current, authorized evidence? | Correct customer, purchase date, policy version, and account restrictions |
| Action | Were tool meaning, inputs, effects, and permission clear? | Drafting a refund and issuing one are separate operations |
| State | Did the process distinguish proposed, attempted, confirmed, and unresolved work? | A timeout after submission leaves the refund outcome unknown |
| Acceptance | Was the real result checked against the job? | The right case received a valid decision; a polite message alone is insufficient |
A defect in one contract does not rule out defects elsewhere. Missing pagination may explain why invoices never arrived. A weak acceptance check explains why that omission reached the user as a green dashboard. Both deserve repair.
Nine diagnostic questions
Use these as an inspection route, not a rule that the model must always be investigated last. Follow stronger evidence first.
- Job: What was the exact outcome, scope, and stop condition?
- Context: (the information available to a model for the current call) Which sources and policy versions reached the model, and which were missing?
- Tool contract: What operation did the interface promise, and what did it actually return or change?
- State: What had happened, what remained pending, and what was merely inferred?
- Harness: How did context selection, routing, retries, handoffs, and completion affect the run?
- Runtime implementation: Which services hosted state and control, and did their configured limits hold?
- Environment: Were records, credentials, dependencies, network routes, and isolation as expected?
- Verification: Did the checker inspect independent evidence or repeat the agent’s own claim?
- Model: Given the actual evidence and interface, which interpretation, plan, or judgment was wrong?
Runtime is a deployment view, not a fifth MHTE responsibility. Verification is an activity that can use tools, model judgment, and evidence from the environment.
The repair-owner test
Complete this record before choosing the durable fix:
The evidence shows [divergence]. It was enabled by [contributing conditions] and escaped because [missing detection or containment]. We will contain it through [action], repair it through [change], assign [owner], and test [case and acceptance evidence].
The earliest observed divergence is useful evidence. It is not automatically the only cause, and a missing trace (a record of the steps, operations, and evidence in a run) may prevent certainty. Record that uncertainty rather than inventing a clean story.
| Contributing defect | Evidence | User impact | Immediate containment | Durable repair | Owner | Regression case |
|---|---|---|---|---|---|---|
| Missing pagination | Eligible IDs absent from input | Invoices left unprocessed | Report incomplete work | Retrieve all pages under stable scope | Named implementer | Multiple pages and duplicate IDs |
| Weak completion | Final response accepted without coverage check | Dashboard falsely green | Disable automatic success | Compare expected IDs with accepted outcome IDs | Workflow owner and engineering | Incomplete and valid complete runs |
Episode 02 organizes the harness work into five decision clusters. Those clusters support design; these questions support diagnosis. Neither is another list of MHTE layers.
03What is a harness?
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 separate model responses into a managed process. It arranges the next step, tracks what happened, and applies the checks required to proceed or finish.
It is not everything outside the model. A ledger is environmental state; querying it is a tool operation. The harness manages when the query happens, which task it belongs to, how its result enters context, and whether the work may continue.
Consider a contractor arriving for a shift. The model resembles the contractor’s ability to interpret a job and propose the next move. The harness resembles the work-order and supervision process. Tools perform the operations. The building, records, access system, and available equipment resemble the environment. The analogy stops short of real human accountability: the organization remains responsible for deploying the software and authorizing its work.
Vendors may sell all four responsibilities in one product. That packaging does not make them interchangeable. OpenAI’s Agents API (a programmatic interface for requesting operations from another application) packages a managed Codex harness and supporting infrastructure; the customer still specifies its workflow and acceptance conditions. OpenAI: Introducing the Agents API
For a PM, harness engineering connects the user’s outcome to context, state, authority, recovery, and completion. A model may propose decisions within that process. The harness manages their consequences.
04The four-responsibility map
| Responsibility | What it does | Invoice example |
|---|---|---|
| Model | Proposes | Suggests that an invoice matches a payment |
| Harness | Manages the work | Assembles the evidence, checks the proposed operation, tracks progress, and applies acceptance rules |
| Tools | Perform operations | Read payment records, record an approved match, and retrieve the saved result |
| Environment | Supplies state and limits | Holds ledger records, credentials, access rules, and the resources in which operations run |
The environment affects the loop throughout; it is not merely the last station. Nor do four responsibilities imply four different team owners.
Imagine the model proposes updating the wrong invoice. The harness may fail to check the ID; a tool may accept an ambiguous identifier; the environment may allow access to more tenants than necessary. Model behavior explains the proposal. Other failures explain why the proposal became a damaging effect.
Different repairs address different conditions. Improve the reasoning if evidence supports a capability gap. Strengthen identity checks at the operation boundary. Restrict environmental access. These changes can be complementary rather than competing diagnoses.
A permission check may live in a tool wrapper, a policy service, or an API gateway. Name the decision and its enforcement point instead of forcing the whole service into one category.
The environment affects operations throughout. Inference may be hosted remotely; the boundary is conceptual, not one physical machine.
05One symptom can have four causes
A user says, "The agent forgot what I told it."
That sentence describes the experience, not the cause.
| What happened underneath | What the user sees | Where to look |
|---|---|---|
| Project instructions never loaded | "It ignored our rules" | Identity at session start |
| The session stored the fact but context assembly omitted it | "It forgot" | Memory policy |
| Correct context arrived, but reasoning failed | "It misunderstood" | Model |
| A tool returned an old record | "It remembered the wrong thing" | Tool and data source |
Start where the problem became visible, then inspect the earlier conditions that made it possible. A run can have several preventable divergences.
The same holds for a support agent that gives the wrong refund decision.
- Invented policyInvestigate model behaviour.
- Last quarter’s policyFix source selection and freshness.
- Hidden effective dateFix the tool contract.
- Wrong customer in scopeFix identity and delegation.
- Polite answer rewardedFix the acceptance criteria.
The visible symptom can be the same while the repair differs. Describe the outcome and inspect the evidence before selecting a model, harness, tool, or environment intervention.
06Why benchmarks do not settle production reliability
A benchmark measures defined tasks under specified models, harnesses, tools, budgets, and environments. Some test a narrow capability; others test a complete agent system. Read the configuration before transferring a score to your product.
Production adds its own distribution of records, permissions, policy changes, interruptions, and consequences. A strong score is useful evidence, but it does not establish that your process will recover after a write timeout or account for every invoice across a restart.
The October 23 preprint When Agents Fail compares model–harness pairings across six benchmarks and finds that rankings depend on the model and task. It also separates task correctness from Valid Completion Rate: terminating normally with an evaluable result, “irrespective of task correctness.” This is benchmark evidence for testing interactions, not a universal winner or an enterprise failure rate. When Agents Fail: Model or Harness—Who’s to Blame?
For your workflow, ask:
- Does a restart preserve the state needed to resume?
- Does the system notice stale or withdrawn evidence?
- Does a retry address the actual failure?
- Can it distinguish progress from repeated motion?
- Can external evidence establish completion?
- Can another session reconstruct unresolved work without repeating an uncertain side effect?
Call the continuity requirement context durability: keeping the information and state needed for useful work available across turns, interruptions, and sessions. This is a working term for the series, not a single standardized metric.
More context is not automatically better context
A larger window creates room; selection determines whether the right evidence occupies it. A current rule beside several obsolete copies can leave the model with a harder decision, not a better one.
Measure retrieval coverage and source freshness, then inspect what the model actually received. If the correct evidence arrived and the model still misunderstood it, investigate reasoning. If it never arrived, a larger model alone does not demonstrate a durable retrieval repair.
07The production gap is an operating problem
LangChain’s June 2026 report describes 1,340 self-selected survey responses, collected in November–December 2025. It reports 57.3% with agents in production and quality as the leading barrier. This is older, technology-heavy survey context—not a current enterprise census or evidence that quality is solely a harness property. LangChain: State of Agent Engineering
Enterprise readiness can fail even when the model is capable. McKinsey’s September 14 field account describes an unnamed medical-technology company that discovered cross-system data-version mismatches while building an agentic customer-service solution. The account is consultancy evidence, not an audited experiment. Its useful question is concrete: which system is authoritative when two connected systems disagree? McKinsey: Stacking the odds
For the invoice agent, tools can return different versions of a customer record from the environment. The harness needs a source-selection or conflict-handling policy. The model can flag the discrepancy, but should not silently invent an authoritative version.
The production gap is therefore a question to investigate: which missing capability, data condition, control, or operating decision prevents an acceptable outcome?
08Six failure shapes
Symptoms help decide what evidence to inspect first. They do not prove the cause.
| What you see | Initial question |
|---|---|
| Stops early | What evidence allowed completion? |
| Repeats without progress | What failure is being retried, and why could another attempt help? |
| Finishes the wrong work | Which objective and policy versions governed the run? |
| Uses the right words with the wrong meaning | Where is the business definition, and which version was used? |
| Acts beyond authority | Which boundary should have blocked the operation? |
| Workers disagree | Which inputs, shared state, and merge rules coordinated them? |
Premature stop
The system exits cleanly with work remaining. For invoices, compare eligible IDs under a recorded cutoff with IDs in accepted outcome states. Equal counts alone can hide duplicates and omissions.
If exceptions transfer to a human queue, verify that the receiving queue accepted them and show unresolved work separately. “Assigned” does not mean “resolved.” The workflow may finish its automated stage without finishing the whole business journey.
Infinite loop
The agent repeats a rejected operation or makes cosmetic changes without addressing the constraint.
A validation failure needs corrected input. A temporary network problem may justify waiting and retrying unchanged input. A denied permission requires an authorized change or a stop. Moving to a stronger model does not grant broader authority.
A write timeout may mean the write succeeded but its reply was lost. Preserve an unknown-outcome state and inspect the service’s operation record or supported idempotency (protection against repeating the effect of the same intended operation, when the receiving service supports it) behavior before resubmitting. Bound attempts, total time, spend, and consecutive turns without progress.
Silent drift
The output is polished but follows old intent or policy. Keep the objective, source version, and important changes traceable. A summary should distinguish a prior plan from a current instruction.
Personal agents add a long-lived variant: a preference inferred last month may be irrelevant or withdrawn today. Retained information needs scope, provenance (where information came from and how it was transformed), and a correction path.
Shared-vocabulary failure
“Active customer” may mean recent usage, an unexpired contract, or an account eligible for billing. The model cannot settle a policy choice the organization has not made.
Store the relevant definition with an owner, version, and examples. A model may ask for clarification; it should not quietly choose a convenient definition when the downstream consequence depends on it.
Unauthorized action
Drafting and sending are different authorities. Access to a document does not automatically permit disclosure. A prompt states intent; tool and environment controls must enforce consequential boundaries.
A background monitor can check whether an agent’s behavior appears consistent with its authorized task. For example, an invoice assistant asked to prepare an internal report might attempt to send customer records to an external service.
The monitor can flag suspicious behavior and, where supported, block further execution. However, its checks run alongside the workflow. An operation may already have happened before the concern is detected, and stopping later work does not reverse that effect.
A flag means “investigate this,” not “a violation is proven.” The monitor can also miss problems. The product therefore needs controls before consequential operations, a person responsible for investigating alerts, and evidence of what actually happened.
Source: OpenAI’s misalignment-monitoring documentation.
- PreventionRestricts what may happen.
- MonitoringLooks for concerning behavior.
- RecoveryHandles effects that already happened.
In MHTE, the model proposes, the harness manages checks and dispatch, the tool performs the operation, and the environment supplies access limits and actual state. Detection must connect to an owner, stop authority, and reconciliation of effects already committed.
Worker divergence
Parallel workers can be locally plausible and jointly inconsistent. One may use an old policy; two may claim the same invoice; a merged summary may omit a failed worker.
Give each worker exact scope, source versions, output and evidence requirements, a budget, and a cancellation path. Define who may write shared state and how conflicts are resolved. A coordinating harness must verify coverage, not count worker messages.
Separate context windows do not establish isolated files, credentials, or independent judgment. Verify the deployment and the evidence each worker uses.
09When a model swap is the right move
Model limitations are real. Compare alternatives when representative cases show a reasoning, instruction-following, perception, or judgment gap. Keep the task set, allowed tools, evidence, and budget comparable, and inspect changed failure cases rather than only the average score.
The surrounding system may also need repair. A stronger model might notice missing pagination, yet relying on that observation is different from ensuring the workflow retrieves and accounts for the full queue.
Upgrade capability where it is missing. Repair controls where evidence shows a gap. Test the resulting combination.
A model change can reduce one failure and introduce another through different tool choices, verbosity, refusal, or recovery behavior. Release the pairing that meets the workflow’s requirements; do not assume the newest model is automatically the safest or cheapest fit.
10Where prompt engineering fits
- Prompt engineeringimproves instructions and examples for model calls.
- Context engineeringmanages the relevant information available at a step.
- Harness engineeringmanages execution across calls, tools, state, checks, and transitions.
- Tool engineeringmakes operations clear, correct, bounded, and inspectable.
- Environment engineeringsupplies usable state and execution conditions while controlling reach and persistence.
These practices overlap. They are not a mandatory sequence of maturity levels. A prompt is one way to express workflow guidance; a tool permission or environment boundary is a different way to constrain what can happen. Choose the intervention that addresses the observed mechanism.
11The ownership gap
Organizations divide model selection, tool implementation, infrastructure, security, and business policy in different ways. A workflow can have capable contributors and still lack a decider for its complete behavior.
Ask who owns these decisions:
- Which evidence and policy apply to this task?
- What proves acceptable completion?
- Which failures become release tests?
- Who may expand or narrow delegated authority?
- Who can stop a live run and reconcile its prior effects?
One accountable workflow owner does not implement every component or override security and business policy. The role ensures that decision rights, implementing teams, required approvals, and escalation are explicit. Episode 07 develops that operating arrangement.
Use a real incident to test ownership. Can the team name who contains it now, who makes the durable change, and who accepts the evidence before wider rollout?
12In practice: diagnose the last three failures
Take the last three agent sessions that failed, required manual repair, or produced an outcome nobody was willing to trust.
For each session, complete one record:
| Field | Record |
|---|---|
| Intended outcome | What the user needed to become true in the real world |
| Observed outcome | What happened instead |
| First observed divergence | Earliest supported departure, with later contributing defects and uncertainty |
| Broken contract | Job, context, tool, state, harness, runtime, environment, verification, or model |
| MHTE responsibility | Model, Harness, Tools, or Environment; list several when evidence supports it |
| Evidence | Trace, policy version, tool result, external state, or missing artifact |
| Immediate containment | What reduces harm now |
| Long-term repair | Product, policy, code, infrastructure, or eval change |
| Owner | Person or team able to make and maintain the change |
| Regression case | Test of the failure and valid behavior under stated conditions |
Use these definitions
- ModelCorrect context arrived, but reasoning or judgement failed.
- HarnessContext, memory, routing, retries, handoffs, completion, or verification failed.
- ToolOperation, schema, arguments, side effects, or returned state failed.
- EnvironmentIdentity, credentials, network, filesystem, isolation, execution, or persistence failed.
Do not begin with the layer. Begin with the intended outcome, then follow evidence backward to the first divergence.
If every incident receives the same label, check whether the evidence supports it. Repeated model failures are possible; repeated missing-control failures are possible too. Keep uncertainty visible rather than forcing a balanced allocation.
The road from here
The remaining seven episodes follow the repair from diagnosis to operating discipline.
| Episode | Next question | What you will leave with |
|---|---|---|
| 02 · Inside a Production Agent Harness | Where do state, control, and execution live? | Three views of one machine and five harness decisions |
| 03 · Four Small Changes | What can we improve without changing the model? | Evidence-rich retries, constrained output, narrow tools, external completion |
| 04 · Five Paradoxes | When is each control worth its cost? | Five tensions and a decision card |
| 05 · What It Costs, What It Returns | What does an accepted workflow really cost? | Build, Run, Review, Failure, and cost per accepted result |
| 06 · Your Monday Morning Harness Kit | What should the team do first? | A nine-day diagnosis, four tickets, and a twelve-week runway |
| 07 · Organisations That Rebuilt Around Agents | Who may decide? | Decision rights, operating models, and an ownership page |
| 08 · When the Harness Becomes the Habit | What survives implementation change? | Five continuing obligations, a release loop, and a retirement discipline |
The same reconciliation team will carry the argument. The system will become more capable, some controls will move into models and vendors, and some local machinery will be deleted. The finale returns to the same 2 AM dashboard.
The goal is not to preserve the first harness. It is to preserve the discipline that decides what to build, what to verify, what to own, and what to remove.
Outcome → evidence → diagnosis → repair.
- Describe what the customer needed to become true.
- Follow the supported divergence and contributing conditions.
- Repair capability, control, data, or operation where the evidence points.
- Ask who owns containment, durable repair, and the acceptance evidence.
- OpenAI: Introducing the Agents API. September 10, 2026 · managed Codex harness and infrastructure announcement.
- When Agents Fail: Model or Harness—Who’s to Blame?. October 23, 2026 · research preprint; model–harness interaction, not a production prevalence estimate.
- LangChain: State of Agent Engineering. June 12, 2026 · self-selected survey fielded November 18–December 2, 2025; older context.
- McKinsey: Stacking the odds. September 14, 2026 · anonymized consultancy field account, not an audited causal study.
- OpenAI: Misalignment monitoring. Current documentation, checked November 3, 2026 · coverage, asynchronous detection, and stopping behavior.