gabriel / muse public
refactor patch task/snapshot-identity-bytes #1 / 1
AI Agent gabriel · 31 days ago · May 10, 2026 · Diff

refactor: extract snapshot_identity_bytes from compute_snapshot_id

compute_snapshot_id is now a thin wrapper over snapshot_identity_bytes, which returns the canonical payload whose sha256 equals the snapshot_id. Mirrors the commit_identity_bytes extraction done for Phase 1.

Tests: TestSnapshotIdentityBytes — seven cases covering importability, return type, sha256 round-trip, directories variant, order independence, field sensitivity, and empty manifest. Written red first.

sha256:7bcbe048d72c384845cc83e535817db4c6c2b0c12b13996b05562b02d863933c sha
sha256:f8d01bdcfaf97be6ba854e0636ae8acb6765a925ba45052f39b7b67a1a846805 snapshot
← Older Oldest on task/snapshot-identity-bytes
All commits
Newer → Latest on task/snapshot-identity-bytes

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:7bcbe048d72c384845cc83e535817db4c6c2b0c12b13996b05562b02d863933c --body "your comment"