Skip to content

Session Handoff [auto-1821]: Strip a Tilde or Unclosed Fence Before Reading Review Coverage (#1821) #1824

Closed

Description

@ptr727

Next steps, in priority order

  1. Fix Strip a Tilde or Unclosed Fence Before Reading Review Coverage #1821: make FENCE in scripts/pr_review.py strip a tilde fence and an unclosed fence. Today it strips only a closed backtick fence, so a coverage marker quoted inside a ~~~ fence, or after a backtick fence that never closes, is still read as this round's stated coverage, which fails open. Done looks like: FENCE accepts either fence character, closes only on the same character with a run at least as long as the opener, and runs an unclosed fence to the end of the body; both probes in the issue read no coverage; a closed backtick fence and a marker outside any fence behave as before; a regression test in scripts/tests covers each case (proved by reverting the fix and watching it fail); and a feature -> develop pull request carrying Closes on promotion: #1821 is merged.

External blockers

None known at pick time.

Internal dependencies

None. #1820, which bounded the marker's indentation (#1725), is already merged to develop, and this issue was split out of its local review pass.

State

  • Picked by an unattended-handoff picker at scope develop. No branch, worktree, or pull request exists yet.
  • At pick time FENCE on develop still matches only a closed backtick fence. It has several callers across the digest readers, so every one of them changes behavior with it. Re-derive the pattern and its callers before editing.

The parked decision queue

None.

What the last round did

Nothing yet. This lane was opened by the picker.

What not to repeat

Nothing yet.

New learnings

None.

Activity

  1. added
    handoff
    on Sep 25, 2026
  2. ptr727 commented on Sep 25, 2026

    @ptr727
    OwnerAuthor

    Lane closed out by an unattended-handoff worker at scope develop.

    • Merged: Strip a Tilde or Unclosed Fence Before Reading Review Coverage #1825 into develop as 0098467, carrying Closes on promotion: #1821. Strip a Tilde or Unclosed Fence Before Reading Review Coverage #1821 stays open until the promotion.
    • What changed: FENCE in scripts/pr_review.py now accepts either fence character and closes only on a run of the opener's own character at least as long as the opener. Every former FENCE.sub caller goes through a new strip_fences helper, and only the coverage reader runs an unclosed fence to the end of the body.
    • Deviation from this handoff's "done": the handoff said FENCE itself should run an unclosed fence to the end. A local review pass showed that doing so for every reader hid a suppressed-findings section after a stray fence, which reads as clean. So the run-to-end rule is scoped to the coverage reader, where masking reads as no coverage and so blocks. Both probes in Strip a Tilde or Unclosed Fence Before Reading Review Coverage #1821 read no coverage.
    • Review: one Copilot finding fixed (docstring wording). Two declined with evidence: a line like "```text`" does not open a fence under CommonMark or cmark-gfm.
    • Filed along the way: nothing. No lesson issue.
    • Worktree, local branch, and remote branch removed.
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