Expand description
A Swarm broadcast to agents on a LAN peer
(docs/specs/SPEC_SWARM_REFINEMENTS_2026_10_17.md §4.2).
On this machine a broadcast is the user’s own turn. On another machine it
can’t be: the LAN key that delivers it is readable by anything on the
network and names an instance, not a person
(SPEC_SWARM_REMOTE_AGENTS_PLATFORM_TAG_AND_SELECTION_2026_10_03.md §6). So
it goes as a jekt from this instance, signed with this instance’s own LAN key
under a reserved sender name (instance_sender_id). The receiving instance
checks it as it checks any agent’s LAN jekt
(SPEC_JEKT_LAN_TIER_SIGNING_2026_08_15.md): it asks the LAN peers for the
sender’s public key, which this instance’s /agentmux/reactive/agent?id=
answers, pins it once a trusted install vouches for it, and marks the message TRUST=lan-verified.
It claims no user authority: normal tier, from this instance, in its own
words.
Constants§
- REMOTE_
KEY_ PREFIX - The prefix of a Swarm selection key for an agent on another machine
(the frontend’s
remoteAgentKey).
Functions§
- broadcast_
text - What the receiving agent reads: where it came from and that it went to every agent selected, then the message.
- instance_
sender_ id - This instance’s sender name on the LAN:
swarm-<host>-<hash>, a valid agent id (letters, digits,-, at most 39 characters). The hash of the hostname and channel keeps two instances apart, including two machines with one name, and stays the same across restarts, so a peer’s first-use pin of its key holds. - parse_
remote_ key remote:<host id>/<channel>/<name>as(section key, agent name), the section key being<host id>/<channel>.Nonefor any other key.- route_
for - The route to the LAN instance a section key names, from the hosts the Swarm
lists.
Nonewhen it isn’t a LAN instance, isn’t listed, or has gone stale. - send
- Sends one signed request to the peer and says whether it delivered, with the peer’s reason when it didn’t.
- sender_
lookup /agentmux/reactive/agent?id=’s answer whenidis this instance’s own sender: its name and public key, so a peer can verify a Swarm broadcast from here.Nonefor any other id, and before the first LAN broadcast minted the key, when there is nothing to verify.- signed_
request - The signed request for one agent.
Nonewhen the private key is unusable. - this_
sender_ id - This instance’s own sender name.