Repository navigation
Conversation
Multiple pull requests can share a head commit. The full-SHA search returns the latest run at that commit, which can belong to a different PR and decide the job using the wrong review. Search the repository-scoped PR history when the event identifies a PR. Reject conflicting subject fields during polling and require the full identity before reporting a result or writing SARIF. Allow sparse pending replies to acquire their identity within the wait deadline. Keep the existing lookup for jobs that only supply a commit. Exercise both sign-in paths, later-page selection, pending replies, and deadline behavior in the regression fixtures.
A manual or downstream CI job can have a default SHA from the runner that differs from the head of the pull request being reviewed. Let the job pass --pr with a full --commit and reuse the exact PR lookup. Reject an explicit PR number that disagrees with the PR event. Document the command and cover downstream selection and invalid input at the CLI boundary.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A CI job can pass using another pull request's review when the two PRs share a head commit. In 16 local comparisons across four public PR pairs, upstream at
5dd916fselected the other PR and exited0. The patched CLI selected the intended PR and exited3on its simulated serious finding.The PRs and head SHAs came from GitHub. The Proofline responses and credentials came from local fixtures. Both sign-in paths were exercised. No hosted review or gate was run.
The full-SHA search returns the latest run at that commit. When CI knows the PR, it reads that PR's paginated history. Conflicting identity fields stop polling immediately. Pending replies can omit fields, and CI requires a match on repository, PR number, and head before reporting a result or writing SARIF. API search contract
Manual and downstream jobs can specify the PR and head explicitly.
GitHub Actions PR jobs use the event's PR number. An explicit
--prmust agree with the PR event, and a supplied event repository must match the selected repository before authentication. Commit precedence remains--commit,COMMIT_SHA, then the event head. Commit-only jobs keep their existing lookup.Local verification
Replay inputs and focused tests
Each PR was the target once with a test token and once with simulated GitHub Actions OIDC.
38791ecf58881a11be31877b4f25In the diff,
wait_for_head_reviewhandles selection andconfirm_ci_subjectvalidates the returned detail. The tests cover pagination, sparse pending replies, and slow replies at the deadline.