Skip to content

Thread guardian Responses API errors into denial rationale#15516

Merged
charley-oai merged 1 commit intomainfrom
cc/guardian-responses-error-rationale
Mar 23, 2026
Merged

Thread guardian Responses API errors into denial rationale#15516
charley-oai merged 1 commit intomainfrom
cc/guardian-responses-error-rationale

Conversation

@charley-oai
Copy link
Copy Markdown
Contributor

@charley-oai charley-oai commented Mar 23, 2026

Summary

  • capture the last guardian EventMsg::Error while waiting for review completion
  • reuse that error as the denial rationale when the review turn completes without an assessment payload
  • add a regression test for the /responses HTTP 400 path

Testing

  • just fmt
  • cargo test -p codex-core guardian_review_surfaces_responses_api_errors_in_rejection_reason
  • just argument-comment-lint -p codex-core

Notes

  • cargo test -p codex-core still fails on the pre-existing unrelated test tools::js_repl::tests::js_repl_imported_local_files_can_access_repl_globals in this environment (mktemp ... Operation not permitted while downloading dotslash)

Surface the last Responses API error in the guardian rejection rationale when a review turn completes without an assessment payload.

Add a regression test for the HTTP 400 path.

Co-authored-by: Codex <[email protected]>
@charley-oai
Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 🚀

ℹ️ 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".

@charley-oai charley-oai merged commit 332edba into main Mar 23, 2026
31 of 36 checks passed
@charley-oai charley-oai deleted the cc/guardian-responses-error-rationale branch March 23, 2026 19:46
@github-actions github-actions bot locked and limited conversation to collaborators Mar 23, 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