Repository navigation
docs(canon): record three unlisted divergences, correct two reasons (#861) - #878
Merged
Merged
Conversation
…861) Records the redirect rule, the header-authenticated terminal upgrade and the batch-shim argument refusal in the divergence lists of their sections, each with upstream at the pin, the SDK at the base, the mechanism and a reversal trigger. Corrects the no-exit-hook reason (the server's own hook covers its tool groups) and names the hard mechanism behind the strict pid rule.
…caping, signal semantics
This was referenced Nov 15, 2026
Closed
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.
Closes #861
Documentation only. Every record cites upstream at the pin (
v2.3.0,a6b15d33) and the SDK at this PR's base (b6061e0c), with its mechanism and a reversal trigger, in the divergence list of its own section ofdocs/architecture/client-runtime.md.Recorded divergences
redirect: "follow"; the SDK's owned handlers disable redirects. The mechanism was observed, not assumed: Bun 1.4.4's fetch keepsAuthorizationon a same-origin redirect and drops it across origins, while .NET 11'sSocketsHttpHandlerdrops it on a same-origin redirect too (itsRedirectHandlerclears the header on every redirect it follows). A followed redirect would reach its target without the credential.Authorizationheader (PTY WebSocket session). Upstream mints a ticket because the browserWebSocketAPI cannot set headers;ClientWebSocket.Options.SetRequestHeaderexists on every shipped target.bun.lock:2813), which quotes and caret-escapes, a second time only for paths matchingnode_modules/.bin/*.cmd. An escape's survival depends on percent and delayed expansion and on how often an arbitrary batch file re-parses its arguments (BatBadBut: CVE-2024-24576, CVE-2024-27980).Corrected reasons (decisions unchanged)
The legacy service-config rewrite is not recorded here: #213 adopts upstream's repair.
Review
A read-only review from another model family checked every citation and mechanism and reran both redirect probes. Its four findings (an overstated cross-spawn description, missing SDK-at-base citations for three items, the exit hook's tracking limit, and the signal semantics) are fixed in the second commit.
Checks and version impact
Markdown only, so no local check applies (
quality-gates.md). No version impact.