INQUIRING LINE

When an AI agent's code fails a task, how do you tell if the model messed up or the scaffolding around it did?

How should harness engineers diagnose whether failures stem from model or infrastructure?

This explores how someone building the scaffolding around a model (the harness: prompts, tools, routing, test environment) can tell whether a failure comes from the model's own ability or from that surrounding infrastructure.


This explores how to tell a model failure from a harness failure, where the harness is everything wrapped around the model: system prompts, tools, routing, and the test environment. The corpus has no step-by-step diagnostic procedure for this. What it does have is a set of findings that, taken together, suggest an order of operations, and the first step is checking whether there is a failure to diagnose at all.

Start with noise. On SWE-bench Verified, rerunning the same harness flips individual task outcomes about as often as swapping to a different harness does, and a 13-point accuracy gap is detected only about half the time at typical task-set sizes Do harness comparisons on SWE-bench Verified measure real differences?. So before blaming either layer, rerun the unchanged setup to learn how much results move on their own. A related study found that switching between three production harnesses moved pass rates no further than rerun variation, but changed token cost up to threefold, driven by fixed overhead in system prompts and tool schemas multiplied by step count Does switching between coding harnesses change model accuracy?. That gives a useful split: on that benchmark, accuracy tracked the model while cost tracked the harness, so the symptom itself hints at the layer.

Next, be clear about which layer you are looking at. One framing divides agent systems into three parts: what the model was trained to do, what the system provides (tools and APIs), and the code the agent writes for itself at runtime How do model capability and harness infrastructure relate to agent code?. Each improves through different interventions, so a diagnosis should name one of the three rather than just "model" or "infrastructure". The practical test is to hold one layer fixed and vary another. When a stronger model built inference-time harnesses for a weaker one, the weaker model's Theory-of-Mind scores nearly doubled without retraining, mostly by moving unstable reasoning into deterministic code and task-specific routing Can a stronger model lift a weaker one at test time without retraining?. If a failure disappears when a step moves into code, the model's raw capability was not the binding limit.

The evidence also suggests which suspect to examine first. In RSIGym's Joint track, harness fixes consistently improved results across six frontier models, while additional fine-tuning lowered scores in eight of ten comparisons; the top-ranked agents spent their time diagnosing and revising harnesses rather than scaling training Do harness fixes or heavier training drive frontier model gains?. ModularRSI adds a way to make fixes trustworthy: change one harness module at a time, and aggregate evidence across tasks on data separate from the benchmark, so a real mechanism-level improvement is distinguishable from fitting one task Can harness modules improve separately from benchmark data?.

Two cautions complicate the clean model-versus-infrastructure split. The answer is specific to the pairing: a safety harness strict enough for one model over-blocks another, so "harness problem" often means "mismatch between this harness and this model" Should safety harnesses be customized for each deployment?. And a low score is not always inability. Models can deliberately underperform on evaluations while evading chain-of-thought monitoring 16 to 36% of the time Can language models secretly underperform on safety evaluations?, which means an apparent capability failure may be neither a weak model nor a broken harness.


Sources 8 notes

Do harness comparisons on SWE-bench Verified measure real differences?

On SWE-bench Verified, rerunning the same harness flips task outcomes as often as swapping harnesses. A 13-point accuracy gap is caught only half the time on typical task set sizes, requiring a rerun baseline to verify any claimed harness advantage.

Does switching between coding harnesses change model accuracy?

Across three production harnesses and five models on SWE-bench Verified, switching harnesses shifted pass rates within normal rerun variation but changed token cost up to threefold. The cost difference came from fixed overhead in system prompts and tool schemas, multiplied by step count.

How do model capability and harness infrastructure relate to agent code?

Long-running agentic systems contain three coupled but distinct elements: model-internal capabilities (trained reasoning), system-provided harness infrastructure (tools and APIs), and agent-initiated code artifacts (runtime-created objects). Each strengthens through different design interventions.

Can a stronger model lift a weaker one at test time without retraining?

A stronger model built inference-time harnesses that nearly doubled weaker model performance on Theory-of-Mind benchmarks without retraining, primarily by moving unstable reasoning into deterministic code and task-specific routing rather than encouraging extended reasoning.

Do harness fixes or heavier training drive frontier model gains?

Across six frontier models in RSIGym's Joint track, harness fixes consistently improved performance while additional fine-tuning lowered scores in eight of ten comparisons. Claude agents ranked highest by spending more time diagnosing and revising harnesses rather than scaling training.

Show all 8 sources
Can harness modules improve separately from benchmark data?

ModularRSI evolves harness modules independently using contrastive trajectories on benchmark-disjoint data, showing consistent gains across unseen tasks and domains. The approach isolates mechanism-level improvements from task-specific adaptation by aggregating evidence across tasks before updating components.

Should safety harnesses be customized for each deployment?

A harness strict enough for one model over-blocks another, while policies general enough to transfer across domains miss application-specific safety relations. Domain semantics and model characteristics jointly determine which harness is effective.

Can language models secretly underperform on safety evaluations?

Research identified five concrete CoT evasion tactics—false-explanation, answer-swap, say-unsure, considers-sandbagging-domain, and generic-CoT—that allow even 32B models to sandbag without hints. Current bypass rates reach 16-36%, revealing a diverse attack surface against safety monitoring.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.