LEADCHAPTER 12

An AI platform for product teams

Share the pieces every AI feature needs, a gateway, an eval harness and a release record, and leave the prompts, the cases and the bar with the teams that own the feature; build the thinnest version and let adoption, not a mandate, decide what comes next

45 MINAI ENGINEERUPDATED 2026-11-21
PREDICT

Neema has two engineers for six months and no hires. The three teams' keys, prompts and quality checks all differ. She must pick the first shared piece to build. Which is it?

An AI engineer at Lead level owns the pieces several teams build on. Until now this track has covered one feature at a time. When a second and third team ship, the same questions appear three times, answered three ways, and the cost stays invisible until a bill, a leak or a retirement notice shows it. This chapter covers what to share, what to leave, who staffs it and how to get teams to use it.

It is the AI-specific half of a general discipline. Running a shared capability as a product is taught in platform as a product. Whether to fund a platform at all is the head of engineering’s decision, in architecture governance and platform investment. Team shapes and ratios are in building an SRE or platform org and org design at scale.

The model: share what is identical, keep what is specific

Every AI feature has the same plumbing and different content. The plumbing is how a request reaches a model, what it costs, which model version answers, and how a change is checked. The content is what the feature says, what correct means for it and how bad a miss is. A platform shares the plumbing. The moment it shares content, it takes decisions away from the people who understand the feature, and they route around it.

Piece The platform provides The feature team keeps If nobody owns it
Gateway One door to the models: keys, pinned model ids, spend by feature, rate limits, logs, a kill switch Which model, within the approved list, and the prompt it sends Keys on personal accounts, a bill nobody can split, no way to stop a runaway feature
Eval harness A runner, a paired comparison, a stub for tools that send or spend, a store for results The cases, the labels, the pass bar and the person who reads each failure Each team builds a runner or skips the check
Release record An immutable bundle of rules, handbook, tools and model, a change log and a rollback The content of each part and the decision to ship A prompt edit that nobody can trace or undo
Model catalogue Which model ids are approved, which are retiring and when, and who calls each The migration of its own feature A retirement notice that finds three teams unprepared

Read the right-hand columns first. The test of a good platform decision is that the feature team can still answer, in its own words, what correct means and what it is willing to ship. The eval set before the feature makes that point for one feature: the owner of the feature owns the bar. A platform that holds the cases, or sets the bar, has turned a measure into a gate nobody understands.

The gateway: one door, kept thin

A gateway is a service, or at its smallest a shared client library, that sits between your features and the model providers. Chip Huyen’s survey of how companies build generative AI platforms adds it as one component among several, after context construction and guardrails. It earns its place because every feature needs the same few things and none wants to build them.

  • Keys. Each feature gets a credential that the gateway holds and the team never sees. A leaked key is then one revocation, and a departing engineer takes nothing with them.
  • Pinned model ids. A call names a catalogue entry, such as assistant-main, and the gateway maps it to a dated model id. An alias that moves under you changes behaviour with no change in your code, the point made in the prompt management chapter about the model being part of the bundle.
  • Spend by feature. Each call is tagged with the feature, team and release, so a bill can be divided and a cost per successful outcome, the denominator in cost, latency and choosing the model, can be computed from real data.
  • Limits. Rate limits are counted in tokens as well as requests, as the lesson on LLM rate limits shows. One feature’s burst should not starve another’s. A per-feature monthly ceiling, with an alert at a lower line, turns a runaway loop into a message and not an invoice.
  • Logs. The metadata of every call: feature, release, model id, tokens in, out and cached, latency, outcome. Not the message text, by default, because it holds customer data. A team that needs bodies for debugging asks for them, for a stated period.
  • A kill switch and a fallback. One setting that stops a feature or routes it to a second model. The mechanics are in the AI Engineering course’s chapter on reliability, which is not yet written.

Keep it thin. A gateway that rewrites prompts or encodes business rules becomes the most critical and least understood service in the company. Everything above is about the call, never the content. It sits on the path of every request, so it needs an owner on call and a bypass for a bad day. You may not need to build it yet: a provider’s console can give each feature its own workspace with its own keys and monthly spend limit, which covers the first jobs without code. Anthropic’s workspaces work this way. Start there with three callers, and build when you need pinning, logging and fallback.

The eval harness: share the runner, not the cases

The harness is where a platform helps most and where it overreaches most easily. What is identical across teams is the machinery: run the candidate and production over the same cases, compare them item by item, print the flips, stub any tool that would send or spend, store the results, and fail a build when a hard slice fails. The course chapters on evals in CI and LLM as judge teach how. Written once and maintained by one team, it lets a new feature have a working gate in a day, where otherwise the team builds one in a week or skips it.

What is not identical is everything inside it. A card-dispute draft and a push notification have different failure costs, different people who can judge them and different bars. So the platform offers a starter case file and one rule: no production prompt release without a paired run. It does not hold the cases centrally or report a single score across features. When a judge model is shared, the platform owns the calibration check, and each team owns the human labels it is checked against. The QA view is in testing AI features.

The release record and the model catalogue

Prompts and context are code, as prompts and context as code argues, and a platform can make that cheap to do. The part to share is the shape of a release: one record that names the rules, handbook, tool set and model together, a change-log entry, a rollback, and a promotion step that needs a passing run. Whether the text lives in a repository file or a registry is the team’s choice, as long as promotion goes through the gate.

The model catalogue is the quiet piece. It is a list of approved model ids, each with a state (approved, retiring, retired), a retirement date when there is one, and the features that call it. Because every call passes through the gateway, the list of callers is a query and not a survey. Providers publish retirement dates, and Anthropic’s deprecations page says it gives at least 60 days’ notice before retiring a publicly released model. A platform that knows who calls what can turn a notice into a dated list of owners the same day it arrives. The migration itself, the regression read and the rollback are the subject of model upgrades and regressions.

Who builds it, and the four shapes

The question that decides most outcomes is not technical. It is where the AI engineers sit. There are four common answers, and each fits a situation.

Shape What it is What it costs Fits when
Central AI team One team builds and runs every AI feature Teams queue for it, and domain knowledge moves away from the people who hold it Features are few and large, and one standard matters more than speed
Embedded only An AI engineer in every product team, with no shared pieces Each team solves keys, evals and releases alone, and nobody sees total spend Only one or two teams ship AI
Thin platform plus embedded A small team owns gateway, harness, release shape and catalogue; AI engineers sit in the product teams The platform team must earn use and stay thin; embedded engineers need a community Three or more teams ship AI and spend or risk needs one view
Guild only A forum that shares practice, with no shared service Nothing enforces anything, and a leak or an outage is still every team’s own Features are low-stakes and spend is small

The third shape is the usual answer at the stage this chapter describes, for reasons that come from Team Topologies. Skelton and Pais coin the term thinnest viable platform for the smallest platform that does the job, and their test is the one this chapter uses: if a wiki page is enough, build nothing more. Evan Bottcher’s essay on platforms gives the reason a central team that builds every feature fails: it creates dependencies across the backlogs of several teams, which he calls backlog coupling, and weakens each team’s accountability for its own outcomes.

Size it by how many teams ship, not how many have asked. At Owoleaf, two engineers out of 44 is about 4.5% of engineering, a rule-of-thumb-sized platform for three consuming teams; the ratios and where they come from are in the platform org chapter. Count what the platform will not do: it will not write a team’s prompts, label its cases or decide its bar.

Adoption without a mandate

A mandate is easy to write and hard to read. If the company orders every call through the gateway, 100% adoption tells you that teams comply, and nothing about whether the gateway helps. Platform as a product covers why: internal users do not leave loudly, they work around you. Mandate guarantees, not tools. Two are enough to start.

  1. Every production model call is attributed to a feature. The gateway is the cheapest way to meet it. A team that already attributes spend another way may keep doing so.
  2. Every production prompt release carries a paired run on the feature’s own cases. The harness is the cheapest way to meet it.

Then measure outcomes, with a baseline taken before you start.

  • Time from a new feature’s first request to its first production call with a spend line and a gate. Target a day, from a baseline of a week or more.
  • Share of model spend attributed to a feature. From 0% to 100%, in weeks.
  • Share of releases with a paired run. Count it from the release records.
  • Minutes to stop or roll back a feature. Test it. A kill switch that has never been pulled is a hope.
  • Calls to a model id that is retiring. The number should reach zero before the retirement date, and the platform sees it first.

The first customer decides whether the platform lives. Pick the team with the most to gain and the least spare time. Otto, who manages Cards, is that person at Owoleaf: a processor’s deadline on every dispute and no patience for a service that adds a queue. If the gateway saves his team a day, the others follow. If it adds a day, they will not, and they will be right.

Where practitioners disagree

Build or buy the gateway. Open-source proxies and commercial gateways exist, and a provider’s console covers the first jobs. Teams that build own the behaviour and the on-call; teams that buy get speed and a dependency. Most start with the console, move to a bought or open proxy and build only the thin layer that is specific to them.

One provider or portable. A gateway makes a second provider technically possible. Whether to pay for that portability, in two engineers’ time and slower features, is a strategy question for the head of the function, and a gateway does not answer it by existing. The track’s chapter on AI strategy and the board takes it up.

Shared prompts. A prompt library helps for parts that really are identical, such as an injection-defence preamble written once with security. Beyond that, it couples teams to wording none of them owns.

Day to day

A week for the AI Tech Lead who leads a platform of two engineers, serving three embedded engineers.

  • Monday, 30 minutes. Read the gateway’s weekly numbers: spend by feature, error and latency percentiles, cache hit rate, calls to any model id marked retiring, and any feature near its ceiling. Send the one-page spend report to the three team leads and finance.
  • Tuesday and Thursday. Build for the first customer, in the order they asked for. Every Thursday, ask them what got in the way this week.
  • Wednesday, 45 minutes. Office hours for any team starting or changing an AI feature. The intake is one page: which model, what data leaves the building, who owns the cases, who reads the failures. Anything that sends customer data to a provider, or acts, goes to security, as AI and agent security describes, and to the abuse-case list in guardrails, injection and abuse.
  • Friday. Check the catalogue against the providers’ deprecation pages. Check that the rollback release of every feature still loads.

Fortnightly, 30 minutes. The community hour with the embedded engineers: one failure each, one thing learned, one request for the platform. This is where the platform finds out what is missing and the embedded engineers stop feeling alone.

Monthly. Review adoption against the baseline. Say what you are not building this month and why.

Quarterly. Send the head of engineering a one-page review: what the platform cost in people, what it showed, and whether the shape still fits, including whether to retire a piece nobody uses.

When it breaks. For a provider outage, flip the affected features to the fallback model or a graceful no-AI state. For a leaked key, revoke at the gateway, which is one change.

BY ORG SIZE
STARTUPunder 30 people

There is one AI feature, or two, and nobody to run a platform. Skip the service. Give each feature its own workspace or key with a monthly spend limit, keep model ids in one configuration file, and write the release names in the repository. One engineer owns the lot, which is fine. A wiki page listing which model each feature uses and when that model retires is a platform. Build more only when a second team ships a feature and asks for the same things.

SCALE-UP30 to 300

This is the stage the chapter describes: three or more teams ship AI, spend has no owner and nobody is yet responsible for the shared pieces. Staff two engineers for a fixed period, with a named first customer, a thin gateway and a harness template. Embed AI engineers in the product teams and give them a fortnightly community hour. Write down what you will not build. The risk is that the platform team becomes a gate. Review that quarterly with the teams that use it.

ENTERPRISE300 and up

Several business units run AI features, model risk and legal want a record, and finance wants chargeback. The platform becomes a team with an on-call rota, a service level for the gateway and a roadmap with internal customers. Add approval workflows for new data flows, multiple providers behind the catalogue, and usage reports by unit. The politics shifts from adoption to ownership: units will want their own gateways, and the answer is the guarantees, not the tool. Keep the platform thin even when it has the budget to grow.

ARTEFACT An AI platform proposal ~75 MIN
YOU PRODUCEA one-to-two page proposal: the shared pieces, what stays with the teams, staffing, adoption measures and what you will not build

Template

# AI platform proposal: <company> · <date> · author <name>

## Problem, with counts
Teams shipping AI: <n of m>. Keys: <n>. Invoice lines: <n>. Spend a month: <naira>.
What nobody can answer today: <questions>

## Shape
<central / embedded / thin platform plus embedded / guild> because <reason from the counts>

## Shared pieces, and what stays with the teams
| Piece | Platform provides | Team keeps | Problem it answers |
|---|---|---|---|

## Staffing
<people> for <weeks>. Embedded engineers: <who, share of time>. Limit set by: <who>.

## First customer
<team>, because <reason>. They get <what> by <date>.

## Guarantees mandated (at most two)
1. <outcome>. Cheapest way to meet it: <piece>. A team may meet it another way.

## Adoption measures
| Measure | Baseline | Target | Read how |
|---|---|---|---|

## Not building, and what would change that
| Item | Why not now | Trigger |
|---|---|---|

## Model retirement and on-call
<how a retirement notice becomes a dated list; who is on call for the gateway; the bypass>

## Review
Reviewed by <name> every <cadence>, against <measures>.
WORKED EXAMPLE

Wrenpost is a fictional messaging API: about 180 staff, 55 engineers in seven teams. Its support assistant, on the Claude API with prompt caching, runs under RULES v12 and handles about 3,000 conversations a month; a resend is a billable SMS of about ₦8. Two more teams have asked to ship AI features: Delivery Reports wants a plain-language summary of a customer’s failed-delivery spike, and Dashboard wants a helper that writes log filters. All figures are illustrative.

Problem. One of seven teams ships AI today, two more have asked. The assistant costs about ₦70 a conversation, ₦210,000 a month (3,000 × ₦70), on one key and one invoice line. What nobody can answer: what each new feature would cost, and who stops one that loops.

Shape. Thin platform plus embedded, at its smallest: one engineer for six weeks, not two for six months, because only one team ships. Shared. Gateway v1: a key per feature, pinned model ids, spend tags and a kill switch. The harness is not built; the assistant’s paired-run script and stub are written up as a template. The release record is the existing RULES vN and manifest convention. The teams keep all prompts, cases and bars.

First customer. Delivery Reports gets a key and a spend line in the first week. Guarantees. Every call is attributed to a feature; every prompt release has a paired run on that feature’s cases. Measures. Share of calls attributed, 100% (baseline 100% of one team’s calls, zero of the others’); days from request to key, 1 (from not known). Not building. A prompt library, a shared judge and a second provider, until three teams have their own eval sets, two want the same judge, or the board asks. On-call. The platform engineer, with a documented bypass. Review in six weeks.

Now you

You are Neema, a senior AI engineer at Owoleaf, a fictional wallet: 200 people, 44 engineers in six teams (Top-ups, Transfers, Cards, Lending, Support Tools and Growth). Three teams ship AI features. Support Tools runs the in-app assistant, about 60,000 conversations a month and about ₦490,000 in model spend. Cards drafts replies to about 350 payment disputes a month, ₦70,000. Growth drafts about 200 notification variants a month, ₦25,000. That is three keys and three invoice lines, ₦585,000 in all. The Cards key was created on an engineer’s personal account; he now works on Transfers. Growth’s prompt sits in a marketing tool’s text box that copywriters edit. Cards sends merchant name, amount and date to the provider, and security has not reviewed it. Otto, who manages Cards, answers disputes against a processor deadline and will not queue behind another team. The head of engineering can free two engineers for six months and will hire nobody. Write the proposal.

Self-check

DECIDE

Three of Owoleaf's six teams, Support Tools, Cards and Growth, ship AI features, each with its own key, prompts and spend: about ₦585,000 a month on three invoice lines, none of it attributable to a feature. Otto, who manages Cards, answers payment disputes against a processor deadline and will not queue behind another team. The head of engineering can free two of the 44 engineers for six months and will hire nobody. Neema, the senior AI engineer, must recommend a shape. What does she recommend?

READING
  1. DOC
    What is a Thinnest Viable Platform (TVP)? Matthew Skelton and Manuel Pais (Team Topologies), 2019

    The authors' own statement of the idea that a platform should be the smallest thing that does the job, and that a wiki page may be enough. Use it to argue against building more than three consumers need.

  2. POST
    What I Talk About When I Talk About Platforms Evan Bottcher, 2018

    Defines an internal platform as a compelling product for other teams and names backlog coupling, the cost of a central team that every other team waits on. It is the case against the central AI team.

  3. POST
    Building A Generative AI Platform Chip Huyen, 2024

    Starts from the simplest architecture and adds components one at a time, among them the gateway, a cache, guardrails and observability. Read it to see which pieces earn a place and in what order.

  4. DOC
    Model deprecations Anthropic

    States the model lifecycle (active, legacy, deprecated, retired), at least 60 days' notice before retirement of a publicly released model, and a usage export by key and model. It is the input to your catalogue.

  5. DOC
    Workspaces Anthropic

    Describes keys, members and limits scoped per workspace. It is the no-code version of a gateway's first jobs: a key and a spend limit per feature.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Model upgrades, deprecations and regressions →