Skip to content

Read only retention metadata when pruning review history #424

Closed

Description

@lynnswap

Recording a terminal review calls prune and deleteEmptyWorkspaces in the same SQLite write transaction. Both fetch every review row, including canonicalReview and summary. Retention needs terminal IDs, workspace IDs and commit times. Empty-workspace cleanup only needs workspace references.

Avoid materializing review text for these operations while preserving retention order, the protected terminal ID, active workspaces and the IDs returned to the store.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions