Answer the principles audit: keep every session file under session/, and stop on a folder the archive cannot read

This commit is contained in:
2026-10-02 17:10:03 +02:00
parent 6ccd5b190f
commit 4620d2e29b
8 changed files with 76 additions and 28 deletions
+1
View File
@@ -350,6 +350,7 @@ class Cycles(unittest.TestCase):
self.assertEqual(sorted(copies), ["Stopped: Ctrl-C\n", "Verdict: finished\n", "Verdict: unfinished\n"])
self.assertIn('"text": "landed-it"', copies["Verdict: finished\n"])
self.assertIn('"text": "next chunk"', copies["Stopped: Ctrl-C\n"])
self.assertEqual(len(list(checkout.archive().glob(f"proj/*/session/{session}.orphaned-1-ab.jsonl"))), 1)
def test_exits_1_when_the_transcript_cannot_be_archived_and_resumes_on_the_next_run(self):
checkout = Checkout(self)