Private
Public Access
0
0
Files
manual_slop/tests
ed c5dbfd6edf test(audit): add 3 Heuristic E regression tests (TIER1_REVIEW Phase 9 redo)
3 regression tests for the new Heuristic E (narrow + structured error carrier):

1. test_heuristic_e_narrow_return_errorinfo_is_compliant
   - Asserts narrow except + return ErrorInfo(...) is classified as compliant
   - Accepts both INTERNAL_COMPLIANT (Heuristic E) and BOUNDARY_CONVERSION
     (existing creates_errorinfo check, fires first)

2. test_heuristic_e_narrow_dict_error_true_assign_is_compliant
   - Asserts narrow except + dict[error] = True is classified as compliant
   - The in-band error flag pattern (per Tier 1 directive)

3. test_heuristic_e_empty_default_args_is_NOT_compliant
   - NEGATIVE test: narrow except + args = {} must NOT be classified as compliant
   - Guards against future heuristic additions that would laundering the
     sliming empty-default pattern (per TIER1_REVIEW)

Total: 16 audit heuristic tests pass (13 existing + 3 new).
2026-06-20 11:59:20 -04:00
..