[deepen] Encapsulate Safety Verification Seam on Classification Engine #34
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#35 [deepen] Add Unified Offline Operations to Mailbox Pipeline
Lavisys/mailsweep
Reference
Lavisys/mailsweep#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Part of #33
What to build
Add public safety query methods to
ClassificationEngine(is_critical_subject,audit_item_safety) and updateSafetyAuditorto evaluate safety findings strictly through the public engine interface without accessing private regex attributes (_crit_re).Acceptance criteria
ClassificationEngineexposesis_critical_subject(subject: str) -> boolpublic methodSafetyAuditoruses publicClassificationEngineinterface with zero private attribute accessBlocked by
None (can start immediately).
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.