Answer stability round 1: 0 🔴, 4 🟡 (0 misread); say a command names the file rather than reads it, name the way on, refuse redirect targets and a quoted $HOME, check each file once, and drop the README caveat the rule outlived
This commit is contained in:
@@ -37,8 +37,8 @@ RULES: dict[RuleName, Rule] = {
|
||||
),
|
||||
# A marker would let the credentials into the transcript all the same, so no marker waives it.
|
||||
"env-file-read": Rule(
|
||||
"an agent never reads ~/.claude/.env or a project's env-file, the file of credentials its config names, since a value it reads lands in its transcript, which loop-claude archives and the backups copy; a tool that needs a credential reads the file itself, and `project-config env-file` prints the file's path",
|
||||
"a Read of the file, a Grep of the file, or of a folder that holds it where the Grep sets a glob or no checkout ignores the file, and a Bash command that spells the file's path or names it from the directory `cd` left the command in, against ~/.claude/.env and the env-file of every config under ~/.claude-projects",
|
||||
"an agent never reads ~/.claude/.env or a project's env-file, the file of credentials the project's config names, since a value the agent reads lands in its transcript, which loop-claude archives and the backups copy; it leaves a tool that needs a credential to read the file itself, gets the file's path from `~/.claude/bin/project-config env-file`, and spells the path another way, such as \"the .env in ~/.claude\", in a command that must mention it without reading it, such as a commit's title",
|
||||
"against ~/.claude/.env and the env-file of every config under ~/.claude-projects: a Read of one; a Grep of one, or of a folder holding one, unless a checkout ignores the file and the Grep's glob cannot match it; and a Bash command that spells one's path, or names it in a word or a redirect's target from the directory `cd` left the command in, whether or not the command reads it",
|
||||
overridable=False,
|
||||
),
|
||||
"ignorefile-sorted": Rule(
|
||||
|
||||
Reference in New Issue
Block a user