Skip to content
Forward Deployed

Forward Deployed
Delivery, Evaluation, and Operations

Evaluation and Release Gating

By Sourav Banerjee · Last updated 13 Oct 2026 · Report an issue

Practise this as a worksheet: Evaluation and Release Gating

Case studyAdvanced8 documents, 60 min in total
For
Engineers preparing for Forward Deployed, solutions or applied-AI engineering interviews
Assumes
Comfort with retrieval, agents and basic cloud architecture — the related reviews below cover each
Objectives
  • Explain the system end to end at interview depth, including its dangerous constraint
  • Answer follow-up questions on components, failure modes, evaluation and rollout
How to use it
Read the tabs in order. The Interview Guide stands alone; later tabs assume it. Mark each tab as read to track the case as one unit.
Reading order
  1. Interview Guide · 7 min
  2. Technical Deep Dive · 5 min
  3. Quick Review · 2 min
  4. Full Design 1 · 10 min
  5. Full Design 2 · 9 min
  6. Full Design 3 · 10 min
  7. Full Design 4 · 9 min
  8. Full Design 5 · 8 min
Sources
The references for every tab are in Full Design 5 → References.

Cites its sources in the Sources and Full Design tab

Interview Guide · 7 min — Start here. The answer you would talk through in the interview, readable on its own.

Evaluation and Release Gating: Main Interview Guide

Release process is: you want to change a prompt or model on a live app. A dashboard is not a decision. Pass, block, or hold is.

G13 covers one slice: a shared gate for ~30 apps vs a pinned production baseline. Not auto-tuning.

End to end, as the refund-bot prompt change:

  1. Someone files a release with frozen artifacts (prompt, model, retrieval, policy).
  2. A versioned suite and rubric run in a sandbox — not on live customers.
  3. Deterministic checks plus a calibrated LLM (large language model) grader score quality, safety, latency, cost.
  4. Policy compares to the pinned live version. Groundedness −2% might auto-block or wait for a human — they already said which.
  5. Hold goes to the risk owner, not a random engineer override.
  6. A prod miss becomes a golden-set case before the next ship.

That’s it: pin candidate → eval vs baseline → pass/block/hold → learn. Shipping on vibes stays out.

Source: Sources and Full Design. The Deep Dive expands the gate, graders and incident; the Cheat Sheet is for rehearsal.

The case in one sentence

Build a shared platform for 30 AI applications that makes a controlled pass, block or hold release decision against a pinned production baseline, with evidence for quality, safety, latency and cost. A dashboard alone does not own that decision.

Questions to ask the interviewer

Question to ask What it's really asking What you then decide
Which applications are critical, and what counts as a release? Is changing a prompt on the refund bot a “release” that must pass the suite? Suite tiers and per-app policies.
Who owns labels, rubrics, review and override authority? Can an engineer override a safety fail, or only the risk owner? Trusted evidence and who may decide.
What is the release window and acceptable evaluation spend? Do we have 20 minutes and $200 per candidate, or overnight and unlimited? Workers and suite schedule.
Which traces contain PII, secrets or proprietary prompts? Can eval logs contain a customer SSN from a test ticket? Redaction, retention, and tenant access.
Which regressions must block automatically versus hold for review? If groundedness drops 2%, is that an automatic block or a meeting? Thresholds and confidence bands.
How are post-release failures fed back into tests? When prod invents a policy, does that case join the golden set before the next ship? How the suite stays current.

Requirements: Functional + Non-Functional

The easiest way to frame requirements in an interview is:

Functional = what the system does. Non-functional = how well it does it and what constraints it must satisfy.

Functional requirements — what the system must do

  1. Pin candidate artifacts — prompt, model, retrieval, tool, policy.
  2. Select versioned suites and rubrics.
  3. Run deterministic and model-based checks.
  4. Compare to the pinned production baseline.
  5. Gate critical slices and four outcome dimensions (quality, safety, latency, cost).
  6. Route uncertain or disputed cases to humans.
  7. Record decisions, owners, and overrides.
  8. Sample production failures into a reviewed test pipeline.

Non-functional requirements — how well / under what constraints

Requirement Example target / constraint
Latency p95 release evaluation within ~20 minutes.
Reproducibility Same artifacts, same suite, same decision.
Security Tenant isolation; sandboxed runners.
Trust Calibrated graders; fail closed when evidence is missing.
Cost Bounded eval spend.
Scale (illustrative) 30 apps × 20 candidates/day × 5,000 cases = 3M executions/day; 2–5 calls each ⇒ 6–15M calls/day. Six-hour window ≈ 278–694 calls/s (~112–278 workers at 2.5 calls/s). Tier suites; shared elastic pool with tenant quotas.

Do not assume one universal rubric. v1 does not auto-tune or broadly share tenant datasets.

Interview shortcut

If asked “What are the requirements?”, say:

“Functionally, pin the candidate, run the suite vs live baseline, then pass, block, or hold. Non-functionally, about 20 minutes, reproducible, fail closed, and humans own overrides.”

Architecture

The LLM grader provides one calibrated score, while deterministic checks, policy code and human authority control the release. Candidate applications and evaluation inputs run in a sandbox; the decision plane reads only validated completed results.

Diagram: Release request; Immutable artifact registry; Versioned dataset + rubric store; Scheduler / tenant quotas; Sandboxed app runner; Deterministic checks; Versioned LLM grader; Validated result store; Policy engine: delta vs pinned baseline; Release with decision record; Stop / remediate; Human review / more evidence; Redacted online samplingDiagram: Release request; Immutable artifact registry; Versioned dataset + rubric store; Scheduler / tenant quotas; Sandboxed app runner; Deterministic checks; Versioned LLM grader; Validated result store; Policy engine: delta vs pinned baseline; Release with decision record; Stop / remediate; Human review / more evidence; Redacted online sampling

Step-by-step architecture

  1. A release request pins the full candidate artifact bundle and the current production baseline, including model, prompt, retrieval, tool and policy versions.
  2. The scheduler chooses versioned suites and app-specific rubrics, applies tenant quotas, and sends cases to sandboxed runners with timeouts and limited egress/secrets.
  3. Runners execute the whole application workflow; deterministic checks score schemas, policy rules and measurable outcomes, while a versioned LLM grader evaluates rubric dimensions that require judgement.
  4. Validated results are written immutably with run, case, grader and rubric hashes; incomplete runs cannot masquerade as complete evidence.
  5. The policy engine computes candidate-minus-baseline deltas for quality, safety, p95 latency and cost, checks critical slices independently, and issues pass, block or hold.
  6. Humans review disputed or statistically thin cases and record overrides with reasons. Production signals are redacted and labelled before joining future suites.

Gate logic and the failure to remember

Quality uses task-specific outcomes and a confidence-aware lower bound on candidate delta. Safety has an independent floor: better average quality cannot compensate for a safety regression. Latency and cost have agreed envelopes. Missing evidence blocks; thin evidence holds. A critical slice must pass on its own. For nondeterministic outputs, use repeated trials and outcome equivalence rather than exact text match.

The source's sales-copilot incident shows why: the release suite passed 96.7% of 120 cases, but only six covered regulated claims, with an 83.3% pass on that slice. Production unsupported claims reached 8.7% versus 1.2% baseline after a model route change and a policy evaluator changed from block to warn-only. Roll back the route, restore blocking, review affected drafts, and add claim-level cases for security status, ROI (return on investment) and customer-logo permission. Version the policy mode so it cannot bypass the gate.

Grader trust, cost and rollout

An LLM grader can reward verbosity over correctness. Version its model and rubric, calibrate it against humans using concise-correct and verbose-wrong examples, inspect disagreements, and keep it advisory until it earns trust. Use hidden holdouts, incident cases and critical-slice minimum coverage to prevent benchmark overfit. Online feedback discovers new failure modes; redaction and labelling make them usable offline.

To control cost, run smoke samples on ordinary changes, broader regression at release, and deep audits for high-risk changes. Route easy cases to a cheaper judge, escalate disagreements to a strong judge/human, and cache only unchanged artifact–case–grader pairs. Do not sample away critical slices. Measure cost per release, decision time, grader agreement, escape rate, flaky-case rate and override rate.

Roll out on one critical app with an advisory recommendation; calibrate graders against human labels; add latency and cost gates; then expand through a shared schema with app-specific rubrics. A grader timeout or unavailable evidence store blocks release. A delayed dashboard can degrade if the durable decision record remains intact. Roll back on a bad canary, unchecked severe incident or untrustworthy scoring.

Two-minute interview answer

“I would build a release decision system, not just an evaluation dashboard. I pin the candidate and production baseline, run versioned cases in an isolated worker pool, score deterministic checks and calibrated LLM rubrics, and store immutable evidence. A policy engine compares quality, safety, latency and cost separately, with critical slices passing independently. Missing results block, thin samples hold, and humans handle disputes and overrides. I would start advisory on one critical app, validate the grader against humans, then harden the gate and expand. Post-release incidents become labelled regression cases, and the gate's own cost and escape rate are measured.”

Where next

Practise this as a worksheet
Evaluation and Release Gating
Revise the concepts