Design an agent harness and its evaluation system
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI system design interview question asked in OpenAI's technical screen (system design), last asked Apr 2026. It tests agents, evaluation and llm.
Design the harness that runs a tool-using AI agent, and the evaluation platform around it. The agent takes a user task, may take many model and tool steps, and returns a result. The platform must make offline evaluation repeatable, run agents safely, help diagnose failures, and compare agent versions in a controlled way. Focus on the harness and evaluation, not model training or serving; pick a representative task domain and state your assumptions.
Requirements
- Functional: run an agent on a versioned set of tasks; record every model call, tool call and result as a trace; grade outcomes with deterministic checks where possible and rubric or human review where not; compare two agent versions and gate releases on the result.
- Non-functional: tools may be stateful, slow, flaky or destructive, and a candidate must never touch production state; model outputs are stochastic and cost grows with trajectory length; evaluation data can be sensitive and must not leak into prompts or logs needlessly.
Clarifying questions
- What tasks does the agent do, and which failures are most costly?
- Which tools and permissions exist, and can they be simulated or replayed?
- What release decision must the evaluation support?
- Besides task success, what matters: latency, cost, safety, user effort?
What a strong answer covers
- A harness lifecycle split into task spec, execution, observation, grading and reporting; an isolation boundary (sandboxed environments, fake or recorded tools, scoped credentials) and a tool contract (schemas, timeouts, retries, side-effect flags).
- A trace schema rich enough to reproduce a failure, with secrets redacted.
- A versioned, representative eval set; deterministic graders for checkable outcomes, model-based graders with rubrics, and the graders' own reliability measured against human labels.
- Repeated trials per task, confidence intervals, regression analysis per task slice, and release gates that weigh success against cost and safety.
- Controls for contamination, flaky tools, evaluator bias and privacy; a loop that turns failures into categories and new test cases.
Follow-ups
- Evaluate long-horizon tasks whose environment changes over time.
- Stop a model-based grader from favouring the model family it resembles.
- What should be replayed, mocked or run live?
- Detect an agent reward-hacking the evaluation suite.
Where it's asked
- OpenAI · Technical screen: system design · Last asked Apr 202660 min · Design discussion, sometimes drawn in Excalidraw; for some roles, on the same day as the coding screen
What it tests
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
