gabriel / muse public
feat patch commit task/commit-json-schema #1 / 1
gabriel · 60 days ago · Apr 16, 2026 · Diff

feat(commit): add model_id, toolchain_id, files_changed.total + clean-tree JSON

- Add model_id and toolchain_id to commit --json output (both dry-run and success paths) — agents must not need a follow-up muse show to discover which model produced a commit - Add files_changed.total = added + modified + deleted for agent convenience - Fix clean-tree non-dry-run path: now emits {"clean": true} JSON when --json is set instead of silently printing text-only output - Add tests/test_commit_json_schema.py (26 tests): schema invariants, agent provenance, dry-run parity, file accounting, error paths - Fix test_files_changed_structure: accept 'total' in files_changed keys - Fix test_text_shows_branch_and_short_id: expect sha256:-prefixed format (prefix is canonical — never stripped from display)

sha256:dc42ab6616a11368905f97b58f196e1932557d66601c491f906e2f05508f86c1 sha
sha256:8efe2dd8d781bba63e136ac0c6824efa1f12e72f6c79a727b46c90d8cc65fcc0 snapshot
← Older Oldest on task/commit-json-schema
All commits
Newer → Latest on task/commit-json-schema

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