Skip to content

Latest commit

 

History

History

README.md

ADP Examples

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

Validation

All examples are validated against their JSON schemas in CI. You can also validate locally:

npm install
npx tsx src/scripts/validate-examples.ts

Each example includes:

  • A $schema reference pointing to the corresponding JSON Schema in docs/specs/schemas/
  • A _comment field explaining the scenario
  • Realistic but fictional data

Using with TypeScript

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);
}