Answer stability round 3: 0 🔴, 0 🟡 (0 misread); keep the Edit-refusal comment above the tests it explains
This commit is contained in:
@@ -429,13 +429,13 @@ class RepeatRead(unittest.TestCase):
|
||||
self.read(2, 11)
|
||||
self.assertEqual(self.found("Read", {"file_path": self.file, "limit": 10}), [])
|
||||
|
||||
# Claude Code's Edit refuses a file changed since the agent last read it with Read, or wrote it with Edit or Write, until it reads it again.
|
||||
def test_calls_that_neither_read_nor_write_the_file_are_passed_over(self):
|
||||
self.used("Grep", {"pattern": "line", "path": self.folder}, "f.txt")
|
||||
self.used("Bash", {"command": "ls"}, "f.txt")
|
||||
self.read(1, 10)
|
||||
self.assertEqual(rules(self.found("Read", {"file_path": self.file, "offset": 1, "limit": 10})), ["repeat-read"])
|
||||
|
||||
# Claude Code's Edit refuses a file changed since the agent last read it with Read, or wrote it with Edit or Write, until it reads it again.
|
||||
def test_a_change_in_the_millisecond_of_the_last_read_counts_as_before_it(self):
|
||||
self.read(1, 10)
|
||||
at = datetime.datetime(2026, 6, 1, tzinfo=datetime.UTC).timestamp()
|
||||
|
||||
Reference in New Issue
Block a user