Record that the judge reads CLAUDE.md through claude -p auto-discovery

This commit was merged in pull request #28.
This commit is contained in:
2026-09-25 00:43:30 +02:00
parent 0fd8872f64
commit dfab5b7e83
4 changed files with 2 additions and 11 deletions
-7
View File
@@ -3,7 +3,6 @@ import importlib.util
import json
import os
import pathlib
import re
import stat
import tempfile
import unittest
@@ -92,12 +91,6 @@ class WorkerArgs(unittest.TestCase):
class JudgePrompt(unittest.TestCase):
def test_defines_chunk_plan_and_release_as_claude_md_does(self):
vocabulary = pathlib.Path(__file__).resolve().parents[1] / "CLAUDE.md"
definitions = dict(re.findall(r"^- \*\*(\w+)\*\* — (.+)$", vocabulary.read_text(), re.MULTILINE))
for word in ("chunk", "plan", "release"):
self.assertIn(f"{word}: {definitions[word]}", loop.JUDGE_RULES)
def test_hands_the_judge_the_tail_of_a_long_transcript(self):
prompt = loop.judge_prompt("task", "## Goals\n1. g", "early " * 20000 + "LATE")
self.assertIn("LATE", prompt)