From a4be1202d78c4eda3eb538abe711a615e222b8a5 Mon Sep 17 00:00:00 2001 From: eowca <4008965+eowca@users.noreply.github.com> Date: Thu, 26 Nov 2026 11:28:56 +0100 Subject: [PATCH] Distinguish SIGINT and SIGTERM exit status Architecture-Review: unchanged; This correction documents existing cancellation behavior without changing delivery or process handling. Co-Authored-By: Codex --- core/CONTRACT.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/CONTRACT.md b/core/CONTRACT.md index 6390ec10..01dce362 100644 --- a/core/CONTRACT.md +++ b/core/CONTRACT.md @@ -269,7 +269,8 @@ the failure. Exit 2 covers invalid arguments and sandbox unavailability in `check` or fresh `review`. Exit 3 means waiting or timeout. Review exits 4 when independent review is -unavailable and 5 when changes are requested. Interruption exits 130. +unavailable and 5 when changes are requested. SIGINT exits 130. SIGTERM is +re-raised, yielding shell status 143 and subprocess return code `-15`. **Never pipe `loopzero`, even with pipefail**, because it can hide the verdict. Redirect stdout and stderr (e.g. `loopzero check >check.log 2>&1`) and read the