Reject empty evidence in grounded by name #47
+4
-1
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user