Record in bench.py why the clone's settings need no deny

This commit is contained in:
2026-10-16 20:32:42 +02:00
parent 3110e03226
commit 4625b805eb
+2 -1
View File
@@ -48,7 +48,8 @@ def permission_flags(clone, version_dir, report):
# before reading either file. An edit to .git/ could add a hook, which runs any command.
outside = (" /", "=/", " ~", "=~", "../", " ..", "$", "O/", "X/")
denied = [f"Edit(/{clone}/.git/**)", *(f"Bash(git *{shape}*)" for shape in outside)]
# Only the clone's own settings: the user's add every checkout under ~/code to the readable trees.
# Only the clone's own settings: the user's add every checkout under ~/code to the readable trees. A run
# cannot widen the clone's settings either: Claude Code refuses its edit to them, as a probe showed.
return ["--setting-sources", "project,local", "--permission-mode", "dontAsk", "--permission-prompts", "none",
"--allowedTools", *allowed, "--disallowedTools", *denied]