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
Skip Quoted Heredoc Data When Reading a Run-Time Git Subcommand in the Write Guard #3380
Found while working the export, xargs, env, and launcher allow-gap lane, when an edit script fed to cat through a quoted heredoc was denied. Develop's guard shares it, and it was confirmed with a classify probe on a constructed command.
A Quoted Heredoc's Data Is Read for a Run-Time Git Subcommand
A heredoc whose delimiter is quoted is data, yet a backtick span in it holding an assignment and then git is read as a git command with a run-time subcommand word:
cat > /example/notes.md <<'EOF'as in `NAME=value git ...`EOF
This is denied with "a run-time word, ...`, where the subcommand of git goes". The same text without the NAME=value word is allowed, so the assignment is what puts git in command position for the reader.
Possible Direction
Skip quoted-delimiter heredoc data in the reader that names a run-time subcommand word, as the other heredoc-aware readers do.
This is an over-denial, so the allow-gap lane that found it did not narrow it, per that lane's rule.
Closed as resolved by the write guard rewrite (#3407, on main through promotion #3417). The command shape this issue records is one of the source-tagged cases in the rewritten guard's self-test corpus, so the shape is read the way the issue asks, and the corpus case is what keeps it so. Reopen with the command if a session still hits it.
Activity
Close Export, Xargs, Env, and Launcher Allow Gaps in the Write Guard (#…
Rewrite the Write Guard as a Small Lexer With Plain-Shape Rules (#3407)
ptr727 commentedon Oct 24, 2026
Closed as resolved by the write guard rewrite (#3407, on main through promotion #3417). The command shape this issue records is one of the source-tagged cases in the rewritten guard's self-test corpus, so the shape is read the way the issue asks, and the corpus case is what keeps it so. Reopen with the command if a session still hits it.