Repository navigation
feat(agent): enforce Guardian action review - #1082
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
force-pushed
the
codex/guardian-tool-review
branch
from
July 28, 2026 19:06
6148c91 to
8f5a52f
Compare
dcramer
force-pushed
the
codex/guardian-tool-review
branch
from
July 28, 2026 20:44
2c5f9dc to
d6e1e70
Compare
dcramer
force-pushed
the
codex/guardian-tool-review
branch
from
July 29, 2026 23:35
c15eb08 to
b5999ba
Compare
This was referenced Jul 30, 2026
This was referenced Nov 2, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Junior now enforces declared tool approval metadata immediately before execution. Core validates authoritative actor, conversation, credential, source, destination, and semantic tool input; actions that require review go to Guardian for a structured
allow,ask, ordenydecision. Missing context, unavailable review, and decision-log persistence failures fail closed.Guardian uses the Codex transcript selection rules: it receives bounded user and assistant messages, recent tool calls and results, first/latest user anchors, prior rejected actions, and the exact pending action. Reasoning and runtime scaffolding remain excluded, as do hook-injected execution-only environment values and signed credential bindings. Guardian defaults to
openai/gpt-5.6-luna, withAI_GUARDIAN_MODELavailable as an explicit override.askanddenyreturn to the primary agent as structured rejected tool results, so the primary agent owns the user-facing response. Exact human confirmation is bound to durable rejection state and same-actor intent, and every retry is reviewed again. Guardian decisions are also recorded as privacy-safeguardian_action_reviewedconversation events before an approved action can execute.The review path is serialized, bounded to three consecutive rejections per execution slice, and covered across runtime enforcement, retry and resume continuity, credential isolation, event reporting, and live confirmation and denial evals.
Fixes #1053.