From black box to blueprint: how we ran a rapid legacy system assessment with CAST
Case study: how CAST helped assess, in one month, a 15-year-old legacy application with 2.2M lines of code, ahead of a support transition to DAMO™.
ADSERVIO INSIGHTS · DEVSECOPS

KEY POINTS
- A leading agriscience organization requested a rapid assessment of a critical 15-year-old application before transitioning its support to DAMO™.
- The system spanned more than 30 components and 2.2 million lines of code, with knowledge concentrated among very few subject matter experts.
- A dual approach combined CAST software intelligence (Gatekeeper and Imaging, 1,800+ metrics) with an analysis of historical incident data.
- The full assessment was delivered in one month, quantifying technical debt, flagging critical violations, and scoring the system against ISO 5055 (including the TQI).
- The organization now has a data-driven strategic roadmap for the transition and future evolution of its application ecosystem.
SECTION 1
Introduction
An in-depth look at how a data-driven discovery process and advanced software intelligence unlocked a 15-year-old application, delivering clear insights and a strategic roadmap for future growth.
Today's organizations face the daunting challenge of managing and modernizing complex legacy applications, often decades old. Understanding these systems, which can span millions of lines of code, is a major obstacle, especially when critical knowledge is held by only a handful of subject matter experts (SMEs). By 2026, this difficulty keeps growing: the teams that designed these systems have often left the organization, original documentation has rarely kept pace with changes, and pressure to modernize is mounting as new regulatory requirements emerge and cloud-native architectures become the norm.
This is the story of how our team successfully navigated this complex technical challenge using CAST software intelligence, a partner we collaborate with.
SECTION 2
The challenge: assessing a critical black box
### A knowledge debt accumulated over 15 years
A leading agriscience organization approached us with the goal of transitioning support for its key application ecosystem to DAMO™ (Digital Application Management and Operations). The system was more than 15 years old and had grown, through successive changes, into a vast, complex ecosystem: more than 30 distinct components and an impressive 2.2 million lines of code.
The biggest obstacle was not strictly technical, but organizational: the availability of subject matter experts. Without their deep institutional knowledge, built up over years and rarely formalized, gaining a reliable understanding of how the system actually worked was a major risk for the rest of the project.
### The stakes of the transition to DAMO™
Our mission was to rapidly demystify this complex system in order to provide the foundational understanding needed to build a clear transition plan. This meant conducting a fast, comprehensive assessment of the system as it actually ran in production, without interrupting operations or relying solely on the memory of a handful of key individuals who would eventually leave the project.
SECTION 3
The method: data-driven discovery with CAST
### CAST Gatekeeper: the quality and security snapshot
To rapidly assess the system, we employed a dual strategy, combining in-depth code analysis using CAST components with a comprehensive review of historical incident data. We primarily leveraged the Management and Engineering dashboards of CAST Gatekeeper, which provide a consolidated, data-driven assessment of the application's health, quality, and security. By analyzing the system against more than 1,800 metrics, we were able to measure its state with very high precision, without relying on an inevitably partial manual audit.
### CAST Imaging: the architectural map
For deeper analysis, we used CAST Imaging dashboards to gain a strategic-level understanding of the application's architecture, map the API inventory, and identify the various frameworks in use. Within a few days, this gave us an interactive technical blueprint of the system, something a manual code exploration would have taken several months to produce. The future goal is to leverage this "digital subject matter expert" as living documentation to guide the support transition and help steer the application's future evolution.
### Cross-referencing code with incident data
To complement the insights provided by CAST, we analyzed historical incident data accumulated over several years of operations. This investigation provided critical context that a source code analysis tool alone cannot deliver: by studying recurring issues and tickets, we identified the areas that were actually impacting users and business operations. This step let us correlate the technical weaknesses uncovered by CAST with their real-world consequences, ensuring our final recommendations were not only technically sound but also highly relevant to the system's most pressing operational challenges.
SECTION 4
What the ISO 5055 metrics reveal
### The Total Quality Index (TQI) as a compass
This dual approach let us build a holistic view of the system's health, translating it into indicators shared by technical teams and business decision-makers alike. At the center of this assessment is the Total Quality Index (TQI), a benchmark score defined by the ISO/IEC 5055 standard, which aggregates several dimensions of software quality into a single, comparable measure over time.
@cite:decisions-architecturales-logicielles-qui-doit-etre-implique
### Technical debt and critical violations
The dashboards quantified the system's challenges in concrete terms: significant technical debt, measured by the estimated effort required to fix stability issues, along with a substantial number of critical code violations posing direct risks to production performance and stability.
### Robustness, security and efficiency
Beyond the overall score, specific measures were established for the application's robustness, security, and efficiency, three dimensions of the ISO 5055 framework that receive particular scrutiny during a support transition, since they directly determine the operational risk the incoming team takes on.
SECTION 5
The results: a clear path forward
### Accelerated, shared understanding
By combining the power of CAST with our engineering expertise, we completed the full system assessment in just one month, a timeline that would have been impossible to hit with exhaustive manual reverse engineering. Visual technical blueprints and detailed metrics provided unprecedented clarity into the 15-year-old application, including for stakeholders who had never explored it in depth.
### An actionable roadmap
The assessment delivered a clear identification of technical risk areas, including specific software and security violations and the zones of most significant technical debt. The structured documentation and clear insights significantly improved onboarding readiness for the incoming DAMO™ team, giving it a solid, data-driven foundation for defining the transition plan and its scope. Based on these findings, we delivered a set of concrete, actionable recommendations to guide the application's future evolution.
SECTION 6
What this engagement teaches about legacy modernization
### Never rewrite in a vacuum
One of the major lessons from this engagement goes beyond the specific case: before any decision to rewrite, migrate, or transition support, a system needs to be understood objectively, not only through the lens of those who have maintained it for years. Software intelligence does not replace business expertise, but it reduces critical dependence on it and grounds choices that would otherwise remain largely subjective.
@cite:la-modernisation-echouee-detecter-et-eviter-les-antipatrons
### Software intelligence in support of AI agents
By 2026, this approach is increasingly combined with generative AI agents capable of leveraging the map produced by CAST to accelerate technical documentation, propose targeted refactorings, or generate regression tests for the areas with the highest debt. Software intelligence provides the factual, verifiable foundation these agents can rely on with confidence, rather than hallucinating an understanding of the system from source code alone.
@cite:retro-ingenierie-de-boite-noire
SECTION 7
The Adservio approach to critical legacy systems
At Adservio, this engagement illustrates a core conviction of ours: modernizing a legacy system always starts with a rigorous, well-tooled discovery phase, before any architecture decision is made. We combine software intelligence, operational data analysis, and human expertise to turn a black box into an actionable technical blueprint, whether for a support transition, a cloud migration, or a progressive rebuild.
Ultimately, what looked like an insurmountable assessment challenge was transformed into a strategically defined initiative. The organization now has a clear, evidence-based roadmap for the long-term evolution and health of its critical application ecosystem, ensuring its stability and adaptability for years to come.
Disclaimer: the statements and opinions expressed in this article are those of the author(s) and do not necessarily reflect Adservio's positions.
FAQ
Frequently asked questions
What is CAST and why was it used for this assessment?
CAST is a software intelligence platform that analyzes source code to produce quality metrics and an architectural map. Its Gatekeeper component (Management and Engineering dashboards, 1,800+ metrics) and Imaging component (architecture and API inventory mapping) provided a rapid, objective view of a 15-year-old system without relying solely on subject matter experts' memory.
What is the Total Quality Index (TQI) and why is it central to this assessment?
The TQI is a benchmark score defined by the ISO/IEC 5055 standard, aggregating several dimensions of software quality (robustness, security, efficiency) into a single measure. It served as a shared compass between technical teams and business decision-makers to prioritize the most critical risk and technical-debt areas.
What concrete outcomes did the one-month assessment deliver?
A clear identification of technical risks (security violations, zones of significant technical debt), quality scores based on ISO 5055 standards including the Total Quality Index (TQI), improved onboarding readiness for the incoming DAMO™ team, and a data-driven strategic roadmap for the next phase of the transition.
ABOUT ADSERVIO
Adservio is an AI-native digital transformation partner: AI-augmented IT departments, software engineering, DevOps, MLOps, cybersecurity and AI governance.
Let's talk about your project: hello@adservio.fr · adservio.fr/contact