Answer architecture round 1: 2 🔴, 2 🟡 (0 misread); move transcript parsing into claude_code and keep repeat_read pure

This commit is contained in:
2026-10-28 12:51:24 +01:00
parent 1d2f3d14d2
commit 248e46f616
10 changed files with 110 additions and 86 deletions
+1
View File
@@ -27,6 +27,7 @@ def shell_reads(command: str, cwd: str, home: str) -> Reads:
return Reads(read, added)
# rule_hook/repeat_read.py parses a shell read too, strictly: a measure of reading counts any file a reader names, while a rule that blocks must match only a read whose lines it knows exactly.
def operands(words: list[str]) -> list[str]:
program = posixpath.basename(words[0])
if program not in READERS or (program == "sed" and any(word.startswith("-i") for word in words)):