Repository navigation
feat(windows): add verified CLI installer with recoverable upgrades - #1
Open
ThunderKhan wants to merge 21 commits into
Open
ThunderKhan wants to merge 21 commits into
ThunderKhan wants to merge 21 commits into
ProoflineDev / Proofline
succeeded
Nov 24, 2026 in 3m 6s
Proofline review finished: 15 findings in this run
Findings
- Serious: A locked but matching receipt blocks upgrade recovery · Location:
install.ps1lines 591 to 599 (persists from an earlier review) - Serious: A malformed receipt blocks recovery of a verified upgrade · Location:
install.ps1lines 591 to 601 - Warning: Malformed pending journal blocks rollback despite a valid backup · Location:
install.ps1lines 648 to 652 (persists from an earlier review) - Warning: Windows interruption tests miss premature receipt publication · Location:
scripts/test_install_interruption_real_windows.ps1lines 284 to 296 (persists from an earlier review) - Warning: First-install recovery test misses rewrites of a valid receipt · Location:
scripts/test_install_interruption_real_windows.ps1lines 323 to 327 - Warning: Receipt tests miss backup deletion when validation fails · Location:
scripts/test_install_upgrade_windows.ps1lines 548 to 575 - Warning: Windows tests miss a regression in executable replacement retries · Location:
scripts/test_install_upgrade_windows.ps1lines 576 to 585 - Warning: Recovery tests miss executable corruption after postcheck passes · Location:
scripts/test_install_upgrade_windows.ps1lines 643 to 650 - Warning: Manifest test passes without filename validation · Location:
install.ps1lines 148 to 153 - Warning: The archive test passes without the MZ check · Location:
scripts/generate_windows_installer_fixtures.pylines 59 to 61 - Warning: Contention test misses staged executables deleted on lock refusal · Location:
scripts/test_install_concurrency_windows.ps1lines 156 to 177 (over inline comment budget; retained on the Check)- Why it matters: The test still passes if the contender writes a staged executable before attempting the lock and deletes it on refusal.
- Suggested change: Instrument stage creation and assert that the competing call never reaches it while the lock is held.
- Warning: Holder test misses marker changes before sandbox validation · Location:
scripts/test_install_concurrency_windows.ps1lines 25 to 47 (over inline comment budget; retained on the Check)- Why it matters: The test would miss a marker being moved in a directory the holder should reject.
- Suggested change: Add disposable wrong-path and reparse-point cases that assert refusal and verify the original marker remains unchanged and no claim file appears.
- Warning: The PATH fixture can erase a concurrent installer’s update · Location:
scripts/test_install_user_path_ci_windows.ps1lines 125 to 155 (over inline comment budget; retained on the Check)- Why it matters: The fixture can lose a persisted
Pathentry and still report successful restoration. - Suggested change: Use the installer’s mutex around each read-and-write sequence, releasing it before launching the child installer.
- Why it matters: The fixture can lose a persisted
- Warning: PATH fixture can pass after erasing a concurrent update · Location:
scripts/test_install_user_path_ci_windows.ps1lines 127 to 145 (over inline comment budget; retained on the Check)- Why it matters: The fixture can report success after losing another installer’s
Pathupdate. - Suggested change: Use the same mutex for snapshot-and-seed and check-and-restore, releasing it before launching the child installer.
- Why it matters: The fixture can report success after losing another installer’s
- Warning: Windows PATH tests miss conversion from REG_SZ to REG_EXPAND_SZ · Location:
scripts/test_install_user_path_ci_windows.ps1lines 63 to 77 (over inline comment budget; retained on the Check)- Why it matters: Both tests would still pass if the installer silently converted an existing
REG_SZuser PATH toREG_EXPAND_SZ. - Suggested change: Add an integration case that seeds
REG_SZ, runs the installer with a new directory, and checks the persisted text and registry kind before restoring the original value.
- Why it matters: Both tests would still pass if the installer silently converted an existing
Change
Add a Windows PowerShell installer that verifies Proofline releases and rolls back failed or interrupted upgrades.
7 steps · Open walkthrough
Needs attention
- 51 open findings need attention.
- 15 open findings from this run.
- 36 earlier findings remain open (included in the total):
- Warning: Windows CI skips real upgrades and forced-termination recovery
- Warning: Installer skips adding Proofline to a non-expandable User PATH
- Warning: Installer skips adding its directory to a literal user PATH
- Warning:
after-switchpasses without a persistedcheckingstate - Serious: The Windows CI test can erase a concurrent user PATH edit
- Warning: First-install interruption test misses a late
checkingwrite - Serious: Concurrent Windows installs can silently lose a user PATH entry
- Serious: Concurrent installs can erase a user PATH edit
- Warning: Worker can load an installer script outside its test sandbox
- Warning: Interruption tests miss regressions in repair before download
- 26 more in Proofline
Loading