From 6478724acb0dc09bbf72820e2ca80c8ee2c42dbe Mon Sep 17 00:00:00 2001 From: eowca <4008965+eowca@users.noreply.github.com> Date: Thu, 26 Nov 2026 07:53:03 +0100 Subject: [PATCH] Document delivery exit codes and status semantics Architecture-Review: unchanged; the documented behavior matches the current CLI without changing the delivery interface. Co-Authored-By: Codex --- README.md | 5 ++--- core/CONTRACT.md | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4a50355e..fbbd22b9 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,8 @@ ownership and the contributor routine that keeps documentation current. For a picture of the whole flow, see the [workflow diagrams](docs/WORKFLOW.md). -`loopzero status` prints where the current branch is in that sequence. It -requires authenticated access to the configured GitHub repository even before -a PR exists. +`loopzero status` reports the branch stage and can exit 0 with `ready: no`. +It requires authenticated GitHub access even before a PR exists. `loopzero resolve` lists the open blocking findings with their ids; `loopzero resolve ""` replies in that thread and resolves it. diff --git a/core/CONTRACT.md b/core/CONTRACT.md index 01f99ca4..072303ab 100644 --- a/core/CONTRACT.md +++ b/core/CONTRACT.md @@ -284,8 +284,8 @@ meta-directives; native repository instructions remain an instruction surface. Fail closed on missing tools and command errors, preserve the failing command and output tail, and keep a short, safe detail about the cause or stage when operator-facing code wraps an error. Stop on terminal failures or quota errors. -Exit 3 means waiting: rerun the bounded waiter. Exit 5 means changes requested, -not a crash. +Exit 3 means waiting or timeout. Review exits 4 when independent review is +unavailable and 5 when changes are requested. Interruption exits 130. **Never pipe a `loopzero` command, even with `set -o pipefail`: the pipeline can report the filter's exit code in place of the command's verdict.** Redirect