feat(combo): publish safe metadata and enforce portable context - #2656
Open
zierocode wants to merge 8 commits into
Open
feat(combo): publish safe metadata and enforce portable context#2656zierocode wants to merge 8 commits into
zierocode wants to merge 8 commits into
Conversation
zierocode
marked this pull request as ready for review
July 23, 2026 02:20
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.
Problem
Logical fallback Combos need one portable context contract even when members have different context windows. Public metadata must stay conservative, and oversized requests should not be dispatched to a known undersized fallback member.
Closes the context-routing requirement in #1089.
Implementation
ETagover public state plus an HMAC-backed private-membership revisionIf-None-Matchvalidators with an empty304combo_context_window_exceededwithout provider dispatch when every known member is undersizedThe runtime check is defense in depth, not exact tokenizer proof. Clients should size and compact against the logical Combo's advertised minimum context window.
Upstream relationship
/v1/models, combo aggregation, pattern fixes #2242 remains the owner of broad physical-model capability discovery; this PR replaces optimistic Combo aggregation with a conservative projection around that registry.Verification
npm run buildpassedBase:
79918c7830695bbca4a45c9fea4a42c3e9fd73d1(v0.5.40)Head:
80181614