Introduction
SweepX is a safety-first Rust disk-analysis project. The current repository has a runnable development-grade scanner/TUI, an explicitly confirmed live-revalidated operating-system Trash preview, a recoverable Linux stale temporary-object quarantine preview, and a Linux bounded file/directory Permanent preview.
WARNING
Linux sweepx delete "$(realpath -- PATH)" can now permanently remove one regular file or bounded real directory tree, but an ordinary user must type the full plan digest at a foreground terminal. Directories use a closed manifest of at most 256 actions, with durable intent and revalidation before every unlinkat/rmdir. Links, special files, mount crossings, over-limit trees, cross-platform Permanent, and general plan execution remain absent; Trash failure never falls through to this path, and it is not secure erase.
Current status
- The Linux scanner performs a synchronous, read-only scan under user-selected absolute roots and reports
degraded. - The macOS scanner now exposes a handle-bound synchronous, read-only live scan and still reports only
degraded, not release qualification. - The Windows scanner now provides a handle-relative synchronous read-only live scan through
scan/scan --tui. It remains development-grade/degraded, not release-qualified. - On Linux,
statusreads terminal state journal-first; macOS and Windows read the legacy operation snapshot. The Windows state directory is protected by a current-user-private DACL, an ownership check, and per-component reparse-point rejection.cancelremainsdisabledbecause there is no live operation registry. - Linux has a bounded SQLite journal, one-transaction complete-stream/terminal persistence, and degraded completed replay through
sweepx --format ndjson status --operation-id ID --watch [--after SXCUR1]: it performs one same-snapshot full validation, then reads pages of at most 1024 events from a completed, persisted stream; an unknown but syntactically valid cursor yieldsstream.reset_required, while malformed cursor usage remains a usage error. Because events are still constructed after the scan, this is not live streaming, does not wait for new events, does not create a background operation, and does not support cancel; current machine scan output therefore stays JSON andscan --format ndjsonremains disabled. explainanalyzes boundedscan.resultJSON, but imported data is downgraded to stale/incomplete provenance and candidates remain report-only.cache statusprovides read-only preview-cache diagnostics on Linux, macOS, and Windows, with output kindcache.status.result. It supports human/JSON only, treats NDJSON as a usage error, and returnsabsentwithout creating directories when state/cache is missing. Inspection is bounded topreview-cache/current.json, the current generation file, and the flatgenerations//quarantine/directories, reporting approximate bytes and health only; it does not scan, repair, quarantine, or reveal cached entries or path contents.availablemeans only that bounded cache structure and validation are readable, not that any live/current filesystem fact is true.- Built-in Cleaners support metadata-only list/show and fail closed on Core-version incompatibility.
sweepx scan --tuiopens its file-manager-style browser immediately after root admission. Direct children arrive first, then a single-flight background pass fills in recursive directory sizes within a 30-second deadline without retaining descendants as rows.d/Deleteselects one item for Trash; confirmation happens after leaving the full-screen view, followed by live scan-identity revalidation.- Linux
sweepx deleteis adegradedbounded file/directory Permanent preview. It accepts only a resolved absolute path, refuses elevated processes, links/special files/mount crossings, protected paths, and.sweepx-protectancestors or descendants, and requires a closed manifest, full-digest challenge, and per-action durable audit. - P3 implements immutable plans, simulation-only authorization, Unix audit/recovery, and a sealed deterministic simulated executor as library APIs. Even with degraded Linux completed-stream replay, the overall journal path is neither live, runtime-qualified, nor cross-platform, and there is still no trusted HumanApproval broker.
Those are code- and test-backed development capabilities. The v0.0.1 development release and five platform archives are published, but SweepX still has no stable-product, production-support, or three-platform scan qualification claim.
Product position
SweepX sits between a general disk analyzer and an application-specific Cleaner:
- The Scanner answers where visible space is while preserving permission errors, links, mount boundaries, and size uncertainty.
- The Analyzer separates facts, inferences, heuristics, and unknowns instead of treating a directory name or age as proof of safe deletion.
- A Cleaner carries domain knowledge in a versioned manifest and declarative rules. The current surface reports metadata and runs no script.
- CLI, TUI, and future Agent workflows share one Core contract; no surface receives extra mutation authority.
Why “development-grade” matters
degraded, qualified, report_only, unsupported, and disabled describe capability cells, not marketing tiers. For example:
- Linux scan exists but has not met every roadmap benchmark, fault-injection, and cross-platform release gate.
- Explain and TUI work within their contract tests, but imported JSON cannot become live execution evidence.
- Cleaner metadata being readable does not mean a Cleaner can execute.
- Tests around a P3 fake executor prove nothing about a real filesystem adapter.
Suggested reading order
- CLI and read-only scanning for the commands that exist today.
- Safety model for imported/report-only and mutation boundaries.
- Cleaner concepts and Agent boundaries for the two commonly misunderstood extension surfaces.
- Architecture and Roadmap for crate layers and the next gates.