AI Tool Fails? Check Task vs Interface Competence
A model can know the answer and still fail because it can't act through your tool's interface.
Reviewed by System Admin · Dec 2, 2026 · Editorial standards
Visual breakdown
InteractiveAI Tool Fails? Check Task vs Interface Competence — Visual Breakdown
Task competence
- ✓Knows the fix for the failing test
- ✓Can reason about the codebase
- ✓Understands the error message
- ✓Chooses the right algorithm
Interface competence
- ✓Emits the expected action format
- ✓Uses the tool's feedback loop
- ✓Follows the system prompt
- ✓Works within resource constraints
The simple version
No jargonYour AI coding tool fails a task you know it can do. Before you rewrite the prompt, ask a narrower question: does the model lack the knowledge, or does it lack the ability to act through this tool's interface? The paper calls the bundle around the model a harness. That bundle includes the system prompt, the action format, the feedback loop, and the resource constraints. Interface competence means acting through a given harness. Task competence is knowing how to solve the problem. Example: a model may know how to fix a failing test. But if your harness expects a JSON action and the model emits prose, the fix never happens. The knowledge was there. The interface was the problem. The paper shows single-harness training can sometimes catastrophically collapse interface competence on a held-out harness, even while underlying task knowledge improves. The authors report on-policy RL is more robust than distillation to single-harness training, so the collapse is not universal. To separate the two, the authors test harness rehearsal: training on traces with minimal task content but the target interface format. On BFCL V3 multi-turn with Qwen3-4B, cross-harness task supervision alone scored 8.5% and harness rehearsal alone 32.5%, versus 58.8% combined (the paper lists cross-harness supervision first, then rehearsal). Each alone gave little gain; together they reached 58.8%, far more than either. For debugging, follow this order. First diagnose which competence is missing. If knowledge is missing, add context or a better example. If the interface is the problem, change the action format or feedback loop. As a rule of thumb, if neither context nor interface changes help, the task may be outside the model's current competence — do it manually and revisit later.
Why it matters in production
Implementation & syntax
# The parser below shows why a correct prose fix fails to parse into an action.
# It stands in for a harness that only accepts JSON actions.
import json
def parse_action(reply: str):
try:
return json.loads(reply)
except json.JSONDecodeError:
return None
# Prose reply: the model states the fix but the harness cannot parse it.
prose = 'I will fix the test by changing line 12.'
print('prose ->', parse_action(prose)) # prose -> None
# JSON reply: the same fix, expressed in the harness's expected format.
action = '{"tool": "edit", "line": 12, "change": "fix assertion"}'
print('json ->', parse_action(action)) # json -> {'tool': 'edit', 'line': 12, 'change': 'fix assertion'}Check your understanding
Quick Concept Check
Test your understanding in 15 seconds
Your AI coding agent writes a correct fix in prose but your tool expects a JSON action, so nothing happens. Which competence is missing?
Related concepts
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.