What Is an AI Harness?
What Is an AI Harness?
Fact-check status
Key jargon
| Term | Plain-language meaning |
|---|---|
| Harness | The application layer that prepares model calls and controls what happens around them. S1 |
| Orchestration | Coordinating steps, models, tools, state, and recovery. S1 |
| Guardrail | A technical or procedural control that restricts unsafe or invalid behavior. S1 |
| Run record | A durable account of inputs, decisions, tool calls, outputs, and outcomes. S1 |
Key concepts
- The model proposes language or actions; the harness owns execution and control. S1
- A production harness turns a probabilistic component into an observable, bounded system. S1
Concept map
flowchart LR
A["User goal"] --> B["Harness assembles and controls"]
B --> C["Model proposes"]
C --> D["Harness validates and delivers"]Diagram semantics verified against S1 and S2 on 2026-09-02.
A raw model accepts input and returns output. A harness decides what input it sees, what tools it may call, what state survives, what output is accepted, and what happens next. S1
flowchart LR
U[User or event] --> P[Policy and task contract]
P --> C[Context assembler]
C --> M[Model adapter]
M --> V[Validator]
M <--> T[Tool gateway]
C <--> S[State and memory]
V --> H[Human approval or output]
P --> O[Observability and evals]
T --> O
V --> ODiagram semantics verified against S1 and S2 on 2026-09-02.
Harness responsibilities
- Authenticate users and bind tenant/project identity. S1
- Build trusted and untrusted context with provenance. S1
- Route tasks to a model/version and enforce budgets. S1
- Describe and broker tools with least privilege. S1
- Validate structured outputs and external effects. S1
- Persist state, checkpoints, approvals, and evidence. S1
- Recover safely from timeouts and ambiguous outcomes. S1
- Measure quality, latency, cost, safety, and drift. S1
Exercise
Draw the harness around a familiar chat assistant. Mark which components you can observe and which are assumptions.