Rescuing Undocumented Applications in European Energy: What to Recover Before You Rewrite

An application-recovery playbook for energy technology leaders who need to restore understanding, maintainability and confidence in change—not simply generate replacement code.

Before commissioning a rewrite of an aging infrastructure-management application, ask a more fundamental question: What must your organization understand well enough to preserve?

For application owners and asset technology leaders, the answer goes beyond functionality. It includes the business rules embedded in old code, the dependencies that shape its behavior and the evidence needed to determine whether a change is correct. Without that understanding, a rewrite risks moving uncertainty into a newer technology stack.

The first objective should be to recover an application your teams can explain, maintain and validate. Broader modernization and reuse should follow that evidence—not precede it.

A European energy application revived in two days

A large European energy producer depended on a mission-critical application used to manage power plant infrastructure. The application was more than two decades old, undocumented and impossible to maintain safely. The central problem was not slow coding. It was the inability to understand, govern or reproduce changes across similar assets.

Publicis Sapient’s Sapient Slingshot coordinated agents across decompilation, refactoring, business-logic extraction, documentation generation, testing and validation in a single workflow. The application was revived in two days, with clean, modern code and full documentation. Automated code generation, test creation and validation also delivered documented time savings.

The important result was the recovery of understanding: an opaque application became documented and understandable, creating a foundation for connecting it to additional applications and sites.

The two-day result applies to this application’s revival. It does not establish a two-day timeline for production rollout, integration across additional sites or a wider modernization program. Nor does an application used to manage power plant infrastructure establish an autonomous industrial-control capability.

The following playbook translates that recovery-first approach into practical decisions and review checkpoints. It is a recommended approach, not a reconstruction of every activity performed in that engagement.

1. Define the recovery boundary before changing the code

Start by agreeing what the recovery must accomplish. Separate restoring understanding and maintainability from adding features, changing architecture or extending the application to other assets.

Bring application engineers, business owners and relevant operational specialists together to answer:
Use those answers to define acceptance criteria before refactoring begins. Keep unanswered questions visible rather than allowing generated specifications to turn assumptions into apparent facts.

Recovery checkpoint: A defined scope, named reviewers and an explicit list of known gaps.

2. Extract critical business rules—not just descriptions of functions

Code comprehension should reveal what the application does and why that behavior matters to the business.

Use AI-assisted analysis to identify decision points, calculations, data transformations and exception handling. Where decompilation is part of the recovery, carry the reconstructed logic into the same review process as the available source code.

Prioritize rules by asking two questions: How consequential would an incorrect interpretation be, and how difficult would that error be to detect?

For each important rule, capture:
Distinguish observed behavior from intended behavior. An undocumented branch may embody an essential exception, an obsolete workaround or a defect. AI can help surface it; the appropriate business and engineering experts must decide how to treat it.

Recovery checkpoint: A reviewed rule catalog that connects business meaning to implementation and identifies unresolved interpretations.

3. Reconstruct dependencies around the application

An understandable codebase is not yet an understandable system. Recovery must also establish how the application interacts with its environment.

Map relationships between modules, data stores, interfaces and connected applications. Capture what information crosses each boundary, which component creates or updates it and what downstream behavior could change if that relationship changes.

Do not stop at a technical inventory. Record the business meaning of those connections. A dependency map should help reviewers answer both “What calls this component?” and “What business activity depends on the result?”

Use available project history and expert knowledge to challenge the map. Some important relationships may be expressed through informal workflows rather than obvious code references.

Slingshot’s persistent enterprise context and coordinated workflows support carrying these relationships between analysis, refactoring and testing. The goal is to avoid rediscovering—or losing—the same context at each handoff.

Recovery checkpoint: A reviewed dependency map with clear boundaries and visible unknowns, suitable for assessing the impact of proposed changes.

4. Generate documentation that supports the next change

Documentation should be a recovery output, not a retrospective explanation attached after code generation.

Ask AI-assisted workflows to produce linked explanations of the application’s purpose, architecture, business rules, interfaces and validation approach. Include the rationale for refactoring decisions and any deliberately retained legacy behavior.

Review those outputs against the implementation and the rule catalog. A fluent explanation is not evidence that the interpretation is correct.

The practical test is whether another engineer can use the documentation to answer:
Keep documentation, code and tests connected as the application evolves. Otherwise, recovery creates a new snapshot of knowledge rather than a maintainable foundation.

Recovery checkpoint: Reviewed documentation that enables change assessment without relying entirely on the original recovery team.

5. Validate refactored code against recovered intent

Clean, modern code is an important output. It is not, by itself, proof of correctness.

Build validation around the recovered business rules and dependency map. Use AI to accelerate test creation, but have engineers and business reviewers challenge whether the scenarios actually represent the application’s required behavior.

A practical validation approach should:
Avoid circular assurance: generated code and generated tests can share the same mistaken interpretation. Review expected outcomes against business requirements and other available evidence—not only against what the new implementation produces.

Engineers remain accountable for determining whether the result works in its intended environment. AI accelerates analysis and verification; it does not remove that responsibility.

Recovery checkpoint: Traceable validation evidence, reviewed discrepancies and explicit acceptance of the recovered application’s scope.

6. Treat production rollout and broader reuse as separate decisions

Application recovery, production readiness and cross-site modernization are different milestones. Plan and estimate them separately.

Before production rollout, assess the recovered application in the environment where it will run. Confirm integration behavior, security controls, configuration, operational support and release readiness. A successful recovery should make those assessments easier to perform—not make them unnecessary.

Before extending the application to another site, validate the similarities rather than assuming them. Review local rules, data definitions, interfaces and operating practices. Identify what can be reused unchanged, what needs adaptation and what requires fresh validation.

The reusable asset may be more than code. It can include reviewed specifications, test patterns, documentation structures and the coordinated recovery workflow itself. This is the foundation of a digital factory approach: repeatable engineering practices with persistent context and human oversight, not identical deployment everywhere.

Measure recovered confidence, not generated volume

Track progress through the evidence your team can now produce: reviewed critical rules, understood dependencies, resolved uncertainties, validated behavior and the effort required to assess a subsequent change. Measure defects and lead time alongside productivity—not lines of generated code alone.

The European energy producer’s two-day application revival demonstrates the value of coordinating recovery activities rather than accelerating coding in isolation. Its wider lesson is not that every legacy system can be modernized in two days. It is that recovering understanding can turn an otherwise unmaintainable application into a credible starting point for change.

Start with one bounded application. Recover its rules, relationships and validation evidence. Then decide what to refactor, release or reuse.

Publicis Sapient combines engineering expertise with Sapient Slingshot’s context-aware workflows to help organizations make that progression—from application rescue to governed, repeatable modernization.