gabriel / muse public
refactor BREAKING dev #85 / 100
AI Agent gabriel · 100 days ago · May 27, 2026 · Diff

refactor: rename op_transform → op_merge, transform → adjust_sequence_positions

Removes all OT (Operational Transformation) naming from module, function, test, and HTML artifact identifiers.

- muse/core/op_transform.py → muse/core/op_merge.py - tests/test_op_transform.py → tests/test_op_merge.py - transform() → adjust_sequence_positions() — position adjustment for concurrent InsertOps in ordered-sequence domains; the diamond convergence property is a mathematical result, not an OT concept - CSS classes ot-* → amm-* (addressed map merge) in render_domain_registry - HTML example filenames 'ot-notes-a.mid' / 'ot-notes-b.mid' → 'notes-a.mid' / 'notes-b.mid' - Section comment '# OT transform' → '# Sequence position adjustment' - TestOTDiamondProperty → TestDiamondProperty - All import sites updated: code/plugin, scaffold/plugin, midi/plugin, merge_engine, domain, test_core_merge_engine, test_property_based

sha256:c58b11c32405a6d2dd32d3fbf6316822070019930ef108f633efebbd4b31da19 sha
+15 ~22 −15 symbols
sha256:d5ba6dfb6cb4dd809520d2a56a7eb3368fc8b417c3ef4b05c74661209d101004 snapshot
+15
symbols added
~22
symbols modified
−15
symbols removed
0
dead code introduced
Semantic Changes 52 symbols
~ muse/domain.py .py 2 symbols modified
~ tests/test_property_based.py .py 5 symbols added, 5 symbols removed, 2 symbols modified
TestOTDiamondProperty class class TestOTDiamondProperty L466–514
test_insert_insert_diamond method method test_insert_insert_diamond L470–492
test_transform_preserves_content method method test_transform_preserves_content L503–508
test_transform_preserves_op_types method method test_transform_preserves_op_types L495–500
transform import import transform L46–46
+ TestDiamondProperty class class TestDiamondProperty L467–514
+ test_adjust_preserves_content method method test_adjust_preserves_content L503–508
+ test_adjust_preserves_op_types method method test_adjust_preserves_op_types L495–500
+ test_insert_insert_diamond method method test_insert_insert_diamond L471–492
+ adjust_sequence_positions import import adjust_sequence_positions L47–47
~ muse/core/op_merge.py .py moved from muse/core/op_transform.py; 1 added, 1 removed
transform function function transform L293–340
+ adjust_sequence_positions function function adjust_sequence_positions L292–339
~ tests/test_op_merge.py .py moved from tests/test_op_transform.py; 9 added, 9 removed, 6 modified
TestTransform class class TestTransform L216–293
test_insert_after_insert_shifts_earlier_op method method test_insert_after_insert_shifts_earlier_op L225–231
test_insert_before_insert_shifts_later_op method method test_insert_before_insert_shifts_later_op L217–223
test_transform_diamond_property_two_inserts method method test_transform_diamond_property_two_inserts L263–293
test_transform_non_insert_ops_identity method method test_transform_non_insert_ops_identity L248–254
test_transform_preserves_content_id method method test_transform_preserves_content_id L233–238
test_transform_replace_ops_identity method method test_transform_replace_ops_identity L256–261
test_transform_unordered_inserts_identity method method test_transform_unordered_inserts_identity L240–246
transform import import transform L10–10
+ TestAdjustSequencePositions class class TestAdjustSequencePositions L217–294
+ test_adjust_preserves_content_id method method test_adjust_preserves_content_id L234–239
+ test_diamond_property_two_inserts method method test_diamond_property_two_inserts L264–294
+ test_insert_after_insert_shifts_earlier_op method method test_insert_after_insert_shifts_earlier_op L226–232
+ test_insert_before_insert_shifts_later_op method method test_insert_before_insert_shifts_later_op L218–224
+ test_non_insert_ops_identity method method test_non_insert_ops_identity L249–255
+ test_replace_ops_identity method method test_replace_ops_identity L257–262
+ test_unordered_inserts_identity method method test_unordered_inserts_identity L241–247
+ adjust_sequence_positions import import adjust_sequence_positions L11–11

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