Learning What vs. Learning How: Decomposing Task and Interface Competence in Agentic Training
Organizations: School of Informatics, University of Edinburgh · AI for Science & Innovation, Enterprise AI, AstraZeneca · Centre for AI, University College London · Weatherall Institute of Molecular Medicine, University of Oxford
Abstract
LLM agents operate through harnesses that define system prompts, action formats, feedback loops, and resource constraints. A model may possess the knowledge needed to solve a task yet fail to express that knowledge through a particular harness. This raises a basic question: when a policy fails under a given harness, is it missing task knowledge or the competence to operate the interface? We distinguish two components of agentic competence: task competence, the knowledge and reasoning needed to solve a task, and interface competence, the ability to act on that knowledge through a given harness. Across four reasoning and agentic benchmarks, we show that harness-conditioned training yields vastly different outcomes depending on how these interact. Multi-harness distillation aggregates task knowledge from trajectories collected through different harnesses into a shared policy, but this knowledge is realised only when training preserves or improves competence on the inference-time interface. Otherwise, single-harness training can induce interference in interface competence, sometimes catastrophically collapsing performance on a held-out harness despite improvements in underlying task knowledge. To disentangle task and interface supervision, we introduce harness rehearsal: distillation on traces that carry minimal task knowledge while exercising the target interface. Cross-harness task supervision or rehearsal alone yields little gain, but their combination yields gains far larger than either: on BFCL V3 multi-turn with Qwen3-4B, they achieve 8.5% and 32.5% respectively, versus 58.8% together. Finally, on-policy reinforcement learning (RL) is more robust than distillation to single-harness training: it does not substantially degrade performance on other harnesses, and interface competence acquired through multi-harness distillation persists through subsequent RL.
Figures & tables
| Benchmark | Training harnesses | Held out |
| MedAgentBench | parity / fc / Terminus-2 | xml |
| Reasoning Gym | Terminus-2 / mini-swe / Goose | Aider |
| AppWorld | code / fc / mini-swe | xml |
| BFCL single-turn | fc / json / Terminus-2 | xml |
| BFCL multi-turn | fc / json / pycall | xml |
| MedAgentBench | AppWorld | ||||||
| Training | parity | Terminus-2 | fc | Training | code | fc | mini-swe |
| Base | 36.1 9.2 | 3.7 2.3 | 24.3 8.4 | Base | 4.2 3.9 | 3.9 3.2 | 0.5 0.5 |
| parity -only | 45.8 10.3 | 7.6 3.4 | 18.6 7.8 | code -only | 12.8 3.1 | 9.2 2.7 | 7.8 2.2 |
| Terminus-2-only | 28.8 7.7 | 25.3 7.2 | 21.7 6.8 | fc -only | 2.4 0.8 | 1.7 0.7 | 0.9 0.5 |
| fc -only | 28.5 11.2 | 0.0 | 48.3 7.9 | mini-swe-only | 14.2 3.1 | 7.1 2.0 | 12.6 3.1 |
| 3H | 68.0 10.3 | 25.1 6.6 | 52.4 7.2 | 3H | 19.5 3.8 | 16.2 3.6 | 20.9 4.1 |
| Harness | Base | Cross-task | Rehearsal | Cross-task + rehearsal | Target-task | 3H |
| MedAgentBench target: Terminus-2 | ||||||
| parity | 36.1 9.2 | 63.5 10.0 | 40.4 10.2 | 52.5 9.0 | 26.4 7.6 | 67.2 10.2 |
| Terminus-2 | 3.7 2.3 | 2.0 1.6 | 9.5 5.7 | 34.4 8.2 | 21.7 6.4 | 16.9 5.9 |
| fc | 24.3 8.4 | 47.1 10.0 | 38.5 10.9 | 57.0 9.0 | 16.1 5.2 | 55.3 8.2 |
| Reasoning Gym target: Terminus-2 | ||||||
| Terminus-2 | 18.0 5.5 | 19.8 5.9 | 20.0 5.7 | 37.0 7.1 | 54.7 7.8 | 55.3 7.9 |
| parity | Terminus-2 | fc | xml (held out) | |
| Base model | 36.1 9.2 | 5.0 2.8 | 24.3 8.4 | 50.1 11.0 |
| + parity-only GRPO | 59.8 10.9 | 5.0 3.2 | 25.1 8.1 | 57.2 11.5 |
| 3H SFT | 68.3 10.1 | 27.3 7.2 | 56.4 7.2 | 71.8 9.1 |
| + parity-only GRPO | 74.7 9.2 | 31.9 7.6 | 61.4 6.7 | 72.5 9.1 |
| + Terminus-2-only GRPO | 70.9 9.6 | 53.1 10.4 | 66.9 7.2 | 69.5 9.6 |
| + 3H GRPO | 77.6 8.4 | 50.8 9.7 | 85.7 6.2 | 78.0 8.1 |
Appendix figures & tables29 assets
Supplementary material from the paper’s appendix.
Appendix
| Benchmark | Train | Test | Main evaluation |
| MedAgentBench | 209 | 61 | , |
| Reasoning Gym (per tier) | 192 | 96 | , |
| AppWorld | 94 | 168 | , |
| BFCL single-turn | 1,051 | 355 | , |
| BFCL multi-turn | 600 | 200 | , |
| Harness | Kind | Acts through | State across turns | History | Termination |
| MedAgentBench | |||||
| parity | custom adapter | text: GET , POST , FINISH(...) | server state only | full, resent each turn | FINISH , 8 rounds, or a third unparseable reply |
| fc | custom adapter | native tool calls | server state only | full | finish call or 8 rounds |
| Terminus-2 | released (2.0.0) | terminal: JSON commands run in a shell | shell and filesystem | agent-managed, summarised | agent marks complete, or budget ends |
| xml † | custom adapter | XML tags | server state only | full | <finish> , 8 rounds, or a third unparseable reply |
| Reasoning Gym | |||||
| Setting | Value |
| epochs | 2 |
| learning rate | |
| LR schedule | cosine, 10 warmup steps |
| batch / grad. accum. | / |
| sequence length | tokens |
| optimiser | paged AdamW (8-bit) |
| Benchmark | Harness order (a/b/c) | (a) | (b) | (c) | 3H |
| MedAgentBench | parity / Terminus-2 / fc | 108/54 | 107/77 | 150/112 | 365/167 |
| Reasoning Gym | Terminus-2 / mini-swe / Goose | 120/86 | 114/90 | 155/119 | 389/143 |
| AppWorld | code / fc / mini-swe | 74/46 | 45/32 | 89/52 | 208/60 |
| BFCL single-turn | fc / json / Terminus-2 | 929/915 | 901/892 | 849/843 | 2,679/952 |
| BFCL multi-turn | fc / json / pycall | 593/374 | 386/279 | 416/282 | 1,395/431 |
| Train set | rows | tasks | parity | Terminus-2 | fc |
| Base | — | — | 36.1 9.2 | 3.7 2.3 | 24.3 8.4 |
| 3H (full) | 365 | 167 | 67.2 10.2 | 16.9 5.9 | 55.3 8.2 |
| parity -only | 108 | 54 | 47.3 11.7 | 4.1 2.7 | 21.8 8.6 |
| 3H@108, random draw | 108 | 81 | 43.8 8.7 | 17.8 5.5 | 36.9 7.2 |
| 3H@108, coverage-max | 108 | 108 | 54.5 8.8 | 15.9 5.3 | 34.7 8.5 |
| fc -only | 150 | 112 | 28.7 11.3 | 0.0 | 45.1 9.4 |
| Setting | Value |
| advantage estimator | GRPO |
| learning rate | |
| epochs (multi / single) | 1 / 3 |
| train batch (prompts) | 24 |
| samples per prompt | 6 |
| policy mini-batch | 24 |
| Condition | Tasks harnesses | Epochs | Steps | Rollouts |
| MedAgentBench, 3H | 1 | 12 | 1,728 | |
| MedAgentBench, parity-only | 3 | 12 | 1,728 | |
| Reasoning Gym, 3H | 1 | 14 | 2,052 | |
| Reasoning Gym, mini-swe-only | 3 | 12–15 | 2,052 |
| Benchmark | Training data | Trajectories | Tasks |
| MedAgentBench | parity + fc / parity +Terminus-2 | 258 / 215 | 138 / 98 |
| rehearsal / failed rehearsal | 107 / 107 | 79 / 70 | |
| parity + fc + rehearsal / 32B rehearsal | 365 / 365 | 168 / 169 | |
| fc rehearsal / parity +Terminus-2 + fc rehearsal | 150 / 365 | 84 / 160 | |
| Reasoning Gym | mini-swe+Goose / rehearsal | 269 / 120 | 137 / 73 |
| mini-swe+Goose + rehearsal | 389 | 176 |
| Evaluation harness | ||||
| Training pool | parity | Terminus-2 | fc | xml (held-out) |
| none (base) | 36.1 9.2 | 3.7 2.3 | 24.3 8.4 | 49.0 11.1 |
| Single-harness distillation | ||||
| parity | 47.3 11.7 | 4.1 2.7 | 21.8 8.6 | 43.8 10.5 |
| Terminus-2 | 26.4 7.6 | 21.7 6.4 | 16.1 5.2 | 32.9 8.0 |
| fc | 28.7 11.3 | 0.0 | 45.1 9.4 | 58.4 7.2 |
| 4B demonstrator | 32B demonstrator | |
| mean assistant turns | 34.7 | 3.6 |
| median / p90 / max turns | 17 / 69 / 287 | 4 / 5 / 6 |
| mean assistant characters | 30,870 | 13,622 |
| Training pool | xml (target) | fc | json | pycall |
| None (Base) | 20.6 3.8 | 44.6 5.9 | 33.5 5.4 | 28.2 5.1 |
| 3H (control) | 19.9 4.2 | 59.0 5.5 | 49.5 5.4 | 49.1 5.6 |
| 3H + xml rehearsal | 36.6 4.8 | 60.2 5.8 | 49.9 5.2 | 48.9 5.9 |
| vs control |
| Benchmark | Model | Attempts | Tasks | Solved by any | Strongest harness | Others add |
| MedAgentBench | Qwen3-4B | pass@4 | 61 | 46 | parity (38) | (17%) |
| Qwen3-32B | pass@4 | 61 | 53 | parity (50) | (6%) | |
| Gemma-3-4B † | pass@4 | 61 | 23 | parity (16) | (30%) | |
| Reasoning Gym (easy) | Qwen3-4B | pass@4 | 96 | 75 | mini-swe (71) | (5%) |
| Qwen3-32B | pass@4 | 96 | 82 | mini-swe (77) | (6%) | |
| Gemma-3-4B † | pass@4 | 96 | 31 | Terminus-2 (23) | (26%) |
| BFCL single-turn | Reasoning Gym Easy | ||||||
| Training | fc | json | Terminus-2 | Training | Terminus-2 | mini-swe | Goose |
| Base | 87.0 | 86.2 | 22.5 | Base | 18.0 5.5 | 59.4 7.9 | 25.7 6.7 |
| fc -only | 85.1 | 21.4 | 0.0 | Terminus-2-only | 54.7 7.8 | 55.7 8.4 | 40.2 7.3 |
| json -only | 85.1 | 87.9 | 1.5 | mini-swe-only | 18.4 4.4 | 44.2 7.7 | 39.8 7.4 |
| Terminus-2-only | 21.4 | 83.9 | 42.5 | Goose-only | 37.3 6.7 | 51.5 7.7 | 64.6 8.1 |
| 3H | 86.8 | 86.2 | 43.2 | 3H | 55.3 7.9 | 63.0 7.6 | 60.8 8.2 |
| held-out | single-harness | |||||
| Benchmark | harness | base | (a) | (b) | (c) | 3H |
| MedAgentBench | xml | 49.0 11.1 | 43.8 10.5 | 32.9 8.0 | 58.4 7.2 | 71.5 10.2 |
| AppWorld | xml | 4.5 3.8 | 9.5 4.3 | 3.3 2.2 | 14.1 5.0 | 21.3 7.6 |
| BFCL multi-turn | xml | 20.6 3.8 | 2.5 1.1 | 20.0 4.1 | 18.8 3.9 | 19.9 4.2 |
| BFCL single-turn | xml | 86.2 | 21.7 | 88.5 | 21.4 | 87.0 |
| Reasoning Gym Easy | Aider | 20.8 6.8 | 2.4 2.3 | 0.0 | 0.0 | 19.0 6.0 |
| Pool | Terminus-2 | mini-swe | Goose | Aider (held out) |
| none (base) | 11.7 4.4 | 0.0 | 0.0 | 16.4 6.5 |
| Terminus-2-only | 26.1 7.0 | 0.0 | 0.0 | 8.3 5.1 |
| mini-swe-only | 0.8 0.8 | 30.1 7.5 | 0.0 | 1.0 1.6 |
| Goose-only | 3.2 1.8 | 1.6 1.8 | 0.8 0.9 | 1.0 1.6 |
| 3H | 27.6 6.5 | 32.0 7.5 | 19.9 5.8 | 0.0 |
| Evaluation harness | ||||
| Training pool | parity | Terminus-2 | fc | xml (held-out) |
| none (base) | 20.2 9.4 | 3.7 2.7 | 26.2 11.5 | 15.2 8.0 |
| Single-harness distillation | ||||
| parity | 31.3 9.0 | 0.0 | 26.5 11.5 | 23.0 8.8 |
| Terminus-2 | 26.2 11.1 | 21.1 7.6 | 26.7 11.5 | 14.2 6.0 |
| fc | 26.2 11.5 | 0.0 | 58.8 9.2 | 35.0 8.2 |
| Harness | Base | Cross-task | Rehearsal | Cross-task + rehearsal | Target-task | 3H |
| MedAgentBench target: Terminus-2 | ||||||
| Terminus-2 | 5.0 2.8 | 6.2 2.6 | 12.3 5.3 | 40.5 7.7 | 25.3 7.2 | 25.1 6.6 |
| Reasoning Gym Easy target: Terminus-2 | ||||||
| Terminus-2 | 18.8 5.3 | 20.2 3.6 | 19.7 4.7 | 39.1 6.5 | 52.9 7.9 | 56.6 7.5 |
| Reasoning Gym Hard target: Terminus-2 | ||||||
| Terminus-2 | 16.4 5.5 | 11.9 3.3 | 14.3 4.1 | 28.8 5.5 | 40.2 7.6 | 39.5 7.1 |
| Benchmark | Run | Task only | Rehearsal only | Task + rehearsal |
| BFCL multi-turn ( fc ) | s0 | 8.5 2.8 | 32.5 5.1 | 58.8 5.7 |
| s1 | 8.6 2.9 | 32.2 4.8 | 54.9 5.2 | |
| s2 | 26.0 4.9 | 28.9 5.0 | 56.1 5.4 | |
| s3 | 8.2 3.1 | 30.8 5.1 | 57.5 5.4 | |
| Reasoning Gym easy (Terminus-2) | s0 | 19.8 5.9 | 20.0 5.7 | 37.0 7.1 |
| s1 | 24.9 5.8 | 24.8 5.9 | 38.9 7.5 |
| parity | Terminus-2 | fc | xml (held out) | |
| parity-only | 45.8 10.3 | 7.6 3.4 | 18.6 7.8 | 46.3 9.3 |
| Terminus-2-only | 28.8 7.7 | 25.3 7.2 | 21.7 6.8 | 28.5 7.2 |
| fc-only | 28.5 11.2 | 0.0 0.0 | 48.3 7.9 | 55.5 8.0 |
| 3H | 68.0 10.3 | 25.1 6.6 | 52.4 7.2 | 68.7 10.0 |
| BFCL multi-turn ( fc ) | MedAgentBench (Terminus-2) | Reasoning Gym easy (Terminus-2) | Reasoning Gym hard (Terminus-2) | |
| Task supervision only | 23.6 4.7 | 8.6 4.3 | 18.7 3.7 | 13.5 3.3 |
| Rehearsal only | 33.6 5.1 | 12.9 7.2 | 18.5 4.5 | 14.6 4.1 |
| Task supervision + rehearsal | 57.5 5.6 | 35.2 8.4 | 41.4 6.8 | 30.2 6.0 |
| Combined, reduced to task size, all rehearsal rows kept | 56.2 5.6 | 33.6 8.4 | 40.2 6.4 | 27.9 6.2 |
| Combined, reduced to task size, same mixture | 57.1 5.2 | 32.0 7.6 | 42.2 6.7 | 30.7 6.2 |
| Task only, repeated to combined size | 7.8 2.8 | 8.6 4.1 | 21.2 3.7 | 16.4 3.1 |
| BFCL multi-turn, target fc | MedAgentBench, target Terminus-2 | |
| Task supervision only | 23.6 4.7 | 8.6 4.3 |
| Task supervision + target-harness rehearsal | 57.5 5.6 | 35.2 8.4 |
| Task supervision + the same amount of rehearsal through a non-target training harness | 13.5 4.0 | 2.5 2.0 |
| BFCL multi-turn ( fc ) | Reasoning Gym easy (Terminus-2) | Reasoning Gym hard (Terminus-2) | MedAgentBench (Terminus-2) | |
| Task supervision only | 23.6 4.7 | 18.7 3.7 | 13.5 3.3 | 8.6 4.3 |
| Task + rehearsal (verifier-passing traces) | 56.8 5.6 | 41.4 6.8 | 30.2 6.0 | 35.2 8.4 |
| Task + rehearsal (verifier-failing traces) | 37.4 4.9 | 36.8 6.6 | 26.5 5.9 | 10.8 4.6 |
| Share of the gain kept (derived) | 42% | 80% | 78% | 8% |
| BFCL multi-turn ( fc ) | Reasoning Gym (Terminus-2) | MedAgentBench (Terminus-2) | |
| Traces with every turn valid | 47% / 100% | 68% / 87% | 6% / 9% |
| Traces with no valid turn | 29% / 0% | 0% / 0% | 0% / 0% |
| Median assistant turns | 4 / 4 | 2 / 2 | 56 / 17 |
| Rehearsal only | Task + rehearsal | Specialist | 3H SFT | Rehearsal / specialist | Rehearsal / 3H SFT | |
| BFCL multi-turn, fc | 32.5 | 58.8 | 55.2 | 59.0 | 59% | 55% |
| Reasoning Gym easy, Terminus-2 | 20.0 5.7 | 37.0 7.1 | 54.7 7.8 | 55.3 7.9 | 37% | 36% |
| MedAgentBench, Terminus-2 | 9.5 5.7 | 34.4 8.2 | 21.7 6.4 | 16.9 5.9 | 44% | 56% |
| MedAgentBench, fc | 39.6 9.6 | 36.6 9.8 | 45.1 9.4 | 55.3 8.2 | 88% | 72% |
| Rehearsed templates (task2/3/4/8) | Never-rehearsed templates (task1/5/6/7/9/10) | |
| Task supervision only | 5.9 4.0 | 8.6 4.8 |
| Task supervision + rehearsal | 42.5 15.6 | 42.6 8.7 |
| Gain of the combined arm (derived) | +36.6 | +34.0 |
| Template | Rehearsed | Task only | Rehearsal only | Task + rehearsal | Gain |
| task2 | yes (read) | 5.6 | 65.1 | 86.1 | +80.5 |
| task4 | yes (read) | 18.2 | 8.9 | 76.4 | +58.2 |
| task3 | yes (write) | 0.0 | 4.3 | 1.4 | +1.4 |
| task8 | yes (write) | 0.0 | 1.4 | 6.9 | +6.9 |
| task1 | no (read) | 1.4 | 9.7 | 40.3 | +38.9 |
| task5 | no (read + conditional write) | 33.3 | 26.1 | 73.6 | +40.3 |
| Rehearsal only, 3H demonstrator | Rehearsal only, clean (32B) demonstrator | Task + rehearsal, 3H demonstrator | Task + rehearsal, clean demonstrator | |
| BFCL multi-turn ( fc ) | 33.6 5.1 | 30.5 5.2 | 57.5 5.6 | 54.2 5.6 |
| MedAgentBench (Terminus-2) | 12.9 7.2 | 14.4 6.6 | 35.2 8.4 | 32.0 9.0 |
| Reasoning Gym easy (Terminus-2) | 21.3 5.7 | 48.8 7.8 | 43.7 7.5 | 44.4 7.6 |
| Reasoning Gym hard (Terminus-2) | 17.7 5.1 | 36.6 8.1 | 30.4 6.5 | 32.6 7.1 |
| Failed trials (% of all) | Interface failures, % of all trials (auto human) | Interface failures, % of failed trials (auto human) | ||
| BFCL multi-turn ( fc ) | Task supervision only | 76.2 | 65.8 71.5 | 86 94 |
| Task + rehearsal | 42.1 | 7.0 10.5 | 17 25 | |
| Reasoning Gym (Terminus-2) | Task supervision only | 78.1 | 69.7 70.5 | 89 90 |
| Task + rehearsal | 55.1 | 38.2 38.9 | 69 71 | |
| MedAgentBench (Terminus-2) | Task supervision only | 91.4 | 73.8 78.8 | 81 86 |
| Task + rehearsal | 64.8 | 25.4 59.7 | 39 92 |
| Invalid calls | Incorrect submissions | Termination failures | ||
| BFCL multi-turn ( fc ) | Task supervision only | 85 88 | n/a 4 | 2 2 |
| Task + rehearsal | 4 15 | n/a 0 | 12 10 | |
| Reasoning Gym (Terminus-2) | Task supervision only | 74 69 | 6 14 | 9 8 |
| Task + rehearsal | 5 8 | 52 60 | 12 2 | |
| MedAgentBench (Terminus-2) | Task supervision only | 3 4 | 76 82 | 2 0 |
| Task + rehearsal | 38 41 | 1 41 | 1 8 |
LLM Agent Training
Large language model agent training teaches models to plan, use tools, and learn from multi-step interaction with environments.
See all 631 papers