gabriel / muse public
test commit dev
AI Agent gabriel · 144 days ago · Apr 27, 2026 · Diff

test(commit): Phase 5 — stage preserved on branch-conflict failure

Regression suite confirming that clear_stage is never called when write_branch_ref fails with RefConflictError.

Phase 1's CAS fix implicitly ensured this (SystemExit before clear_stage), but without an explicit test the invariant had no coverage. Three tests: - staged files still appear in status after conflict - staged file content unchanged after failed commit - multiple staged files all survive

sha256:32fb73a6604624a3a0bb2a08b53306bf39844f8814733cbb51798fe368ca53f7 sha
+14 symbols
sha256:dc1db1bae795cb64ea6dcd1eb713af91b6a1fb7f3cabdf39d4ad769127a11f29 snapshot
+14
symbols added
0
dead code introduced
Semantic Changes 14 symbols
+ TestStagePreservedOnBranchConflict class class TestStagePreservedOnBranchConflict L54–123
+ test_multiple_staged_files_all_preserved method method test_multiple_staged_files_all_preserved L104–123
+ test_staged_file_content_intact_after_conflict method method test_staged_file_content_intact_after_conflict L86–102
+ test_staged_files_still_staged_after_conflict method method test_staged_files_still_staged_after_conflict L55–84
+ _fake_id function function _fake_id L39–40
+ _make_race_injector function function _make_race_injector L43–51
+ _run function function _run L32–36
+ CliRunner import import CliRunner L27–27
+ _store import import _store L25–25
+ annotations import import annotations L19–19
+ json import import json L21–21
+ patch import import patch L23–23
+ pathlib import import pathlib L22–22
+ runner variable variable runner L29–29
← 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:32fb73a6604624a3a0bb2a08b53306bf39844f8814733cbb51798fe368ca53f7 --body "your comment"