The Governance Imperative: Why AI Needs Engineering Control
Chapter 1: The Governance Imperative: Why AI Needs Engineering Control
A loan model that approves women for mortgages at half the rate of identically-profiled men. A workspace assistant
that cheerfully leaks an entire customer database to the next user who asks politely enough. A customer-service chatbot that recommends a competitor's product with confidence and a straight face. These are not hypotheticals pulled from a research paper. They are Tuesday morning in the modern enterprise.
Consider the trajectory. In 2018, a major retail bank settled a fair-lending investigation after auditors discovered that its credit-scoring model—which had been trained on five years of historical lending data—was quietly rejecting applicants from specific postal codes at nearly twice the rate of equivalent applicants from neighboring ones. The model had not been "programmed" to discriminate. It had simply learned the historical pattern of a manual underwriting process that humans had long since corrected, but had never been retrained. The damage was not a bug; it was an artifact of the training pipeline. No one in the company's three-thousand-person engineering organization could, at the time of the audit, produce a complete inventory of every model that had been deployed to production, let alone explain how any one of them made its decisions. The settlement: $36 million. The remediation cost, including the rebuild of the model risk management program: north of $120 million. The reputational scar: immeasurable, and still visible on the company's investor calls four years later.
Consider the next door down the hall. In 2023, a Fortune 500 insurer quietly disabled a productivity assistant that had been rolled out to eight thousand employees after a security researcher demonstrated that a single carefully crafted calendar invitation could exfiltrate the contents of an executive's inbox. The attack was a textbook indirect prompt injection: hostile instructions hidden inside a document the assistant was asked to summarize. The assistant, dutifully following what it interpreted as instructions, copied sensitive content into a URL it was tricked into calling. The vendor patched the issue within thirty days. The insurer's own audit trail of who had accessed what data, when, and why—did not exist. They could not tell, after the fact, which employees' mailboxes had been exposed. They could not even confirm whether the researcher had been the only one to discover the vulnerability. The total cost of the response, including credit-monitoring services offered to affected employees, external counsel, and the six-month pause on the entire AI roadmap: a figure that one board member described, in a closed session, as "the most expensive calendar invite in the history of the company."
Consider the third office, the one with the runaway invoice. A mid-sized e-commerce company integrated a generative model into its customer support workflow. The model was cheap to evaluate and was wrapped behind a thin API gateway that did basic rate limiting. A misconfigured upstream service began, on a Saturday night, to send the same complex customer query in a tight loop. The model's provider billed per token. By the time an on-call engineer noticed on Monday morning, the company's monthly AI spend had increased by a factor of forty. The invoice: $847,000. The postmortem revealed that there was no per-tenant quota, no circuit breaker on the gateway, no anomaly detection on spend, and—most damningly—no central team that owned the integration. Every product group had wired up its own little script, and no one was looking at the aggregate.
Consider the fourth case, which did not yet make the headlines but will. A regional healthcare network deployed a clinical summarization model that read physician notes and produced structured summaries for billing. The model was accurate in aggregate and inaccurate in a way that was both statistically rare and clinically significant: it occasionally fabricated a diagnosis code that was not in the source note, but that was plausible enough to pass a casual reviewer. Over the course of a year, an unknown number of insurance claims were submitted with codes that did not correspond to actual diagnoses. When regulators eventually audit the system—and they will, because the audit trail is now mandatory under the latest iteration of the relevant rule—the question will not be whether the model was biased or buggy. The question will be whether the organization can produce, on demand, the evidence that its governance controls were operating as designed: who approved the model, what data it was trained on, what evaluations it passed, what monitoring was in place, and what happened when it drifted.
Four stories. Four different industries. Four different failure modes—bias, security, cost, and compliance. And yet, when you sit with the postmortems, you notice something uncomfortable. In every case, the proximate cause of the failure was technical. The downstream cause, the cause that made the failure possible and that turned each incident into a crisis instead of a contained event, was the same: the absence of an engineering discipline for governing AI systems.
This book is about building that discipline.
The Word We Use, and Why It Matters
"Governance" is one of the most overused and under-defined words in the enterprise technology vocabulary. In most organizations, "AI governance" refers to a committee, a policy document, a set of principles on a webpage, a risk register maintained in a spreadsheet, and possibly an annual review by an internal audit function. None of these things, individually or in aggregate, control an AI system in any meaningful sense. They describe intentions. They do not act on systems.
This book makes a deliberate, and slightly unfashionable, claim: AI governance is an engineering discipline. It is the practice of designing, building, and operating the control systems that determine what an AI system is permitted to do, who is permitted to ask it to do things, what evidence is captured about its behavior, and how that evidence is used to update the system's permissions over time. Governance is not a layer of paperwork that sits on top of an AI system after the engineers have finished. Governance is the set of controls that the engineers themselves design and operate, in the same way that they design and operate authentication, observability, deployment, and rollback.
If you come from a traditional governance, risk, and compliance (GRC) background, this framing may feel reductive. It is not. The GRC function still has a vital role to play: it sets the policy objectives, defines the risk appetite, and provides the independent assurance that the engineering controls are operating as designed. But the actual controls—the things that, moment by moment, determine whether a model is allowed to serve a request, whether a prompt contains an injection attempt, whether a particular user is allowed to see a particular piece of data, whether an inference is being billed against the correct cost center, whether a deployment has been approved, whether an evaluation has passed, whether a piece of evidence has been archived in a way that will survive an audit—these are all engineering artifacts. They are code. They are configurations. They are pipelines. They are dashboards. They are runbooks. And, like all engineering artifacts, they have bugs, they have failure modes, they have design choices that can be made well or badly, and they require people with the right skills and the right authority to maintain them.
If you come from a machine learning or platform engineering background, this framing may feel like an imposition. It is not. The point is not that every ML engineer must become a compliance expert. The point is that the systems you build, like every other system in the enterprise, must be designed to be governable. A model that cannot be gover