<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/tests/test_sdk_emptied_install.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: rebuild an agent SDK install whose package directory was emptied</title>
<updated>2026-10-19T16:29:44+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-15T16:29:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=ed055202f5eed104410a42b34a49a8de8eb40ca8'/>
<id>ed055202f5eed104410a42b34a49a8de8eb40ca8</id>
<content type='text'>
The bootstrap called a venv healthy when `import claude_agent_sdk`
succeeded. Python imports an empty directory as a namespace package, so an
install that had lost its files passed, the reviewer's
`from claude_agent_sdk import ...` failed on every commit, and the agentic
review fell back until the venv was deleted by hand.

The probe now also requires the package to have a __file__, for the venv
and for the --target fallback. A venv that fails it takes the rebuild path
that was already there. sdk_venv_emptied counts the sessions that found
the venv in that state.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The bootstrap called a venv healthy when `import claude_agent_sdk`
succeeded. Python imports an empty directory as a namespace package, so an
install that had lost its files passed, the reviewer's
`from claude_agent_sdk import ...` failed on every commit, and the agentic
review fell back until the venv was deleted by hand.

The probe now also requires the package to have a __file__, for the venv
and for the --target fallback. A venv that fails it takes the rebuild path
that was already there. sdk_venv_emptied counts the sessions that found
the venv in that state.
</pre>
</div>
</content>
</entry>
</feed>
