Skip to content

Accept max request effort and ultra telemetry in protected Responses requests - #5439

Merged
freeqaz-openai merged 2 commits into
mainfrom
codex/native-effort-enums-20261111
Nov 11, 2026
Merged

freeqaz-openai merged 2 commits into
mainfrom
codex/native-effort-enums-20261111

Conversation

@freeqaz-openai

@freeqaz-openai freeqaz-openai commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

The Credential Proxy could refuse a native Codex request before it reached the configured model. One captured request used xhigh for HTTP reasoning.effort and ultra in turn metadata. Another used max in both fields.

The protected Responses route now accepts max as a request effort. The JSON string in client_metadata["x-codex-turn-metadata"] accepts max and ultra for reasoning_effort. The proxy checks the fields independently and forwards their original values. It rejects HTTP ultra and rejects unknown values, including persistent, in either field before reading the Secret. The grant still limits the model, and the saved HTTPS endpoint must match the destination authorized by the Credential Source.

Verification

  • All 84 static-egress tests passed on Node.js 24.22.2 at 5498f394, with zero skips. The extended case checks the request received by an HTTPS fixture, the complete protected response, and the Secret-read and send counts after refusals. With only the validator reverted to the base version, the proxy refused the request and the case failed at its ready-handle assertion.
  • The candidate validator accepted three captured native requests and rejected all 15 invalid variations. The captures used a credential-free synthetic provider. Live model support remains unverified.
  • The final commit changes comments and documentation. Targeted lint, full formatting, documentation, and flow checks passed on that commit.

On the first hosted run, all 84 static-egress tests and lane cleanup passed. The lane had 3,996 passes and one failure. In the unchanged installation preflight test, the child printed the expected refusal but exited on SIGTERM after about 31 seconds. The same case passed locally on Node.js 24.22.1. The failed job passed on its single retry at the same PR head.

Hosted checks passed for cc7702b2fe3e46c85b9c407c665ec04c91614282. CI · CodeQL

@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 11, 2026 09:04
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 11, 2026 09:04
@freeqaz-openai
freeqaz-openai merged commit 8e4d1ab into main Nov 11, 2026
74 of 76 checks passed
@freeqaz-openai
freeqaz-openai deleted the codex/native-effort-enums-20261111 branch November 11, 2026 09:15
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