Answer prose round 1: 0 🔴, 8 🟡 (0 misread); reword the decision, the rule texts and item 341

This commit is contained in:
2026-11-18 15:54:24 +01:00
parent aaa080a201
commit 8210754780
6 changed files with 11 additions and 15 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ RULES: dict[RuleName, Rule] = {
),
# A Read carries no text for a marker, so no marker waives it.
"transcript-read": Rule(
"an agent never reads a session transcript under ~/.claude/projects with Read, since the file holds the whole thread of its session and a read puts all of it in context; it prints the lines it needs with grep or jq; the `tool-results/` files that Claude Code saves a long Bash result to are not transcripts and may be read",
"an agent never reads a session transcript under ~/.claude/projects with Read, since the file holds every tool result of its session, and reading it costs far more than the lines the agent needs; the agent prints only those lines with grep or jq; the `tool-results/` files that Claude Code saves a long Bash result to are not transcripts and may be read",
"a Read call whose file is a `.jsonl` file under ~/.claude/projects; a Grep or a Bash command that reads one is not checked",
overridable=False,
),
+1 -1
View File
@@ -1,6 +1,6 @@
"""Whether a Read asks for a session transcript under ~/.claude/projects, for the `transcript-read` rule.
A transcript is a `.jsonl` file there, a session's own or a subagent's. Its size is the session's whole thread, so a Read of one puts it all in context. The files Claude Code saves a long Bash result to, under the session's `tool-results/` folder, are `.txt` files and pass: the model is handed their path to read."""
A transcript is a `.jsonl` file there, a session's own or a subagent's. It holds every tool result of its session, so reading one costs far more than the lines a task needs. The files Claude Code saves a long Bash result to, under the session's `tool-results/` folder, are `.txt` files and pass: the model is handed their path to read."""
import posixpath
from rule_hook.rules import Breach