Answer architecture round 1: 0 🔴, 36 🟡 (0 misread); chunk_driver holds what both drivers share, and Jira and review-state reads have one home each
CI / tests (pull_request) Successful in 5m11s

This commit is contained in:
2026-11-19 11:14:44 +01:00
parent ab8bf249cc
commit b8595db647
69 changed files with 1983 additions and 1592 deletions
+14
View File
@@ -0,0 +1,14 @@
import pathlib
from failure import Failure
def read_utf8(folder: str, name: str, consequence: str) -> str | Failure:
"""The text of the file name in folder; a Failure naming consequence where it cannot be read or is not UTF-8."""
try:
return pathlib.Path(folder, name).read_text(encoding="utf-8")
except OSError as failure:
return Failure(f"{name} in {folder}: {failure.strerror} - {consequence}.")
except UnicodeDecodeError as failure:
line = failure.object.count(b"\n", 0, failure.start) + 1
return Failure(f"{name} in {folder} is not UTF-8 on line {line} - {consequence}.")