Skip to content

Backlog capture: the tracker's line-anchored regexps miss CRLF bodies #296

Closed

Description

@davison

Backlog capture (deliberately unlabeled). Operator, 2026-09-07, from the reviewer seat's round-two finding on PR #294.

The observation. Several record-reading regexps in internal/tracker end in $ under (?m), which in Go matches only before \n. A CRLF body — what GitHub's web editor produces when a human edits an issue or PR body — therefore defeats them: measured on #294's head, an LF task body yields the adoption [o/hub#193] and the same body with CRLF yields [], so task finish would silently close nothing. paragraphBreak has the identical blind spot, so the gate, Decision and verdict scans share it. Every body written by gh today is LF (0 of the last 100 here carry \r), but 4–11% of bodies in cli/cli, golang/go and microsoft/vscode do.

Shape proposed. Normalise \r\n → \n once at the package boundary (every Comment.Body and issue body read by the tracker), with a table test per scanner on a CRLF fixture; no regexp changes. Fails closed today, so any minor.

Source: reviewer round two on #294 (review 5126079592).

Activity

  1. davison commented on Sep 6, 2026

    @davison
    ContributorAuthor

    Adopted by #309 — this issue is delivered as that task, and gh codecrew task finish closes it when the task's pull request merges (SPEC §4). The PR needs no Closes line for it.

  2. radiusred-cody commented on Sep 7, 2026

    @radiusred-cody
    Contributor

    Closed by gh codecrew task finish 309: adopted by #309 and delivered by #314, merged as 7610047.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions