feat
BREAKING
gc
task/gc-supercharge-json-agent
#1 / 1
feat(gc): supercharge JSON schema for agent-readiness
- Add status (ok|error), error, warnings, mode, exit_code fields to --json output - Replace elapsed_seconds with duration_ms (milliseconds, float) for consistency - Add collected_commit_ids and collected_snapshot_ids lists (populated by --full) - Structured JSON error response when --grace-period < 0 in --json mode - GcResult.warnings captures logger.warning() calls via _WarningCapture handler - mode: 'conservative' (default) | 'tight' (--full) communicates reachability strategy - Extract _run_gc_inner() to cleanly wrap warning capture in run_gc() - 33 new TDD tests (test_gc_supercharge_json.py) — all green
sha256:658b27c22adbc07d28a88375c4400231fbc35071b6f67abb495a1818adc94280
sha
+56
~9
−1
symbols
sha256:045b811b20c4b31d647d586a40800738bc6bf74bc89781a8c55cad8d6740a160
snapshot
+56
symbols added
~9
symbols modified
−1
symbol removed
0
dead code introduced
Semantic Changes
66 symbols
+
test_bad_grace_period_json_error_field_non_empty
method
method test_bad_grace_period_json_error_field_non_empty L320–330
+
test_bad_grace_period_json_error_mentions_grace_period
method
method test_bad_grace_period_json_error_mentions_grace_period L332–344
+
test_bad_grace_period_json_has_exit_code
method
method test_bad_grace_period_json_has_exit_code L346–357
+
test_bad_grace_period_json_mode_emits_json
method
method test_bad_grace_period_json_mode_emits_json L307–318
+
test_bad_grace_period_json_mode_exit_code_1
method
method test_bad_grace_period_json_mode_exit_code_1 L296–305
+
test_collected_commit_ids_conservative_mode_always_empty
method
method test_collected_commit_ids_conservative_mode_always_empty L271–278
+
test_collected_commit_ids_empty_when_all_reachable
method
method test_collected_commit_ids_empty_when_all_reachable L255–261
+
test_collected_snapshot_ids_conservative_mode_always_empty
method
method test_collected_snapshot_ids_conservative_mode_always_empty L280–286
+
test_collected_snapshot_ids_empty_when_all_reachable
method
method test_collected_snapshot_ids_empty_when_all_reachable L263–269
+
test_symlink_object_file_skip_adds_warning
method
method test_symlink_object_file_skip_adds_warning L367–381
~
_GcJson
← Older
Oldest on task/gc-supercharge-json-agent
All commits
Newer →
Latest on task/gc-supercharge-json-agent
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:658b27c22adbc07d28a88375c4400231fbc35071b6f67abb495a1818adc94280 --body "your comment"
No comments yet. Be the first to start the discussion.