Skip to content

🤖 Explain with AI

The AI Studio Quality Gate and Delivery Evidence

Overview

A pod that says “done” without evidence is a promise, not a delivery. AI Studio enforces a quality gate in the database: a pod with Quality or E2E cannot be marked delivered without a green build and test run.

In this tutorial, you will learn:

  • What the quality gate checks
  • How browser E2E fits in
  • How a waiver works and why it is audited
  • How a review pod differs from a delivery pod
  • How the database migration gate works

What the gate checks

The pod runs your repository’s own scripts in the sandbox:

Check What it runs Required when
Build The repository’s build script The pod has Quality
Test The repository’s test script The pod has Quality
Lint The repository’s lint script, when present The pod has Quality
E2E A Playwright suite against a preview URL or the dev/start script The pod has E2E

The result is stored with the pod, ordered, and shown in the pod room. Your CI still runs on the merge request; the gate is the pod’s own evidence.

What happens when a check fails

  • Delivery is blocked with QUALITY_GATE_FAILED.
  • The failure and its output are visible in the task and the timeline.
  • The task can be retried.
  • A failed attempt releases its task slot, but the tokens it consumed are still metered.

A pod that cannot pass the gate has two honest outcomes: fix it or ask for a waiver. It does not silently deliver red code.

Waivers

A waiver accepts a delivery without a green run. It requires:

  1. A written reason of at least 10 characters.
  2. An approval from someone allowed by the workspace policy.
  3. An audit entry that records who approved it and when.

A waiver is not a shortcut for a broken repository. It is for the case where the check cannot run in the sandbox even though the delivery is acceptable — for example, a suite that needs a service the sandbox does not have.

Browser E2E

With the E2E capability, the pod runs Playwright after build and test. It uses:

  • A preview URL when the workspace has the preview gateway.
  • The repository’s dev or start script when it does not.

Without either, the run fails closed. It is never marked as skipped, because a skipped browser test is not evidence.

The image pins Playwright and Chromium together. If the repository uses another Playwright version, the sandbox installs the matching browser once and retries; a run that still fails leaves the reason in the check.

Review pods: report, never repair

A review pod is the wide, report-only product. It reviews a repository and delivers ONE prioritised report of technical, functional, security, best-practice and infrastructure findings.

  • It is read-only: editing tools are denied.
  • The clone loses its push credentials after checkout.
  • It never creates branches, commits or patches.
  • It runs install, build, test and lint as evidence.
  • A red check is a finding, not a gate; a review pod is born with no quality gate.
  • With Browser QA, it also runs a Playwright suite.

The report is a report artifact: findings by severity, area, file:line, evidence, impact and recommendation. It downloads as .md or PDF and can be published to Confluence, Notion or Jira.

The database migration gate

A db-migration pod has four gate items:

  1. A read-only connection verified by the database server.
  2. A schema map from the catalog, with unsupported objects and PII classified by column name.
  3. A reviewed migration script.
  4. A shadow validation against the destination engine.

The shadow applies the script and always rolls it back. Without the four items, delivery is refused with DB_MIGRATION_NOT_READY, unless a waiver accepts it. The runbook is part of the deliverable but not a gate item.

How to review a delivery

  1. Open the merge request.
  2. Read the diff and the tests.
  3. Open the pod timeline and check the gate results.
  4. Confirm the acceptance criteria from the plan.
  5. Merge when you are satisfied.

The pod does not merge on its own unless the workspace allows auto-merge, and it never deploys to production.

Checklist

  • The pod has the Quality capability when the code must be proven.
  • The repository has runnable build and test scripts.
  • E2E has a preview URL or a dev/start script.
  • You know who can approve a waiver.
  • You reviewed the gate evidence, not only the diff.
  • Your team owns the merge.

What’s Next?

Need Help?


Still have questions? Ask on Discord or explore the tutorials.