Module quiz

Harness engineering quiz

74 questions across 7 lessons. Choose an answer, check it, and read why each option is right or wrong.

Checking answers needs JavaScript. You can still read every question and option below.

0 of 74 answered

Keyboard: arrow keys move between options. Space or Enter selects the focused option.

What is an agent harness?10 questions

ObjectiveDefine an agent harness, say what Agent = Model + Harness means, and place it relative to prompt engineering and context engineering.

  1. Question 1 of 74A teammate says, "The harness is just our system prompt." What is the best correction?

    Choose one answer.

  2. Question 2 of 74Which description orders prompt engineering, context engineering and harness engineering correctly?

    Choose one answer.

ObjectiveName the six harness component families and the failure each one prevents.

  1. Question 3 of 74Which of these belong to the enforcement family of a harness? Select all that apply.

    Choose all that apply.

  2. Question 4 of 74An agent that works through 40 tasks over several days keeps forgetting which tasks it has finished each time it restarts. Which family do you change first?

    Choose one answer.

ObjectiveClassify an agent failure as context, constraint, verification or planning, and name the layer you would change.

  1. Question 5 of 74A coding agent edits its own failing tests until they pass, then reports success. Which failure is this, and what is the right fix?

    Choose one answer.

  2. Question 6 of 74A support agent quotes a refund policy that was replaced last quarter. The only copy of the policy it could read was out of date. Which layer produced the failure?

    Choose one answer.

ObjectiveUse the p-to-the-n arithmetic to explain why long agent tasks need higher per-step reliability or recovery.

  1. Question 7 of 74An agent completes each step correctly 98 percent of the time and a task needs 25 independent steps. About how often does the whole task succeed?

    Choose one answer.

  2. Question 8 of 74Which changes raise the success rate of a long, multi-step agent task? Select all that apply.

    Choose all that apply.

ObjectiveExplain the ratchet and why each harness component encodes an assumption that must be re-tested.

  1. Question 9 of 74An agent deletes a branch it should have left alone. Which response follows the ratchet?

    Choose one answer.

  2. Question 10 of 74A planning scaffold was added to help an older model. A newer model scores the same without it on your held-out tasks. What does "assumptions decay" suggest?

    Choose one answer.

The agent loop and tool design12 questions

ObjectiveExplain why the model proposes and the harness disposes, and why a model's claim that it is done is a hypothesis the harness verifies.

  1. Question 11 of 74Your agent replies "All tests pass, task complete" without calling any tool. What should the harness do?

    Choose one answer.

  2. Question 12 of 74Why is "the model emitted no tool call" a weak definition of done?

    Choose one answer.

ObjectiveTurn tool failures into results an LLM can act on, and keep infrastructure retries out of the model's step budget.

  1. Question 13 of 74A search tool times out for a moment because of network trouble. Which handling does the lesson recommend?

    Choose one answer.

  2. Question 14 of 74Which of these tool results are written so that a model can act on them? Select all that apply.

    Choose all that apply.

ObjectiveDesign a small set of tools for an agent: few and non-overlapping, hard to misuse, with readable, token-efficient output.

  1. Question 15 of 74An agent has 40 tools. Many overlap and are described as "gets data", and it often picks the wrong one. What is the best first change?

    Choose one answer.

  2. Question 16 of 74A lookup tool feeds an agent that must pick its next action. Which result design is best?

    Choose one answer.

  3. Question 22 of 74An agent edits files by line number, and a stale number made it overwrite the wrong line. Which tool change makes that mistake harder?

    Choose one answer.

ObjectiveKeep a large tool catalog and large tool outputs from filling the context window, and weigh a general shell tool against narrow tools.

  1. Question 17 of 74Forty tool definitions of about 500 tokens each are loaded before every task. What does this cost, and what is one fix?

    Choose one answer.

  2. Question 18 of 74Which are sound ways to handle a very large tool output? Select all that apply.

    Choose all that apply.

  3. Question 21 of 74Why might a team give an agent a sandboxed shell as well as its structured tools?

    Choose one answer.

ObjectiveMake a long run resumable, explain why replay is safe only with idempotent tools, and treat tool schemas as a versioned interface.

  1. Question 19 of 74A run crashes after send_invoice succeeded but before its result was saved. On resume the step runs again. What prevents a duplicate invoice?

    Choose one answer.

  2. Question 20 of 74You rename a tool and change one of its arguments. Why re-run your evaluation tasks?

    Choose one answer.

Context and long-running agents10 questions

ObjectiveExplain context rot and keep a long session productive with a context budget, tool-result clearing and compaction.

  1. Question 23 of 74Why can an agent do worse as its window fills, even well before the limit?

    Choose one answer.

  2. Question 24 of 74A tool-heavy agent keeps every old raw tool result in its history. Which change is the lightest-touch way to recover room?

    Choose one answer.

  3. Question 25 of 74The window is 100,000 tokens, 8,000 are reserved for output and 10,000 are the fixed prompt. Compaction starts at 75 percent of what remains after the output reserve, and each capped tool step adds 2,000 tokens. About how many steps fit before compaction?

    Choose one answer.

ObjectiveState what a compaction must keep and what it may drop, and name two ways it goes wrong.

  1. Question 26 of 74Which should a compaction keep as written? Select all that apply.

    Choose all that apply.

  2. Question 27 of 74After a compaction the agent tries an approach that had already failed twice. Which loss does this show?

    Choose one answer.

ObjectiveDesign the handoff artefacts for work that spans many sessions: a restricted-field feature list, a progress file, version control and a startup routine.

  1. Question 28 of 74Why should the feature list for a long-running agent start with every entry marked failing?

    Choose one answer.

  2. Question 29 of 74A coding session is starting on a long project. Which first steps match the startup routine?

    Choose one answer.

  3. Question 30 of 74A prompt tells the agent to change only the passes field of each feature entry. How much protection does that give?

    Choose one answer.

ObjectiveExplain why instruction files should be short maps and why knowledge the agent needs must live where it can read it.

  1. Question 31 of 74A rule that exists only in a team chat thread keeps being broken by the agent. What is the best fix?

    Choose one answer.

  2. Question 32 of 74Why keep the instruction file short and point into a documentation folder?

    Choose one answer.

Guides, sensors and enforcement10 questions

ObjectiveClassify a control as a guide (before the action) or a sensor (after it), and as computational or inferential, and say why an agent needs both.

  1. Question 33 of 74A linter runs after every edit and prints the rule that was broken and how to fix it. How is it best classified?

    Choose one answer.

  2. Question 34 of 74Which of these are computational controls? Select all that apply.

    Choose all that apply.

ObjectivePlace checks at the cheapest effective point in the lifecycle and write sensor output the agent can act on.

  1. Question 35 of 74Which check belongs right after every edit, before anything else runs?

    Choose one answer.

  2. Question 36 of 74A lint check prints 300 lines of passing results into the agent's context on every edit. What is the problem, and what is the fix?

    Choose one answer.

ObjectiveExplain why a hook is a guarantee and a prompt rule is a suggestion, and say which hook points can block an action.

  1. Question 37 of 74Which hook point can refuse a file deletion before it happens?

    Choose one answer.

  2. Question 38 of 74The tests are failing, yet the agent says it has finished. Which control can refuse to let it stop?

    Choose one answer.

ObjectiveCombine permission tiers, a sandbox with filesystem and network limits, and the lethal-trifecta rule into defence in depth.

  1. Question 39 of 74A sandbox limits the agent to the workspace folder but allows any outbound network connection. What is the gap?

    Choose one answer.

  2. Question 40 of 74Which agent design contains the lethal trifecta?

    Choose one answer.

ObjectiveExplain why the agent that builds the work should not be the only thing that checks it, and where behaviour checks stay weak.

  1. Question 41 of 74The agent edits its own failing tests until they pass. What is the strongest protection?

    Choose one answer.

  2. Question 42 of 74Why is a green, AI-generated test suite with decent coverage not enough to trust behaviour?

    Choose one answer.

Orchestration, subagents and people in the loop10 questions

ObjectiveExplain subagents as context isolation first, and say what they cost in tokens and when they do not pay.

  1. Question 43 of 74What is the main reason to send a broad codebase search to a subagent?

    Choose one answer.

  2. Question 44 of 74Two subagents each use 60,000 tokens exploring and each returns about 1,000 tokens. What happens to the parent's context and to the total bill?

    Choose one answer.

ObjectiveWrite a delegation contract for a subagent and hand work over through artefacts and structured results, not transcripts.

  1. Question 45 of 74Which belong in a delegation contract for a subagent? Select all that apply.

    Choose all that apply.

  2. Question 46 of 74A subagent returns a long narrative of everything it read, and the parent's window fills up. Which contract field was missing?

    Choose one answer.

ObjectiveSplit building from checking, and route models by step type, with the cost of each split stated.

  1. Question 47 of 74Why should the agent that wrote a change not be the only judge of it?

    Choose one answer.

  2. Question 48 of 74Which model-routing rule fits best?

    Choose one answer.

ObjectiveIsolate parallel agents that share a codebase, with one owner per artefact and a way to integrate.

  1. Question 49 of 74Five agents working on one repository keep producing conflicting changes. Which set of measures fits best?

    Choose one answer.

  2. Question 50 of 74A team merges with minimal blocking review and reports good results. What should you do before copying the practice?

    Choose one answer.

ObjectivePlace people at intent, irreversible actions, escalations and the steering loop, and describe an autonomy ladder.

  1. Question 51 of 74Where should a person sit in an agent that can roll back deployments?

    Choose one answer.

  2. Question 52 of 74What does moving up an autonomy ladder look like?

    Choose one answer.

Evaluating and operating a harness10 questions

ObjectiveDesign an experiment that shows whether a harness change helped: one change, the same held-out tasks, several trials and a state-based grader.

  1. Question 53 of 74You add a verifier agent, and the next three runs look better. What should you do before deciding that it helped?

    Choose one answer.

  2. Question 54 of 74Which belong in a fair experiment on a harness change? Select all that apply.

    Choose all that apply.

ObjectiveCompute cost per resolved task and say why a pricier attempt can be the cheaper design.

  1. Question 55 of 74Design A costs 0.90 dollars per attempt and succeeds 30 percent of the time. Design B costs 1.60 dollars and succeeds 60 percent. Which costs less per resolved task?

    Choose one answer.

  2. Question 56 of 74An agent succeeds on 25 percent of tasks at 0.60 dollars per attempt. What is the cost per resolved task?

    Choose one answer.

ObjectiveRun the improvement loop from traces: classify failures by layer, make a structural fix, add a regression check, and keep or revert.

  1. Question 57 of 74Traces show that most failures are verification failures: wrong output was never checked. Which response fits the improvement loop?

    Choose one answer.

  2. Question 58 of 74A harness change raises held-out success, but one task that passed before now fails. What should you do?

    Choose one answer.

ObjectiveRe-baseline a harness when the model changes, and prune components that no longer earn their place.

  1. Question 59 of 74After a model upgrade, success is flat and cost is up 40 percent. What is the likely cause and the first step?

    Choose one answer.

  2. Question 60 of 74A sensor in your harness has not fired in months. What does that tell you?

    Choose one answer.

ObjectiveOperate an agent with budgets, checkpoints, rollbacks, a kill switch and a runbook, and degrade safely when a check is unavailable.

  1. Question 61 of 74The tool that verifies the agent's output is down. What should the agent do?

    Choose one answer.

  2. Question 62 of 74Which control can stop an agent that is looping and running up its bill overnight?

    Choose one answer.

Harness engineering: interview drills12 questions

ObjectiveWork the standard derivations: n-step success, pass@k and pass^k, cost per resolved task, and steps before compaction.

  1. Question 63 of 74A task needs 50 independent steps and each step succeeds 99 percent of the time. About how often does the whole task succeed?

    Choose one answer.

  2. Question 64 of 74Each trial succeeds with probability 0.95, and you run 20 independent trials. What are pass@20 and pass^20?

    Choose one answer.

  3. Question 65 of 74Design X costs 1.50 dollars per attempt with 30 percent success. Design Y costs 2.00 dollars with 60 percent success. Which is cheaper per resolved task?

    Choose one answer.

  4. Question 66 of 74The window is 160,000 tokens, 10,000 are reserved for output and 14,000 are fixed. Compaction starts at 80 percent of what remains after the reserve, and each step adds 2,500 tokens. About how many steps fit before compaction?

    Choose one answer.

ObjectiveStructure a 40-minute harness design answer in eight parts and name the markers of a strong one.

  1. Question 67 of 74In a 40-minute harness design interview, what should you do first?

    Choose one answer.

  2. Question 68 of 74Which are markers of a strong harness design answer? Select all that apply.

    Choose all that apply.

  3. Question 69 of 74Midway through your design the interviewer says the budget has been halved. What is the best response?

    Choose one answer.

ObjectiveDiagnose a described agent failure by layer and propose a structural fix.

  1. Question 70 of 74An agent keeps declaring a migration finished when it is 40 percent done. What is the best diagnosis and fix?

    Choose one answer.

  2. Question 71 of 74An agent's change passes every test locally but breaks the user interface in production. What does that suggest?

    Choose one answer.

  3. Question 72 of 74After an update to a tool server, an agent starts sending data to an unknown address. What is the right response?

    Choose one answer.

ObjectiveExplain the core harness ideas (harness, guides and sensors, state across sessions, subagents, proving a change) clearly in about 90 seconds each.

  1. Question 73 of 74Which is the best ninety-second answer to "What is harness engineering?"

    Choose one answer.

  2. Question 74 of 74An interviewer asks about "the harness" and you are not sure what they mean. What should you do in the first fifteen seconds?

    Choose one answer.