[deepen] Encapsulate Safety Verification Seam on Classification Engine #34

Closed
opened 2026-08-30 12:36:39 +03:00 by jalmari · 1 comment
Owner

Parent

Part of #33

What to build

Add public safety query methods to ClassificationEngine (is_critical_subject, audit_item_safety) and update SafetyAuditor to evaluate safety findings strictly through the public engine interface without accessing private regex attributes (_crit_re).

Acceptance criteria

  • ClassificationEngine exposes is_critical_subject(subject: str) -> bool public method
  • SafetyAuditor uses public ClassificationEngine interface with zero private attribute access
  • All 13-language critical keyword tests pass through the updated interface
  • Test suite passes with zero regressions

Blocked by

None (can start immediately).

## Parent Part of #33 ## What to build Add public safety query methods to `ClassificationEngine` (`is_critical_subject`, `audit_item_safety`) and update `SafetyAuditor` to evaluate safety findings strictly through the public engine interface without accessing private regex attributes (`_crit_re`). ## Acceptance criteria - [ ] `ClassificationEngine` exposes `is_critical_subject(subject: str) -> bool` public method - [ ] `SafetyAuditor` uses public `ClassificationEngine` interface with zero private attribute access - [ ] All 13-language critical keyword tests pass through the updated interface - [ ] Test suite passes with zero regressions ## Blocked by None (can start immediately).
Author
Owner

Implemented public safety query methods is_critical_subject and udit_item_safety on ClassificationEngine. Updated SafetyAuditor to evaluate safety findings strictly through the public engine interface without accessing private regex attributes. All 123 tests pass with zero regressions.

Implemented public safety query methods is_critical_subject and udit_item_safety on ClassificationEngine. Updated SafetyAuditor to evaluate safety findings strictly through the public engine interface without accessing private regex attributes. All 123 tests pass with zero regressions.
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#34
No description provided.