Paper 093 · Platform and architecture strategy

Model Gateways and the Separation of Policy From Provider

Rajesh Ranjan Mahapatra

Keep enterprise policy stable while providers change, preserve valuable provider differences, and make every route, transformation, fallback and exit legible.

© 2026 Rajesh Ranjan Mahapatra. 21 min read

Model Gateways and the Separation of Policy From ProviderAll Research Essays
Paper 093 · Platform and architecture strategy

Model Gateways and the Separation of Policy From Provider

Keep enterprise policy stable while providers change, preserve valuable provider differences, and make every route, transformation, fallback and exit legible.

Executive briefA gateway should stabilise policy, not erase provider reality

TLDR

  • Applications declare principal, purpose, data, capability and outcome constraints through a provider-neutral contract.
  • Eligibility gates run before any optimisation of quality, latency, capacity or price.
  • Provider-specific value remains accessible through typed extensions that expose semantic difference and portability debt.
  • Every fallback is a fresh execution decision with revalidation, visible degradation or abstention.
  • Gateway receipts reveal selected provider, versions, policy, transforms, usage, evidence and exit dependencies.

A privacy restriction copied into three provider dashboards looks like control until one version drifts and an outage triggers a fourth route. The application sends the same payload shape, but the substitute model handles retention, tool calls, structured output and safety settings differently. The gateway reports success because the request completed. The enterprise discovers later that provider configuration had become the policy source and that fallback had bypassed the reason the restriction existed.

A useful model gateway separates five things that vendors and proxy products often collapse: policy intent, policy decision, enforcement, provider adaptation and evidence. Policy owners publish what the enterprise permits and requires. A compiler produces machine-testable rules. A decision point evaluates the request against current rights and provider evidence. The gateway enforces the authorised route. Typed adapters preserve native semantics or declare loss. Evaluators and telemetry update evidence without silently rewriting the underlying rule.

This separation creates provider neutrality without pretending providers are interchangeable. Applications describe the job, principal, purpose, data envelope, required capability, quality, safety, service and economic constraints. The gateway selects only among eligible routes. Teams responsible for evaluation, incidents, risk and cost can still see the provider, model version, transformation and fallback. Neutrality means that enterprise intent is not trapped inside one supplier’s configuration, not that every implementation difference disappears.

The strongest rival: direct provider integration

Native SDKs expose capabilities early, avoid translation delay and keep provider behaviour visible to developers. For low-consequence experiments and specialised requirements, direct access may be more honest than forcing an immature feature through a generic schema. Permit it under a bounded principal, data set, destination, spend, user group, duration, evidence requirement and prohibition on production action. The exception becomes a learning route, not a permanent bypass.

Promote a native capability into the shared gateway when its semantics, evaluation and operating demand are understood. Some capabilities should remain typed extensions because standardisation would destroy their value. Others reveal a repeated job that deserves a stable contract. Direct integration fails as an enterprise default when every application rebuilds identity, data controls, retries, redaction, evaluation, metering, evidence and exit while supplier terms and model aliases continue to change.

Provider policy knots untangle into a gateway chain Three tangled provider configurations separate into policy source, decision point, gateway, typed adapters and evidence. PROVIDER DASHBOARD KNOTS DRIFT · FALLBACK BYPASS · HIDDEN TERMS POLICY SOURCE DECISION POINT GATEWAY TYPED ADAPTER A · LOSS NONE TYPED ADAPTER B · GAP SHOWN RECEIPT · ROUTE · VERSION ENTERPRISE INTENT STAYS OUTSIDE VENDOR CONFIGURATION
Figure 1. The gateway untangles policy ownership from supplier-specific enforcement surfaces.

Provider-Neutral Model Invocation ContractDescribe the job before selecting the route

The contract is an application-to-control-plane statement of need. It is provider neutral because its primary fields express enterprise semantics. It is not provider blind. The returned receipt names the selected supplier and version, and extension fields carry justified native features. Contract versions are stable enough for product integration yet explicit enough to reject false equivalence.

1. Principal and delegation

Carry the human, service or agent principal, tenant, sponsor, delegation chain and authority. An application key identifies software; it must not replace the person or delegated actor whose purpose and entitlements govern the request.

2. Purpose and task class

Name intended use, affected decision, consequence, affected parties and prohibited uses. A generic summarisation label is insufficient when the output enters credit, hiring, health, security or customer communication.

3. Data envelope

Declare classifications, source jurisdictions, retention, provider training or reuse permission, logging rule and allowed destinations. The envelope follows retrieved context and tool outputs, not merely the initial prompt.

4. Capability requirement

Specify modality, context, structured output, tools, streaming, grounding, fine-tuning, batch and other necessary behaviours. Mark which features are essential and which have acceptable degraded forms.

5. Quality contract

Reference the task, language and cohort evaluation suite, thresholds, uncertainty treatment and disqualifying failures. Generic model approval cannot substitute for evidence about the actual use combination.

6. Safety and policy

Bind content, privacy, security, action, human-review and provider constraints. Non-compensable rules reject a route even when its aggregate quality or cost looks attractive.

7. Operational SLO

State latency, availability, throughput, deadline, rate-limit, recovery and degraded-mode expectations. Interactive, batch and transaction-bound work can require different contracts using the same provider.

8. Economic boundary

Include request, token or workflow cost, retry and cache inflation, allocation, budget and price-change response. Cost governs among eligible routes and may cause queueing or reduced scope, never a silent policy waiver.

9. Routing policy

List eligible models and providers, evidence date, selection or cascade rule, load and capacity treatment. Separate a deterministic policy constraint from an optimiser trained on past preferences.

10. Fallback semantics

Declare allowed substitutes, capability gaps, revalidation, visible degradation, abstention and user disclosure. An outage does not imply permission to use any available endpoint.

11. Evidence and observability

Require request and response identifiers, versions, policy result, evaluation basis, trace, metrics, redaction and receipt. Observability content remains subject to its own data envelope.

12. Portability and exit

Register extensions, test doubles, exportable artefacts, dependencies, alternate routes and retirement handling. Portability debt is visible at adoption rather than discovered during supplier failure.

The contract distinguishes requirements from preferences. Region, purpose, entitlement, disqualifying quality failure and prohibited data use are typically gates. Preferred latency, marginal quality, carbon information, capacity balance and price may be optimisation inputs after eligibility. An enterprise can choose a different boundary for a different task, but the distinction must be declared and tested rather than inferred by a router.

Twelve-field invocation contract around one request Twelve labelled contract fields surround a request while the selected provider remains visible in the response receipt. ONE REQUEST TASK · PRINCIPAL · PURPOSE 01 PRINCIPAL 02 PURPOSE 03 DATA 04 CAPABILITY 05 QUALITY 06 SAFETY 07 SLO 08 ECONOMICS 09 ROUTING 10 FALLBACK 11 EVIDENCE 12 EXIT RECEIPT NAMES PROVIDER · MODEL · VERSION
Figure 2. Neutral request semantics coexist with visible provider selection and dependency evidence.

Gateway policy chainSeparate intent, decision, enforcement, adaptation and learning

Policy source. Authorised owners publish versioned intent, scope, precedence and non-compensable conditions outside provider consoles. Data, security, privacy, domain and risk owners remain identifiable. The gateway operator can implement the rule but cannot expand business risk acceptance merely by changing configuration. Policy source includes effective dates and rollback so an emergency edit does not become an undocumented permanent standard.

Compilation and tests. A compiler converts human-authorised intent into machine-testable decision and enforcement artefacts. Compilation is not policy creation. Reference cases verify eligible and ineligible principals, purposes, data envelopes, regions, provider terms and versions. A change produces a diff, test evidence, affected routes and deployment receipt. Provider dashboards may receive generated settings, but they are outputs rather than the canonical source.

Decision point. The policy decision point evaluates principal, delegation, tenant, purpose, task, data and current provider evidence. It returns an eligible route set or a denial with reasons safe to disclose. Dynamic conditions such as incident state, capacity or expired evidence can remove a candidate. The decision point is separated logically from request forwarding so policy can be tested and observed independently.

Enforcement and adapters. The gateway verifies the decision, applies destination, quota, redaction, transformation and fallback rules, then invokes a typed provider adapter. The adapter maps only demonstrated equivalents. It preserves extension fields, reports unsupported settings and records transformations. It never silently drops a safety setting or converts tool semantics because a target schema happens to accept similar JSON.

Evaluation and evidence. Task evaluations, regression suites, capacity, latency, incidents, cost and provider-term changes update the evidence available to the decision point. They do not silently change enterprise intent. New evidence may make a model ineligible under an existing threshold, trigger a defined degraded mode or open an approval decision. The gateway receipt links the request, policy version, decision, enforcement, adapter, response, telemetry and actual cost.

Gateway policy chain Policy intent compiles to a decision point, flows through enforcement and a typed adapter, and returns evaluation evidence and a receipt. POLICY INTENT COMPILE + TEST DECIDE ELIGIBILITY ENFORCE ROUTE TYPED ADAPTER PROVIDER VERSION EVALUATION · TELEMETRY · RECEIPT EVIDENCE UPDATES · POLICY STAYS AUTHORISED
Figure 3. Feedback can change eligibility evidence without covertly becoming policy.

Routing orderPass non-compensable gates before optimisation

The eligible set begins with authority. The principal and delegation must permit the task, source and action. Purpose must match the declared use. The data envelope must allow the destination, retention, reuse and logging behaviour of the specific provider route. Applicable legal, contractual and supplier conditions must be current. A route that cannot demonstrate these conditions stops before any cost or latency comparison.

Next apply capability and evaluation gates. The model and adapter combination must support the required modality, tool semantics, structured output, grounding and context behaviour. Task, language and cohort evaluations must meet thresholds, and disqualifying failures remain disqualifying. A self-reported model confidence value is not evidence of route fitness. High-consequence use can require independent validation of the model-use combination plus human authority and operating controls.

Only then may the router optimise among eligible candidates. Learned routing, cascades and workload selection can trade quality, latency, capacity and cost within the declared boundary. Their own predictions need calibration, drift monitoring and evaluation against the enterprise workload. A cascade is not automatically safe because its final stage is strong; earlier responses, escalation thresholds and accumulated latency are part of the evaluated route.

Budget pressure can change scope, queue work, select another eligible model, invoke a validated cascade or abstain. It cannot send restricted data to an ineligible region or choose a model below a disqualifying safety threshold. Likewise, a high-quality provider remains unavailable when its terms, incident state, evidence freshness or data handling fail. The router reports that the eligible set is empty rather than converting policy into a soft weight.

Eligibility-first routing funnel Principal, purpose, data, safety, evaluation and version gates narrow routes before quality, latency and cost optimisation. AUTHORITY · PURPOSE · DATA DESTINATION SAFETY · CAPABILITY · EVALUATION · VERSION ELIGIBLE PROVIDER AND MODEL SET QUALITY · LATENCY · CAPACITY · COST NO COMPENSATING SCORE CAN REOPEN A FAILED GATE
Figure 4. Optimisation operates inside the authorised candidate set, never across a failed gate.

Semantic honestyExpose native value through typed extensions

Lowest-common-denominator abstraction can be as dangerous as direct integration. It conceals that one provider supports a useful grounding mode, constrained decoder, tool protocol, batch service or safety control that another does not. An application may then rely on behaviour the gateway cannot name, test or reproduce. The answer is a typed extension associated with a capability contract, not an unstructured bag of vendor parameters.

An extension declares provider and model scope, semantic meaning, allowed values, interaction with base fields, evaluation suite, data implications, telemetry, version, owner and portable fallback. The adapter rejects it on unsupported routes. The receipt records its use. The product’s dependency register marks whether removal causes equivalent substitution, visible degradation, manual operation or inability to serve. This makes native value available without describing it as universal.

Translation requires evidence of equivalence at the level that matters to the task. Matching field names do not prove that tool selection, streaming events, token limits, refusal, citations, schema adherence or retention behave alike. Regression tests compare observable semantics and declared losses. When behaviour differs but remains acceptable, the contract names the variation. When it changes the business or safety meaning, the route needs a different evaluation or is ineligible.

Portability debt is not inherently bad. A provider-specific capability can create enough value to justify dependence. The governance question is whether the debt is visible, funded, bounded and reversible where required. The gateway should not pretend neutrality by stripping the feature, nor should the product call itself portable because a request can be serialised to another endpoint.

Typed provider extension A provider-neutral base contract connects to a declared native capability, its semantic difference, evaluation and portability debt. BASE CONTRACT PRINCIPAL · PURPOSE DATA · QUALITY · SLO EVIDENCE · EXIT TYPED NATIVE EXTENSION SEMANTIC DIFFERENCE VISIBLE PROVIDER + VERSION SCOPE REGRESSION + DATA EFFECT DEGRADED ALTERNATIVE PORTABILITY DEBT RECORDED NATIVE VALUE WITHOUT FALSE EQUIVALENCE
Figure 5. The extension preserves justified provider capability while making dependence explicit.

Failure semanticsTreat fallback as a new execution decision

Fallback changes more than an endpoint. A substitute may have different tool-call ordering, structured-output guarantees, context window, image treatment, safety behaviour, residency, retention, contractual terms, price and evidence freshness. The gateway therefore re-evaluates the invocation contract against the candidate at failure time. Cached eligibility has an expiry and is invalidated by incidents, provider updates and policy changes.

An equivalent substitute is allowed only when the required semantics and evaluation evidence remain valid. The receipt names the failure, substitute and evaluation basis. If an optional capability is missing, the route can degrade visibly, such as returning a cited draft without tool execution. The user and downstream workflow receive a machine-readable degraded status. The application must not interpret partial output as the original contract’s success.

When no substitute meets the deadline but delayed execution is acceptable, queue the work under a declared recovery objective and notify the caller. If delay would create harm or the task cannot be safely degraded, abstain. A human or alternate process may take over through a defined hand-off. Sensitive traffic never flows to the cheapest remaining provider simply because an availability target is under pressure.

Fallback testing covers provider outage, region loss, capacity exhaustion, rate limiting, model withdrawal, adapter failure and evidence expiry. It verifies not just response delivery but route selection, disclosure, tool suppression, billing, retry limits, idempotency and receipt completeness. Retry and cache behaviour are economic and semantic parts of the route. Unbounded retries can multiply cost or repeat actions; stale caches can make policy changes ineffective.

Fallback decision tree An outage re-enters policy checks and leads to an equivalent substitute, visible degradation, queue or abstention. ROUTE FAILURE OR OUTAGE RE-EVALUATE FULL CONTRACT EQUIVALENT SUBSTITUTE VISIBLE DEGRADATION QUEUE WITH DEADLINE ABSTAIN + HAND OFF NO TRANSPARENT FALLBACK ACROSS A FAILED CONDITION
Figure 6. Availability is preserved only through outcomes the original contract permits.

Negative controlsRun ten routes through the contract

Routine eligible route

Two models pass authority, region, capability and current task tests. The router uses validated latency, capacity, quality and cost evidence, then records the selected version.

Native feature

One provider offers a valuable constrained capability. A typed extension declares semantics, tests, data effects, version and degraded alternative instead of hiding it behind generic parameters.

Residency conflict

The highest-quality candidate cannot receive the declared data in its available region. It is removed before optimisation. If no route remains, the gateway blocks rather than softening residence into a preference.

Fallback mismatch

The outage substitute lacks required tool or schema guarantees. The gateway re-evaluates, suppresses the action and returns visible degradation, a queue decision or abstention.

Silent model update

A supplier alias points to changed behaviour. Version monitoring quarantines promotion until registered regression tests pass. Stable naming does not override evidence of material change.

Budget pressure

The cost ceiling selects among eligible candidates or reduces scope. It cannot compensate for failed quality, safety, rights or data handling. Empty eligibility produces queueing or abstention.

High-risk use

A consequential decision requires validated model-use evidence, human authority and control receipts. General provider approval or a high benchmark average is insufficient.

Direct experiment

Native SDK access is bounded by principal, restricted data, users, duration, spend, evidence and no production action. Expansion opens a new approval and integration decision.

Policy change

A privacy owner changes the canonical rule once. Compilation updates enforcement artefacts, tests affected routes and preserves the policy and deployment receipts.

Provider exit

New traffic stops, receipts and approved artefacts remain accessible, alternate routes pass regression, and products with stranded extensions receive explicit migration or degraded plans.

Operational evidenceMake every decision and transformation observable

The gateway receipt binds request identifier, principal and delegation, tenant, purpose, data classification, contract and policy versions, decision result, eligible set, selection rule, provider and model version, adapter and transformations, extension fields, evaluation basis, fallback status, latency, usage, retries, cache, cost allocation, redaction and response identifier. It points to protected detail rather than copying sensitive prompts into every log.

Receipts support audit, incident investigation, billing, replay and exit, but those uses have different access and retention. A finance view may need consumption and allocation without prompt content. Incident responders may need route and transformation evidence. Evaluators may need approved samples under purpose controls. The gateway should not log prompts or responses by default merely because observability is desirable. Evidence policy applies to the evidence itself.

A policy change starts in the authorised source. The compiler identifies affected provider configurations, routes and reference cases. Tests prove that disallowed combinations now block and allowed combinations still pass. Staged deployment measures decision and enforcement agreement. The receipt records effective time and rollback. If one provider cannot express the rule, that route becomes ineligible or an external enforcement step is added, rather than leaving an inconsistent dashboard setting.

Model aliases require resolution. The gateway records the actual provider model identifier and relevant version or snapshot evidence. Changes under a stable alias trigger defined regression and promotion rules. Where the supplier offers no immutable version, the enterprise can increase canary testing, narrow eligible uses, preserve behavioural fingerprints or demand stronger contract terms. A friendly name is never treated as proof of stable behaviour.

Design before crisisExercise provider exit while the route still works

Exit begins with a dependency register linking products to providers, models, adapter versions, extensions, fine-tunes, prompts, evaluations, stored state, batch jobs, data locations, commercial commitments and evidence. Each dependency states an alternate, degraded mode or accepted inability to operate. Products with provider-specific value can remain, but their owners and executives see the concentration and time needed to move.

A controlled exit revokes new traffic according to consequence, preserves receipts, exports approved artefacts, drains queued work, rotates credentials, disables provider reuse where required and tests substitute routes. Regression covers task quality, safety, tool semantics, structured output, context behaviour, latency, cost and user disclosure. Equivalent API calls do not establish equivalent outcomes. Some products may need redesign rather than substitution.

Exit also tests the gateway. If policy rules live only in the departing provider console, if evidence cannot be exported, or if applications bypassed the contract, the control plane has failed its neutrality claim. Provider adapters should be replaceable, but shared policy, contract and receipt semantics must survive. Historical reconstruction retains the route actually used, not a later generic label.

During an incident, exit can be partial. Stop one model version, data class, jurisdiction, capability or use while preserving eligible traffic elsewhere. The decision owner, risk accepter and affected product owners coordinate the boundary. The gateway operator executes it and verifies propagation. Finance and sourcing handle commitments, while legal and privacy owners apply applicable notification, retention and termination terms. No supplier relationship alone decides operational permissibility.

Provider exit dependency map Provider traffic drains through receipt preservation, artefact export, regression tests and stranded-extension checks into alternate or degraded routes. PROVIDER MODEL VERSIONS EXTENSIONS STATE + BATCH TERMS + REGION DRAIN NEW TRAFFIC PRESERVE RECEIPTS EXPORT ARTEFACTS REGRESSION + GAPS EXIT ROUTES SUBSTITUTE DEGRADE REDESIGN RETIRE IDENTIFY STRANDED EXTENSIONS BEFORE REVOCATION
Figure 7. Exit is an evidence-backed product transition, not an endpoint switch.

Service disciplineOperate the gateway without turning it into governance theatre

The gateway is a control-plane service, not the whole governance programme. It cannot decide the legitimacy of a product, own domain outcomes, create evaluation truth or replace supplier contracts. It can consistently enforce declared decisions, expose missing evidence and create a reliable route record. Its service contract names supported capabilities, policy availability, latency overhead, failure behaviour, incident paths, evidence retention, extension process and retirement.

Measure decision latency, enforcement failures, eligible-set emptiness, adapter loss, fallback frequency, receipt completeness, retry inflation, cache effects, route concentration and policy drift. Segment by task and consequence. Aggregate success can hide one sensitive use repeatedly entering degraded mode. A latency objective should include policy and adapter work, but pressure on that objective must not encourage bypass of essential checks.

Capacity controls operate after eligibility and before invocation. Quotas can protect tenants, reserve critical workloads and prevent one cascade from consuming every provider allocation. When capacity is unavailable, the contract chooses queue, degraded route or abstention. Load shedding is visible to applications and users. The gateway does not fabricate success or silently change model class to protect its own SLO.

Ownership follows Paper 092’s decision rights. Policy owners author intent; the platform team operates compilation, decision and enforcement services; domains own intended use and outcomes; evaluators and specialist functions supply independent evidence where required; finance sees economic records; sourcing manages commercial terms; incident authorities can kill bounded routes; assurance accesses evidence without designing daily routing. Separation is preserved in permissions and receipts, not only in documentation.

Architecture review should ask whether an application is relying on an undeclared provider behaviour, whether adapter transforms are tested, whether fallback preserves action semantics, whether logs respect data policy, whether model versions are resolvable, and whether exit has been exercised. Direct experiments should surface demand and evidence. The gateway roadmap follows repeated controlled jobs, not a desire to place every AI request behind one proxy.

Test the seamsAssure the gateway as a changing decision system

Adapter assurance begins with a capability manifest. For every supported provider and model version, it identifies request fields, response events, tool protocol, schema behaviour, context limits, streaming order, retention setting, error mapping and extension support. Contract tests use positive and negative examples, including malformed tool calls, interrupted streams, content filtering, oversized context and rate-limit responses. The tests compare observable meaning, not only whether a payload can be parsed. A mapping that loses a refusal reason, truncates a citation or changes an action identifier fails even when the final JSON remains syntactically valid.

Policy deployment uses paired decision and enforcement tests. Reference requests run against the decision point to establish expected allow, deny, route and degraded results. The same requests pass through a non-production enforcement path to verify that destinations, headers, redaction, quotas and adapters implement those results. Differences block promotion or open a bounded exception with an owner. Canary deployment watches both service measures and policy-result distributions. A drop in denials can indicate business change, but it can also reveal a compiler, identity or context defect and therefore needs investigation.

Evidence minimisation needs its own design. The receipt can store hashes, identifiers, categories, versions and protected references while sensitive request or response content remains in an authorised evidence store. Redaction happens before broad telemetry export, and redaction configuration is versioned as part of enforcement. Sampling never removes mandatory incident or transaction evidence. Access is purpose bound, retention follows the applicable object, and deletion or correction propagates to derived indexes where required. This prevents the observability layer from becoming a second, weakly governed copy of prompts and retrieved data.

Evaluation operations connect model evidence to the contract without granting the gateway authority to invent thresholds. Domain owners supply representative tasks, language and cohort cases. Safety, security and privacy specialists contribute disqualifying scenarios. Independent validators review combinations where consequence requires separation. The platform runs suites consistently and preserves comparable results. When workload, provider, adapter, policy or prompt changes materially, the release record identifies which evidence remains valid and which must be refreshed. The optimiser consumes only approved, dated results and exposes uncertainty instead of treating a sparse benchmark as a universal route truth.

Periodic recovery exercises complete the assurance cycle. Teams disable a candidate route, expire its evidence, introduce an incompatible response event and simulate loss of a region. They verify that policy evaluation removes the route, downstream applications recognise degraded status, retries remain bounded and incident owners can reconstruct the decision. The exercise records manual work and stranded capabilities as exit debt. Findings change contracts, adapters or product design through normal ownership rather than an emergency override hidden in gateway configuration.

Interactive instrumentModel Gateway Policy Router

Set eligibility, capability, evidence, fallback and exit conditions. The Router returns exactly one of five routes with the selected contract, policy evidence, fallback condition and portability debt. It never returns a provider or gateway score.

Model Gateway Policy Router board Data, quality, safety, version and exit gates feed a router that returns five explicit model-provider routes. MODEL GATEWAY POLICY ROUTER ELIGIBILITY BEFORE OPTIMISATION FIVE ROUTES CONTRACT · EVIDENCE FALLBACK · EXIT DEBT
Figure 8. Failed non-compensable conditions cannot be repaired by route optimisation.
Gateway route

Route through the approved provider-neutral contract

The request and candidate pass current authority, data, capability, evaluation and version gates.

Selected contract: approved base fields with visible provider, model and adapter.

Policy evidence: compiled policy decision and current task evaluation.

Fallback condition: re-evaluate the full contract before substitution.

Portability debt: routine adapter and provider dependency recorded in the receipt.

Exactly five outcomesChoose a governed route or a deliberate stop

Route through the approved provider-neutral contract

Use when the base contract and current evidence establish an eligible route.

Use a governed provider-specific capability extension

Use when native value justifies typed semantics, tests and explicit portability debt.

Require fresh evaluation, approval or policy compilation before routing

Use when version, high-consequence validation, policy or evidence is not current.

Fail over, degrade visibly or abstain under the defined contract

Use when primary execution fails but the contract declares safe alternatives.

Block or exit the provider because a non-compensable condition fails

Use when authority, data, safety, semantic or lifecycle eligibility cannot pass.

Evidence boundaryArchitecture and research guide the chain, not a universal ranking

Routing and cascade research demonstrates methods for trading quality and cost across workloads. It does not supply a permanent provider ranking or permission to optimise across failed enterprise constraints. Zero-trust, policy-language, gateway and external-authorisation sources inform separation of decision and enforcement. Open Policy Agent and Cedar are implementation options, not required products.

OpenAPI and OpenTelemetry support machine-readable interfaces and interoperable operational evidence. API compatibility is not semantic equivalence, and telemetry is not complete governance evidence. Production-ML research supports attention to glue code, dependencies and change. ISO and NIST inform lifecycle, context, third-party and monitoring disciplines without turning the gateway into the risk owner.

OWASP informs the sensitive-information disclosure boundary across prompts, context, applications and outputs. The EU AI Act record is applied only where the relevant system, actor, provision, jurisdiction and timing engage. The Provider-Neutral Model Invocation Contract, gateway policy chain, typed extension and Model Gateway Policy Router are this article’s synthesis.

The gateway succeeds when applications can state stable enterprise intent, providers can retain meaningful differences, and every decision remains inspectable. Provider choice may vary request by request. Policy authority, evidence custody and accountability must remain within the enterprise’s governed control plane.

Evidence spineReferences

  1. Ong et al. (2024), RouteLLM: Learning to Route LLMs with Preference Data.
  2. Chen, Zaharia and Zou (2023), FrugalGPT.
  3. Hu et al. (2024), A Unified Approach to Routing and Cascading for LLMs.
  4. NIST (2020), Zero Trust Architecture.
  5. Open Policy Agent, Policy Language and Architecture Documentation.
  6. Cedar Policy, Language Reference.
  7. Kubernetes SIG Network, Gateway API Specification.
  8. Envoy Proxy, External Authorization Filter.
  9. OpenAPI Initiative, OpenAPI Specification.
  10. OpenTelemetry, Specification.
  11. IETF, OAuth 2.0 Rich Authorization Requests.
  12. Sculley et al. (2015), Hidden Technical Debt in Machine Learning Systems.
  13. ISO/IEC (2023), Artificial intelligence management system.
  14. NIST (2023), Artificial Intelligence Risk Management Framework 1.0.
  15. NIST (2024), Generative Artificial Intelligence Profile.
  16. OWASP GenAI Security Project (2025), LLM02: Sensitive Information Disclosure.
  17. European Union (2024), Regulation (EU) 2024/1689.