mirror of
https://github.com/bitbaum/ai-kit.git
synced 2026-12-04 05:48:21 +01:00
Learned from truthseeker's hand-rolled client while converting it — the engine did not have this and should, so it is going in BEFORE the conversion rather than being deleted by it. 401/403 says "not you". Every remaining link at that provider presents the identical credential, so walking them spends a request each to be told the same thing — and then reports "all 5 links failed", which reads as an outage at someone else's shop and sends the reader looking for one. The fact worth surfacing is that a key this app holds was refused. Crossing to the NEXT vendor still happens: that is a different key, and the whole reason the chain spans vendors. Deliberately narrow, and the narrowness is the point. A 404 is a retired id, a 5xx is a vendor being unwell, a capacity 429 is a busy minute — all three are answered by asking a DIFFERENT model, and widening this skip to cover them would quietly turn the chain back into the pin it replaced. There is a test for the 404 case specifically. Verified in both directions by mutation: removing the skip turns both new tests red, and widening it to include 404 turns the one that names that boundary red. Claude-Session: https://claude.ai/code/session_01NHDLTKGirKU7He8q2YR2y4 Co-authored-by: Claude Opus 5 <noreply@anthropic.com>