Skip to content

Resume delivery from the current PR stage - #1569

Merged
mergify[bot] merged 2 commits into
mainfrom
lean178/1549-resume-current-stage
Nov 26, 2026
Merged

mergify[bot] merged 2 commits into
mainfrom
lean178/1549-resume-current-stage

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Resume delivery from the current PR stage

Context and goal

  • Context: The CLI behavior was verified in the docs audit.
  • Problem: Existing guidance differs from the current CLI.
  • Goal: Waiter guidance distinguishes a pending wait from a merge queue ejection and verified merge cleanup.

Closes #1549

Acceptance

  • Waiter guidance distinguishes a pending wait from a merge queue ejection and verified merge cleanup.

Validation

Recorded for 96bf7c063127

  • 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, 5355953, request_changes
  • delta, claude, 96bf7c0, 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 5355953fa8a292ab7d6ba33afde0ae899573e730, 23.1s: request_changes (0 critical, 1 important, 1 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 Resolved
Comment thread core/CONTRACT.md Outdated
Git, GitHub and the check receipt. Never end a turn waiting for notice of an
event that may already have happened; notifications never replace the waiter.
On start/resume, run `loopzero status` if the worktree exists. Resume a pending
`--wait`; after queue ejection, read the departure reason before requeueing.

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: Ejection guidance leaves out how to requeue

The CLI's ejection message (src/loopzero/cli.py:1456-1487) and SETUP.md:547-551 both say how to requeue. You fix the cause, post @mergifyio queue as the whole PR comment from the same GitHub login, then rerun loopzero merge --wait. The CLI never requeues on its own. The new sentence only says "read the departure reason before requeueing", so an agent resuming from the contract alone doesn't learn the requeue mechanism or that it must use the same login. Suggest adding "repair the cause, requeue with @mergifyio queue as the whole comment, then rerun loopzero merge --wait", or linking to the SETUP.md section.

Architecture-Review: unchanged; resume guidance preserves the existing waiter and Mergify recovery behavior.
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 delta review by claude on 96bf7c0631276ed8d5387a7323f2615637e76eac, 18.7s: 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
event that may already have happened; notifications never replace the waiter.
On start/resume, use `loopzero status` in an existing worktree to read Git, GitHub
and the receipt. Rerun the last `--wait` if pending. After ejection, read the
reason and follow [Mergify recovery](../SETUP.md#mergify). If cleanup removed the

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: The Mergify recovery link points to the wrong section

The link ../SETUP.md#mergify opens the ### Mergify section (SETUP.md:421-476). That section covers configuration and admission, but not what to do after an ejection. The steps for recovering after an ejection are at SETUP.md:547-551: repair the cause, requeue by posting @mergifyio queue as the whole comment, then resume loopzero merge --wait. Those lines sit under ## Hosted review eligibility, so an agent following the link after an ejection lands on setup text without the requeue procedure. Smallest fix: move the paragraph at SETUP.md:547-551 into the ### Mergify section, or give it its own heading such as #### Recovering after ejection and link to that anchor.

Comment thread core/CONTRACT.md
Git, GitHub and the check receipt. Never end a turn waiting for notice of an
event that may already have happened; notifications never replace the waiter.
On start/resume, use `loopzero status` in an existing worktree to read Git, GitHub
and the receipt. Rerun the last `--wait` if pending. After ejection, read the

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: Ejection guidance only covers Mergify, not GitHub's native merge queue

The old text said to read the departure reason before requeueing, which applied to any queue. The new sentence sends every ejection to Mergify-specific recovery. SETUP.md:409-419 also supports delivery.merge = "queue", which is GitHub's native merge queue. For that mode, the linked steps (posting @mergifyio queue) do nothing. Smallest fix: make the wording conditional, for example "After ejection, read the reason, repair it and requeue (for Mergify, see …)". Alternatively, link to a general section about recovering under a merge queue.

@eowca
eowca marked this pull request as ready for review November 26, 2026 07:16
@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 9be7069 at 07:28 UTC

11 min in the queue, 5 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 07:17 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1629
  • ✅ Merged 07:28 · 9be7069 · 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 9be7069 into main Nov 26, 2026
17 checks passed
@eowca
eowca deleted the lean178/1549-resume-current-stage branch November 26, 2026 07:29
@mergify mergify Bot removed the queued label Nov 26, 2026
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.

Use the current PR stage to choose a resume command

1 participant