gabriel / muse public
fix patch refs dev
AI Agent gabriel · 46 days ago · Apr 27, 2026 · Diff

fix(refs): CAS guards on merge, cherry-pick, revert, pull, rebase

Phase 1 of data integrity audit (issue #7): all write_branch_ref callers that advance an existing branch now pass expected_id for CAS protection. RefConflictError surfaced as a retryable user error on mismatch.

Commands fixed: merge (3 sites), cherry-pick (1), revert (1), pull (3), rebase/squash/continue (4). Abort path left unconditional (intentional restore).

11-test regression suite in test_phase1_cas_branch_ref_callers.py using race injection pattern: patches write_branch_ref to advance the branch just before the real write, proving CAS detection without threading.

sha256:8f54a2ad8f91a756ccce8819b0531f2f5b4309ce619ffae7b50bc9c56bd301f3 sha
sha256:d1eafd5bce0dfbbc3d65d514a5f81a50505fc8306e1d8c57c93eadfc850d7150 snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

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