Behavioral-Equivalence Gate • Isolated Subprocess Sandbox

Indian B2B GST & Tiered Discount Billing Engine

FinTech / ERP
Legacy Code (Source of Truth)
calculate_invoice_legacy.py
1
AI-Migrated Code
calculate_invoice_migrated.py
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.

Step 02

Extract Business Rules (Gemini)

Uses Gemini 2.5 Flash to uncover tax slabs, rounding precision, and exception rules from legacy code.

Step 03 • Behavioral Equivalence Gate

Side-by-Side Sandbox Verdict