Skip to content

Session Handoff [auto-1664]: #1664 Comment Parser Reads Heredoc and Block-Comment Continuation Lines as Comments #3663

Closed

Description

@ptr727

Next steps, in priority order

  1. Fix the two The comment parser reads string and heredoc content as comments where a syntax carries no string state #1664 shapes the current prose gate still misreads as comments, in .github/actions/prose-gate/prose_lint.py, with a test per shape in tests/test_prose_lint.py. Done means each constructed input below reports no comment-added finding, while a real comment line beside it still does:
    • A workflow - run: | block whose shell opens a heredoc (cat > f <<EOF), with a body line opening # ... before EOF. The heredoc body is data the file writes, not a shell comment.
    • A line that only closes a block comment and then carries code, such as a .css file holding const x = 1; /* A comment here. then The rest of it. */ const y = 2;. Deleting that second line removes code and leaves the comment unterminated.
  2. Drive the pull request into develop per drive-pr, its body carrying Closes on promotion: #1664, with local-strict-review before every push.

External blockers

None known. The fix stays inside this repository's tree.

Internal dependencies

Step 2 follows step 1.

State

The parked decision queue

None for this lane.

What the last round did

The picker created this handoff from the open backlog. Nothing else has worked #1664.

What not to repeat

New learnings

None yet.

Activity

  1. added
    handoff
    on Oct 30, 2026
  2. ptr727 commented on Oct 30, 2026

    @ptr727
    OwnerAuthor

    Parked: waiting on decision #3666

    What is done

    • Branch feature/auto-1664, pushed at 5c2f809b, with pull request Keep a Line Holding Code After a Block Comment's Closer Out of comment-added #3665 open into develop and its body current.
    • Each head pushed so far is covered by a recorded and attested local-strict-review pass.
    • The worktree /home/pieter/repos/worktrees/hub-auto-1664 is left standing and clean.
    • Block-comment half (done, no decision needed): a line holding code after a block comment's closer is no longer reported by comment-added. It is marked by the new Line.trailed flag and tested across seven languages.
    • Heredoc half (built, not converged): a run: heredoc body is read as data only where every pipeline stage runs a program in heredoc_data, no construct is left open, and none of the other conservative checks fires. Anything else stays code, as develop reads it.
      • Eight local passes each found new constructed shapes where head reads as data a body that develop reads, and bash runs, as code.
      • Four of those are still open at 5c2f809b, listed in the PR body.
    • Filed along the way: Prose Gate Reads a Data Heredoc After a Shift by a Name as Code #3664 (pre-existing, a shift by a name before a data heredoc).
    • Verified: the full suite passes (3135 run, 7 skipped), every gate is clean, and a survey of local fleet checkouts finds only removals (one vendored CSS file, and one workflow heredoc written with cat >).

    What remains, by the answer on #3666

    1. Narrow (recommended there): revert the heredoc commits on the branch, and keep Line.trailed with its tests and docs. Those are code_follows, trailed, the comment-added docstring, the README sentence, and the skill's first new sentence. Rewrite the PR body to close only the block-comment shape and record the heredoc shape as accepted. Re-run the local pass, push, attest, and drive to develop.
    2. Ship: fix the four open shapes in the PR body under a new edit budget, then drive.
    3. Redesign: replace runs_body, command_word, compound, left_open and shell_bare with a real bash parser added to the gate's PEP 723 block and tests/requirements.txt.

    Review threads. Two Copilot threads on efa7b9e3 are still unanswered. One asks for uv, pypy3, fish, csh and tcsh. The other asks that quoted expansions be kept when the opener is masked. Both are fixed at head, since 2629df91 reads an unknown command or an expansion as code. Each needs a reply naming that SHA and a resolve, or under option 1, a reply saying the heredoc reading was withdrawn.

    Waiting on: decision #3666.

  3. added
    blocked
    on Oct 30, 2026
  4. ptr727 commented on Oct 30, 2026

    @ptr727
    OwnerAuthor

    Outcome

    Track auto-1664 is complete. #1664 closes on the next develop -> main promotion.

    Not to repeat

    • Telling a data heredoc from a body something runs, by hand-parsing shell inside the prose gate, did not converge across eight review passes. Each pass found new constructed shapes that read as data where bash runs them. Reopen the question only as a redesign on a real shell parser, the third option on Decide How the Prose Gate's Heredoc Half of #1664 Proceeds #3666, rather than as another heuristic round.

    Left for others

  5. removed
    blocked
    on Oct 30, 2026
  6. ptr727 commented on Oct 30, 2026

    @ptr727
    OwnerAuthor

    Parked decision queue at close: 0 open decision issues in this repository. #3666 was answered (narrow) and closed this session.

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

    handoff

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions