Skip to content

auto_review: no fallback to the user when the review call cannot run (third-party providers deadlock) #47916

Open

Description

@verigle

Summary

With approvals_reviewer = "auto_review", when the active model provider cannot serve the
guardian's review model, every require_escalated request is hard-denied:

Automatic approval review failed: ... model: gpt-5.6-luna; upstream_status: HTTP 400 ...
The action was not executed because automatic approval review could not be completed.

There is no way for the agent to hand that specific request to the user, and no way for the
user to approve it. The session deadlocks: the agent cannot perform any privileged action,
and the user cannot grant one.

Environment

  • Codex 0.155.0-alpha.16.4 (ChatGPT desktop app, bundle id com.openai.codex, macOS 15)
  • Provider: third-party (DeepSeek), reached through a local proxy (CC Switch 3.20.4, 127.0.0.1:15721)
  • approvals_reviewer = "auto_review", approval_policy = "on-request"

Steps to reproduce

  1. Set a non-OpenAI provider as model_provider (e.g. deepseek-flash via a local proxy).
  2. Ask the agent to run anything that needs escalation.
  3. The guardian review call is issued with model = gpt-5.6-luna and is sent to that provider.
  4. The provider rejects it (it does not serve gpt-5.6-luna), so the review never produces a decision.

Observed

Automatic approval review failed:
{"error":{"message":"CC Switch local proxy failed while handling Codex endpoint /responses.
 Provider: Deepseek; model: gpt-5.6-luna; upstream_status: HTTP 400;
 cause: The supported API model names are deepseek-flash, deepseek-v4-pro,
 but you passed gpt-5.6-luna."}}

The review model comes from the guardian default, not from the active provider's model catalog.
This is a review infrastructure failure, not a policy rejection — yet the outcome is a hard deny.

Requested behavior

A fallback chain, i.e. any of:

  1. approvals_reviewer value such as auto_review_then_user (machine first, user on failure/deny), or
  2. on review failure/timeout, surface the pending escalation to the user as an approval prompt, or
  3. resolve the review model against the active provider's catalog and fall back to the session model
    when the default review model is not available.

Workaround we found (works)

Put auto_review_model_override on the session model's catalog entry, pointing at that same model:

{ "slug": "deepseek-flash", "auto_review_model_override": "deepseek-flash", "...": "..." }

Then the review call uses deepseek-flash, which the provider serves, and the escalation is
approved automatically. Caveat: if the session model has no catalog entry, the guardian falls
back to gpt-5.6-luna and the deadlock returns — so every model a provider can be asked for needs
an entry.

Related: which key controls the approval review model?

The top-level review_model config key does not affect the approval reviewer. Verified by
running the same escalation twice with the proxy request log:

config review request model outcome
(baseline) gpt-5.6-luna denied
-c review_model="deepseek-flash" gpt-5.6-luna denied (no effect)
catalog entry with auto_review_model_override deepseek-flash approved

review_model appears to control codex review only. It would help to document which key governs
the approval review model, and to log the resolved review model when a review fails.

How to reproduce quickly

codex exec -c approval_policy='"on-request"' -c approvals_reviewer='"auto_review"' \
  "run a command that needs escalation"

Watch the provider request log for the model used by the review call.

Activity

  1. added
    bug
    app
    custom-model
    sandbox
    on Sep 24, 2026
  2. matteisn commented on Sep 30, 2026

    @matteisn

    Your diagnosis is further along than anything I would have added. The
    review_model differential table is the useful part of this report, and the
    custom-model label fits.

    The piece I can help with is the caveat you flagged: the fix needs a catalog
    entry per model, and any model without one deadlocks again. That is the fragile
    half, because the guardian asks with a model name you do not choose.

    You can remove the dependency instead of satisfying it. Put one endpoint in front
    of the provider that resolves model names server-side — a request for
    gpt-5.6-luna gets answered by whatever you map it to, rather than 400'd. Then no
    per-model catalog entry is needed and the caveat is gone. Codex still sends the
    guardian call to base_url; the difference is that your base_url can answer it.

    Your client-side fix is correct and stays correct. This just takes the
    per-model maintenance out of it.

    Disclosure: I work at Zerg, we build a router (ZergRouter) that resolves model
    names server-side, which is why this is the angle I have.

  3. NonTrivialLiu commented on Oct 22, 2026

    @NonTrivialLiu

    Reviewer-service failure should remain fail-closed, but it must not be presented as though the requested operation received an adverse safety verdict.

    Please add a provider-capability check when AutoReview is selected and a distinct recoverable state for “review could not run.” The error should identify the unavailable review capability and a supported recovery route, without exposing credentials or silently substituting a model.

    Suggested regression coverage: unsupported reviewer model, authentication failure, timeout, and actual policy denial should be distinguishable. None should execute the pending action automatically; infrastructure failures should not be counted as substantive denial decisions or imply that the user requested something unsafe.

    This is product feedback based on the report above, not a claim that I reproduced this environment. An unavailable reviewer turning routine work into an opaque dead end is unacceptable reliability UX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugcustom-modelsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions