Verification
Prove it does what the old system did
Illustrative walkthrough
One rule, four steps
Illustrative sampleIllustrative sample code, written for this page. Not customer code and not output from a real engagement.
A COBOL paragraph that decides whether a claim pays
The decision is real business logic, but it lives in a paragraph name and a few literals.
* ILLUSTRATIVE SAMPLE - NOT CUSTOMER CODE
2100-CALC-PAYOUT.
EVALUATE TRUE
WHEN CLM-TYPE = 'AU' AND POL-TIER = 'G'
MOVE 250 TO WS-DEDUCT
WHEN CLM-TYPE = 'AU'
MOVE 500 TO WS-DEDUCT
WHEN OTHER
MOVE 1000 TO WS-DEDUCT
END-EVALUATE
IF CLM-AMOUNT > WS-DEDUCT
COMPUTE WS-PAYOUT = CLM-AMOUNT - WS-DEDUCT
SET CLAIM-PAYABLE TO TRUE
ELSE
MOVE ZERO TO WS-PAYOUT
SET CLAIM-NOT-PAYABLE TO TRUE
END-IF.The same decision, in words the business can check
The business analyst agent writes the rule and links it to the source lines. A claims expert confirms it or corrects it.
BR-017 Claim payout after deductible
Source: 2100-CALC-PAYOUT, lines 3–16
- Auto claims on a Gold-tier policy carry a 250 deductible.
- All other auto claims carry a 500 deductible.
- All other claim types carry a 1,000 deductible.
- A claim pays only when the claimed amount is greater than the deductible.
- Payout equals the claimed amount minus the deductible. A claim equal to the deductible pays nothing.
Reviewed by a claims expert (illustrative)
Generated from the approved rule, not transliterated from COBOL
The developer agent writes idiomatic code with named concepts, and the rule ID travels with it.
// ILLUSTRATIVE SAMPLE - generated from rule BR-017
public final class PayoutPolicy {
static BigDecimal deductible(ClaimType type, PolicyTier tier) {
if (type == ClaimType.AUTO) {
return tier == PolicyTier.GOLD ? money(250) : money(500);
}
return money(1000);
}
public Payout assess(Claim claim) {
BigDecimal deductible = deductible(claim.type(), claim.tier());
return claim.amount().compareTo(deductible) > 0
? Payout.payable(claim.amount().subtract(deductible))
: Payout.notPayable();
}
}Same inputs, both systems, compared
The test engineer agent runs recorded and boundary cases through legacy and modern code. Any mismatch blocks UAT until it is fixed or a person accepts it.
| Input (type, tier, amount) | Legacy | Modern | Result |
|---|---|---|---|
| Auto, Gold, 1,200 | Pays 950 | Pays 950 | Match |
| Auto, Gold, 250 | Not payable | Not payable | Match |
| Auto, Silver, 500 | Not payable | Not payable | Match |
| Auto, Silver, 501 | Pays 1 | Pays 1 | Match |
| Home, Gold, 4,000 | Pays 3,000 | Pays 3,000 | Match |
Illustrative cases to show the method. These are not test results from a real system.
Method
How equivalence is established
- 01
Rules first
Each recovered rule is reviewed by a business expert, so tests check intended behavior, not only reproduced behavior. - 02
Cases from three sources
Recorded production inputs (masked or synthetic where policy requires), boundary cases derived from each rule, and cases your experts add. - 03
Side-by-side runs
Legacy and modern systems process the same inputs. Outputs, side effects and data changes are compared field by field. - 04
Explain every difference
A mismatch is either a defect to fix or an intended change, such as a known legacy bug, that a named person accepts. Unexplained differences block UAT.
Evidence
What reviewers receive
Next step
Test the method on your own rules
During a pilot, equivalence testing runs on one journey from your estate, with case-level results.