Skip to content

Default worktreeRetention to 10 for new and existing projects #603

Closed

Description

@currentbits

Part of #559.

Store worktreeRetention: 10 on new projects (addProject) and migrate existing projects that lack the field. Explicit 0 is the keep-everything escape hatch and must survive migration (today 0 deletes the key).

enforceRetention already reclaims when the field is a positive number. After this, boot GC actually runs.

Tests:

  • migrateProject without the field yields worktreeRetention: 10
  • explicit 0 survives migration
  • addProject / createProject persist 10
  • updateProject with 0 stores 0 rather than deleting the key

Activity

  1. added
    plan:doing
    plan:done
    and removed
    plan:doing
    on Aug 20, 2026
  2. currentbits commented on Aug 22, 2026

    @currentbits
    OwnerAuthor

    Verified shipped on main (audit 2026-08-22): implementation present in the working tree, not just on a worker branch. Closing — the planboard never auto-closed these (#632).

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions