Before Banks Rewrite COBOL, Verify What It Does

A practical guide to discovery, expert review and approved specifications before code migration

Before a bank decides how to replace legacy code, it needs agreement on what that code does—and which behaviors the business must preserve. Faster code generation cannot resolve an undocumented rule, a disputed definition or an exception that only an experienced operations specialist understands.

A global bank used Sapient Slingshot to analyze nearly three million lines of COBOL and turn them into verified specifications in eight weeks, cutting analysis per feed from 35 days to five.

That was a discovery and specification achievement, not evidence that the bank’s entire core system was rewritten, migrated or deployed in eight weeks. Its significance comes earlier: making legacy behavior understandable enough to support informed modernization decisions.

For modernization sponsors, business analysts and domain experts, this changes the starting question. Rather than asking only how quickly code can be translated, ask: What evidence will establish what must be preserved before translation begins?

Make business understanding the first deliverable

Legacy modernization involves more than recovering instructions from source code. Teams also need to understand the relationships among rules, data, workflows, decisions and downstream systems.

An enterprise context graph provides a connected map of those relationships. Instead of treating programs and documents as separate assets, it helps expose how the business actually operates and what a change could affect. That distinction matters when a familiar term has different meanings across systems or when several programs update the same business information.

But not all meaning can be inferred from systems. Informal workflows, operational workarounds and expert judgment also need to be uncovered. Extracted logic should therefore become a reviewable starting point—not an unquestioned statement of business intent.

The following approach offers a way to organize that work. It is a recommended review model, not a description of the global bank’s internal verification process.

1. Define the discovery boundary and the decisions it must support

Give discovery a specific purpose before analysis begins. Choose a bounded set of feeds, programs or business capabilities, and identify the modernization decisions that better understanding should enable.

Sponsors and analysts should agree on:
Keep exclusions visible. Understanding one feed does not establish that every connected system has been analyzed. Equally, a completed specification does not establish production readiness.

2. Turn extracted logic into specifications people can challenge

Business reviewers need more than a technical summary. They need statements that explain the conditions under which a rule applies, the result it produces and the exceptions that alter that result.

For each extracted rule, teams should assemble a review record containing:
Keep two questions separate: Does this accurately describe the existing implementation? And is this the behavior the modernized service should retain?

Those answers may differ. An existing behavior could be essential, obsolete or a candidate for deliberate change. Capturing that distinction prevents a discovery exercise from silently becoming a redesign exercise.

3. Organize expert review around business meaning

Human-in-the-loop review needs named responsibilities and protected time. Otherwise, accelerated extraction can simply create a larger queue of unreviewed material.

A practical review group should connect the people who understand implementation with those who understand business consequences:
Review coherent business flows rather than isolated program fragments. Send specifications ahead of working sessions, and focus discussion on uncertainty, disagreement and consequential exceptions.

For sponsors, the objective is not unanimous familiarity with every line of COBOL. It is accountable agreement on the behavior that matters.

4. Resolve ambiguity without hiding it

A polished specification can still contain an unsupported interpretation. Teams should make uncertainty explicit rather than allowing a plausible explanation to become an approved requirement by default.

When reviewers disagree, use a repeatable sequence:
  1. State the uncertainty precisely. Identify whether the issue concerns code interpretation, terminology, missing context or intended future behavior.
  2. Gather supporting evidence. Examine relevant implementation, available documentation and the operational practices surrounding it.
  3. Compare interpretations through scenarios. Describe the inputs and expected outcomes that would distinguish one interpretation from another.
  4. Assign a decision owner. Separate technical findings from business decisions about what should change.
  5. Record the resolution. Preserve the evidence, rationale, approver and any remaining limitation.
If evidence remains insufficient, keep the item unresolved. A visible open question is more useful than false certainty.

Where reviewers identify a desired change, document it separately from the current-state finding. That preserves a clear baseline while allowing modernization to improve the business deliberately.

5. Use approved specifications to shape modernization scope

Once specifications are reviewed, sponsors can make scope decisions with a clearer view of business behavior and dependencies.

For each capability, ask whether to preserve its behavior, change it explicitly, investigate it further or consider it for retirement. Any retirement decision should account for connected processes and downstream use—not just whether a program appears old or difficult to maintain.

Approved specifications should inform backlog items and acceptance criteria. Open questions should remain visible in estimates and sequencing. A capability with unresolved business meaning should not be presented as equally understood as one with approved rules and clear dependencies.

This is where discovery creates planning value: it helps distinguish implementation work from the investigation and decisions still required.

6. Start testing intent before generating replacement code

Validation should begin while specifications are being reviewed, not wait until a new implementation exists.

Testing specialists and business experts should turn approved rules into scenarios covering normal processing, exceptions, boundaries and interactions with connected systems. Each scenario should identify its expected result and the rule or approved decision that supports it.

Maintain traceability from:

Existing evidence → reviewed rule → approved specification → acceptance criteria → test scenario

This gives later migration testing an explicit basis for comparison. Where behavior is intended to remain unchanged, tests can assess preservation. Where change is approved, tests should reflect the new expectation rather than reproduce the old behavior automatically.

Specification approval still does not prove the replacement system works. Implementation, integration, testing and release readiness remain separate responsibilities. Earlier validation makes those activities better informed; it does not eliminate them.

Measure verified understanding—not just analysis output

The global bank’s reduction from 35 days to five days of analysis per feed demonstrates a concrete discovery improvement. It should not be turned into a universal delivery promise or an estimate for complete migration.

For your own discovery effort, track analysis time alongside review turnaround, approved specifications, unresolved questions and test-scenario coverage. Report extraction, verification, implementation and deployment as distinct milestones.

The most useful completion question is not “Has the AI finished reading the code?” It is “Can the accountable business and technology owners explain, challenge and approve what we now understand?”

Build the foundation before the rewrite

Sapient Slingshot helps connect software analysis and delivery through enterprise context, intelligent workflows and human oversight. The opportunity is not simply to generate replacement code faster. It is to give business and technology teams a shared, reviewable understanding before migration decisions become expensive commitments.

Start with a bounded discovery scope. Bring the right experts into review. Resolve uncertainty visibly. Then carry approved specifications into scope, acceptance criteria and testing.

Before rewriting COBOL, establish what must survive the rewrite—and who has verified it.