+64
−47
+107
−20
File changed.
Preview size limit exceeded, changes collapsed.
Loading
Address reviewer feedback on the rule evaluation model:
- Rename the :block rule action to :limit; rule actions are now
:limit/:log/:skip and Result#action is only ever :block or :allow.
An exceeded :log rule now reports action :allow (exceeded? stays true).
- Collect every counted rule evaluation inside Result; the evaluator
loop returns the accumulator and Result reports the most constraining
evaluation itself.
- Make Result::Evaluation comparable (Comparable, #<=>) ranking
blocking first, then exceeded, then fewest remaining, replacing
more_constraining/constraint_rank.
calls_total keeps the existing action label vocabulary
(allow/block/log/skip), so dashboards are unaffected.
Co-Authored-By:
Claude Fable 5 <noreply@anthropic.com>
File changed.
Preview size limit exceeded, changes collapsed.