LexQLexQ

Browse by topic

Trust

17 posts and patterns

Blog

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 read
Blog

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 read
Blog

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 read
Blog

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 read
Patterns

Screening Insurance Eligibility by Age and Region with BLOCK Rules

A filing change lands in one version instead of three codebases, and a declined application names the screen that stopped it.

July 20, 202610 min read
Blog

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 read
Patterns

Deciding Subscription Proration with a Time-Travel Audit

Proration treatments move into versioned rules, so a disputed charge is checked against the policy in force that day.

July 7, 202614 min read
Blog

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 read
Blog

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 read
Patterns

Centralizing Plan-Tier Feature Entitlement with BLOCK Rules

One entitlement decision per feature, consulted by every gate, with every denial carrying its reason.

June 29, 202612 min read
Blog

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 read
Patterns

Adjudicating Credit Applications with a Priority-Ordered Mutex Group

A pattern that sends each credit application to approval, decline, or referral and records which rule produced the decision.

June 24, 202615 min read
Blog

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 read
Patterns

Enforcing KYC-Tiered Transfer Limits with BLOCK Rules

One limit per verification level, in force on every transfer path, with the reason recorded the moment a transfer is stopped.

June 12, 202610 min read
Patterns

Resolving VIP Tier Discount Stacking with a Mutex Group

A pattern that guarantees at most one discount applies when tier discounts and seasonal campaigns collide.

June 1, 202613 min read
Blog

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 read
Blog

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 read