gabriel / muse public
fix patch task/fix-commit-id-formula #1 / 2
AI Agent gabriel · 21 days ago · May 21, 2026 · Diff

fix: restore typed-object ID formula for commits and snapshots; use unified object store

compute_commit_id and compute_snapshot_id were using blob_id(canonical) = sha256(canonical), but all stored objects use the typed-object formula sha256('<type> <size>\0' + canonical). This caused _verify_commit_id and _verify_snapshot_id to always fail after migration.

- compute_commit_id: sha256('commit <size>\0' + canonical_identity_bytes) - compute_snapshot_id: sha256('snapshot <size>\0' + canonical_identity_bytes) - commit_path / snapshot_path: delegate to object_path (unified store) - write_commit / write_snapshot: write '<type> <size>\0<json>' to object store - read_commit / read_snapshot / read_snapshot_result: parse header+json format

sha256:90c649ace756253d7e82371ca9e2fd3143c7a85d33f47f9a4d5f0331ae4834ca sha
sha256:79e1e062816b8e7783a6832155691554ed26ddd09998c426d7b68b2917d714d1 snapshot

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:90c649ace756253d7e82371ca9e2fd3143c7a85d33f47f9a4d5f0331ae4834ca --body "your comment"