A2A extension: model pick (v1) ​
- URI:
https://agents.vymalo.com/a2a/extensions/model-pick/v1 - Status: proposed 2026-11-23; the orchestrator's side is built (slice 2 of ANR-14: the card read, the activation, the checks and the typed
422s, the log, the thread default and itsPATCH), the web's chips are built (slice 3b, 2026-11-24:web/src/features/pick, drawn fromAgentInfo.pickwhile the live card lists each axis) and adev/mock lists both (dev/wiremock/pick,dev/pick-e2e.sh); adam serves it (since adam-rs9f90f1e6an adam agent whose deployment profiles its model listsmodel-pick/v1on its card), and the local stack proves the whole chain on the real image (dev/model-profiles.jsonas the chat'sMODEL_ALIASES_FILE,dev/pick-real-e2e.sh). Decided in ADR 0086. - Served by: an agent whose card lists it (adam-rs does not yet). Used by: the orchestrator and the web.
- Effort is not this extension: it is adam's
reasoning/v1(https://agents.vymalo.com/a2a/extensions/reasoning/v1,params {efforts, default?},metadata[URI] = {"effort": "<level>"}), used as it stands.
The card ​
{"uri": "https://agents.vymalo.com/a2a/extensions/model-pick/v1",
"required": false,
"params": {"choices": [{"id": "fast", "label": "Fast", "endpoint": "frontier"}, {"id": "deep", "label": "Deep", "endpoint": "deep-endpoint"}], "default": "fast"}}id is a neutral alias the agent defines (1 to 64 characters of a-z0-9._-). It is never a provider model id and carries no price.
endpoint is optional, and each choice may name one: the deployment's own label for the model endpoint that alias maps to — the key of models.endpoints.<name> in the orchestrator's configuration, never a provider, a host, a URL or a key. When a run starts, the orchestrator resolves the person's pick (or the card's default when they picked nothing) against the live card and records that choice's endpoint on the run's binding (ADR 0084, the status note of 2026-11-24). A card that names none is the card of today: the run's binding names no endpoint and the model credential lookup answers unavailable (fail closed). A later message of a run that is already bound to one endpoint and picks another alias is refused (409), never re-pointed.
The message ​
The URI is activated in A2A-Extensions and message.extensions; message.metadata[URI] = {"model": "<id>"}. A message that picks nothing activates nothing and has no member.
The client ​
forwardedProps["vymalo.model"] and forwardedProps["vymalo.reasoningEffort"] on an AG-UI run. PATCH /api/threads/{id} takes model and reasoningEffort as the thread's default (additive). The message wins, then the thread, then the agent's own default.
Refusals ​
| Case | Answer |
|---|---|
the live card lists no model-pick/v1, or the id is not in choices | 422 model_not_offered with offered: [ids] (empty when not listed); nothing is written |
the effort is not in the card's reasoning/v1 efforts, or the card lists none | 422 reasoning_not_offered with offered: [levels] |
| the card cannot be read to check it | 503 + Retry-After; nothing is written |
the agent answers InvalidParams, or its card no longer offers the pick at the send | the message is undelivered (AgentError::Unsupported, never retried), with the agent's reason; never sent without the pick |
Stored ​
The user_message holds the resolved pick as pick: {model?, reasoningEffort?} (omitted when none, an axis omitted when not named); the thread row holds its default (threads.pick, one column in each store, no event). Redelivery, a fork's first message (model, reasoningEffort on the fork body) and an edit that names none carry it; the projection shows nothing of it (the chips are the composer's, web/src/features/pick). A thread's default is not copied into a fork or an export.
PATCH /api/threads/{id} with model and/or reasoningEffort answers the thread with those two members set to the default as it is now; null clears an axis, an absent member leaves it.
Conformance (mock agent) ​
- a pick arrives in the metadata, with the URI activated; 2. an unlisted pick is
422and writes nothing; 3. no pick sends no member and activates nothing; 4. the message's pick beats the thread's; 5. a redelivery carries the recorded pick.