Agent Harness Contract
What this is
An Agent Harness Contract (AHC) is the declared operating envelope for a task, written before the task runs. A skill says how to think; a knowledge pack says what content is authorized; an AHC says in what environment the agent may act — with which tools, autonomy, gates, sensors, logs, and rollback.
It is a contract, not a runtime, orchestrator, or policy engine, and deliberately not a new “layer”. It is docs-first and provider-agnostic.
Where it sits
The AHC composes three governance surfaces the framework already has. Each governs a distinct question at its own granularity:
User / Request
→ AletheIA task contract
→ Knowledge Governance (authorized context)
→ Agent Harness Contract ← the declared envelope (this document)
→ Adaptive skill selection
→ Runtime (Codex / Claude Code / …)
→ Tools + Sensors + Logs
→ Evidence + Decision Record + Handoff
REGC (how much effort, per-slice)
→ AHC (the declared envelope, per-task)
→ AHGE (execution + record, per-action)
→ Knowledge Governance (authorized context)
AHC declares the envelope; AHGE records each action within it; REGC sets the effort; Knowledge Governance decides what context is authorized. The normative field-by-field spec and the mapping to these surfaces live in the Agent Harness Contract spec.
Boundary table
| Surface | Decides | AHC’s relationship |
|---|---|---|
| Skill | how to execute a capability | AHC lists allowed_skills / blocked_skills; it does not define skill behavior |
| Knowledge Governance | source authority, sensitivity, precedence | AHC references allowed_knowledge_packs and retrieval_mode; it never decides authority |
| REGC | effort level, escalation, stop, quality floor | AHC inherits the effort; it does not re-decide it |
| AHGE | per-action permission, draft/commit, budgets, trace | AHC declares the envelope AHGE enforces and records per action |
Principles
- Harness is not skill. Skill orients behavior; harness defines environment, tools, sensors, gates, and limits.
- Harness is not Knowledge Governance. Knowledge Governance controls authorized context; the harness controls execution conditions.
- Control proportional to risk. Reversible, local tasks may use a light harness; structural, sensitive, or irreversible tasks require more gates.
- Sensor before judgment. Before asking another model for a semantic opinion, use computational sensors when available: tests, linters, type checkers, scripts, structural validation.
- Context needs hygiene. Long sessions require offloading, checkpoints, recorded decisions, and re-anchoring — see context-rot-controls.md.
- A harness expires. Controls, guides, prompts, scripts, and sensors must be reviewed. A control that never fires may be excellent or useless; it needs evaluation — see harness-expiration-review-checklist.md.
Related
- Agent Harness Contract spec — normative fields + mapping
- Agent-Computer Interface — how to design tools agents consume
- Context-Rot Controls — long-session hygiene
- ADR-013 — the reconciliation decision