MSP-1 Specification

id

The id term defines how MSP-1 expresses stable, unambiguous identifiers that persist over time. These IDs enable AI agents to reason reliably about resources, entities, and relationships across a site or ecosystem.

Category: Content structure, intent & addressing

Status: Normative

Version: MSP-1.0.x

1. Purpose

Stable identifiers are foundational to MSP-1. They allow both humans and AI systems to:

  • Track the same resource across revisions and representations.
  • Disambiguate similar or related entities.
  • Preserve long-term interoperability across ecosystems and external references.

2. Normative definition

An MSP-1 id is a site-scoped or globally-scoped unique identifier assigned to a resource, entity, page, section, or conceptual element. MSP-1 IDs MUST be:

  • Stable — does not change over time unless identity fundamentally changes.
  • Unique — no two resources share the same ID within the same scope.
  • Resolvable — maps to a meaningful resource or entity.
  • Opaque or semantic — both forms are allowed; meaning is optional.

MSP-1 does not mandate a specific ID format but recommends consistency, readability, and long-term maintainability.

3. Scope of identifiers

MSP-1 defines four major scopes in which IDs may operate:

  • Site-level IDs — identify the site as a conceptual entity.
  • Page-level IDs — identify individual pages.
  • Section-level IDs — anchor specific structural sections.
  • Entity IDs — identify people, organizations, concepts, etc.

Implementers SHOULD avoid overloading the same ID for multiple conceptual layers.

4. Required fields

An MSP-1 id MUST:

  • Be expressed as a single string.
  • Be unique within its declared scope.
  • Remain stable across revisions unless identity fundamentally changes.

Recommended best practices include:

  • Lowercase with hyphens for readability: mark-johnson
  • Avoiding whitespace or punctuation other than hyphens.
  • Using semantic IDs for public-facing entities.
  • Using opaque IDs (e.g., hashes) for internal or privacy-sensitive resources.

5. AI interpretation rules

  • AI agents MUST treat IDs as persistent references; content changes do not imply ID changes.
  • If a resource reuses an ID for a different concept, agents SHOULD treat this as an identity conflict and downgrade trust.
  • If no ID is present, agents SHOULD treat the resource as identifiable only by URL or context, reducing long-term linkage reliability.
  • AI SHOULD cross-reference IDs across description, intent, canonical, provenance, and trust declarations.

6. Relationship to related MSP-1 terms

  • name — IDs disambiguate entities that may share names.
  • canonical — IDs anchor canonical representations.
  • parent — IDs define hierarchical relationships.
  • page / section — rely on stable identifiers for internal navigation.
  • provenance — tracks lineage using IDs as stable anchors.

7. Examples

Minimal valid MSP-1 id declaration:

{
  "id": "lighting-guide"
}

Example for an entity:

{
  "id": "mark-johnson"
}

Opaque ID example:

{
  "id": "a93f27bc"
}

8. Conformance

A resource conforms to the MSP-1 id specification when its identifier:

  • Is unique in scope.
  • Is stable across revisions.
  • Follows all normative and required behaviors in this specification.