Home

boring / v2

publicBoring-Software-Inc/v2
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

feat(rules): validate custom-rule args by signal kind, fail equals loud

3 months ago

02912da
Authored
grim7/23/2026, 10:39:41 AM
Derive an arg-type check from the compared kind in storedRuleIssue: a number
verb takes numbers, a list verb a non-empty list of the right element type, a
boolean verb a boolean. Rejected with a plain message on the save path, not left
to throw at evaluation. Fix the silent case too: equals/not on text and boolean
now route args through textArg/booleanArg and throw on a wrong type instead of
===-mismatching to a quiet false that never fires.

Parentc0f8911

4 files changed
  • packages/sdk/src/evaluate.test.ts+25−0
  • packages/sdk/src/evaluate.ts+12−2
  • packages/sdk/src/stored-rule.test.ts+58−0
  • packages/sdk/src/stored-rule.ts+65−1