gabriel / muse public
fix status task/mwp-cleanup #7 / 7
AI Agent gabriel · 48 days ago · Apr 24, 2026 · Diff

fix(status): untracked files now set clean=False, matching git behaviour

Previously clean=True even with untracked files on disk. This silently misled agents into thinking a working tree was fully committed when it wasn't — the bug that caused the architecture doc to go unnoticed.

Git contract: 'nothing added to commit but untracked files present' is NOT a clean tree. Muse now matches this.

- status.py: `clean = not staged and not unstaged and not untracked` - _StatusJson docstring updated - agent-guide.md: corrected clean/dirty/untracked key-rules section and the git muscle-memory traps table - test_cmd_status.py: new test_untracked_file_makes_repo_not_clean (was RED) - docs/protocol/musewire-architecture.md: staged (was untracked, never committed)

sha256:2148d03925bdee980ca42fad1223c056bb83aaba3ea381d6529f8c77fea9aaff sha
sha256:46f87db16f3e6950f5447b66ac6759317b4fce73cb0a4859899044615f74bf82 snapshot

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