Network Working Group A. Jeskey Internet-Draft ANML Foundation Intended status: Experimental May 2026 Expires: 22 November 2026 Agentic Notation Markup Language (ANML) 1.0 draft-jeskey-anml-01 Abstract ANML (Agentic Notation Markup Language) is a machine-first markup language for agent-to-agent and agent-to-service communication over the internet. HTML provides visual interfaces for human consumption; ANML describes content, intent, and interaction patterns optimized for machine interpretation with minimal computational overhead. ANML defines an abstract data model that MAY be serialized as XML (application/anml+xml) or JSON (application/anml+json). Both serializations are normative and semantically equivalent. The XML serialization is recommended for human authoring and review; the JSON serialization is recommended for programmatic generation and agent- pipeline consumption. An ANML document defines: * Content: structured, semantic information for machine interpretation * Interactions: operations bound to HTTP methods, endpoints, and parameters * Knowledge: bidirectional information exchange between services and agents * Constraints: disclosure, consent, and authorization rules that agents MUST evaluate before sharing data * State: metadata identifying the current phase of a multi-step interaction * Persona: advisory behavioral and tonal guidance for agent responses ANML standardizes these elements to enable deterministic, efficient agent interactions with reduced reliance on inference over unstructured data. Jeskey Expires 22 November 2026 [Page 1] Internet-Draft ANML 1.0 May 2026 Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 2 November 2026. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1. Scope . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.2. Conformance . . . . . . . . . . . . . . . . . . . . . . . 7 1.2.1. Documents . . . . . . . . . . . . . . . . . . . . . . 7 1.2.2. Conforming ANML Agents . . . . . . . . . . . . . . . 8 1.3. Motivation . . . . . . . . . . . . . . . . . . . . . . . 8 1.4. Goals . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.5. Non-Goals . . . . . . . . . . . . . . . . . . . . . . . . 9 2. Applicability . . . . . . . . . . . . . . . . . . . . . . . . 9 3. Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4. Design Principles . . . . . . . . . . . . . . . . . . . . . . 12 5. ANML as an Application of XML . . . . . . . . . . . . . . . . 13 5.1. XML Documents . . . . . . . . . . . . . . . . . . . . . . 13 5.2. ANML Lexical Syntax . . . . . . . . . . . . . . . . . . . 14 5.2.1. Element and Attribute Names . . . . . . . . . . . . . 14 5.2.2. Attribute Values . . . . . . . . . . . . . . . . . . 14 5.2.3. Whitespace . . . . . . . . . . . . . . . . . . . . . 14 5.2.4. Character References . . . . . . . . . . . . . . . . 14 Jeskey Expires 22 November 2026 [Page 2] Internet-Draft ANML 1.0 May 2026 5.2.5. CDATA Sections . . . . . . . . . . . . . . . . . . . 14 5.2.6. Comments and Processing Instructions . . . . . . . . 14 5.2.7. Unknown Elements and Attributes . . . . . . . . . . . 14 5.3. ANML Namespace and Public Identifiers . . . . . . . . . . 14 5.3.1. Namespace . . . . . . . . . . . . . . . . . . . . . . 15 5.3.2. Namespace Policy . . . . . . . . . . . . . . . . . . 15 5.3.3. Versioning . . . . . . . . . . . . . . . . . . . . . 15 5.3.4. Extension Namespaces . . . . . . . . . . . . . . . . 15 5.3.5. Document Type Declaration . . . . . . . . . . . . . . 15 5.4. Example ANML Document . . . . . . . . . . . . . . . . . . 16 6. ANML as an Internet Media Type . . . . . . . . . . . . . . . 17 6.1. application/anml+xml Media Type . . . . . . . . . . . . . 17 6.2. ANML Document Representation . . . . . . . . . . . . . . 17 6.2.1. Character Encoding . . . . . . . . . . . . . . . . . 17 6.2.2. XML Declaration . . . . . . . . . . . . . . . . . . . 17 6.2.3. Byte Order Mark . . . . . . . . . . . . . . . . . . . 18 6.2.4. Line Endings . . . . . . . . . . . . . . . . . . . . 18 6.3. Content Negotiation . . . . . . . . . . . . . . . . . . . 18 6.4. HTTP Caching Interaction . . . . . . . . . . . . . . . . 18 6.5. Discovery . . . . . . . . . . . . . . . . . . . . . . . . 18 6.5.1. Well-Known URI . . . . . . . . . . . . . . . . . . . 18 6.5.2. HTTP Link Header . . . . . . . . . . . . . . . . . . 19 6.5.3. HTML Link Element . . . . . . . . . . . . . . . . . . 19 6.5.4. DNS Service Discovery . . . . . . . . . . . . . . . . 19 7. ANML JSON Serialization . . . . . . . . . . . . . . . . . . . 19 7.1. application/anml+json Media Type . . . . . . . . . . . . 20 7.2. General Mapping Rules . . . . . . . . . . . . . . . . . . 20 7.2.1. Root Object . . . . . . . . . . . . . . . . . . . . . 21 7.2.2. Attributes to Properties . . . . . . . . . . . . . . 21 7.2.3. Text Content . . . . . . . . . . . . . . . . . . . . 21 7.2.4. Child Elements to Nested Objects . . . . . . . . . . 22 7.2.5. Empty Elements . . . . . . . . . . . . . . . . . . . 23 7.2.6. Unknown Keys . . . . . . . . . . . . . . . . . . . . 23 7.3. Complete JSON Example . . . . . . . . . . . . . . . . . . 23 7.4. Discovery and Content Negotiation . . . . . . . . . . . . 25 7.5. JSON-Specific Security Considerations . . . . . . . . . . 25 7.6. Normative Equivalence . . . . . . . . . . . . . . . . . . 26 8. Document Structure . . . . . . . . . . . . . . . . . . . . . 27 8.1. Root Element: anml . . . . . . . . . . . . . . . . . . . 27 8.1.1. Interaction with HTTP Caching . . . . . . . . . . . . 28 8.2. Site Element: site . . . . . . . . . . . . . . . . . . . 29 8.3. Head Section: head . . . . . . . . . . . . . . . . . . . 30 8.3.1. Title: title . . . . . . . . . . . . . . . . . . . . 30 8.3.2. Meta: meta . . . . . . . . . . . . . . . . . . . . . 30 8.4. Constraints Section: constraints . . . . . . . . . . . . 30 8.4.1. Disclosure: disclosure . . . . . . . . . . . . . . . 30 8.5. State Section: state . . . . . . . . . . . . . . . . . . 30 8.5.1. Context: context . . . . . . . . . . . . . . . . . . 30 Jeskey Expires 22 November 2026 [Page 3] Internet-Draft ANML 1.0 May 2026 8.5.2. Flow: flow . . . . . . . . . . . . . . . . . . . . . 30 8.5.3. Step: step (flow) . . . . . . . . . . . . . . . . . . 31 8.6. Interaction Section: interact . . . . . . . . . . . . . . 31 8.6.1. Action: action . . . . . . . . . . . . . . . . . . . 31 8.6.2. Param: param . . . . . . . . . . . . . . . . . . . . 31 8.6.3. Option: option . . . . . . . . . . . . . . . . . . . 31 8.6.4. Response: response . . . . . . . . . . . . . . . . . 31 8.7. Knowledge Section: knowledge . . . . . . . . . . . . . . 32 8.7.1. Inform: inform . . . . . . . . . . . . . . . . . . . 32 8.7.2. Ask: ask . . . . . . . . . . . . . . . . . . . . . . 32 8.7.3. Answer: answer . . . . . . . . . . . . . . . . . . . 33 8.7.4. Refuse: refuse . . . . . . . . . . . . . . . . . . . 33 8.8. Persona Section: persona . . . . . . . . . . . . . . . . 33 8.8.1. Model: model . . . . . . . . . . . . . . . . . . . . 34 8.8.2. Language: language . . . . . . . . . . . . . . . . . 34 8.8.3. Tone: tone . . . . . . . . . . . . . . . . . . . . . 34 8.8.4. Voice: voice . . . . . . . . . . . . . . . . . . . . 34 8.8.5. Instructions: instructions . . . . . . . . . . . . . 35 8.8.6. Vocabulary: vocabulary . . . . . . . . . . . . . . . 35 8.8.7. Prefer: prefer . . . . . . . . . . . . . . . . . . . 35 8.8.8. Avoid: avoid . . . . . . . . . . . . . . . . . . . . 35 8.9. Aesthetic Section: aesthetic . . . . . . . . . . . . . . 35 8.9.1. Display Name: display-name . . . . . . . . . . . . . 35 8.9.2. Logo: logo . . . . . . . . . . . . . . . . . . . . . 35 8.9.3. Colors: colors . . . . . . . . . . . . . . . . . . . 35 8.9.4. Color: color . . . . . . . . . . . . . . . . . . . . 35 8.9.5. Typography: typography . . . . . . . . . . . . . . . 36 8.9.6. Font: font . . . . . . . . . . . . . . . . . . . . . 36 8.10. Body Section: body . . . . . . . . . . . . . . . . . . . 36 8.10.1. Section: section . . . . . . . . . . . . . . . . . . 36 8.10.2. Image: img . . . . . . . . . . . . . . . . . . . . . 36 8.10.3. Audio: audio . . . . . . . . . . . . . . . . . . . . 36 8.10.4. Video: video . . . . . . . . . . . . . . . . . . . . 37 8.10.5. Description: description . . . . . . . . . . . . . . 37 8.10.6. Transcript: transcript . . . . . . . . . . . . . . . 37 8.10.7. Link: link . . . . . . . . . . . . . . . . . . . . . 37 8.10.8. Data: data . . . . . . . . . . . . . . . . . . . . . 37 8.10.9. Item: item . . . . . . . . . . . . . . . . . . . . . 37 8.10.10. Field: field . . . . . . . . . . . . . . . . . . . . 37 8.10.11. Navigation: nav . . . . . . . . . . . . . . . . . . 38 8.11. ANML Type System . . . . . . . . . . . . . . . . . . . . 38 8.12. Footer Section: footer . . . . . . . . . . . . . . . . . 39 8.12.1. Rights: rights . . . . . . . . . . . . . . . . . . . 39 8.12.2. Attribution: attribution . . . . . . . . . . . . . . 39 8.13. Status Section: status . . . . . . . . . . . . . . . . . 39 9. Interaction Model . . . . . . . . . . . . . . . . . . . . . . 39 9.1. Transport . . . . . . . . . . . . . . . . . . . . . . . . 39 9.2. Interaction Flow . . . . . . . . . . . . . . . . . . . . 40 Jeskey Expires 22 November 2026 [Page 4] Internet-Draft ANML 1.0 May 2026 9.3. Action Binding . . . . . . . . . . . . . . . . . . . . . 40 9.4. Knowledge Exchange . . . . . . . . . . . . . . . . . . . 40 9.5. Constraints on Disclosure . . . . . . . . . . . . . . . . 40 9.6. Separation of Concerns . . . . . . . . . . . . . . . . . 41 10. Characters and Internationalization . . . . . . . . . . . . . 41 10.1. Document Character Set . . . . . . . . . . . . . . . . . 41 10.2. Character Encoding . . . . . . . . . . . . . . . . . . . 41 10.3. Language Identification . . . . . . . . . . . . . . . . 41 11. Agent Response Format . . . . . . . . . . . . . . . . . . . . 41 11.1. Response Document Structure . . . . . . . . . . . . . . 41 11.2. Minimum Valid Response . . . . . . . . . . . . . . . . . 42 11.3. Service Response to Agent Submission . . . . . . . . . . 43 11.4. Error Handling . . . . . . . . . . . . . . . . . . . . . 44 11.5. Pagination Behavior . . . . . . . . . . . . . . . . . . 45 11.6. Examples . . . . . . . . . . . . . . . . . . . . . . . . 45 12. Site Trust Delegation . . . . . . . . . . . . . . . . . . . . 47 12.1. Trust Tiers . . . . . . . . . . . . . . . . . . . . . . 47 12.2. DNS Bootstrap Record . . . . . . . . . . . . . . . . . . 48 12.2.1. Tag-List Syntax . . . . . . . . . . . . . . . . . . 49 12.2.2. Record Fields . . . . . . . . . . . . . . . . . . . 50 12.2.3. Absent or Invalid Records . . . . . . . . . . . . . 50 12.3. Static Trust Manifest . . . . . . . . . . . . . . . . . 51 12.4. Live Trust Query Endpoint . . . . . . . . . . . . . . . 52 12.5. The trust Element and Verification Procedure . . . . . . 54 12.6. The site-ref Element . . . . . . . . . . . . . . . . . . 56 12.7. Multi-Site Documents and Layered Identity Attack Prevention . . . . . . . . . . . . . . . . . . . . . . . 57 12.8. Security Considerations for Trust Delegation . . . . . . 59 13. Security Considerations . . . . . . . . . . . . . . . . . . . 60 13.1. Threat Model . . . . . . . . . . . . . . . . . . . . . . 60 13.2. Information Disclosure via Knowledge Exchange . . . . . 61 13.3. Prompt Injection via Persona and Instructions . . . . . 62 13.4. Action Execution Risks . . . . . . . . . . . . . . . . . 63 13.5. XML External Entity (XXE) Attacks . . . . . . . . . . . 63 13.6. Agent Spoofing and Service Impersonation . . . . . . . . 64 13.7. Malicious ANML Documents . . . . . . . . . . . . . . . . 64 13.8. Constraint Bypass . . . . . . . . . . . . . . . . . . . 65 13.9. Replay and State Manipulation . . . . . . . . . . . . . 65 13.10. Denial of Service . . . . . . . . . . . . . . . . . . . 65 13.11. Cross-Origin Considerations . . . . . . . . . . . . . . 65 13.12. Transport Security . . . . . . . . . . . . . . . . . . . 66 14. Privacy Considerations . . . . . . . . . . . . . . . . . . . 66 14.1. User Control and Consent . . . . . . . . . . . . . . . . 66 14.2. Cross-Session and Cross-Platform Context Portability . . 67 14.3. Data Minimization . . . . . . . . . . . . . . . . . . . 68 14.4. Usage Rights and Content Controls . . . . . . . . . . . 68 14.5. Regulatory Considerations . . . . . . . . . . . . . . . 69 15. Relationship to Related Standards and Formats . . . . . . . . 69 Jeskey Expires 22 November 2026 [Page 5] Internet-Draft ANML 1.0 May 2026 15.1. HTML . . . . . . . . . . . . . . . . . . . . . . . . . . 69 15.2. JSON-LD and Schema.org . . . . . . . . . . . . . . . . . 70 15.3. OpenAPI and AsyncAPI . . . . . . . . . . . . . . . . . . 70 15.4. robots.txt and llms.txt . . . . . . . . . . . . . . . . 71 15.5. Rationale for XML Serialization . . . . . . . . . . . . 71 15.6. Known Implementations . . . . . . . . . . . . . . . . . 72 16. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 72 16.1. Media Type Registrations . . . . . . . . . . . . . . . . 72 16.2. Well-Known URI Registrations . . . . . . . . . . . . . . 73 16.3. ANML Standard Field Names Registry . . . . . . . . . . . 74 16.4. XML Namespace Registration . . . . . . . . . . . . . . . 74 16.5. ANML Usage Values Registry . . . . . . . . . . . . . . . 74 16.6. ANML Disclosure Requires Values Registry . . . . . . . . 76 17. ANML Public Text . . . . . . . . . . . . . . . . . . . . . . 76 17.1. ANML Site Relationship Values Registry . . . . . . . . . 77 18. References . . . . . . . . . . . . . . . . . . . . . . . . . 77 18.1. Normative References . . . . . . . . . . . . . . . . . . 77 18.2. Informative References . . . . . . . . . . . . . . . . . 78 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 80 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 80 1. Introduction ANML is pronounced like the English word "animal": ANML /ˈæn.ɪ.məl/ AN-ih-muhl HTML has served as the foundation of the World Wide Web since 1990, producing platform-independent hypertext documents rendered as visual interfaces for human consumption. The emergence of large language models (LLMs) and autonomous software agents has introduced a new class of web content consumers: machines that must interpret, reason about, and act upon published information. HTML, CSS, JavaScript, images, audio, and video produce rich user experiences but encode intent, interactions, and constraints implicitly — if at all. Increased computational power does not resolve this: no amount of inference can reliably extract structured operations, disclosure rules, or workflow state from markup that was never designed to express them. ANML addresses this gap as a machine-native markup language for agent-to-agent and agent-to-service communication. ANML complements existing web standards such as HTML and HTTP by providing a machine- oriented interaction layer, rather than replacing them. ANML is an application of XML 1.0 [XML]. Jeskey Expires 22 November 2026 [Page 6] Internet-Draft ANML 1.0 May 2026 The 'application/anml+xml' Internet Media Type is defined by this specification (see Section 6.1 (Section 6.1)). 1.1. Scope This specification defines ANML 1.0, including the document type, element and attribute sets, content model, interaction model, and media type registration. This specification does not define: * Visual rendering or presentation semantics * Client-side scripting or execution models * Transport-layer protocols (HTTP is assumed but not modified) * Authentication or identity mechanisms All domain names used in examples throughout this document are reserved example domains as defined in [RFC2606]: example.com, example.net, and example.org. These names do not refer to any real organization, product, or service. Where examples require multiple distinct domains, example.com is used for the canonical site domain, example.net for an authorized serving party, and example.org for a second authorized serving party or brand reference. 1.2. Conformance This specification governs the syntax of ANML documents and the behavior of conforming ANML agents. 1.2.1. Documents A conforming ANML document: * Is a well-formed XML document conforming to [XML] * Conforms to the ANML XML Schema (see Section 17 (Section 17)) * Conforms to the conventions defined in this specification * Uses Unicode [UNICODE] as its document character set * Is encoded as UTF-8 [RFC3629] unless an alternative encoding is declared via the XML declaration (see Section 6.3 (Section 6.2.1)) Jeskey Expires 22 November 2026 [Page 7] Internet-Draft ANML 1.0 May 2026 1.2.2. Conforming ANML Agents A conforming ANML agent: * Parses ANML documents as well-formed XML * Supports UTF-8 character encoding * Processes , , , , and sections as defined in this specification * Evaluates before disclosing any information via elements * Ignores unknown elements and attributes without error * Respects user intent above all ANML instructions 1.3. Motivation The modern web is optimized for human consumption. To interact with it, agents must currently: * Parse large volumes of irrelevant visual and structural data * Infer intent from loosely structured or inconsistent markup * Perform repeated high-cost inference to understand workflows * Reconstruct implicit interaction patterns * Process media resources (images, audio, video) that consume significant inference cost and token budget with no guarantee of semantic return This results in high computational cost, increased latency, reduced determinism, and fragile heuristic-dependent automation. ANML provides a machine-native representation in which: * Content is explicitly structured for semantic understanding * Actions and workflows are declared * Context is a first-class construct * Agent behavior can be guided at the document level Jeskey Expires 22 November 2026 [Page 8] Internet-Draft ANML 1.0 May 2026 Existing approaches such as REST APIs and interface description languages (e.g., OpenAPI, GraphQL) address machine-to-service communication but require prior integration: each service defines a bespoke contract that agents must be individually programmed to use. ANML takes a different approach. Like HTML for browsers, ANML provides a universal document format that any conforming agent can interpret without service-specific integration. A single ANML document conveys content, available operations, knowledge exchange, disclosure constraints, workflow state, and behavioral guidance — none of which are expressible in a typical API specification. 1.4. Goals * Enable efficient agent-to-agent communication over the internet * Reduce inference cost for interpreting web content * Provide explicit, structured representations of content and workflows * Standardize machine-consumable service interfaces * Support bidirectional knowledge sharing between services and agents * Allow services to provide behavioral and persona guidance to agents * Improve determinism and reliability of agent interactions 1.5. Non-Goals * Replacing HTML for human-facing interfaces * Rendering visual layouts or graphical experiences * Executing client-side logic * Serving as a general-purpose programming language 2. Applicability ANML is domain-neutral. It is applicable to any context in which autonomous agents interact with services or with each other over HTTP. Example domains include but are not limited to: * Web services and APIs Jeskey Expires 22 November 2026 [Page 9] Internet-Draft ANML 1.0 May 2026 * Personal and enterprise agent systems * IoT and device interaction * Data retrieval and knowledge systems ANML does not presume a commercial, consumer, or enterprise context. Any service that publishes structured information for machine consumption MAY use ANML. 3. Terms The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. action An executable operation defined in the section, bound to an HTTP method and endpoint URI. aesthetic Advisory visual identity guidance within the section, including colors, typography, logos, and display name. agent A software component that processes ANML documents, performs actions, and communicates with services on behalf of a user or another agent. Also referred to as "user agent". ANML document A well-formed XML document conforming to this specification and the ANML XML Schema (see Section 17 (Section 17)). answer A response element providing information requested by an element. Answers may flow from agent to service or from service to agent. ask A declarative element through which one party requests information from the other. Neither party is required to fulfill any ask. body The primary structured content of an ANML document, contained within the element. confidentiality An attribute on governing how an agent may share service-provided information with other services. conforming ANML agent An agent that conforms to this specification in its processing of the 'application/anml+xml' media type. Jeskey Expires 22 November 2026 [Page 10] Internet-Draft ANML 1.0 May 2026 constraint A rule governing whether and how requested information may be disclosed by an agent. data A structured collection of items within the , represented by the element. description A textual description of a media resource, provided as a child of ,