<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/tests/test_inflight_reviews.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: end a commit or push review's single-shot review at the hook's time limit</title>
<updated>2026-11-04T20:08:40+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-11-04T20:08:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=69c35c1f37db93d13dee0513587064fafc40be26'/>
<id>69c35c1f37db93d13dee0513587064fafc40be26</id>
<content type='text'>
A single-shot review that follows a fast agentic failure, or runs with the
agentic review off, had no deadline: with no answer it ran 739 s, past Claude
Code's 600 s kill, so the session heard nothing. It now ends at 570 s into the
hook with the usual notice. The limit counts from hook start, so a push
review's wait and the work before the review count. Failed push rows keep
inflight_wait_s, and CLAUDE_CODE_REMOTE is read the same way in both places.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A single-shot review that follows a fast agentic failure, or runs with the
agentic review off, had no deadline: with no answer it ran 739 s, past Claude
Code's 600 s kill, so the session heard nothing. It now ends at 570 s into the
hook with the usual notice. The limit counts from hook start, so a push
review's wait and the work before the review count. Failed push rows keep
inflight_wait_s, and CLAUDE_CODE_REMOTE is read the same way in both places.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: count a push review's wait against the hook's time limit</title>
<updated>2026-11-04T17:29:19+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-11-04T17:29:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=18750c0f8aeea95d5c53ab41bb5e427b79582e65'/>
<id>18750c0f8aeea95d5c53ab41bb5e427b79582e65</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: hold in-flight review markers on native Windows too</title>
<updated>2026-10-23T11:31:29+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-23T11:31:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=51b34378d6c2efb5897120c322438e17763854fc'/>
<id>51b34378d6c2efb5897120c322438e17763854fc</id>
<content type='text'>
A commit or push review marks the commits it is reviewing by holding a
lock on .git/sg-inflight-&lt;sha&gt;, so a push made meanwhile waits for that
review instead of reviewing the same commit again. The lock was flock
only. Native Windows Python has no fcntl, so there were no markers there
and a push right after a commit still ran a second full review.

On Windows the same shared/exclusive, never-waiting lock is now taken
with LockFileEx, on a byte far past the end of the empty marker so that
reading or copying the file is never refused. Windows will not delete an
open file, so a marker is closed before it is deleted there, with a short
retry while another review has it open; what cannot be deleted is left
unlocked and swept once old, as before.

Also: one marker that cannot be opened, or whose last holder deletes it
between this review's open and lock, no longer costs the review its
claim on the remaining commits.

The in-flight tests no longer require fcntl, so they run on Windows.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A commit or push review marks the commits it is reviewing by holding a
lock on .git/sg-inflight-&lt;sha&gt;, so a push made meanwhile waits for that
review instead of reviewing the same commit again. The lock was flock
only. Native Windows Python has no fcntl, so there were no markers there
and a push right after a commit still ran a second full review.

On Windows the same shared/exclusive, never-waiting lock is now taken
with LockFileEx, on a byte far past the end of the empty marker so that
reading or copying the file is never refused. Windows will not delete an
open file, so a marker is closed before it is deleted there, with a short
retry while another review has it open; what cannot be deleted is left
unlocked and swept once old, as before.

Also: one marker that cannot be opened, or whose last holder deletes it
between this review's open and lock, no longer costs the review its
claim on the remaining commits.

The in-flight tests no longer require fcntl, so they run on Windows.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: do not review a commit twice while its first review is running</title>
<updated>2026-10-15T22:40:32+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-13T20:52:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=7e05205b41cbd5d3c8884f7effc8688c10e2cf00'/>
<id>7e05205b41cbd5d3c8884f7effc8688c10e2cf00</id>
<content type='text'>
A commit review records its commits only once it has a verdict. A push
(or the next commit's reflog scan) that started before then reviewed the
same diff again. A running review now holds a lock file per commit in the
git dir; a push review waits for it and skips what it recorded, and the
reflog scan leaves those commits to it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A commit review records its commits only once it has a verdict. A push
(or the next commit's reflog scan) that started before then reviewed the
same diff again. A running review now holds a lock file per commit in the
git dir; a push review waits for it and skips what it recorded, and the
reflog scan leaves those commits to it.
</pre>
</div>
</content>
</entry>
</feed>
