Distil each task-bench run into a digest and gather plan items from it #684

Merged
lilleman merged 9 commits from item-502 into main 2026-11-21 12:46:41 +01:00
Showing only changes of commit e2fc5dbfb2 - Show all commits
+6
View File
@@ -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)