# summary

Compact and archive old evidence records.

# description

Moves evidence records older than the specified threshold into an archive file,
reducing the size of the active evidence log.

# flags.older-than-days.summary

Age threshold in days.

# flags.older-than-days.description

Archive evidence records older than this many days (default: 30).

# flags.dry-run.summary

Preview what would be compacted without writing.

# flags.task.summary

Only compact records for a specific task.

# flags.task.description

Restrict compaction to evidence records associated with the given task id.

# examples

- Compact evidence older than 30 days:

  <%= config.bin %> <%= command.id %>

- Preview compaction of 60-day-old records:

  <%= config.bin %> <%= command.id %> --older-than-days 60 --dry-run

- Compact evidence for a specific task:

  <%= config.bin %> <%= command.id %> --task SA-96

# info.empty

No evidence records found.

# info.nothingToCompact

All evidence records are within the retention window. Nothing to compact.

# info.dryRun

[dry-run] Would archive %s records, keeping %s active.

# info.compacted

Compacted: archived %s records, %s remain active. Archive: %s
