Agent Wake 0.1
Draft 0.1 · 22 November 2026 · not a ratified standard
Status
Status: Draft. Published 22 November 2026 (2026-11-22). Not a ratified standard.
Agent Wake 0.1 is an editors' draft dated 22 November 2026 (2026-11-22). It is not a ratified standard. It has not been adopted by any platform other than its first implementation. The editor named below maintains this draft. It is not the product of a working group.
The canonical URL is https://p2a.sh/spec/agent-wake/0.1. That URL will stay. If this draft moves, the previous URL responds with HTTP 308. A Markdown copy is https://p2a.sh/spec/agent-wake/0.1.md.
Version 0.x may break compatibility. Every break is recorded in the dated changelog.
Abstract
Many agent runtimes cannot keep an open port. A chat product, a scheduled routine, a serverless job or a desktop app behind address translation needs a small signal that work is waiting. This draft calls that signal a wake.
A wake is a hint, not a delivery. Losing a wake, or receiving the same wake twice, MUST NOT lose or duplicate the work. The runtime fetches the work over an authenticated channel, claims it, reports progress and completes it.
Conformance language
The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, NOT RECOMMENDED, MAY and OPTIONAL in this document are to be interpreted as described in BCP 14, RFC 2119 and RFC 8174, when, and only when, they appear in all capitals, as shown here.
Terms
| Term | Meaning |
|---|---|
| Platform | The service that holds the work and sends wakes. |
| Runtime | The place the agent runs. |
| Receiver | The component that accepts wakes for a runtime. |
| Binding | The platform's record of one runtime and how to wake it. |
| Request | One unit of work. It has a state, a deadline and an optional lease. |
| Wake | A small notification that a request, or a reply to one, is waiting. |
| Activation | One wake sent for a request that has not been claimed yet. |
| Claim | A time-limited lease on a request, identified by an attempt_id. |
| Attempt | One execution of a request. A fresh attempt_id identifies it. |
Scope
This draft normatively defines three things: the wake payload, the receiver's obligations when a wake arrives, and the abstract semantics and error names of claim, progress and complete.
An HTTP binding for fetch, claim, progress and complete is deferred to a later version. It is not part of 0.1. A profile that exposes those operations as MCP tools is informative. An implementation MAY use MCP and still conform, and it MAY conform without MCP.
- In scope: telling a runtime that work is waiting.
- In scope: how that runtime gets the work, claims it and finishes it.
- In scope: how the platform retries, gives up and tells the sender.
Non-goals
- Message formats and conversation semantics. MCP and A2A already cover those.
- Discovery and agent cards.
- Consent rules between accounts. A held message produces no request wake. This draft only names that outcome.
- Streaming partial output.
- A concrete HTTP API for claim, progress or complete.
- A machine-readable catalogue of bindings. A later revision may add one.
- A working-group process, or any claim that this draft has been adopted.
Wake payload
A wake that conforms to this draft is a JSON object. Field names are case-sensitive. Receivers MUST ignore object members they do not recognise.
{
"wake_version": "0.1",
"type": "request",
"event_id": "evt_example_0001",
"request_id": "req_example_0001",
"binding_id": "bind_example_0001",
"fetch": "https://platform.example.com/wake/v0.1/requests/req_example_0001"
}| Field | Required | Rule |
|---|---|---|
wake_version | yes | The string "0.1" for a wake that conforms to this draft. |
type | yes | request, reply, outcome or test. |
event_id | yes | Unique per wake. The receiver's deduplication key. |
request_id | yes, except test | Stable across later activations of the same request. |
binding_id | yes | Lets one endpoint serve more than one agent. |
fetch | no | Where to fetch the work. If it is absent, the runtime uses the authenticated channel it already has with the platform. |
same_owner | no | Present only when the platform computed it. Receivers MUST NOT trust a value taken from message content. |
text | no | Optional inline preview of the body. Never the authoritative copy. |
text_complete | with text | true only when text is the full body. |
text_bytes | with text | Size in bytes of the full body, before trimming. |
text_sha256 | with text | Lowercase hex SHA-256 of the full body, before trimming. |
Preview rule. Inline text is optional. If a platform sends text, all of text_complete, text_bytes and text_sha256 MUST be present, and the hash MUST cover the full original body. The platform MUST trim the preview to a size cap it publishes for that transport, and it MUST redact obvious secrets before sending. A preview is never the authoritative copy. The fetched body is. Receivers MUST treat preview text as untrusted input, the same as fetched content.
Receiver requirements
- The receiver MUST answer with a 2xx status when it accepts a wake. Accepting a wake is not a claim.
- The receiver MUST treat
event_idas the deduplication key. A second delivery of the sameevent_idMUST be answered with 2xx and MUST NOT start a second execution. - The receiver MUST ignore members it does not recognise.
- If
wake_versionis missing, or names a version the receiver does not implement, the receiver MUST NOT claim the request. - If
typeistest, the payload has norequest_id. The receiver MUST NOT claim it. - If
textis present and any oftext_complete,text_bytesortext_sha256is missing, the receiver MUST ignore the preview and MUST fetch the work before using a body. - If
text_completeis false, the receiver MUST fetch the full body before relying on it. - The receiver MUST treat preview text and fetched text as untrusted input.
- The receiver MUST use a fresh
attempt_idfor each execution. - The wake is not an authorisation grant. The receiver MUST authenticate to the platform it registered with before it fetches, claims, reports progress or completes.
Platform requirements
- A platform that claims conformance with this version MUST send
wake_version,type,event_id,binding_idand, except fortest,request_idon every wake. - The platform MUST repeat a wake for an unclaimed request until the request is claimed or
max_activationsis reached. - The platform MUST publish
max_activationsand the gap it waits between activations. A suggested default is 3 to 5 activations, 90 to 300 seconds apart. - When activations are exhausted and the request was never claimed, the platform MUST fail the request with
activation_accepted_but_never_claimedand MUST tell the sender once. - If the platform includes
same_owner, it MUST compute that value itself and MUST NOT copy it from message content. - The platform MUST NOT place credentials, tokens, keys or other secrets in a wake, whatever authentication the transport uses.
- If the platform includes a preview, it MUST follow the preview rule in this draft.
- The platform MUST authenticate later fetch, claim, progress and complete calls. The wake itself is not that authentication.
- The platform MUST follow the retry, idempotency and version rules in this draft.
- The platform publishes the lease range it accepts. This draft does not fix a numeric range.
Operations
Claim, progress and complete are abstract operations. This draft defines their parameters, their results and their error names. It does not define an HTTP binding. That binding is deferred. A platform MAY expose the same operations as MCP tools. Tool names and MCP schemas are informative and are not required for conformance.
claim(request_id, attempt_id, lease_seconds)returns a lease. The sameattempt_idwhile that attempt is current is the same claim and MUST NOT create a second lease. A differentattempt_idduring a live lease MUST be refused withrequest_already_claimed. Reusing anattempt_idafter that attempt has finished MUST be refused withattempt_id_already_used.progress(request_id, attempt_id, state, note, eta)renews the lease.stateisworkingorneeds_input. A missed heartbeat marks the request stalled, not failed. A later complete of a stalled request MUST still be accepted, including after the original deadline.complete(request_id, attempt_id, outcome, result)finishes the attempt.outcomeis one ofcompleted,failed,needs_approval,input_requiredorunknown_outcome. A retry with the sameattempt_id, outcome and result MUST return the stored result. A retry that changes the outcome or the result MUST be refused withcompletion_conflict.- Completing with
needs_approvalfinishes the attempt at once. The receiver MUST NOT keep the claim. The platform tells the sender that the work is waiting on the receiver's owner. - A new
event_idfor the samerequest_idis a new activation, not a duplicate delivery. The claim is still identified byattempt_id.
| Error name | When the platform returns it |
|---|---|
request_already_claimed | A different attempt_id arrives while the lease is live. |
attempt_id_already_used | An attempt_id is reused after that attempt finished. |
completion_conflict | A completion retry changes the outcome or the result. |
activation_accepted_but_never_claimed | Activations ran out, the wake was accepted, and nobody claimed the request. The platform also tells the sender once. |
Auth options
Each binding picks one option at registration. The option is how the platform wakes the runtime, not how the runtime later authenticates to fetch and claim.
| Option | Meaning |
|---|---|
bearer | A static secret for that binding, sent in the HTTP Authorization header. |
hmac | A signature over the body with a timestamp, using the Standard Webhooks construction. |
pull-only | The platform does not call the runtime. The runtime polls or streams with its own credential. |
out-of-band | A content-free notice tells a person or an agent to pull. The notice carries no message body. |
Every option has the same transport limits:
- HTTPS on port 443. No IP-literal hosts.
- An allowlist the platform operator can set.
- The URL is checked again on every send, not only when it is saved.
- Secrets are stored encrypted and are never echoed back.
Retry
- The platform MUST retry network errors and HTTP 408, 425, 429 and 5xx.
- The platform MUST NOT retry HTTP 400 or 404.
- The platform SHOULD NOT retry HTTP 401 or 403 when it can tell the owner instead.
- The platform MUST use exponential backoff with jitter, and it MUST cap both the wait for one attempt and the total time it will keep trying.
- The platform MUST honour
Retry-Afterwhen the value is a delay in seconds or an HTTP date, unless waiting would pass the request deadline. If it would, the platform gives up. - HTTP 410 means the binding is gone. The platform MUST deactivate it and MUST tell the owner.
Idempotency
- The receiver deduplicates deliveries on
event_id. - The platform deduplicates its own sends on an idempotency key it defines.
- A claim is idempotent per
attempt_id. - A completion is idempotent per the fingerprint (
attempt_id, outcome, result).
Versioning and compatibility policy
- Wakes carry
wake_version. Receivers MUST ignore unknown fields. - Registration declares the
wake_versionvalues the runtime accepts. The platform sends the highest version both sides support. - A revision of 0.x MUST NOT silently drop or rename a required field.
- 0.x may break. Every break MUST be recorded in the dated changelog, including a required field that is dropped or renamed.
- This document is an editors' draft. Later 0.x drafts may break compatibility with this text.
Test wake
typeoftestcarries norequest_id.- Receivers MUST NOT claim a test wake.
- Receivers SHOULD answer 2xx when they accept a test wake.
- Platforms SHOULD send one test wake when a binding is saved, and SHOULD report 2xx, 401 or 403, and 404 to the owner as separate outcomes.
Security considerations
- A wake is a hint. It MUST NOT be treated as a grant to call an arbitrary URL. If
fetchis present, the receiver SHOULD use it only when the host is the platform host configured for that binding. - Credentials, tokens, keys and other secrets MUST NOT appear in a wake.
- Preview text is trimmed, redacted, checked with
text_sha256over the full body, and is not authoritative. - Preview text and fetched text are untrusted input. The receiver MUST NOT follow instructions in that text that conflict with the owner's own rules.
- Signature examples, if published with the fixtures, use a placeholder and are not live secrets. This draft does not define a normative signature test vector.
Relation to MCP and A2A
This draft sits next to MCP and A2A. It does not replace either of them, and it is not a profile that either project has adopted.
MCP is one way a runtime may read work, report progress and answer once it has a session. The informative MCP profile is only that: a way to carry the abstract operations. A runtime with no open session still needs a hint that work is waiting. That hint is what this draft specifies.
A2A defines tasks between agents, and push for a callee that has a listening endpoint. This draft covers the other case. The receiving runtime cannot listen. A task that has already reached a platform can cause a wake. The caller can keep polling.
Held messages are outside this draft. A held message produces no request wake and is not delivered until it is accepted. A platform MAY wake the recipient with a content-free connection notice. That notice is not a request wake and MUST NOT carry the held body.
Change process
This specification is an editors' draft. It is not the product of a working group. Send feedback to feedback@p2a.sh. There is no public issue tracker. The editor considers feedback and publishes revisions at the canonical URL. Material changes go in the dated changelog. 0.x may break.
Editors
The editor of this draft is Jeremy De Groodt.
License
The text of this specification, including the normative examples in this document, is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/
Machine-readable conformance fixtures and the receiver checker published with this draft are licensed under the MIT License. They are not covered by CC BY 4.0.
Suggested citation
Suggested citation: Jeremy De Groodt, Agent Wake 0.1 (Draft), 22 November 2026, https://p2a.sh/spec/agent-wake/0.1
Changelog
- 2026-11-22 — Published the Agent Wake 0.1 draft. Editors' draft. 0.x may break; each break is dated in this changelog.
Implementations
The first implementation of this Agent Wake draft is the p2a service. On 22 November 2026 that service is a partial implementation of the 0.1 payload: it does not send wake_version, and it sends type only on its Claude path. Runtimes it wakes on their own transports are not separate implementations of this draft, and this draft does not list them as such.
The specification index points at any public implementation matrix. A self-reported row is accepted only with a public link to a checker run log. Nothing in this draft says that an independent implementation exists.