Add provider retry foundation#915
Open
simple-agent-manager[bot] wants to merge 2 commits intomainfrom
Open
Conversation
Owner
|
Implementation follow-up is complete locally but not pushed yet because the workspace GitHub token is currently invalid. Local commit waiting to push:
What changed in that local commit:
Verification completed locally:
Blocked verification:
Push blocker:
|
Add comprehensive retry infrastructure across the platform: 1. Generic fetch retry with exponential backoff, jitter, and Retry-After header honoring (fetchWithTimeoutAndRetry in fetch-timeout.ts) 2. Idempotent DNS upsert — search-before-create with duplicate handling and PATCH-if-exists for Cloudflare DNS records 3. CF API retry with env-controlled knobs (CF_API_RETRY_*) 4. API-to-VM agent request retry (NODE_AGENT_REQUEST_RETRY_*) 5. TaskRunner DO per-step retry budgets with env overrides 6. isTransientError() extended with explicit retryable metadata support 7. Idempotent provider VM recovery via listVMs label matching before createVM 8. Cloud-init provider awareness (PROVIDER env var) and apt retry config 9. VM agent devcontainer build timeout (DEVCONTAINER_BUILD_TIMEOUT) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
01KQXHKV6A34HJQR4YCACZR734for the system-wide retry and resiliency plan.ProviderError, including retryability, reason, retry-after, and idempotency-risk metadata.providerFetchWithRetrywith bounded exponential backoff, jitter, and Retry-After support.Verification
pnpm --filter @simple-agent-manager/providers test -- --runpnpm --filter @simple-agent-manager/api test -- provider-credentialspnpm --filter @simple-agent-manager/providers typecheckpnpm --filter @simple-agent-manager/providers lint(passes with existing non-null assertion warnings)pnpm --filter @simple-agent-manager/api typecheckgit diff --checkNotes