php-agentic/Services
darbs-claude 78bdebcaaa
Some checks failed
CI / PHP 8.3 (pull_request) Failing after 1m24s
CI / PHP 8.4 (pull_request) Failing after 1m27s
fix: add batch failure recovery to ContentService (#27)
- Track progress in a per-batch JSON state file after each article so
  a mid-run crash leaves a recoverable checkpoint
- Add `maxRetries` parameter to generateBatch() with per-article retry
  loop (default: 1 extra attempt)
- Add `resumeBatch()` to re-process only failed/pending articles,
  skipping those already successfully generated in a prior run
- Add `loadBatchProgress()` public method for inspecting state
- State stores per-article status, attempt counts, error messages,
  and timestamps for full observability

Tests: 6 new scenarios covering state persistence, resume capability,
retry logic, and the no-state error case

Closes #27

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 11:17:56 +00:00
..
Concerns chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
AgentApiKeyService.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
AgentDetection.php refactor: rename namespace Core\Agentic to Core\Mod\Agentic 2026-01-27 16:12:58 +00:00
AgenticManager.php refactor: rename namespace Core\Agentic to Core\Mod\Agentic 2026-01-27 16:12:58 +00:00
AgenticProviderInterface.php refactor: rename namespace Core\Agentic to Core\Mod\Agentic 2026-01-27 16:12:58 +00:00
AgenticResponse.php refactor: rename namespace Core\Agentic to Core\Mod\Agentic 2026-01-27 16:12:58 +00:00
AgentSessionService.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
AgentToolRegistry.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
ClaudeService.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
ContentService.php fix: add batch failure recovery to ContentService (#27) 2026-02-23 11:17:56 +00:00
GeminiService.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
IpRestrictionService.php refactor: rename namespace Core\Agentic to Core\Mod\Agentic 2026-01-27 16:12:58 +00:00
OpenAIService.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
PlanTemplateService.php refactor: update namespaces for L1/L2 package convention 2026-01-27 17:34:46 +00:00