From e2fc5dbfb2ebe458f781e1497057b3c5f6289e46 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 21 Nov 2026 12:22:46 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20test=20that?= =?UTF-8?q?=20a=20gather=20before=20any=20review=20makes=20the=20review=20?= =?UTF-8?q?folders=20private;=20the=20digest's=20errors=3D"replace"=20stay?= =?UTF-8?q?s=20untested,=20as=20it=20takes=20a=20lone=20surrogate=20in=20a?= =?UTF-8?q?=20stream?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/task_bench/test_gather.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/task_bench/test_gather.py b/bin/task_bench/test_gather.py index b6c948d8..0c0889b4 100644 --- a/bin/task_bench/test_gather.py +++ b/bin/task_bench/test_gather.py @@ -3,6 +3,7 @@ import contextlib import io import json import pathlib +import shutil import subprocess import sys import tempfile @@ -71,6 +72,11 @@ class GatherTest(unittest.TestCase): found = gather(self.env, self.home, self.claude) self.assertEqual((found.reason if isinstance(found, Failure) else found, self.calls), (f"{self.bench} holds no digest: run task-bench in this checkout first.", [])) + def test_a_gather_before_any_review_makes_the_review_folders_private(self): + shutil.rmtree(self.home / ".local") + self.assertIsInstance(gather(self.env, self.home, self.claude), Failure) + self.assertEqual((self.home / ".local/state/larv-review").stat().st_mode & 0o777, 0o700) + def test_a_claude_that_fails_or_hits_a_limit_keeps_the_folder_for_another_try(self): self.code = 1 found = gather(self.env, self.home, self.claude)