Skip to content

fix(agent): require tool behavior annotations - #1156

Merged
dcramer merged 2 commits into
mainfrom
codex/tool-annotation-review
Jul 30, 2026
Merged

dcramer merged 2 commits into
mainfrom
codex/tool-annotation-review

Conversation

@dcramer

@dcramer dcramer commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

Plugin tools could bypass Guardian when approvalMode was omitted, even when they performed an external write. Plugin tool helpers and registration now normalize an omitted mode to auto, so plugin identity, provider source, and behavioral annotations participate in action review by default. Core tools retain explicit approval-mode opt-in.

All repo-owned tools now declare readOnlyHint, destructiveHint, openWorldHint, and idempotentHint. A new lint check rejects missing, non-boolean, or contradictory hints before merge. External plugin and MCP tools remain loadable, but emit a warning when their metadata is incomplete and are handled conservatively.

This closes the gap where GitHub and other plugin writes could execute without producing a Guardian review event, without forcing unrelated internal control tools through Guardian.

Validation includes the repo-wide lint policy gate, tool annotation checker, typechecks, 64 focused unit tests, and all 78 tests from the previously failing component and integration files.

Fixes #1149.

@vercel

vercel Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Jul 30, 2026 10:16pm

Request Review

@dcramer
dcramer marked this pull request as ready for review July 30, 2026 22:02
@github-actions github-actions Bot added the risk: high PR risk score: high label Jul 30, 2026
@dcramer
dcramer merged commit d363ef9 into main Jul 30, 2026
31 checks passed
@dcramer
dcramer deleted the codex/tool-annotation-review branch July 30, 2026 22:20

This branch was successfully deployed

1 active deployment
Preview – junior-docs — bbf7fb35 Deployed Jul 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin write tools skip Guardian without approvalMode

1 participant