Answer stability round 1: 0 🔴, 2 🟡 (0 misread); refuse a change whose variable the environment holds, and pin the refusal's path
This commit is contained in:
@@ -1511,7 +1511,9 @@ class TranscriptRead(unittest.TestCase):
|
||||
|
||||
def test_the_refusal_names_the_file_and_what_to_use_instead(self):
|
||||
found = breaches_of(Call("Read", {"file_path": self.TRANSCRIPT}, "/r"), self.HOME, {})
|
||||
self.assertEqual([breach.detail for breach in found[2] if breach.rule == "transcript-read"], [f"the call reads {self.TRANSCRIPT}, a session transcript that holds every tool result of its session; print only the lines you need with grep or jq"])
|
||||
[detail] = [breach.detail for breach in found[2] if breach.rule == "transcript-read"]
|
||||
self.assertIn(self.TRANSCRIPT, detail)
|
||||
self.assertIn("grep or jq", detail)
|
||||
|
||||
def test_the_refusal_is_logged_in_the_checkout_of_the_working_directory(self):
|
||||
found = breaches_of(Call("Read", {"file_path": self.TRANSCRIPT}, "/r"), self.HOME, {})
|
||||
|
||||
Reference in New Issue
Block a user