Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 0.1.1

- Reject changed application details, including installation folders and merged registry sources, before uninstall backup or launch. Rejected attempts do not seed a leftover preview.
- Add Operation history → Review pending uninstall for supported deferred sessions. A later Windows boot, absent registration, stopped recorded processes, and fresh folder-use checks are required. Legacy records first capture a boot reference. Resolution preserves the original exit result and does not perform cleanup.
- Add regression coverage for stale uninstall review and restart-session resolution. Actual UAC/reboot validation remains outstanding.
- Retain registration exports while an installer is active or a deferred session needs them. Recheck before deletion and hold the application reservation from export creation through installer monitoring.
- Detect replacement registrations by product metadata even when their registry source changes and the old installation folder is absent.
- Include this changelog in portable packages.
- Discover pending uninstall entries from durable session/export records even when operation history is missing, unreadable, or expired. Record the exact export for new sessions and reject ambiguous older export matches.
- Continue pending-session discovery past individual corrupt/unreadable records, while reporting them and retaining cleanup protections. Preserve completed uninstall results and preview eligibility when the final history write fails.
- Isolate legacy registration-export discovery from failures in unrelated backup stores.

## 0.1.0

First public Unbolt release.
Expand All @@ -10,4 +22,4 @@ First public Unbolt release.
- Hunter window targeting and reversible startup settings.
- Standalone branding, versioned portable packaging, dependency notices, and checksums.

See README.md and docs/VERIFICATION.md for supported scope and validation limits.
See README.md and docs/VERIFICATION.md for supported scope and validation limits.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unbolt"
version = "0.1.0"
version = "0.1.1"
edition = "2024"
default-run = "unbolt"
rust-version = "1.98"
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The portable app uses a native Windows interface with light and dark themes, key

## Download and get started

1. Open [GitHub Releases](https://github.com/Develifture/Unbolt/releases/latest) and download **Unbolt-0.1.0-windows-x64.zip**.
1. Open [GitHub Releases](https://github.com/Develifture/Unbolt/releases/latest) and download **Unbolt-0.1.1-windows-x64.zip**.
2. Extract the ZIP. Keep **Unbolt.exe**, **UnboltCLI.exe**, and **UnboltHelper.exe** together.
3. Open **Unbolt.exe**, select an application, and choose **Uninstall selected** or **Preview leftovers**.
4. Review the results. Eligible leftovers are removed only after you choose **Clean checked** and confirm.
Expand Down Expand Up @@ -64,9 +64,13 @@ No. Previewing leftovers is read-only. After an uninstall, Unbolt opens a leftov

A checked box does not establish ownership. Ordinary cleanup accepts supported High-confidence items only. Shared folders, protected locations, and reparse points stay Blocked; name-only matches need further review. Unresolved registration, process monitoring, or reboot status can also prevent cleanup.

For a completed uninstall awaiting restart or process review, restart Windows, open **Operation history**, select **Pending uninstall** or its **Uninstall result**, and choose **Review pending uninstall**. Pending entries are discovered from saved session/export records even if the history entry is missing or expired. Unbolt checks the saved registration, recorded processes, and supported folder usage again before offering to resolve that session. Then use **Backups & recovery → Review leftovers** for a fresh scan. Other pending or failed sessions still block cleanup.

Older session records lack a boot reference. Their first confirmed review records the current boot; restart Windows and review again. The saved registration export must still exist. New sessions record the exact export; older sessions with conflicting export snapshots require further recovery review. If Windows boot information or process/application state cannot be verified, the session remains blocked. This action does not remove application data.

### Can I delete the recovery backups?

Yes. In **Backups & recovery**, select records and choose **Delete selected**. After confirmation, Unbolt permanently discards those recovery copies. This does not delete the original application files or re-enable a disabled startup entry. Unfinished backup states require recovery review first.
Yes. In **Backups & recovery**, select records and choose **Delete selected**. After confirmation, Unbolt permanently discards those recovery copies. This does not delete the original application files or re-enable a disabled startup entry. Unfinished backup states require recovery review first. Registration exports are retained while an installer is active or a pending uninstall needs them; resolve the supported pending result in **Operation history** before deleting its export.

### Can Unbolt undo a complete application uninstall?

Expand All @@ -78,7 +82,7 @@ Yes. The source is [MIT licensed](LICENSE), and the Windows x64 release runs fro

### Does Unbolt remove Microsoft Store apps or browser extensions?

Those workflows are outside version 0.1.0. This release focuses on registered desktop applications and the supported cleanup and startup operations described above.
Those workflows are outside version 0.1.1. This release focuses on registered desktop applications and the supported cleanup and startup operations described above.

## Documentation

Expand Down Expand Up @@ -110,7 +114,7 @@ Use exact inventory IDs when names are ambiguous. Helper-check verifies the adja

## Supported scope and validation

Version 0.1.0 is the first public release. It covers the operations above; it is not a full-drive ownership scanner.
Version 0.1.1 includes fixes from the full-application review. It covers the operations above; it is not a full-drive ownership scanner.

Actual elevated operations, alternate-account behavior, delegated installer services, reboot continuation, and complete recovery scenarios still need disposable-VM validation. Filesystem metadata checks do not atomically exclude every independent concurrent write. The unsigned administrator component has not passed an independent privileged-security audit.

Expand All @@ -125,7 +129,7 @@ Use Windows x64, Rust 1.98 or newer, the MSVC toolchain, and Windows SDK build t
cargo clippy --locked --all-targets --features test-fixtures -- -D warnings
powershell -ExecutionPolicy Bypass -File scripts/package.ps1

The package script creates Unbolt-0.1.0-windows-x64 with only the three production executables, documentation, dependency notices, and a file-hash manifest. Fixture executables are excluded. Tests are retained in the source repository to verify supported behavior.
The package script creates Unbolt-0.1.1-windows-x64 with only the three production executables, documentation, dependency notices, and a file-hash manifest. Fixture executables are excluded. Tests are retained in the source repository to verify supported behavior.

## Help and contributions

Expand Down
2 changes: 1 addition & 1 deletion docs/FULL-FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This file distinguishes implemented operations from remaining work.
| --- | --- | --- |
| Inventory | Current-user and machine registry views, search/sort/icons/export | Broader package sources |
| Uninstall | Registered normal/quiet commands, sequential batches, Windows Installer handling | Installer-service attribution and reboot continuation |
| Process monitoring | Windows jobs, durable sessions, queue cancellation and continued monitoring | Fully validated elevated descendants and restart recovery |
| Process monitoring | Windows jobs, durable sessions, queue cancellation, continued monitoring, explicit boot-aware review of supported deferred sessions | Fully validated elevated descendants and real reboot recovery coverage |
| Leftovers | Recorded folders, supported name matches, bounded product registry discovery, evidence | Services, tasks, shortcuts, COM, broader and all-user discovery |
| Cleanup | Selected supported items, protected/shared/reparse exclusions, quarantine and typed registry backups | Cross-volume storage and wider ownership attribution |
| Forced removal | Explicit folder/registered-app review, files-in-use checks, app-list entries removed last | Broader resources and VM coverage |
Expand Down
12 changes: 11 additions & 1 deletion docs/VERIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Source checks

The release baseline has 71 passing checks: 56 library checks, one GUI icon check, one files-in-use fixture, five helper fixtures, one Hunter fixture, and seven process-lifecycle fixtures. Run the current source checks again when changing runtime behavior.
The published 0.1.0 baseline has 71 passing checks. The review fixes add 18 regression checks, bringing the current source suite to 89: 74 library checks, one GUI icon check, one files-in-use fixture, five helper fixtures, one Hunter fixture, and seven process-lifecycle fixtures. Run the current source checks again when changing runtime behavior.

Both production and test-fixtures Clippy configurations are checked with warnings denied. Fixture launchers are feature gated and excluded from portable packages.

Expand All @@ -18,13 +18,21 @@ Both production and test-fixtures Clippy configurations are checked with warning
- Hunter process/window identity and exact startup-target matching.
- Startup disable/restore, shortcut metadata, and interrupted-record handling.
- Disposal of all five supported backup types, retained originals and sibling backups, cancellation, stale review, nested manifest names, and junction rejection.
- Changed installation location and newly merged registration sources with an unchanged uninstall command are rejected before backup or process launch.
- Deferred-session resolution preserves original exit codes and requires a strictly later boot counter. Controlled boot inputs exercise restart rules, legacy-record reference capture, cancellation, stale confirmation, running process/lease rejection, reappearing registration, multiple pending records, and redirected storage.
- Pending-session exports cannot be deleted before resolution, including a new pending session or active operation appearing after deletion review. Export deletion becomes available after resolution. Replacement registrations with new source IDs invalidate both pending and confirmed reviews, including absent installation folders.
- Durable pending-session discovery remains usable with missing, unreadable, and expired history records. The same review target used by the GUI resolves the owned session in each case. New launches persist their exact export path; older sessions with conflicting export snapshots remain blocked rather than choosing one arbitrarily.
- Discovery reports individual malformed, locked, and directory-replaced session records while retaining valid pending entries. Destructive cleanup continues to fail closed on unreadable session data. A real owned process completion retains its preview eligibility and original session/exit result when final audit logging fails, with the logging error surfaced in its status.
- Legacy export discovery reads registration exports directly and remains usable when an unrelated backup store cannot be enumerated.

## Native interface checks

Live checks verified real inventory, themed tables and controls, backup navigation, saved-record leftover review, and the permanent-loss confirmation with No as default. Cancelling that confirmation retained existing user backups. Actual deletion was exercised only on owned fixtures.

The 0.1.0 production executable was opened after final branding changes. Its embedded Windows icon, scaled header icon, About artwork, and version display were inspected in the native interface.

For the review fixes, the native History screen was inspected with the new review/cancel controls. Review was disabled without a selection and enabled for an uninstall-result record. No live session was resolved during that interface check; state-changing regression tests used owned temporary fixtures.

A shared plug-in container stays Blocked even when checked. A name-only application-data folder remains Review rather than being promoted to High. Empty scans distinguish no supported matches from errors or cancellation.

## Release checks
Expand All @@ -35,4 +43,6 @@ Re-run the complete source checks after branding/storage changes. Verify the ver

Real elevated operations, alternate-account UAC, delegated installer services, reboot continuation, privileged ownership recovery, full accessibility, cross-monitor DPI changes, and comprehensive disposable-VM uninstall/recovery coverage remain outstanding. Metadata/path checks do not atomically rule out every concurrent writer. The administrator component is unsigned and has not received an independent privileged-security audit.

Restart-resolution tests inject controlled boot counters into internal test seams; they do not reboot the machine or establish actual UAC/reboot end-to-end coverage. Production reads Windows' documented successful-boot counter and fails closed if it is unavailable. Legacy records require a newly captured reference plus a subsequent restart.

Passing source and owned-fixture checks does not establish complete production stability for every supported Windows application.
2 changes: 1 addition & 1 deletion scripts/package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ try {
foreach ($pair in @(@('unbolt.exe', 'Unbolt.exe'), @('unbolt-cli.exe', 'UnboltCLI.exe'), @('unbolt-helper.exe', 'UnboltHelper.exe'))) {
Copy-Item -LiteralPath (Join-Path $repoPath ('target\release\' + $pair[0])) -Destination (Join-Path $packagePath $pair[1])
}
foreach ($file in @('README.md', 'LICENSE')) {
foreach ($file in @('README.md', 'LICENSE', 'CHANGELOG.md')) {
Copy-Item -LiteralPath (Join-Path $repoPath $file) -Destination $packagePath
}
Copy-Item -LiteralPath (Join-Path $repoPath 'assets') -Destination (Join-Path $packagePath 'assets') -Recurse
Expand Down
46 changes: 44 additions & 2 deletions src/backup_delete.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Explicit disposal of selected local backups. Manifest payload paths are
//! descriptive only: deletion is restricted to the selected owned directory.
use crate::{UnboltResult, model::*, records::BackupRecord, recovery, scanner};
use crate::{UnboltResult, model::*, process, records::BackupRecord, recovery, scanner};
use std::{
fs,
path::{Component, Path, PathBuf},
Expand All @@ -23,6 +23,7 @@ struct Item {
directory: PathBuf,
signature: u64,
nodes: Vec<Node>,
export_application: Option<String>,
}
pub struct Plan {
root: PathBuf,
Expand Down Expand Up @@ -92,6 +93,15 @@ pub fn saved_application(manifest: &Path) -> UnboltResult<Application> {
pub fn prepare(records: &[BackupRecord], cancel: &AtomicBool) -> UnboltResult<Plan> {
prepare_at(&recovery::data_dir(), records, cancel)
}
fn export_unused(root: &Path, application_id: &str) -> UnboltResult<()> {
if process::sessions_at(&root.join("process-sessions"))?
.iter()
.any(|s| s.application_id == application_id && s.needs_registration_export())
{
return Err("This registration backup is needed by a pending uninstall. Review the uninstall result in Operation history before deleting its backup.".into());
}
Ok(())
}
fn prepare_at(root: &Path, records: &[BackupRecord], cancel: &AtomicBool) -> UnboltResult<Plan> {
if records.is_empty() {
return Err("Select at least one backup".into());
Expand Down Expand Up @@ -140,6 +150,16 @@ fn prepare_at(root: &Path, records: &[BackupRecord], cancel: &AtomicBool) -> Unb
{
return Err("Backup state changed; refresh and review again".into());
}
let export_application = if export {
let id = value["id"].as_str().filter(|id| !id.is_empty()).ok_or(
"Registration export has no application identity; retain it for recovery review",
)?;
let _lease = process::reserve_application(&plan.root.join("process-sessions"), id)?;
export_unused(&plan.root, id)?;
Some(id.to_owned())
} else {
None
};
if plan.items.iter().any(|i| i.directory == directory) {
continue;
}
Expand Down Expand Up @@ -179,6 +199,7 @@ fn prepare_at(root: &Path, records: &[BackupRecord], cancel: &AtomicBool) -> Unb
directory,
signature,
nodes,
export_application,
});
}
Ok(plan)
Expand All @@ -200,6 +221,23 @@ impl Plan {
)
}
pub fn execute(self, cancel: &AtomicBool) -> UnboltResult<String> {
// Retain one lease per product for the complete operation. This also
// protects the gap between export creation and process-session save.
let mut ids = self
.items
.iter()
.filter_map(|i| i.export_application.as_ref())
.collect::<Vec<_>>();
ids.sort();
ids.dedup();
let mut leases = Vec::new();
for id in ids {
leases.push(process::reserve_application(
&self.root.join("process-sessions"),
id,
)?);
export_unused(&self.root, id)?;
}
// Validate the complete selection before deleting any selected backup.
for item in &self.items {
if cancelled(cancel) {
Expand Down Expand Up @@ -398,7 +436,11 @@ mod tests {
} else {
"manifest.json"
});
fs::write(&manifest, format!(r#"{{"state":"{state}"}}"#)).unwrap();
fs::write(
&manifest,
format!(r#"{{"state":"{state}","id":"owned-export-fixture"}}"#),
)
.unwrap();
records.push(BackupRecord {
id: directory.file_name().unwrap().to_string_lossy().into(),
kind: store.into(),
Expand Down
Loading
Loading