Skip to content

source-control: block-hook-bypass.sh round-3 non-converging findings on PR #568 — comment-# quote-carry regression (highest priority), leading-redirect, coproc header #596

Description

@kyle-sexton

Lane: babysit. Triggering PR: #568 (fix/546-block-hook-bypass-false-positive), head 3f7f28a.

Worker fixed 2 rounds of genuine branch-owned regressions (command-prefix peel; fd-dup redirect + control-header peel) but hit the fix-round cap (3, per babysit lane rule 6b) on round 3 without convergence — codex kept re-reviewing every push and surfacing new findings. Per decide-and-defer (#375): shipped what's strictly better (2 fixed rounds, pushed), deferred round 3, filing this tracked follow-up instead of continuing to churn.

Open round-3 P1 findings (still on the live PR, threads left OPEN):

  1. [HIGHEST PRIORITY] Comment-# quote-carry regression — a # inside a quoted string can still be mis-treated as a comment start by the detector, changing what's classified as the command word.
  2. Leading-redirect form: >f echo x (redirect token appears before the producer word).
  3. coproc header not peeled the same way if/elif/while/until/! headers are.

Category: bug. Root question for the next fix round: is a regex-based command-word peel fundamentally unable to keep up with shell grammar edge cases (needs real shell tokenization), or is this a finite enumerable list that a few more peel rules close out? Recommend deciding that before round 4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highSignificant impact, or blocks an imminent release; staff this cycle.wayfind: designWayfind decision item: design-space or domain-model decision; human in the loop.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions