Repository navigation
Description
Lane: xfactory-2 (xFactory-2)
RULING — Brett Heap, 2026-09-05, in session, verbatim: "file the native windows issue and pick it up", following "what do we do for users that use windows? how do they use this? we need to have a windows only and linux/wsl2 section right?" and, for #43, "we want this for newbies to be able to use".
The finding
There is no native Windows path. Both entry points — setup.sh (500 lines) and the openRepoShape command — are #!/usr/bin/env bash; the preflight wants a binary literally named python3 and uses mktemp -d. So #46 could only send a Windows user through WSL2, and says so. Everything BEHIND the entry point is Python 3 standard library and is close to Windows-clean today: scaffold-project.py, scripts/shape_materialize.py, scripts/bootstrap.py, the validators shell out to git and gh only (both cross-platform), never to python3, make or sha256sum; the two chmod(0o755) calls are harmless on Windows; templates/family-root/scripts/bootstrap.py already falls back when make is absent. What prints python3 … in remediation strings is prose, wrong on Windows where the interpreter is py or python. Nothing has ever been RUN on Windows: tests.yml runs on ubuntu-latest only.
What lands
- A Python entry point with full parity to
setup.sh— self-bootstrap when run from a download or stdin (clone the standard to a temp dir, re-run from the checkout, delete it), preflight (git, Python ≥ 3.9 as whatever interpreter is running,ghpresent and authenticated;makenever required), the three names checked with--explain, the dry-run plan, ONEyestyped by the human, scaffold, clone the root where you stand, bootstrap viascripts/bootstrap.py, the next-steps text. Pure-ASCII source, asserted by a test, because Windows PowerShell 5.1 re-encodes anything it pipes and a stray—would corrupt a| py -one-liner. Proposed namesetup-project.py, besidescaffold-project.pyandadopt-project.py; a root-levelsetup.pyis REJECTED —pip install git+…would execute it. - One definition.
setup.shkeeps its surface, its flags and its behaviours (tests/test_setup_sh.pystays green) and, once it has confirmedpython3, delegates the rest to the Python — so the flow exists once and Windows cannot drift from Linux. If the delegation cannot be done without risking the bash path that every current user runs, the PR says so and a consolidation follow-up is filed; the Windows path does not wait on it. - Windows CI is the acceptance.
tests.ymlgains awindows-latestjob running the suite with the bash-only tests (test_setup_sh.py, shipped-bash executability, anything invokingbash) skipped by an explicitos.name == "nt"marker that names why. Green onwindows-latestis what "native Windows works" means here — there is no Windows machine on this side; CI is the arbiter. - Remediation strings stop hard-coding
python3where the interpreter may bepy(derive fromsys.executable, or say "python"). - README. The quick start's platform paragraph gains the native path: install Python 3.9+ from python.org (with the
pylauncher, the default),gitfrom git-scm.com,ghviawinget install --id GitHub.cli;gh auth login; then in PowerShell a two-liner that survives 5.1's encoding —Invoke-WebRequest … -OutFile setup-project.pythenpy setup-project.py <Project> --org <org>— because>redirection and|in PowerShell 5.1 re-encode text. WSL2 stays as the alternative. Hygiene cap moves by the lines added. - Out of this issue: a Windows twin of the installable
openRepoShapecommand (.ps1/.cmd, execution policy, PATH) — unless the planner finds it cheap; the README says the Windows path is "download, run" until then.
Nothing about what the shape means changes; the shape still confers nothing.
Claim + sibling disclosure
CLAIMED — lane xfactory-2 (xFactory-2), session harness 6bdb2e35-cbc8-4b10-b13f-11d9b421fef9, 2026-09-05T18:28Z, for the whole of the above. Rule 1 reads: (1) no existing governing record — this issue is it; (2) gh pr list --state all --search "windows powershell native": one result, #46 (this lane's own, merged — it documented the gap this closes); (3) git ls-remote --heads origin | grep -iE 'windows|powershell|native': no branch. Sibling lanes on this repository today: xFactory-1 (#44, #48 — update-shape.py messages on family roots; no overlap with the entry point) and openxfactory-4-opendox-extraction (#40/#42 landed). Related: #43/#46 (the README quick start this extends).
Lane: xfactory-2 (xFactory-2)
Activity
setup-project.py: validate CLI values before they reach git or gh; lo…
Windows CI run 1: POSIX pin keys, a path guard that admits drive lett…
EOF on a confirmation prompt is a place nobody can be asked (#49)
A native Windows path: setup-project.py, a windows-latest job, and th…
The Mac path, a rehearsal that creates nothing, and what a failed sca…
Copilot on PR #102: PowerShell's own metacharacters leave the Windows…
shape-doctor.py: one platform-aware quoter, on every next command, so…