feat: Phase 2 — OR-Set CRDT semantics + symbol-level independence-aware merge
Tier 1 (OR-Set): concurrent import and variable additions from different branches never conflict — add-wins semantics for unordered element sets.
Tier 2 (symbol independence): branches adding or modifying different named symbols in the same file auto-merge cleanly. merge_ops() now detects when all child op pairs commute (no symbol-level conflict) and reconstructs the merged blob via _independence_merge_blob() using three_way_merge_lines with union fallback for concurrent insertions at the same position (Manyana add-wins at the text level).
Multi-agent workflows editing the same module no longer produce spurious file-level conflicts when agents touch different functions or imports.
- _independence_merge_blob(): union-aware text merge for independent symbols - merge_ops() Step 1.5: derive symbol ops, check commutativity, reconstruct - 16 new TDD tests in test_phase2_or_set_symbol_independence.py
0 comments
muse hub commit comment sha256:84b64e2493b3b8630aff4273ce7070d745932f0d63ee3bdd575a0646c1f4c1f5 --body "your comment"
No comments yet. Be the first to start the discussion.