Answer prose round 1: 0 🔴, 8 🟡 (0 misread); reword the decision, the rule texts and item 341
This commit is contained in:
@@ -43,7 +43,7 @@ def rounds_without_failure(chosen: list[Round], runs: list[list[set[int] | Failu
|
||||
|
||||
|
||||
def comparison(reviewed: str, reference: Rung, change: Change, rounds: list[Round], with_it: tuple[list[set[int]], list[set[int]], list[set[int]]], without: list[set[int]], left_out: int) -> str:
|
||||
"""What the three unchanged replays and the one with change found in rounds. Each unchanged replay missed some findings the other two found: the control, the noise of an unchanged reviewer. The one with the change is held to the findings the first two found, as the third is, and passes where it missed no more than the most an unchanged replay did. left_out counts the rounds a replay failed on, which rounds leaves out."""
|
||||
"""What the three unchanged replays and the one with change found in rounds. Each unchanged replay missed some findings the other two found: the control, the noise of an unchanged reviewer. The one with the change is held to the findings the first two found, as the third is, and passes where it missed no more than the most an unchanged replay did. with_it holds what each of the three unchanged replays found in each round, and without what the replay with change found. left_out counts the rounds a replay failed on, which rounds leaves out."""
|
||||
first, second, third = with_it
|
||||
|
||||
def shared(one: list[set[int]], other: list[set[int]]) -> list[set[int]]:
|
||||
|
||||
@@ -121,7 +121,7 @@ def reviewed_in(found: Round, code: Code, rung: Rung, copies: Copies, home: path
|
||||
|
||||
|
||||
def launch(reviewer: str, rung: Rung, prompt: str, checkout: str, copies: Copies, home: pathlib.Path, change: Change | None) -> tuple[list[str], str] | Failure:
|
||||
"""claude's arguments and prompt for reviewer on rung, in copies.clone, a copy of the project whose checkout is checkout. Where change is given, claude starts under its environment, through its settings; where change turns the instruction files off, the prompt holds what the SubagentStart hook and the header's last line hand such a reviewer."""
|
||||
"""claude's arguments and prompt for reviewer on rung, in copies.clone, a copy of the project whose checkout is checkout. Where change is given, claude starts under the environment change holds, which claude's settings set; where change turns the instruction files off, the prompt holds what the SubagentStart hook and the header's last line hand such a reviewer."""
|
||||
args = ["--agent", reviewer, *rung.flags()]
|
||||
if change is None:
|
||||
return args, prompt
|
||||
|
||||
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user