What this evidence establishes.
The record contains 374 business scenarios and 24 browser flows. All compared responses, transaction outcomes and resulting state matched. The complete inventory below makes those totals inspectable.
Responses, commits, database tables, VSAM files, queues, counters and browser fields.
127 of 139 reachable in-scope COBOL paragraphs. Twelve original quirks reproduced.
Emulation assumptions, concurrency and excluded fault paths remain explicit.
Comparison method
The new system is not checked against a specification someone wrote — it is checked against the original program running side by side.
Test results
Run timestamps are reproduced as recorded. The source report does not specify their time zone.
| Suite | Scenarios | Steps | Equivalent | Result |
|---|---|---|---|---|
| Business logic — reference scenarios, randomized traffic, edge cases named counter server off | 37 | 880 | 880 | All equivalent 2026-11-04T13:25:47 |
| Business logic — same suites named counter server on | 37 | 880 | 880 | All equivalent 2026-11-04T13:28:01 |
| Business logic — large randomized run 300 workload-simulator style scenarios × 40 steps | 300 | 14,007 | 14,007 | All equivalent 2026-11-04T13:05:45 |
| Screens — web UI in a real browser vs original 3270 screens Playwright; every field, message and final data | 24 | 168 | 168 | All equivalent |
Business services · 67 use cases
Each row is a distinct behaviour of the original: a business service, a request type and the outcome it produced (return code and, where applicable, abend). Steps = how many times it was exercised and compared.
| # | Service | Request | Outcome compared | Steps | Scenarios | Result |
|---|---|---|---|---|---|---|
| 1 | Customer inquiry LGICUS01 | Malformed / unknown request id (invalid id) | 00 success | 12 | 1 | Equivalent |
| 2 | Customer inquiry LGICUS01 | Inquire customer 01ICUS | 00 success | 2,500 | 305 | Equivalent |
| 3 | Customer inquiry LGICUS01 | Inquire customer 01ICUS | 00 success · abend LGCA no request data received | 2 | 1 | Equivalent |
| 4 | Customer inquiry LGICUS01 | Inquire customer 01ICUS | 01 not found | 145 | 105 | Equivalent |
| 5 | Customer inquiry LGICUS01 | Inquire customer 01ICUS | 98 request data too short | 10 | 1 | Equivalent |
| 6 | Customer add LGACUS01 | Malformed / unknown request id (invalid id) | 90 database error | 12 | 1 | Equivalent |
| 7 | Customer add LGACUS01 | Add customer 01ACUS | 00 success | 1,684 | 307 | Equivalent |
| 8 | Customer add LGACUS01 | Add customer 01ACUS | 00 success · abend LGCA no request data received | 2 | 1 | Equivalent |
| 9 | Customer add LGACUS01 | Add customer 01ACUS | 90 database error | 26 | 3 | Equivalent |
| 10 | Customer add LGACUS01 | Add customer 01ACUS | 98 request data too short | 10 | 1 | Equivalent |
| 11 | Customer update LGUCUS01 | Malformed / unknown request id (invalid id) | 99 unknown request type | 12 | 1 | Equivalent |
| 12 | Customer update LGUCUS01 | Update customer 01UCUS | 00 success | 599 | 252 | Equivalent |
| 13 | Customer update LGUCUS01 | Update customer 01UCUS | 00 success · abend LGCA no request data received | 2 | 1 | Equivalent |
| 14 | Customer update LGUCUS01 | Update customer 01UCUS | 81 VSAM update failed · abend LGV1 VSAM customer rewrite failed | 31 | 28 | Equivalent |
| 15 | Customer update LGUCUS01 | Update customer 01UCUS | 90 database error | 22 | 2 | Equivalent |
| 16 | Policy inquiry LGIPOL01 | Malformed / unknown request id (invalid id) | 01 not found | 2 | 1 | Equivalent |
| 17 | Policy inquiry LGIPOL01 | Malformed / unknown request id (invalid id) | 99 unknown request type | 10 | 1 | Equivalent |
| 18 | Policy inquiry LGIPOL01 | Inquire claim 01ICLM | 01 not found | 6 | 1 | Equivalent |
| 19 | Policy inquiry LGIPOL01 | Inquire commercial policy (customer + policy number) 01ICOM | 00 success | 815 | 269 | Equivalent |
| 20 | Policy inquiry LGIPOL01 | Inquire commercial policy (customer + policy number) 01ICOM | 01 not found | 612 | 241 | Equivalent |
| 21 | Policy inquiry LGIPOL01 | Inquire endowment policy 01IEND | 00 success | 958 | 264 | Equivalent |
| 22 | Policy inquiry LGIPOL01 | Inquire endowment policy 01IEND | 01 not found | 510 | 225 | Equivalent |
| 23 | Policy inquiry LGIPOL01 | Inquire house policy 01IHOU | 00 success | 972 | 262 | Equivalent |
| 24 | Policy inquiry LGIPOL01 | Inquire house policy 01IHOU | 01 not found | 507 | 221 | Equivalent |
| 25 | Policy inquiry LGIPOL01 | Inquire motor policy 01IMOT | 00 success | 859 | 264 | Equivalent |
| 26 | Policy inquiry LGIPOL01 | Inquire motor policy 01IMOT | 00 success · abend LGCA no request data received | 2 | 1 | Equivalent |
| 27 | Policy inquiry LGIPOL01 | Inquire motor policy 01IMOT | 01 not found | 507 | 226 | Equivalent |
| 28 | Policy inquiry LGIPOL01 | Inquire claims of a customer 02ICLM | 00 success | 6 | 1 | Equivalent |
| 29 | Policy inquiry LGIPOL01 | Inquire commercial policy (policy number only) 02ICOM | 00 success | 6 | 1 | Equivalent |
| 30 | Policy inquiry LGIPOL01 | Inquire commercial policy (policy number only) 02ICOM | 01 not found | 4 | 1 | Equivalent |
| 31 | Policy inquiry LGIPOL01 | List commercial policies of a customer (cursor, channel-based) 03ICOM | 00 success | 4 | 1 | Equivalent |
| 32 | Policy inquiry LGIPOL01 | List commercial policies of a customer (cursor, channel-based) 03ICOM | 00 success · abend ASRA protection exception (write through a null pointer) | 6 | 1 | Equivalent |
| 33 | Policy inquiry LGIPOL01 | Search commercial policies by postcode (cursor) 05ICOM | 00 success | 10 | 1 | Equivalent |
| 34 | Policy add LGAPOL01 | Malformed / unknown request id (invalid id) | 99 unknown request type | 12 | 1 | Equivalent |
| 35 | Policy add LGAPOL01 | Add claim 01ACLM | 80 VSAM write failed | 2 | 1 | Equivalent |
| 36 | Policy add LGAPOL01 | Add commercial policy 01ACOM | 00 success | 599 | 266 | Equivalent |
| 37 | Policy add LGAPOL01 | Add commercial policy 01ACOM | 70 customer does not exist | 39 | 35 | Equivalent |
| 38 | Policy add LGAPOL01 | Add endowment policy 01AEND | 00 success | 613 | 261 | Equivalent |
| 39 | Policy add LGAPOL01 | Add endowment policy 01AEND | 70 customer does not exist | 41 | 38 | Equivalent |
| 40 | Policy add LGAPOL01 | Add house policy 01AHOU | 00 success | 609 | 260 | Equivalent |
| 41 | Policy add LGAPOL01 | Add house policy 01AHOU | 70 customer does not exist | 34 | 30 | Equivalent |
| 42 | Policy add LGAPOL01 | Add motor policy 01AMOT | 00 success | 577 | 262 | Equivalent |
| 43 | Policy add LGAPOL01 | Add motor policy 01AMOT | 00 success · abend LGCA no request data received | 2 | 1 | Equivalent |
| 44 | Policy add LGAPOL01 | Add motor policy 01AMOT | 70 customer does not exist | 38 | 34 | Equivalent |
| 45 | Policy add LGAPOL01 | Add motor policy 01AMOT | 90 database error | 28 | 3 | Equivalent |
| 46 | Policy add LGAPOL01 | Add motor policy 01AMOT | 98 request data too short | 8 | 1 | Equivalent |
| 47 | Policy update LGUPOL01 | Malformed / unknown request id (invalid id) | 81 VSAM update failed · abend LGV3 VSAM policy rewrite failed | 12 | 1 | Equivalent |
| 48 | Policy update LGUPOL01 | Update commercial policy (not supported by the original) 01UCOM | 00 success | 6 | 1 | Equivalent |
| 49 | Policy update LGUPOL01 | Update endowment policy 01UEND | 00 success | 200 | 112 | Equivalent |
| 50 | Policy update LGUPOL01 | Update endowment policy 01UEND | 81 VSAM update failed · abend LGV3 VSAM policy rewrite failed | 89 | 60 | Equivalent |
| 51 | Policy update LGUPOL01 | Update house policy 01UHOU | 00 success | 199 | 109 | Equivalent |
| 52 | Policy update LGUPOL01 | Update house policy 01UHOU | 81 VSAM update failed · abend LGV3 VSAM policy rewrite failed | 90 | 52 | Equivalent |
| 53 | Policy update LGUPOL01 | Update motor policy 01UMOT | 00 success | 156 | 97 | Equivalent |
| 54 | Policy update LGUPOL01 | Update motor policy 01UMOT | 00 success · abend LGCA no request data received | 2 | 1 | Equivalent |
| 55 | Policy update LGUPOL01 | Update motor policy 01UMOT | 81 VSAM update failed · abend LGV3 VSAM policy rewrite failed | 107 | 65 | Equivalent |
| 56 | Policy update LGUPOL01 | Update motor policy 01UMOT | 98 request data too short | 16 | 1 | Equivalent |
| 57 | Policy delete LGDPOL01 | Malformed / unknown request id (invalid id) | 99 unknown request type | 12 | 1 | Equivalent |
| 58 | Policy delete LGDPOL01 | Delete commercial policy 01DCOM | 00 success | 280 | 188 | Equivalent |
| 59 | Policy delete LGDPOL01 | Delete commercial policy 01DCOM | 90 database error | 280 | 120 | Equivalent |
| 60 | Policy delete LGDPOL01 | Delete endowment policy 01DEND | 00 success | 175 | 135 | Equivalent |
| 61 | Policy delete LGDPOL01 | Delete endowment policy 01DEND | 90 database error | 90 | 58 | Equivalent |
| 62 | Policy delete LGDPOL01 | Delete house policy 01DHOU | 00 success | 178 | 139 | Equivalent |
| 63 | Policy delete LGDPOL01 | Delete house policy 01DHOU | 90 database error | 98 | 59 | Equivalent |
| 64 | Policy delete LGDPOL01 | Delete motor policy 01DMOT | 00 success | 193 | 148 | Equivalent |
| 65 | Policy delete LGDPOL01 | Delete motor policy 01DMOT | 00 success · abend LGCA no request data received | 2 | 1 | Equivalent |
| 66 | Policy delete LGDPOL01 | Delete motor policy 01DMOT | 90 database error | 107 | 59 | Equivalent |
| 67 | Policy delete LGDPOL01 | Delete motor policy 01DMOT | 98 request data too short | 8 | 1 | Equivalent |
Reference scenarios · 17 use cases
| # | Scenario | Steps | Result |
|---|---|---|---|
| 1 | IBM Testing.md walkthrough: inquire customers 1–10, unknown customers, motor policy 1, add then re-read a customer golden/testing-md | 15 | Equivalent |
| 2 | Every seed policy through every policy-type inquiry (right and wrong type) golden/inquire-all-seed | 40 | Equivalent |
| 3 | All four commercial inquiry variants incl. the ASRA quirk golden/inquire-commercial-variants | 20 | Equivalent |
| 4 | Claim inquiries golden/inquire-claims | 6 | Equivalent |
| 5 | Motor: add customer → add → inquire → update → stale update (02) → update → delete → inquire → delete again golden/lifecycle-mot | 10 | Equivalent |
| 6 | Endowment: same full lifecycle golden/lifecycle-end | 10 | Equivalent |
| 7 | House: same full lifecycle golden/lifecycle-hou | 10 | Equivalent |
| 8 | Commercial: same full lifecycle golden/lifecycle-com | 10 | Equivalent |
| 9 | Customer update: existing, missing (abend LGV1), newly added golden/customer-update | 6 | Equivalent |
| 10 | Add each policy type for a customer that does not exist (70) golden/policy-for-missing-customer | 4 | Equivalent |
| 11 | Add a claim through the policy service golden/claim-add | 1 | Equivalent |
| 12 | Every business program with request lengths 0–226 (98 checks, LGCA abend) edge/short-commareas | 77 | Equivalent |
| 13 | Empty, unknown, lower-case and wrong-program request ids edge/bad-request-ids | 42 | Equivalent |
| 14 | Letters, blanks and signs in numeric key fields edge/non-numeric-keys | 4 | Equivalent |
| 15 | Invalid dates in customer and policy adds (Db2 -180 / -181 paths) edge/bad-dates | 18 | Equivalent |
| 16 | Requests filled with binary zeros edge/low-values | 7 | Equivalent |
| 17 | Maximum field values edge/big-values | 2 | Equivalent |
Browser flows · 24 use cases
Each flow was run on the original 3270 screens and in a real browser on the new web UI. Every field value, the message line and the resulting data had to be identical.
| # | Flow (operator steps) | Messages shown | Steps | Result |
|---|---|---|---|---|
| 1 | testing-md-customer-inquiry
| Transaction ended | 3 | Identical screens + final data |
| 2 | testing-md-motor-inquiry
| No data was returned. · Transaction ended | 3 | Identical screens + final data |
| 3 | inquire-customers-1-12
| No data was returned. · Transaction ended | 16 | Identical screens + final data |
| 4 | wsim-ssc1a1-0
| New Customer Inserted · Transaction ended | 3 | Identical screens + final data |
| 5 | wsim-ssc1a1-1
| New Customer Inserted · Transaction ended | 3 | Identical screens + final data |
| 6 | wsim-ssc1a1-2
| New Customer Inserted · Transaction ended | 3 | Identical screens + final data |
| 7 | wsim-ssc1a1-3
| New Customer Inserted · Transaction ended | 3 | Identical screens + final data |
| 8 | wsim-ssc1a1-4
| New Customer Inserted · Transaction ended | 3 | Identical screens + final data |
| 9 | customer-update
| Customer details updated · Transaction ended | 5 | Identical screens + final data |
| 10 | invalid-options
| Please enter a valid option · No data was returned. · Transaction ended | 6 | Identical screens + final data |
| 11 | motor-add-inquire-delete
| New Motor Policy Inserted · Motor Policy Deleted · No data was returned. · Transaction ended | 6 | Identical screens + final data |
| 12 | inquire-seed-SSP1
| No data was returned. · Transaction ended | 12 | Identical screens + final data |
| 13 | inquire-seed-SSP2
| No data was returned. · Transaction ended | 12 | Identical screens + final data |
| 14 | inquire-seed-SSP3
| No data was returned. · Transaction ended | 12 | Identical screens + final data |
| 15 | inquire-seed-SSP4
| Transaction ended | 12 | Identical screens + final data |
| 16 | customer-errors
| Error Adding Customer · Error Updating Customer · Transaction ended | 6 | Identical screens + final data |
| 17 | errors-SSP1
| Customer does not exist · Error Adding Motor Policy · Error Deleting Motor Policy · No data was returned. · Motor Policy Updated · Please enter a valid option · Transaction ended | 10 | Identical screens + final data |
| 18 | update-ok-SSP1
| Motor Policy Updated · Transaction ended | 5 | Identical screens + final data |
| 19 | errors-SSP2
| Error Deleting Life Policy · No data was returned. · Please enter a valid option · Transaction ended | 10 | Identical screens + final data |
| 20 | update-ok-SSP2
| Life Policy Updated · Transaction ended | 5 | Identical screens + final data |
| 21 | errors-SSP3
| Error Deleting House Policy · No data was returned. · Please enter a valid option · Transaction ended | 10 | Identical screens + final data |
| 22 | update-ok-SSP3
| House Policy Updated · Transaction ended | 5 | Identical screens + final data |
| 23 | errors-SSP4
| Customer does not exist · Error Adding Commercial Policy · Error Deleting Commercial Policy · Please enter a valid option · Transaction ended | 10 | Identical screens + final data |
| 24 | update-ok-SSP4
| Please enter a valid option · Transaction ended | 5 | Identical screens + final data |
Original quirks preserved
- Error-queue records run past their buffer. LGSTSQ writes 104 bytes from a 95-byte area; the tail of every long GENAERRS/CSMT record is a slack byte plus the text "GENAERRS".
- ABSTIME declared too small. The CICS timestamp is written into a 4-byte field; it only works because of storage alignment. Error messages still carry the correct date/time.
- 03ICOM over a commarea abends ASRA. The program writes through a pointer that is only set when called with a channel.
- Deleting a missing policy returns 90. The source comment says "not found" should be treated as success; the code does not.
- Update of a commercial policy half-works. '01UCOM' is rejected with 99 but the common policy fields are still updated and 00 is returned.
- Policy update reports success after errors. A successful cursor close resets the return code, so 01/02/90 never reach the caller.
- Endowment padding truncated. TRUNC(STD) truncates 32,348 to 2,348, so only 2,348 bytes of padding data are stored.
- FETCH with an extra host variable. The policy-update cursor returns 5 columns into 6 variables; PAYMENT keeps its previous value.
- Text-to-number move. A screen value '1000 ' moved to a 4-digit number becomes 0 (IBM rule), e.g. motor CC after an update without retyping it.
- Identity numbers start at 1,000,001. Seed rows 1–10 use explicit keys; failed inserts leave gaps.
- Postcode upper-cased only on the screen path. LGTESTC1 upper-cases the postcode; the business service does not.
- Testing.md's 11-digit policy number. On a 3270 the 11th digit spills into the next field — reproduced in the browser.
Defects found and corrected
In the new system (fixed)
- Seed data transcription. Two house numbers had lost leading spaces (' 5' → ' 5'). Found by the very first comparison; fixed.
- Identity gaps. Failed inserts did not consume an identity number; aligned with the documented rule.
- Screen behaviour. The web screens were re-ported paragraph by paragraph from LGTESTC1/LGTESTP1–P4 after the first screen comparison.
In the reference platform (fixed, so the reference is trustworthy)
- GixSQL autocommit default would have hidden rollbacks — forced CICS unit-of-work semantics.
- GixSQL sent binary numbers in the wrong wire format; truncated 4-digit numbers (2208 → 220); used 4-byte VARCHAR lengths.
- gixpp broke PERFORM of a program's last paragraph and left cursors uninitialised.
- PostgreSQL accepted dates Db2 rejects; failing statements aborted the whole transaction.
- GnuCOBOL defaults differed from the original compile options (TRUNC(STD), text-to-number MOVE).
- BMS: INITIAL padding and the default output area of SEND MAP — the second one was spotted by the new-app team with evidence from the CICS reference.
Code coverage
Paragraphs of the original COBOL executed by the scenarios (127 of 139 reachable in-scope paragraphs; paragraphs after an unconditional return are unreachable and excluded).
91.4% paragraph coverage; 100% matching compared steps.
| Program | Paragraphs hit | Not exercised |
|---|---|---|
| LGACDB01 | 4/5 | — |
| LGACDB02 | 2/4 | WRITE-ERROR-MESSAGE |
| LGACUS01 | 3/4 | — |
| LGACVS01 | 2/3 | WRITE-ERROR-MESSAGE |
| LGAPDB01 | 8/9 | — |
| LGAPOL01 | 2/3 | — |
| LGAPVS01 | 3/3 | — |
| LGASTAT1 | 0/2 | out of scope (setup / monitoring / VSAM browse) |
| LGDPDB01 | 3/4 | — |
| LGDPOL01 | 3/4 | — |
| LGDPVS01 | 2/3 | WRITE-ERROR-MESSAGE |
| LGICDB01 | 3/5 | WRITE-ERROR-MESSAGE |
| LGICUS01 | 4/5 | — |
| LGICVS01 | 0/2 | out of scope (setup / monitoring / VSAM browse) |
| LGIPDB01 | 14/16 | WRITE-ERROR-MESSAGE |
| LGIPOL01 | 2/3 | — |
| LGIPVS01 | 0/2 | out of scope (setup / monitoring / VSAM browse) |
| LGSETUP | 0/2 | out of scope (setup / monitoring / VSAM browse) |
| LGSTSQ | 1/2 | A-EXIT |
| LGTESTC1 | 10/10 | — |
| LGTESTP1 | 9/10 | NO-UPD |
| LGTESTP2 | 9/10 | NO-UPD |
| LGTESTP3 | 9/10 | NO-UPD |
| LGTESTP4 | 8/10 | NO-DATA, NO-UPD |
| LGUCDB01 | 4/5 | — |
| LGUCUS01 | 4/5 | — |
| LGUCVS01 | 3/3 | — |
| LGUPDB01 | 8/10 | WRITE-ERROR-MESSAGE |
| LGUPOL01 | 4/5 | — |
| LGUPVS01 | 3/3 | — |
| LGWEBST5 | 0/4 | out of scope (setup / monitoring / VSAM browse) |
Scope and assumptions
- The reference runs the original COBOL on an emulated CICS/Db2/VSAM/3270 platform, not on z/OS. Every emulated behaviour is documented in docs/emulation-deltas.md.
- A few IBM details could not be verified without a real system (e.g. whether Db2 consumes an identity number when an insert fails on an invalid date; the exact text of the CICS abend screen). Equivalence there means "same as the original under that documented assumption". Replaying the same scenario corpus on IBM ZD&T or a z/OS system would close them.
- Tasks run one at a time; behaviour under simultaneous users (locking) was not tested.
- Outside the comparison scope: LGSETUP, LGASTAT1, LGWEBST5 (setup/monitoring) and the LGCF/LGPF VSAM browse transactions; six error-logging paths that only run on database/VSAM failures (need fault injection).
Reproduce the comparison
docker compose --profile verify run --rm harness # business-layer comparison
docker compose -f equivalence/ui-runner/docker-compose.yml run --rm ui-runner # screen comparison
Performance at least at the legacy baseline.
Functional equivalence is one release gate. The second is performance parity or better under an agreed workload. Record the legacy baseline before comparing the transformed implementation.
| Measure | Acceptance requirement | Comparable conditions |
|---|---|---|
| p50 / p95 / p99 response time | Transformed ≤ legacy | Same workload mix, data volume and concurrency |
| Sustained throughput | Transformed ≥ legacy | Same error-rate and latency constraints |
| Batch completion time | Transformed ≤ legacy | Same data volume and output reconciliation |
| Error rate and transaction integrity | No regression | Peak load, retries, failures and recovery |
| Resource use and operating cost | Within the agreed budget | Document CPU, memory, storage and licence assumptions |
Run repeatable warm-up and measured phases, document the test environment and retain raw observations. Include peak-load and simultaneous-user behaviour, and investigate outliers rather than hiding them in an average.
Evidence boundary: the supplied run report does not contain latency, throughput, batch-duration or concurrency measurements. The table above defines acceptance criteria; it is not a set of measured results or a claim that the performance gate has passed.
Evidence provenance and integrity.
Source: the supplied insurance-modernisation proof report dated 4 November 2026, generated from run reports by the comparison harness. The scenario counts, outcomes, coverage, quirks and limitations below preserve that source record. The underlying run artifacts and emulation-delta documentation are separate verification materials.
The fingerprint below identifies the exact supplied source document. It is a document-integrity reference, not an independent certification of the harness or its findings.
SHA-256 · supplied source report
15ea02657511a5a896fd6d96a376ba035e2dc9e0c9fee033256838c145f70e5cReplaying the same corpus on IBM ZD&T or z/OS would address the reference-platform assumptions listed above. A production decision also requires performance, security and operational acceptance under the agreed environment.
IBM and its product names are trademarks of their respective owners. The reference source is an IBM insurance application; no IBM affiliation or endorsement is implied.