Answer prose round 1: 1 🔴, 9 🟡 (0 misread); count the home's six links everywhere, say that gather builds the home too, define the setup as the release the machine runs, and reword what the reviewer read twice
This commit is contained in:
@@ -11,6 +11,9 @@ from agent_cycle import judge
|
||||
from chunk_driver.project import records
|
||||
from loop_state.paths import RELEASE_ROOT
|
||||
|
||||
KIM = pathlib.Path("/home/kim")
|
||||
CLAUDE_HOME = KIM / "share" / "claude-home"
|
||||
|
||||
|
||||
class Records(unittest.TestCase):
|
||||
def test_heads_each_record_by_its_name_the_humans_rules_last(self):
|
||||
@@ -55,11 +58,15 @@ class Records(unittest.TestCase):
|
||||
self.assertEqual(records.read_records(root, claude_md.parents[1], {}, claude_md.parent), Failure(f"no config names the checkout {root}: write {claude_md.parents[1]}/.config/build-release/<key>/config.toml, as `project-config --help` shows - the judge cannot read the records."))
|
||||
|
||||
def test_names_a_file_of_the_setup_alike_in_the_loops_home_and_in_the_clone(self):
|
||||
home = pathlib.Path("/home/kim")
|
||||
for rule in (home / "share" / "claude-home" / "rules" / "todo-items.md", RELEASE_ROOT / "rules" / "todo-items.md"):
|
||||
self.assertEqual(records.named(rule, home, home / "share" / "claude-home"), "the setup's rules/todo-items.md")
|
||||
self.assertEqual(records.named(home / "standards" / "prose.md", home, home / "share" / "claude-home"), "~/standards/prose.md")
|
||||
self.assertEqual(records.named(pathlib.Path("/srv/standards/prose.md"), home, home / "share" / "claude-home"), "/srv/standards/prose.md")
|
||||
for rule in (CLAUDE_HOME / "rules" / "todo-items.md", RELEASE_ROOT / "rules" / "todo-items.md"):
|
||||
with self.subTest(rule):
|
||||
self.assertEqual(records.named(rule, KIM, CLAUDE_HOME), "the setup's rules/todo-items.md")
|
||||
|
||||
def test_names_any_other_file_under_the_home_from_the_tilde(self):
|
||||
self.assertEqual(records.named(KIM / "standards" / "prose.md", KIM, CLAUDE_HOME), "~/standards/prose.md")
|
||||
|
||||
def test_names_a_file_outside_the_home_in_full(self):
|
||||
self.assertEqual(records.named(pathlib.Path("/srv/standards/prose.md"), KIM, CLAUDE_HOME), "/srv/standards/prose.md")
|
||||
|
||||
def test_puts_the_records_handed_in_first_and_reads_only_the_humans_rules_without_a_checkout(self):
|
||||
with tempfile.TemporaryDirectory() as root:
|
||||
|
||||
Reference in New Issue
Block a user