The prompt
An agent occasionally repeats a write after a worker restart and sometimes acts on a record from another tenant. Explain how you would reproduce, isolate, fix, and test both defects, then discuss rollout and observability.
How to run the round
Set a timer and answer aloud before reading the guidance. Ask a partner to reveal one follow-up at a time, or record yourself and review the answer against the rubric. Leave a few minutes at the end to state what evidence would change your design.
- 0–8 min · Reproduce
Ask for run IDs, state snapshots, tool request IDs, tenant identity, expected invariant, observed effect, and whether the failure is deterministic.
- 8–18 min · Trace the lifecycle
Follow admission, persisted state, model decision, authorization, tool call, timeout, checkpoint, restart, replay, and final verification.
- 18–30 min · Fix duplicate writes
Use stable operation IDs and downstream idempotency where possible. Reconcile unknown outcomes before retry; distinguish at-least-once delivery from exactly-once effects.
- 30–38 min · Fix tenant leak
Derive tenant and principal from trusted identity, authorize each resource server-side, filter before model context, and test caches and traces for boundary leaks.
- 38–48 min · Test and release
Add regression, adversarial, restart, timeout, and cross-tenant tests. Canary with safe traffic or shadow mode and define stop and rollback criteria.
- 48–55 min · Communicate
Summarize user impact, mitigation, root cause, permanent fix, verification evidence, and how affected customers are notified or reconciled.
Answer structure to keep visible
Separate diagnosis from mitigation. First protect users and bound further effects. Then reconstruct one failed run across durable state and external effects. Make the fix enforce invariants at trusted boundaries, add a regression test that reproduces the failure, and verify the rollout with observable signals.
Common misses to watch for
Treating a retry as safe because the client did not receive a response; trusting tenant IDs supplied by model arguments; assuming workflow checkpointing makes external writes exactly once; patching only the symptom without replay tests; logging raw secrets or customer records during diagnosis.
Score the answer
| Dimension | 1 · Missing | 2 · Partial | 3 · Strong | 4 · Exceptional |
|---|---|---|---|---|
| Problem framing | Assumes the task. | Asks generic questions. | Clarifies success, constraints, and risk. | Prioritizes unknowns and adapts scope as evidence changes. |
| Technical reasoning | Lists tools without a coherent flow. | Happy path only. | Explains state, boundaries, and trade-offs. | Compares viable alternatives with workload evidence. |
| Reliability and safety | Trusts model output. | Names generic guardrails. | Places enforcement, recovery, and verification at boundaries. | Connects threat model, failure containment, and operational ownership. |
| Evidence and communication | Claims success without proof. | Names measures without decisions. | Defines tests, success signals, and stop conditions. | Uses evidence to make a clear, reversible decision and explains uncertainty. |
Self-score: Rate each dimension 1–4, cite a specific moment in your answer, then choose the lowest-scoring dimension for the next practice session. A total score is a coaching aid, not a hiring prediction.
Interviewer follow-ups
- Which assumption is most fragile, and how would you test it?
- What changes if the cost of a wrong action is ten times higher?
- What would you deliberately leave out of the first release?
- Who owns this system the day after launch, and what would trigger a rollback?