Skip to content

backups: configure count-and-age snapshot retention #220

Open

Description

@fieldmouseworks-workers

Child of #44. Finish only this task in one fresh session and one PR. The parent's original authorization boundaries still apply; this child grants no additional authority. Do not read earlier sessions' transcripts.

Refs #44, owner-approved decision 5. One PR, after #213 establishes disposition-aware recovery obligations. Existing backups already use validated VACUUM INTO snapshots, durability, count pruning, and configured plain/encrypted off-server copies; extend that owning pipeline rather than replacing it. Add typed age configuration alongside count, with an ADR specifying their combined pruning semantics, UTC age boundaries, safe defaults, and treatment of manual, scheduled, pre-migration, pre-restore, damaged, and copied files. Preserve required recovery evidence and recovery safeguards from #213. Apply the same policy contract to applicable local and configured copy retention without deleting unrelated files. Expose effective settings and pruning failures through existing read-only backup status and document CLI/install configuration. This authorizes product implementation and invented scratch-data tests only, not production pruning, deployment, or arbitrary external-data deletion. Do not duplicate completed #8 or #90 work.

Verification: Clock-controlled tests cover count-only compatibility, combined count/age boundaries, invalid settings, special snapshot classes, recovery obligations, encrypted copies, unavailable destinations, and pruning failures. Negative controls demonstrate incorrect pruning is rejected. Real-binary browser proof shows effective read-only status. Run full current CONTRIBUTING.md gates.

If this is too big, publish any progress, split it with proj split FILE (a JSON array of title/body/check tasks), then end the session. Wait for the PR to land before declaring this task done.

Activity

  1. added
    later
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    later

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions