Skip to content

feat(core): add fallback targets for provider errors#905

Merged
christso merged 2 commits intomainfrom
feat/899-fallback-targets
Apr 1, 2026
Merged

feat(core): add fallback targets for provider errors#905
christso merged 2 commits intomainfrom
feat/899-fallback-targets

Conversation

@christso
Copy link
Copy Markdown
Collaborator

@christso christso commented Apr 1, 2026

Summary

  • Added fallback_targets field to target definitions in targets.yaml
  • When primary target fails with retryable errors after exhausting retries, tries fallback targets in order
  • Records target_used in result JSONL when a fallback was used
  • Non-breaking: fallback_targets is optional, existing configs work unchanged

Test plan

  • 10 unit tests covering schema resolution and orchestrator fallback logic
  • All tests pass
  • Build, typecheck, lint clean
  • 53 example YAML files validate successfully

Closes #899

🤖 Generated with Claude Code

When a primary target fails with retryable errors after exhausting
retries, the runner now tries fallback_targets in order. The result
JSONL records which target actually served the response via target_used.

Closes #899

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 1, 2026

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 57e2eff
Status:🚫  Build failed.

View logs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@christso christso merged commit fcf6c30 into main Apr 1, 2026
3 of 4 checks passed
@christso christso deleted the feat/899-fallback-targets branch April 1, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: fallback targets for provider errors

1 participant