<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/tests/test_repeated_diff_count.py, branch bump/cloud-sql-sqlserver</title>
<subtitle>Official Claude Code plugin directory
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/'/>
<entry>
<title>security-guidance: count reviews of a diff that was already reviewed</title>
<updated>2026-10-20T22:59:48+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-20T22:59:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=437cb57a9d19329a8e6ef3ed79e19adb45e83d50'/>
<id>437cb57a9d19329a8e6ef3ed79e19adb45e83d50</id>
<content type='text'>
A change that comes back under a new commit (undo and re-commit, rebase
before the first push) is unknown to the reviewed-shas record, so the
commit or push review runs on it again. Nothing says how often.

Each commit and push review now notes a hash of every hunk it is sent in
.git/sg-reviewed-diffs, once when it starts and once when it has a
verdict, and reports one new metric, diff_seen:

  0  some hunk was never reviewed in this clone
  1  all were seen, but a review of one has no verdict (yet)
  2  all had a finished review, on different repo contents
  3  all had a finished review, on the same tree
 -1  the record could not be read or written

Count only: no review is skipped, delayed or changed. The record is
bounded (1 MB, 7 days), is not written in portable output mode, and its
lock is never waited on for more than half a second.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A change that comes back under a new commit (undo and re-commit, rebase
before the first push) is unknown to the reviewed-shas record, so the
commit or push review runs on it again. Nothing says how often.

Each commit and push review now notes a hash of every hunk it is sent in
.git/sg-reviewed-diffs, once when it starts and once when it has a
verdict, and reports one new metric, diff_seen:

  0  some hunk was never reviewed in this clone
  1  all were seen, but a review of one has no verdict (yet)
  2  all had a finished review, on different repo contents
  3  all had a finished review, on the same tree
 -1  the record could not be read or written

Count only: no review is skipped, delayed or changed. The record is
bounded (1 MB, 7 days), is not written in portable output mode, and its
lock is never waited on for more than half a second.
</pre>
</div>
</content>
</entry>
</feed>
