Skip to main content
This page is for contributors who want to understand or modify the source code.

Source Structure


Layer Architecture


RuleEngine Internals

Operator Registry

Operators are stored in a Map:

Cache Key Generation

Context ID is derived from:
  1. Explicit _id field
  2. Explicit id field
  3. Hash of context values

Operator Execution

All operators follow this signature:

Example: eq operator


StatefulRuleEngine Pipeline


Concurrency Strategies


Error Recovery

Three components work together:

Circuit Breaker States

Retry Strategies


History Managers

Use PerRuleHistoryManager for production with multiple rules.

Security Checks

PathResolver blocks these patterns:

Depth & Complexity Limits


Design Patterns


Key Files


Contributing

Contributing Guide

How to submit changes

Testing Guide

How to write tests