Commit 65444d5
docs(kernel): reduce the 429/503 details fences to what producers emit (#17190)
The two 429 fences taught `limit`, `window` and `quota_reset`, none of which
any producer emits, and omitted `resetAt`, which both of them do. Both 429
emitters build the same exhaustive two-member bag:
packages/runtime/src/endpoint-policy.ts:356
packages/runtime/src/security/inbound-rate-limit.ts:359
details: { retryAfterSeconds, resetAt }
so anything else those fences name is not in the bag by construction. The
503 fence taught a `details` bag with `reason` / `retryAfterSeconds` /
`estimated_completion`; no 503 producer on this tree emits a `details` bag
at all, so the bag is dropped rather than re-spelled.
The `QUOTA_EXCEEDED` fence is deliberately untouched: that code has no
producer anywhere on the tree, so there is no emitted shape to reduce it to.
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
Co-authored-by: Claude <noreply@anthropic.com>1 parent 818bfdb commit 65444d5
1 file changed
Lines changed: 3 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | | - | |
423 | 421 | | |
424 | | - | |
| 422 | + | |
425 | 423 | | |
426 | 424 | | |
427 | 425 | | |
| |||
525 | 523 | | |
526 | 524 | | |
527 | 525 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
| 526 | + | |
534 | 527 | | |
535 | 528 | | |
536 | 529 | | |
| |||
650 | 643 | | |
651 | 644 | | |
652 | 645 | | |
653 | | - | |
654 | | - | |
655 | 646 | | |
656 | | - | |
657 | | - | |
| 647 | + | |
658 | 648 | | |
659 | 649 | | |
660 | 650 | | |
| |||
0 commit comments