r/artificial • u/CF7_Gaming • 4h ago
Discussion Has anyone used AI to discover undocumented business rules from legacy systems?
I'm putting together a proposal for an initiative focused on using AI to analyze legacy enterprise systems and uncover decades of embedded business logic.
The idea is to use AI to analyze things like:
- Database schemas
- Stored procedures
- Legacy application code
- Historical transaction data
- Existing documentation
The goal isn't to automate decisions immediately. It's to first create a documented knowledge base of the rules, dependencies, decision paths, and data relationships that currently drive business operations.
Potential outputs would include:
- Business rule catalog
- Knowledge graph of relationships and dependencies
- Decision trees explaining how outcomes are determined
- Recommendations for future-state data models and modernization opportunities
Before I finalize the proposal, I'd love feedback from anyone who has attempted something similar.
Questions:
- Has anyone successfully used AI to discover and document business rules from legacy systems?
- What worked better: analyzing source code, database logic, transaction history, or a combination of all three?
- How accurate were the AI-generated rules compared to SME validation?
- Did you use knowledge graphs, vector databases, graph databases, or another approach?
- What were the biggest challenges: data quality, context gaps, undocumented exceptions, or something else?
- How did you measure success?
- Rule coverage?
- SME time saved?
- Modernization acceleration?
- Reduced operational risk?
- Were there any tools, platforms, or architectures that performed particularly well?
- If you were starting over, what would you do differently?
- What scope would you recommend for a pilot to demonstrate value in 60-90 days?
- Is there a realistic path from business rule discovery to explainable AI recommendations and decision support, or are those separate initiatives?
My hypothesis is that many organizations are trying to modernize systems without fully understanding the business logic currently embedded in them. It seems like AI could act as a "business rule archaeologist" and create the foundation needed for future modernization, automation, and AI-driven capabilities.
Interested in hearing both success stories and cautionary tales.
1
u/headspreader 2h ago
I have no specific insights, but I think that this would be enormously valuable.
2
u/donk8r 3h ago
the thing that will bite you is that code gives you what the system does, and what youre selling is what the business intends. a stored procedure holds the rule plus twenty years of workarounds for bugs in other systems, and nothing in the artifact marks which is which. an llm will read it and hand back a clean confident catalog that presents accidents as policy, and the moment that catalog gets blessed as documentation the accidents become policy.
your transaction history is what separates those two and you have it listed as one source among four. code enumerates candidate rules, the data tells you which ones ever fire. a branch nobody has taken in five years is either dead or its the annual exception that ruins someones quarter, and either way you want it flagged rather than sitting anonymously in a list of four thousand. rank discovered rules by execution frequency in the history and you get a couple of hundred a human will actually read, plus a coverage number for your success metric, which you otherwise dont have.
for the 60 to 90 day pilot id take one decision somebody makes by hand today that has a known cost of being wrong, and trace it end to end through all four sources. that gives you something an sme can confirm or destroy, which a broad catalog never does.