Repository navigation
feat(id): serve-proxy wire protocol slice 1 — typed frame codec (#7569) - #7666
Merged
Merged
Conversation
Implements the framing layer of the #5792 decision record: 4-byte BE length prefix + typed frames (OPEN/DATA/CLOSE/WINDOW_UPDATE/PING/PONG/RESUME/RESUME_ACK/ERROR), 16 KiB DATA cap enforced on encode and decode, leg-scoped stream-ID parity, scheduling classes (control never queued behind DATA), classified ERROR reasons (#5671 classes + credit/protocol), and a credit-window primitive (64 KiB/stream, 1 MiB/connection initial) that never exceeds granted credit. Oracles: proptest decode-encode identity, streaming-decoder chunking transparency, credit-never-exceeded; 10/10 targeted tests pass on the laptop. Later slices (legs, mux mapping/scheduling, keepalive, resumption, E2E) remain on issue #7569.
developing-today
Bot
requested review from
a team and
dezren39
as code owners
November 8, 2026 11:39
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
4 tasks
Contributor
Author
|
Agent note — task 13211 parked, CI pending (lane code-b, direct)
|
Contributor
Author
|
🤖 Agent note · parked — CI pending
|
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.
Slice 1 of issue #7569: the serve-proxy (ID broker) typed frame codec, per the issue #5792 decision record §2.
What this lands (
pkgs/id/src/serve_proxy.rs, ungated pure-std module):try_consumenever exceeds granted credit (invariant 5).Tests (named oracles, per the repo testing doctrine):
cargo test --lib serve_proxy— 10 passed, 0 failed.Not in this slice (remaining on issue #7569, in decision-record order): leg establishment (TLS 1.3 / HTTP CONNECT / WebSocket adapter), broker-side stream-ID mapping + priority scheduling across streams, keepalive/dead-leg timing (§4, fake-clock MBT), resumption state machine (§5, model-based no-duplicate/no-reorder tests), and the E2E ciphertext forwarding test.
Filed by queue task 13211 (lane code-g); the task is parked on this PR's CI with the remainder named above.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.