豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Hide write-only prompt guidance when tools are filtered#2230

Open
davidahmann wants to merge 1 commit intogithub:mainfrom
davidahmann:codex/write-prompt-filtering
Open

Hide write-only prompt guidance when tools are filtered#2230
davidahmann wants to merge 1 commit intogithub:mainfrom
davidahmann:codex/write-prompt-filtering

Conversation

@davidahmann
Copy link
Copy Markdown

Closes #2228

Problem

Read-only and filtered inventories still expose issue/PR write instructions and workflow prompts even when the write tools themselves are unavailable.

What changed

  • add required-tool metadata for prompts and filter those prompts when the required tools are unavailable
  • make issue and pull-request instructions conditional on the matching write tools surviving inventory filtering
  • add regression coverage for read-only and excluded-tool inventories

Validation

  • go test ./pkg/inventory ./pkg/github

@davidahmann davidahmann requested a review from a team as a code owner March 17, 2026 12:26
@davidahmann
Copy link
Copy Markdown
Author

This removes write-path guidance from filtered and read-only inventories, so users stop seeing issue/PR instructions that the current tool set cannot actually execute.

The change adds required-tool gating for prompts and makes the issue / pull-request instruction blocks conditional on the surviving write tools.

Validation:

  • go test ./pkg/inventory ./pkg/github (pass)

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.

Hide write-oriented prompts and instructions when write tools are filtered

1 participant