Schemes and canonical form
A scheme owns the rules for one kind of identifier. It defines which raw values are acceptable, how to spell them canonically and what they identify. Once the scheme has produced a canonical IID, equality is a byte-for-byte comparison.
Builds on: The Intuition Identifier.
Implemented by: iid-spec, iid.
How it works
Split an IID at the first two colons. The prefix is exactly int:. A registered scheme name contains 1–32 lowercase ASCII letters, digits or hyphens. Its value contains 1–220 visible ASCII characters, including any further colons. The entire IID is limited to 256 bytes. Reject unknown schemes. IID spec §2.2 · IID spec §2.3
| Class | Source of identity | Example |
|---|---|---|
| A | An authority assigns the value. | An ISRC names a recording. |
| B | The entity supplies an intrinsic key. | A content digest identifies file bytes. |
| C | A gen1 recipe uses the available facts. | A title alone can match several recordings. |
Within Class A, T1 is an open standard with offline format validation, T2 is a community registry with open data, and T3 is a proprietary registry. Ladders prefer T1 and T2 over T3. These tiers describe access and verifiability. IID spec §3.2 · IID spec §3.3
Apply the scheme’s canonicalization rules. For text in a gen1 recipe, NORM-1 first applies Unicode NFKC, folds punctuation, applies full Unicode case folding, then trims and collapses whitespace. Accents survive. Scheme-specific values can be case-sensitive. IID spec §4.2 · IID spec §4.6
The package accepts typed wd values and adds the apple-podcasts, letterboxd and podcast-index schemes. Both sources define weak acct handles. Because handles can change owners, the package requires at least P1 for them. This changes P0 eligibility while preserving the canonical identifier bytes. The packaged copy also omits §7.8 and differs in chapters 00, 01, 04, 05 and 09. Canonical account scheme · Packaged amendments
Example
To canonicalize an ISRC, remove hyphens, spaces and dots, convert letters to uppercase, then validate the format. The canonical vectors us-sm1-00-07459 and US SM1 00 07459 both yield int:isrc:USSM10007459. The shorter USSM1000745 fails validation. A successful format check cannot establish that the issuing authority assigned the code to a particular recording. ISRC scheme and test vectors
By comparison, the text recipe maps " Inception " to "inception". These are normalization steps on inputs. Compare the final IIDs exactly as emitted. IID spec §2.4
Common mistakes
- Splitting
int:hash:sha256:…at every colon. The value starts atsha256:. - Lowercasing an entire IID or stripping accents from all names. Both can change which values compare equal.
- Inferring a
sameAsclaim from a spelling match. A real-world identity claim needs its own evidence.
Next
Use The identity ladder to select the strongest usable scheme. Use The IID registry to interpret the resulting value.
Applies to V2 · @0xintuition/iid-spec 0.1.0 · @0xintuition/iid 0.1.1