<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/tests/test_baseline_lookup.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: find the earlier version of a file reached through a symlinked folder</title>
<updated>2026-10-20T23:24:19+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-20T23:24:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=218862e1b0814b66361e9d215c409a10df2304ae'/>
<id>218862e1b0814b66361e9d215c409a10df2304ae</id>
<content type='text'>
When the tool's path and the session directory name the same repo through
different symlinks (/tmp and /var on macOS), the relative path between the two
spellings left the repo and the lookup found nothing, so a rewrite re-reported
code that was already in the file. The lookup now tries again with both paths
resolved. The first attempt is unchanged.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the tool's path and the session directory name the same repo through
different symlinks (/tmp and /var on macOS), the relative path between the two
spellings left the repo and the lookup found nothing, so a rewrite re-reported
code that was already in the file. The lookup now tries again with both paths
resolved. The first attempt is unchanged.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: write the baseline lookup test files as bytes</title>
<updated>2026-10-20T23:09:45+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-20T23:09:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=f3d27ec9912bf26abfdb1b2bb0aba020d36a5491'/>
<id>f3d27ec9912bf26abfdb1b2bb0aba020d36a5491</id>
<content type='text'>
The fixture wrote its files with write_text, which stores "\n" as "\r\n" on
Windows, so the committed text no longer equalled the string the tests compare
against. The files are now written as bytes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The fixture wrote its files with write_text, which stores "\n" as "\r\n" on
Windows, so the committed text no longer equalled the string the tests compare
against. The files are now written as bytes.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: find a rewritten file's earlier version from a repo subdirectory</title>
<updated>2026-10-19T16:29:25+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-14T16:31:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=f5ce0a810148d3d86cd7ac99b007289fd8e3fb15'/>
<id>f5ce0a810148d3d86cd7ac99b007289fd8e3fb15</id>
<content type='text'>
A full-file Write is checked against the file as it was at the start of the turn, so risky calls that were already there are not reported as new. The lookup passed git a path relative to the session directory, which git reads from the repo root, so it failed for any session started below the root, and on Windows for any path with a separator. Ask for ./&lt;path&gt; with forward slashes.

Fixes #5684
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A full-file Write is checked against the file as it was at the start of the turn, so risky calls that were already there are not reported as new. The lookup passed git a path relative to the session directory, which git reads from the repo root, so it failed for any session started below the root, and on Windows for any path with a separator. Ask for ./&lt;path&gt; with forward slashes.

Fixes #5684
</pre>
</div>
</content>
</entry>
</feed>
