Skip to main content

The identity ladder

Version: V2
View Markdown

An identity ladder is an entity type’s ordered list of ways to identify one of its members. Start at the strongest rung for which all required facts are valid. A registered identifier can distinguish recordings with the same title. A fallback recipe based only on that title gives the same result for both.

Builds on: Schemes and canonical form.

Implemented by: iid-ladder, iid.

How it works​

For each scheme rung, extract the input and apply that scheme’s canonicalization rules. Missing or invalid values let the next rung try. A gen1 rung requires every field in its recipe. If no rung can fire, deriveIntuitionId returns undefined. IID spec §5.2 · Derivation implementation

A gen1 IID carries the classification slug, a stable recipe tag and the first 16 bytes of the Keccak-256 digest. The hashed input contains the slug and normalized recipe fields. The tag identifies the recipe even if its position in the ladder changes. A P1 payload carries the evidence needed to repeat the derivation. IID spec §6.3 · IID spec §6.6

For provider imports, projectIdentifierLadder in the ladder package takes strong identifiers, provider identifiers and a canonical URL. It returns a selected IID or an envelope fallback with iid: null and a reason. Its fallback is distinct from deriving a classification’s gen1 recipe. Projection ladder

Example​

Follow the recording ladder for three possible catalog rows.

Available evidenceFirst usable rung
A valid ISRC and a MusicBrainz recording referenceThe ISRC identifies the recorded performance.
An invalid ISRC and a valid MusicBrainz recording reference in sameAsThe second rung selects the recording’s MusicBrainz ID.
Only the title “Night train”The gen1 recipe tagged r3 uses the normalized title. Another recording called “Night train” gets the same weak IID.

Artist credit and album title are useful catalog fields. Neither enters this name-only recipe. Canonical music recording ladder

Common mistakes​

  • Adding a timestamp to distinguish two name-only matches. This breaks repeatability. Keep the ambiguity visible until stronger evidence arrives.
  • Replacing an old atom’s bytes when you discover an ISRC. A stronger identifier can be represented separately and linked to the earlier atom.

Next​

See how Classifications and Creation Profiles tell a recording form which fields to collect and which identity ladder to use.

Applies to V2 · @0xintuition/iid-ladder 0.1.1 · @0xintuition/iid 0.1.1