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

chore: sweep all stale DirectoryRenameOp / directory_rename references

- semver_classifier.py: rename _classify_directory_rename → _classify_rename_op; update docstring and reason strings to say 'rename' not 'directory rename'. - format_patch.py: _action_label checks op='rename' (was 'directory_rename'). - release_analysis.py: event extraction now matches op='rename', not 'from_address' on PatchOp. - plugin.py, symbol_diff.py, diff.py: update inline comments. - docs/reference/type-contracts.md: replace DirectoryRenameOp entry with RenameOp; remove from_address row from PatchOp table. - test_file_rename_detection.py: full rewrite — all tests now check RenameOp, not PatchOp.from_address; class/method names updated to match. - test_code_plugin.py: TestFileMoveAndEdit docstring + test names updated; assertions now check RenameOp+PatchOp pair instead of single PatchOp(from_address). - test_directory_dimension.py, test_sem_ver.py: docstring/comment headers updated. - test_format_patch_supercharge.py: test_directory_rename_is_renamed → test_rename_is_renamed with op='rename'.

sha256:c10a2ce474b3bb7ff2a3d628e8a3f2e028fd78ca652513496a03a498ae2267b3 sha
+13 ~23 −14 symbols
sha256:3e2db596b1ce67adde862fcedd6c2635b476de5b5d81d241d1787aa015c98d6b snapshot
+13
symbols added
~23
symbols modified
−14
symbols removed
0
dead code introduced
Semantic Changes 50 symbols
~ docs/reference/type-contracts.md .md 2 symbols added, 2 symbols removed, 4 symbols modified
py` section DirectoryRenameOp — `muse/domain.py` L4942–4956
table section table L4948–4954
+ py` section RenameOp — `muse/domain.py` L4942–4958
+ table section table L4951–4956
~ py`
~ table
~ muse/core/semver_classifier.py .py 1 symbol added, 1 symbol removed, 1 symbol modified
_classify_directory_rename class function _classify_directory_rename L708–758
+ _classify_rename_op class function _classify_rename_op L708–758
~ tests/test_code_plugin.py .py 2 symbols added, 2 symbols removed, 2 symbols modified
test_move_and_edit_child_ops_show_symbol_diff method method test_move_and_edit_child_ops_show_symbol_diff L864–903
test_move_and_edit_collapses_to_single_patch method method test_move_and_edit_collapses_to_single_patch L826–862
+ test_move_and_edit_emits_rename_then_patch method method test_move_and_edit_emits_rename_then_patch L827–868
+ test_move_and_edit_patch_child_ops_show_symbol_diff method method test_move_and_edit_patch_child_ops_show_symbol_diff L870–909
~ tests/test_file_rename_detection.py .py 6 symbols added, 7 symbols removed, 9 symbols modified
test_child_summary_mentions_from_path method method test_child_summary_mentions_from_path L191–204
test_txt_rename_child_ops_empty method method test_txt_rename_child_ops_empty L155–169
test_txt_rename_patch_op_has_correct_address method method test_txt_rename_patch_op_has_correct_address L121–136
test_txt_rename_patch_op_has_from_address method method test_txt_rename_patch_op_has_from_address L138–153
test_txt_rename_produces_patch_op_not_insert_delete method method test_txt_rename_produces_patch_op_not_insert_delete L96–119
test_python_file_rename_from_address_set method method test_python_file_rename_from_address_set L246–260
test_python_file_rename_same_content_produces_patch_op method method test_python_file_rename_same_content_produces_patch_op L217–244
+ test_no_patch_op_has_from_address method method test_no_patch_op_has_from_address L155–167
+ test_txt_rename_op_has_correct_address method method test_txt_rename_op_has_correct_address L101–116
+ test_txt_rename_op_has_from_address method method test_txt_rename_op_has_from_address L118–133
+ test_txt_rename_produces_rename_op_not_insert_delete method method test_txt_rename_produces_rename_op_not_insert_delete L79–99
+ test_python_file_rename_emits_rename_op method method test_python_file_rename_emits_rename_op L207–221
+ test_python_file_rename_same_content_produces_rename_op method method test_python_file_rename_same_content_produces_rename_op L180–205
~ tests/test_format_patch_supercharge.py .py 1 symbol added, 1 symbol removed, 1 symbol modified
test_directory_rename_is_renamed method method test_directory_rename_is_renamed L370–371
+ test_rename_is_renamed method method test_rename_is_renamed L370–371
~ tests/test_sem_ver.py .py 1 symbol added, 1 symbol removed, 4 symbols modified

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