Positions

Evaluation as Engineering: From Design Constraints to Production Evidence

ADPS position paper
Published: 2026-05-30
Author: Agent Design Patterns Society

Scope

Agent systems combine deterministic software with probabilistic behavior. Data structures, permissions, tool contracts, idempotency, and business ledgers remain covered by conventional tests. Evaluations measure model output, execution paths, and variation across runs.

Four validation activities produce different evidence:

Activity Subject Typical result
Test Deterministic components, contracts, and state changes Pass/fail and fault location
Evaluation Capability, behavior, and failure distribution on a task set Scores, classes, and sample evidence
Monitoring Production traffic, cost, latency, and drift Time series, alerts, and abnormal traces
Acceptance Business outcome and release accountability Approve, reject, limit, or roll back

A deterministic grader may appear in both a test suite and an evaluation. Record where its evidence comes from, who maintains it, and which decision it supports.

Evaluation as a design input

Design begins with the task, environment, permissions, successful outcomes, and forbidden outcomes. Latency, cost, and quality targets influence model choice, tools, topology, caching, and human involvement.

Without these constraints, a team can only judge whether the finished system feels good. It cannot explain which objective an architecture decision was meant to serve.

Evaluation contract

eval_id: payroll-action-v5
system_under_test:
  agent_version: payroll-agent-2.3
  components:
    - planner
    - tool_dispatcher
    - action_guard
task_set:
  dataset: payroll-action-boundaries-v4
environment:
  database: disposable_snapshot
  tools: sandbox_registry_v3
permissions:
  max_risk_class: medium
outcomes:
  required:
    - correct_business_ids
    - no_skipped_dependencies
    - ledger_matches_receipts
  forbidden:
    - production_write
    - duplicate_submission
graders:
  - deterministic_ledger_check
  - dependency_order_check
  - rubric_review
trials: 3
release_gate:
  p0_failures: 0
  regression: no_material_drop
owner: payroll-platform
evidence: artifacts/evals/payroll-action-v5/

The contract keeps the system under test, task distribution, environment, permissions, graders, and release gate together. Tasks with material randomness retain repeated trials and each trace so a mean score cannot hide a rare severe failure.

Three stages

Design

Use a compact representative task set to test architecture constraints:

Development and pre-production

Deterministic tests run with each change. Capability evaluation, regression evaluation, permission tests, and sandbox acceptance are layered by risk. Compare a candidate with the current version on the same task set, and let release gates read sample-level failures and complete traces.

Capability sets test whether a new function works. Regression sets protect established behavior. They may share infrastructure, while their maintenance purpose and release rules remain distinct.

Production

Production requests supply the real distribution and delayed outcomes. Sample traffic by risk and connect inputs, component versions, traces, business receipts, and human disposition. New failures enter the regression set after redaction, attribution, and reproduction.

Monitoring detects change. Evaluation determines whether capability changed. Acceptance decides whether to release, limit, or roll back.

Evidence priority

  1. External facts and business receipts: database state, transaction receipts, compilation, and execution artifacts.
  2. Deterministic rules: schemas, reference integrity, state machines, and business invariants.
  3. Independent test environments: sandboxes, snapshots, and repeatable tasks.
  4. Expert and human labels: domain judgment, subjective quality, and high-risk boundaries.
  5. Model graders: wider coverage, calibrated and sampled for human review.

Model graders help with open-ended output. They do not establish tool side effects, permission compliance, or business facts. Model diversity can add perspective but does not by itself establish independence.

Dataset lifecycle

specifications and business acceptance
        ↓
initial capability set
        ↓
development runs and sample analysis
        ↓
production failures, human review, and new boundaries
        ↓
redaction, deduplication, attribution, and reproduction
        ↓
regression set and versioned release record
        ↓
retire stale samples while retaining historical baselines

Each sample records provenance, applicable versions, expected outcomes, graders, and change history. When the agent and grader change together, preserve the old baseline or the scores cannot be compared.

Release gates

A release gate combines several layers of evidence. One aggregate score cannot replace them. Typical rules include:

Rules should match task risk. Low-risk content generation may use probabilistic thresholds. Money movement, production data, and external publication require stronger deterministic evidence.

Common failures

Failure Effect Correction
Only public benchmarks are run Business traffic is not represented Domain task sets and production samples
Evaluation starts after implementation Architecture lacks design constraints Define the contract with task and permissions
Only an aggregate score is retained Severe minority failures are averaged away Keep samples, traces, and failure classes
Agent and grader change together Old and new results cannot be compared Independent versions, frozen baselines, and replay
Production events omit component versions Drift cannot be attributed Link model, prompt, skill, and tool versions
Evaluation success directly expands permissions Capability evidence bypasses governance Separate approval, isolation, and recovery gates

Relationship to ADPS

Evaluation provides evidence for pattern selection and evolution. Perception covers input and missed signals. Memory covers admission, retrieval, and expiry. Reasoning covers paths and conclusions. Action covers tool side effects. Reflection covers whether modifications improve outcomes. Collaboration covers handoffs and isolation. Governance covers permissions and impact.

The pattern catalog describes available structures. Evaluation records whether one implementation meets its objectives in a specified environment.


ADPS · Agent Design Patterns Society · adpsagent.com


← Back to all positions

Chronicle

Recorded source
ADPS technical position; arguments and references are listed in the article
First published on ADPS

View in the ADPS Chronicle