[feat] 13-Language Heuristic Classifier & Safety Tier Engine #46

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

Parent

#44: [spec] Port MailSweep to Synchronous Rust

What to build

Implement the complete 13-European-language heuristic rules engine compiled statically with std::sync::LazyLock and regex. Enforce the inviolable Safety Tier hierarchy (Tier 0 through Tier 5) over Clutter Tiers with 100% parity against the Python classifier oracle.

Acceptance criteria

  • 13 European language dictionaries (Nordic, Baltic, Western, Southern) and keyword regex sets compiled with std::sync::LazyLock.
  • Inviolable Safety Tier Precedence Hierarchy enforced: Tier 0 (Domain Immunity), Tier 1 (Human Conversations), Tier 2 (Attachments), Tier 3 (Invoices/Receipts), Tier 4 (Critical Records), Tier 5 (Shipping/Calendar).
  • Clutter Tiers accurately classify newsletters, surveys, social pings, and promotions.
  • Gmail X-GM-LABELS enriched and integrated into classification scoring.
  • Classifier unit test matrix passes with 100% parity against Python reference results.
  • cargo test, cargo fmt --check, and cargo clippy --all-targets --all-features -- -D warnings pass with 0 warnings.

Blocked by

  • #45: [feat] Core Domain Types, Configuration & RFC Codecs
## Parent #44: [spec] Port MailSweep to Synchronous Rust ## What to build Implement the complete 13-European-language heuristic rules engine compiled statically with `std::sync::LazyLock` and `regex`. Enforce the inviolable Safety Tier hierarchy (Tier 0 through Tier 5) over Clutter Tiers with 100% parity against the Python classifier oracle. ## Acceptance criteria - [ ] 13 European language dictionaries (Nordic, Baltic, Western, Southern) and keyword regex sets compiled with `std::sync::LazyLock`. - [ ] Inviolable Safety Tier Precedence Hierarchy enforced: Tier 0 (Domain Immunity), Tier 1 (Human Conversations), Tier 2 (Attachments), Tier 3 (Invoices/Receipts), Tier 4 (Critical Records), Tier 5 (Shipping/Calendar). - [ ] Clutter Tiers accurately classify newsletters, surveys, social pings, and promotions. - [ ] Gmail `X-GM-LABELS` enriched and integrated into classification scoring. - [ ] Classifier unit test matrix passes with 100% parity against Python reference results. - [ ] `cargo test`, `cargo fmt --check`, and `cargo clippy --all-targets --all-features -- -D warnings` pass with 0 warnings. ## Blocked by - #45: [feat] Core Domain Types, Configuration & RFC Codecs
Author
Owner

Implemented 13-language heuristic classifier and safety tier engine in synchronous Rust (commit 939622d). All 28 Rust tests and 142 Python oracle tests pass.

Implemented 13-language heuristic classifier and safety tier engine in synchronous Rust (commit 939622d). All 28 Rust tests and 142 Python oracle tests pass.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Lavisys/mailsweep#46
No description provided.