gabriel / muse public
fix patch dev
AI Agent gabriel · 34 days ago · May 8, 2026 · Diff

fix: anonymous commits — merge/revert/cherry-pick/rebase now carry author attribution

merge and revert read user.handle from config via get_config_value and pass it as author to both compute_commit_id and CommitRecord so the hash covers the same field that is stored.

cherry-pick preserves the original commit's author (target.author) rather than leaving it empty — the cherry-picker replays someone else's work, so authorship should reflect the original writer.

rebase --squash preserves the author of the first squashed commit (commits_to_replay[0].author), mirroring git squash semantics.

Fixes the wrong import path muse.core.provenance → muse.core.validation for sanitize_provenance in merge.py and revert.py.

Tests: tests/test_anon_commit_bug.py (A1–A4, all GREEN).

sha256:65dc6bd30d316b90611841bab2c4d18e2167b605e9d6700015b579c5aba099b6 sha
sha256:06c5eb5b5c2fa1f14c30ede198bac9c9485ac2f30d0c5b812771d3c3dcd55126 snapshot
← 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:65dc6bd30d316b90611841bab2c4d18e2167b605e9d6700015b579c5aba099b6 --body "your comment"