fix: allow zero-padded ordered lists starting at 1 to interrupt paragraphs #4291
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 244 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.329
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4291"
general
weight: 0.35
UziTech
Marked version: 18.2.0 - 18.3.0
Markdown flavor: CommonMark|GitHub Flavored Markdown
Description
other.listInterruptsParagraph,blockNormal.paragraph,blockGfm.paragraph, andgfmTablematched literal1[.)]instead of any 1–9 digit ordered-list marker with start number1(0{0,8}1[.)]). As a result, zero-padded ordered lists like01. bfailed to interrupt paragraphs (including nested lists inside a list item since 18.2.0) and GFM tables.This updates the paragraph/table list-interruption pattern from
1[.)]to0{0,8}1[.)](keeping00.,02., 10-digit0000000001., and empty01.non-interrupting per CommonMark §5.2/§5.3) and reusesother.listInterruptsParagraphinparagraphandblockGfm.paragraph. Verified all 4 modified regexes remainsafewithtest/recheck.ts.Demo links (
- a\n 01. b\n 02. c,{"gfm":true}):Contributor
test/specs/new/zero_padded_ordered_list_interrupt.{md,html}andtest/specs/new/zero_padded_ordered_list_interrupt_nogfm.{md,html}); or,Committer
In most cases, this should be a different person than the contributor.