Before You Rewrite: Using AI to Recover Legacy Business Rules for AWS Modernization
Make understanding the first modernization milestone
Before replacing a legacy application, enterprise architects and application owners need to answer a deceptively difficult question: What behavior must the new system preserve—and what should deliberately change?
A rewrite needs more than a target architecture. It needs an agreed account of the business rules the application implements, evidence that those rules reflect business intent, and tests that demonstrate whether the replacement meets its obligations.
Sapient Slingshot, Publicis Sapient’s AI-powered modernization platform, turns existing code into verified specifications and generates modern software with full traceability. This provides a foundation for understanding legacy behavior before committing to replacement.
The decision guide below explains how to put that foundation to work through four review gates: specification review, business-owner validation, requirements-to-test traceability and migration acceptance criteria. These gates are recommended delivery practices—not a claim that the platform independently performs every review, approval or migration activity.
What AI supports—and where human judgment remains essential
Slingshot’s core modernization capability connects existing code, verified specifications and modern software with traceability. Publicis Sapient’s broader AI-assisted application modernization approach combines large language models, contextual knowledge and pre-built prompt libraries with human intervention to help teams understand legacy code, generate target-state documentation, transition toward modern architecture and automate testing.
The distinction matters. Recovering what software does is not the same as deciding what the business needs it to do next. A code-derived specification should inform that decision, not replace accountable business and engineering judgment.
For an AWS modernization program, treat recovered specifications as evidence to review and use in planning. Do not treat the existence of generated documentation or software as authorization to migrate.
Gate 1: Review the specifications before defining the rewrite
Decision: Do we understand the behavior within the proposed modernization scope?
Start with a bounded business capability or application area. Review the specifications derived from the existing code with engineers and application specialists who can assess whether the description is sufficiently clear and complete for implementation decisions.
As a recommended practice, structure the review around questions such as:
- What inputs drive each rule, and what outputs or state changes follow?
- Which conditions trigger alternate paths, exceptions or failures?
- Which calculations, validations and processing sequences must be explained?
- What dependencies need further investigation before this capability can change?
- Which statements are supported by the reviewed code, and which remain assumptions?
Maintain an explicit record of unresolved questions rather than allowing ambiguity to become an implementation requirement. Where necessary, supplement specification review with engineering investigation and examination of existing behavior.
Evidence to carry forward: A reviewed specification baseline, a defined scope and an uncertainty log with named owners.
Proceed when: The team can explain the in-scope behavior and has either resolved material uncertainties or agreed how they will be investigated. If critical behavior remains unclear, prioritize further discovery rather than expanding the rewrite.
Gate 2: Ask business owners to validate intent
Decision: Which recovered rules should the replacement preserve, change or retire?
A technically accurate description of existing behavior is a starting point for business validation—not the conclusion. Ask accountable business owners to review the recovered rules in language they can evaluate.
We recommend classifying each significant rule into one of four dispositions:
- Preserve: The behavior remains necessary and should carry into the replacement.
- Change: The replacement should implement an explicitly approved requirement instead.
- Retire: The behavior is no longer needed, subject to dependency review.
- Investigate: The rule’s purpose or desired future behavior is unresolved.
Use representative examples to make the discussion concrete. Ask owners to describe expected outcomes for ordinary cases, boundary conditions and exceptions. Record the reason for each approved change so that engineers can distinguish intended differences from defects.
This validation should have named decision-makers. It is a recommended governance activity, not an implied automated Slingshot approval workflow.
Evidence to carry forward: A business-approved rule baseline, documented change decisions and a list of outstanding ownership questions.
Proceed when: The target behavior has accountable approval. Do not silently preserve an unwanted rule—or remove a poorly understood one—simply because either choice is easier to implement.
Gate 3: Connect requirements to tests and results
Decision: Can we demonstrate that the replacement implements the approved behavior?
Slingshot’s ability to generate modern software with full traceability is central to an evidence-led rewrite. For delivery acceptance, we recommend making the requirements-to-test relationship explicit rather than assuming that traceability alone proves correctness.
Define a reviewable chain connecting:
Existing behavior → reviewed specification → approved target requirement → implementation → test case → test result.
Agree how the engagement will represent and maintain these relationships. Confirm the scope of platform-provided traceability and any additional tooling or delivery work required; do not assume a particular test-management integration or reporting format.
For each critical requirement, ask:
- Is there a test with an agreed expected outcome?
- Does coverage address relevant exceptions and boundary conditions?
- If target behavior intentionally differs, is the change approval linked to the test?
- Can a reviewer locate the implementation and execution evidence?
Where preservation is required, consider comparing legacy and replacement outputs using controlled inputs. Where change is approved, test against the new requirement rather than treating the old system as the unquestioned reference.
Evidence to carry forward: A requirements-to-test mapping, execution results and an explained list of gaps or discrepancies.
Proceed when: Critical requirements have sufficient test evidence, and uncovered behavior or inconsistent results have an explicit disposition.
Gate 4: Define migration acceptance before cutover
Decision: What evidence will authorize this workload to move to AWS?
Functional validation is one part of migration acceptance. We recommend agreeing acceptance criteria before implementation progresses too far, with business, application, engineering and operations owners involved.
Build an acceptance checklist covering:
- Business behavior: Approved rules are implemented, with intentional differences documented.
- Traceability: Critical requirements can be followed through implementation and test evidence.
- Data and interfaces: Reconciliation expectations and integration checks are defined and met.
- Operational readiness: Workload-specific performance, resilience, security and support criteria are evaluated.
- Transition readiness: Cutover responsibilities, rollback conditions and escalation ownership are agreed.
These are recommended migration controls, not additional Slingshot product claims. Set thresholds according to the workload’s business importance and risk; generated specifications do not establish those thresholds automatically.
Evidence to carry forward: An acceptance record showing results, exceptions, accountable approvals and any conditions attached to release.
Proceed when: Authorized owners accept the evidence and remaining risks—not simply when software generation is complete.
Turn the evidence into an AWS modernization roadmap
Publicis Sapient’s AWS migration approach spans discovery, planning, migration and operations. The four gates can help connect application understanding to those phases.
During discovery, use reviewed specifications and unresolved questions to refine scope. During planning, use business-approved requirements and dependency findings to inform workload priorities, target architecture discussions, testing effort and migration sequencing.
Consider advancing a bounded capability with clear ownership and testable behavior before one whose business rules remain disputed. Keep unresolved dependencies visible as planning constraints. Revisit the proposed rewrite scope when evidence shows that behavior should be retained, changed or investigated further.
During migration, use traceable test results and agreed acceptance criteria to support release decisions. During operations, retain the approved specifications and evidence as a baseline for future changes.
This is a recommended way to apply modernization evidence—not an assertion that Slingshot automatically selects AWS services, creates the migration roadmap or authorizes cutover. Cost and schedule estimates should follow assessment of scope, dependencies, validation needs and delivery conditions; they should not be inferred from AI capability alone.
Start with a reviewable capability, not an irreversible rewrite
Choose one application area. Identify its business owner. Establish what must be understood, who will validate it and what evidence will demonstrate success.
Publicis Sapient combines Sapient Slingshot with AWS modernization expertise and its Strategy, Product, Experience, Engineering, and Data & AI capabilities to support that work. The goal is not to remove human judgment. It is to give decision-makers a stronger basis for exercising it—before the rewrite begins.
Talk to Publicis Sapient about using recovered legacy specifications to inform your AWS modernization roadmap.