Skip to content

Rebrand approvals reviewer config to auto-review#18504

Merged
won-openai merged 11 commits into
mainfrom
auto_review_rebrand
Apr 22, 2026
Merged

Rebrand approvals reviewer config to auto-review#18504
won-openai merged 11 commits into
mainfrom
auto_review_rebrand

Conversation

@won-openai

@won-openai won-openai commented Apr 18, 2026

Copy link
Copy Markdown
Collaborator

Why

Auto-review is the user-facing name for the approvals reviewer, but the config/API value still exposed the old guardian_subagent name. That made new configs and generated schemas point users at Guardian terminology even though the intended product surface is Auto-review.

This PR updates the external approvals_reviewer value while preserving compatibility for existing configs and clients.

What changed

  • Makes auto_review the canonical serialized value for approvals_reviewer.
  • Keeps guardian_subagent accepted as a legacy alias.
  • Keeps user accepted and serialized as user.
  • Updates generated config and app-server schemas so approvals_reviewer includes:
    • user
    • auto_review
    • guardian_subagent
  • Updates app-server README docs for the reviewer value.
  • Updates analytics and config requirements tests for the canonical auto_review value.

Compatibility

Existing configs and API payloads using:

approvals_reviewer = "guardian_subagent"

continue to load and map to the Auto-review reviewer behavior.

New serialization emits:

approvals_reviewer = "auto_review" 

This PR intentionally does not rename the [features].guardian_approval key or broad internal Guardian symbols. Those are split out for a follow-up PR to keep this migration small and avoid touching large TUI/internal surfaces.

Verification
cargo test -p codex-protocol approvals_reviewer_serializes_auto_review_and_accepts_legacy_guardian_subagent
cargo test -p codex-app-server-protocol approvals_reviewer_serializes_auto_review_and_accepts_legacy_guardian_subagent

@won-openai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@won-openai won-openai marked this pull request as ready for review April 20, 2026 00:23

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 434eaa5597

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/features/src/lib.rs Outdated
@won-openai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. More of your lovely PRs please.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@won-openai won-openai requested a review from a team as a code owner April 20, 2026 18:31
@won-openai

Copy link
Copy Markdown
Collaborator Author

@codex review

chatgpt-codex-connector[bot]

This comment was marked as spam.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cf72dd1ac4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/protocol/src/config_types.rs Outdated
@won-openai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Security review completed. No security issues were found in this pull request.

View security finding report

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@won-openai

Copy link
Copy Markdown
Collaborator Author

@codex review

"ApprovalsReviewer".to_string()
}

fn json_schema(_generator: &mut SchemaGenerator) -> Schema {

@won-openai won-openai Apr 20, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is manual because the normal schema generator does not know about legacy aliases. The code can read both auto_review and old guardian_subagent, but without this manual schema the generated schema would only list auto_review. That could make old configs fail schema checks even though the app can still read them.

)
}
}

@won-openai won-openai Apr 20, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This helper just writes out the schema by hand. It says: this value is a string, these are the allowed string values, and this is the description. We need that because the normal generated schema cannot include the old guardian_subagent value for us.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Nice work!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Security review completed. No security issues were found in this pull request.

View security finding report

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@dylan-hurd-oai dylan-hurd-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 comment about the enum value name itself, but otherwise lgtm

User,
#[serde(rename = "auto_review", alias = "guardian_subagent")]
#[strum(serialize = "auto_review")]
GuardianSubagent,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not change the enum value to AutoReview

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having this on the follow up PR!

# Conflicts:
#	codex-rs/app-server-protocol/src/protocol/v2.rs
@won-openai won-openai merged commit 46142c3 into main Apr 22, 2026
34 of 36 checks passed
@won-openai won-openai deleted the auto_review_rebrand branch April 22, 2026 22:45
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants