Repository navigation
Spec: the network transport (TLS, pairing, discovery) and resources in initialize - #24
Merged
Merged
Conversation
…sources in initialize Section 3.2 now specifies CNP over TCP with TLS 1.3: self-signed certificates on both sides, recognised by SHA-256 fingerprint; a node serves only approved clients and says nothing to anyone else; pairing with a one-time code after the person has confirmed the node's fingerprint; one client at a time (Busy with a null id); disconnecting cancels; deadlines and limits. Section 3.3 specifies discovery: a 320-byte UDP probe on port 4026 and a reply no longer than the probe, with nothing private in it. Section 10 and the reserved list follow. initialize's result gains an optional resources object (threads, hashMb), so a client can tell a node with 64 threads from one with 1. Both additions are optional, like pondering's were to the 1.0 draft. The transport examples are checked by a new test, as the cnp examples are. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Specifies what cb2026's network listener does (cjus/chessengine#209), so another client can implement it from the spec.
Busy, null id), disconnect cancels, deadlines (no idle timeout), limits.initializeresult:resources(threads,hashMb), optional, so a client can tell a big node from a small one.Resourcesround trip and unknown fields, and a newtransport_examplestest that checks the spec's transport examples (sizes, fingerprint form, theBusyrefusal).Rust API note:
InitializeResultgains a field, so code that builds one with a struct literal needsresources: None.fmt, clippy, tests, doc and
cargo denypass locally.🤖 Generated with Claude Code