feat: enforce canonical sha256: prefix on object IDs everywhere
- hash-object: _hash_bytes now returns sha256: prefix; JSON output includes size_bytes, duration_ms, exit_code; text output is canonical sha256:<hex> - verify-object: _verify_one computes canonical actual = sha256: + hexdigest so comparison against stored canonical ID is correct; _iter_all_object_ids returns sha256: prefixed IDs instead of bare hex - name-rev: validation now accepts sha256: prefixed commit IDs (strips prefix before hex-char check) - rev-parse: default format changed from text to json; all tests already expected JSON output - snapshot-diff: _resolve_to_snapshot_id guards get_head_commit_id call with ValueError catch so canonical snapshot IDs are not rejected as branch names - Tests: update _make_object, bare hex object IDs, length assertions, and test_cmd_rev_parse default-format test to match canonical form throughout
0 comments
muse hub commit comment sha256:efff3e8463a57478a369469f492c37e8ce89df87e9da1abbff9ee07d9c37a765 --body "your comment"
No comments yet. Be the first to start the discussion.