[feat] Mailbox Pipeline & Safety Auditor (End-to-End Orchestrator) #49

Closed
opened 2026-08-30 17:58:52 +03:00 by jalmari · 0 comments
Owner

Parent

#44: [spec] Port MailSweep to Synchronous Rust

What to build

Implement MailboxPipeline deep coordinator orchestrating scan, plan, audit, backup, execute_cleanup, and restore under a single testable interface enforcing all domain safety invariants.

Acceptance criteria

  • MailboxPipeline encapsulates end-to-end workflow behind a single clean interface.
  • Message deduplication across virtual folders and Gmail categories using canonical deduplication keys.
  • Dry-run Safety Auditor evaluates cleanup plans and flags potential safety violations before execution.
  • Non-destructive cleanup relocates clutter messages to Trash with atomic UIDVALIDITY checks.
  • SweepSummaryReport captures comprehensive execution metrics across all pipeline stages.
  • cargo test, cargo fmt --check, and cargo clippy --all-targets --all-features -- -D warnings pass with 0 warnings.

Blocked by

  • #46: [feat] 13-Language Heuristic Classifier & Safety Tier Engine
  • #47: [feat] Synchronous Mailbox Gateway & Incremental Scan Cache
  • #48: [feat] Archive Subsystem (Streaming ZIP & SHA-256) and Restore Engine
## Parent #44: [spec] Port MailSweep to Synchronous Rust ## What to build Implement `MailboxPipeline` deep coordinator orchestrating `scan`, `plan`, `audit`, `backup`, `execute_cleanup`, and `restore` under a single testable interface enforcing all domain safety invariants. ## Acceptance criteria - [ ] `MailboxPipeline` encapsulates end-to-end workflow behind a single clean interface. - [ ] Message deduplication across virtual folders and Gmail categories using canonical deduplication keys. - [ ] Dry-run Safety Auditor evaluates cleanup plans and flags potential safety violations before execution. - [ ] Non-destructive cleanup relocates clutter messages to Trash with atomic `UIDVALIDITY` checks. - [ ] `SweepSummaryReport` captures comprehensive execution metrics across all pipeline stages. - [ ] `cargo test`, `cargo fmt --check`, and `cargo clippy --all-targets --all-features -- -D warnings` pass with 0 warnings. ## Blocked by - #46: [feat] 13-Language Heuristic Classifier & Safety Tier Engine - #47: [feat] Synchronous Mailbox Gateway & Incremental Scan Cache - #48: [feat] Archive Subsystem (Streaming ZIP & SHA-256) and Restore Engine
Sign in to join this conversation.
No description provided.