feat(show): add total_changes to --json output + comprehensive schema tests
- Add total_changes field to muse show --json (sum of files_added + files_modified + files_removed) - Add tests/test_show_json_schema.py with 24 tests covering: schema invariants, agent provenance fields (model_id, toolchain_id, reviewed_by, test_runs), file stat correctness, error handling (JSON error on bad refs), structured delta - Verify commit_id sha256: prefix, reviewed_by/test_runs presence, model_id emitted - Fix test_IV2 to parse JSON line from combined stdout/stderr in CliRunner output - Mark P2 'show traceback on invalid sha256: ID' as resolved (already clean exit 1)
sha256:ae31e5b256bdf1431d0ec9465b083c4677d87c073b229c7ed33343b8437b9c75
sha
+43
~1
symbols
sha256:7858220abda23c5e1c8f60a96d9d40a367149a77e0d77a91a36a5311ce38c0f8
snapshot
+43
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes
44 symbols
+
test_II1_agent_id_populated_from_flag
method
method test_II1_agent_id_populated_from_flag L220–235
+
test_II2_model_id_populated_from_flag
method
method test_II2_model_id_populated_from_flag L237–252
+
test_II3_agent_id_empty_string_for_human_commit
method
method test_II3_agent_id_empty_string_for_human_commit L254–261
+
test_II4_model_id_empty_string_for_human_commit
method
method test_II4_model_id_empty_string_for_human_commit L263–270
+
test_II5_toolchain_id_is_string_not_null
method
method test_II5_toolchain_id_is_string_not_null L272–277
+
test_IV2_json_error_on_nonexistent_ref
method
method test_IV2_json_error_on_nonexistent_ref L349–365
+
test_IV3_json_error_has_required_keys
method
method test_IV3_json_error_has_required_keys L367–380
+
test_IV5_ambiguous_prefix_returns_json_error
method
method test_IV5_ambiguous_prefix_returns_json_error L390–428
+
test_III1_total_changes_present_by_default
method
method test_III1_total_changes_present_by_default L286–293
+
test_III2_total_changes_equals_sum_of_buckets
method
method test_III2_total_changes_equals_sum_of_buckets L295–309
+
test_III3_total_changes_absent_with_no_stat
method
method test_III3_total_changes_absent_with_no_stat L311–322
+
test_III4_file_buckets_absent_with_no_stat
method
method test_III4_file_buckets_absent_with_no_stat L324–333
+
test_I3_committed_at_is_iso8601_with_tz
method
method test_I3_committed_at_is_iso8601_with_tz L176–183
+
test_V1_structured_delta_present_on_second_commit
method
method test_V1_structured_delta_present_on_second_commit L437–444
+
test_V2_structured_delta_null_on_initial_commit
method
method test_V2_structured_delta_null_on_initial_commit L446–454
~
run
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:ae31e5b256bdf1431d0ec9465b083c4677d87c073b229c7ed33343b8437b9c75 --body "your comment"
No comments yet. Be the first to start the discussion.