The first formal verifier for Flagsmith targeting rules. Encodes segments, overrides, priorities, and percentage splits into Z3 mathematical logic. Detects subtle regression overlaps in 24 milliseconds where random sampling of 2,000 users finds nothing.
Teams typically write unit tests or sample 2,000 synthetic users to check if any retired EU user gets the forbidden new_pricing flag.
FlagProof models every segment, override priority, and percentage split as symbolic first-order logic and asks Z3 if any possible user violates the rule.
When an AI agent (like Claude Code) tries to modify feature flags via the official Flagsmith MCP server, FlagProof Interlock intercepts the tool call, constructs the draft environment diff, and verifies invariants before anything touches Flagsmith.
create_segment_override(feature="new_pricing", segment="beta_pro").beta_pro overrides eu_legacy_retired for EU Pro users.usr_c9e2b104{"region": "EU", "plan": "pro", "signup_year": 2021, "app_build": 430}FlagProof runs 100% offline without needing a Flagsmith account or LLM API keys.
Mathematical proof replaces guesswork when deploying feature flags with AI agents.
Every violation found by the solver is immediately replayed through the real flagsmith-flag-engine. If the engine doesn't agree, it is never reported as a violation.
Invariants are checked across two independent mathematical theorem provers: Microsoft Z3 and Stanford cvc5. Both must agree before a proof certificate is stamped.
A native PreToolUse hook that protects production. AI agents can propose changes, but cannot apply unsafe overrides that violate organizational policy.
When an invariant is violated, flagproof fix synthesizes candidate fixes, mathematically proves they resolve the violation without breaking existing rules, and presents them for human review.
Proves that multivariate A/B experiment arms obey invariants across all user cohorts before traffic is allocated, detecting cohort collisions before rollout.
Ships as a standalone CLI, GitHub Action, and 9-tool MCP server. No databases, no external servers, no cloud data leaks.