Skip to content

[codex] default unknown contributed tools to mutating#22143

Merged
jif-oai merged 2 commits into
mainfrom
codex/default-unknown-tools-mutating
May 11, 2026
Merged

[codex] default unknown contributed tools to mutating#22143
jif-oai merged 2 commits into
mainfrom
codex/default-unknown-tools-mutating

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented May 11, 2026

Summary

  • make the shared ToolExecutor::is_mutating default conservative by returning true
  • update the trait docs to say read-only tools should opt out explicitly
  • add a regression test covering the default behavior

Why

Hosts use this signal for serialization and approval policy. Treating unknown contributed tools as read-only lets a write-capable tool accidentally bypass mutating-tool safeguards if it forgets to override the hook.

Validation

  • not run, per request

@jif-oai jif-oai marked this pull request as ready for review May 11, 2026 12:13
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 11, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 11, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jif-oai jif-oai merged commit 7e15e6d into main May 11, 2026
26 checks passed
@jif-oai jif-oai deleted the codex/default-unknown-tools-mutating branch May 11, 2026 12:39
@github-actions github-actions Bot locked and limited conversation to collaborators May 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant