Skip to content

fix: rotate bounded retention size scans - #367

Open
codeforester wants to merge 2 commits into
bug/354-20260918-protect-terminal-leasesfrom
bug/355-20260918-fair-retention-scans
Open

codeforester wants to merge 2 commits into
bug/354-20260918-protect-terminal-leasesfrom
bug/355-20260918-fair-retention-scans

Conversation

@codeforester

Copy link
Copy Markdown
Contributor

Summary

  • Persist an advisory byte-scan cursor in the atomic diagnostic run index.
  • Rotate bounded size walks across invocations and process restarts, advancing past unreadable entries.
  • Keep deletion based on live filesystem discovery and metadata/liveness revalidation, never the cursor/index.
  • Cover 1,025 bundles over three fresh passes with protected early bundles and an oversized tail bundle.

Closes #355

Dependency

This PR is intentionally stacked on #366 (issue #354) so retention lease hardening merges first.

Validation

  • uv run --extra dev --extra typer --extra quality python -m pytest tests/test_run_bundle_retention.py -q
  • uv run --extra dev --extra typer --extra quality python -m mypy --strict lib/python/base_cli/_runtime.py
  • Ruff check/format and git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant