refactor: separate checkpoint store maintenance from snapshots

Move retention, orphan pruning, status and clear operations into a topical sibling and route callers and tests directly to their defining module. Keep the shared store paths and git execution in checkpoint_manager; shorten the local child-env WHAT docstring.
This commit is contained in:
ethernet
2026-09-24 01:55:19 -04:00
parent b1be8a1cf5
commit 6716b72ef2
16 changed files with 648 additions and 659 deletions

View File

@@ -4777,7 +4777,7 @@ def _housekeeping_checkpoint_prune() -> None:
"""Checkpoint store retention + size cap on a live timer; ``auto_prune_from_config`` gates on
``checkpoints.auto_prune`` and the 24h ``.last_prune`` marker. Off the startup path because its
``git gc`` can block for tens of seconds on a large store."""
from tools.checkpoint_manager import auto_prune_from_config
from tools.checkpoint_maintenance import auto_prune_from_config
auto_prune_from_config()