Skip to content

retention: how long stored change sets, run events and releases are kept, and garbage collection #4036

Closed

Description

@lex00

Sub-issue of INTENTIUS/behold#678. Phase 3. From the #678 audit.

Context

The epic stores change sets per gate, environment and release (#4022), run events (#4019) and releases (#4026), mostly on the chant/lifecycle git branch. That grows without bound. #3990 has a higher-volume backend item. This issue owns the retention numbers for all of them, including #4022's stored change sets.

Requirements

  1. A retention policy per record kind, with defaults and a declaration override.
  2. A GC command that prunes by policy and never prunes what an environment runs, a pending gate binds, or a release still promotable.
  3. Project the growth with a synthetic fixture: generate a month of records at chant's own rate (commits, runs, gates and releases per day, counted from its current ledgers), and record the size before and after GC.

Acceptance

  • Policy and GC, with tests for the never-prune rules.
  • A synthetic fixture test that generates a month of records, runs GC, and records the sizes before and after here.

Activity

  1. added
    enhancement
    area:lifecycle
    area:workspace
    phase:3
    on Oct 16, 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

    area:lifecyclearea:workspaceenhancementphase:3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions