Skip to content

feat(iid-spec): add the normative IID specification package - #17

Merged
kamescg merged 1 commit into
update/v1.1.0-alphafrom
feat/iid-spec
Aug 10, 2026
Merged

feat(iid-spec): add the normative IID specification package#17
kamescg merged 1 commit into
update/v1.1.0-alphafrom
feat/iid-spec

Conversation

@kamescg

@kamescg kamescg commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

P01 of the iid-v1.1.0-alpha release train. Adds @0xintuition/iid-spec — the normative Intuition ID specification with a machine-readable conformance corpus — as the first (docs-only) package in the release registry.

Ported from the authoritative private reference (0xIntuition/intuition-v2 @ 8b9e9aa11, PR #914) with private-monorepo references removed. The per-scheme documents, implementation-notes, and conformance corpus are new authorship for this release (the private package promised but never contained them); scheme documents are grounded in the reference canonicalizers, and every conformance vector was generated from and asserted against the reference implementation, with the spec's own stated golden values cross-checked.

Contents

  • explainer.md + spec/0009 (grammar, identity classes/tiers, NORM-1, ladders, gen1, representation profiles, equivalence, governance)
  • schemes/ — registry index + 26 normative per-scheme documents (grammar, ordered canonicalization, validation, vectors, limitations)
  • conformance/ — 145 versioned vectors in 6 files + JSON schema: per-scheme canonicalization (positive+negative for all 26), NORM-1, gen1 with exact preimages, parsing (colon-bearing CAIP-10, int:src:* guard), validation/anchor-eligibility, registry snapshot
  • implementation-notes.md — records the parser value-grammar deviation (private parser accepted spaces/non-ASCII in values); the P02 port fixes the character class to the spec's %x21-7E
  • Package integrity test: schema shape, per-scheme coverage, globally unique fixture IDs, internal link resolution, private-reference leak guard

Tooling

  • iid-spec registered first in the central package registry as docs-only
  • guard-direct-publish learns docs-only rules (no dist/main/types; README+LICENSE required) from the registry

Package impact

Package Change
@0xintuition/iid-spec new, docs-only, 0.1.0-alpha.0
all existing packages none

Target versions

@0xintuition/iid-spec@0.1.0-alpha.0. No internal dependencies.

Identity impact

Identity impact: none — existing golden bytes unchanged

Fixture impact

New corpus: fixture files canonicalization (101), norm1 (13), gen1 (6), parse (11), validation (14), schemes snapshot — specVersion 0.1.0, fixtureVersion 1. Append-only from here; changing an existing vector is identity-impacting.

Contract artifact

n/a

Rollout notes

  • P02 (@0xintuition/iid) consumes this corpus as its conformance test input and must pass every vector, including the two parse vectors the private implementation fails (documented in implementation-notes).
  • Open ratification question for the spec owner: the purl canonicalizer truncates at the first @, so scoped npm packages (npm/@babel/core) reject. Documented as a limitation in schemes/purl.md. If any int:purl: atoms already exist, this is frozen per §9.3; if none exist, a pre-ratification fix is still possible but must land before P02 merges and be reflected in spec, fixtures, and reference implementation together.
  • Local validation: full turbo test (18 tasks), registry check, supply-chain guard, pack dry-run, and clean-room tarball smoke (now 11 packages, Node+Bun) all pass.

🤖 Generated with Claude Code

- Port the IID specification from the private reference
  (0xIntuition/intuition-v2 @ 8b9e9aa11): explainer and spec sections
  00-09, with private-monorepo references replaced by public links.
- Author the 26 per-scheme normative documents and the scheme registry
  index, each with grammar, ordered canonicalization, validation rules,
  test vectors, and known limitations grounded in the reference
  canonicalizers.
- Add the versioned machine-readable conformance corpus: 145 vectors
  across canonicalization (positive+negative for every scheme), NORM-1,
  gen1 (with exact preimages), parsing (colon-bearing values, int:src:*
  guard), validation/anchor-eligibility, and the registry snapshot,
  plus their JSON schema. All vectors generated from and asserted
  against the reference implementation; spec-stated golden values
  (ISBN upconversion, gen1 movie r4) cross-checked.
- Add implementation-notes.md recording the resolved parser
  value-grammar deviation the public port fixes.
- Add a fixture/document integrity test (schema shape, coverage,
  unique IDs, link resolution, private-reference leak guard).
- Register iid-spec as the first, docs-only entry in the central
  package registry; teach guard-direct-publish docs-only rules.

Identity impact: none — existing golden bytes unchanged

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@kamescg
kamescg merged commit be96936 into update/v1.1.0-alpha Aug 10, 2026
1 check passed
@kamescg
kamescg deleted the feat/iid-spec branch August 10, 2026 19:26
@kamescg kamescg mentioned this pull request Aug 10, 2026
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant