|
|
f6c954aa23
|
test(19-01): add classifyCampaign orchestrator tests (RED)
- Mock ./postgres-client (query-only) and ./mimecast-blast-radius
(getBlastRadius), routing staged rows by SQL substring per call
- Named tests for CLASSIFY-01 (returns exactly one verdict), D-02
(append-only INSERT, no ON CONFLICT), D-06 simulation allowlist
(KnowBe4 From-match + BSN Return-Path-match), positive-path D-03 THREAT,
D-03 known-bad-indicator OR-branch (auth pass, shared indicator across 2
messages), D-04 SPAM/UNWANTED split, and CLASSIFY-06 evidence bounding
|
2026-07-16 08:20:49 -04:00 |
|
|
|
f4e6baf505
|
test(19-01): add failing tests + synthetic fixtures for classifier pure rule functions
- campaign-classifier.test.ts: describe blocks for domainMatchesAllowlist,
isKnownSimulationSender, effectiveAuthResults, hasHardAuthFail,
computeConfidence, mapVerdictToActions, computeRequiresApproval
- campaign-classifier.fixtures.ts: synthetic KnowBe4/BSN simulation fixtures
plus non-simulation threat/clean-spam/suspicious-unwanted fixtures
- Covers CLASSIFY-01/02/03/04/06 pure-function behavior (T-19-01, Pitfall 1/3)
|
2026-07-16 08:14:51 -04:00 |
|