Skip to content

Accept the queue command from a Claude Code cloud session - #415

Merged
n0rpan merged 1 commit into
mainfrom
ci/queue-consent-footer
Dec 3, 2026
Merged

n0rpan merged 1 commit into
mainfrom
ci/queue-consent-footer

Conversation

@n0rpan

@n0rpan n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Asked for by the maintainer: let a Claude Code cloud session request a merge.

Why

A cloud session posts comments as n0rpan, and every comment it writes ends with a signature it cannot leave out. auto-queue.sh required the comment body to equal /queue <sha> exactly. On 2026-12-03 the session's requests on #394, #388 and #401 were answered "Awaiting merge consent" (example) until the maintainer retyped the same three lines.

What changes

desktop/ci/auto-queue.sh accepts the command in an unedited comment by the maintainer when the body is either /queue <head sha> or that followed by exactly:

Nothing else about admission changes: the exact head, the code and security reviews, resolved findings and the green scoped run are all still required.

What this does to the meaning of consent

Before, a matching comment meant the maintainer or a local agent holding his token typed it. Now a cloud session holding the same account can do it too. Anyone who could already post as n0rpan could already post the bare command, so this adds no new principal. It does mean a cloud session can queue a pull request without the maintainer typing anything.

Verified

  • python3 -m unittest discover -s desktop/ci -p 'test_*.py' passes. The new case uses the body exactly as GitHub returned it for the real comment above, and refuses: trailing text after the signature, text between command and signature, a different link in the signature, another commit, an edited comment, another author.
  • bash -n passes; shellcheck reports only the notes it already reported.

Not verified

  • The script against a real pull request with AUTO_QUEUE_DRY_RUN=1, which AGENTS.md asks for before merging a change here. It calls GraphQL, which this session cannot reach. Please run it once from a local checkout: AUTO_QUEUE_DRY_RUN=1 MAINTAINER=n0rpan GITHUB_REPOSITORY=oxstack/ox desktop/ci/auto-queue.sh 394.
  • The triggers run main's copy, so this takes effect only after it merges. This pull request itself still needs the maintainer's own /queue line.

Checked against main at 3732a47.


Generated by Claude Code

A cloud session posts as the maintainer, but every comment it writes ends
with a signature it cannot omit. The gate required the body to be exactly
`/queue <sha>`, so on 2026-12-03 three requests the maintainer had asked
that session to make were answered "Awaiting merge consent" until he
retyped them.

The command now also counts when followed by exactly that signature. Any
other trailing text, an edited comment, another author or another commit
is still refused. The maintainer asked for this.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NazrMMqBKWzYjLU4xFBcbz
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T18:19:51.463680Z 70cacbb PR opened
🔒 Security Review ✅ Completed 2026-12-03T18:21:15.704925Z 70cacbb PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue 70cacbb

@n0rpan
n0rpan enabled auto-merge December 3, 2026 18:19
@n0rpan
n0rpan disabled auto-merge December 3, 2026 18:20
@n0rpan

n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

Not in line to merge yet: waiting for required checks on 70cacbb. CI completion updates this comment.

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

#362 moves the parser and its tests to app/ci/. When reconciling, keep the exact signed-comment matcher and its negative cases in the renamed paths, and confirm the workflow still calls that parser. Good combined test: the exact unedited maintainer comment is accepted; an edited comment, any extra text or a different author is not.

@n0rpan
n0rpan merged commit 97f609a into main Dec 3, 2026
20 checks passed
@n0rpan
n0rpan deleted the ci/queue-consent-footer branch December 3, 2026 18:28
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.

2 participants