The interview problem

FDE practice prompt

A customer's support agent drafts account-credit adjustments and external replies. Employees must approve consequential actions before execution. Design a pilot that handles delayed reviewers, changed account state, duplicate callbacks and uncertain API outcomes without interpreting silence as approval.

Original customer case, not a reported interview. Policy, workload and examples are hypothetical. Technical reference retrieved September 27, 2026.

1. Agree on what the reviewer authorizes

Ask the customer to distinguish read-only investigation, drafting and execution. Define which action types require approval, who may approve them and what limits apply. Approval is an authorization decision for a specific operation, not a generic signal that the model seems trustworthy.

For an account credit, show account identity, exact amount and currency, reason, supporting evidence and relevant current balance. For a reply, show recipients, attachments and final text. A reviewer should see the material consequence without needing to interpret raw tool arguments. Bind that readable presentation to the exact structured payload that execution will use.

Clarify whether edits by the reviewer create a new proposal or directly replace its payload before approval. The model must not rewrite the approved amount or recipient afterward. Customer policy determines when separation of duties or a second reviewer is needed; the workflow should enforce that policy rather than asking the model to remember it.

2. Put authorization outside the model

The flow is agent proposal → deterministic policy validation → durable approval record → reviewer interface → execution gate → tool adapter → outcome verification. Keep tool credentials in the executor, outside the agent's unconstrained prompt context. The model can propose an action but cannot mark its own proposal approved or bypass the execution gate.

Store a proposal ID, tenant, action type, canonical payload digest, relevant resource versions, policy version, expiry and evidence references. Approval records include the authenticated reviewer, authority checked, approved digest and decision time. A digest binds content but is not an authorization credential: accept decisions only through an authenticated, tenant-scoped endpoint with server-side permission checks. Resume requests identify the exact pending approval, not merely an entire conversation whose next action may have changed.

Use explicit states: proposed, pending, approved, executing, succeeded, rejected, cancelled, expired and outcome-unknown. Persist transitions and execution identity. A workflow checkpoint helps recover progress, but it is not itself proof that a human authorized the action.

3. Reject stale approvals and replayed callbacks

Suppose the agent proposes a $50 credit against account revision 12. While the reviewer reads it, an employee resolves the issue and revision 13 records an equivalent credit. An approval for the old proposal should not create another $50 adjustment. The executor revalidates current business preconditions and uses target-side conditional operations where available.

A pre-execution read followed by an unconditional remote write still has a race. If the remote API cannot enforce the relevant condition, choose a customer-approved serialized ownership mechanism or route the operation for manual handling. Do not claim a local database lock protects actions performed directly in the customer's system.

Atomically transition one valid approval into an execution record, binding it to a stable operation key. Duplicate approval callbacks return the existing state. An expired, rejected or cancelled proposal cannot be revived by an old browser tab. Recheck reviewer authority at the defined execution boundary; removal of a role must have an explicit effect on outstanding approvals.

If material payload or preconditions change, produce a new reviewable proposal. Avoid endlessly asking for approval due to irrelevant metadata changes by defining which resource fields matter. Rejection ends the attempt; an agent must not repeatedly paraphrase the same proposal until someone approves it.

4. Separate approval from successful execution

After approval, a tool timeout can mean the operation failed, is still running or succeeded without an observed response. Retry using the same idempotency identity when the provider supports it. Otherwise reconcile by an authoritative business reference and preserve outcome-unknown until evidence resolves it. Respect the provider's key-retention window and parameter rules; after that window, a reused key may no longer prevent duplication. A fresh operation key can duplicate the approved action.

Do not mark the proposal succeeded just because the workflow resumed. Record the provider operation ID and verify the resulting state. A permitted retry repeats the same intended action; a changed amount, recipient or action requires a new authorization decision.

Some workflow runtimes rerun code before an interrupt when resuming. Keep consequential side effects after the approval gate, and make replayed bookkeeping idempotent. Test the actual runtime semantics rather than assuming a pause resumes at the next machine instruction.

Cancellation races with execution. If execution has already started, report that cancellation is requested but not guaranteed. A compensating adjustment or follow-up message is a new business action with its own policy, not an invisible erasure of the original.

5. Check whether review can keep up

Assume 600 approval requests per eight-hour working day, each needing two minutes of active review. Demand is 1,200 reviewer-minutes, or 20 hours. Four reviewers each available for six productive hours provide 24 hours of capacity: nominal utilization is 20 / 24 ≈ 83.3%.

This average leaves little room for bursts, complex cases, absence or handoffs. During a burst of two requests per minute, four reviewers averaging one completion every two minutes each can serve two per minute: there is no spare capacity to drain a queue. Extra capacity, lower arrival volume or a narrower pilot is needed for reliable waiting-time targets.

If one reviewer is unavailable, daily capacity becomes 18 hours and the backlog grows by two hours of review work, equivalent to 60 requests at the assumed service time. Track oldest pending age as well as counts. Expiry should cancel or revalidate work according to policy; it must not automatically execute the action.

6. Pilot the combined human and agent workflow

Begin with draft-only shadow operation using authorized historical or synthetic cases. Measure whether proposals are correct and whether reviewers detect incorrect ones. High approval rate can mean high quality or inattentive approval; it is not sufficient evidence of safety.

Test altered payloads after approval, cross-tenant approval IDs, revoked reviewer access, duplicate callbacks, expired proposals and crashes after remote success. Include a realistic misleading proposal to evaluate whether the interface supplies enough evidence for review. Avoid testing harmful actions against live customer accounts.

For a limited live pilot, agree on permitted action classes, limits, named reviewers, queue targets and stop conditions. A kill switch blocks new execution attempts; it cannot retract an already sent reply. Preserve audit records of proposals, decisions and outcomes with access controls and a defined retention policy.

Hand off an operator runbook for unknown outcomes, stale approvals, reviewer absence and customer complaints. Report proposal correctness, review time, false approvals, execution failures and duplicate actions separately. Automating more action classes should follow evidence about this combined workflow, not merely a faster model benchmark.

7. Follow-ups and self-review

Foundation: explain why a generic approve button is insufficient. Senior: recover an approved action after a timeout without duplication. Staff: handle external state changes when the target API offers no conditional write.

Score 0–2 each for exact authorization scope, deterministic execution enforcement, race handling, feasible reviewer capacity and operational recovery. Full marks require honest unknown-outcome handling. Continue with evaluation disagreement and integration reconciliation.

Sources and next steps

The authorization model, customer scenario and capacity calculations are original. A workflow library supplies execution primitives; the application must enforce identity, approval scope and remote-action guarantees.

Continue your preparation

Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.