Commit Graph

4 Commits

Author SHA1 Message Date
Abhinav Vedmala
568ff282cb Include approval context in permission request hooks 2026-04-10 18:00:58 -07:00
Abhinav Vedmala
b9098cb968 Simplify guardian review hook input
Rename the PermissionRequest advisory field to guardian_review, drop the redundant source field, and share one hook-side guardian review type with protocol risk and authorization enums.

Co-authored-by: Codex <noreply@openai.com>
2026-04-10 16:54:56 -07:00
Abhinav Vedmala
a05fe33cc9 Add guardian review context to PermissionRequest hooks
Run guardian before Bash PermissionRequest hooks when approvals are already routed to guardian, pass the review into the hook input as advisory context, and reuse the guardian decision when hooks stay quiet.

Co-authored-by: Codex <noreply@openai.com>
2026-04-10 16:35:49 -07:00
Abhinav Vedmala
07896f7f2e Add Bash PermissionRequest hooks
Co-authored-by: Codex <noreply@openai.com>
2026-04-10 14:56:19 -07:00