summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/scripts/baseline_diff.py
diff options
context:
space:
mode:
authorMohamed Hegazy <mhegazy@anthropic.com>2026-10-15 16:29:47 +0000
committerClaude <noreply@anthropic.com>2026-10-19 16:29:44 +0000
commited055202f5eed104410a42b34a49a8de8eb40ca8 (patch)
tree61e85e1560016a01a0a8082d2f3de218ea0bfe51 /plugins/code-modernization/scripts/baseline_diff.py
parent49484affa8f5730ec9bcfd6e25c393bc021cdd34 (diff)
security-guidance: rebuild an agent SDK install whose package directory was emptied
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.
Diffstat (limited to 'plugins/code-modernization/scripts/baseline_diff.py')
0 files changed, 0 insertions, 0 deletions