feat
patch
phase4
task/phase4-disk-negotiate
#1 / 1
feat(phase4): wire_negotiate reads disk for have-set resolution
Replace DB musehub_commits query in wire_negotiate have-set acknowledgment with on-disk object existence check (_commit_exists_on_disk). DB is now treated as a cache only — stale after force-resign or partial push failures.
- Add _commit_exists_on_disk(repo_root, commit_id) — plain Path.exists() stat - wire_negotiate: ack = [cid for cid in have_set if _commit_exists_on_disk(...)] - Eliminates the DB-drift bug class that motivated this ticket - 15 TDD tests across 7 tiers
sha256:8ecf2a81455dfa0b96cc1c525ad821e175f9283e5a9b9d67c3d13b7673c8e622
sha
+38
~1
symbols
sha256:9cc35d67064727e0e3bd43532fa3753fcfbe9fb2f67d11bcdb2d7720e9f4b6d1
snapshot
+38
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes
39 symbols
+
test_returns_false_after_file_deleted
method
method test_returns_false_after_file_deleted L105–117
+
test_returns_true_after_explicit_write
method
method test_returns_true_after_explicit_write L71–86
+
test_returns_true_for_multiple_commits
method
method test_returns_true_for_multiple_commits L60–69
+
test_returns_true_when_object_file_exists
method
method test_returns_true_when_object_file_exists L50–58
+
test_acks_commit_present_on_disk_not_in_db
method
async_method test_acks_commit_present_on_disk_not_in_db L124–142
+
test_partial_have_only_acks_disk_present
method
async_method test_partial_have_only_acks_disk_present L243–263
+
test_no_musehub_commits_query_for_have_ack
method
async_method test_no_musehub_commits_query_for_have_ack L314–351
+
test_ack_set_drives_ready_when_have_present
method
async_method test_ack_set_drives_ready_when_have_present L287–307
+
test_does_not_ack_commit_in_db_but_not_on_disk
method
async_method test_does_not_ack_commit_in_db_but_not_on_disk L171–203
← Older
Oldest on task/phase4-disk-negotiate
All commits
Newer →
Latest on task/phase4-disk-negotiate
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:8ecf2a81455dfa0b96cc1c525ad821e175f9283e5a9b9d67c3d13b7673c8e622 --body "your comment"
No comments yet. Be the first to start the discussion.