<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/tests/test_launcher_unreadable_script.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: report launcher fallback and give-up as metrics</title>
<updated>2026-10-15T22:39:39+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-12T19:27:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=5a1d326c862f33d05a9e65f30e50a71a4e71d4a5'/>
<id>5a1d326c862f33d05a9e65f30e50a71a4e71d4a5</id>
<content type='text'>
Two count-only metrics, emitted only when nonzero, so the launcher change
can be checked in the field:

- launcher_fallback: the hook ran, but only because the launcher started
  the interpreter by its real path (the names on PATH could not read the
  plugin files). Added to the hook's and the SessionStart bootstrap's
  existing metrics.
- launcher_unreadable: no interpreter could read the hook script. No
  Python runs in that case, so the launcher prints the metrics line
  itself before exiting 1.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Two count-only metrics, emitted only when nonzero, so the launcher change
can be checked in the field:

- launcher_fallback: the hook ran, but only because the launcher started
  the interpreter by its real path (the names on PATH could not read the
  plugin files). Added to the hook's and the SessionStart bootstrap's
  existing metrics.
- launcher_unreadable: no interpreter could read the hook script. No
  Python runs in that case, so the launcher prints the metrics line
  itself before exiting 1.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: never run a hook with a Python that cannot read it</title>
<updated>2026-10-15T22:39:38+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-12T18:43:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=5ac3c91066c7ec7f36e84348316742f7dd12de6a'/>
<id>5ac3c91066c7ec7f36e84348316742f7dd12de6a</id>
<content type='text'>
On Windows, python/python3/py can be packaged launcher aliases (Microsoft
Store Python, Python Install Manager). Started through the alias, the
interpreter answers `-c` but has a different view of %APPDATA% and cannot
see a plugin staged there. sg-python.sh picked it, CPython failed with
"can't open file ... [Errno 2]" and exit code 2, and exit 2 from the
asyncRewake Stop hook was delivered to the model as review findings. The
model's reply ran the Stop hook again, so the session looped without ever
reviewing anything (#6251, #5781).

The launcher's probe now also checks that the interpreter can read the
hook script. When no name on PATH qualifies, it tries the other
python3/python entries on PATH by full path and the real executable each
alias reports. If nothing can read the script it says so and exits 1, so
a launch failure is never reported as findings.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Windows, python/python3/py can be packaged launcher aliases (Microsoft
Store Python, Python Install Manager). Started through the alias, the
interpreter answers `-c` but has a different view of %APPDATA% and cannot
see a plugin staged there. sg-python.sh picked it, CPython failed with
"can't open file ... [Errno 2]" and exit code 2, and exit 2 from the
asyncRewake Stop hook was delivered to the model as review findings. The
model's reply ran the Stop hook again, so the session looped without ever
reviewing anything (#6251, #5781).

The launcher's probe now also checks that the interpreter can read the
hook script. When no name on PATH qualifies, it tries the other
python3/python entries on PATH by full path and the real executable each
alias reports. If nothing can read the script it says so and exits 1, so
a launch failure is never reported as findings.
</pre>
</div>
</content>
</entry>
</feed>
