Skip to content

agent-farm: migration backups (~/.agent-farm.bak-*) are never reaped #1239

Description

@waleedkadous

Found during a disk audit (2026-07-25): a ~/.agent-farm.bak-20260702-113930 directory — created by a state migration on 2026-07-02 — was still on disk three weeks later at 18 GB (a full copy of the agent-farm dir, dominated by the logs it duplicated). Nothing ever deletes these backups.

Proposal:

  • Migrations that create a .bak should record it and reap it after a verification window (e.g. 7 days of successful operation on the migrated state), or
  • codev doctor should at minimum surface existing .bak dirs with age + size so the human can decide.

Related: the no-rotation issue filed alongside this one — the .bak was so large mostly because the logs inside it had never rotated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/towerArea: Tower server / agent farm CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions