Skip to content

feat(core): add canonical version-set identity - #44

Merged
Windsor Nguyễn (windsornguyen) merged 2 commits into
feat/pnpm-adapter-m0from
feat/version-set-identity
Aug 13, 2026
Merged

feat(core): add canonical version-set identity#44
Windsor Nguyễn (windsornguyen) merged 2 commits into
feat/pnpm-adapter-m0from
feat/version-set-identity

Conversation

@windsornguyen

@windsornguyen Windsor Nguyễn (windsornguyen) commented Aug 8, 2026

Copy link
Copy Markdown
Member

Depends on #43.

What does this change?

This PR adds the typed identity for an immutable dependency version set.

An ecosystem adapter supplies the root record for a canonical Merkle directed acyclic graph. Bessemer hashes the exact content-addressed object with the repository's configured digest algorithm. Cryptographic domain separation keeps a version-set identity distinct from other content digests.

The type system prevents code from using an arbitrary content digest as a version-set identity. Golden tests fix the serialized format. Mutation tests verify that a semantic input change produces a different identity.

This PR adds only the identity type. Lockfile import, selected dependency closures, and package materialization remain separate RFC 0001 milestones.

How was it tested?

  • cargo test --locked -p bsmr_common version_set passed two tests.

  • cargo build --locked --bin bsmr.

  • pnpm run ci test passed 33 tests.

  • git diff --check origin/feat/pnpm-adapter-m0..feat/version-set-identity.

  • CLA/Vouch check passes, or this PR only updates VOUCHED.td.

Merged via the queue into main with commit 1d702eb Aug 13, 2026
19 of 27 checks passed
@windsornguyen
Windsor Nguyễn (windsornguyen) deleted the feat/version-set-identity branch August 13, 2026 00:16
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.

2 participants