<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/tests/test_sdk_bootstrap_switches.py, branch bump/cloud-sql-postgresql</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: do not install the agent SDK for reviews that are off</title>
<updated>2026-10-19T16:29:44+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-14T16:56:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=49484affa8f5730ec9bcfd6e25c393bc021cdd34'/>
<id>49484affa8f5730ec9bcfd6e25c393bc021cdd34</id>
<content type='text'>
The SessionStart bootstrap and its PostToolUse rescue built a venv of a few
hundred MB for the agent SDK whatever the environment said, including under
SECURITY_GUIDANCE_DISABLE=1, and the rescue started the bootstrap again
every five minutes on machines whose SDK lives in that venv (#5331).

- Nothing is installed when the environment turns off every review that
  loads the SDK: the kill switch, ENABLE_CODE_SECURITY_REVIEW=0, or
  ENABLE_STOP_REVIEW=0 with ENABLE_COMMIT_REVIEW=0. Reported as
  sdk_bootstrap 10. A disabled plugin also no longer shows the
  "reviewer unavailable" notice on a Python below 3.10.
- The rescue leaves a finished install under the state dir alone instead
  of starting the bootstrap for it every five minutes.
- New counts on the bootstrap's metrics row, set only when true and only
  when the install exists: sdk_no_creds and sdk_no_git (the session cannot
  run the reviews the install serves), sdk_venv_py (the venv was built by
  another Python version than the one running the hooks, #5706). They
  size follow-up changes; no behaviour depends on them.

With the reviews on, what is built and when is unchanged.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The SessionStart bootstrap and its PostToolUse rescue built a venv of a few
hundred MB for the agent SDK whatever the environment said, including under
SECURITY_GUIDANCE_DISABLE=1, and the rescue started the bootstrap again
every five minutes on machines whose SDK lives in that venv (#5331).

- Nothing is installed when the environment turns off every review that
  loads the SDK: the kill switch, ENABLE_CODE_SECURITY_REVIEW=0, or
  ENABLE_STOP_REVIEW=0 with ENABLE_COMMIT_REVIEW=0. Reported as
  sdk_bootstrap 10. A disabled plugin also no longer shows the
  "reviewer unavailable" notice on a Python below 3.10.
- The rescue leaves a finished install under the state dir alone instead
  of starting the bootstrap for it every five minutes.
- New counts on the bootstrap's metrics row, set only when true and only
  when the install exists: sdk_no_creds and sdk_no_git (the session cannot
  run the reviews the install serves), sdk_venv_py (the venv was built by
  another Python version than the one running the hooks, #5706). They
  size follow-up changes; no behaviour depends on them.

With the reviews on, what is built and when is unchanged.
</pre>
</div>
</content>
</entry>
</feed>
