| Internet-Draft | AGTP-API | May 2026 |
| Hood | Expires 27 November 2026 | [Page] |
- Workgroup:
- Independent Submission
- Internet-Draft:
- draft-hood-agtp-api-01
- Published:
- Intended Status:
- Informational
- Expires:
AGTP-API: Verbs, Paths, Endpoints, and Synthesis
Abstract
This document specifies AGTP-API: the contract layer that the Agent Transfer Protocol (AGTP) [AGTP] relies on to govern interactions between autonomous agents and AGTP servers. AGTP-API defines a curated approved method catalog (with versioned evolution and graceful deprecation), path grammar rules that prevent method-name leakage into paths, the endpoint primitive (the structural unit a server exposes to agents), the semantic block carried by every endpoint, schema validation requirements, the server manifest format that exposes a server's endpoint catalog, the per-server method policy carried as a sub-block of the manifest, the PROPOSE-and-synthesis runtime contract negotiation mechanism, the three handler binding kinds (composition, registered_function, external_service), and the structural rejection status codes (404, 405, 459, 460) that together cover the contract-level failure surface. This document supersedes the AGIS Internet-Draft (draft-hood-independent-agis-01) and the previously-proposed AGTP-Methods Internet-Draft, both of which are deprecated. AGTP-API is the unified companion specification they were splitting concerns across.¶
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 27 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.¶
1. Introduction
AGTP [AGTP] is a transport protocol designed for AI agent traffic. It establishes identity, authority, attribution, and an eighteen-method protocol-level floor. Beyond that floor, the question of what an AGTP server actually exposes -- what endpoints it presents, what verbs are valid, what paths are permitted, what schemas govern input and output, what authority is required for invocation -- is the contract layer. This document specifies the contract layer.¶
1.1. Why the Contract Belongs in the Protocol
The architectural goal AGTP is designed around is runtime contract negotiation between autonomous agents (RCNS). An agent encountering an AGTP server must be able to:¶
-
Discover what endpoints the server exposes, with full structural detail, in a single call.¶
-
Reason about whether an endpoint matches its intent based on the endpoint's declared semantic block.¶
-
Verify that its identity carries the authority required to invoke the endpoint.¶
-
Propose new endpoints when its needs are not met by existing ones.¶
-
Compose endpoints across servers while preserving authority through the composition.¶
None of this works if the contract lives in middleware. A protocol that does not know what an interaction means cannot govern it. When an agent invokes a method on a path, the protocol must verify identity, confirm permissions cover the method-on-path combination, confirm server policy allows the combination, validate the request body against the endpoint's input schema, apply scope checks, log the invocation, and -- if the request triggers synthesis -- ensure each composed step preserves authority. Each of these checks requires the protocol to know what the method-on-path combination means.¶
This is the load-bearing claim of AGTP-API. The contract is a first-class protocol concept rather than something inferred from documentation, OpenAPI specs, or framework conventions. Operational concerns -- rate limiting, observability, caching, custom authentication strategies, request transformation, deployment topology -- remain middleware territory because they are operational decisions specific to a deployment. The protocol governs contracts; middleware governs operations. Neither layer pretends to be the other.¶
1.2. Document Lineage
AGTP-API supersedes two previously-separate drafts:¶
-
AGIS (the Agentive Grammar and Interface Specification, draft-hood-independent-agis-01) -- deprecated. Retained as a historical citation source for the empirical research informing the verb-class semantics. ("Verb" here is the linguistic category — the catalog is a vocabulary of action-intent verbs. See Section 2.)¶
-
AGTP-Methods (the proposed Standard Extended Method Vocabulary, draft-hood-agtp-standard-methods-01) -- folded into this document. There is no separate method-catalog specification.¶
The previously-proposed AMG (Agent Method Grammar) draft is also deprecated; it never reached publication. The grammar framing is replaced by the contract framing throughout. This document assumes the reader understands AGTP [AGTP] v07 or later.¶
1.3. Requirements Language
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD 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.¶
2. Terminology
- Method:
-
The action component of an AGTP request: an uppercase ASCII token appearing in the AGTP-API approved catalog or in a server's the server's
policies.methodsas a custom method. Themethodfield on every endpoint declaration carries this token. The protocol-level term used throughout the wire format, manifest, and conformance language.¶ - Verb:
-
A descriptive synonym for "method" used when discussing the catalog as a vocabulary of action-intent verbs. The catalog at
agtp.io/api/methods.jsonis a glossary of verbs; an operator picks a verb from the catalog and declares it as themethodon an endpoint. Method is the field name; verb is the linguistic category that explains why the field carries imperative-form action-intent words.¶ - Path:
-
The resource portion of an AGTP request, beginning with a forward slash. Subject to the path grammar rules in Section 5.¶
- Endpoint:
-
A method-and-path pair exposed by an AGTP server, together with its semantic block, input schema, output schema, error declarations, and handler binding. The deployable unit of an AGTP service. Endpoints are first-class protocol concepts.¶
- Semantic Block:
-
Required structural metadata for every endpoint: intent, actor, outcome, capability classification, confidence guidance, impact tier, and idempotency. Encodes machine-readable intent so that agents can reason about endpoint applicability before invoking. Carried on the endpoint as the
semanticfield.¶ - Server Manifest:
-
The machine-readable document an AGTP server publishes to declare its endpoint catalog, hosted agents, hosted protocols, and policies. The authoritative source for what a server offers.¶
- Method Policy:
-
A per-server policy block declaring allowed methods, disallowed methods, legacy verb opt-in, and server-local method-to-method redirects. Carried as the
policies.methodssub-block of the server manifest. See Section 9.¶ - Synthesis:
-
The runtime instantiation of an endpoint in response to a PROPOSE request, composing the requested behavior from existing endpoints while preserving authority through the composition.¶
- Wildcards:
-
An ad-hoc method invocation mode in which an agent invokes a method outside the server's declared endpoint catalog. Subject to mutual consent: requires
wildcards: truein the agent identity document andwildcards_accepted: truein server policy.¶
3. Method Catalog
AGTP-API defines a curated catalog of approved methods maintained
at https://agtp.io/api/methods.json. The catalog is the canonical
source for what method names are recognized. Method names not
appearing in the catalog are rejected with status 459 Method
Violation.¶
The catalog is a vocabulary of action-intent verbs: imperative-form
words that describe what an operation does (BOOK, RESERVE, AUDIT,
QUERY). A verb in the catalog becomes a method when an operator
picks it from the catalog and declares it as the method field on
an endpoint. The two terms are related: verbs are the linguistic
content of the catalog; methods are the protocol-level identifier
on each endpoint and request.¶
3.1. Catalog Structure
The catalog is a versioned JSON document with five top-level keys:¶
versionembedded-
The 18 protocol-floor verbs every AGTP server MUST support: seven cognitive (QUERY, DISCOVER, DESCRIBE, INSPECT, SUMMARIZE, PLAN, PROPOSE), six mechanics (EXECUTE, DELEGATE, ESCALATE, CONFIRM, SUSPEND, NOTIFY), and five lifecycle (ACTIVATE, DEACTIVATE, REINSTATE, REVOKE, DEPRECATE).¶
legacy-
The five HTTP-style verbs (GET, POST, PUT, DELETE, PATCH), each carrying a
preferredmapping to its canonical AGTP replacement (FETCH, CREATE, REPLACE, REMOVE, MODIFY). Legacy verbs are opt-in per server through the manifest'spolicies.methodsblock. See Section 3.6.¶ categories-
The taxonomy used to classify verbs:
discovery,retrieval,analysis,transaction,modification,creation,notification,mechanics,domain_spanning.¶ verbs-
The catalog of approved verbs, each with
categories,description, and optional deprecation metadata (deprecated_in,removed_in,successor).¶
The catalog is published in machine-readable form at the URL above
and is intentionally maintained as an open living artifact rather
than a closed IANA registry. Curation is performed by the AGTP-API
maintainers in public; the version of the catalog in effect at any
given moment is declared in the catalog_version field of every
server manifest. A closed IANA registry would freeze the verb
vocabulary at the cadence of IETF process; AGTP-API verbs need to
evolve at the cadence of agent deployments. The IANA registries
that AGTP-API does request (Section 17) cover the
structural status codes, the media types, and the response headers
— all of which benefit from IANA's conservative cadence. The
catalog itself does not.¶
3.2. Method Rules
Method names MUST be uppercase ASCII single tokens matching the
regex ^[A-Z]+$, length 3 to 32 characters inclusive. Method names
MUST appear in the catalog, or in the legacy set when the
server's policies.methods.legacy opts into legacy verbs.¶
The catalog is curated to contain only imperative-form action-intent verbs that:¶
-
Express a command or action, not a state, an attribute, or a noun (RESERVE is valid; RESERVATION is not).¶
-
Carry a single intent (verbs with compound intent are decomposed into separate verbs).¶
-
Are not HTTP method names.¶
These are curatorial principles applied during verb addition, not runtime checks performed by AGTP servers. Servers validate verbs against the catalog membership and the lexical regex; semantic class adherence is the responsibility of the catalog maintainers.¶
3.3. Custom Methods
Servers MAY accept additional methods beyond the catalog by
listing them in the manifest's policies.methods block. Custom methods follow the same
lexical rules in Section 3.2 but are server-specific and are not
interoperable across organizations without explicit acceptance.
Custom methods are not added to the catalog; they exist only within
the publishing server's surface.¶
3.4. Catalog Evolution Overview
The catalog evolves under semver discipline:¶
-
Patch (1.0.0 → 1.0.1) — description or category metadata changes only.¶
-
Minor (1.0.0 → 1.1.0) — verbs added; existing verbs unchanged. Minor revisions MAY introduce new deprecation flags on existing verbs.¶
-
Major (1.0.0 → 2.0.0) — verbs removed or renamed.¶
Per-verb deprecation uses three optional fields: deprecated_in
(catalog version that flagged the verb), removed_in (version
scheduled for removal), and successor (recommended replacement).
A deprecated verb remains admitted by the dispatcher; the response
carries an AGTP-Catalog-Warning advisory header. See
Section 4 for the full lifecycle, runtime semantics,
removal behavior, cross-server version negotiation, and the
agtp-catalog-diff tooling.¶
3.5. Catalog Version Exposure
The catalog version is exposed on the server manifest under
catalog_version and catalog_versions_supported so clients can
detect mismatches between their local catalog and the server's. See
Section 8.¶
3.6. Legacy Verb Support
AGTP-API recognizes GET, POST, PUT, DELETE, and PATCH as legacy
verbs with reframed semantics for transitional deployments. Legacy
verb support is opt-in per server through the manifest's policies.methods block:¶
legacy_verbs: enabled¶
When legacy verbs are enabled, the server MUST treat them as follows:¶
-
GET maps to QUERY for read operations against a known path.¶
-
POST maps to EXECUTE for state-changing operations.¶
-
PUT maps to EXECUTE with
idempotency_key.¶ -
DELETE maps to EXECUTE with
action: "delete".¶ -
PATCH maps to EXECUTE with
action: "modify".¶
These mappings are conveniences for migration. Legacy verbs MUST NOT be used in new endpoint definitions; servers SHOULD deprecate legacy support over time.¶
4. Catalog Evolution
The AGTP-API approved method catalog is versioned. This section specifies how catalog versioning works, how deprecation is signaled, and how servers and agents negotiate over catalog versions.¶
4.1. Versioning Scheme
The method catalog is versioned as semver MAJOR.MINOR.PATCH:¶
-
PATCH — editorial changes (clarifications, typo fixes, description rewordings). No verb additions, removals, or deprecations.¶
-
MINOR — additions and deprecations. Verbs may be added; verbs may be marked deprecated. No verbs are removed in a minor revision.¶
-
MAJOR — removals. Verbs marked deprecated in earlier minor revisions may be removed.¶
Servers and agents using a given catalog MAJOR version are guaranteed that no verb available in that MAJOR will disappear without warning; removal requires a MAJOR bump.¶
4.2. Deprecation Metadata
Each verb in the catalog MAY carry deprecation metadata:¶
{
"name": "AUDIT_LEGACY",
"category": "compute",
"deprecated_in": "1.2.0",
"removed_in": "2.0.0",
"successor": "AUDIT"
}
¶
-
deprecated_in: -
The catalog version at which the verb became deprecated.¶
-
removed_in: -
The anticipated catalog version at which the verb will be removed. MAY be absent if removal is anticipated but the target version has not been chosen.¶
-
successor: -
A catalog verb name that callers should migrate to. MAY be absent if no single successor applies; clients should consult the verb's description for migration guidance.¶
4.3. Manifest Catalog Declaration
Every server manifest MUST declare:¶
-
catalog_version: -
The catalog version the server validates incoming method names against.¶
-
catalog_versions_supported: -
A list of catalog versions the server can validate against. The current
catalog_versionMUST appear in this list. Multi- version support is anticipated; v00 servers commonly list a single version.¶
Agents reading a manifest learn which catalog version they should use for outbound requests against this server. Mismatches are handled at request time per the runtime semantics below.¶
4.4. Runtime Deprecation Signaling
When a server processes a request whose method is deprecated in the
catalog version the server is using, the server MUST include the
AGTP-Catalog-Warning header on the response:¶
AGTP-Catalog-Warning: deprecated; successor=AUDIT; removed_in=2.0.0¶
Header fields:¶
-
deprecated— keyword token indicating the warning class.¶ -
successor=NAME— the recommended replacement verb. Omitted if the catalog metadata does not declare a successor.¶ -
removed_in=VERSION— the target removal version. Omitted if not declared.¶
The header is advisory, not a rejection. The request MUST still process. Agents and CLIs that surface the header to their users allow operators to schedule migration before forced removal.¶
A server that receives a request whose method is in the catalog at all (deprecated or not) MUST NOT return 459 Method Violation. 459 is reserved for verbs that are not in the catalog at all. Deprecated verbs are still in the catalog.¶
4.5. Removal Behavior
When a verb is removed in a MAJOR catalog revision, servers upgrading to that revision MUST:¶
-
Reject inbound requests for the removed verb with 459 Method Violation, citing the catalog version the server is now using.¶
-
Refuse to load endpoint TOMLs declaring removed verbs at startup, logging which endpoints are affected.¶
-
Invalidate any active synthesis plans whose steps reference removed verbs, returning a structured failure on the next synthesis tick.¶
-
Skip
policies.methodsentries (allow,disallow,redirects) that reference removed methods, logging each skip.¶
This is graceful degradation: the server starts, serves the endpoints that are still valid, and surfaces what was lost. The operator decides whether to roll back, fix the affected endpoints, or accept the reduced surface.¶
4.6. Cross-Server Version Negotiation
When an agent talks to a server whose catalog_version differs from
the agent's own preferred version, the agent SHOULD:¶
-
Read
catalog_versions_supportedfrom the manifest.¶ -
If the agent's preferred version is in the list, use it; the server will validate against that version.¶
-
If not, downgrade to the highest mutually-supported version.¶
-
If no overlap exists, abandon the connection or escalate to the principal.¶
Servers MAY support multiple catalog versions concurrently;
servers MAY support only the single version they declare in
catalog_version. Agents adapt to the server's capabilities.¶
4.7. Tooling
A reference agtp-catalog-diff tool is published alongside the
method catalog. The tool diffs two catalog versions, reports added /
removed / newly-deprecated methods, and MAY scan a deployment
directory (endpoint TOMLs, recipe registry, agtp-server.toml) to
identify which deployment artifacts would break under a candidate
catalog upgrade. See Appendix A.¶
Tool invocation:¶
agtp-catalog-diff old.json new.json [--against-deployment <directory>]¶
The tool produces a structured diff showing methods added in the new catalog, methods removed, methods newly deprecated, path-grammar conflicts (existing endpoint paths containing newly-added method names), endpoint conflicts (existing endpoints declaring removed methods), recipe conflicts (existing recipes referencing removed methods), and policy conflicts (existing policy directives referencing removed methods).¶
Operators SHOULD run this tool before upgrading a server's catalog version. The tool's exit code indicates whether breaking changes exist: 0 (no breakage), 1 (breakage in deployment context), 2 (parse errors).¶
The tool is implementation-provided; alternative implementations MAY ship equivalents. The diff format is specified by the implementation's documentation rather than normatively by this section.¶
4.8. Multi-Version Catalog Support
Future revisions of AGTP-API may specify how servers can validate
against multiple catalog versions simultaneously, allowing graceful
migration during transitions. The catalog_versions_supported
manifest field is reserved for this purpose.¶
For v00 conforming servers, catalog_versions_supported MUST
be a single-element array containing only the server's current
catalog_version.¶
4.9. Catalog Publishing
The canonical AGTP method catalog is published at
https://agtp.io/api/methods.json. The catalog is versioned
independently of AGTP-API itself; a server may implement AGTP-API
v00 against catalog version 1.0.0 today, and against catalog
version 1.1.0 after a minor catalog update.¶
Servers MAY validate against alternative catalogs (industry-
specific catalogs, internal-only catalogs, etc.) by configuring
their build to use a different catalog document. The
catalog_version exposed in the manifest reflects whichever
catalog the server actually validates against.¶
Catalog updates follow a coordinated release process: the publisher announces the upcoming version, operators run the diff tool against their deployments, the new catalog is published, operators upgrade their servers. Specific governance for the canonical catalog (proposal process, approval cadence, etc.) is documented separately and is out of scope for this specification.¶
5. Path Grammar
AGTP path grammar prevents method-name leakage — the situation where a method token ends up in a path segment instead of on the request line. The grammar enforces that one rule plus structural minimums; everything else is operator judgment.¶
5.1. Path Rules
A request path MUST begin with /. A request path MUST NOT
end with / unless the path is exactly / (the bare root). No path
segment MAY match an approved AGTP method name (case-insensitive,
after stripping - and _). Parameter segments wrapped in {...}
are exempt from the method-token check.¶
Any violation MUST return status 460 Endpoint Violation with the offending segment in the response body.¶
5.2. Path Grammar ABNF
The path component of the request line follows this grammar:¶
path = "/" [ segment-nz *( "/" segment ) ]
segment = *segment-char
segment-nz = 1*segment-char
segment-char = unreserved / pct-encoded / sub-delims
/ ":" / "@"
parameter = "{" parameter-name "}"
parameter-name = 1*( ALPHA / DIGIT / "_" )
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
pct-encoded = "%" HEXDIG HEXDIG
sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
/ "*" / "+" / "," / ";" / "="
; per RFC 3986
¶
A segment MAY be a literal segment (matching segment-nz with
no { or } characters) or a parameter segment (matching the
parameter production exactly). Mixing literal and parameter forms
within a single segment (e.g., prefix-{id}) is NOT supported in
v00; future revisions MAY specify mixed-form templates.¶
Parameter names within a path MUST be unique. A path containing two parameters with the same name MUST be rejected at endpoint registration time.¶
5.3. Permissiveness
Mixed case, underscores, hyphens, and any segment depth are valid. The protocol does not impose style preferences. Casing conventions, kebab-vs-snake-case, and parameter-naming style are operator decisions.¶
Path templates support typed parameters in curly braces:¶
/customers/{customer_id}
/orders/{order_id}/line-items/{line_item_id}
/products/category/{category_slug}
¶
The {name} form is the only template syntax v00 admits. URI
Template ([RFC6570]) syntax (e.g., {?query,page},
{+reserved}, {#fragment}) is NOT supported; servers
encountering a path template that uses anything other than the
basic {name} form MUST reject the endpoint at registration
time. The conservative single-form rule keeps endpoint dispatch
deterministic and predictable; future revisions MAY broaden
the template grammar.¶
Template parameters MUST be declared in the endpoint's
input_schema as JSON Schema properties of the same name. A
template parameter that is not declared in input_schema MUST
cause registration to fail. Parameter values arrive at the handler
as part of the validated input alongside body parameters.¶
5.4. Path Pattern Matching
Servers match an incoming request path against registered endpoints in three passes:¶
-
Exact match. If the request path exactly equals a registered literal path (no template parameters), the matching endpoint is selected.¶
-
Template match. If no exact match, the request path is matched against registered templates. A template matches when the path has the same number of segments as the template and every literal segment matches exactly while every
{param}segment captures the corresponding request segment as a parameter value.¶ -
No match. If neither pass matches, the server MUST return 404 Not Found.¶
When multiple templates would match the same request path, the server MUST select the template with the fewest parameter segments (most specific wins). If two templates have the same number of parameter segments and both match, registration MUST have failed at startup with a path-ambiguity error; the dispatcher MUST NOT be reached in this state.¶
5.5. Query Strings
Paths MAY carry a query string after a ?:¶
AGTP/1.0 SCHEDULE /meeting?date=050526&attendees=alice%2Cbob¶
The wire layer splits the request-target at the first ? per
[RFC3986]: the path is everything from the leading / up to the
first ? or end-of-line; the query string is everything after the
first ?. Path-grammar enforcement (method-name leakage check,
template matching) applies to the path component only; query
strings carry no semantic constraints from this grammar.¶
Query parameters merge into the request input alongside body parameters before schema validation. On key conflicts, body parameters take precedence. Repeated query keys collapse to the last value; multi-valued shapes ride in the body.¶
Servers MUST percent-decode query parameter values per [RFC3986] Section 2.1 before schema validation.¶
5.6. Fragments
URI fragments (#anchor) are REJECTED at the wire layer. AGTP
traffic carries no client-side anchoring use case; a # in the
request line is always malformed. Servers MUST return 400 Bad
Request with error code invalid-request-line for any request line
containing #.¶
5.7. No Reserved Path Prefixes
AGTP reserves no path prefixes. There is no /.well-known/
discovery surface and no /_agtp/ namespace. AGTP is its own
protocol; HTTP-style discovery conventions do not apply.¶
5.8. Server Metadata via AGTP Methods
Server-internal metadata is exposed via AGTP methods at AGTP-native
paths, registered as built-in endpoints alongside operator-authored
endpoints. Servers MUST expose DISCOVER /methods, returning a
compact inventory of every endpoint the server has registered:¶
[
{
"method": "QUERY",
"path": "/catalog",
"description": "Returns the current product catalog.",
"tier": "B"
},
{
"method": "BOOK",
"path": "/room",
"description": "Books a room for the named guest at the named property.",
"tier": "B"
},
{
"method": "DISCOVER",
"path": "/methods",
"description": "Lists all registered endpoints on this server.",
"tier": "A"
}
]
¶
The response is a JSON array of objects, each with method, path,
description, and tier. The tier field carries the endpoint's
classification per Section 6.1 ("A" for protocol-native
built-ins, "B" for operator-registered endpoints). The verb is
DISCOVER because the response carries
endpoints to talk to (the AGTP semantics for DISCOVER, see [AGTP])
rather than data to consume; agents use the response to drive
follow-on invocations against the listed endpoints.¶
The DISCOVER /methods response is a lightweight inventory; agents
that need full endpoint definitions (semantic blocks, schemas,
deprecation metadata, handler types) MUST retrieve the full
server manifest via target-less DISCOVER (Section 8). The built-in
exists as a cheap, low-bandwidth probe for endpoint shape — useful
for clients that need to know what to ask for without loading the
full manifest.¶
Built-in endpoints appear in the server manifest like any other
endpoint (including DISCOVER /methods itself, which is one of the
entries returned by its own invocation), are subject to the same
dispatcher gates (catalog, path grammar, policy), and MAY be
overridden by operator-authored TOML at the same (method, path)
pair. Operators that override a built-in are responsible for
preserving the documented response contract.¶
5.8.1. DISCOVER /genesis
Servers that host one or more agents with a loaded Agent Genesis
MUST expose DISCOVER /genesis. The endpoint returns the
Agent Genesis document for the agent identified in the request's
Agent-ID header (or for an explicitly addressed agent when the
request is server-level rather than agent-level). The response
body is the Agent Genesis JSON in its canonical form, including
the signature field, suitable for re-hashing to verify the
canonical Agent-ID and for offline signature verification
against the issuer key.¶
{
"agent_id": "<64-hex>",
"owner": "...",
"archetype": "...",
"governance_zone": "...",
"scope": ["..."],
"issued_at": "...",
"trust_tier": 2,
"verification_path": "dns-anchored",
"signature": "..."
}
¶
Servers MUST return 404 Not Found when no Agent Genesis is
loaded for the addressed agent (e.g., a transport-only deployment
that operates without a Genesis). The response MUST NOT
substitute, transform, or re-sign the Agent Genesis on the
response path; the document returned is the document the server
loaded, byte-for-byte in canonical form. Re-canonicalization
MUST NOT alter the canonical Agent-ID.¶
The endpoint is the standard mechanism for transferring an Agent
Genesis from one party to another at runtime, complementing the
deployment-time pairing of {name}.agent.json and
{name}.genesis.json files on disk. Relying parties MUST
verify the returned Genesis before trusting it: recompute
sha256(canonical_form(Agent_Genesis_without_signature)),
confirm it matches the addressed Agent-ID, and verify the
signature against the recognized issuer key for the agent's
governance platform.¶
5.8.2. DISCOVER /agents
Servers that host one or more registered agents MUST
expose DISCOVER /agents. The endpoint returns a compact
listing of every agent the server hosts, suitable for
follow-on DISCOVER /genesis, DESCRIBE, or DELEGATE
invocations against specific agents.¶
[
{
"agent_id": "<64-hex>",
"name": "lauren",
"skills_summary": "...",
"methods_count": 8,
"trust_tier": 1,
"verification_path": "dns-anchored",
"owner_id": "nomotic.inc"
},
{
"agent_id": "<64-hex>",
"name": "morgan",
"skills_summary": "...",
"methods_count": 4,
"trust_tier": 2,
"verification_path": "org-asserted",
"trust_warning": "verification-incomplete",
"owner_id": "acme.inc"
}
]
¶
The response is a JSON array of objects, each carrying the fields below. The required minimum identifies the agent and its trust posture; optional fields are present when the underlying Agent Identity Document or Agent Genesis populates them.¶
| Field | Required | Description |
|---|---|---|
agent_id
|
MUST | Canonical Agent-ID (64 lowercase hex characters). |
name
|
MUST | Operator-assigned short name; not unique across servers. |
skills_summary
|
SHOULD | Short human-readable description of the agent's capabilities. |
methods_count
|
SHOULD | Number of registered endpoints exposed by this agent. |
trust_tier
|
MUST | Resolved trust tier (1, 2, or 3) per the precedence rule in [AGTP-TRUST]. |
verification_path
|
MUST | Resolved verification path (dns-anchored, log-anchored, hybrid, or org-asserted) per the precedence rule in [AGTP-TRUST]. |
trust_warning
|
CONDITIONAL | Present when the resolved trust_tier is 2 or when an operator-set warning is recorded. Value is a short token (e.g., verification-incomplete). |
owner_id
|
SHOULD | Resolved owner identifier per the precedence rule in [AGTP-TRUST]. Omitted when no Agent Genesis is loaded and the operator did not set an explicit value. |
The trust_tier, verification_path, trust_warning, and
owner_id fields are resolved per the trust-posture loading
rule in [AGTP-TRUST]; the server MUST NOT emit values
that disagree with what it would resolve on the Agent Identity
Document itself. Clients MAY branch on trust_tier or on
trust_warning presence to drive trust UI; clients MUST
NOT treat absence of trust_warning for a Tier-2 entry as
authoritative (the server is required to populate it when
auto-applicable, but operator-set absence is preserved per
[AGTP-TRUST]).¶
A server MAY restrict the entries returned by
DISCOVER /agents based on the requesting agent's
Authority-Scope, governance zone, or other policy. Entries
withheld by policy are NOT errors; the server returns the
remaining entries with no indication of the withholding.
Implementations that need a full server inventory should
consult the operator out of band.¶
5.8.3. DISCOVER /
Servers MUST expose DISCOVER / (root path). The endpoint
returns the directory of reserved built-in DISCOVER endpoints
the server exposes, allowing clients to enumerate available
inventory surfaces in a single call:¶
{
"directory": [
{ "path": "/methods", "tier": "A" },
{ "path": "/agents", "tier": "A" },
{ "path": "/genesis", "tier": "A" },
{ "path": "/tools", "tier": "A" },
{ "path": "/apis", "tier": "A" }
]
}
¶
The response MUST be a JSON object with a directory
field whose value is a JSON array of entries. Each entry
MUST carry a path field naming a reserved built-in
endpoint defined in this section, and a tier field with
the value "A" (per the tier classification in
Section 6.1). Servers MAY include
operator-authored DISCOVER paths in the directory at their
discretion; operator-authored entries MUST carry
tier: "B" and do not have the protection afforded to
reserved built-ins (Section 5.9).¶
DISCOVER / is the cheapest probe a client can issue against
an unknown server to determine what inventory surfaces are
available without speaking application-specific paths.¶
5.8.4. DISCOVER /tools
Servers that host one or more tool-bearing agents MAY
expose DISCOVER /tools. The endpoint returns a compact
inventory of tools the server makes available, in a format
parallel to DISCOVER /methods. When exposed, the endpoint
MUST return a JSON array of tool descriptors each
carrying a name field, an optional description, and an
optional agent_id indicating which agent owns the tool.
The precise tool-descriptor schema is operator-defined;
implementations that integrate with adjacent agent
frameworks (MCP, A2A) SHOULD align their tool-descriptor
shape with the framework in use.¶
5.8.5. DISCOVER /apis
Servers that expose one or more REST-style APIs via the
HTTP-translation gateway defined in [AGTP] MAY expose
DISCOVER /apis. The endpoint returns an inventory of the
APIs the server presents, each carrying a name, an
optional description, and an optional base_url. The
endpoint is intended for clients that need to discover the
HTTP-side surface of a gateway-fronted server without
loading the full server manifest.¶
5.8.6. DISCOVER /patterns
Servers SHOULD expose DISCOVER /patterns. The endpoint
returns the inventory of synthesis patterns the server will
negotiate against under RCNS — the operator-authored
recipes (Section 10.5) and the (method, path)
shapes those recipes match. The endpoint is reachable even
when RCNS is disabled (Section 10.1.7); when RCNS is
disabled, the response SHOULD indicate the disabled
state so callers can distinguish "no patterns exist" from
"patterns exist but synthesis is off."¶
{
"rcns_enabled": true,
"patterns": [
{
"recipe_name": "book-room",
"recipe_version": "3",
"method": "BOOK",
"path_exact": "/room",
"description": "Books a room for the named guest at the named property."
}
]
}
¶
The response MUST be a JSON object with rcns_enabled
(boolean) and patterns (array). Each pattern entry
MUST carry recipe_name, recipe_version, and
method, plus exactly one of path_exact (byte-exact
match) or path_regex (regular expression match against
the request path). Servers MAY include additional
descriptive fields (description, required_scopes,
semantic) at their discretion; callers MUST ignore
unknown fields.¶
The endpoint surfaces server posture explicitly: an agent
inspecting DISCOVER /patterns knows in advance what
(method, path) shapes the server will consider for
synthesis.¶
5.8.7. DISCOVER /contracts
Servers that have ever synthesized at least one contract
MUST expose DISCOVER /contracts. The endpoint returns
active synthesized contracts, scoped by default to the
requesting agent. Callers with the inspect:all
Authority-Scope token receive contracts across all agents
(operator visibility).¶
[
{
"synthesis_id": "<opaque>",
"method": "BOOK",
"path": "/room",
"originating_agent_id": "<64 hex>",
"recipe_lineage": {
"recipe_name": "book-room",
"recipe_version": "3"
},
"contract_hash": "<64 hex>",
"negotiation_origin": "rcns-gate",
"issued_at": "<RFC 3339>",
"expires_at": "<RFC 3339>"
}
]
¶
The response is a JSON array. Each entry MUST carry
synthesis_id, method, path, originating_agent_id,
recipe_lineage, contract_hash, and negotiation_origin
matching the Attribution-Record extension fields specified
in Section 10.1.6. The issued_at and
expires_at fields SHOULD be present.¶
A server MUST NOT return contracts whose
originating_agent_id differs from the requesting
Agent-ID, unless the request carries the inspect:all
scope.¶
5.9. Reserved DISCOVER Paths
The path prefixes /methods, /agents, /genesis,
/tools, /apis, /patterns, and /contracts under the
DISCOVER method are reserved for the built-in endpoints
defined in this section. Operator-authored endpoints
MUST NOT register DISCOVER under any of these reserved
paths, and MUST NOT register DISCOVER under any path
whose first path segment is the same as a reserved name
regardless of additional segments (e.g.,
/methods/v2, /agents-extended, /toolset,
/patterns-v2, /contracts/history). Servers MUST
refuse a registration that would shadow a reserved path;
the refusal is a configuration-time error, not a runtime
status code.¶
The reservation applies only to DISCOVER. The same paths
under other verbs are unreserved (e.g., a server MAY
register QUERY /methods to serve a non-DISCOVER catalog
endpoint without conflict).¶
A server MAY override a reserved built-in by registering
its own endpoint at the same (DISCOVER, /reserved-path)
pair via the operator manifest's policies.builtins
override block (see Section 5.8). Operators that
override a built-in MUST preserve the documented
response contract for that endpoint; clients that detect a
contract violation SHOULD treat the server as
nonconforming.¶
5.10. Legacy DISCOVER target= Body Form (Deprecated)
Earlier revisions of AGTP and this document supported a
body-keyed DISCOVER target=... form in which the discovery
surface was selected by a target field in the request body
rather than by the request path (e.g.,
DISCOVER target=methods instead of DISCOVER /methods).
The body-keyed form is DEPRECATED. Servers MAY
accept the legacy form for transition compatibility and
SHOULD emit a one-shot deprecation warning per requesting
agent the first time the legacy form is received. Servers
that accept the legacy form MUST treat
DISCOVER target=X as semantically equivalent to
DISCOVER /X for the reserved targets methods, agents,
genesis, tools, and apis. A future revision MAY
remove acceptance of the legacy form entirely.¶
When a request carries both a reserved path and a target
body field with conflicting values, the server MUST
return 400 Bad Request with a body identifying the
conflict; the server MUST NOT silently prefer one over
the other.¶
Future revisions of this specification MAY define additional
built-in endpoints (e.g., QUERY /catalog-version for catalog
version negotiation). Built-ins are protocol-level conventions, not
deployment-level extensions.¶
6. The Endpoint Primitive
6.1. Endpoint Tiers
Every (method, path) pair an AGTP server exposes — or could
expose — falls into one of four tiers. The tier classification
is informational at the wire level but constrains how the
server treats invocations against the pair: Tier A endpoints
are guaranteed by the protocol, Tier B endpoints are guaranteed
by the operator, Tier C endpoints are negotiated at runtime,
and unregistered endpoints are refused.¶
- Tier A — Protocol-native:
-
Endpoints reserved by AGTP and its companion specifications. Servers MUST support Tier A endpoints with their documented response contracts. Examples: every cell of the eighteen-method floor defined in [AGTP]; the DISCOVER built-in endpoints defined in Section 5.8 (
DISCOVER /,DISCOVER /methods,DISCOVER /agents,DISCOVER /genesis, and the optional/toolsand/apis); any future reserved path under the reservations specified in Section 5.9.¶ - Tier B — Application-registered:
-
Endpoints declared in the operator's manifest. Servers MUST support every Tier B endpoint as declared and MUST refuse any operator-authored endpoint that collides with a Tier A reservation per Section 5.9. The endpoint catalog, semantic block, handler binding, and policy fields documented in this section apply to Tier B endpoints.¶
- Tier C — Runtime-negotiated:
-
Endpoints synthesized at runtime via RCNS (Runtime Contract Negotiation Substrate). A caller addresses a
(method, path)pair that is not in the registered Tier A or Tier B set; the server MAY, subject to policy, synthesize a contract for the requested pair from registered primitives and deliver it in either of two modes: a 461 RCNS Contract Available response carrying a contract preview (confirm- first), or an inline executed response carrying aContract-Synthesizedheader (optimistic). RCNS is specified in Section 10.¶ - Unregistered:
-
A
(method, path)pair that does not match any Tier A, Tier B, or Tier C endpoint. Servers MUST refuse unregistered invocations with404 Not Found(when the path is unknown) or405 Method Not Allowed(when the path is known under a different method). When RCNS is enabled, the server MAY treat an unregistered pair as a Tier C synthesis candidate instead of refusing.¶
Servers MUST classify every inbound (method, path)
pair into exactly one of these tiers before dispatch. The
DISCOVER / directory and DISCOVER /methods inventory
SHOULD carry an explicit tier field on each entry
("A", "B", or "C") so clients can route follow-on
invocations with full knowledge of the guarantee level.
Entries on DISCOVER / describing reserved built-in
endpoints carry tier: "A"; entries on DISCOVER /methods
describing operator-authored endpoints carry tier: "B".
Tier C entries appear on DISCOVER /contracts per Section 10.¶
The four-tier classification is normative. The specific operator-side mechanism for declaring Tier B endpoints (manifest format, dispatcher gates, policy fields) is documented in the remainder of this section.¶
6.2. Endpoint Definition
An endpoint is the structural unit an AGTP server exposes. Every
endpoint is identified by the pair (method, path) and carries the
fields specified below.¶
{
"method": "BOOK",
"path": "/room",
"description": "Books a room for the named guest at the named property.",
"namespace": "reservations",
"semantic": {
"intent": "Reserve a room for the named guest at the named property.",
"actor": "agent",
"outcome": "A confirmed reservation_id is returned for the guest.",
"capability": "transaction",
"confidence": 0.85,
"impact": "irreversible",
"is_idempotent": false
},
"input_schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"guest_id": { "type": "string", "format": "uuid" },
"room_id": { "type": "string" },
"arrival": { "type": "string", "format": "date" },
"departure":{ "type": "string", "format": "date" }
},
"required": ["guest_id", "room_id", "arrival", "departure"],
"additionalProperties": false
},
"output_schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"reservation_id": { "type": "string", "format": "uuid" }
},
"required": ["reservation_id"],
"additionalProperties": true
},
"errors": ["room_unavailable", "invalid_dates"],
"handler": { "type": "registered_function" },
"required_scopes": ["booking:room", "calendar:write"],
"deprecated": {
"deprecated_in": "2.1.0",
"removed_in": "3.0.0",
"successor": { "method": "RESERVE", "path": "/rooms" }
}
}
¶
6.3. Required Fields
Every endpoint MUST carry: method, path, description,
semantic, input_schema, output_schema, errors, handler.
The remaining fields (namespace, required_scopes, deprecated)
are optional.¶
6.4. Field Semantics
-
method: -
An AGTP method drawn from the approved catalog at the server's declared
catalog_version, or a custom method declared in the server'spolicies.methods. See Section 3.3. The method name satisfies the lexical rules of Section 3.2.¶ -
path: -
description: -
Operator-facing prose. A single sentence describing what the endpoint does. Distinct from the semantic block:
descriptionis for humans reading the manifest; the semantic block is for agents reasoning about applicability.¶ -
namespace: -
Optional free-form grouping label. Servers exposing many endpoints MAY organize them by namespace (e.g.,
"reservations","billing","inventory") for catalog navigation. Namespace has no protocol-level effect.¶ -
semantic: -
The structural metadata block defined in Section 7. Required by every endpoint with all required fields populated.¶
-
input_schema: -
A Draft 2020-12 JSON Schema [JSON-SCHEMA] describing the request body. MUST declare
"type": "object"and MUST set"additionalProperties": false; see Section 13.3. Query-string parameters (Section 5.5) are merged into the body before validation; the same schema covers both. Schemas are inline in v00; cross-endpoint schema sharing is anticipated in a future revision.¶ -
output_schema: -
A Draft 2020-12 JSON Schema describing the successful response body. SHOULD set
"additionalProperties": trueso handlers can return forward-compat fields without bumping the contract; see Section 13.3.¶ -
errors: -
An array of named error condition strings (e.g.,
"room_unavailable","invalid_dates"). The dispatcher returns these as 422 Unprocessable Entity responses with structured bodies identifying the condition. The error name is the protocol-level identifier; status-code mapping is a response-construction concern, not part of the contract. The list MAY be empty for endpoints with no business-level errors. Composition handlers MUST include"composition_failed"; external-service handlers MUST include the upstream-failure codes specified in Section 12.3.¶ -
handler: -
An object declaring the binding kind:
{"type": "registered_function" | "composition" | "external_service"}. The handler's full reference (Python dotted path, recipe name, upstream URL, etc.) is server-internal implementation detail and MUST NOT appear in the manifest. See Section 8.9 and Section 12.¶ -
required_scopes: -
An array of scope identifiers the invoking agent MUST declare in its Authority-Scope. Empty or omitted means no scope check; the endpoint inherits the server's default authority requirement. Insufficient scope returns 455 Scope Violation per [AGTP].¶
-
deprecated: -
Optional per-endpoint deprecation metadata. See Section 6.5.¶
6.5. Endpoint Deprecation
The optional deprecated block follows the same shape as
catalog-level deprecation:¶
"deprecated": {
"deprecated_in": "2.1.0",
"removed_in": "3.0.0",
"successor": { "method": "RESERVE", "path": "/rooms" }
}
¶
Field semantics:¶
-
deprecated_in: -
The server's
agtp_api_version(or operator-chosen version string) at which the endpoint became deprecated.¶ -
removed_in: -
Optional. The version at which the endpoint will be removed. MAY be absent if removal is anticipated but the target version has not been chosen.¶
-
successor: -
Optional. An object with
methodand/orpathindicating the replacement endpoint callers should migrate to. Either field MAY be absent:successor.methodalone signals "use the same path with a different method";successor.pathalone signals "use the same method with a different path"; both together signal a full replacement endpoint.¶
An endpoint MAY be deprecated even when its method and path
remain valid in the catalog and grammar. Operators deprecate
endpoints when they migrate callers from one (method, path) pair
to another, independent of catalog evolution.¶
The dispatcher MUST stamp an AGTP-Endpoint-Warning advisory
header on every response from a deprecated endpoint:¶
AGTP-Endpoint-Warning: deprecated; successor=RESERVE /rooms; removed_in=3.0.0¶
The header rides alongside AGTP-Catalog-Warning (Section 4)
when both apply; both are advisory and the request still processes.
The successor token renders as METHOD /path when both fields
are present; just one is emitted bare. removed_in and successor
are omitted from the header when the endpoint's deprecated block
does not declare them. The header fires on success and failure
responses alike so callers always see the warning regardless of
how the invocation resolves.¶
7. The Semantic Block
The semantic block is the part of the endpoint definition that encodes machine-readable intent. Agents reason about whether an endpoint matches their goal by interpreting the semantic block, not by parsing the verb and path alone. The empirical evidence for intent-expressing semantic metadata is documented in [HOOD2026].¶
7.1. Required Semantic Block Fields
-
intent: -
A natural-language statement of what the endpoint accomplishes. Single sentence. Imperative form. Subject is the actor; the verb reflects the endpoint's method; the object is the path resource.¶
-
actor: -
A short identifier of the agent class that should invoke this endpoint. Freeform string; servers MUST NOT reject endpoints whose
actoris not in a fixed enum. Suggested values for interoperable authoring includeagent,human,system,customer,staff,admin; domain-specific values (e.g.,merchant,auditor,patient) are equally valid. The field helps agents recognize whether an endpoint applies to their role but carries no protocol-level enforcement.¶ -
outcome: -
A natural-language statement of the post-condition produced by successful invocation. Distinct from
intent: intent is what the endpoint sets out to do; outcome is what is true after.¶ -
capability: -
The high-level effect class of the endpoint. One of the catalog category values:
discovery,retrieval,analysis,transaction,modification,creation,notification,mechanics,domain_spanning. The same taxonomy used to classify methods in the catalog (Section 3); an endpoint inherits its capability class from the category of the method it exposes, though operators MAY override when the endpoint's specific behavior fits a different category.¶ -
confidence: -
A scalar on the closed interval
0.0to1.0expressing how confident the server is that an agent invoking this endpoint with satisfying input will produce the declared outcome. Endpoints that are deterministic and well-tested score near1.0; endpoints that involve nondeterministic resources or partial failures score lower. Agents MAY use the value to decide whether to ESCALATE for clarification before invoking. The scale is advisory and not normatively defined beyond the endpoint bounds.¶ -
impact: -
The reversibility of the endpoint's effect. One of
informational,reversible,irreversible.informationalendpoints return data without changing server state.reversibleendpoints change state in ways that can be undone via a compensating method (e.g., CANCEL, REFUND).irreversibleendpoints commit changes that cannot be programmatically undone (e.g., sending an email, charging a payment, shipping goods). Governance frameworks MAY use this field to apply differential authorization, gating irreversible endpoints behind stricter scope checks.¶ -
is_idempotent: -
Boolean. Whether repeated invocation with identical input produces identical effect. Affects retry safety: idempotent endpoints MAY be retried freely; non-idempotent endpoints require an
Idempotency-Keyheader per [AGTP] to be safely retried.¶
8. Server Manifest
8.1. Purpose
The server manifest is the machine-readable document an AGTP server publishes to declare its identity, version posture, endpoint catalog, hosted agents, hosted protocols, and operational policies. It is the authoritative answer to "what does this server offer."¶
8.2. Manifest Structure
{
"agtp_version": "1.0",
"agtp_api_version": "1.0",
"document_version": "v2",
"catalog_version": "1.0.0",
"catalog_versions_supported": ["1.0.0"],
"server": {
"server_id": "agents.acme.com",
"domain": null,
"operator": "Acme Retail",
"contact": "ops@acme.com",
"supported_features": ["endpoint-registry", "synthesis"],
"issued": "2026-01-15T09:00:00Z",
"updated": "2026-04-15T09:00:00Z"
},
"embedded_methods": [ /* eighteen floor methods */ ],
"custom_methods": [ /* server-specific methods declared in policies.methods */ ],
"endpoints": [ /* array of endpoint definitions, projected */ ],
"agent_disclosure": "public",
"hosted_agents": [ /* agent identity references */ ],
"agent_disclosure_notice": null,
"apis": [ /* legacy HTTP APIs this server fronts, if any */ ],
"hosted_protocols": [ /* MCP, A2A, ACP, etc. */ ],
"policies": {
"wildcards_accepted": false,
"anonymous_discovery": true,
"scope_required_for_invocation": true,
"synthesis_enabled": true,
"max_synthesis_depth": 10
},
"manifest_signature": null
}
¶
The manifest carries three distinct version fields at the top level:¶
-
agtp_version: -
The AGTP wire-protocol version the server speaks (currently
"1.0", corresponding to AGTP v07 of [AGTP]). Pinned to the base protocol, separate from contract-layer evolution.¶ -
agtp_api_version: -
The AGTP-API contract-layer version the server implements (currently
"1.0"for v00 of this document). Carries the endpoint primitive, semantic block, status code, and synthesis semantics the server adheres to.¶ -
document_version: -
This specific manifest's revision string. Operator-controlled; bumped on every meaningful change to the manifest content. Permits agents to detect cache staleness without comparing the full body.¶
-
catalog_version: -
The method catalog version the server validates incoming method names against. See Section 4.¶
-
catalog_versions_supported: -
List of catalog versions the server can validate against. The current
catalog_versionMUST appear in this list. Multi-version support is anticipated in a future revision but is not normatively specified in v00.¶
8.3. Server Block
The server block carries operator-facing identity and timestamps:¶
-
server_id: -
The canonical identifier for this server. MAY be a hostname, an
agtp://URI, or an operator-defined string. The value MUST be stable across manifest revisions.¶ -
domain: -
Optional operational host the server is reachable at, if different from
server_id. MAY benullfor servers whoseserver_idis itself a resolvable host.¶ -
operator: -
The human-readable name of the organization operating the server.¶
-
contact: -
An operator email address for security and operational issues.¶
-
supported_features: -
A non-normative array of feature tokens describing optional capabilities the server exposes (e.g.,
"endpoint-registry","synthesis","openapi-export"). Agents and operators MAY use these tokens for capability negotiation. AGTP-API does not define a canonical feature-token registry; tokens are operator-defined.¶ -
issued: -
ISO 8601 timestamp of when the manifest was first issued. Preserved across manifest revisions; identifies the manifest's origin in time.¶
-
updated: -
ISO 8601 timestamp of the most recent manifest update. Bumped on every regeneration.¶
8.4. Methods Inventory
The embedded_methods array carries the eighteen protocol-floor
methods every AGTP server supports (see [AGTP] §6). The
custom_methods array carries any server-specific methods declared
in policies.methods (Section 3.3). The custom_methods
field MAY be omitted when empty.¶
These arrays are non-normatively populated; agents that want a
complete picture of what the server invokes SHOULD consult the
endpoints array, which is the authoritative source for what
methods are bound on what paths.¶
8.5. Agents Disclosure
The three agent-related fields describe what agents the server hosts and how they are exposed:¶
-
agent_disclosure: -
One of
"public","authenticated","private"."public"means thehosted_agentsarray is populated and visible to all callers."authenticated"means the array is populated only for callers presenting a verified identity."private"means the array is empty in this manifest; the server does not disclose what agents it hosts.¶ -
hosted_agents: -
Array of agent identity references the server hosts. Format is operator-defined; typical entries include a canonical Agent-ID and a brief description.¶
-
agent_disclosure_notice: -
Optional human-readable note explaining the server's disclosure policy. Useful when
agent_disclosureis"authenticated"or"private"and the operator wishes to clarify how a caller can request elevated disclosure.¶
8.6. Protocol and API Surface
-
apis: -
Optional array of legacy HTTP API descriptors this server fronts (e.g., entries pointing at OpenAPI specifications). Servers that expose a parallel HTTP surface alongside AGTP list those HTTP endpoints here; the presence of entries in this array is the signal that the server operates a parallel HTTP face.¶
-
hosted_protocols: -
Optional array of higher-level agent protocols the server hosts on top of AGTP (e.g., MCP, A2A, ACP). Each entry is an object with the protocol name and the AGTP method+path it is reachable via. See the composition section in [AGTP].¶
8.7. Policies Block
The policies block carries five normative operational toggles:¶
-
wildcards_accepted: -
One of
true,false. Whether the server accepts ad-hoc method invocations against undeclared endpoints. See Section 5.8.¶ -
anonymous_discovery: -
One of
true,false. Whether unauthenticated callers may retrieve the manifest and invoke read-only built-in endpoints. Servers serving traffic from open networks typically set this totrue; servers in trusted-network deployments MAY set this tofalseto require authenticated identity even on discovery.¶ -
scope_required_for_invocation: -
One of
true,false. Whether every endpoint invocation requires the agent to carry an Authority-Scope header.trueis the default; the implementation MUST NOT invoke a handler when scope is required and absent. Servers with no scope-gated endpoints MAY set this tofalse.¶ -
synthesis_enabled: -
One of
true,false. Whether the server participates in PROPOSE-and-synthesis runtime contract negotiation. Whenfalse, PROPOSE requests MUST be refused with 463 Proposal Rejected and the reasonsynthesis-disabled.¶ -
max_synthesis_depth: -
A positive integer specifying the maximum number of composed steps a synthesized endpoint MAY combine. Plans exceeding this depth are refused; the server falls through to counter-proposal or 463. Default: 10.¶
8.8. Manifest Signature
The manifest body SHOULD carry a manifest_signature field
holding a JWS envelope over the canonical JSON encoding of the
manifest body (with the manifest_signature field itself excluded
from the signing input). Clients MAY verify signatures when
present and SHOULD warn when absent.¶
A future revision of this specification will require
manifest_signature (MUST); reference implementations are
expected to ship signing support in alignment with that revision.
The signing algorithm, canonical encoding rules, and key-publication
mechanism are specified separately in [AGTP-CERT].¶
For v00, the manifest_signature field MAY be null or absent;
a manifest without a valid signature MUST NOT be rejected by
clients on signature grounds alone.¶
8.9. Endpoint Projection
The endpoints array in the manifest is a projection of the
server's internal endpoint catalog. The projection differs from the
full endpoint definition in one important way: the handler's
type-specific reference field (function, recipe, or url) and
any other binding-specific implementation details are dropped,
leaving only the binding kind under handler.type.¶
Internal endpoint definition (on disk, in TOML or equivalent):¶
{
"method": "BOOK",
"path": "/room",
"description": "...",
"semantic": { ... },
"input_schema": { ... },
"output_schema": { ... },
"errors": [ ... ],
"required_scopes": [ ... ],
"handler": {
"type": "registered_function",
"function": "rooms.handlers.book_room"
}
}
¶
Manifest projection (over the wire):¶
{
"method": "BOOK",
"path": "/room",
"description": "...",
"semantic": { ... },
"input_schema": { ... },
"output_schema": { ... },
"errors": [ ... ],
"required_scopes": [ ... ],
"handler": { "type": "registered_function" }
}
¶
The type-specific reference field (function, recipe, or url)
and any other binding-specific implementation fields are
server-internal and MUST NOT appear in the manifest projection.
Agents need to know the binding kind to reason about expected
latency, retry behavior, and attribution; agents do not need to
know which specific function, recipe, or upstream realizes the
binding.¶
Servers MUST apply this projection on every manifest response.¶
8.10. Manifest Retrieval
Agents retrieve the server manifest using the AGTP DISCOVER method without an Agent-ID header. The absence of an Agent-ID header distinguishes a server-level discovery request (returns the manifest) from an agent-level discovery request (returns endpoint candidates matching specified criteria).¶
The response MUST carry Content-Type
application/vnd.agtp.manifest+json. The manifest SHOULD be
signed; see the Manifest Signature subsection above.¶
8.11. Manifest Caching
Servers SHOULD include Cache-Control and ETag headers on
manifest responses. Agents MAY cache manifests according to
those directives. The server.updated timestamp and the
document_version field permit agents to detect cache staleness
without revalidation: a changed document_version means the
manifest content has changed in a way the operator considers
significant.¶
9. Method Policy
9.1. Purpose
The method policy declares per-server constraints on which methods are accepted, which legacy verbs are opted in, and which methods on which paths are redirected to their canonical form. The policy is the small, declarative complement to the endpoint catalog: the catalog says what an endpoint does; the policy says what the server accepts in the first place.¶
In v00, the method policy is a sub-block of the manifest's
policies (Section 8) carried at policies.methods. There is
no separate policy file format; the policy is part of the server's
configuration and is exposed on the manifest like any other
operational policy.¶
9.2. Policy Shape
The policies.methods block is a JSON object with four optional
fields:¶
-
allow: -
Either the string
"*"(the server admits every method in the catalog plus any method it has registered an endpoint for), or an array of method names (the server admits only the listed methods plus the embedded eighteen floor methods). Default:"*".¶ -
disallow: -
Array of method names the server explicitly rejects. Disallowed methods are rejected with 405 Method Not Allowed even when they would otherwise be permitted by
allow. Useful for narrowing the surface without enumerating an exhaustive allow list. Default: empty array.¶ -
legacy: -
Either an array of legacy HTTP verb names the server opts into (e.g.,
["GET", "POST"]), the string"*"(all five legacy verbs accepted), or the string"NONE"(no legacy support). Granular per-verb opt-in supersedes the binary enabled/disabled toggle. Default:"NONE".¶ -
aliases: -
Map of method-name aliases the server resolves at dispatch time. Each entry maps a non-canonical method name (the alias) to a canonical method name (the catalog entry the server actually dispatches under). Servers seed the default alias map with the five legacy HTTP verbs mapped to their canonical AGTP counterparts:¶
{ "GET": "FETCH", "POST": "CREATE", "PUT": "REPLACE", "DELETE": "REMOVE", "PATCH": "MODIFY" }¶Operators MAY override the seed or wipe it. Alias resolution runs as a single-hop translation ahead of the catalog check (Section 3.3); the resolved method is what the dispatcher matches against the endpoint catalog and against the
allow/disallowlists. Aliases MUST NOT chain (an alias MUST resolve to a canonical method, not to another alias); chained or circular alias declarations are configuration errors and the server MUST refuse to start. The original wire method is preserved on the Attribution-Record asrequested_methodper [AGTP-IDENTIFIERS], so audit consumers can distinguish "BOOK arrived under that name" from "GET arrived and was aliased to FETCH." Default: the seed map above; operators MAY set the empty map to disable aliasing entirely.¶ -
redirects: -
Array of method-and-path redirect entries. Each entry has the shape:¶
{ "from_method": "BOOK", "from_path": "/room", "to_method": "RESERVE", "to_path": "/room" }¶Either
from_pathorto_pathMAY be omitted, signaling "redirect on method-only without path matching" or "redirect to the same path as the request." When a request matches a redirect entry, the server processes it as if theto_method/to_pathhad been requested instead.¶
9.3. Example
A representative TOML deployment configuration:¶
[policies.methods] allow = "*" disallow = ["PATCH", "TRANSFER"] legacy = ["GET"] [[policies.methods.redirects]] from_method = "BOOK" from_path = "/room" to_method = "RESERVE" to_path = "/room"¶
The equivalent manifest projection:¶
"policies": {
"methods": {
"allow": "*",
"disallow": ["PATCH", "TRANSFER"],
"legacy": ["GET"],
"redirects": [
{
"from_method": "BOOK",
"from_path": "/room",
"to_method": "RESERVE",
"to_path": "/room"
}
]
}
}
¶
9.4. Catalog-Graceful Skip Semantics
When the server loads policies.methods and an entry under allow,
disallow, or redirects references a method removed from the
catalog version the server has loaded, the entry MUST be
skipped at load time with an operator-visible warning. The server
continues to operate; the policy entry has no effect. This permits
operators to upgrade the catalog without simultaneously rewriting
the policy block to remove all references to retired methods.¶
The legacy field continues to enforce the strict set of five HTTP
verbs (GET, POST, PUT, DELETE, PATCH); typos or non-HTTP verbs in
legacy MUST be rejected as a hard configuration error.¶
9.5. Discovery
Agents discover the server's method policy by retrieving the server
manifest via target-less DISCOVER (Section 8). The
policies.methods block is part of the manifest body and is
covered by the manifest signature (Section 8) when present.¶
Agents that need only an endpoint inventory (which methods on which
paths are exposed, with one-line descriptions) MAY invoke
DISCOVER /methods (Section 5.8) for a lightweight
response that bypasses the full manifest weight.¶
10. PROPOSE and Synthesis
10.1. Runtime Contract Negotiation Substrate
The Runtime Contract Negotiation Substrate (RCNS) is the
machinery by which a server delivers Tier C endpoints
(Section 6.1): endpoints synthesized at runtime from
registered primitives when a caller addresses a (method,
path) pair that is not in the Tier A or Tier B set.¶
PROPOSE is the AGTP method that explicitly invokes RCNS. RCNS also operates implicitly when a server is configured to accept unregistered requests as synthesis candidates; the wire surface in that case is the same set of contract identifiers and reasoned status codes (461, 464) introduced in this document.¶
The complete RCNS specification — the four-lock dispatcher
gate, the two delivery modes (confirm-first 461 and
optimistic 263 with Contract-Synthesized header), the
endpoint-keyed PROPOSE body shape, the contract scoping
rules, the per-agent rate limiting and idempotency key
contract, the synthesis_id / contract_hash /
negotiation_origin Attribution-Record extension fields,
and the DISCOVER /patterns / DISCOVER /contracts /
INSPECT target=contract / INSPECT target=rcns-attempt
inventory surfaces — is being specified in successive
revisions of this document. The reservations made in
Section 6.1 (Tier C taxonomy) and in [AGTP]
(status codes 461 and 464, reason vocabulary
rcns-disabled, trust-tier-insufficient,
composition-impossible, synthesis-error,
contract-not-yours, contract-revoked) constitute the
stable wire foundation for the substrate.¶
10.1.1. Tier C Resolution
A server with active synthesized contracts MUST maintain
a resolver that answers, for any inbound (method, path)
pair, whether an active Tier C contract exists for that pair.
The resolver is the dispatcher hook that closes the loop
between RCNS-1's tier classification (Section 6.1) and
the synthesis machinery: an unregistered (method, path)
pair that resolves to an active contract is classified Tier C
and dispatched to the synthesized handler; a pair that does
not resolve is dispatched per the unregistered-pair rules in
Section 6.1.¶
The resolver MUST scope each lookup by the requesting
Agent-ID. A contract synthesized for Agent-ID X MUST NOT
resolve for an unrelated Agent-ID Y; the server MUST
return 464 RCNS No Contract with reason:
contract-not-yours in that case. Contracts that have
expired, been revoked, or been suspended MUST NOT
resolve.¶
The resolver returns, when an active contract exists:¶
-
The
synthesis_idof the matched contract.¶ -
The
recipe_lineage(recipe name and captured recipe version) the contract was synthesized under.¶ -
The contract's expiration time and remaining budget, if applicable.¶
These fields are server-internal at lookup time but appear
on INSPECT target=contract responses (the target=contract
extension to INSPECT specified in [AGTP]) and in the
Attribution-Record extension fields
(Section 10.1.6) on every invocation served
under the contract.¶
10.1.2. The Four-Lock Dispatcher Gate
RCNS synthesis fires only when all four of the following locks are open at the moment of an unregistered request. The locks are deliberately distributed across actors: server operator, requesting agent's invoker, requesting agent's identity, and requesting agent's posture. No single party can unilaterally activate RCNS.¶
-
Server policy enabled. The server's operator has set
[policies.rcns].enabled = true(or the equivalent in the server's configuration format). The default posture is OFF; servers ship with RCNS disabled and the operator opts in explicitly.¶ -
Caller opt-in header. The request carries
Allow-RCNS: true. Clients that have not consented to runtime negotiation do not get it; a missing or non-truevalue means the unregistered request is refused per the standard Tier classification rules (Section 6.1).¶ -
Caller scope. The requesting agent's
Authority-Scopeincludes thercns:negotiatetoken. Agents that do not carry this token cannot trigger synthesis even with the header set.¶ -
Minimum trust tier. The requesting agent's resolved
trust_tier([AGTP-TRUST]) is greater than or equal to the server's configuredmin_trust_tier(default1, the strictest). Agents below the threshold receive464 RCNS No Contractwithreason: trust-tier-insufficient.¶
When any of the four locks is closed, the server MUST NOT synthesize. The specific refusal depends on which lock is closed:¶
| Lock closed | Server response |
|---|---|
| Server policy disabled |
464 RCNS No Contract reason: rcns-disabled
|
| Caller opt-in absent | Standard unregistered-pair refusal (404 or 405) — RCNS is not signaled |
| Caller scope absent |
262 Authorization Required body type: scope-required scope: rcns:negotiate
|
| Trust tier insufficient |
464 RCNS No Contract reason: trust-tier-insufficient
|
The asymmetry between locks 1 and 2 (rcns-disabled 464 vs
opaque 404) is deliberate: the server policy lock surfaces
RCNS posture to interested callers; the opt-in lock is a
no-surprise gate for callers that did not ask.¶
A request that holds the Synthesis-Id header (presenting an already-issued contract) MUST NOT trigger a new synthesis attempt; the gate is skipped and the request is dispatched directly through the contract resolution path. This prevents recursive RCNS: a contract invocation cannot itself produce a new contract.¶
10.1.3. Delivery Modes
When the four-lock gate opens and the server determines a synthesis is possible, the server delivers the contract in one of two modes selected by operator policy:¶
Confirm-first (default):
The server returns 461 RCNS Contract Available with a
response body carrying the synthesized contract preview.
The body MUST include:¶
{
"synthesis_id": "<opaque identifier>",
"method": "BOOK",
"path": "/room",
"endpoint": { "..." : "..." },
"recipe_lineage": {
"recipe_name": "<recipe identifier>",
"recipe_version": "<version string>"
},
"contract_hash": "<sha256 of canonical contract>",
"expires_at": "<RFC 3339 timestamp>"
}
¶
The caller accepts the contract by re-issuing the original
request with the Contract-Synthesized header carrying the
returned synthesis_id. The contract is bound to the
caller's Agent-ID at the moment the 461 was issued; a
different Agent-ID presenting the same synthesis_id is
refused with 464 contract-not-yours. The caller declines
the contract by ignoring the response; the contract record
MAY be garbage-collected by the server after a
configured TTL.¶
Optimistic:
The server synthesizes the contract and executes the
request inline, returning the normal 200 OK (or method-
specific success code) for the underlying action. The
response MUST carry the Contract-Synthesized header
with the issued synthesis_id, signaling to the caller
that this response was served under a runtime-negotiated
contract rather than a Tier A or Tier B endpoint. Callers
that wish to repeat the action send subsequent requests
with the Contract-Synthesized header to bypass the gate.¶
Optimistic mode reduces latency at the cost of removing the caller's opportunity to preview the synthesized contract. Confirm-first is the safer default; optimistic is appropriate when the server operator knows recipes produce contracts the caller will accept.¶
10.1.4. Contract Scoping and Lifecycle
A synthesized contract is bound to:¶
-
The originating Agent-ID (set when the 461 was issued or the optimistic synthesis fired).¶
-
The recipe and recipe version captured at synthesis time (Section 10.5).¶
-
The contract's expiration timestamp.¶
Servers MUST enforce these bindings on every request
carrying a Contract-Synthesized header:¶
-
Wrong Agent-ID →
464 contract-not-yours.¶ -
Unknown
synthesis_id→404 Not Found.¶ -
Expired or revoked contract →
464 contract-revoked.¶
Contracts have three release paths:¶
-
Caller release. The originating agent invokes
SUSPENDwith thesynthesis_idparameter to release a contract it no longer needs. The release emits anrcns_releaseevent in the agent's lifecycle stream and evicts the contract from the runtime.¶ -
Operator revocation. The server operator invokes
REVOKEwithtarget=contractandsynthesis_idto revoke a contract; the runtime evicts immediately and the next presentation returns464 contract-revoked.¶ -
TTL expiration. Contracts have an operator-configured TTL; the runtime evicts on expiry.¶
10.1.4.1. Stale Contract Sweep
When an operator edits a recipe that has active contracts
synthesized under earlier versions (Section 10.5),
those contracts continue to execute under their captured
version — the spec guarantees in-flight contract stability
across recipe edits. Operators that need to flush stale
contracts (typically after a security-relevant recipe
change) invoke REVOKE target=stale-contracts:¶
| Parameter | Required | Description |
|---|---|---|
target
|
MUST | The literal string stale-contracts. |
mode
|
MAY | One of grandfather (report drifted contracts but leave them running) or invalidate (evict drifted contracts). Default is the value of the on_policy_change knob in Section 10.1.7. |
actor
|
SHOULD | Identifier of the operator invoking the sweep, recorded on emitted lifecycle events. |
The sweep walks every active contract in the server's
synthesis runtime and compares each contract's captured
recipe_version against the current version of the
same-named recipe in the loaded policies. Three outcomes
per contract:¶
-
Version matches. Contract is left alone.¶
-
Version differs and mode is
grandfather. Contract is reported in the response as drifted but MUST NOT be evicted; the contract continues to execute under its captured version.¶ -
Version differs and mode is
invalidate. Contract MUST be evicted from the runtime. The eviction MUST emit anrcns_releaseevent in the originating agent's lifecycle stream withreason: policy-change-invalidationand the operator's identifier carried in the event payload to distinguish operator-fired invalidations from agent-initiated releases (theSUSPEND synthesis_id=invocation defined in [AGTP]). Subsequent presentations of the evictedsynthesis_idreturn404 Not Found.¶
Passthrough contracts (those without a recipe lineage —
synthesized without a recipe) are skipped: the sweep has
no version to compare against. Contracts whose recipe has
been entirely removed from policy (the recipe name no
longer exists) are treated as drift with current_version
reported as null; under invalidate mode, these
contracts are evicted.¶
The sweep returns a structured response listing every
contract examined with its disposition (unchanged,
grandfathered, or evicted). Authorization for
REVOKE target=stale-contracts requires the operator
inspect:all scope token; agents cannot fire the sweep on
behalf of others.¶
The sweep is operator-fired by design. AGTP servers do not
support hot configuration reload; the operator explicitly
invokes the sweep when they know they have edited a
recipe and want the resulting drift to be either reported
or invalidated. Operators that want strict
recipe-edit-invalidates-contracts behavior set
on_policy_change = invalidate and invoke the sweep
after every recipe edit.¶
10.1.5. Headers and Rate Limiting
RCNS uses two request headers and one response header:¶
| Header | Direction | Purpose |
|---|---|---|
Allow-RCNS
|
Request | Caller opt-in to runtime negotiation. Value true opens lock 2 of the four-lock gate (Section 10.1.2). Absent or non-true keeps the gate closed. |
Contract-Synthesized
|
Request and Response | Identifies a synthesized contract by synthesis_id. On a request, presents a previously-issued contract to bypass the gate. On a response (optimistic mode), notifies the caller that the response was served under a synthesized contract. |
Idempotency-Key
|
Request | Per-agent idempotency key for RCNS-eligible requests. Servers MUST scope the idempotency cache by (Agent-ID, Idempotency-Key); replays of the same key from the same agent receive the cached response, replays from different agents are independent requests. |
Servers MUST implement per-agent rate limiting on RCNS
gate evaluations. When the per-agent rate exceeds the
configured ceiling, the server returns 429 Too Many
Requests with scope: rcns in the response body to
distinguish RCNS rate limiting from other rate-limit
sources. The default ceiling is operator-configured;
implementations SHOULD default to a conservative value
(e.g., 10 evaluations per minute) and operators MAY
raise it.¶
Rate limiting applies to gate evaluations, not to
invocations served under an already-issued contract.
Repeated Contract-Synthesized-bearing requests against a
synthesized contract are rate-limited like any other
endpoint, not under the RCNS rate limit.¶
10.1.6. Attribution-Record Extension Fields
Every action dispatched under a synthesized contract — whether RCNS-spawned, PROPOSE-spawned, or future-mechanism- spawned — MUST carry the following extension fields on its Attribution-Record payload, in addition to the base identifier-chain fields specified in [AGTP-IDENTIFIERS]:¶
| Field | Type | Description |
|---|---|---|
synthesis_id
|
string | Opaque identifier of the contract under which this action was dispatched. |
contract_hash
|
string | SHA-256 of the canonical contract definition (the synthesized endpoint plus its recipe lineage at synthesis time), rendered as 64 lowercase hexadecimal characters. Stable across all invocations of the same contract. |
negotiation_origin
|
string | One of rcns-gate (synthesized via the four-lock gate), propose (synthesized via explicit PROPOSE), or pre-registered (a future origin for contracts elevated from Tier C to Tier B). |
These fields enable chain inspectors and audit consumers to group invocations by contract identity, distinguish contracts produced through different origins, and verify that a stream of actions all ran under the same synthesized contract definition.¶
The fields are present only on actions served under a contract. Tier A and Tier B endpoint invocations omit them entirely; their absence is itself diagnostic information.¶
10.1.7. RCNS Configuration
The full set of operator-controlled RCNS knobs is
specified in this section. The configuration is operator-
authored and is not visible to callers on the wire; what is
visible is the result of the configuration (whether the
gate fires, which mode it delivers in, what the rate ceiling
is). The block name ([policies.rcns] in the recommended
TOML form) is conventional but not normative; servers using
different configuration formats apply equivalent semantics.¶
| Knob | Default | Purpose |
|---|---|---|
enabled
|
false
|
Master switch (lock 1 of the four-lock gate) |
mode
|
confirm-first
|
Delivery mode: confirm-first (461) or optimistic
|
min_trust_tier
|
1 (strictest) |
Minimum resolved trust tier for callers (lock 4) |
rate_limit_per_minute
|
10
|
Per-agent rate ceiling for gate evaluations |
contract_ttl_seconds
|
implementation-defined | Default contract TTL; operators SHOULD set explicitly |
on_policy_change
|
grandfather
|
Default behavior of the operator-fired stale-contract sweep (Section 10.1.4.1). One of grandfather (report drifted contracts but leave them running) or invalidate (evict drifted contracts and emit rcns_release events with reason: policy-change-invalidation). The sweep is operator-fired; this knob sets its default mode, which operators MAY override per invocation. |
The default posture is deliberately conservative: a freshly-installed AGTP server has RCNS disabled and, when enabled, defaults to confirm-first delivery at the strictest trust tier with a low rate ceiling. Operators relax these defaults explicitly as their deployment matures.¶
10.2. Purpose
PROPOSE is the AGTP method that triggers runtime contract negotiation. An agent that needs an endpoint the server does not advertise submits a PROPOSE request carrying an AGTP-API-conformant endpoint specification; the server evaluates the proposal against the contract layer and either instantiates the endpoint as a session-scoped artifact or refuses.¶
PROPOSE is one of the eighteen floor methods defined in [AGTP]. Its parameter table is specified there. This document specifies the synthesis semantics that govern server-side evaluation.¶
10.3. Negotiation Flow
Step 1: Agent retrieves the server manifest (which carries the
method policy as `policies.methods`)
Step 2: Agent determines the needed endpoint is not declared
Step 3: Agent constructs an AGTP-API-conformant endpoint definition
Step 4: Agent sends PROPOSE with the endpoint definition in body
Step 5a: Server accepts and synthesizes
Server evaluates contract conformance and capability envelope
Server composes the endpoint from existing endpoints
Server returns 263 Proposal Approved with the
AGTP-API endpoint definition for the synthesized endpoint
Synthesis-ID matches original proposal
Synthesized endpoint is session-scoped by default
Agent MAY invoke the endpoint immediately
Step 5b: Server rejects (463)
Server returns 463 Proposal Rejected with structured reason
Response SHOULD reference manifest entries that satisfy a
similar capability if available
Agent MAY modify proposal and retry (maximum 3 turns)
After 3 rejections agent MUST ESCALATE
¶
10.4. PROPOSE Request Body Shape
PROPOSE accepts the proposed endpoint definition in one of two mutually exclusive body forms. Servers MUST accept both forms; clients SHOULD emit the wrapped form for new code.¶
10.4.1. Wrapped form (RECOMMENDED)
The proposed endpoint definition is carried under a top-level
endpoint field:¶
{
"method": "PROPOSE",
"task_id": "task-propose-01",
"parameters": {
"endpoint": {
"method": "BOOK",
"path": "/room",
"description": "Books a room for the named guest.",
"semantic": { "..." : "..." },
"input_schema": { "..." : "..." },
"output_schema": { "..." : "..." }
},
"persistent": false
}
}
¶
The wrapped form makes the (method, path) pair the explicit
key of the proposal and clears the way for synthesis-time fields
(e.g., version, lineage) to ride at the parameters level
without colliding with endpoint definition fields. The wrapped
form is the form used by RCNS dispatcher-gate escalations
(Section 10.1).¶
10.4.2. Legacy form
The endpoint definition fields appear directly under
parameters with a name field naming the endpoint:¶
{
"method": "PROPOSE",
"task_id": "task-propose-02",
"parameters": {
"name": "book-room",
"method": "BOOK",
"path": "/room",
"semantic": { "..." : "..." }
}
}
¶
A PROPOSE request MUST NOT carry both endpoint and name
at the same time. Servers MUST return 400 Bad Request
with reason: ambiguous-body if both are present.¶
10.4.3. 263 Response Body
On approval the server returns 263 Proposal Approved with a
body carrying the synthesized endpoint:¶
{
"status": 263,
"method": "BOOK",
"path": "/room",
"synthesis_id": "<opaque identifier>",
"endpoint": { "..." : "..." },
"recipe_lineage": {
"recipe_name": "<recipe identifier>",
"recipe_version": "<version string>"
}
}
¶
The top-level method and path fields name the synthesized
endpoint and MUST match the proposed pair. The
synthesis_id is an opaque identifier the server uses to
distinguish this contract from other contracts; clients
SHOULD record it for use with INSPECT target=contract
and the RCNS revocation surface. The recipe_lineage field,
when present, records the recipe that produced the synthesis
and the recipe version captured at synthesis time; this
disambiguates contracts produced under different versions of
the same recipe.¶
10.5. Recipe Versioning
A server's contract synthesis machinery typically composes
synthesized endpoints from operator-authored recipes (composition
rules that name a set of underlying primitives and how to invoke
them). Recipes evolve: operators edit them to fix bugs, support
new primitives, or refine semantic claims. To prevent recipe
edits from silently mutating running contracts, recipes carry a
version identifier and synthesis captures the version
in effect at the moment the contract was produced.¶
The version field is operator-defined; servers MUST treat
the value opaquely. The recommended convention is a monotonically
increasing string (semver, integer counter, or timestamp); the
specific format does not affect wire interoperability.¶
When a server synthesizes a contract from a recipe:¶
-
The server MUST record the recipe's current
versionon the resulting contract record at synthesis time.¶ -
The server MUST present the captured version in the
recipe_lineage.recipe_versionfield of the 263 response body (Section 10.4) and in any subsequentINSPECT target=contractresponse naming this contract.¶ -
The synthesized contract MUST continue to execute under the captured recipe version for the contract's lifetime, even if the operator subsequently edits the recipe to a new version.¶
-
A subsequent PROPOSE for the same
(method, path)pair MAY produce a new contract bound to the new recipe version; the new contract carries a distinctsynthesis_idand the prior contract continues to operate under its captured version until released or revoked.¶
The recipe-version capture rule decouples contract stability
from recipe evolution. Operators who edit a recipe do not
disturb in-flight callers; callers who need the updated
behavior reproduce the proposal under the new recipe version.
Operators that want to force callers off an old recipe version
use the contract revocation surface specified in
Section 10.1 (revoking specific synthesis_id values)
rather than mutating recipes in place.¶
10.6. Server-Side Synthesis Evaluation
On receipt of a PROPOSE request, the server MUST evaluate:¶
-
Method conformance. Is the proposed method in the AGTP-API approved method catalog, or is it a custom method declared in the server's
policies.methods(Section 3.3)? If not, return 459 Method Violation.¶ -
Path conformance. Does the proposed path satisfy Section 5? If not, return 460 Endpoint Violation.¶
-
Semantic block conformance. Does the proposed semantic block carry all required fields with valid values? If not, return 400 Bad Request.¶
-
Schema conformance. Are the input and output schemas valid JSON Schema documents? If not, return 400 Bad Request.¶
-
Authority sufficiency. Does the proposing agent's declared Authority-Scope cover the proposed authority requirements? If not, return 262 Authorization Required with body type
scope-required.¶ -
Capability envelope. Can the server actually synthesize the proposed endpoint from its existing capabilities? If not, return 463 Proposal Rejected with
reason: composition-impossible.¶ -
Policy acceptance. Does the server's policy permit the proposed method-and-path combination? If not, return 463 with
reason: policy-refused.¶
If all evaluations pass, the server synthesizes the endpoint and returns 263 Proposal Approved.¶
10.7. Synthesis-Composed Endpoints
When a server synthesizes an endpoint, the server is composing the proposed behavior from existing endpoints internally. The synthesized endpoint is exposed to the agent as a single endpoint, but the server's handler implementation invokes one or more underlying endpoints to fulfill the request.¶
Authority MUST be preserved through the composition. The agent's Authority-Scope MUST be sufficient for every underlying endpoint the synthesis invokes. If a composed step would require authority the agent does not hold, the synthesis MUST fail at evaluation time (step 5) rather than at execution time.¶
10.8. Session-Scoped vs Persistent Synthesis
By default, a synthesized endpoint is session-scoped: it exists for
the duration of the AGTP session that proposed it and is removed when
the session ends. The agent MAY request persistent synthesis by
setting persistent: true in the PROPOSE body; the server MAY
honor or refuse the persistence request independently of the
synthesis decision. Persistent synthesis subjects the proposed
endpoint to the server's regular endpoint catalog and is reflected
in subsequent manifest retrievals.¶
11. Status Codes
AGTP-API contributes the following structural rejection codes to the AGTP status code space. The codes are registered with IANA per [AGTP] Section 9.3.¶
| Code | Name | Returned When |
|---|---|---|
| 261 | Negotiation In Progress | Server has accepted PROPOSE for evaluation; agent polls via QUERY /proposals/{proposal_id} for terminal status |
| 262 | Authorization Required | Request requires credential establishment, additional Authority-Scope, wildcards consent, or authenticated identity that is not yet present |
| 263 | Proposal Approved | Server has synthesized and instantiated the proposed endpoint. Response body carries top-level method and path fields naming the synthesized endpoint, plus the full endpoint definition |
| 404 | Not Found | The path does not exist on this server |
| 405 | Method Not Allowed | Method and path are valid but server policy does not expose this combination |
| 459 | Method Violation | The method is not in the AGTP-API approved catalog |
| 460 | Endpoint Violation | The path violates AGTP-API path grammar (method-name leakage) |
| 461 | RCNS Contract Available | RCNS synthesis preview returned in confirm-first mode. Response body carries a contract preview with synthesis_id, resolved (method, path), and the recipe lineage. Caller accepts by re-issuing with the Contract-Synthesized header per [AGTP]
|
| 463 | Proposal Rejected | Server cannot or will not synthesize the proposed endpoint |
| 464 | RCNS No Contract | RCNS synthesis attempted but no contract could be delivered. Response body carries one of the reasons in the RCNS vocabulary per [AGTP] |
The four structural rejection codes 404, 405, 459, 460 form the contract-level failure surface. Each code is independently actionable and addresses a distinct failure mode:¶
-
404 -- the path does not exist. The agent has the wrong resource locator.¶
-
405 -- the method and path are individually valid but the server does not expose this combination. The agent MAY try a different method on the same path, or MAY PROPOSE the combination if it is not a policy refusal.¶
-
459 -- the method itself is the problem. The agent MUST pick a different method from the AGTP-API catalog. PROPOSE will not succeed because the method name is not legal.¶
-
460 -- the path violates path grammar. The agent MUST restructure the path so that no path segment matches an approved method name.¶
These codes are not interchangeable. A 405 is a policy decision; a 459 is a vocabulary violation; a 460 is a structural violation. Servers MUST return the most specific code that applies.¶
The 405 response body MUST carry the following fields:¶
-
allowed_methods_for_path: -
The list of methods the server's policy or registry exposes on the path. Permits the agent to retry with a method the server actually accepts.¶
-
redirects_for_path: -
A map of method-to-method redirects from
policies.methods(Section 9) that apply to this path. MAY be empty if the server has no redirects configured. Permits the agent to learn that, for example,BOOKis redirected toRESERVEon this server, and to retry under the canonical method directly.¶
These fields together let the agent recover from a 405 without an out-of-band catalog lookup or a second round-trip.¶
12. Handler Binding
The handler binding declares how an endpoint's behavior is realized at runtime. AGTP-API defines three binding types.¶
12.1. Composition
A composition handler exposes a derived endpoint whose behavior is realized by orchestrating one or more other endpoints declared on the same server. No application code is invoked; the server's synthesis runtime executes the composition steps in order, threading outputs into subsequent inputs while preserving authority through the composition.¶
Composition handlers reference a named recipe:¶
"handler": {
"type": "composition",
"recipe": "audit-via-query-and-summarize"
}
¶
The recipe value is the name of a recipe defined in the server's
recipe registry (typically in an agtp-recipes.toml file loaded at
server startup). Recipes are reusable units of composition logic;
one recipe MAY back multiple endpoints. Inline composition
steps are not supported in v00; every composition endpoint MUST
reference a registered recipe by name.¶
A composition handler whose recipe value does not resolve to a
recipe registered at the server MUST cause registration to fail.¶
Composition endpoints MUST include composition_failed in
their errors list. This is the named error returned when a
composition step fails (any underlying step returns a non-success
status). The error response carries details with the recipe
identifier, the failed step number, the underlying step method,
the underlying status, and any captured outputs from preceding
steps.¶
Authority MUST be preserved through the composition. The agent's Authority-Scope MUST be sufficient for every underlying endpoint the composition invokes. Authority sufficiency is verified at registration time when possible (when step paths are statically known) and at invocation time for parameterized step paths.¶
This is the binding type most commonly produced by PROPOSE + synthesis: a synthesized endpoint is a composition of existing endpoints, and MAY be promoted to a permanent declared composition by adding its recipe to the server's recipe registry and writing an endpoint TOML that references it by name.¶
12.2. Registered Function
"handler": {
"type": "registered_function",
"function": "rooms.handlers.book_room"
}
¶
The endpoint binds to a Python function loaded by the server.
The function value is a dotted path identifying the module and
the callable within it; the server imports the module at registration
time and resolves the function attribute. Single dotted-path form
is normative; separate module and function fields are not
supported in v00.¶
The function receives the validated input and returns the response payload. The handler API contract is specified separately (see the reference implementation's handler documentation). This is the binding type used for endpoints whose logic exceeds what composition can express.¶
12.3. External Service
"handler": {
"type": "external_service",
"url": "https://internal.acme.tld/booking",
"method": "POST",
"headers": {
"Authorization": "Bearer ${BOOKING_API_TOKEN}",
"Content-Type": "application/json"
},
"input_transform": {
"guest_id": "guestId",
"room_type": "roomType"
},
"output_transform": {
"confirmation_code": "confirmationNumber"
},
"error_map": {
"404": "room_not_found",
"409": "room_unavailable"
},
"timeout_seconds": 30
}
¶
The endpoint binds to an HTTPS-reachable external service. The server proxies the request to the external endpoint and returns the response. Useful for AGTP frontends to existing HTTP-based services. The external service is not part of the AGTP contract; the AGTP server presents a contract-compliant facade.¶
External service fields:¶
-
url: -
The fully-qualified URL of the upstream HTTP endpoint. The URL MUST use the
https://scheme. Plain HTTP MUST NOT be accepted at registration time.¶ -
method: -
The HTTP method to invoke on the upstream. One of GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS. REQUIRED.¶
-
headers: -
Optional map of HTTP headers to send to the upstream on every request. Values MAY include
${VAR}placeholders that are resolved against process environment variables at server startup. Unresolved placeholders MUST cause registration to fail.¶ -
input_transform: -
Optional map renaming AGTP request fields to the upstream's expected field names. Maps AGTP-side name to upstream-side name. Fields not in the map pass through unchanged. v00 supports key-rename only; value transformation is anticipated in a future revision.¶
-
output_transform: -
Optional map renaming upstream response fields to AGTP-side names. The map is inverted at response time: the upstream-side name is the source, the AGTP-side name is the target. Fields not in the map pass through unchanged.¶
-
error_map: -
Map of upstream HTTP status code (as a string) to AGTP error code declared in the endpoint's
errorslist. Servers SHOULD configureerror_mapfor every external_service binding; without it, upstream HTTP errors surface to agents as genericupstream_error. Every value inerror_mapMUST appear in the endpoint'serrors; registration MUST fail otherwise.¶ -
timeout_seconds: -
Positive number specifying the upstream request timeout. Servers SHOULD set this explicitly. Default if absent: 30 seconds. Production deployments SHOULD NOT rely on the default; explicit timeouts make upstream-dependency posture inspectable.¶
External service endpoints MUST declare the following five
upstream-failure error codes in their errors list, in addition to
any business-level errors:¶
| Error Code | Returned When |
|---|---|
upstream_timeout
|
Upstream did not respond within timeout_seconds
|
upstream_connection_error
|
DNS, connection, or TLS failure reaching the upstream |
upstream_malformed_response
|
Upstream returned a 2xx response whose body is not valid JSON |
upstream_authentication_failed
|
Upstream returned 401 or 403 not covered by error_map
|
upstream_error
|
Upstream returned 4xx or 5xx not covered by error_map
|
Without these declarations, transport-level upstream failures would surface to the calling agent as opaque server errors. Mandating them makes the failure surface inspectable.¶
Agent identity is NOT propagated to the upstream by default.
This is a security default: an upstream HTTP service has no
mechanism to validate AGTP agent credentials, and forwarding them
would expose principal identity to systems outside the AGTP trust
boundary. Servers wishing to propagate identity to a specific
upstream MAY do so via explicit header configuration in the
headers map (e.g., a server-issued bearer token), but MUST NOT
forward AGTP-Agent-ID or AGTP-Principal-ID by default.¶
13. Conformance
13.1. Single Tier
A conforming AGTP server implements:¶
-
Method validation against the AGTP-API approved catalog at the server's declared
catalog_version.¶ -
Path validation against the AGTP-API path grammar.¶
-
Method policy enforcement at dispatch time per the
policies.methodssub-block of the manifest (Section 9).¶ -
A server manifest retrievable via DISCOVER without an Agent-ID header, carrying
agtp_version,agtp_api_version,document_version,catalog_version, andcatalog_versions_supportedper Section 8.¶ -
The endpoint projection of Section 8.9: manifest responses expose
handler.typeonly, not the full handler binding.¶ -
PROPOSE handling with the synthesis evaluation flow specified in this document, gated by
policies.synthesis_enabled.¶ -
The structural rejection status codes 404, 405, 459, 460, plus the contract-negotiation codes 261, 262, 263, 463.¶
-
The semantic block on every published endpoint.¶
-
Schema validation for input and output, with the strictness asymmetry of Section 13.3 (inputs strict, outputs permissive by default).¶
-
The
AGTP-Catalog-Warningresponse header on every response whose method is deprecated in the catalog version in use.¶ -
The
AGTP-Endpoint-Warningresponse header on every response from a deprecated endpoint (Section 6.5).¶ -
The
DISCOVER /methodsbuilt-in endpoint defined in Section 5.8, returning a compact inventory of the server's registered endpoints.¶
There is no halfway tier. Servers that implement only method dispatch without endpoints are not AGTP-conformant; they are something else, perhaps a method-based RPC layer that happens to use AGTP framing.¶
13.2. Validation Timing
Conforming servers perform two distinct categories of validation, which SHOULD occur at different times.¶
Manifest validation at startup. Before accepting traffic, a conforming server SHOULD validate every endpoint declared in its manifest:¶
-
The method appears in the AGTP-API approved catalog (or is a custom method declared in the server's
policies.methods).¶ -
The semantic block carries every required field.¶
-
The input and output schemas are syntactically valid JSON Schema documents.¶
-
The handler binding (Section 12) is resolvable: a composition's referenced steps exist; a registered_function's module and function are importable; an external_service's URL is well-formed and reachable (or marked deferred).¶
A server that detects manifest validation failures at startup SHOULD reject the offending endpoints with clear logs and SHOULD NOT silently ignore them. Servers MAY choose to fail startup entirely on manifest validation failure or to start serving with the valid subset of endpoints; the choice is a deployment policy decision.¶
Request validation at runtime. Once serving, the server validates each inbound request against the endpoint's input schema before invoking the handler:¶
-
Input body validates against the endpoint's
input_schema. On failure, the server returns 422 Unprocessable Entity with a schema validation error report.¶ -
The agent's Authority-Scope covers the endpoint's
required_scopesdeclarations. On failure, the server returns 455 Scope Violation per [AGTP].¶ -
The verb-and-path combination is exposed by the server's current policy. On failure, the server returns the appropriate structural rejection code (404, 405, 459, or 460).¶
Validation MUST complete before handler invocation. Servers MUST NOT invoke the handler with input that has not satisfied schema validation; this guarantee is what allows handler authors to assume their context structure is well-formed.¶
The startup-vs-runtime split is a recommendation, not a strict requirement. Servers MAY defer startup validation if their endpoint catalog is dynamic (e.g., a PROPOSE-driven server that only synthesizes endpoints on demand). Such servers MUST still validate at the moment an endpoint is registered or synthesized, just not at process start.¶
13.3. Schema Strictness
Schema validation is asymmetric between inputs and outputs.¶
Input schemas MUST be validated with additionalProperties:
false. Fields not declared in the schema MUST cause validation
to fail with 422. This catches typos and version mismatches early
and prevents agents from sending unrecognized fields under the
mistaken assumption that the server will silently ignore them.¶
Output schemas SHOULD be validated with additionalProperties:
true. A handler that returns more fields than the schema declared
is forward-compatible: agents can ignore extra fields. A handler
that returns missing required fields fails validation either way.
Servers MAY opt into strict output validation as a deployment
policy.¶
This asymmetry is normative because it has interoperability consequences. An agent submitting a request to two different servers can rely on both rejecting unrecognized input fields. An agent consuming a response from two different servers can rely on forward-compatible field handling without the version of one server breaking integration with the other.¶
13.4. Conformance Test Suite
The AGTP-API conformance test suite is maintained at:¶
https://agtp.io/api/conformance¶
The test suite exercises every conformance requirement in this
section. Servers claiming AGTP-API conformance MUST pass the
test suite at the version they declare in their manifest's
agtp_api_version field.¶
14. Relationship to OpenAPI
OpenAPI and AGTP-API perform similar work for different consumers. OpenAPI describes HTTP APIs for human developers and code generators. AGTP-API describes agent-grade endpoints for autonomous agents. The two formats overlap substantially: both have method, path, request schema, response schema, errors, and descriptions. AGTP-API does not compete with OpenAPI; the two formats are complementary, and AGTP-API deployments commonly interoperate with OpenAPI-described HTTP services in three distinct ways.¶
14.2. OpenAPI as an Export Target
AGTP servers MAY render their endpoint catalog as an OpenAPI document for HTTP consumers that do not yet speak AGTP. The reverse translation: AGTP verb to HTTP method (mappings are imperfect; some AGTP verbs have no clean HTTP analog and are best exposed via the legacy verb compatibility mode of Section 3.6); path remains; schemas pass through unchanged.¶
The exported OpenAPI document is a compatibility surface, not the
authoritative description of the service. Servers exporting OpenAPI
SHOULD mark the export as derived from the AGTP-API manifest and
SHOULD publish a link to the manifest in the OpenAPI info
section.¶
14.3. OpenAPI as a Coexistence Layer
A server MAY run AGTP and HTTP side by side. The AGTP endpoint's
handler is the same code that the HTTP endpoint invokes. OpenAPI
documents the HTTP face; the AGTP-API manifest documents the agent
face. The handler does not know which protocol invoked it. This
deployment posture is signaled in the manifest by populating the
apis array (Section 8) with descriptors pointing at the
server's OpenAPI documents.¶
Coexistence is the path most large organizations will take during transition: AGTP is added as a parallel face without requiring modification to existing HTTP infrastructure. Implementation guidance for coexistence deployments is provided in Appendix A.¶
15. What AGTP-API Does Not Specify
AGTP-API explicitly excludes the following operational concerns, which remain middleware territory:¶
-
Rate limiting strategies and policies.¶
-
Observability mechanisms (metrics, logs, traces).¶
-
Caching strategies beyond manifest caching.¶
-
Custom authentication beyond AGTP agent identity.¶
-
Request and response transformation.¶
-
Server deployment topology and scaling.¶
-
HTTP middleware integration patterns.¶
These are addressed by reference middleware repositories that ship separately and non-normatively. The contract-plumbing distinction is intentional: the protocol governs contracts; middleware governs operations.¶
16. Security Considerations
16.1. Verb-Path Tampering
A malicious server could declare endpoints whose semantic blocks misrepresent the actual behavior. Agents that rely on semantic blocks for authorization decisions MUST also enforce Authority-Scope checks against actual outcomes, not declared outcomes.¶
16.3. Method Policy Tampering
The method policy is carried as the policies.methods sub-block
of the server manifest and is covered by the manifest signature
(Section 8) when present. Agents that retrieve the manifest over
AGTP transport (which mandates TLS 1.3 or higher per [AGTP]) and
verify the manifest signature when present are protected against
policy substitution. Agents that accept manifest content without
signature verification are vulnerable to substitution of the
method policy along with the rest of the manifest.¶
16.4. Wildcard Abuse
The wildcards: true consent on the agent identity document and
wildcards_accepted: true on the server policy are mutual consents
that enable ad-hoc method invocation. Agents SHOULD NOT declare
wildcards: true by default; servers SHOULD NOT declare
wildcards_accepted: true for any operation with non-trivial impact
tier. The 262 Authorization Required response with body type
wildcards-required is the safe default.¶
16.5. Verb List Trust
Agents trust the AGTP-API approved method catalog as published at
https://agtp.io/api/methods.json. The catalog MUST be served
over HTTPS with content integrity verification. Agents MAY pin
the catalog version they have validated and refuse upgrades without
explicit operator approval.¶
17. IANA Considerations
This document defines the following AGTP-API-specific allocations. The corresponding AGTP IANA registry entries are recorded in [AGTP] Section 9.¶
17.1. AGTP-API Status Code Assignments
The following codes are registered in the AGTP Status Code Registry with AGTP-API as the authoritative reference:¶
17.2. Media Type Registrations
This document defines two media types and requests their registration in the IANA Media Types registry. Full registration templates are provided in the appendices. The master registry of all AGTP-family media types is maintained in [AGTP].¶
| Media Type | Use | IANA Status |
|---|---|---|
application/vnd.agtp.manifest+json
|
AGTP server manifest format | Planned (this document) |
application/vnd.agtp.endpoint+json
|
AGTP-API endpoint definition format | Planned (this document) |
application/vnd.agtp.manifest+json-
The AGTP server manifest format. Carried on responses to a server-level DISCOVER request (DISCOVER without an Agent-ID header). The registration application will be filed concurrent with publication of this document.¶
application/vnd.agtp.endpoint+json-
The AGTP-API endpoint definition format. Used in PROPOSE request bodies and in 263 Proposal Approved response bodies. The registration application will be filed concurrent with publication of this document.¶
Until the IANA registrations complete, the reference implementation
MAY continue to emit application/json for manifest and
endpoint responses. Implementations are encouraged to emit the
AGTP-specific types as soon as they are accepted by IANA so that
content negotiation and MIME-based routing can distinguish AGTP
traffic from generic JSON.¶
17.3. AGTP-API Method Catalog Reference
This document does NOT request establishment of an IANA AGTP-API
Verb List Registry. As specified in Section 3.1, the verb
list is intentionally maintained as an open living artifact at
https://agtp.io/api/methods.json rather than as a closed IANA
registry, so that the catalog can evolve at the cadence of agent
deployment rather than the cadence of IETF process. The structural
status codes, the media types, and the response headers below are
appropriate for IANA registration; the method catalog is not.¶
17.4. AGTP-API Response Headers
This document requests registration of the following response headers in the IANA HTTP Field Name Registry (or equivalent AGTP-specific registry where applicable):¶
-
AGTP-Catalog-Warning: -
Advisory header surfaced on responses where the request method is deprecated in the catalog version the server is using. Format and semantics specified in Section 4.¶
-
AGTP-API-Version: -
Header surfacing the AGTP-API specification version a manifest or endpoint definition conforms to.¶
18. Open Items
The following items are explicitly out of scope for this revision and are anticipated in future revisions:¶
-
Mandatory manifest signing. v00 specifies
manifest_signatureas SHOULD; a future revision will make it MUST. The signing algorithm, canonical encoding rules for JWS over the manifest body, key-publication mechanism, and rotation semantics will be specified separately in [AGTP-CERT]. Reference implementations are expected to ship signing support in alignment with that revision.¶ -
Cross-endpoint shared schema definitions. v00 requires schemas to be inline in each endpoint's
input_schemaandoutput_schema. A future revision may add aschemasblock to the manifest carrying named, reusable JSON Schema fragments referenceable by$reffrom endpoint schemas. This is a manifest-size and authoring-convenience concern; the wire-level contract is unchanged.¶ -
Config-driven
document_version. The reference implementation hardcodesdocument_versionto a single value; an operator workflow that bumpsdocument_versionon every meaningful manifest change is anticipated. The wire contract permits any string; the operator workflow is implementation-specific.¶ -
The full text of the initial method catalog (approximately 435 methods). v00 references the published JSON at
agtp.io/api/methods.jsonrather than embedding the catalog inline. A future revision may include a curated subset as a non-normative appendix; the authoritative catalog remains the published JSON per Section 3.1.¶ -
Detailed schema for the
synthesis_logreturned with 263 Proposal Approved, recording which underlying endpoints were composed.¶ -
Federation model for multi-server synthesis (composing endpoints from different servers in a single synthesized endpoint).¶
-
Multi-version concurrent catalog support. v00 specifies
catalog_versions_supportedas a list, but the runtime semantics for a server processing a request against a non-default catalog version are not specified. Most servers list a single version.¶ -
Conformance test suite specification (currently described by reference to the agtp.io implementation).¶
-
Authentication passthrough for external_service handlers (forwarding agent identity to upstream services). Out of scope by security default in v00; future revisions may specify opt-in passthrough patterns.¶
-
Hot reload of recipes, endpoints, and
policies.methodsconfiguration without server restart.¶ -
Wildcard opt-in implementation. The spec defines the consent model (
wildcards: trueon the agent identity document andwildcards_accepted: truein server policy) and the 262 Authorization Required response with body typewildcards-requiredfor unsatisfied consent. The default behavior in v00 is refuse: ad-hoc method invocations against undeclared endpoints are rejected as 459 Method Violation when the method is not in the AGTP-API catalog, or as 405 Method Not Allowed when the method is in the catalog but no endpoint exists for the method-and-path combination. The opt-in path that activates 262 withwildcards-required(when an agent or server has consented to wildcards but the other side has not) is anticipated as an implementation extension in a future revision.¶
19. Changes from v00
Version 01 is a drift-cleanup revision. The contract model, method catalog, path grammar, endpoint primitive, synthesis runtime, and handler binding are unchanged.¶
19.1. Substantive Changes
The following substantive changes were made:¶
-
DISCOVER /genesisbuilt-in endpoint added. A new built-in endpoint (Section 5.8.1) is specified alongsideDISCOVER /methods. Servers that host one or more agents with a loaded Agent Genesis MUST expose the endpoint; it returns the Agent Genesis document for the addressed agent in its canonical form, including the signature, allowing relying parties to re-hash for Agent-ID verification and to verify the signature against the recognized issuer key. Servers without a loaded Agent Genesis return404 Not Found. The endpoint documents the wire-level mechanism for runtime Agent Genesis transfer that v07-conformant implementations have shipped.¶ -
DISCOVER /agentsbuilt-in endpoint added. A new built-in endpoint (Section 5.8.2) is specified alongsideDISCOVER /methodsandDISCOVER /genesis. Servers that host one or more registered agents MUST expose the endpoint; it returns a compact listing of every agent on the server, including resolved trust posture (trust_tier,verification_path, optionaltrust_warning, optionalowner_id) per the precedence rule specified in [AGTP-TRUST]. Policy-based filtering of returned entries is permitted. The endpoint documents the wire surface that v07-conformant implementations have shipped.¶ -
Embedded method count updated. [AGTP] v08 promotes INSPECT to the Cognitive floor and adds five Lifecycle methods (ACTIVATE, DEACTIVATE, REINSTATE, REVOKE, DEPRECATE), expanding the protocol-level floor from twelve methods to eighteen. The
embeddeddescription in this document and the catalog scaffolding throughout are updated to reflect an eighteen-method floor (seven cognitive, six mechanics, five lifecycle). The catalog version-negotiation and handler-binding contracts are unchanged. AGTP-MERCHANT seriesinfo updated to v02 to track the unification of merchant identity onto the Agent Identity Document. AGTP-LOG seriesinfo updated to v02 to track the alignment of lifecycle event triggering methods with the v08 floor.¶ -
DISCOVER built-in endpoint surface completed. Two additional built-in endpoints are specified:
DISCOVER /(Section 5.8.3), a directory of reserved built-in endpoints the server exposes; andDISCOVER /tools(Section 5.8.4) andDISCOVER /apis(Section 5.8.5), inventory surfaces for tool-bearing and gateway-fronted servers. A new normative section, Reserved DISCOVER Paths (Section 5.9), specifies that the five reserved built-in paths (/methods,/agents,/genesis,/tools,/apis) are reserved under the DISCOVER method; operator endpoints MUST NOT shadow these paths and MUST NOT register under paths whose first segment matches a reserved name. A legacyDISCOVER target=body-keyed form is documented as DEPRECATED; servers MAY accept it for transition compatibility with a one-shot deprecation warning, and the body form MUST be semantically equivalent to the path form for the reserved targets. Conflicts between path and body return400 Bad Request. The path-keyed built-in surface is the wire-format-stable form.¶ -
Endpoint Tier taxonomy formalized. A new normative section (Section 6.1) classifies every
(method, path)pair into one of four tiers: Tier A (protocol-native, reserved by AGTP / companion specs), Tier B (application-registered via operator manifest), Tier C (runtime-negotiated via RCNS), or unregistered (refused). Servers MUST classify every inbound pair into exactly one tier before dispatch. TheDISCOVER /directory andDISCOVER /methodsinventory responses gain an explicit per-entrytierfield so clients can route follow-on invocations with full knowledge of the guarantee level. TheDISCOVER /contractssurface for Tier C entries is reserved here and will be specified normatively in a future RCNS revision.¶ -
Runtime Contract Negotiation Substrate (RCNS) framing added. A new RCNS Overview section (Section 10.1) introduces the substrate behind Tier C endpoints, anchors the
{{rcns}}cross-reference used in the tier taxonomy, and inventories the wire-surface reservations made for it: status codes 461 (RCNS Contract Available) and 464 (RCNS No Contract), the reason vocabulary (rcns-disabled,trust-tier-insufficient,composition-impossible,synthesis-error,contract-not-yours,contract-revoked), theContract-Synthesizedheader, and the Attribution-Record extension fields (synthesis_id,contract_hash,negotiation_origin). The complete substrate — four-lock dispatcher gate, delivery modes, endpoint-keyed PROPOSE body, contract scoping, rate limiting, inventory surfaces — is specified in successive revisions of this document.¶ -
Endpoint-keyed PROPOSE body, 263 response shape, and Tier C resolution specified. PROPOSE now accepts two mutually exclusive body forms (Section 10.4): the RECOMMENDED wrapped form (
{endpoint: {method, path, ...}}) that makes the(method, path)pair the explicit key of the proposal, and the legacy form ({name, method, path, ...}) retained for back-compat. Servers MUST accept both; conflicts return400 Bad Requestwithreason: ambiguous-body. The 263 Proposal Approved response body is specified normatively: top-levelmethodandpathfields name the synthesized endpoint, plus asynthesis_ididentifier and arecipe_lineageblock carrying the captured recipe name and version. A new Recipe Versioning section (Section 10.5) specifies that recipes carry an opaque operator-definedversionfield, that synthesis MUST capture the version at the moment of contract production, and that contracts MUST continue executing under their captured version for their lifetime even if the operator subsequently edits the recipe — preventing in-place recipe edits from silently mutating running contracts. A new Tier C Resolution section (Section 10.1.1) specifies the dispatcher hook that connects the tier classification in Section 6.1 to live synthesized contracts: the resolver MUST scope lookups by requesting Agent-ID and MUST refuse cross-agent contract presentation with464 RCNS No Contractreason: contract-not-yours. The Status Codes table gains 461 and 464 rows referencing [AGTP] for the reason vocabulary and theContract-Synthesizedacceptance header.¶ -
RCNS four-lock dispatcher gate, delivery modes, and contract scoping specified normatively. A new section (Section 10.1.2) defines the gate that fires synthesis only when all four locks are open: server policy enabled (default OFF), caller
Allow-RCNSheader, callerrcns:negotiatescope token, and resolved caller trust tier at or above the operator-configured minimum. Each closed lock has a deterministic refusal path (rcns-disabled464, opaque 404/405,262 scope-required, ortrust-tier-insufficient464). The gate is skipped when the request presents an already-issuedContract-Synthesizedheader, preventing recursive RCNS. Two delivery modes are specified (Section 10.1.3): confirm-first (461 with contract preview; caller accepts via re-issued request carryingContract-Synthesized) and optimistic (inline execution withContract-Synthesizednotification header). A new Contract Scoping and Lifecycle section (Section 10.1.4) defines the three release paths (caller release via SUSPEND, operator revocation via REVOKE, TTL expiration) and the cross-agent presentation refusal contract. New Headers and Rate Limiting section (Section 10.1.5) defines the three RCNS headers (Allow-RCNS,Contract-Synthesized,Idempotency-Key) and the per-agent rate limit on gate evaluations (429 withscope: rcns). New Attribution-Record Extension Fields section (Section 10.1.6) defines the three contract-lineage fields (synthesis_id,contract_hash,negotiation_origin) stamped on every action dispatched under a synthesized contract. New RCNS Configuration section (Section 10.1.7) inventories operator knobs with conservative defaults.¶ -
RCNS observability and lifecycle surfaces added. The reserved-paths set in Section 5.9 extends from five paths to seven with
/patternsand/contractsadded. Two new built-in DISCOVER endpoints are specified:DISCOVER /patterns(Section 5.8.6) surfaces the synthesis recipes the server will negotiate against (withrcns_enabledboolean so callers distinguish "no patterns" from "patterns exist but RCNS off");DISCOVER /contracts(Section 5.8.7) surfaces active synthesized contracts scoped by default to the requesting agent, with operator visibility via theinspect:allscope. The Attribution-Record extension fields specified in Section 10.1.6 are surfaced verbatim onDISCOVER /contractsentries so chain inspectors can correlate bycontract_hashorsynthesis_id. The Status Codes table gains 461 RCNS Contract Available and 464 RCNS No Contract rows referencing [AGTP] for the reason vocabulary.¶ -
Method aliases specified. Method Policy (Section 9) gains an
aliasesfield declaring a single-hop method-name translation map. The default seed maps the five legacy HTTP verbs (GET, POST, PUT, DELETE, PATCH) to their canonical AGTP counterparts (FETCH, CREATE, REPLACE, REMOVE, MODIFY) so HTTP-style callers and gateway-fronted deployments translate cleanly without operator effort. Aliases are resolved by the dispatcher ahead of catalog matching, MUST NOT chain (alias → alias is a configuration error), and the original wire method is preserved on the Attribution-Record asrequested_methodper [AGTP-IDENTIFIERS]. Operators MAY override the seed or wipe it. The HTTP Gateway Sidecar specified in [AGTP] relies on this alias map for HTTP method translation.¶ -
on_policy_changeconfig knob given normative semantics; stale-contract sweep specified. Theon_policy_changeknob in Section 10.1.7 was reserved in the prior revision; this revision assigns it two normative values,grandfather(default) andinvalidate. A new Stale Contract Sweep section (Section 10.1.4.1) specifies the operator-firedREVOKE target=stale-contractsinvocation that walks active contracts, compares each contract's capturedrecipe_versionto the current loaded recipe version, and reports drift per the configured (or per-call overridden) mode. Drift outcomes areunchanged,grandfathered, orevicted; evictions emitrcns_releaselifecycle events carryingreason: policy-change-invalidationand the operator's identifier so audit consumers can distinguish operator-fired invalidations from agent-initiated releases. The sweep is operator-fired rather than triggered by config reload because AGTP daemons do not support hot config reload; operators explicitly invoke the sweep after recipe edits. Authorization requires the operatorinspect:allscope. Passthrough contracts (no recipe lineage) are skipped; removed-recipe drift is reported withcurrent_version: nulland evicted underinvalidatemode.¶ -
Normative reference to [AGTP] updated to v08. The base draft has been revised to clean up Agent Genesis schema language (notably, the canonical Agent-ID is now defined explicitly as
sha256(canonical_form(Agent_Genesis _without_signature))rather than via thecertificate_hashfield that no longer exists in the schema). Cross-references in this document continue to resolve to base draft concepts; no section-number references were used.¶
19.2. Wire Format Compatibility
None. Adding DISCOVER /genesis is purely additive. v00
clients that do not invoke the new built-in continue to
interoperate.¶
20. Acknowledgments
This document was developed in response to implementation experience with the AGTP v06 and v07 builds. The architectural decision to unify the contract layer under a single companion specification was articulated in the AGTP-API Position Paper (May 2026). The empirical evidence for the action-intent semantic class is documented in [HOOD2026].¶
21. References
21.1. Normative References
- [AGTP]
- Hood, C., "Agent Transfer Protocol (AGTP)", Work in Progress, Internet-Draft, draft-hood-independent-agtp-08, , <https://datatracker.ietf.org/doc/html/draft-hood-independent-agtp-08>.
- [JSON-SCHEMA]
- Wright, A., Andrews, H., Hutton, B., and G. Dennis, "JSON Schema: A Media Type for Describing JSON Documents", Work in Progress, Internet-Draft, draft-bhutton-json-schema-01, , <https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-01>.
- [RFC2119]
- Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
- [RFC3986]
- Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, DOI 10.17487/RFC3986, , <https://www.rfc-editor.org/rfc/rfc3986>.
- [RFC8174]
- Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
- [RFC9110]
- Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke, Ed., "HTTP Semantics", STD 97, RFC 9110, DOI 10.17487/RFC9110, , <https://www.rfc-editor.org/rfc/rfc9110>.
21.2. Informative References
- [AGTP-CERT]
- Hood, C., "AGTP Agent Certificate Extension", Work in Progress, Internet-Draft, draft-hood-agtp-agent-cert-01, , <https://datatracker.ietf.org/doc/html/draft-hood-agtp-agent-cert-01>.
- [AGTP-IDENTIFIERS]
- Hood, C., "AGTP Identifier Stack and Attribution-Record", Work in Progress, Internet-Draft, draft-hood-agtp-identifiers-01, , <https://datatracker.ietf.org/doc/html/draft-hood-agtp-identifiers-01>.
- [AGTP-MERCHANT]
- Hood, C., "AGTP Merchant Identity and Agentic Commerce Binding", Work in Progress, Internet-Draft, draft-hood-agtp-merchant-identity-02, , <https://datatracker.ietf.org/doc/html/draft-hood-agtp-merchant-identity-02>.
- [AGTP-TRUST]
- Hood, C., "AGTP Trust and Verification Specification", Work in Progress, Internet-Draft, draft-hood-agtp-trust-01, , <https://datatracker.ietf.org/doc/html/draft-hood-agtp-trust-01>.
- [HOOD2026]
- Hood, C., "Semantic Method Naming and LLM Agent Accuracy: A Controlled Benchmark of REST/CRUD versus Agentive API Interface Design", Working Paper Available by request. March 2026., .
- [RFC6570]
- Gregorio, J., Fielding, R., Hadley, M., Nottingham, M., and D. Orchard, "URI Template", RFC 6570, DOI 10.17487/RFC6570, , <https://www.rfc-editor.org/rfc/rfc6570>.
Appendix A. Implementation Guidance (Informative)
This appendix is non-normative. It describes how a typical AGTP-API server is built and operated, in support of the normative spec. Implementations are not required to follow these patterns; they are documented here to give developers a starting point and to make the intended deployment posture concrete.¶
A.2. Runtime Dispatch Pattern
A typical request lifecycle in a conforming server:¶
-
The server receives an AGTP request and parses the verb and path.¶
-
The dispatcher matches verb-and-path against the endpoint registry.¶
-
On match, the dispatcher validates the request body against the endpoint's
input_schema.¶ -
The dispatcher checks the agent's Authority-Scope against the endpoint's
required_scopesdeclaration.¶ -
The dispatcher constructs a context object containing validated input and agent identity, and invokes the handler.¶
-
The handler executes business logic and returns a structured response or named error.¶
-
The dispatcher translates the result into an AGTP response.¶
This pattern keeps contract enforcement in the dispatcher and business logic in the handler. Handlers do not perform schema validation, authority checks, or status code translation; the dispatcher does those uniformly across all endpoints.¶
A.3. Tooling
The reference implementation publishes tooling at agtp.io/api/tools:¶
-
An OpenAPI → AGTP-API conversion tool that reads an OpenAPI 3.x specification and produces a directory of endpoint declarations with
external_servicehandlers pointing at the original HTTP endpoints. Where method mapping requires judgment, the tool flags the endpoint for human review with suggestions from the AGTP-API approved method catalog.¶ -
An AGTP-API → OpenAPI export tool for servers that need to publish HTTP-side documentation derived from their AGTP manifest.¶
-
A manifest validator that checks server manifests against this specification.¶
-
A conformance test runner that exercises the conformance requirements of Section 13.1 against a deployed server.¶
-
An
agtp-catalog-difftool that diffs two catalog versions and optionally scans a deployment directory to identify endpoints, recipes, andpolicies.methodsentries that would break under a candidate catalog upgrade. See Section 4.¶
These tools are non-normative reference implementations. Other parties MAY publish equivalent tools.¶
A.4. Operator Notes on Catalog Versioning
The catalog version a server declares in its manifest is the version
the server validates incoming method names against. Operators
upgrading the on-disk verb catalog (typically by regenerating
methods.json from a new catalog release) SHOULD restart the
server to pick up the new version. Long-running servers that have
not been restarted after a catalog upgrade may continue validating
against the previous version they loaded at startup.¶
The reference agtp-catalog-diff tool is the recommended way to
preview the impact of a catalog upgrade against a deployment
directory before restarting. Run it as a deployment gate to surface
endpoint-removal conflicts, recipe-step references to removed
methods, and policies.methods entries that would be silently skipped
under the new version.¶
Appendix B. Migration Paths (Informative)
This appendix is non-normative. It describes deployment strategies for organizations adopting AGTP-API on top of existing HTTP services, and for organizations building AGTP-API services from scratch.¶
B.1. Wrap-and-Expose
The lowest-effort path for an organization with an existing HTTP API.
The HTTP API stays where it is. The organization writes AGTP-API
endpoint declarations whose handler binding is external_service
(Section 12.3), pointing at the existing HTTP endpoints.
AGTP-API becomes a thin agent-facing facade over the existing HTTP
backend. Request translation maps AGTP-API input fields to HTTP
request shapes; response translation maps HTTP responses back to
AGTP-API output shapes.¶
The OpenAPI → AGTP-API conversion tool (Appendix A)
produces this kind of deployment by default: it reads an OpenAPI
specification and generates a directory of endpoint declarations
with external_service handlers. A 200-endpoint HTTP service can
be made AGTP-discoverable in a single working session.¶
Wrap-and-expose deployments SHOULD populate the manifest's
apis array (Section 8) with the HTTP API descriptor so agents
that need the underlying HTTP documentation can locate it.¶
B.2. Translate-and-Rehost
A medium-effort path. The organization reimplements its HTTP API as native AGTP-API endpoints, moving the handler logic into the AGTP-API server's implementation language directly. The HTTP layer goes away, or is retained only for legacy clients that have not migrated.¶
The conversion tool generates endpoint declarations and handler stubs from the existing OpenAPI specification, leaving the organization to fill in the business logic. The work is conversion, not greenfield development.¶
Translate-and-rehost deployments leave the apis array empty once
the HTTP layer retires; during transition, the array continues to
reference the HTTP face alongside the native AGTP endpoints.¶
B.3. Coexist-Permanently
No migration. The HTTP API stays as the primary interface; AGTP-API is added as a parallel face for agent traffic. New agent-facing features go in the AGTP-API layer; existing HTTP traffic continues unaffected. Two interfaces, one backend, indefinite coexistence.¶
This is the path most large enterprises will take when regulatory, contractual, or customer-relationship commitments make a forced migration impractical. AGTP-API is additive in this posture, not replacing.¶
Coexist-permanently deployments populate apis with HTTP API
descriptors that include http_documentation URLs pointing at the
HTTP-side OpenAPI specifications.¶
B.4. Path Selection
The right path depends on organizational constraints, not protocol preferences. Wrap-and-expose is the path that scales: it is the one that can move millions of existing APIs to AGTP-API discoverability at low cost. Translate-and-rehost is the right target for organizations committing to AGTP-API as the long-term primary surface. Coexist-permanently is the honest answer for organizations that want agent access without disruption to existing systems.¶