AI CompendiumA public chart of the language
Agents & Harness

Spec

also called Specification

A written description of the intended outcome, before the work starts.

Definition

A document stating what should be built and what "done" means — behaviour, constraints, acceptance criteria. For agents it is the difference between a task that converges and one that wanders.

A good spec is checkable. "Add a login button" is not; "unauthenticated users hitting /dashboard are redirected to /login with a return_to param" is.

For agentic work, the spec is doing something different than for human work: it is the agent’s definition of done, and it is the input to the automated checks. A spec that a grader cannot evaluate is a spec the agent will satisfy by accident.

How people use it
Before letting an agent loose on a feature.
"Write the acceptance criteria first. The spec is the contract we will review against."
Worked example

Acceptance criteria that a machine can check

Delegating a feature to an unattended agent.

"Users can reset a password and the old one stops working" is checkable by tests the agent can run. "The experience should feel smooth" is not, so it will not appear in the agent’s definition of done and will not be delivered.

Avoid

Letting the agent infer requirements from a one-line prompt and then being surprised by the result.

Sources
  • docsBest practices for using GitHub Copilot to work on tasks ↗GitHub docs · 2026

    Recommends bounded tasks with explicit acceptance criteria, and names what is a bad fit for unattended delegation: ambiguous, security-sensitive, production-critical or deeply domain-specific work.

  • blogDemystifying evals for AI agents ↗Anthropic Engineering · 2026

    Gives working definitions for harness, task, trial, grader, transcript and outcome, and argues you must evaluate the model and harness together and judge final environment state, not just the last message.

Related terms