feat(symlog): Phase 4 — lifecycle management (SL_36–SL_45)
- muse symlog expire SYMBOL|--file FILE|--all [--expire-days N] [--dry-run] [--json] prunes journal entries older than the configured or explicit TTL - muse symlog delete SYMBOL @{N}|--all [--json] removes one entry by @{N} index or all entries atomically - muse config set symlog.expire-days N: new [symlog] config section with get/set/load/dump support mirroring the [reflog] pattern - GcResult.symlog_expired: new field; muse gc --json gains symlog_expired - _expire_all_symlogs() called by _run_gc_inner() after reflog expiry; muse gc reads symlog.expire-days config key, defaults to 90 days - 36 tests in tests/test_cmd_symlog_lifecycle.py covering SL_36–SL_45
sha256:bb5f188f4947e008edbb5acdbf076a93ebb02a8a089332b0f168bc5e473b62df
sha
+76
~24
symbols
sha256:4cc28a26896e076068e4660c8f53e365bd0926354e657f33ac29d4e4e04d57fb
snapshot
+76
symbols added
~24
symbols modified
0
dead code introduced
Semantic Changes
100 symbols
+
test_expire_deletes_log_file_when_all_expire
method
method test_expire_deletes_log_file_when_all_expire L184–196
+
test_expire_nonexistent_symbol_is_noop
method
method test_expire_nonexistent_symbol_is_noop L173–182
+
test_expire_all_default_ttl_keeps_recent
method
method test_expire_all_default_ttl_keeps_recent L305–317
+
test_delete_all_deleted_equals_prior_count
method
method test_delete_all_deleted_equals_prior_count L564–575
+
test_delete_nonexistent_symbol_exits_user_error
method
method test_delete_nonexistent_symbol_exits_user_error L616–624
+
test_index_error_message_contains_valid_range
method
method test_index_error_message_contains_valid_range L600–614
+
test_index_too_large_exits_user_error
method
method test_index_too_large_exits_user_error L586–598
+
test_gc_result_has_symlog_expired_field
method
method test_gc_result_has_symlog_expired_field L635–641
← Older
Oldest on task/symlog-phase4
All commits
Newer
docs(symlog): mark Phase 4 deliverables SL_36–SL_45 complete in …
sha256:7de9bec1810a4865e3214ccc2ce85d5b3eefc45a284bec6f3f6dc30e147a5a4a
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:bb5f188f4947e008edbb5acdbf076a93ebb02a8a089332b0f168bc5e473b62df --body "your comment"
No comments yet. Be the first to start the discussion.