-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
π fix: Align Summarization Trigger Schema with Documented and Runtime-Supported Types #12735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
072d224
π fix: accept documented `summarization.trigger.type` values
danny-avila 599c0fe
π§Ή fix: bound `token_ratio` trigger value to (0, 1]
danny-avila bc4e2c8
π§Ή fix: accept `token_ratio: 0` per documented 0.0β1.0 inclusive range
danny-avila 1aba326
π fix: preserve `token_ratio` trigger when `value: 0`
danny-avila a2731a9
π§Ή fix: reject non-finite trigger values at schema level
danny-avila 7521b7e
π§Ή fix: integer counts + targeted token_count migration warning
danny-avila 3d11e26
π§Ή fix: accurate fallback wording + bare-string trigger test
danny-avila 617e166
π fix: cast `raw.trigger.type` to inspect legacy value past narrowed β¦
danny-avila File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
summarizationTriggerSchemanow acceptstype: "token_ratio", butvalueis only validated aspositive(), so values greater than 1 (for example80) pass schema validation even though token usage ratio cannot exceed 1.0. In that configuration, summarization will never trigger, recreating a silent no-op path for misconfigured but schema-valid YAML; this is especially risky because the docs describetoken_ratioas a fraction in the0.0β1.0range.Useful? React with πΒ / π.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in 599c0fe β switched to a discriminated union so
token_ratiois bounded to(0, 1]whileremaining_tokensandmessages_to_refinekeep unconstrained positive values (they're counts, not fractions). Added tests forvalue: 80andvalue: 1.01being rejected andvalue: 1being accepted at the upper bound.