<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: yulongwu-x</title>
    <description>The latest articles on DEV Community by yulongwu-x (@yulongwux).</description>
    <link>https://dev.to/yulongwux</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4258806%2F6c72f4b6-e24c-4674-937a-d9f9fcdbed3d.png</url>
      <title>DEV Community: yulongwu-x</title>
      <link>https://dev.to/yulongwux</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yulongwux"/>
    <language>en</language>
    <item>
      <title>BriefCheck catches bad diff citations in AI-generated PR reviews</title>
      <dc:creator>yulongwu-x</dc:creator>
      <pubDate>Sun, 22 Nov 2026 13:36:23 +0000</pubDate>
      <link>https://dev.to/yulongwux/briefcheck-catches-bad-diff-citations-in-ai-generated-pr-reviews-m9</link>
      <guid>https://dev.to/yulongwux/briefcheck-catches-bad-diff-citations-in-ai-generated-pr-reviews-m9</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdcfmvnvgn0538eip9ijw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdcfmvnvgn0538eip9ijw.png" alt=" " width="800" height="493"&gt;&lt;/a&gt;A PR review can identify the right requirement and still cite a deleted line or a line the diff never shows. &lt;strong&gt;BriefCheck&lt;/strong&gt; checks a review table deterministically against the actual unified diff — verifying both &lt;code&gt;base&lt;/code&gt; (old-side) and &lt;code&gt;new&lt;/code&gt;-side hunk line numbers, table syntax, and commit-matched test logs.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/yulongwu-x" rel="noopener noreferrer"&gt;
        yulongwu-x
      &lt;/a&gt; / &lt;a href="https://github.com/yulongwu-x/BriefCheck" rel="noopener noreferrer"&gt;
        BriefCheck
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Evidence-backed PR review against issue acceptance criteria — Agent Skill + zero-dependency CLI &amp;amp; GitHub Action with deterministic diff citation verification.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;BriefCheck&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://github.com/yulongwu-x/BriefCheck/actions/workflows/ci.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/yulongwu-x/BriefCheck/actions/workflows/ci.yml/badge.svg" alt="CI"&gt;&lt;/a&gt;
&lt;a href="https://github.com/yulongwu-x/BriefCheck/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/f0cb8ba13592d31161791daf5df230b9e7c063b00e304ac5a2f0661e7e2c8a57/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667" alt="License: MIT"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;English | &lt;a href="https://github.com/yulongwu-x/BriefCheck/README.zh-CN.md" rel="noopener noreferrer"&gt;简体中文&lt;/a&gt; · &lt;a href="https://github.com/yulongwu-x/BriefCheck/releases/tag/v0.3.1" rel="noopener noreferrer"&gt;v0.3.1 release&lt;/a&gt; · &lt;a href="https://github.com/yulongwu-x/BriefCheck#use-the-github-action" rel="noopener noreferrer"&gt;GitHub Action setup&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;BriefCheck reviews pull requests against GitHub issue acceptance criteria. The &lt;strong&gt;Agent Skill&lt;/strong&gt; drafts review tables, the &lt;strong&gt;zero-dependency Python CLI&lt;/strong&gt; verifies diff citations deterministically, and the &lt;strong&gt;GitHub Action&lt;/strong&gt; generates, verifies, and posts the review on the PR.&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/yulongwu-x/BriefCheck/docs/briefcheck-demo.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyulongwu-x%2FBriefCheck%2FHEAD%2Fdocs%2Fbriefcheck-demo.png" alt="BriefCheck deterministic citation verification demo"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Catch bad citations before posting&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;With Python 3.10+ you can run the bundled demo without a PR or API key.&lt;/p&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;python -m pip install https://github.com/yulongwu-x/BriefCheck/releases/download/v0.3.1/briefcheck-0.3.1-py3-none-any.whl
python -m briefcheck demo&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;This review cites &lt;code&gt;auth.py:3&lt;/code&gt; as a new line even though the diff deleted it. It also cites &lt;code&gt;auth.py:99&lt;/code&gt;, which is outside the visible diff. &lt;code&gt;briefcheck verify&lt;/code&gt; reports both errors.&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;
&lt;pre class="notranslate"&gt;&lt;code&gt;BriefCheck Verify: FAIL
…
Errors (2)
  - [deleted_line_cited_as_new] (row 1, line 3, auth.py:3) Line(s) 3 of `auth.py` were deleted and exist only on the base (old) side; label the citation as `base` or cite visible new-side lines.
  - [line_out_of_hunk] (row 1, line 3, auth.py:99)&lt;/code&gt;&lt;/pre&gt;…&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/yulongwu-x/BriefCheck" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;You can run the bundled offline demo locally with Python 3.10+ (zero third-party dependencies, no PR or API key needed):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python -m pip install https://github.com/yulongwu-x/BriefCheck/releases/download/v0.3.1/briefcheck-0.3.1-py3-none-any.whl
python -m briefcheck demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The demo feeds a report that cites a deleted line (&lt;code&gt;auth.py:3&lt;/code&gt;) as new-side evidence and points to an out-of-hunk line (&lt;code&gt;auth.py:99&lt;/code&gt;). The first pass catches both (&lt;code&gt;deleted_line_cited_as_new&lt;/code&gt; and &lt;code&gt;line_out_of_hunk&lt;/code&gt;). After marking &lt;code&gt;auth.py:3&lt;/code&gt; as &lt;code&gt;(base)&lt;/code&gt; and fixing &lt;code&gt;auth.py:99&lt;/code&gt; to &lt;code&gt;auth.py:2&lt;/code&gt;, verification passes while keeping the requirement marked &lt;code&gt;Contradicted&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/yulongwu-x/BriefCheck/blob/main/examples/pandas-18676.md" rel="noopener noreferrer"&gt;pandas #18676 walkthrough&lt;/a&gt; highlights a different edge case: the issue asks for a blank first CSV line, while the PR's added test asserts a quoted empty string (&lt;code&gt;""&lt;/code&gt;). BriefCheck points to the test assertion while honestly keeping the requested runtime behavior marked &lt;strong&gt;Insufficient evidence&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;BriefCheck v0.3.1 ships as a portable Agent Skill (&lt;code&gt;.agents/skills/briefcheck/SKILL.md&lt;/code&gt; for Codex / Claude Code), a zero-dependency Python CLI, and a Composite Action now available on the GitHub Actions Marketplace.&lt;/p&gt;

&lt;p&gt;If you try it on a real PR and hit a diff or citation edge case, feel free to &lt;a href="https://github.com/yulongwu-x/BriefCheck/issues/new/choose" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt; with the verifier output and a minimal diff!&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>opensource</category>
      <category>python</category>
      <category>github</category>
    </item>
  </channel>
</rss>
