Open the console

The bots protocol

Status: describes the protocol as implemented by the peachy-protocol 0.3.0 release. Revision: 1, 2026-11-22. Editor: Peachy Social, Inc.

This document specifies how a bot takes part in sealed conversations: its account and its one device, the pdc3 credential that names it a bot, the keys of a group's own state that say which bots a chat holds, what a seated bot may send, how history is shared with it, which frames are addressed to a bot leaf, and the rules the MLS core applies to commits that touch a bot. It also states the server's part: throttling, gates, version refusals and the format floor.

A bot is a program its owner, a person or an organization, runs outside the server. It holds an MLS leaf like any member's device and reads exactly what is sealed to it. It joins a chat as a person does: a member adds it, it reads what is sent after it joins, and it reads earlier messages only if a member shares their own.

It builds on Sealed messages, Device identity, Delivery and MLS core.

Conventions#

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, RFC 8174) when, and only when, they appear in all capitals, as shown here.

  • ‖ is byte concatenation. SHA-256(x) is the 32-byte digest.
  • base64url is the URL-safe alphabet without padding (RFC 4648 §5).
  • A group id is the conversation's UUID string; where it is hashed, its UTF-8 bytes are hashed (Conventions).
  • Every JSON format here is parsed strictly, as reactions are: a duplicate key (compared after unescaping, at any depth) or a trailing comma makes the payload not one of these. An unknown extra key is ignored unless a section says otherwise.
  • A person-to-bot chat is a direct chat (dm: true) with bot: "dm" whose tree holds exactly one person, on any number of devices, and at most one bot leaf. Fixture: mls/fixtures/formats/bot-addressing.json (personToBot).
  • A bot leaf is a leaf whose credential is a pdc3. Every other leaf is a person's.
  • GetBot answers, by bot id, a bot's owner, listing, status (BotStatus) and revoked_devices, each with the time it was revoked.
  • Who sees bots. Apart from a GetBot without a session, which answers for a listed bot, the server serves bot facts only to bots, browsers and Peachy's own apps at or above the bots build floor, and member-device duties beyond the core's own fall only on those. Another client still reads a pdc3 leaf as a bot (member_kind), but its signed-in GetBot is answered not_found, and what it sends to the chat reaches the bot.

Bot accounts#

A bot is an account of kind bot: User.kind is USER_KIND_BOT, and User.bot carries its owner, seal, status and development mark. It has no phone number, PIN, contact discovery or account store. An organization's account that no code runs is USER_KIND_ORGANIZATION_ACCOUNT, with no device (Accounts). A bot's id is its actor id: every bot id on the wire, the a of a bots entry and the user id its device registers under are one value.

  • One device. The server refuses a second registration (failed_precondition). Resetting the bot's keys revokes the device and lets a new one register.
  • Its own session. A bot redeems a one-time connect code its owner mints (RedeemBotConnectCode) for a bearer token of its own, never a person's access key. Its session may call only what one device needs, plus GetBot, GetUsers, GetUserByHandle and GetMinSupportedVersion and, outside the published subset, the call rpcs and its own command list; anything else is refused (permission_denied, peachy-refusal: bot-session).
  • One running copy. A client that runs a bot names its process in x-peachy-bot-instance (32 lowercase hex characters, new each time it starts) on every request with the token. While one instance holds the bot, a request naming another is refused (failed_precondition, peachy-refusal: bot-running-elsewhere), until the holder has been silent for 45 seconds or its StreamEvents stream closed. Only the holder's own requests keep its place, so a running client MUST send a request at least every 20 seconds (BeatStream when idle). A request that names no instance is not fenced. A client SHOULD stop when it is refused this way, and when it starts SHOULD wait a while for the other instance to stop.
  • It writes first as a person does. A bot MAY found its own person-to-bot chat with one person, and MAY add a person to a group it is in wherever any member may add, never in a group run by its admins. It fetches their key packages with FetchKeyPackages, never another bot's. The server refuses that fetch, before handing out any key package, for someone outside the bot's reach (failed_precondition, peachy-refusal: bot-out-of-reach, or bot-development-only), and weighs a founding against the stranger cap: the owner's one daily allowance of new people for all its bots (Throttling, "First contact"). A bot never seats a bot, founds a group, removes anyone else or changes a chat's state outside its own founding: a SubmitCommit from a bot session that welcomes a bot, or at epoch 0 founds anything but its chat with one person, is refused (peachy-refusal: bot-session). While the server holds the bots.meta kill, it refuses a bot's founding (that fetch and its epoch-0 commit) with failed_precondition, peachy-refusal: bots-meta-killed; an add still goes. Someone who blocked the bot's organization is answered as an unknown account.
  • Its own account key certifies its device as a person's does (The account identity key).
  • No access key gates it. A sessionless send naming a bot's device needs no key for the bot, and a key presented for it is ignored. A device MUST NOT fall back to an identified send for lack of a bot's key. A bot still registers a 16-byte access key and carries it as ak in a hello after each join (Hellos).
  • Owner. GetBot names the owner, a person or an organization (also User.organization for an organization's bot). A device MUST take the owner from GetBot, never from anything a bot sends. A device SHOULD refresh what it holds about the bots it knows on a timer of its own, at most once an hour, and never because a chat was opened. STATE_DOMAIN_BOTS pokes a bot's own session when its testers change.
  • Owner changes take effect 2 hours late. A person's bot may move, once, to an organization that person is an admin of. While the move waits, GetBot names the next owner in pending_owner and the time it takes over in effective_at. A device MUST take pending_owner as the owner from effective_at on, from what it already holds and without a fetch, so every member's device pauses a seated copy at the same moment. A seated copy no admin kept (The core's bot rules, rule 3) is removed by an admin's device 14 days after effective_at. A bot's old handle is held for 30 days after a rename or its deletion. Fixture: mls/fixtures/formats/bot-addressing.json (ownerChange).
  • Reach. A bot's key packages are served only to callers its listing lets reach it, never through the anonymous door. After first contact the bot applies its reach itself: to invitations, to the adder of a group it was seated in, and to messages in its own chat.
  • Development bots. A new bot is in development: unlisted, and reachable by its owner and at most 10 testers. To anyone else GetBot answers only its id, name, handle and development, which a device reads as no owner change and an active bot.

Lifecycle#

A device learns of a bot's status and revoked devices on its hourly refresh and acts on them then, after a random wait of 0 to 3 seconds, never because a chat was opened, so a change takes up to an hour to reach members' devices. The server acts at once.

  • Paused (BOT_STATUS_PAUSED), by its owner or for review: devices address it only commits and Welcomes. An owner cannot resume a pause set by review (peachy-refusal: bot-under-review).
  • Device revoked or keys reset (the device in revoked_devices): members' devices remove its leaf, and a new device comes back only by an add (The core's bot rules, rule 4). An organization's bot is revoked this way when the admin who linked it stops being one.
  • Suspended (BOT_STATUS_SUSPENDED), by Peachy's review or with its organization: its device is revoked and members' devices remove its leaves.
  • Deleted (BOT_STATUS_DELETED) by its owner: its device is revoked and its handle held 30 days. By id GetBot answers one out of development with its card, that status and its revoked device; otherwise it is not found. A deleted development bot's leaf stays until a member removes it.
  • Its owner's account deleted or banned: its bots are deleted, and an organization's are when only banned admins remain.

The old copy is told why. A request with a revoked bot token is refused unauthenticated with peachy-refusal: bot-revoked and a peachy-revoked header naming the reason: owner_deleted, deleted, suspended, org_deleted, org_suspended, move_cancelled (its device is kept), keys_reset, rotated, revoked or replaced. A token revoked because the admin who linked it stopped being one is refused with peachy-refusal: bot-unlinked, unless the same act suspended the organization. Once the bot is gone (owner_deleted, deleted, org_deleted), every earlier token of it is told that reason. A client reads an unknown reason, or none, as a token that no longer works. After rotated, revoked, replaced or move_cancelled the device stays: a store that holds it redeems a new connect code for the same bot and keeps its keys, and RegisterDevice with the same install id re-registers the kept device under the new token. That redeem names the bot the store holds (expected_bot_id): a code for another bot is refused (failed_precondition) before any token is revoked, and stays unused.

The bot credential#

People stay on pdc1 (Format). A bot's device gets a pdc3: the same token, prefix and rules, with one more payload key. (pdc2 is never issued.)

pdc3.<base64url(payload JSON)>.<base64url(64-byte Ed25519 signature)>

The payload keys, in this order: v, kid, actor_id, device_id, device_key, account_key, account_sig, kind, iat, exp.

KeyTypeMeaning
vinteger3. A pdc3 token whose v is anything else is unsupported_version.
kindstring"bot". Any other value is malformed.

The other keys are those of pdc1. A pdc3 MUST carry the account certificate: an empty account_key or account_sig is malformed at every door, the bot's own included. Any other key is malformed, owner_kind and owner included, and so is a pdc1 token carrying kind. Verification is otherwise the pdc1 table (Verifying a credential), and a verdict that accepts a pdc3 adds kind.

The credential says only that the leaf is a bot's. Who owns the bot is GetBot's word: there is no owner signature, and a member MUST NOT present ownership as proven by cryptography.

Fixture: mls/fixtures/credentials.json, the pdc3/ cases.

The chat's bot keys#

The group's own state (The value) gains these keys. Every key that is unreadable reads as its closed value, never as permission. An absent key is not unreadable: it reads as the value every chat held before bots existed.

KeyValueAbsent or unreadable
bot"off", "member" (bots may be added), or "dm" (a person-to-bot chat, only with dm: true, and set only in the commit that first sets the group's state). "member" is never written with dm: true. On is written by leaving the key out; Off is written "off". A device MUST NOT write "invoke".Absent, or "invoke": "member" outside a direct chat; in a direct chat between people, no bot. Unreadable (another value, another type, "dm" outside a direct chat, "member" in one): "off".
pol.botWho may seat a bot, "any" or "adm", inside pol (Policy)."adm"
botsThe seated bots: at most 8 entries {a, by, at, o, gr} with distinct a.Unreadable: every bot leaf is unnamed, and a device addresses none.
batThe largest at any seating in the group was written with, a non-negative integer at most 2^53 − 1 (as is every entry's at). Written only by the commit that seats a bot, as that entry's at.Absent: 0. Unreadable: no bot can be seated.
bapIn a community's own group only: bot approval, {on, ask, why, ok}; ok holds at most 100 distinct bot ids, the others are booleans.Absent: no approval. Unreadable: on, with nothing approved.
rbInside a group's inv, and each dir entry of a community's own group: at most 8 handles ([a-z0-9_]{3,30}) of the bots that read that group; never in the inv of a community's group or room, an event chat or a direct chat. A hint only: a joiner decides from the Welcome's tree. The commit that seats or removes a bot updates inv's rb; the adder's device updates dir in a separate commit.None

A bots entry: a the bot's actor id; by the member who added it; at when, in unix seconds, and the seating's own key: the adder writes the later of now and the group's bat + 1, at most 2^53 − 1, and sets bat to it in the same commit, so no two seatings in a group share an at below that ceiling (seatingAt in mls/fixtures/formats/bot-meta.json); o the owner GetBot named when it was added; gr its grants, a sorted, repeat-free subset of call, post, react. An unknown key inside an entry is ignored. One bad entry makes the whole list unreadable.

Only where every member reads it. A core before 0.3.0 refuses a plain member's write of bot ("off" included) under pol.meta: "adm", even under pol.acp: "any", forking the writer off. A device writes it only when both hold:

  1. every leaf advertises 0xF1AB (groupMemberSupportsBot true for every roster position, Bot doors), or the group's pol.meta is "any" or absent, or the writer is in adm; and
  2. GetMe.feature_gates lists "bots.read" (Gates).

Otherwise the write is deferred, re-checked whenever the group's roster or a member's leaf changes, and made once both hold.

The leaf self-update. 0xF1AB appears on a leaf only once its device has sent a leaf made by a 0.3.0 core. So a client on a build that reads bots sends one ordinary MLS self-update commit in each group whose own leaf lacks the capability: on joining a group, 0 to 60 seconds later at random; and once on the first launch of that build, spread over twelve hours after its first sweep of the groups by a hash of the device and the group (leafUpdateDue). Opening a chat triggers neither the update nor the re-check. Fixture: mls/fixtures/formats/bot-addressing.json (tagWrite, leafUpdate).

A chat whose state seats a bot leaf requires the capability 0xF1AB (peachy_bot_aware, Extensions and capabilities) on every leaf, so a device that does not read these keys can never be in a group that holds a bot. Who may change each key is The core's bot rules. Fixture: mls/fixtures/formats/bot-meta.json.

In an admin-run group only admins add#

In a governed group, where only an admin's device commits (The group's policy), only an admin adds anybody, a bot included, whatever pol.add and pol.bot hold. A member's core proposes no add but of its own person's new device (propose_add), and an admin's device commits no other (commit_proposals). Elsewhere who may add a bot is pol.bot.

Mentions#

A mention of a bot is an ordinary mention of its handle (Keys of a frame: m), with no frame, key or lane of its own.

Commands. A bot's listing names its commands. A command is sent as @{handle} /{name} and the rest of the message: a mention of the bot it names. A bare /name, a message whose words start with /{name} and mention no bot, is sent as words. It runs on exactly one bot: the one with the newest at in bots (a tie goes to the later entry) among the seated bots whose listing has name. Each bot judges this itself from the other seated bots' GetBot cards (one that can't be read counts as not having it). A reply to a bare /name is not a reply to a mention: in a group it needs post (What a seated bot sends).

Adding a bot from a tag. A device MAY offer a typed @handle of a bot it already holds as an add, fetching nothing because of what is typed. An add requires that the chat's bot reads "member", pol.bot lets this person add, Advanced Chat Privacy is off, bots are not paused (Gates), the bot is approved where the chat's community approves bots (Asking for a bot), the person holds bots.reading, every leaf advertises 0xF1AB, and the chat is not a direct chat between people. The adder picks the grants among those the listing asks for; one it requires is always written. Where pol.post is "adm", post is written only when the bot requires it.

Consent. Before a person's first send in their own chat with a bot, and again when the bot's label_version changes, their device names who gets the message (Where messages go), sends nothing until they agree, and records consent (The person's bot settings). A bot replies as a person does (r and b).

Typing#

A bot sends the ordinary typing frame (Typing inside the group), and a member's device takes a seated bot leaf's typing whatever its grants. Typing is never addressed to a bot leaf.

"Didn't answer." A device MAY tell a sender that a bot didn't answer after 60 seconds with no transcript frame from it; nothing is sent. Fixture: mls/fixtures/formats/bot-addressing.json (receive).

What a seated bot sends#

A seated bot sends ordinary frames from its own leaf. What members' devices take from it depends on the grants in its bots entry:

  • Everything it posts on its own needs post: its own messages, and its replies to anything but a mention of it. A reply to a mention is always taken: a transcript frame whose r names a message that mentions the bot (by entity or a typed @handle), or the root of a thread holding one. Reactions need react; ring notes, call records and its Joined need call. Without the grant a member's device drops the frame.
  • Where pol.post is "adm" (Policy) a bot is never an admin: a member's device drops a frame of its without r, and drops b from its replies. A bot drops a post from a member who may not post before it reaches its code.
  • Edits and deletes of its own frames are taken; of anyone else's, dropped.
  • A bot never sends history, seat answers, invitation answers for others, directory relists, resend bundles or group events; a member's device drops them.

A seated bot commits only path updates of its own leaf and adds of people where any member may add, and founds its own person-to-bot chat (The core's bot rules); it asks the core per group (commitsHere). In a governed group it commits only its own-scope key update and resync join (Own-scope commits, A device back in by itself), keeps no unconfirmed seat, answers no seat asks, confirms nobody and leaves by proposal. A commit refused with peachy-refusal: unstamped is final.

Everyone a bot adds gets the group as a message request, unless they asked in by its link or listing or the community's adm names the bot. It never adds someone the group's ban names. In a community's room (a group whose cm names the community) it adds only someone in the tree of the community's own group as the core pins it (pins), and only where the core seats that group's people into the room (ownerTreeSeats). A bot is on no roster, so it asks the server which of its groups is a community's own (an rpc outside the published subset); holding none, it refuses every room add. A bot leaves by asking to be removed (Leaving).

In a community's groups a bot changes no group info, removes nobody and never resets the group's link. A listed group's members, a seated bot included, hold its reader key lr. When a bot is removed from a listed group run by its admins, the first admin's device that removes it or sees the removal resets the listing to a new inbox and closes the old one (A listed group's inbox). A removed member can read a listed group's join asks until the next reset.

Its own person-to-bot chat#

A bot replies there with a transcript frame whose r names the person's message and b: true. A frame from a bot the person blocked is dropped, always. Any other transcript frame from the bot is an ordinary message once the person has ever written there or accepted its request, and before that a message request, answered as a stranger's. It is dropped instead when the person's botRequests is "none", or is "verified" and GetBot does not give the bot the seal (The person's bot settings).

Writing first. A bot MAY write first there, or found the chat (Bot accounts). Accept on its request is the one consent, the read notice's OK and the consent to its label_version; until then the person's devices address it as a paused bot.

A bot MAY leave a person-to-bot chat that has been idle 30 days, by asking to be removed; the person's device then founds a new one at their next message, without asking consent again while label_version is unchanged. A bot MUST NOT forget a person-to-bot chat it has not left. A message a bot sends again after a failed send reuses its client_message_id.

A post under a key. A bot posting for something outside it that retries (a webhook) may name the post with a key of its own. The frame's i is then HMAC-SHA256(k, "peachy bot post key v1" ‖ 0x00 ‖ bot_actor ‖ 0x00 ‖ group_id ‖ 0x00 ‖ key), the first 16 bytes with the UUID version-4 and variant bits set, where k is SHA-256 of "peachy bot post secret v1" and the device's 32-byte key seed, and bot_actor is lowercased. Its client_message_id is the transcript retry key of that i (Idempotency) under the retry secret SHA-256 of "peachy bot retry secret v1" and the same seed. So the same key in the same chat is the same frame: the bot sends it once while its send log holds it (14 days), the server places it once, and a member's device that already filed a frame of that sender under that i drops the copy. The key is never sent.

Fixture: mls/fixtures/formats/bot-addressing.json (receive, dmFile).

Files#

A bot sends files as a person's device does (Attachment pointers). A member's device treats a bot's frame with attachments and no words as a message.

  • Upload. CreateUpload with UPLOAD_KIND_FILE, SEALED_CLASS_ATTACHMENT, content type application/octet-stream and the exact ciphertext length, then the PUT with content-disposition: attachment. Anything else from a bot session is refused (permission_denied, peachy-refusal: bot-session), as is a paused bot's upload (peachy-refusal: bot-paused). The object records no account and is deleted 30 days after upload.
  • Limits. A person's (90 MiB of plaintext a file, 100,000,000 bytes an object, 32 pointers a frame, a person's mint rate), and 2,000,000,000 bytes of uploads an hour, refilled evenly. Past either the server refuses with resource_exhausted, retry-after in seconds and peachy-limit (uploads or upload-bytes).
  • Pointers. m is the file's real type. For image/jpeg, image/png, image/webp and image/gif, w and h come from the image's header, turned by a JPEG's EXIF orientation. A sender MAY leave c "". A photo or video carries f ""; any other file carries its name.

Calls#

With call granted, a bot takes part in a chat's group calls as a person's device does (calls.md), and hears and sees only the people whose devices grant it their media key. It never rings anyone, and never takes part in a direct call or a person-to-bot chat's.

Joining#

A bot holds no join tokens: IssueCallTokens refuses a bot session (permission_denied, peachy-refusal: bot-session), and the bot joins and keeps its place under its own session, through call rpcs outside the published subset. It sends a signed Joined naming its own leaf, answers others' as every device does (Signaling), and beats every 10 s. A bot may join any call live in a chat that grants it call. The server refuses a paused bot's join and heartbeat (peachy-refusal: bot-paused), signs out a suspended or deleted bot or a revoked token (unauthenticated), and puts any of them out of every call by that call's next heartbeat. Only its session drives its participant, media included, and a join ends its earlier participant in that call, though two joins at once can both stand. It joins only when its listing requests call (permission_denied, peachy-refusal: bot-call-not-listed).

What a member's device takes from a bot. A member's device takes a bot leaf's call signals only while its bots entry grants call at that moment; without it the signal is dropped and the participant is out of that call, never bound again there, with the device's media key rotated past its leaf. Even with call it takes only a bot's Joined, Left, MediaKey and Media, and an Offer that starts a call in answer to a person (Starting a call). Fixture: mls/fixtures/formats/bot-addressing.json (callSignal).

A bot is no company. A bot's Joined answers a call as a person's does, but a group caller who hangs up with only bots there still cancels the ring (HangUp { alone }), and the ring cap (Ringing) counts people only. A bot leaves a call that holds no person, after at most 2 minutes in a call it started; past a call's first 2 minutes the server counts a bot only while a person is live in it. When a commit takes call away, or GetBot says the bot is paused, suspended or deleted, members' devices in the call put it out, and evict it at the server as a member's removal does (Removing a bot from a call): when its Joined named its own participant, it stays out of that call, and starts none in that chat for 10 minutes, even once it is active again. The pause, suspension or revoked token itself sets no keep-out: one that no member's device in the call saw keeps the bot out of nothing.

Starting a call#

A bot starts a group call only in answer to a person in that chat, and joins the call already going on there if there is one.

  • In answer. Only within 10 minutes of a person's message in that chat that mentions the bot (a command included) or replies to one of its messages. A member's device takes a bot's Offer only when it filed such a message from a person within the 10 minutes before the Offer, timed by the server's stamps on both, so the server, not the device, vouches for the 10 minutes.
  • For someone who may post. Starting a call is posting (pol.post): every member's device applies the posting rule to every Offer, a bot's judged by its asker.
  • Never a ring. A member's device drops a bot's Offer whose ring is true.
  • Limits. At most 10 starts and 20 joins a day per bot (resource_exhausted, with a retry-after). A bot removed from a call in a chat, by a member or by members' devices putting it out (above), starts no call there for the next 10 minutes (peachy-refusal: bot-removed, with a retry-after in seconds), unless its Joined named another participant (Removing a bot from a call); devices that sent or honored a Remove still drop its Offer.

Fixture: mls/fixtures/formats/bot-addressing.json (callSignal, with askedAgoMs).

Media#

A bot sends two tracks, named with 16 random bytes each, audio then video, both always published (Participant media keys, The media frame); video VP8, audio Opus at a constant bitrate with DTX off and no audio-level header extension. Its Media sets presenting while its video is a rendered view, which a receiver draws whole.

What a bot receives#

A person's device grants its media secret to a bot only in a MediaKey addressed to the bot leaf, under the rules of Addressing bot leaves and The read notice. The core seals it to no bot leaf by default: the device names the bots it addresses for the call (grantBots on the call media door, by account id); a bot named later is advanced to by the one-step ratchet, and one no longer named makes the device rotate past its leaf. grantBots is device-local and changes no frame.

Its tile and its join line#

A device shows a bot's owner's seal only when GetBot marks the owner verified, and SHOULD show once per bot per call that it joined.

Removing a bot from a call#

Any person in the call removes a bot from it; only admins remove people. The device sends a signed Remove naming only the bot's participant, then evicts it at the server. When that id is the bot's own, the server ends every participant of the bot in the call and refuses that bot's join there (peachy-refusal: bot-removed), even if it left or joined again before the removal landed. The server takes a bot's eviction from anyone holding the chat's send key, in the call or not. Devices that honor the Remove put the bot out, stop binding that bot's leaves whatever participant id a later Joined names, rotate past its leaf, and drop the bot's Offer in that chat for 10 minutes. Until those rotations land, the bot still holds the media keys it was granted. A device that joins or reloads after the removal doesn't learn of it, and no device checks which participant a bot's Joined names, so a bot whose Joined names another id escapes the server's keep-out, and if that id is another bot's participant in the call, the server removes that bot instead. The bot stays in the chat. Fixture: mls/fixtures/formats/bot-addressing.json (callRemove).

Limits and spam#

The call limits are those of Starting a call.

The calls switch#

The switch is the rollout remote flag bots.calls (Remote flags); a client hands it to its core with adopt_remote_flags. The server may switch off bots in calls (peachy-refusal: bot-calls-off), refusing a bot's start and join and putting out every bot already in a call. While the switch is off, or not yet received, a device binds no bot's Joined and grants a bot no key.

History to bots#

A seated bot reads what is sent after it joins. Earlier messages reach it only when a member shares their own (History shares), as for a person: the adder is offered nothing, the last 30 days or everything when they have a message of their own from before the add, and a later member may share too.

  • Only the sharer's own words. A share that names a bot holds only the sharer's own messages, dated before the bot's latest seating (its bots entry's at), never a message with a timer, and never words the sharer was handed in a share. With no seating known, it holds nothing.
  • It names only that bot. It is an ordinary person share: version 2, "to": "person", for the bot's actor id, apart from any share to people the same add seats.
  • The bot keeps to the same rule. It files only a share whose for or with names it, and from it only entries whose author is the share's sender (from the MLS credential), from before its latest seating (an at in a whole second strictly earlier than the second of the seating), with ids it holds nothing for, and no id named twice. An entry missing an id, an author or a time is dropped.
  • Nothing of an Advanced Chat Privacy chat's past is shared, and nothing is shared with a bot the sharer blocked.

Fixture: mls/fixtures/formats/bot-history.json (fileForBot).

The person's bot settings#

A person's bot settings are records of the encrypted account store (Record values). A client that does not know these kinds and fields keeps them (Records a client cannot decode).

RecordFieldValue
accountbotRequests"verified" (only bots that wear the seal) or "none" (no bot's message request lands). Missing: anyone. Anything else is "none".
bot, keyed by the bot's actor idconsentThe label_version the person agreed to before their first send.
usedAtUnix milliseconds of their last message to it.
okChats"<group id>/<operator>" for each chat and operator where the person said OK to the read notice for this bot, or added it themselves; the operator is the bot's owner id at the time ("" when GetBot named none). An entry that is not a string, or names no operator, is ignored and kept. Forgetting a bot removes consent and usedAt, never okChats.
okCallsThe same form, for each chat where the person said OK to calls. Matched exactly as okChats is; every write keeps the other fields. Nothing removes an entry yet, so one bot's record reaches the record cap (WriteStore) at about 100 chats, or about 50 whose OK covered calls, and a write past it is refused as resource_exhausted.

A block of a bot, or of any organization's account, is the ordinary contact record's blocked, keyed by its actor id (Blocking).

The read notice#

Each member who did not add a bot says OK once, per chat, bot and operator, before their own device sends it anything. The notice holds while a chat other than a person-to-bot chat the person founded seats a bot that its bots names, and the person's bot record lacks "<group id>/<operator>" in okChats. The operator is the owner's id as the device takes it now (the pending owner from its effective_at on). The notice names the operator, and covers calls when the bot's listing requests call (or GetBot has not answered). OK adds the entry to okChats, and to okCalls when it covered calls, and sends one ordinary self-update commit there, signed in, which puts the person on the bot's roster (Throttling, "The roster"). An entry matches only exactly, so the notice holds again for a new owner once an admin keeps the bot. No notice is asked while Advanced Chat Privacy is on, bots are paused, or the chat is still a message request.

A mention asks first. A mention is no OK by itself. A message that mentions a seated bot whose notice still holds is not sent until the person says OK, and the OK's commit goes before the send is addressed. A message sent from outside a composer (a notification's reply) is no OK, and the bot is held for it.

Until the entry is in okChats, the person's devices address that bot in that chat as a paused one (Addressing bot leaves). Their devices send it no message and no history share.

Calls hold on okCalls. A device holds a bot out of a chat's calls (no ring, call signal or call record addressed to it, and no media granted) while it is held for messages, or while its listing requests call (or GetBot has not answered, or the chat grants it call) and okCalls lacks the entry. okCalls is written by an OK that covered calls, an OK asked at a call, an invitation's Accept whose line said calls, an add that granted call, and turning on the chat's call grant for the bot.

These also say OK, with no notice: adding the bot yourself; an admin keeping the bot after its owner changed (an OK to the new owner, once the keep lands); and accepting a request into a group whose invitation named the bot (inv.rb), for only the bots it named, and for calls only where it said so. The device keeps the invitation's rb with the accept, one per Join (two invitations to one group keep one each), each with the group's invite tag, from before the Join goes until the group's first read takes every accept under its tag. A Join that is refused (its answer doesn't land) or withdrawn (the invitation's Delete or Block, on any of the person's devices) drops its own accept and no other; leaving the screen after the answer landed drops nothing. A kept accept outlives a restart only while its Join is pending: its invitation reads answered Join, or the group it leads to is already held. The group's first read applies only an accept whose invitation, if still held, reads answered Join, and drops the rest. While an accept is kept for a group the device holds, or is being applied, the group draws no card, so no draw between the group's first read and those OKs asks again what the Join answered. The card waits only in a group some accept is kept for.

The OK's commit is owed until it lands. A device keeps a mark, per chat, from writing an OK until the server accepts that OK's self-update commit, and sends the commit again when it next reads that group at a new epoch, before its next send there, and when the app starts. The mark is never cleared on a refusal. Another device of the account needs no mark.

Invitations#

A group's invitation names the bots that read it (inv.rb) before anyone joins. A community's invite preview is the server's, so the bots it says read the community's Chat are the admins' claim, which the server cannot check; a client presents it as such until its own device sees the bot seated. After joining, a client lists a group's bots from the group's own tree.

Addressing bot leaves#

Every send at one epoch names the same recipients, with three exceptions: typing, frames meant for another conversation, and bot leaves. In a chat that holds a bot leaf, a person's device addresses it:

FrameAddressed to the bot leaf
Transcript frames, reactions, edits, deletesYes
Commits and WelcomesYes
A history share that names this botYes
The answer to its own resend askYes
Ring notes and call recordsOnly with call, and never in a person-to-bot chat
ReceiptsOnly in a person-to-bot chat, while the person's read receipts are on
Typing, lane marks, hellosNever
A history share that names only peopleNever
The answer to anyone else's resend askNever; a person's device refuses a bot's resend ask for a frame it did not address to that bot

Nothing at all is addressed to it while Advanced Chat Privacy (acp) is on, whatever the tree holds.

Only commits and Welcomes, so its tree never forks, while the bot is paused: by its owner, or because its owner changed (the entry's o is not the owner GetBot names, which is pending_owner from effective_at on). It reads on from where it is when it resumes. A person's device also addresses a bot this way in a chat where the person has not yet said OK to its read notice, and wherever the person blocked the bot or its organization. A paused bot is still a member and learns who joins and leaves.

A device never leaves a bot leaf out because the server throttled it.

In a chat that holds a bot leaf, and in a person-to-bot chat, a person's device removes ak and pk from every frame it sends, so no person's key reaches a bot.

Fixture: mls/fixtures/formats/bot-addressing.json (address, strip, resendAsk).

Asking for a bot#

A community whose own group's bap is on takes only the bots in bap.ok. An adding device checks it; receivers do not. While bap.ask is on, a member who is not an admin may ask the admins for a bot, with a lane frame of hint 3 in the community's own group:

{"peachy":"bot-ask","v":1,"a":…,"why":…,"z":…}

a is the bot's actor id; why the member's reason, at most 500 code points with no control character, or empty; z the salt. Who asks is the sender's credential. Only an admin's device (its account in adm) shows it, and drops an ask from a bot leaf or from an admin, an ask while bap is absent or on or ask is off (an unreadable bap asks nothing), an ask with an empty why while bap.why is on, and an ask for a bot already in bap.ok. It keeps the newest ask for each asker and bot. An ask ends when the bot enters bap.ok, an admin declines it, the asker leaves the group, or 30 days after it arrived; the asker's device asks again only after one of those.

Approved here. A bot is approved in a community when bap is absent, on is false, or it is in bap.ok. Nothing else approves a bot, not the owner GetBot names. Every path that adds or addresses a bot asks the core (approvedHere and, for a group listed in several communities, botsAddressed; cases in mls/fixtures/formats/bot-ask.json).

Who writes the default. A device founding a community of an organization of kind company writes {"on": true, "ask": false, "why": false, "ok": []} in its founding state.

Approving is an admin's commit that adds the bot to bap.ok; declining is a lane frame of hint 3 in the same group:

{"peachy":"bot-decline","v":1,"a":…,"to":…,"z":…}

a is the bot and to the asker's actor id. A device takes it only from a person leaf whose account is in adm.

The reason reaches every member's device; only honest apps keep it to the admins.

Fixture: mls/fixtures/formats/bot-ask.json.

Throttling#

The server meters what it delivers to each bot's device and what each bot sends. The values can move, and nothing may depend on them.

Deliveries to a bot, application envelopes only, are metered per sender and for the bot as a whole, and capped by what waits unacknowledged for its device. Past any of them the server leaves the bot's device out, still delivers to everyone else, and names it in SendSealedResponse.throttled_device_ids, so a flood of sends to a bot can leave members' messages to it out until the meters refill. A person's send into a chat with other people never fails because of a bot.

A send to the bot alone is refused, not dropped: a send naming one bot and no account but its signed-in sender's own, or a sessionless send naming no person, is refused where it would leave the bot out (resource_exhausted with retry-after, or peachy-refusal: bots-off, bot-paused or bots-fenced-member, for a person the server holds out of bots). A person's own chat with a bot goes signed in, so it is limited by their account and refused, never dropped; a device reads throttled_device_ids there as a failed send.

The roster. The server keeps, with each seat, a roster of the accounts the bot may reach there (a person-to-bot chat's too). An account joins it only as the signed-in committer of a commit there that seats or names the bot's device (the adder, and each member whose OK to the read notice sends a signed-in self-update), or as an account the commit welcomes. Every later commit keeps the accounts it names and drops the ones it leaves out; a commit of the bot's own, or with no signed-in committer, adds only the people it welcomes. A person's commit addressed to the tree that leaves the bot's device out deletes its seat.

A bot's own sends reach only accounts on one of its rosters. Anyone else's device is left out and named in throttled_device_ids; a send that reaches nobody is refused (peachy-refusal: bot-not-seated). A bot session's commit must be addressed to people of its seat's roster (peachy-refusal: bot-commit-short).

Per owner. A bot's own sends draw on its owner's allowance, all the owner's bots together: to one person at most 60 a minute with bursts of 20, and in all 1,200 a minute (2,400 for a verified organization). Live frames (ephemeral: call heartbeats and typing) have their own: to one person 30 a minute, in all 12,000 a minute. Past either a send is refused with resource_exhausted, a retry-after (whole seconds, at least 1) and peachy-limit: owner.

First contact. A bot writes first under people's meters: the key-package directory's and the stranger cap on founding a chat with one person (weighed at its key-package fetch), keyed on the bot's owner, and each seated person's Welcome meter (Welcomes are metered per person). A directory meter refuses with resource_exhausted, peachy-limit: directory, a retry-after (until midnight UTC for distinct people) and, on the owner's meters, peachy-limit-scope: owner; the stranger cap with peachy-limit: strangers, retry-after to midnight UTC.

A commit or a Welcome always reaches a throttled bot's device, so its tree never forks. A bot asks once for throttled frames it missed and treats a refused or throttled gap as final.

Stopping a bot#

The server holds a handle, never the group, so it makes no promise about one chat. A bot is stopped in two ways: everywhere, by the server, with no roster involved; and in one chat, by its members' devices.

What the server enforces.

  • A paused or suspended bot's session is stopped everywhere: it sends, commits and joins nothing (peachy-refusal: bot-paused), it is out of every call, no application envelope is delivered to its device (commits and Welcomes still are), and a suspension revokes the device.
  • Reports queue a review. Reports of a bot, and counted commit reports, count toward a review by Peachy; nothing pauses on reports, only the review pauses or suspends.
  • A bot reaches no one it shares no chat with (Throttling).

What members' devices enforce, in their chat.

  • A bot's refused commit stops that bot in that group. When the core refuses a commit under a rule a bot leaf's commit can break, at the device's own epoch, it names the rule and, for a commit that opened and verified, the committer's leaf and whether it is a bot's (Bot doors, refused_committer). Only a bot leaf's own refused commit sets a mark, naming the bot's account and the group; while it holds the device drops everything that bot's leaves seal there unread, addresses them only commits and Welcomes, answers no seat ask from it, and reports it. The mark survives the group's recovery and the bot's removal and re-add, and ends once the bot has been out of every tree the device read for 30 days. Fixtures: bot-addressing.json (refusedMark, refusedMarkKept).
  • A chat whose bot is "off" seats no bot leaf, and while acp is on nothing is addressed to one.
  • A person who blocks a bot drops its frames in every chat on their own devices.

A paused bot's device can still commit and send without a session, and a refused bot is stopped only on the devices that refused its commit. The bot's owner learns nothing of who reported it.

The core's bot rules#

The MLS core judges these rules for the committer and for every receiver, as it does the other proposal rules (The proposal rules). They fire only when the state before or after a commit holds a bot leaf or one of the keys above; a group with neither is judged exactly as before.

  • bot changes as acp does (pol.acp; else acp_needs_admin, 19). pol.bot and bap need an admin (policy_needs_admin, 20).
  • bots changes only:
    1. in the commit that adds that bot's leaf, by a committer pol.bot allows, appending exactly that bot's entry with by the committer and an at above the group's bat, the commit setting bat to that at. A re-add is always a new seating. Once bat is 2^53 − 1 a seating may write that at again;
    2. in the commit that removes that bot's leaf, by any member, deleting exactly that entry;
    3. by an admin, changing only an entry's gr, its o, or both: an admin keeps a bot whose owner changed by writing the new owner;
    4. in a commit that removes a bot's leaf and adds a new leaf of the same bot whose credential names the same device id and account key, by any member, leaving its entry exactly as it was: the answer to a seated bot's seat ask when it lost the group's state. A bot whose keys were reset, or a leaf under another account key, comes back only by an add (rule 1).

    Otherwise bot_meta_needs_adder (25), or bot_entry_mismatch (26) when the entry does not match the leaf added or removed, including a removal that leaves the entry and an appended entry whose at is not above bat or that leaves bat anywhere but at it. bat changes in no other commit (25). A bot leaf added while bots already names that bot is bot_entry_mismatch (26), whoever commits it, unless it is rule 4's re-seat of the same device: a new device never inherits a seating.

  • bot moves to or from "dm" only in the commit that first sets a group's state, else bot_seated_when_disallowed (28). Code 27 is not returned.
  • Answering a bot's seat ask. Any member's device answers it with a commit under rule 4, only while acp is off, bot reads "member", the bot is not paused, and GetBot lists the bot's device as not revoked.
  • Outside a governed group, any member removes a bot leaf.
  • A commit whose resulting state seats a bot leaf while acp is on, while bot does not read "member" outside a person-to-bot chat, without 0xF1AB required, with more than 8 bot leaves, with two leaves of one bot, with a bot leaf bots does not name, or, in a person-to-bot chat, with anything but exactly one person (any number of their devices) and exactly one bot leaf, is bot_seated_when_disallowed (28).
  • A resync (A device back in by itself) that would seat a bot leaf is external_join (1) unless it removes exactly that bot's own leaf, on the same device under the same account key: a bot on another device comes back only by an add.
  • In a group with no state (a call link's group), the commit that first sets one and seats a bot writes every entry with by the committer and bat the latest at, as rule 1 does, else bot_entry_mismatch (26).
  • An entry whose at is not a non-negative integer at most 2^53 − 1, or a bat above 2^53 − 1, makes bots or bat unreadable, so no commit can write one and no Welcome holding one is taken.
  • The joiner judges its Welcome. A device refuses one whose tree and state break the rule two above, or whose bots holds an at above bat or a by naming one of the tree's bot leaves (but a person-to-bot chat's own bot naming itself), as bot_seated_when_disallowed (28), before it takes the seat or sends anything. A Welcome a bot committed into a person-to-bot chat must name the bot itself as by, or it is refused as
    1. An entry whose adder has since left is taken. A Welcome into a tree with no bot leaf, from a person, is judged as before. Fixture: the welcome/ cases of rosters.json.
  • A bot leaf commits a path update of its own leaf; an add of a person that any member may make; and, in a group of its own with no state, the founding of its person-to-bot chat: one commit setting dm: true, bot: "dm", one admin who is not the bot, and its own entry as the only one, by itself, that adds only that admin's devices. Any other add by it is add_needs_admin (16), a removal of anyone else remove_needs_admin (17), and any other change of the value meta_needs_admin (18).
  • The required capabilities may gain 0xF1AB, never lose it, and gain nothing else; anything else is group_context_extensions_unsupported (6).

Each member that refuses a commit by a bot leaf stops the bot in that group (Stopping a bot) and reports it (ReportBotCommit): the bot, the deny code, the conversation's handle and the epoch, never the group id. The server counts a report only when that bot's device submitted a commit to that handle at that epoch in the last hour and the reporter's device is a recipient of the handle. A counted report proves only that the bot committed there: a bot's routine key update (at least every 7 days) is a commit too.

A chat a bot stalled is recovered as any stalled head is (Security considerations), and the device that founds the new group seats no bot leaf that stalled the old one. The commit doors and the leaf-kind getter are in Bot doors.

When a bot loses a chat#

A bot recovers a lost or forked copy of a group as a person's device does (Rejoin with a sealed seat ask). It checks the group's head after a drain whose mailbox says lost or in which a commit failed to apply, and when three messages of one group in a row fail to open (at most once every 10 minutes per group); fork rejoins of one group back off from 10 minutes, doubling to 6 hours. It then sends a signed seat ask (envelope kind 3) and forgets the group, and a member's device answers under rule 4 of The core's bot rules. In a governed group the answer is a resync answer and the bot joins by itself (A device back in by itself); a copy stranded there by a refused commit takes a Welcome back only from someone in adm of the state it kept. When no answer can come, the bot stays out until a member removes it and adds it again.

When a group is re-founded#

An admin's re-founding seats each bot by its own add (refoundingBotEntry). A bot follows it only when the core's honorRefounding does (Governing a group); with no account store, it judges prev against the copy it holds or, when it lost that copy, the state it kept when it forgot it. Its chat then moves to the new group, keeping its grants and state, and it drops the old copy. It follows one re-founding of a group, and a re-founding of a community's own group moves its pin (pins). Where the re-founder's device can't seat a bot, it removes the bot's leaf and entry from the old group if it still may.

Versions and refusals#

  • The SDK names itself. A bot session sends its SDK version in x-peachy-sdk and never sends x-peachy-build, which is refused.
  • A minimum for bots. GetMinSupportedVersion with the platform bot answers the oldest SDK version the server serves. A bot session below it is refused before its handler runs: failed_precondition, peachy-refusal: sdk-update-required.
  • Retired formats are refused with peachy-refusal: envelope-retired, as for any client (Retired builds).
  • The next minimum is announced. ProtocolFloor.next_bot_minimum names the SDK version the minimum will rise to and from when, at least 90 days ahead except for a security fix. An SDK SHOULD warn its operator from the day it is announced. No format floor is raised above what the newest published SDK writes.
  • Remote flags. A bot reads the served flag document as the web client does (GetRemoteConfig; Remote flags), as platform web with its build the SDK's build time.

A client SHOULD NOT retry a refusal this document defines unchanged.

Format versions#

NameVersion writtenFixture
bot-meta1bot-meta.json
bot-history2bot-history.json (a person share; history.json)
bot-ask1bot-ask.json
bot-decline1bot-ask.json

These names are keys of ProtocolFloor.format_versions: for each format, the oldest version the server and Peachy's apps still take; a format absent from it has never been retired. ProtocolFloor.next_format_retirement names the next retirement, if one is scheduled: the format, the version refused from then on, and when. The answer is the same for every caller (The protocol floor). An SDK SHOULD read it at start and daily, and warn from 30 days before the date. Each retirement is also an entry in the Protocol changelog.

Gates#

GetMeResponse.feature_gates names the account's gates: "bots.read" (the client may write what only bot-aware builds read, such as bot), "bots.mentions" (a chat with a bot), "bots.reading" (seating one), "bots.create", "orgs" and "orgs.communities". A client starts something only while its gate is listed, and the server refuses it otherwise (peachy-refusal: bots-gate). Nothing a member needs to respond to a bot is gated: Remove, Leave, Report, Block and a bot's message request.

A bot's key packages are served only to a caller holding bots.mentions or bots.reading, and a commit that welcomes a bot's device must come from a signed-in session holding bots.reading, or bots.mentions for a chat of one person and the bot; a sessionless commit that seats a bot is refused. A development bot is seated only where every person the commit names runs or tests it, and then needs no gate. A re-seat is gated too: to the server a Welcome under rule 4 of The core's bot rules looks like an add. The gates cannot recall sealed writes: a seated bot stays until a member removes it.

The master switch. One server switch covers bots and organizations. While it is off, GetMeResponse.bots_paused is true and feature_gates is empty; bots rpcs and bot tokens are refused with peachy-refusal: bots-off, except reporting and what lets people respond; and no application envelope is delivered to a bot device, while commits and Welcomes still go. Turning it off deletes the application envelopes waiting for bot devices. A device never removes a seated bot because GetBot answered not_found or peachy-refusal: bots-off: only a deleted status means deleted. A client or a bot waits on that refusal rather than treating it as an error.

Organizations#

An organization is the server's record of an owner, admins, a verification state and accounts. Who runs it is also sealed: its owner's and admins' devices hold one member-rostered MLS group that carries no messages, whose state names the organization (org), its admins (adm, which only an admin changes, checked by every core) and its owner (own, one of adm; any admin may move it). The server's owner and admin list is its own, set by rpc; it makes nobody an admin of a sealed group. An organization's admins are admins of each of its communities' own groups, copied there by an admin's device.

Accounts#

An organization's accounts share the one handle space with people and bots. Every account's User row carries organization (AccountOrganization): its id, name, first handle, logo, verified, sealed and first. An account no code runs has no device, so nobody can message, mention or add it. Any account but the first may run as a bot, once and for good: its User.kind becomes USER_KIND_BOT, and every rule of this document applies to it. In private chats an organization's account is always code.

The seal#

An account wears the organization's seal (User.organization.sealed, and verified for a bot) only while the organization is verified and active and Peachy has approved the account's current handle and name. The badge says who runs the account, not that Peachy checked it.

Posting and hosting as an account#

Posting and hosting as an account are outside this protocol; a bot session does neither.

Following#

Following an account is outside this protocol.

Blocking#

A block of an account is the person's contact record's blocked, keyed by its actor id; in a chat that already seats it, the person's devices address it as a paused bot and share it no history. A block of the organization is kept by the server, which leaves the organization's posts, events, communities and invitations out of what it serves that person; the person's devices treat each of its bots as blocked.

Limits#

An organization holds at most 3 public accounts unless Peachy raises it. A person holds at most 3 bots in development and 3 published ones.

Where messages go#

A bot's operator is the owner GetBot names, never anything the bot sends and never the viewer's label for a person. A device names it wherever a person chooses to send a bot something: adding it, the first message to it, a message request from it, and the read notice.

Key transparency#

A bot's device checks the key transparency log as a person's does, through the same core doors (Key transparency doors).

What the server learns#

Beyond Metadata, the server learns:

  • which accounts are bots, who owns each, which organization holds each account, and each organization's admins, grants, accounts, approvals and verification evidence;
  • bot tokens: which admin minted the Connect code each token came from and, for a revoked token, why, kept with the token; and the address and client a live token was redeemed from, kept 30 days;
  • tester invitations: each invitation push (the bot, the invitee, the owner), kept 30 days;
  • every send and commit a bot makes with its session, with its conversation and time. A sessionless send needs no key for a bot;
  • who writes to which bot, and when: a person's own chat with a bot is signed in;
  • which conversations a bot's device is in and who added it, kept 30 days after the bot was last named, sent to or sent from there, or until a commit leaves it out;
  • the accounts of a chat that seats a bot, its roster (Throttling, "The roster"), with the hashed handle, kept with the seat. Saying OK to a bot's read notice is a signed-in commit, so the server learns which person said OK to which bot, on which handle, and when;
  • who starts with which bot, and when, kept with the seat (above);
  • reach and testers: whom a bot's owner lets reach it, a development bot's testers, and each attempt at first contact from outside a bot's reach;
  • bot commits: for 24 hours, the accounts each of a bot's commits was addressed to, with the hashed handle and epoch; a counted commit report keeps the bot, the hashed handle, the epoch, the deny code and the reporter, 30 days;
  • calls: which calls a bot starts and joins, when and for how long, and that a member removed it (never which); of its media, two tracks, packet sizes and timing, and whose tracks it pulls, which shows which joins granted it their media;
  • the hourly refresh: a device's batch names every bot it knows;
  • which process runs a bot: its random instance name, while it runs;
  • which organizations a person blocked, while the block lasts.

It never reads a person's bot settings, what was shared with a bot, a bot's grants, a community's bot approvals and asks, or a chat's bot keys beyond the bots a community's admins say read its Chat. A typed @handle is checked on the device. Opening a group, or picking a bot in the @ picker, shows it nothing unless the device holds no card for a bot there, as for a deleted development bot: the device then reads it signed in. Opening an invitation, or one's own bot chat, reads its bots signed in. Searches send their words. A bot learns the names and handles of those who write to it, and can look up any account's public profile.

The shared names#

The gate names, the format names and versions, and the test identifiers of the official clients' bot screens are kept as one JSON list (contract.json) beside the clients' shared fixtures. It is not part of this specification.

Security considerations#

  • Kind and ownership are the server's word. Whether a leaf is a bot's (pdc3) is in the server-signed credential, which the account certificate does not cover; who owns it, and the seal, are GetBot's answer.
  • A bot reads what it is sent. A seated bot holds the chat's keys like any member: until a person says OK, their devices send it nothing, but it can open anything the server copies to it. These rules limit what an honest member's device sends a bot; a device that ignores them can send it anything it can read. The authors a history share names are the sharer's claim.
  • Changes take up to an hour to reach devices; the server's own refusals act at once.
  • The server stops a bot only everywhere; stopping it in one chat is its members' devices'.
  • Reach is checked only at the key-package fetch: not for the other members of a group someone in reach adds the bot to, and a fetched package can be reused.
  • A bot can stall a chat. Members refuse a forbidden bot commit, report it, and recover in a new group without it.
  • A seated bot holds the epoch's call keys, whatever its grant. It derives call_root_v2 and the live lane's key as every member does, but decrypts no audio or video in a group call without that person's grant.

IPR#

This document is dedicated to the public domain under CC0 1.0.

References#