The interview problem
A customer wants to move a support-assistant workflow from model provider A to provider B within four weeks. The assistant searches internal documents, drafts replies and proposes ticket updates that require approval. The new provider looks cheaper in a demo. Design the migration, acceptance evidence and rollback plan.
Original FDE practice, not a reported interview at either provider or any named company. Providers A and B and all numbers are hypothetical. Technical source retrieved September 27, 2026; interview date not applicable.
1. Migrate a workflow contract, not an endpoint
Start by listing customer-visible guarantees: grounded drafts, preserved citations, permitted languages, structured ticket fields, human approval before writes, tenant isolation and a bounded response time. Clarify why the customer wants to migrate: lower cost, availability, a deployment requirement or better quality. A cheaper token price does not by itself satisfy any workflow contract.
Inventory model calls, prompts, retrieval, cached outputs, conversation state, tool schemas, retry logic and provider-managed files. Identify other dependencies such as embeddings or rerankers separately. Switching a generation provider does not automatically require rebuilding the vector index; switching the embedding model usually requires a compatible index and a separate migration plan.
Record approved data destinations, regions, retention settings and operational ownership for both paths. Verify these against the customer's selected deployment and agreement rather than assuming providers share defaults. Historical transcripts cannot be sent to a new destination merely because their original use was approved. Use permitted redacted or synthetic fixtures until access is established.
2. Introduce an explicit compatibility boundary
customer request + tenant policy
↓
versioned workflow / routing assignment
↓
provider adapter A or B → normalized result and usage
↓
schema validation + evidence checks + approval boundary
↓
application-owned tool executor → durable operation receipt
↓
workflow outcome and evaluation traceKeep the application-level request independent of a provider's message format. Each adapter handles supported roles, tool-call identifiers, argument encoding, finish reasons, streaming events and usage reporting. Maintain a capability matrix: context limits, structured-output behavior, parallel tools, cancellations and timeouts. Unsupported semantics should fail visibly or take a designed fallback rather than disappear in translation.
Do not normalize away useful differences. Preserve raw status and provider request identifiers in restricted diagnostic records while exposing consistent application errors. Version the adapter, model selection, prompt, retrieval settings and tool schema as one tested workflow configuration.
Persist canonical business state in the application: confirmed ticket fields, retrieved references, approvals and tool receipts. A provider's opaque conversation handle is not a portable transcript. Restart a migrated conversation at an explicit checkpoint with relevant authorized context, and test summaries for omitted constraints. Keep in-flight workflows on their assigned version until they finish or reach a controlled migration boundary.
3. Test behavior where compatibility is fragile
Build fixtures for required and optional fields, null versus absent values, invalid enum values, long tool outputs, Unicode, truncation, refusal, streamed arguments and parallel calls. Syntactically valid JSON can still contain a wrong customer identifier. Validate business constraints after parsing and before presenting an approval.
Never execute a write from incomplete streamed arguments. Require a complete validated proposal, a current authorization check and approval bound to the exact operation. If the model revises the ticket update, the old approval does not cover the revision.
Use a stable application operation ID for the same intended action across provider retries and failover, with the operation payload bound to that ID. A changed action needs a new ID and approval; reusing an ID for a different payload must be rejected. A timeout after a tool call is an unknown outcome until the executor's receipt is reconciled. Asking provider B to repeat the whole conversation can otherwise create a second ticket update. An adapter cannot manufacture exactly-once behavior in an external API that lacks idempotency or a reconciliation mechanism.
Test prompts as behavior specifications. Identical temperature settings and prompt text need not yield comparable behavior across providers. Tune on a development set while keeping final acceptance cases withheld; compare the proposed production configurations, not an untuned baseline against a heavily tuned challenger without disclosure.
4. Build paired, outcome-based acceptance evidence
Create a customer-approved set of representative workflows with clean starting state. Include routine cases, long conversations, unavailable tools, contradictory evidence and approval refusals. Run both configurations on the same task definitions with isolated fixtures. Inspect the final ticket state and audit record, not just a fluent statement that the task succeeded.
Combine deterministic checks for schemas, permissions and final state with calibrated human review for usefulness and grounding. Review blinded outputs in randomized order where practical. Keep a rubric for adjudicating disagreements and record invalid test cases. A model judge is a measurement component that needs validation, not an unquestionable answer key.
Suppose 500 paired tasks yield 430 successes for both, 30 only for A, 20 only for B and 20 failures for both. A succeeds on 460/500=92%; B on 450/500=90%. B's observed difference is −2 percentage points. For paired differences D in {−1,0,1}, mean D=−0.02 and sample variance is (50−500×0.02²)/499≈0.0998. The standard error is √(0.0998/500)≈0.0141. A rough normal 95% interval is −4.77 to +0.77 percentage points.
If the declared non-inferiority margin is −1 percentage point, these data do not demonstrate non-inferiority: the lower bound is below the margin. This example uses a two-sided 95% interval, equivalent to a one-sided 97.5% lower bound under the normal approximation; a one-sided 95% analysis uses a different critical value. Failure to find a statistically significant difference is not evidence of equivalence. The approximate interval assumes independent representative task pairs; clustered templates or repeated trials require an analysis that respects those dependencies. Predeclare the actual test and confidence level.
Separate critical failures from the average score. If B introduces an unauthorized write in a critical fixture, a small overall gain cannot compensate for that violation. Zero observed failures in a finite suite also does not prove a zero production failure rate. Report coverage, repeated-trial stability and known unsupported workflows alongside pass rates.
5. Calculate cost per useful outcome
Use invoice-compatible usage and workload traces, not nominal token counts alone. Tokenization, caching, reasoning budgets, retries and output lengths differ. Measure end-to-end time to a usable validated result; time to first token does not include tool round trips or a rejected draft.
In an illustrative day of 10,000 tasks, A consumes $0.04 per task in model calls and succeeds on 92%, so model cost per success is $400/9,200≈$0.0435. B consumes $0.025 and succeeds on 90%, so its model cost per success is $250/9,000≈$0.0278. B appears cheaper on that narrow measure.
If every unsuccessful task needs six minutes of human recovery at $30/hour, A's 800 failures cost $2,400 and B's 1,000 cost $3,000. Total daily model-plus-recovery cost is $2,800 for A and $3,250 for B: B costs $450 more. These assumptions are deliberately simple; estimate actual recovery effort and distinguish failed automation from unresolved customer work. Do not double count human effort already included elsewhere.
At 20 tasks/s and two model calls per task, baseline demand is 40 calls/s. Shadowing every task doubles aggregate provider calls to 80/s, split across providers if each runs the same number of calls. A 10% shadow produces 44/s aggregate. Different agent trajectories can change these rates, so cap shadow volume and measure actual calls, tokens and concurrency before a large replay.
6. Stage the cutover with one write authority
Week one freezes the contract, data permissions and fixtures; week two builds adapters and tunes on development cases; week three runs withheld evaluation and read-only shadow traffic; week four canaries eligible workflows and exercises rollback. These are decision gates, not a promise to launch regardless of evidence.
Shadow B against authorized inputs, but route its tools to isolated fixtures, recorded read results or explicitly read-only production capabilities. Do not let both branches mutate tickets. A shadow using recorded observations tests behavior under those observations; it may not predict B's live trajectory when B requests different information. Label that limitation.
For a canary, assign whole workflows consistently to a configuration. Increase exposure only after sufficient observation for the relevant outcomes and operational limits. Track acceptance, grounding failures, invalid proposals, tool ambiguity, rate limiting and customer corrections by configuration and workflow type. Keep critical invariants enforced in shared application code.
A rollback changes routing for new eligible workflows and drains or pauses existing B work at safe checkpoints. Reconcile every pending external operation before resuming it on A. Fence the old workflow executor at the application tool gateway so a delayed B response cannot initiate another write after ownership transfers; changing the model-routing flag alone is insufficient. Keep A's credentials, capacity and tested artifacts available during the rollback window, subject to approved access. If A is being retired for a data-handling constraint, reverting to it may be prohibited; the fallback must then be a manual or reduced-capability path.
7. Handle failure without hiding it
If B is rate limited, use a bounded queue and deadline-aware retries. Do not fail over across providers mid-operation before checking tool receipts and destination permission. If schema validation spikes, stop expansion and retain failed examples for diagnosis under the approved data policy. If retrieval context exceeds B's usable budget, use a tested evidence-selection policy or declare the case unsupported; silently truncating citations can invalidate the answer.
If quality monitoring is delayed, hold the rollout at its current stage rather than treating missing outcomes as success. If the customer changes tool permissions or prompts, the previously evaluated configuration is no longer the full release candidate. Re-run affected acceptance cases and record the version change.
Provide an acceptance packet with the capability matrix, versioned configurations, task-level paired results, critical-case findings, cost assumptions, approved data paths, canary evidence, open limitations and rollback exercise. Name the customer's acceptance owner and the operational responder. A demo recording cannot replace this handover.
8. Discuss trade-offs and follow-ups
A minimal adapter reduces migration effort but leaves provider details in business logic. A richer compatibility layer improves control but must not imply capabilities the provider lacks. Keeping conversations sticky eases consistency but prolongs dual operation. Restarting at checkpoints simplifies cutover but can lose nuance. Broad shadowing finds more edge cases while increasing cost and data exposure.
Follow-ups: What if B cannot implement one required tool schema? How would you migrate an active conversation with an ambiguous write? What evidence permits a cheaper model for only routine cases? How would a forced retirement of A change rollback? What if B is better overall but worse in one required language? Which acceptance tests would change if the workflow were draft-only?
9. Self-review rubric
- Define workflow outcomes and critical invariants before choosing a provider.
- Inventory data destinations, conversation state and non-generation dependencies.
- Test adapters, complete streamed arguments and business-level validation.
- Preserve approval and idempotency across retries and provider changes.
- Use paired acceptance evidence without confusing non-significance with equivalence.
- Calculate cost including human recovery and temporary dual operation.
- Keep one write authority and demonstrate a permitted rollback path.
Sources and related practice
Anthropic: Demystifying evals for AI agents, published January 9, 2026. Background for evaluating the model together with its harness, inspecting outcomes and combining graders. The migration plan, calculations and acceptance example here are original; this is not an Anthropic interview report.
Continue with customer evaluation sets, integration cutovers and model routing.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.