Reject empty evidence in grounded by name #47

Merged
lilleman merged 3 commits from grounded-empty into main 2026-09-25 18:26:14 +02:00
3 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -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):
+1
View File
@@ -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):
-1
View File
@@ -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.