AX Compliance Levels¶
Progressive compliance levels for Agent Experience adoption.
Overview¶
Not every API needs full DIRECT compliance from day one. AX defines progressive levels that allow incremental adoption while providing clear targets.
Level Summary¶
| Level | Name | Target | Key Requirements |
|---|---|---|---|
| AX-L1 | Structured | Basic machine consumption | Valid spec, explicit types, operation IDs |
| AX-L2 | Deterministic | Reliable code generation | Strict schemas, required fields, no ambiguity |
| AX-L3 | Agent-Ready | Full autonomous operation | DIRECT extensions, structured errors, capability discovery |
AX-L1: Structured¶
Goal: Basic machine-readable API that tools can parse.
Requirements¶
| DIRECT | Requirement |
|---|---|
| D | All schema properties have explicit type |
| I | All operations have operationId and summary |
| R | - |
| E | Parameters declare required explicitly |
| C | - |
| T | - |
Enforcement¶
Example Checklist¶
- [ ] Valid OpenAPI 3.0+ specification
- [ ] Every property has
typedefined - [ ] Every operation has unique
operationId - [ ] Every operation has
summary - [ ] Query/path parameters set
required: true/false
AX-L2: Deterministic¶
Goal: Predictable behavior suitable for code generation.
Requirements¶
| DIRECT | Requirement |
|---|---|
| D | additionalProperties: false on objects |
| D | x-ax-required-fields on operations |
| I | All L1 requirements |
| R | Error responses have defined schemas |
| E | Request bodies set required explicitly |
| E | Schema required arrays match actual requirements |
| C | Consistent naming conventions |
| T | - |
Enforcement¶
Example Checklist¶
- [ ] All L1 requirements
- [ ] Object schemas set
additionalProperties: false - [ ] Operations declare
x-ax-required-fields - [ ] Request bodies have
required: true/false - [ ] Schema
requiredarrays are accurate - [ ] 4xx/5xx responses have schema definitions
- [ ] Consistent field naming (all snake_case or all camelCase)
AX-L3: Agent-Ready¶
Goal: Full autonomous agent compatibility.
Requirements¶
| DIRECT | Requirement |
|---|---|
| D | All L2 requirements |
| I | x-ax-capabilities on operations |
| R | x-ax-error-code on error responses |
| R | x-ax-retryable on mutating operations |
| R | x-ax-idempotent on PUT/DELETE |
| E | All L2 requirements |
| C | Consistent pagination patterns |
| C | Consistent error response format |
| T | x-ax-sandboxable on operations |
| T | Example values on schema properties |
Enforcement¶
Example Checklist¶
- [ ] All L2 requirements
- [ ] Operations have
x-ax-capabilitiestags - [ ] Error responses include
x-ax-error-code - [ ] POST/PUT/PATCH/DELETE have
x-ax-retryable - [ ] PUT/DELETE have
x-ax-idempotent - [ ] Mutating operations have
x-ax-sandboxable - [ ] Schema properties have
examplevalues - [ ] Pagination is consistent across list endpoints
- [ ] Error response format is uniform
Migration Path¶
From L0 (No Compliance) to L1¶
- Generate OpenAPI spec from code annotations or write manually
- Add
typeto all schema properties - Add
operationIdandsummaryto all operations - Add
requiredto all parameters
Effort: Low - mostly documentation
From L1 to L2¶
- Add
additionalProperties: falseto object schemas - Add
x-ax-required-fieldsto operations - Define error response schemas
- Audit and fix
requiredarrays - Standardize naming conventions
Effort: Medium - may require spec refactoring
From L2 to L3¶
- Add
x-ax-capabilitiesto operations - Add
x-ax-error-codeto error responses - Add retry/idempotency flags
- Add sandbox indicators
- Add example values throughout
Effort: Medium - requires understanding agent use cases
Compliance Badge¶
Display your compliance level:



Future Levels¶
AX-L4: Autonomous (Proposed)¶
- Sandbox environment available
- Observability metadata (correlation IDs)
- Replay/debugging endpoints
- Self-healing error suggestions (
x-ax-error-suggestion)
AX-L5: Self-Optimizing (Proposed)¶
- Cost/token estimation (
x-ax-cost-estimate) - Rate limit awareness
- Agent feedback integration
- Automatic capability evolution
Validation Tools¶
| Tool | Purpose |
|---|---|
| Vacuum | Run AX Spectral rules |
| Spectral | Alternative linter |
| schemalint | JSON Schema validation |
| ogen | Go code generation (validates spec) |
Related¶
- AX Spec - Spectral rulesets for each level
- DIRECT Principles - The underlying principles