Skip to content

Interview question · Agent Harnesses

A teammate rewrote the agent's tool guidance and says it is better because the demo task now passes. How do you decide?

One 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.

mediumNewUpdated Nov 2026

TL;DR: Treat it as an experiment. Run both versions of the harness on the same fixed task set, several times each, with the same model and settings. Compare per task, not in aggregate: which tasks moved, in which direction, and how reliably. Report pass^k (passes every time) alongside the average, plus cost and latency. Adopt the change if it improves reliability on tasks you care about without regressing others, then keep the comparison as a regression test.

How to approach it

Explain why one run is weak evidence, describe a paired, repeated comparison, name the metrics, and set a decision rule before looking at the results.

A strong answer

Why one run says little. Agents are non-deterministic. If the old harness succeeds 60% of the time on a task and the new one 70%, a single run of each picks the better one in a strict comparison only about a quarter of the time; the rest are ties or reversals.

The comparison.

  • Tasks: a fixed set that represents real work, including the demo task and recent failures, ideally 30 or more.
  • Runs: several per task per version (five is a practical start), same model, same settings, randomised order.
  • Pairing: compare each task with itself across versions, so task difficulty cancels out.
old = {"t1": [1, 1, 0, 1, 1], "t2": [0, 0, 0, 1, 0], "t3": [1, 1, 1, 1, 1]}
new = {"t1": [1, 1, 1, 1, 1], "t2": [0, 0, 0, 0, 0], "t3": [1, 1, 1, 1, 1]}

def pass_all(runs):
    return sum(all(r) for r in runs.values()) / len(runs)

moved = {t: sum(new[t]) - sum(old[t]) for t in old}
print(round(pass_all(old), 2), round(pass_all(new), 2), moved)
# => 0.33 0.67 {'t1': 1, 't2': -1, 't3': 0}

Reliability improved overall, but t2 got worse. That task-level view is what decides whether the change is acceptable: if t2 is a task you care about, investigate it before adopting.

Metrics. Average success, pass^k (the fraction of tasks that pass on every run), tokens and cost per task, latency, and the number of tasks that regressed.

Decision rule, written first. For example: adopt if pass^k rises, no high-priority task regresses, and cost per task grows by less than an agreed margin.

After adopting. The task set and both results become a regression suite that runs on every future harness change, including ones proposed automatically.

What interviewers probe next

"What if we only have ten tasks?" Then differences of one or two tasks are within noise; say so, and add tasks from real failures before deciding anything subtle.

"Could an LLM grader introduce its own noise?" Yes; prefer checks against end state where possible and calibrate any judge.

How it's scored

Weak: Accepts the demo, or reruns the demo a few times.

Hire: Fixed task set, repeated runs per version, average and reliability compared.

Strong Hire: Explains the noise, pairs by task, reports pass^k, cost and per-task regressions, sets the decision rule in advance, and keeps the comparison as a regression suite.

Common mistakes

  • Comparing different task sets.
  • Aggregates that hide a regression on an important task.
  • Deciding the rule after seeing the numbers.
You just read a free answer. Every topic opens its first 5 answers to anyone. Sign in and the count per topic goes to 6, and the site remembers where you stopped in each one.Google sign-in · free · no payment details
HOW DID IT GO?
0
READING SIGNED OUT

Signing in raises your free answers from 5 to 6 per topic, adds an applied lesson in every topic and easy practice tests, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free
UP NEXT ON YOUR JOURNEY
DISCUSSION · 0

Nobody has commented. Post a correction or another way to answer.