You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Probe Each Interpreter install.ps1 Tries Rather Than Taking the First One Found #4031
Raised by the local strict review of the #1172 fix, on code that change did not touch.
host-setup/agent-safety/claude/install.ps1 picks its interpreter the way install.py did before #1172. Its python3 branch is taken because Get-Command finds the name, not because it runs. Its python branch probes with 2>$null and reads only the exit status against the major version 3, not the 3.11 floor.
Failing case. Take a Windows host with no py launcher, a working Python 3.12 python.exe on PATH, and the default WindowsApps python3 app execution alias. The wrapper hands install.py to the alias, which prints the Store message and exits 9009. Nothing installs, though a working python sits on PATH.
Fix shape. Do what install.sh now does under #1172. Run each candidate (py -3, python3, python) with a probe that prints a value only Python 3.11 or newer prints, compare the output, leave the probe's stderr visible, and fall through to the next candidate on a mismatch.
install.py itself now probes the launcher it writes into settings.json, so this affects which interpreter runs the installer, not which one the hooks are registered under.
Backlog burndown question, 2026-11-19. The fix edits host-setup/agent-safety/claude/install.ps1, which is under host-setup/agent-safety/, so it needs the maintainer's approval before an attended run implements it. Do you approve the fix shape the issue states?
Options
Approve (recommended). Probe each candidate (py -3, python3, python) by running it with a probe only Python 3.11 or newer passes, leave the probe's stderr visible, and fall through on a mismatch, as install.sh does since Validate the Interpreter the Agent-Safety Installer Writes Into settings.json #1172. A Linux host writes it, and the Windows CI job verifies it with a test that drives install.ps1 against stub candidates (one exiting 9009, one working). The merge waits on the maintainer's diff read.
Decline. A Windows host whose python3 is the Store alias keeps failing to install the kit although a working python is on PATH.
Maintainer's answer, 2026-11-19 (backlog burndown): approved. Probe each candidate (py -3, python3, python) for Python 3.11 or newer, leave the probe's stderr visible, and fall through on a mismatch, as install.sh does since #1172. Verify through the Windows CI job with a test driving install.ps1 against stub candidates. The design is approved. Being under host-setup/agent-safety/, it needs an attended run, and merging its pull request waits on the maintainer's go-ahead after reading the diff.
Backlog burndown claim (round 3, 2026-11-22): branch burndown/windows-ps1-probe-and-profile. Predicted files: host-setup/agent-safety/claude/install.ps1, new tests/test_install_ps1.py, host-setup/windows/install-tools.ps1, tests/test_install_agents.py (shared with #4113). No other group may edit these files while this claim stands.
Activity
Run the Hook Launcher Before Trusting It and Read Short-Option Cluste…
ptr727 commentedon Nov 20, 2026
Backlog burndown question, 2026-11-19. The fix edits
host-setup/agent-safety/claude/install.ps1, which is underhost-setup/agent-safety/, so it needs the maintainer's approval before an attended run implements it. Do you approve the fix shape the issue states?Options
py -3,python3,python) by running it with a probe only Python 3.11 or newer passes, leave the probe's stderr visible, and fall through on a mismatch, asinstall.shdoes since Validate the Interpreter the Agent-Safety Installer Writes Into settings.json #1172. A Linux host writes it, and the Windows CI job verifies it with a test that drivesinstall.ps1against stub candidates (one exiting 9009, one working). The merge waits on the maintainer's diff read.python3is the Store alias keeps failing to install the kit although a workingpythonis onPATH.Effect on work in flight: none.
ptr727 commentedon Nov 20, 2026
Maintainer's answer, 2026-11-19 (backlog burndown): approved. Probe each candidate (
py -3,python3,python) for Python 3.11 or newer, leave the probe's stderr visible, and fall through on a mismatch, asinstall.shdoes since #1172. Verify through the Windows CI job with a test drivinginstall.ps1against stub candidates. The design is approved. Being underhost-setup/agent-safety/, it needs an attended run, and merging its pull request waits on the maintainer's go-ahead after reading the diff.ptr727 commentedon Nov 22, 2026
Backlog burndown claim (round 3, 2026-11-22): branch
burndown/windows-ps1-probe-and-profile. Predicted files:host-setup/agent-safety/claude/install.ps1, newtests/test_install_ps1.py,host-setup/windows/install-tools.ps1,tests/test_install_agents.py(shared with #4113). No other group may edit these files while this claim stands.Probe Each Python Candidate in install.ps1 and Bound the Profile Mask (…