Answer product-owner round 1: 0 🔴, 0 🟡; grant interactive sessions the reports folder and fall back to the full reply when the Write fails, mark up the summary example, and copy into a replay only reports written since its chunk began

This commit is contained in:
2026-10-18 01:16:26 +02:00
parent d361312edc
commit 2b1d3707c8
5 changed files with 13 additions and 9 deletions
@@ -234,7 +234,7 @@ class Main(unittest.TestCase):
self.assertTrue(out.endswith("finds: claude-sonnet-5-5 at high effort\n"))
def review_folder_with_round_1(self):
"""The chunk's review folder, holding round 1's report from before the replayed round began at 10:00, and that round's own and a later pass's reports, written after."""
"""The chunk's review folder, holding round 1's report from before the replayed round began at 10:00, that round's own and a later pass's reports, written after, and an earlier attempt's report, from before the chunk began at 09:15."""
folder = self.home / ".local" / "state" / "larv-review" / "code" / "proj-x"
folder.mkdir(parents=True)
(folder / "stability-round-1.md").write_text("round 1\n")
@@ -242,6 +242,9 @@ class Main(unittest.TestCase):
os.utime(folder / "stability-round-1.md", (before, before))
(folder / "stability-round-2.md").write_text("🔴 a.txt:1 wrong\n")
(folder / "prose-round-1.md").write_text("later\n")
(folder / "stability-round-3.md").write_text("🔴 a.txt:1 wrong\n")
attempt = stamp_seconds("2026-10-14T09:00:00Z")
os.utime(folder / "stability-round-3.md", (attempt, attempt))
return folder
def test_points_the_prompts_review_folder_at_a_copy_of_the_reports_from_before_the_round_that_it_removes(self):
@@ -260,10 +263,10 @@ class Main(unittest.TestCase):
named, copied, earlier = seen[0]
self.assertEqual(named.parent, folder.parents[1], "the copy sits in the reports folder, where rule-hook lets the reviewer write")
self.assertNotEqual(named, folder)
self.assertEqual(copied, ["stability-round-1.md"], "the round's own report and later ones would hand the replayed reviewer its findings")
self.assertEqual(copied, ["stability-round-1.md"], "the round's own report, later ones and an earlier attempt's would hand the replayed reviewer its findings")
self.assertEqual(earlier, "round 1\n")
self.assertFalse(named.exists())
self.assertEqual(sorted(path.name for path in folder.iterdir()), ["prose-round-1.md", "stability-round-1.md", "stability-round-2.md"])
self.assertEqual(sorted(path.name for path in folder.iterdir()), ["prose-round-1.md", "stability-round-1.md", "stability-round-2.md", "stability-round-3.md"])
self.assertEqual((folder / "stability-round-2.md").read_text(), "🔴 a.txt:1 wrong\n")
def test_points_the_review_folders_absolute_path_at_the_copy(self):