Lifecycle: draft
Agent Evaluation and Benchmarking
Purpose and scope
Measure whether an AI coding agent improves outcomes on a defined task population without confusing activity, benchmark gaming, or one successful patch with general capability. This skill covers evaluation design, execution, analysis, and claims; it does not replace human review, domain safety assessment, or a production service-level evaluation.
Triggers and prerequisites
Trigger when comparing agents, models, prompts, skills, tools, workflows, or versions; when a benchmark is proposed; or when an agent claim needs evidence. Prerequisites: target users and tasks, baseline or comparator, task sampling frame, environment, access boundaries, success criteria, evaluator/oracle, resources, and intended decision.
Decision criteria
- Define success across correctness, completeness, relevance, actionability, robustness, safety, maintainability, and cost/time according to the task’s risk and objective; do not reduce quality to completion or pass rate.
- The evaluation population and sampling process determine what the result supports. A benchmark does not establish performance outside its distribution.
- Separate agent behavior from evaluator behavior, environment failures, flaky tasks, invalid tasks, and unobservable outcomes.
- Prefer independent or held-out tasks and evaluators; repeated attempts or leaked reference answers can inflate results.
Procedure
- State the decision the evaluation will inform and the falsifiable claim. Define the target task distribution, exclusions, baseline, comparison, budget, allowed tools, and safety boundaries.
- Construct or sample tasks that represent real use, difficulty, languages/frameworks, failure modes, security boundaries, and negative or ambiguous cases. Keep evaluation inputs independent from training, prompt construction, and tuning where possible.
- Define observable acceptance criteria and an evaluation protocol before running candidates. Specify exact outputs, tests, human rubric, reviewer independence, timeouts, retries, and treatment of partial or unsafe work.
- Protect integrity: isolate secrets and production systems, prevent task leakage, control environment versions, record agent/tool/model revisions, and detect attempts to modify the evaluator or hide failures.
- Run baseline and candidates under comparable conditions. Capture raw artifacts, patches, tests, tool calls, failures, costs, time, refusals, and safety incidents, not only aggregate scores.
- Classify outcomes: correct, partially correct, incorrect, unsafe, incomplete, invalid task, infrastructure failure, evaluator disagreement, or unknown. Do not silently convert missing evidence into failure or success.
- Analyze variance, confidence, task-level distribution, subgroup/regime performance, error modes, and tradeoffs. Check whether a small number of tasks, retries, graders, or easy wins dominate the result.
- Seek disconfirming evidence: held-out adversarial tasks, unseen repositories, alternate evaluators, mutation or differential checks, human review, and cases where the claimed improvement should not apply.
- Decide what the evidence supports: adopt, experiment, restrict, investigate, or reject. State the claim’s scope, limitations, residual risk, reproducibility, and next review trigger.
Examples and counterexamples
Good: Compare two coding agents on held-out tasks with independent correctness review, security checks, cost/time, regression behavior, and task-level failures reported rather than only average pass rate.
Bad: Claim an agent is better because it produced more patches or passed a benchmark whose reference tests it could inspect.
Good: Report that an agent improved performance on Python bug fixes but had insufficient evidence on frontend, concurrency, or security tasks.
Bad: Generalize from a narrow benchmark to “works for coding” without checking task distribution or evaluator blind spots.
Failure modes and recovery
If no trustworthy oracle or representative task sample exists, narrow the claim and improve the evaluation before ranking agents. If evaluator disagreement is high, investigate the rubric and task ambiguity rather than averaging it away. If task leakage or environment drift is discovered, quarantine affected results and rerun or label them. If a metric improves while safety, maintainability, or failure severity worsens, reject the metric as the optimization target.
Validation evidence and provenance
Claims in this skill map to graded findings in docs/research.md:
- Benchmark resolution rates overstate capability (Q12, Strong): 7.8% of SWE-bench "correct" patches fail developer-written tests; ~6.2-point inflation (Wang et al. 2025); SWE-bench itself documents evaluation limits.
- Metric gaming risk (Q12-built, Principled): Goodhart concerns operationalized as multi-dimensional, distribution-aware evaluation.
Source boundary: evidence comes from benchmark evaluation studies; it does not establish that this skill's evaluation design avoids gaming in new domains.
Confidence: high for the failure evidence; medium for evaluation-design choices. Lifecycle remains draft: agent evaluation is a fast-moving domain. Freshness: review when models, benchmarks, evaluators, or the research base change.
Disconfirmation: benchmarks with independently verified correctness at scale would reduce the need for the differential verification steps.
Related skills and conflicts
Related: test-effectiveness-analysis, regression-test-design, differential-patch-review, performance-regression-analysis, secure-coding-review, prompt-injection-resistance, skill-quality-review, and knowledge-maintenance. This skill does not authorize benchmarking on production data, exposing secrets, optimizing for a misleading metric, or claiming general capability from a narrow result.
1---2name: agent-evaluation-and-benchmarking3description: Design and interpret evaluations of AI coding-agent behavior across realistic tasks, correctness, safety, usefulness, and maintainability. Use when creating benchmarks, comparing agents or skills, measuring regressions, or making claims about agent capability.4---56Lifecycle: `draft`78# Agent Evaluation and Benchmarking910## Purpose and scope1112Measure whether an AI coding agent improves outcomes on a defined task population without confusing activity, benchmark gaming, or one successful patch with general capability. This skill covers evaluation design, execution, analysis, and claims; it does not replace human review, domain safety assessment, or a production service-level evaluation.1314## Triggers and prerequisites1516Trigger when comparing agents, models, prompts, skills, tools, workflows, or versions; when a benchmark is proposed; or when an agent claim needs evidence. Prerequisites: target users and tasks, baseline or comparator, task sampling frame, environment, access boundaries, success criteria, evaluator/oracle, resources, and intended decision.1718## Decision criteria1920- Define success across correctness, completeness, relevance, actionability, robustness, safety, maintainability, and cost/time according to the task’s risk and objective; do not reduce quality to completion or pass rate.21- The evaluation population and sampling process determine what the result supports. A benchmark does not establish performance outside its distribution.22- Separate agent behavior from evaluator behavior, environment failures, flaky tasks, invalid tasks, and unobservable outcomes.23- Prefer independent or held-out tasks and evaluators; repeated attempts or leaked reference answers can inflate results.2425## Procedure26271. State the decision the evaluation will inform and the falsifiable claim. Define the target task distribution, exclusions, baseline, comparison, budget, allowed tools, and safety boundaries.282. Construct or sample tasks that represent real use, difficulty, languages/frameworks, failure modes, security boundaries, and negative or ambiguous cases. Keep evaluation inputs independent from training, prompt construction, and tuning where possible.293. Define observable acceptance criteria and an evaluation protocol before running candidates. Specify exact outputs, tests, human rubric, reviewer independence, timeouts, retries, and treatment of partial or unsafe work.304. Protect integrity: isolate secrets and production systems, prevent task leakage, control environment versions, record agent/tool/model revisions, and detect attempts to modify the evaluator or hide failures.315. Run baseline and candidates under comparable conditions. Capture raw artifacts, patches, tests, tool calls, failures, costs, time, refusals, and safety incidents, not only aggregate scores.326. Classify outcomes: correct, partially correct, incorrect, unsafe, incomplete, invalid task, infrastructure failure, evaluator disagreement, or unknown. Do not silently convert missing evidence into failure or success.337. Analyze variance, confidence, task-level distribution, subgroup/regime performance, error modes, and tradeoffs. Check whether a small number of tasks, retries, graders, or easy wins dominate the result.348. Seek disconfirming evidence: held-out adversarial tasks, unseen repositories, alternate evaluators, mutation or differential checks, human review, and cases where the claimed improvement should not apply.359. Decide what the evidence supports: adopt, experiment, restrict, investigate, or reject. State the claim’s scope, limitations, residual risk, reproducibility, and next review trigger.3637## Examples and counterexamples3839Good: Compare two coding agents on held-out tasks with independent correctness review, security checks, cost/time, regression behavior, and task-level failures reported rather than only average pass rate.4041Bad: Claim an agent is better because it produced more patches or passed a benchmark whose reference tests it could inspect.4243Good: Report that an agent improved performance on Python bug fixes but had insufficient evidence on frontend, concurrency, or security tasks.4445Bad: Generalize from a narrow benchmark to “works for coding” without checking task distribution or evaluator blind spots.4647## Failure modes and recovery4849If no trustworthy oracle or representative task sample exists, narrow the claim and improve the evaluation before ranking agents. If evaluator disagreement is high, investigate the rubric and task ambiguity rather than averaging it away. If task leakage or environment drift is discovered, quarantine affected results and rerun or label them. If a metric improves while safety, maintainability, or failure severity worsens, reject the metric as the optimization target.5051## Validation evidence and provenance52Claims in this skill map to graded findings in [`docs/research.md`](../../docs/research.md):5354- Benchmark resolution rates overstate capability (Q12, Strong): 7.8% of SWE-bench "correct" patches fail developer-written tests; ~6.2-point inflation (Wang et al. 2025); SWE-bench itself documents evaluation limits.55- Metric gaming risk (Q12-built, Principled): Goodhart concerns operationalized as multi-dimensional, distribution-aware evaluation.5657Source boundary: evidence comes from benchmark evaluation studies; it does not establish that this skill's evaluation design avoids gaming in new domains.5859Confidence: high for the failure evidence; medium for evaluation-design choices. Lifecycle remains `draft`: agent evaluation is a fast-moving domain. Freshness: review when models, benchmarks, evaluators, or the research base change.6061Disconfirmation: benchmarks with independently verified correctness at scale would reduce the need for the differential verification steps.62## Related skills and conflicts6364Related: `test-effectiveness-analysis`, `regression-test-design`, `differential-patch-review`, `performance-regression-analysis`, `secure-coding-review`, `prompt-injection-resistance`, `skill-quality-review`, and `knowledge-maintenance`. This skill does not authorize benchmarking on production data, exposing secrets, optimizing for a misleading metric, or claiming general capability from a narrow result.