Skip to content

Document zero-second waits and queue cancellation - #1571

Merged
mergify[bot] merged 1 commit into
mainfrom
lean178/1551-wait-and-cancel
Nov 26, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
lean178/1551-wait-and-cancel

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Document zero-second waits and queue cancellation

Context and goal

  • Context: The CLI behavior was verified in the docs audit.
  • Problem: Existing guidance differs from the current CLI.
  • Goal: The contract explains that zero-second waits can mutate PR state and how to request Mergify removal.

Closes #1551

Acceptance

  • The contract explains that zero-second waits can mutate PR state and how to request Mergify removal.

Validation

Recorded for 57212083f17a

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, 5721208, approve

Architecture-Review: unchanged; the documented behavior matches the current CLI without changing the delivery interface.
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by claude on 57212083f17a845ad3d14d64cc906b3b1aa29a82, 14.5s: approve (0 critical, 0 important, 2 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

Comment thread core/CONTRACT.md
green checks and gets its own timeout message (exit 3).
Both waiters use `--wait[=SECONDS]` (default 1800) on the unchanged head.
Zero seconds can still activate or enqueue a PR. Pending mergeability can
time out (exit 3) with green checks. `loopzero merge --cancel` requests

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Say that --cancel only works with delivery.merge = 'mergify'

cli.py:1581-1583 rejects merge --cancel with an error unless delivery.merge = 'mergify'. The new sentence says the command "requests Mergify removal", which suggests this, but a reader using another merge strategy could still try it. Smallest fix: "With delivery.merge = 'mergify', loopzero merge --cancel (never with --wait) requests queue removal." This change is optional.

Comment thread core/CONTRACT.md
Both waiters observe the unchanged head while all blockers can settle,
with `--wait[=SECONDS]` (default 1800). Pending mergeability can block with
green checks and gets its own timeout message (exit 3).
Both waiters use `--wait[=SECONDS]` (default 1800) on the unchanged head.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Rewording removes the note that waiters cover every blocker that can still settle

The old text said the waiters keep watching the unchanged head "while all blockers can settle". The new text only says they watch the unchanged head. _draft_checks_waiting and _wait_for_checks wait on mergeability and on required checks that are still pending or missing, so the old wording described the scope more precisely. Consider keeping a short clause such as "while blockers can still settle". This change is optional.

@eowca
eowca marked this pull request as ready for review November 26, 2026 07:06
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 74f5867 at 07:16 UTC

9 min in the queue, 3 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 07:07 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1601
  • ✅ Merged 07:16 · 74f5867 · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 74f5867 into main Nov 26, 2026
18 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1551-wait-and-cancel branch November 26, 2026 07:16
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.

Document which commands observe, enqueue, or cancel delivery

1 participant