Give record, verdict and judge one meaning each

This commit is contained in:
2026-10-03 17:53:25 +02:00
parent 9f75fe8c51
commit 5f7d34b87d
12 changed files with 39 additions and 39 deletions
+6 -6
View File
@@ -250,17 +250,17 @@ class Checkout:
return pathlib.Path(self.env.get("LOOP_CLAUDE_TRANSCRIPTS", self.home / ".claude" / "loop-claude-transcripts"))
def archived(self):
"""Each archived transcript's verdict, after checking the copy is named by its content hash."""
verdicts = {}
"""Each archived transcript's outcomes, after checking the copy is named by its content hash."""
outcomes = {}
for folder in (self.archive(), self.archive() / "proj", *(self.archive() / "proj").iterdir()):
self.test.assertEqual(stat.S_IMODE(folder.stat().st_mode), 0o700, folder)
for copy in sorted((self.archive() / "proj").glob("*/*.jsonl")):
self.test.assertEqual(copy.stem, hashlib.sha256(copy.read_bytes()).hexdigest())
verdict = copy.with_suffix(".verdict.md")
for archived in (copy, verdict):
kept = copy.with_suffix(".outcomes.md")
for archived in (copy, kept):
self.test.assertEqual(stat.S_IMODE(archived.stat().st_mode), 0o600)
verdicts[copy.read_text()] = verdict.read_text()
return verdicts
outcomes[copy.read_text()] = kept.read_text()
return outcomes
def argument(call, flag):