Schema-validated examples for integrating the Agent Decision Protocol.
| Example | Description | Key Concepts |
|---|---|---|
| register-agent.json | Register a billing reconciliation agent at autonomy level A3 | Agent Registry, Autonomy Levels, Constraints, Compliance |
| log-decision.json | Log a tactical vendor selection decision | Trace Format, D2 Tactical, Authorization Matrix |
| define-policy.json | Define an external communication control policy | Policy Schema, Regulatory Mapping, Escalation |
| trace-self-modification.json | Agent self-modification blocked pending approval | D4 Self-Modification, Mandatory Approval, Risk Override |
All examples are validated against their JSON schemas in CI. You can also validate locally:
npm install
npx tsx src/scripts/validate-examples.tsEach example includes:
- A
$schemareference pointing to the corresponding JSON Schema indocs/specs/schemas/ - A
_commentfield explaining the scenario - Realistic but fictional data
You can also validate examples programmatically:
import { validateTrace, validateAgentRegistry, validatePolicy } from '@adp/core';
const result = validateTrace(myTraceData);
if (!result.valid) {
console.error('Validation errors:', result.errors);
}