Verified Fix Active
FinTech / ERP
Legacy Code (Source of Truth)
calculate_invoice_legacy.py
1
AI-Migrated Code
calculate_invoice_migrated.py
1
Sample Production Inputs & Expected Outputs (JSON)
Seeded into Gemini Rule Extraction
1
AI-Generated Unit Tests (5 Happy-Path Tests)
Executed in Isolated Subprocess
1
Step 01
Run AI’s Own Unit Tests
Shows when AI-written tests pass 100% on normal inputs even though real customer edge cases fail.
AI tests only checked normal inputs and missed edge cases.
Step 02
Extract Business Rules (Gemini)
Uses Gemini 2.5 Flash to uncover tax slabs, rounding precision, and exception rules from legacy code.
Gemini Rule Extraction Unavailable
Tip: You can proceed directly to Step 3 (Run BehavLock Check) — it automatically runs 42 built-in boundary edge cases.
Auto-Ignored Random Fields:
View Generated Edge-Case Test Inputs
| # | Source | Rule | Input | Why It Matters |
|---|
Step 03 • Behavioral Equivalence Gate