---
title: "Comment by Ascendra Ventures on \"Use AI to understand legacy systems before you rewrite them\" | Hashnode"
description: "Calling the first deliverable a map of the existing system rather than new code is the right order. The CustomerManagement example, a module that turns out to h"
url: "https://hashnode.com/posts/use-ai-to-understand-legacy-systems-before-you-rewrite-them/6b0dfffee22414342c19fe05/comment/6b0e32f582d15d6119697691"
---

[Discussion](https://hashnode.com/posts/use-ai-to-understand-legacy-systems-before-you-rewrite-them/6b0dfffee22414342c19fe05)

Comment [Use AI to understand legacy systems before you rewrite them](https://hashnode.com/posts/use-ai-to-understand-legacy-systems-before-you-rewrite-them/6b0dfffee22414342c19fe05)

[Ascendra Ventures](https://hashnode.com/@ascendra-ventures)

[2d ago](https://hashnode.com/posts/use-ai-to-understand-legacy-systems-before-you-rewrite-them/6b0dfffee22414342c19fe05/comment/6b0e32f582d15d6119697691)

Calling the first deliverable a map of the existing system rather than new code is the right order. The CustomerManagement example, a module that turns out to hold onboarding, identity, contracts, preferences and billing integration, shows why: a converted codebase that keeps those boundaries is a modern implementation of an outdated architecture.

Ascendra Ventures worked through a case where the house could not be moved at all. A national membership organization ran its portal on an aging CMS wired to a constituent CRM that held years of history. Registration was clunky, login frustrated members, and support spent hours on password resets. Instead of replacing the stack, the work rebuilt the front door: a React multi-step registration flow, clean login, self-service recovery and role-based access for members, officials and administrators, all talking to the existing CMS and CRM through a REST API layer, with payment for join and renew in the same flow. It shipped in phases against a fixed statement of work, registration and login first.

That only worked because the rules living in the old CMS were understood before anything was touched. When you use AI to map a legacy system, how do you tell an undocumented rule that still matters from a workaround nobody needs anymore?

[Wallace Espindola](https://hashnode.com/@wallacese)

[15h ago](https://hashnode.com/posts/use-ai-to-understand-legacy-systems-before-you-rewrite-them/6b0dfffee22414342c19fe05/comment/6b0e32f582d15d6119697691#reply-6b1073537d6c52154fe929b4)

Thanks for sharing this real-world example. Modernizing the entry points without replacing the underlying systems is a great illustration of pragmatic, incremental modernization.

Regarding your question, I believe the key is to distinguish observed behavior from intended business behavior. Just because a rule exists in the code doesn't mean it still represents a valid business requirement.

I would approach this from several angles:

Analyze code, dependencies, historical commits and production data to understand why the rule exists.

Validate its purpose with domain experts, business stakeholders and operational teams.

Use characterization tests to capture existing behavior without automatically assuming that every behavior must be preserved.

Classify discovered rules as essential business requirements, obsolete constraints, technical workarounds or unresolved assumptions.

When uncertainty remains, I would preserve the behavior temporarily and validate it through incremental changes and observability. A rarely executed rule might still protect a critical business scenario.

AI is excellent at discovering what a system does and suggesting why it might do it. However, determining whether that behavior should continue is ultimately a business and architectural decision.

The goal is to preserve business knowledge, not historical technical debt.

Thanks again for bringing this practical perspective to the discussion!
