diff options
| author | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-10-15 22:47:24 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-10-19 16:29:25 +0000 |
| commit | d2919136660832d06d5260677b256033c7dbdbda (patch) | |
| tree | 50e6ee063d4402b7117366e2f12ac6fadc435bb6 /plugins/code-modernization/scripts/render_rules.py | |
| parent | ea10b213686c90bb1984b2016937310e05336cf3 (diff) | |
security-guidance: report how long the launcher waits for interpreter probes
sg-python.sh asks each candidate interpreter for its version before running a
hook, and waits as long as that takes. Nothing recorded how long.
The launcher now times each probe with bash builtins (no extra process) and
passes the result to the hook, which reports two keys when the probes of one
launch took a second or more together:
- launcher_probe_ms: all probes of this launch
- launcher_probe_max_ms: the slowest one
The keys go last on a row, so they never displace an existing key. Measurement
only: the launcher still waits for every probe and picks the same interpreter.
Diffstat (limited to 'plugins/code-modernization/scripts/render_rules.py')
0 files changed, 0 insertions, 0 deletions
