arXiv:2610.03591cs.AIOct 2026

Manuscript Offprint

arXiv:2610.03591

HazardWeaver: Scientific Route Selection for Hazard Analysis Agents

Wangshu Zhu, Xueqi Cheng, Liang Wu, Yushun Dong

ABSTRACT

Understanding and assessing natural hazards is essential for disaster preparedness and risk reduction. Recent advances in large language models have spurred growing interest in AI agents for hazard analysis, particularly their ability to integrate scientific data, models, and tools into automated workflows. However, effective automation requires agents to determine which scientific methods are appropriate for a given event and executable with the available data and tools. As new evidence and execution results become available, these conditions can change, requiring agents to reconsider their choices. We formulate this problem as state-dependent scientific route selection and introduce HazardWeaver. Specifically, HazardWeaver first leverages the Hazard Knowledge Compiler to extract evidence-linked conditions governing scientific applicability, then its Hazard Capability Graph represents executable scientific capabilities and checks compatibility between their inputs and outputs. Using these complementary representations, the Hazard Weaver Agent component selects applicable and executable routes, carries out their workflows, and revises its decisions as the analysis state changes. To evaluate both the scientific outputs and the decisions that produce them, we introduce the Hazard Weaver Benchmark, comprising 141 instances across seven single-hazard domains and four multi-hazard interaction classes. The benchmark accommodates multiple valid scientific routes and evaluates output correctness, route validity, and justified abstention. Extensive experiments on this benchmark show that HazardWeaver outperforms existing agent systems, with the largest gains on tasks with multiple eligible scientific routes. Our code is publicly available at https://github.com/LabRAI/HazardWeaver.

1 INTRODUCTION

Natural-hazard analysis supports disaster preparedness and risk reduction. The same target can often be reached through several scientific routes. Wildfire spread, flood extent, and earthquake source parameters, for example, can each be estimated through empirical, physical, statistical, or learned methods, which differ in assumptions, required observations, validity ranges, and computational dependencies (Perry, 1998; Huot et al., 2022; Nearing et al., 2024; Zhu & Beroza, 2018; Stewart et al., 2015; Reichstein et al., 2019; Karpatne et al., 2017). A task specification alone therefore does not fix how it should be analyzed, since scientific evidence determines which routes apply while the available resources determine which routes can currently run. The difficulty grows when multiple hazards occur simultaneously or in cascade, since one hazard alters the conditions under which another must be assessed (Kappes et al., 2012; Gill & Malamud, 2014; Zscheischler et al., 2018; 2020). Recent advances in large language models have spurred growing interest in AI agents that integrate such scientific data, models, and tools into automated workflows (Boiko et al., 2023; Bran et al., 2024; Jaber et al., 2026). On an actual event, however, the evidence and tools an agent depends on can shift as the event unfolds. The agent must therefore repeatedly reconsider which route it can trust and run. Route choice thus becomes a state-dependent decision, which leads to the question we study: given a hazard task and the current analysis state, which scientific route should an agent take?

Existing work provides important components for automated hazard analysis, but two gaps remain in how scientific routes are grounded and revised. Gap 1: Scientific Route Grounding. Hazard models offer established procedures within selected modeling regimes (Finney, 1998; Bates et al., 2010), yet the conditions governing their applicability are scattered across papers, reports, and model documentation. Selecting an appropriate route therefore requires making these conditions explicit and checking them against the available task evidence. This grounding must also extend to how scientific assets are combined. Although workflow and disaster-agent systems expose executable tools and operational pipelines, a route may draw on heterogeneous assets whose outputs and inputs are not directly compatible. These assets must therefore be represented as executable capabilities with explicit applicability conditions and compatibility requirements. Gap 2: State-Dependent Route Selection. Automated experimentation methods, from classical AutoML search (Akiba et al., 2019; Wang et al., 2021) to recent LLM-driven data-science agents, optimize models, programs, or workflows for a specified objective. However, this optimization alone does not establish which routes remain scientifically and operationally eligible as execution proceeds. In hazard analysis, new artifacts, unavailable inputs, execution failures, or changing downstream requirements can alter the eligible route set. An agent must therefore reassess route eligibility as the scientific and computational state evolves and revise its decisions accordingly. These requirements also call for route-aware evaluation: because several routes may validly satisfy the same task, evaluation must assess both final-artifact quality and whether route selection, revision, or abstention was justified under the observed state.

To meet these requirements, HAZARDWEAVER integrates scientific grounding, state-dependent route selection, and route-aware evaluation within a unified evidence-to-execution architecture. Scientific route grounding is supported by two complementary components. The Hazard Knowledge Compiler (HKC) derives evidence-linked applicability conditions from scientific literature and resolves them against the task context. The Hazard Capability Graph (HCG) represents hazard models,

Figure

Tropical Cyclone Post-fire debris-flow cascade

Earthquake Heatwave Multi-peril impact

Wildfire Drought Coastal compound flooding

Flood Landslide Earthquake-triggered landslide

Figure 1: Global coverage of HWB.

datasets, formulas, and transformations as typed executable capabilities, connecting them only under a registered compatibility relation. Building on these components, the Hazard Weaver Agent (HWA) determines the eligible route set by combining the applicability conditions from HKC with capability reachability in HCG. It selects and executes a route, then reassesses eligibility and revises its decisions as the state evolves. Within this process, the language model manages route decisions and execution flow, while scientific models and solvers produce the numerical, spatial, and probabilistic outputs. To evaluate both the resulting artifacts and the decisions that produce them, the Hazard Weaver Benchmark (HWB) assesses artifact correctness, route validity at commitment time, and recovery-aware abstention. Specifically, HWB contains 141 sealed instances spanning seven single-hazard domains and four multi-hazard interaction classes. Its construction infrastructure includes a global atlas of 3,062 registered geospatial scenarios, with 542 materialized for benchmark generation (Figure 1).

Contributions. Our contributions can be summarized as follows:

• A novel scientific-agent decision problem. We formulate hazard analysis as state-dependent scientific route selection, where route eligibility requires both evidence-based scientific applicability and capability reachability, and is updated throughout execution.

• An evidence-grounded adaptive agent system. We introduce an agent system that compiles evidence into route conditions, connects scientific capabilities through typed compatibility, and updates executable workflows as the analysis state evolves.

• A globally grounded, route-aware benchmark. HWB comprises 141 instances built from scientific datasets and benchmarks, spans seven single-hazard domains and four multi-hazard interaction classes, and jointly evaluates artifact correctness and route validity.

References (80)