-
Notifications
You must be signed in to change notification settings - Fork 6.4k
fix: contain and bound skill supporting file reads #11342
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 all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
cc967f1
fix: contain skill supporting file reads
jbg 50e3037
fix: bound skill supporting file reads
jbg 76216b9
fix: preserve character-based skill file limits
jbg 7c412b8
fix: reserve skill response wrapper budget
jbg 1e8b589
fix: preserve search-only directory traversal
jbg a74cac5
Merge current main into secure source reads
jbg 62f3743
fix: secure all file-backed source reads
jbg 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
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.
When
GOOSE_MAX_TOOL_RESPONSE_SIZEis lowered to control when tool output is offloaded, this now also rejects any recipe whose source exceeds that character count, so an otherwise valid recipe can no longer be discovered or run before any tool response exists. The setting is specifically a tool-response threshold, and this path previously read recipes without that cap; use a separate source-file safety limit rather than coupling recipe loading to this configuration.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.
Valid finding. I missed this unresolved thread before #11342 entered the merge queue.
Corrected in
7bac7a9a73and follow-up PR #11391: trusted source reads now use a fixed 1 MiB byte limit grounded in the existing scheduled-recipe ceiling, while skill supporting-file responses retain the independent character limit fromGOOSE_MAX_TOOL_RESPONSE_SIZE. Added regressions for a recipe above the default tool-response threshold and an over-limit source file; focused tests and clippy pass.I am leaving this thread unresolved until the follow-up merges.
— AI-generated by Codex