DAAF: From Failure Localization to Editable System Assets in LLM Agents
Organizations: Tencent
Abstract
Deployed LLM agents increasingly rely on persistent, versioned system assets such as routing rules, knowledge segments, prompt instructions, and reusable skills. Failure-localization methods can identify where an error manifests in an agent or execution trace, but repair requires a different decision: which editable system asset should be changed, and is that change expected to improve the task outcome? We study this gap through component-attribute failure attribution, where diagnosis targets versioned, addressable items rather than execution locations. We propose the Detection-Aware Attribution Framework (DAAF), which learns the effects of valid attribute replacements and amortizes this intervention evidence into deployment-time diagnosis. DAAF combines sparse and noisy failure signals to decide whether intervention is warranted, learns component-type-conditioned replacement effects from controlled replays evaluated by executable task outcomes, and shares supervision across requests with compatible intervention responses. At diagnosis time, DAAF uses only the observed execution, registered candidates, and available failure signals; it requires neither counterfactual replay nor task reward and returns no_change, a repair target, or an unresolved decision when evidence is insufficient. On held-out tau^2-bench Telecom tasks, DAAF achieves 80.72% attribute Hit@1, recovers 62.65% of failed executions while limiting clean-task regression to 3.23%, and reaches 71.93% overall task success. These results show that intervention-grounded attribute attribution can connect failure localization to executable system repair.
Figures & tables
| Role | Registered attribute | Admissible replacement |
|---|---|---|
| Skill | Support procedure | tech_support_manual.md tech_support_workflow.md |
| Knowledge | Policy evidence segment | Official policy registered policy variant with evidence-handling guidance |
| Prompt | Instruction / system template | Official text text with a fixed diagnostic or verification suffix |
| Harness | Parallel tool-call setting | Provider default disabled |
| Method | Attribute Hit@1 | Joint F1 | Failure Recovery | Clean Regression | Overall Success |
|---|---|---|---|---|---|
| No-edit Rerun | – | – | |||
| Component-aware LLM | 40.96 | 51.13 | |||
| LLM + MSWSD | 36.14 | 47.62 | |||
| DAAF | 80.72 | 68.02 |
| Second edit | Train Conditional Effect (pp) | Failure Recovery | Recovery 95% CI | Clean Regression |
|---|---|---|---|---|
| Prompt: instruction | ||||
| Prompt: system template | ||||
| None (Full DAAF ) | reference | |||
| Harness: parallel tool calls | ||||
| Knowledge: main policy |
| Algorithm | Handcrafted | |||
|---|---|---|---|---|
| Method | Step | Joint | Step | Joint |
| All-at-Once | 22.22 | 12.70 | 1.72 | 1.72 |
| Step-by-Step | 30.16 | 30.16 | 24.14 | 22.41 |
| Binary Search | 0.79 | 0.79 | 12.07 | 12.07 |
| AgentDebugX ( Zhu et al., 2026 ) | 42.06 | 42.06 | 18.97 | 17.24 |
| DAAF frontend | 48.02 | 48.02 | 25.86 | 24.14 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Feedback event | Failure score | Reliability |
|---|---|---|
| Explicit positive outcome | 0.00 | 0.75 |
| Explicit negative outcome | 1.00 | 0.75 |
| Correction | 0.75 | 0.50 |
| Explicit negative reaction | 0.60 | 0.40 |
| Abandonment | 0.50 | 0.30 |
| Type | Registered attribute | Replacement role |
|---|---|---|
| Prompt | Instruction | Adds explicit diagnostic ordering, distinguishes agent-side from user-side actions, and requests user verification before advancing. |
| Prompt | System template | Adds end-of-task verification and requires unresolved issues to be stated explicitly rather than inferred from tool completion. |
| Harness | Parallel tool calls | Changes the runtime setting from provider-default behavior to disabled parallel tool calls. |
| Knowledge | Main policy | Adds an evidence-handling section to the registered Telecom policy variant. |
| Skill | Tech-support procedure | Replaces the manual-style support description with the registered workflow-style procedure. |
| Setting | Value |
|---|---|
| Training seed | 20260924 |
| Base-task folds | 3 |
| Candidate budget | 12 |
| Feature / hidden dimension | 64 / 32 |
| Training epochs / warm-up | 200 / 100 |
| Learning rate | 0.2 |
| Method | Attribute Hit@1 | Joint F1 |
|---|---|---|
| Uniform candidate choice | 37.35 | – |
| Component-aware LLM | 40.96 | 51.13 |
| LLM + CTCA | 34.94 | 46.03 |
| Full DAAF | 80.72 | 68.02 |
| Method | Failure Recovery | Recovery 95% CI | Clean Regression |
|---|---|---|---|
| Detection-only control | |||
| Full DAAF | reference |
| Attribute | Standalone | Composed | Change |
|---|---|---|---|
| Harness: parallel tool calls | 0.62 | 30.85 | +30.23 |
| Knowledge: main policy | 0.53 | 30.00 | +29.47 |
| Prompt: system template | 1.25 | 27.42 | +26.17 |
| Prompt: instruction | 0.53 | 21.34 | +20.81 |
| Skill: support procedure | 52.20 | 45.35 | -6.85 |
| All attributes | 11.36 | 31.02 |
| Natural cohort | Balanced development | |||
|---|---|---|---|---|
| Treatment | AUPRC | AUROC | AUPRC | AUROC |
| Missingness-aware ( DAAF ) | 75.77 | 56.06 | 66.00 | 73.92 |
| Mean imputation | 75.77 | 56.06 | 66.00 | 73.92 |
| Zero fill | 71.31 | 44.58 | 50.00 | 48.00 |
| Construction | Held-out Agreement | Splits Won |
|---|---|---|
| Intervention response ( DAAF ) | 62.63 | 10 / 10 |
| Request similarity only | 60.09 | 0 / 10 |
| Random edges | 58.59 | 0 / 10 |
| Method | Online Runs / Failure |
|---|---|
| No-edit Rerun | 1.00 |
| Component-aware LLM | 1.48 |
| LLM + MSWSD | 2.00 |
| Full DAAF | 2.00 |