LexQLexQ

Blog

Engineering insights on decision operations, Impact Simulation, and business logic management.

openaithresholdsdecision-replaybusiness-rulesrule-engine

The Decisions API Returned 0.62. Now What?

OpenAI's Decisions API and TypeSafe's Jev return a probability and leave the action to your application. This guide sets a refund threshold from the refund amount and the review cost, keeps it in a business rule, and stores each number so a new threshold can be tested on past calls.

November 1, 202623 min readRead
ai-agentsapprovalsbusiness-rulesrule-engine

AI Agent Action Approval: Limits a System Prompt Can't Enforce

Refund and credit limits written into an AI agent's system prompt hold only while the model follows them. This guide moves those limits into rules that check each tool call before it runs, using a support agent's refunds and LexQ's AI Agent Action Approval template.

October 24, 202615 min readRead
decision-replaysimulationrule-enginebusiness-rules

Decision Replay or Impact Simulation: What to Compare a Rule Change Against

Impact Simulation compares two rule versions on the same inputs, while Decision Replay compares a candidate version with the decisions customers actually got. On one day of card transactions they gave different counts, and both were right.

October 23, 202611 min readRead
rule-engineperformanceobservabilitylatency

Per-Rule Latency: The Measurement That Rule Engines Leave to You

A trace tells you the decision was slow but not which of the rules inside it was, and none of the seven rule engines whose documentation was surveyed computes rule-level percentiles itself.

August 20, 202613 min readRead
formal-verificationauthorizationcedarrule-enginebusiness-rules

Cedar Verifies Who Can Access What. Who Verifies What Decision Gets Made?

Cedar brought formal verification to authorization policy with Lean and automated reasoning. Some rule engines check decision tables, but among the engines reviewed, none documents a proof over business rules. Proving things about a discount, a loan decision, or a fraud threshold is the harder problem, and so far LexQ has only a problem statement and a design direction for it.

August 7, 20269 min readRead
formal-verificationbusiness-rulesrule-enginedecision-operations

Why Business Decisions Need Formal Verification

Tests and simulation answer what happened on inputs you already have, but not what happens on inputs nobody has sent yet. Unreachable rules, conflicts nobody noticed, and uncovered gaps belong to the ruleset itself rather than to any one input, so ruling them out takes a proof over every input.

August 7, 202611 min readRead
saasfeature-entitlementplan-limitsfeature-flagspricing-tiers

Feature Entitlement & Plan Limits: Stop Hardcoding Your Pricing Tiers

When plan tiers are hardcoded across services, every pricing change is a deploy. Keep feature flags for releases, and put plan access in versioned rules so a new tier ships as a rule change.

July 15, 202610 min readRead
audit-traildecision-observabilitycompliancebusiness-rules

The Audit Trail Problem: Proving Which Rule Made Which Decision

A blocked transfer leaves one log line. Months later, an auditor asks why, and git can't answer, because git keeps the history of your code and nothing about each decision. What a real decision audit trail records, and why it has to be immutable.

July 5, 20267 min readRead
decision-operationsbusiness-rulesrule-enginedeveloper-tools

What Is a Decision Operations Platform? (And When Your Team Needs One)

Pricing, eligibility, and fraud rules change constantly but live trapped in application code. A Decision Operations Platform gives business decisions their own lifecycle. What the category is, and when you need one.

June 29, 20268 min readRead
fintechlimitsunderwritingapprovalsrule-engine

Rule Engine for Fintech: Limits, Underwriting, and Approval Decisions

Fintech limits, underwriting thresholds, and approval decisions change with every regulation and every risk model, and break when they're buried in service code. The deadline comes from a regulator, the threshold belongs to risk, and an auditor will ask which threshold was in force on a given day.

June 25, 20269 min readRead
ecommercediscountspromotionseligibilityrule-engine

Rule Engine for E-Commerce: Discounts, Promotions, and Eligibility

E-commerce discounts, promotions, and eligibility multiply faster than almost any other business logic, and break in checkout code. Where these rules should live, why the hardcoded version fails, and how to ship promotions without margin surprises.

June 19, 20268 min readRead
architecturebusiness-logicrule-engine

Config Files, Feature Flags, or Something Else? Managing Business Logic at Scale

Config files, feature flags, a rules table you build, and a rules service move more and more of a discount rule out of code. This guide picks one by how often the rules change and whether support asks why an order got its discount.

June 7, 202614 min readRead
pricing-logicbusiness-rulesrule-enginesimulationdecision-operations

Your If-Else Pricing Logic Will Break. Here's What to Do Before It Does.

Refactoring a pricing if-else block makes the code cleaner, but every pricing change still needs a deploy, and nobody can see its effect in advance. The fix is to move the rules into data and simulate each change against past orders before it ships.

May 12, 202611 min readRead
rule-enginecomparisondrools

Drools vs Cloud Rule Engines: Self-Hosted vs Managed in 2026

Drools is the open-source default, but its README doesn't mention what self-hosting actually costs. This guide compares Drools with Camunda, GoRules, DecisionRules.io, and LexQ in 2026.

April 29, 202614 min readRead
business-rulesdeploy-pipelinerule-enginedecision-operations

How to Stop Deploying Code for Every Business Rule Change

Your business logic shouldn't inherit the full weight of your deploy pipeline. Three ways to decouple rules from code, and when each one fails.

April 21, 202611 min readRead
rule-enginebusiness-rulesarchitecture

Hardcoded Rules vs Rule Engine: When to Make the Switch

How to tell when hardcoded if-else business rules have become a liability, and how to move them into a rule engine one rule at a time.

April 13, 20269 min readRead
rule-engineengineeringbusiness-rulesbest-practices

5 Signs Your Team Needs a Rule Engine

Not every team needs a rule engine. But if three or more of these five signs sound familiar, you're probably overdue for one.

April 5, 20266 min readRead
mcpai-agentsrule-engineautomation

Managing Business Rules with AI Agents: What MCP Changes

When business rules live outside application code, an AI agent can create, test, and deploy them. The agent calls the rule management API over the Model Context Protocol (MCP), and routine rule changes stop waiting on an engineer.

April 4, 20267 min readRead
rule-enginecomparisonbusiness-rules

Nected Alternatives: GoRules vs Nected vs LexQ (2026)

A comparison of Nected with two alternatives, GoRules and LexQ, on rule limits, simulation on past executions, versioning, AI agent support, and pricing.

April 3, 202617 min readRead
rule-enginesimulationbusiness-rules

Why I Built a Rule Engine with Built-in Simulation

Every rule change is a leap of faith. I spent six years watching teams deploy blind, so I built a rule engine where you can see the impact before it hits production.

April 2, 20266 min readRead