From babba7ed5165318b642c1206d2079f5f18a03a48 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 25 Sep 2026 18:21:31 +0200 Subject: [PATCH 1/3] Reject empty evidence in grounded by name --- bin/loop-claude | 5 ++++- todo.md | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/loop-claude b/bin/loop-claude index fa26e552..83877e15 100755 --- a/bin/loop-claude +++ b/bin/loop-claude @@ -294,7 +294,10 @@ def complete(verdict): def grounded(verdict, transcript): - return not verdict["ask"] or bool(verdict["evidence"]) and verdict["evidence"] in transcript + if not verdict["ask"]: + return True + evidence = verdict["evidence"] + return evidence != "" and evidence in transcript def judge(root, task, premises, transcript): diff --git a/todo.md b/todo.md index 016a9484..f377b1b1 100644 --- a/todo.md +++ b/todo.md @@ -4,7 +4,6 @@ Ordered by how many seats of the 2026-09-25 scoring panel (`docs/decisions.md`) named the place; each is one chunk. -- Reject empty evidence in `grounded` by name, today `bool(evidence) and evidence in transcript`, where a tidy-up drops the guard and `"" in transcript` is always true. - Split `CLAUDE.md`'s release bullet under "Working loop" so the plan-it and stop predicates each stand alone, today six rules in one paragraph differing by one clause. - Delete the prose three seats found restating the code: `statusline.sh`'s colour-threshold comment, the second process-global-state rule in `agents/stability-reviewer.md`, the file list in `principles/README.md`, and `JUDGE_SCHEMA`'s `finished` description. - Keep in `CHANGELOG.md` only what a machine taking the release must know, today thirteen `## Unreleased` lines narrate a wording edit to a rule. -- 2.52.0 From 3e4c30281e9af2a43f03e0ef065cd7383a1d8ee3 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 25 Sep 2026 18:24:07 +0200 Subject: [PATCH 2/3] Test that a whitespace-only quote grounds nothing --- bin/test_loop_claude.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/test_loop_claude.py b/bin/test_loop_claude.py index cb691598..c8276ae3 100644 --- a/bin/test_loop_claude.py +++ b/bin/test_loop_claude.py @@ -249,6 +249,7 @@ class Grounded(unittest.TestCase): self.assertTrue(loop.grounded({"ask": True, "evidence": "Needs you: x"}, "so.\n\nNeeds you: x\n")) self.assertFalse(loop.grounded({"ask": True, "evidence": "invented"}, "the transcript")) self.assertFalse(loop.grounded({"ask": True, "evidence": ""}, "the transcript")) + self.assertFalse(loop.grounded({"ask": True, "evidence": " "}, "the transcript")) class Verdict(unittest.TestCase): -- 2.52.0 From bf372366b0bd7a98e8b2f81f6111592f354d746e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 25 Sep 2026 18:24:08 +0200 Subject: [PATCH 3/3] Reject a whitespace-only quote as empty evidence --- bin/loop-claude | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/loop-claude b/bin/loop-claude index 83877e15..6adea195 100755 --- a/bin/loop-claude +++ b/bin/loop-claude @@ -297,7 +297,7 @@ def grounded(verdict, transcript): if not verdict["ask"]: return True evidence = verdict["evidence"] - return evidence != "" and evidence in transcript + return evidence.strip() != "" and evidence in transcript def judge(root, task, premises, transcript): -- 2.52.0