Skip to content
Forward Deployed

Forward Deployed
Lessons and contents
Final Week ReviewLesson 15 of 22
22 lessons
Interview

Release and Change Management

Source
From the Forward Deployed library
By
Sourav Banerjee
Last updated
18 Nov 2026

Report an issue

Interview Review

1. What the Interviewer Is Testing

  • Can you release AI changes using evidence rather than a few attractive examples?
  • Can you distinguish shadow evaluation from real user exposure?
  • Can you identify which artifacts must be versioned together?
  • Can you detect regressions and stop or reverse the change?

2. Core Mental Model

Diagram: Version candidate; Offline evaluation; Release gate; Shadow and/or scoped canary; Observe; Expand if criteria pass; Stop or roll back if criteria failDiagram: Version candidate; Offline evaluation; Release gate; Shadow and/or scoped canary; Observe; Expand if criteria pass; Stop or roll back if criteria fail
  • Use a rollout path appropriate to the change.
  • Shadow and canary serve different purposes; both are not mandatory for every release.

3. Essential Concepts

1. Version the Behaviour: More Than the Model

  • Track prompts, model/configuration, tools and schemas, routing, retrieval settings, corpus/index versions where feasible, policy, and evaluation artifacts.

“I’d record the versions that produced each task's behaviour so we can reproduce and compare changes.”

Diagram: Release identity; Prompt and model; Tools and schemas; Retrieval and policyDiagram: Release identity; Prompt and model; Tools and schemas; Retrieval and policy
  • Include workflow/state-schema compatibility for long-running tasks.
  • A model rollback alone may not restore previous behaviour.

2. Offline Evaluation: Compare Before Exposure

  • Evaluate representative held-out normal, edge, failure, and high-risk cases against the baseline.
  • Check task success, constraints, latency, and cost.

“Improving twenty examples is encouraging, but I’d check coverage and critical regressions before release.”

3. Release Gates: Define Pass/Fail Criteria

  • Agree on acceptable quality, prohibited failures, operational limits, and required evidence before evaluating the candidate.
Diagram: Quality, policy, task success, latency, and cost criteria; Pass, investigate, or rejectDiagram: Quality, policy, task success, latency, and cost criteria; Pass, investigate, or reject

“A better average should not override a serious permission or action-safety regression.”

4. Shadow Traffic: Evaluate Without User-Facing Actions

  • Run the candidate alongside the current path for comparison while the current path serves the user.
  • Use sandboxed or read-only operation paths for candidate actions.
Diagram: Request; Current path; User and real execution; Shadow candidate; Evaluation only: no production writesDiagram: Request; Current path; User and real execution; Shadow candidate; Evaluation only: no production writes

“The shadow candidate must not issue a second refund or change production state.”

  • Shadow calls can still incur cost, load, and data exposure.
  • Control access and resource budgets, and note that shadow results may not capture user reactions to candidate output.

5. Canary: Expose a Limited Real Cohort

  • Route a small eligible cohort to the candidate, then monitor real quality, task outcomes, errors, latency, and cost against the baseline.
Diagram: Eligible users and tenants; Small candidate cohort; Observe; Expand or revertDiagram: Eligible users and tenants; Small candidate cohort; Observe; Expand or revert

“I’d define the cohort, observation window, stop criteria, and owner before enabling it.”

  • Use consistent assignment where conversation/workflow continuity matters.
  • A tiny cohort may not cover rare failures or all tenant types.

6. Feature Flags: Control Scope

  • Enable behaviour by tenant, cohort, capability, or version.
  • Flags can support limited exposure and fast disabling without a full deployment.

“For two pilot enterprises, I’d scope the flag to those tenants and track their outcomes separately.”

  • Flags must cover the actual execution path, not only the UI.
  • Avoid silently changing a pending approval's action semantics.

7. Rollback: Restore a Known Compatible Version

  • Keep a tested rollback path and know what happens to active workflows, state changes, and already completed business actions.
Diagram: Regression; Stop expansion; Route new work to baseline; Handle active tasks explicitlyDiagram: Regression; Stop expansion; Route new work to baseline; Handle active tasks explicitly

“Rollback restores software behaviour; completed refunds need separate business reconciliation.”

8. Kill Switch: Stop Execution Quickly

  • Disable the affected action, tool, tenant, or agent capability at a trusted boundary.
  • Keep safe unaffected functions where possible.

“If refund execution is unsafe, I’d disable that capability while preserving safe assistance.”

  • A kill switch stops permitted new execution according to its scope; it cannot undo a submitted payment.

9. Monitor and Feed Back: Release Continues After Deployment

  • Track candidate/baseline versions, segment outcomes, errors, escalations, delayed results, and customer feedback.
  • Add discovered failures to regression coverage.

“I’d expand only after the observed cohort meets the agreed criteria.”

4. Requirement → Component Reasoning

Requirement Pattern / component Why Trade-off
Explain behaviour changes Versioned release artifacts Reproduce and compare Artifact coordination
Prevent known regressions Offline evaluation + gate Check before exposure Coverage/label effort
Compare on real requests safely Shadow path with isolated writes Observe candidate behaviour Extra cost and incomplete user feedback
Limit real exposure Canary routing Control rollout impact Cohort bias and small samples
Pilot selected tenants Feature flags Scope behaviour explicitly Configuration complexity
Recover from regression Compatible rollback + kill switch Restore/stop behaviour In-flight state and actions

For a new refund prompt and tool schema:

  • Evaluate offline against the baseline.
  • Run shadow comparisons without payment writes where useful.
  • Canary eligible pilot tenants.
  • Monitor confirmed refunds, approval compliance, errors, latency, and cost.
  • Keep the previous version and an execution switch available.

5. Important Distinctions and Gotchas

  1. Shadow vs canary: evaluation-only candidate vs candidate serving real users and actions.
  2. Deploy vs release: code can be present before a flag exposes behaviour.
  3. Rollback vs undo: reverting software does not reverse external business effects.
  4. Flag vs complete isolation: ensure tools, workers, and resume paths follow the intended version/scope.
  5. Good small sample vs release evidence: include important segments and rare/high-impact failure cases.

6. Trigger → Concept Table

Hear… Think… Discuss…
“New prompt better on 20 examples” Release evidence Coverage, baseline, held-out failures
“Compare without affecting users” Shadow No duplicate writes, budget/data scope
“Only two enterprises first” Scoped canary/flag Cohort, continuity, stop criteria
“Quality drops after release” Rollback Version comparison, known baseline
“Unsafe refunds now” Kill switch Stop affected execution
“Tasks started yesterday” Version compatibility Active state and approval semantics

7. Interview Phrases

“I’d version everything that shapes behaviour, not only the model name.”

“Shadow compares without candidate business writes; canary tests limited real exposure.”

“I’d agree on stop criteria and a rollback path before expanding the cohort.”

“Completed actions require reconciliation even if we roll the software back.”

8. Practice Questions

  1. A prompt improves twenty examples. What evidence and gates would you require before exposure?
  2. Design shadow evaluation for a refund agent without duplicate payments.
  3. Release a new workflow to two tenants while preserving conversation continuity.
  4. Which artifacts must be versioned to explain a changed policy answer or refund action?
  5. A rollout fails while older approvals remain pending. How do flags, rollback, and active-task handling interact?

Rate your confidence and keep notes on the module page.