From 4c109b341166b4631600ba5f6cf9c9465dd5949b Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 19 Nov 2026 22:55:34 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1=20(0=20misread);=20test=20the?= =?UTF-8?q?=20unreadable=20seat-prompts.md=20and=20correct=20prepare-scori?= =?UTF-8?q?ng's=20help?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/larv_review/main.py | 5 +++-- bin/larv_review/test_scoring_setup.py | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/larv_review/main.py b/bin/larv_review/main.py index 00e6a1ee..d260a28f 100644 --- a/bin/larv_review/main.py +++ b/bin/larv_review/main.py @@ -91,8 +91,9 @@ prepare-scoring sets up a scoring run in the chunk's review folder: a detached w checkout's HEAD, which the seats read, and one prompt file per seat beside it, as skills/comprehension-panel/seat-prompts.md builds them. It prints the worktree's path and each prompt's. It takes {{language}}, {{kind}}, {{domain}}, {{domain docs}} and {{3am question}} from the -checkout's AGENTS.md → "Scoring run". claude-config keeps no AGENTS.md, so there it takes them from -seat-prompts.md → "claude-config's values". It fills the other placeholders from the worktree and +project's working-rules file → "Scoring run", which is the checkout's AGENTS.md unless the config +names another. Where that file holds no such section, as in claude-config, it takes them from the +checkout's seat-prompts.md → "claude-config's values". It fills the other placeholders from the worktree and the panel's SKILL.md. Where any one of the five values is missing, it exits 1 and doesn't write anything. Where a setup that record-scoring never removed is still there, it removes it first and says so. diff --git a/bin/larv_review/test_scoring_setup.py b/bin/larv_review/test_scoring_setup.py index 4372eb18..07dbee3b 100644 --- a/bin/larv_review/test_scoring_setup.py +++ b/bin/larv_review/test_scoring_setup.py @@ -203,6 +203,14 @@ class PrepareScoring(unittest.TestCase): assert isinstance(unread, Failure), unread self.assertTrue(unread.reason.startswith(f"cannot read {self.checkout}/AGENTS.md: "), unread.reason) self.assertEqual(len(self.git("worktree", "list").splitlines()), 1) + own = self.checkout / "skills" / "comprehension-panel" / "seat-prompts.md" + own.parent.mkdir(parents=True) + own.write_bytes(b"\xff") + (self.checkout / "AGENTS.md").write_text("# Working rules, with no values\n") + unread = self.prepare() + assert isinstance(unread, Failure), unread + self.assertTrue(unread.reason.startswith(f"cannot read {own}: "), unread.reason) + self.assertEqual(len(self.git("worktree", "list").splitlines()), 1) if __name__ == "__main__":