Skip to content

Rules 13+14: GetRangeThroughConvert detection, lazy spool threshold fix#344

Merged
erikdarlingdata merged 1 commit into
devfrom
fix/rules-13-14-improvements
Feb 27, 2026
Merged

Rules 13+14: GetRangeThroughConvert detection, lazy spool threshold fix#344
erikdarlingdata merged 1 commit into
devfrom
fix/rules-13-14-improvements

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • Rule 13: Now detects both GetRangeWithMismatchedTypes and GetRangeThroughConvert with distinct messages
  • Rule 14: Replaced confusing condition with clearer model — warn when cache hits (rewinds) < 5x cache misses (rebinds). Critical when hits < misses (net negative).

Test plan

  • Dashboard and Lite build clean
  • plan-b 32/32 tests passing

🤖 Generated with Claude Code

…umns

Rule 14: Fix lazy spool threshold — warn when cache hits < 5x misses

Rule 13 now detects both GetRangeWithMismatchedTypes (type mismatch)
and GetRangeThroughConvert (explicit CONVERT/CAST on column) with
distinct messages for each.

Rule 14 replaces the confusing rebinds*2 >= rewinds condition with
a clearer model: warn when rewinds < rebinds*5 (cache not earning
its overhead). Critical when rewinds < rebinds (net negative).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 640eb23 into dev Feb 27, 2026
@erikdarlingdata erikdarlingdata deleted the fix/rules-13-14-improvements branch February 27, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant