Answer principles round 1: 0 🔴, 3 🟡; list the human's rule files once in the finished rule, split the dense paragraphs and the test
This commit is contained in:
@@ -1242,14 +1242,12 @@ class JudgePrompt(unittest.TestCase):
|
||||
self.assertEqual(grounds.since_step, "old " + "x" * judge.JUDGE_PROMPT_CHARS + "\n\nnew")
|
||||
self.assertEqual(grounds.quotable, "## Goals\n\n")
|
||||
|
||||
def test_the_judge_prompt_calls_the_worker_the_worker_and_names_where_the_human_writes_rules(self):
|
||||
entries = [assistant({"type": "text", "text": "done"})]
|
||||
prompt, _ = judge.judge_prompt("Do it.", "## Goals", "", entries, 1)
|
||||
schema = json.dumps(judge.JUDGE_SCHEMA)
|
||||
self.assertNotRegex(prompt + schema, r"\b[Aa]gent")
|
||||
self.assertIn("writing it into ~/.claude/CLAUDE.md, ~/.claude/rules/ or ~/.claude/skills/larv-review/standards/ does not count", prompt)
|
||||
for name in records.HUMAN_RULE_NAMES:
|
||||
self.assertIn(name, judge.JUDGE_RULES)
|
||||
def test_the_judge_prompt_and_schema_call_the_worker_the_worker(self):
|
||||
prompt, _ = judge.judge_prompt("Do it.", "## Goals", "", [assistant({"type": "text", "text": "done"})], 1)
|
||||
self.assertNotRegex(prompt + json.dumps(judge.JUDGE_SCHEMA), r"\b[Aa]gent")
|
||||
|
||||
def test_the_judge_prompt_names_every_rule_the_judge_reads_from_the_human(self):
|
||||
self.assertEqual([name for name in records.HUMAN_RULE_NAMES if name not in judge.JUDGE_RULES], [])
|
||||
|
||||
def test_shows_the_judge_where_the_worker_last_stepped_up_and_checks_an_escalation_only_after_it(self):
|
||||
entries = [assistant({"type": "text", "text": "round 2: 🔴"}), assistant({"type": "text", "text": "round 3: 🔴"})]
|
||||
|
||||
Reference in New Issue
Block a user