Skip to content

feat(id-config): fan-out keys and hop limit (#9111 F1) - #14813

Merged
dezren39 merged 2 commits into
mainfrom
claude/project-thread-cd0v1t
Nov 25, 2026
Merged

dezren39 merged 2 commits into
mainfrom
claude/project-thread-cd0v1t

Conversation

@dezren39

@dezren39 dezren39 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Part of #9111

Before: the id config had no fan-out section, and ceilings.max_hops accepted any positive number.

After: a fanout section holds deadline_ms (default 5000, limit 60000), per_peer_timeout_ms (default 2000, limit 30000) and peer_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, and ceilings.max_hops above 8 rejects too. A per-peer timeout longer than the deadline is accepted and clamped to the deadline in the resolved config.

How: Fanout struct with serde defaults and deny_unknown_fields, a new ConfigError::OutOfRange, checks in validate, the clamp in resolve, and matching $defs.fanout plus the max_hops maximum in id-config-v1.schema.json. fanout is classified as behavior. fanout.remotes[] is left for the peers plane (9111-03). Tests in tests/config_invariants.rs cover 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-bot with what you need.

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]>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 40a7fc05-6e36-4efd-a1ca-cbeb90c1795a
Commits

Reviewing files that changed from the base of the PR and between aa853d2 and 3650f5a.

Files selected for processing: 4

  • pkgs/id/config/id-config-v1.schema.json
  • pkgs/id/crates/id-config/src/lib.rs
  • pkgs/id/tests/config_invariants.rs
  • pkgs/id/tests/config_rollout.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@dezren39
dezren39 marked this pull request as ready for review November 25, 2026 03:17
@dezren39
dezren39 merged commit bf4962a into main Nov 25, 2026
1 check passed
@dezren39
dezren39 deleted the claude/project-thread-cd0v1t branch November 25, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants