Alpha-stage prototype · Phase 6 checkpoint · v0.1.0 · MIT License

Evidence-First
Harness

Deterministic assurance for AI-generated code. Treats every AI patch as an untrusted proposal — routes outputs through deterministic policy gates that produce evidence bundles.

"No agent-generated change may be accepted unless every material claim introduced by the change is linked to sufficient, reproducible, risk-adjusted evidence."

Repository metrics reflect the current public repository state at the time of publication and may change.

Smoke Test

[ Quick Start ]

01 Clone the repository
git clone https://github.com/rmax-ai/evidence-first-harness.git
02 Install dependencies
cd evidence-first-harness && uv sync --extra dev
03 Run 85 tests in ~7 seconds
uv run pytest tests/ -q
04 Full E2E smoke test (~2 min)
uv run efh run --repo . --task "Add a focused test for the policy engine."

[ Representative Run ]

sharn@evidence-harness:~ ~2 min
$ efh run --repo . --task "Add a focused test for the policy engine."

workflow_started    run_id=run_c6ec67e305e0
worktree_created    base_commit=233ebbac

specification_agent_call   sonnet-5       in=13570  out=4096
planner_agent_call         opus-4-6       in=11871  out=2015
implementation_agent_call  gpt-5.6-terra  in=11393  out=3007

evidence_executed  formatting  ruff     fail
evidence_executed  lint        ruff     fail
evidence_executed  type_check  pyright  fail
evidence_executed  secret_scan secrets  fail
evidence_executed  tests       pytest   pass

decision_rendered  decision=repair_required
  mandatory_failed=4  passed=1  tier=3

│ Agent              Model                  In    Out │
├──────────────────┼──────────────────┼──────┼──────┤
│ specification      claude-sonnet-5     13570   4096 │
│ planner            claude-opus-4-6     11871   2015 │
│ implementation     gpt-5.6-terra       11393   3007 │
├──────────────────┼──────────────────┼──────┼──────┤
│ TOTAL                                  36834   9118 │

This is the recorded output from run_c6ec67e305e0 against commit 233ebbac. It shows LLM agents producing implementation artifacts while deterministic checks and policy make the final decision. Runtime, token counts, and cost vary with provider behavior and repository state.

Recorded cost: $0.504927 (36,834 input and 9,118 output tokens). Sonnet 5 compiled the specification, Opus 4.6 planned the implementation, and GPT-5.6 Terra generated the patch.

Pricing sources: Anthropic Sonnet 5 OpenAI Gemini

Architecture

Illustrative architecture — not a benchmark or production deployment. In the shown configuration, LLM agents produce implementation and review artifacts; deterministic checks and policy decide the workflow outcome.

pipeline.svg 17 nodes
Evidence-First Harness Pipeline — 17-node workflow
#ComponentTypeControls
[01]Specification agentLLM AGENTInterprets tasks, derives requirements
[02]Planner agentLLM AGENTProposes implementation plan
[03]Implementation agentLLM AGENTProposes a structured patch; harness validates and applies it
[04]Independent test agentLLM AGENTGenerates additional tests (stubbed in alpha)
[05]Adversarial review agentLLM AGENTIdentifies unsupported claims (stubbed in alpha)
[06]Explanation agentLLM AGENTConverts evidence to report (stubbed in alpha)
[07]Policy engineDETERMINISTICRequired evidence, thresholds, approval roles
[08]Decision engineDETERMINISTICAccept / reject / repair decision
[09]Sandbox managerDETERMINISTICIsolation, permissions, timeouts
[10]Evidence executorsDETERMINISTICRun checks, record EvidenceRecords
[11]AST analyzerDETERMINISTICImpact analysis, test selection
[12]Provenance recorderDETERMINISTICHash-chained event stream

Model Routing & Pricing

[ Agent Routing ]

AgentModelProviderLiveInOut
Specificationclaude-sonnet-5Anthropic135704096
Plannerclaude-opus-4-6Anthropic118712015
Implementationgpt-5.6-terraOpenAI113933007
Independent Testclaude-haiku-4-5Anthropic00
Adversarial Reviewgemini-3.5-flashGoogle00
Explanationgemini-3.5-flashGoogle00

Recorded in run_c6ec67e305e0. Implementation proposals use strict JSON Schema Structured Outputs; the harness validates and applies the returned unified diff.

[ Pricing — USD per 1M tokens, as of 2026-07-14 ]

ModelInput $Output $
claude-opus-4-6$15.00$75.00
claude-sonnet-5$3.00$15.00
claude-haiku-4-5$0.80$4.00
gpt-5.6-terra$2.50$15.00
Balanced GPT-5.6 model. Structured Outputs enabled for implementation proposals.
gemini-3.5-flash$1.50$9.00
Standard tier visible pricing. Actual cost may differ by tier/region.

The harness routes implementation and evaluation through distinct roles. In this alpha, 3 of 6 agent roles are live LLM agents and the remaining evaluator roles are stubbed or deterministic placeholders.

Evidence Tiers

Tier 3 Automated

formatting, lint, type check, targeted tests, secret scan

Tier 2 Code owner

+ integration tests, security scan, mutation testing

Tier 1 Code owner + security owner

+ contract tests, dependency scan, performance, rollback