feat: change deletions TTL default from 7 to 3 days

Reduces the default retention period for deletion manifest entries.
Shorter TTL limits blast radius of stale deletions that can poison
beads installations when agents get out of sync.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-03 22:44:59 -08:00
parent 7f1e45e3db
commit f4b8a7ad4f
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ type Config struct {
JSONLExport string `json:"jsonl_export,omitempty"`
// Deletions configuration
DeletionsRetentionDays int `json:"deletions_retention_days,omitempty"` // 0 means use default (7 days)
DeletionsRetentionDays int `json:"deletions_retention_days,omitempty"` // 0 means use default (3 days)
// Deprecated: LastBdVersion is no longer used for version tracking.
// Version is now stored in .local_version (gitignored) to prevent
@@ -104,7 +104,7 @@ func (c *Config) JSONLPath(beadsDir string) string {
}
// DefaultDeletionsRetentionDays is the default retention period for deletion records.
const DefaultDeletionsRetentionDays = 7
const DefaultDeletionsRetentionDays = 3
// GetDeletionsRetentionDays returns the configured retention days, or the default if not set.
func (c *Config) GetDeletionsRetentionDays() int {