fix(windows-install): preserve Unicode Python paths and qualify writeback recovery #6430
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.57) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.57 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #6430"
general
weight: 0.35
BigDataDZ
Goal And Delivered Outcome
The native Windows installer cannot start its selected Python when interpreter discovery corrupts a Unicode path.
_resolve_pythonreads UTF-8, but its fresh child interpreter prints using the locale codec. With GBK output, Chinese paths become replacement characters and later startup fails; an emoji in the path makes discovery itself fail.Pin the discovery child's stdout to UTF-8 before printing
sys.executable. Keep interpreter selection and the Python 3.11 minimum unchanged. Extend the existing installed PowerShell regression through validated completion, fresh-process readback and idempotent completion replay.main; branch baseline373f2fa12ad5cc525c3960c95685807110dc0c93.Author Declaration
Implemented against
loopx/windows_install.py::_resolve_pythonat the branch baseline; the missing writeback/recovery steps in #6015; existing installed lifecycle test intests/test_windows_install.py.| Criterion | Disposition | Validation |
| --- | --- | --- |
| The selected interpreter's path survives discovery exactly, including spaces, Chinese and emoji under GBK | implemented | Two real disposable-venv cases fail on baseline and pass on head |
| Installed Windows entrypoint supports failed validation, retry and durable result readback | implemented | Existing PowerShell install/doctor test extended through registered actor, current lease/version, rejected validation, successful completion and receipt replay |
| Automatic continuation or original host-session reattachment | out_of_scope | Remains with #6015 / #5208 |
Scope And Continuation
Validation
5841f9efa285066cf4a945c95e0c6fb04504ba63(the committed source/test bytes match the validated working tree).| Check kind | Result | Evidence / limitation |
| --- | --- | --- |
|
regression_parity| passed | Both Unicode interpreter cases fail with the baseline resolver and pass with the candidate. A four-case real-process comparison preserves ASCII paths under UTF-8/GBK and Unicode paths under UTF-8, and repairs the Unicode/GBK path. Baseline source was restored byte-for-byte after the comparison. ||
real_entrypoint| passed |uv run --extra test python -m pytest -q tests/test_windows_install.py tests/test_cli_stdio_utf8.py: 16 passed on the rebased head, using a short disposable pytest base directory. Includes actual source-release installation, doctor, externally managed skill preservation, late-failure rollback, validated completion and fresh PowerShell receipt replay. ||
integration| passed | Supplemental disposable CLI journey on the earlierf5f4848e501fadce915ab9ccff783895838e7140source: Unicode artifact validation failure/retry; SQLite hard lease with its actual version; readback from another process/directory; original completion receipt on replay; exactly one successor; refresh/history. Usage collection disabled. ||
unit| failed | Additional UTF-8 guard suites: 5 passed, 1 failed. The failure is the unchangeddirection_runtime.py:50gate_path.read_text()call. The same existing guard fails with the baseline resolver restored. This PR does not claim a green full-tree UTF-8 guard. ||
real_entrypoint| failed | Initial native install run with the default long temporary path hit the host's Windows path-length limit while copying existing RFC ledgers. The complete suite passed with a short temporary base; arbitrary long-path installation remains unqualified. ||
static| passed | Changed-file Ruff, compilation,git diff --check, semantic coinage advisory (no carriers), and changed-path public-boundary check. ||
manual| passed | Risk-based canary plan inspected. Native install, rollback, skills, independent artifact validation, replay and encoding checks above cover this change's actual boundary. ||
integration| not_run | Generic POSIX install/update catalog smokes and full repository suite; the canary plan was not executed. CI and independent maintainer review remain pending. |Frontend / Visual Evidence
Type / Area
Shared-authority RFC fixture impact
N/A. The test consumes the shipped SQLite lease/completion contract; it changes no authority behavior, schema, provider, routing or promotion policy.
Boundary Checklist