mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
## Why Guardian identified manual approvals by the opening text of a developer message. Hook output could use the same opening text, and unrelated content in the same message could be included with an approval. ## What changed Check each developer text part before joining it into the transcript. Require the manual approval prefix, the `guardian.approved_action` content kind, and provenance from the harness outside of hooks. ## Testing Transcript tests cover missing provenance and same-prefix text with hook provenance or a different content kind. The context budget test checks that the full manual approval stays ahead of a later user restriction and that adjacent hook text is excluded. GitOrigin-RevId: 64fafc3a429ce1e21eb5233c8223228947d1c20b