Repository navigation
Review only: audit the complete Unbolt application - #1
Develifture wants to merge 1 commit into
Conversation
Exact source tree from main at 149f584. This snapshot exists only to expose all files in a review diff. Co-authored-by: Codex <codex@openai.com>
|
@codex review Please review the entire Unbolt application in this full-source snapshot PR, not just the documentation or latest commit on main. Every tracked file is included in the diff deliberately. Prioritize concrete data-loss risks, security/authorization defects, incorrect uninstall tracking, unsafe cleanup or backup disposal, broken restore/startup flows, and serious native UI failures. Review the administrator component, registry and file operations, scanner ownership rules, process lifecycle, Hunter mode, tests, and packaging together. For each actionable finding, include severity, file and line references, the triggering scenario, user impact, and a suggested fix. Separate verified behavior from static inference and missing Windows runtime coverage. Do not modify the PR as part of this review. Do not target installed applications or live user data. Any runtime validation must use owned temporary fixtures only. See the PR description and docs/VERIFICATION.md for the exact snapshot and known validation limits. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8e91df75ff
ℹ️ 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".
| if session.state != "completed" { | ||
| return Err(format!( | ||
| "Cleanup deferred while an installer session needs review: {} ({})", | ||
| session.state, session.scope | ||
| )); |
There was a problem hiding this comment.
Make deferred installer sessions resolvable
Static control-flow finding; Windows runtime validation was unavailable: the elevation fallback is persisted as completed-needs-review (process.rs:409-413), while reboot-required 3010/1641 sessions remain completed with a nonzero exit code; this gate rejects the former, and process.rs:546-551 rejects the latter. A repo-wide search found no API or UI transition that acknowledges review or a completed reboot. If such an uninstall already removed its registration, run_mode cannot launch the successful retry needed to supersede the record, permanently blocking cleanup and forced removal for that application ID. Add an explicit, verified resolution transition—boot-aware for reboot codes—or keep elevated installers in a trackable helper job and persist a terminal state that these gates can clear.
Useful? React with 👍 / 👎.
| if current_command.executable != cmd.executable || current_command.arguments != cmd.arguments { | ||
| return Err("Uninstall command changed since review; refresh before uninstall.".into()); | ||
| } | ||
| let backup = recovery::backup_registration(app)?; |
There was a problem hiding this comment.
Revalidate the complete application before uninstalling
Static inference; not reproduced on Windows: if a registration is updated while the UI is open but retains one source and the same uninstall command, the checks at uninstall.rs:164-169 accept the newly collected record, but this call exports the stale app instead of current_app. A newly merged registry source is therefore omitted from the export, and a changed InstallLocation remains stale in both application.json and the GUI's post-uninstall preview (gui.rs:2416, 2800-2802); after registration disappears, that old directory can be presented as a High-confidence leftover. Require the complete current application identity to match the reviewed record, or carry current_app through backup creation and subsequent leftover review.
Useful? React with 👍 / 👎.
|
The full-application snapshot review is complete. Its findings and follow-up recovery issues were addressed in merged PR #2 and released in v0.1.1: https://github.com/Develifture/Unbolt/releases/tag/v0.1.1 . Closing this audit-only snapshot without merging its empty baseline. The release passed 89 local checks; its published download and all packaged file hashes were verified. GitHub-hosted CI could not start because of the account billing lock, and actual UAC/reboot validation remains outstanding. |
This review-only PR presents the complete Unbolt application for an independent code review, including all source, tests, build configuration, packaging, and documentation.
The head is an exact tree copy of
mainat149f584580674ab646dae3e20ef3a96c12ce0ac0, compared against an empty review baseline so every file is included in the PR diff. Both branches are dedicated to this audit. This is not a proposed product change or a PR to merge intomain; actionable findings should become follow-up fixes againstmain.Requested scope:
The release baseline passed 71 local Windows checks and both Clippy configurations. Hosted CI has not run successfully. Elevated, alternate-account, reboot, and wider recovery scenarios remain unvalidated as recorded in
docs/VERIFICATION.md; those limits should inform the review, not replace it.Use only owned temporary fixtures for any runtime validation. Do not uninstall installed applications or modify live user files, registry entries, startup settings, or backups. If the review environment cannot execute Windows tests, distinguish static findings from runtime verification.