Define immutable built-in balance query rules for all production carrier presets and persist command, event, balance, and custom-rule state in SQLite.
Validate custom rules with Go RE2 before storage and preserve unsupported/product-specific cases explicitly instead of guessing query codes.