Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions core/CONTRACT.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ own delivery state; `.loopzero/` holds task text and local receipts.

Merge is authorized by default under [merge authority](#merge-authority).

On every start/resume, run `loopzero status`, then rerun the last `--wait`
command if any; both are idempotent. Status derives the branch's stage from
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.

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.

worktree, verify the merge in GitHub. Never yield waiting for a notice that
may already have fired. Notifications never replace the waiter.
Before yielding, record head, last exit code, awaited event and next command
in one PR comment per owner. Post on first yield; update the existing comment ID
with the full replacement Markdown from `body_file` on later yields:
Expand Down
Loading