aien-harness
Autonomous agent verification and benchmark test harness
Brought by drakestapleton
aien-harness / README.md
| 1 | <p align="center"> |
| 2 | <img src="assets/avatar.jpg" width="140" height="140" alt="AIEN Sovereign Intelligence" style="border-radius: 50%; border: 2px solid #f59e0b;"> |
| 3 | </p> |
| 4 | |
| 5 | # aien-harness |
| 6 | |
| 7 | Autonomous Change-Management, Schema Validation, and Eval Reliability Harness for AI Agents. |
| 8 | |
| 9 | ## Doctrine |
| 10 | |
| 11 | The model does not own the standard. The harness does. Changing GPT, GLM, Lightning, or any other underlying model must not change what the agent accepts or delivers. |
| 12 | |
| 13 | Based on Simon Høiberg’s 5-layer change-management framework, `aien-harness` enforces software-owned boundaries around autonomous agents: |
| 14 | |
| 15 | 1. **Layer 1: Eval Classifiers** — Splits producing work from judging work. Deterministic checks (syntax, slop phrases, test suites) are regular code. Subjective judgment calls a dedicated classifier judge (e.g. Qwen3-8B on port 18088). |
| 16 | 2. **Layer 2: Schema Contracts** — "Done" is a validated JSON schema, not a conversational agreement. Required fields, evidence formats, and reproduction steps are checked by code. |
| 17 | 3. **Layer 3: Least Privilege Tools** — Single-purpose actions with permissions lived in software, never in the system prompt. |
| 18 | 4. **Layer 4: Deterministic Workflows** — Software owns the state sequence (`workflow_start`, `workflow_advance`, `deliver`). The model cannot skip tests or declare victory prematurely. |
| 19 | 5. **Layer 5: Failure Replay** — Every painful failure is recorded with its task, bad output, and the eval that caught it. Changes cannot ship if old failure cases regress. |
| 20 | |
| 21 | ## Tools (MCP Stdio & FastMCP) |
| 22 | |
| 23 | The harness exposes the following tools to Claude Code, Codex, Antigravity, and AIEN: |
| 24 | - `schema_validate`: Validate arbitrary payloads against strict JSON schemas. |
| 25 | - `eval_run`: Run deterministic or model-judged evaluations against work artifacts. |
| 26 | - `workflow_start` / `workflow_status` / `workflow_advance`: Enforce multi-step execution graphs. |
| 27 | - `deliver`: Verify all prerequisite schemas and evals have passed before output delivery. |
| 28 | - `failure_record` / `failure_list` / `failure_replay`: Regression test suite preserving past hurts. |
| 29 | |
| 30 | ## Quickstart |
| 31 | |
| 32 | ```bash |
| 33 | # Run standalone test |
| 34 | spark-harness --test |
| 35 | |
| 36 | # Run MCP server on stdio |
| 37 | spark-harness |
| 38 | ``` |
| 39 | |
| 40 | ## Structure |
| 41 | |
| 42 | - `schemas/`: JSON schemas defining finished states. |
| 43 | - `evals.json`: Classification rules and validation boundaries. |
| 44 | - `workflows.json`: Valid state transition graphs. |
| 45 | - `failures/`: Replay catalog of past regressions. |
| 46 | - `kb/`: Knowledge base lessons tied to failures. |
| 47 | |
| 48 | ## License |
| 49 | |
| 50 | MIT OR Apache-2.0 |