mirror of
https://github.com/openai/codex.git
synced 2026-12-05 01:00:54 +00:00
## Why Explicit user goal edits can restrict permitted actions, such as “Inspect only; do not publish.” Guardian needs these edits as authorization evidence even though they are recorded as contextual messages. ## What changed - Add `UserGoalUpdate` and a recording API for objective, status, and clear updates without scheduling a model response. - Use host annotations to retain goal updates in Guardian review history and root authorization evidence, and invalidate cached authorization when updates are recorded. - Omit oversized objectives whole and mark their evidence incomplete so truncation cannot turn a restriction into a grant. - Keep item injection from updating shared model and multi-agent metadata. ## Testing Extend authorization, retained-context, and review snapshot tests to cover goal-edit cache invalidation, root goal visibility from child threads, and restrictive goals reaching Guardian alongside managed policies. GitOrigin-RevId: 17b99d9fa8c1620840d6f408d79b405a78a778f8