Task-Aware Harness Provisioning for LLM Agents in Mission-Critical Infrastructure Operations
Organizations: Nanyang Technological University Singapore
Abstract
LLM agents have been widely adopted to operate mission-critical infrastructure (MCI). These agents normally rely on a harness that determines what information they can access, which tools they can use, and what actions they can take. Existing systems often expose the same comprehensive harness to every task, which may not be necessary and cause resource wastes. In this paper, we focus on the identification of optimal harness configurations, and view it as a resource-matching problem between what each task requires and what the harness provides. To measure this match, we classify MCI tasks based on the mathematical representation of the underlying system and rank harness configurations by the amount and type of information they provide. We then construct task-to-harness mappings from two sources: mining research literature and measuring controlled agent execution. Leveraging the measured mapping, we propose a new harness provisioning algorithm: map-guided escalation. It begins with a task-specific harness and expands to full provision only after a failed self-check. We evaluate our method in two representative MCI tasks: in liquid cooling, it improves the agent accuracy from 0.652 under full provision to 0.715 and achieves accuracy comparable to Reflexion with 48% fewer tokens; In power grids, full provision remains accuracy-optimal, while map-based provisioning offers lower-cost alternatives. These findings show that harness provisioning follows a domain-dependent accuracy-cost Pareto frontier rather than a universal optimum.
Figures & tables
| Liquid | Grid | |||||||
| Group | Policy | Basis | Acc. std | Lat. | Tok. | Acc. std | Lat. | Tok. |
| Fixed | Full-K5 | maximal provision | ||||||
| Routing | ITR | semantic relevance | ||||||
| LLM-Route | LLM judgment | |||||||
| LLM+Exp | judgment with experience | |||||||
| Cascades | AutoMix | trained check from K3 | ||||||
| Method | Adaptation lever | Acc. std | Tok. |
|---|---|---|---|
| Map-ESC | harness provisioning | ||
| Reflexion | retry and reflection | ||
| ExpeL | trajectory retrieval |
| Policy | Map source | Liquid | Grid |
|---|---|---|---|
| Full- | none | ||
| Exec-Lookup | GPT-5.4 | ||
| Exec-Lookup | Qwen |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| 3:0 | 2:1 | adjudicated | pairwise agreement | |
|---|---|---|---|---|
| Task coordinate | 46% | 54% | 30 papers | 0.49–0.84 by axis |
| Harness level | 68% | 29% | 36 papers | exact 73–84%; QWK 0.61–0.78 |
| Task class | Mode | |||||||
|---|---|---|---|---|---|---|---|---|
| I-N- | 254 | 1 | 3 | 208 | 13 | 29 | 3.26 | |
| I-N- | 242 | 2 | 27 | 132 | 22 | 59 | 3.45 | |
| I-F- | 178 | 0 | 2 | 127 | 14 | 35 | 3.46 | |
| A-N- | 118 | 0 | 9 | 65 | 21 | 23 | 3.49 | |
| I-N- | 118 | 0 | 1 | 44 | 36 | 37 | 3.92 | |
| A-N- | 77 | 0 | 0 | 28 | 22 | 27 | 3.99 |
| Class | Task | Question (abridged) | Grading |
|---|---|---|---|
| I-N- | I-N-S-01 | What is the outlet water temperature at cold plate rack_a4_s1 right now? | numeric, 0.6 K |
| I-N- | I-N-X-01 | How hot is the (unsensored) metal base plate of rack_a4_s1 right now? | numeric, 1.5 K |
| I-N- | I-N-M-02 | Outlets run high on both sides of the hall; which single device is operating far outside its typical range? | set match |
| I-F- | I-F-S-01 | The return-header temperature is drifting; using data up to now, where will it be at s? | numeric, 0.4 K |
| I-F- | I-F-X-02 | rack_a3_s2 steps from 503 W to 1400 W at s; what will its base-plate temperature reach? | numeric, 1.5 K |
| I-F- | I-F-M-03 | If the pump were raised to 4500 rpm at today’s load, where would the hottest outlet settle? | numeric, 0.8 K |
| Level | Liquid | Grid |
|---|---|---|
| K1 model-only | no tools; parametric reasoning over the task prompt | no tools; parametric reasoning over the task prompt |
| K2 static | static_knowledge (catalog, parameter schemas, topology summary, typical ranges, units); web_search | static_knowledge ; search_knowledge and search_sop (RAG over references and operator playbooks); web_search |
| K3 temporal | list_signals , get_signal_window , compute_signal_stats , find_events over gated telemetry | same four tools over the 142-column grid trajectory |
| K4 structure/physics | query_topology , get_fluid_properties , check_physics (energy balance, pressure drop, mixing), check_constraints | query_topology , get_component_limits , check_physics (power balance, loading, per-unit V), check_constraints |
| K5 simulation | simulate_steady (hydraulic/coupled), what_if , compute_sensitivity , simulate_forward (transient rollout) | run_powerflow (AC, with overrides), what_if , contingency_analysis (N-1), compute_sensitivity |
| Liquid | Grid | |||||
|---|---|---|---|---|---|---|
| fl. | Acc std | Tok | fl. | Acc std | Tok | |
| 0.00 | 2 | 14,738 | 0 | 11,829 | ||
| 0.02 | 2 | 14,738 | 0 | 11,829 | ||
| 0.05 | 0 | 14,009 | 0 | 11,829 | ||
| 0.10 | 3 | 14,246 | 1 | 12,253 | ||
| 0.15 | 4 | 12,851 | 2 | 13,406 | ||
| Liquid | Grid | |||||
|---|---|---|---|---|---|---|
| Class | floor | (floor) | LOO | floor | (floor) | LOO |
| I-N- | K3 | 0.70 | K3 | K4 | 0.91 | K4 |
| I-N- | K3 | 0.99 | K3 | K5 | 0.99 | K5 |
| I-N- | K3 | 0.99 | K3 | K3 | 0.99 | K3 |
| I-F- | K5 | 0.35 | K3/K4/K5 | K3 | 0.75 | K3/K4 |
| I-F- | K5 | 0.68 | K4/K5 | K5 | 0.73 | K3/K5 |
| Liquid | Grid | |||||
|---|---|---|---|---|---|---|
| Level | Acc std | Tok | Lat (s) | Acc std | Tok | Lat (s) |
| K1 | 346 | 3.5 | 1,021 | 4.0 | ||
| K2 | 866 | 4.3 | 2,012 | 4.5 | ||
| K3 | 11,617 | 13.7 | 14,716 | 13.6 | ||
| K4 | 16,923 | 16.6 | 18,179 | 12.8 | ||
| K5 | 17,794 | 50.2 | 13,265 | 7.7 | ||
| Liquid | Grid | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Class | K1 | K2 | K3 | K4 | K5 | K1 | K2 | K3 | K4 | K5 |
| I-N-S | .00 .00 | .00 .00 | .90 .00 | .88 .06 | .87 .03 | .03 .02 | .03 .02 | .78 .02 | .90 .00 | .88 .02 |
| I-N-X | .02 .02 | .04 .03 | .59 .05 | .53 .05 | .46 .10 | .00 .00 | .00 .00 | .23 .06 | .63 .05 | .90 .02 |
| I-N-M | .36 .06 | .29 .07 | .90 .00 | .87 .05 | .85 .07 | .23 .02 | .26 .01 | .93 .05 | .93 .05 | .93 .05 |
| I-F-S | .15 .00 | .15 .00 | .70 .05 | .65 .07 | .71 .02 | .10 .00 | .12 .02 | .42 .02 | .45 .05 | .44 .10 |
| I-F-X | .20 .03 | .14 .02 | .30 .06 | .33 .01 | .36 .06 | .15 .04 | .10 .02 | .26 .06 | .32 .07 | .36 .04 |
Agent Harness Optimization
Agent harness optimization improves the prompts, tools, memory, workflows, and control code that shape how AI agents act.
See all 183 papers