Skip to main content
Target Audience:Specification ImplementorsPlatform TeamsStandards Committees

AXAG Specification Overview

Status: Draft 0.1.0
Classification: Normative
Last Updated: 2026-03-14

This document provides the normative specification for the Agent Context Annotation Guidelines (AXAG) standard. It defines the vocabulary, annotation primitives, required and optional fields, conformance levels, and validation rules that govern AXAG implementations.

Specification Scope

The AXAG specification defines:

  1. Canonical Vocabulary — The set of reserved annotation attribute names and their semantics
  2. Annotation Primitives — The atomic annotation units from which semantic contracts are composed
  3. Field Requirements — Which fields are required at each conformance level
  4. Semantic Dimensions — The categories of meaning that annotations can express
  5. Conformance Levels — The tiers of implementation completeness
  6. Validation Rules — The rules for checking annotation correctness
  7. Versioning Model — How the specification evolves

Content Classification

This specification uses RFC 2119 keywords:

📋 Normative — MUST

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Content in this specification is classified as:

ClassificationMeaning
NormativeBinding requirements. Implementations MUST comply.
RecommendedBest practices. Implementations SHOULD follow.
InformativeExplanatory context. Not binding.
ExampleIllustrative code or configuration.
Proposed PatternInferred implementation approach. Not yet canonical.

Conformance Levels

AXAG defines three conformance levels:

Basic Conformance Basic Conformance

Minimum viable annotation. Every annotated element MUST include:

Basic Conformance — Required Fields

FieldTypeRequiredDescriptionExample
axag-intentstringMUSTThe semantic intent of the interactionproduct.search
axag-entitystringMUSTThe domain entity being operated onproduct
axag-action-typeenumMUSTThe operation classification: read, create, mutate, delete, navigateread

Intermediate Conformance Intermediate Conformance

Production-ready annotation. In addition to Basic fields, every annotated element SHOULD include:

Intermediate Conformance — Additional Fields

FieldTypeRequiredDescriptionExample
axag-required-parametersstring[]MUSTJSON array of required parameter names["query"]
axag-scopestringMUSTThe operational boundarycatalog
axag-risk-levelenumMUSTRisk classification: none, low, medium, high, criticalnone
axag-descriptionstringMUSTHuman-readable operation descriptionSearch the product catalog

Full Conformance Full Conformance

Enterprise-grade annotation. In addition to Intermediate fields, annotations SHOULD include all applicable semantic dimensions:

Full Conformance — Additional Fields

FieldTypeRequiredDescriptionExample
axag-optional-parametersstring[]MAYJSON array of optional parameter names["category","sort"]
axag-preconditionsstring[]MAYRequired state before execution["cart_validated"]
axag-postconditionsstring[]MAYGuaranteed state after execution["order_created"]
axag-confirmation-requiredbooleanMAYWhether explicit confirmation is neededtrue
axag-approval-requiredbooleanMAYWhether multi-party approval is neededfalse
axag-idempotentbooleanMAYWhether the operation is safe to repeattrue
axag-side-effectsstring[]MAYObservable changes beyond primary result["email_sent"]
axag-required-rolesstring[]MAYRoles permitted to invoke this operation["admin"]
axag-rate-limitstringMAYMaximum invocation frequency100/hour

Annotation Format

📋 Normative — MUST

AXAG annotations MUST be expressed as HTML data attributes prefixed with axag-. The prefix is reserved and MUST NOT be used for non-AXAG purposes.

Attribute Naming Convention

  • All attributes use kebab-case: axag-intent, axag-action-type
  • Array values are JSON-encoded strings: axag-required-parameters='["a","b"]'
  • Boolean values use string "true" or "false"
  • Enum values use lowercase strings from the defined vocabulary

Example: Minimal Annotation (Basic Conformance)

<button
axag-intent="product.search"
axag-entity="product"
axag-action-type="read"
>
Search
</button>

Example: Full Annotation (Full Conformance)

<button
axag-intent="checkout.begin"
axag-entity="order"
axag-action-type="mutate"
axag-required-parameters='["cart_id","payment_method_id","shipping_address_id"]'
axag-optional-parameters='["promo_code"]'
axag-preconditions='["cart_validated","inventory_reserved"]'
axag-postconditions='["checkout_session_created"]'
axag-scope="customer"
axag-risk-level="high"
axag-confirmation-required="true"
axag-idempotent="false"
axag-side-effects='["inventory_locked","payment_hold_created"]'
axag-description="Start checkout for a validated cart and create a checkout session"
>
Checkout
</button>

Specification Sections

The full specification is organized into the following sections:

SectionContent
Canonical VocabularyReserved attribute names and allowed values
Annotation PrimitivesAtomic annotation units
Required FieldsMandatory fields per conformance level
Optional FieldsAdditional semantic dimensions
EntitiesEntity naming conventions
ActionsAction type definitions
ParametersParameter declaration model
ConstraintsConstraint declaration model
Risk ClassificationRisk level definitions
Safety BoundariesConfirmation, approval, rate limits
Confirmation RequirementsWhen and how confirmation is required
Approval RequirementsMulti-party approval model
Context InheritanceHow child elements inherit parent context
NamespacingNamespace rules for custom extensions
VersioningSpecification version model
Error SemanticsError code and message conventions
Conformance LevelsDetailed conformance requirements

Next Steps