Other documents decide when something happens: a contact's key changes, a channel turns on encryption, a call drops. Document 20 decides what the user sees when it does. It fixes the reference English text of every security surface, where each one goes, how it is dismissed, how often it may appear and where that frequency state is stored. It also holds the web client hardening profile.

Document 20 is normative for the Full client and Web client conformance classes. A Bot client has no user interface, so only three parts apply to it: how others see bots (§13), the hardening profile if the bot SDK runs in a browser (§16), and the diagnostics defaults (§17.4) (20 Status).

It defines no endpoints, events, error codes or wire objects (20 Status). It maps what other documents define (errors, userAction values, events, membership and MLS states) onto surfaces. The IDs, triggers, audiences, blocking rules and frequencies come from 00 §4.12; document 20 adds the copy and presentation and never changes a trigger (20 §1.2).

The design goal behind every rule on this page is in 00 §1.1: the insecure path has no security friction, turning on encryption is one switch, and warnings are rare, specific and from a closed list. Read Security model for why the list is as short as it is.

Ground rules

The closed catalogue

A client shows exactly these security surfaces and no others (20 §2.1, D-055):

  • the warnings W1 to W9;
  • the gate cards G1 and G2;
  • the timeline markers K1 to K8;
  • the lock indicator;
  • the screens of the UX moments M4, M5 and M10, and the encryption settings page.

The catalogue is closed because a short, fixed list is what keeps warnings meaningful for people who aren't IT-literate. A client MUST NOT warn about any of these, which other designs often do (20 §2.1 rule 1):

  • other members' identity changes in channels;
  • other people's new or removed devices;
  • failed silent checks or MediaAttestation failures;
  • server key rotations, discovery pin conflicts or delegation evidence levels;
  • display names that fail the receiver check;
  • clock skew, certificates or TLS details.

A client also MUST NOT slip a security message into another kind of surface: no status line, hint, tooltip, toast, sound, icon or colour may carry one. Non-security surfaces MUST NOT use a shield, padlock, warning triangle or red "danger" colour, and MUST NOT mention attacks, danger, safety or trust (20 §2.1 rules 2 and 3).

The only addition allowed is a "What does this mean?" disclosure on W1, W2, W3, W7, W9 and the lock details sheet. Its help text ships inside the client, MUST NOT be fetched from a server, and MUST NOT contradict the reference text or add warnings (20 §2.1 rule 4).

Surface kinds

Every surface has one kind, and the kind fixes how it interrupts and how it goes away (20 §2.2):

Kind Interrupts? Dismissal Used by
Modal dialog Yes Only through its buttons W5, M10, the downgrade confirmation, HSHARE.confirm
System alert Yes, once Only through its actions; the M5 approver prompt also disappears when its pairing session ends W4a, W4b, the M5 approver prompt
Notice Yes, once Fades by itself W4c, W4d
Banner Yes, once per its rules As each warning specifies W2, W3, W7, W8, SETUP.banner
Inline card No The action resolves it W1, G1, G2, the W9 error
System line No Can't be dismissed K1 to K8, W2's timeline line, W6
Badge No Can't be dismissed W8 settings badge
Passive state No — Lock, talk and mute indicators, reconnecting badge, status lines

A client MUST NOT present a banner, inline card or system line as a modal dialog or operating-system notification (20 §2.2).

Security surfaces must be unforgeable. The client draws them in its own chrome. Message content, display names, avatars, community icons, rules text, link previews and bot output MUST NOT be able to produce anything that looks like one: system lines have no sender and no avatar and use a style message rendering can't produce, content can't draw over banners, gate cards or the header lock, and no content field can set a lock, badge or warning icon (20 §2.2). Badges sit beside names, never on avatars, because an uploaded picture could imitate them (20 §15.7).

Copy rules

The reference text is English. A translation MAY replace it but MUST keep every fact, named party, action and negative ("isn't", "can't", "you're not being heard"), and MUST NOT add reassurance, urgency or warnings. A client with no translation for a surface shows the English text, never a run-time machine translation (20 §19.2).

When you write any other user-facing text, follow 20 §2.3:

  • Primary text MUST NOT contain MLS, epoch, leaf, commit, KeyPackage, Welcome message, credential, certificate, identity key, device signing key, thumbprint, fingerprint, hash, SFrame, PAKE, CPace, Argon2, JWS, token, assertion, IdentityState, vault, archive, federation, discovery, TXT record or DNSSEC. These may appear only on a "Connection details", "Technical details" or "About" screen the user opens deliberately.
  • The user-facing names are fixed: encryption or end-to-end encrypted, recovery key, security key (a person's identity key), safety number, device, community, and the people who run {domain} for a server's operator.
  • A sentence about who can read something names a party, not a mechanism: "The people who run sloppyvoice.com can read messages here".
  • Copy never promises more than the protocol gives: channel lock text says the community's server decides who is a member, deletion copy never promises removal from other people's devices or server backups, and no copy calls a context "safe", "private" or "secure" without qualification.
  • An actionable surface has at most one primary and two secondary actions.
  • No blame and no exclamation marks.

Naming people

A person reference ({person}) is the display name if it passes the receiver check, otherwise the prepared local part, followed by a bot badge for a bot account. Every surface that names another person MUST also show the person's display form with the domain ({personForm}, for example SaxonJones@sloppyvoice.com) at least once, usually as a subtitle (20 §2.4). Each inserted name or address is its own bidi isolate (20 §15.4). A person's own provider e-mail, provider label or device name MUST NOT be used to name them to anyone else (20 §2.4 rule 4). When space is short, truncate the display-local part and never the domain, because the domain is what tells a lookalike on another server apart (20 §15.2). See Addresses for display forms and the receiver check.

Lists of people ({people}, used by W3 and W5) name everyone up to 3 people, and the first 2 plus "{n} others" from 4 on, using the locale's "and" list format (20 §2.5). The en-GB test vectors from 20 §21.3:

Names given Total Output
Bob, Carol, Dave 3 "Bob, Carol and Dave"
Bob, Carol, Dave, Erin 4 "Bob, Carol and 2 others"
100 names, truncated 141 "Bob, Carol and 139 others"

The lock indicator

The lock is the one passive security state the user sees all the time. Its six states (20 §8.1):

State Glyph Label When
closed Closed lock (filled) "End-to-end encrypted" SM-12 holds: the hosting server advertises the context as secure, the client agrees, and the device's group state is member. For a call, the device also holds the SFrame keys of the call's media epoch.
gated Closed lock, outline "Encrypted" The context is secure and this account or device can't open it (G1 or G2 applies). Only in lists, previews and on the gate card, never next to content.
pending None "Joining…" or "Setting up encryption…" The context is secure, the device may open it, and SM-12 doesn't hold yet.
open Open lock "Not encrypted" The context is insecure and the viewer's account is secure.
none None — The context is insecure and the viewer's account is insecure.
error Broken lock "Encryption problem" W9 is active for the context.

The filled lock is reserved for content the device can actually read. That is why the gated lock uses an outline style and never sits beside readable content (PD-20-8).

Compute the state with this function from 20 §8.2:

lockState(ctx, viewer):
    if w9Active(ctx):                                  return error
    s := effectiveSecurity(ctx)
    if s = secure:
        if viewer.account.sec = insecure:              return gated      # G1
        if not viewer.device.enrolled:                 return gated      # G2
        if mlsBlocked(ctx):                            return pending    # shown as unreachable (13 §15.4)
        if advertised(ctx) = secure
           and holdsCurrentGroupState(ctx):            return closed     # SM-12
        return pending
    # s = insecure
    if viewer.account.sec = secure:                    return open
    return none

The inputs are where implementations go wrong (20 §8.2):

  • effectiveSecurity treats unknown as secure. A channel is secure if the Channel says so, if a channel or community pin exists for it, or if its security value is unknown. A DM or group DM uses the client's own computation (12 §11.1), not the server's. A call is secure if its own security is secure or unknown, or if its context is secure.
  • Only member counts. holdsCurrentGroupState is true only when the device's 13 §16 state for the current group generation is member. committing, catching_up and every other state are false.
  • Disagreement never closes the lock. If the client computes a DM as secure and the server reports it insecure, the result is pending and outgoing messages stay queued until they agree. In the reverse case the client's own computation wins (open or none) and messages also stay queued.
  • viewer.account.sec comes from the newest own IdentityState. An account in upgrade_required counts as insecure.
  • No flicker. Remove the closed lock at once when the state stops being member, but when pending follows closed, show its label only after it has lasted 1 s; until then show neither glyph nor label.

Where the lock appears (20 §8.3):

  1. At the start of every channel, DM and group DM header (none shows nothing).
  2. As a glyph only in channel lists, DM lists and search results. A list never shows a closed lock from a remembered earlier state; a secure context the client hasn't evaluated yet shows the outline glyph.
  3. In the call header, as lockState(call). An incoming-call screen shows the lock of the DM, because the call's SFrame keys aren't installed before answering.
  4. In join previews, as the outline lock and "Encrypted" for any secure target, because the user isn't inside yet.
  5. Never per message.
  6. As the "Encrypted community" badge, with the outline glyph, next to a secure community's name once the client holds a community pin for it.

Tapping the lock (in any state except none) opens a details sheet with exactly one text per state and context (20 §8.4). The channel text says plainly that "The people who run {host} decide who is a member", because in channels the hosting server controls membership and the lock must not claim more (00 §5.5, 00 §10 item 2). The lock is focusable and its accessible name is its short label (20 §19.1).

The 20 lock test vectors in 20 §21.1 cover every branch, including calls and incoming-call screens. Run them against your implementation of lockState.

Warnings W1 to W9

The catalogue from 00 §4.12.1, with the document that owns each trigger (20 §1.2):

ID Trigger (owner) Who sees it Surface Blocks? Frequency
W1 A secure account enters an insecure community (09, 00) The secure user Inline card No Once per community
W2 A DM contact's key changed, they downgraded, or their address belongs to a new account (07) Each participant who pinned the contact; for a new account, every participant of the 1:1 DM Timeline line and banner Only for a verified contact Once per change
W3 A group DM has insecure participants (12) Each secure participant Banner No Until resolved; collapsible
W4a–W4d Own account: reset, someone appears as you, new device, new sign-in (07, 05) The user's own devices System alert (a, b); notice (c, d) a and b need a tap Per event
W5 An admin upgrades a channel or server (09) That admin Modal dialog Yes (a confirmation) Per action
W6 A secure bot joined a secure context (09, 12) Every member System line No Per bot added
W7 A 1:1 DM is insecure because the contact is (12) The secure participant Banner No Until resolved; collapsible
W8 The recovery key hasn't been saved (08) The user's own devices Settings badge and banner No Banner at most weekly
W9 A context pinned as secure is presented as insecure (09, 12) Members; non-members holding a pin when they open it Inline card and header error Yes Per context

Where the frequency state lives matters, because some of it syncs across the user's devices through the AccountVault and some doesn't (20 §2.7): W1 in the vault setting w1_seen, W2 in the pin record, W8 in the recovery record, W9 in secure-state pins; W3 and W7 collapse state, W4 alerts and hints are device-local.

W1: secure account in an insecure community

W1 is an inline card, never a modal, placed at the first of these the user sees: inside a join preview above the primary action, at the top of the community's channel list, or at the top of an insecure channel opened directly. It is never placed inside a secure channel, where it would sit next to a closed lock (20 §3.1.1).

Element Reference text
Icon Open lock
Title "This community isn't end-to-end encrypted"
Body "The people who run {domain} can read messages and hear calls here."
Second sentence, if the user can see a secure channel there "Channels with a closed lock are end-to-end encrypted."
Action "OK" (not shown inside a join preview)

W1 informs and never blocks (D-076). Once the user taps "OK", taps the preview's action or navigates away, record the community's canonical domain in the W1SeenSetting vault record w1_seen. Read w1_seen before deciding to show W1, write after showing it, and merge by set union on vault.version_conflict (20 §3.1.4). An unenrolled device can't read the vault, so it keeps a device-local record and merges it on enrolment. That device, or two enrolled devices that open the same community before either has synced the other's write, may each show W1 once; this is the only way W1 appears more than once for one community, and it stops at the next vault sync (20 §3.1.2).

W2: a contact's security key changed

W2 appears in the 1:1 DM with the contact and in every secure group DM that includes them, never in channels (D-035). The downgrade line also appears in insecure group DMs that include the contact, and W2.new_account appears only in the 1:1 DM (20 §3.2). It has two parts (20 §3.2.2):

  1. A system line (W2.<variant>.line) at the end of each affected timeline, inserted once per changeId per device and never removed. Keep a device-local set of rendered changeIds so a restart or a vault sync never inserts a second line.
  2. A banner (W2.<variant>.banner) at the top of each affected conversation, shown on every device while the pin record's w2Dismissed is false for the current changeId.
Variant System line Banner title and body Actions
W2.key_changed "{person}'s security key changed." "{person}'s security key changed" / "This happens when someone resets their account or loses all their devices. To be sure it's really them, compare safety numbers." "Verify", "OK"
W2.verified (blocks) "{person}'s security key changed. You verified {person} before, so sending is paused." "{person}'s security key changed" / "You verified {person} before. To keep chatting, accept the new key, or verify it again to be sure it's really them." "Accept new key" (primary), "Verify"; no dismiss
W2.downgraded, 1:1 DM "{person} turned off encryption." "{person} turned off encryption" / "New messages with {person} won't be end-to-end encrypted. Earlier messages stay as they were." "OK"
W2.downgraded_verified, 1:1 DM (blocks) "{person} turned off encryption. You verified {person} before, so sending is paused." "{person} turned off encryption" / "You verified {person} before. If you continue, new messages with {person} won't be end-to-end encrypted. Earlier messages stay as they were." "Continue without encryption" (primary); no dismiss
Downgrade, secure group DM "{person} left because they turned off encryption." No banner —
W2.downgraded, insecure group DM "{person} turned off encryption." No banner —
W2.new_account, 1:1 DM only "This is a new account using {personForm}." "This is a new account using {personForm}" / "The person who used this address before deleted their account, and someone else has it now. Your earlier messages aren't shared with this account." "OK"

Every banner except W2.new_account, whose title already holds {personForm}, carries {personForm} as its subtitle. Each variant except new_account has a bot wording, chosen when the pin's kind is bot; the bot key_changed body is "This happens when whoever runs this bot sets it up again." The full table is in 20 §3.2.2.

Behaviour that changes what you send (20 §3.2.3):

  • While W2.verified blocks, the composer in every secure DM and group DM with the contact becomes the bar "Sending is paused until you accept {person}'s new key." with the banner's two actions. For W2.downgraded_verified the bar in the 1:1 DM reads "Sending is paused because {person} turned off encryption." with "Continue without encryption". Messages written during a W2.verified block stay queued as ST.waiting.action ("Will send when you're ready") and are sent, sealed, after the user accepts or verifies. Starting or joining a call is disabled the same way.
  • After a downgrade, content written while the DM was secure is never sent automatically. Each item becomes ST.not_sent ("Not sent" with "Retry" and "Delete"), and "Retry" sends it unencrypted with W7 showing. This stops a message the user wrote for an encrypted chat from leaving in plaintext without a deliberate tap.
  • "Accept new key" moves the pin to accepted, unblocks sending and turns the banner into the non-blocking W2.key_changed banner. "Continue without encryption" moves the pin from downgraded_blocked to downgraded, unblocks sending, turns the banner into the W2.downgraded banner and is followed by W7; items written while the DM was secure stay ST.not_sent. "OK" sets w2Dismissed, and the banner disappears on every device at the next vault sync while the lines stay.
  • Several contacts. Each contact has its own banner. When more than 2 would stack in one conversation, show the newest and the line "{n} more people's security keys changed", which expands the others; blocking banners always come first.
  • No extra alerts. No operating-system notification, sound or badge for W2.

The pin states and the evidence that raises each variant are in 07 §16; see Secure accounts.

W3 and W7: conversations without encryption

Both are banners below the header, shown to a secure viewer in an insecure conversation, and both collapse with "Hide" to a one-line header state stored device-local (20 §3.3, §3.7).

W3 (group DM) W7 (1:1 DM)
Title "{people} hasn't turned on encryption" / "{people} haven't turned on encryption" "{person} hasn't turned on encryption"
Body "So this group isn't end-to-end encrypted. The people who run {host} can read it." "So this chat isn't end-to-end encrypted. The people who run {host} can read it."
Action "Ask them to turn on encryption" None
Collapsed Open lock and "Not encrypted · {n} without encryption" Open lock and "Not encrypted"

W3's action places this text in the composer and MUST NOT send anything by itself: "Could you turn on encryption in Sloppy Voice? It's under Settings › Encryption and takes one tap. Then this group will be end-to-end encrypted." A new insecure person re-expands the banner on every device. In encryption_pending, W7's body becomes "You can write again once {person} turns on encryption." and the composer is disabled with the same sentence.

The insecure participant sees nothing, except an optional hint in a 1:1 DM, shown at most once per device ever, never in a group DM and never during a call (PD-20-9, 20 §3.7.2).

W4: your own account

W4 appears only on the user's own devices (20 §3.4):

ID Kind Reference text Actions
W4a.reset System alert "Your encryption was reset on another device" / "Someone signed in to {me} and set up new encryption keys at {time} on {date}. This device can't read new encrypted messages until you set it up again. If this wasn't you, secure your account now." "This wasn't me" (primary), "Set up this device", "Later"
W4a.downgraded System alert "Encryption was turned off for your account" / "Someone signed in to {me} and turned off encryption at {time} on {date}. If this wasn't you, secure your account now." "This wasn't me" (primary), "It was me"
W4b System alert "Someone else is using your address" / channel body: "A device that isn't one of yours appeared as {me} in {channel} on {community}. Your account may not be safe." DM or group DM body: "A device that isn't one of yours tried to join a chat as {me}. It was kept out. Your account may not be safe." "Secure my account" (primary), "Tell the moderators" (channels only), "Later"
W4c Notice "New device added to your account: {device}, {time}." "Not you? Review devices"
W4d Notice "New sign-in on {device} ({provider})", second line "{time}, {date}" "This wasn't me"

"This wasn't me" is primary on W4a because a hijacked provider login can replace the identity at once (D-071); a user who did it themselves pays one tap. Every "This wasn't me", "Secure my account" and "Review devices" opens one account security screen (20 §12.9) whose steps are: check sign-in methods, check devices, and, only from W4a.reset, reset encryption. A reset helps only once the attacker's sign-in method and sessions are gone, which is why it comes last (20 §22 item 9).

W4d is the new-sign-in notice of D-084. It appears on every other signed-in device of the account, with or without encryption, once per sign-in, and never on the new device; a device that was closed or offline shows it the next time it is used. It never produces an operating-system notification, sound or badge. Two interactions to implement (20 §3.4.4):

  • If the M5 approver prompt appears for the same device, remove W4d (log remove W4d) and don't show it again; the prompt already names the device and offers "No".
  • If W4c is raised for the same device while W4d is on screen, W4c replaces it. The device that approved a pairing never raises W4c for that device; it shows "Your new device is ready" instead.

Note

20 §3.4.3 and §3.4.4 say a W4c or W4d notice fades "after it has been on screen for 10 s, or when the user navigates, whichever is later". Read literally, the notice stays until the user navigates. The intent may have been "whichever is earlier". Follow the spec text until it is clarified.

W5: confirming an upgrade

W5 is the modal an admin sees after the dry run of a channel upgrade (PATCH /v1/channels/{id} with {"security": "secure", "dryRun": true}) or a server upgrade (PATCH /v1/community with {"secure": true, "dryRun": true}). If the admin's own account is insecure, the client shows G1 first (20 §3.5). After paragraph 1, each paragraph of W5.channel is shown only when a field of the dry-run plan calls for it: cannotFollowCount > 0, secureBots not empty, needsDeviceSetupCount > 0, activeCall, and webhookCount > 0 (20 §3.5.1). The dialog is titled "Turn on end-to-end encryption for {channel}?", its first paragraph ends "This can't be turned off later.", and it offers an unchecked box "Also delete the messages sent before encryption was turned on (about {n})", where {n} is historyMessageCount (the box is left out when that is 0), with "Turn on encryption" and "Cancel". When secureBotsTruncated is true, "{n} others" becomes "more than {n} others". Send the confirmation with the dry run's planVersion and an Idempotency-Key (09 §10). If the server answers channel.upgrade_plan_stale, show W5 again from the new plan in data.plan with "Some things changed since you opened this." above paragraph 1.

The server variant W5.server, "Turn on end-to-end encryption for everything on {domain}?", adds a field labelled "Type {domain} to confirm". "Encrypt everything" stays disabled until the typed text, trimmed and passed through prepareDomain, equals the canonical domain as a lowercase A-label. The client always sends the canonical A-label as confirmDomain, never the typed text (PD-20-3, 20 §3.5.2). The change is irreversible for every account on the server, which is why it costs a few seconds of typing. A stale plan here is community.upgrade_plan_stale. The request can run up to 120 s: show "Turning on encryption…" in a dialog that can't be closed, resend the identical request with the same Idempotency-Key on a timeout or network error, add "Still working. Check your internet connection." after 10 s, and treat a 200 whose Community has secure: true as success, whether it answers the first request or a resend. The upgrade procedures are on Communities.

W6: a bot joined a secure context

A system line at the join event, with the bot badge and {personForm} on a second line (20 §3.6):

Surface ID Reference text
W6.channel "{person} joined. Whoever runs this bot can read everything in {channel} from now on."
W6.group "{person} joined. Whoever runs this bot can read everything in this group from now on."
W6.direct "{person} is a bot. Whoever runs it can read everything in this chat."

Every member sees it, including whoever added the bot. A bot's reset doesn't repeat W6, and insecure contexts show only the bot badge. The badge comes from the account kind (the IdentityCertificate kind: "bot" for a secure bot), never from the display name, and is a chip text can't imitate (20 §13.1).

W8: the recovery key isn't saved

While the account is secure, the device enrolled and the recovery record's savedAt null, show a dot on Settings and on the "Encryption" row, and "Not saved" on the "Recovery key" row. The banner "Save your recovery key" / "If you lose all your devices, it's the only way to read your encrypted messages again." with "Save now" and "Not now" goes at the top of the home screen, at most once per 7 days per account across all devices, never during a call, over a gate card or on the first screen after sign-in (20 §3.8).

To keep "once per 7 days" true across devices, a device claims the slot before showing the banner: it writes lastNudgedAt = now with ifVer set to the version it read, and shows the banner only if the write succeeds. On vault.version_conflict it refetches and stays quiet if the merged lastNudgedAt is less than 7 days old. If the vault is unreachable, it shows only the badge. One exception: when the recovery record's reason is lost_or_stolen and lastNudgedAt is null, the banner may be shown at once (still claimed as above) with the body "Your old recovery key stopped working when you removed a lost device. Save the new one." The timing vectors are in 20 §21.5.

W9: a secure context presented as insecure

W9 blocks. It is an inline card that replaces the composer and covers the call controls, plus a broken lock and "Encryption problem" in the header and channel list (20 §3.9):

Surface ID Title Body
W9.channel "Something is wrong with {channel}" "This channel was end-to-end encrypted, but {domain} is now showing it as not encrypted. To protect you, sending and calls are turned off here."
W9.community "Something is wrong with {community}" "This community was end-to-end encrypted, but {domain} is now showing it as not encrypted. To protect you, sending and calls are turned off in all its channels."
W9.group "Something is wrong with this group" "This group was end-to-end encrypted, but {domain} is now showing it as not encrypted. To protect you, sending and calls are turned off here."

The only action is "Leave channel", "Leave community" or "Leave group" for members, or "Close" for a non-member who holds a pin. There is no "Ignore", "Continue anyway" or dismiss, because a one-tap override would let a malicious server collect plaintext from a confused user (D-056, 20 §22 item 8). While W9 is active, leave any call at once (ST.call_end.w9), disable every write and don't display plaintext received during the inconsistency. When the condition clears, remove the card with no further surface. The triggers T1 to T6 are in 09 §13.4.

Gate cards G1 and G2

A gate card replaces the content of a context, a join preview or a call view when a secure door refuses the user. It offers the one action that fixes the problem, and the interrupted action resumes by itself afterwards (20 §4). Choose the surface from the error's code and userAction (20 §4.1):

Error userAction Surface
security.account_required enable_encryption G1
security.upgrade_required from a remote server enable_encryption G1
security.upgrade_required from the home server, or account state upgrade_required enable_encryption The blocking screen below
security.device_not_enrolled set_up_device G2
A secure context the client already knows it can't open — G1 or G2 directly, without sending the request

A client MUST choose G1 over G2 whenever the account is insecure, because turning on encryption also sets up the device (20 §4.1). The error object itself is described on HTTP API.

{
  "type": "urn:sloppyv:error:security.account_required",
  "code": "security.account_required",
  "title": "This channel is end-to-end encrypted",
  "status": 403,
  "detail": "Turn on encryption for your account to join this channel.",
  "retryable": false,
  "retryAfterMs": null,
  "userAction": "enable_encryption",
  "data": { "scope": "channel", "ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566" }
}

Render from code, userAction and data, never from title or detail: clients don't parse title (00 §7.9), and the card's copy comes from document 20.

G1: turn on encryption

Surface ID Title Body
G1.channel "{channel} is end-to-end encrypted" "To join, turn on encryption for your account. It takes a moment. Your chats and communities stay as they are."
G1.community "{community} is end-to-end encrypted" "Everything in this community is end-to-end encrypted. To join, turn on encryption for your account. It takes a moment. Your chats and communities stay as they are."
G1.needs_encryption "{channel} is now end-to-end encrypted" "Turn on encryption to keep reading and writing here. You can still read the messages from before."
G1.call "This call is end-to-end encrypted" "To join, turn on encryption for your account. It takes a moment. Your chats and communities stay as they are."
G1.dm "This chat is end-to-end encrypted" "To continue, turn on encryption for your account."

Add "Your other devices will ask to be set up." when the account has another signed-in device. The one action is "Turn on encryption", which starts the upgrade ceremony with no further question, after the fresh sign-in of M4 when the last one is more than 23 h old; there is no secondary action, because the user leaves by navigating away (20 §4.2). G1.needs_encryption is what a member sees after their channel was upgraded; it sits above the composer area and the pre-upgrade messages stay readable above it under K3.

G2: set up this device

Title "Set up encryption on this device", body "Your account uses end-to-end encryption, but this device doesn't have your keys yet." Its actions, in order (20 §4.3):

  1. "Use another device" (primary), when the IdentityState lists another active device: pairing.
  2. "Use recovery key" (primary when no other active device is listed, otherwise secondary), when a KeyBackup exists (GET /v1/me/backup with part=meta).
  3. "I can't do either" (small), which opens the "Start fresh" screen M10. That screen explains first, and the reset needs a further tap and fresh authentication, so a reset can never be sent in one tap from a gate card.

A web client on an origin that may not hold the account's keys shows G2.other_origin instead; see Which origins may hold keys. When browser storage was evicted and the device is unenrolled again, G2 adds "This browser cleared its storage, so it needs to be set up again." (20 §16.10).

The blocking upgrade screen

An account in state upgrade_required (homed on a secure server, not yet encrypted) sees a full screen in place of the app and MUST NOT reach any other screen: title "Turn on encryption to continue", body "Everyone with an account on {domain} uses end-to-end encryption. Turn it on to keep using your account. It takes a moment.", with "Turn on encryption", "Sign out" and a small "Delete account". Right after sign-up on a secure server the same screen has the title "One more step" and the body "{domain} uses end-to-end encryption for everything. Turn it on to finish setting up your account." (20 §4.4).

Resuming

Resuming is what makes a gate card cost one tap (20 §4.5):

  1. While the ceremony or device setup runs, the card stays in place showing "Turning on encryption…" or "Setting up this device…".
  2. When it completes, the card shows "Joining…" and the client resumes the stored join intent (09 §9.6). The user taps nothing more.
  3. A non-gate error from the resumed action replaces the card with that error's surface.
  4. The intent survives an app restart for 24 h.
  5. The save step (M4) appears on top after the ceremony while the join finishes underneath. The save-step choice is the only tap between "Turn on encryption" and the opened context.

Timeline markers K1 to K8

Markers are system lines. Every client that renders the timeline renders them at the position given; they can't be dismissed and have no action unless stated (20 §5):

ID Reference text Icon Position
K1 "Messages from here on are end-to-end encrypted." Closed lock At channel.security_changed (at upgradeSeq + 1) or dm.security_changed to secure
K2 "Messages from here on aren't end-to-end encrypted." Open lock At dm.security_changed to insecure (1:1 only), and at the start of an insecure successor right after K5
K3 "Sent before encryption was turned on." Open lock Above the earliest pre-upgrade message shown, and sticky at the top of the viewport while any message with seq ≤ upgradeSeq is on screen; not shown if the pre-upgrade history was deleted
K4 "Loading earlier messages…" Spinner Above the earliest readable item while keys for served items are still arriving: own new device restoring from the key archive, or messages shared with the user. Never for a newcomer's own join (K6 is shown instead)
K5 "This conversation moved." Arrow At dm.closed with reason host_secure, between the closed DM and its successor
K6 "Earlier messages are end-to-end encrypted and aren't available to people who join later." Closed lock Before the item at the MessagePage's withheldBeforeSeq whenever it isn't null
K7 "{person} shared earlier messages with you." History Above the earliest shared message, one per share
K8 "{person} shared earlier messages with {person2}." On the sharer's devices (K8.self): "You shared earlier messages with {person2}." History At the seq of history.shared, for every member except the recipient

Rules that affect rendering (20 §5):

  1. Messages under K3 never get a lock or encrypted styling.
  2. K4 MUST NOT block reading, scrolling or sending. Replace it with ST.history_unavailable ("Earlier messages aren't available on this device.") where items are unavailable, or when keys haven't arrived after 10 minutes with no fetch in flight. Turn it back into messages if the keys arrive later.
  3. K6 is a plain statement, not a warning. It has no action, no "Learn more" and never suggests asking anyone to share. Items at or after withheldBeforeSeq sealed in an epoch where the account had no leaf are folded into K6.
  4. K5 and its successor are rendered as one conversation; the successor's lock follows its own security.
  5. K7 and K8 aren't warnings. Tapping them MAY open the sharer's profile; they have no other action.

K6 follows from the rule that a secure context serves nobody anything from before their current membership began (D-007); see MLS and sealed messages.

Sharing earlier messages

Manual history sharing is optional for clients; a client that offers it follows 20 §5.1. The action "Share earlier messages with {person}…" appears only where the user looks for it: a member's profile card, the member-list menu and a message's menu. Nothing ever suggests, reminds about, badges or pre-selects sharing, not when someone joins and not next to K6 (NP-18). After a picker and the confirmation "Share {n} earlier messages with {person}?", the client posts the share with POST /v1/contexts/{ctx}/history/shares, splitting it silently when it holds more than one share allows. Error mapping:

Error Surface Text
history.share_forbidden with reason recipient_not_in_group, after the single retry HSHARE.failed.not_ready "{person} can't receive shared messages yet. Try again later."
Any other history.share_forbidden HSHARE.failed.forbidden "You can't share earlier messages here."
history.share_range_invalid HSHARE.failed.range "Some of these messages can't be shared. Try a shorter time."
history.share_too_large Never shown Split and retry
Any other history.* error HSHARE.failed.other "Couldn't share these messages. Try again later."

UX moments M1 to M11

These are the only points where a user must act on security or identity (00 §4.12.4, 20 §6):

ID Moment How it stays painless Specified in
M1 OAuth consent The provider's own screen; last provider remembered 20 §9.2
M2 Choosing an address Pre-filled from the provider's name; availability checked live 20 §9.3
M3 Operating-system permissions Asked just in time, with one sentence 20 §6.1
M4 Turning on encryption and saving the recovery key One tap, then the save step; "Later" allowed 20 §9.5
M5 Approving a new device Prompt on old devices, then QR or 6 digits 20 §12.3, §12.4
M6 A contact's key changed W2 20 §3.2
M7 Secure account in an insecure community W1 20 §3.1
M8 Insecure account at a secure door G1 20 §4.2
M9 Admin upgrading a channel or server W5 20 §3.5
M10 Every device and the recovery key lost "Start fresh" 20 §12.8
M11 Waiting for history on an own new device or for shared messages K4 20 §5

For M3, ask for a platform permission only when the user starts the feature that needs it, never at first launch or sign-in. Notifications are the one exception: ask once, right after onboarding and never on the onboarding screens themselves, so a first message request or call can reach the user (20 §6.1). Show one sentence before the system prompt:

Permission When Reference text
Microphone First call join that captures, or first push-to-talk press "Sloppy Voice needs your microphone so people in calls can hear you."
Camera First webcam start / first QR scan "Sloppy Voice needs your camera to show your video." / "Sloppy Voice needs your camera to scan the code."
Screen recording First screen share "Sloppy Voice needs permission to share your screen."
Notifications First time on the home screen after onboarding "Turn on notifications to know when someone messages or calls you."
Global shortcut, accessibility or input monitoring (desktop push-to-talk) When the user chooses push-to-talk and sets the key "To use push-to-talk while another app is in front, Sloppy Voice needs to watch for your push-to-talk key only."
Persistent storage (web) After the device is enrolled No sentence in most browsers; if the browser shows a prompt: "Allow storage so this browser keeps your encryption keys."

If the user refuses, show the feature as unavailable with a "How to allow" link and never ask again unprompted. Permission copy MUST NOT say or imply that only the people in the call can see or hear what is captured, because in an insecure call the hosting server can too, and screen-share copy MUST NOT claim encryption unless the call is secure and the lock is closed.

The never-prompt list

00 §4.12.5 lists events that must never prompt, warn or interrupt. 20 §7 turns each into a testable requirement. For every event in the table a conforming client (20 §7.1):

  1. MUST NOT show an interruption (a modal, alert, banner, toast, notification, sound, vibration, badge or unread-count change, or a focus move) caused by the event;
  2. MUST NOT show a security surface caused by it, except where the table allows one;
  3. MUST NOT change the lock indicator because of it, except when SM-12 starts or stops holding;
  4. MAY change passive states and the content the event delivers.

It also MUST NOT play a sound or send a notification for any of them, apart from the call join and leave sounds of 20 §11.6 (20 §7.3).

ID Event Allowed user-visible effect
NP-1 MLS joins, leaves, epoch changes, external commits, resyncs, server Remove proposals Member list changes; K6 at the user's own join; membership system lines; W6 for a new secure bot; W4b if the joiner uses the user's own address
NP-2 Another user adds or removes a device None
NP-3 Another user's reset or downgrade, in a channel None
NP-4 Media key rotation and epoch switches TI.not_heard.keys, SHARE.not_seen.keys or CAM.not_seen.keys, only while frames really aren't sent
NP-5 Route changes between relay and SFU None ("Connection details" MAY show the route)
NP-6 Reconnects and auto-rejoins Talk, mute, reconnecting, sharing, camera and viewer indicators; ST.socket_reconnecting, ST.other_window
NP-7 Key-archive restore on an own new device; loading shared messages K4, K7, ST.history_unavailable
NP-8 AccountVault and key-archive sync Only the effects of synced state
NP-9 KeyPackage publication and replenishment None
NP-10 Bot key handling (new devices, KeyPackages, resets in channels) None
NP-11 Server key rotation and KeyRotation chains None
NP-12 Silent credential-check failures in channels A diagnostic report only
NP-13 MediaAttestation failures The failing stream stops playing; no label
NP-14 Discovery pin conflicts, delegation evidence, federation session renewals Only the unreachable status lines
NP-15 Decryption or verification failures of items; MLS blocked Neutral placeholders and ST.* lines
NP-16 A display name failing the receiver check The prepared local part is shown
NP-17 A pairing session another device started ends without this device The approver prompt disappears
NP-18 Someone joins or is re-added to a secure context Member list changes; W6 for a bot; no sharing suggestion

Each row has a test column in 20 §7.2 that names exactly which surface IDs may appear in the surface log.

Onboarding

The insecure path has no security step at all (20 §9). The screens, in the order a new user meets them:

  1. "Where is your account?" One field that accepts a domain, an address or a link. While resolving, show "Looking up {domain}…", never a bare spinner. On success show the server's name, icon and canonical domain, never the alias the user typed (20 §9.1).
  2. M1, "Sign in to {domain}". One "Continue with {provider}" button per entry of auth.providers, last used first, run in the system browser or platform authentication session (RFC 8252), never an embedded web view the app can read. The same button signs in or signs up; never ask "Sign in or create account?" (20 §9.2).
  3. M2, "Choose your name". Shown when the code exchange returns signupRequired. Pre-fill suggestedName, preview "Your address will be {address}", and check availability live through GET /v1/addresses/{local}. 20 §9.3 maps every lookup result and sign-up error, such as address.taken, to a one-line message.

The flow (20 §9.7), first matching row wins:

State Event Next
server A link was opened and the user already has an account on this device Skip onboarding; open the link
server Server resolved provider
provider Login succeeded, account upgrade_required blocking_upgrade
provider Login succeeded, account secure, this device unenrolled device_setup: the device-setup chooser once, with "Skip for now"
provider Login succeeded, otherwise home (or the pending link intent)
provider Sign-up required name
name Account created on a secure server blocking_upgrade ("One more step"), then M4
name Account created on an insecure server home, then the backup sign-in hint
device_setup Enrolled, or "Skip for now" home; secure contexts then show G2

After sign-up on an insecure server, the client MUST NOT ask about encryption, show a security tour or suggest turning it on; encryption is reachable in Settings and from G1 when it is needed (20 §9.4). The client SHOULD show once "Add a backup sign-in so you can get into your account if you lose access to {provider}." That hint is about the provider login, not encryption, so it isn't a warning.

New devices start in voice activation, unmuted, without asking; "Join calls muted" is an optional setting, off by default. The first call shows the hint "You're using voice activation. You can switch to push-to-talk in Voice settings." (PD-20-5). The first call should work with zero setup; only people who want push-to-talk need to choose a key.

M4: turning on encryption

"Turn on encryption" (in Settings, G1 or the blocking screen) has no confirmation dialog. The client shows one progress state, "Turning on encryption…", for the ceremony steps, then the save step (20 §9.5). The ceremony itself, including PUT /v1/me/identity, is on Secure accounts.

The home server requires a provider sign-in within the last 24 h before it accepts a new identity (D-085), so a stolen session token can't attach a key that contacts would pin silently. The client keeps a one-hour margin: if the session's authAt is more than 23 h old, it first shows the fresh-authentication prompt M1.reauth ("To keep your account safe, confirm it's you." with "Continue with {provider}"), then runs the ceremony with no further tap. If the server still answers auth.reauth_required, show the prompt once more and continue with the same keys.

The save step is titled "Save your recovery key" and offers "Save to password manager" (primary), "Print or save as PDF", "Show words" and "Later". There is no quiz and no re-entry check (D-052). When the platform can't confirm a save, an inline "Saved it?" with "Yes" and "Not yet" follows, and only "Yes" counts as saved. Encryption is on as soon as the save step appears; "Later" doesn't undo it and starts W8 (20 §9.5).

Recovery, pairing and reset screens

These screens are for people who may never have heard of encryption keys (20 §12.1). One task per screen; pairing by QR code first and the 6-digit code second, because only the QR path resists recorded-transcript attacks; failures never say which device, digit or word was wrong and read "That didn't work" on both devices; nothing is styled as a warning. The approver prompt (M5) reads "Is this you signing in on {device}?" with "Yes, approve" and "No", and disappears by itself when the session ends elsewhere (20 §12.3). The "Start fresh" screen (M10) says exactly who will see what, because it is the one moment that costs the user's contacts a warning (20 §12.8).

Opening a link has its own rules because a link can reveal the user's IP address to the target server and can't be allowed to join anything by itself (20 §10, §22 item 5):

  1. No request before a tap. A link in a message is resolved only after the user taps it. Until then the client MUST NOT make any network request for it, in any message including message requests: no discovery, address lookup, invite preview, share-link fetch, or avatar or icon fetch (20 §10.1 rule 5).
  2. Canonical form only. Alias links are accepted, and from then on the canonical domain is shown with no mention of the alias. Links the client generates use the canonical domain (20 §10.1, §10.4).
  3. Signed out. Store one device-local link intent (target, invite code, time; it expires after 24 h), run onboarding with the link's domain pre-filled, and resume the link after sign-in, now with the session (20 §10.1 rule 2).
  4. Already inside. Open the target directly when the account is an active or needs_encryption member of it; otherwise show the join preview. The client never joins anything without the user tapping the preview's action (20 §10.1 rules 3 and 4).

The join preview's primary action is chosen by the first matching row of 20 §10.2: no action for a closed community or a missing required invite; "Turn on encryption and join" for a secure target and an insecure account; "Set up this device and join" for a secure channel on an unenrolled device; "Ask to join" for joinPolicy: request; otherwise "Join", or "Open" for an existing community member. W1 sits inside the preview above that action for an insecure community the secure user hasn't seen.

The share-link page hands a target to a web client in the fragment #sloppyv= followed by the target sloppyv URI, with every octet of its UTF-8 form percent-encoded except the RFC 3986 unreserved characters (PD-20-4, 20 §10.3). A web client that loads with that fragment MUST decode it exactly once, treat it as a link opening, and remove the fragment from the address bar without a navigation. For example https://app.sloppyvoice.com/#sloppyv=sloppyv%3A%2F%2FPublicLobby%40sloppyvoice.com%3Finvite%3D7KQ2M9XP4HRT (20 §21.6). Deferred deep linking MUST NOT use device fingerprinting or third-party attribution services. Address and link formats are on Addresses.

Status lines

Everything outside the closed catalogue that other documents defer to document 20 is a non-security status line, hint or neutral placeholder, and MUST NOT use security styling (20 §14). The one you need first is the mapping from an error's userAction (20 §14.1):

userAction What the client shows
none The action's own failure text if one is defined; otherwise "That didn't work."
retry "That didn't work." with "Try again"
wait After 2 s: "Waiting for {domain}…"
sign_in After silent recovery fails, the sign-in screen titled "Sign in again to {domain}"
enable_encryption G1
set_up_device G2
update_app Full screen "Update Sloppy Voice" / "{domain} needs a newer version of this app." with "Update"
contact_admin "Only the people who run {domain} can fix this." plus the server's contact link and "Reference: {instance}" when present

Clock problems are never shown as such: a persistent failure appears as ST.server_unreachable or ST.home_unreachable, and the clock offset appears only on the "Connection details" screen (20 §14.2). The full server, timeline, community and notification status lines are in 20 §14.2 to §14.5.

Call indicators

The talk and mute indicators are the user-visible half of D-012: nobody should be heard without knowing it, and nobody should think they are heard when they aren't. Their only inputs are what the audio engine exports: the TalkState (state, reason, blockedBy), userMuted and muteReason, plus the newest VoiceLease's audioBlockedBy for the mute indicator (20 §11). The audio engine is described on Media.

Hard rules

From 20 §11.1:

  1. Never looks like transmitting. The transmitting presentation appears if and only if TalkState is transmitting. No other state may use its colour, shape, animation, icon or wording.
  2. Never silent about not being heard. Every not_heard state shows text ending in "you're not being heard", visible without hovering.
  3. Same evaluation. Render each TalkState within one display frame and at most 50 ms of receiving it. With the engine's 100 ms delivery bound, the user sees every change within 150 ms.
  4. Not colour alone. States differ by icon shape and text.
  5. Unknown values of state or reason show as TI.not_heard: "You're not being heard".
  6. Level meter. A microphone level meter MAY show in every state, but outside transmitting it uses the neutral style and MUST NOT be the only moving element near the mute button.

The talk indicator

Surface ID TalkState (blockedBy) Reference text
TI.transmitting transmitting "Talking"
TI.not_heard.reconnecting not_heard, reconnecting "Reconnecting — you're not being heard"
TI.not_heard.connecting not_heard, connecting "Connecting — you're not being heard"
TI.not_heard.keys not_heard, waiting_for_keys "Securing the call — you're not being heard"
TI.not_heard.muted not_heard, muted "You're muted — you're not being heard" with "Unmute"
TI.not_heard.moderator not_heard, not_allowed (muted_for_everyone, server_muted) "Muted by a moderator — you're not being heard"
TI.not_heard.timeout not_heard, not_allowed (timed_out) "You're timed out — you're not being heard"
TI.not_heard.permission not_heard, not_allowed (no_permission) "You can't talk in this channel — you're not being heard"
TI.not_heard.other not_heard, not_allowed (other, unknown, absent) "You can't talk here right now — you're not being heard"
TI.not_heard.mic not_heard, no_microphone "Your microphone isn't working — you're not being heard" with "Check microphone"
TI.idle idle, mode ptt "Hold {key} to talk" (desktop) or "Hold to talk"
TI.idle idle, mode vad or open_mic No text
TI.idle.listening idle, not_allowed "Listening only" plus the reason
TI.idle.connecting / .reconnecting idle, connecting / reconnecting "Connecting…" / "Reconnecting…"
TI.muted muted No text; the mute indicator says why

Every not_heard row uses a crossed-out broadcast icon in a steady, non-animated neutral-strong colour. When the client can't observe the push-to-talk control (no global shortcut, hidden page), it shows the persistent status line ST.ptt_unobservable: "Push-to-talk works only while this window is active." on desktop or "Push-to-talk works only while this tab is open and in front." on the web (20 §11.2).

The mute indicator

The first matching row wins. B is the newest VoiceLease's audioBlockedBy (20 §11.3):

# Surface ID Condition Button Text
1 MI.moderator B is muted_for_everyone or server_muted Disabled "Muted by a moderator"
2 MI.timeout B is timed_out Disabled "Timed out until {time}"
3 MI.permission B is no_permission Disabled "You can't talk in this channel"
4 MI.blocked B is other or unknown Disabled "You can't talk here right now"
5 MI.after_moderator userMuted and afterBlock Muted, highlighted "You can talk again. Tap to unmute."
6 MI.rejoin userMuted, muteReason rejoin Muted, highlighted "You were reconnected and muted. Tap to unmute."
7 MI.interruption userMuted, muteReason interruption Muted, highlighted "Muted after another app used your microphone. Tap to unmute."
8 MI.user userMuted Muted "Muted"
9 MI.unmuted Otherwise Not muted None

On desktop, rows 5 and 6 say "Click to unmute". Key the indicator on userMuted, not on TalkState, so a muted push-to-talk user who holds the key still sees MI.user and the button doesn't flip with each press.

Unmuting is always a deliberate tap, click or shortcut; the client MUST NOT unmute automatically. Voice activation keeps running while muted, and the client MAY show "You're muted" next to the button when the user speaks for more than 1 s, at most once per 60 s.

Moderator blocks follow the same reasoning as rejoins (PD-20-7, 20 §11.3 rule 4). When B changes from null to non-null, or the first VoiceLease of a join or rejoin already carries a non-null B, while the device is in vad or open_mic and userMuted is false, set userMuted = true with muteReason user at that moment, report it as 16 §7.8 requires, and set the device-local flag afterBlock. Switching the mode to vad or open_mic while B is non-null does the same. Clear afterBlock when the user unmutes, the call ends or the mode changes to ptt. When the block ends, row 5 shows until the user unmutes. Muting at the start means the transmit gate is already closed when lease ticks restore coverage, so a voice-activation user who walked away is never live again without acting. Push-to-talk users are unaffected: the gate follows the physical key.

The worked example from 20 §11.4, a push-to-talk user in a train tunnel:

Time Event TalkState User sees
0 s Holds the key and talks transmitting "Talking"
3 s Relay connection fails not_heard, reconnecting "Reconnecting — you're not being heard"
5 s Releases the key idle, reconnecting "Reconnecting…"
9 s Presses again not_heard, reconnecting "Reconnecting — you're not being heard"
12 s Rejoin completes, key held transmitting "Talking" (live audio only)

A voice-activation user in the same tunnel sees MI.rejoin from 3 s and stays muted after the rejoin until they tap it.

Outages, others and call ends

The user's own call screen shows a status line by time since the drop, with no modal, sound or notification, and the Leave button stays available (20 §11.7):

Time since the drop Surface ID Status line
0 to 15 s ST.call_reconnecting.0 "Reconnecting…"
15 to 60 s ST.call_reconnecting.15 "Still reconnecting. Check your internet connection."
After 60 s ST.call_reconnecting.60 "Trying to get you back into the call…"

A planned migration (call.ended with security_upgraded or group_restarted, or relay.closing with call_restarted) isn't an end: the screen stays, mic and push-to-talk state are kept, and the header shows ST.call_reestablishing, "Setting up the call again…".

Others see a participant whose call.participant_updated says reconnecting only if it still says so 2,000 ms later: then a small, silent BADGE.reconnecting appears on the tile. After a call.participant_left with reason moved or switched, keep the tile for up to 4,000 ms and replace it silently if a call.participant_joined with a matching movedFrom arrives; otherwise remove it when the time runs out, with the normal leave sound, because the person really left this call. Auto-rejoins, moves within the same call and migrations play no join or leave sound (PD-20-10, 20 §11.6). A participant's speaking ring is driven only by audio received from them, never by their self-reported state.

When the call screen closes for a terminal reason, show one line for 10 s (20 §11.8), for example "The call ended.", "Your call moved to {device}." (call.moved), "This call is full." (call.full), or "You're in this call on {device}." with "Move here" (call.already_in_call).

Screen share and camera

The sharing and camera indicators follow talk-indicator rule 1: SHARE.active ("You're sharing your screen") and CAM.on appear if and only if frames of that source are being sent (20 §11.10). During an outage the share shows "Reconnecting — your screen isn't being seen"; it is held for at most 30 s after the drop and resumes by itself only if the seat was restored in that time, otherwise SHARE.stopped.reconnect reads "Screen sharing stopped while you were reconnecting." The webcam is turned off at the drop and comes back off, with CAM.off.rejoin: "Your camera was turned off when the call dropped. Tap to turn it on." (D-090).

The call route

A client sends and receives call media only through the hosting server's relay or SFU, never directly to another participant, in every context and security mode (15 §7.1 item 2, D-094). Other people in a call therefore never learn the user's IP address from it; only the hosting server sees it, as it does for any request (20 §22 item 14). The route needs no choice from the user. It appears only on the "Connection details" screen (Settings › Help, or the call screen's overflow menu), which is never opened automatically (20 §17.3 item 2), and a route change between relay and SFU shows nothing else (NP-5). Call mechanics are on Calls.

Web client hardening

A web client is exactly as trustworthy as the origin that serves its code (00 HP-10, D-065). 20 §16 is what a web client that can hold a secure account's keys MUST do to deserve that trust:

# Requirement Level
WH-1 The Content Security Policy below on every HTML document and every script and worker response MUST
WH-2 No inline script, no eval, no third-party script origins MUST
WH-3 Subresource Integrity on every script and stylesheet loaded by markup; integrity-checked loading of dedicated workers MUST
WH-4 The response headers below MUST (except where marked SHOULD)
WH-5 Served from an origin separate from the API base URL and from user content SHOULD (separate from user content: MUST)
WH-6 Reproducible builds and a release manifest SHOULD
WH-7 No third-party analytics, advertising, fonts, CDNs or error reporting MUST
WH-8 Trusted Types enforced; message content never rendered as HTML MUST
WH-9 Service worker restrictions MUST
WH-10 Identity and vault keys only on an allowed origin MUST

Content Security Policy

Serve this policy in a Content-Security-Policy response header, not a <meta> element, which can't carry frame-ancestors (20 §16.2). It is shown wrapped here; the header is one line. You MAY make it stricter and MUST NOT relax any directive.

Content-Security-Policy: default-src 'none'; script-src 'self' 'wasm-unsafe-eval';
  script-src-attr 'none'; worker-src 'self' blob:; style-src 'self'; font-src 'self';
  img-src 'self' blob: data: https:; media-src 'self' blob: mediastream: https:;
  connect-src 'self' https: wss:; manifest-src 'self'; frame-src 'none';
  frame-ancestors 'none'; object-src 'none'; base-uri 'none'; form-action 'none';
  require-trusted-types-for 'script'; trusted-types sv-default;
  upgrade-insecure-requests

'wasm-unsafe-eval' allows compiling WebAssembly (MLS, Argon2id, Opus) but not JavaScript eval. connect-src https: wss: is there because the client talks directly to any federated server. worker-src blob: exists only for the integrity-checked worker loading below, and the sv-default Trusted Types policy MUST create a TrustedScriptURL only for blob: URLs that loader made from verified bytes. Worker and service-worker script responses MUST carry the same policy.

Other response headers

From 20 §16.3:

Header Value Level
Strict-Transport-Security max-age=31536000 at least; includeSubDomains and preload where no subdomain needs plain HTTP MUST (directives SHOULD)
X-Content-Type-Options nosniff MUST
Referrer-Policy no-referrer MUST
Cross-Origin-Opener-Policy same-origin (same-origin-allow-popups on a document that opens the popup sign-in) MUST
Cross-Origin-Resource-Policy same-origin on the client's own assets MUST
Cross-Origin-Embedder-Policy credentialless or require-corp MAY (only where it doesn't break federated images)
Permissions-Policy camera=(self), microphone=(self), display-capture=(self), autoplay=(self), clipboard-write=(self), geolocation=(), payment=(), usb=(), serial=(), bluetooth=() MUST
Cache-Control no-cache on HTML and the service worker; max-age=31536000, immutable on content-hashed assets SHOULD

Integrity-checked code loading

Every <script src>, <link rel="modulepreload"> and <link rel="stylesheet"> carries a SHA-384 or SHA-512 integrity attribute. Modules imported at run time are listed in an import map's integrity section or bundled into a covered script (20 §16.4). All code comes from the client's own origin; servers it federates with provide JSON, media and images only, and the client MUST NOT load code at run time from anywhere else (no plug-ins, remote themes with script, or remote configuration that changes code paths).

Browsers don't apply SRI to new Worker(url), and the dedicated Worker is where the identity key is unwrapped. So fetch the worker with an integrity check, make a blob: URL from the verified bytes and start the worker from it. The digest must be part of code SRI already covers, and the worker must be one bundled file with no importScripts or module imports so nothing it runs escapes the check:

// The digest is a constant inside app code that is itself loaded with SRI.
const CRYPTO_WORKER_URL = "/assets/crypto-worker.7d1e02.js";
const CRYPTO_WORKER_SRI = "sha384-…";

async function startCryptoWorker(policy: TrustedTypePolicy): Promise<Worker> {
  const res = await fetch(CRYPTO_WORKER_URL, { integrity: CRYPTO_WORKER_SRI });
  const blobUrl = URL.createObjectURL(await res.blob());
  // sv-default creates TrustedScriptURLs only for blob: URLs made here.
  return new Worker(policy.createScriptURL(blobUrl) as unknown as URL);
}

Service workers

A service worker can't start from a blob: URL and browsers offer no integrity check for it, so it is the only script exempt from SRI (PD-20-11). It is constrained instead (20 §16.6):

  1. It is used only for Web Push, caching the client's own content-hashed assets, and decrypting notifications.
  2. Its script is same-origin, served with Cache-Control: no-cache, and its scope includes no path that serves user content.
  3. The client checks for an update on every load (updateViaCache: "none") and never serves an HTML document from cache when the network answers.
  4. It holds nothing of the key store except the notification key subset of 08 §13.5 and the push fetch token of 19; never the identity key, device signing keys, box key, vault keys, E, BK or refresh tokens.

An altered service worker can therefore read new messages in contexts with notifications until the next load replaces it, but can never reach the identity key (20 §22 item 7).

Note

20 §16.3 lists Cache-Control: no-cache on the service worker as SHOULD, while §16.6 rule 2 makes it a MUST. Following the MUST satisfies both.

Origins and rendering

The web client's origin MUST NOT serve user-uploaded content or be shared with any other web application, and SHOULD differ from the API base URL (https://app.sloppyvoice.com for the client, https://chat.sloppyvoice.com/server for the API) so a fault in API responses can't run script in the client's origin. The client sets no cookies of its own (20 §16.5). Message content, names, topics and rules are untrusted: render them with DOM text APIs or from an allow-listed format, never as HTML; open links in content with rel="noopener noreferrer", except sloppyv URIs and recognised share links; and never put tokens, keys or recovery words in URLs, page titles or localStorage (20 §16.9). Desktop apps built on a web engine MUST apply the same CSP, expose operating-system APIs only through a narrow typed bridge (context isolation on, Node integration off, sandbox on), open external links in the system browser, and install only publisher-signed updates (20 §16.8).

Which origins may hold keys

Any web origin can sign in to any home server, and a share-link page sends visitors to the hosting community's links.web. Without a rule, a secure user following "Continue in your browser" from a stranger's community could pair or enter their recovery key on that community operator's code. So a web client MUST NOT create, receive or hold an account's identity or vault keys (M4, pairing as the new device, recovery-key entry, M10) unless one of these holds (PD-20-12, 20 §16.11):

  1. its origin equals the origin of the home server's ServerMetadata links.web; or
  2. the home server's ServerMetadata has no links.web member at all. A present but invalid value matches no origin.

Elsewhere, every key flow is replaced by "Open {domain}'s web app" (when links.web exists, carrying the current target in the #sloppyv= fragment) and "Get the app". G2 becomes G2.other_origin: "Your account uses end-to-end encryption. To keep your keys safe, set it up in the Sloppy Voice app or on {domain}'s own web app, not on {origin}." G1 and the blocking screen keep their title and body, add "To keep your keys safe, do this in the Sloppy Voice app or on {domain}'s own web app." and are logged with the suffix .other_origin; the encryption settings page shows the same two actions. {domain} is the account's home server. Insecure contexts keep working on that origin. 20 §23 OQ-20-6 records that this rule also blocks a deliberately chosen third-party web client while the home server publishes links.web.

The release manifest

A web client publisher SHOULD publish a WebReleaseManifest at /sloppyv-release.json for every release and SHOULD make the build reproducible from published source (PD-20-6, 20 §16.7):

{
  "name": "Sloppy Voice Web",
  "version": "1.0.3",
  "source": "https://git.example/sloppyvoice/web",
  "revision": "3f1c2a9d4b5e6f708192a3b4c5d6e7f809a1b2c3",
  "builder": "sha256:9a0c4e…",
  "files": {
    "/index.html": "sha384-…",
    "/assets/app.4f2c91.js": "sha384-…",
    "/assets/crypto-worker.7d1e02.js": "sha384-…"
  },
  "createdAt": "2026-12-04T09:00:00.000Z"
}

files lists every file the origin serves for the release, each as sha384- plus the standard base64 SHA-384, as in SRI. The About screen shows the version, the SHA-256 of the manifest's exact bytes, and the sentence "This web app is only as trustworthy as {origin}, which serves its code." It never calls the hash a verification: an origin can serve a genuine manifest next to altered code, so verifying means fetching the files independently and comparing them with a manifest rebuilt from source (20 §16.7, §16.10).

Each device has one setting, "Problem reports", with the values off, failures (the default, D-089) and full. It governs every upload to POST /v1/diagnostics, whatever the kind, and is device-local because an insecure account has no vault. With off, nothing is uploaded and queued reports are discarded; the setting doesn't cover the MlsReports that 13 needs to run a group. The client MUST NOT ask the user to choose a value, anywhere; it states once, on the sign-in screen: "If a call fails, the app sends a problem report to the server involved. It never includes what anyone said, showed or wrote. You can turn this off in Settings › Privacy." "See what was sent" lists the device's uploads from the last 30 days as readable text (20 §17).

Note

20 §9.2 leaves that onboarding statement out when the device's setting is off (for example fixed by an organisation), while §17.1 rule 4 says it is shown on the sign-in screen of every device.

Accessibility and localisation

Every surface on this page MUST meet WCAG 2.2 level AA (20 §19.1). The rules that are specific to Sloppy Voice:

  • Talk indicator. Announce TalkState changes through a polite live region, but announce entering not_heard assertively while the user is pressing push-to-talk or speaking, so a blind user learns at once that they aren't heard. Announce transmitting ("Talking") only when it follows a not_heard state.
  • Alerts and dialogs. Banners and inline cards are landmarks with a heading; system alerts (W4a, W4b, the M5 approver prompt) move focus to their title; W5 and M10 trap focus until closed. Dismissal never relies on a swipe alone.
  • Codes and words. Announce pairing codes digit by digit in groups, recovery words with their number ("word 1: abandon"), and safety numbers in groups of five. Every QR flow has a typed alternative.
  • Motion. Respect the platform's reduced-motion setting; the transmitting state stays distinguishable without animation.

Translations follow the copy rules above. Recovery words (always the BIP-39 English list), invite codes, pairing codes, safety numbers, addresses and domains are never translated (20 §19.2).

Testing conformance

Conformance to document 20 is tested through the surface log (PD-20-1). A Full or Web client MUST be able to produce it in a test or debug build: one line per surface shown, changed or removed, never containing message content, keys or recovery words, and never uploaded (20 §2.6).

log-line   = mono-ms SP action SP surface-id [ SP ctx-ref ] LF
mono-ms    = 1*15DIGIT                 ; monotonic milliseconds since the log started
action     = "show" / "change" / "remove"
surface-id = id-part *( "." id-part )
id-part    = 1*( ALPHA / DIGIT / "_" )
ctx-ref    = 1*( %x21-7E )             ; a context reference (00 §7.6), "call:" + call ID,
                                       ; "pid=" + participant index, or "me"

change means a shown surface's data changed without its ID changing, for example W3 naming one more person. The spec doesn't say how to log a move to a surface with a different ID, such as the next talk-indicator state; the illustrative log below for test CT-12 (push-to-talk held through the train tunnel above) writes it as remove then show:

0 show TI.transmitting
3004 remove TI.transmitting
3004 show TI.not_heard.reconnecting
3004 show ST.call_reconnecting.0 call:01938f40-2c3d-7e4f-8a90-112233445566
5010 remove TI.not_heard.reconnecting
5010 show TI.idle.reconnecting

A test harness drives protocol events from a test server or recorded traffic and checks the log. The minimum set is CT-1 to CT-29 in 20 §18 plus NP-1 to NP-18 in §7.2; the test vectors for the lock, talk and mute indicators, people lists, W1 and W8 frequency and the share-link fragment are in §21. The full surface ID registry is 20 §20.2.