Skip to content

[finding] packages/cli/scripts/check-app-nav-i18n.mjs prerequisite banner says echo "EXIT=$?" but never says BEFORE any pipe, and names no shape #13825

Description

@claude

Found while fixing #13429 (PR on claude/issue-13429-pipe-shape-advisory-siblings). Out of scope there: #13429's census and its triage anchoring both cover scripts/**, and this file is in packages/cli/scripts/, whose gate family is a different verification surface.

The site

packages/cli/scripts/check-app-nav-i18n.mjs:620:

      `  (Exit code 1 — but piping this gate reports the PIPE's status. Use \`echo "EXIT=$?"\`.)`,

It is the only remaining copy in the repo of the pre-#13429 advisory family. git grep -n "the PIPE's status" -- 'scripts/**' 'packages/**' returns exactly this one line after that PR.

Why it is worth a line, and why it is milder than #13429's sites

Milder: unlike the six banners #13429 corrected, this one does NOT misname | tail as the dangerous shape, so it cannot steer a reader off the safe pipe. Everything it asserts is true.

Still wrong-shaped: it prescribes echo "EXIT=$?" without saying WHERE. A reader who does the natural thing — pnpm ... | tail -4; echo "EXIT=$?" — gets the pipe's status, which is the exact trap the prescription exists to prevent. scripts/check-test-completeness.mjs already carried that half correctly before #13429 ("Capture ... BEFORE any pipe"), so the corrected phrasing predates this card and simply never reached this file.

Suggested shape

Adopt the paragraph #13429 converged the other nine sites on, adapted to this gate's command. After that PR the census instrument is git grep -n "no pipe shape repairs it", which finds every copy; this file is the one that will not answer it.

Not graded. No gate verdict is computed from this text; it only misleads a human or agent reading refusal output.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions