Agent Eval Harness Design
Description
Design an evaluation harness for an agent with explicit cases, metrics, thresholds, and failure labels, so runs are reproducible and comparable over time. The procedure is constrained by explicit inputs and acceptance criteria rather than best-effort judgment alone.
When to Use
- Multiple inputs or candidates compete and must be resolved by explicit criteria.
- A wrong intermediate result would propagate into consequential actions.
- The task repeats and benefits from a deterministic procedure.
Inputs / Outputs
| Area |
Contract |
| Inputs |
Task context, candidate inputs, and explicit acceptance criteria for agent eval harness design. |
| Outputs |
A decision or artifact with recorded reasons, rejected alternatives, and verification evidence. |
| Safety |
Failures must fail closed and be reported with evidence rather than retried silently. |
Procedure
- Normalize the task into explicit inputs, constraints, and acceptance criteria.
- Gather the required evidence and check completeness before proceeding.
- Apply the agent eval harness design procedure using the declared criteria only.
- Record the outcome, rejected alternatives, and the reason for each rejection.
- Verify the result against the acceptance criteria with an independent check.
- Report the result with evidence, and escalate explicitly when a criterion cannot be met.
Runnable Example
# Agent Eval Harness Design: deterministic check
options = [{"name": "x", "gain": 5, "cost": 1}, {"name": "y", "gain": 4, "cost": 1}]
ranked = sorted(options, key=lambda o: (o["cost"], -o["gain"]))
assert ranked[0]["name"] == "x"
print("best:", ranked[0]["name"])
Failure Modes
- Proceeding with agent eval harness design without the required evidence or inputs.
- Treating an unverified result as verified.
- Silently swallowing errors instead of failing closed with reasons.
- Optimizing the stated metric while violating the stated constraint.
- Losing the audit trail of decisions and rejected alternatives.
Boundary
This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result.
Evidence
Agent evaluation is the top reported 2026 developer pain point in public community threads; harness design requests recur across framework issues. These are dated public signals, not adoption metrics.
Related
- skill-quality-evaluation.md
- agent-observability-tracing.md
- critic-agent.md
1---2name: agent-eval-harness-design3description: Design an evaluation harness for an agent with explicit cases, metrics, thresholds, and failure labels, so runs are reproducible and comparable over time.4metadata:5 source: https://skillmd.com/skills/samotech/agent-eval-harness-design6 upstream: skills/09-agentic-patterns/agent-eval-harness-design.md7 category: 09-agentic-patterns8 version: "v1"9---1011# Agent Eval Harness Design1213## Description14Design an evaluation harness for an agent with explicit cases, metrics, thresholds, and failure labels, so runs are reproducible and comparable over time. The procedure is constrained by explicit inputs and acceptance criteria rather than best-effort judgment alone.1516## When to Use17- Multiple inputs or candidates compete and must be resolved by explicit criteria.18- A wrong intermediate result would propagate into consequential actions.19- The task repeats and benefits from a deterministic procedure.2021## Inputs / Outputs22| Area | Contract |23|---|---|24| Inputs | Task context, candidate inputs, and explicit acceptance criteria for agent eval harness design. |25| Outputs | A decision or artifact with recorded reasons, rejected alternatives, and verification evidence. |26| Safety | Failures must fail closed and be reported with evidence rather than retried silently. |2728## Procedure291. Normalize the task into explicit inputs, constraints, and acceptance criteria.302. Gather the required evidence and check completeness before proceeding.313. Apply the agent eval harness design procedure using the declared criteria only.324. Record the outcome, rejected alternatives, and the reason for each rejection.335. Verify the result against the acceptance criteria with an independent check.346. Report the result with evidence, and escalate explicitly when a criterion cannot be met.3536## Runnable Example37```python38# Agent Eval Harness Design: deterministic check39options = [{"name": "x", "gain": 5, "cost": 1}, {"name": "y", "gain": 4, "cost": 1}]40ranked = sorted(options, key=lambda o: (o["cost"], -o["gain"]))41assert ranked[0]["name"] == "x"42print("best:", ranked[0]["name"])43```4445## Failure Modes46- Proceeding with agent eval harness design without the required evidence or inputs.47- Treating an unverified result as verified.48- Silently swallowing errors instead of failing closed with reasons.49- Optimizing the stated metric while violating the stated constraint.50- Losing the audit trail of decisions and rejected alternatives.5152## Boundary53This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result.5455## Evidence56Agent evaluation is the top reported 2026 developer pain point in public community threads; harness design requests recur across framework issues. These are dated public signals, not adoption metrics.5758## Related59- skill-quality-evaluation.md60- agent-observability-tracing.md61- critic-agent.md