Answer stability round 1: 0 🔴, 2 🟡 (0 misread); test the unreadable seat-prompts.md and correct prepare-scoring's help
This commit is contained in:
@@ -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
|
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
|
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
|
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
|
project's working-rules file → "Scoring run", which is the checkout's AGENTS.md unless the config
|
||||||
seat-prompts.md → "claude-config's values". It fills the other placeholders from the worktree and
|
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
|
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
|
anything. Where a setup that record-scoring never removed is still there, it removes it first and
|
||||||
says so.
|
says so.
|
||||||
|
|||||||
@@ -203,6 +203,14 @@ class PrepareScoring(unittest.TestCase):
|
|||||||
assert isinstance(unread, Failure), unread
|
assert isinstance(unread, Failure), unread
|
||||||
self.assertTrue(unread.reason.startswith(f"cannot read {self.checkout}/AGENTS.md: "), unread.reason)
|
self.assertTrue(unread.reason.startswith(f"cannot read {self.checkout}/AGENTS.md: "), unread.reason)
|
||||||
self.assertEqual(len(self.git("worktree", "list").splitlines()), 1)
|
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__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user