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:
@@ -53,7 +53,7 @@ Tiers:
|
|||||||
|
|
||||||
Deletions Pruning:
|
Deletions Pruning:
|
||||||
All modes also prune old deletion records from deletions.jsonl to prevent
|
All modes also prune old deletion records from deletions.jsonl to prevent
|
||||||
unbounded growth. Default retention is 7 days (configurable via --retention
|
unbounded growth. Default retention is 3 days (configurable via --retention
|
||||||
or deletions_retention_days in metadata.json).
|
or deletions_retention_days in metadata.json).
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ type Config struct {
|
|||||||
JSONLExport string `json:"jsonl_export,omitempty"`
|
JSONLExport string `json:"jsonl_export,omitempty"`
|
||||||
|
|
||||||
// Deletions configuration
|
// 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.
|
// Deprecated: LastBdVersion is no longer used for version tracking.
|
||||||
// Version is now stored in .local_version (gitignored) to prevent
|
// 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.
|
// 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.
|
// GetDeletionsRetentionDays returns the configured retention days, or the default if not set.
|
||||||
func (c *Config) GetDeletionsRetentionDays() int {
|
func (c *Config) GetDeletionsRetentionDays() int {
|
||||||
|
|||||||
Reference in New Issue
Block a user