Repository navigation
fix(ai): the mcp benchmark tool takes no file path - #2738
Merged
Merged
Conversation
Owner
Author
|
Targeted tests on the rebased branch: 290 passed (tests/test_ai_benchmark_mcp_tool.py, test_fastmcp_contracts.py, test_mcp.py, test_ai_benchmark.py). Docs generation shows no diff. Fail-to-pass of the first test commit (base origin/main, file .data/agent/sec/f2p-2704.txt): 4 failed on base: the schema test and the refusal tests for output, document and code. The later test commit (no tool text names an unpublished flag) failed on the old help text with |
dan-petty
marked this pull request as ready for review
October 30, 2026 01:40
2 tasks done
dan-petty
pushed a commit
that referenced
this pull request
Oct 30, 2026
🤖 I have created a release *beep* *boop* --- ## [0.21.4](v0.21.3...v0.21.4) (2026-10-30) ### Bug Fixes * **ai:** name each prewarm server by host and port ([#2737](#2737)) ([2e2e4fa](2e2e4fa)), closes [#2676](#2676) * **ai:** the mcp benchmark tool takes no file path ([#2738](#2738)) ([5d5da15](5d5da15)), closes [#2704](#2704) * **config:** redact a removed credential in the config copies ([#2734](#2734)) ([f663344](f663344)), closes [#2645](#2645) * **rag:** name the Qdrant server by host and port ([#2733](#2733)) ([39aca9d](39aca9d)), closes [#2709](#2709) * **roadmap:** tick turn and kept diff for implement steps ([#2744](#2744)) ([890d2a6](890d2a6)), closes [#2721](#2721) * **security:** refuse the gh and kubectl keys that run a program ([#2732](#2732)) ([ad0bdf1](ad0bdf1)), closes [#2672](#2672) * **security:** refuse the keys that make a child write a file ([#2746](#2746)) ([1cd187e](1cd187e)), closes [#2674](#2674) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@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.
The MCP tool
ai_benchmarkno longer publishes the optionsoutput,documentandcode.Why: the model that calls the tool gives each value, and no guard checked it.
outputmade the command write a report to a path that the model chose.documentandcodemade the command read a file or a tree that the model chose and send its text to a model server. The tool needs none of them: it returns the report in its reply, and the embedding benchmark has a built-in corpus. A model must not choose a path that the tool writes or reads on the host. Confinement to the workspace was rejected: a model could still read or replace any file in the workspace.("ai", "benchmark")in_PATH_PARAM_RESTRICTIONSleaves out the three options. A call that gives one fails at the argument contract, before any command runs.devops ai benchmarkkeeps--output,--documentand--codefor a person.--samplesnames no flag, so the tool description does not name--code. A contract test holds that no tool text names a flag that the tool leaves out.SECURITY.mdprinciple 11 names a file path that a model gives.Change: openspec/changes/archive/2026-10-30-2704-mcp-benchmark-no-path-options/
Closes #2704