Answer stability round 1: 0 🔴, 1 🟡 (0 misread); the comment on a usage limit's reset time says the stream holds it, and the no-json message quotes the last line only
This commit is contained in:
@@ -16,7 +16,7 @@ RESULT = "result.md"
|
||||
|
||||
|
||||
def replay_folder(root: pathlib.Path, tool: str, argv: list[str], now: float) -> pathlib.Path:
|
||||
"""Where a replay of tool run with argv at now keeps its runs and its result, under the archive at root; no reader of loop-claude's archive takes a folder there for a project's."""
|
||||
"""The folder a replay of tool, run with argv at now, keeps its runs and its result in, under the archive at root. It holds no outcomes file, so no reader of loop-claude's archive takes it for a chunk's."""
|
||||
name = "-".join([tool, *(arg.lstrip("-") for arg in argv), time.strftime("%Y%m%dT%H%M%SZ", time.gmtime(now))])
|
||||
return root / "replays" / re.sub(r"[^A-Za-z0-9._-]", "_", name)
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ class ArchivedRuns(unittest.TestCase):
|
||||
self.assertEqual(out.getvalue(), "The report.\n")
|
||||
self.assertIn(f"could not keep the result in {self.folder}: ", err.getvalue())
|
||||
|
||||
def test_names_the_folder_by_the_tool_its_arguments_and_the_minute_in_utc_under_replays(self):
|
||||
def test_names_the_folder_by_the_tool_its_arguments_and_the_second_in_utc_under_replays(self):
|
||||
root = pathlib.Path("/archive")
|
||||
self.assertEqual(replay_folder(root, "review-replay", ["stability", "claude-opus-5-5", "--omit-claude-md"], 1790000000.0), root / "replays" / "review-replay-stability-claude-opus-5-5-omit-claude-md-20260921T141320Z")
|
||||
self.assertEqual(replay_folder(root, "judge-replay", ["a/b c"], 0.0), root / "replays" / "judge-replay-a_b_c-19700101T000000Z")
|
||||
|
||||
Reference in New Issue
Block a user