fix(anthropic): better 429/529 handling
- add some tests - fix some tests - change how we handle permissions