Build a practical AI governance framework for your engineering org. Covers model selection policies, PII controls, audit trails, and gateway enforcement.
Engineering teams adopt AI fast. Governance catches up slow. The Stanford AI Index 2026 report puts it plainly: "the frameworks needed to govern, evaluate, and understand this technology are falling behind." Meanwhile, regulations like the EU AI Act are already enforceable, and the penalties for getting it wrong are measured in percentages of global revenue.
This is a practical ai governance framework you can implement in your engineering org. Not a 200-page policy document that sits in a shared drive. A working system with clear rules, enforcement points, and audit trails.
The regulatory landscape has shifted from "guidelines to consider" to "rules to follow."
The EU AI Act (Regulation (EU) 2024/1689) was published in the Official Journal of the European Union on 12 July 2024. It classifies AI systems into four risk tiers: unacceptable risk (prohibited), high-risk (regulated), limited risk (lighter transparency obligations), and minimal risk (unregulated). For general purpose AI (GPAI) model providers, the requirements are specific: technical documentation, instructions for use, copyright compliance, and a training data summary. GPAI models that present a systemic risk must also conduct model evaluations, adversarial testing, track and report serious incidents, and ensure cybersecurity protections.
ISO/IEC 42001:2023 provides the certifiable management system for AI. Published in December 2023, it specifies requirements for establishing, implementing, maintaining, and continually improving an AI management system. It applies to organizations of any size involved in developing, providing, or using AI-based products or services. The standard uses the Plan-Do-Check-Act methodology to manage AI-related risks and opportunities.
In the US, Executive Order 14110 on Safe, Secure, and Trustworthy Artificial Intelligence was rescinded on January 20, 2025. That leaves a federal regulatory gap, but it does not reduce your exposure. State-level laws, sector regulations, and contractual obligations still apply.
Bottom line: Waiting for a "final" regulatory picture is not a strategy. You need a framework that adapts.
A working ai governance framework for engineering orgs breaks down into five areas. Each one needs an owner, a policy, and a technical enforcement mechanism.
Not every task needs a frontier model. Not every model meets your compliance requirements.
What to define:
How to enforce it:
Route all API calls through a central gateway that validates the model against your approved list before forwarding the request. Policy violations get blocked at the gateway, not caught in a code review three weeks later.
This is where most organizations fail first. Engineers build features, prompts include customer data, and sensitive information flows to third-party servers before anyone thinks about compliance.
What to define:
How to enforce it:
Automatic PII redaction at the gateway level. Every prompt passes through detection and redaction before reaching any external API. The external provider never sees raw data. This is not optional for teams operating under GDPR, where fines reach up to 4% of global revenue under Article 44 for improper cross-border data transfers.
Governance without access control is a suggestion, not a policy.
What to define:
How to enforce it:
shim's security architecture stores production provider keys in a managed secret backend, never returns stored secrets in plaintext, and keeps requests tenant-scoped. Fernet is used only by the local development backend.
You cannot govern what you cannot see. Every AI interaction should be logged with enough detail to answer: who made the request, what data was involved, and which model processed it.
What to define:
How to enforce it:
A centralized gateway gives you a single audit trail across every AI interaction. Instead of scraping logs from 15 different microservices, you get one unified view: every request, every response, every redaction event.
An ai governance framework is not a set-and-forget document. Models change. Regulations evolve. Your usage patterns shift.
What to define:
How to enforce it:
Automated monitoring with alerts based on your defined thresholds. The gateway layer catches policy violations in real time rather than in a post-mortem.
The regulations differ, but the controls they require overlap significantly. Here is how the five pillars map to the major frameworks.
| Pillar | EU AI Act | ISO/IEC 42001 | GDPR |
|---|---|---|---|
| Model Selection | Risk classification required for high-risk AI systems | Policies and objectives for AI use | Data protection impact assessments for high-risk processing |
| PII Controls | Transparency obligations; prohibited uses for unacceptable risk | Processes for responsible development and use | Article 44: cross-border transfer controls; fines up to 4% of revenue |
| Access Controls | Deployers of high-risk AI must ensure human oversight | Organizational roles and responsibilities defined | Data minimization and purpose limitation principles |
| Audit Trails | High-risk AI must maintain logs; serious incidents tracked | Continual improvement through Plan-Do-Check-Act | Records of processing activities required under Article 30 |
| Incident Response | GPAI providers must track and report serious incidents | Management review and corrective actions built in | 72-hour breach notification requirement |
The fastest path to a working ai governance framework is to put a gateway between your engineers and the AI providers. Not because governance is only about technology, but because a gateway gives you immediate policy enforcement that would otherwise depend entirely on developer discipline.
Audit every AI API call in your org. Which teams are calling which providers? What data is in the prompts? You cannot govern what you have not mapped.
Write your model selection policy, data handling rules, and access control matrix. Keep each document under two pages. If it is longer, it will not get read.
Route all AI traffic through a single gateway that enforces your policies: automatic PII redaction, model validation against your approved list, per-team API key management, and request logging for your audit trail.
Review the first week of gateway logs. Identify policy violations, adjust thresholds, and refine your approved model list based on actual usage patterns.
shim exposes native OpenAI, Anthropic, and Google routes behind one tenant-isolated policy and accounting boundary. PII placeholder processing is applied before provider execution; provider selection and failover remain explicit application decisions.
Shadow AI is already in your org. Engineers are using personal accounts, pasting proprietary code into free-tier tools, and sending customer data to servers you have never audited. Every day without a governance framework is another day of uncontrolled risk exposure.
The question is not whether you need an ai governance framework. The question is whether you build one proactively or reactively, after the incident that forces your hand.
Start with the five pillars. Enforce them at the gateway. Iterate monthly.
shim can provide PII placeholder processing, policy, and accounting for its supported native provider routes. Use each provider's native SDK and route; it does not turn all providers into one translated endpoint or choose a fallback on your behalf.
const openai = new OpenAI({
baseURL: "https://api.getshim.tech/v1",
apiKey: process.env.SHIM_API_KEY
})