03When would you ship a fixed workflow instead of an agent?▼medium★ EssentialNewunlockedInterviewers ask this to see whether you will reach for autonomy by default. The strong answer is a test you can apply to any step, the arithmetic behind it, and the hybrid most production systems end up with.Open full answer →
04A weather tool returns a 500 and the agent answers with a temperature anyway. Fix the harness.▼mediumNewunlockedThe model did not malfunction; it filled a gap the harness left open. The fix spans the error contract, the retry policy and a grounding check on the final answer.Open full answer →
05What does the harness own that the model never should?▼medium★ EssentialNewunlockedA question about responsibility boundaries disguised as a definition. The strong answer is a short list of things the model may never decide, each with the incident that follows when it does.Open full answer →
06The agent calls the same tool with the same arguments eight times. Debug it from the trace.▼mediumNew○ sign inRepetition is a symptom with five common causes, and four of them live in the harness. Find which one from the second call, then add a detector so the next cause is caught in two calls, not eight.Open full answer →
12When should an agent stop and ask the user instead of guessing? Design the rule.▼mediumNew◆ premiumAsking too much makes an agent useless; guessing too much makes it dangerous. The rule depends on what a wrong guess costs, whether it can be undone, and whether the answer is findable without the user.Open full answer →
13Your agent must answer within 30 seconds. How do you design the loop around that budget?▼mediumNew◆ premiumA latency budget is not a timeout at the end. It shapes how many model calls you can afford, which tools run in parallel, and what the agent returns when time is nearly up.Open full answer →
15A user sends a new message while the agent is still working on their previous request. What should the loop do with it?▼mediumNew◆ premiumIgnoring it wastes the user's correction. Killing the run loses work and may leave a side effect half done. The loop needs a defined point where new input is read and a rule for what it means.Open full answer →
16Halfway through a legitimate task, the model refuses to continue. How should the loop handle a refusal?▼mediumNew◆ premiumA refusal is neither a final answer nor an error to retry blindly. Detect it, keep what was done, find out what triggered it, and give the user an honest outcome.Open full answer →
17An agent alternated between two tool calls for thirty steps. What should have stopped it at step six, and why must it not fire on polling?▼mediumNew◆ premiumA debugging question with a design inside it. The strong answer reads the trace, names the pattern an exact-repeat check cannot see, designs a detector that compares normalised calls and their results, and shows why polling stays untouched.Open full answer →
03What should a tool return when it fails, and who decides whether to retry?▼medium★ EssentialNewunlockedA question about ownership. The harness owns transient retries, the model owns fixing its own arguments, and nobody retries a write that might have happened without a key.Open full answer →
07Structured outputs are on. The JSON is valid and the action is still wrong. Why?▼mediumNew◆ premiumA schema describes shape. The interviewer wants the list of ways a perfectly shaped call can still be wrong, and a check for each that lives in the harness.Open full answer →
08A tool swallows every exception and returns "ok", and the retry policy stopped firing. Fix the contract.▼mediumNew◆ premiumTwo audiences read a tool's failures: the harness, which retries, and the model, which corrects. The bug is a contract that speaks only to the model, and only to say everything is fine.Open full answer →
09Make a refund tool safe to call twice.▼mediumNew◆ premiumEveryone says 'idempotency key'. The interview is in the details: where the key comes from, how it is stored with the refund, what a repeat returns, and what happens when the payment processor is the one that timed out.Open full answer →
12A reporting tool can return 50,000 rows. How do you expose it to an agent?▼mediumNew◆ premiumThe agent does not need 50,000 rows in its context. It needs an answer computed from them, and a way to look closer at the few that matter.Open full answer →
13A transfer tool should run alone for small internal moves but need approval for large or external ones. Where does that rule live?▼mediumNew◆ premiumNot in the tool's description, and not in the model's judgement. The same tool call is allowed or held depending on its arguments, so a policy check has to see the arguments every time.Open full answer →
14A tool starts a data export that takes twenty minutes. How should it look to the agent?▼mediumNew◆ premiumA tool call that blocks for twenty minutes holds the loop, times out, and gets retried into a second export. Return a handle immediately and let the agent check back.Open full answer →
15You need to add a required field to a tool that agents call thousands of times a day. How do you change the schema without breaking runs?▼mediumNew◆ premiumA tool schema is an API whose client is a model with a cached prompt and runs already in flight. Change it the way you would change a public API: additive first, both shapes accepted for a while, then remove.Open full answer →
16A tool fetches invoices that are PDFs and scanned images. How should those results reach the model?▼mediumNew◆ premiumPasting a 40-page PDF into the context is the expensive way to read three numbers. Decide what the model needs from the document and return that, with the original available on request.Open full answer →
17Design a search tool for a support agent over orders, tickets and help articles. One free-text query, or many filters?▼mediumNew◆ premiumA single query string is easy for the model to call and hard for it to call precisely. Dozens of filters are precise and easy to misuse. The best design gives both, with results that tell the model what to do next.Open full answer →
18After a model swap, 4% of turns contain a tool call written in the message text and no real call. Fix the harness without executing prose.▼mediumNew◆ premiumA debugging question with a trap in it. The strong answer refuses to parse prose into actions, rescues the turn with an observation that puts the call in the right channel, counts the rate per model, and knows when the number says the model is the problem.Open full answer →
19Design the test suite for a new refund tool before any model calls it. What runs in CI, and what needs a model?▼mediumNew◆ premiumA build-round favourite. The strong answer splits the suite into four model-free layers that run on every commit in seconds and one small selection eval that needs a model, and says exactly which bug each layer catches.Open full answer →
02Your agent has a 200k-token window and falls apart at 55k. Why, and what do you change?▼medium★ EssentialNewunlockedThe candidate who says 'use a bigger window' has answered a different question. The window is not full; it is noisy. Find what the 55k is made of, then make it smaller and cleaner.Open full answer →
03Clearing tool results, compacting the history, writing notes: when does each one fit?▼medium★ EssentialNewunlockedThey are not three names for one idea. They lose different things, cost the cache differently and fail differently, and a good answer picks by what the run can afford to lose.Open full answer →
06Documents in the prompt up front, or a tool that fetches them on demand?▼mediumNew○ sign inCaching changes the cost side of this answer a lot and the quality side not at all. Decide on size, how often each run needs the material, and whether the task needs all of it at once.Open full answer →
07The agent rereads the same 40 KB config file every fifteen turns. Fix it without blowing the budget.▼mediumNew◆ premiumThe rereads are a symptom: clearing removed the file, and the three values the agent needed went with it. Give it a way to keep the values and fetch a key, not the file.Open full answer →
08Order the prompt for a long-running agent so the cache holds.▼mediumNew◆ premiumMost candidates get the first three layers right. The marks are in the last one: where the notes block, the clock and this turn's retrieved text go, so they change every turn without touching history.Open full answer →
12A wrong order number from step 3 keeps reappearing for the rest of the run. How do you stop it?▼mediumNew◆ premiumCorrecting it in a new message leaves the wrong value in the window and in every summary built from it. The fix is to stop unverified values from becoming context at all.Open full answer →
13A user changed their instruction mid-conversation, but the agent keeps following the original one. Why, and what do you change?▼mediumNew◆ premiumBoth instructions are in the window, and nothing says the first one no longer applies. The model is resolving a contradiction you left for it.Open full answer →
14Retrieving more documents into the agent's context made its answers worse. Explain and fix.▼mediumNew◆ premiumEvery document in the window is something the model has to weigh. Past a point, the extra ones are not more evidence; they are more ways to be wrong.Open full answer →
16Your browser agent takes a screenshot every step, and after 30 steps the context is mostly images. How do you manage it?▼mediumNew◆ premiumOnly the latest screenshot shows the page as it is now. Older ones are history, and history can be a line of text describing what happened.Open full answer →
05Where does an agent keep its notes during a task that takes eight hours?▼mediumNewunlockedNot in the context window, and not in long-term memory. In durable run state outside the process, structured, written atomically, and enough on its own for a fresh context to pick up the work.Open full answer →
06When should an agent write to long-term memory, and who is allowed to read it back?▼mediumNew○ sign inTwo policies, and the second is the one that leaks. Write when the evidence is strong; read by the scope the memory was written in, checked against what the reader may see today.Open full answer →
08Provenance, expiry and correction: what metadata does every memory record need?▼mediumNew◆ premiumA proposed schema of user_id, text, embedding and created_at stores memories. It cannot say who may read one, why it is believed, when it stops being true or what it replaced. Add the fields that answer those questions, and justify each.Open full answer →
10Procedural memory: when should a learned workflow become a skill file?▼mediumNew◆ premiumSome learned workflows should become skills, some should become plain code, and most should stay as episodes. The deciding questions are how often, how stable, how proven and how much judgement each step needs.Open full answer →
12A user asks your assistant to forget something they told it last month. What has to happen, and how do you prove it?▼mediumNew◆ premiumDeleting the original record is the easy part. The fact also lives in summaries, embeddings, profiles and caches built from it, and the user will notice if any of them remembers.Open full answer →
13Design memory for a coding agent that works in the same repository across many sessions.▼mediumNew◆ premiumThe repository already remembers most things, and it is always current. Memory should hold only what the code cannot tell the agent, and be checked against the code before it is trusted.Open full answer →
15Users ask 'What do you remember about me?' Design how they can see, correct and delete what your assistant has stored.▼mediumNew◆ premiumAsking the model to recite its memories gives a paraphrase, possibly wrong and possibly incomplete. The answer should come from the store itself, shown the way the agent will use it.Open full answer →
02ReAct, plan-and-execute, or an explicit state graph: pick one for a refund workflow.▼medium★ EssentialNewunlockedThe question offers three options; the strong answer uses two, at different levels. The graph owns the rules and the money; a small ReAct loop does the one part nobody can script.Open full answer →
06When does a deterministic edge beat letting the model route?▼mediumNew○ sign inWhen the rule can be written down and checked against data, code should decide. The model earns a routing decision when the input is language and the rule cannot be written, and even then code checks what it chose.Open full answer →
07How much reasoning effort should each step get?▼mediumNew◆ premiumMost steps of an agent run are routine and a few decide the outcome. Spend thinking where a wrong step is expensive and hard to detect, start low where a check can catch mistakes, and measure per step type.Open full answer →
08Recover when step four of a seven-step plan fails.▼mediumNew◆ premiumRetry, repair, replan, compensate or stop: the choice depends on what kind of failure it is, which later steps depend on step four, and what steps one to three already changed.Open full answer →
12When should an agent show its plan to the user and wait for approval before acting?▼mediumNew◆ premiumApproving a plan is cheaper than approving every step and safer than approving nothing. It only works if the plan says what will actually happen and the agent sticks to it.Open full answer →
13Should the planner and the executor in your agent use the same model? How would you decide?▼mediumNew◆ premiumPlanning is a few hard decisions; execution is many easy ones. That asymmetry is an argument for different models, if you can show the cheaper one executes as well.Open full answer →
16Your agent writes a plan before acting. What can you check about that plan in code before any step runs?▼mediumNew◆ premiumA plan in prose can only be read. A plan as structured steps can be checked: are the tools real, are the steps allowed, do dependencies make sense, does it fit the budget?Open full answer →
19The bill tripled after reasoning effort was set to high for the whole coding agent. Design the per-step policy and how to measure it.▼mediumNew◆ premiumA cost question that is really a control question. The strong answer makes effort a per-step setting from a policy table of floors, caps and checks, keeps high effort where no check catches a mistake, and measures the policy on a labelled set that charges the cost of wrong steps.Open full answer →
02pass@k or pass^k: which one do you report for a customer-service agent, and why?▼medium★ EssentialNewunlockedA customer never sees your best of five attempts. They see one run, then another next week. Report the number that describes that, and show it per task so the fix is obvious.Open full answer →
03How do you evaluate an agent whose path differs on every run?▼mediumNewunlockedStop grading the path. Fix the environment, check the end state, express the rules about the path as invariants, and run each task enough times that variation is measured instead of feared.Open full answer →
07Build the first week of evals for a brand-new agent.▼mediumNew◆ premiumNot a benchmark: thirty real tasks, a sandbox, graders written in code, repeated runs, and a day spent reading traces. By Friday the team should know what breaks most often, and every change after that is measured.Open full answer →
10What do you trace for every model call and tool call, and what stays out of the trace?▼mediumNew◆ premiumEnough to explain any decision and attribute any second or rupee; not the secrets and personal data that would turn your observability system into the biggest data store nobody secured. Export by allowlist, not by hope.Open full answer →
12A vendor says their new model scores 6 points higher on SWE-bench Verified. Should your coding agent switch?▼mediumNew◆ premiumSix points on someone else's harness, budget and task set is a reason to test, not a reason to switch. The decision comes from your tasks, your harness and a rule you wrote first.Open full answer →
14Build an evaluation set for your agent from production traces. What do you sample, how do you label it, and how do you keep it useful?▼mediumNew◆ premiumA random sample of traffic is mostly easy cases you already pass. A useful set over-represents failures and risky actions, is labelled with what should have happened, and is refreshed before it goes stale.Open full answer →
16A prompt change passed every quality check but doubled cost per task. How do you catch cost and latency regressions before release?▼mediumNew◆ premiumQuality gates check whether the answer is right. Nobody checked how many turns, tokens and seconds it took to get there.Open full answer →
18The release gate dropped 27 points on the refund slice the day after twenty tasks were added. Investigate.▼mediumNew◆ premiumAn investigation where the usual suspect is innocent. The strong answer looks at the dataset change before the agent, tests the new checkers against their own references and known-bad answers, finds the lint that would have caught it, and fixes the process as well as the tasks.Open full answer →
19Tool-call accuracy is 81% and the team wants a bigger model. Decompose the number and say what to fix first.▼mediumNew◆ premiumA measurement question with a budget decision behind it. The strong answer splits one number into four, reads which failures make up the missing nineteen points, assigns each to its owner, and orders the fixes from cheapest to a model change last.Open full answer →
20A prompt change re-recorded twenty replay cassettes and CI went green. What did the suite prove, and what should the process have been?▼mediumNew◆ premiumA process question hiding a testing-theory question. The strong answer explains that a cassette suite in auto mode proves nothing about a prompt change, puts CI in strict replay, makes re-recording a reviewed diff, and names what live probes still have to cover.Open full answer →
02When does a second agent pay for itself?▼medium★ EssentialNewunlockedWhen it buys something one agent cannot have: a clean context for heavy reading, time through parallel work, or a permission boundary. Prove it against a single-agent baseline with the costs written next to the gains.Open full answer →
05Handoff or agent-as-tool: which one, and why?▼mediumNewunlockedAsk who should be talking to the user once the specialist is involved, and who answers for the outcome. The pattern follows from those two answers.Open full answer →
08Estimate the token bill of a five-worker research system.▼mediumNew◆ premiumFive workers is not five times one prompt. Each worker is its own growing loop, input dominates output, and the number of steps per worker matters more than the number of workers.Open full answer →
10A group-chat style prototype resends the entire history every turn. Fix the architecture.▼mediumNew◆ premiumEvery agent reads every message every turn, so cost grows with agents times turns squared and each agent drowns in the others' chatter. Give each agent its own context, a shared state store, and messages that are addressed.Open full answer →
12When would you use map-reduce agents rather than a swarm or group chat?▼mediumNew◆ premiumIf the pieces do not need to read each other, letting them talk is paying for conversation that changes nothing and spreads every mistake.Open full answer →
14An orchestrator waits forever on a worker agent that is stuck. How do you detect it and recover the work?▼mediumNew◆ premium'Still running' tells the orchestrator nothing. Workers need deadlines, progress signals and a way to hand back partial results, or one stuck branch holds the whole task.Open full answer →
16Should your agents coordinate through a shared workspace they all read and write, or by sending each other messages?▼mediumNew◆ premiumA shared workspace lets any agent see everything and makes conflicts everyone's problem. Messages keep agents isolated and make the orchestrator a bottleneck. The work's shape decides.Open full answer →
06Detect a loop where every step looks slightly different.▼mediumNew○ sign inExact-repeat checks miss the loops that matter. Compare calls after normalising them, watch for cycles in the states the run visits, and above all measure whether anything new is being learned or finished.Open full answer →
07The budget is two thousand rupees or ninety minutes, whichever comes first. Enforce it.▼mediumNew◆ premiumChecking the total after each call lets the last call overshoot. Reserve the worst case before each call, settle the real cost after, keep a slice back for a clean finish, and store all of it where a restart cannot reset it.Open full answer →
11How does a research agent decide it is finished?▼mediumNew◆ premiumNot when it feels done. When every part of the question has an answer it can cite, or a stated reason it has none, and more searching has stopped finding anything new, within a budget set before it began.Open full answer →
12Your event-driven agent keeps reacting to events its own actions caused. Fix the architecture.▼mediumNew◆ premiumTurning it off and adding a sleep both stop the symptom. The fix is knowing who caused every change, and a limit that holds when that knowledge is wrong.Open full answer →
13A travel agent has booked the flight and is booking the hotel when the user cancels the trip. What should happen?▼mediumNew◆ premiumStopping the loop is easy. The flight is already booked, the hotel call may or may not have gone through, and the user wants to know what they are being charged for.Open full answer →
14An approver changes the amount on a paused agent run before approving it. How should the run resume?▼mediumNew◆ premiumResuming exactly where it paused would execute a plan the approver just changed. The edit is new input, and everything derived from the old value has to be checked again.Open full answer →
15A weekly agent job summarising each customer's activity missed two runs in an outage. What should happen when the system recovers?▼mediumNew◆ premiumRunning everything that was missed at once can flood customers and the model quota. Skipping it loses work people expected. The catch-up rule has to be decided before the outage, per job.Open full answer →
17A worker died six minutes into an agent run and nobody noticed for an hour. Design the queue so that cannot happen again.▼mediumNew◆ premiumA design question that starts from an incident. The strong answer gives jobs leases with heartbeats so a dead worker is detected in seconds, records each step with an idempotency key so the takeover resumes without repeating a side effect, bounds retries with a dead-letter queue, and sizes the lease from the step times.Open full answer →
03Your forty-turn agent is slow and expensive. Where do the seconds and dollars go?▼mediumNewunlockedDollars go to input tokens, because every turn rereads everything before it. Seconds go to generation and tool calls, often in series. You find out which by reading the trace, not by guessing.Open full answer →
09Stream agent progress to a web page and a phone. Pick the transport.▼mediumNew◆ premiumThe transport matters less than where progress lives. Write progress to a durable event log first; then any client, on any transport, can catch up after a dropped connection or a phone that slept for ten minutes.Open full answer →
10Persist a sandbox's files across sessions without persisting its secrets.▼mediumNew◆ premiumKeep only the workspace directory, by allowlist; issue credentials fresh each session so nothing secret was ever on disk to save; scan before saving as a backstop, and encrypt and expire what you keep.Open full answer →
12How do you stop a browser or coding agent from reaching your cloud's instance metadata endpoint?▼mediumNew◆ premiumA page or a repository only has to persuade the agent to fetch one internal address. The answer is a network that will not route there, whatever the agent is persuaded to do.Open full answer →
14Fifty internal teams run agents on your shared platform. How do you attribute cost to each team accurately enough to charge them?▼mediumNew◆ premiumThe model bill arrives as one number per account. Attribution has to be built into every call, because reconstructing it afterwards from logs is guesswork.Open full answer →
15An EU customer requires that their data stays in the EU. What does that mean for every part of your agent's runtime?▼mediumNew◆ premiumThe model endpoint is the obvious part. Traces, memory, sandboxes, caches, evaluation copies and support tooling are where data quietly leaves the region.Open full answer →
16Agent sessions in your runtime last up to two hours. How do you deploy a new runtime version without killing them?▼mediumNew◆ premiumA rolling restart that kills workers is fine for 200 ms requests. For two-hour sessions, it is an outage for everyone mid-task, unless sessions can drain or move.Open full answer →
03MCP or A2A for connecting your agent to another team's agent?▼mediumNewunlockedAsk what the other team is offering. If it is a capability with a contract you can rely on, it is a tool. If it is a worker that decides how to do the job, takes a while and may ask questions, it is an agent, and the task model fits.Open full answer →
05Wrap your internal REST API as MCP tools: one tool per endpoint?▼mediumNewunlockedEndpoints are shaped for programs that already know what they want. Tools are shaped for a model deciding what to do. Generate from the API description to get started, then cut, merge and rename until each tool is one decision.Open full answer →
09The specialist agent you delegated to via A2A disappears mid-task. Recover.▼mediumNew◆ premiumSilence is not failure, and failure is not 'never happened'. Keep the task id, find out what state the task is really in, and only then decide between waiting, re-delegating and reporting, without letting two agents do the same side effect.Open full answer →
12Your MCP server keeps per-session state. How do you migrate it to the stateless 2026-07-28 revision?▼mediumNew◆ premiumThe protocol change takes a day; finding everything your server quietly kept in memory between calls takes the rest of the week. Start with that inventory.Open full answer →
13How would you connect a long-running agent backend to your web app so users see progress and can approve actions?▼mediumNew◆ premiumA websocket and a homegrown event format work until the second backend or the first reconnect. The answer is a typed event stream with clear run boundaries, shared state, and approvals that end the run instead of holding it open.Open full answer →
15A partner sends an unsigned A2A Agent Card and says 'we also support ACP'. What do you check?▼mediumNew◆ premiumAn unsigned card is valid A2A, so validity is not the question; trust is. And 'ACP' has meant three different protocols, so the first job is to ask which.Open full answer →
16Your team is about to publish an MCP server for other teams' agents. How do you test it before anyone depends on it?▼mediumNew◆ premiumProtocol conformance shows that clients can talk to it. It does not show that agents can use it well, that it refuses what it should, or that it stays up under real agent traffic.Open full answer →
17Your MCP server answers a tool call with a missing argument by returning a JSON-RPC error. What is wrong, and what should it return?▼mediumNew◆ premiumA wire-level question that separates people who have built an MCP server from people who have installed one. The strong answer knows the two failure channels, says which reader each is for, and shows what the host's loop does differently with each.Open full answer →
03Search-and-replace blocks, unified diffs or whole-file rewrites: choose an edit format.▼mediumNewunlockedChoose by measurement on your model and your repositories, with a default you can defend: search-and-replace for edits to existing files, whole files for new or tiny ones, and a strict applier either way.Open full answer →
05Design the compiler and test feedback loop so it does not spiral.▼mediumNewunlockedSpirals have signatures: the same error after each fix, error counts that stop falling, edits spreading into unrelated files. Track those signals per loop and step back before the third identical attempt.Open full answer →
08Accessibility tree or screenshots for a computer-use agent?▼mediumNew◆ premiumBoth, for different jobs. Structure is for knowing exactly what you are acting on; pixels are for what structure cannot describe. The design question is how to combine them cheaply and keep them consistent.Open full answer →
09The agent rewrites eight hundred lines to fix a two-line bug. What do you change?▼mediumNew◆ premiumLarge diffs for small bugs come from the edit format, the instructions and the absence of any check on change size. Make small edits the easy path, measure diff size against the task, and route oversized changes back before review.Open full answer →
12What should have to be true before a coding agent's pull request counts as done?▼mediumNew◆ premium'The agent says it is done' and 'the tests pass' are both weaker than they look. Done is a list of checks the harness runs, plus what a reviewer needs to see to trust them.Open full answer →
13A coding agent is asked to fix a flaky test. How do you stop it 'fixing' it with retries and sleeps?▼mediumNew◆ premiumA retry decorator makes the test pass and the bug stay. The task has to define success as 'the cause is gone', and the harness has to be able to tell.Open full answer →
15A coding agent must change a legacy module that has no tests. How do you make its change verifiable?▼mediumNew◆ premiumWithout tests, 'it runs' is the only signal, and it is a weak one. Have the agent pin current behaviour first, then change it, so every difference is visible and intended.Open full answer →
16You need to migrate 300 files from an old internal API to a new one. How do you use a coding agent for it?▼mediumNew◆ premiumThree hundred agent sessions each improvising the same change produce three hundred slightly different results. Let code do the repetitive part and the agent do the cases code cannot.Open full answer →
17Your coding agent's shell tool runs each command in a fresh process, and the agent keeps failing after a cd. Redesign the tool.▼mediumNew◆ premiumA build-round question with a small useful part and a large defensive part. The strong answer keeps one shell alive with an end-marker protocol, then adds the checks that make it safe: compound-command splitting, a non-interactive environment, cleaned and capped output, and honest restarts.Open full answer →
02Draw the line between what the model proposes and what the system executes.▼medium★ EssentialNewunlockedWrite it as a table for one real agent: every field of every action, and who decides it. The model proposes intent and content; identity, permissions, limits, recipients and the decision to execute come from the system.Open full answer →
03An email the agent reads tells it to forward every invoice. What stops it?▼mediumNewunlockedAssume the model may follow it. What stops the harm is structural: the email is labelled as data, the task's tools cannot forward in bulk, recipients come from the system, and a run that read untrusted mail needs a person before anything goes out.Open full answer →
07Which actions need a human, and how do you keep approvals from becoming a rubber stamp?▼mediumNew◆ premiumDecide by consequence, not by tool: what it costs if wrong, whether it can be undone, how unusual it is, and whether the run was exposed to untrusted input. Then make the few approvals that remain quick to judge well, and measure whether they are.Open full answer →
11Where do credentials live in an agent system?▼mediumNew◆ premiumNot in the prompt, not in the context, not in the sandbox, not in memory, not in logs. In a secrets manager and an identity system, reached by code outside the model, and turned into short-lived, narrow tokens for each call.Open full answer →
12What is the difference between an agent's workload identity and the user's delegated token, and when do you need both?▼mediumNew◆ premiumOne says which code is calling. The other says on whose behalf, and with what consent. An agent acting for a user needs both, and an audit that keeps them apart.Open full answer →
13Your guardrail checks add 900 ms to every agent turn. Which can run in parallel with the model, and which must stay inline?▼mediumNew◆ premiumRunning checks alongside the model saves time only where being late is harmless. Anything that guards a side effect has to finish before the side effect, however long it takes.Open full answer →
14A guardrail on your agent blocks 12% of legitimate requests. How do you reduce that without letting harmful ones through?▼mediumNew◆ premiumLoosening the threshold until complaints stop is guessing. You need labelled examples of both kinds of mistake, a threshold chosen per risk, and a better route for the cases a single check cannot decide.Open full answer →
15Each refund your agent issues is within policy, but it issued 900 in an hour after a bad prompt change. What limit was missing?▼mediumNew◆ premiumPer-action checks ask whether this refund is allowed. Nobody asked whether 900 allowed refunds in an hour is normal. Aggregate limits catch failures that every single check passes.Open full answer →
18A caller cut your voice agent off mid-sentence. Later it says "as I mentioned, the fee is waived". What went wrong?▼mediumNew◆ premiumThe audio stopped, but the transcript did not. If the agent's history keeps the whole generated sentence, the model believes the caller heard all of it.Open full answer →
20Design the approval card and the undo path for an agent that sends emails to customers on behalf of support staff.▼mediumNew◆ premiumA design question about the person in the loop. The strong answer builds the card from the pending action with its arguments bound to the approval, scales consent to risk with a hold window for routine mail, designs undo from the effect's reversibility, and keeps the step view honest.Open full answer →
02Implement a tool-calling loop with validation, a step budget and error results in 45 minutes.▼medium★ EssentialNewunlockedThe interviewer is checking four things: the loop terminates, bad calls become useful observations instead of crashes, the budget holds, and you can prove all of it with a scripted model.Open full answer →
04Implement retries with backoff, jitter and a retry budget for an agent's tools.▼mediumNewunlockedRetry only what can succeed on retry, wait longer each time with randomness, stop when a shared budget says the service is struggling, and hand the model a clear result when retries are over.Open full answer →
05Implement a loop detector over normalised tool calls.▼mediumNewunlockedExact repeats are easy and rare. The useful detector normalises calls so rewordings collide, watches a sliding window, notices cycles, and tells the loop what to do rather than just raising an alarm.Open full answer →
07Implement an idempotent write wrapper keyed on business intent.▼mediumNew◆ premiumThe key must be the same however the repeat happens: a transport retry, the model asking twice, a crash replay. Derive it from what the action means, store it atomically with the result, and refuse the same key with different arguments.Open full answer →
08Write the test harness for an agent with a scripted fake model.▼mediumNew◆ premiumMake the model and the tools injectable, script both, record everything the agent did, and write assertions about behaviour that a real model run could never guarantee to reproduce.Open full answer →
10An AI-assisted build round: how do you steer and verify the tool while someone watches?▼mediumNew◆ premiumThe interviewer cannot see your thoughts, only your prompts, your reviews and your tests. Make all three visible and deliberate, keep every request small enough to check, and own every line you accept.Open full answer →
12Implement an approval gate that binds each approval to the exact tool arguments it covers.▼mediumNew◆ premiumThe easy version stores 'approved: yes'. The version that passes the follow-ups fingerprints the arguments, expires, refuses changed calls, and is tested for each of those cases.Open full answer →
13Implement a tool-result shaper that fits results into a token budget and tells the model what it cut.▼mediumNew◆ premiumCutting a result at N characters is one line. Keeping the fields that matter, dropping whole records rather than half of one, and saying exactly what was left out is the part that changes the agent's behaviour.Open full answer →
14Implement the intake for an event-driven agent: deduplicate, drop its own echoes, and turn events into one task per business object.▼mediumNew◆ premiumThree checks and a map, but each one fixes a production incident: redelivery, the agent waking itself, and two runs fighting over the same invoice.Open full answer →
15Implement a tool-call validator that rejects bad arguments with error messages the model can act on.▼mediumNew◆ premiumRejecting a call is easy. The part that changes the next turn is saying which field is wrong, what was received, and what a valid value looks like, all at once.Open full answer →
16Implement a checker that verifies a research agent's citations before the answer reaches the user.▼mediumNew◆ premiumA citation is a claim that a source says something. Check three things in code: the source was actually fetched, it contains the quoted text, and every sentence that states a fact cites something.Open full answer →
03The user says the agent bought the wrong item. What evidence decides who pays?▼mediumNewunlockedThree parties will each say they did their job. The answer is a chain of signed objects that shows what the user allowed, what the agent chose and what the merchant offered, so the dispute is a comparison rather than an argument.Open full answer →
04A large merchant's bot defences block your shopping agent. How do you get it recognised?▼mediumNewunlockedRotating IP addresses and copying a browser's headers is the scraper's playbook, and it ends with a ban. The durable answer is to make each request provably yours and let the merchant decide what a known agent may do.Open full answer →
05A research agent with x402 payments spent its whole daily budget overnight. How do you investigate and contain it?▼mediumNewunlockedThe daily cap did its job and still failed: it stopped the spending only after all of it was gone. The investigation is about which task spent it and why nothing smaller stopped it first.Open full answer →
06Users want the agent to reorder household items without asking each time. What do you let them authorise?▼mediumNew○ sign inA single approval that says 'reorder whatever we run out of' is convenient and indefensible. The design question is how narrow the standing authority can be while still saving the user a click.Open full answer →
07Your company wants AI agents to buy from it directly. What must your checkout API provide?▼mediumNew◆ premiumA human checkout hides state in a browser session and trusts the person clicking. An agent checkout has to make state explicit, prices authoritative, payment narrow and every step safe to retry.Open full answer →
08A user revokes their shopping agent's authority while it is in the middle of a purchase. What must happen?▼mediumNew◆ premiumRevocation is only real if the party that releases the money checks it. The agent's own cache of permissions is the last place it should live.Open full answer →
10A shopping agent with a $200 per-purchase limit splits a $600 order into four purchases across merchants. How should limits be designed?▼mediumNew◆ premiumA per-purchase cap is one number. What the user meant was a budget for a task, over a time window, across every merchant. Limits have to be cumulative and enforced outside the agent.Open full answer →
12Finance asks for a monthly report proving every purchase your agents made was authorised. What do you need to have recorded?▼mediumNew◆ premiumCard statements show what was paid. They do not show who allowed it, within what limits, or which agent run did it. That chain has to be recorded when the payment happens.Open full answer →
13Your agent pays a per-request API, and after payment the response is empty or useless. How should the agent and the payment layer handle it?▼mediumNew◆ premiumPer-request payment settles before you see the result. The agent cannot get the money back by asking nicely, so it has to stop paying for bad results quickly and leave evidence for a claim.Open full answer →
14Mid-checkout, the card issuer asks for a step-up authentication challenge. The agent cannot complete it. What should happen?▼mediumNew◆ premiumThe challenge exists to prove the cardholder is present. The agent must not try to pass it; it has to hand that one step to the person and keep everything else ready for when they return.Open full answer →
15How do you test a purchasing agent end to end without moving real money, and still catch the failures that matter?▼mediumNew◆ premiumA happy-path purchase in a sandbox proves little. The failures that cost money are declines, timeouts after charging, duplicate webhooks, price changes and revoked mandates, and you have to make each one happen.Open full answer →
02Why did you choose that agent framework, and what did you still have to build?▼mediumNewunlockedInterviewers do not want the feature list. They want the requirement that decided it, the failure you tested, and the honest list of things the framework did not do for you.Open full answer →
03After adding a human approval step, customers receive every confirmation email twice. Debug it.▼mediumNewunlockedNothing is wrong with the email service and nothing is wrong with the model. The duplicate comes from what the framework runs again when the approval arrives.Open full answer →
05Your organisation runs agents on Semantic Kernel and AutoGen. How do you plan the move to Microsoft Agent Framework?▼mediumNewunlockedA framework migration is a behaviour migration. Inventory what each system relies on, write the tests that pin that behaviour down, then move the pieces that map cleanly before the ones that do not.Open full answer →
06Your CrewAI research crew sometimes skips the fact-check task. Fix it without losing what the crew does well.▼mediumNew○ sign inThe manager agent is doing exactly what a hierarchical process allows: deciding what runs. A step that must always run belongs in code.Open full answer →
07Add a human approval to an OpenAI Agents SDK agent so it survives a server restart.▼mediumNew◆ premiumThe SDK will pause the run for you. Whether the pause survives a deploy depends on where you put the state, and whether the approval still means anything when it comes back.Open full answer →
08Design the permissions for a Claude Agent SDK agent that works in your company's monorepo.▼mediumNew◆ premiumPermission modes, an allowlist, a callback and hooks each decide something different. Layer them so the dangerous commands are impossible, the risky ones ask, and the agent is not interrupted for everything else.Open full answer →
09Two parallel LangGraph branches both add findings, but only one branch's findings survive. Debug it.▼mediumNew◆ premiumThe graph ran both branches. The state kept one answer because nothing told it how two updates to the same field should combine.Open full answer →
10Your agent is built on a framework. How do you test it in CI without calling a real model or real tools?▼mediumNew◆ premiumEvery framework lets you swap the model and the tools somewhere. Find those seams, put scripted fakes in them, and test your graph's behaviour rather than the model's mood.Open full answer →
12Your agent framework released a new major version. How do you upgrade without changing your agent's behaviour unexpectedly?▼mediumNew◆ premiumA framework upgrade can change prompts, defaults, retries and state formats without a line of your code changing. Treat it like a model change: compare behaviour, not just whether it compiles.Open full answer →
13Each turn of your framework-based agent takes four seconds longer than one model call should. Where is the time going?▼mediumNew◆ premiumFrameworks make model calls you did not write: to parse output into a schema, retry a malformed one, summarise memory or pick the next agent. Count the calls before optimising anything.Open full answer →
14One team built its agent on ADK, another on LangGraph, and they now need to work together. How do you connect them?▼mediumNew◆ premiumRewriting one agent in the other framework is the expensive answer. Agree on a boundary instead: a protocol for agent-to-agent tasks, or a tool interface if one side only needs a capability.Open full answer →
15Should your agent use the framework's built-in memory and session storage, or your own store?▼mediumNew◆ premiumBuilt-in memory is quick to start with. The questions that decide it come later: can you delete a user's data, migrate it, query it, and survive a framework upgrade?Open full answer →
16Users should see the agent's steps live: tool calls, approvals, progress. How do you stream them from your framework to the UI?▼mediumNew◆ premiumEvery framework emits events in its own shape. Translate them once into a small, stable event vocabulary the UI understands, so the UI does not change every time the agent's internals do.Open full answer →
17Your framework-based agent must return a result your billing system can ingest. How do you guarantee the final output matches the schema?▼mediumNew◆ premiumAsking for JSON in the prompt works most of the time. A downstream system needs every time, which means a declared output type, constrained generation where available, validation in code, and a defined failure.Open full answer →
03A teammate rewrote the agent's tool guidance and says it is better because the demo task now passes. How do you decide?▼mediumNewunlockedOne passing run is a coin that landed heads. The decision needs the same tasks, several runs per version, a reliability measure and the cost, compared side by side.Open full answer →
04A lead agent shipped a wrong answer built on a subagent's report that turned out to be cut off. What should the harness have done?▼mediumNewunlockedThe subagent did tell the harness it stopped early. The bug is that nobody upstream looked at why it stopped.Open full answer →
05Release procedure, Jira access, codebase exploration, never push to main: which agent mechanism for each?▼mediumNewunlockedEach need has a different shape: occasional knowledge, access to a system, isolation of noisy work, and a rule that must hold. Use the wrong mechanism and the rule becomes a suggestion.Open full answer →
07Design an agent's session log so any failed run can be replayed and explained.▼mediumNew◆ premiumIf you cannot rebuild exactly what the model saw at step 23, you cannot explain step 24. The log has to be designed for that, not left to whatever the framework prints.Open full answer →
09A config change dropped a policy plugin and the agent ran a forbidden command. How do you prevent a repeat?▼mediumNew◆ premiumIn a harness where everything is a plugin, the list of loaded plugins is a security setting. Treat it like one.Open full answer →
10Use a harness hook to stop a coding agent from running destructive shell commands. What can a hook enforce, and what can't it?▼mediumNew◆ premiumA hook that pattern-matches 'rm -rf' will be beaten by a script that does the same thing. Hooks are good for policy and feedback; containment has to come from the sandbox underneath.Open full answer →
11Your harness spends 30,000 tokens on instructions and tools before a task starts. What should load up front, and what on demand?▼mediumNew◆ premiumEverything loaded up front is paid on every turn and competes for the model's attention. Keep the always-needed core small and let the agent pull in the rest when the task calls for it.Open full answer →
12You want to run your coding agent's harness headless in CI to fix failing builds automatically. What changes from interactive use?▼mediumNew◆ premiumNobody is there to approve a command or answer a question. Everything the interactive session asked a person about has to become a rule, a budget or a stop.Open full answer →
13Design the permission modes for a coding agent harness, from 'ask before everything' to 'run unattended'. What changes between them?▼mediumNew◆ premiumA mode is a bundle of decisions: which tools run without asking, where writes may land, what reaches the network. Make each bundle explicit, so 'auto' never quietly means 'everything'.Open full answer →
14Two hours into a coding session, after compaction, the agent reverses a design decision the user made early. What should the harness keep?▼mediumNew◆ premiumA summary keeps what seemed important to the summariser. User decisions and constraints must not depend on that judgement; the harness should keep them as their own record.Open full answer →
15Your team wants to reuse its coding agent harness for data analysis work. What carries over, and what has to change?▼mediumNew◆ premiumThe loop, sandbox, file tools and permissions carry over almost unchanged. Verification does not: there is no test suite that says an analysis is right, so the harness has to supply other checks.Open full answer →
17How should a coding harness show files and command output to the model so that edits are accurate and context stays small?▼mediumNew◆ premiumLine numbers, ranges, truncation notes and stable formatting look like details. They decide whether the model edits the right lines and whether a 5,000-line file eats the window.Open full answer →
18Your harness has a stop hook that keeps the coding agent working until the tests pass. One run went 300 turns overnight. What do you change?▼mediumNew◆ premiumA gate that refuses to let the agent stop is a good idea with no exit. Give it a loop guard, a budget and a way to fail honestly.Open full answer →
02An agent task costs too much and takes 90 seconds. How do you cut both systematically?▼mediumNewunlockedThe tempting answer is a cheaper model. The systematic one starts from the trace, finds where the tokens and seconds actually go, and pulls the cheapest lever first.Open full answer →
03A frontier model improves your agent's accuracy by 2 points but triples inference cost. How do you decide?▼mediumNewunlockedTwo points of what, on which tasks, measured how many times? And is the choice really all of the traffic on one model or all on the other?Open full answer →
05What does a prompt optimiser like MIPROv2 or GEPA actually search, and when would you use one?▼mediumNewunlockedThey search instructions and examples against your metric. Whether that helps depends almost entirely on the metric and the data you give them.Open full answer →
07How would you train a router from your frontier agent's traces so easy steps go to a small model safely?▼mediumNew◆ premiumThe traces already contain the labels you need, if you are careful about which ones you trust. The threshold is a quality decision, and the fallback is not optional.Open full answer →
09After a release, your agent's prompt cache hit rate fell from 80% to 20% and cost nearly tripled. Find the cause.▼mediumNew◆ premiumCaches match an exact prefix. One timestamp, a reordered tool list or a per-user line near the top of the prompt makes every request start from scratch.Open full answer →
10Output tokens make up most of your agent's model bill. Where do they come from, and how do you cut them without hurting results?▼mediumNew◆ premiumOutput tokens usually cost several times more than input tokens. An agent that narrates every step, rewrites whole files and explains its tool calls pays for prose nobody reads.Open full answer →
12Your agent makes 14 model calls per typical question and users say it is slow. How do you cut round trips without losing accuracy?▼mediumNew◆ premiumMost of those calls are the model asking for one small thing at a time. Change what it can ask for and how many things it can ask for at once, then check accuracy did not move.Open full answer →
15Your agents process 40,000 documents each night. How would batch model APIs cut the cost, and what changes in the agent's design?▼mediumNew◆ premiumBatch APIs trade latency for a lower price. An agent loop that expects each answer in seconds has to become a pipeline of rounds, where each round waits for a whole batch.Open full answer →
16Your agent's prompt has 12 hand-picked examples. How do you decide which examples to include, and should they change per request?▼mediumNew◆ premiumExamples steer behaviour more than instructions do, for better and worse. Pick them with a metric, and weigh per-request examples against the prompt cache they break.Open full answer →
03Your harness keeps the last ten messages to save tokens, and the provider sometimes returns 400. Debug it.▼medium★ EssentialNewunlockedA debugging question that tests whether you know what a message list has to look like. The strong answer finds the cut through a call-and-result pair, explains why it is intermittent, and replaces slicing with trimming in whole units.Open full answer →
05A JSON summary sometimes lists one ticket where there were three, with no prompt change. Find the cause.▼mediumNewunlockedA debugging question about the field most harnesses never read. The strong answer finds a length stop behind a reply that parses, explains how a repair step made it wrong, and fixes the loop so truncated output never becomes a valid object.Open full answer →
06A step has a 12,000-token prompt and a five-second deadline. Estimate its latency and say what you would change.▼mediumNew○ sign inAn estimation question that many candidates answer with a guess. The strong answer writes the three-term latency model, shows the deadline is impossible as stated, and names the structural changes that make it possible.Open full answer →
07Your streaming harness dispatches a tool as soon as the first delta names it. What goes wrong, and how do you fix the parser?▼mediumNew◆ premiumA question about the wire. The strong answer knows that a streamed tool call arrives as fragments keyed by index, accumulates them until the finish reason, parses once, and separates what the user needs to see from what the loop needs to wait for.Open full answer →
08Forty agents each retry a 429 after exactly one second. Design the retry and rate-limit policy for the fleet.▼mediumNew◆ premiumA design question with a visible failure in it. The strong answer explains the synchronised retry storm, then layers a shared limiter, honest classification, jittered backoff with a run-level budget, and a circuit breaker.Open full answer →
12The run has thirty seconds. Allocate the time across steps so a cut-off run still returns something useful.▼mediumNew◆ premiumA design question about time as a budget. The strong answer reserves a wrap-up call first, gives each step a share with a floor and a ceiling, derives max_tokens from the share and the context size, and names what the loop does when the planner says stop.Open full answer →