Specification · document 01
01 Addresses, display names and links
| Status | Draft. Protocol version 1 (sv1) of the Sloppy Voice v2 product |
| Date | 2026-12-04 |
| Depends on | 00 (overview and conventions), 02 (discovery and ServerMetadata), 03 (transport, errors) |
| Referenced by | 04, 05, 06, 07, 09, 10, 11, 12, 13, 19, 20 |
| Decisions used | D-001, D-002, D-003, D-005, D-016, D-018, D-020, D-024, D-025, D-026, D-028, D-029, D-030, D-031, D-032, D-048, D-055, D-056, D-064, D-068, D-086, D-091, D-092 |
| Decisions proposed here | AD-1 to AD-14 (§14 lists them; inline blocks start with "Proposed decision:"); the owner confirmed AD-1 and AD-2 (D-092) |
| Owns | Address ABNF and local-part rules; the Unicode address profile (PRECIS profile choice, the UTS #39 Highly Restrictive script rule, confusable-skeleton collision rule); the shared-namespace rules and the reserved local parts registry; the display-name linkage rule and receiver check; canonicalize(); the list of fields that MUST be canonical; GET {base}/v1/addresses/{local}; the sloppyv URI scheme; share-link semantics (not the links.join member itself); the deleted-address quarantine rule; the address.* error codes |
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. Grammars use ABNF (RFC 5234) with the core rules of its Appendix B; where a rule ranges over non-ASCII text, it is written over the octets of the UTF-8 encoding (RFC 3629). This document applies to the conformance classes of 00 §1.5 as follows:
- Server: §3 to §7 (profile, namespace, display-name checks, canonical forms), §9 (address lookup), §11.3 (share-link pages, where the operator serves them), §12 (errors).
- Full client and Web client: §3, §4, §6 to §8, §10, §11 and §12. Display-name checks (§6.4) are mandatory for any client that renders a name.
- Bot client: §7 (canonical forms on the wire). A bot that renders names to people follows §6.4.
Examples are informative unless the text says otherwise. Rationale notes start with "Rationale:" and are informative.
1. Scope
1.1 What this document covers
Every Sloppy Voice user account, bot account and channel has an address of the form local@domain, for example PublicLobby@sloppyvoice.com (D-005). This document defines:
- the grammar of addresses and the rules for the local part, including Unicode local parts (D-031, D-092);
- how an address is normalized, and the single function
canonicalize()that turns anything a person types, pastes or taps into the canonical address used on the wire (D-032, 00 §6 HP-8); - the rules for the namespace that users, bots and channels share on each server (D-020), including reserved names, confusable-name collisions and the quarantine of deleted names;
- how a display name is linked to its local part, and the check every receiver runs before showing one (D-005, D-031);
- the address lookup endpoint
GET {base}/v1/addresses/{local}; - the
sloppyvURI scheme and the semantics of HTTPS share links; - lenient parsing of user-typed addresses;
- the
address.*error codes.
1.2 What it doesn't cover
- DNS and
.well-knownresolution, ServerMetadata, thecanonicalDomainanddomainsmembers, and thelinks.joinshare-link template member: 02. - Verification of signed objects beyond the canonical-address check: 04 (JWS profile), 06 (HomeAssertion, S2S tokens), 07 (identity objects).
- The pairing QR payload: 08.
- Join-from-link user experience, deferred join screens, exact copy, and the visual presentation of names and addresses: 20. This document gives the normative rules that presentation must respect.
- Account sign-up, deletion and the
account.deletedpayload: 05. Channel creation and invites: 09.
1.3 Terminology
This document uses the terms of 00 §2 exactly: address, local part, display name, canonical domain, alias domain, canonical address, base URL, ServerMetadata, sloppyv URI, share link, home server, hosting server, context. It adds these terms.
| Term | Definition |
|---|---|
| SV local-part profile | The string-preparation profile of §3: the PRECIS UsernameCaseMapped profile (RFC 8265) with the case-mapping and additional-mapping choices of §3.2, plus the Sloppy Voice rules of §3.3 to §3.7. |
| Prepared local part | The output of the SV local-part profile. It is the local part of a canonical address. |
| Minimal preparation | minimalPrepare: the version-stable mapping steps of the profile only (§3.2). |
| Linkage preparation | linkPrepare: the mapping and PRECIS steps of the profile without the Sloppy Voice restrictions (§3.2). Used for display names (§6). |
| Input form | Anything a person types, pastes or taps: free text, a sloppyv URI, a share link. Accepted as input only (§7.7). |
| Wire form | The canonical address: prepared local part, @, the server's canonical domain as a lowercase A-label (§2.2). The only form that is stored, signed, compared, hashed or sent in a JSON member. |
| Display-local form | A display name with its white space removed, if the display name passes the receiver check (§6.4); otherwise the prepared local part. Used in shown addresses and in generated links. |
| Display form | What a person sees as an address: display-local form, @, the displayed domain (§6.6). |
| Namespace entry | One row of a server's shared namespace table (§5.1): a user, bot, channel, reserved, renamed or quarantined local part. |
| Skeleton | The UTS #39 confusable skeleton of a string (§5.3). |
| Collision key | A case-insensitive skeleton key, ckey (§5.3), recorded for a namespace entry. Two entries never share a collision key (§5.3). |
| Context domain | The canonical domain against which a shown address is compared to decide whether its domain is shown (§4.4). |
| AddressRef | The JSON convention for an address with its display name: {"addr": …, "name": …} (§6.7). |
| Quarantine | The period during which a deleted local part can't be registered again (§5.7). |
| Incarnation | An account's immutable random value inc (05 §11.1, D-086). A local part registered again after a deletion gets a new one, so (address, inc) names exactly one account ever (§5.7). |
| Rename reservation | The period during which the old local part of a renamed channel stays reserved for that channel (§5.6). |
| Base Unicode version | Unicode 16.0.0, the version this document's data and test vectors use (§1.4). |
1.4 Unicode data and versions
The SV local-part profile depends on Unicode data: the Unicode Character Database (general categories, White_Space, Default_Ignorable_Code_Point, Soft_Dotted, Script, Script_Extensions, Bidi_Class, case folding, normalization, East Asian width decompositions), the PRECIS derived property values computed from it (RFC 8264 §8), and the UTS #39 data files IdentifierType.txt and confusables.txt.
- The base Unicode version of this specification is 16.0.0. All test vectors in §13 use Unicode 16.0.0 data, including the UTS #39 16.0.0 data files.
- An implementation MUST use Unicode 16.0.0 or a later version, and SHOULD use the same version for every piece of data listed above. A server MUST record, for each namespace entry, the Unicode version under which it was registered (§5.8).
- §5.8 says what happens when a server moves to a newer Unicode version. §7.5 says why receivers never re-validate a canonical address against the full profile, which is what keeps addresses working across versions.
Rationale: case folding and NFC are covered by the Unicode Character Encoding Stability Policy, so a prepared local part never changes when Unicode is upgraded. Only validity (which code points are allowed) and confusable data change between versions, and §5.8 confines their effect to new registrations.
2. Address forms and grammar
2.1 Three forms
An address exists in three forms. Implementations MUST keep them apart.
| Form | Example | Where it appears |
|---|---|---|
| Input form | Public Lobby@Chat.SloppyVoice.com, sloppyv://PublicLobby@sloppyvoice.com, https://sloppyvoice.com/j/PublicLobby |
Typed text, pasted text, links, discovery input. Only ever passed to canonicalize() (§7.2). |
| Wire form (canonical address) | publiclobby@sloppyvoice.com |
Every JSON member, signed object, MLS structure, hash input, database key and comparison (§7.6). |
| Display form | PublicLobby@sloppyvoice.com or, inside the sloppyvoice.com community, just "Public Lobby" |
Shown to people (§6.6, §4.4). |
The wire form is case-folded and so always lowercase where the script has case. The display form carries the capitalization and spacing the owner chose, through the display name (§6).
2.2 Wire form (ABNF)
The canonical address is a UTF-8 string. The ABNF below is written over its octets.
canonical-address = canonical-local "@" canonical-domain
; 1 to 64 octets in total (section 3.6). Every non-ASCII character is
; further restricted by the SV local-part profile (section 3).
canonical-local = 1*lp-unit
lp-unit = %x30-39 / %x61-7A / UTF8-non-ascii
; ASCII digits, ASCII lowercase letters, or a
; non-ASCII character. ASCII uppercase never appears.
; 3 to 253 octets in total, at least two labels (section 4.2).
canonical-domain = label 1*( "." label )
label = a-label / ldh-label ; 1 to 63 octets each
a-label = "xn--" 1*59( lc-alnum / "-" ) ; MUST decode to a valid
; U-label (IDNA2008)
ldh-label = lc-alnum [ *61( lc-alnum / "-" ) lc-alnum ]
; MUST NOT have "-" in both the third and fourth
; positions unless it is an a-label
lc-alnum = %x30-39 / %x61-7A
; RFC 3629 section 4
UTF8-non-ascii = UTF8-2 / UTF8-3 / UTF8-4
UTF8-2 = %xC2-DF UTF8-tail
UTF8-3 = %xE0 %xA0-BF UTF8-tail / %xE1-EC 2( UTF8-tail ) /
%xED %x80-9F UTF8-tail / %xEE-EF 2( UTF8-tail )
UTF8-4 = %xF0 %x90-BF 2( UTF8-tail ) / %xF1-F3 3( UTF8-tail ) /
%xF4 %x80-8F 2( UTF8-tail )
UTF8-tail = %x80-BFA string that matches canonical-address is only well-formed. It is canonical when it also passes the checks of §7.5. Addresses never carry a port, a path, a trailing dot on the domain, an IP literal or a quoted local part.
2.3 Display form (ABNF)
display-address = display-local "@" display-domain
display-local = 1*dl-char ; the display name without white space
; (section 6.6), or the prepared local part
dl-char = %x30-39 / ALPHA / UTF8-non-ascii
display-domain = canonical-domain / u-label-domain
u-label-domain = 1*( UTF8-char ) ; the IDNA2008 U-label form of
; canonical-domain, shown only under the
; rules of section 4.3
UTF8-char = %x30-39 / %x61-7A / "-" / "." / UTF8-non-asciiThe display form is for people only. It MUST NOT be stored or sent in a JSON member as an address. When it is typed or pasted back, it is input form and goes through canonicalize(), which always gives back the same canonical address (§6.4 guarantees this).
2.4 Input form
Input form has no grammar: §8 defines how it is parsed leniently, and §10 and §11 define the link forms.
3. The SV local-part profile
3.1 Basis
Local parts are Unicode letters and digits that meet the UTS #39 Highly Restrictive script rule of §3.5.1 (D-031, D-092, 00 §2.1). They are prepared with the PRECIS UsernameCaseMapped profile of RFC 8265 §3.3, which is built on the PRECIS IdentifierClass of RFC 8264 §4.2, with these fixed choices:
- Case-mapping rule. RFC 8265 §3.3.1 says to map to lowercase, "preferably" with Unicode
toLowerCase(). The SV profile uses Unicode full default case folding (toCasefold(), the mappings with status C and F inCaseFolding.txt, never T), as the overview's definition of a canonical address says ("case-folded", 00 §2.1, D-031). - Additional-mapping rule. Exactly one mapping: U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE is mapped to U+0049 LATIN CAPITAL LETTER I. No other additional mapping is applied.
- Order of rules and validity checks. RFC 8265 §3.3.2 checks IdentifierClass validity before case mapping; RFC 8264 §7 checks it after all mappings. The SV profile checks it at both points (§3.2 steps 4 and 8), so a string passes only if it is valid under both readings.
Proposed decision (AD-1), confirmed by the owner (D-092): The case-mapping rule of the SV local-part profile is Unicode full default case folding, and its only additional mapping is U+0130 → U+0049. Rationale: case folding is covered by Unicode's case-folding stability guarantee, so prepared local parts never change across Unicode versions, while toLowerCase() has no such guarantee. Folding also makes the display-name linkage work where lowercasing fails: Greek final sigma (ς and σ fold together, so "ΣΟΦΌΣ ΠΑΠΆΣ" and "Σοφός Παπάς" name the same address), German ß (Straße and STRASSE are one address), and Cherokee, whose lowercase letters fold to the main uppercase forms. The U+0130 mapping stops Turkish "İstanbul" from folding to "i" plus a combining dot above, which UTS #39 §5.4 flags as confusable with plain "i".
The additional mapping is a deliberate deviation from RFC 8265, whose UsernameCaseMapped profile has no additional-mapping rule; the owner confirmed it (D-092). Default case folding is locale-independent, which has one known limit: capital I always folds to dotted i. A Turkish local part that contains dotless ı, such as ışık, can therefore never be shown with a capital I ("Işık" prepares to işık, a different local part; vector N29). Such names can be shown in lowercase or with the capitalization of their other letters only. 20 explains this to people who choose such a name.
3.2 Preparation and enforcement algorithm
prepareLocal(s) takes a Unicode string and returns a prepared local part or a failure with a reason from §3.9. Implementations MUST apply these steps in this order and MUST produce exactly the same result as this description.
- Input bound. If
shas more than 256 code points, fail withtoo_long. (This bounds work; the real limit is in step 13.) - Remove white space. Remove every code point with the Unicode property
White_Space(for example U+0020 SPACE, U+00A0 NO-BREAK SPACE, U+3000 IDEOGRAPHIC SPACE, U+2028 LINE SEPARATOR). If nothing is left, fail withempty. - Width mapping (RFC 8265 §3.3.1 rule 1). Map every fullwidth and halfwidth code point to its
<wide>or<narrow>decomposition mapping. Then apply the additional mapping U+0130 → U+0049. - Validity check, first pass (RFC 8265 §3.3.2 step 2). Every code point MUST have the PRECIS derived property value PVALID in the IdentifierClass, or CONTEXTO with its contextual rule satisfied (RFC 5892 Appendix A). Otherwise fail with
disallowed_code_point(orunassignedwhen the derived property value is UNASSIGNED), reporting the index of the first offending code point. - Case mapping. Apply Unicode full default case folding.
- Normalization. Apply Unicode Normalization Form C.
- Directionality. If the string contains a code point of
Bidi_ClassR, AL or AN, it MUST satisfy all six conditions of the Bidi Rule of RFC 5893 §2. Otherwise fail withbidi_rule. - Validity check, second pass (RFC 8264 §7 step 6). Repeat step 4 on the result.
- Idempotence. Apply steps 3 to 8 to the result. If the output differs from the input to this step, fail with
unstable. (No such string is known under Unicode 16.0.0; the check guards future versions.) - Repertoire (§3.3). Every code point MUST be in the SV repertoire. Otherwise fail with
disallowed_code_pointorrestricted_code_point. - Shape rules (§3.4). Fail with the reason the failed rule names.
- Script rules (§3.5). Fail with
mixed_scriptormixed_digits. - Length (§3.6). Fail with
too_long.
The result is the prepared local part.
prepareLocal MUST NOT do anything else: no transliteration, no removal of accents, no mapping of lookalikes, no truncation.
Two partial forms of the algorithm are used elsewhere in this document:
minimalPrepare(s)applies steps 2, 3, 5 and 6 only: remove white space, width mapping and the U+0130 mapping, case folding, NFC. It never fails, except withempty. It uses only mappings that the Unicode Character Encoding Stability Policy covers, so for assigned code points its result doesn't depend on the Unicode version. For every string that passesprepareLocal,minimalPreparegives the same result. It is used to check canonical addresses (§7.5) and to look up names that an implementation's own data would reject (§7.2, §9.2).linkPrepare(s)applies steps 2 to 9 and fails as they do. It leaves out the Sloppy Voice restrictions of steps 10 to 13, whose data (Identifier_Type, scripts) changes between Unicode versions. It is used for display names (§6).
Rationale: steps 3 to 8 are exactly the preparation and enforcement of RFC 8265 §3.3, with both readings of the check order applied. Steps 10 to 13 add the restrictions the owner asked for ("letters and digits", "UTS #39 Highly Restrictive", D-031, D-092) and those UTS #39 recommends for identifiers.
3.3 The SV repertoire
After steps 3 to 9, each code point MUST meet all of these conditions:
- Its General_Category is one of Lu, Ll, Lt, Lm, Lo (letters), Mn, Mc (combining marks) or Nd (decimal digits). Few Lu or Lt code points survive case folding; those that do (because they have no folding) are allowed if they meet the other conditions.
- It doesn't have the property
Default_Ignorable_Code_Point. - Its UTS #39
Identifier_Typevalues (fromIdentifierType.txt) are all in the set {Recommended,Inclusion,Limited_Use}. A code point with any other value, such asTechnical,Uncommon_Use,Obsolete,Exclusion,Not_XID,Not_NFKC,Default_IgnorableorDeprecated, fails withrestricted_code_point.
Proposed decision (AD-2), confirmed by the owner (D-092): The local-part repertoire is letters, combining marks and decimal digits whose UTS #39 Identifier_Type is Recommended, Inclusion or Limited_Use. No punctuation, symbol, separator or joiner is allowed anywhere in a local part. Rationale: the owner's rule is "Unicode letters and digits" (D-031) and display names may only add spaces (D-005), so any separator would let two names differ by an invisible or easily missed mark. Accepting Limited_Use keeps living languages such as Cherokee, Canadian Aboriginal Syllabics, N'Ko, Adlam, Tifinagh and Vai usable ("names in any language"); excluding Technical, Uncommon_Use and Obsolete characters removes most of the rarely seen lookalikes that confusable data covers poorly.
The repertoire excludes, among others:
| Excluded | Examples | Why |
|---|---|---|
Spaces and all White_Space |
U+0020, U+00A0, U+3000 | Removed in step 2; spaces exist only in display names (D-005). |
| ASCII punctuation, even though IdentifierClass allows it | . _ - + ' ! # |
"Letters and digits" only (AD-2). |
| Other punctuation and connectors, including CONTEXTO punctuation | U+00B7 MIDDLE DOT, U+30FB KATAKANA MIDDLE DOT, U+05F3 HEBREW PUNCTUATION GERESH | Same. Japanese names are written without the middle dot: ジョンスミス. |
| Symbols, emoji, pictographs | U+1F44D 👍, U+00A9 ©, U+2122 ™ | Disallowed by IdentifierClass. |
| Default-ignorable code points, including the joiners | U+200B ZERO WIDTH SPACE, U+200C ZWNJ, U+200D ZWJ, U+00AD SOFT HYPHEN, U+FEFF | Invisible: two names could differ only by them. |
| Bidi controls and marks | U+200E, U+200F, U+202A–U+202E, U+2066–U+2069, U+061C | Same, and they enable reordering tricks. |
| Compatibility characters | U+212A KELVIN SIGN, U+FB01 LATIN SMALL LIGATURE FI, U+217B SMALL ROMAN NUMERAL TWELVE, U+017F LATIN SMALL LETTER LONG S | IdentifierClass HasCompat; step 4 rejects them before case folding could hide them. |
| Non-decimal numbers | U+00B2 SUPERSCRIPT TWO, U+2160 ROMAN NUMERAL ONE, U+0BF0 TAMIL NUMBER TEN | Not Nd. |
| Enclosing marks (Me), format characters (Cf), private use (Co), surrogates (Cs), controls (Cc), unassigned (Cn) | U+20DD, U+E000 | Not letters or digits. |
@ |
U+0040 | Separates the local part from the domain. |
3.4 Shape rules
After step 10:
- First code point. The first code point MUST NOT be a combining mark (Mn or Mc). Failure reason:
leading_mark. - At least one letter. At least one code point MUST be a letter (General_Category L*). An all-digit local part fails with
no_letter. - Combining-mark runs. In the NFD form of the string, no run of consecutive Mn code points may be longer than 4 (
too_many_marks), and no Mn code point may immediately follow an identical Mn code point (repeated_mark). These are the UTS #39 §5.4 checks. - Dot over soft-dotted letters. In the NFD form, U+0307 COMBINING DOT ABOVE MUST NOT immediately follow a code point with the
Soft_Dottedproperty (for examplei,j,і). Failure reason:confusable_mark. (UTS #39 §5.4 names exactly this case.) - Separators. There are none: a local part has no separator characters at all, so it has no leading, trailing or consecutive separators. Spaces typed by a person are removed in step 2 wherever they occur, including at the start, at the end and in runs.
3.5 Script rules
3.5.1 Script mixing: UTS #39 Highly Restrictive
The prepared local part MUST meet the script-coverage condition of the Highly Restrictive restriction level of UTS #39 §5.2, computed as follows. The owner confirmed this reading of D-031, including the three Latin-with-East-Asian combinations of step 3 below (D-092).
This is the script part of Highly Restrictive only. UTS #39 restriction levels also assume the General Security Profile, which allows only Identifier_Status Allowed (Identifier_Type Recommended and Inclusion). The character repertoire of the SV profile is §3.3, which deliberately goes further and admits Limited_Use (AD-2, confirmed by D-092). Implementations MUST compute the rule with the algorithm below. They MUST NOT use a library's restriction-level result that also enforces Identifier_Status Allowed (such as ICU SpoofChecker's restriction level), because that rejects Limited_Use scripts such as Cherokee (vectors L21, L22).
Script set of a code point. Take its
Script_Extensionsvalue. If that value is exactly {Common} (Zyyy) or exactly {Inherited} (Zinh), the code point's script set is ALL (it goes with any script). Otherwise, augment the set: add Hanb, Jpan and Kore to any set containing Hani; add Jpan to any set containing Hira or Kana; add Kore to any set containing Hang; add Hanb to any set containing Bopo (UTS #39 §5.1).Resolved script set of the string: the intersection of the script sets of all its code points, where ALL is the identity. A string whose resolved script set is non-empty (including ALL) is single-script.
Highly Restrictive holds if the string is single-script, or if there is one set T among the following three such that, for every code point of the string, its script set is ALL or has a non-empty intersection with T:
- {Latn, Hani, Hira, Kana, Jpan} (Japanese written with Latin),
- {Latn, Hani, Bopo, Hanb} (Chinese with Bopomofo and Latin),
- {Latn, Hani, Hang, Kore} (Korean with Hanja and Latin).
The same T must cover every code point. A string in which some code points are covered only by one set and others only by another fails (vectors F22, F24).
Otherwise the local part fails with mixed_script.
Consequences, all of which the test vectors check:
- Common and Inherited code points (ASCII digits, most combining diacritics) go with any script.
anna2024,иван2andمريم2024are single-script. Code points whoseScript_Extensionslists real scripts go only with those scripts, even if theirScriptvalue is Common: U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK hasScript_Extensions{Hira, Kana}, soたなかーpasses andиванーfails withmixed_script(vectors L28, F25). - Digits: ASCII digits are Common. Script-specific digits belong to their script:
अनिल१२is valid,Anna২০(Latin with Bengali digits) fails withmixed_script. - Japanese mixing Han, Hiragana and Katakana is single-script (Jpan), as are Korean Hangul with Hanja (Kore) and Chinese Han with Bopomofo (Hanb). Latin with any one of these is allowed (
tanaka太郎), but Hangul with Kana is not. - Latin with Cyrillic or Greek is never allowed:
pаypalwith a Cyrillic а fails.
Because the display name reduces to the local part (§6), a display name has the same script set as its local part. A display name can't mix scripts that its local part doesn't.
3.5.2 One digit system
All code points with General_Category Nd MUST come from one decimal digit system: they MUST all have the same value of (code point − numeric value). For example, ASCII digits (zero at U+0030) and Devanagari digits (zero at U+0966) can't be mixed. Failure reason: mixed_digits. This is the UTS #39 §5.3 mixed-number check. (For Arabic-Indic and Extended Arabic-Indic digits, the CONTEXTO rules of RFC 5892 already forbid mixing, in step 4.)
3.6 Length
| Limit | Value |
|---|---|
| Maximum length of a prepared local part | 64 octets of UTF-8. That is 64 ASCII characters, 32 Greek or Cyrillic letters, or 21 CJK characters. |
| Minimum length of a prepared local part | 1 code point, which must be a letter (§3.4). |
Maximum length of raw input to prepareLocal |
256 code points (step 1). |
| Registration minimum (server policy) | A server MAY refuse to register a local part shorter than its policy minimum. The default is 2 code points. A server's minimum MUST NOT exceed 3 code points. It never applies to lookups or to existing names. Failure: address.not_allowed with reason too_short (§12). |
The 64-octet limit is measured on the prepared local part, after case folding and NFC. Case folding can lengthen a string (ß becomes ss), so a person's input can pass before folding and fail after; the error then says too_long.
Proposed decision (AD-3): A local part is at most 64 UTF-8 octets; a display name is at most 128 UTF-8 octets (§6.2); a server's registration minimum is at most 3 code points, defaulting to 2. Rationale: 64 octets matches the e-mail local-part limit people already know and keeps addresses usable in DNS-like and MLS structures; the minimum cap lets short names in scripts such as Chinese, where two-character names are common, work everywhere.
3.7 Case-insensitivity and comparison
Addresses are case-insensitive (D-005) because the prepared local part is case-folded and the domain is lowercased (§4). Two addresses are the same address exactly when their canonical forms are identical octet for octet (RFC 8265 §3.3.4). No other comparison is defined: no locale-sensitive matching, no accent-insensitive matching, no skeleton matching. Collision keys (§5.3) are used only to refuse new names, never to decide whether two existing addresses are the same.
3.8 Stability
- The prepared local part is idempotent:
prepareLocal(prepareLocal(x)) = prepareLocal(x)for everyxthat passes. - Case folding and NFC of assigned characters are stable across Unicode versions, so a local part prepared under one version is unchanged under every later version. What can change is whether it passes (validity, Identifier_Type, scripts) and what its collision keys are. §5.8, §7.2, §7.5 and §9.2 handle both.
3.9 Failure reasons
prepareLocal failures are reported in address.invalid_local_part (§12) as data.reason. data.index is a zero-based code-point index, present only when one code point is to blame and the failure was found in one of these steps:
- step 4: the index in the string after step 2 (the mappings of step 3 replace one code point by one code point, so positions don't move);
- step 10, or shape rule 1 of step 11 (
leading_mark): the index in the string after step 9, which may differ from the person's input because case folding and NFC can change lengths.
Failures in other steps carry no index. Receivers MUST treat an unknown reason as disallowed_code_point.
reason |
Meaning | Suggested user message intent (20 owns copy) |
|---|---|---|
empty |
Nothing left after removing white space. | "Type a name." |
too_long |
Over 64 octets after preparation, or over 256 code points of input. | "That name is too long." |
too_short |
Shorter than the server's registration minimum (registration only, inside address.not_allowed). |
"That name is too short." |
disallowed_code_point |
A character that is never allowed (punctuation, symbol, emoji, invisible character, compatibility character). | "Names can only use letters and numbers." |
restricted_code_point |
A letter or mark that isn't in common use (Identifier_Type). | "That character can't be used in names." |
unassigned |
A code point unassigned in the implementation's Unicode version. | "That character isn't supported yet. Updating the app may help." |
leading_mark |
Starts with a combining mark. | "Names can't start with an accent." |
no_letter |
No letter at all. | "Names need at least one letter." |
too_many_marks, repeated_mark, confusable_mark |
Combining-mark abuse. | "That name has too many accents." |
mixed_script |
Letters from scripts that can't be mixed. | "Use letters from one alphabet." |
mixed_digits |
Digits from two digit systems. | "Use one kind of digits." |
bidi_rule |
Fails the RFC 5893 Bidi Rule, for example a right-to-left name that starts with a digit, or that mixes European and Arabic-Indic digits. | "That mix of right-to-left letters and numbers isn't allowed." |
unstable |
Preparation isn't idempotent. | As disallowed_code_point. |
contains_at |
The input to a local-part-only field contained @ (§9.2). |
"Type only the name, without @ and the server." |
invalid_utf8 |
A percent-decoded path or link segment wasn't valid UTF-8. | As disallowed_code_point. |
4. Domains
4.1 Converting a domain to its wire form
prepareDomain(d) turns the domain part of an input into a lowercase A-label domain, or fails with address.invalid_domain and a data.reason from §4.2.
- Remove leading and trailing
White_Space. If nothing is left, fail withempty. If anyWhite_Spaceremains inside, fail withwhite_space. - Treat U+002E, U+3002, U+FF0E and U+FF61 (which UTS #46 maps to U+002E) as full stops. If the string ends with one full stop, remove it. Then split the string at full stops into labels; if any label is empty (a leading full stop, two full stops in a row, or a second trailing full stop), fail with
empty_label. - If the string starts with
[and ends with], fail withip_literal. If it contains:, fail withport. If the last label consists only of ASCII digits, or of0xor0Xfollowed by zero or more ASCII hex digits, fail withip_literal. (This is the "ends in a number" test of the WHATWG URL Standard. It catches192.0.2.1,1.2.3and0x7f.1, which browsers and URL libraries treat as IPv4 addresses.) - Apply UTS #46 processing (
ToASCII) with these parameters:UseSTD3ASCIIRules = true,CheckHyphens = true,CheckBidi = true,CheckJoiners = true,Transitional_Processing = false(nontransitional, IDNA2008-compatible: ß and ς are kept, not mapped to ss and σ),VerifyDnsLength = true,IgnoreInvalidPunycode = false. Any error fails withidna. UTS #46 mapping lowercases ASCII, applies case folding and width mapping to non-ASCII, and maps the ideographic and fullwidth full stops to.. - Every resulting label that starts with
xn--MUST decode to a U-label that is valid under IDNA2008 (RFC 5891 §5.4 and RFC 5892). Otherwise fail withidna. - The result MUST have at least two labels (
single_label), MUST NOT exceed 253 octets (too_long), and its last label MUST NOT be all digits (numeric_tld; this catches digits that only become ASCII through the UTS #46 mapping, such as fullwidth digits).
The result is the typed domain in A-label form. It is used only as the input to discovery (02). The wire form of an address uses the canonical domain that discovery returns, never the typed domain (§7.2).
Proposed decision (AD-4): Address domains need at least two labels, never carry a port and are never IP literals. Rationale: discovery works on DNS names (D-001), and an address with an IP literal or a port can't be canonical or federated. A development deployment MAY accept other names locally, but such addresses MUST NOT be sent to other servers.
4.2 Domain failure reasons
address.invalid_domain carries data.reason, one of: empty, white_space, empty_label, ip_literal, port, idna, single_label, too_long, numeric_tld. Receivers MUST treat an unknown value as idna.
4.3 When a U-label may be shown
Domains travel as lowercase A-labels. A client MAY show the U-label form of a domain (for example bücher.example for xn--bcher-kva.example) only if every label meets all of these conditions; otherwise it MUST show the A-label form for the whole domain.
- The A-label decodes to a valid IDNA2008 U-label.
- The U-label meets the Highly Restrictive rule of §3.5.1 and the one-digit-system rule of §3.5.2.
- The U-label isn't a whole-script confusable of an ASCII label: if the U-label contains any non-ASCII code point and its skeleton (§5.3) consists only of ASCII letters, digits and
-, the A-label MUST be shown. (This catchesаррӏе, written entirely in Cyrillic, which looks likeapple.) - Every code point's Identifier_Type is in the set of §3.3.
Clients SHOULD let people see the A-label form on request (for example on a long press or in the address details).
Rationale: these are the same protections the local part gets, applied to labels the client didn't validate itself. Major browsers use similar policies.
4.4 When the domain is shown
D-031 requires a client to show the domain of an address whenever it differs from the context domain. The context domain is defined as follows.
| Where the address is shown | Context domain |
|---|---|
| A channel's timeline, member list, roster or call, and the mentions picker and member search inside that channel; a community's member list, role list, audit log or moderation screens | The hosting server's canonical domain |
| A 1:1 DM or a group DM (its timeline, member list, call, and the mentions picker inside it) | The viewer's home server's canonical domain |
| Anywhere else (contact lists, the DM index, message requests, notifications, global search results) | The viewer's home server's canonical domain |
Rules:
- A client MUST show the domain of an address whose canonical domain differs from the context domain. Comparison is on canonical domains, octet for octet.
- Where the domain equals the context domain, the client MAY show the display name alone.
- A client MUST show the full display form, domain included, in: profile cards; the "who is this?" details of any member; identity verification screens and safety numbers (07); every warning that names a person (W2, W3, W6, W7 and the W4 family); link previews before joining (§10.5); and message-request screens (12).
- The client MUST show the canonical domain, never an alias, and never the domain the person typed (§7.8).
Presentation (typography, truncation, where the domain is placed) belongs to 20.
4.5 Confusable and mixed-script domains
The local-part profile can't stop someone registering a lookalike domain on the open internet (for example s1oppyvoice.com). The protocol's defences are:
- the domain is shown whenever it differs from the context domain (§4.4), so a lookalike user from another server is visibly from another server;
- U-labels are shown only under §4.3;
- federation blocks are keyed by canonical domain and cover every alias (00 §6 HP-7, 06).
Operators SHOULD NOT register domains that mix scripts within a label, and SHOULD use ASCII domains where their audience can type them. Server software SHOULD warn an admin who configures a canonical or alias domain whose U-label would fail §4.3.
5. The shared namespace
5.1 One table per server
Users, bots and channels share one namespace per server (D-020): the local part PublicLobby can't be both a user and a channel on sloppyvoice.com. The namespace belongs to the server, not to a domain: because alias domains share all accounts and channels (D-002), publiclobby@chat.sloppyvoice.com is the same entry as publiclobby@sloppyvoice.com.
A server MUST keep one namespace table. Each namespace entry has:
| Field | Meaning |
|---|---|
local |
The prepared local part. Unique in the table. |
kind |
user, bot, channel, reserved, renamed or quarantined. |
collisionKeys |
The set of collision keys recorded for the entry (§5.3). |
uv |
The Unicode version under which the entry was registered or last re-keyed (§5.8). |
class |
For reserved entries: P, A or C (§5.4). |
ctx, renamedAt |
For renamed entries: the channel that holds the reservation, and when it was renamed (§5.6). |
deletedAt, formerKind |
For quarantined entries (§5.7). |
How a server stores the table is an implementation matter. Its behaviour MUST be as if every registration, channel creation, display-name change and quarantine change were checked and applied atomically against the whole table.
Remote users don't occupy a server's namespace: alice@a.com joining sloppyvoice.com adds no entry there.
5.2 Exact collisions
A request to create a user, bot or channel whose prepared local part equals the local of an existing entry fails:
| Existing entry | Error |
|---|---|
user, bot or channel |
address.taken (409) |
reserved |
address.reserved (409), unless the requester may claim it (§5.4) |
renamed |
address.taken (409), unless the request renames the channel that holds the reservation back to it (§5.6) |
quarantined |
address.quarantined (409), unless §5.7 allows the reuse |
Endpoints that create or change entries belong to other documents: sign-up (05), bot creation (05), channel creation and channel renames (09), and display-name changes (05, 09). They MUST apply §5.2 to §5.7 and §6.3, and report failures with these address.* codes, not with codes of their own.
5.3 Confusable-skeleton collisions
A server MUST refuse a new local part whose confusable skeleton collides with an entry already in its namespace (D-031). It compares collision keys, which are confusable skeletons with case folded (below), so the check is at least as strict as comparing skeletons. It MUST also refuse a display name that would make an entry look like another one.
Skeleton. skeleton(X) is the UTS #39 §4 skeleton:
- convert X to NFD;
- remove every code point with the property
Default_Ignorable_Code_Point; - replace each code point by its prototype from
confusables.txt(code points with no entry map to themselves), and concatenate; - convert the result to NFD again.
The skeleton is used only for collision checks. It is never displayed, stored on the wire, or used to look anything up.
Collision key. A skeleton is case-sensitive, but local parts are case-folded and a display name may use any capitalization. The collision key therefore folds case as well:
ckey(X):
- Let k =
skeleton(X). - Repeat at most three times: let k′ =
skeleton(toCasefold(k)), using Unicode full default case folding as in §3.1; if k′ = k, stop; otherwise set k = k′. - The result is k.
The first skeleton comes before case folding because some capitals are confusable with a different small letter (capital I with small l), which folding alone would lose. The fold then makes every capitalization of a name, and every lookalike capitalization in another script, meet in one key: "Alice", "alice" and "AIice" (capital I) all have the key alice, and Greek "ΚΑΤΕ", Cyrillic "КАТЕ" and Cherokee ᏦᎪᎢᎬ all have the key kate. The repetition settles the rare cases where a folded letter has a skeleton of its own: the Cherokee small letters of the display name in vector N27 need two rounds to reach the same key as their local part, Ꮳwy (U+13E3 U+0077 U+0079).
Collision keys of an entry.
| Entry | Collision keys |
|---|---|
user, bot, channel |
ckey(local) and ckey(D), where D is the display name with all White_Space removed, width-mapped and NFC-normalized |
reserved |
ckey(r), ckey(Titlecase(r)) and ckey(Uppercase(r)) for the reserved name r |
renamed |
The collision keys the channel had under that local part |
quarantined |
The collision keys the entry had when it was deleted |
The Titlecase and Uppercase keys of reserved names aren't redundant: ckey("ADMIN") is adrnln, because the capital I meets the small l before folding, so it catches "ADMlN" (small l), which ckey("admin") doesn't.
Rule. A namespace change is refused with address.too_similar (409) if any collision key of the new or changed entry equals a collision key of a different entry. A renamed entry counts as the same entry as the channel that holds its reservation. This applies:
- at registration of a user or bot (05) and creation or rename of a channel (09), for the local part and, if one is given, the display name;
- whenever a display name is set or changed (05 for accounts, 09 for channels).
data.field in the error says which one collided: local or name. The error MUST NOT reveal the entry it collided with.
An entry's own capitalizations never collide with it, because they belong to the same entry. A name that someone else's entry already blocks is refused whoever asks first: the rule is first come, first served, as for exact names. Because the key of a local part blocks every display name with the same key, the holder of alice is protected whether or not they have set a display name.
At registration of a user or bot, if only the display name collides (field: "name") and the local part is free, the server MUST NOT refuse the registration. It creates the entry with the prepared local part as its display name (§6.3); it never stores an empty display name and sends no separate flag. The response's Account name (05 §8.4, §15.2) is then the prepared local part, which differs from the name sent after §6.3 steps 1 and 2. That difference is how the client detects the case, and it tells the person in one line that their name will be shown in lowercase for now (20 §9.3). The person can choose another capitalization later. Vector S19 (§13.3) shows the case.
Examples (all in §13.3): paypa1 collides with paypal (the digit one and the letter l share a skeleton); rnoon collides with moon; ılgın collides with ilgin; Cyrillic ѕсоре collides with Latin scope; Greek νονα collides with Latin vova; Katakana タロウ collides with 夕口ウ (Han); anna2o24 collides with anna2024 (the digit zero and the letter o); adrnin collides with the reserved admin. The display name "AIice" (with a capital I) for the entry aiice collides with alice, whether or not alice has chosen a display name. A Greek entry κατε (key ĸaᴛꞓ) can register next to kate, but can't show the display name "ΚΑΤΕ", whose key is kate.
Folding before comparing has a cost: in all-capital display names, capital I and capital L meet (both become small l), so "ALICE" (key allce) is refused if another entry is allce. Such false positives only refuse a display name, never an address, and are rare.
Proposed decision (AD-5): The confusable collision check uses the case-insensitive key ckey and covers display names as well as local parts; reserved names contribute the keys of their lowercase, titlecase and uppercase forms. Rationale: the display name adds capitalization, and capitals are confusable both with other lowercase letters (I and l) and with capitals of other scripts (Greek, Cyrillic, Cherokee). A case-sensitive skeleton misses both, so the owner of aiice could display "AIice" next to an alice with only the default display name (§6.3), and a Greek κατε could display "ΚΑΤΕ" next to kate. Both break D-005's promise that nobody can impersonate another user through a display name.
Rationale for the per-server scope: a server can only check its own namespace. Lookalikes on other servers are handled by showing the domain (§4.4, D-031).
5.4 Reserved local parts
The table below is the initial reserved local parts registry. This document owns it; later versions of this specification may add entries. A server MUST treat every entry as reserved in its namespace. Matching is by prepared local part and by collision key (§5.3), so confusable spellings are reserved too.
| Local part | Class | Why |
|---|---|---|
me |
P | Used by the protocol as the account-level context reference and in /v1/me paths (00 §7.3, §7.4). |
everyone, here, all |
P | Mention keywords (11) must never name a real member. |
system, server, community, sloppyv |
P | Names of protocol entities and the URI scheme; system messages must never be confused with a member. |
null, undefined, none, unknown, nobody, anonymous, deleted, deleteduser |
P | Placeholder values in software, and the label clients use for deleted accounts. |
admin, administrator, administrators, root, sysadmin, superuser, owner, operator, staff, team, official |
A | Authority names. |
moderator, moderators, mod, mods |
A | Moderation authority (10). |
support, help, helpdesk, security, abuse, postmaster, hostmaster, webmaster, noreply, info, contact, billing, legal, privacy, status, announcements, news, notifications, sloppyvoice |
A | Service and contact names people trust by default. |
general, lobby, rules, welcome, chat, voice, music, gaming, events |
C | Common channel names, kept free for the community's own channels. |
- Class P (protocol): nobody may register these as a user, bot or channel, not even the operator.
- Class A (administrative): only the operator may assign these, to a user or bot it runs, through server tooling outside the protocol (21 §11.2). Sign-up and bot creation by anyone else fail with
address.reserved. A member holdingmanage_channelsMAY create a channel with a class A name, because channels belong to the community, which the operator runs (D-003):#announcements,#helpand#moderatorsare ordinary channel names. Each assignment is recorded in the audit log asaddress_assignedwith actor kindoperator(10 §11.3). - Class C (channel names): sign-up and bot creation fail with
address.reserved. A member holdingmanage_channelsMAY create a channel with the name. This stops a person who signs up early from taking a name such asgeneralbefore the community creates that channel.
Lookups answer every reserved name that no entry holds with 404, available: false and reason: "reserved", because available is about registering a user (§9.4).
Server-local reservations. A server MAY add its own class P, A or C entries, for example its brand names, the words for "administrator" in its community's languages (администратор, 管理员), or the usual channel names in those languages. It SHOULD do so for the main languages of its community. Server-local entries behave exactly like registry entries on that server. Adding one never affects an existing user, bot, channel, renamed or quarantined entry with that local part or a colliding key: the reservation applies from the moment that entry is removed.
End of a holding. When a user, bot or channel entry whose local part is in the registry or in the server-local reservations is deleted, it goes through quarantine as usual (§5.7), and then reverts to a reserved entry rather than becoming free.
Proposed decision (AD-13): Reserved local parts come in three classes: P (nobody may hold them), A (only operator-run users and bots, while any member with manage_channels may use them for channels) and C (common channel names, refused for users and bots, free for channels). A reserved name returns to reserved when a holder's quarantine ends. Rationale: names such as #announcements, #help and #moderators are ordinary channel names in a community the operator runs, so blocking them for channels only confuses moderators; and because users and channels share one namespace (D-020), common channel names need protecting from early sign-ups.
Registration policy. A server MAY also refuse names by local policy (a list of offensive words, its minimum length). Such refusals use address.not_allowed (403) with data.reason too_short or blocked, not address.reserved.
5.5 Who may create entries
| Entry kind | Created by | Owning document |
|---|---|---|
user |
Sign-up at the home server, by the person choosing the address (M2) | 05 |
bot |
A user holding manage_bots |
05 |
channel |
A member holding manage_channels |
09 |
reserved |
This registry, or the operator for server-local entries | 01 |
renamed |
The server, when a channel is renamed (§5.6) | 01, 09 |
quarantined |
The server, on deletion (§5.7) | 01 |
5.6 Account local parts never change; channels can be renamed
Users and bots. In v1 the local part of a user or bot account never changes. A display name may change at any time within the linkage rule (§6), so people can change capitalization and spacing. Choosing a different address means creating a new account.
Channels. A channel's local part may change through a rename (09 §6.3). Channel state is keyed by the channel's ctx, not by its address (09), and a channel address is bound into no identity object, so a rename keeps every membership, role, message and MLS group. When a channel is renamed from local part O to local part N:
Nmust pass every check that creating a channel with it would pass (§5.2 to §5.4, §6.3). The channel's collision keys underOdon't count against it.- In the same atomic step, the channel's entry moves to
N, andObecomes arenamedentry with the channel'sctx,renamedAtand the collision keys the channel had underO. - Rename reservation. For 90 days after
renamedAt,Ois reserved for that channel: no other channel, user or bot may takeOor a name colliding with its keys, and the channel may be renamed back toO, which replaces therenamedentry. The address lookup ofOanswers 200 with the channel's AddressInfo, whoseaddressis the channel's current address (§9.3), so old links and typed names still lead to the channel. - When the reservation ends, the
renamedentry becomesquarantinedwithformerKind: "channel"anddeletedAt=renamedAt, and §5.7 applies from then on, as for a deleted channel. Renaming the channel back toOis then a new channel name like any other.
The 90-day reservation matches the period during which clients follow a channel's old address in their secure-state pins (09 §13.4, trigger T6).
Proposed decision (AD-6): In v1 the local part of a user or bot never changes; only the display name's capitalization and spacing can. A channel's local part may change through a rename (09 §6.3); the old local part is reserved for that channel for 90 days, during which its lookup leads to the renamed channel, and is then quarantined as for a deleted channel. Rationale: an account's canonical address is bound into IdentityCertificates, pins, safety numbers, DM context IDs, MLS credentials, memberships, bans and links (§7.6); renaming an account would silently break all of them, and for a secure account would amount to an identity reset. A channel is keyed by its ctx everywhere that matters, so renaming one is safe, and the reservation keeps old links working and stops another channel taking over the old address while clients still remember it.
5.7 Deleted-address quarantine
When a user or bot account is deleted (05, which also sends account.deleted), or a channel is deleted (09), its namespace entry becomes quarantined at once, with deletedAt set and formerKind recording what it was. The entry keeps its collision keys.
| Former kind | Quarantine | Reuse during quarantine |
|---|---|---|
user, bot |
365 days | None, except an early release by the operator (21 §11.2). The operator SHOULD release a name early only to the same person, for example someone who deleted their account by mistake and signs in again with the same OIDC identity. Even then the registration creates a new account with a new incarnation, and nothing of the deleted account comes back: deletion has no grace period (D-091, 05 §16.1), and a reused address is a new principal (below). |
channel |
365 days against registration as a user or bot | A member holding manage_channels in the same community MAY create a new channel with the same local part at any time. The new channel replaces the quarantined entry, because local is unique in the table; the new channel is a new context with a new ctx. |
A renamed channel's old local part enters this quarantine when its rename reservation ends (§5.6), with the channel row's rules.
During quarantine:
GET {base}/v1/addresses/{local}answers 410address.deleted(§9.4);- registration as a user or bot fails with
address.quarantined; - the entry's collision keys still block confusable names.
When the quarantine ends, the server removes the entry and its collision keys. The local part then becomes free, unless it is in the reserved registry or the server-local reservations, in which case it reverts to a reserved entry (§5.4).
An early release MUST be recorded in the audit log as address_released with actor kind operator (10 §11.3).
A reused address is a new principal. An account or channel created on a local part that was used before is new. A server MUST NOT carry anything over from the deleted account to a later account with the same address, whether it learns of the change from account.deleted (05) or from the later account's different incarnation (06 §11.6, D-086): no community or channel membership, no role grant, no DM participation (12 §6.4 closes the old 1:1 DM and reopens it with no access to earlier history), no notification record. Bans are the exception: ban records stay keyed by the canonical address (10), so a ban against a deleted address applies to any later holder of that address (05 §22.8), and the community's moderators can lift it. Clients keep their identity pins (07) for a deleted address. A later account at that address has a new incarnation (below), so a pin produces W2's new-account wording ("This is a new account using …", 07 §16.8) rather than a key-change warning, no verification state carries over, and contacts without pins see the same wording in their 1:1 DM.
Incarnations (D-086). Every account has an immutable incarnation value, inc (05 §11.1), carried in HomeAssertions (06 §4.3), IdentityStates (07 §7.1) and the public profile (05 §17.1). A local part registered again after its quarantine, or after an early release, always gets a new inc. Servers key their records about an account on (canonical address, inc) and treat a changed inc exactly as account.deleted for the earlier account followed by a new account (06 §11.6). So a server that missed account.deleted (it was outside the account's audiences, or every retry failed) still carries nothing over: it recognises the later holder the first time it sees the new inc. Bans stay keyed by address, as above (10 §9.2). A DM reopened for the reused address starts as a new conversation, and the contact sees W2's new-account wording at that point (12 §6.4, 07 §16.8); no separate timeline marker is needed.
Rationale: canonical addresses are the key for identity pins (07), safety numbers (07), the 1:1 DM context ID and hosting rule (12, D-048), memberships, bans and role grants on other servers (09, 10), and old links. A quarantine of one year lets every cache, federation retry (24 h, 06) and pin observer see the deletion before anyone else can hold the address, and gives the deleted person's contacts time to stop sending to it. Allowing a community to recreate one of its own channel names at once is safe because the same authority controls both channels, and the new channel is a new context: clients that pinned the old channel as secure settle their pin through its tombstone (09 §6.4, §13.5), so a re-created channel is never mistaken for the old one. Going back from a secure channel to an insecure one still needs a new channel with a new name (D-018, 09 §12).
Proposed decision (AD-7): Deleted user and bot local parts are quarantined for 365 days; deleted channel local parts are quarantined for 365 days against user and bot registration but can be reused as channels at once. At the end of quarantine, a reserved name reverts to reserved.
5.8 Unicode version upgrades on a server
When a server moves its Unicode data to a newer version N:
- Existing entries stay. No user, bot, channel or quarantined entry is removed, renamed or disabled because it would fail the profile under N. Such entries are grandfathered: they keep resolving and keep working.
- Re-keying. The server MUST compute the collision keys of every entry under N and add them to the entry's keys. It SHOULD keep the keys computed under earlier versions. It updates
uv. - New collisions between existing entries that appear under N are logged for the admin. They MUST NOT cause either entry to be removed or changed.
- New registrations and display-name changes are checked against every key in the table, under version N.
- Display names stay. Stored display names aren't re-checked or cleared. Their linkage uses
linkPrepare(§6.1), which doesn't depend on the data that changes between versions, so a display name that was linked under the old version is still linked under N. A grandfathered entry can still change its display name, because setting one also useslinkPrepare(§6.3).
Clients don't upgrade anything: they apply the receiver check (§6.4) under whatever version they have, and never re-validate canonical addresses against the full profile (§7.5).
Proposed decision (AD-12): The base Unicode version is 16.0.0. A server that upgrades its Unicode data never removes or renames existing entries (they are grandfathered), adds the new collision keys alongside the old ones, and checks only new registrations and display-name changes under the new version. Rationale: an address is an identity; it must never stop working because a server or client updated a library.
6. Display names
6.1 The linkage rule
A display name is the local part with spaces and capitalization added (D-005). For scripts without case it is the local part with spaces added. The display name of publiclobby might be "Public Lobby", "PUBLIC LOBBY" or "PublicLobby", but never "Lobby" or "Public Lobby!".
Formally, a display name N is linked to a local part L exactly when linkPrepare(N) = L, where linkPrepare is steps 2 to 9 of §3.2. Because linkPrepare removes white space first, then width-maps, case-folds and NFC-normalizes, this says: removing the white space from N and applying the same preparation gives back L exactly (D-031). For a local part L that passes the full profile, this is the same as prepareLocal(N) = L, because steps 10 to 13 of prepareLocal would then run on L itself. linkPrepare is used instead so that the result doesn't depend on Identifier_Type and script data, which change between Unicode versions (§5.8, §6.4).
Consequences:
- A display name can't add, remove or change any letter, digit or mark. It can't add punctuation, emoji or invisible characters (they make
linkPreparefail or change the result). - A display name has the same script set as its local part, so it can't mix scripts the local part doesn't have.
- Typing a display name works as an address:
canonicalize("Public Lobby@sloppyvoice.com")givespubliclobby@sloppyvoice.com(§7.2). - Nobody can impersonate another user on the same server through a display name: a name that looks like "Alice" is linked either to the local part
aliceitself, or to a local part whose display name would have the same collision key asalice, which the server refuses (§5.3). Users of other servers are told apart by their domain (§4.4).
Accented letters must be kept in the display name exactly as in the local part. A Greek local part σοφόσπαπάσ accepts "Σοφός Παπάς" and "ΣΟΦΌΣ ΠΑΠΆΣ", but not the accentless capitals "ΣΟΦΟΣ ΠΑΠΑΣ".
6.2 Display-name syntax
A stored display name MUST meet all of these rules.
display-name = dn-word *( %x20 dn-word ) ; single U+0020 spaces only
dn-word = 1*dn-char
dn-char = <any Unicode scalar value that isn't White_Space>- It is linked to the entry's local part (§6.1).
- Its only white space is U+0020 SPACE, never at the start or the end, and never two in a row.
- It is in NFC.
- It is at most 128 octets of UTF-8.
There is no separate limit on the number of spaces: rule 2 allows at most one space between any two non-space characters.
6.3 Setting a display name
A display name is set by the account's owner (05) for users and bots, and by members holding manage_channels (09) for channels. Every endpoint that sets or changes a display name, including sign-up, bot creation and the profile update of 05 and channel creation and PATCH of 09, MUST process a proposed display name P as follows, and MUST report failures only with the codes named here.
- Replace every run of
White_Spacecode points in P with one U+0020, and remove leading and trailing spaces. - Apply the width mapping of RFC 8265 §3.3.1 rule 1, then NFC.
- Check that the result meets §6.2. If it isn't linked to the local part (
linkPreparefails, or gives a different result), fail withaddress.display_name_mismatch(400) anddata.reason: "not_linked". If it is longer than 128 octets, fail withaddress.display_name_mismatchanddata.reason: "too_long". (Steps 1 and 2 guarantee the other rules of §6.2.) - Run the collision check of §5.3 on its collision key, even when only spacing or capitalization changes. On a collision, fail with
address.too_similaranddata.field: "name", except at registration (§5.3). - Store the result.
An entry always has a display name. If none is given, or a proposed one is cleared, the stored display name is the prepared local part itself, which always links (§6.1) and never collides (§5.3). An update that proposes an empty string, or white space only, clears the display name in this sense (05 §11.6); it isn't an error.
Sign-up (05, M2) SHOULD collect the display name first and derive the local part from it with prepareLocal, so a person types "Saxon Jones" once and gets the address saxonjones@sloppyvoice.com with the display name "Saxon Jones" (00 §8 F1).
6.4 The receiver check
Display names come from servers, and a server can be wrong or malicious. Every receiver MUST check a display name before showing it.
Algorithm checkDisplayName(name, address) returns either a failure or the string to show:
- Let L be the local part of
address(the part before the last@), unchanged. - Normalize. Map every
White_Spacecode point innameto U+0020, replace every run of U+0020 with one, remove leading and trailing U+0020, and apply NFC. Call the result S. - Length. If S is empty or longer than 128 octets of UTF-8, the check fails.
- Linkage. Compute
linkPrepare(S)(§3.2 steps 2 to 9). If it fails, the check fails. - The check passes exactly when the result equals L octet for octet. The receiver then shows S, never the unnormalized
name.
Rules:
- A client MUST run the check on every display name it renders, whatever its source: AddressRef
namemembers (§6.7), address lookups (§9), profiles (05), channel objects (09), member lists, events, notification records (19). - A server that stores or forwards a display name it received from another server (for example a hosting server showing a remote member's name) MUST run the check first, MUST drop a name that fails, and MUST store or forward S rather than the name it received.
- The check deliberately leaves out steps 10 to 13 of
prepareLocal(repertoire, shape, script and length rules). The server that registered L ran them, and running them again under a different Unicode version would make display names vanish on newer devices with no security gain, because L itself contains the same characters (AD-8). The check doesn't need the confusable data, the collision table or the network. - Step 2 is what stops a non-conforming server from padding a name with line breaks or hundreds of spaces to push the domain out of view (§4.4).
6.5 Fallback
If the check fails, the receiver MUST NOT show the bad name anywhere, not even in a tooltip, a log shown to the person, or a notification. It falls back to the prepared local part, exactly as on the wire, and uses it as the display-local form. It MAY record the failure in local diagnostics, and MUST NOT show a warning about it: a bad display name is not in the closed warning catalogue (D-055).
Rationale: the fallback is safe because the local part is the identity. The worst a malicious server achieves is that a lowercase name is shown.
6.6 Display-local form and the display form of an address
- The display-local form of an address is its display name with all
White_Spaceremoved, if the display name passes the receiver check; otherwise the prepared local part. For "Public Lobby" it isPublicLobby; for "Σοφός Παπάς" it isΣοφόςΠαπάς. - The display form of an address is the display-local form,
@, and the displayed domain (the canonical domain, as a U-label only under §4.3).
The display-local form always prepares back to the local part, so a display form that a person copies and pastes elsewhere canonicalizes to the same address. Clients SHOULD show the display form wherever an address is shown, and the display name alone wherever §4.4 allows the domain to be left out.
6.7 AddressRef: carrying a display name with an address
In JSON, an address that may be shown with its display name is carried as an AddressRef object. Documents that embed one (for example the sender member of message events, 11, shown in 00 §7.4) MAY add members such as did (11's Sender of kind webhook carries no addr and is therefore not an AddressRef).
| Member | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
addr |
string | Yes | The address | Canonical (§7). |
name |
string | No | The display name, as the owning server last stated it. Owning servers always include it; a receiver that finds it absent or null shows the prepared local part (§6.5). |
§6.2; receivers apply §6.4. |
{ "addr": "publiclobby@sloppyvoice.com", "name": "Public Lobby" }Where an address appears without a display name (for example in mentions arrays, signed objects or MLS structures), it is a plain canonical string.
Receivers MUST NOT take a display name from any other source than the AddressRef, profile or object that the owning server publishes for that address. In particular, a client MUST NOT show a name that a message's sender wrote about themselves in message content as if it were their display name.
6.8 Right-to-left text and bidi presentation
Local parts and display names may be written in right-to-left scripts (Arabic, Hebrew, Syriac, Thaana, N'Ko, Adlam). The local part always satisfies the Bidi Rule (§3.2 step 7), and neither local parts nor stored display names can contain bidi controls (§3.3). Presentation must still keep the text from reordering its surroundings.
- A client MUST render each address as a left-to-right unit: the whole display form in a left-to-right isolate (U+2066 LRI … U+2069 PDI, or the equivalent markup, such as an element with
dir="ltr"), with the display-local form inside it in a first-strong isolate (U+2068 FSI … U+2069 PDI, or<bdi>/dir="auto"). The address then reads, in visual order,مريم@example.com, whatever the direction of the surrounding paragraph. - A client MUST render each display name shown alone, or embedded in other text (for example "Message from مريم"), in a first-strong isolate.
- Isolation characters are presentation only. Text a client puts on the clipboard for an address MUST NOT contain them, and lenient parsing removes them anyway (§8).
- Clients MUST NOT apply bidi mirroring or reordering to the
@sign or the domain beyond what the Unicode Bidirectional Algorithm does inside the isolates.
20 owns the remaining presentation rules.
6.9 Display-name examples
§13.2 has the full vectors. In short:
| Local part | Display name | Result |
|---|---|---|
publiclobby |
Public Lobby | passes |
publiclobby |
Public Lobby! | fails: ! changes the prepared result |
saxonjones |
SAXON JONES | passes |
zoë |
Zoe + U+0308 (decomposed) | passes: NFC |
σοφόσπαπάσ |
ΣΟΦΌΣ ΠΑΠΆΣ | passes: σ and ς fold together |
σοφόσπαπάσ |
ΣΟΦΟΣ ΠΑΠΑΣ | fails: accents missing |
иванпетров |
Ivan Petrov | fails: different script |
田中太郎 |
田中 太郎 | passes |
مريم |
مريم + U+200F RIGHT-TO-LEFT MARK | fails: invisible character |
istanbul |
İstanbul | passes: U+0130 maps to I |
ışık |
Işık | fails: capital I folds to dotted i (§3.1) |
saxonjones |
Saxon, a line feed, Jones | passes, and is shown as "Saxon Jones" |
7. Canonical addresses and canonicalize()
7.1 Definition
A canonical address is L "@" C, where L is a prepared local part (§3) and C is the canonicalDomain member of the ServerMetadata (02) of the server that the address's domain resolves to, as a lowercase A-label. Every stored, signed, compared or hashed address uses this form (D-032, 00 §2.1).
7.2 The canonicalize() algorithm
canonicalize(input, defaultDomain) is the one function that turns input form into wire form (00 §6 HP-8). Every client MUST use it for every address that comes from a person or a link, and every server MUST use it whenever it accepts input form (for example in /v1/resolve-assisted flows, 02, or admin tooling).
Inputs.
| Input | Meaning |
|---|---|
input |
A string in input form: typed or pasted text, a sloppyv URI, or an HTTPS share link. |
defaultDomain |
Optional. The canonical domain to use when the input has no domain, for example the viewer's home server in a "New message" box, or the community the viewer is looking at in its member search. |
Steps.
Lenient parse. Parse
inputwith §8. The result is one of:- an address target: a raw local part and a raw domain;
- a community target: a raw domain only;
- a link that needs fetching (an HTTPS URL, §11.4), which the caller resolves to a
sloppyvURI first and then passes back to step 1; - a failure (
address.invalid,address.invalid_link). Links can also carry an invite code; it is returned unchanged with the result.
Local part. For an address target, compute
L = prepareLocal(raw local part)(§3.2).- If it fails with
empty,too_long,contains_atorinvalid_utf8, returnaddress.invalid_local_partwith that reason. - If it fails with any other reason, the failure may come from the implementation's Unicode data rather than from the name: the name may use characters newer than the implementation's data, or be a grandfathered name that newer data rejects (§5.8). Compute
M = minimalPrepare(raw local part). If M fails §7.5 checks 2 to 4 (applied to M as a local part), return the original failure. Otherwise keep M and the original failure, and mark the local part unconfirmed; step 6 settles it.
- If it fails with
Domain. Compute
D = prepareDomain(raw domain)(§4.1). If the input had no domain, usedefaultDomain; if there is none, returnaddress.invalidwithdata.reason: "missing_domain". On failure, returnaddress.invalid_domain.Discovery. Resolve D with the algorithm of 02 (native clients and servers query
_sloppyv.DTXT with the.well-knownfallback; web clients use their home server's/v1/resolveor DNS-over-HTTPS and then check the domain list themselves, D-029). The result is a base URL, the server's ServerMetadata and a delegation evidence level (D-030). Discovery confirms that D is in the metadata'sdomains(D-002). On failure, return thediscovery.*error that 02 defines, for examplediscovery.domain_not_served.Canonical domain. Let
Cbe thecanonicalDomainof the discovery result. 02's resolution has already checked that C is a well-formed lowercase A-label listed indomains(02 §7.4), and that C resolves back to the same base URL (02 §5.3). A caller MUST NOT use acanonicalDomainthat hasn't passed those checks, and MUST NOT run discovery in a way that skips them: otherwise a server reached through a domain its operator controls could claim someone else's canonical domain, andbob@evil.examplewould canonicalize to, and be shown as,bob@sloppyvoice.com. A failure is the error 02 §5.3 gives:discovery.canonical_mismatchwhen C resolves to a different base URL, otherwise C's own resolution error unchanged (which may be temporary, such asdiscovery.dns_failureordiscovery.server_unreachable, ordiscovery.peer_suspended).Confirmation (only for an unconfirmed local part, step 2). Call the address lookup (§9) at the base URL for M.
- 200: the response's
addressMUST have C as its domain and M, octet for octet, as its local part; then L = M. Otherwise discard the response and return the original failure of step 2. - 404, or 400
address.invalid_local_part: return the original failure of step 2. - 410: return the
address.deletederror. - Any other failure (network, 429, 5xx): return that error; the caller may retry later.
A client MAY show the original failure reason as a hint while a person is still typing, before confirmation completes.
- 200: the response's
Result. Return:
| Member | Meaning |
|---|---|
address |
L "@" C for an address target; absent for a community target. |
domain |
C. |
local |
L, or absent for a community target. |
baseUrl |
The server's base URL. |
viaAlias |
true if D ≠ C. For diagnostics only; MUST NOT be shown (§7.8). |
evidence |
The delegation evidence of step 4 (02). |
invite |
The invite code from a link, if any (§10). |
canonicalize doesn't check that anything exists at the address (apart from the confirmation of step 6). Callers that need to know what an address names call the address lookup (§9) at baseUrl, and from then on use the address member of its response. It differs from the address of canonicalize only for the old address of a renamed channel (§5.6).
Rationale for steps 2 and 6: an address must never stop working because one party's Unicode data is older or newer than another's (§5.8, AD-12). The owning server is the authority on what it registered, so a client asks it before declaring a name invalid, and accepts only the exact result of the version-stable mapping, so a server can't redirect one name to another.
Properties.
canonicalizeis idempotent: canonicalizing a canonical address gives the same address.- It is deterministic given the same discovery result.
- The typed domain D is used only for discovery. It is never returned as part of an address, stored or shown.
Rationale: one function in one place makes every input path (typing, links, search, invites) produce the same identity, so pins, DM IDs and bans never split across aliases or spellings.
7.3 Failure modes
| Stage | Failure | Error | Retry? |
|---|---|---|---|
| Parse | Not an address or link | address.invalid |
No |
| Parse | Malformed sloppyv URI or share link |
address.invalid_link |
No |
| Local part | Fails the profile, and the owning server doesn't confirm it (step 6) | address.invalid_local_part |
No |
| Domain | Fails §4.1 | address.invalid_domain |
No |
| Discovery | No record, unreachable, domain not in domains, pinning conflict, bad metadata |
discovery.* (02) |
As 02 says |
| Canonical domain | The metadata's canonicalDomain doesn't resolve back to the same server, or can't be resolved |
discovery.canonical_mismatch, or C's resolution error (02 §5.3) |
As 02 says (canonical_mismatch: no) |
| Confirmation | The address was deleted and is in quarantine | address.deleted |
No |
A client that is offline or whose discovery fails MUST NOT fall back to using the typed domain as the canonical domain. It reports that it can't reach the server (20) and may retry later.
7.4 Caching and offline behaviour
canonicalize has no cache of its own. It relies entirely on the discovery cache of 02 (TTL clamped to between 300 s and 24 h, stale use for up to 7 days while a server is unreachable, negative caching). Consequences:
- Clients MUST NOT keep a separate table from typed domains to canonical domains. Alias additions and removals then take effect for
canonicalizeexactly when 02's cache does. - A canonical address, once obtained, is final. Clients store it (in contacts, the DM index, drafts, pins) and MUST NOT canonicalize it again or rewrite it later, even if the server's metadata changes.
- When 02 serves a stale-but-usable metadata entry,
canonicalizeuses itscanonicalDomain.
7.5 Checking that an address is canonical
Any party that receives an address in a place where it MUST be canonical (§7.6) checks it with isCanonical(addr, expectedDomain?):
Syntactic check (always, no network):
- The string is valid UTF-8, contains exactly one
@, and matchescanonical-address(§2.2). - The local part is 1 to 64 octets and is in NFC.
- The local part is unchanged by
minimalPrepare(§3.2): removing white space, width mapping, mapping U+0130 to U+0049, case folding and NFC give back the same string. - The local part contains no
White_Space, noDefault_Ignorable_Code_Point, and no code point of General_Category Cc, Cf, Cs, Co or Zl, Zp, Zs. - The domain is at most 253 octets, has at least two labels, contains only
[0-9a-z.-], has no trailing dot, and its last label isn't all digits. A label starting withxn--SHOULD be checked to decode to a valid U-label.
Semantic check (needs the canonical domain of the address's server, from 02):
- The domain equals that server's
canonicalDomain. IfexpectedDomainis given (for example: thesubof an IdentityState must be at the domain named in itsiss, andissmust be the canonical domain of the server whose key signed it, 07), the domain equalsexpectedDomain.
When check 6 runs:
- Signed and cryptographic objects (the first table of §7.6): the verifier MUST run checks 1 to 6 on every address and domain in them before accepting the object. If it doesn't yet know the canonical domain of an address's server, it resolves the address's domain through 02 (02's cache may answer). Verifiers usually know it already, because they resolved that server to obtain its keys or IdentityState. This is how 00 §6 HP-8's rule that a verifier rejects any signed object naming an alias is met. Exception for MLS
sv_devicecredentials: the addresses inside are checked locally with checks 1 to 5 (07 §10.4). Their check 6 is met through the verified IdentityState whoseidcthe credential must match byte for byte (07 §13.3 C4, §14.2), because verifying that state resolves itsiss. A channel member client's silent credential check runs check 6 only when it already knows the canonical domain (07 §13.6, D-035). - Request bodies: a server MUST run checks 1 to 6 on every address in a request body before it stores the address or acts on it, resolving the domain through 02 in the same way. Exception: for
mentionsarrays (11 §4.4), the hosting server runs checks 1 to 5, and instead of resolving domains for check 6 it keeps only addresses of accounts it knows to have access to the context, dropping the rest without refusing the request. - Everywhere else (for example addresses in events a client receives from a server): checks 1 to 5 always, and check 6 whenever the receiver knows the canonical domain.
No-contact flows. Where 02 §5.8 forbids contacting a server (a message request before Accept, D-049, 12 §10.4, 07 §14.7), a verifier MUST NOT resolve that server's domain itself. It runs checks 1 to 5, and check 6 against a canonical domain it already holds or one its home server provides (the relayed server keys of 12 §10.1, or GET {home}/v1/resolve, 02 §5.8). Such a result is provisional: it allows display and 07 §14.7's display-only checks, never a pin. The full check 6 runs once contact is allowed (12 §10.5).
If discovery of the address's domain fails, the result is the discovery.* error of 02, not address.non_canonical: the address may be canonical, but nothing can be said about it yet. A verifier rejects the signed object, and a server rejects the request, with that error. Exception: when the failing domain is the iss of a HomeAssertion or S2S request token, the verifier answers 06's 503 federation.issuer_unreachable (06 §6.3 V9, §8.5 R10), carrying the 02 code in data.discovery.
If any check fails, the address isn't canonical: the verifier rejects the object with address.non_canonical (§12), with data.reason one of malformed, local_not_prepared, domain_not_alabel, alias_domain.
A verifier MUST NOT run the full profile of §3 on an address it received (for example to check script or Identifier_Type rules), and MUST NOT reject an address because it would fail the profile under the verifier's Unicode version.
Proposed decision (AD-8): Receivers check only the version-stable properties of a canonical address (§7.5 checks 1 to 6), and check display names with linkPrepare only (§6.4); only the server that registers a local part runs the full profile. Rationale: validity and confusable data change between Unicode versions, but case folding and NFC don't. If verifiers ran the full profile, an address registered under one Unicode version could be rejected by a peer running another, and the same IdentityCertificate would verify on one device and fail on the next.
7.6 Fields that MUST be canonical
The following MUST contain canonical addresses or canonical domains, and nothing else (D-032, 00 §6 HP-8). A producer MUST NOT put an alias domain, a non-prepared local part or a display form in them. A verifier MUST reject a signed object that names an alias or a non-prepared local part in any of them, with address.non_canonical.
Signed and cryptographic objects
| Field | Owner |
|---|---|
IdentityCertificate sub |
07 |
DeviceCertificate sub |
07 |
IdentityState sub (and iss, a canonical domain) |
07 |
HomeAssertion iss, sub and aud |
06 |
DeviceProof aud |
06 |
S2S request token (sv-s2s+jwt) iss and aud |
06 |
RelayTicket (sv-relay+jwt) iss (a canonical domain) and sub (a canonical address); its aud is a relay URL, not an address |
15 |
KeyRotation issuer, and the <canonical-domain> part of every server key ID |
02 |
MLS sv_device credentials (the addresses inside) |
07, 13 |
MLS group_id (its hosting canonical domain) |
13 |
sv_participants entries |
13 |
Identifiers and derived values
| Field | Owner |
|---|---|
DM context IDs (dm: hash input) and the hosting-rule sort (D-048) |
12 |
| Identity pins and verification records | 07, 08 |
| Safety numbers and QR verification payloads (their address inputs) | 07 |
Records
| Field | Owner |
|---|---|
Membership, ban, role-grant and audit-log records (the account addresses in them; channels in them are named by ctx, so a channel rename, §5.6, changes none of them) (provisional unresolved targets: §7.7) |
09, 10 |
Every S2S event (identity.changed, device.revoked, account.deleted, dm.request, notify.event, report.forwarded and any later ones) |
05, 06, 07, 10, 12, 19 |
| Notification records | 19 |
| DM index entries and message requests | 12 |
Every other JSON member that holds an address on the client-server and federation planes, including the addr member of every AddressRef (§6.7), mentions arrays (11), invite and report records, and every request body sent to a server (00 §7.6).
A server that receives a non-canonical address in a request body (§7.5, including check 6, with its exception for mentions) MUST reject the request with 400 address.non_canonical, unless §7.7 accepts input form in that member, with data.field (a JSON Pointer, RFC 6901, to the member) and, if the server knows it, data.canonical. It MUST NOT silently rewrite request bodies.
Rationale: rejecting rather than rewriting catches client bugs early. Clients always have the canonical form, because they ran canonicalize before sending.
7.7 Where aliases and other input forms are accepted
Input form, including alias domains, non-prepared local parts and display forms, is accepted only in:
| Place | Who rewrites it |
|---|---|
| Typed or pasted text | The client, through canonicalize |
sloppyv URIs (§10) and HTTPS share links (§11) |
The client, through canonicalize |
Discovery lookups (02): any domain in domains may be resolved |
02 returns the metadata; canonicalize takes its canonicalDomain |
API path parameters on the server that owns the entry, for example {local} in /v1/addresses/{local} (§9), /v1/users/{local}/profile (05) and /v1/users/{local}/identity (07) |
The owning server, with the path-parameter processing of §9.2: it looks up minimalPrepare of the parameter, so grandfathered names keep working (§5.8), and answers for the entry it finds. Every address in its response is canonical. For {addr} path parameters that name an address on another server (09, 10, 15), the server rewrites only an address whose domain is one of its own alias domains; any other non-canonical address fails with 400 address.non_canonical. |
Moderation and policy targets: the address or domain of POST /v1/bans (10 §9.6), federation block and allowlist domains (06 §12.4), and the {host} of per-community notification settings (19 §7.2) |
The receiving server, through canonicalize() or 02's resolution |
Nowhere else.
When discovery fails for a moderation or policy target (the last row above), the owning document MAY store it provisionally in prepared form (prepared local part, lowercase A-label domain), flagged as unresolved, re-resolve it at least every 24 h and rewrite it when resolution succeeds. These provisional values are the only non-canonical addresses or domains a stored record may hold; they MUST NOT appear in signed objects, S2S events or identity bindings.
7.8 The typed alias is never shown back
- Clients MUST show the canonical domain after resolution, never the domain the person typed, and never
viaAlias(00 §6 HP-8). - A client that canonicalizes an alias link MUST NOT tell the person they used an alias; it simply shows the canonical display form.
- The same holds for local parts: a person who types
Saxon Jones@chat.sloppyvoice.comseesSaxonJones@sloppyvoice.com(the display form, using the owner's display name), not what they typed.
7.9 Alias domains and the canonical domain over time
- Changing the canonical domain is unsupported in v1 (D-032), because every identity at the server is bound to it. A server MUST NOT change
canonicalDomain(02). If a peer nevertheless sees a domain it knew as canonical become an alias of another canonical domain, it MUST NOT rewrite stored addresses: signed objects naming the old canonical domain now fail §7.5 check 6, and the affected accounts are unreachable until the operator restores the old canonical domain. Clients show that the server can't be reached (20). - Adding an alias domain needs only the DNS delegation and an entry in
domains(02). Old addresses don't change. Links and typed addresses using the new alias work as soon as discovery caches pick it up. - Removing an alias domain means removing it from
domainsand from DNS. Nothing stored changes, because only canonical forms are ever stored. Old, unresolved links and typed addresses using the removed alias stop working:canonicalizefails withdiscovery.domain_not_servedor anotherdiscovery.*error, and the client says the link no longer works (20). Links that a client had already resolved keep working, because the client stored the canonical form. - Before removing an alias domain, operators SHOULD stop publishing links that use it, and keep it registered, delegated and listed in
domainsfor at least 365 days after the last such link was generated. Then they remove it in the order 02 gives (the discovery record first, then thedomainsentry). - A removed alias domain can later be registered by someone else and delegated to a different server. Old links using it then lead to that server. After removal, operators SHOULD keep the domain registration itself, without any Sloppy Voice delegation, so that nobody else can take it over. Generating links only with the canonical domain (§10.3, §11.2) keeps alias links rare.
7.10 Comparing, hashing and sorting
- Comparison: two addresses are equal exactly when their canonical forms are octet-for-octet identical (§3.7).
- Hashing: a hash or MAC input that includes an address uses the UTF-8 octets of the canonical address, with no terminator, length prefix or normalization other than what the owning document's encoding adds (for example the
dm:ID of 12). - Protocol sorting: wherever the protocol orders addresses (the 1:1 DM hosting rule of D-048 and 12, "the first insecure participant in canonical-address order" for group DMs, and any other ordering a document defines), it compares the UTF-8 octets of the canonical addresses as unsigned bytes, lexicographically; a proper prefix sorts first. This equals ordering by Unicode code point. It is not locale-aware. For example
alice2@a.comsorts beforealice@a.com, because the digit2(0x32) is less than@(0x40). - User-interface sorting (member lists, contact lists) SHOULD use the Unicode Collation Algorithm for the viewer's locale on the display name or display-local form. It MUST NOT be used for any protocol decision.
7.11 Unicode on the wire
- JSON payloads are UTF-8 I-JSON (00 §7.2). Canonical addresses and display names in JSON MUST be in NFC. Producers SHOULD write non-ASCII characters directly rather than as
\uescapes; receivers MUST accept both, and compare after decoding. - In JWS payloads (00 §7.13), addresses are canonical JSON strings like any other. Verifiers compare the decoded string.
- In MLS and other binary structures, an address is its canonical UTF-8 octets in the length-prefixed encoding the owning document defines (07, 13).
- In URIs, non-ASCII local parts are percent-encoded UTF-8 and domains are A-labels; in IRIs shown to people, they appear as Unicode (§10.6).
- Receivers MUST NOT apply NFC or any other normalization to a canonical address they receive in order to "fix" it. An address that isn't already canonical fails §7.5.
8. Lenient input parsing
8.1 Purpose
People copy addresses from e-mails, chat messages and web pages, type them with leading @ signs, wrap them in brackets, and type display names with spaces. parseInput accepts all of these without asking anything, and produces either a target for canonicalize or a clear failure.
8.2 Algorithm parseInput(T)
- Bound. If T has more than 1,024 code points, fail with
address.invalid(data.reason: "too_long"). - Trim. Remove leading and trailing code points that are
White_SpaceorDefault_Ignorable_Code_Point. If nothing is left, fail withaddress.invalid(data.reason: "empty"). - Links. If T starts (ASCII case-insensitively) with
sloppyv:orweb+sloppyv:, parse it as asloppyvURI (§10.4) and stop. If it starts withhttps://orhttp://, treat it as a possible share link (§11.4) and stop. - mailto. If T starts (ASCII case-insensitively) with
mailto:, remove that prefix, cut everything from the first?, and percent-decode the rest once as UTF-8 (on invalid UTF-8, fail withaddress.invalid,data.reason: "invalid_utf8"). - Invisible characters. Remove every
Default_Ignorable_Code_Pointanywhere in T (zero-width spaces, joiners, bidi marks and controls, soft hyphens, byte-order marks). - At signs. Replace U+FF20 FULLWIDTH COMMERCIAL AT and U+FE6B SMALL COMMERCIAL AT with
@. - Name and address. If T ends with
>and contains<, replace T with the text between the last<and the final>(the RFC 5322name <address>form). - Wrapping punctuation. Repeatedly remove one leading code point from the set
( [ { " ' “ ‘ « ‹ 「 『 (and one trailing code point from the set) ] } " ' ” ’ » › 」 』 ) . , ; : ! ? 。 、 ,, then trimWhite_Spaceagain, until neither end changes. (A trailing full stop is either sentence punctuation or the root of a fully qualified domain name; both are removed.) If nothing is left, fail withaddress.invalid(data.reason: "empty"). - Links, again. If T now starts with a link scheme, continue as step 3 says. This catches links pasted in angle brackets, in parentheses or followed by sentence punctuation, such as
<sloppyv://PublicLobby@sloppyvoice.com>or(https://sloppyvoice.com/j/PublicLobby).(vectors P22, P23). - Leading at sign. If T starts with
@, remove that one@. - Split. Count the
@signs in T.- More than one: fail with
address.invalid(data.reason: "multiple_at"). - Exactly one: the raw local part is everything before it and the raw domain everything after it. Remove trailing
White_Spacefrom the raw local part and leadingWhite_Spacefrom the raw domain (white space inside the local part is removed later byprepareLocal; white space inside the domain makesprepareDomainfail). The result is an address target. An empty raw local part fails withaddress.invalid_local_part(empty). - None: if T contains a full stop (U+002E, U+3002, U+FF0E or U+FF61) and no
White_Space, the result is a community target with T as the raw domain. Otherwise the result is an address target with T as the raw local part and no domain (canonicalizethen usesdefaultDomain).
- More than one: fail with
parseInput doesn't change letters, case or accents; that is prepareLocal's job. It never guesses: an input it can't place fails.
Rationale: local parts never contain a full stop, so a string without @ is unambiguous: a full stop means a domain, no full stop means a name. Removing invisible characters is safe because they can't occur in a valid address and only arrive by copy and paste.
8.3 Typing addresses
User-experience requirements for fields where people type addresses (20 owns the presentation):
- Address fields MUST accept text in any script through the platform's input methods. They MUST NOT use a keyboard type that limits input to ASCII (for example an e-mail keyboard on mobile), and SHOULD make
@easy to reach. - Address fields SHOULD turn off autocorrect, automatic capitalization, spell checking and "smart" punctuation.
- Clients MUST NOT canonicalize text that an input method is still composing; they wait for composition to end.
- While a person types, a client MAY show a live preview of the result (for example "This will open PublicLobby@sloppyvoice.com") once
canonicalizesucceeds, and SHOULD debounce network work (discovery and lookups) by at least 300 ms. - In sign-up (M2), the client SHOULD show the address that the typed display name produces ("Your address will be SaxonJones@sloppyvoice.com") and check availability live with §9 (00 §8 F1).
9. Address lookup: GET {base}/v1/addresses/{local}
9.1 Purpose
The address lookup says what a local part names on a server: a user (or bot) or a channel, with its canonical address and display name, and for a channel what a client needs before joining. Clients use it after canonicalize and before opening a profile or a channel (00 §8 F2, F3), and during sign-up to check availability (00 §8 F1).
9.2 Request
GET {base}/v1/addresses/{local}| Part | Rules |
|---|---|
| Method | GET. Servers MUST also accept HEAD. |
{local} |
One path segment: a local part in any input form (case, width and spacing variants, display-local form), percent-encoded as UTF-8 (RFC 3986). |
| Authentication | Optional. A request with no Authorization header is answered as for an anonymous requester. A request with a home-session, remote-session or bot token (03, 05, 06) is answered for that requester; an invalid or expired token fails as 03 says (core.unauthenticated, core.token_expired). |
| Body | None. |
| CORS | As every /v1/ endpoint (00 §7.3). |
Path parameter processing. The server MUST:
- percent-decode the segment exactly once; if the result isn't valid UTF-8, answer 400
address.invalid_local_partwithreason: "invalid_utf8"; - if the result contains
@(or U+FF20, U+FE6B), answer 400address.invalid_local_partwithreason: "contains_at"; - compute
M = minimalPrepareof the result (§3.2); if it fails withempty, answer 400address.invalid_local_partwithreason: "empty"; - look up M in its namespace (§5.1). If an entry has exactly the local part M, answer for that entry (§9.3, §9.4), even if M would fail the full profile under the server's current Unicode data: such an entry is grandfathered (§5.8);
- otherwise, apply
prepareLocal(§3.2) to the result of step 2; if it fails, answer 400address.invalid_local_partwith its reason; if it passes (its result is then M), answer 404 as §9.4 says. Registration policy, such as a minimum length, never applies to lookups.
Proposed decision (AD-14): Every lookup by local part on the owning server (the address lookup, and the profile and identity endpoints of 05 and 07) finds entries by minimalPrepare, and runs the full profile only to explain a miss; canonicalize confirms a local part that its own data rejects with that lookup before declaring it invalid. Rationale: §5.8 promises that grandfathered names keep working. Without this, a name registered under one Unicode version couldn't be looked up, profiled or sent a secure DM by a server or client using a later version.
The server answers for the entry it found. It MUST NOT redirect to a canonical URL. The response always carries the canonical address, so the form the client sent is never echoed back (§7.8). The same processing applies to every other path parameter that names a local part on its owning server (§7.7).
9.3 Response 200: AddressInfo
AddressInfo object:
| Member | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
kind |
string | Yes | What the address names. | user (a user or bot account) or channel. This is not the Channel object's kind (text or voice), which appears here as channelKind. A receiver MUST treat an unknown value as "not something this client can open" and show the address only. |
address |
string | Yes | The canonical address. | §7. Its domain is the server's canonicalDomain, whatever domain the client used. For the old local part of a renamed channel during its rename reservation, it is the channel's current address (§5.6). |
name |
string | Yes | The display name. | §6.2. Receivers apply §6.4. |
bot |
boolean | When kind is user |
Whether the account is a bot (kind: "bot" in 05). |
Clients show a bot badge (20). For secure bots, the badge also follows the IdentityCertificate kind (07); the certificate wins if they disagree. |
ctx |
string | When kind is channel |
The channel's context reference. | ch:<UUIDv7> (00 §7.6). |
channelKind |
string | When kind is channel |
The channel kind. | text or voice (D-064, 09). MUST equal the Channel object's kind (09). A receiver MUST treat an unknown value as text. |
security |
string | When kind is channel |
The channel's security mode. | insecure or secure (00 §4.1, 09). MUST equal the Channel object's security (09). A receiver MUST treat an unknown value as secure when deciding what to show before joining (gate cards, lock), and MUST NOT create or change a secure-state pin from it (09 §13.3); 09 also says that an unknown value never raises W9. |
The ctx, name, channelKind and security of a channel MUST equal the Channel object's values (09), so that the lookup can serve 09's secure-state pin checks.
The response MUST NOT include anything else about the entry: no member counts, topics, membership, online state, account security state, account age or linked providers. A user's security state comes from IdentityState (07); profiles come from 05.
Headers: Content-Type: application/json; Cache-Control: private, max-age=60; Vary: Authorization, because the answer for a hidden channel depends on the requester (§9.4).
9.4 Not found, deleted and availability
404 address.not_found. The server answers 404 when the prepared local part names nothing the requester may see. The problem object (00 §7.9) carries data:
| Member | Type | Required | Meaning |
|---|---|---|---|
available |
boolean | Yes | Whether an ordinary person could register this local part as a user right now, under this server's rules. Advisory: a later registration may still fail (for example in a race). |
reason |
string | When available is false |
reserved (§5.4), too_similar (a collision key matches, §5.3), not_allowed (server policy, §5.4), or taken (an entry exists that this requester may not see). Receivers MUST treat an unknown value as taken. |
minChars |
integer | When reason is not_allowed because of length |
The server's registration minimum in code points. |
410 address.deleted. The server answers 410 while the local part is quarantined (§5.7), including the old local part of a renamed channel after its rename reservation (§5.6). data carries formerKind (user or channel; a bot is reported as user). It MUST NOT carry deletedAt or anything about the deleted account. Clients say the address is no longer in use (20). Registration is not possible, so a client checking availability treats 410 as available: false.
Headers for 404 and 410: Cache-Control: no-store.
Proposed decision (AD-11): The address lookup is public and needs no authentication; a miss answers 404 address.not_found with data.available and data.reason, so the same call serves joins from links and the live availability check of sign-up. Rationale: a person following a link may not have an account yet (00 §8 F2 step 9), and sign-up needs availability before any account exists (00 §8 F1 step 7).
Hidden channels. If 09 lets a channel be hidden from some requesters, the server MUST answer such a requester exactly as for a taken name it can't see: 404 with available: false and reason: "taken". It MUST NOT reveal the channel's ctx, kind or security. A person invited to a hidden channel reaches it through the invite (09), not through this lookup.
9.5 Other errors
| Status | Code | When |
|---|---|---|
| 400 | address.invalid_local_part |
§9.2 steps 1, 2, 3 and 5 |
| 401 | core.unauthenticated, core.token_expired |
An invalid token was presented (03) |
| 429 | core.rate_limited |
Rate limit (§9.6) |
9.6 Privacy and rate limits
Addresses, like e-mail addresses, are meant to be shared, and the lookup reveals only what a link to the address would. It does let anyone test whether a name exists, which registration would reveal anyway. Servers limit enumeration with rate limits:
- A server MUST allow at least 30 lookups per minute per IP address for anonymous requesters, and per session for authenticated ones. It SHOULD NOT allow more than 120 per minute per IP address for anonymous requesters by default.
- Over the limit, it answers 429
core.rate_limitedwithRetry-Afterand the rate-limit headers of 03. - Clients MUST debounce availability checks while a person types, by at least 300 ms (§8.3), and SHOULD cache answers for the
max-agegiven. - Servers MUST NOT log the full lookup history of an authenticated requester beyond what rate limiting and abuse handling need.
The lookup reveals the ctx, kind and security of non-hidden channels to anyone. That is needed for a person who follows a link to see the right gate card (G1, G2) before signing in or joining (00 §4.3, 09).
9.7 Examples
A user, looked up with a capitalized local part:
GET https://chat.sloppyvoice.com/server/v1/addresses/SaxonJonesHTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: private, max-age=60
Vary: Authorization
{
"kind": "user",
"address": "saxonjones@sloppyvoice.com",
"name": "Saxon Jones",
"bot": false
}A voice channel, looked up with its display name percent-encoded:
GET https://chat.sloppyvoice.com/server/v1/addresses/Public%20Lobby{
"kind": "channel",
"address": "publiclobby@sloppyvoice.com",
"name": "Public Lobby",
"ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
"channelKind": "voice",
"security": "insecure"
}A Unicode local part:
GET https://chat.sloppyvoice.com/server/v1/addresses/%CE%A3%CE%BF%CF%86%CF%8C%CF%82%CE%A0%CE%B1%CF%80%CE%AC%CF%82{
"kind": "user",
"address": "σοφόσπαπάσ@sloppyvoice.com",
"name": "Σοφός Παπάς",
"bot": false
}A free name during sign-up:
HTTP/1.1 404 Not Found
Content-Type: application/problem+json
Cache-Control: no-store
{
"type": "urn:sloppyv:error:address.not_found",
"code": "address.not_found",
"title": "Nothing has this address",
"status": 404,
"retryable": false,
"userAction": "none",
"data": { "available": true }
}A name that is too close to an existing one:
{
"type": "urn:sloppyv:error:address.not_found",
"code": "address.not_found",
"title": "Nothing has this address",
"status": 404,
"retryable": false,
"userAction": "none",
"data": { "available": false, "reason": "too_similar" }
}A deleted account still in quarantine:
{
"type": "urn:sloppyv:error:address.deleted",
"code": "address.deleted",
"title": "This address was deleted",
"status": 410,
"retryable": false,
"userAction": "none",
"data": { "formerKind": "user" }
}10. The sloppyv URI scheme
10.1 Forms and meaning
A sloppyv URI names one target on the Sloppy Voice network, so a person can copy it and paste it to someone they want to invite (owner requirement, 00 §9.1 R-07).
| Form | Example | Target |
|---|---|---|
| Address | sloppyv://PublicLobby@sloppyvoice.com |
The user, bot or channel with that address. The address lookup (§9) says which. |
| Community | sloppyv://sloppyvoice.com |
The community of the server that the domain resolves to (D-003). |
| Either, with an invite | sloppyv://PublicLobby@sloppyvoice.com?invite=7KQ2M9XP4HRT, sloppyv://sloppyvoice.com?invite=7KQ2M9XP4HRT |
As above, plus an invite code (09) for the community of the target's server. |
The URI's authority is an address in the userinfo@host shape of RFC 3986 §3.2, so generic URI parsers split it into the local part (userinfo) and the domain (host) without special code.
- For a channel or community target, the client redeems the invite through 09 and then opens the target.
- For a user target, an invite has no meaning; the client MUST ignore it.
- If the address lookup of an address target answers 404 or 410 and the link carries an invite, the client continues exactly as for a community link with that invite: it redeems the invite through 09, which decides what the invite opens. This is how a person reaches a channel that is hidden from them before they join (§9.4), and how a link whose channel was renamed or deleted still lets the person into the community.
The invite code's format, its normalization and its meaning belong to 09. For this document it is an opaque string.
10.2 Grammar
The ABNF uses the rules unreserved, pct-encoded, sub-delims, reg-name and fragment of RFC 3986, and %s (case-sensitive strings) of RFC 7405.
sloppyv-uri = sv-scheme ":" "//" sv-authority [ "/" ]
[ "?" sv-query ] [ "#" fragment ]
sv-scheme = "sloppyv" / "web+sloppyv" ; case-insensitive
sv-authority = [ sv-userinfo "@" ] sv-host
sv-userinfo = 1*( unreserved / pct-encoded / sub-delims )
; a local part in display-local or prepared form,
; non-ASCII as percent-encoded UTF-8; never contains ":"
sv-host = reg-name
; a domain: an A-label domain on generation; on parsing
; also percent-encoded UTF-8 (RFC 3986 section 3.2.2)
sv-query = sv-param *( "&" sv-param )
sv-param = invite-param / ext-param
invite-param = %s"invite=" invite-value
invite-value = 1*( unreserved / pct-encoded )
; after percent-decoding: valid UTF-8, 1 to 64 code
; points; otherwise opaque (09 owns the code format)
ext-param = param-name [ "=" param-value ]
param-name = 1*( ALPHA / DIGIT / "-" / "_" / "." )
param-value = *( unreserved / pct-encoded / "!" / "$" / "'" / "(" /
")" / "*" / "+" / "," / ";" / "=" / ":" / "@" / "/" /
"?" )The IRI form (RFC 3987) is the same with iuserinfo and ireg-name in place of sv-userinfo and sv-host, so Unicode letters may appear directly.
10.3 Generating
A client that generates a sloppyv URI MUST produce exactly this form:
- The scheme
sloppyv, then://. - For an address target: the display-local form of the address (§6.6), with every octet outside
ALPHA / DIGITof its UTF-8 encoding percent-encoded with uppercase hex digits, then@. - The canonical domain, as an A-label.
- If there is an invite code:
?invite=and the code in 09's canonical form (12 characters of Crockford base32, without the display hyphens, 09 §8.2). - Nothing else: no trailing slash, no other parameters, no fragment.
The display-local form is used because it is what people recognise: the owner's own example is sloppyv://PublicLobby@sloppyvoice.com. It always canonicalizes back to the same address (§6.6).
10.4 Parsing
parseSloppyvUri(U) returns a target (an address with a raw local part and raw domain, or a community with a raw domain), an optional invite code, or a failure address.invalid_link with data.reason.
- Match the scheme
sloppyvorweb+sloppyv, ASCII case-insensitively, followed by:. Otherwise fail withscheme. - If
//follows, remove it. If it doesn't, continue anyway (people sometimes writesloppyv:PublicLobby@sloppyvoice.com). - Remove the fragment (from the first
#). It is ignored. - Split off the query (from the first
?). - The authority runs up to the first
/. Anything after it is a path, which v1 clients MUST ignore (a later version may use paths for deeper targets; ignoring them still opens the right place). - If the authority contains
@, the userinfo is everything before the last@and the host everything after it. Otherwise there is no userinfo and the target is a community. - Userinfo: if it contains
:, fail withuserinfo_password. Percent-decode it once; if the result isn't valid UTF-8, fail withinvalid_utf8. The result is the raw local part. (White space that arrives as%20is allowed;prepareLocalremoves it.) - Host: if it contains
:outside brackets, fail withport; if it is bracketed, fail withip_literal. Percent-decode it once as UTF-8 (on failure,invalid_utf8). The result is the raw domain. - Query: split on
&. For each parameter, split the name from the value at the first=and percent-decode the value once. Parameter names are case-sensitive.- More than one
inviteparameter: fail withduplicate_param. - An
invitevalue that is empty, isn't valid UTF-8 after decoding, or has more than 64 code points after decoding: fail withbad_invite. - Any other parameter: ignore it.
- More than one
- Return the target and the invite code, decoded but otherwise unchanged. The caller passes the target to
canonicalize(§7.2), which prepares the local part and the domain. The invite code is normalized and checked only by 09 (09 §8.2), when it is redeemed: case, display hyphens and lookalike letters are 09's business, and a code that fails 09's normalization is treated by 09 as an unknown code.
A client that re-shares a target MUST generate a fresh URI with §10.3 rather than copying the one it received, so unknown parameters are dropped and alias domains are replaced by the canonical domain.
Proposed decision (AD-9): The sloppyv URI uses the userinfo@host authority, carries an optional invite parameter whose value is opaque to this document (at most 64 code points after percent-decoding; format and normalization by 09), ignores unknown parameters, paths and fragments, and rejects duplicate invite parameters. web+sloppyv is accepted as an equivalent scheme name for browsers. Rationale: generic URI libraries parse the authority form correctly; ignoring unknown parts lets later versions extend links without breaking v1 clients, while the one security-relevant parameter can't be ambiguous. Leaving the code format to 09 means links accept whatever 09's forgiving input normalization accepts, such as lowercase or hyphenated codes.
10.5 Activating a link
A link can come from anyone. When a person activates a sloppyv URI (taps it, pastes it, or the operating system opens the app with it):
- The client runs
canonicalize, then the address lookup (§9) for an address target, or 09's invite preview for a link with an invite. A client that isn't signed in sends these anonymously (§9.2, AD-11), so that it can name the target during sign-in. - If the person isn't signed in, the client keeps the pending target locally, starts sign-in or sign-up with the link's server pre-filled as a suggestion (00 §8 F1 step 1, 20 §9.1 rule 2), and afterwards resumes at step 1 with the new session, because the answer can differ for a signed-in requester (§9.4).
- If the account is already in the target (20 §10.1 step 3), the client opens it directly. Otherwise it shows a preview with the target's display form (domain always shown, §4.4 rule 3), display name, what it is (person, bot, text channel, voice channel or community), the community's name, and its advertised security as 20 §8.3 item 4 presents it in previews (the outline gated lock for a secure target, never the closed lock, which 00 §4.12.6 and SM-12 reserve for contexts whose MLS state the client holds).
- It acts only after one explicit tap ("Join", "Open", "Message"). A client MUST NOT join a community or channel, start a DM, start a call or change any state just because a link was activated.
- Gate cards (G1, G2) appear as 00 §4 says when the person goes ahead; W1 is placed as 20 §10.2 says.
20 owns the screens and copy.
10.6 Unicode in sloppyv URIs
- On the wire (in HTML
hrefattributes, QR codes, HTTP headers, and anywhere only ASCII is safe) the URI form is used: percent-encoded UTF-8 local part and A-label domain. - For people (text a person reads or copies) a client SHOULD use the IRI form, with the local part in Unicode and the domain as a U-label where §4.3 allows:
sloppyv://ΣοφόςΠαπάς@sloppyvoice.comrather thansloppyv://%CE%A3%CE%BF…@sloppyvoice.com. - Parsers MUST accept both, and any mixture of the two.
- Percent-encoding uses UTF-8 (RFC 3986 §2.5, RFC 3987 §3.1). Producers MUST NOT percent-encode other encodings.
10.7 web+sloppyv
Browsers only let a web page register itself as the handler for a scheme with the web+ prefix. A web client MAY register itself for web+sloppyv (for example with navigator.registerProtocolHandler). Clients MUST treat web+sloppyv: exactly like sloppyv:. Clients MUST NOT generate web+sloppyv URIs for people to share.
10.8 URI scheme registration template
Following RFC 7595 §7.2:
| Field | Value |
|---|---|
| Scheme name | sloppyv |
| Status | Provisional |
| Applications/protocols that use this scheme | Sloppy Voice protocol version 1 (sv1): federated voice, video and text chat clients |
| Scheme syntax | §10.2 of this document |
| Scheme semantics | §10.1: a user, bot, channel or community on the Sloppy Voice network, optionally with an invite code |
| Encoding considerations | UTF-8, percent-encoded in URIs; Unicode directly in IRIs (§10.6) |
| Interoperability considerations | Many applications don't make custom schemes clickable, so the HTTPS share link of §11 is offered alongside. Unknown parameters are ignored (§10.4). |
| Security considerations | §10.5 and §15 of this document |
| Contact | The Sloppy Voice specification editors |
| Change controller | The Sloppy Voice project |
| References | This document |
11. HTTPS share links
11.1 Why they exist
Many apps (e-mail clients, chat apps, social networks) don't make custom schemes clickable. Every place that offers a sloppyv URI therefore also offers an HTTPS share link, which any app shows as a link and which works for people who don't have the app yet (00 §2.1).
11.2 Template and generation
A server publishes its share-link template in the links.join member of its ServerMetadata (02 owns the member and stores the string). This document is the normative source for what the template means, including its variables: where 02 describes them, 02 follows this section.
- The template is an RFC 6570 URI Template using expressions of Level 3 or below. After expansion it MUST be an absolute
httpsURI. - Its scheme and authority MUST be literal text: no expression may appear before the path. Its host MUST be the host of the server's base URL, or one of the server's
domains(02 §7.3.4 enforces the syntax). Clients check the host by discovery, never by the server's owndomainslist or by a same-site test: before generating a link from the template (generation rule 1) and before matching with it (§11.4 step 1), the client confirms that the template's host is the base-URL host or resolves through 02 to the same base URL (02's cache may answer; the RECOMMENDED host, the canonical domain, has already been resolved bycanonicalize). Otherwise it treats the template as absent. - It may use three variables, with exactly these meanings:
| Variable | Value | Undefined when |
|---|---|---|
local |
The display-local form of the target address (§6.6), as a Unicode string. RFC 6570 expansion percent-encodes it as UTF-8. | The target is a community. |
domain |
The canonical domain of the target's server, as an A-label. | Never. |
invite |
The invite code, in 09's canonical form. | There is none. |
- The template MUST reference
localandinviteand MAY referencedomain. A template that breaks any rule of this section is invalid, and clients treat it as absent (02), so they offer only thesloppyvURI. The RECOMMENDED template ishttps://<canonical-domain>/j{/local}{?invite}, served on the canonical domain itself. Becauselocalis undefined (not empty) for a community,{/local}then expands to nothing: the community link ishttps://sloppyvoice.com/j?invite=…, not…/j/?invite=…(vector H3).
Generation rules:
- A share link for a target is always built from the template of the target's server (the server
canonicalizeresolved), never the sharer's own server. - The client uses the canonical domain and the display-local form, as for
sloppyvURIs (§10.3). - If the target's server publishes no
links.join, the client offers thesloppyvURI alone. - A server that generates links itself (for example an invite URL in 09) MUST follow the same rules.
Examples are in §13.8.
Proposed decision (AD-10): links.join is an RFC 6570 template with the variables local (display-local form, undefined for a community), domain and invite, with a literal scheme and a host bound to the publishing server by discovery. Every page it produces carries the target's sloppyv URI in a Link: <…>; rel="alternate" header and an HTML <link rel="alternate"> element, and allows cross-origin reads of that header. Clients match a pasted URL only against the template of the server its host belongs to. Rationale: a standard template language means clients don't need per-server code; the alternate link lets any client, including a web client, turn a pasted share link into a sloppyv target without guessing the server's URL layout; and binding templates to their host stops one server from claiming another server's links.
11.3 What a share-link URL serves
The operator of a server that publishes links.join MUST make every expanded share link answer as follows. The page MAY be served by the server itself or by the operator's web site.
GETandHEADanswer with an HTML page that works without JavaScript, without cookies and without signing in. The status is200, except where item 4 says otherwise.- A
200response carries an HTTPLinkheader (RFC 8288) withrel="alternate"whose target is thesloppyvURI of the target in the form of §10.3, including the invite code when the share link had one. The HTML<head>MUST contain the same link as<link rel="alternate" href="sloppyv://…">. - For a target that the address lookup (§9) shows to an anonymous requester, or for the community itself, the page names the target the way a preview does (§10.5 step 2): display name, display form with domain, kind, community name and security marker. It offers an action that opens the app (linking to the
sloppyvURI), an action that continues in the browser when the server advertises a web client (02,links.web), and a link to get the app (labels in 20 §10.3). 20 owns the layout and copy. - Unknown, hidden and deleted targets. A local part that the address lookup answers with 404 or 410 for an anonymous requester (nothing has it, it is a channel hidden from anonymous requesters, or it is in quarantine) is treated the same way in every case:
- with an invite:
200, a page that shows only the community and says the invite will be checked in the app, and aLinktosloppyv://{local}@{domain}?invite={invite}that echoes the requested local part and invite. The page and the header MUST NOT reveal whether the local part exists. The client then follows §10.1: its lookup fails, and it redeems the invite, which reveals a hidden channel only to holders of a valid invite (09); - without an invite:
404(410for a quarantined local part) with an explanatory page and noLinkheader.
- with an invite:
- The page reveals nothing that the address lookup (§9) wouldn't reveal to an anonymous requester.
- The page MUST NOT set cookies, run third-party scripts, fingerprint the visitor, or redirect through link-attribution services. The operator MUST NOT keep any record that links a visit to a later sign-up.
- An expired or invalid invite code doesn't change the response; the client finds out when it redeems the code (09).
- Every response, including 404 and 410, carries
Access-Control-Allow-Origin: *andAccess-Control-Expose-Headers: Link, so web clients can read it (§11.4). This is safe because the page uses no cookies or credentials. - Responses carry
Cache-Control: max-age=60or shorter. - Every response carries
Content-Security-Policyallowing scripts only from the page's own origin (or none) and withframe-ancestors 'none',X-Content-Type-Options: nosniff,Referrer-Policy: no-referrer, andStrict-Transport-Securitywithmax-ageof at least 31,536,000 (includeSubDomainsRECOMMENDED but not required, because the RECOMMENDED share-link host is the bare canonical domain).
11.4 Recognising a share link in the client
When a person pastes or opens an HTTPS URL in a place that accepts addresses or links:
Which templates may match. A client MAY match the URL against the
links.jointemplate of a server X only if the URL's host (lowercased, as an A-label) is the host of X's base URL, or resolves through 02 to X's base URL (02's cache may answer). It MUST NOT match the URL against any other server's template, whatever that server's metadata lists. A template whose own host breaks §11.2 never matches.Template match. The client SHOULD first try the templates allowed by step 1 of servers whose metadata it has cached. If none is cached, it MAY resolve the URL's host through 02 (
resolve(), orwebResolve()for a web client) and, if that host is a Sloppy Voice domain, try that server's template. Matching works only on templates whose expressions are among{local},{/local},{domain},{/domain}and{?invite}; for any other template the client goes to step 3. The client splits the template into literal text and expressions and matches them left to right against the URL:- literal text matches itself exactly (the scheme and host ASCII case-insensitively, the rest case-sensitively);
{local}and{domain}match one non-empty path segment (no/,?or#);{/local}and{/domain}match/followed by one such segment, or nothing (the variable is then undefined);{?invite}matches the end of the URL: either nothing, or a query, from which the value of theinviteparameter is taken (other parameters are ignored; more than oneinvitefails withduplicate_param);- the whole URL, apart from a fragment, must be consumed.
Matched values are percent-decoded once as UTF-8. If
domainwas matched, it MUST canonicalize (§7.2) to X itself, or the match is discarded. Otherwise the target domain is X's canonical domain. If the templates allowed by step 1 give more than one match with different targets, the client goes to step 3. A match gives the target (a community whenlocalis undefined) and the invite, with no fetch of the page.Fetch. Otherwise, the client MAY fetch the URL to read its
Linkheader, under all of these limits:- only after the person explicitly pasted or opened this URL; a client MUST NOT fetch links merely because they appear in a message;
- HTTPS only (an
http://link is tried ashttps://), at most 3 redirects, all HTTPS; - no credentials, no cookies, no
Authorizationheader; - a timeout of 5 s, and at most 64 KiB of body read;
HEADfirst;GETonly ifHEADgives no usableLinkheader, reading the HTML<head>for<link rel="alternate">.
A web client fetches with CORS (§11.3 item 8 lets it read the
Linkheader and the page). The browser applies its own redirect handling, which satisfies the redirect limit. If the response can't be read (an opaque or failed CORS response), the client fails withfetch_failed.The client takes the first
alternatelink whose target has the schemesloppyvorweb+sloppyv, parses it with §10.4, and continues withcanonicalize.If nothing usable is found, it fails with
address.invalid_linkanddata.reasonnot_a_share_link(orfetch_failedon a network error), and the client treats the URL as an ordinary web link.
Rationale for step 1: RFC 6570 templates aren't designed for reverse matching, and a server's metadata is its own claim. Without the host rule, a server X could publish https://sloppyvoice.com/j{/local}{?invite} as its template, and every client that had ever resolved X would turn a genuine https://sloppyvoice.com/j/PublicLobby into publiclobby@X. Discovery of the host, not X's metadata, decides which server a share-link host belongs to.
Operators MAY also associate their share-link host with app builds through the operating systems' app-link mechanisms (iOS universal links, Android app links), so that tapping a share link opens the app directly. That is a deployment matter (21) and isn't required.
11.5 Alias links and removed aliases
- A share link served on an alias domain's web host, or whose
alternateURI names an alias domain, works like any other:canonicalizeresolves it, and the client shows the canonical display form (§7.8). - When an alias domain is removed (§7.9), share links on it stop working once its web host stops answering or its
alternateURI failscanonicalize. Clients then say the link no longer works (20). - Links generated by conforming clients and servers never use an alias (§11.2), so this affects only links people built by hand.
11.6 Joining when the app isn't installed (deferred join)
The protocol keeps no server-side state for deferred joins: no tokens, no device matching, no attribution. The mechanism is:
- The share-link page (§11.3) shows the target and offers the continue-in-browser and get-the-app actions (20 §10.3), the first only when a web client exists.
- After installing, the person opens the same link again, or pastes it. First-run onboarding (20) offers an option to paste an invite link (copy in 20). A client MAY read the clipboard only after the person taps a paste control; it MUST NOT read the clipboard silently.
- From there, §10.5 applies, including sign-up with the link's server pre-filled and the join resuming afterwards (00 §8 F2 step 9).
Rationale: deferred deep-linking services work by fingerprinting visitors across the browser and the app. That conflicts with the privacy expectations of a self-hostable system, and asking the person to tap the link once more costs little.
12. Errors
12.1 The address.* codes
This document owns the address area (00 §7.5). Every error uses the problem-details object of 00 §7.9. The endpoints that return them are this document's lookup (§9) and the endpoints of 05, 06, 07, 09, 10, 11, 12, 13 and 19 that accept, register or verify addresses. Clients use the same codes and objects for local failures of canonicalize, so one error renderer covers both.
| Code | HTTP status | userAction |
retryable |
Meaning | data |
|---|---|---|---|---|---|
address.invalid |
400 | none |
false | The input isn't an address or a link. | reason: too_long, multiple_at, missing_domain, empty, invalid_utf8 |
address.invalid_local_part |
400 | none |
false | The local part fails the SV local-part profile. | reason (§3.9); index (integer, optional) |
address.invalid_domain |
400 | none |
false | The domain fails §4.1. | reason (§4.2) |
address.invalid_link |
400 | none |
false | A sloppyv URI or share link can't be parsed. |
reason: scheme, userinfo_password, port, ip_literal, invalid_utf8, duplicate_param, bad_invite, not_a_share_link, fetch_failed |
address.non_canonical |
400 | none |
false | An address where a canonical one is required isn't canonical, for example an alias in a signed object (D-032). | reason: malformed, local_not_prepared, domain_not_alabel, alias_domain; field (JSON Pointer or claim name, optional); canonical (optional) |
address.display_name_mismatch |
400 | none |
false | A proposed display name isn't linked to the local part, or is too long (§6.2, §6.3). | reason: not_linked, too_long |
address.not_allowed |
403 | none |
false | The server's registration policy refuses this local part. | reason: too_short, blocked; minChars (with too_short) |
address.not_found |
404 | none |
false | Nothing the requester may see has this address. | available, reason, minChars (§9.4) |
address.taken |
409 | none |
false | A user, bot or channel already has this local part, or it is reserved for a renamed channel (§5.6). | — |
address.too_similar |
409 | none |
false | A local part or display name collides with another entry's collision key (§5.3). | field: local or name |
address.reserved |
409 | none |
false | The local part is reserved (§5.4). | — |
address.quarantined |
409 | none |
false | The local part belonged to a deleted account or channel and is in quarantine (§5.7). | formerKind |
address.deleted |
410 | none |
false | The address belonged to an account or channel that was deleted (or to a channel that was renamed more than 90 days ago); it is in quarantine (§5.7). | formerKind |
Rules for receivers:
- A receiver MUST treat an unknown
address.*code by its HTTP status (03). - A receiver MUST treat an unknown
data.reasonvalue as the most general one listed for that code (disallowed_code_point,idna,malformed,not_linkedor the first one listed). address.non_canonicalraised while verifying a signed object is a verification failure: the object is rejected, as 07 and 06 say. It is never shown to a person as a warning (D-055).
12.2 Example
Sign-up with a name that is too close to an existing one:
HTTP/1.1 409 Conflict
Content-Type: application/problem+json
{
"type": "urn:sloppyv:error:address.too_similar",
"code": "address.too_similar",
"title": "That name is too close to an existing name",
"status": 409,
"detail": "Try a different spelling or add a number.",
"retryable": false,
"retryAfterMs": null,
"userAction": "none",
"data": { "field": "local" }
}A request body that names an alias:
HTTP/1.1 400 Bad Request
Content-Type: application/problem+json
{
"type": "urn:sloppyv:error:address.non_canonical",
"code": "address.non_canonical",
"title": "Address isn't in canonical form",
"status": 400,
"retryable": false,
"userAction": "none",
"data": {
"reason": "alias_domain",
"field": "/participants/1",
"canonical": "saxonjones@sloppyvoice.com"
}
}13. Test vectors
All vectors use Unicode 16.0.0 data (UCD, PRECIS derived property values, UTS #39 16.0.0 IdentifierType.txt and confusables.txt) and UTS #46 16.0.0. Outputs were computed with an independent implementation of §3 to §8. Every input that contains anything other than printable ASCII is also given as hexadecimal code points (four or more hex digits, or U+XXXX in prose), because many of these strings can't be told apart by eye and editors may normalize them; the code points are normative, and the glyphs are only a reading aid. UTF-8 octets are in hexadecimal. An implementation conforms only if it reproduces every vector. Vectors marked "simulated" describe behaviour under Unicode data that differs from 16.0.0 and are checked by substituting that data.
13.1 Local-part preparation (prepareLocal)
Input code points are hexadecimal Unicode scalar values; ␠ in the Input column stands for U+0020.
Inputs that pass
| # | Input | Input code points | Prepared local part (UTF-8, hex) |
|---|---|---|---|
| L1 | PublicLobby |
0050 0075 0062 006C 0069 0063 004C 006F 0062 0062 0079 | 70 75 62 6C 69 63 6C 6F 62 62 79 |
| L2 | Public Lobby |
0050 0075 0062 006C 0069 0063 0020 004C 006F 0062 0062 0079 | 70 75 62 6C 69 63 6C 6F 62 62 79 |
| L3 | ␠␠Saxon Jones␠ |
0020 0020 0053 0061 0078 006F 006E 0020 004A 006F 006E 0065 0073 0020 | 73 61 78 6F 6E 6A 6F 6E 65 73 |
| L4 | SaxonJones (fullwidth) |
FF33 FF41 FF58 FF4F FF4E FF2A FF4F FF4E FF45 FF53 | 73 61 78 6F 6E 6A 6F 6E 65 73 |
| L5 | Zoë |
005A 006F 00EB | 7A 6F C3 AB |
| L6 | Zoë decomposed |
005A 006F 0065 0308 | 7A 6F C3 AB |
| L7 | Straße |
0053 0074 0072 0061 00DF 0065 | 73 74 72 61 73 73 65 |
| L8 | STRASSE |
0053 0054 0052 0041 0053 0053 0045 | 73 74 72 61 73 73 65 |
| L9 | Σοφός Παπάς |
03A3 03BF 03C6 03CC 03C2 0020 03A0 03B1 03C0 03AC 03C2 | CF 83 CE BF CF 86 CF 8C CF 83 CF 80 CE B1 CF 80 CE AC CF 83 |
| L10 | ΣΟΦΌΣ ΠΑΠΆΣ |
03A3 039F 03A6 038C 03A3 0020 03A0 0391 03A0 0386 03A3 | CF 83 CE BF CF 86 CF 8C CF 83 CF 80 CE B1 CF 80 CE AC CF 83 |
| L11 | Иван Петров |
0418 0432 0430 043D 0020 041F 0435 0442 0440 043E 0432 | D0 B8 D0 B2 D0 B0 D0 BD D0 BF D0 B5 D1 82 D1 80 D0 BE D0 B2 |
| L12 | 王小明 |
738B 5C0F 660E | E7 8E 8B E5 B0 8F E6 98 8E |
| L13 | 田中太郎 |
7530 4E2D 592A 90CE | E7 94 B0 E4 B8 AD E5 A4 AA E9 83 8E |
| L14 | Tanaka 太郎 (Latin with Han) |
0054 0061 006E 0061 006B 0061 0020 592A 90CE | 74 61 6E 61 6B 61 E5 A4 AA E9 83 8E |
| L15 | 김민준 |
AE40 BBFC C900 | EA B9 80 EB AF BC EC A4 80 |
| L16 | مريم |
0645 0631 064A 0645 | D9 85 D8 B1 D9 8A D9 85 |
| L17 | مريم2024 |
0645 0631 064A 0645 0032 0030 0032 0034 | D9 85 D8 B1 D9 8A D9 85 32 30 32 34 |
| L18 | שרה כהן |
05E9 05E8 05D4 0020 05DB 05D4 05DF | D7 A9 D7 A8 D7 94 D7 9B D7 94 D7 9F |
| L19 | İstanbul |
0130 0073 0074 0061 006E 0062 0075 006C | 69 73 74 61 6E 62 75 6C |
| L20 | Ilgın |
0049 006C 0067 0131 006E | 69 6C 67 C4 B1 6E |
| L21 | ᏣᎳᎩ (Cherokee, Limited_Use) |
13E3 13B3 13A9 | E1 8F A3 E1 8E B3 E1 8E A9 |
| L22 | ꮳꮃꭹ (Cherokee small letters) |
ABB3 AB83 AB79 | E1 8F A3 E1 8E B3 E1 8E A9 |
| L23 | अनिल |
0905 0928 093F 0932 | E0 A4 85 E0 A4 A8 E0 A4 BF E0 A4 B2 |
| L24 | अनिल१२ (Devanagari digits) |
0905 0928 093F 0932 0967 0968 | E0 A4 85 E0 A4 A8 E0 A4 BF E0 A4 B2 E0 A5 A7 E0 A5 A8 |
| L25 | Anna2024 |
0041 006E 006E 0061 0032 0030 0032 0034 | 61 6E 6E 61 32 30 32 34 |
| L26 | 王小明김 (Han with Hangul: Kore) |
738B 5C0F 660E AE40 | E7 8E 8B E5 B0 8F E6 98 8E EA B9 80 |
| L27 | 32 × É |
32 × U+00C9 | (C3 A9) × 32: 32 × é, 64 octets, the maximum |
| L28 | たなかー (U+30FC goes with Kana) |
305F 306A 304B 30FC | E3 81 9F E3 81 AA E3 81 8B E3 83 BC |
| L29 | kimタロウ (Latin with Katakana) |
006B 0069 006D 30BF 30ED 30A6 | 6B 69 6D E3 82 BF E3 83 AD E3 82 A6 |
Inputs that fail (Index as defined in §3.9)
| # | Input | Input code points | Reason | Index |
|---|---|---|---|---|
| F1 | 2024 |
0032 0030 0032 0034 | no_letter |
|
| F2 | pаypal (Cyrillic а) |
0070 0430 0079 0070 0061 006C | mixed_script |
|
| F3 | a.b |
0061 002E 0062 | disallowed_code_point |
1 |
| F4 | a_b |
0061 005F 0062 | disallowed_code_point |
1 |
| F5 | 👍 | 1F44D | disallowed_code_point |
0 |
| F6 | Ana ZWJ B |
0041 006E 0061 200D 0042 | disallowed_code_point |
3 |
| F7 | a + two acute accents |
0061 0301 0301 | repeated_mark |
|
| F8 | i + dot above + x |
0069 0307 0078 | confusable_mark |
|
| F9 | KELVIN SIGN + elvin |
212A 0065 006C 0076 0069 006E | disallowed_code_point |
0 |
| F10 | LIGATURE FI + x |
FB01 0078 | disallowed_code_point |
0 |
| F11 | 65 × x |
65 × U+0078 | too_long |
|
| F12 | abc + Arabic-Indic three |
0061 0062 0063 0663 | bidi_rule |
|
| F13 | مريم12 + Arabic-Indic three |
0645 0631 064A 0645 0031 0032 0663 | bidi_rule |
|
| F14 | ジョン・スミス |
30B8 30E7 30F3 30FB 30B9 30DF 30B9 | disallowed_code_point |
3 |
| F15 | grave accent + abc |
0300 0061 0062 0063 | leading_mark |
0 |
| F16 | Arabic letter + two digit systems | 0628 0660 06F1 | disallowed_code_point |
1 |
| F17 | ROMAN NUMERAL TWELVE | 216B | disallowed_code_point |
0 |
| F18 | a LRM b |
0061 200E 0062 | disallowed_code_point |
1 |
| F19 | अनिल१2 |
0905 0928 093F 0932 0967 0032 | mixed_digits |
|
| F20 | Anna২০ (Bengali digits) |
0041 006E 006E 0061 09E8 09E6 | mixed_script |
|
| F21 | Иванjohn |
0418 0432 0430 043D 006A 006F 0068 006E | mixed_script |
|
| F22 | 김민준たなか (Hangul with Hiragana) |
AE40 BBFC C900 305F 306A 304B | mixed_script |
|
| F23 | ␠␠␠ |
0020 0020 0020 | empty |
|
| F24 | kim김タ (Latin, Hangul, Katakana) |
006B 0069 006D AE40 30BF | mixed_script |
|
| F25 | иванー (Cyrillic with U+30FC) |
0438 0432 0430 043D 30FC | mixed_script |
13.2 Display-name receiver check
checkDisplayName of §6.4. "Shown as" is the normalized string S that a receiver shows when the check passes; when it fails, the receiver shows the local part.
| # | Local part | Display name | Display name code points | Result | Shown as |
|---|---|---|---|---|---|
| N1 | publiclobby |
Public Lobby |
0050 0075 0062 006C 0069 0063 0020 004C 006F 0062 0062 0079 | pass | "Public Lobby" |
| N2 | publiclobby |
Public Lobby! |
0050 0075 0062 006C 0069 0063 0020 004C 006F 0062 0062 0079 0021 | fail | (the local part) |
| N3 | publiclobby |
Public␠␠Lobby (two spaces) |
0050 0075 0062 006C 0069 0063 0020 0020 004C 006F 0062 0062 0079 | pass | "Public Lobby" |
| N4 | publiclobby |
Pub Lic Lob By |
0050 0075 0062 0020 004C 0069 0063 0020 004C 006F 0062 0020 0042 0079 | pass | "Pub Lic Lob By" |
| N5 | saxonjones |
SAXON JONES |
0053 0041 0058 004F 004E 0020 004A 004F 004E 0045 0053 | pass | "SAXON JONES" |
| N6 | saxonjones |
Saxon Jönes |
0053 0061 0078 006F 006E 0020 004A 00F6 006E 0065 0073 | fail | (the local part) |
| N7 | saxonjones |
Saxon NBSP Jones |
0053 0061 0078 006F 006E 00A0 004A 006F 006E 0065 0073 | pass | "Saxon Jones" |
| N8 | saxonjones |
Saxon Jones (fullwidth) |
FF33 FF41 FF58 FF4F FF4E 0020 FF2A FF4F FF4E FF45 FF53 | pass | "Saxon Jones" |
| N9 | saxonjones |
Saxon ZWSP Jones |
0053 0061 0078 006F 006E 200B 004A 006F 006E 0065 0073 | fail | (the local part) |
| N10 | saxonjones |
RLO Saxon Jones |
202E 0053 0061 0078 006F 006E 0020 004A 006F 006E 0065 0073 | fail | (the local part) |
| N11 | zoë |
Zoe + diaeresis |
005A 006F 0065 0308 | pass | "Zoë" (composed: 005A 006F 00EB) |
| N12 | σοφόσπαπάσ |
Σοφός Παπάς |
03A3 03BF 03C6 03CC 03C2 0020 03A0 03B1 03C0 03AC 03C2 | pass | "Σοφός Παπάς" |
| N13 | σοφόσπαπάσ |
ΣΟΦΌΣ ΠΑΠΆΣ |
03A3 039F 03A6 038C 03A3 0020 03A0 0391 03A0 0386 03A3 | pass | "ΣΟΦΌΣ ΠΑΠΆΣ" |
| N14 | σοφόσπαπάσ |
ΣΟΦΟΣ ΠΑΠΑΣ (no accents) |
03A3 039F 03A6 039F 03A3 0020 03A0 0391 03A0 0391 03A3 | fail | (the local part) |
| N15 | иванпетров |
Иван Петров |
0418 0432 0430 043D 0020 041F 0435 0442 0440 043E 0432 | pass | "Иван Петров" |
| N16 | иванпетров |
Ivan Petrov |
0049 0076 0061 006E 0020 0050 0065 0074 0072 006F 0076 | fail | (the local part) |
| N17 | 田中太郎 |
田中 太郎 |
7530 4E2D 0020 592A 90CE | pass | "田中 太郎" |
| N18 | 田中太郎 |
田中 IDEOGRAPHIC SPACE 太郎 |
7530 4E2D 3000 592A 90CE | pass | "田中 太郎" |
| N19 | مريم |
مريم |
0645 0631 064A 0645 | pass | "مريم" |
| N20 | مريم |
مريم RLM |
0645 0631 064A 0645 200F | fail | (the local part) |
| N21 | שרהכהן |
שרה כהן |
05E9 05E8 05D4 0020 05DB 05D4 05DF | pass | "שרה כהן" |
| N22 | istanbul |
İstanbul |
0130 0073 0074 0061 006E 0062 0075 006C | pass | "İstanbul" |
| N23 | strasse |
Straße |
0053 0074 0072 0061 00DF 0065 | pass | "Straße" |
| N24 | strasse |
STRAẞE (capital sharp s) |
0053 0054 0052 0041 1E9E 0045 | pass | "STRAẞE" |
| N25 | anna2024 |
Anna 2024 |
0041 006E 006E 0061 0020 0032 0030 0032 0034 | pass | "Anna 2024" |
| N26 | anna2024 |
Anna 2O24 (letter O) |
0041 006E 006E 0061 0020 0032 004F 0032 0034 | fail | (the local part) |
| N27 | ᏣᎳᎩ |
ꮳꮃꭹ |
ABB3 AB83 AB79 | pass | "ꮳꮃꭹ" |
| N28 | aiice |
AIice (capital I) |
0041 0049 0069 0063 0065 | pass at the receiver; refused by the server's collision check because alice exists (§13.3 S10, S13) |
"AIice" |
| N29 | ışık |
Işık |
0049 015F 0131 006B | fail; capital I folds to dotted i (§3.1) | (the local part) |
| N30 | saxonjones |
Saxon LINE FEED Jones |
0053 0061 0078 006F 006E 000A 004A 006F 006E 0065 0073 | pass | "Saxon Jones" |
| N31 | saxonjones |
Saxon, 300 spaces, Jones |
0053 0061 0078 006F 006E, 300 × 0020, 004A 006F 006E 0065 0073 | pass | "Saxon Jones" |
| N32 | 40 × a |
40 × A (fullwidth), separated by single spaces |
40 × FF21, separated by 0020 | fail (159 octets after step 2, over 128) | (the local part) |
| N33 | κατε |
ΚΑΤΕ |
039A 0391 03A4 0395 | pass at the receiver; refused by the server's collision check if kate exists (§13.3 S15) |
"ΚΑΤΕ" |
13.3 Skeleton collisions
Collision keys are ckey of §5.3, applied to the prepared local part or, for a display name, to the display name with white space removed, width-mapped and in NFC. Keys are given as code points in hexadecimal. 'Default display name' below means the prepared local part, which an entry has until its holder chooses another capitalization or spacing (§6.3).
| # | Existing entry | New entry or change | Input code points (new) | Collision keys (existing; new) | Result |
|---|---|---|---|---|---|
| S1 | paypal |
paypa1 |
0070 0061 0079 0070 0061 0031 | both paypal (0070 0061 0079 0070 0061 006C) |
address.too_similar |
| S2 | moon |
rnoon |
0072 006E 006F 006F 006E | both rnoon (0072 006E 006F 006F 006E) |
address.too_similar |
| S3 | ilgin |
ılgın |
0131 006C 0067 0131 006E | both ilgin (0069 006C 0067 0069 006E) |
address.too_similar |
| S4 | scope |
ѕсоре (all Cyrillic) |
0455 0441 043E 0440 0435 | both scope (0073 0063 006F 0070 0065) |
address.too_similar |
| S5 | vova |
νονα (all Greek) |
03BD 03BF 03BD 03B1 | both vova (0076 006F 0076 0061) |
address.too_similar |
| S6 | タロウ (Katakana) |
夕口ウ (Han, Han, Katakana) |
5915 53E3 30A6 | both 夕口ウ (5915 53E3 30A6) |
address.too_similar |
| S7 | publiclobby |
pub1ic1obby |
0070 0075 0062 0031 0069 0063 0031 006F 0062 0062 0079 | both publiclobby (0070 0075 0062 006C 0069 0063 006C 006F 0062 0062 0079) |
address.too_similar |
| S8 | reserved admin |
adrnin |
0061 0064 0072 006E 0069 006E | both adrnin (0061 0064 0072 006E 0069 006E) |
address.too_similar (a reserved key) |
| S9 | saxon |
ѕахоп (all Cyrillic) |
0455 0430 0445 043E 043F | saxon (0073 0061 0078 006F 006E); saxoπ (0073 0061 0078 006F 03C0) |
distinct: allowed |
| S10 | alice with display name "Alice" |
aiice setting display name "AIice" |
0041 0049 0069 0063 0065 | both alice (0061 006C 0069 0063 0065) |
refused, address.too_similar with field: "name" |
| S11 | alice |
aiice (default display name) |
0061 0069 0069 0063 0065 | alice (0061 006C 0069 0063 0065); aiice (0061 0069 0069 0063 0065) |
distinct: allowed |
| S12 | anna2024 |
anna2o24 |
0061 006E 006E 0061 0032 006F 0032 0034 | both anna2o24 (0061 006E 006E 0061 0032 006F 0032 0034) |
address.too_similar (the digit zero and the letter o) |
| S13 | alice (default display name) |
aiice setting display name "AIice" |
0041 0049 0069 0063 0065 | both alice (0061 006C 0069 0063 0065) |
refused, address.too_similar with field: "name" |
| S14 | kate |
κατε (Greek) |
03BA 03B1 03C4 03B5 | kate (006B 0061 0074 0065); ĸaᴛꞓ (0138 0061 1D1B A793) |
distinct: allowed |
| S15 | kate |
κατε setting display name "ΚΑΤΕ" |
039A 0391 03A4 0395 | both kate (006B 0061 0074 0065) |
refused, address.too_similar with field: "name" |
| S16 | kate |
кате (Cyrillic) setting display name "КАТЕ" |
041A 0410 0422 0415 | both kate (006B 0061 0074 0065) |
refused, address.too_similar with field: "name" |
| S17 | kate |
ᏦᎪᎢᎬ (Cherokee) |
13E6 13AA 13A2 13AC | both kate (006B 0061 0074 0065) |
address.too_similar with field: "local" |
| S18 | alice (default display name); no entry allce |
alice setting its own display name "ALICE" |
0041 004C 0049 0043 0045 | alice; allce (0061 006C 006C 0063 0065) |
allowed: an entry never collides with itself |
| S19 | alice |
registration of aiice with display name "AIice" |
0041 0049 0069 0063 0065 | alice (0061 006C 0069 0063 0065); name key alice, local-part key aiice (0061 0069 0069 0063 0065) |
registration succeeds: only the display name collides, so the entry aiice gets its default display name; the returned Account name is aiice, not "AIice" (§5.3, §6.3) |
The collision keys of the reserved name admin are ckey("admin") = adrnin (0061 0064 0072 006E 0069 006E), ckey("Admin") = adrnin, and ckey("ADMIN") = adrnln (0061 0064 0072 006E 006C 006E).
13.4 Domain preparation (prepareDomain)
ASCII inputs are given as text. Inputs with non-ASCII characters also list their code points.
| # | Input | Result |
|---|---|---|
| D1 | SloppyVoice.COM |
sloppyvoice.com |
| D2 | Bücher.example (0042 00FC 0063 0068 0065 0072, then .example) |
xn--bcher-kva.example |
| D3 | SLOPPYVOICE.COM (FF33 FF2C FF2F FF30 FF30 FF39 FF36 FF2F FF29 FF23 FF25 FF0E FF23 FF2F FF2D) |
sloppyvoice.com |
| D4 | faß.de (0066 0061 00DF, then .de; nontransitional) |
xn--fa-hia.de |
| D5 | 例え。テスト (4F8B 3048 3002 30C6 30B9 30C8) |
xn--r8jz45g.xn--zckzah |
| D6 | xn--bcher-kva.example |
xn--bcher-kva.example |
| D7 | sloppyvoice.com. |
sloppyvoice.com |
| D8 | slöppyvoice.com (0073 006C 00F6, then ppyvoice.com) |
xn--slppyvoice-fcb.com |
| D9 | ΣΟΦΙΑ.gr (03A3 039F 03A6 0399 0391, then .gr) |
xn--mxaprpq.gr |
| D10 | -bad.com |
address.invalid_domain, idna |
| D11 | a..b |
address.invalid_domain, empty_label |
| D12 | 192.0.2.1 |
address.invalid_domain, ip_literal |
| D13 | localhost |
address.invalid_domain, single_label |
| D14 | under_score.com |
address.invalid_domain, idna |
| D15 | sloppyvoice.com:443 |
address.invalid_domain, port |
| D16 | sloppy voice.com |
address.invalid_domain, white_space |
| D17 | ␠␠ (two spaces) |
address.invalid_domain, empty |
| D18 | 1.2.3 |
address.invalid_domain, ip_literal |
| D19 | sloppyvoice.com.. |
address.invalid_domain, empty_label |
prepareDomain accepts special-use names such as .example (D2, D6), but discovery refuses them (02 §5.1, discovery.invalid_domain), so they never reach canonicalize's result. The vectors that go through discovery (§13.6, §13.7) use other names.
13.5 Lenient input parsing (parseInput followed by local and domain preparation)
defaultDomain is sloppyvoice.com where the input has no domain. These vectors stop before discovery.
| # | Input | Result |
|---|---|---|
| P1 | ␠␠PublicLobby@sloppyvoice.com␠␠ |
publiclobby @ sloppyvoice.com |
| P2 | @saxonjones@sloppyvoice.com |
saxonjones @ sloppyvoice.com |
| P3 | Saxon Jones@SloppyVoice.com |
saxonjones @ sloppyvoice.com |
| P4 | Saxon Jones @ sloppyvoice.com |
saxonjones @ sloppyvoice.com |
| P5 | Saxon Jones <saxonjones@sloppyvoice.com> |
saxonjones @ sloppyvoice.com |
| P6 | mailto:Saxon%20Jones@sloppyvoice.com?subject=hi |
saxonjones @ sloppyvoice.com |
| P7 | PublicLobby@sloppyvoice.com (fullwidth: FF30 FF55 FF42 FF4C FF49 FF43 FF2C FF4F FF42 FF42 FF59 FF20 FF53 FF4C FF4F FF50 FF50 FF59 FF56 FF4F FF49 FF43 FF45 FF0E FF43 FF4F FF4D) |
publiclobby @ sloppyvoice.com |
| P8 | PublicLobby@sloppyvoice.com. |
publiclobby @ sloppyvoice.com |
| P9 | (PublicLobby@sloppyvoice.com), |
publiclobby @ sloppyvoice.com |
| P10 | 200E, then PublicLobby@sloppyvoice.com, then 200F |
publiclobby @ sloppyvoice.com |
| P11 | Public Lobby |
publiclobby @ sloppyvoice.com (default domain) |
| P12 | @saxon |
saxon @ sloppyvoice.com (default domain) |
| P13 | sloppyvoice.com |
community sloppyvoice.com |
| P14 | @sloppyvoice.com |
community sloppyvoice.com |
| P15 | 田中 太郎@例え。テスト (7530 4E2D 0020 592A 90CE FF20 4F8B 3048 3002 30C6 30B9 30C8) |
田中太郎 (E7 94 B0 E4 B8 AD E5 A4 AA E9 83 8E) @ xn--r8jz45g.xn--zckzah |
| P16 | Σοφός Παπάς@Bücher.example (03A3 03BF 03C6 03CC 03C2 0020 03A0 03B1 03C0 03AC 03C2 0040 0042 00FC 0063 0068 0065 0072, then .example) |
σοφόσπαπάσ (CF 83 CE BF CF 86 CF 8C CF 83 CF 80 CE B1 CF 80 CE AC CF 83) @ xn--bcher-kva.example |
| P17 | a@b@c.com |
address.invalid, multiple_at |
| P18 | saxon with no default domain |
address.invalid, missing_domain |
| P19 | pаypal@x.com (0070 0430 0079 0070 0061 006C, then @x.com; Cyrillic а) |
address.invalid_local_part, mixed_script |
| P20 | saxon@sloppy voice.com |
address.invalid_domain, white_space |
| P21 | saxon@192.0.2.1 |
address.invalid_domain, ip_literal |
| P22 | <sloppyv://PublicLobby@sloppyvoice.com> |
the sloppyv URI sloppyv://PublicLobby@sloppyvoice.com (§8.2 step 9) |
| P23 | (https://sloppyvoice.com/j/PublicLobby). |
the share link https://sloppyvoice.com/j/PublicLobby (§8.2 step 9), then §11.4 |
| P24 | ␠␠ (white space only) |
address.invalid, empty |
| P25 | mailto:%FF@sloppyvoice.com |
address.invalid, invalid_utf8 |
13.6 canonicalize with aliases
Fixture. Two servers on one deployment (00 §3.4), a third server elsewhere, and DNS as follows. Discovery details (evidence, caching) are 02's and don't affect the results.
| Server | Base URL | canonicalDomain |
domains |
|---|---|---|---|
| S1 | https://chat.sloppyvoice.com/server |
sloppyvoice.com |
sloppyvoice.com, chat.sloppyvoice.com, xn--slppyvoice-fcb.com |
| S2 | https://chat.sloppyvoice.com/server2 |
guild.sloppyvoice.com |
guild.sloppyvoice.com |
| S3 | https://impostor.sloppyvoice.net/server |
sloppyvoice.com (a false claim) |
sloppyvoice.com, impostor.sloppyvoice.net |
_sloppyv TXT records point sloppyvoice.com, chat.sloppyvoice.com, xn--slppyvoice-fcb.com, stranger.sloppyvoice.net and oldalias.sloppyvoice.com (an alias that S1 has removed from domains) to S1, guild.sloppyvoice.com to S2, and impostor.sloppyvoice.net to S3.
| # | Input | defaultDomain |
address |
viaAlias |
Other |
|---|---|---|---|---|---|
| C1 | saxonjones@sloppyvoice.com |
— | saxonjones@sloppyvoice.com |
false | |
| C2 | Saxon Jones@Chat.SloppyVoice.com |
— | saxonjones@sloppyvoice.com |
true | |
| C3 | SaxonJones@SLÖPPYVOICE.com (Ö is 00D6) |
— | saxonjones@sloppyvoice.com |
true | typed domain xn--slppyvoice-fcb.com |
| C4 | sloppyv://PublicLobby@chat.sloppyvoice.com?invite=7KQ2M9XP4HRT |
— | publiclobby@sloppyvoice.com |
true | invite = 7KQ2M9XP4HRT |
| C5 | PublicLobby@guild.sloppyvoice.com |
— | publiclobby@guild.sloppyvoice.com |
false | server S2, a different community |
| C6 | chat.sloppyvoice.com |
— | (community) | true | domain = sloppyvoice.com |
| C7 | Σοφός Παπάς@chat.sloppyvoice.com (03A3 03BF 03C6 03CC 03C2 0020 03A0 03B1 03C0 03AC 03C2, then @chat.sloppyvoice.com) |
— | σοφόσπαπάσ@sloppyvoice.com (CF 83 CE BF CF 86 CF 8C CF 83 CF 80 CE B1 CF 80 CE AC CF 83 40 73 6C 6F 70 70 79 76 6F 69 63 65 2E 63 6F 6D) |
true | |
| C8 | Public Lobby |
sloppyvoice.com |
publiclobby@sloppyvoice.com |
false | |
| C9 | x@stranger.sloppyvoice.net |
— | discovery.domain_not_served |
stranger.sloppyvoice.net isn't in S1's domains |
|
| C10 | x@oldalias.sloppyvoice.com |
— | discovery.domain_not_served |
removed alias (§7.9) | |
| C11 | publiclobby@sloppyvoice.com |
— | publiclobby@sloppyvoice.com |
false | idempotence: the output of C4 |
| C12 | bob@impostor.sloppyvoice.net |
— | discovery.canonical_mismatch |
S3 claims sloppyvoice.com, which resolves to S1's base URL, not S3's (§7.2 step 5) |
|
| C13 | ꮳꮃꭹ@sloppyvoice.com (ABB3 AB83 AB79, then @sloppyvoice.com), on a client whose data (simulated) gives Cherokee the Identifier_Type Uncommon_Use; S1 holds the entry ᏣᎳᎩ |
— | ᏣᎳᎩ@sloppyvoice.com (E1 8F A3 E1 8E B3 E1 8E A9 40 73 6C 6F 70 70 79 76 6F 69 63 65 2E 63 6F 6D) |
false | prepareLocal fails locally with restricted_code_point; minimalPrepare gives ᏣᎳᎩ, and S1's lookup confirms it (§7.2 step 6) |
| C14 | As C13, but S1 holds no such entry | — | address.invalid_local_part, restricted_code_point |
the lookup answers 404, so the local failure stands |
The lookup in C13 works the same way on a server whose own data has been upgraded (simulated) so that Cherokee is no longer allowed: GET {base}/v1/addresses/%EA%AE%B3%EA%AE%83%EA%AD%B9 finds the grandfathered entry ᏣᎳᎩ by minimalPrepare and answers 200 (§9.2 step 4).
13.7 sloppyv URIs
Parsing (results after canonicalize against the fixture of §13.6; for xn--bcher-kva.sloppyvoice.net, assume a server whose canonical domain is that domain):
| # | URI | Result |
|---|---|---|
| U1 | sloppyv://PublicLobby@sloppyvoice.com |
publiclobby@sloppyvoice.com |
| U2 | SLOPPYV://PublicLobby@SloppyVoice.COM/ |
publiclobby@sloppyvoice.com |
| U3 | sloppyv:PublicLobby@sloppyvoice.com |
publiclobby@sloppyvoice.com (lenient form) |
| U4 | web+sloppyv://PublicLobby@sloppyvoice.com |
publiclobby@sloppyvoice.com |
| U5 | sloppyv://sloppyvoice.com?invite=7KQ2M9XP4HRT |
community sloppyvoice.com, invite 7KQ2M9XP4HRT |
| U6 | sloppyv://%CE%A3%CE%BF%CF%86%CF%8C%CF%82%CE%A0%CE%B1%CF%80%CE%AC%CF%82@xn--bcher-kva.sloppyvoice.net |
σοφόσπαπάσ@xn--bcher-kva.sloppyvoice.net |
| U7 | sloppyv://ΣοφόςΠαπάς@bücher.sloppyvoice.net (IRI; local part 03A3 03BF 03C6 03CC 03C2 03A0 03B1 03C0 03AC 03C2, first label 0062 00FC 0063 0068 0065 0072) |
σοφόσπαπάσ@xn--bcher-kva.sloppyvoice.net |
| U8 | sloppyv://Public%20Lobby@sloppyvoice.com |
publiclobby@sloppyvoice.com |
| U9 | sloppyv://PublicLobby@sloppyvoice.com?foo=1&invite=7KQ2M9XP4HRT |
publiclobby@sloppyvoice.com, invite 7KQ2M9XP4HRT; foo ignored |
| U10 | sloppyv://PublicLobby@sloppyvoice.com/ch:01938a11/x#top |
publiclobby@sloppyvoice.com; path and fragment ignored |
| U11 | sloppyv://PublicLobby@sloppyvoice.com?invite=A&invite=B |
address.invalid_link, duplicate_param |
| U12 | sloppyv://Public:Lobby@sloppyvoice.com |
address.invalid_link, userinfo_password |
| U13 | sloppyv://PublicLobby@sloppyvoice.com:8443 |
address.invalid_link, port |
| U14 | sloppyv://%FF@sloppyvoice.com |
address.invalid_link, invalid_utf8 |
| U15 | sloppyv://sloppyvoice.com?invite= |
address.invalid_link, bad_invite (empty) |
| U16 | sloppyv://PublicLobby@chat.sloppyvoice.com |
publiclobby@sloppyvoice.com (alias) |
| U17 | slopyv://PublicLobby@sloppyvoice.com |
address.invalid_link, scheme |
| U18 | sloppyv://sloppyvoice.com?invite=7kq2-m9xp-4hrt |
community sloppyvoice.com, invite 7kq2-m9xp-4hrt, passed unchanged; 09 §8.2 normalizes it to 7KQ2M9XP4HRT on redemption |
| U19 | sloppyv://sloppyvoice.com?invite=bad%2Fcode |
community sloppyvoice.com, invite bad/code; 09 treats it as an unknown code on redemption (invite.not_found) |
Generation (§10.3):
| # | Target | Display name | Invite | URI form | IRI form |
|---|---|---|---|---|---|
| G1 | publiclobby@sloppyvoice.com |
Public Lobby | — | sloppyv://PublicLobby@sloppyvoice.com |
same |
| G2 | publiclobby@sloppyvoice.com |
Public Lobby | 7KQ2M9XP4HRT |
sloppyv://PublicLobby@sloppyvoice.com?invite=7KQ2M9XP4HRT |
same |
| G3 | σοφόσπαπάσ@sloppyvoice.com |
Σοφός Παπάς | — | sloppyv://%CE%A3%CE%BF%CF%86%CF%8C%CF%82%CE%A0%CE%B1%CF%80%CE%AC%CF%82@sloppyvoice.com |
sloppyv://ΣοφόςΠαπάς@sloppyvoice.com |
| G4 | community sloppyvoice.com |
— | 7KQ2M9XP4HRT |
sloppyv://sloppyvoice.com?invite=7KQ2M9XP4HRT |
same |
| G5 | saxonjones@sloppyvoice.com |
(fails the check, so ignored) | — | sloppyv://saxonjones@sloppyvoice.com |
same |
| G6 | 田中太郎@xn--r8jz45g.xn--zckzah |
田中 太郎 | — | sloppyv://%E7%94%B0%E4%B8%AD%E5%A4%AA%E9%83%8E@xn--r8jz45g.xn--zckzah |
sloppyv://田中太郎@例え.テスト |
13.8 Share links
Expansion (§11.2):
| # | links.join |
local |
domain |
invite |
Share link |
|---|---|---|---|---|---|
| H1 | https://sloppyvoice.com/j{/local}{?invite} |
PublicLobby |
sloppyvoice.com |
— | https://sloppyvoice.com/j/PublicLobby |
| H2 | same | PublicLobby |
sloppyvoice.com |
7KQ2M9XP4HRT |
https://sloppyvoice.com/j/PublicLobby?invite=7KQ2M9XP4HRT |
| H3 | same | (undefined: a community) | sloppyvoice.com |
7KQ2M9XP4HRT |
https://sloppyvoice.com/j?invite=7KQ2M9XP4HRT (not …/j/?invite=…) |
| H4 | same | ΣοφόςΠαπάς |
sloppyvoice.com |
— | https://sloppyvoice.com/j/%CE%A3%CE%BF%CF%86%CF%8C%CF%82%CE%A0%CE%B1%CF%80%CE%AC%CF%82 |
| H5 | https://chat.sloppyvoice.com/join/{domain}{/local}{?invite} (S2's template) |
PublicLobby |
guild.sloppyvoice.com |
— | https://chat.sloppyvoice.com/join/guild.sloppyvoice.com/PublicLobby |
The page at H2 answers with Link: <sloppyv://PublicLobby@sloppyvoice.com?invite=7KQ2M9XP4HRT>; rel="alternate", Access-Control-Allow-Origin: * and Access-Control-Expose-Headers: Link.
Pages for unknown and hidden targets (§11.3 item 4), for S1 with the template of H1, where secretroom is a channel hidden from anonymous requesters and nobodyhere names nothing:
| # | URL | Status | Link |
|---|---|---|---|
| H6 | https://sloppyvoice.com/j/secretroom?invite=7KQ2M9XP4HRT |
200 | <sloppyv://secretroom@sloppyvoice.com?invite=7KQ2M9XP4HRT>; rel="alternate" |
| H7 | https://sloppyvoice.com/j/nobodyhere?invite=7KQ2M9XP4HRT |
200 | <sloppyv://nobodyhere@sloppyvoice.com?invite=7KQ2M9XP4HRT>; rel="alternate" (the same shape as H6) |
| H8 | https://sloppyvoice.com/j/secretroom |
404 | none |
| H9 | https://sloppyvoice.com/j/nobodyhere |
404 | none (the same as H8) |
Recognition by template match (§11.4), against the fixture of §13.6, with S1's template from H1 and S2's from H5:
| # | Pasted URL | Result |
|---|---|---|
| M1 | https://sloppyvoice.com/j/PublicLobby?invite=7KQ2M9XP4HRT |
Host sloppyvoice.com resolves to S1; S1's template matches: target PublicLobby at sloppyvoice.com, invite 7KQ2M9XP4HRT |
| M2 | https://chat.sloppyvoice.com/join/guild.sloppyvoice.com/PublicLobby |
Host chat.sloppyvoice.com is the host of S2's base URL; S2's template matches with domain = guild.sloppyvoice.com, which canonicalizes to S2: target PublicLobby at guild.sloppyvoice.com |
| M3 | https://sloppyvoice.com/j?invite=7KQ2M9XP4HRT |
S1's template matches with local undefined: the community sloppyvoice.com, invite 7KQ2M9XP4HRT |
| M4 | https://sloppyvoice.com/j/PublicLobby, when S3 publishes the template https://sloppyvoice.com/j{/local}{?invite} |
S3's template is never tried: sloppyvoice.com is neither the host of S3's base URL nor a domain that resolves to S3. The result is M1's target on S1, never publiclobby@ S3 |
13.9 Protocol sort order
Sorted by the UTF-8 octets of the canonical address (§7.10):
alice2@a.com(61 6C 69 63 65 32 40 …)alice@a.com(61 6C 69 63 65 40 …)bob@b.comzoe@x.orgzoë@x.org(… 6F C3 AB …, afterzoebecause 0xC3 > 0x65)иван@b.com(D0 B8 …)王小明@b.com(E7 8E 8B …)
For the 1:1 DM hosting rule (D-048), a DM between alice@a.com and alice2@a.com has P1 = alice2@a.com.
14. Summary of decisions and limits
14.1 Proposed decisions
| ID | Decision | Section |
|---|---|---|
| AD-1 | Case-mapping rule is Unicode full default case folding; the only additional mapping is U+0130 → U+0049. Confirmed by the owner (D-092). | §3.1 |
| AD-2 | Local parts are letters, combining marks and decimal digits with Identifier_Type Recommended, Inclusion or Limited_Use; no separators. Confirmed by the owner (D-092). | §3.3 |
| AD-3 | Local part ≤ 64 octets; display name ≤ 128 octets; registration minimum ≤ 3 code points, default 2. | §3.6 |
| AD-4 | Address domains have at least two labels, no port, no IP literal. | §4.1 |
| AD-5 | The confusable collision check uses the case-insensitive key ckey and covers display names as well as local parts; reserved names add titlecase and uppercase keys. |
§5.3 |
| AD-6 | Local parts of users and bots never change in v1. Channels can be renamed; the old local part is reserved for the channel for 90 days, then quarantined. | §5.6 |
| AD-7 | Deleted user and bot names are quarantined for 365 days; deleted channel names are quarantined against user and bot registration for 365 days but can be reused as channels at once. Reserved names revert to reserved after quarantine. |
§5.7 |
| AD-8 | Receivers check only version-stable properties of canonical addresses, and display names with linkPrepare only; only the registering server runs the full profile. |
§7.5, §6.4 |
| AD-9 | sloppyv URI shape; one invite parameter, opaque to this document (09 owns its format); unknown parts ignored; web+sloppyv accepted. |
§10.4 |
| AD-10 | links.join is an RFC 6570 template with local, domain, invite and a literal host bound to its server by discovery; share-link pages carry a CORS-readable Link: rel="alternate" to the sloppyv URI; clients match a URL only against the template of the server its host belongs to. |
§11.2, §11.4 |
| AD-11 | The address lookup is public; a miss carries availability data. | §9.4 |
| AD-12 | Base Unicode version 16.0.0; existing names are grandfathered on upgrades. | §5.8 |
| AD-13 | Reserved local parts in classes P, A and C; class A and C names are free for channels. | §5.4 |
| AD-14 | Lookups by local part use minimalPrepare; canonicalize confirms locally rejected names with the owning server. |
§7.2, §9.2 |
14.2 Limits and timers
| Item | Value | Section |
|---|---|---|
| Prepared local part | 1 code point (a letter) to 64 UTF-8 octets | §3.6 |
Raw input to prepareLocal |
≤ 256 code points | §3.2 |
Raw input to parseInput |
≤ 1,024 code points | §8.2 |
| Registration minimum (server policy) | default 2 code points, at most 3 | §3.6 |
| Display name | ≤ 128 UTF-8 octets | §6.2 |
| Domain | ≤ 253 octets, labels ≤ 63 octets, ≥ 2 labels | §4.1 |
| Combining marks in a row | ≤ 4 | §3.4 |
| Invite value in a link | 1 to 64 code points after percent-decoding; format and normalization by 09 §8.2 | §10.2 |
| Deleted-address quarantine | 365 days | §5.7 |
| Rename reservation of a channel's old local part | 90 days, then quarantine until 365 days after the rename | §5.6 |
Collision-key rounds (ckey) |
at most 3 | §5.3 |
| Lookup rate limit, anonymous | at least 30 per minute per IP; by default at most 120 | §9.6 |
| Lookup response cache | private, max-age=60 and Vary: Authorization (200); no-store (404, 410) |
§9.3, §9.4 |
| Client debounce for live checks | ≥ 300 ms | §8.3 |
| Share-link fetch | HTTPS only, ≤ 3 redirects, 5 s timeout, ≤ 64 KiB | §11.4 |
| Share-link page cache | max-age ≤ 60 s |
§11.3 |
| Share-link page CORS | Access-Control-Allow-Origin: *, Access-Control-Expose-Headers: Link |
§11.3 |
| Share-link page security headers | CSP, nosniff, no-referrer, HSTS ≥ 1 year | §11.3 |
15. Security considerations
Document 22 holds the whole-system threat model. The points below are specific to addresses, names and links.
- Confusable local parts on one server. The UTS #39 Highly Restrictive script rule (§3.5, D-092) stops mixed-script spoofs such as
pаypalwith a Cyrillic а; the combinations of Latin with Han, Kana, Bopomofo or Hangul that it allows (§3.5.1) remain subject to the collision check. The collision check (§5.3) stops whole-script and character-level lookalikes such asѕсореandpaypa1within one server's namespace. Its key folds case, so a Cherokee local part such asᏦᎪᎢᎬ, whose letters look like the Latin capitals ofkate, is caught too. The checks are only as good as UTS #39 data: some visually close pairs aren't inconfusables.txt(for examplesaxonand an all-Cyrillicѕахоп, where the п maps to π), and fonts differ. Clients must not present a name as proof of identity in secure DMs: identity pins and verification (07) are the real defence there. - Impersonation through display names. The linkage rule (§6.1) and the receiver check (§6.4) mean a display name can never show letters that aren't in its local part. The case-insensitive collision keys of local parts and display names (§5.3, AD-5) close the gaps left by capitalization: a capital I next to a small l ("AIice"), and capitals of another script that look like Latin ones (Greek "ΚΑΤΕ" next to
kate). They protect a name whether or not its holder has set a display name. Some lookalikes remain where confusable data has no entry, and false positives can refuse an all-capital display name (§5.3). A malicious server can send any display name, but receivers drop names that fail the check and show the local part instead (§6.5); they also normalize white space, so a name can't be padded to push the domain out of view (§6.4). - Lookalikes on other servers. A server can't check names on other servers.
alice@evil.examplecan call itself "Alice". The defence is that the domain is shown whenever it differs from the context domain (§4.4, D-031), and always in profiles, warnings, verification screens, link previews and message requests. U-labels are shown only when they pass §4.3, which stops whole-script lookalike domains such as an all-Cyrillicаррӏе. - Bidi spoofing. Bidi controls and other invisible characters can't appear in local parts or display names (§3.3, §6.4), and clients isolate addresses and names when they show them (§6.8). An attacker therefore can't make an address render in a misleading order or hide part of it.
- Alias spoofing. Only a domain listed in a server's
domainsis accepted for that server (D-002, 02), so a stranger can't point their domain at someone else's server to create addresses there. Signed objects must name canonical domains, and verifiers reject aliases (§7.5, §7.6), so an alias can't be used to create a second identity for the same account or to dodge a block (blocks are keyed by canonical domain, 06). Without DNSSEC, an attacker who controls DNS for an alias domain can redirect links that use it; the limits of discovery are covered in 02 and 00 §6 HP-7. Generating links only with the canonical domain (§10.3, §11.2) keeps alias links rare. A server can't claim someone else's canonical domain:canonicalizeaccepts acanonicalDomainonly after it resolves back to the same server (§7.2 step 5, 02 §5.3), sobob@evil.examplecan never be shown asbob@sloppyvoice.com. - Re-registered alias domains. A domain that a server drops from its aliases can be bought by someone else and pointed at another server, which then receives old links that used it. Only unresolved links are affected, because clients store canonical forms (§7.4). §7.9 asks operators to keep an alias for at least a year after its last link and to keep the domain registered after removing it.
- Namespace squatting. Anyone allowed to sign up can take a name first. The reserved registry (§5.4) protects names people trust by default (
admin,support,security), protocol names (me,everyone) and common channel names (general,rules) from early sign-ups; servers should add their brand names and local-language equivalents. The confusable check also stops squatters from taking lookalikes of existing names. Registration-policy hooks (§5.4) let operators refuse offensive or misleading names. Because account local parts never change (AD-6), an operator who has to take a name back must delete the account, which starts the quarantine. Collision keys are first come, first served: a squatter who registers a lookalike first, or sets a lookalike display name first, blocks the real name exactly as registering it would. Operators handle such squats with the same tools. - Address reuse. A deleted address that is registered again could receive messages, invites or trust meant for the previous holder. The 365-day quarantine (§5.7) gives caches, pins and other servers time to learn of the deletion, and the rule that a reused address is a new principal stops servers and clients carrying state over. Every server recognises the new holder by its new incarnation, even one that missed
account.deleted(§5.7, 06 §11.6, D-086). Every DM contact, with or without encryption, sees W2's new-account wording in their 1:1 DM, which 12 restarts as a new conversation with no access to the earlier one (07 §16.8, 12 §6.4). Bans carry over to the new holder (§5.7). - Links as an attack vector. A link can come from anyone, so activating one never changes state without one explicit tap (§10.5). That stops a link from silently joining a person to an insecure community, starting a call, or sending a DM request. Previews always show the domain. Strict parsing of the
inviteparameter (duplicate parameters are rejected) prevents ambiguity about which invite is redeemed. - Share-link pages and privacy. Share-link pages must not track visitors or link visits to sign-ups, and carry headers that stop framing, MIME sniffing and referrer leaks (§11.3 items 6 and 10), and the protocol keeps no deferred-join state (§11.6). Clients fetch a pasted share link only when the person explicitly pastes or opens it, without credentials or cookies, with bounded redirects, time and size (§11.4), which limits server-side request forgery and IP disclosure to the operator the person chose to contact. Share-link pages answer unknown and hidden targets identically (§11.3 item 4), so they don't reveal hidden channels.
- Share-link templates as a spoofing vector. A server's
links.joinis its own claim. A client matches a pasted URL only against the template of the server that the URL's host belongs to, decided by discovery (§11.4 step 1), and generates links only from a template whose host discovery binds to the target's server (§11.2), so no server can make another server's share links open its own look-alike target or publish links on another server's host. - Enumeration. The address lookup (§9) and registration both reveal whether a name exists. That is inherent in addresses that people share. Rate limits (§9.6),
no-storeon misses, and hidden channels answering exactly like unseen names limit bulk enumeration and avoid leaking hidden channels. The lookup reveals nothing beyond kind, display name and, for visible channels, thectx, kind and security mode. - Unicode version skew. Different implementations will use different Unicode versions. Because canonical forms rest only on case folding and NFC, which are stable, and receivers run only the stable checks (§7.5, AD-8), a version difference can never make an existing address fail verification or split one identity into two. Lookups and
canonicalizefind grandfathered names by their version-stable form and ask the owning server before rejecting a name (§7.2, §9.2, AD-14), and display names are checked without version-dependent data (§6.4). The cost is that a client with older data may show a newer character as a placeholder glyph, and may fall back to the local part for a display name that uses characters unassigned in its data (§6.5). - Resource use. Every algorithm in this document runs in time linear in its input, and inputs are bounded (§14.2). Servers must still rate-limit lookups and registration attempts, because each registration attempt consults the collision index.
- Insecure contexts. In insecure contexts the servers involved can show any name they like to their own users through their own software (00 §5.1). The receiver check protects only conforming clients against non-conforming servers; it does not make insecure contexts secure.
16. Open questions
Items that need the owner's decision, or that the lead should settle across documents.
| ID | Question | Recommendation |
|---|---|---|
| OQ-1 | Display names may only add spaces and capitalization (D-005). Should a small set of display-only punctuation, such as the hyphen and the apostrophe, also be allowed, so people can show names like "Mary-Jane" and "O'Brien"? They would be removed like spaces, so the local part and impersonation protection stay the same. | Keep spaces only in v1, as the owner specified. Revisit for a minor version if users ask: adding characters that are removed like spaces is backward compatible for senders but would make older receivers fall back to the local part for those names. |
| OQ-2 | Should people be able to change their account address (not just its capitalization and spacing)? AD-6 says no in v1 for users and bots; channels can be renamed. | No in v1. A rename would change every certificate, pin, DM ID, membership and link keyed by the canonical address; for secure accounts it is an identity reset. A later version could add an explicit "moved to" record. |
OQ-3 (address reuse after a missed deletion) was settled by the owner on 2026-12-04 with D-086: every account has an incarnation, and records are keyed on (address, incarnation) (§5.7).
OQ-4, OQ-5 and OQ-6 were answered by the owner on 2026-12-04 and have been removed (D-092): the script rule is that of UTS #39 Highly Restrictive, including Latin with Han and Kana, with Han and Bopomofo, and with Han and Hangul (§3.5.1); case mapping is Unicode full default case folding with the single additional mapping U+0130 → U+0049 (AD-1, §3.1); and Limited_Use scripts such as Cherokee, N'Ko and Adlam are allowed (AD-2, §3.3).
17. References
17.1 Normative
- RFC 2119, RFC 8174 — requirement key words
- RFC 3629 — UTF-8
- RFC 3986 — URI generic syntax
- RFC 3987 — Internationalized Resource Identifiers (IRIs)
- RFC 5234 — ABNF; RFC 7405 — case-sensitive string support in ABNF
- RFC 5890, RFC 5891, RFC 5892 — IDNA2008 definitions, protocol and code points (including the CONTEXTO rules)
- RFC 5893 — Right-to-left scripts for IDNA (the Bidi Rule)
- RFC 6570 — URI Template
- RFC 6901 — JSON Pointer
- RFC 7493 — I-JSON; RFC 8259 — JSON
- RFC 8264 — PRECIS framework (IdentifierClass, derived property values, order of operations)
- RFC 8265 — PRECIS usernames (UsernameCaseMapped)
- RFC 8288 — Web Linking (
Linkheader,alternaterelation) - RFC 9457 — Problem details for HTTP APIs
- The Unicode Standard, Version 16.0.0 — including §3.13 (default case folding) and the Unicode Character Database (
CaseFolding.txt,PropList.txt,DerivedCoreProperties.txt,Scripts.txt,ScriptExtensions.txt,UnicodeData.txt) - Unicode Standard Annex #9 — Unicode Bidirectional Algorithm (isolates)
- Unicode Standard Annex #11 — East Asian Width (width mapping)
- Unicode Standard Annex #15 — Unicode Normalization Forms
- Unicode Standard Annex #24 — Unicode Script Property
- Unicode Technical Standard #39 — Unicode Security Mechanisms, version 16.0.0 (skeleton, restriction levels, mixed numbers, Identifier_Type,
confusables.txt) - Unicode Technical Standard #46 — Unicode IDNA Compatibility Processing, version 16.0.0
- Unicode Character Encoding Stability Policy (case folding and normalization stability)
spec/00-overview.md— conventions (§7), security model (§4), HP-8spec/02-discovery.md— discovery, ServerMetadata (canonicalDomain,domains,links.join),discovery.*errorsspec/03-transport.md— HTTP rules, error object and registry, rate limits
17.2 Informative
- RFC 5322 — Internet Message Format (the
name <address>form) - RFC 6068 — The
mailtoURI scheme - RFC 6943 — Issues in identifier comparison for security purposes
- RFC 7595 — Guidelines and registration procedures for URI schemes
- Unicode Standard Annex #31 — Unicode Identifiers and Syntax
- Unicode Technical Standard #10 — Unicode Collation Algorithm
- WHATWG HTML Living Standard —
registerProtocolHandlerand theweb+scheme prefix - WHATWG URL Living Standard — URL parsing in browsers
- Apple universal links and Android app links documentation — associating web links with apps
spec/DECISIONS.md— decision logspec/05-accounts-auth.md(sign-up, deletion,account.deleted, profiles),spec/06-federation.md(HomeAssertion, S2S tokens, blocks),spec/07-identity.md(identity objects, pins, safety numbers),spec/09-communities-channels.md(channels, invites, secure-state pins),spec/10-roles-moderation.md(bans, audit log),spec/11-messaging-attachments.md(mentions),spec/12-direct-messages.md(DM hosting rule and IDs),spec/13-mls-profile.md(group_id,sv_participants),spec/19-notifications-push.md(notification records),spec/20-client-requirements.md(presentation and link UX),spec/22-security-considerations.md(threat model)