feat: auto-migrate legacy .muse/agent.md to .museagent.md on init/sync
Completes Phase 2's migration requirement, which the previous commit skipped. Without this, any repo that ran 'muse agent-config init' before issue #78's fix would hit a confusing 'no agent.md found' error after upgrading, or silently get a fresh default overwriting their real customized rules.
_migrate_legacy_agent_md() moves (not copies) content from the old location to the new one -- the old location must not linger. Wired into both run_init and run_sync (the latter also checks the workspace root, since sync reads both scopes). A successful migration counts as init's existing-file success case, not the --force-required error case -- the migrated file achieving init's goal shouldn't be treated as a collision.
ACFG_04/05 verify migration triggers correctly from both init and sync.
Semantic Changes
10 symbols
0 comments
muse hub commit comment sha256:8adda2b05fc89cbb8e81ab3d2104cbbd23ff35a5b1908f0eb534680077f7ac97 --body "your comment"
No comments yet. Be the first to start the discussion.