From 5355953fa8a292ab7d6ba33afde0ae899573e730 Mon Sep 17 00:00:00 2001 From: eowca <4008965+eowca@users.noreply.github.com> Date: Thu, 26 Nov 2026 07:53:02 +0100 Subject: [PATCH 1/2] Resume delivery from the current PR stage Architecture-Review: unchanged; the documented behavior matches the current CLI without changing the delivery interface. Co-Authored-By: Codex --- core/CONTRACT.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/CONTRACT.md b/core/CONTRACT.md index 01f99ca4..67fbaa61 100644 --- a/core/CONTRACT.md +++ b/core/CONTRACT.md @@ -43,10 +43,10 @@ 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, run `loopzero status` if the worktree exists. Resume a pending +`--wait`; after queue ejection, read the departure reason before requeueing. +If cleanup removed the worktree, verify the merge in GitHub. 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: From 96bf7c0631276ed8d5387a7323f2615637e76eac Mon Sep 17 00:00:00 2001 From: eowca <4008965+eowca@users.noreply.github.com> Date: Thu, 26 Nov 2026 07:57:39 +0100 Subject: [PATCH 2/2] Preserve the pending-wait and notification rules Architecture-Review: unchanged; resume guidance preserves the existing waiter and Mergify recovery behavior. Co-Authored-By: Codex --- core/CONTRACT.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/CONTRACT.md b/core/CONTRACT.md index 67fbaa61..d385fb8d 100644 --- a/core/CONTRACT.md +++ b/core/CONTRACT.md @@ -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 start/resume, run `loopzero status` if the worktree exists. Resume a pending -`--wait`; after queue ejection, read the departure reason before requeueing. -If cleanup removed the worktree, verify the merge in GitHub. 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 +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: