diff options
| author | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-10-14 16:56:05 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-10-19 16:29:44 +0000 |
| commit | 49484affa8f5730ec9bcfd6e25c393bc021cdd34 (patch) | |
| tree | d3a6dbed3a15f8ea358d560cab870afef007951e /plugins/plugin-dev/agents | |
| parent | ea10b213686c90bb1984b2016937310e05336cf3 (diff) | |
security-guidance: do not install the agent SDK for reviews that are off
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.
Diffstat (limited to 'plugins/plugin-dev/agents')
0 files changed, 0 insertions, 0 deletions
