What's New
Verdict Convenience Extensions (verdikt-core)
failureCount- number of failures (0 if passed)failedRuleNames- list of failed rule names (empty if passed)hasFailure(ruleName)- check if a specific rule failedfailuresMatching { }- filter failures by predicate
Engine Event Collector (verdikt-engine)
EngineEventsealed class with structured event types for real-time observabilityEngineEventCollectorSAM interface for receiving events during evaluationCompositeCollectorfor combining multiple collectors- Optional
collectorparameter onevaluate()andevaluateAsync()(backward compatible)
Flow Extensions (verdikt-engine)
evaluateAsFlow(facts)- returnsFlow<EngineEvent>for sync evaluationevaluateAsyncAsFlow(facts)- returnsFlow<EngineEvent>for async evaluation
Other
EngineResult.failuresOfType<T>()for type-safe failure retrieval- Enhanced Guard documentation with "Guard vs Condition" distinction
See CHANGELOG.md for full details.