Answer the product-owner review's first round

This commit is contained in:
2026-10-02 07:41:41 +02:00
parent 041fb8b98d
commit f5b3ba0a5d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -16,5 +16,5 @@
- `loop-claude` counts an interrupt reply starting with `<` as typed.
- `loop-claude`'s judge sees a reply the human types while claude works, and an interrupt counts one as typed.
- `loop-claude`'s archive holds the raw `.jsonl` transcript, one copy per distinct transcript, named by its SHA-256, with the verdict beside it in `<sha256>.verdict.md`; a transcript it cannot archive exits 1.
- `loop-claude` exits 1 when it cannot delete a finished chunk's session, naming what to delete, so the next chunk does not resume it.
- `loop-claude` exits 1 when it cannot delete a finished chunk's session, naming what to delete before rerunning; the next chunk would otherwise resume it.
- `loop-claude` keeps the mode of `~/.claude.json` and of its models file when it rewrites them, and creates the models file 0600.
+1 -1
View File
@@ -46,5 +46,5 @@ def delete_session(session: Session) -> Failure | None:
try:
shutil.rmtree(sibling) if os.path.isdir(sibling) else os.remove(sibling)
except OSError as failure:
return Failure(f"could not delete {sibling}: {failure.strerror or failure}; delete {stem}* and rerun loop-claude, or the next chunk resumes the finished chunk's session")
return Failure(f"could not delete {sibling}: {failure.strerror or failure}; delete every file and folder matching {stem}* and rerun loop-claude, or the next chunk resumes the finished chunk's session")
return None
+1 -1
View File
@@ -186,7 +186,7 @@ class Cycles(unittest.TestCase):
self.addCleanup(folder.chmod, 0o700)
fake = FakeEffects(streams=[Worker(self.paths.claude_code_transcripts.parent)], claude=[judged("finished")])
stop = steps.run_cycle(self.cycle(fake))
self.assertEqual(stop, Stop(1, f"could not delete {folder}: Permission denied; delete {folder}* and rerun loop-claude, or the next chunk resumes the finished chunk's session"))
self.assertEqual(stop, Stop(1, f"could not delete {folder}: Permission denied; delete every file and folder matching {folder}* and rerun loop-claude, or the next chunk resumes the finished chunk's session"))
self.assertTrue(session.session_open(self.session))
self.assertEqual(self.archived_verdicts(), ["Task: Do it.\n\nVerdict: finished\n"])