feat
patch
phase3
task/phase3-on-disk-refs
#1 / 1
feat(phase3): on-disk refs as canonical branch pointers
- Add musehub/storage/refs.py: write_ref() atomic POSIX rename + read_ref() - Wire push stream writes refs/heads/<branch> after DB commit (disk is canonical) - Add POST /api/repos/{repo_id}/branches/{name}/repair — heals DB from disk ref - 21 TDD tests across 7 tiers: write/read round-trip, atomicity, wire push integration, repair endpoint
sha256:ad64f2d2810bc6c74dbd642516bb8f102890b036b848a0da2c8c88aa162260b8
sha
+79
~1
symbols
sha256:dad2a0f3c4a446c82d8467da09da259fd5f399fa6a8228571df6579d28eff484
snapshot
+79
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes
80 symbols
+
test_read_ref_returns_none_after_branch_deleted_from_disk
method
method test_read_ref_returns_none_after_branch_deleted_from_disk L257–269
+
test_read_ref_returns_none_empty_repo
method
method test_read_ref_returns_none_empty_repo L250–255
+
test_read_ref_returns_none_for_unknown_branch
method
method test_read_ref_returns_none_for_unknown_branch L243–248
+
test_read_ref_multiple_branches_independent
method
method test_read_ref_multiple_branches_independent L226–237
+
test_read_ref_round_trips_feature_branch
method
method test_read_ref_round_trips_feature_branch L215–224
+
test_read_ref_strips_trailing_newline
method
method test_read_ref_strips_trailing_newline L203–213
+
test_repair_noop_when_already_consistent
method
async_method test_repair_noop_when_already_consistent L545–585
+
test_push_disk_ref_matches_db_head
method
async_method test_push_disk_ref_matches_db_head L465–484
+
test_partial_write_does_not_corrupt_existing_ref
method
method test_partial_write_does_not_corrupt_existing_ref L314–333
+
test_write_ref_content_is_commit_id_with_newline
method
method test_write_ref_content_is_commit_id_with_newline L149–159
+
test_write_ref_supports_feature_branches
method
method test_write_ref_supports_feature_branches L175–186
+
test_write_ref_creates_nested_branch_dirs
method
method test_write_ref_creates_nested_branch_dirs L287–295
+
test_write_ref_creates_refs_heads_dir
method
method test_write_ref_creates_refs_heads_dir L275–285
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:ad64f2d2810bc6c74dbd642516bb8f102890b036b848a0da2c8c88aa162260b8 --body "your comment"
No comments yet. Be the first to start the discussion.