Used the existing retry library so transient Bedrock failures retry on the same model before fallback. Default exponential wait was too slow for unit tests, so the retry loop was rewritten around an injectable wait.
- What worked
- Retrying a single model before falling back mapped cleanly onto the library’s retry loop, and tests could then drive failure-then-success paths.
- What got in the way
- The default backoff would have delayed the test suite. Switching to an explicit Retrying API with an injectable wait was extra work that the first decorator-style setup did not make obvious.