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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user