feat(core): add SEP-2575 request metadata and discovery types#893
Open
Yusufihsangorgel wants to merge 1 commit into
Open
feat(core): add SEP-2575 request metadata and discovery types#893Yusufihsangorgel wants to merge 1 commit into
Yusufihsangorgel wants to merge 1 commit into
Conversation
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.
Summary
Part of #815.
Adds the core wire surface needed before request-scoped runtime behavior can be implemented:
server/discover, its required cache fields, and unsupported-version error data; andMotivation and Context
SEP-2575 moves protocol and client context onto individual requests. The SDK needs a dual-era representation before admission and dispatch can enforce the modern contract without breaking legacy requests.
This PR deliberately stops at the schema/codec boundary. It does not add server dispatch, modern request admission, Streamable HTTP, authentication, subscriptions, MRTR, or the general cache contract.
How Has This Been Tested?
A full
:kotlin-sdk-core:buildwas also attempted. It stops locally attvosSimulatorArm64Testbecause the Kotlin/Xcode environment cannot run that simulator target. The same task fails with the same device-property error on an exact cleanmainworktree.Breaking Changes
This adds
DiscoverRequestas a newClientRequestsubtype. Consumers recompiling exhaustivewhenexpressions overClientRequestmay need to handle it. Existing request wire shapes and runtime behavior are unchanged.Types of changes
Checklist
Additional context
The discovery defaults are always encoded because the draft schema requires them even when a caller uses a
Jsoninstance with defaults disabled. New API is marked experimental while the 2026-07-28 specification remains a draft.