You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Describe the Split Directory Value, Run-Time Command Word, and Substitution Body Readings in the Agent-Safety READMEs #2990
The fix for #2976 and #2977 changes the write guard's behavior in host-setup/agent-safety/claude/gh-write-guard.py only. The two READMEs that describe that behavior were outside that change's scope, so they now trail the code.
What Is Stale
host-setup/agent-safety/README.md requirement 4 lists "a directory option's value short of a brace expansion" among the words read as they stand. A -C, --git-dir, or --work-tree value is now read as it stands only where word splitting cannot split it, a literal path or a double-quoted variable. An unquoted variable there is denied on every git command, and the deny names quoting it as the fix. The paragraph also names the explicit-refspec workaround alone.
The same paragraph does not mention the two other readings the fix added. A command word holding a $ or a backtick is denied where its subcommand word past git's global options is push or commit. The body of a double-quoted $(...) or backtick substitution, and of an unquoted backtick substitution, is read as a command the way a wrapper body is read.
host-setup/agent-safety/claude/README.md, the gh-write-guard.py bullet, lists the rewritten-word forms without the unquoted directory value or the run-time command word. It says the rules are read in a wrapper shell's body without naming a substitution's body.
Possible Direction
Update both paragraphs to state the three readings, keeping each to the rule and its reason.
Activity
Fail Closed on Split Directory Values and Hidden Git Command Words in…
Describe the Write Guard's Quoted Directory, Command Word, and Substi…