Problem Statement. prune_history(keep_latest) and
prune_history_by_age(min_age_seconds) exist. Operators have no
politics for "prune on Sunday 02:00 UTC". The prune_policy would
embed higher-level retention rules in storage.
Expected Outcome.
- New struct
PrunePolicy storing {keep_latest: u32, max_age_seconds: u64, cron_expr: String}.
- New functions:
set_prune_policy, get_prune_policy, apply_prune_policy.
- The cron expression is informational; actual cadence is cron-driven externally.
Files: lib.rs, new tests.
Problem Statement.
prune_history(keep_latest)andprune_history_by_age(min_age_seconds)exist. Operators have nopolitics for "prune on Sunday 02:00 UTC". The
prune_policywouldembed higher-level retention rules in storage.
Expected Outcome.
PrunePolicystoring{keep_latest: u32, max_age_seconds: u64, cron_expr: String}.set_prune_policy,get_prune_policy,apply_prune_policy.Files:
lib.rs, new tests.