AI production readiness · v1.0 · December 2026

5 Gates

The framework for taking AI prototypes to production.

Diagram: an AI prototype passes through five gates (evals, reliability, cost, security, ownership) to reach production. prototypeproduction 1 evals 2 reliability 3 cost 4 security 5 ownership

The 5 Gates Framework is a production-readiness methodology for AI features and LLM applications, created by Yevhenii Datsiuk at PettersonApps. It checks an AI prototype against five gates (Evals, Reliability, Cost, Security and Ownership), scores each gate 0 to 12 across six checks, and treats a system as production-ready only when all five gates are open.

An AI system is only as production-ready as its weakest gate.

Why 5 gates.

Prototypes prove the idea. Gates prove the product.

Lovable, Cursor, Bolt, n8n and a thin wrapper over the OpenAI or Anthropic API get an AI feature to a demo in days. The same prototype then fails on real users, on the first cost spike, or on the first enterprise security questionnaire.

The 5 Gates Framework names the five places where AI prototypes fail and turns each one into checks a team can score with evidence. Each gate asks one question. A product goes live with real customers only when it can answer all five.

AI to productionLLMOpsRAGLLM evalsLLM costAI securityB2B SaaS
  1. 1 Evals Can you prove it works?
  2. 2 Reliability Does it hold up on real users?
  3. 3 Cost Does every request make money?
  4. 4 Security Will it pass the first enterprise security review?
  5. 5 Ownership Who runs it after launch?

The gates.

Thirty checks, six per gate.

Score each check 0 (missing), 1 (partial) or 2 (in place, with evidence). Checks marked ★ are blockers. Your scores stay in this browser tab only.

Gate 1

Evals.

Can you prove it works?

–/12 not scored

The Evals gate checks that output quality is measured on real cases from your domain, automatically, on every change. It replaces “looks good in the demo” with a number the business agreed to.

Typical prototype symptom. Quality is judged by trying a few prompts. Nobody can say whether last week’s prompt change made things better or worse.

  1. 1.1 ★A golden eval set of at least 100 real, labelled cases from your domain, including edge cases and known failures.
  2. 1.2 ★Evals run automatically on every prompt, model or retrieval change, with a pass threshold that blocks release.
  3. 1.3Quality metrics are agreed with the business (for example accuracy, groundedness, refusal rate), not vibe checks.
  4. 1.4For RAG: retrieval is measured separately from generation (recall@k, citation accuracy).
  5. 1.5Groundedness and hallucination checks run on a sample of production traffic.
  6. 1.6Production failures flow back into the eval set at least every two weeks.

Gate 2

Reliability.

Does it hold up on real users?

–/12 not scored

The Reliability gate checks that the system behaves predictably under real traffic, provider outages, rate limits and malformed model output, and that you see every request.

Typical prototype symptom. The app works for ten testers and breaks at the first spike, the first provider incident, or the first answer that is not valid JSON.

  1. 2.1 ★Every LLM call has a timeout, retries with backoff, and a fallback: a second model or a graceful degraded answer.
  2. 2.2 ★Structured outputs are validated against a schema; invalid output is repaired or rejected, never shown raw.
  3. 2.3Model and prompt versions are pinned; provider or model changes roll out behind a flag.
  4. 2.4Load-tested at 3 to 5 times expected peak, including provider rate limits.
  5. 2.5Every request is traced: prompt, retrieved context, model, latency, tokens and outcome.
  6. 2.6SLOs are set (p95 latency, error rate) with alerts and an on-call path.

Gate 3

Cost.

Does every request make money?

–/12 not scored

The Cost gate checks that LLM cost is measured per request and per customer, fits the product’s gross margin at scale, and cannot run away.

Typical prototype symptom. The bill is a single monthly invoice. A power user, an agent loop or a 10x launch week can wipe out the margin.

  1. 3.1 ★Cost per request and per customer (tenant) is measured in production, not estimated from a spreadsheet.
  2. 3.2 ★AI cost per customer stays within the target gross margin at 10 times current usage.
  3. 3.3Budgets and hard limits exist per tenant and per API key; runaway loops and abuse are capped.
  4. 3.4Model routing sends each task to the cheapest model that still passes its evals.
  5. 3.5Caching and context trimming are in place for repeated and long-context requests.
  6. 3.6Cost is part of the eval run: a change that raises cost per request above an agreed limit needs sign-off.

Gate 4

Security.

Will it pass the first enterprise security review?

–/12 not scored

The Security gate checks the AI-specific attack surface (prompt injection, data leaks through retrieval, over-privileged tools) and that you can answer an enterprise security questionnaire with evidence.

Typical prototype symptom. The first enterprise prospect sends a security questionnaire and the deal stalls on questions about prompt injection, data retention and tenant isolation.

  1. 4.1 ★Prompt injection and data exfiltration are tested, direct and indirect (through retrieved documents, emails, tool results).
  2. 4.2 ★Tenant isolation is enforced in retrieval and memory: no user can retrieve another customer’s data.
  3. 4.3PII is mapped and redacted where needed; provider data retention and training opt-out are confirmed in a DPA.
  4. 4.4Tools and agents run with least privilege; irreversible actions need human approval.
  5. 4.5Prompts, outputs and tool actions are written to an audit log with a defined retention.
  6. 4.6Compliance is mapped: GDPR, EU AI Act risk class, and SOC 2 or ISO 27001 controls for the AI components.

Gate 5

Ownership.

Who runs it after launch?

–/12 not scored

The Ownership gate checks that a named team owns AI quality after launch, with runbooks, a release process for prompts and models, and everything in your own repositories and accounts.

Typical prototype symptom. The prototype was built by one person or an agency tool. When quality drops in month three, nobody knows how to change it safely.

  1. 5.1 ★A named owner for AI quality has time allocated to it, inside your team.
  2. 5.2 ★Runbooks exist for model outage, quality regression, cost spike and data leak.
  3. 5.3Code, prompts, eval sets and infrastructure live in your repositories and cloud accounts, not a builder tool or vendor.
  4. 5.4Architecture, data flows and a prompt registry are documented.
  5. 5.5Prompt and model changes follow a release process: review, eval, staged rollout, rollback.
  6. 5.6The handover is tested: your team has shipped a change without the original builder.

Scoring model.

Gates don’t average.

Each gate scores 0 to 12. The total out of 60 tracks progress over time, but the verdict comes from the gates themselves: perfect evals do not make up for a tenant-isolation leak.

Gate stateRuleMeaning
OpenGate score 9 or more, and both ★ blocker checks scored 2.Ship this dimension.
ConditionalGate score 6 to 8, or a ★ blocker scored 1 (none at 0).Ship only with a dated fix plan and an owner.
ClosedGate score below 6, or any ★ blocker scored 0.Do not put real users or customer data through it.
Overall verdictRule
Production-readyAll five gates open.
Launch with conditionsNo gate closed; one or more conditional.
Pilot onlyOne or two gates closed.
PrototypeThree or more gates closed.

Self-check.

Where does your AI product stand?

Score the 30 checks in the gates above; the result updates here. Unscored checks count as 0.

Not scored yet
Start with Gate 1 above.

AI Production Readiness Audit.

Two weeks to know what stands between your prototype and production.

For founders, CEOs and CTOs of B2B SaaS companies and startups with an AI feature that works in the demo but not yet for enterprise customers. PettersonApps runs the 5 Gates assessment on your real system, with evidence, and hands you the fix plan.

Week 1Evidence

  • Code, prompt and infrastructure review
  • Eval run on a golden set built from your data
  • Trace, latency and cost-per-request analysis
  • AI-specific security review: prompt injection, tenant isolation, data retention

Week 2Scored report and plan

  • All 30 checks scored with evidence, gate states and verdict
  • Fix plan per closed or conditional gate, with effort and cost estimates
  • LLM cost model at 10x usage
  • Read-out with your team, plus an optional forward-deployed AI pod (2 to 5 engineers) to close the gates

About the author.

Yevhenii Datsiuk

AI-to-Production CTO · CTO at i3 Engineering · Engineering Lead at PettersonApps

Yevhenii Datsiuk is a CTO who takes AI prototypes to production. He created the 5 Gates Framework from PettersonApps delivery work on AI and LLM systems for B2B SaaS companies and startups in the UK, Switzerland, the Nordics, Luxembourg, Hungary and the US.

  • At PettersonApps since 2018: from backend engineer to engineering lead across 20+ products
  • Leads AI and LLM engineering: RAG, document AI, LLMOps
  • CTO at i3 Engineering (since 2025); co-founder and CTO of Saguaro
  • Speaker at DOU and DOLYNA

Frequently asked questions.

About the 5 Gates Framework.

What is the 5 Gates Framework?

The 5 Gates Framework is a production-readiness methodology for AI features and LLM applications, created by Yevhenii Datsiuk at PettersonApps. It checks an AI prototype against five gates (Evals, Reliability, Cost, Security and Ownership), scores each gate 0 to 12 across six checks, and treats a system as production-ready only when all five gates are open.

What are the five gates?

Gate 1 Evals (can you prove it works?), Gate 2 Reliability (does it hold up on real users?), Gate 3 Cost (does every request make money?), Gate 4 Security (will it pass the first enterprise security review?) and Gate 5 Ownership (who runs it after launch?).

How is a gate scored?

Each gate has six checks. Every check is scored 0 (missing), 1 (partial) or 2 (in place, with evidence), so a gate scores 0 to 12. Two checks per gate are blockers, marked ★. A gate is open at 9 or more with both blockers at 2, conditional at 6 to 8 or with a blocker at 1, and closed below 6 or with any blocker at 0.

Why not average the scores into one number?

Because failures do not average out. A system with perfect evals and no tenant isolation will still leak customer data. The framework reports a total out of 60 for tracking progress, but the verdict comes from the weakest gate.

When should a team run the 5 Gates assessment?

Before the first paying or enterprise customer uses an AI feature built as a prototype in Lovable, Cursor, Bolt, n8n or as a thin wrapper over the OpenAI or Anthropic API; before a funding round where AI is part of the pitch; and after any major model or provider change.

Does it apply to RAG systems and AI agents?

Yes. RAG systems get extra weight on retrieval evals and tenant isolation in the index. Agents get extra weight on least-privilege tools, human approval for irreversible actions and cost caps on loops. The five gates stay the same.

How long does an assessment take?

A team can self-score in about an hour with the free checklist. The PettersonApps AI Production Readiness Audit takes two weeks and produces a scored report with evidence, a fix plan per closed gate and cost estimates.

Who created the 5 Gates Framework?

Yevhenii Datsiuk, AI-to-Production CTO (CTO at i3 Engineering, Engineering Lead at PettersonApps), published version 1.0 in December 2026. It is based on PettersonApps engineering work taking AI prototypes into production for B2B SaaS companies and startups.

Can I use or cite the framework?

Yes. The framework is published under CC BY 4.0. Cite it as: Datsiuk, Y. (2026). The 5 Gates Framework for AI Production Readiness, v1.0. PettersonApps. https://yevheniidatsiuk.com/5-gates/

Datsiuk, Y. (2026). The 5 Gates Framework for AI Production Readiness, v1.0. PettersonApps. https://yevheniidatsiuk.com/5-gates/