[classification-safety-hardening] #01: Promote Security & Login Alerts to Safety Tier 4 (Immunity) #9

Closed
opened 2026-08-28 17:32:17 +03:00 by jalmari · 0 comments
Owner

Feature: classification-safety-hardening | Source: .scratch/classification-safety-hardening/issues/01-security-and-login-alerts-immunity.md

01: Promote Security & Login Alerts to Safety Tier 4 (Immunity)

What to build: Move multi-lingual security alerts, login notifications, 2FA verification codes, and password resets from clutter (CLUTTER_SYSTEM_ALERT \rightarrow TRASH) into protected Safety Tier 4 (TIER_4_CRITICAL_LEGAL \rightarrow KEEP), ensuring users never lose critical security notices.

Blocked by: None (can start immediately)

Status: ready-for-agent

  • DEFAULT_EPHEMERAL_ALERT_PATTERNS / _alert_re in ClassificationEngine.classify() returns action="KEEP", reason="Security / Login Alert / Verification", and is_clutter=False under Safety Tier 4.
  • Security notices with List-Unsubscribe or bulk headers are protected from promo clutter rules.
  • Unit tests in test_mailsweep.py verify that login alerts, 2FA codes, and password reset emails across multiple languages are preserved in KEEP.
  • Full test suite passes.
**Feature**: `classification-safety-hardening` | **Source**: `.scratch/classification-safety-hardening/issues/01-security-and-login-alerts-immunity.md` # 01: Promote Security & Login Alerts to Safety Tier 4 (Immunity) **What to build:** Move multi-lingual security alerts, login notifications, 2FA verification codes, and password resets from clutter (`CLUTTER_SYSTEM_ALERT` $\rightarrow$ `TRASH`) into protected Safety Tier 4 (`TIER_4_CRITICAL_LEGAL` $\rightarrow$ `KEEP`), ensuring users never lose critical security notices. **Blocked by:** None (can start immediately) **Status:** `ready-for-agent` - [x] `DEFAULT_EPHEMERAL_ALERT_PATTERNS` / `_alert_re` in `ClassificationEngine.classify()` returns `action="KEEP"`, `reason="Security / Login Alert / Verification"`, and `is_clutter=False` under Safety Tier 4. - [x] Security notices with `List-Unsubscribe` or bulk headers are protected from promo clutter rules. - [x] Unit tests in `test_mailsweep.py` verify that login alerts, 2FA codes, and password reset emails across multiple languages are preserved in `KEEP`. - [x] Full test suite passes.
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#9
No description provided.