Repository navigation
fix(pr-pipeline): work a listed bot's thread only behind a trusted @codex request - #11690
Conversation
…odex request Anyone can comment @codex on a public repository, so a thread a review-threads.reviewer-ids bot opened, with no trusted person's direction, is worked only when the @codex request behind the bot's review came from a person on the trusted-actor list. An untrusted request since the bot's previous review, or no trusted request, leaves the thread for a person with a logged reason. The select job, the reply job's re-read, fix-ci-context and the dispatcher share the check. Refs: #8284 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
To use Codex here, create an environment for this repo. |
Codex Review SummaryThis 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. |
A stranger's @codex glued to other text (x.@codex) now counts as an untrusted request, so a form the bot may also answer cannot slip past the check; a trusted request still needs a whole handle. The pr-run-activity keep rule names the requester check. Refs: #8284 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
claude-review reviewed Incremental review (39faa54 → 0906598): no findings. What changed.
Checked:
I did not run the tests myself. The author's suite results in the PR body are unverified by this lane. No security concern is raised here. The change is a trust-boundary narrowing, and the security lane owns that review. Spend: none. This increment changes no lane runs, models, schedules or billing. |
|
claude-security-review reviewed Security review: incremental change since 39faa54Scope. I reviewed What changed. The diff replaces the
Trust controls. This change widens nothing. It does not change who passes the trusted-trigger check, any token's scope, or what untrusted text reaches a lane. Its only effect on the requester check is to tighten it. Pre-existing, not introduced here. If No security issues found in the incremental change. critical-findings: 0 |
…gger Codex reviews on its own when a PR opens or is marked ready, with no @codex comment, so the requester check now reads those triggers: the PR's author for the opening and the actor of each ready-for-review event since the bot's previous review. Each must be on the trusted-actor list or be the lanes App (APP_SENDER_ID); any other actor, or an untrusted @codex in the window, still skips the thread, and an unreadable trigger skips it as not found. The select job, the reply job, fix-ci-context and the dispatcher share the check through requestSkip. Refs: #8284 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lane-Activity: pr-unblock/resolve-conflicts
|
The pr-verify verifier failed head What it wrote (36 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
A stranger could steer a Codex review with a @codex request, then edit the mention out or delete the comment before the lane read it, and the trusted opening would make the review look automatic and trusted. The check now counts, as untrusted, any comment or review by someone other than a trusted person or our own bots that was edited since the window opened, whatever it says now, and any deleted comment of theirs (GraphQL CommentDeletedEvent). A review body's edit time comes from GraphQL lastEditedAt, so an edit into a request is seen too. A history that cannot be read skips the thread even beside a trusted request. Refs: #8284 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…equester-check # Conflicts: # .github/scripts/pr-unblock/fix-ci-context.mjs
…com/melodic-software/claude-code-plugins into host-run/8284-codex-requester-check # Conflicts: # .github/scripts/pr-unblock/fix-ci-context.mjs
…gger The automatic-review check reused one set for two jobs, so github-actions[bot], kept there only to exempt the review lanes' edited markers, also counted as a trusted opener or ready-flipper. Trigger trust is now the trusted people and the lanes App (APP_SENDER_ID) alone, as the docs state; github-actions[bot] stays exempt only from the edited and deleted comment rules. Refs: #8284 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #8284
Summary
Anyone can comment
@codexon this public repository, and since #10391 address-feedback has worked any thread whose comments are allchatgpt-codex-connector[bot]'s. This change adds the requester check from the issue's refinement: a listed bot's thread that no trusted person directed is worked only when a trusted actor asked for that bot's review. Otherwise the thread is left for a person, and the reason is logged.A request is either an explicit
@codexcomment or the event that triggered an automatic review: the PR opening, or marking it ready. The bot stays onreview-threads.reviewer-ids, and the standards trusted-actor list is unchanged (Q662).Fix
address-feedback.mjsaddscodexRequest,requestSkip,requestSkipLineandreadTriggers. The window runs from the same bot's previous review up to this one.Explicit requests are
@codexmentions in issue comments, review comments and review bodies.@codexas a whole handle from a persontrustedHumansFromlists.@codexcounts as a request, even when it is attached to other text. A creation or a last edit inside the window both count.@codex review, as the review bodies on fix(app-control): find plugin control skills at manifest-declared paths #10092 show.Automatic reviews. Codex reviews on its own when a PR opens or is marked ready, which is what happened on fix(app-control): find plugin control skills at manifest-declared paths #10092. With no
@codexcomment, the review counts as asked for by whoever triggered it: the PR's author for the opening, or the actor of eachready_for_reviewevent in the REST issue timeline.APP_SENDER_ID. Nothing is added to any trust list.Skip rules (fail closed).
codex-request-untrusted.codex-request-not-found. That covers an unreadable timeline and an unreadable review time.One shared path.
keepThreadsapplies the check, so the select job, the reply job's re-read andfix-ci-context.mjsall use it.publish-feedback.mjspasses its log to the re-read.feedback-dispatch.mjs, applies the samerequestSkipinkeptAuthors.THREADS_QUERYnow reads each thread'sidand its review'ssubmittedAt.Docs. The pr-pipeline README's review-threads section,
pr-run-activity.mdand a changelog fragment describe the rule.Edited and deleted requests. These close the gaps where a stranger removes a request after Codex answered it:
PullRequestReview.lastEditedAt.CommentDeletedEvent.Known limit (UNVERIFIED): whether
CommentDeletedEventalso records deleted inline review comments.Verification
Tests first. Each new case failed on the code before its change:
The trusted case and the directed case passed both before and after the change, as they should.
Direct suite run.
node --testover the address-feedback, feedback-dispatch, fix-ci-context, publish-feedback, verify-notes and adjudicate-feedback suites: 631 pass, 0 fail.Existing tests. The existing Codex fixtures now carry a trusted
@codex reviewcomment and a review time, and every existing assertion is unchanged.scripts/check-affected.sh --testson the committed head: exit 0, 11 passed and 5 skipped. Its test step selected 69 suites and left them to their CI lanes, so the directnode --testrun above is the local test evidence.Related
review-threads.reviewer-ids; this narrows it.ci-statusand the security-review lane gate this PR's merge at its head. Posting the host-run record on chore(trusted-actors): test whether a stranger can make the Codex bot reply before trusting it #8284 records that the requester check replaces the stranger test.🤖 Generated with Claude Code