Agent-initiated publication v0.1
A host can start a channel thread or send a completion reply without an active Task. An administrator supplies the host with a connector URL and an opaque destination ID. The connector’s public Agent Card at /.well-known/agent-card.json advertises the required extension https://mentionable.dev/ns/publication/v0.1 and its A2A 1.0 JSON-RPC endpoint.
Sending a notice
Send an HTTPS POST to the advertised endpoint with Content-Type: application/json, A2A-Version: 1.0, A2A-Extensions: https://mentionable.dev/ns/publication/v0.1, and the HTTP message signature described below.
{
"jsonrpc": "2.0",
"id": 1,
"method": "SendMessage",
"params": {
"message": {
"role": "ROLE_USER",
"messageId": "expiry-47",
"extensions": ["https://mentionable.dev/ns/publication/v0.1"],
"parts": [{ "text": "Sign in at https://ops.example/sign-in" }],
"metadata": {
"https://mentionable.dev/ns/publication/v0.1": { "destinationId": "destination-from-admin" }
}
}
}
}
Version 0.1 defines a restricted SendMessage profile. Use the request shape above, including the extension URI in both the message and HTTP header. Omit Task/context fields, configuration and additional parts or extensions. The receiver accepts one nonempty Unicode text part of at most 4,000 UTF-16 code units (excluding NUL and unpaired surrogates) and a request of at most 32 KiB. IDs in requests contain 1–128 ASCII letters, digits, periods, underscores, colons, or hyphens. To reply, use a fresh message ID and replace the destination object with {"replyTo":"<confirmed root publication ID>"}. The connector resolves the original sender, workspace, channel, and thread and checks current authorization.
Reading a receipt
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"message": {
"messageId": "receipt-message-id",
"role": "ROLE_AGENT",
"parts": [{ "text": "pending" }],
"extensions": ["https://mentionable.dev/ns/publication/v0.1"],
"metadata": {
"https://mentionable.dev/ns/publication/v0.1": {
"publicationId": "publication-id",
"state": "pending"
}
}
}
}
}
Persist the logical request and retry it with the same message ID to retrieve delivery status. A pending receipt acknowledges durable acceptance. Wait for published before using the ID as a reply target. A terminal delivery error returns failed. A denied grant returns HTTP 403. A changed target or text under the same approved address, subject and message ID returns JSON-RPC error 1001. Replying to a pending parent returns 1002 (poll the parent and retry); a failed parent returns 1003 (terminal). Check the HTTP status before interpreting the JSON-RPC envelope. After a transport timeout or HTTP 503, retry with the same message ID. Use a fresh nonce and signature on every delivery, including polls and retries of an identical request.
The delivery policy prioritizes reaching the channel. When Slack may have accepted a post and its timestamp could not be recorded, the worker looks for the posting bot’s matching publication ID in the original channel or thread. A retry can create a duplicate when that lookup is inconclusive. The receipt selects one confirmed thread. Transient failures are retried with backoff while the grant remains active. The connector drops ordinary notice text once the publication reaches a terminal state. Interactive cards retain their public summary for message updates. Revocation cancels further authorized attempts. A request already handed to Slack may still complete.
Discovering the publication identity
The address domain publishes the binding from a human-readable address to a permanent publication subject. The subject is the Web Bot Auth Signature-Agent directory URL. For this publication profile, use a canonical public HTTPS URL of at most 2,048 characters without credentials, query or fragment. Use literal unreserved characters and uppercase hexadecimal percent escapes. These constraints give the directory fetch and the grant comparison one spelling. It identifies one agent principal for its lifetime. The address authority MUST assign a new subject on ownership transfer or re-registration and MUST NOT reassign a retired subject. Key rotation for the same principal preserves the subject.
For @ops@agents.example, fetch https://agents.example/.well-known/webfinger?resource=acct%3Aops%40agents.example. The JRD subject must exactly match the requested account. Select exactly one link with the publication identity relation:
{
"subject": "acct:ops@agents.example",
"links": [
{
"rel": "https://mentionable.dev/ns/rel/publication-identity",
"type": "application/json",
"href": "https://agents.example/agents/7"
}
]
}
Fetch that href to obtain an RFC 7517 JWK Set. The URL identifies the agent. No top-level id is required. The directory must contain a public Ed25519 verification key authorized to publish for the subject. For example, the following public test key verifies the baseline signature in the interoperability fixture.
{
"keys": [
{
"kty": "OKP",
"crv": "Ed25519",
"x": "3eyGRTanvC4ZvSJKzbfBDZ5jokgRxDnAFuNqgPf9iyM"
}
]
}
The identity document may be hosted on another public origin explicitly linked by the address domain. Both endpoints must be directly accessible over HTTPS. Publish both documents with Cache-Control: no-store or require revalidation so caches cannot keep authorizing retired bindings. The Slack receiver performs fresh discovery for review, confirmation and authenticated submission. A temporary discovery outage on submission returns HTTP 503. WebFinger · JSON Web Key
Hosts using createMentionableNode can set agent.card.mentionable.publication_identity (or the corresponding card for each entry in agents) and serve the JSON document at that URL. The node includes the relation in that agent’s WebFinger JRD. Hosts implementing WebFinger independently can publish the same link and document directly.
Signing and granting access
Direct and delegated signers use the IETF Web Bot Auth draft-01 with the additional publication requirements below. A delegated service that signs for multiple agents MUST derive the directory URL from the authenticated caller’s current identity. Each independently approved principal has its own permanent URL, including when several directories authorize the same public key.
Serialize the A2A envelope once. Send those exact bytes and a single signature labeled sig1. Send the directory URL in a Structured Fields Dictionary:
Signature-Agent: sig1="https://agents.example/agents/7"
Cover these components in order. The last component covers only the sig1 member and its signature-base value includes the double quotes around the URL.
| RFC 9421 component identifier | Value |
|---|---|
"@method" | POST |
"@target-uri" | Exact public HTTPS publication endpoint |
"content-type" | application/json |
"content-digest" | sha-256=:<standard padded base64 of SHA-256(body)>: |
"signature-agent";key="sig1" | "https://agents.example/agents/7" for the example above |
Use signature parameters in this order: integer Unix times created and expires exactly 60 seconds apart, a fresh lowercase UUIDv4 nonce, the signing keyid, alg="ed25519" and tag="web-bot-auth". Five seconds of clock skew are allowed. The publication operation and recipient are bound by the signed method, endpoint and content digest.
Compute keyid as the unpadded base64url SHA-256 of the UTF-8 JSON string {"crv":"Ed25519","kty":"OKP","x":"<public key>"} with that exact key order and no whitespace. At ordinary directory URLs the JWK may have an operator-assigned kid; select the key by its computed thumbprint. At /.well-known/http-message-signatures-directory, serve application/http-message-signatures-directory+json and, if supplied, set kid to the thumbprint. Draft §5.5 · RFC 8037 Appendix A.3
The account address stays in the approval record. The receiver uses the body’s destinationId (or the original publication identified by replyTo) to find the expected account and subject. It requires the approved subject, the signed directory URL and the current WebFinger link to agree. It verifies the content digest and signature with a key from that directory before accepting the publication. A request-provided URL alone cannot grant posting access. HTTP Message Signatures · Content-Digest
A channel administrator approves the address and permanent subject. A key change with the same subject preserves the grant. To rotate without interruption, publish both public keys before switching signers, then remove the retired key after in-flight signatures expire. A new subject needs fresh approval even when the address and delegated signing key are unchanged. Earlier queued jobs belong to the principal that submitted them; revocation or approval of a replacement fences those jobs. A successor cannot retrieve their receipts or reply to their threads. Grants created with an older identity format require reapproval.
Concurrent submissions of the same signature consume its nonce at most once per subject. Replay returns HTTP 403. A fresh signature carrying the same logical publication and message ID recovers its receipt.
Publishing an interactive card
A connector supporting this profile advertises cardProfile: "https://mentionable.dev/ns/publication/v0.1#publishing-an-interactive-card" in its publication extension parameters. This declares support for the format. Posting a card additionally requires a registered service and the destination grant. A signed root publication can carry a service-owned card. Put the public channel summary in the usual text part. Include the following object under the publication extension URI in message metadata:
{
"destinationId": "dst-example",
"card": {
"id": "deployment-47",
"revision": "v3",
"refresh": { "action": { "type": "Action.Execute", "verb": "view" } }
}
}
The card ID and revision use the publication identifier character set and length limit. The sender chooses the service-local card ID. The connector returns its own publication ID in the receipt and binds it to the confirmed Slack message. Retrying the signed logical publication uses the same message ID, card reference and destination. Use a fresh message ID to publish a new revision. Omit the card member for an ordinary notice or thread reply.
The connector selects the service from its operator’s registration for the sender address and permanent signing principal. It pins the service resource to the card at publication time. A channel grant authorizes delivery of the public summary. Opening the card or using an action requires a current grant, an eligible destination and a credential for the actual clicking user.
The bootstrap refresh action is side-effect free. The connector also accepts the shorter {id, revision} reference as the same fixed view action. Both forms yield the same receipt when retried. The sender’s text and the connector’s Open card button form the public card.
The connector advertises cardInvokeExtension in its publication extension parameters. Its value is https://mentionable.dev/ns/card-invoke/v0.1. The service declares that extension with its HTTP Invoke URL in params.endpoint on its own Agent Card. This URL must match the registered service resource and serves as the OAuth resource for scope card:invoke. The same extension names its authorization server in params.authorization_server. After the initial A2A publication, opening the card or pressing a button sends a direct HTTPS Invoke activity with the clicker’s bearer to that URL. A standard InvokeResponse supplies a private view. The optional Mentionable response namespace can also report the service’s current revision and explicitly update the bound channel. Card Invoke wire format, response examples and retry rules.