Skip to main content

Intuition Identifier

Version: V2
View Markdown

The Intuition Identifier (IID) is an identifier you compute rather than request. Take the facts you have about a thing, run them through the published procedure and you get a string such as int:isbn:9780684832722. Anyone else with the same facts gets the same string, without a registry to ask and without coordinating with you. The specification states the requirement directly: two independent actors working from the same facts must derive byte-identical identifiers. IID spec §0.1

The IID is the identity layer of Intuition. It decides how atoms are named so that contributions from independent applications converge on the same entity instead of scattering across near-duplicates. It is published as a standalone, MIT-licensed specification because any system that accepts descriptions of the world from more than one source has the same problem. Specification repository

Anatomy of an IID​

Every IID has three parts separated by the first two colons.

PartExampleMeaning
PrefixintAlways int. It marks the string as an Intuition Identifier.
SchemeisbnThe registered kind of identifier. The scheme owns the rules for valid values and their canonical spelling.
Value9780684832722The canonical value. A generic parser treats it as opaque, even when it contains further colons.
IIDWhat it names
int:isbn:9780684832722One edition of one book, through a registered authority
int:wd:Q25188The film Inception, through its Wikidata item
int:caip10:eip155:1:0xd8da6bf26964af9d7eed9e03e53415d37aa96045An Ethereum account, through its own address
int:gen1:movie:r4:fb681afe7d438cad73ae90a70f1cc55aThe facts "Inception, 2010" for a movie, derived because no stronger identifier was supplied

The strength of each identifier is visible in its scheme. A registry-backed ISBN and a hash derived from a title are both valid IIDs. Only the first is unique by construction. IID spec §3.2

Design principles​

The specification rests on five tenets. Every rule in the later chapters follows from one of them. IID spec §0.3

  1. Hashing does not create identity. A hash preserves whatever uniqueness its input had. Hashing the name "Nirvana" yields one string for every band with that name.
  2. Ambiguity must be honest. When the facts cannot tell two things apart, their identifiers collide. The specification never invents a disambiguator.
  3. Identity inputs are intrinsic. An identifier never includes the free-text name of a related entity, such as an album's artist.
  4. Canonicalization is pure and offline. No network, clock, locale, configuration or randomness. Lookups such as following redirects belong to enrichment, before derivation.
  5. Rules are frozen and versions are additive. A ratified rule is never edited. Improvements ship as new schemes or a new derivation version.

The specification governs identity, not interpretation. It fixes which string names a thing. Which vocabulary an application maps that thing into, and how it renders or reasons about it, stays with each application. IID spec §0.2

How the IID fits into Intuition​

An IID names an entity. An atom stores bytes, and its atom ID is derived from all of those bytes. A bare anchor atom stores only the IID text. A richer atom embeds the same IID inside a JSON payload. Both carry one IID, but they have different atom IDs. Compare IIDs to find atoms about the same entity, and compare atom IDs to find the same atom. See The Intuition Identifier and Representation profiles.

An IID is a claim of identity, not a certificate. Anyone can create an atom carrying any IID, including the wrong ISBN for a book. Correctness is established above this layer, the same way as every other claim in Intuition: through attestation and stake. IID spec §0.4

Deterministic identifiers collapse most duplicates automatically. Two correct identifiers from different schemes, such as a Wikidata item and an ISNI for the same band, still produce two atoms. A sameAs claim joins them, and applications decide which claims to accept. See sameAs and identity linking. IID spec §8.2

Explore the specification​

You want to…Read
Parse, validate or compare an IIDGrammar and comparison
Understand why some identifiers are stronger than othersIdentity classes and openness tiers
Normalize text before hashingNORM-1 normalization
Derive an identifier when no registry covers the thingThe gen1 scheme
Look up the rules for one schemeScheme catalog
Choose which identifier to mint for an entity typeEntity types and identity ladders
Test an implementation against the published vectorsConformance and test vectors
Propose a scheme, a ladder change or a fixGovernance and contributing

The concept pages show the same rules applied to Intuition data. Schemes and canonical form, The identity ladder, Representation profiles and The IID registry each work through a recording example.

Chapter map​

Each chapter of the canonical specification has a home in these docs.

ChapterTopicCovered in
§0 OverviewPurpose, scope, tenets, the core claimThis page
§1 ConformanceConformance classes, versioning, stabilityConformance and test vectors
§2 GrammarSyntax, parsing, comparisonGrammar and comparison
§3 Identity classesClasses A, B and C, openness tiersIdentity classes
§4 NormalizationThe frozen NORM-1 algorithmNORM-1 normalization
§5 Identity laddersSelecting the identifier for an entityEntity types and identity ladders
§6 gen1Derived identifiersThe gen1 scheme
§7 Representation profilesHow much data travels with the IIDRepresentation profiles
§8 EquivalenceClustering and canonical electionsameAs and identity linking
§9 Registry governanceAdmission, the freeze rule, change processGovernance and contributing

Status and implementations​

The specification is at version 0.1.0, Draft. The grammar, the class system, NORM-1, gen1 and the representation profiles are stable and in production use within Intuition. Scheme canonicalization rules are frozen under the freeze rule. The specification has not been submitted to a standards body. IID spec §1.6

@0xintuition/iid is the TypeScript reference implementation. It validates, canonicalizes and derives IIDs, and every published test vector runs against it. @0xintuition/iid-spec packages the specification text and registry data for code. The packaged copy carries pre-publication amendments, which the scheme catalog describes. These pages follow the canonical repository at the pinned revision in the release manifest. Implementations

Applies to V2 · @0xintuition/iid-spec 0.1.0 · @0xintuition/iid 0.1.1