Repository navigation
feat(id-config): fan-out keys and hop limit (#9111 F1) - #14813
Merged
Merged
Conversation
Adds the fanout section of the #9111 record section 7.1: deadline_ms, per_peer_timeout_ms and peer_breadth, each with a default and a fixed limit that rejects instead of clamping. ceilings.max_hops is bounded by 8. The per-peer timeout is clamped to the deadline at resolution. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 32 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #9111
Before: the id config had no fan-out section, and
ceilings.max_hopsaccepted any positive number.After: a
fanoutsection holdsdeadline_ms(default 5000, limit 60000),per_peer_timeout_ms(default 2000, limit 30000) andpeer_breadth(default 4, limit 16), as the #9111 record §7.1 lays out. A value of 0 or above its limit rejects the document instead of being clamped, andceilings.max_hopsabove 8 rejects too. A per-peer timeout longer than the deadline is accepted and clamped to the deadline in the resolved config.How:
Fanoutstruct with serde defaults anddeny_unknown_fields, a newConfigError::OutOfRange, checks invalidate, the clamp inresolve, and matching$defs.fanoutplus themax_hopsmaximum inid-config-v1.schema.json.fanoutis classified as behavior.fanout.remotes[]is left for the peers plane (9111-03). Tests intests/config_invariants.rscover defaults, inclusive limits, zero and limit+1 rejection, the hop limit, the clamp and schema agreement.Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.