X Tutup
Skip to content

Add read-only regression coverage for aliases and toolsets#2193

Open
davidahmann wants to merge 1 commit intogithub:mainfrom
davidahmann:codex/issue-2192-readonly-regression
Open

Add read-only regression coverage for aliases and toolsets#2193
davidahmann wants to merge 1 commit intogithub:mainfrom
davidahmann:codex/issue-2192-readonly-regression

Conversation

@davidahmann
Copy link

Problem
Read-only filtering already covers dynamic toolsets and deprecated aliases, but there was no dedicated regression coverage for those two paths, so a future inventory change could silently re-expose write tools.

Why now
Issue #2192 narrowed this to test coverage after confirming the current runtime is already fail-closed. The gap is in preserving that contract.

What changed

  • add a dedicated ToolsForToolset read-only regression test for dynamic toolset enablement
  • add a deprecated-alias read-only regression test for ForMCPRequest

Validation

  • go test ./pkg/inventory -run 'TestToolsForToolset_RespectsReadOnly|TestForMCPRequest_ToolsCall_DeprecatedAliasRespectsReadOnly'

Refs #2192

@davidahmann davidahmann requested a review from a team as a code owner March 10, 2026 16:02
@davidahmann
Copy link
Author

User impact: This locks in the current fail-closed behavior so future inventory changes do not silently re-expose write tools through dynamic toolsets or deprecated aliases.
Change: The change is regression coverage only: one test for read-only ToolsForToolset, and one for deprecated alias filtering through ForMCPRequest.
Validation:

  • go test ./pkg/inventory -run 'TestToolsForToolset_RespectsReadOnly|TestForMCPRequest_ToolsCall_DeprecatedAliasRespectsReadOnly' passed

Inspired by research context: CAISI publishes independent, reproducible AI agent governance research: https://caisi.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup