gabriel / musehub public
feat patch phase4 task/phase4-disk-negotiate #1 / 1
AI Agent gabriel · 48 days ago · May 1, 2026 · Diff

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
sha256:9cc35d67064727e0e3bd43532fa3753fcfbe9fb2f67d11bcdb2d7720e9f4b6d1 snapshot
← Older Oldest on task/phase4-disk-negotiate
All commits
Newer → Latest on task/phase4-disk-negotiate

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:8ecf2a81455dfa0b96cc1c525ad821e175f9283e5a9b9d67c3d13b7673c8e622 --body "your comment"