From a0bd8632b59fc311e18e246e4d0ff99d90dd4c77 Mon Sep 17 00:00:00 2001 From: "seahaven-openswe[bot]" <296972425+seahaven-openswe[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 12:13:28 +0000 Subject: [PATCH] fix(plan-groomer): avoid crash on empty DIGEST with zero findings `${DIGEST:?}` aborts the script when DIGEST is unset/empty (i.e. when no upstream checker findings exist). Replace with null-safe `${DIGEST:-}` so the report-only mode exits cleanly on a clean week. --- checkers/plan-groomer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkers/plan-groomer.sh b/checkers/plan-groomer.sh index 996afdf..781a4b6 100755 --- a/checkers/plan-groomer.sh +++ b/checkers/plan-groomer.sh @@ -298,7 +298,7 @@ if [ "$NOTIFY" -eq 1 ] && [ "$DRY_RUN" -eq 0 ]; then # is REPORT-ONLY and must not auto-write. The composed digest is available in $DIGEST. log "--notify requested but inert in this phase (D3: report-only; auto-write is a later toggle). No push." fi -: "${DIGEST:?}" >/dev/null 2>&1 || true # DIGEST is composed for the future seam; keep it referenced. +DIGEST="${DIGEST:-}" # DIGEST is composed for the future seam; keep it referenced. log "REPORT-ONLY: groomed plan written to the mode-600 report; nothing posted (D3)." exit 0