feat(sdk): publish typed runtime model catalog results - #83
Open
andrewkcchung wants to merge 1 commit into
Open
andrewkcchung wants to merge 1 commit into
andrewkcchung wants to merge 1 commit into
Conversation
Define and validate a stable runtime model catalog wire contract and expose it consistently through generated and handwritten SDK clients. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.
Why
Runtime model catalogs cross SDK, management, and web-client boundaries. Returning unvalidated
any[]values makes every consumer reinterpret the wire format and allows malformed provider responses to fail much later. A provider-neutral public contract gives all model providers and clients one stable boundary without prescribing provider-specific catalog policy.What changed
Behavioral proof
Command:
main: The contract test/type consumer failed becausemainhad no public model-catalog module or typed normalized result.Risk assessment
Relative risk: Low
The change is confined to SDK type normalization and client result validation. It does not alter persistence, authentication, orchestration, or provider selection. The main compatibility exposure is that malformed catalog entries without required identity fields now fail explicitly; runtime, generated-client, package-export, and consumer type tests cover that boundary.
Review focus
any.