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
Write Guard Denies Heredoc Data Inside an Unquoted Backtick Substitution #3000
A heredoc fed to cat with a quoted delimiter, inside an unquoted backtick substitution, is data to bash. The bypass-flag, include, and branch-rule checks still read its body and deny it, for example a body that only prints a push with the no-verify flag. The same body inside a double-quoted backtick substitution is allowed, and the rewritten-word and directory checks already treat the unquoted case as data.
Possible Direction
Make the unquoted backtick reading skip heredoc data in the same checks. Found in review of the README update for #2990.
Closed as out of the write guard's scope under the maintainer's decision (ptr727, 2026-10-23) on #3391, item 1. The guard bounds a good-faith agent's mistake rather than an adversary, so a parse gap reached only by a command shape no agent plausibly types in a coding session is closed rather than fixed, and the guard's own growth is a cost each later review pays again. The scope statement lands in the guard's docstring and README under #3391. Reopen only with a command a session actually produced.
Activity
Describe the Write Guard's Quoted Directory, Command Word, and Substi…
ptr727 commentedon Oct 23, 2026
Closed as out of the write guard's scope under the maintainer's decision (ptr727, 2026-10-23) on #3391, item 1. The guard bounds a good-faith agent's mistake rather than an adversary, so a parse gap reached only by a command shape no agent plausibly types in a coding session is closed rather than fixed, and the guard's own growth is a cost each later review pays again. The scope statement lands in the guard's docstring and README under #3391. Reopen only with a command a session actually produced.