php-agentic/tests/Feature
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
..
Jobs style: fix pint code style issues 2026-02-23 06:42:24 +00:00
Livewire test: add Livewire component tests for all 12 admin components 2026-02-23 01:16:33 +00:00
.gitkeep Initial commit 2026-01-26 23:20:30 +00:00
AgentApiKeyServiceTest.php refactor(tests): convert IpRestrictionServiceTest to Pest functional syntax 2026-01-29 18:50:41 +00:00
AgentApiKeyTest.php refactor(tests): convert AgentApiKey tests to Pest functional syntax 2026-01-29 18:42:56 +00:00
AgentPhaseTest.php perf: replace N+1 find() with whereIn batch lookup in checkDependencies() 2026-02-23 10:40:00 +00:00
AgentPlanTest.php feat: add plan archival with retention policy (#34) 2026-02-23 15:11:55 +00:00
AgentSessionTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
ApiKeyManagerTest.php style: fix pint code style issues 2026-02-23 06:42:24 +00:00
ContentServiceTest.php fix: add batch failure recovery to ContentService (#27) 2026-02-23 11:17:56 +00:00
ForAgentsControllerTest.php style: fix pint code style issues 2026-02-23 06:42:24 +00:00
IpRestrictionServiceTest.php refactor(tests): convert IpRestrictionServiceTest to Pest functional syntax 2026-01-29 18:50:41 +00:00
PlanRetentionTest.php feat: add plan archival with retention policy (#34) 2026-02-23 15:11:55 +00:00
PlanTemplateServiceTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
PromptVersionTest.php test: add PromptVersion model tests 2026-02-23 05:18:37 +00:00
SecurityTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00