Skip to content

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

Open
davidahmann wants to merge 2 commits into
github:mainfrom
davidahmann:codex/write-prompt-filtering
Open

Hide write-only prompt guidance when tools are filtered#2230
davidahmann wants to merge 2 commits into
github: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

# Conflicts:
#	pkg/inventory/filters.go
#	pkg/inventory/prompts.go
@SamMorrowDrums SamMorrowDrums force-pushed the codex/write-prompt-filtering branch from f151a6d to 2bcfb23 Compare June 11, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants