Specification · document 10
10 Roles, permissions, moderation and reports
| Status | Draft. Protocol version 1 (sv1) of the Sloppy Voice v2 product |
| Date | 2026-12-04 |
| Depends on | 00 (overview and conventions), 01 (addresses), 03 (transport), 06 (federation), 09 (communities, membership, channels), 11 (messages and attachments), 12 (DMs), 13 (MLS profile), 14 (sealed content and report verification), 15 (calls and leases), 19 (notifications), 20 (client UX) |
| Decisions used | D-003, D-007, D-011, D-012, D-015, D-018, D-023, D-028, D-032, D-035, D-037, D-038, D-040, D-046, D-048, D-049, D-055, D-057, D-061, D-063, D-064, D-068, D-077, D-078, D-086, D-094 |
| Owns | Permission registry; Role object, PermissionOverwrite object and the effective-permission algorithm; Timeout, ServerMute, Ban, Report, ReportItem, AntiSpamPolicy and AuditLogEntry objects; /v1/roles…, /v1/moderation/…, /v1/bans…, /v1/reports…, /v1/audit-log; the report.forwarded S2S payload; role.*, permission.*, moderation.* and report.* events and error codes; the limits maxRoles, maxRolesPerMember, maxOverwritesPerChannel, maxReportItems. (The Mute for everyone API and its Mute object belong to 15 §3.6; this document supplies its permission, hierarchy rules and audit entries.) |
1. Scope
This document specifies who may do what in a community, and what happens when someone breaks the rules. It covers:
- the permission registry: every permission, what it allows, where it can be overridden, and how a server enforces it in insecure and secure contexts (§3);
- roles, the role hierarchy, the two system roles and role assignment (§4);
- per-channel permission overwrites (§5) and the effective-permission algorithm, with test vectors (§6);
- the role and overwrite API under
/v1/roles…(§7); - moderation actions in every security mode (D-023): deleting messages, kicking, timing out, muting ("server mute" here, and the rules behind 15's "Mute for everyone") and revoking
speak_and_share, with their hooks into MLS removal (13) and lease revocation (15) (§8); - bans by address and by domain (§9);
- reports, including key-reveal reports from secure contexts (D-040, D-077), DM reports and the
report.forwardedS2S payload (§10); - the audit log (§11) and anti-spam measures (§12);
- the events (§13), error codes (§14) and limits (§15) of the
role,permission,moderationandreportareas.
This document does not specify:
- the MLS removal mechanics (Remove proposals, freeze, designated committer). Those are owned by 13. This document says when removal is triggered.
- lease snapshots, lease ticks and their timing, and the Mute for everyone endpoint and object (15 §3.6). Those are owned by 15. This document says which lease list a moderation action changes, and who may mute whom.
- the cryptographic report verification procedure (signature, key commitment, decryption). That is owned by 14. This document says when it runs and what is done with the result.
- the Community, Membership, Channel and Invite objects (09), the message and tombstone formats (11), DM membership (12), and federation blocks (06).
1.1 Conformance
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.
Every MUST addressed to "the server" applies to the Server conformance class (00 §1.5) acting as the hosting server of the community or context concerned, unless the text names the home server. Requirements addressed to "the client" apply to the Full client, Web client and Bot client classes. A Bot client that never performs moderation still MUST handle the events and error codes of this document.
Rationale notes ("Rationale:") and examples are informative. Where an example and the normative text disagree, the normative text wins.
2. Terminology
This document uses the terms of 00 §2 exactly. It adds these:
| Term | Definition |
|---|---|
| Actor | The account performing a role change, overwrite change, moderation action or report-queue action. The server always takes the actor from the session, never from the request body. |
| Target | The account, domain, role or message an action applies to. |
| System role | One of the two roles every community has and nobody can delete: everyone and admin (§4.2). |
| Admin | A member who holds the admin system role. "The server admin" in 00 and other documents means the admins of the server's community (D-003); the server upgrade additionally needs the admin to be a local account (§4.2 item 6). |
| Operator | Whoever runs the server deployment and can change its configuration outside the protocol (21). The operator is not a protocol party, but some recovery steps here need them. |
| Top position | The highest position among the roles a member holds. A member who holds only everyone has top position 0. |
| Channel-scoped permission | A permission that per-channel overwrites can change (§3.2). |
| Community-scoped permission | A permission that applies to the whole community and that overwrites can't change (§3.2). |
| Base permissions | The union of the permissions of every role a member holds, before overwrites (§6.1). |
| Effective permissions | The permissions a member actually has at a given moment, in the community or in one channel, after overwrites and state modifiers (§6). |
| Moderator | Informally, any member holding at least one of kick_members, ban_members, timeout_members, mute_members, manage_messages or manage_reports. It isn't a protocol object. |
| Evidence | The server's stored snapshot of reported content: plaintext for insecure contexts, or SealedMessages with their revealed K_msg values for secure contexts, plus attachment blobs and file keys (§10.7). |
3. Permission registry
3.1 The registry
Permissions are named by lowercase snake_case strings (00 §7.5). They are carried in JSON as arrays of names, never as bit fields. A role or overwrite lists each name at most once, and the order of names carries no meaning. Servers emit names in registry order (the order of this table).
| # | Permission | Scope | In everyone by default |
What it allows |
|---|---|---|---|---|
| 1 | view_channel |
channel | Yes | See the channel in the channel list, read its timeline and history (subject to 09 and 14), receive its events, join its MLS group if secure, and listen to its call if it is a voice channel. Without it, every other channel-scoped permission in that channel is void (§6.1 step 7). |
| 2 | send_messages |
channel | Yes | Post messages, replies and edits of one's own messages. |
| 3 | add_reactions |
channel | Yes | Add reactions. Removing one's own reaction is always allowed. |
| 4 | attach_files |
channel | Yes | Upload attachments to the channel (11). |
| 5 | mention_everyone |
channel | No | Make a message notify everyone in the channel (mentionAll, 11, D-063). Without it, the server accepts a message with mentionAll: true but records its validated mentionAll as false, so nobody is notified and <@everyone> renders as plain text (11 §4.4 rule 3). |
| 6 | speak_and_share |
channel | Yes | In a voice channel's call: send microphone audio, screen video, screen or application sound, and webcam video (D-015). It has no effect in text channels. |
| 7 | mute_members |
channel | No | Apply and lift 15's "Mute for everyone" in the channel (15 §3.6) and, at community level, server mutes (§8.6). In a channel it also allows stopping one member speaking and sharing there with a member overwrite that changes only speak_and_share (§8.7). |
| 8 | manage_messages |
channel | No | Delete other members' messages and remove other members' reactions (§8.3). |
| 9 | create_invites |
channel | Yes | Create invites to the community that land in this channel (09). |
| 10 | manage_channels |
channel | No | At community level: create channels. In a channel: edit its settings, delete it, and upgrade it to secure (09, D-057). |
| 11 | manage_roles |
channel | No | At community level: create, edit, delete, reorder, grant and remove roles below the actor's top position (§4.3). In a channel: edit that channel's overwrites (§5). |
| 12 | share_history |
channel | No | In a secure channel: share earlier messages that the holder can read with one specific current member, through manual history sharing (14, D-007). The pre-created Moderator role holds it (§4.2), and admins hold it as they hold every permission; an admin may grant it to anyone, but a bot account never shares, whatever its roles (14 §11 refuses it with history.share_forbidden, reason bot). It has no effect in insecure channels, which don't use history sharing. |
| 13 | kick_members |
community | No | Remove a member from the community (§8.4). |
| 14 | ban_members |
community | No | Create and lift community-scope bans by address and by domain (§9). |
| 15 | timeout_members |
community | No | Apply and lift timeouts (§8.5). |
| 16 | manage_invites |
community | No | List and revoke every member's invites, create invites with allowSignUp: false, approve or reject pending join requests (09 §4.3), and create invites that never expire (09). It doesn't change the join policy, which needs manage_community. |
| 17 | manage_community |
community | No | Edit community settings (name, icon, description, rules, join policy, 09) and the anti-spam policy (§12). It does not allow a server upgrade, which needs the admin role held by a local account (§4.2). |
| 18 | manage_bots |
community | No | On the bots' home server: create and manage bot accounts homed there (05). In any community: admit bot accounts as members and change their roles (§4.4). |
| 19 | manage_reports |
community | No | See and work the report queue for the contexts the holder can view (§10.5). |
| 20 | view_audit_log |
community | No | Read the audit log (§11). |
This is the complete list for protocol version 1.
Proposed decision: v1 has exactly the 20 permissions of §3.1, carried as name arrays; there is no administrator permission (the admin system role replaces it), no separate "connect" permission (listening needs view_channel), and no per-media permissions (D-015). Rationale: a short list of plain-English names is easier for non-technical admins to understand, and name arrays are self-describing and extensible without bit-position coordination.
3.2 Scopes
- A channel-scoped permission (rows 1–12) can be allowed or denied per channel by overwrites (§5). At community level (no channel), its base value means "in channels that don't override it" and, for
manage_channelsandmanage_roles, also grants the community-level powers in §3.1. - A community-scoped permission (rows 13–20) is evaluated from base permissions only. An overwrite MUST NOT name it; the server rejects such an overwrite with
permission.not_overwritable.
Rationale: kicks, bans and the audit log affect the whole community, so a channel can't meaningfully grant or withhold them.
3.3 Name grammar and unknown names
permission-name = %x61-7A *31( %x61-7A / DIGIT / "_" ) ; 1-32 chars, a-z first- A server MUST reject a write (role create or edit, overwrite set) that names a permission it doesn't know, with
permission.unknown. - A client MUST ignore unknown permission names it receives when computing effective permissions, and MUST preserve them when it edits a role (it sends back only the change it means to make, §7.3).
- A future minor version MAY add permissions. A new permission is absent from every existing role until an admin grants it, unless its definition names a different migration.
3.4 Contexts without roles
DMs and group DMs (12) aren't part of any community and have no roles or overwrites. Every participant of a DM or group DM has, in that context, the equivalent of view_channel, send_messages, add_reactions, attach_files, mention_everyone and speak_and_share, and in a secure 1:1 DM or group DM share_history (any participant other than a bot account may share earlier messages with another participant, 12 §12.5, 14 §7.2, D-007), subject only to 12's membership rules, to bans of scope server (§9.3) and to anti-spam limits (§12). Moderation of DMs by the hosting server is limited to the actions in §8.1 marked for DMs.
3.5 Enforcement points
The server enforces every permission at the request that needs it. In secure contexts the server can't read content, so it enforces permissions on what it can see: the session's account, the SealedMessage header kind (message, edit, reaction, delete, 14), the attachment upload request, the cleartext mention hint (D-063), and call-control requests.
| Permission | Insecure context | Secure context |
|---|---|---|
view_channel |
Filter channel lists, timelines and events. | As insecure, plus MLS membership: losing it removes the member's leaves (§6.5); the AS refuses external commits without it (13). |
send_messages |
Check on POST …/messages entries of kind message and edit (11). |
Check on SealedMessage posts with kind message or edit. |
add_reactions |
Check on entries of kind reaction (11). Removing one's own reaction is a delete of the reaction entry and needs no permission (11 §6.5). |
Check on SealedMessage posts with kind reaction, which only ever add a reaction (11 §3.1, 14 §4.3). Removal is a delete of the reaction entry and needs no permission (11 §6.5), so a member without add_reactions can still remove their own reactions. Clients SHOULD hide the reaction button for such members. |
attach_files |
Check on attachment upload (11); and on a message entry that binds attachments (11 §4.5 step 8). |
Check on encrypted attachment upload (11); and on a message entry that binds attachments (11 §4.5 step 8). |
mention_everyone |
Validate content.mentionAll: without the permission, accept the post and record mentionAll as false (11 §4.4 rule 3); never refuse it. |
The same, on the cleartext hint mentionAll. |
speak_and_share |
Lease audio and video lists (15). |
Same; leases don't depend on keys. |
mute_members, manage_messages |
Check on /v1/moderation/… and on 15's Mute for everyone endpoint. |
Same; deletion removes ciphertext (§8.3). |
share_history |
Not applicable: insecure contexts don't use history sharing (14 refuses it). | Check on POST /v1/contexts/{ctx}/history/shares (14) for the sharer in that channel. A timeout (§8.5) blocks sharing as it blocks posting. |
| Others | Check on the endpoint concerned. | Same. |
The mention_everyone rule also applies while the new-member restriction (§6.2 modifier c) removes mention_everyone; it never yields moderation.new_member_restricted.
Apart from the membership, ban and view_channel checks that decide whether a device may be in a channel's group at all (13's Authentication Service check A5), the server MUST NOT apply any permission, timeout, mute, new-member restriction, slow mode or rate limit of this document to MLS handshakes, GroupInfo uploads, mls.epoch_ack or call.epoch_ready. A member who may not post content still MUST be able to keep the group's key schedule moving.
Proposed decision: content restrictions never apply to key-management traffic (MLS handshakes, GroupInfo, epoch acks, media epoch readiness). Rationale: otherwise a timed-out or muted member who is the designated committer would stall the whole group's removals and rotations (D-037).
4. Roles
4.1 The Role object
| Member | Type | Required | Meaning and constraints |
|---|---|---|---|
id |
string | Yes | UUIDv7, server-generated. |
name |
string | Yes | 1–40 Unicode scalar values after NFC normalization; no control characters (general category Cc, Cf except ZWJ U+200D), no line breaks, no leading or trailing white space. Unique within the community after Unicode default case folding and NFC. For system roles, clients display a localized name from system and ignore name. An ordinary role's name MUST NOT, after case folding and the UTS #39 confusable skeleton, equal the skeleton of "admin", "administrator" or "everyone", or of the localized name the server's own admin interface uses for a system role (role.name_invalid). |
system |
string or null | Yes | everyone, admin, or null for an ordinary role. A receiver treats an unknown value as null for display, and never offers to delete such a role. |
position |
integer | Yes | 0 to maxRoles − 1. Unique within the community. everyone is always 0; admin is always the highest. Ordinary roles fill 1 to n − 2 with no gaps (§4.3). |
permissions |
array of strings | Yes | Permission names (§3). For admin, the server returns the full registry; the stored value is ignored because admins hold everything (§6.1). |
color |
string or null | No | #rrggbb in lowercase hex, or null for the default colour. Clients MUST NOT use colour as the only way to tell roles apart (accessibility, 20). Clients MUST mark holders of the system admin role with a distinct admin badge that no ordinary role can display, whatever its name or colour. |
showSeparately |
boolean | No | Default false. Whether member lists group this role's holders under its own heading. |
memberCount |
integer | Yes (responses) | Number of current holders. For everyone, the number of active members. |
version |
integer | Yes (responses) | Starts at 1, increases on every change. Used for optimistic concurrency (§7.3). |
createdAt, updatedAt |
string | Yes (responses) | Timestamps (00 §7.7). |
Example:
{
"id": "01938f40-1a2b-7c3d-8e4f-5a6b7c8d9e02",
"name": "Moderator",
"system": null,
"position": 2,
"permissions": ["mute_members", "manage_messages", "share_history", "kick_members", "ban_members",
"timeout_members", "manage_reports", "view_audit_log"],
"color": "#2e7d32",
"showSeparately": true,
"memberCount": 4,
"version": 3,
"createdAt": "2026-12-04T09:00:00.000Z",
"updatedAt": "2026-12-04T17:41:12.250Z"
}4.2 System roles and the starting set
Every community has exactly these two system roles from the moment it exists:
everyone(position 0). Every member holds it implicitly; it can't be granted or removed. Its permissions can be edited by a member withmanage_roles. Its name, position andsystemvalue can't be changed, and it can't be deleted. Its initial permissions are the "Yes" rows of §3.1.admin(highest position). Holders have every permission in every channel; overwrites don't apply to them (§6.1). Only admins can grant it. Its name, permissions, position andsystemvalue can't be changed, and it can't be deleted.
When a community is created, the server also creates one ordinary role named "Moderator" at position 1 with mute_members, manage_messages, share_history, kick_members, ban_members, timeout_members, manage_reports and view_audit_log, and no holders. It is an ordinary role that admins may edit or delete.
Rationale: most small communities need exactly "everyone", "people who keep order" and "people who run it". Pre-creating the Moderator role means an admin's only decision is whom to give it to.
Admins and the admin role.
- The operator names the first admin (or admins) when setting up the server, as local accounts each bound to a sign-in identity or a one-time setup token (21 §11.1 item 7); the role is never granted because of the local part alone. Remote accounts can be made admins later under item 2.
- An admin may grant the
adminrole to any active member (an exception to §4.3 rule 1). Clients MUST show a confirmation that says in plain words that the person will be able to do everything, including removing other moderators, changing every setting and making the server secure. The confirmation names the person by their full address (for example "carol@c.com"), so the admin sees which server the account is on; it is a plain fact, not a warning (00 §4.12). - An admin may remove the
adminrole only from themselves ("Step down", §4.3 rule 4). The server refuses removal from another admin withrole.hierarchy, and refuses the last admin's step-down withrole.last_admin. - Removing the
adminrole from someone else is an operator action outside the protocol (21). It is logged in the audit log with actor kindoperator(§11). - Admins can't be kicked, banned, timed out, server-muted or muted for everyone through the protocol (§8.2).
- Server-level actions reserved to admins: making the server secure (09, D-057, D-073), which additionally needs the admin to be a local account (09's
community.local_admin_required); bans of scopeserver(§9.3); handling DM reports andadmins-routed reports (§10.5); forwarding reports (§10.9); federation policy and blocks (06 §12); and federation pin management (/v1/resolve/pins…, 02 §10.5), which needs a local account. Holdingmanage_communitywithout theadminrole never allows the server upgrade.
An admin SHOULD be a local account.
Proposed decision: every community has the system roles everyone and admin plus a pre-created "Moderator" role; admins hold every permission; admins can't act against other admins (except to grant the role), removing another admin needs the operator, and the last admin can't step down. Rationale: a flat peer group at the top prevents "admin wars" without a single-owner concept, and the operator is the natural last resort because they control the server anyway.
4.3 Hierarchy rules
Let top(m) be member m's top position. For admins, top is the admin role's position. The server MUST enforce these rules, and clients SHOULD hide controls that would break them.
- Roles. An actor with
manage_rolesmay create a role only at a position belowtop(actor), and may edit, delete, grant or remove only roles whose position is belowtop(actor). Violations:role.hierarchy. The one exception: an admin may grant theadminrole (§4.2 item 2). - No escalation. An actor may put a permission in a role's
permissions, or in an overwrite'sallowordeny, only if the actor holds that permission: community-scoped ones in its base permissions, channel-scoped ones in its effective permissions for that channel (for a role, at community level). Admins hold everything. Violations:permission.not_held, with the offending names indata.permissions. Removing a permission from a role is subject to the same rule. Likewise, granting a role to anyone, including oneself, requires the actor to hold every permission in that role'spermissions; otherwisepermission.not_held. Aspeak_and_share-only member overwrite set under §5.2's exception is exempt from this rule. - Members. An action on another member (moderation, member overwrite, granting or removing their roles) requires
top(actor) > top(target). Violations:moderation.target_protectedfor moderation actions androle.hierarchyfor role and overwrite changes. Admins have equal top positions, so an admin can't moderate another admin, set a member overwrite for them, or grant or remove their ordinary roles; only the other admin can change their own ordinary roles. - Self. Any member may remove any ordinary role from themselves ("step down"), whatever its position, without
manage_roles. An admin may remove theadminrole from themselves unless they are the last admin (role.last_admin). Granting a role to oneself follows rules 1 and 2 like any grant. An actor can't moderate themselves (moderation.self_target) and can't set a member overwrite for themselves (role.hierarchy). - Positions. After any create, delete or reorder, the server renumbers ordinary roles so that positions are 1 to n − 2 without gaps, keeping relative order, with
everyoneat 0 andadminat n − 1. A reorder may move only roles belowtop(actor)and may not move any role to or abovetop(actor).
4.4 Role assignment
- A role is granted to or removed from a member with
PUTorDELETE /v1/roles/{roleId}/members/{address}(§7). The target MUST be anactiveorneeds_encryptionmember (09); otherwisemoderation.not_member. - A member holds at most
maxRolesPerMemberroles, not countingeveryone(role.limit_reached). - Remote members can hold any role. Role assignments are stored with the member's canonical address and incarnation (
inc, 05 §11.1; D-032, D-086) and belong to that membership: when 09 ends it, including when a new incarnation of the address appears (09 §4.2), the assignments are removed, so a later account at the address never inherits a role. - Granting or removing any role of a bot account (05,
kind: "bot") additionally requiresmanage_bots. - Admitting a bot. A bot account becomes a community member only with the approval of someone holding
manage_bots, given in one of two ways: the bot joins with an invite whose creator holdsmanage_botsat the moment of the join; or the bot'spendingrecord, which 09 creates for an unapproved bot underopen,request, orinvitewith a valid invite, is approved by a member who holdsmanage_botsas well asmanage_invites. Otherwise 09's join procedure answers 202 with apendingrecord, or fails withcommunity.invite_requiredorcommunity.closed(09 §9.2 step C7). 09 performs this check in its join procedure, and writes thebot_admittedaudit entry (§11.3). In practice an admin creates a one-use invite and hands it to the bot's owner. - When membership ends (
left, orbanned), the server removes the member's role assignments. Rejoining starts witheveryoneonly. Aneeds_encryptionmember keeps their roles (09, D-057).
Rationale: removing roles on leave means a returning member never silently regains moderator powers that someone may since have decided to withdraw.
4.5 Limits
Limit (ServerMetadata limits) |
Default | Floor | Meaning |
|---|---|---|---|
maxRoles |
100 | 25 | Roles per community, including the two system roles. |
maxRolesPerMember |
25 | 10 | Ordinary roles one member can hold. |
maxOverwritesPerChannel |
100 | 25 | Overwrites (role and member) per channel. |
5. Channel permission overwrites
5.1 The PermissionOverwrite object
An overwrite changes channel-scoped permissions for one role or one member in one channel.
| Member | Type | Required | Meaning and constraints |
|---|---|---|---|
ctx |
string | Yes | The channel's context reference (ch:…). Overwrites don't exist for DMs. |
targetType |
string | Yes | role or member. A receiver ignores an overwrite with an unknown value. |
roleId |
string | When targetType is role |
The role. The admin role can't have overwrites (permission.not_overwritable). |
address |
string | When targetType is member |
The member's canonical address (D-032). |
allow |
array of strings | Yes | Channel-scoped permissions granted, possibly empty. |
deny |
array of strings | Yes | Channel-scoped permissions removed, possibly empty. |
updatedAt |
string | Yes (responses) | Timestamp of the last change. |
updatedBy |
string | Yes (responses) | Canonical address of the last actor. |
Rules:
- A name MUST NOT appear in both
allowanddeny(core.invalid_request). - Only channel-scoped names are allowed (
permission.not_overwritable). - An overwrite with empty
allowanddenyis deleted. - At most one overwrite exists per (channel, role) and per (channel, member).
- A member overwrite survives role changes but is deleted when the member's membership ends, including when 09 ends it because a new incarnation of the address appeared (09 §4.2). The server stores the member's
incwith the overwrite and never applies it to an account with anotherinc(D-086). - Deleting a role deletes its overwrites in every channel. Deleting a channel deletes its overwrites.
Example:
{
"ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
"targetType": "role",
"roleId": "01938f40-1a2b-7c3d-8e4f-5a6b7c8d9e01",
"allow": [],
"deny": ["send_messages", "attach_files"],
"updatedAt": "2026-12-04T10:02:44.031Z",
"updatedBy": "saxonjones@sloppyvoice.com"
}5.2 Who may change overwrites
Setting or removing an overwrite in a channel requires manage_roles in that channel's effective permissions (an admin, a holder of community manage_roles that no overwrite denies in this channel, or someone an overwrite allows it to). The hierarchy rules of §4.3 apply: a role overwrite needs the role's position below top(actor) (the everyone overwrite therefore needs top(actor) ≥ 1), a member overwrite needs top(actor) > top(target), and every name in allow and deny MUST be one the actor holds in that channel.
Exception for speak_and_share. An actor who holds mute_members in the channel but not manage_roles may still PUT or DELETE a member overwrite in that channel when the only difference between the overwrite before and after the request is whether deny contains speak_and_share. §4.3 rule 3 applies (top(actor) > top(target)); rule 2 doesn't. Any other difference fails with 403 core.forbidden (data.permission: "manage_roles"). This is how a moderator stops someone's voice, screen share and webcam in one channel (§8.7).
6. Effective permissions
6.1 Algorithm
Servers MUST compute effective permissions with this algorithm, and clients MUST use it when deciding which controls to show. ALL is the set of every registry permission; CH is the set of channel-scoped permissions (§3.2).
input: member m: its CommunityMember state s(m) (09) and roles R(m); channel c or none
output: a set of permission names
1. If s(m) is not "active" or "needs_encryption": return {}
(09 states "pending", "left", "banned" and "no record" have no permissions.)
2. If m holds the admin role:
if c is none: return ALL
else: return CH
3. B := union of r.permissions for r in {everyone} ∪ R(m) ("base")
4. If c is none: P := B; go to step 8
5. P := B ∩ CH
6. Apply overwrites of c in this order (each "−" then "∪"):
a. everyone overwrite e (if any): P := (P − e.deny) ∪ e.allow
b. role overwrites o_r for r in R(m): D := ∪ o_r.deny; A := ∪ o_r.allow
P := (P − D) ∪ A
c. member overwrite o_m (if any): P := (P − o_m.deny) ∪ o_m.allow
7. If view_channel ∉ P: return {}
8. Apply state modifiers (§6.2) and return P.We call the set computed by steps 1–7 (that is, without step 8) Pbase(m, c). §6.3 uses it to decide which error to return.
Notes:
- In step 6b, an allow on any of the member's roles beats a deny on any other of the member's roles in the same channel. Role positions don't matter within step 6b.
- A member overwrite always wins over role overwrites, and role overwrites always win over the
everyoneoverwrite. - Step 7 makes a hidden channel completely inert, even if an overwrite allows something else in it.
- Admins are never affected by state modifiers (step 2 returns before step 8): nobody can time out or server-mute an admin, and new-member restrictions don't apply to them.
- The algorithm never depends on the security mode or on
needs_encryption. A member whose community or channel membership isneeds_encryptionkeepsview_channeland every other permission as computed, so a secure channel stays listed for them. Every content, MLS, history or call request of theirs in a secure channel, other than the reads 09 §9.3 H6 allows, is refused by the security door (00 SM-4; 09 §9.3 H6) withsecurity.account_required, which leads to G1. This document's moderation, role, ban, report and audit-log requests aren't such requests (§8.2 rule 9). Permissions never open a secure door, and the door never hides a channel.
Preview visibility for non-members. 09 shows prospective members a channel list (09 §6.6), invite previews (09 §8.4) and defaultChannel (09 §3.2) only for channels where previewVisible holds. This function computes it from the everyone role; it is used only for display and grants nothing:
previewVisible(c) := view_channel ∈ ((everyone.permissions ∩ CH) − e.deny) ∪ e.allow
where e is c's everyone overwrite (empty if none);
role and member overwrites are ignored.09 uses previewVisible for callers with no community membership and for pending members (09 §6, §9.3 H4). Every action still needs the effective permissions of an active or needs_encryption member.
6.2 State modifiers
Applied in step 8, in this order. They never apply to admins (§6.1).
| Modifier | Condition | Effect |
|---|---|---|
| a. Timeout | An active Timeout for m (§8.5) | P := P ∩ {view_channel} |
| b. Mute | An active ServerMute for m (§8.6), or a Mute for everyone for m in c (15 §3.6) | No change to P. Mutes act on leases only. |
| c. New-member restriction | AntiSpamPolicy restrictions apply to m (§12.2) | P := P − restricted |
A timeout, server mute or ban is active exactly while now < until (or expiresAt) by the server's clock, whether or not the expiry job of §8.5, §8.6 or §9.5 has run yet. The 60 s expiry bound applies only to the lift event, the lease re-add and the audit entry.
6.3 Order of checks and error precedence
Checks before permissions. Authentication, account state, existence, visibility, membership, bans, security doors and channel membership run in the order the endpoint's owner defines: 09 §9.3 (H1–H8) for channel requests, 11 §4.5 for timeline writes, and the list below for this document's own endpoints. In every order, existence and visibility come before any security door, so a person who can't view a channel learns nothing about it, not even that it is secure (03 §18.6). A hidden channel always answers 404 core.not_found.
This document's checks. At the owner's permission step (09's H9, 11's step 8), the server runs these checks in this order and answers with the first failure:
| # | Check | Applies to | Error |
|---|---|---|---|
| a | Timeout (§8.5) | Only requests that need a permission other than view_channel: posting, editing, reacting, uploading, inviting, moderation, role and overwrite changes, joining a call to speak. Never: reads, read state, typing stop, joining or staying in a call as a listener, leaving, filing or withdrawing a report, and the key-management traffic of §3.5. |
moderation.timed_out (403, data.until) |
| b | Missing permission, tested against Pbase (§6.1, without state modifiers) |
Every request that needs a registry permission | 403 core.forbidden with data.permission (see below) |
| c | Hierarchy (§4.3) | Role, overwrite and moderation requests | role.hierarchy, moderation.target_protected, permission.not_held |
| d | New-member restriction (§6.2 modifier c) | Requests that need a restricted permission | moderation.new_member_restricted (403, data.permission, data.until) |
| e | Slow mode, then rate limits (§12) | Posts; every rate-limited request. For 11's timeline writes, slow mode runs at 11 §4.5 step 8 and the per-context rate limits of 11 §17.3 at step 14. | moderation.slow_mode (429), core.rate_limited (429) |
This document's own endpoints (/v1/roles…, /v1/moderation/…, /v1/bans…, /v1/reports…, /v1/audit-log) run, in order: (1) authentication (core.unauthenticated, core.token_expired); (2) account state (09 §9.3 H2, security.upgrade_required); (3) community membership and community-scope bans (09 §9.3 H5, with moderation.banned for a ban); (4) for a request naming a channel ctx: the channel exists and the caller can view it (core.not_found); (5) checks a–e above. Moderation actions by message ID or address are not reads of content, so they pass through no security door (00 SM-4); reading report evidence follows §10.5.
Exceptions: POST /v1/reports and GET /v1/reports?mine=true skip step 3 and check a, and use §10.4 step 1 instead, so a person who was kicked or banned can still report what was done to them.
A ban of scope server is also checked when a remote session is created (06), and a server-scope ban of a local account acts through 05's suspended state (§9.3).
Permission failures. A request refused only because a registry permission is missing MUST fail with 403 core.forbidden (03) with data: {"permission": "<name>"}, and the owner MAY add data.ctx. Every document MUST use this form for that case; no other code or data member names a missing permission.
A request refused because it needs the admin system role (§4.2) fails with 403 core.forbidden and data: {"missingRole": "admin"}. Every document MUST use this form for that case.
Proposed decision: every document reports a missing registry permission as 403 core.forbidden with data.permission (03's form), and every refusal caused by a ban as 403 moderation.banned. Rationale: one renderer for each case across documents; 03 and 11 already use the first form, and the Ban object is this document's.
6.4 Test vectors
These vectors are normative: an implementation MUST produce exactly these outputs. Outputs are listed in registry order (§3.1).
Setup.
| Role | Position | Permissions |
|---|---|---|
everyone |
0 | view_channel, send_messages, add_reactions, attach_files, speak_and_share, create_invites |
| Regular | 1 | mention_everyone |
| Moderator | 2 | mute_members, manage_messages, kick_members, ban_members, timeout_members, manage_reports, view_audit_log |
admin |
3 | (all) |
| Member | Roles | State |
|---|---|---|
alice@a.com |
admin |
active |
mo@b.com |
Moderator | active |
carol@c.com |
Regular | active |
dave@b.com |
— | active |
tim@b.com |
— | active, timed out until 2026-12-05T00:00:00.000Z |
nina@b.com |
— | active, joined 2 minutes ago; policy restricts attach_files, mention_everyone, create_invites for 10 minutes |
| Channel | Kind, security | Overwrites |
|---|---|---|
#announcements |
text, insecure | everyone: deny send_messages, attach_files. Moderator: allow send_messages. |
#staff |
text, secure | everyone: deny view_channel. Moderator: allow view_channel. |
Lounge |
voice, insecure | Regular: allow speak_and_share. Member carol@c.com: deny speak_and_share. |
#general |
text, insecure | none |
Vectors.
| # | Member | Channel | Effective permissions |
|---|---|---|---|
| V1 | dave@b.com |
#announcements |
view_channel, add_reactions, speak_and_share, create_invites |
| V2 | mo@b.com |
#announcements |
view_channel, send_messages, add_reactions, speak_and_share, mute_members, manage_messages, create_invites |
| V3 | dave@b.com |
#staff |
(none) |
| V4 | mo@b.com |
#staff |
view_channel, send_messages, add_reactions, attach_files, speak_and_share, mute_members, manage_messages, create_invites |
| V5 | carol@c.com |
Lounge |
view_channel, send_messages, add_reactions, attach_files, mention_everyone, create_invites |
| V6 | tim@b.com |
#general |
view_channel |
| V7 | nina@b.com |
#general |
view_channel, send_messages, add_reactions, speak_and_share |
| V8 | alice@a.com |
#staff |
all 12 channel-scoped permissions |
| V9 | mo@b.com |
(community) | view_channel, send_messages, add_reactions, attach_files, speak_and_share, mute_members, manage_messages, create_invites, kick_members, ban_members, timeout_members, manage_reports, view_audit_log |
| V10 | carol@c.com |
(community) | view_channel, send_messages, add_reactions, attach_files, mention_everyone, speak_and_share, create_invites |
Preview vectors (previewVisible, for pat@p.com, who isn't a member): #announcements, Lounge and #general are visible; #staff isn't.
Check vectors (§6.3):
| # | Request | Result |
|---|---|---|
| C1 | nina@b.com uploads an attachment in #general |
403 moderation.new_member_restricted, data.permission attach_files (attach_files ∈ Pbase, removed only by modifier c) |
| C2 | tim@b.com posts a message in #general |
403 moderation.timed_out |
| C3 | tim@b.com reads #general's timeline |
Allowed (a timeout never blocks reads) |
| C4 | dave@b.com posts in #announcements |
403 core.forbidden, data.permission send_messages |
| C5 | dave@b.com reads #staff |
404 core.not_found |
| C6 | mo@b.com creates a role at position 1 |
403 core.forbidden, data.permission manage_roles (missing permission comes before hierarchy) |
Hierarchy vectors:
mo@b.commay time outdave@b.com(2 > 0) but notalice@a.com(moderation.target_protected).- If
mo@b.comheldmanage_roles, creating a role at position 2 would fail withrole.hierarchy, and addingmanage_channelsto the Regular role would fail withpermission.not_held. As set up, both fail withcore.forbidden(data.permissionmanage_roles). mo@b.commay remove the Moderator role from himself withoutmanage_roles(§4.3 rule 4).alice@a.commay grantadmintomo@b.com(§4.3 rule 1 exception). After that,alice@a.comcan't remove the Moderator role oradminfrommo@b.com(role.hierarchy), andmo@b.comcan't time outalice@a.com(moderation.target_protected).alice@a.com, as the only admin, can't step down (role.last_admin).mo@b.comholdsmute_membersinLoungebut notmanage_roles, so he may set the member overwrite denyspeak_and_sharefordave@b.comthere (§5.2 exception), but not one that also deniessend_messages(core.forbidden,data.permissionmanage_roles).
6.5 Effects of a permission change
Any change that can alter effective permissions (a role edit, grant or removal, an overwrite change, a timeout, a server mute, a membership state change, a new-member restriction ending) takes effect at once for every later request. In addition, the server MUST:
- Leases (15). Recompute the lease lists of every call the affected members are in, and push the change to call control within 1 s. Losing
speak_and_shareremoves the participant from bothaudioandvideo; a server mute (like 15's Mute for everyone) removes them fromaudioonly; losingview_channelends their participation. 15 then guarantees the cut within 4 s (D-046). - Delivery. Stop delivering a channel's events to sessions of members who lost
view_channelthere, after delivering the event that caused the loss. A member who gainsview_channelgets the channel through 09's channel events. - MLS removal (13). When a member loses
view_channelin a secure channel, start 13's removal procedure for all of that member's leaves in the channel's group, with 13's reasonlost_access. When they regain it, their devices rejoin by external commit (13) with no prompt. - Events. Emit the events of §13.
Proposed decision: losing view_channel in a secure channel removes the member's MLS leaves. Rationale: stopping delivery alone would leave the member holding future epoch secrets that a colluding member could feed them; removal makes the permission cryptographically real.
7. Role and overwrite API
All endpoints are on the community's server, relative to its base URL, and need a home or remote session of an active or needs_encryption member (09; sessions: 03, 06) unless stated. Bodies are plain JSON (00 §7.3). Addresses in paths are canonical (D-032), with non-ASCII characters percent-encoded as UTF-8 (RFC 3986). A server rewrites an address on one of its own alias domains; any other non-canonical address fails with address.non_canonical (01). me in place of {address} means the caller.
7.1 Endpoint summary
| Method and path | Purpose | Requires |
|---|---|---|
GET /v1/roles |
List roles, ordered by position ascending |
Member (active or needs_encryption) |
POST /v1/roles |
Create a role | manage_roles |
GET /v1/roles/{roleId} |
Get one role | Member (active or needs_encryption) |
PATCH /v1/roles/{roleId} |
Edit a role | manage_roles + hierarchy |
DELETE /v1/roles/{roleId} |
Delete an ordinary role | manage_roles + hierarchy |
POST /v1/roles/reorder |
Reorder ordinary roles | manage_roles + hierarchy |
GET /v1/roles/{roleId}/members |
List holders (cursor-paged) | Member (active or needs_encryption) |
PUT /v1/roles/{roleId}/members/{address} |
Grant | manage_roles + hierarchy (+ manage_bots for bots; admin for the admin role) |
DELETE /v1/roles/{roleId}/members/{address} |
Remove | As grant; removing one's own roles per §4.3 rule 4 |
GET /v1/roles/members/{address} |
A member's roles and effective permissions | Member (active or needs_encryption) |
GET /v1/roles/overwrites/{ctx} |
List a channel's overwrites | view_channel in that channel |
PUT /v1/roles/overwrites/{ctx}/role/{roleId} |
Set a role overwrite | manage_roles in that channel + §5.2 |
PUT /v1/roles/overwrites/{ctx}/member/{address} |
Set a member overwrite | As above, or mute_members for a change of speak_and_share only (§5.2) |
DELETE /v1/roles/overwrites/{ctx}/role/{roleId} |
Remove a role overwrite | As for setting it |
DELETE /v1/roles/overwrites/{ctx}/member/{address} |
Remove a member overwrite | As for setting it |
roleId segments are UUIDv7, so the literal segments reorder, members and overwrites can't collide with them.
7.2 Listing and reading
GET /v1/roles?cursor=&limit= pages by cursor (00 §7.10), limit 1–250, default 250, so one page normally holds every role. Response: {"items": [Role…], "nextCursor": null}.
GET /v1/roles/members/{address}?ctx=<ctx> returns:
| Member | Type | Meaning |
|---|---|---|
address |
string | Canonical address. |
roleIds |
array of strings | Ordinary and admin roles held, by position descending. everyone is implied and not listed. |
top |
integer | Top position. |
permissions |
array of strings | Effective community permissions (§6.1 with no channel). |
channelPermissions |
array of strings | Present only when ctx was given: effective permissions in that channel. |
timeoutUntil |
string or null | Present only when the caller is the member or holds timeout_members. |
If ctx names a channel the caller can't view, the server answers 404 core.not_found, whatever the member's own access.
Clients SHOULD compute permissions locally from roles, overwrites and their own state, and use this endpoint to resynchronize or to show another member's powers.
7.3 Creating and editing roles
POST /v1/roles:
{ "name": "Event host", "permissions": ["mute_members", "mention_everyone"],
"color": "#6a1b9a", "showSeparately": false, "position": 1 }position is optional; the default is 1 (just above everyone). It MUST be below top(actor). Response: 201 with the Role. The server renumbers other roles (§4.3 rule 5) and emits role.created and, if positions moved, role.reordered.
PATCH /v1/roles/{roleId} takes any subset of name, color, showSeparately, and a permission change in one of two forms:
"permissions": [...]: replace the whole list. Every name added or removed MUST satisfy §4.3 rule 2."addPermissions": [...]and/or"removePermissions": [...]: change only the named entries. Clients SHOULD use this form, which preserves permissions they don't know (§3.3).
A request that combines permissions with addPermissions or removePermissions, or names one permission in both addPermissions and removePermissions, fails with core.invalid_request.
An optional ifVersion (integer) makes the edit conditional: if the role's version differs, the server answers 409 role.version_conflict with the current Role in data.current (the same pattern as 09). Response: 200 with the updated Role; event role.updated. Every change to a role, including a change of its position by renumbering or reordering, increases its version.
For the everyone role only permissions (in either form) may change. For the admin role nothing may change (role.system_role).
DELETE /v1/roles/{roleId}: 204. Holders lose the role, its overwrites are deleted, positions are renumbered. Events role.deleted and, if positions moved, role.reordered. System roles: role.system_role.
POST /v1/roles/reorder body {"order": ["<roleId>", …]} lists every ordinary role from lowest to highest. The server validates that the set equals the current ordinary roles (else core.conflict, so a client with a stale list refetches) and that no role at or above top(actor) changes relative position and none moves to or above top(actor) (else role.hierarchy). Response: 200 {"items": [Role…]}; event role.reordered.
7.4 Granting and removing
PUT /v1/roles/{roleId}/members/{address} with an empty body. A new grant returns 200 with {"address": …, "roleIds": […]} and emits role.member_added. It is idempotent: granting a held role returns the same 200 response with no event. A target that isn't an active or needs_encryption member fails with moderation.not_member.
DELETE /v1/roles/{roleId}/members/{address}: 204, idempotent. Event role.member_removed (only if the role was held).
PUT and DELETE on the members of the everyone role fail with role.system_role.
7.5 Overwrites
GET /v1/roles/overwrites/{ctx} returns {"items": [PermissionOverwrite…]} (not paged; at most maxOverwritesPerChannel). {ctx} MUST be a channel of this community (core.not_found otherwise, including for hidden channels).
PUT /v1/roles/overwrites/{ctx}/role/{roleId} and …/member/{address} take {"allow": [...], "deny": [...]} and replace the overwrite. Response: 200 with the PermissionOverwrite, or 204 if both lists were empty and the overwrite was deleted. Errors: permission.not_overwritable, permission.unknown, permission.not_held, role.hierarchy, permission.overwrite_limit. Events: permission.overwrite_set or permission.overwrite_removed, then the effects of §6.5.
Example:
PUT {base}/v1/roles/overwrites/ch:01938a11-2b3c-7d4e-8f90-112233445566/member/carol@c.com
Authorization: Bearer rs_4kJ…
Content-Type: application/json
{ "allow": [], "deny": ["speak_and_share"] }{
"ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
"targetType": "member",
"address": "carol@c.com",
"allow": [],
"deny": ["speak_and_share"],
"updatedAt": "2026-12-04T18:30:02.118Z",
"updatedBy": "mo@b.com"
}8. Moderation actions
8.1 Actions and how each mode enforces them
Moderation works in every security mode (D-023). In secure contexts the server can't read content, but it controls membership, delivery, stored ciphertext and leases, which is enough for every action below.
| Action | Permission | Insecure channel | Secure channel | DMs and group DMs hosted here | Calls |
|---|---|---|---|---|---|
| Delete messages (§8.3) | manage_messages in the channel; admin for DMs |
Plaintext deleted; tombstone (11) | Stored SealedMessages deleted; tombstone (11) | Admins only, usually after a report | — |
| Kick (§8.4) | kick_members |
Membership ends | Membership ends + MLS removal (13) | Not applicable | Lease revoked (15) |
| Ban (§9) | ban_members (community scope); admin (server scope) |
Membership banned |
banned + MLS removal |
Scope server only: §9.4 step 7 |
Lease revoked |
| Timeout (§8.5) | timeout_members |
Can only read (view_channel) |
Same; SealedMessage posts refused | Not applicable | Removed from audio and video |
| "Mute for everyone" in one voice channel (15 §3.6) | mute_members in that channel |
Removed from lease audio |
Same | Not applicable | Audio only; video continues |
| Server mute (§8.6) | mute_members at community level |
Removed from lease audio in every voice channel |
Same | Not applicable | Audio only; video continues |
Revoke speak_and_share (§8.7) |
manage_roles (overwrite or role change), or mute_members for a speak_and_share-only member overwrite (§5.2) |
Removed from audio and video |
Same | Not applicable | Both lists |
Call media always passes through the hosting server's relay or SFU (D-094), which enforce leases themselves (15 §4), so a lease revocation cuts off a modified client as surely as an honest one.
Limit of enforcement: a moderation action can't remove what a client has already received and decrypted. Honest clients MUST remove deleted content from display and local storage when they process the deletion (11). Modified clients may keep it.
8.2 Rules common to every action
- Who. The actor needs the permission in the table. The target MUST NOT be the actor (
moderation.self_target) and MUST satisfytop(actor) > top(target)(moderation.target_protected). Admins are protected from everyone, including other admins. For a person with noactiveorneeds_encryptionmembership (a former member, or a DM participant),topis 0. These rules also govern 15's Mute for everyone, whose refusals usemoderation.self_targetandmoderation.target_protected. - Reason. Every action accepts
reason: a string of 0–512 Unicode scalar values. It is stored in the audit log. It is shown to the target only when the request sets"showReason": true(defaultfalse). - Report link. Every action accepts an optional
reportId. The server links the audit entry to that report, and if the report isopenorin_reviewit adds the entry to the report'sactions(§10.2). - Audit. Every successful action writes at least one AuditLogEntry (§11) in the same transaction as the action. A kick or ban that also deletes messages (
deleteMessagesWithinMs) writes a second entry,messages_deleted, whoserelatedIdis the first entry'sid. The response'sauditIdnames the first (primary) entry. - Notify the target. The server sends
moderation.applied(ormoderation.lifted) to the target's sessions on this server (ctxme, durable) before cutting delivery. The event never names the moderator. - Idempotency. Clients MUST send an
Idempotency-Key(00 §7.11) with everyPOSTunder/v1/moderation/and/v1/bans, and servers MUST honour it for at least 24 h, returning the stored response to a retry. Without a key, aPOSTwhose body equals that of an action the same actor already applied to the same target, and that is still in force, returns the existing object with 200; the computed end time (until,expiresAt) is not part of the comparison. A kick of a target who is alreadyleftwith reasonkickedfrom a kick in the last 60 s returns 200 with that kick'sauditId. - Remote targets. The target may be a member homed on another server. All actions are local to this server; no S2S message is sent, except
report.forwarded(§10.9). - Order of effects. For actions that remove access, the server MUST, in this order: commit the state change; notify the target (rule 5); stop delivery and revoke leases (§8.8); start MLS removal (§8.8); emit the remaining events.
- No security door. Moderation actions name messages by ID and people by address; they never read content, so 00 SM-4's door doesn't apply to them. A moderator using an insecure account or an unenrolled device can delete, kick, ban, time out and mute in a secure channel they can view. Reading reported content is different (§10.5).
8.3 Deleting messages
POST /v1/moderation/message-deletions deletes one or more messages by ID, or a member's recent messages.
| Member | Type | Required | Meaning |
|---|---|---|---|
ctx |
string | Yes, unless author is given with allChannels: true |
The context. For a DM or group DM hosted here, the actor MUST be an admin. |
mids |
array of strings | One of mids or author |
1–100 message IDs in ctx. |
author |
string | One of mids or author |
Canonical address whose recent messages are deleted. |
withinMs |
integer | With author |
60,000 to 604,800,000 (7 days). Messages with a server timestamp within this window before now. |
allChannels |
boolean | No | With author: every channel of the community the actor has manage_messages in. Default false. |
reason, showReason, reportId |
No | §8.2. |
Rules:
manage_messagesis checked per channel. Withmids, any message whose author hastop(author) ≥ top(actor)is skipped and listed inprotected, except that an actor may always delete their own messages through this endpoint. Withauthor, §8.2 rule 1 applies to the author.- Insecure contexts: the server deletes the stored content and attachments and replaces each message with a tombstone (11) marked as removed by a moderator.
- Secure contexts: the server deletes the stored SealedMessage of each message, every stored SealedMessage it can associate with it through 11's cleartext structure (edits, reactions), and every attachment bound to it (11 §14.5). It tombstones each message exactly as 11 §5.4 and 14 §5.7 specify for author deletes, keeping the target's
mid, sender,did,gen,epochandsigHash, with the Deletionby: "moderator". ThesigHashlets members still report the message from a copy they kept (14 §13.3). The server never needs any key to do this. - Messages that are evidence in a report that isn't
resolvedorwithdrawnstay in that report's evidence store (§10.7); only the timeline copy is deleted. - The server emits 11's deletion event for each message, marked as a moderator removal, so honest clients remove the content.
- An
authordeletion processes at most 10,000 messages per request and reports"more": trueif more remain; the client repeats the request.
Response 200:
{ "deleted": ["01938f30-1b2c-7d4e-8f90-a1b2c3d4e5f6"],
"notFound": [],
"protected": [],
"more": false,
"auditId": "01938f52-77aa-7c01-9b11-0c0d0e0f1011" }UX note: how a moderated message is shown is 11's (11 §5.4: clients MAY show "Message removed by a moderator", 20 ST.deleted_by_mod). Clients never show who removed it.
8.4 Kick
POST /v1/moderation/kicks with {"member": "<address>", "reason": …, "showReason": …, "reportId": …, "deleteMessagesWithinMs": …}. deleteMessagesWithinMs also deletes the member's recent messages in every channel the actor has manage_messages in, as §8.3 with author.
Every deleteMessagesWithinMs in this document (kicks and bans) has one range: absent or 0 means no deletion; otherwise 60,000 to 604,800,000 (7 days), the same as §8.3's withinMs. Out of range: moderation.invalid_duration.
Effects, in the order of §8.2 rule 8:
- Membership becomes
left(09) with reasonkicked; roles and member overwrites are removed (§4.4). moderation.appliedwithaction: "kick"to the target.- Delivery of every channel and community event to the target's sessions stops. Their sessions stay valid for DMs hosted here.
- Leases in every call of the community are revoked (15).
- MLS removal (13) for all the target's leaves in every secure channel group of the community.
- 09 emits
member.removed; clients render a system line such as "Carol was removed from the community".
A kicked member may rejoin under the community's join policy (09). Response: 200 {"auditId": …}. A target that isn't an active or needs_encryption member: moderation.not_member (except the retry case of §8.2 rule 6).
8.5 Timeouts
A timeout stops a member from taking part for a while without removing them. While timed out, a member can see and read channels and listen in calls, but can't post, react, upload, invite, speak or share (§6.2: effective permissions become view_channel only).
Timeout object. A member has at most one timeout, so a Timeout has no ID of its own: it is keyed by member together with the member's incarnation (inc, 05 §11.1), which the server stores with it (D-086). It applies only to that incarnation and is deleted when 09 ends that account's membership because the account was deleted or a new incarnation of the address appeared (09 §4.2).
| Member | Type | Required | Meaning |
|---|---|---|---|
member |
string | Yes | Canonical address. |
until |
string | Yes | Timestamp when it ends. |
reason |
string | No | Visible only to holders of timeout_members, and to the target if showReason is true. |
showReason |
boolean | Yes | Whether the target is shown reason. Default false. |
createdBy |
object | Yes | The actor, as AuditLogEntry actor (§11.2): {"kind": "member", "address": …}, or {"kind": "system", "address": null} for an automatic timeout (§12.3). Never shown to the target. |
createdAt |
string | Yes | |
reportId |
string or null | No |
Endpoints:
| Method and path | Purpose | Requires |
|---|---|---|
POST /v1/moderation/timeouts |
Apply or replace | timeout_members |
GET /v1/moderation/timeouts |
List active timeouts (cursor-paged) | timeout_members |
GET /v1/moderation/timeouts/{address} |
Read one (the target may read their own) | timeout_members, or self |
DELETE /v1/moderation/timeouts/{address} |
Lift early | timeout_members + hierarchy |
POST body: {"member": …, "durationMs": …, "reason": …, "showReason": …, "reportId": …}. durationMs is 60,000 (1 minute) to 2,419,200,000 (28 days). Out of range: moderation.invalid_duration. A POST for a member who already has a timeout, with a different body, replaces it (new until) and writes a new audit entry; a retry is handled by §8.2 rule 6. Clients SHOULD offer the presets 1 minute, 10 minutes, 1 hour, 1 day and 1 week.
Effects: the member is removed from both lease lists in every call of the community (15); requests that need a permission other than view_channel fail with moderation.timed_out (data.until), and every other request is unaffected (§6.3 check a); MLS membership is unchanged (§3.5 last paragraph). A timeout stops counting the moment now ≥ until (§6.2). Within 60 s of until the server sends moderation.lifted, re-adds lease coverage, and writes an audit entry with actor kind system. When the lease covers the device again, the client's transmit gate follows 15 §10.6: a push-to-talk control that is held at that moment transmits at once with live audio only, and voice-activation and open-mic users follow 15's rules.
UX note: the timed-out member sees one calm line in the composer, for example "You can't send messages until 6:40 PM", and the reason if shown. Holding PTT shows "You're timed out — you're not being heard" (D-012's rule that the talk indicator never pretends to transmit).
8.6 Server mutes, and the rules behind "Mute for everyone"
A mute silences every audio source of a member in calls (microphone, screen sound, application sound) and leaves their screen video and webcam running, as the old design's "Mute for everyone" did (brief §5). It does not affect text. There are two:
- "Mute for everyone" is the in-call action for one voice channel. Its endpoint (
PUT,GET,DELETE /v1/contexts/{ctx}/call/mutes[/{addr}]), its Mute object and its call events belong to 15 §3.6. This document supplies only the permission (mute_membersin that channel), the rules of §8.2 (rule 1 hierarchy, withmoderation.self_targetandmoderation.target_protected) and the audit entries (member_muted,mute_lifted, withctxset, §11.3). - "Server mute" is a community-wide mute covering every voice channel of the community. It is this document's ServerMute object. It needs
mute_membersin the community's base permissions. 15 treats it as a separate input to the lease computation and reports it withaudioBlockedBy: "server_muted"(15 §4.1).
ServerMute object. A member has at most one server mute; it is keyed by member together with the member's incarnation (inc), which the server stores with it, and has no ID of its own. It persists across rejoins of the same account only: it is deleted when 09 ends the membership because the account was deleted or a new incarnation of the address appeared (09 §4.2, D-086).
| Member | Type | Required | Meaning |
|---|---|---|---|
member |
string | Yes | Canonical address. |
until |
string or null | Yes | End time, or null until lifted. |
reason, showReason, reportId |
No | §8.2. reason is returned only to holders of mute_members, and to the target if showReason is true. |
|
createdBy, createdAt |
Yes | As for Timeout. |
Endpoints:
| Method and path | Purpose | Requires |
|---|---|---|
POST /v1/moderation/server-mutes |
Apply or replace. Body {"member", "durationMs"?, "reason"?, "showReason"?, "reportId"?}; durationMs 60,000 to 2,419,200,000, or absent for "until lifted". |
mute_members (community level) + §8.2 |
GET /v1/moderation/server-mutes |
List current server mutes (cursor-paged). Any active or needs_encryption member may list them, because call participants see who is muted; reason follows the table above. |
Member (active or needs_encryption) |
GET /v1/moderation/server-mutes/{address} |
Read one | Member (active or needs_encryption) |
DELETE /v1/moderation/server-mutes/{address} |
Lift | mute_members (community level) + hierarchy |
Effects: within 1 s call control (15) removes the member from the lease audio list in every call of the community, and adds them back when the mute ends, if they still hold speak_and_share. The mute persists across calls and rejoins until it ends or is lifted. Server mutes don't apply to DM calls. The server emits moderation.server_mute_changed (§13) so other clients can show a "muted by a moderator" icon, and moderation.applied / moderation.lifted (action server_mute) to the target.
UX note: the target's mute indicator shows "Muted by a moderator", and the user can't unmute themselves. Holding PTT shows "Muted by a moderator — you're not being heard". When either kind of mute ends and the lease covers the device again, the transmit gate follows 15 §10.6, exactly as at the end of a timeout (§8.5). Others' clients show a distinct "muted by a moderator" icon.
Proposed decision: "Mute for everyone" in one voice channel is 15's API and object; this document defines only the community-wide ServerMute (/v1/moderation/server-mutes), plus the permission, hierarchy and audit rules for both. Rationale: one endpoint per action; 15 already owns the channel mute and its call events.
8.7 Revoking speak_and_share
Taking away someone's right to speak and share is a permission change, not a separate action:
- for one channel: a member overwrite with
deny: ["speak_and_share"](§7.5). A holder ofmute_membersin the channel may set or remove this even withoutmanage_roles(§5.2 exception), so an ordinary moderator can stop a person's abusive screen share or webcam, not only their sound; - everywhere: removing the roles that grant it, or editing
everyone(needsmanage_roles).
Call control removes the member from both lease lists (D-015, HP-15), so voice, screen video, screen and application sound, and webcam all stop within 4 s. Clients SHOULD offer this in a participant's menu as "Stop them speaking and sharing here", which issues the overwrite (adding speak_and_share to any existing member overwrite's deny). The audit log records it as overwrite_set.
Rationale: a separate "media ban" object would duplicate overwrites and could disagree with them. One mechanism means one answer to "can this person speak here?".
8.8 Hooks into MLS removal (13) and lease revocation (15)
This table is the complete list of triggers this document defines. 13 and 15 own what happens next.
| Trigger | Lease change (15) | MLS removal (13) |
|---|---|---|
| Kick | All calls in the community: revoke | Every secure channel group of the community: all the target's leaves |
Ban, scope community |
As kick | As kick |
Ban, scope server |
All calls hosted here, including DM calls: revoke | As kick, plus every secure DM and group DM group hosted here, as §9.4 step 7 says |
| Domain ban | As kick, for every member from that domain | As kick, for every member from that domain |
Loss of view_channel in a channel |
That channel's call: revoke | That channel's group, if secure |
Loss of speak_and_share, or a timeout |
Remove from audio and video |
None |
| Server mute, or 15's Mute for everyone | Remove from audio |
None |
| Ending of a timeout, mute or restriction | Re-add when speak_and_share is held; the client's transmit gate follows 15 §10.6 |
None |
13's removal reasons for these triggers are: kick kicked; ban banned (and, in group DMs under a server-scope ban, participant_removed); loss of view_channel lost_access.
The server MUST start the lease change within 1 s of committing the state change, and MUST start 13's removal procedure at once, as 13 §13.2 specifies (proposals batched within 1 s). Rationale: lease revocation is the part users notice in a call; MLS removal starts at the same time, and its content freeze keeps removed devices from reading anything new even before the commit (D-037).
8.9 Moderation status of a member
GET /v1/moderation/members/{address} returns what a moderator needs to know about one member, filtered by the caller's permissions: {"address", "timeout": Timeout|null, "serverMute": ServerMute|null, "ban": Ban|null, "openReports": integer, "joinedAt"}. timeout needs timeout_members, serverMute needs mute_members, ban needs ban_members, openReports needs manage_reports (counting only reports the caller can see, never reports about the caller); members the caller lacks are omitted. It needs at least one of those permissions (403 core.forbidden with data.permission timeout_members otherwise). Channel mutes are listed by 15's GET /v1/contexts/{ctx}/call/mutes.
9. Bans
A ban keeps an account, or every account of a domain, out of the community, and optionally out of everything the server hosts.
9.1 The Ban object
| Member | Type | Required | Meaning and constraints |
|---|---|---|---|
id |
string | Yes | UUIDv7. |
targetType |
string | Yes | address or domain. A receiver shows an unknown value as "Other ban". |
address |
string | When address |
The banned address: canonical when canonical is true. |
domain |
string | When domain |
The banned domain: a lowercase A-label, canonical when canonical is true. |
canonical |
boolean | Yes | false if the server couldn't resolve the target's server when the ban was made (§9.2). |
scope |
string | Yes | community or server (§9.3). server is allowed only for address bans. A receiver treats an unknown value as server (the stricter reading) for display. |
reason |
string | No | 0–512 characters. |
showReason |
boolean | Yes | Whether the target sees the reason. Default false. |
createdBy |
object | Yes | The actor, as AuditLogEntry actor (§11.2): {"kind": "member" | "system" | "operator", "address": … or null}. |
createdAt |
string | Yes | |
expiresAt |
string or null | Yes | End of a temporary ban, or null for a permanent ban. At least 1 hour after createdAt. |
reportId |
string or null | No | The report that led to it. |
{
"id": "01938f55-0c1d-7e2f-8a3b-4c5d6e7f8091",
"targetType": "address",
"address": "carol@c.com",
"canonical": true,
"scope": "community",
"reason": "Repeated harassment after a timeout",
"showReason": false,
"createdBy": { "kind": "member", "address": "mo@b.com" },
"createdAt": "2026-12-04T18:40:00.000Z",
"expiresAt": null,
"reportId": "01938f50-9a8b-7c6d-8e5f-4a3b2c1d0e0f"
}9.2 Canonical form and matching
Bans are stored in canonical form (D-032), so one ban covers every alias domain of the target's server (D-002).
- When creating a ban, the server runs
canonicalize()(01) on an address target, or discovery (02) on a domain target, and stores the result with the domain replaced by the target server'scanonicalDomain, andcanonical: true. - If discovery fails (the target server is unreachable or has no record), the server MUST still create the ban, storing the prepared local part and the lowercase A-label domain as given, with
canonical: false. It retries resolution at least every 24 h and rewrites the ban when it succeeds. Rationale: a moderator must be able to ban during an attack even when the attacker's server is down or misconfigured. - Matching. Let A be an account with canonical address
l@d, homed on a server whose ServerMetadata lists the domainsS(02). Anaddressban forbl@bdmatches A ifbl = land (bd = dorbd ∈ S). Adomainban forbdmatches A ifbd = dorbd ∈ S. The server evaluates matches at every community or channel join and at every community or channel request (09 §4.3 and §9.3), when it validates an MLS commit as Authentication Service or Delivery Service (13), and when the ban is created (for current members). When it creates a remote session (06) it checks only bans of scopeserver, because a community-scope ban leaves the person's DMs hosted here working. - A domain ban MUST NOT name the server's own canonical domain or any of its alias domains (
moderation.invalid_target). An actor can't create a ban that matches themselves (moderation.self_target). - A domain ban requires that the actor outranks every current member the ban matches (§8.2 rule 1). Otherwise the server refuses it with
moderation.target_protectedand lists them indata.protected. - Incarnations. Bans match the address alone, whatever the account's incarnation (
inc, 05 §11.1). This is the one exception to keying records on (address,inc) (06 §11.6, D-086): a ban of an address applies to a later account that registers it after a deletion (01 §5.7), and the community's moderators can lift it. A server MAY record theincthe target had when the ban was made, for moderators' information; matching never uses it.
9.3 Scopes
| Scope | Who may create or lift | Applies to | Doesn't apply to |
|---|---|---|---|
community |
ban_members |
address and domain targets. Membership, every channel, every community call, invites and joins. |
DMs and group DMs hosted on this server. |
server |
Admins only | address targets only. Everything above, plus every DM and group DM this server hosts, every remote session (for a remote account), message requests (dm.request) to this server's local accounts, and, for a local account, the home-server role (05's suspended state). |
— |
There is no server-scope domain ban. To cut off a whole server, admins use a federation block (06), which covers every alias.
A server-scope ban of a local account puts the account into 05's suspended state for the ban's lifetime, recording the ban ID as the cause. Every effect and error on the home-server side is 05's: requests fail with account.suspended except those 05 allows, refreshes fail, no HomeAssertions are issued, and the home server sends account.suspended (05 §11.8), so audiences end its remote sessions within 60 s. When the ban expires or is lifted, the account is restored as 05 §11.2 specifies, unless another cause of suspension remains (for example the operator suspended it separately). The home server keeps publishing the account's IdentityState (07), so contacts' pins stay valid if the ban is lifted. Nothing is deleted. moderation.banned is used only for refusals on the hosting side (joins, community and channel requests, remote sessions, DMs hosted here).
Proposed decision: bans have scope community (by address or domain, needs ban_members) or server (by address only, admins only). Server-wide blocking of a whole domain is a federation block (06), not a ban, and a server-scope ban of a local account puts it into 05's suspended state for the ban's lifetime. Rationale: one object per concept. A Discord-style community ban mustn't silently cut people's unrelated DMs, while admins still need a single tool to suspend an abusive local account or shut a remote abuser out of everything the server hosts.
9.4 Effects
When a ban is created, the server applies these effects, in the order of §8.2 rule 8, to every account it matches:
- Membership. A current membership (any state) becomes
banned(09), recording the ban ID. Roles and member overwrites are removed. Joining, accepting an invite, re-joining and every community or channel request fail withmoderation.banned(§9.6). This is the one code for every refusal caused by a ban, including 09's join step C3 and access step H5. - Target notice.
moderation.appliedwithaction: "ban",scope,expiresAtand the reason ifshowReason. - Sessions. Scope
community: the target's sessions on this server stop receiving every community and channel event at once. They stay valid for DMs hosted here. Scopeserver: the server ends every remote session of the target on this server at once, and new remote sessions fail withmoderation.banned; a local target's home sessions are governed by 05'ssuspendedstate (§9.3). - Calls. Leases revoked (§8.8). The relay cuts the target within 4 s (15).
- MLS. Removal of the target's leaves (§8.8, 13). As Authentication Service, the server refuses any external commit from a banned account with 13's
mls.credential_rejected(reasonnot_permitted,data.membershipCodemoderation.banned, 13 A5). - Messages. If the request set
deleteMessagesWithinMs(range in §8.4), the server deletes the target's messages from that window in every channel, as §8.3 withauthorandallChannels: true. - DMs (scope
serveronly). In every DM and group DM this server hosts:- Group DMs: the target is removed exactly as 12 §12.4 removes a participant the hosting server removes (state
removed, reasonremoved). In a secure group this runs 13's removal procedure with reasonparticipant_removed, so the next member commit drops the target fromsv_participants. - 1:1 DMs: the DM is closed read-only for both participants for as long as the ban lasts (12's
closedstate with reasonbanned, 12 §6.2). In a secure 1:1 DM the server also removes the target's leaves (13, reasonbanned). - As Delivery Service, the server refuses every post, commit, external commit, Welcome and DM creation by the target, and any commit that would add the target's identity back. It stops delivering every DM event to the target's sessions.
- It accepts and silently drops
dm.requestevents from the target to local accounts, so the target can't tell whether a request was delivered.
- Group DMs: the target is removed exactly as 12 §12.4 removes a participant the hosting server removes (state
- Events. 09 emits
member.removed(reasonbanned); clients render a system line such as "Carol was removed from the community". The server emitsmoderation.loggedto audit-log readers.
A ban doesn't change reports, the audit log, or messages it doesn't delete. A banned account's existing messages stay unless deleted.
9.5 Expiry and lifting
- A temporary ban ends at
expiresAt: it stops matching the momentnow ≥ expiresAt(§6.2). Within 60 s the server records the end: the membership becomesleft(09, reasonunbanned),moderation.liftedis sent if the target has a session, and an audit entry with actor kindsystemis written. The person may rejoin under the join policy. 1:1 DMs closed by the ban reopen in place (12 §6.2). - Lifting a ban early (
DELETE /v1/bans/{banId}) has the same effects. It doesn't restore roles, overwrites, deleted messages or MLS leaves; the person's devices rejoin by external commit after they rejoin the community (13).
9.6 API
| Method and path | Purpose | Requires |
|---|---|---|
POST /v1/bans |
Create | ban_members; admin for scope server |
GET /v1/bans |
List, filtered by targetType, scope, address, domain; cursor-paged; newest first |
ban_members (server-scope bans only for admins) |
GET /v1/bans/{banId} |
Read one | As list |
PATCH /v1/bans/{banId} |
Change reason, showReason or expiresAt |
As create |
DELETE /v1/bans/{banId} |
Lift | As create |
POST /v1/bans body:
| Member | Type | Required | Meaning |
|---|---|---|---|
address or domain |
string | Exactly one | Target, in any form canonicalize() accepts (an input-form place of 01 §7.7); the server canonicalizes it as §9.2 says. |
scope |
string | No | Default community. |
durationMs |
integer | No | 3,600,000 (1 hour) or more; absent for permanent. |
deleteMessagesWithinMs |
integer | No | Absent or 0 for none; otherwise 60,000 to 604,800,000 (§8.4). |
reason, showReason, reportId |
No | §8.2. |
Response: 201 with the Ban, or 200 with the existing Ban for a retry (§8.2 rule 6). If an active ban of the same target and scope exists and the body differs, the server updates that ban: it keeps its id, sets the new expiresAt, reason and showReason, writes a ban_updated audit entry, and answers 200 with the updated Ban.
Every refusal caused by a ban uses 403 moderation.banned with data {"scope": …, "expiresAt": …, "reason": … (only if showReason)}. UX note: clients show one plain sentence, for example "You've been banned from Sloppy Voice Lounge", plus the end date and reason when present. They never show who banned them.
10. Reports
10.1 Principles
- Anyone who can read a message can report it, in every mode (D-023, D-040).
- In secure contexts a report reveals the message keys (
K_msg) of exactly the reported messages and of the surrounding messages the reporter chose to include, never a history key (K_hist), so nothing else becomes readable (D-038, D-040). - Reports are unforgeable. The sender's device signature and the key commitment prove that the sender's device sent exactly the revealed content, and that the reporter neither altered nor invented it. 14 owns that procedure.
- Reported content from a secure context is visible to the hosting server's moderators, and the reporter is told so before sending (D-077).
- The person reported never learns who reported them from this protocol. Where the situation itself gives it away (a 1:1 DM), the reporter is told so (§10.11).
- The reporter makes as few decisions as possible: one category, an optional note, and one switch that is on by default. Everything else is a secondary link the reporter can ignore.
10.2 The Report object
The moderator view is the full object below. The reporter view (§10.8) is a subset.
| Member | Type | Required | Meaning and constraints |
|---|---|---|---|
id |
string | Yes | UUIDv7, generated by the server that stores the report. |
origin |
string | Yes | local (filed at the hosting server), forwarded (received by report.forwarded, §10.9), or reporter_home (filed at the reporter's own home server, §10.10). Unknown values: treat as local. |
originServer |
string or null | Yes | For forwarded: canonical domain of the server that forwarded it. Otherwise null. |
originReportId |
string or null | Yes | For forwarded: the report's id at originServer. Otherwise null. |
host |
string | Yes | Canonical domain of the context's hosting server. |
ctx |
string or null | Yes | Context reference, or null for a report about a member that isn't tied to a context. |
requestId |
string or null | Yes | For a reporter_home report about a message request: the request's ID (12). Otherwise null. |
kind |
string | Yes | messages (one or more reported messages) or member (a person's behaviour, name or call conduct, with no reported message). Unknown: treat as member. |
category |
string | Yes | spam, harassment, hate, violence, sexual_content, child_safety, self_harm, illegal, impersonation or other. Unknown: treat as other. |
target |
string | Yes | Canonical address of the reported person. For messages, the author of every reported item. |
did |
string | No | The unknown device's ID (05). Only for kind: member with category: impersonation (see below). |
reporter |
string | Moderator view, local and reporter_home only |
Canonical address of the reporter. Never present in forwarded reports, and never shown to the target. |
note |
string | No | The reporter's words, 0–1,000 Unicode scalar values. Never forwarded (§10.9). |
routing |
string | Yes | moderators or admins (§10.5). |
includeContext |
boolean | Yes | Whether the reporter included surrounding messages. |
allowForward |
boolean | Yes | Whether the reporter allowed forwarding to the target's home server (§10.9). |
items |
array of ReportItem | Yes | Empty for kind: "member". |
verification |
string | Yes | Summary over reported items: verified (every item's result is verified or plaintext), partial (some are), failed (none is), not_applicable (member report). Unknown: treat as failed. |
status |
string | Yes | §10.6. |
resolution |
string or null | Yes | §10.6; null unless resolved. |
resolutionNote |
string or null | No | Moderators' internal note, 0–2,000 characters. Never shown to the reporter or target, never forwarded. |
assignee |
string or null | No | The moderator working on it. |
actions |
array of strings | Yes | IDs of audit entries for actions linked to this report (§8.2 rule 3). |
preserveEvidence |
boolean | Yes | Legal hold set by an admin (§10.7). Default false. |
forwardedTo |
array of strings | Yes | Domains this report was forwarded to. |
version |
integer | Yes | Increases on every change. For ifVersion. |
createdAt, updatedAt |
string | Yes | |
resolvedAt, resolvedBy |
string or null | Yes |
A member report with category: impersonation MAY name the reporter as target; it then means 'someone else is using my address' (07 §18.2, W4b), MUST carry ctx, SHOULD carry did, and has allowForward: false. Moderator clients present it as "Someone else may be using {target}'s address (device {did})", not as a report against the target. The rule of §10.5 that the target never sees the report doesn't hide it from its own reporter.
ReportItem.
| Member | Type | Required | Meaning |
|---|---|---|---|
mid |
string | Yes | Message ID. |
role |
string | Yes | reported or context. Unknown: treat as context. |
kind |
string | Yes | message, edit or reaction: from the verified SealedMessage's kind, or the stored entry's kind (11). Unknown: treat as message. |
ref |
string or null | Yes | For edit and reaction: the mid the item acts on. Moderator clients present such an item as acting on that message (14 §13.2). Otherwise null. |
seq |
integer or null | Yes | The message's sequence number in ctx, from the server holding the evidence; for a reporter_home report about a DM, the value the reporter's client supplied (informative only). |
author |
string | Yes | Canonical address of the sender. |
did |
string | Sealed items | Sending device ID. |
sentAt |
string or null | Yes | The hosting server's timestamp, when known. |
content |
object | Only for results verified and plaintext, subject to §10.5 |
The content object (11): the stored plaintext for a plaintext item, or the plaintext obtained by verified decryption. Never present for any other result (14 §13.5). |
sealed |
object | Sealed items, subject to §10.5 | The SealedMessage (14) as stored, or as supplied by the reporter and accepted (§10.4 step 4, §10.12). |
kMsg |
string | Sealed items, subject to §10.5 | The revealed message key, base64url (32 bytes). Absent for items that were never sealed, including pre-upgrade plaintext in a secure channel. |
credential |
object | Sealed items of reporter_home and forwarded reports |
{"idc": "<IdentityCertificate JWS>", "devcert": "<DeviceCertificate JWS>"}: the sender's credential record (14 §5.6), so a server that doesn't host the context can verify (§10.12). Local reports use the hosting server's own records instead. |
attachments |
array | No | [{"attachmentId", "fileKey" (sealed items only, subject to §10.5), "size", "available": boolean, "result": 14 §13.4 result}]. |
itemVerification |
object | Yes | {"result": <one of 14 §13.5's results>}: verified, plaintext, not_found, credential_invalid, bad_signature, bad_key, decrypt_failed, bad_content or not_referenced. Unknown: treat as not verified. |
evidenceSource |
string | Yes | server (the stored copy of the server holding the report: the hosting server's timeline, or a home server's stored dm.request), reporter (a SealedMessage copy supplied by the reporter and accepted), or origin (received from the forwarding server, §10.9). Unknown: treat as reporter. |
truncated |
boolean | No | true when a forwarded item arrived without its evidence (§10.9). Default false. |
withheld |
string or null | No | Set when the evidence members are withheld from the caller (§10.5): security.account_required or security.device_not_enrolled. |
10.3 Filing a report: client procedure
- Start. The user picks "Report" on a message, several selected messages, or a person's profile or call tile. A message report sets
kind: "messages"; a profile or call-tile report setskind: "member"with thectxit was made from (ornullfrom a profile outside any context). - One screen. The client shows the categories as plain choices ("Spam", "Harassment or bullying", "Hate", "Violence or threats", "Sexual content", "A child is at risk", "Self-harm", "Something illegal", "Pretending to be someone", "Something else"), an optional note field, and, for message reports, a switch "Include the messages around it", on by default. Below them it shows the disclosure line (§10.11). Then "Send report". There is no other required step. When the target's home server isn't the server the report goes to, a secondary link "Don't pass this on to other servers" sets
allowForward: falseand drops the forwarding sentence from the disclosure line. - Context selection. If the switch is on, the client includes as
contextitems up to 10 messages immediately before the earliest reported message and up to 10 immediately after the latest one, inseqorder, counting only messages that it has already decrypted (secure) or loaded (insecure) and that aren't tombstones. It MUST NOT include a message the user couldn't read. Context items may be from anyone, including the reporter; they are never forwarded to another server (§10.9). - Keys and copies. In a secure context the client derives
K_msgfor each sealed item from the history key it holds (14) and puts it inkMsg. For each attachment of areporteditem it adds thefileKeyfrom the decrypted content. If the client knows the server no longer stores a sealed message (for example the author deleted it after the user read it), it MAY include its own copy insealed(14 §13.3). Clients never send copies of insecure messages: nobody could verify them (14 §13.5). - Send
POST /v1/reportsto the hosting server ({host}), through the existing session. Two cases go to the reporter's own home server instead (§10.10): a message request that hasn't been accepted, and a DM or group DM hosted on the target's own home server. - Then. The client offers, on the confirmation screen, "Block" (for a DM, 12) or "Leave" (for a channel), without requiring either. It records the report once in the user's "My reports" list.
Request body:
| Member | Type | Required | Meaning |
|---|---|---|---|
ctx |
string or null | Yes | |
host |
string | For §10.10 reports | Canonical domain of the hosting server. A hosting server ignores it and uses its own. |
requestId |
string | For a message-request report | The message request (12) at the reporter's home server. |
kind |
string | Yes | |
category |
string | Yes | Unknown values are rejected with core.invalid_request when filing. |
target |
string | For member reports and §10.10 reports |
Canonical address. For a local messages report, the server takes the target from the items. |
did |
string | No | The unknown device's ID; only for kind: member with category: impersonation (§10.2). |
note |
string | No | |
routing |
string | No | admins to send only to the server's admins; default moderators. Clients put this behind a secondary "Send to the server's admins instead" link. |
includeContext |
boolean | No | Default true. |
allowForward |
boolean | No | Default true. |
items |
array | For messages |
[{"mid", "role", "kMsg"?, "sealed"?, "credential"?, "attachments"?: [{"attachmentId", "fileKey"?}]}], where credential is sent only in §10.10 reports. 1 to maxReportItems reported items, and at most 10 context items before and 10 after. |
Example (secure channel):
POST {base}/v1/reports
{
"ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
"kind": "messages",
"category": "harassment",
"note": "This has been going on for a week.",
"includeContext": true,
"allowForward": true,
"items": [
{ "mid": "01938f30-1b2c-7d4e-8f90-a1b2c3d4e5f6", "role": "reported",
"kMsg": "Zx8c1qD0y7mPq4nV9kL2wB6tR3sH5jF0aE1uC8gI2oM",
"attachments": [ { "attachmentId": "01938f31-0000-7a00-8b00-00000000aa01",
"fileKey": "pQ4rS5tU6vW7xY8zA9bC0dE1fG2hI3jK4lM5nO6pQ7r" } ] },
{ "mid": "01938f2f-ff00-7a00-8b00-0000000000c1", "role": "context",
"kMsg": "b7Hc2Ld9Kq0Pw3Ry5Tz8Uv1Xn4Ms6Ja0Fg2Eh5Di9Ck" }
]
}10.4 Server processing
On POST /v1/reports the hosting server MUST:
- Authorize. The reporter must be able to read the reported items: an
activeorneeds_encryptionmember who can view the channel (aneeds_encryptionmember only for items inside their visibility ranges, 09 §7.2; sealed items a VisibilityGrant of the reporter covers count as readable, 14), or a participant of the DM or group DM. A reporter who lost access (left, kicked, banned with scopecommunity, or removed from a DM) may still report messages they could read, for 30 days after losing access; the server judges readability by their membership history. Amemberreport withctx: nullneeds a community membership that is current or ended within 30 days, or a session on this server. Bans and timeouts don't otherwise block filing (§6.3). - Validate items. Each
midmust belong toctxand to the part of the timeline the reporter could read (09, 11, 14); everyreporteditem must have the same author, who is not the reporter (this rule applies only toreporteditems;contextitems may be the reporter's own); counts must be within limits. Failures:report.invalid_items(with the offendingmidsindata) orreport.too_many_items. - Deduplicate. If the same reporter has a report that isn't
resolvedorwithdrawncovering any of the samereportedmids (or, formemberreports, the same (target,ctx,did) within 24 h), answer 409report.duplicatewithdata.reportId. - Snapshot evidence (§10.7): for each item, the stored plaintext (insecure context, or pre-upgrade plaintext) or SealedMessage, and the referenced attachment blobs. Where the server no longer stores a sealed message and the reporter supplied a copy, the server uses the copy only if 14 §13.2 step 2 accepts it (its signature digest equals the tombstone's
sigHash), withevidenceSource: "reporter"; otherwise it discards the copy. - Verify every item with 14 §13.2 and every attachment with 14 §13.4, using the server's own credential records (14 §5.6), and store each result in
itemVerification.result. Forverifieditems store the decrypted content ascontent, andkindandreffrom the SealedMessage. Forplaintextitems store the stored content. For every other result store no content: the item keeps only its metadata and result. - Reject unverifiable reports. If
kindismessages, the context is secure, and noreporteditem has the resultverifiedorplaintext, answer 422report.unverifiableand store nothing. Reports ofkind: memberare never refused by this step. Rationale: an honest client never produces such a report, and storing it would let anyone fill the queue with unreadable noise. - Route (§10.5), store, emit
report.created, write no audit entry (filing isn't a moderation action), and return 201 with the reporter view.
10.5 Routing and visibility
| Report | Visible to |
|---|---|
Channel or community report, routing: "moderators" |
Admins, and members holding manage_reports who also have view_channel in ctx (for ctx: null, every holder of manage_reports). |
Category child_safety or illegal |
Also always to admins. |
routing: "admins" |
Admins only. |
| DM or group DM report | Admins of the hosting server only. Community moderators never see DM content. |
origin: "forwarded" or "reporter_home" |
Admins of the receiving server only. |
In every case:
- the target never sees the report, even if they hold
manage_reportsor are an admin (a self-target impersonation report, §10.2, is still visible to its reporter through the reporter view); if the target would be the only person able to see it, the server routes it to the other admins, and if there are none, the report waits for the operator (21) and the server SHOULD alert the operator; - the reporter sees only the reporter view of their own reports;
- a moderator's access ends at once when they lose the permission or
view_channel.
Evidence from secure contexts. Under 00 SM-4 only a secure account using an enrolled device can read a secure context, and D-077 makes reported secure content visible to moderators through that same door. The server MUST return the evidence members of items from a secure context (content, sealed, kMsg, fileKey, and attachment blobs) only to a session of a secure account using an enrolled device. To any other session that may see the report it returns the report and each item's metadata and itemVerification, without those members and with withheld set to security.account_required (insecure account) or security.device_not_enrolled (unenrolled device). The client shows G1 or G2 in place of the evidence, and the moderator can read it once encryption is set up. Evidence attachment downloads answer with the same security.* error. This rule also applies at a home server holding a forwarded or reporter_home report about a secure context.
Proposed decision: DM reports and reports forwarded from other servers are visible only to admins, never to community moderators; a report is never visible to its target; evidence from a secure context is shown only on a secure account's enrolled device. Rationale: community moderators may be remote volunteers unrelated to the DM participants, D-077 promises reporters only that the server's moderators will see what they share, and SM-4 should hold for moderators too.
10.6 Statuses and resolution
| From | Event | Who | To |
|---|---|---|---|
| — | Filed | Reporter | open |
open |
Claim (status: "in_review") |
A moderator who can see it | in_review (assignee set) |
in_review |
Unclaim (status: "open") |
Assignee or admin | open |
open, in_review |
Resolve, with resolution |
A moderator who can see it | resolved |
open |
Withdraw (DELETE), if actions is empty |
Reporter | withdrawn |
resolved |
Reopen, within 30 days | Admin | open |
open, in_review |
365 days old | Server | resolved, resolution expired |
withdrawn is final. resolution values: action_taken, no_action, invalid (the content isn't what the report says, or verification failed), duplicate, expired. Receivers treat unknown statuses as open and unknown resolutions as no_action. An invalid transition fails with report.status_conflict.
When a report becomes resolved, the server sends report.resolved to the reporter with a coarse outcome: action_taken if the resolution is action_taken, otherwise reviewed. The reporter never learns what action was taken, against whom, or by whom.
10.7 Evidence storage and retention
- Evidence (plaintext, SealedMessages,
kMsgvalues, credentials, decrypted content, attachment blobs and file keys) is stored separately from the timeline. Timeline deletion, retention (11) and moderation deletion (§8.3) don't touch it. - Evidence is readable only by the people who can see the report (§10.5), under §10.5's rule for secure contexts, through §10.8, and by the server it was forwarded to, through §10.8's S2S endpoints. The server MUST NOT use evidence for any other purpose.
- Evidence is deleted 90 days after the report becomes
resolved, within 24 h of a withdrawal, or when the report expires, unless an admin setpreserveEvidence(for example for a legal obligation). ClearingpreserveEvidencestarts the 90 days again. The report's metadata (everything exceptnote,items[].content,sealed,kMsg,credential,fileKeyand blobs) is kept as long as the audit log (§11.4). - Revealed
kMsgvalues let the holder decrypt exactly one message each. They MUST be treated as plaintext-equivalent: encrypted at rest under the server's storage protections and never logged.
10.8 API
| Method and path | Purpose | Requires |
|---|---|---|
POST /v1/reports |
File | §10.4 step 1 (§10.10 at a home server) |
GET /v1/reports |
Queue: reports the caller can see (§10.5). Filters: status, ctx, target, category, origin, assignee. Cursor-paged, oldest open first. |
manage_reports or admin |
GET /v1/reports?mine=true |
The caller's own reports, reporter view, newest first | Any session |
GET /v1/reports/{id} |
Moderator view (with §10.5's rule for secure evidence), or reporter view for the reporter | As above |
PATCH /v1/reports/{id} |
Change status, resolution, resolutionNote, assignee, and (admins) preserveEvidence; optional ifVersion (409 report.version_conflict with the current Report in data.current) |
A person who can see it |
DELETE /v1/reports/{id} |
Withdraw | The reporter |
GET /v1/reports/{id}/attachments/{attachmentId} |
Download an evidence attachment blob (encrypted in secure contexts; the moderator's client decrypts it with the item's fileKey, 11) |
A person who can see it (§10.5). Session only; not an S2S endpoint. |
GET /v1/reports/{id}/evidence/{mid} |
One reported item's full evidence, as a ReportItem with sealed, kMsg and credential, or content for a plaintext item. S2S endpoint (06 §8.1). |
An S2S token (06) whose iss is a domain in the report's forwardedTo, for 30 days after forwarding |
GET /v1/reports/{id}/evidence/{mid}/attachments/{attachmentId} |
The evidence attachment blob of a reported item, as stored (encrypted in secure contexts). S2S endpoint (06 §8.1). |
As the row above |
POST /v1/reports/{id}/forward |
Forward to the target's home server (§10.9). Empty body. Answers 202 {"forwardedTo": ["<domain>"]} and emits report.updated. |
Admin; §10.9's conditions (report.not_forwardable) |
Reporter view: {"id", "ctx", "kind", "category", "status", "outcome" (null until resolved), "createdAt", "updatedAt"}. withdrawn reports appear with that status.
Moderator clients show content only for items whose result is verified or plaintext (14 §13.5): verified items with a mark such as "Verified: sent by this person's device"; plaintext items with "As stored by {server}", or, when evidenceSource is origin, "As stored by {originServer}; can't be checked here" (reference texts: 20 ST.report_item.*). Every other result is shown as a one-line explanation without content, for example "Couldn't be verified" or "This message was deleted before it was reported". Items with withheld show G1 or G2. Moderator clients MAY re-run 14's verification locally from sealed, kMsg and the credential.
10.9 Forwarding to the sender's home server: report.forwarded
An admin of the server holding a report may forward it to the target's home server with POST /v1/reports/{id}/forward. Forwarding is never automatic. It is allowed only when all of these hold, otherwise the server answers 403 report.not_forwardable with data.reason (not_allowed, same_server, nothing_verified, already_forwarded or not_forwardable_kind):
kindismessagesandoriginislocalorreporter_home(aforwardedreport isn't forwarded again);allowForwardistrue;- the target's home server isn't this server;
- at least one
reporteditem has the resultverifiedorplaintext; - the report hasn't been forwarded to that server before.
For a 1:1 DM, the admin's confirmation says that the target's server will probably be able to tell who reported, because the conversation has only two people.
The event travels through 06's S2S event delivery (POST {target home}/v1/federation/events, type report.forwarded). This document owns its payload d:
| Member | Type | Required | Meaning |
|---|---|---|---|
reportId |
string | Yes | The report's ID at the origin. |
origin |
string | Yes | Canonical domain of the forwarding server. It MUST equal the S2S token's iss. |
host |
string | Yes | Canonical domain of the context's hosting server. It equals origin for a local report and differs for a reporter_home report. |
ctx |
string | Yes | The context reference. Verification needs it: 14 binds it into every SealedMessage and its group ID. |
security |
string | Yes | insecure or secure. |
kind |
string | Yes | Always messages. |
category |
string | Yes | As in §10.2. |
target |
string | Yes | Canonical address; its domain MUST be the receiver's canonical domain. |
targetInc |
string or null | Yes | The target's incarnation (05 §11.1, D-086) as the forwarding server recorded it for the author of the reported items (its membership or DM participant record, or the dm.request inviter, 12 §8.2), or null when it holds none. |
items |
array | Yes | The reported items only, in seq order, each a ReportItem with: sealed, kMsg and credential for sealed items; content for plaintext items; attachments by reference only (attachmentId, fileKey, size); the origin's itemVerification. Items whose result isn't verified or plaintext carry metadata and result only. |
hostVerification |
string | Yes | The origin's verification summary. |
forwardedAt |
string | Yes |
The payload MUST NOT contain the reporter's address, the reporter's note, any context item, resolutionNote or assignee. Rationale: context items can be the reporter's own messages and a note can identify its author, while the target's home server may be run by the target. In a 1:1 DM the target's server can still infer the reporter; §10.11 tells the reporter so.
Size. The serialized event MUST NOT exceed the destination's maxFederationEventBytes (06; default and floor 128 KiB). The origin includes reported items with their full evidence, in seq order, while they fit; every later item is sent with "truncated": true and without sealed, kMsg, credential and content. The receiver fetches a truncated item's evidence with GET {origin}/v1/reports/{reportId}/evidence/{mid} (S2S endpoint, 06 §8.1) within 30 days, and attachment blobs with GET {origin}/v1/reports/{reportId}/evidence/{mid}/attachments/{attachmentId}. One item with full evidence always fits, because a SealedMessage is bounded by maxMessageBytes (11).
{
"reportId": "01938f60-2b3c-7d4e-8f90-0a1b2c3d4e5f",
"origin": "a.com",
"host": "a.com",
"ctx": "dm:Qm9iQWxpY2VETUlEMTIzNA",
"security": "secure",
"kind": "messages",
"category": "spam",
"target": "spammer@d.com",
"targetInc": "YGFiY2RlZmdoaWprbG1ubw",
"items": [
{ "mid": "01938f5e-0a0b-7c0d-8e0f-101112131415", "role": "reported",
"kind": "message", "ref": null, "seq": 3,
"author": "spammer@d.com", "did": "Yx3kP0aL9qR2sT5uV8wZ1A",
"sentAt": "2026-12-04T19:00:01.250Z",
"sealed": { "v": 1, "ctx": "dm:Qm9iQWxpY2VETUlEMTIzNA", "gen": 1,
"mid": "01938f5e-0a0b-7c0d-8e0f-101112131415", "epoch": 1,
"ekid": "Ab3dEf6hIj0", "kind": "message", "did": "Yx3kP0aL9qR2sT5uV8wZ1A",
"nonce": "3q2-7wAAAAAAAAAB", "kc": "kL2mN3oP4qR5sT6uV7wX8y",
"ct": "Q2lwaGVy…", "sig": "U2lnbmF0…" },
"kMsg": "c3BhbW1lcktleUV4YW1wbGVPbmx5MDEyMzQ1Njc4OTA",
"credential": { "idc": "eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWlkY2VydCtqd3Qi…",
"devcert": "eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWRldmNlcnQrand0Ii…" },
"attachments": [],
"itemVerification": { "result": "verified" },
"evidenceSource": "server" }
],
"hostVerification": "verified",
"forwardedAt": "2026-12-04T19:05:00.000Z"
}Receiving home server. It MUST:
- accept the event only if
originequals the S2S token'sissandtargetis a local account; otherwise drop it (06 acknowledges it, so it isn't retried). It also drops the event iftargetIncisn't null and differs from the local account'sinc: the reported content belongs to an earlier account at that address (06 §10.1, D-086). It also drops events beyond 100report.forwardedper day from one origin domain, and deduplicates on (origin,reportId). 06's subject binding for this type is therefore "issequals the payload'sorigin; the target is homed at the receiver";hostmay differ fromorigin. - fetch the evidence of truncated items (above), then verify each sealed item itself with §10.12, building the SealedHeader from
host, and record its own result. It can't checkplaintextitems: it records them with resultplaintextandevidenceSource: "origin". - fetch every referenced attachment blob of a verified item over S2S from
GET {origin}/v1/reports/{reportId}/evidence/{mid}/attachments/{attachmentId}within 30 days (when the event arrives, or when an admin first opens the report), check it with 14 §13.4, store it as evidence, and serve it to its own admins at its ownGET /v1/reports/{id}/attachments/{attachmentId}. A blob it couldn't fetch is markedavailable: false. - store it as a new Report with its own
id,origin: "forwarded",originServerandoriginReportIdset, androuting: "admins", and emitreport.createdto its admins.
Home-server actions. The home server's admins may resolve the report with any of: no action; a server-scope ban of the account, which puts it into 05's suspended state (§9.3); revoking one of the account's devices (05), for example a compromised bot process; or deleting a bot account (05). Each is logged (§11). Admins SHOULD NOT suspend an account on plaintext evidence from the origin alone: it is only the origin server's claim, and a malicious server could invent it. In v1 the home server doesn't report its outcome back to the origin.
10.10 Reports filed at the reporter's own home server
Two cases are filed at the reporter's home server (POST {home}/v1/reports through the home session), stored with origin: "reporter_home", routing: "admins" and host naming the hosting server. The home server accepts them only from its own local accounts. It applies §10.4 steps 3, 6 and 7, and those checks of step 2 that it can make (counts, and one author for every reported item who isn't the reporter), with the changes below.
- Message requests that haven't been accepted. The recipient's client never contacts the hosting server before Accept (D-049), so a report from a message request goes to the recipient's home server, which holds the
dm.requestevents (12). The request carriesrequestId, and the home server checks that the request was addressed to the reporter. Items name events of that request. The home server uses its own stored copy as evidence (evidenceSource: "server"): insecure items get the resultplaintext; sealed items are verified with §10.12, using thecredentialthe client supplies from the Welcome. Attachment blobs live at the hosting server, which the reporter never contacted, so they areavailable: falsewith resultnot_found. The client offers this as "Report and block" on the request (block is 12's). - DMs hosted on the target's own home server. When a DM's or group DM's hosting server is the target's home server and isn't the reporter's home server, the client files the report only at its own home server, never at the hosting server, because the target's own server may be run by the target and would learn who reported. The home server checks that its DM index (12) holds
ctxwith thathostfor the reporter. Sealed items carry the reporter'ssealedcopy and the sender'scredential(from the client's credential cache or 14's credential records) and are verified with §10.12 (evidenceSource: "reporter"). Insecure items can't be verified anywhere but at the hosting server, so the client sends them without content and they get the resultnot_found; the report then rests on the note and the item metadata. Attachments areavailable: false. The client lists the report once in "My reports".
Admins of the reporter's home server can then ban the sender with scope server (which also drops further dm.requests from them, §9.4 step 7), block the sender's server (06), or forward the report to the target's home server (§10.9) if the reporter allowed it.
Proposed decision: forwarding is only ever an admin's deliberate act and carries only the reported items, without the reporter's address, note or context; a DM hosted on the target's own home server is reported only to the reporter's home server, which may forward it. Rationale: the target's home server may be run by the target, and principle 5 says the target never learns who reported them.
10.11 The disclosure line
The reporter MUST see, on the report screen before sending, one line that says who will see what. Reference English text (20 may adjust wording, not meaning):
| Context | Disclosure line |
|---|---|
| Insecure channel | "This community's moderators will see your report and the messages you selected." |
| Secure channel | "This chat is end-to-end encrypted. Reporting shares the selected messages, and the messages around them if switched on, with this community's moderators so they can read them." |
| Group DM | "Reporting shares the selected messages, and the messages around them if switched on, with the people who run {host}. They may pass the reported messages on to the people who run {target's server}." |
| 1:1 DM | "Reporting shares the selected messages, and the messages around them if switched on, with the people who run {host}. They may pass the reported messages on to the people who run {target's server}, who could probably tell the report came from you." |
| DM or group DM hosted on the target's server (§10.10 case 2) | "Reporting shares the selected messages with the people who run your account's server ({home}). They may pass the reported messages on to the people who run {host}." For a 1:1 DM it adds ", who could probably tell the report came from you". |
| Message request | "Reporting shares this request with the people who run your account's server ({home}). They may pass it on to the people who run {target's server}." |
When the reporter turns forwarding off (§10.3 step 2), the client drops the sentence about passing the report on. "Moderators" is used in plain language even where only admins will see the report.
10.12 Verification away from the hosting server
A server that doesn't host the context (the reporter's home server, §10.10, or the target's home server receiving report.forwarded, §10.9) has no credential record of its own for the sender's device. It verifies a sealed item with this variant of 14 §13.2, whose results are those of 14 §13.5.
Inputs: the SealedMessage S (from its stored dm.request, the reporter's copy or the forwarded item), the item's author as sender, kMsg, credential (idc, devcert), and the hosting server's canonical domain host from the report.
S.ctxMUST equal the report'sctx, andS.didthe item'sdid. Otherwise →bad_content.- Identity. The verifier obtains
sender's IdentityState itself: from its own records ifsenderis a local account, otherwise withGET {sender's home}/v1/users/{local}/identity(07), together with any earlier IdentityStates forsenderit already holds.idcMUST be a valid IdentityCertificate (07) withsubequal tosenderand an identity key equal to the one in one of those IdentityStates. Otherwise →credential_invalid. - Device.
devcertMUST verify underidc's identity key, withsubequal tosenderanddidequal toS.did; itsdskis the DSK used below. Otherwise →credential_invalid. A later revocation of the device doesn't invalidate what it sent before; the verifier MAY show the revocation next to the result. - Run 14 §13.2 steps 4 to 7 with that DSK, building the SealedHeader with
hostas the hosting server's canonical domain (never the verifier's own domain) andsenderas the sender. - Attachments: 14 §13.4 where the verifier holds the blob; otherwise
not_found.
Rationale: the reporter could supply any credential, so the identity key is checked against the sender's home server, not taken from the report. A verified result then proves what 14 §13.7 says, with the hosting server named by host.
11. Audit log
11.1 Purpose
The audit log is the community's permanent, append-only record of who changed what. It lets admins check their moderators, and lets moderators see what has already been done about a person. It never holds message content, report content or reporter identities.
11.2 The AuditLogEntry object
| Member | Type | Required | Meaning |
|---|---|---|---|
id |
string | Yes | UUIDv7. |
seq |
integer | Yes | Strictly increasing per server, from 1, assigned in the transaction that writes the entry. Entries are ordered by seq, never by id (00 §7.6). |
at |
string | Yes | Timestamp. |
actor |
object | Yes | {"kind": "member" | "system" | "operator", "address": string or null}. system is an automatic action (expiry, anti-spam); operator is an action taken outside the protocol (21). Unknown kinds display as "System". |
action |
string | Yes | §11.3. Unknown values display as "Other change". |
targetType |
string | Yes | member, domain, role, overwrite, message, ban, timeout, mute, report, channel, invite, community, policy, bot, history_share or server. Unknown: display generically. |
targetId |
string or null | No | The target object's ID (role, ban, report, channel, invite…). |
targetAddress |
string or null | No | Canonical address of the person affected, if any. |
ctx |
string or null | No | The context concerned. |
reason |
string or null | No | The actor's reason (§8.2). |
changes |
array | No | [{"field": string, "before": any, "after": any}] for edits (role permissions, names, settings, expiry). |
count |
integer | No | For bulk actions, the number of objects affected (for example messages deleted). |
reportId |
string or null | No | Linked report. |
relatedId |
string or null | No | The id of the entry this one follows from, for example the ban whose deleteMessagesWithinMs caused a messages_deleted entry (§8.2 rule 4). |
restricted |
boolean | Yes | true for entries only admins may read (§11.4). |
{
"id": "01938f52-77aa-7c01-9b11-0c0d0e0f1011",
"seq": 4521,
"at": "2026-12-04T18:40:00.004Z",
"actor": { "kind": "member", "address": "mo@b.com" },
"action": "member_banned",
"targetType": "ban",
"targetId": "01938f55-0c1d-7e2f-8a3b-4c5d6e7f8091",
"targetAddress": "carol@c.com",
"ctx": null,
"reason": "Repeated harassment after a timeout",
"changes": [ { "field": "scope", "before": null, "after": "community" } ],
"reportId": "01938f50-9a8b-7c6d-8e5f-4a3b2c1d0e0f",
"restricted": false
}11.3 What is logged
The server MUST write an entry, in the same transaction as the change, for each of these actions (§8.2 rule 4 says when one action writes two). Entries for actions owned by other documents are written through this document's log; those documents name the trigger.
action |
Logged when | Owner of the action |
|---|---|---|
role_created, role_updated, role_deleted, roles_reordered |
Role changes | 10 |
role_granted, role_removed |
Assignment changes, including stepping down and operator removal of admin |
10 |
overwrite_set, overwrite_removed |
Overwrite changes | 10 |
messages_deleted |
§8.3, and deletions caused by kicks and bans (with count and relatedId) |
10 |
member_kicked |
§8.4 | 10 |
member_banned, domain_banned, ban_updated, ban_lifted, ban_expired |
§9 (targetType ban, targetId the ban's id) |
10 |
member_timed_out, timeout_lifted, timeout_expired |
§8.5 | 10 |
member_muted, mute_lifted, mute_expired |
Server mutes (§8.6, ctx null) and 15's Mute for everyone (15 §3.6, ctx the voice channel) |
10, 15 |
report_updated, report_forwarded, report_evidence_preserved |
Report status, resolution or assignee changes; forwarding; legal hold. Never the content or the reporter. | 10 |
policy_updated |
§12.2 | 10 |
community_updated, community_secured |
Community settings; the server upgrade (D-057, D-073) | 09 |
channel_created, channel_updated, channel_deleted, channel_secured, channel_history_deleted |
Channel changes, including the upgrade and deletion of pre-upgrade history | 09 |
invite_revoked |
Revocation of someone else's invite | 09 |
bot_admitted |
A bot account admitted to the community (§4.4) | 09 |
history_shared |
A member shared earlier messages with another member of a secure channel (14, D-007): actor the sharer, targetType history_share, targetId the HistoryShare's shareId (14 §7.4), targetAddress the recipient, ctx the channel, count the number of shared items, changes [{"field": "fromSeq", "before": null, "after": n}, {"field": "toSeq", "before": null, "after": m}]; restricted: false. Shares in 1:1 DMs and group DMs aren't logged (DMs have no audit log, 12 §12.5); K8 is their record. |
14 |
federation_blocked, federation_unblocked |
Federation blocks | 06 |
address_assigned, address_released |
An operator assigns a class A reserved local part, or releases a quarantined local part early (actor kind operator; targetType server; targetAddress the address) |
01 |
server_key_incident |
The operator records a server-key compromise or other server incident (actor kind operator; targetType server) |
21 |
Not logged: posting, editing or deleting one's own messages, joining or leaving, filing a report, creating one's own invites.
11.4 Access and retention
GET /v1/audit-log (requires view_audit_log) returns entries newest first (by seq), cursor-paged with limit 1–100 (default 50), filtered by any of action, actor, targetAddress, targetType, ctx, reportId, since and until (timestamps). The response adds "retentionDays": <integer>.
- Entries with
restricted: trueare returned only to admins: server-scope bans, DM message deletions, actions on DMs,report_forwarded,report_evidence_preserved,address_assigned,address_released,server_key_incident, and entries about reports routed to admins. - Entries are immutable. There is no API to edit or delete them.
- The server keeps entries for at least 90 days (floor) and by default 365 days, then deletes them. Operators MAY keep them longer. Entries that name a deleted account (05) keep its canonical address, because the address is quarantined (01).
- Every new entry is also sent as
moderation.logged(§13).
Proposed decision: audit entries are immutable and kept for 365 days by default (floor 90 days); restricted entries (server-scope bans, DM moderation, forwarding) are visible only to admins. Rationale: a year covers recurring abuse patterns and disputes between moderators, while 90 days is the least that still makes the log useful for small self-hosted servers.
12. Anti-spam
Anti-spam measures MUST work without reading content, because secure contexts give the server none. They rely on rates, sizes, membership age, attachment counts and mention hints. In insecure contexts a server MAY also use content-based filters; how they work is implementation-defined, and their actions are logged as system actions.
12.1 Rate limits
Every server MUST enforce rate limits on the actions below. The values are defaults; servers MAY change them. Over a limit the server answers 429 core.rate_limited with Retry-After (00 §7.11). Clients MUST queue and retry quietly, never showing an error for a first 429 on a message send, and MUST NOT resend before Retry-After has passed (11's outbox honours it).
Limits that other documents own are not repeated here: per-context limits on timeline entries (messages, edits, reactions, deletes) and uploads are 11 §17.3's, and limits on new DMs, group adds and incoming message requests are 12 §10.6's. This document adds:
| Action | Default limit | Counted per |
|---|---|---|
Entries of kind message and edit across all channels of the community, in addition to 11 §17.3 |
120 per minute | Member |
| Invite creation | 10 per hour | Member |
| Community joins | 10 per 10 minutes | IP address |
| Report filing | 20 per hour and 100 per day | Reporter |
| Role, overwrite and moderation requests | 60 per minute | Actor |
New DMs and group adds by a young local account (§12.2 newAccount), in addition to 12 §10.6 |
newAccount.maxNewDmsPerDay (default 5) per 24 h |
Account |
A request that a limit drops silently (12 §10.6) MUST look delivered to the sender.
12.2 The AntiSpamPolicy object
The community has one AntiSpamPolicy.
GET /v1/moderation/policyreturns it to anyactiveorneeds_encryptionmember (clients need slow-mode values to show a countdown). The server filters it per caller:slowModeholds only the channels the caller can view, except that holders ofmanage_communityget every entry. The same filtering applies tomoderation.policy_updated.PATCH /v1/moderation/policy(requiresmanage_community) takes a JSON Merge Patch (RFC 7396,Content-Type: application/merge-patch+jsonorapplication/json). Nested objects merge member by member, andnulldeletes a member: for example{"slowMode": {"ch:…": null}}turns slow mode off in that channel, and{"newMember": {"enabled": false}}changes onlyenabled. A deleted member that has a default takes its default again. The request MAY carryifVersion; if it differs from the policy'sversion, the server answers 409moderation.version_conflictwith the current policy indata.current. A result that breaks a constraint below fails withcore.invalid_requestand changes nothing. On success the server answers 200 with the policy and emitsmoderation.policy_updated, and writes an audit entry.
| Member | Type | Default | Meaning and constraints |
|---|---|---|---|
version |
integer | — | Increases on every change. Read-only. |
newMember.enabled |
boolean | true |
Restrict new members. |
newMember.durationMs |
integer | 600,000 (10 minutes) | 0 to 604,800,000 (7 days), counted from the membership's join time (09). |
newMember.restricted |
array of strings | ["attach_files", "mention_everyone", "create_invites"] |
Channel-scoped permissions removed during that time (§6.2). view_channel can't be listed. |
newAccount.enabled |
boolean | true |
Restrict young local accounts (remote accounts' ages aren't known). |
newAccount.ageMs |
integer | 86,400,000 (24 h) | Account age below which the restriction applies. |
newAccount.maxNewDmsPerDay |
integer | 5 | 0 to 100. New DMs and group adds such an account may start per 24 h at this server, in addition to 12 §10.6's limits. |
slowMode |
object | {} |
Map from channel ctx to an interval in ms (1,000 to 21,600,000). Members without manage_messages in that channel may post one entry of kind message per interval; edits, reactions and deletes are exempt. Too soon: 429 moderation.slow_mode with retryAfterMs. |
mentionLimit |
integer | 20 | 1 to 50 (11's MAX_MENTIONS). The most distinct addresses a message's mentions (insecure) or mention hint (secure) may name. More fails with 11's 400 message.too_many_mentions, data.limit set to this value. |
floodTimeout.enabled |
boolean | true |
Automatic timeouts (§12.3). |
floodTimeout.durationMs |
integer | 600,000 | 60,000 to 86,400,000. |
{
"version": 7,
"newMember": { "enabled": true, "durationMs": 600000,
"restricted": ["attach_files", "mention_everyone", "create_invites"] },
"newAccount": { "enabled": true, "ageMs": 86400000, "maxNewDmsPerDay": 5 },
"slowMode": { "ch:01938a11-2b3c-7d4e-8f90-112233445566": 10000 },
"mentionLimit": 20,
"floodTimeout": { "enabled": true, "durationMs": 600000 }
}A restricted new member who tries a restricted action gets moderation.new_member_restricted with data {"permission": …, "until": …}. UX note: the client says "New members can share files after 10 minutes", once, in the composer; it isn't an error dialog.
12.3 Automatic actions
- If
floodTimeout.enabledand a member makes 3 flood hits within 60 s, the server applies a Timeout offloodTimeout.durationMswithcreatedBy{"kind": "system", "address": null}, and logs it. A flood hit is a message or reaction request rejected with 429 under 11 §17.3 or §12.1 that arrived before theRetry-Afterof the previous 429 for the same limit had passed. Requests that wait forRetry-Afternever count, so an honest client flushing its outbox after a reconnect is never timed out. Admins and members holdingmanage_messagesin every channel are exempt. - A server MAY apply other automatic actions (for example in insecure contexts on known spam content). Every automatic action MUST be a regular Timeout, ServerMute, Ban or message deletion, logged with actor kind
system, and liftable by moderators in the usual way. - Automatic actions MUST NOT ban by domain and MUST NOT use scope
server.
12.4 Message requests (12)
- Message requests are the main defence against strangers in DMs (D-049). This document adds: the young-account limit of §12.1, "Report and block" on a request (§10.10), and server-scope bans, which drop a banned sender's
dm.requests silently (§9.4). - A recipient's home server SHOULD count Block actions on message requests (12) per sender. When at least 3 different local accounts block the same sender within 7 days, it SHOULD file new requests from that sender without a push notification. 12 owns how such requests are listed.
- The auto-accept rule of 12 (a shared community, or an earlier accepted DM) isn't changed by any of this. A community ban of the sender doesn't remove an auto-accept that comes from another shared community.
13. Events
13.1 Delivery
Events use the envelope of 00 §7.4. Community-wide events of this document (role.*, moderation.server_mute_changed, moderation.policy_updated) are durable events on the server's community stream (ctx: "community", 03 §7.1, 09 §14.1, D-078). Targeted events (permission.changed, moderation.applied, moderation.lifted, moderation.logged, report.*) go on each recipient's own me stream. Channel-scoped events use the channel's ch: stream. On session.resync_required for community, a client refetches GET /v1/roles and GET /v1/moderation/policy; for me, its own GET /v1/roles/members/me and, if it moderates, the lists it shows.
13.2 Client events
Every event in this table travels on the client WebSocket (/v1/events), from server to client. None is a timeline item: the two permission.overwrite_* events are durable events on the channel's stream that take a seq there but aren't messages of 11's timeline.
| Type | Class | Stream (ctx) |
Scope | Audience | Payload d |
|---|---|---|---|---|---|
role.created |
durable | community |
Community-wide | Community stream subscribers (active and needs_encryption members, 09 §14.1) |
{"role": Role} |
role.updated |
durable | community |
Community-wide | Community stream subscribers (active and needs_encryption members, 09 §14.1) |
{"role": Role} |
role.deleted |
durable | community |
Community-wide | Community stream subscribers (active and needs_encryption members, 09 §14.1) |
{"roleId"} |
role.reordered |
durable | community |
Community-wide | Community stream subscribers (active and needs_encryption members, 09 §14.1) |
{"positions": [{"roleId", "position"}…]} (every role) |
role.member_added |
durable | community |
Community-wide | Community stream subscribers (active and needs_encryption members, 09 §14.1) |
{"roleId", "address"} |
role.member_removed |
durable | community |
Community-wide | Community stream subscribers (active and needs_encryption members, 09 §14.1), and, if the former holder no longer subscribes to community, a copy on the former holder's me stream |
{"roleId", "address"} |
permission.overwrite_set |
durable | ch:… |
Channel | Subscribers of the channel's stream (its channel members, 09 §14.1), including those about to lose view_channel (sent before access is cut) |
{"overwrite": PermissionOverwrite} |
permission.overwrite_removed |
durable | ch:… |
Channel | As above | {"targetType", "roleId" or "address"} |
permission.changed |
ephemeral | me |
Targeted | The one member whose own roles, member overwrites, timeout, server mute or restriction changed | {"ctx": ctx or null, "permissions": [...]}: the new effective permissions for ctx (or the community), as a hint; clients still recompute (§6.1) |
moderation.applied |
durable | me |
Targeted | The target | {"action": "kick" | "ban" | "timeout" | "server_mute" | "restriction", "scope": "community" | "server" | null, "ctx": ctx or null, "until": timestamp or null, "reason": string or null} |
moderation.lifted |
durable | me |
Targeted | The target, if they still have a session | {"action", "ctx", "scope"} |
moderation.server_mute_changed |
durable | community |
Community-wide | Community stream subscribers (active and needs_encryption members, 09 §14.1) |
{"address", "muted": boolean, "until": timestamp or null} |
moderation.policy_updated |
durable | community |
Community-wide | Community stream subscribers (active and needs_encryption members, 09 §14.1) |
{"policy": AntiSpamPolicy}, filtered per recipient (§12.2), as a viewer-dependent payload (03 §7.2 D4) |
moderation.logged |
durable | me |
Targeted | Holders of view_audit_log (restricted entries: admins only) |
{"entry": AuditLogEntry} |
report.created |
durable | me |
Targeted | Everyone who can see the report (§10.5) | {"id", "ctx", "kind", "category", "target", "routing", "origin", "createdAt"} (no content) |
report.updated |
durable | me |
Targeted | As above | {"id", "status", "resolution", "assignee", "forwardedTo", "updatedAt"} |
report.resolved |
durable | me |
Targeted | The reporter | {"id", "outcome": "action_taken" | "reviewed"} |
Community members who aren't channel members learn of visibility changes from 09's channel.* events (09 §14.1) and of their own permission changes from permission.changed, and fetch a channel's overwrites (GET /v1/roles/overwrites/{ctx}) when they open it.
Mute for everyone in one channel produces 15's events (call.participant_updated with mutedForEveryone, call.lease_changed), not events of this document.
Receivers ignore unknown action values in moderation.applied and moderation.lifted apart from showing a generic "A moderator changed what you can do here".
Example:
{
"v": 1,
"t": "moderation.applied",
"id": "01938f55-0c1e-7000-8000-00000000c0de",
"ctx": "me",
"seq": 212,
"ts": "2026-12-04T18:40:00.010Z",
"d": {
"action": "timeout",
"scope": "community",
"ctx": null,
"until": "2026-12-04T19:40:00.000Z",
"reason": null
}
}UX note: on moderation.applied with kick or ban, the client removes the community from the sidebar after one plain message ("You were removed from Sloppy Voice Lounge"); it doesn't keep retrying to connect.
13.3 Server-to-server events
| Type | Direction | Payload | Delivery |
|---|---|---|---|
report.forwarded |
Forwarding server (the hosting server, or the reporter's home server for a reporter_home report) → target's home server |
§10.9 | 06 (event ingest, retry, deduplication by event ID). Subject binding: iss equals the payload's origin, and the target is homed at the receiver (§10.9). |
14. Error codes
These codes use the problem object of 00 §7.9. retryable is false unless stated.
| Code | HTTP | userAction |
Meaning; data |
|---|---|---|---|
role.not_found |
404 | none |
No such role. |
role.hierarchy |
403 | none |
The role, overwrite or member is at or above the actor's top position, or the request would move a role there, or it removes admin from someone else. |
role.system_role |
409 | none |
The change isn't allowed on a system role. |
role.last_admin |
409 | none |
The last admin can't step down. |
role.limit_reached |
409 | none |
maxRoles or maxRolesPerMember reached; data.limit. |
role.version_conflict |
409 | retry |
ifVersion didn't match; data.current holds the Role. retryable: true. |
role.name_taken |
409 | none |
Another role has the same name after case folding. |
role.name_invalid |
400 | none |
The name breaks §4.1, including an ordinary role named like a system role. |
permission.unknown |
400 | none |
An unknown permission name; data.permissions. |
permission.not_held |
403 | none |
The actor can't grant or deny permissions they don't hold; data.permissions. |
permission.not_overwritable |
400 | none |
A community-scoped permission in an overwrite, or an overwrite for admin. |
permission.overwrite_limit |
409 | none |
maxOverwritesPerChannel reached. |
moderation.banned |
403 | none |
The caller is banned. The one code for every refusal caused by a ban on the hosting side, including 09's join and channel access (§9.4); data.scope, data.expiresAt, data.reason (only if shown). |
moderation.timed_out |
403 | wait |
The caller is timed out; data.until. retryable: true, retryAfterMs set. |
moderation.new_member_restricted |
403 | wait |
A new-member or new-account restriction; data.permission, data.until. retryable: true. |
moderation.slow_mode |
429 | wait |
Slow mode; retryAfterMs. retryable: true. |
moderation.target_protected |
403 | none |
The target outranks or equals the actor, or is an admin; data.protected (addresses). |
moderation.self_target |
400 | none |
The action would apply to the actor. |
moderation.not_member |
404 | none |
The target isn't a member in a state the action needs. |
moderation.invalid_duration |
400 | none |
A duration outside its range; data.minMs, data.maxMs. |
moderation.invalid_target |
400 | none |
For example a domain ban of the server's own domain. |
moderation.ban_not_found |
404 | none |
No such ban. |
moderation.version_conflict |
409 | retry |
ifVersion didn't match on the AntiSpamPolicy; data.current holds it. retryable: true. |
report.not_found |
404 | none |
No such report, or not visible to the caller. |
report.duplicate |
409 | none |
Already reported by this reporter; data.reportId. |
report.invalid_items |
400 | none |
Items not in the context, not readable by the reporter, mixed authors or the reporter's own messages as reported; data.mids. |
report.too_many_items |
400 | none |
Over maxReportItems, or over 10 context items on one side. |
report.unverifiable |
422 | none |
No reported item in a secure context could be verified. |
report.status_conflict |
409 | none |
The status change isn't allowed from the current status (§10.6), or a withdrawal after action was taken. |
report.version_conflict |
409 | retry |
ifVersion didn't match; data.current holds the Report. retryable: true. |
report.not_forwardable |
403 | none |
The conditions of §10.9 aren't met; data.reason: not_allowed (the reporter didn't allow it), same_server, nothing_verified, already_forwarded or not_forwardable_kind. |
A request refused only for a missing registry permission uses 403 core.forbidden with data.permission (03, §6.3); this document defines no separate code for it. A request refused because it needs the admin system role (§4.2) fails with 403 core.forbidden and data: {"missingRole": "admin"}. Every document MUST use this form for that case. A server MUST NOT use core.forbidden for a hidden channel; it answers core.not_found (§6.3). Codes of other documents that this document's rules produce: message.too_many_mentions (11), account.suspended (05), security.* (00 §4.11).
15. Limits and registry additions
Limits (ServerMetadata limits, 00 §7.12):
| Limit | Default | Floor |
|---|---|---|
maxRoles |
100 | 25 |
maxRolesPerMember |
25 | 10 |
maxOverwritesPerChannel |
100 | 25 |
maxReportItems (reported items per report) |
25 | 10 |
Fixed values (not configurable): 10 context items per side per report; reason 512 characters; report note 1,000 characters; timeout and server mute 60 s to 28 days; temporary ban at least 1 hour; message deletion window 60 s to 7 days (absent or 0 for none on kicks and bans); 100 message IDs per deletion request; evidence kept 90 days after resolution; open reports expire after 365 days; audit-log retention floor 90 days, default 365 days; lease change started within 1 s of an action and MLS removal started at once (13 §13.2); expiries recorded within 60 s; forwarded-report evidence and attachments fetchable for 30 days; 100 report.forwarded events accepted per origin domain per day.
Registry additions: the permission share_history (§3.1); no cryptographic labels, MLS exporter labels or features. Event types: §13. Error codes: §14. S2S event: report.forwarded.
16. Security considerations
- Moderators see reported secure content. In v1, content reported from a secure context is decrypted by the hosting server and shown to its moderators (D-077). This is the intended trade: only reported messages and the chosen context messages are revealed, each by its own
K_msg, and no history key leaves the reporter's device. Users are told before sending (§10.11). An end-to-end encrypted moderator inbox is deferred. Servers MUST protect evidence as plaintext (§10.7). - False and forged reports. A reporter can't forge or alter reported secure content: the sender's DSK signature and the key commitment bind the content to the sender's device (14, D-038), and the server refuses secure message reports with no verifiable item (§10.4 step 6). Away from the hosting server, the sender's identity key is checked against the sender's home server, not taken from the reporter (§10.12). A reporter can still report genuine content out of context. The context switch is on by default to counter that. Reporters can also flood the queue with real but harmless messages; per-reporter rate limits, deduplication and the
invalidresolution, which moderators can use to spot repeat offenders, limit this. Insecure-context reports rest on the hosting server's own copy. Clients never send insecure copies, and moderators never see content whose result isn'tverifiedorplaintext(14 §13.5), so a reporter can't put words in someone's mouth. The cost is that an insecure message deleted before it was reported, or an insecure DM reported away from its hosting server (§10.10 case 2), arrives without content. - Report targets and moderator abuse. A report is never visible to its target, even an admin target (§10.5).
report.forwardednever carries the reporter's address, note or context items, and forwarding is always an admin's deliberate act (§10.9). It can't hide everything: in a 1:1 DM the target's server can usually infer who reported, and the disclosure line and the admin's confirmation say so (§10.11). A DM hosted on the target's own home server is reported only to the reporter's home server, so a self-hosting harasser never receives the report (§10.10). Moderators can see reporters' addresses; a malicious moderator could retaliate. The audit log records every moderation action, so admins can review moderators. - The hosting server is all-powerful over its community. It can ban, delete ciphertext, fake audit entries and withhold reports. In secure contexts it still can't read content or forge members' messages (00 §5.2). Users can't verify the audit log; it is an accountability tool among moderators, not evidence against the server.
- Permission enforcement in secure contexts is on metadata. The server can refuse SealedMessages by
kindand gate uploads, but can't see inside them. A member allowed to post could embed an "everyone" mention, a file link or forbidden content inside the ciphertext. Notifications are still governed by the cleartext hint, which the server checks (§3.5). Content rules are enforced after the fact through reports. - Delivered content can't be recalled. Deletion removes server copies, and honest clients delete their local copies, but a modified client keeps what it already decrypted. Removed members keep the keys of epochs they were in (forward secrecy covers only later epochs, 13).
- Loss of
view_channelis cryptographic in secure channels (§6.5), so hidden channels stay confidential even against a colluding member who forwards ciphertext. Overwrite edits that hide a channel from many members cause many removals; servers rate-limit role and overwrite changes (§12.1) to bound the commit load (13's 425 rule applies too). - Escalation. The hierarchy and no-escalation rules (§4.3) stop a member with
manage_rolesfrom granting themselves or others anything they don't hold. The admin peer group can't be dismantled by one rogue admin (§4.2), but one rogue admin can do anything else, including grantingadminto accomplices. Operators can recover through configuration (21). Admins should be few. - Remote admins and moderators. A role holder homed on another server is only as trustworthy as that server, which can impersonate them in insecure contexts and, under D-035, in secure channels too. The grant-admin confirmation shows the person's full address, so the granting admin can see which server the account is on (§4.2); this is a plain fact, not a warning (D-055). An ordinary role can't be named or badged like the
adminrole (§4.1). - Forwarded insecure evidence is a claim. A
plaintextitem received inreport.forwardedis only what the origin server says it stored; a malicious origin could invent it to get someone suspended. Receivers label it as such and SHOULD NOT suspend on it alone (§10.9). Sealed items are verified independently (§10.12). - Moderators on insecure devices. Evidence from a secure context is returned only to a secure account's enrolled device (§10.5), so SM-4 holds for moderators. Moderation actions don't read content and need no such device (§8.2 rule 9).
- Ban evasion. Address bans are evaded by new accounts on open servers; domain bans and server-wide federation blocks (06) are the remedies. Domain bans also match alias domains through the target server's domain list (§9.2), so moving an attacker server to an alias doesn't evade them.
- Lease enforcement in calls. Every call path goes through the hosting server's relay or SFU (D-094), so a kick, ban, timeout, mute or
speak_and_sharerevocation cuts the speaker off for every listener within 4 s (D-046), modified clients included (§8.1). - Denial of service by key-management starvation is prevented by exempting MLS traffic from every restriction (§3.5).
- Privacy of message requests. Reporting a message request uses only the recipient's home server (§10.10), so reporting never reveals the recipient's IP address to an unknown hosting server (D-049).
- Sharing earlier messages with the wrong person. A holder of
share_historycan give a current member earlier messages that member couldn't otherwise read (D-007, 14). Mitigations: the permission isn't ineveryoneby default and only admins and the Moderator role hold it at creation; every member sees K8; the audit log records each share (§11.3); nothing ever prompts or defaults to sharing; and only per-message keys of messages the sharer can read are revealed, never a history key. A share can't be withdrawn once the recipient has the keys (22 RR-55). - Reused addresses. Role assignments, member overwrites, timeouts and server mutes belong to one account incarnation (D-086) and end with that account's membership (09 §4.2), so a later account at the same address never inherits moderator powers or a punishment meant for someone else. Bans are deliberately the exception (§9.2): they keep matching the address, and moderators can lift one that now hits a different person. A
report.forwardedabout an earlier account at the address is dropped (§10.9).
17. Open questions
| # | Question | Recommendation |
|---|---|---|
| OQ-10-2 | Should the target's home server report its outcome back to the forwarding server after report.forwarded (for example a report.outcome S2S event)? |
Defer until after v1. The forwarding server can already protect itself with bans and federation blocks, and an outcome channel raises privacy questions about the target. |
| OQ-10-3 | Should reporters be able to stay anonymous to moderators? | No in v1. Moderators need to judge report abuse, and the target never sees the reporter anyway. |
| OQ-10-4 | Should the admin role be restricted to local accounts? |
No. Keep it a SHOULD, with the person's full address shown in the grant confirmation (§4.2), so community-only servers with no local human accounts still work. The server upgrade already needs a local admin. |
| OQ-10-5 | Should 11 keep a SHA-256 digest of the stored plaintext content in insecure tombstones, as 14 keeps sigHash for sealed ones, so that an insecure message deleted before it was reported can still be verified from the reporter's copy? |
Yes, after v1 or in 11 if it is cheap: it closes the gap of §16 item 2 without letting reporters supply unverifiable text. |
18. References
18.1 Normative
- RFC 2119, RFC 8174 — requirement key words
- RFC 3339 — timestamps
- RFC 3986 — URI syntax (addresses in path segments)
- RFC 4648 — base64url
- RFC 5234 — ABNF
- RFC 7493 — I-JSON; RFC 8259 — JSON
- RFC 7396 — JSON Merge Patch (AntiSpamPolicy updates)
- RFC 9457 — problem details for HTTP APIs
- RFC 9562 — UUIDv7
- RFC 9420 — Messaging Layer Security (removals, external commits)
- Unicode Standard Annex #15 — normalization (NFC); Unicode default case folding
- Unicode Technical Standard #39 — confusable skeletons (role names)
00-overview.md— conventions, security model, HP-3, HP-11, HP-1501-addressing.md—canonicalize(), canonical addresses,address.non_canonical02-discovery.md— ServerMetadatadomains,canonicalDomain,limits03-transport.md— envelope,meandcommunitystreams (03 §7.1), one socket per client session (03 §5.12), pagination, idempotency, rate-limit headers,core.*codes05-accounts-auth.md— accounts, thesuspendedstate, bots, device revocation, sessions06-federation.md— remote sessions, S2S event delivery and tokens,maxFederationEventBytes, federation blocks07-identity.md— IdentityCertificate, DeviceCertificate, IdentityState09-communities-channels.md— Community, Membership states, channels, invites, join and channel access procedures,member.removed11-messaging-attachments.md— content object, tombstones, deletion events, attachments, mention hints, posting order and rate limits12-direct-messages.md— DMs,dm.request, message requests and their limits, blocks, participant removal,sv_participantspolicy13-mls-profile.md— removal procedure, Authentication Service checks14-secure-content-history.md— SealedMessage,K_msg, key commitment, tombstones, credential records, report verification procedure and results, manual history sharing (HistoryShare,/history/shares)15-calls-control.md— leases, lease snapshots, bounded authority, Mute for everyone, transmit gate
18.2 Informative
- RFC 9750 — MLS architecture (abuse and moderation discussion)
- Grubbs, Lu, Ristenpart, "Message Franking via Committing Authenticated Encryption", CRYPTO 2017 — background for key-commitment-based reporting
- Dodis, Grubbs, Ristenpart, Woodage, "Fast Message Franking: From Invisible Salamanders to Encryptment", CRYPTO 2018
- draft-ietf-httpapi-ratelimit-headers — rate-limit headers
16-audio.md,20-client-requirements.md— talk indicator and UX copy21-deployment-operations.md— operator configuration of first admins and recovery22-security-considerations.md— whole-system threat modelspec/DECISIONS.md— decision log