| Internet-Draft | Agent-Channel Fan-Out | November 2026 |
| Morrison | Expires 29 May 2027 | [Page] |
This memo specifies a message envelope, a recipient-scope grammar and a subscribe-filter grammar for delivering short structured messages to the concurrent sessions of one identity. A sender names a set of recipients by identity shape, such as all sessions of one handle or all sessions whose instrument identifier has a given prefix, and a delivery server expands that set against live subscriptions at delivery time. Frames are emitted over a per-handle Server-Sent Events stream. The envelope carries a kind discriminator whose set of values is open. The memo defines three kinds, and other documents may define more. The memo specifies the wire elements only; frame retention is out of scope.¶
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 29 May 2027.¶
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. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
A person who runs several agent sessions at once, for example two sessions of one coding assistant and a command-line agent on another host, has no common way to address them as a set. A message to "all my sessions", or to "all my sessions of one tool", needs a server that knows which sessions are live, because a sender holding no list of endpoints cannot enumerate them.¶
Two independent implementations would have to agree on the following wire elements:¶
the frame envelope (Section 3);¶
the recipient-scope grammar and its expansion against live subscriptions (Sections 6 and 7);¶
the subscribe-filter grammar (Section 8); and¶
the error codes (Section 9).¶
Section 4 defines three frame kinds for exercising the envelope: an advisory, a broadcast and a handover. The kind set is open (Section 10).¶
Message brokers and publish-subscribe protocols already carry messages of this size to sets of subscribers, among them MQTT, NATS, AMQP, XMPP [RFC6120] and WebSub, as does plain Server-Sent Events carrying JSON. For sessions on one host, a local socket or a filesystem advisory lock is available. This memo does not claim that any of these cannot carry such frames. It specifies one profile: an envelope that carries an identity attribution pair, and a scope grammar in which the recipient set is an identity expression rather than a topic name.¶
This section is to be removed before publication as an RFC.¶
The author operates one delivery server and the session clients that
exchange frames through it. Those are the only parties known to the
author to implement this memo. No second implementation and no
deployer outside the author's organisation is known. The org: and
accord: scope forms of Section 6 are not claimed to be implemented
there. The reference deployment also carries frame kinds that this
memo does not define.¶
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 [BCP14] when, and only when, they appear in all capitals, as shown here.¶
A principal identity handle, written with a leading ~. Handle
syntax and tiers are not defined here. The syntax is that of
[MCPDNS], the absolute form is that of [IDPRONOUNS], and the
tiers are those of [IDCOMMITS]. A Sovereign-tier handle is
human-controlled (for example ~alice); an Instrument-tier handle
names an agent runtime (for example ~ai-example-model), and the
ai- prefix marks that tier. A handle in a frame field or a
recipient scope is the handle of the alter: URI [ALTER-URI]
without the scheme name. The scope ~alice corresponds to
alter:~alice.¶
A single JSON object [RFC8259] comprising an envelope, a kind discriminator, a structured payload and an identity attribution pair.¶
The string naming a frame's purpose. Section 4 defines three kinds; Section 10 states how others are defined.¶
The kind-specific structured body of a frame. Each kind has exactly one payload shape.¶
A string naming the set of recipients a frame is to be delivered to. Section 6 specifies the grammar. A scope is expanded against live subscriptions at delivery time and names no fixed endpoint.¶
The network-addressable system that accepts a submitted frame, expands its recipient scope, and emits the frame to the subscriptions the scope names. How a client finds the delivery server for a handle is outside this memo; [MCPDNS] describes one way.¶
A single Server-Sent Events [HTML-SSE] stream associated with one handle, over which the delivery server emits the frames whose expanded scope includes a session of that handle.¶
An expression supplied by a subscriber when it opens its per-handle stream, narrowing the frames emitted to that subscriber (Section 8).¶
A per-frame integer, in milliseconds, after which the sender declares the frame's content no longer operative. It is advisory to recipients and does not direct the delivery server to retain or discard the frame.¶
An agent-channel frame is a single JSON object [RFC8259]. An implementation receiving a frame MUST reject it if a REQUIRED field is absent, if a field carries a value outside the constraints below, or if an unrecognised field is present (Section 10).¶
envelope_version (string, REQUIRED)The wire-contract version. This memo specifies "1.0". A
receiver that does not implement the stated version MUST reject
the frame rather than attempt a partial parse.¶
frame_id (string, REQUIRED)A version 4 UUID [RFC9562] generated by the sender, unique to this frame. Receivers MAY use it to discard a duplicate delivery.¶
kind (string, REQUIRED)The frame's kind. A kind the receiver does not implement MUST cause rejection (Section 9).¶
sender_handle (string, REQUIRED)The handle of the sending principal, in absolute form. The
delivery server MUST verify that it matches the authenticated
identity of the submitting session and MUST reject a frame whose
sender_handle does not. How a session authenticates is outside
this memo.¶
recipient_handle (string, REQUIRED)The handle of the target principal, in absolute form. For a frame
addressed to the sender's own sessions, sender_handle and
recipient_handle are identical. The recipient scope (Section 6)
qualifies which sessions of recipient_handle receive the frame.¶
created_at (string, REQUIRED)An RFC 3339 [RFC3339] timestamp, with time zone, at which the
sender emitted the frame. The delivery server MAY reject a frame
whose created_at lies implausibly far from server time.¶
ttl_ms (integer, OPTIONAL)The frame's advisory time-to-live in milliseconds. When absent, the recipient applies an implementation-default horizon. It places no retention obligation on the delivery server.¶
payload (object, REQUIRED)The kind-specific body (Section 5).¶
Every frame carries the attribution pair that [IDCOMMITS] defines for commit trailers.¶
acted_by (string, REQUIRED)The Sovereign-tier handle of the human principal on whose behalf the frame is sent.¶
drafted_with (string, REQUIRED)The Instrument-tier handle of the agent runtime that composed the frame.¶
The pair lets a receiver distinguish a frame a human authored directly from one an agent runtime composed. The pair is asserted by the sender and checked by the delivery server (Section 12.2). A frame carries no signature. A receiver can rely on the pair only as far as it relies on the delivery server (Section 12.1).¶
This memo defines three kinds. Each replaces something a principal would otherwise do by hand with a file in a shared directory.¶
agent_advisoryA session announces what it is doing, for example that it is about to edit a named file, or that it is operating in a named working tree on a named branch. The default recipient scope is the sender's own sessions.¶
agent_broadcastA session announces a completed event other sessions should know of, for example that a branch was merged or that a sibling's working tree is now stale. It carries a coarse event class so a subscriber can filter without parsing the body.¶
agent_handoverA session passes work to another session, carrying the prose a principal would otherwise place in a shared temporary file and a list of pointer references (file paths, change-request references, working-tree paths).¶
No frame of these kinds compels a recipient to act. A recipient that ignores a frame remains conformant.¶
A frame whose payload does not satisfy the shape for its kind is
malformed and MUST be rejected.¶
advisory_text (string, REQUIRED, 1 to 2048 octets)What the sender is doing.¶
file_refs (array of strings, OPTIONAL)Files the advisory concerns.¶
worktree (string, OPTIONAL, up to 512 octets)The working-tree path the sender operates in.¶
branch (string, OPTIONAL, up to 256 octets)The branch the sender is on.¶
previous_session_id (string, REQUIRED, 1 to 128 octets)An opaque identifier for the handing-over session.¶
next_session_id (string, OPTIONAL, up to 128 octets)An identifier for the session that claims the handover. Absent at emission; a claiming session populates it by a subsequent frame.¶
handover_body (string, REQUIRED)The handover content.¶
pointer_refs (array of strings, OPTIONAL)File paths, change-request references, decision identifiers and working-tree paths the handover points at.¶
A frame is submitted with a recipient scope. The delivery server
expands it at delivery time against the live subscriptions
(Section 7) of recipient_handle. The sender names a set by its
identity shape, and the server resolves the membership.¶
~handleEvery session of the named handle. Equivalent to ~handle/*.¶
~handle/*All sessions of the named handle. When the handle is the sender's own, this reaches all the sender's concurrent sessions.¶
~handle/<prefix>*All sessions of the named handle whose instrument identifier
begins with <prefix>. For example, ~alice/ai-* reaches all of
~alice's sessions whose instrument identifier begins ai-.¶
~handle/<instrument>@<session-id>A single named session.¶
org:<org-handle>/members/*All sessions of all recognised members of the named organisational identity substrate.¶
org:<org-handle>/members/<role>/*All sessions of recognised members holding the named role.¶
accord:<peer-org-handle>/grant:<grant-scope>All sessions of the named peer organisation reachable under an Identity Accord [IDACCORD] grant of the named grant scope.¶
A delivery server MUST refuse a scope the submitting session is not
authorised to address. A session MUST NOT submit a frame to a scope
naming a handle other than recipient_handle, and MUST NOT submit
a frame to an org: scope of an organisation that does not recognise
the sender as a member. A session is authorised to address an
accord: scope only where a corresponding Accord grant exists, as
[IDACCORD] describes the grant, and the delivery server's refusal
above applies to a scope without one.¶
A delivery server MAY decline to implement the org: and accord:
scope forms, in which case it MUST reject a frame carrying one with
the scope-unimplemented error of Section 9 rather than silently
dropping it.¶
Each handle is associated with one per-handle Server-Sent Events stream [HTML-SSE]. A session opens the stream by an authenticated request to the delivery server. The stream is unidirectional, from server to subscriber; a session sends a frame by a separate authenticated submission.¶
On a submission the delivery server:¶
validates the frame against Sections 3, 4 and 5, rejecting a malformed frame per Section 9;¶
verifies that sender_handle matches the submitting session's
authenticated identity and that the session is authorised to
address the recipient scope (Section 6);¶
expands the recipient scope against the live subscriptions of
recipient_handle; and¶
emits the frame as a Server-Sent Events event on the per-handle stream of each subscription the expansion names, subject to that subscription's filter (Section 8).¶
A frame whose expanded scope names no live subscription is accepted without error and delivered to no subscriber. The submission result reports the count of subscriptions the frame was emitted to. A sender can observe an empty fan-out from that count.¶
The delivery server SHOULD emit a periodic keepalive comment so that intermediaries do not close an idle stream, and a subscriber SHOULD treat a prolonged absence of both frames and keepalives as a dropped stream and re-open it.¶
Each emitted event carries the Server-Sent Events id field. A
subscriber re-opening a dropped stream MAY supply the id of the
last event it received in the Last-Event-ID request header. A
delivery server MAY resume emission after the named event where it
retains recent events; otherwise it resumes from the current stream
position. A subscriber MUST NOT assume gap-free resumption.¶
Once the delivery server has emitted a frame to the subscriptions its scope named, this memo places no further obligation on the server with respect to that frame. Whether, and for how long, a server retains delivered frames is an implementation matter outside this specification.¶
A subscriber MAY narrow the frames it receives by supplying a filter
expression when it opens the stream, carried as a query-string
parameter on the stream-open request. This memo names the parameter
filter; an implementation MAY use another name.¶
A filter expression is a comma-separated list of key:value
clauses. A frame is emitted to a filtered subscription only if it
satisfies every clause. An empty or absent filter matches every
frame.¶
kind:<kind>Matches frames whose kind equals the named value. A kind the
delivery server does not implement MUST cause the stream-open
request to be rejected, as a misspelled value would otherwise
silently match nothing.¶
sender:<~handle>Matches frames whose sender_handle equals the named handle. A
value that is not an absolute handle MUST cause the stream-open
request to be rejected.¶
content_type:<value>Matches frames whose payload carries a content-type field equal to the named value. No payload schema in this memo defines such a field. The clause matches no frame until one does.¶
tool:<tool-class>Matches frames emitted by a session of the named tool class.¶
org:<org-handle>Matches frames scoped to the named organisation. Where the org:
scope form is not implemented, the clause matches no frame.¶
A clause that is parsed but not yet effective MUST NOT widen the stream.¶
An unrecognised filter axis MUST cause the stream-open request to be
rejected with the filter-axis-unknown error of Section 9. A filter
is a narrowing instruction the subscriber relies on, and a typo that
silently disabled it would be a privacy failure.¶
The delivery server performs the filtering.¶
A delivery server that rejects a submitted frame or a stream-open
request MUST return a machine-readable error. The error is a JSON
object carrying a stable code string, a field naming the
offending field where one applies, and a human-readable message.¶
envelope-version-unsupportedThe frame's envelope_version is not implemented.¶
kind-unknownThe frame's kind is not implemented by the receiver.¶
payload-kind-mismatchThe frame's payload shape does not match its kind.¶
field-missingA REQUIRED field is absent. field names it.¶
field-invalidA field carries a value outside the constraints of Sections 3 to 5.
field names it.¶
field-unknownThe frame carries a field outside the specified set (Section 10).
field names it.¶
sender-identity-mismatchAn identity the frame asserts does not match the submitting
session's authenticated identity. field names which one:
sender_handle, acted_by or drafted_with.¶
scope-unauthorisedThe submitting session is not authorised to address the supplied recipient scope.¶
scope-unimplementedThe scope is well-formed but the delivery server does not implement that form.¶
filter-axis-unknownA stream-open filter clause names an unrecognised axis.¶
filter-value-invalidA stream-open filter clause carries a value invalid for its axis.¶
A rejection MUST NOT result in a partial delivery: a frame is either fully validated and entered into scope expansion, or rejected and emitted to no subscriber.¶
The frame object does not admit extension fields. A receiver that
finds a field outside the set specified in Sections 3 to 5, or in
the payload shape of a kind it implements, MUST reject the frame with
field-unknown. A new envelope field is introduced by a new
envelope_version.¶
The set of kinds is open. This memo defines three. Another
document MAY define a further kind by specifying its kind string,
its payload shape, its default recipient scope and its error
behaviour. Such a definition adds no field to the envelope. A
document defining a kind SHOULD choose a string that does not collide
with a kind defined here or elsewhere. A receiver that does not
implement a kind rejects it with kind-unknown (Section 9). The
frame schema of Section 3 and the scope and filter grammars apply to
every kind.¶
This memo requests no IANA action.¶
The frame is a JSON object [RFC8259] carried over Server-Sent Events [HTML-SSE]. It introduces no media type, URI scheme, port or DNS resource record. The kind strings, scope forms, filter axes and error codes are constants of this specification. If other documents begin defining kinds, a later revision could propose a registry for them and specify its registration policy.¶
The delivery server is trusted wholly. It authenticates submitters, reads every frame in the clear, decides which live sessions belong to a handle and decides who receives each frame. Nothing in this memo protects a frame end to end between sessions, and a frame carries no signature. A compromised or curious delivery server can read every frame, forge any frame and any attribution pair, and withhold or replay frames. A network attacker is assumed to control the transport between a session and the server. The submission and the stream MUST be carried over an authenticated, confidential channel. This memo specifies no defence against a hostile delivery server.¶
A design can do the same job of reaching every session of one principal with a delivery service that cannot read content. MLS Virtual Clients [MLS-VC] lets several emulator clients take part in an MLS group under a single leaf. The delivery service delivers each message to all of them and, because MLS encrypts the content, does not need to read it. The protection covers content only, as the service still knows which clients to fan out to. This memo takes the other side of that trade, and a deployment that needs the delivery server kept out of frame content has to look to a design of that kind.¶
The memo defends against a submitting session that lies about its identity or addresses a scope it is not entitled to reach, and against a party that replays or floods frames. It does not claim an advantage over a local socket or a message broker where the sessions share a host and a trust domain.¶
A frame asserts a sender_handle and an acted_by / drafted_with
pair. The delivery server MUST authenticate the submitting session
and MUST verify that sender_handle matches the authenticated
identity before the frame enters scope expansion. It MUST also
verify that acted_by is the Sovereign-tier handle the session is
bound to, and that drafted_with matches the session's own
Instrument-tier handle. A frame failing any of these checks is
rejected with sender-identity-mismatch.¶
A recipient cannot check these assertions itself. It sees only what the server emits.¶
A single frame to a broad scope (org:<org-handle>/members/*)
expands to many emitted events, and a holder of a member credential
could submit at a high rate. Delivery servers SHOULD rate-limit
submissions per authenticated sender, SHOULD cap the cardinality of a
single scope expansion and SHOULD apply the size bounds of Section 5.
Rate limiting is a recommendation here and is not specified further.¶
A party on the transport could re-deliver an aged frame, for example
replaying an agent_advisory so that a departed session appears
active. A recipient SHOULD discard a frame whose created_at plus
ttl_ms lies in the past and SHOULD de-duplicate by frame_id.¶
The submission result of Section 7.1 reports how many subscriptions a frame was emitted to. A sender submitting to successively narrower scopes can infer how many sessions of a handle, or of an organisation's members, are online. A delivery server SHOULD consider reporting a coarsened count.¶
Every frame carries acted_by and drafted_with, and both are
REQUIRED. Every recipient in a fan-out learns the sending
principal's identity and the runtime that composed the frame. An
org: or accord: scope discloses the pair to every member of the
addressed set. This memo provides no anonymous option. A sender
wishing to limit exposure SHOULD use the narrowest scope that reaches
its recipients.¶
A frame delivered and not retained leaves no standing record on the delivery server beyond its transient processing. Where an implementation retains delivered frames for stream resumption, the retained frames are a record of who said what to whom. The retention horizon, access controls and deletion behaviour of that store are for the implementation to specify and to surface to the principals whose frames it holds.¶
draft-morrison-agent-channel-fan-out-05 (November 2026, working revision):¶
The Instrument-tier marker is ai-, in place of cc-, as in
[ALTER-URI]. The old marker named one vendor's tool.¶
References to other drafts cite the revisions current at posting,
with their titles at those revisions. The frame_id field cites
RFC 9562 for the version 4 UUID. Prose tightened.¶
Narrowed to the envelope, the recipient-scope grammar, the subscribe filter and the delivery rules. Three kinds remain (advisory, broadcast, handover).¶
Removed the lock-shaped, question-and-answer, decision-request, diagnostic and convergence kinds with their payload schemas, the provenance block, the reference tool surface, the section on composition with companion memos, and the discussion of the companion memo on coordination.¶
The kind set is open; Extensibility states how another document defines a kind. The envelope remains closed to extension fields.¶
Added Implementation Status, Existing Mechanisms and Venue, and a threat model stating that the delivery server is trusted wholly.¶
The threat model in Security Considerations says the delivery server reads every frame and decides which live sessions belong to a handle, and cites MLS Virtual Clients [MLS-VC] as a design that reaches all sessions of one principal with a delivery service that cannot read content.¶
Companion drafts moved from normative to informative references.
Normative references are BCP 14, RFC 3339, RFC 8259 and the
Server-Sent Events specification. The requirement that a session
not address an accord: scope without an Accord grant is restated
as a description citing [IDACCORD], under the general rule that a
delivery server refuses a scope the session is not authorised to
address.¶
The threat model adds that the submission and the stream MUST be carried over an authenticated, confidential channel.¶
draft-morrison-agent-channel-fan-out-04 (November 2026):¶
Prose tightened.¶
States that the cc- prefix sets the Instrument tier, as
[ALTER-URI] and [IDCOMMITS] do.¶
The content_type filter axis is listed with the
forward-compatibility axes.¶
draft-morrison-agent-channel-fan-out-03 (October 2026):¶
Prose rewritten against the drafting rules. No change to any field, kind, scope form, filter axis, error code or procedure.¶
References to other drafts pin their current posted revisions.¶
draft-morrison-agent-channel-fan-out-02 (October 2026):¶
Editorial, with one tightening: the context check was made categorical. Cited BCP 14 as a single reference, replaced the WebSockets citation with [HTML-SSE] for Server-Sent Events, added a reference for RFC 3339, and corrected the sources cited for the handle namespace and tiers.¶