Trace-to-Architecture: Capability Bottleneck Diagnosis for Harness Revision
Organizations: University of Pennsylvania, Philadelphia, USA · Harbin Institute of Technology, Shenzhen, China · DP Technology, Beijing, China
Abstract
Improving an LLM agent requires knowing what to change when it fails. Similar failures can require different fixes, and resolving one problem can expose another. We introduce Trace-to-Architecture (T2A), a framework that uses execution trajectories to determine what to change in an agent's harness and when those changes apply. A development agent diagnoses failures using execution evidence from successful and failed tasks, revises the corresponding harness components, and then checks whether target tasks improve, selected successful tasks remain successful, and the edits are actually triggered. New execution evidence guides subsequent diagnosis and revision. Across ALFWorld, ScienceWorld, and AppWorld, T2A achieves the highest aggregate score for all three evaluated task agents, exceeding their respective strongest baselines by 6.2--30.3 points. We also integrate T2A's diagnosis and validation procedures into Meta-Harness, improving the resulting harnesses' mean ScienceWorld score by 21.6 points from the same starting harness.
Figures & tables
| Benchmark | Baselines | Ours | ||||||
| Minimal prompt | ReAct | SkillNet | GEPA | WorldEvolver | Meta-Harness | T2A | ||
| Qwen3.5-27B | ||||||||
| ScienceWorld | ||||||||
| AppWorld Normal | – | |||||||
| AppWorld Challenge | – | |||||||
| ALFWorld Seen | ||||||||
| Removed | Mean | |
|---|---|---|
| None (full) | 85.2 | — |
| Cards | 65.0 | |
| Check | 70.4 | |
| Memory | 70.9 | |
| Cards + check | 52.3 | |
| Cards + memory | 46.5 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Diagnostic evidence | How edits are organized | Validation and selection |
|---|---|---|---|
| Self-Harness ( Zhang et al., 2026a ) | Failed trajectories clustered by verifier-grounded failure mechanisms. | Bounded component edits with audit records and passing behaviors to preserve. | Held-in and held-out pass counts must not decrease; at least one must improve. |
| AHE ( Lin et al., 2026a ) | Layered trajectory reports and manifests linking evidence, causes, and predicted effects. | Component edits in a decoupled harness workspace. | Next-round attribution checks scores for expected fixes and regressions and supports rollback. |
| HarnessX ( Chen et al., 2026c ) | Task briefs and a cross-task outcome overview with edit history. | Edits to typed processors, recorded in change manifests. | A predefined procedure for review, checks, and regression gates. |
| HarnessFix ( Chen et al., 2026a ) | Trace intermediate representation links responsible steps to harness-layer flaw records. | Repair operators instantiated with file and behavior constraints. | Repair-scope checks, target-flaw reduction, and regression validation. |
| EvolveNet ( Nie et al., 2026 ) | Client-specific experience and evidence of gains and regressions. | Aggregate local program adaptations into shared or domain-specific changes. | Commit the integrated harness only if validation gains at least match regressions. |
| Meta-Harness ( Lee et al., 2026 ) | The proposing agent reads historical code, scores, and execution trajectories. | Free-form code changes chosen by the proposer. | Search-set evaluation and a performance–cost Pareto frontier. |
| Function | ScienceWorld | AppWorld | ALFWorld |
|---|---|---|---|
| Structured records | Present | Present | Present |
| Within-episode memory | Interaction history; confirmed object locations | Interaction history | Recent history |
| Experience retrieval | Empty card library | None | Empty card library |
| Action processing | On | None | None |
| Action checks / execution repair | Off | None | None |
| Component | Full | Removed |
|---|---|---|
| Cards | 4 | 28 |
| Check | 0 | 30 |
| Memory | 14 | 48 |
| Task situation | Old trajectory | Revised trajectory | What the trajectories establish |
|---|---|---|---|
| Prepare an intermediate color for tertiary mixing | Repeated kitchen search without finding materials; final score 0 | Enter the art studio, mix blue/yellow paint; environment confirms green at 23 points; then select the wooden cup as the target and end at | Material location and preparation improve, but target reference remains faulty; lower final score obscures earlier progress |
| Compare inclined-plane angles | Search/navigation without a descent experiment; final score 10 | Complete the first descent and read time; while preparing the second, use focus on the stopwatch as a reset and end at | First experiment progresses, but using focus to reset the stopwatch ends the task |
| Infer dominant/recessive plant traits | Sow seeds but fail to obtain water effectively; plants do not grow; final score 16 | Grow two parent plants to flowering, but answer from parental leaf shape instead of offspring evidence; end at | Care operations progress, but genetic evidence remains insufficient |
LLM Agent Harnesses
LLM agent harnesses are the software and runtime systems that organize an agent’s tools, context, state, execution, and safeguards.
See all 389 papers