#158

Retry transient TypeSafe compatibility failures within budget

Draftmrmpswants to merge intofrom

A transient TypeSafe 502 ended /v1/systemone even when the next provider attempt could succeed. Retry gateway/service errors and connection failures once, with a 150 ms pause and a shared 30-second deadline.

Every attempt uses the existing spending permit. Cancellation, authentication, validation, and rate-limit responses stop retries; a recovered funded request settles one customer charge.

Fault-injected HTTP/ledger checks reproduce the failure and recovery. A retry can incur one additional upstream call; sustained provider failures still surface. This does not establish the cause of TypeSafe’s live outage. Visual evidence is not applicable: API behavior only.

Activity

3
coderabbitai[bot]14d ago

IMPORTANT

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This pull request is a draft

Merging is unavailable until it is marked ready for review.