Skip to content

Agent registry (v1) ​

  • URI: https://agents.vymalo.com/registry/v1
  • Status: draft (2026-10-01)
  • Build status: built: the operator serves it (aap-registry) and the system's orchestrator reads it, proven in CI by the kind job chain-e2e (a coder made through the Platform API is listed by the pinned orchestrator, by audience; verified 2026-10-17). Not proven: a real Keycloak, and more than one replica of the chain
  • Implemented by: the another-agentic-platform control plane (platform API); v0: the operator binary (architecture §59a), serving the same document with one static bearer and no per-caller filtering until a control plane exists. A header note of 2026-10-04: the contract is unchanged, and the deviations are the server's, not the client's. Built 2026-10-05 as aap-registry (S7), which holds the contract's document rules in code and reads its own output with the consumer's reader
  • Amended 2026-10-15 (D3): an optional item attribute audience (who may use the agent, enforced by a consumer that offers agents to people, failing closed; by convention the values are use permissions, agent.use:<agent-name>), accepted by the owner on 2026-10-05 and specified in architecture §60a as AD-028 (was P-009). It is added to the Item table and to the rules below, with its own section. The contract is additive, so it stays v1: see Versioning. Built as slice D3 in aap-registry, which publishes it from AgentService.spec.access.audience
  • Amended 2026-11-18 (K6b): rule 3 says what a server does when two services it lists share one id in different scopes: it lists neither (both in its skip log). The contract stays v1: no member, media type or profile URI moves, a client that meets no duplicate is unaffected, and a client already tolerates a service being absent (rules 1 and 5); it narrows a server behaviour the contract never promised, rather than breaking a client. Built as slice K6b in aap-registry
  • Consumed by: any client that wants to list the fleet's A2A agents — first consumer: another-agentic-system (ADR 0022)

The URI is a profile identifier (it names this contract inside the document and in the media type's profile parameter), like the URI of the release-channels extension. It does not have to resolve.

Purpose &ZeroWidthSpace;

Let a client list the A2A agents the platform provisions, using only HTTP and one JSON document — no Kubernetes access, no platform SDK, no client-side state. The registry answers one question: which agent services exist for this caller, and where is each agent card?

A2A names curated registries as one way to discover agents but does not prescribe an API for them (verified 2026-10-01, https://a2a-protocol.org/latest/topics/agent-discovery/: "The current A2A specification does not prescribe a standard API for curated registries"). This contract is that API for the platform's fleet.

What the registry is not:

  • It is not a gateway. It lists addresses; it never proxies an invocation, and it does not put all agents behind one endpoint (architecture §44). Each agent keeps its own host, identity, authorization and card.
  • It does not carry releases. Channels and revisions stay on each agent card, in the release-channels extension (architecture §12a).
  • It carries no prompts, configuration, credentials or UI concepts. The platform knows nothing about any client's user interface; it provisions A2A-capable agents and lists them.

Clients that do not know this contract lose nothing: every agent card and every service's /.well-known/api-catalog (architecture §12) works without it.

The document &ZeroWidthSpace;

The registry is a linkset in the shape of an API catalog: one JSON document in the application/linkset+json format, with one item link per agent service. Request and response:

http
GET /registry/v1/agents HTTP/1.1
Host: platform.example.com
Accept: application/linkset+json
Authorization: Bearer <token>
http
HTTP/1.1 200 OK
Content-Type: application/linkset+json; profile="https://www.rfc-editor.org/info/rfc9727"
Cache-Control: private, max-age=30
Vary: Authorization
ETag: "r-2026-10-01T09:00:00Z"
json
{
  "linkset": [
    {
      "anchor": "https://platform.example.com/registry/v1/agents",
      "profile": [ { "href": "https://agents.vymalo.com/registry/v1" } ],
      "item": [
        {
          "href": "https://coder.agents.example.com/.well-known/agent-card.json",
          "type": "application/json",
          "title": "Coder",
          "service": ["coder"],
          "tags": ["coding", "git"],
          "audience": ["agent.use:coder"]
        },
        {
          "href": "https://researcher.agents.example.com/.well-known/agent-card.json",
          "type": "application/json",
          "title": "Researcher",
          "service": ["researcher"],
          "audience": ["*"]
        }
      ]
    }
  ]
}

Media type &ZeroWidthSpace;

application/linkset+json, encoded as UTF-8. The profile parameter is optional; per RFC 9727 a server SHOULD send https://www.rfc-editor.org/info/rfc9727 (it may list more URIs, space separated, such as the v1 URI above). A client requires the media type, ignores the parameter, and takes the contract version from the document's own profile link (below), so the document stays self-contained when it is saved or forwarded outside the HTTP exchange.

Context object &ZeroWidthSpace;

MemberRequiredMeaning
anchornoURI of the registry document itself. Servers SHOULD send it; clients ignore its value.
profileyesAn array whose href values include https://agents.vymalo.com/registry/v1. This is the version marker.
itemnoAn array of link target objects, one per agent service, in display order. Absent (or []) means the caller sees no agents.

The set of links is an object with linkset as its only member, an array of context objects even when there is only one. Relation members are arrays even when they hold one link.

MemberRequiredTypeMeaning
hrefyesstringAbsolute http or https URL of the agent card, normally <service host>/.well-known/agent-card.json. A client MAY accept a service base URL and derive the card path from it.
typenostringMedia type of the card: application/json.
titlenostringDisplay name. A client defaults to the service id when absent.
serviceyesarray of one stringThe service id: the AgentService name (architecture §7), lower-case letters, digits and dashes, starting with a letter or digit, at most 63 characters (^[a-z0-9][a-z0-9-]{0,62}$). Stable for the life of the service.
tagsnoarray of stringsLabels for grouping and filtering (see Tags). Omitted when the service has none.
audiencenoarray of stringsWho may use the agent, for a client that offers agents to people (see Audience), read as a set: at most 32 distinct values, each of 1 to 64 bytes in 0x21 to 0x7E, or the single value "*". Omitted when the service has none.

title and type are target attributes defined by Web Linking, so each is a single value; service, tags and audience are extension target attributes, so each is an array even when it holds one value (verified 2026-10-01, RFC 9264 §4.2.4.1 and §4.2.4.3).

Rules &ZeroWidthSpace;

  1. One item per service. A service appears if its A2A interface is enabled (architecture §11) and the caller may invoke it (agent.invoke, architecture §52, within the tenants and projects the caller can see, §53). Two callers can get different lists.
  2. Display order. item order is the order a client shows. The control plane decides it and keeps it stable between reads. A client that needs a default agent MAY take the first item.
  3. Unique ids. A server never lists the same service twice. When two services the directory lists share one id in different scopes, the server lists neither (it says so in its own logs); a client that meets a duplicate keeps the first and skips the rest.
  4. Nothing else. No releases, channels, revisions, prompts, configuration, secrets or tokens. Clients ignore members and attributes they do not know (RFC 9264 §4.2.5 allows consumers to ignore extra members; for unknown item attributes this contract requires it).
  5. Invalid items are skipped, not fatal. A client skips an item with a missing or relative href, a service that is not an array of exactly one valid id, or a title that is not a string. The remaining items are kept, and the client says it skipped some (a warning in its logs, not in the user's way). Tags are advisory: a malformed tags value (not an array of strings, an empty or over-long tag, more than 16 tags) is dropped as a whole and the item is kept. A malformed audience is not a reason to skip an item either, and it is not advisory: the item is kept and its audience is read as none, which is "administrators only" (Audience).
  6. Unreadable documents fail closed. The source is unavailable (not "empty") when the body is not valid JSON, is not an object with a linkset array, has no context object carrying the v1 profile link or more than one context object carrying it (context objects for other versions are ignored, see Versioning), exceeds 1 MiB or 500 items, or was not served as application/linkset+json. A client never truncates: silently dropping agents from a long list would hide them.

Limits: at most 500 items and a 1 MiB body per document; at most 16 tags per item and 64 characters per tag; at most 32 distinct audience values per item and 64 bytes per value. The body limit counts every member, so a fleet whose audiences make the document pass 1 MiB is refused whole, like any other (500 items of 32 values of 64 bytes are already over it). A fleet that outgrows them needs grouping (nested catalogs, RFC 9727 §4.3 and §5.3) or a v2.

Tags &ZeroWidthSpace;

Tags are labels the platform keeps on an AgentService, set and changed in the control plane (where the platform stores them is not part of this contract). They appear only as the optional tags attribute of an item.

  • A tag is a free-form, non-empty string of at most 64 characters. Servers SHOULD use lower-case words joined by dashes (coding, code-review). Clients show tags as given and compare them exactly; they never write them.
  • Tags classify an agent so a client can group, filter or suggest it. They have no behaviour: they do not route, authorize, version or select anything.
  • Tags are not releases. Channel names (production, staging) and revision names are never listed here. A client that wants a release picker reads the agent card's release-channels extension, live, as it does without a registry.

Audience &ZeroWidthSpace;

The optional audience attribute says who may use the agent, to a client that offers listed agents to people. The platform keeps it on the AgentService (spec.access.audience, architecture §60a, AD-028), set and changed in the control plane; it appears only as this attribute of an item, and reaches no agent: it is not in any pod's environment or configuration.

json
{ "href": "http://coder-me.another-agentic-system.svc:8080/.well-known/agent-card.json",
  "type": "application/json", "title": "Coder (me)", "service": ["coder-me"],
  "tags": ["coding", "git"], "audience": ["agent.use:coder-me"] }

Shape. An array of strings, read as a set: a repeat is the same value and counts once. At most 32 distinct values, each of 1 to 64 bytes, every byte in 0x21 to 0x7E (! to ~: no space, control or non-ASCII character). Values are compared byte for byte, case-sensitive, with no trimming, case folding or Unicode normalisation. The value "*" admits everybody and is only allowed alone: "*" beside another distinct value is malformed, and a repeat of "*" is a repeat (["*","*"] is ["*"]).

A regular expression for a value must be anchored to the whole string (\A[!-~]{1,64}\z, and Python spells the end \Z): in PCRE, Perl, Python and Java a plain $ also matches before a final newline, so ^[!-~]{1,64}$ accepts "a\n" (verified 2026-10-15 by running Python 3, Perl, PHP's PCRE and Java's Pattern on "a\n": $ matched in all four, \A…\z or \Z in none).

By convention a value is the agent's use permission, agent.use:<agent-name>, a role the deployment's identity provider grants to people (for example through composite roles), so who may use an agent is decided there and not in the platform. The contract fixes no other meaning: a value is a string that a person's roles claim may hold. The prefix agent.use: is 10 bytes, so a name used with the convention is at most 54 characters, and a service id may be 63: a service with a longer name cannot have its own use permission as a value. The platform's dashboard makes names of at most 40 characters, so conventional values of at most 50 (architecture §60a).

The three cases a server publishes.

The service hasThe item
no audience, or an empty oneno audience attribute (the two are the same: administrators only)
["*"]"audience": ["*"]
values"audience" with the values as a set: each once, in byte order

A server publishes an audience as a set because its order means nothing to a consumer, and a document that only reorders the values should not change its ETag. A server never publishes an audience that breaks the shape above: a client would read it as none, so the server leaves it out. A client reads the array as a set, and does not depend on the order or on there being no repeats.

The consumer's rule. A client that offers listed agents to people reads an item's audience and the person's roles as follows, and fails closed wherever the text is silent.

  1. The audience. It is none when the member is absent, is [], or is malformed. Otherwise it is the set of its values. Malformed is exactly this: not an array; an element that is not a string; a string outside the grammar of the Shape above; more than 32 distinct values; or "*" together with another distinct value.
  2. The person's roles. They are the strings of the person's roles claim (the claim is the client's configuration, not this contract's). A claim that is missing, is not an array, or has an element that is not a string means the person has no roles there (the whole claim, not only that element), and only "*" admits them.
  3. The rule. The client shows the item to the person, and lets them invoke it, only when its audience holds "*" or a value equal, byte for byte, to one of the person's roles. An item whose audience is none is for the client's administrators only (who they are is the client's configuration too).
  4. Administrators. The rule has no other exception for them: an administrator is shown an item with an audience that is not none only when their own roles hold "*" or one of its values. "Administrators only" is what an item with none is, and nothing more. A deployment that wants its administrators to use every agent gives them each agent's use permission in the identity provider (a composite role), and the client's code need not know.

Fail closed: an agent just made, with no audience yet, is seen by the administrators, who can try it, and by nobody else. A client that offers nothing to people (a script) may ignore the attribute.

Listing is still not a grant (Serving). audience tells a client whom to offer an agent to; the agent itself checks only the bearer it is called with. For people, the client is the enforcement point, as it is for any role it already checks. Rule 1 is a different filter: it is about the caller of the registry, and audience is about the people behind that caller.

Serving &ZeroWidthSpace;

  • Path. GET /registry/v1/agents on the platform API host is recommended. Clients take the full URL from their configuration and do not derive it, so a deployment may serve the document anywhere (RFC 9727 leaves the location to the publisher).
  • Served by the control plane. Reading the registry never wakes runtime compute (architecture §13); it is metadata, like the agent card.
  • Authorization. The registry takes the platform API's standard bearer token (architecture §51, §52): Authorization: Bearer <token>. 401 when the token is missing or invalid, 403 when it is valid but may not read the registry. A caller who may read it but may invoke nothing gets 200 and an empty list. The list is filtered per caller (rule 1), so the response carries Vary: Authorization and Cache-Control: private.
  • Listing is not a grant. The registry hands out no credentials. Each agent card and A2A endpoint applies its own service's authorization (architecture §44, §68). An audience (Audience) is no grant either: it is what a client reads to decide whom to offer an agent to.
  • Transport. HTTPS outside a trusted cluster network, and the endpoint is rate-limited like other control-plane endpoints (RFC 9727 §8 recommends both for an API catalog; verified 2026-10-01).

Caching &ZeroWidthSpace;

Servers send Cache-Control: private, max-age=<seconds> with max-age of 60 or less recommended, and an ETag (they MAY add Last-Modified), and answer If-None-Match with 304 Not Modified when nothing changed. The ETag is opaque.

Clients honour these headers, and in addition:

  1. Freshness. A copy is fresh for max-age minus Age (RFC 9111). A client MAY cap the lifetime lower. With no max-age, or with no-cache or no-store, a client revalidates on every read.
  2. Revalidate. When a copy is stale, send If-None-Match (and If-Modified-Since when only Last-Modified was given). A 304 renews freshness; a 200 replaces the copy.
  3. Single flight. Concurrent readers share one fetch.
  4. Never persist. The copy lives in the client process's memory, never in a database or a file, and is never part of a client's own durable state.
  5. Fail closed, never stale. If a fetch fails (connection error, timeout, a status other than 200 or 304, an unreadable document) the answer is "the registry is unavailable, so no platform agents". A client does not fall back to the stale copy and ignores stale-while-revalidate and stale-if-error (RFC 5861). An agent that was removed must not stay selectable just because the registry is down. A client keeps this distinct from an empty list, so it can tell the user the registry could not be reached.
  6. Credentials errors are failures. 401 and 403 make the source unavailable; the client reports that the registry refused its credentials, without printing the token.

Cache headers and validators: verified 2026-10-01, RFC 9111 §5.1 (Age), §5.2.2.1 (max-age), §5.2.2.4 (no-cache), §5.2.2.5 (no-store), §5.2.2.7 (private); RFC 9110 §8.8.3 (ETag), §12.5.5 (Vary), §13.1.2 (If-None-Match), §15.4.5 (304); RFC 5861 §3 and §4.

Client flow &ZeroWidthSpace;

How a client holds the document between reads (in memory only):

While Unavailable, a client lists no platform agents and says the registry cannot be reached. It holds no copy and no validator, so the next read is an unconditional GET.

Versioning &ZeroWidthSpace;

Breaking changes get a new URI (…/registry/v2) and a new file, agent-registry-v2.md; this file stays. Adding an optional item attribute is not breaking, because clients ignore unknown attributes (rule 4). That is how audience was added on 2026-10-15 (D3): the URI is unchanged and a document with audiences is a valid v1 document for a reader that predates it. The risk is that such a client ignores the attribute and so shows a restricted agent to everybody, which is why a client that offers agents to people implements the consumer's rule before any service has an audience. The system's reader from before the attribute (its commit e5da0a4) was tested to read such a document with no item skipped; the copy vendored since 2026-10-17 is the system's reader of its slice D8 (commit 8df44c6), which parses audience, and a round-trip test holds that it reads each published audience as the same audience (aap-registry).

A service may declare both versions during a transition: the document then carries both profile links, either in one context object whose items are valid under both versions or in one context object per version. A client reads the one context object that carries the profile it implements.

Facts checked &ZeroWidthSpace;

  • Verified 2026-10-01 against the RFC text at https://www.rfc-editor.org/rfc/rfc9264.html (Linkset): §4.2.1 (linkset is the sole member, an array of context objects), §4.2.2 (anchor optional, relation members are arrays), §4.2.3 (href required), §4.2.4.1 (title and type are single values), §4.2.4.3 (extension target attributes are arrays of strings), §4.2.5 (consumers can ignore other extensions), §5 (the profile media type parameter is a space-separated list of URIs), §7.4.3 (a profile link inside the document).
  • Verified 2026-10-01 against https://www.rfc-editor.org/rfc/rfc9727.html (api-catalog): §3.1 (the item relation identifies a member of the catalog), §4.2 (the catalog MUST be application/linkset+json and SHOULD carry profile="https://www.rfc-editor.org/info/rfc9727"), §4.3 and §5.3 (nested catalogs, caching and compression), §8 (TLS, rate limiting).
  • Not from the RFCs: the attributes service, tags and audience, the version profile link and the limits are this contract's own definitions. The RFCs supply only the shape (a linkset of item links with extension target attributes).
  • Verified 2026-10-01 against https://a2a-protocol.org/latest/topics/agent-discovery/: A2A lists well-known URI, curated registries and direct configuration as discovery strategies and prescribes no registry API.