Context
Found by the repo-wide /code-tidying:batch-simplify sweep (62 groups / 986 files, branch claude/repo-code-tidying-batch-twhddw). The sweep's doctrine files latent defects instead of fixing them mid-sweep, because the fix changes observable behavior; this issue is that filing.
plugins/guardrails/lib/verification/verify-cli-flag.sh:157,159 — grep -E "$FLAG_PATTERN" <<<"$HELP_OUTPUT" uses the here-string shape the repo's own docs record as deadlocking when the payload is 65536-65663 bytes; a tool with ~64KB of --help could hang the cli-flag-verify PostToolUse hook.
Proposed work
- Pipe via printf '%s' | grep (the repo's documented safe form) instead of the here-string.
Acceptance criteria
References
plugins/guardrails/lib/verification/verify-cli-flag.sh:157
Filed by the /code-tidying:batch-simplify closeout (Phase 8).
Context
Found by the repo-wide
/code-tidying:batch-simplifysweep (62 groups / 986 files, branchclaude/repo-code-tidying-batch-twhddw). The sweep's doctrine files latent defects instead of fixing them mid-sweep, because the fix changes observable behavior; this issue is that filing.plugins/guardrails/lib/verification/verify-cli-flag.sh:157,159—grep -E "$FLAG_PATTERN" <<<"$HELP_OUTPUT"uses the here-string shape the repo's own docs record as deadlocking when the payload is 65536-65663 bytes; a tool with ~64KB of --help could hang the cli-flag-verify PostToolUse hook.Proposed work
Acceptance criteria
References
plugins/guardrails/lib/verification/verify-cli-flag.sh:157Filed by the /code-tidying:batch-simplify closeout (Phase 8).