Skip to content

M8: growth monitor, scheduled cleanups, guided compaction, localization - #1

Merged
tanzir71 merged 2 commits into
mainfrom
m8-monitor-schedules-guides
Nov 18, 2026
Merged

tanzir71 merged 2 commits into
mainfrom
m8-monitor-schedules-guides

Conversation

@tanzir71

Copy link
Copy Markdown
Owner

M8 ("Later" list in docs/MILESTONES.md): the items that were still open after the first pass.

Checklist (M8+ items)

  • Tray monitor and growth alerts ("~\.codex grew 12 GB this week")
  • Scheduled cleanups for Safe-only rules (opt-in, per rule)
  • pare CLI and read-only MCP server (shipped earlier)
  • Docker Desktop / WSL guided compaction (docker system prune, wsl --shutdown, diskpart compact vdisk)
  • Stale git worktree cleanup (shipped earlier)
  • "Installer already installed" matching (shipped earlier)
  • Windows Update cleanup via DISM /StartComponentCleanup (admin)
  • Localization (English + Spanish, UI and core text)

Safety

  • Invariant 1: the monitor only reads. Scheduled cleanups happen only for rules the user turns on one by one. Only built-in, verified, Safe, non-admin rules without detectors qualify, and settings_set drops anything else. Tests: nothing_runs_without_a_schedule, scheduled_cleanup_removes_only_safe_old_unexcluded_items, only_builtin_verified_safe_rules_are_schedulable.
  • Invariants 2 and 8: scheduled runs use the normal executor: the same disposal, the operation log written before anything runs, and "Scheduled cleanup" as the History title. Guide actions are logged before they run.
  • Invariant 3: schedules go through the full safety pass: 24 h recency, in use, and the user's "Always keep" list.
  • Two copies of Pare: a lock file keeps two running copies from both running the same scheduled cleanup (concurrent_passes_dont_double_run).
  • Guide actions: only allow-listed programs, only built-in rules, and only on a click with a confirm step. Admin steps run only when Pare is already elevated; Pare never asks for elevation for them and otherwise shows the command to copy. Compaction refuses files that aren't .vhd/.vhdx, reparse points, and disks that are open.
  • CLAUDE.md "ask before": no service, no scheduled task, no startup entry. The monitor and schedules run only while Pare is open in its window or the notification area. New dependency: tauri-plugin-notification (pure Rust on Windows).
  • WinSxS: the DISM guide has no paths and makes no size claim. Pare never passes /ResetBase.

Localization

  • UI: catalogs in apps/desktop/src/i18n/ (en, es), with a test for key and placeholder parity.
  • Core: pare_core::i18n with crates/pare-core/locales/es.toml. tests/i18n.rs fails on any untranslated rule text or tr/trf string, on mismatched placeholders, and on stale entries.

Not done here

  • Fast-mode (M6) numbers in docs/BENCHMARKS.md still need an administrator terminal: scripts/bench-fast-mode.ps1.
  • Code signing, Microsoft Store and the winget submission need the maintainer's accounts. A winget manifest for v0.1.0 with the real SHA-256 is in packaging/winget/.

🤖 Generated with Claude Code

tanzir71 and others added 2 commits November 18, 2026 21:40
…guide actions

- pare-core monitor: per-rule size history, weekly growth alerts, opt-in
  schedules for built-in verified Safe rules only (same scan, safety pass,
  exclusions and op log as a manual clean), pass lock across instances.
- Guide actions: docker system prune, wsl --shutdown, diskpart compaction
  of Docker/WSL disks and DISM StartComponentCleanup, run only on a click;
  admin steps only when Pare is already elevated, otherwise shown as a
  command to copy. Allow-listed programs, built-in rules only, logged.
- Desktop: notification area icon (opt-in), monitor timer while Pare runs,
  notifications, Settings sections, Home growth banner, runnable guide
  steps in the details panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…st for v0.1.0

- Desktop UI: message catalogs (en source, es complete) with plural rules,
  locale-aware numbers and dates, language picker (Match Windows / English /
  Español); shared components take optional labels.
- pare-core i18n: rule descriptions, card titles, detector explanations,
  cleanup messages and the notification area menu translate via English-keyed
  catalogs; locale_set switches the language for new scans. A test fails on
  untranslated strings, placeholder mismatches or stale entries.
- Docs: rule actions/unmeasured/schedules in RULES.md, monitor and i18n in
  ARCHITECTURE.md, M8 status, changelog, fast-mode benchmark script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tanzir71
tanzir71 merged commit cee8f0f into main Nov 18, 2026
2 checks passed
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