php-agentic/Models
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
..
AgentApiKey.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
AgentPhase.php perf: replace N+1 find() with whereIn batch lookup in checkDependencies() 2026-02-23 10:40:00 +00:00
AgentPlan.php feat: add plan archival with retention policy (#34) 2026-02-23 15:11:55 +00:00
AgentSession.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
AgentWorkspaceState.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
Prompt.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
PromptVersion.php refactor: update namespaces for L1/L2 package convention 2026-01-27 17:34:46 +00:00
Task.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
WorkspaceState.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00