Repository navigation
fix(ai): Refuse uv audit when project is outside workspace - #4239
Merged
Merged
Conversation
dan-petty
marked this pull request as ready for review
November 9, 2026 15:14
dan-petty
pushed a commit
that referenced
this pull request
Nov 9, 2026
🤖 I have created a release *beep* *boop* --- ## [0.101.0](v0.100.2...v0.101.0) (2026-11-09) ### Features * **config:** add task variables for the context window ([#4234](#4234)) ([c034509](c034509)) ### Bug Fixes * **ai:** price a hosted group call by the asked model ([#4231](#4231)) ([7b85c91](7b85c91)) * **ai:** Refuse uv audit when project is outside workspace ([#4239](#4239)) ([1700648](1700648)) * **ci:** retry the download of a release asset ([#4235](#4235)) ([cf0567e](cf0567e)) * **service:** use load_settings() in GET /config ([#4233](#4233)) ([230d77c](230d77c)) --- 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 agent tool scan_uv_audit and its MCP tool check their directory is inside the workspace, but uv finds the project from that directory and each parent. When no directory up to the workspace root holds a project, uv audits the uv.lock of a project in a parent of the workspace, and the reply names no lockfile, so an agent reads another project as the audit of the workspace. The uv audit adapter now resolves the project with uv workspace dir and refuses it, with not_applicable and a reason that names the project, when it lies outside the workspace.
Closes #2440
Change:
openspec/changes/archive/2026-11-09-2440-refuse-uv-audit-outside-workspace/Fail-to-pass against origin/main: 9 tests fail unpatched and pass patched, including the agent tool refusing the project outside the workspace.