Loading
fix: emit WARN on exceeded :block rules; strengthen assertion coverage
Addresses adversarial review findings from round 1:
BLOCKER-1/2: log_rule now emits severity WARN via @logger.warn when a
:block rule is exceeded; INFO otherwise. Tests added for Scenario 11
in both evaluator_spec and rate_limit_spec, including a :log-exceeded
counter-case confirming INFO is preserved.
CONCERN-1: Scenario 4 WARN test now parses JSON and asserts
original_name and sanitized_name fields explicitly.
CONCERN-2: Added test for production name-too-long path: 65-char name
is truncated to 64, written to key, WARN includes original/sanitized.
CONCERN-3: Duplicate WARN test now asserts dropped_occurrence: 2.
Co-Authored-By:
Claude Sonnet 4.6 <noreply@anthropic.com>