For developers

Build on the RSM ID contract

RSM Core owns the identity types, grammar, registry contracts, resolver interfaces, and conformance fixtures. Applications consume them. This page maps each part to the section that defines it, and says plainly what has been built.

Specified, not deployed

The protocol is defined (Document 08) and a reference implementation is designed (Document 09); both are proposed. No registry, resolver, or public API is operating. The proposed host rsmid.org serves only this explanatory website, which exposes no API. Code listings in Document 09 are interface shapes, not released software.

Implementation contract

Eight logical modules

Defined by Doc 08 §12.1 (Document 08 v1.1.2, section 12.1. Required modules). The names describe logical modules, not a required repository layout; every language implementation shares one grammar and one set of test vectors.

Two documents, two kinds of rule

Normative contract versus reference implementation

Document 08 states what every conforming implementation must do. Document 09 proposes one way to build it, subject to Document 08. Build to the left column; treat the right as a design you may adapt.

What Document 08 requires, beside what Document 09 proposes
TopicNormative — Document 08Reference implementation — Document 09
RIDGrammar, 16-character default suffix from 80 random bits, exact-equality comparison, non-reuse. Doc 08 §3.1 (Document 08 v1.1.2, section 3.1. Canonical syntax) · Doc 08 §3.5 (Document 08 v1.1.2, section 3.5. Immutability and non-reuse)Go value types with validated constructors; a candidate generator that does not by itself guarantee uniqueness. Doc 09 §5 (Document 09 v1.2.0, section 5. Go reference interfaces) · Doc 09 §6.2 (Document 09 v1.2.0, section 6.2. Candidate generator)
RRN and RSNCanonical ASCII ABNF with bounded segments, exact byte comparison, and no case folding or decoding; kinds from a versioned registry; an RSN is an RRN whose kind is exactly space. Doc 08 §2.4 (Document 08 v1.1.2, section 2.4. RSN — RSM Space Name) · Doc 08 §18.2 (Document 08 v1.1.2, section 18.2. Canonical RRN grammar and validation) · Doc 08 §18.3 (Document 08 v1.1.2, section 18.3. Resource-kind registry)Separate rid, rrn, and rsn packages with no network or SQL dependencies, plus naming/abnf and naming/kinds; ParseRRN kept apart from ValidateRegisteredRRN. Doc 09 §3.2 (Document 09 v1.2.0, section 3.2. Layering) · Doc 09 §15.1 (Document 09 v1.2.0, section 15.1. Suggested package and contract additions)
RegistryFour logical registries, minimum Identity Record contents, authenticated administration, and auditable delegation. Doc 08 §5.2 (Document 08 v1.1.2, section 5.2. Registry hierarchy) · Doc 08 §5.3.1 (Document 08 v1.1.2, section 5.3.1. Canonical OpenRSN Identity Record)A representative SQLite schema — explicitly incomplete — with one active binding per resource. Doc 09 §4.1.1 (Document 09 v1.2.0, section 4.1.1. OpenRSN Identity Record mapping) · Doc 09 §4.3 (Document 09 v1.2.0, section 4.3. Representative SQLite migration)
ResolutionThe logical sequence and the eight typed statuses; GET and HEAD reserved at rsmid.org/<rid>; versioned identity APIs, with RRN lookup by query parameter, never as a path segment. Doc 08 §6.3 (Document 08 v1.1.2, section 6.3. Logical resolution sequence) · Doc 08 §6.8 (Document 08 v1.1.2, section 6.8. Resolution statuses) · Doc 08 §18.5 (Document 08 v1.1.2, section 18.5. Resolution input and HTTP routing)A route table (/v1/identities, /v1/names/resolve, /readyz …), a resolver sequence across prefix registry, identity registry, and Locus, and a Go resolution contract that classifies status before rendering. Doc 09 §7.1 (Document 09 v1.2.0, section 7.1. HTTP routes) · Doc 09 §7.4 (Document 09 v1.2.0, section 7.4. Resolver sequence) · Doc 09 §15.2 (Document 09 v1.2.0, section 15.2. Go contract example)
Statuses on the wireA default HTTP code for each logical status, disclosure-dependent 403/404 and 410/404, problem+json errors with a stable code, Accept negotiation with 406, HEAD parity, and Vary: Accept. Doc 08 §18.5 (Document 08 v1.1.2, section 18.5. Resolution input and HTTP routing) · Doc 08 §18.6 (Document 08 v1.1.2, section 18.6. Resolution response and representation distinction) · Doc 08 §18.7 (Document 08 v1.1.2, section 18.7. Logical status to HTTP mapping)One central mapping from logical status to transport code; public redaction may answer forbidden with the same 404 as not_found. Issuance answers 201 Created. Doc 09 §15.3 (Document 09 v1.2.0, section 15.3. HTTP implementation profile) · Doc 09 §7.2 (Document 09 v1.2.0, section 7.2. Issuance request)
RepresentationsEvery representation exposes its RID. A JSON identity response carries at least rid, kind, identityStatus, and resolutionStatus; JSON-LD needs a stable context mapping every property, and illustrative IRIs must be labelled. Doc 08 §7.1 (Document 08 v1.1.2, section 7.1. Common resource envelope) · Doc 08 §18.6 (Document 08 v1.1.2, section 18.6. Resolution response and representation distinction) · Doc 08 §18.9 (Document 08 v1.1.2, section 18.9. JSON-LD interoperability)A JSON-LD profile example whose rsmid.org/vocab IRIs are proposed and illustrative, not registered or deployed. Doc 09 §15.4 (Document 09 v1.2.0, section 15.4. JSON and JSON-LD profile example)
DeploymentThe prefix is never a hostname; persistence rests on stewardship and tested recovery, not syntax. A documentation site may share the host only if RID root paths stay reserved. Doc 08 §6.3 (Document 08 v1.1.2, section 6.3. Logical resolution sequence) · Doc 08 §16.4 (Document 08 v1.1.2, section 16.4. Operational permanence) · Doc 08 §18.5 (Document 08 v1.1.2, section 18.5. Resolution input and HTTP routing)Go, SQLite, and three local Locus nodes on proposed development ports. Doc 09 §8.1 (Document 09 v1.2.0, section 8.1. Initial topology) · Doc 09 §12 (Document 09 v1.2.0, section 12. Initial three-node demonstration)

Identifiers

Grammar and test vectors

RID — Document 08 §3.1 (ABNF-style summary)
RID    = prefix "." suffix
prefix = "0" / %x31-39 *15DIGIT          ; 1–16 digits, no leading zero
suffix = 12*32CROCKFORD                  ; uppercase only
CROCKFORD = 0 1 2 3 4 5 6 7 8 9 A B C D E F G H J K M N P Q R S T V W X Y Z

; default: 16 characters, 80 bits from a CSPRNG
; equality: exact canonical character comparison
RRN and RSN — Document 08 v1.1 §18.2 (ABNF verbatim)
RRN          = "rrn:" realm ":" authority ":" jurisdiction ":" space ":" kind "/" resource-id
realm        = segment
authority    = segment
jurisdiction = segment
space        = segment
kind         = segment
resource-id  = segment *("/" segment)
segment      = lowercase-or-digit *(lowercase-or-digit / "-" / "_")
lowercase-or-digit = %x61-7A / DIGIT

; every segment 1–64 characters; resource-id at most 16 segments;
; whole RRN at most 512 ASCII bytes; compared by exact byte equality
; RSN = an RRN whose kind is exactly "space"
; rrn:451:451labs:us-ca:wellzai:space/root

Parse lexically first and verify registration separately: a valid RRN may name an unregistered realm, authority, or kind (Doc 08 §18.2 (Document 08 v1.1.2, section 18.2. Canonical RRN grammar and validation), Doc 08 §18.3 (Document 08 v1.1.2, section 18.3. Resource-kind registry)). Reject uppercase and percent-encoded input; never repair it.

Not to be confused with

Lexical validity and registration. A parser can tell you an RID is well formed; only the registry can tell you it was issued.

Doc 09 §2.1 (Document 09 v1.2.0, section 2.1. RID)

Implementation status

Implemented in this repository

The RSM ID infrastructure substrate implements lexical RID, RRN, and RSN checks in packages/identity, which this website imports. They are tested against the Document 09 vectors. They are not a conformance suite.

Parser vectors from Document 09
JSON
{
  "spec": "rsm-identity-v1",
  "cases": [
    { "input": "451.7K4M9Q2X8D5P0R6T", "valid": true, "prefix": "451", "suffix": "7K4M9Q2X8D5P0R6T" },
    { "input": "451.7K4M9Q2X8D5P0R6I", "valid": false, "reason": "invalid Crockford Base32 character" },
    { "input": "0451.7K4M9Q2X8D5P0R6T", "valid": false, "reason": "noncanonical prefix" },
    { "input": "451.7K4M9Q2X8D5P0R6T", "valid": true, "registryValidation": "depends on prefix registration" }
  ]
}

Lexical fixtures stay separate from registry-aware issuance tests; generation is tested with a controlled random source.

Source: Doc 09 §9.1 (Document 09 v1.2.0, section 9.1. Parser vectors)

Records

Identity record and representation

The identity record is the registry’s envelope for one RID: names and their history, issuing authority, lifecycle, and the binding to the authoritative space. The representation is what that space supplies: content, relationships, and revision state. Keep them distinct in your data model.

application/json — identity response, Document 08 §18.6 (illustrative)
{
  "rid": "451.7K4M9Q2X8D5P0R6T",
  "kind": "document",
  "identityStatus": "active",
  "resolutionStatus": "resolved",
  "primaryRrn": "rrn:451:451labs:us-ca:wellzai:document/outcome-formation-model",
  "spaceRid": "451.SD27J6QHDVEF0DYY",
  "spaceRsn": "rrn:451:451labs:us-ca:wellzai:space/root",
  "authority": "451labs",
  "representations": [
    {
      "mediaType": "text/html",
      "role": "landing-page"
    },
    {
      "mediaType": "application/ld+json",
      "role": "semantic-description"
    },
    {
      "mediaType": "application/json",
      "role": "identity-record"
    }
  ]
}
application/ld+json — profile of Document 09 §15.4 (proposed vocabulary)
{
  "@context": {
    "rid": "https://rsmid.org/vocab/rid",
    "rrn": "https://rsmid.org/vocab/rrn",
    "kind": "https://rsmid.org/vocab/kind",
    "title": "https://purl.org/dc/terms/title",
    "identityStatus": "https://rsmid.org/vocab/identityStatus",
    "space": {
      "@id": "https://rsmid.org/vocab/space",
      "@type": "@id"
    }
  },
  "@id": "https://rsmid.org/451.7K4M9Q2X8D5P0R6T",
  "rid": "451.7K4M9Q2X8D5P0R6T",
  "rrn": "rrn:451:451labs:us-ca:wellzai:document/outcome-formation-model",
  "kind": "document",
  "title": "Outcome Formation Model",
  "identityStatus": "active",
  "space": "https://rsmid.org/451.SD27J6QHDVEF0DYY"
}

Every JSON-LD property is mapped in the context, as Document 08 §18.9 requires; the earlier Document 09 example’s unmapped title and identityStatus are corrected by the v1.1 profile. The rsmid.org/vocab IRIs are proposed and illustrative — not registered, not deployed. Both examples describe one referent, identified by one RID.

Resource representation envelope — Document 08 §7.2 (illustrative)
{
  "rid": "451.7K4M9Q2X8D5P0R6T",
  "rrn": "rrn:451:451labs:us-ca:wellzai:document/outcome-formation-model",
  "kind": "document",
  "name": "Outcome Formation Model",
  "space": {
    "name": "Wellzai",
    "rsn": "rrn:451:451labs:us-ca:wellzai:space/root"
  },
  "governance": {
    "issuanceJurisdiction": "us-ca",
    "visibility": "public"
  },
  "lifecycle": {
    "identity": "active",
    "revision": 7
  },
  "representations": [
    {
      "mediaType": "text/html",
      "role": "landing-page"
    },
    {
      "mediaType": "application/ld+json",
      "role": "semantic-description"
    }
  ]
}

Keep the identity response (§18.6) apart from a resource representation (§7.1–§7.2): the first is registry-level identity metadata; the second is what the authoritative space serves about the resource. Their field names differ — primaryRrn and identityStatus beside rrn and lifecycle.identity — and no published schema reconciles them yet.

In the specification

Every representation exposes its canonical RID; the final structure will be versioned JSON Schema.

Doc 08 §7.1 (Document 08 v1.1.2, section 7.1. Common resource envelope) · Doc 08 §7.2 (Document 08 v1.1.2, section 7.2. Illustrative JSON representation)

Implementation status

The JSON-LD context IRIs in Document 09 are placeholders — explicitly not valid production vocabulary.

Doc 09 §7.3 (Document 09 v1.2.0, section 7.3. Resolution request)

Resolver API

The proposed HTTP interface

Proposed reference architecture Routes from Doc 09 §7.1 (Document 09 v1.2.0, section 7.1. HTTP routes), with the routing rules of Doc 08 §18.5 (Document 08 v1.1.2, section 18.5. Resolution input and HTTP routing): GET and HEAD /{rid} are reserved for exactly one valid RID, every identity API is versioned, and an RRN is looked up by query parameter, never used as a path segment. Mutation routes require authentication and least-privilege authorization; the public identifier path is a resolution interface, not a permission grant.

MethodPathPurpose
GET/{rid}Content-negotiated identity view
GET/v1/identities/{rid}Policy-permitted metadata
GET/v1/names/resolve?rrn=…RRN to RID
POST/v1/identitiesAuthorized, idempotent registration
POST/v1/spacesRSN and space registration
GET/v1/spaces/{rid}Space capabilities and authority
POST/v1/identities/{rid}/transferGoverned binding transition
GET/v1/identities/{rid}/eventsAuthorized identity events
GET/readyzRegistry and resolver health
Resolution request — Document 09 §7.3
GET /451.7K4M9Q2X8D5P0R6T HTTP/1.1
Host: rsmid.org
Accept: application/ld+json
Response a conforming gateway would return — Document 08 §18.5–§18.7
HTTP/1.1 200 OK
Content-Type: application/ld+json
Vary: Accept
Cache-Control: public, max-age=300

{
  "@context": {
    "rid": "https://rsmid.org/vocab/rid",
    "rrn": "https://rsmid.org/vocab/rrn",
    "kind": "https://rsmid.org/vocab/kind",
    "title": "https://purl.org/dc/terms/title",
    "identityStatus": "https://rsmid.org/vocab/identityStatus",
    "space": {
      "@id": "https://rsmid.org/vocab/space",
      "@type": "@id"
    }
  },
  "@id": "https://rsmid.org/451.7K4M9Q2X8D5P0R6T",
  "rid": "451.7K4M9Q2X8D5P0R6T",
  "rrn": "rrn:451:451labs:us-ca:wellzai:document/outcome-formation-model",
  "kind": "document",
  "title": "Outcome Formation Model",
  "identityStatus": "active",
  "space": "https://rsmid.org/451.SD27J6QHDVEF0DYY"
}
A restricted identity, redacted — identical to not_found (§18.7)
HTTP/1.1 404 Not Found
Content-Type: application/problem+json
Cache-Control: no-store

{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

Errors are application/problem+json with a stable code from the eight logical statuses (Doc 08 §18.6 (Document 08 v1.1.2, section 18.6. Resolution response and representation distinction)). Responses that vary by Accept carry Vary: Accept; an unsupported Accept gets 406; HEAD matches GET without a body. Public caches need explicit freshness bounds and must never store principal-specific responses (Doc 08 §18.8 (Document 08 v1.1.2, section 18.8. Federation, trust, caching, and failure handling)). Status codes are computed by the same module the resolver demonstration uses; the freshness value and problem type shown are illustrative.

Implementation status

rsmid.org is proposed, not an operational resolver. A conforming resolver may run under any approved hostname; the RID-to-path mapping stays the same.

Doc 08 §2.5 (Document 08 v1.1.2, section 2.5. RSM Web Identifier)

Conformance

What a conforming implementation must do

The v1.1 conformance extension
  1. Valid and invalid RRNs for each structural boundary.
  2. Round-trip parsing and formatting.
  3. Kind registration, positive and negative cases.
  4. Allowed and disallowed lifecycle transitions.
  5. RRN, RSN, and RID routes mapping to the same canonical identity.
  6. Accept and HEAD behaviour.
  7. All eight logical statuses and their disclosure-dependent HTTP outcomes.
  8. Restricted identity nondisclosure.
  9. Trust failures, redirects, SSRF, cycles, revocation, and cache invalidation.
  10. JSON-LD expansion without silently dropped profile properties.
  11. Cross-implementation byte-consistent canonical identifiers.

A publicly available educational simulation — including the resolver on this site — is not proof of conformance of a production resolver, and an implementation must not mark a test as passed because a simulated website illustrated it (Doc 08 §18.10 (Document 08 v1.1.2, section 18.10. Conformance extension), Doc 09 §15.5 (Document 09 v1.2.0, section 15.5. Test fixtures and recommended file layout)).

Source: Doc 08 §18.10 (Document 08 v1.1.2, section 18.10. Conformance extension) · Doc 09 §15.5 (Document 09 v1.2.0, section 15.5. Test fixtures and recommended file layout)

The eighteen v1.0 acceptance tests
  1. One hundred thousand locally generated RIDs are syntactically valid and unique.
  2. Concurrent issuance transactions never commit duplicate RIDs.
  3. Unsupported prefixes fail authoritative registration.
  4. RID serialization and parsing are deterministic across supported languages.
  5. RRN and RSN parsing follows the published grammar.
  6. Registered RRNs map unambiguously to canonical RIDs.
  7. A resource survives renaming and republishing without RID changes.
  8. Relocating a Locus instance does not change resource identity.
  9. Authorized RRN transfer preserves its original RID association.
  10. Retired identifiers cannot be reissued.
  11. HTML and JSON-LD resolve to the same underlying referent.
  12. Contextual representation does not change canonical identity.
  13. A public resolver does not disclose restricted resource information.
  14. A cross-space relationship resolves by RID.
  15. Jurisdiction and bioregional metadata can change independently of RID.
  16. Resolver authority spoofing is rejected.
  17. Historical identity records remain interpretable after registry changes.
  18. External identifiers remain distinguishable from RSM-issued identities.

Plus negative tests for invalid encodings, ambiguous aliases, revoked authorities, concurrent transfers, stale caches, and malicious endpoint responses. Document 09 stages delivery through five release gates, from identity primitives to operational hardening.

Source: Doc 08 §14.5 (Document 08 v1.1.2, section 14.5. Acceptance tests) · Doc 09 §11.1 (Document 09 v1.2.0, section 11.1. Gate 1 — Identity primitives)

Preparing your systems

Design choices that will make integration straightforward

Each follows from the specification and is safe to adopt before any registry exists.

  1. Reserve a field for the canonical RID

    Store the RID beside your own identifiers rather than overloading one key with both meanings. Compare RIDs by exact string equality.

  2. Never parse meaning out of an RID

    The prefix is a namespace, not a hostname or an owner. Type, space, place, and jurisdiction come from resolution, not from the identifier.

  3. Keep names, locations, and revisions separate

    An RRN is a name, a URL is a location, a revision is a state, a digest identifies bytes. None of them is the RID.

  4. Reference across systems by RID, with provenance

    Relationships should name both ends by RID and keep the originating space, predicate, and asserting authority. Never merge records on similarity alone.

Specification library

The nine OpenRSN specifications

All nine are published by the OpenRSN Foundation at openrsn.org. 08 and 09, the RSM ID documents, are also reproduced on this site, so that citations stay bound to the edition they name. Classification and maturity are separate: a document can be normative and still proposed.

No.SpecificationGoverning questionClassificationVersionMaturity
01OpenRSN — A Living Outcome-Forming EcologyWhy does OpenRSN exist?Normative specificationv2.3.0Maturity not stated
02OpenRSN Subject ModelWhat can exist and participate?Normative specificationv2.2.0Draft
03OpenRSN Semantic Model & Taxonomy ArchitectureHow is meaning represented and extended?Normative specificationv4.1.0Draft
04OpenRSN Canonical Model & Protocol SpecificationWhat is authoritative state, and how does it interact?Normative specificationv2.4.2Draft
05OpenRSN Runtime & Federation ArchitectureHow does OpenRSN operate across independent systems?Normative specificationv2.1.2Draft
06OpenRSN Reference Implementation & Conformance SpecificationHow do we know an implementation really conforms?Normative specificationv2.1.2Draft
07OpenRSN Technology & Infrastructure ArchitectureThrough what technology will the specifications be realized?Implementation architecturev1.0.3Maturity not stated
08OpenRSN Identity & Trust — Identity, Naming & Resolution Specification (RSM ID)How is every resource identified, named, and resolved?Normative specificationv1.1.2 · Errata E4, E5Proposed
09OpenRSN Identity & Trust — Core Identity Reference Implementation (RSM ID)How will the identity system be built and verified?Reference implementation specificationv1.2.0 · Errata E4, E5 · AMD-NS-1Proposed