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
+47
~5
symbols
sha256:8efe2dd8d781bba63e136ac0c6824efa1f12e72f6c79a727b46c90d8cc65fcc0
snapshot
+47
symbols added
~5
symbols modified
0
dead code introduced
Semantic Changes
52 symbols
+
test_II4_agent_id_empty_string_for_human
method
method test_II4_agent_id_empty_string_for_human L233–238
+
test_II5_model_id_empty_string_for_human
method
method test_II5_model_id_empty_string_for_human L240–245
+
test_II8_flag_overrides_env_for_agent_id
method
method test_II8_flag_overrides_env_for_agent_id L267–275
+
test_III1_dry_run_has_same_required_keys
method
method test_III1_dry_run_has_same_required_keys L284–290
+
test_III3_dry_run_false_on_real_commit
method
method test_III3_dry_run_false_on_real_commit L299–302
+
test_III4_dry_run_has_model_id_and_toolchain_id
method
method test_III4_dry_run_has_model_id_and_toolchain_id L304–319
+
test_V1_missing_message_exits_1_with_json_error
method
method test_V1_missing_message_exits_1_with_json_error L417–431
+
test_IV2_modification_increments_modified
method
method test_IV2_modification_increments_ L363–372
+
test_I3_committed_at_is_iso8601_with_tz
method
method test_I3_committed_at_is_iso8601_with_tz L163–170
~
run
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:dc42ab6616a11368905f97b58f196e1932557d66601c491f906e2f05508f86c1 --body "your comment"
No comments yet. Be the first to start the discussion.