Skip to content

Bare shell placeholders still break a paste in three blocks outside #1649 #1652

Closed

Description

@ptr727

A placeholder written as a bare <name> inside a shell block is an input redirection, so pasting the line dies before the command runs. #1649 fixed this class in canonical_review.py's printed record line and in both runnable blocks of the local-strict-review Skill, and left the instances below, each outside that pull request's diff.

Repro

bash -c "echo record --findings <count>"
# bash: count: No such file or directory

With a file of that name present it is worse than a failure: bash removes the token, so --findings swallows the next argument and the command runs with the wrong value.

Sites

  • GOVERNANCE.md, the pinned-prose-gate reproduction recipe, which holds show <hub-sha>:... and --diff <base> -- . unquoted. This one carries at intent fidelity into every fleet repository, so it is the widest-reaching of the three.
  • scripts/local_review.py's module Usage: block, which keeps --reviewer <id>, --expect-digest <digest> and [--target <branch>] unquoted. Its sibling engine's block now quotes the same placeholders, so the two engines disagree about the convention.
  • .agents/skills/local-strict-review/SKILL.md's diff-pass block, where [--findings N] is optional-argument notation rather than a placeholder. It parses, and pasted whole it hands argparse two literal words and errors with "unrecognized arguments", while the block two sections down writes the same flag as --findings '<count>'.

Why a bare placeholder is worth quoting rather than annotating

Quoting costs two characters and changes no command's meaning: --findings '3' reaches type=int as 3, and a quoted branch name or digest is byte-identical after word splitting. A reader who substitutes and leaves the quotes in place gets the right result, and one who pastes to see the shape gets a usage error from the tool rather than a shell error naming a file they never mentioned.

Precedent

#1616 settled the same shape for AUDIT.md's owner and repository placeholders. #1649's own fix is the second instance. This issue is the remainder.

Activity

  1. added
    gate
    prose
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gateprose

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions