Skip to content

fix(ai): Refuse uv audit when project is outside workspace - #4239

Merged
dan-petty merged 2 commits into
mainfrom
fix/2440-refuse-uv-audit-outside-workspace
Nov 9, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/2440-refuse-uv-audit-outside-workspace

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

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.

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 9, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 15:14
@dan-petty
dan-petty merged commit 1700648 into main Nov 9, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/2440-refuse-uv-audit-outside-workspace branch November 9, 2026 15:15
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ai AI review pipeline, personas, prompts, LLM client, or RAG type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ai): Refuse uv audit when project is outside workspace

1 participant