Skip to main content
reopt Handbook
reopt Handbook
Harness Engineering

Problem and Structure

Foundations of Harness EngineeringRepo-Readable SystemsThe Five Elements of a HarnessEngineering Mechanics

Evaluation and Interpretation

Evaluation Loop DesignExternal Case Comparison

Case Studies

Case: OpenAICase: AnthropicCase: TossCase: gstackCase: revfactory/harness

Domain Playbooks

Domain PlaybooksScenario: Frontend TeamScenario: Platform TeamScenario: Payments and Settlement TeamScenario: AI Product TeamWhy You Eventually Need Your Own Harness

Rollout and Operations

Team Harness Rollout StrategyTeam Harness Design ChecklistOperations: Entropy and Garbage Collection

Appendix

Verification ReportUpdates
Handbook›Harness Engineering›The Five Elements of a Harness
한국어English

The Five Elements of a Harness

Explain the five design axes behind most practical harnesses: environment, roles, criteria, loops, and maintenance.

Key takeaways

  • Most harnesses reduce to five design axes: environment, roles, criteria, loops, and maintenance.
  • Environment is about making necessary material easy to find (short entry doc, versioned rules, verification tools), and roles matter less in count than in their contracts.
  • Criteria should favor machine-checkable gates over abstract quality language, and loops define where the system returns after failure and when humans intervene.
  • Maintenance treats decay as inevitable, needing update logs, stale-doc checks, and cleanup of unused skills and broken commands.
  • The best starting point is not to maximize all five but to remove one major failure mode from each.

Most harnesses use different words, but they tend to reduce to five design axes.

1. Environment

Agents reason most reliably inside repositories and connected tools. The goal is not to show everything. The goal is to make the necessary material easy to find.

Good environments have:

  • a short entry document that points to deeper docs;
  • versioned architecture and domain rules;
  • access to verification tools such as browser, logs, metrics, and tests;
  • team rules inside the repo, not only in chat or meetings.

Key questions:

  • Where should the agent start?
  • Which document is current truth?
  • Which tool verifies the result?

2. Roles

Long tasks degrade when one agent plans, builds, reviews, and QA-checks everything. Harnesses often separate roles.

RoleResponsibility
PlannerDefine scope, decomposition, and done conditions
Builder / GeneratorImplement
Reviewer / EvaluatorCheck requirements, quality, and omissions
QA / Browser AgentVerify real UI and behavior
Release / OpsTests, deployment, rollback, monitoring

The number of roles matters less than the contract between them.

3. Criteria

Agents overestimate completion when done criteria are vague. A good harness makes completion explicit.

  • Required tests, lint, typecheck, and build.
  • Specific UX scenarios reproduced in browser.
  • Security, schema, or performance constraints.
  • Human approval zones.
  • Docs, release notes, or runbooks updated.

Practical Rule

Increase machine-checkable criteria before adding abstract quality language.

4. Loops

A harness is not a one-shot generation system. It is a loop: plan -> implement -> evaluate -> fix -> re-verify.

The loop must answer:

  • Where does the system return after failure?
  • Who interprets the evaluation result?
  • When does automation continue, and when does a human intervene?

Anthropic's planner/generator/evaluator framing clarifies this loop. OpenAI's browser/log/metric access shortens it.

5. Maintenance

Harnesses decay.

  • Old docs remain.
  • Unused commands and rules pile up.
  • New domain needs do not get reflected.
  • Quality gates no longer match the codebase.

So a harness needs operations:

  • update logs;
  • stale-doc checks;
  • unused skill, broken command, and dead-link cleanup;
  • approval and test-gate review.

The Five Elements in One Table

ElementQuestionTypical artifacts
EnvironmentWhat can the agent see?AGENTS.md, docs, schemas, tool connections
RolesWho is responsible for what?Planner, reviewer, QA definitions, slash commands
CriteriaWhat must pass?Test matrix, gates, quality checklist
LoopsHow does the system improve?Review loop, QA loop, HITL flow
MaintenanceHow does it stay current?Updates, doc gardening, cleanup cadence

Source Emphasis

SourceEnvironmentRolesCriteriaLoopsMaintenance
OpenAIVery strongMediumMediumMediumVery strong
AnthropicMediumVery strongVery strongVery strongMedium
TossStrongMediumStrongStrongStrong
gstackStrongVery strongStrongVery strongMedium
revfactory/harnessStrongStrongMediumStrongMedium

Minimum vs Mature Harness

StageCharacteristics
MinimumShort entry doc, a few required checks, basic approval policy
PracticalRole separation, browser/log verification, update log, checklist
MatureDomain rules, evaluation automation, drift management, release integration

The best starting point is not to maximize all five elements. It is to remove one major failure mode from each.

Related docs

Team Harness Design Checklist

A practical checklist teams can use to design repository, approval, evaluation, browser, log, release, and runtime loops.

Engineering Mechanics

Explain why harnesses are engineering systems across input, state, tools, evaluation, approval, sandboxing, classifiers, and cleanup.

Hypothesis

Agentic MVP · Turn product ideas into falsifiable MVP hypotheses.

Team Documentation Culture

Agentic Documentation · Govern agent instructions, Skills, Plugins, MCP servers, ownership, and rollout.

CRM Strategy

CRM Standard · Align CRM purpose, ownership, and priorities from a leadership perspective.

Repo-Readable Systems

Use AGENTS.md, docs, observability, executable SSOT, MCP, skills, hooks, and plugins as one work environment.

Engineering Mechanics

Explain why harnesses are engineering systems across input, state, tools, evaluation, approval, sandboxing, classifiers, and cleanup.

On this page

1. Environment2. Roles3. Criteria4. Loops5. MaintenanceThe Five Elements in One TableSource EmphasisMinimum vs Mature Harness