mirror of
https://github.com/openai/codex.git
synced 2026-09-14 11:57:03 +00:00
## Why Guardian V2 needs the requested action and its conversation context to assess risk; a tool name and call ID alone do not describe what the tool will do. ## What changed - Expose the original, pre-hook `ToolPayload` to tool lifecycle contributors. - Build Guardian V2 classifier input from the bounded conversation transcript and a structured planned-action object containing the tool name and arguments. - Warn and skip classification if the planned action cannot be serialized. ## Testing - Verify lifecycle contributors receive tool arguments. - Verify Guardian V2 sends transcript history and planned-action JSON to the classifier. GitOrigin-RevId: 28266ef7c1d2267ba705fcfbd9be4ef48e64e104