Add internal capacity error identity

This commit is contained in:
2026-07-30 23:21:27 +00:00
parent 25a7052a3d
commit 63c67a4520
9 changed files with 681 additions and 565 deletions

View File

@@ -33,18 +33,9 @@ consumers.
## Ideas
### Structured capacity errors
Add safe structured context to backend admission rejection, as requested by
[Notarius](notarius-promptkit-wishlist.md#priority-4-structured-capacity-errors)
and
[Weatherreporter](weatherreporter-promptkit-wishlist.md#structured-capacity-errors).
- Preserve compatibility with `errors.Is(err, ErrCapacityExceeded)`.
- Support `errors.As` to obtain the stable backend ID.
- Do not expose endpoints, credential configuration or values, request
content, or speculative retry timing.
- Keep retry and backoff policy with downstream consumers.
Structured capacity errors have been selected for active planning in the
[focused feature roadmap](capacity-errors.md). No other ideas currently await
selection.
## Entry Format