Skip to content

chore(approvals) consolidate guardian calls for shell tools - #31267

Merged
dylan-hurd-oai merged 1 commit into
mainfrom
codex/consolidate-guardian-shell-approvals
Jul 6, 2026
Merged

chore(approvals) consolidate guardian calls for shell tools#31267
dylan-hurd-oai merged 1 commit into
mainfrom
codex/consolidate-guardian-shell-approvals

Conversation

@dylan-hurd-oai

Copy link
Copy Markdown
Contributor

Summary

As part of our effort to start simplifying approvals code, this PR extracts Guardian approvals logic from shell tool calls, and replaces it with the ApprovalAction abstraction instead. This way, tools don't need to know about Guardian at all.

Testing

  • Adds integration test

@dylan-hurd-oai
dylan-hurd-oai marked this pull request as ready for review July 6, 2026 17:39
@dylan-hurd-oai
dylan-hurd-oai requested a review from a team as a code owner July 6, 2026 17:39
req: &UnifiedExecRequest,
ctx: &ApprovalCtx<'_>,
) -> std::io::Result<ApprovalAction> {
Ok(ApprovalAction::ExecCommand {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IMO should be the same action as shell but it's outside of this PR scope.

@dylan-hurd-oai
dylan-hurd-oai merged commit aa94ea1 into main Jul 6, 2026
64 of 66 checks passed
@dylan-hurd-oai
dylan-hurd-oai deleted the codex/consolidate-guardian-shell-approvals branch July 6, 2026 20:23
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants