Skip to content

Redesign, cache map and space flow, security hardening - #1

Merged
Finjineersdev merged 20 commits into
mainfrom
opensweep-m0
Nov 21, 2026
Merged

Finjineersdev merged 20 commits into
mainfrom
opensweep-m0

Conversation

@Finjineersdev

Copy link
Copy Markdown
Owner

Summary

App

  • Solid canvas redesign with calmer motion; Overview now fills wide windows (up to 1440 pt).
  • Space flow on Overview: languages flow into Ready, Needs a reinstall and In active projects.
  • Cache map on the Caches screen: a treemap of every cache, sized by bytes; clearable ones tick on click.
  • Keyboard navigation through projects and their folders; switches for the character and automatic update checks.
  • README screenshots in light and dark.

Engine

  • Sizes that share space with files elsewhere (hard links, pnpm and bun stores) are flagged shared and shown as "up to" (F8).
  • Folders refused by macOS privacy protection are reported with reason protected; the Full Disk Access banner counts these instead of matching English error text.

Security

  • Move and restore go through open folder handles (rustix, already in the lock for tests; no unsafe): a folder swapped for a link after the final check cannot redirect a move, and a restore never replaces anything, not even an empty folder.
  • A repository with an impossible commit date no longer crashes the scan.
  • A folder a repository keeps is protected even inside a cleanable folder, ignoring case.
  • Relative PATH entries are ignored, so a repository's own git or npm is never run.
  • The quarantine store must be owned by the user and not writable by others; its folders are owner-only and links are not followed.
  • OPENSWEEP_BIN works only in Debug builds; Dev Stack names with shell characters get no copyable command.
  • A timed-out cache tool is stopped with its whole process group, so a helper cannot hang the engine.

Quality

  • Dev Stack's process runner no longer blocks Swift concurrency threads; a failed refresh keeps the project and shows the error; a failed scan shows the engine's stderr; unused code removed.

CI and releases

  • cargo audit on every engine change and weekly (no known vulnerabilities today).
  • The release job runs in the protected release environment (owner approval, v* tags only); signing secrets live there. scripts/protect-releases.sh sets this up, and a tag rule lets only an admin create, move or delete v* tags.

Every safety change has a test that fails without it; docs/SAFETY-SPEC.md is updated.

Test plan

  • cargo fmt --check, clippy -D warnings, cargo test, rules-check (macOS)
  • cd CleanCore && swift test (21 tests)
  • scripts/check-swift-never-deletes.sh
  • Xcode UI suite (13 tests) and the Debug QA walkthrough, dark and light
  • Real clean and restore of a throwaway project in the home folder
  • Engine checks on Linux (CI): the new handle-based move uses /proc/self/fd there

🤖 Generated with Claude Code

Finjineersdev and others added 20 commits November 20, 2026 23:56
Replace the drifting glow and dot-grid backdrop with a solid canvas; tighten
the palette to three fills and a hairline. Language cards lose the gradient
fill and the 3D tilt for a small lift and a border in their colour. Doodles
go; scanning uses the system progress bar. Entrances and screen changes no
longer blur and move less. Characters rest instead of bobbing. Buttons press
in and brighten on hover. Settings text uses the muted token.

The accessibility audit's contrast findings on the gradient are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Refresh button had no name while it showed only a spinner, and the
list of tools was an unnamed container. The audit's pixel contrast check
now samples the darkest and brightest 1%, so small chip text is measured
reliably.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings can hide the character and cleaning stats (F19) and turn off
Sparkle's automatic update check. Debug walkthrough takes
OPENSWEEP_QA_APPEARANCE=light|dark. Second gap review recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hard links to files outside a folder are now seen, and node_modules
installed by pnpm or Bun (which clone or link from a store) is marked
shared. plan and scan report "shared"; the app shows "up to" and says
cleaning may free less.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Up and Down choose a project, Right enters its folders, Up, Down and Space
tick them, Left goes back. The selected project row reports itself as
selected to VoiceOver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One block per cache, sized by bytes, with its share of the total. Blocks
that can be cleared tick the cache like its checkbox; measured-only ones
are dimmed with a dashed edge, explained by a legend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A flow diagram shows each language's space flowing into Ready to clean,
Needs a reinstall and In active projects, sized by bytes. Hovering a
language highlights its bands and the ring. Overview now uses up to
1440 points of width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A commit time no clock can hold no longer panics and ends the scan.
- A folder a repository keeps also keeps any artifact containing it,
  compared ignoring case.
- The main store must belong to the home folder's owner and be writable
  by no one else; store, run and item folders are created 0700, and a run
  or items folder that is a link is never followed by restore or purge.
- git and cache tools are found through absolute PATH folders only.
- The reverify-to-rename window is recorded as a known limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- OPENSWEEP_BIN is read in Debug builds only: the engine runs with the
  app's Full Disk Access.
- Dev Stack offers a copyable removal command only for names that are a
  single plain shell word.
- Release: the Developer ID key is usable by codesign only and its
  keychain is deleted before notarization and the third-party steps.
- SECURITY.md records that builds without a Developer ID are unhardened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tale mount

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Shell.run drains stdout and stderr together on GCD threads instead of
  blocking Swift's concurrency threads; a chatty stderr no longer stalls.
  It passes only absolute PATH folders to tools.
- A failed project refresh shows the error and keeps the project; only a
  project whose folder is gone leaves the list.
- The scheduled clean is decided by its own rescan, not an older error.
- A failed scan reports the engine's stderr.
- Dev Stack sizing follows the engine's rules (stays on one volume, hard
  links keyed by device and inode); ~ replaces only a whole home folder.
- Removed unused code: ScanTelemetry, most of CMConstants, Docker image,
  build-cache and container-size reads (docker ps --size was slow).
- UI tests: the purge confirmation no longer burns 10 s; the remaining
  sleeps say why they are there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
reverify and the rename were two steps on a path: a folder on the way
swapped for a link in between could redirect the move, and a restore
could replace an empty folder created at the destination. The move now
opens the parent once, checks the entry under that handle is still the
approved directory, and renames from it without replacing anything;
restore checks the handle's real path the same way. rustix (already in
the lock for tests) provides the calls without unsafe code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A helper the tool started (npm runs node) kept stderr open after the tool
was killed, so the engine waited until the helper ended. The tool now runs
in its own process group, the whole group is stopped at the time limit,
and stderr is never waited on for more than two seconds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Skipped folders refused with EPERM now have the reason "protected", so
the app's Full Disk Access banner counts them from the engine's word
instead of matching English error text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release job now runs in the release environment, which waits for the
owner's approval and accepts only v* tags; signing secrets live there, not
at repository level. scripts/protect-releases.sh sets this up and adds a
tag rule so only an admin can create, move or delete v* tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Finjineersdev
Finjineersdev merged commit 1bb9317 into main Nov 21, 2026
6 checks passed
@Finjineersdev
Finjineersdev deleted the opensweep-m0 branch November 22, 2026 10:54
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