Skip to content

fix(permissions): warn about Codex CLI auto_review keys removed in Codex 0.169.0 - #3934

Merged
dyoshikawa merged 4 commits into
mainfrom
resolve-issue-2496-codex-auto-review-removed-keys
Nov 22, 2026
Merged

dyoshikawa merged 4 commits into
mainfrom
resolve-issue-2496-codex-auto-review-removed-keys

Conversation

@dyoshikawa

@dyoshikawa dyoshikawa commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

Follows up the 2026-11-19 upstream re-check on #2496. Codex 0.169.0 removed auto_review.extra_policy and auto_review.experimental_policy_template from AutoReviewToml (openai/codex#60646). AutoReviewToml does not deny unknown fields, so Codex 0.169.0+ only ignores the keys and warns at startup (strict_config.rs at rust-v0.169.0). Only the opt-in --strict-config rejects them. Codex 0.168.0 and older still honor them.

Checked against codex-rs/config/src/config_toml.rs: the keys are present at rust-v0.168.0 and gone at rust-v0.169.0 / rust-v0.170.0.

Dropping the keys would gain nothing on newer Codex and would weaken the reviewer for users on Codex 0.168.0 or older. So rulesync keeps writing and importing them as before, and now tells the author they are on their way out.

Changes

  • generate: when codexcli.auto_review sets extra_policy or experimental_policy_template, a warning says that Codex 0.169.0+ ignores the key (it warns at startup, and only --strict-config rejects it). The warning recommends moving the text to auto_review.policy, or to guardian_extra_policy in a managed requirements.toml. The output is unchanged.
  • Schema and types: unchanged apart from doc comments. JSDoc @see now points at rust-v0.169.0.
  • Docs: a note in the codexcli override paragraph of docs/reference/file-formats.md, plus the regenerated docs-content.ts.
  • Tests:
    • Removed keys are still written, and a warning is raised for each one.
    • No warning when neither key is authored.
    • A schema regression test: extra_policy still parses.
    • The existing test that checks an existing extra_policy is preserved is unchanged.

What stays open in #2496

The earlier status comments left these items for the maintainer, and they are unchanged:

  • inline [hooks] in config.toml
  • nested AGENTS.md / AGENTS.override.md
  • ## Code Review Rules checks
  • ownership of [agents] / [[skills.config]] / project_doc_*
  • Agent Plugins bundles and features.network_proxy
  • the approvals_reviewer = "auto_review" default (upstream still documents user) and the trust_level docs note
  • the remaining MCP value-level rules (authorization_server_issuer / ema_auth)

Refs #2496

Test plan

  • src/features/permissions/codexcli-permissions.test.ts, src/types/permissions.test.ts
  • pnpm run check, pnpm run check:docs-content

🤖 Generated with Claude Code

https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4

dyoshikawa and others added 3 commits November 22, 2026 17:39
…x 0.169.0

Codex 0.169.0 removed `auto_review.extra_policy` and
`auto_review.experimental_policy_template` (openai/codex#60646). Codex
ignores them now, 0.170.0 warns at startup, and strict config validation
rejects the file. Stop modeling `extra_policy` in the codexcli override
schema, drop both keys with a warning on generate (pointing to
`auto_review.policy` or a managed `guardian_extra_policy`), and leave them
out on import so they do not round-trip back into the override.

Refs #2496

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…nstead

Codex 0.169.0 removed `auto_review.extra_policy` and
`auto_review.experimental_policy_template`, but `AutoReviewToml` does not
deny unknown fields: newer Codex only ignores them and warns at startup,
and only `--strict-config` rejects them. Dropping them gained nothing on
newer Codex and weakened the reviewer on Codex 0.168.0 and older, and an
existing hand-written value survived the shallow merge anyway.

Write and import both keys exactly as before and only warn on generate
when they are authored, recommending `auto_review.policy` or a managed
`guardian_extra_policy`.

Refs #2496

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
@dyoshikawa dyoshikawa changed the title fix(permissions): drop the Codex CLI auto_review keys removed in Codex 0.169.0 fix(permissions): warn about Codex CLI auto_review keys removed in Codex 0.169.0 Nov 22, 2026
…dex-auto-review-removed-keys

# Conflicts:
#	src/generated/docs-content.ts
@dyoshikawa
dyoshikawa merged commit 6d8bfcc into main Nov 22, 2026
10 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2496-codex-auto-review-removed-keys branch November 22, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant