feat: add plan archival with retention policy #62
No reviewers
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-agentic#62
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/plan-retention-policy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements configurable retention policy for archived plans, preventing indefinite data accumulation.
agentic.plan_retention_daysconfig key (default 90 days, overridable viaAGENTIC_PLAN_RETENTION_DAYSenv var)SoftDeletestrait andarchived_attimestamp toAgentPlanmodel000006) fordeleted_atandarchived_atcolumns onagent_plansagentic:plan-cleanupartisan command with--dry-runand--daysoptionsbooted()hookPlanRetentionCommandinConsoleBootingevent handlerPlanRetentionTestfeature test suite (9 tests) covering all retention scenariosarchive()to storearchived_atas a dedicated typed column instead of metadata stringCloses
Closes #34
Test plan
AgentPlan::archive()setsarchived_attimestampagentic:plan-cleanup --dry-run --days=90reports count without deletingagentic:plan-cleanup --days=90permanently removes plans archived > 90 days agoAGENTIC_PLAN_RETENTION_DAYS=0disables cleanupPlanRetentionTestall pass🤖 Generated with Claude Code