2026-06-13 · Rosho, CEO, Qaori

Siegfried: Governing the Systems That Cannot Be Rewritten

The organizations with the most to lose from AI governance failures are often the ones running the oldest code.

There is a particular category of enterprise AI governance conversation that frustrates me more than most. It is the one where the architect or CTO says, in effect: we understand the governance requirement, we agree it is necessary, and we are planning to address it as part of the migration. The migration to the modern platform that has been planned for four years and will take another three.

The implication is that governance waits for the greenfield moment. That the organization will operate ungoverned AI in the interim, because the systems are too old to instrument and the rewrite is coming eventually.

The systems that cannot be rewritten are not edge cases in enterprise AI deployment. They are the center of gravity for the organizations with the largest AI governance stakes. Banks running core banking logic on mainframes from the late 1970s. Insurers with policy administration systems built on COBOL that predate the web. Government agencies whose benefit disbursement platforms have accumulated forty years of business rule amendments, edge case handling, and jurisdiction-specific logic. These systems process trillions of dollars in transactions, adjudicate millions of insurance claims, and determine eligibility for benefits that affect real people's lives. The AI systems that interact with them, or that are being layered on top of them, are making consequential decisions against logic that is often undocumented, partially understood, and entirely ungoverned.

Siegfried is the framework that addresses this. It does not require a rewrite. It does not require a migration. It extends governance to legacy systems by extracting their decision logic, building a semantic model of what they do, and exposing an API boundary that Sentinel can intercept.

The Legacy Governance Problem

Before describing what Siegfried does, it is worth being precise about why legacy systems present a governance problem that cannot be solved by standard approaches.

The standard approach to AI governance in enterprise environments assumes that decision points are accessible. The assumption is reasonable for modern architectures: microservices expose API contracts, event-driven systems produce observable message streams, cloud-native workloads generate structured logs. In these environments, placing a governance layer in front of a service is an integration exercise. The service has a defined interface. The governance layer sits in front of it. The approach works.

Legacy systems frequently have none of these properties. A mainframe core banking application built in 1978 does not have an API. It has batch jobs, direct file I/O, and terminal session interfaces designed for human operators. The decision logic is distributed across thousands of COBOL programs, embedded in stored procedures, encoded in the control flow of JCL scripts, and occasionally documented in comments written by people who retired fifteen years ago. The decisions this system makes, which customers get credit, which transactions clear, which accounts get flagged, are governance-critical decisions by any reasonable standard. The system makes them invisibly, continuously, without producing a decision record that any governance layer can intercept.

The second problem is that these systems have downstream dependency networks that are often more complex than anyone currently at the organization fully understands. A core banking system from 1978 has not operated in isolation. It has had integrations added to it every few years as the business grew. Downstream report generators, regulatory reporting pipelines, third-party data feeds, customer-facing applications, and risk management systems all depend on specific outputs from specific fields in specific output files. Changing anything in the upstream system without a complete picture of these dependencies is high-risk. But the dependency picture does not exist as a document. It exists only in the system, waiting to be extracted.

These two problems together create the governance gap that is common to every large legacy system I have encountered: the decisions are ungoverned because the decision points are not accessible, and the risk of any intervention is amplified by the incomplete understanding of downstream dependencies.

What Siegfried Does

Siegfried addresses this gap through a five-stage process that produces a governed legacy environment without requiring changes to the legacy code.

The first stage is code archaeology. Siegfried analyzes the legacy codebase using static analysis tools adapted for the languages and environments common in legacy enterprise systems: COBOL, PL/I, RPG, SQL stored procedures, JCL, and the batch processing frameworks built around them. Code archaeology is not a mechanical process. It requires identifying where the system makes decisions, not just where it branches. A COBOL conditional branch that selects a credit risk category is a governance-critical decision point. A conditional that formats a line of output for a report is not. The distinction requires understanding what the code does, not just how it is structured.

The output of code archaeology is a decision point inventory. In the case study I describe below, this inventory comprised 847 distinct decision points across 15 million lines of COBOL code. Each decision point is characterized by the data it reads, the logic it applies, the outcome it produces, and the downstream processes that depend on its output.

The second stage is ontology extraction. From the decision point inventory, Siegfried builds a semantic model: an ontology that represents the entities the legacy system works with, the relationships between them, and the decision logic that governs transitions between states. This is not a data dictionary. A data dictionary describes fields and types. An ontology describes meaning and relationships. The difference matters because entropy scoring depends on structural properties, specifically degree centrality and cascade potential, that do not exist in a data dictionary but are fundamental properties of an ontology graph.

In the case study below, ontology extraction produced 1,240 entity instances and 4,300 dependency relationships. These numbers reflect the actual complexity of a core banking system that had operated and grown for forty-five years. The ontology is the artifact that makes entropy scoring possible for legacy decisions. Without it, a governance layer can intercept a legacy decision but cannot compute what it means to do so.

The third stage is API wrapping. Siegfried exposes the identified decision points as API endpoints that Sentinel can intercept. The legacy code continues to execute exactly as it always has. The API wrapper is a thin interception layer placed between the call path that triggers the legacy decision and the point at which the decision takes effect. When the legacy system would normally proceed directly from decision logic to output, the wrapper first routes the decision through Sentinel for governance evaluation, then permits or holds execution based on the gate outcome.

This stage requires careful engineering, because the call paths in legacy systems are not always well-defined. Siegfried's wrapper architecture uses a combination of API gateway injection, batch process interception at job submission boundaries, and, in some cases, screen-scraping adapters for terminal interfaces that have no programmatic call path. The approach is pragmatic rather than elegant: the goal is a governable boundary, not a beautiful architecture.

The fourth stage is entropy weight configuration. Once decision points are wrapped and exposed to Sentinel, the ontology model is used to configure entropy weights for each decision class. A credit adjudication decision that affects a single account, is immediately reversible, and has no downstream integrations scores differently from a rate adjustment decision that affects all accounts in a given product class, propagates to downstream risk systems within a nightly batch run, and is constrained by regulatory notification requirements before reversal. The ontology provides the structural data. Entropy weight configuration applies business and regulatory knowledge to translate that structural data into calibrated scores.

The fifth stage is governance layer activation. With the decision points wrapped, the ontology loaded, and the entropy weights configured, Sentinel begins governing legacy decisions. The first governance cycle is typically run in observation mode: gate outcomes are computed and logged but do not hold execution. This produces a baseline picture of the entropy distribution of the legacy system's actual decision traffic, which is used to validate the threshold configuration before full enforcement begins.

The Core Banking Case Study

In 2024, we worked with a financial institution whose core banking platform had been in operation since 1978. The system comprised approximately 15 million lines of COBOL, with no current API layer, minimal documentation of the original design intent, and 300-plus downstream integrations accumulated over forty-five years of production operation.

The institution was in the process of deploying AI systems in its credit and fraud functions. The AI systems needed access to core banking data, and some of them were designed to trigger actions that would ultimately flow back into the core. The governance question was straightforward: before the AI systems began making decisions that interacted with the core, how would those decisions be governed?

The obvious answer, rebuild the core with a modern API layer, was not viable on any realistic timeline. The system processes millions of transactions daily. The downstream integration network is extensive and partially undocumented. A full migration had been estimated at seven to ten years and several hundred million dollars. The institution needed governance of its AI-core interaction now, not after a decade-long infrastructure program.

Siegfried was deployed over six months. Code archaeology identified 847 decision points across the codebase. The analysis distinguished between governance-critical decision points, those affecting customer status, credit limits, transaction authorization, product eligibility, and reporting outputs, and operational branch points that govern internal processing flow without governance significance. Of the 847 decision points, 412 were classified as governance-critical and received full ontology extraction and API wrapping treatment.

Ontology extraction from the 412 governance-critical decision points produced 1,240 entity instances and 4,300 dependency relationships. This ontology was the first complete semantic map of the core banking system's decision logic that the institution had ever produced. Several dependencies identified in the extraction process were unknown to current staff. Three downstream systems were identified as dependent on specific decision outputs in ways that were not reflected in any existing integration documentation.

API wrapping was completed for all 412 governance-critical decision points. A four-week observation period using Sentinel in reporting mode produced a baseline entropy distribution: approximately 68% of legacy decision traffic fell below the automated-permit threshold, 24% fell in the amber zone requiring rule-based routing, and 8% exceeded the threshold that would require active authorization. The 8% figure was higher than the institution's governance team had expected. It reflected a category of batch-processed credit status adjustments that operated with broad scope and limited reversibility, decisions whose governance significance had not been visible before the entropy scoring was applied.

Full governance enforcement began in month seven. Core banking decisions have been governed by entropy-based framework since then, without any modification to the COBOL code that has run the system since 1978.

Why the Order of Priority Is Inverted

The conversation in enterprise AI governance consistently prioritizes modern systems. New AI infrastructure gets governance attention. Greenfield deployments get evaluated against governance frameworks before production. Pilots get compliance reviews. The emerging regulatory environment, the EU AI Act, sector-specific guidance from financial regulators, executive orders on AI in critical infrastructure, all direct attention primarily toward AI systems being deployed now.

This is the wrong order of priority. The legacy systems that have operated for decades process a vastly larger volume of consequential decisions than the AI systems being deployed on top of them. The AI systems are consequential precisely because they interact with the legacy systems, or because they are being positioned to automate decisions that legacy systems currently make. Governing the AI layer without governing its interaction with the legacy layer is governing the interface and ignoring the engine.

The institutions that most need AI governance are the ones where the stakes of AI governance failures are highest: banks that cannot afford a credit adjudication failure at scale, insurers whose underwriting errors compound over years before they become visible, government agencies whose benefit administration errors affect people who have no recourse. These institutions share a common infrastructure characteristic. Their most consequential decision logic runs on the oldest systems, in the oldest languages, behind the most opaque interfaces.

The argument that governance waits for the greenfield migration is an argument for indefinite ungoverned operation of the systems that carry the most governance risk. Siegfried exists as a rejection of that argument. The path from ungoverned legacy operation to governed AI-legacy interaction is a six-month engineering program, not a seven-year migration.

The Ontology as Governance Foundation

One outcome of the Siegfried process that deserves attention beyond its role in legacy governance is the ontology itself. The semantic map produced by Siegfried's extraction process is, in most cases, the first rigorous documentation of the legacy system's decision logic that the organization has ever had.

This has value well beyond AI governance. It is the foundation for any future migration, because migration without a complete ontology is migration into known-incomplete coverage. It is the foundation for regulatory examination, because regulators increasingly require that organizations be able to explain how their systems make consequential decisions. It is the foundation for the entropy scoring infrastructure, because accurate entropy scores depend on the structural properties of the ontology being accurate.

The next article in this series goes deeper into the ontology itself: how the Entropositive Ontology is constructed, how it is maintained as systems evolve, and why structural completeness is the operational core of the entire DHG architecture. The governance guarantee is only as strong as the map it reads.