Skip to content

feat(windows): add verified PowerShell CLI installer with recoverable upgrades - #89

Open
ThunderKhan wants to merge 21 commits into
prooflinedev:mainfrom
ThunderKhan:feat/windows-installer
Open

ThunderKhan wants to merge 21 commits into
prooflinedev:mainfrom
ThunderKhan:feat/windows-installer

Conversation

@ThunderKhan

Copy link
Copy Markdown

Summary

Add a Windows x64 PowerShell installer for the official Proofline CLI, with current-user installation, verified release downloads, and recoverable installer-managed upgrades.

  • Add install.ps1 for Windows PowerShell 5.1 and PowerShell 7, with no administrator requirement and optional -Version, -InstallDir, and -NoModifyPath.
  • Download official release archives and SHA256SUMS over HTTPS from proofline.sh, constrain redirects and payload sizes, verify archive contents, and validate the release executable before publishing it.
  • Preserve the previously installed executable during upgrades; use an exclusive installer lock, transaction-specific staging, a pending journal, checksum receipts, guarded replacement, recovery, and rollback for unverifiable states.
  • Avoid executing pre-existing local binaries based solely on local installer metadata. Keep the verified new executable when only post-upgrade cleanup fails; quarantine partially written stages to permit safe retries.
  • Preserve raw expandable User PATH registry values and registry types; update the current-user PATH only after successful installation.
  • Add offline fixtures, recovery/locking tests, real-release and process-interruption integration tests, Windows CI for both PowerShell editions, and README documentation.

Validation

CI (fork-only preflight PR, head 5c3cf20):

  • Windows installer tests: passed on powershell.exe (5.1) and pwsh.exe (7).
  • Repository checks: passed.
  • Per PowerShell edition: syntax-parse validation of eight scripts; 12/12 archive/manifest validator tests; 16/16 offline recovery/upgrade cases; cross-process lock integration; User PATH persistence, expandable-entry preservation, idempotence, and exact registry restoration.

Local Windows x64 integration:

  • Installed the official pinned 0.5.1 release, upgraded to 0.5.2, verified the executable and receipt, and confirmed that repeating 0.5.2 is idempotent.
  • 10/10 real child-process termination/restart checkpoints passed, including interrupted upgrade preparation, partial stage writes, post-switch rollback/finalization, and first-install recovery.
  • The tests used isolated temporary installation directories and did not modify the user's installed Proofline CLI or User PATH.

Scope and security limits

  • Distribution currently uses a checked-out install.ps1, not a verified Windows irm | iex one-liner endpoint. Native proofline update remains unsupported on Windows; re-run the installer to upgrade.
  • The official release archive and checksum manifest originate from the same HTTPS origin. Their digest match establishes transfer consistency; it is not independent cryptographic publisher authentication.
  • Process termination/restart testing is not evidence of guaranteed durability through sudden power loss, disk loss, or all possible filesystem/ACL conditions.
  • Unrecognized or inconsistent installation states fail closed and preserve evidence rather than adopting unknown bytes.

The diff is limited to the Windows installer, tests/CI, and README. Please review the transaction state machine and recovery/rollback boundaries in particular.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T07:05:16.347350Z 5c3cf20 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ThunderKhan ThunderKhan reopened this Nov 23, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5c3cf205b8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread install.ps1 Resolved
@ThunderKhan

Copy link
Copy Markdown
Author

Hi! The Windows installer implementation and its tests have passed CI on my fork. I noticed the upstream checks are awaiting approval, and the Proofline gate requires an assigned seat. Could a maintainer advise on the required access or approve the checks for this external contribution? Thanks!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant