Agent Evaluation Specification (AES)
The Agent Evaluation Specification (AES) is the formal standard used by AgentV to defineexecutable benchmarks. Version 1.4 introduces a Hybrid Parsing Strategy that allows evaluation suites to be generated directly from raw Product Requirement Documents (PRDs).
🏗️ The AES v1.4 Schema
Section titled “🏗️ The AES v1.4 Schema”An AES scenario is a JSON document that defines the environment, the tasks, and the success criteria.
{ "aes_version": 1.4, "metadata": { "id": "finance-fraud-v1", "name": "Finance Fraud Detection", "compliance_level": "Standard" }, "industry": "Finance", "workflow": { "nodes": [ { "id": "t1", "task_description": "Analyze account #1234 for recent fraudulent activity.", "success_criteria": [{"metric": "accuracy", "threshold": 0.95}] } ], "edges": [] }}🤖 Spec-to-Eval Parser
Section titled “🤖 Spec-to-Eval Parser”The spec-to-eval command transforms Markdown PRDs into executable AES JSON. It balances deterministic precision with LLM-based flexibility.
1. Deterministic Structural Parser
Section titled “1. Deterministic Structural Parser”A high-speed parser that recognizes standard enterprise Markdown patterns:
- H1 Title: Sets the
id. - Metadata Block:
**Industry:** Finance. - Tools Section:
## Tools(Global tools for all tasks). - Tasks Section:
## Tasksor## Test Cases.- H3 Task Headers:
### 1. [Task Title] - Bullet Metadata:
Expected Outcome,Tools, andCriteria.
- H3 Task Headers:
2. LLM Synthesis Fallback
Section titled “2. LLM Synthesis Fallback”If the structural parser fails to find tasks, the engine automatically triggers an LLM pass (Gemini 2.5 Flash) to synthesize the scenario from the PRD business logic.
[SpecParser] No tasks found via search. Synthesizing from rules...🛡️ Robustness Features
Section titled “🛡️ Robustness Features”- Metadata Stripping: Patterns like
(Expect: ...)within a task description are automatically extracted to theexpected_outcomefield and cleaned from the main description. - Synonym Recognition: “Test Cases”, “Evaluation Steps”, and “Tasks” are treated as equivalent headers.
- Global Tool Injection: Tools defined in a global
## Toolssection are inherited by all tasks unless explicitly overridden.
🚀 Workflow
Section titled “🚀 Workflow”To convert a PRD and backfill schema defaults:
agentv spec-to-eval \ --input docs/specs/fraud_prd.md \ --output scenarios/fraud.json \ --fill-defaults \ --forceSchema Validation: Validated AES files are required for Trust Protocol Certification. Unauthorized modifications to a certified AES file will trigger a Behavioral Drift alert.