Files
cleveragents-core/tests
freemo 3302298de3 fix(structural_validator): fix redundant dispatch logic and case-sensitive wildcard matching
- Issue 1: Removed redundant dict-based dispatch in _execute_check that duplicated
  behavior for PRESENT and incorrectly bypassed FIELD_PRESENT to _match_present.
  Replaced with clean explicit if/elif chain.

- Issue 2: Fixed double-lowercase bug in _match_present wildcard fallback where
  value.lower() was checked against lowered text even when case_sensitive=True,
  causing false PARTIAL results for case-sensitive checks. Now properly separates
  case-insensitive and case-sensitive branches using if/elif instead of OR short-circuit.

- Added comprehensive test suite (76 tests) covering:
  Invariant domain models, enforcer functions, structural validator with weighted
  scoring, fix-then-revalidate orchestration loop, and validation pipeline features.
2026-06-14 13:17:17 -04:00
..