Contact Us

See every AI call your team makes: what it carried, what it cost and what was masked.

Read Documentation→

Product

  • shim-cli
  • AI Gateway
  • Enterprise
  • Playground
  • Pricing
  • Docs

Company

  • About Us
  • Security
  • Blog
  • Contact Us

© 2026 shim. All rights reserved.

SecurityPrivacy PolicyTerms of Service
Contact Us

See every AI call your team makes: what it carried, what it cost and what was masked.

Read Documentation→

Product

  • shim-cli
  • AI Gateway
  • Enterprise
  • Playground
  • Pricing
  • Docs

Company

  • About Us
  • Security
  • Blog
  • Contact Us

© 2026 shim. All rights reserved.

SecurityPrivacy PolicyTerms of Service
Contact Us
Back to Blog|Home
Compliance

AI Governance Framework for Engineering Teams

Build a practical AI governance framework for your engineering org. Covers model selection policies, PII controls, audit trails, and gateway enforcement.

June 10, 202614 min read

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.

What We'll Cover

  • Why engineering teams need a governance framework right now
  • The five pillars: model selection, PII controls, access management, audit trails, incident response
  • How each pillar maps to EU AI Act, ISO/IEC 42001, and GDPR
  • A four-week implementation sequence starting with gateway enforcement
  • The real cost of shadow AI and ungoverned usage

Why Engineering Teams Need a Governance Framework Now

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.

The Five Pillars of an Engineering AI Governance Framework

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.

1

Model Selection and Approval

Not every task needs a frontier model. Not every model meets your compliance requirements.

What to define:

  • Approved model list. Which providers and model versions are sanctioned for production? Which are for dev and testing only?
  • Risk classification per use case. A customer-facing chatbot handling financial data has different requirements than an internal code review assistant.
  • Data residency constraints. Your model selection policy needs to account for where each provider processes and stores data.
  • Cost guardrails. Per-team or per-project token budgets. Without limits, a single runaway agent loop can burn thousands of dollars in hours.

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.

2

Data Handling and PII Controls

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:

  • Data classification tiers. At minimum: names, emails, phone numbers, national IDs, financial info, health records, and login credentials. Also indirect identifiers: IP addresses, device IDs, and location data.
  • Redaction requirements by tier. Which categories must be stripped before leaving your perimeter? Which can pass through with encryption?
  • Provider data policies. Some providers may store prompts for up to 30 days. Without enterprise agreements, your data could be used to train future models.

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.

3

Access Controls and Authentication

Governance without access control is a suggestion, not a policy.

What to define:

  • Role-based access. Not every engineer needs every model. Junior developers might get Haiku-tier. Senior engineers get Sonnet. Only specific projects get Opus-level capabilities.
  • API key management. Shared API keys are a governance anti-pattern. Every team or service should have its own credentials, scoped to specific models and rate limits.
  • Tenant isolation. Every request must be scoped by organization or team ID. An authentication bug should never expose another team's keys or data.

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.

4

Logging, Audit Trails, and Observability

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:

  • Log retention policy. Align with your regulatory requirements and incident response needs.
  • What to capture per request. At minimum: timestamp, user/service identity, model called, token count, latency, HTTP status, and whether PII was detected and redacted.
  • Anomaly detection thresholds. Alerts for unusual patterns: token usage spikes, unapproved model requests, or PII detection rates that suggest a data pipeline is leaking unredacted information.

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.

5

Incident Response and Continuous Review

An ai governance framework is not a set-and-forget document. Models change. Regulations evolve. Your usage patterns shift.

What to define:

  • Incident classification. PII leakage, an unapproved model in production, a prompt injection, or a cost overrun signaling an uncontrolled agent loop.
  • Response playbook. Who gets notified? What gets shut down? How do you assess blast radius? Define these before the incident.
  • Review cadence. Quarterly review of approved models and data policies. Monthly review of cost and usage trends. Immediate review whenever a provider changes their data policies.

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.

Mapping Your Framework to Regulatory Requirements

The regulations differ, but the controls they require overlap significantly. Here is how the five pillars map to the major frameworks.

PillarEU AI ActISO/IEC 42001GDPR
Model SelectionRisk classification required for high-risk AI systemsPolicies and objectives for AI useData protection impact assessments for high-risk processing
PII ControlsTransparency obligations; prohibited uses for unacceptable riskProcesses for responsible development and useArticle 44: cross-border transfer controls; fines up to 4% of revenue
Access ControlsDeployers of high-risk AI must ensure human oversightOrganizational roles and responsibilities definedData minimization and purpose limitation principles
Audit TrailsHigh-risk AI must maintain logs; serious incidents trackedContinual improvement through Plan-Do-Check-ActRecords of processing activities required under Article 30
Incident ResponseGPAI providers must track and report serious incidentsManagement review and corrective actions built in72-hour breach notification requirement

Implementation: Start With the Gateway

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.

Week 1

Inventory and classification

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.

Week 2

Policy definition

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.

Week 3

Gateway deployment

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.

Week 4

Monitoring and iteration

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.

The Cost of Doing Nothing

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.

Enforce Your Governance Framework from Day One

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
})
Get Started Free
Back to all articlesGet Started Free

See every AI call your team makes: what it carried, what it cost and what was masked.

Read Documentation→

Product

  • shim-cli
  • AI Gateway
  • Enterprise
  • Playground
  • Pricing
  • Docs

Company

  • About Us
  • Security
  • Blog
  • Contact Us

© 2026 shim. All rights reserved.

SecurityPrivacy PolicyTerms of Service