diff --git a/bin/loop-claude b/bin/loop-claude index fa26e552..6adea195 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.strip() != "" and evidence in transcript def judge(root, task, premises, transcript): 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): 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.