Skip to content

feat(tools): declare approval modes - #1055

Merged
dcramer merged 5 commits into
mainfrom
codex/action-review-tool-metadata
Jul 26, 2026
Merged

dcramer merged 5 commits into
mainfrom
codex/action-review-tool-metadata

Conversation

@dcramer

@dcramer dcramer commented Jul 26, 2026 •

Copy link
Copy Markdown
Member

Core and plugin tool definitions can now declare auto, review, or approve through an approvalMode field. Both Zod tool helpers preserve the declaration, and plugin registration carries it into Junior’s canonical tool registry alongside the tool identity and source.

Approval mode determines whether an invocation enters the approval system; it does not select the reviewer. Guardian remains a runtime actor that reviews eligible requests and may approve, escalate to the user, or deny them.

The field remains optional, so unclassified tools execute exactly as before. This is the metadata-only first increment of #1050; exact-action proposal descriptions, MCP adaptation, effective mode resolution, and Guardian enforcement remain separate follow-up work.

Refs #874.
Refs #1050.

@vercel

vercel Bot commented Jul 26, 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 26, 2026 5:36pm

Request Review

@dcramer dcramer changed the title feat(tools): declare approval behavior feat(tools): declare approval modes Jul 26, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 259cd13. Configure here.

Comment thread packages/junior-plugin-api/src/tools.ts Resolved
@dcramer
dcramer marked this pull request as ready for review July 26, 2026 17:37
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Jul 26, 2026
@dcramer
dcramer merged commit f70558a into main Jul 26, 2026
33 checks passed
@dcramer
dcramer deleted the codex/action-review-tool-metadata branch July 26, 2026 17:40

This branch was successfully deployed

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

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant