You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Session Handoff [auto-1821]: Strip a Tilde or Unclosed Fence Before Reading Review Coverage (#1821) #1824
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.
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.
Activity
ptr727 commentedon Sep 25, 2026
Lane closed out by an
unattended-handoffworker at scope develop.Closes on promotion: #1821. Strip a Tilde or Unclosed Fence Before Reading Review Coverage #1821 stays open until the promotion.FENCEinscripts/pr_review.pynow accepts either fence character and closes only on a run of the opener's own character at least as long as the opener. Every formerFENCE.subcaller goes through a newstrip_fenceshelper, and only the coverage reader runs an unclosed fence to the end of the body.FENCEitself 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.