php-agentic/agentic.php
Clotho cc1c4c1adc
Some checks failed
CI / PHP 8.3 (pull_request) Failing after 21s
CI / PHP 8.4 (pull_request) Failing after 19s
feat: add plan archival with retention policy (#34)
- Add `agentic.plan_retention_days` config (default 90 days via AGENTIC_PLAN_RETENTION_DAYS env)
- Add SoftDeletes and `archived_at` timestamp to AgentPlan model
- Add migration for `deleted_at` and `archived_at` columns on agent_plans
- Create `agentic:plan-cleanup` command with --dry-run and --days options
- Schedule retention cleanup to run daily via service provider
- Register PlanRetentionCommand in ConsoleBooting handler
- Add PlanRetentionTest feature test suite covering all retention scenarios
- Fix archive() to store archived_at as dedicated column (not metadata string)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 15:11:55 +00:00

21 lines
536 B
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| Plan Retention Policy
|--------------------------------------------------------------------------
|
| Archived plans are permanently deleted after this many days. This frees
| up storage and keeps the database lean over time.
|
| Set to 0 or null to disable automatic cleanup entirely.
|
| Default: 90 days
|
*/
'plan_retention_days' => env('AGENTIC_PLAN_RETENTION_DAYS', 90),
];