set_weight checks the repo first and then adds or changes the weight in one synchronous step, so a queue_pr of the same item
meanwhile cannot keep its weight in place of the one asked for (the fast-track route keeps its old body). The pre-approvals
before review leave out a PR that is a queue row on any page, and page on with a two-part cursor `<offset>:<last id>`.
The demotion test changes the role under the same session after tools/list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
queue_pr (Queue items: pre-approve at the head and fast-track with a weight), set_weight (change, add without approving, or remove)
and cancel_queued (withdraw a pre-approved merge) are offered while the token's login is an operator, checked again on every call;
list_merge_queue (the Merge tab, plus pre-approvals not yet in it) is offered to every token. The fast-track add route takes a weight.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>