Answer product-owner round 1: 0 🔴, 2 🟡 (0 misread); print the report before exiting 1 on an unreadable archive, naming the file
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""The human's reversals of choices workers took on their own, per finished chunk in loop-claude's archive: the counter-signal docs/decisions.md → `loop-claude: a judge decides each interrupt and each quoted answer…`, its entry of 2026-11-08, is valid under."""
|
||||
"""The human's reversals of choices workers took on their own recommendation, per finished chunk in loop-claude's archive. docs/decisions.md → `loop-claude: a judge decides each interrupt and each quoted answer…`, in its entry of 2026-11-08, is valid while they stay few."""
|
||||
import json
|
||||
import pathlib
|
||||
|
||||
@@ -15,10 +15,12 @@ def reversal_lines(project_archive: pathlib.Path) -> list[str] | Failure:
|
||||
return chunks
|
||||
counted = []
|
||||
for chunk in reversed(chunks):
|
||||
try:
|
||||
texts = [path.read_text(encoding="utf-8") for path in chunk_outcomes(project_archive / chunk.folder)]
|
||||
except (OSError, UnicodeDecodeError) as failure:
|
||||
return Failure(f"could not read the archive {project_archive}: {failure}")
|
||||
texts = []
|
||||
for path in chunk_outcomes(project_archive / chunk.folder):
|
||||
try:
|
||||
texts.append(path.read_text(encoding="utf-8"))
|
||||
except (OSError, UnicodeDecodeError) as failure:
|
||||
return Failure(f"could not read the archive file {path}: {failure}")
|
||||
if any(f"\n{CONFIG}" in text for text in texts):
|
||||
# The judge quotes the latest reversal at each ruling, so one answer may be quoted many times.
|
||||
found = dict.fromkeys(quote for text in texts for quote in reversals(text))
|
||||
|
||||
Reference in New Issue
Block a user