gabriel / muse public
fix BREAKING task/commit-id-v2 #2 / 2
AI Agent gabriel · 48 days ago · Apr 24, 2026 · Diff

fix: apply_manifest only deletes tracked files; _walk_tree stages dotfiles

Two data-safety bugs fixed:

1. apply_manifest(root, prev_manifest, target_manifest) — new 3-arg signature. Deletion candidates come from prev_manifest.keys() instead of walk_workdir(), so untracked files (Write tool docs, local scripts) are never deleted.

2. _walk_tree in code_stage.py — removed dotfile skip. muse code add . now stages .museattributes, .museignore, and other dotfiles just as git add . stages .gitattributes and .gitignore.

All callers updated. 196 tests pass.

sha256:55a8bbec0d35d504592b28a75462e1010cfed70023c31283d5057e577347cd8f sha
sha256:acdbb52fcb78d43ef8dc7380c61e8e21613d35603481cb6ce620617893afd404 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:55a8bbec0d35d504592b28a75462e1010cfed70023c31283d5057e577347cd8f --body "your comment"