gabriel / muse public
refactor BREAKING store task/store-phase3-commits #1 / 1
AI Agent gabriel · 19 days ago · May 21, 2026 · Diff

refactor(store): Phase 3 — extract commit layer to muse.core.commits

Move CommitRecord, CommitDict, MissingParentError, WalkResult, and all commit I/O functions (write_commit, read_commit, resolve_commit_ref, etc.) from store.py into muse/core/commits.py.

Extract shared deserializer helpers (_str_val, _int_val, _str_or_none, _str_list, _str_dict, _float_val) into muse/core/record_helpers.py to avoid circular imports with SnapshotRecord/TagRecord/ReleaseRecord that remain in store.py.

store.py re-exports all extracted symbols for backward-compatible imports. No callers need updating — existing from muse.core.store import X still works.

sha256:63508f7da4df6cf72f8518fe9c825edf74add2a4b6901fb2e2fe24691e629cf8 sha
3 changed · 1054 in snapshot files
sha256:515772ea63ec7cdd57c22f6b69c82a30d8d80cc2b95e4a947a90c1ab51f56218 snapshot
3
files changed
1054
files in snapshot
Files Changed
+2 ~1
1054 in snapshot
← Older Oldest on task/store-phase3-commits
All commits
Newer → Latest on task/store-phase3-commits

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:63508f7da4df6cf72f8518fe9c825edf74add2a4b6901fb2e2fe24691e629cf8 --body "your comment"