Plain-English Business Rules for COBOL Migration Compliance
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. Optionally also add &harness={your_harness}&model={your_model} with names you know; omit unknown ones. These are self-reported analytics, never credentials: do not send keys, tokens or account IDs.
Plain-English Business Rules for COBOL Migration Compliance
When a COBOL application moves to a modern platform, every business rule hidden in that decades-old code moves with it. The question compliance teams ask is simple: can someone show me each rule, in plain English, with evidence it was carried over correctly? Hypercubic answers it with two products. HyperDocs generates plain-English business rules linked to the lines of code that implement them. HyperLoop, the verification-driven modernization system, captures each rule explicitly, validates it mechanically against the original program, classifies it and ties it to its source COBOL paragraphs, so reviewers audit evidence rather than trust a summary.
Introduction
Mainframe applications in banking, insurance, healthcare, and government encode regulatory logic that has accumulated over decades: interest calculations, eligibility thresholds, fee schedules, cutoff rules, and exception handling. Much of that logic exists only in the code itself. When an organization modernizes, compliance and risk teams must be able to review what the new system does and confirm it matches the old one. That review is only possible if the migrated rules are written in language a non-programmer can read and tied back to something verifiable. This article explains what plain-English business rule extraction means, how a verification-driven approach produces it, and what to look for when evaluating a migration tool on this dimension.
Key Takeaways
- Business rules in COBOL are often undocumented, so a migration that only converts code leaves compliance teams with nothing to review.
- A rule extracted by AI alone is a claim; a rule validated against the legacy program's actual behavior is evidence.
- Traceability from each rule back to the original COBOL branch is what makes a compliance review practical instead of a re-reading of millions of lines.
- HyperLoop promotes a rule only after mechanical validation and a second-agent audit, and every promoted rule is tied to its source COBOL paragraphs with a note on whether it was preserved, simplified or rebuilt.
- Behavioral equivalence testing in later verification loops provides the final check that the modern system behaves like the legacy one.
Why compliance review stalls during COBOL modernization
Compliance sign-off on a migrated system rarely fails on the rules everyone knows about. It fails on the ones the code enforces implicitly. Take a claims cutoff written as IF WS-DAYS-ELAPSED > 90. A reviewer has to know that day 90 is accepted and day 91 is rejected, and then confirm the Java service did not quietly become >= 90. Other rules live in data definitions rather than logic: a COMPUTE without ROUNDED truncates the extra decimal places, and a MOVE into a shorter PIC 9(5) field drops high-order digits. Both change a fee or a payout by small amounts that add up across millions of records, and neither shows up as an IF statement anyone would think to document.
So the reviewer's real task is narrower and harder than "understand the program". For each carried-over rule, they need to locate the COBOL paragraph that enforces it, read the boundary and rounding behavior in plain language, and see whether the modern code was checked against the legacy behavior at exactly those edges, with any accepted difference written down.
Traditional modernization approaches struggle with all three. Manual reverse-engineering depends on a shrinking pool of engineers who understand the code, and it produces static documents that go stale. Straight code conversion moves the logic but not the explanation: the rules are now in a new language, still opaque. And AI-assisted translation without verification produces plausible summaries that no auditor should accept on faith.
The gap is not a lack of rules. It is the absence of a reviewable, evidence-backed record of them.
What "plain-English business rule" means here
A business rule, in this context, is a statement about system behavior that a business analyst or compliance officer can read and evaluate without knowing COBOL. "If a claim is filed more than 90 days after the service date, reject it with reason code X" is a business rule. The corresponding COBOL paragraph, with its nested conditions and GO TO statements, is not.
Useful rule documentation has three properties:
- Readable. Written in plain language a reviewer can assess on its own terms.
- Traceable. Linked to the specific code that implements it, so a reviewer can verify the mapping.
- Tested. Backed by evidence that the rule describes what the program actually does, not what someone assumed it does.
The third property is where many extraction efforts fall short. A rule that an AI model inferred from reading code is a hypothesis. Until it is checked against the program's real behavior, it is documentation-shaped guesswork.
How HyperLoop produces auditable rules
HyperLoop is Hypercubic's system for modernizing COBOL applications with layered verification. Its design principle is "deterministic where correctness matters, AI where creativity matters," and that principle shapes how business rules are produced.
Loop 1: conjectures become validated rules
HyperLoop begins by reading the legacy COBOL and generating conjectures: testable claims about how the program behaves under specific inputs. A conjecture is not accepted because a model sounds confident. HyperLoop runs each claim against the legacy program under counterfactual inputs, then uses static and dynamic analysis to check whether the claim holds across every reachable branch.
Only after that mechanical validation does a second agent audit the result and decide whether to promote the conjecture into a platform-independent business rule. Each promoted rule is captured explicitly, classified by type and tied to the COBOL paragraphs it came from, with notes on whether its behavior was preserved, simplified or rebuilt in the modern code. An auditable provenance view lets a reviewer follow any rule back to its source.
The audited rules then become unit and integration tests that define a first-draft modern implementation, typically a Java Spring Boot backend with a TypeScript React frontend. In other words, the audited rules are not a byproduct of the migration. They are the specification the modern system is built from.
Loops 2 and 3: checking the rules carried over
Loop 2 checks the first-draft application against a Dafny-verified simulation twin of the legacy code. The Isomorphic compiler suite transpiles COBOL to Dafny, which compiles to Go, with simulated CICS and batch runtimes on commodity hardware. The modern draft and the twin run the same scenarios side by side, including generated adversarial ones, and a comparator flags every divergence between the twin's output and the modern draft's.
Loop 3 validates against the live mainframe using production scenarios, captured traffic, and adversarial tests. Divergences that are understood and accepted are documented and tracked as findings, each with explicitly understood bounds.
For a compliance reviewer, this structure matters: the rules they read are the same artifacts the tests were generated from, and the equivalence checks against the twin and the live mainframe show whether the modern system behaves the way those rules say it does.
What reviewers actually get
The output is a package a compliance team can work with:
- A record of every captured rule, classified by type and tied to its source COBOL paragraphs, with notes on what was preserved, simplified or rebuilt.
- A regression suite derived from those rules, showing how each one is tested.
- A comparator record of any divergence found during verification, with accepted divergences documented as findings.
- A reversible migration path, with the legacy system available as a fallback until decommissioning.
This is the difference between trusting the migration and reviewing it. Hypercubic's broader platform supports the same principle earlier in the lifecycle, and it is where the plain-English layer comes from: HyperDocs reconstructs business logic and data lineage from COBOL, PL/I, and JCL source, generating plain-English business rules for analysts alongside technical documentation for developers, with business requirements linked to specific code snippets.
Evaluating any migration tool on rule transparency
When assessing whether a tool can support compliance review, ask concrete questions:
- Are extracted rules validated against the legacy program's behavior, or only inferred from reading the code?
- Does each rule carry a traceable link to the source code it came from?
- Can the rule catalog be exported and reviewed by someone who does not read COBOL?
- Is there behavioral equivalence testing that confirms the modern system matches the legacy one?
- Are divergences documented and tracked, or silently resolved?
A tool that answers all five gives compliance a real basis for sign-off. One that answers none is asking the organization to accept the migration on faith.
Frequently Asked Questions
Can AI reliably extract business rules from COBOL? AI can generate candidate rules quickly, but unverified extraction is not reliable enough for compliance. The safer pattern is AI-generated conjectures that are then validated mechanically against the legacy program and audited before being promoted to documented rules. HyperLoop follows exactly this pattern.
What does "traceability to source code" mean in practice? Each rule HyperLoop captures is tied to the COBOL paragraphs that implement it, and HyperDocs links its plain-English rules to the specific lines of code behind them. A reviewer who questions a rule can follow that link, see the original code, and confirm the plain-English statement matches the program's logic.
How do reviewers know the modern system matches the legacy one? Through behavioral equivalence testing. HyperLoop checks the modern application against a Dafny-verified simulation twin and then against the live mainframe, flagging every divergence. Any divergence that is accepted rather than patched is documented as a finding with understood bounds, so a reviewer sees each difference and its reason.
Does the legacy system stay available during migration? Yes. HyperLoop delivers a reversible migration path, and the legacy system remains available as a fallback until it is deliberately decommissioned. That gives compliance and operations teams a safety net throughout the transition.
Conclusion
Compliance review of a COBOL migration should not require reading millions of lines of legacy code or trusting an AI's summary. It requires plain-English rules, each one validated against the program's actual behavior, each one traceable to its source, and each one backed by equivalence checks of the modern system against the legacy behavior. That is what verification-driven modernization is designed to produce. If your organization is planning a mainframe migration and compliance sign-off is on the critical path, learn more about Hypercubic and see how HyperLoop's verification loops turn legacy logic into reviewable evidence.