Paper deep dive
Verifiable abstention makes AI leak diagnosis accountable in water distribution networks
Tianwei Mu, Yue Wang, Mingzhe Yuan, Manhong Huang, Wenhong Wang, Xuerui Yin, Qing Luo, Min Xiao, Hui Yang, Jun Li, Dan Xue
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 91%
Last extracted: 8/20/2026, 5:13:28 AM
Summary
This paper introduces a verifiable abstention framework for AI-driven leak diagnosis in water distribution networks, addressing the accountability gap where high accuracy does not guarantee trust for autonomous excavation. The system employs an executor-supervisor agent architecture: a physics-grounded executor falsifies hypotheses (leak, demand, sensor, valve) against a digital twin, while an independent supervisor agent, audited by a large language model, checks evidence against a code-verifiable contract. This approach converts a low-precision forced localizer (32%) into a high-precision selective system (96% on acted events) by allowing the system to abstain when evidence is insufficient, thereby preventing costly false excavations.
Entities (9)
Relation Signals (7)
Verifiable Abstention â improves â Decision Precision
confidence 95% · Under field-grade noise, a 32% forced baseline becomes 96% decision precision on acted events.
Executor Agent â uses â Digital Twin
confidence 95% · A physics-grounded executor agent falsifies hypotheses ... against a digital twin
Supervisor Agent â audits â Executor Agent
confidence 90% · an independent supervisor agent ... checks evidence against a code-verifiable contract
Goal Contract â enforcedby â Supervisor Agent
confidence 90% · checks evidence against a code-verifiable contract, then certifies a dispatch
LLM Auditor â supports â Supervisor Agent
confidence 90% · an independent supervisor agent, with a large-language-model (LLM) auditor, checks evidence
Verifiable Abstention â testedon â BattLeDIM L-Town
confidence 90% · On an independently generated benchmark it acts on only 4 of 33 leaks, all correct.
Verifiable Abstention â testedon â City D
confidence 88% · A 194-event register of audited real leak locations ... yields five excavation dispatches
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Utilities lose a substantial share of treated water to leakage, yet rarely trust artificial-intelligence localizers to dispatch crews: guessing everywhere cannot justify excavation. The gap is accountability, not accuracy: no method proves when it should not act. Here we recast leak localization as decision-making under verifiable abstention. A physics-grounded executor agent falsifies hypotheses (leak, demand, sensor, valve) against a digital twin; an independent supervisor agent, with a large-language-model (LLM) auditor, checks evidence against a code-verifiable contract, then certifies a dispatch, requests evidence or abstains. Under field-grade noise, a 32% forced baseline becomes 96% decision precision on acted events. On an independently generated benchmark it acts on only 4 of 33 leaks, all correct. A 194-event register of audited real leak locations with twin-simulated pressures and flows yields five excavation dispatches, three correct, and 44% survey recovery at full district precision. Accountable abstention offers a defensible route to autonomous water-infrastructure operation.
Tags
Links
- Source: https://arxiv.org/abs/2608.18836v1
- Canonical: https://arxiv.org/abs/2608.18836v1
Trouble viewing inline? Open PDF directly â
Full Text
128,913 characters extracted from source content.
Expand or collapse full text
Verifiable abstention makes AI leak diagnosis accountable in water distribution networks Tianwei Mu 1,2,3 , Yue Wang 1 , Mingzhe Yuan 2,4,* , Manhong Huang 5 Wenhong Wang 2 , Xuerui Yin 1 , Qing Luo 3 , Min Xiao 3,* Hui Yang 1 , Jun Li 1 , Dan Xue 6 August 20, 2026 Abstract Utilities lose a substantial share of treated water to leakage, yet rarely trust artificial- intelligence localizers to dispatch crews: guessing everywhere cannot justify excavation. The gap is accountability, not accuracy: no method proves when it should not act. Here we recast leak localization as decision-making under verifiable abstention. A physics-grounded executor agent falsifies hypotheses (leak, demand, sensor, valve) against a digital twin; an independent supervisor agent, with a large-language-model (LLM) auditor, checks evidence against a code- verifiable contract, then certifies a dispatch, requests evidence or abstains. Under field-grade noise, a 32% forced baseline becomes 96% decision precision on acted events. On an indepen- dently generated benchmark it acts on only 4 of 33 leaks, all correct. A 194-event register of audited real leak locations with twin-simulated pressures and flows yields five excavation dis- patches, three correct, and 44% survey recovery at full district precision. Accountable abstention offers a defensible route to autonomous water-infrastructure operation. Introduction Non-revenue water, the treated water that is produced but never billed, is dominated by physical leakage and wastes a large share of urban production and billions of dollars each year [1, 2]. Rapid, reliable leak localization is therefore a central goal of smart water management [3], and data- driven localizers are increasingly capable, from graph neural networks [4] to burst-detecting sequence models [5, 6, 7], transfer learning [8] and physics-informed models [9, 10, 11], consolidated by benchmarks such as BattLeDIM [12]. Yet such systems are seldom trusted with autonomous action on real networks, and accuracy alone does not explain the gap: a wrong excavation costs thousands 1 School of Municipal Engineering and Environment, Shenyang Jianzhu University, Shenyang 110168, China. 2 Guangzhou Institute of Industrial Intelligence, Guangzhou 510000, China. 3 Key Laboratory of Ecological Restoration of Regional Contaminated Environment, Ministry of Education, College of Environment, Shenyang University, Shenyang 110044, China. 4 Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang 110169, China. 5 College of Environmental Science and Engineering, State Environmental Protection Engineering Center for Pollution Treatment and Control in Textile Industry, Donghua University, Shanghai 201620, China. 6 School of Information Science and Engineering, Shenyang University of Technology, Shenyang 110023, China. * Corresponding authors: Mingzhe Yuan, mzyuan@sia.cn; Min Xiao, xyz012263@163.com. First author: Tianwei Mu, 1189233@mail.dhu.edu.cn. 1 arXiv:2608.18836v1 [cs.AI] 19 Aug 2026 of dollars, and a localizer that emits a ranked guess for every event, at 30 to 40% accuracy under field- grade noise, cannot be trusted to dispatch a crew. The inverse problem is ill-posed, with candidate locations vastly outnumbering sensors [12]; real anomalies are not only leaks, since demand surges, sensor drift and valve mis-operation all produce leak-like deviations [13]; and no prevailing method can state when it should not act, and prove that abstention to an operator or regulator. We argue that the deployable contribution is not another increment in localization accuracy but a change of objective, from prediction to accountable decision-making under verifiable absten- tion (Fig. 1). Selective classification adds a reject option [14, 15] and learning-to-defer a calibrated hand-off to a human expert [16], but deep models are often poorly calibrated [17, 18], and confor- mal methods certify a scalar coverage guarantee [19, 20, 21] rather than the auditable justification a regulated dispatch requires. We therefore recast leak localization as selective, evidence-backed decision-making, mirroring clinical differential diagnosis: enumerate the competing causes, order the test that best discriminates them, and withhold treatment until the diagnosis is secure. Large language models add an ingredient the water sector is only beginning to absorb. LLM agents interleave reasoning with tool calls [22, 23], their planning, memory and tool use now systematised [24]; they have run autonomous chemistry experiments [25], discovered mathematical constructions [26] and operated expert tool suites [27]. Agentic coding tools now run in a goal mode that separates doing from judging: one model works toward an explicit objective while an independent evaluator model, seeing only the observable output, decides whether the goal is met (Claude Code, for example [28]); transposing this pattern, execution gated by a separate model on observable evidence, from software tasks to physical dispatch is the perspective our design adopts. Environmental applications are surveyed broadly [29]; in water, domain-adapted models are emerging for utility knowledge work [30] and agentic interfaces already drive hydraulic simulation from natural language [31]. These systems supply orchestration and interpretability, not accountability: an agent that can call a simulator still cannot prove when it should not act. We therefore place language models only where language helps, planning and independent audit, while every number entering a decision comes from physics tools. We realise this principle as an executorâsupervisor agent. A deterministic, physics-grounded executor proposes competing hypotheses and tests each in a hydraulic digital twin, used as a fal- sification instrument rather than a forward predictor; retrieval is demoted to one evidence tool among several. The supervisor never localizes: it audits the executorâs numeric evidence against a code-verifiable goal contract and returns accept (with a signed certificate), reject (with a request for more evidence) or abstain. As a different model family seeing only the numbers, it adopts the judge paradigm [32, 33, 34] while guarding against self-grading collusion. This work makes three contributions. First, it changes the objective of leak diagnosis from prediction to accountability: under verifiable abstention, âdo not actâ becomes a provable, auditable outcome rather than a silent failure. Second, it realises this objective as an executorâsupervisor agent pair: twin-grounded falsification of competing causes, gated by a code-verifiable goal contract and an independent language-model auditor that can tighten but never loosen the gate. Third, it delivers a deployable two-tier field response: on a utilityâs audited 2025 repair register, a provable pressure- information ceiling bounds what excavation dispatch can ever achieve, and a mass-balance survey tier recovers 44% of events at 100% district precision. Validated under one measurement battery applied unchanged across four in-silico networks (EXA7, KY4, the City H municipal model and the City D district model), the third-party BattLeDIM L-Town benchmark and the audited 194-order City D register, the architecture converts a 31.7% forced localizer into 96.1% decision precision on acted events, acts at 100% precision on the four L-Town leaks it accepts, and stamps every action 2 Challenge: localization is not the bottleneck, accountability is Wrong excavation cost Ill-posed inversion Candidate leak locations vastly outnumber sparse sensors Confusable causes Demand surges, sensor drift and valve mis-operation mimic leaks Costly, regulated action A wrong excavation wastes crews; no method proves when NOT to act Existing approaches and the gap each leaves Data-driven localizers Graph, sequence, transfer models Physics-informed networks Selective/conformal prediction Reject options and deferral Distribution-free coverage LLM agents reach water Domain-adapted water models Agents drive hydraulic simulation Executor agent (deterministic) ACT Dispatch with hashed evidence certificate Supervisor agent (never localizes) NRW loss Billions of dollars wastes Independent benchmark (BattLeDIM L-Town) Competing hypotheses: gap: answers every event, uncalibrated gap: a scalar score, no justification gap: orchestrate, never gate action Four in-silico networks Request evidence Active sensing: most discriminative reading Abstain First-class outcome, dossier to a human Audited 194-order field register (City D): excavation + district survey tier G1âG4, G6, G7 + independent LLM auditor Events falsified in a hydraulic digital twin; Bayesian fusion, Occam penalty; numeric evidence package only Tiers of increasing realism, one measurement battery Fig. 1 | The accountability gap in leak localization and the position of this work. Top, the challenge: the inverse problem is ill-posed (candidate locations vastly outnumber sparse sensors), leak-like deviations arise from non-leak causes (demand surges, sensor drift, valve mis-operation), and a wrong excavation is costly, so a localizer that must answer every event cannot be trusted to dispatch a crew. Middle, existing approaches and the gap each leaves: data-driven localizers force an answer on every event; selective and conformal methods abstain on a scalar score without auditable justification; emerging large-language-model agents orchestrate simulation but do not gate action. Bottom, this work: leak diagnosis recast as accountable decision-making under verifiable abstention, in which a deterministic executor agent falsifies competing hypotheses against a digital twin and an independent supervisor agent, combining a code-verifiable goal contract of six hard predicates with a language-model auditor, certifies a dispatch with a hashed evidence certificate, requests the most discriminative additional evidence, or abstains with a dossier for a human. The bottom row names the tiers of increasing realism to which the identical measurement battery is applied: four in-silico networks, the independently generated BattLeDIM L-Town benchmark, and the audited 194-order City D field register with its excavation and district-survey tiers. 3 with a machine-checkable certificate whose numeric evidence an independent LLM was shown to audit in a 32-package corruption stress test. Results The executorâsupervisor architecture The executor (Fig. 2) scores a mutually exhaustive hypothesis space: a leak in one of K topological zones, a zone-wide demand anomaly, a sensor fault, a valve mis-state, or no actionable anomaly. Each hypothesis is scored by whether it reproduces the observed sensor deviations in the twin, and the evidence is fused into a Bayesian posterior with an Occam penalty that stops an over- flexible leak fit from masquerading as a demand anomaly (Methods, Eqs. 1â3). The supervisor then evaluates the goal contract, a conjunction of deterministic predicates on leak existence, region size, margin, alternatives, physical reproduction and safety (Methods, Eq. 4); the language-model auditor may add a rejection but never overturns a failed hard check. Acceptance emits a hashed evidence certificate; rejection requests more evidence; otherwise the system abstains, a first-class outcome never converted into a forced guess. Diagnosis runs on a fixed spatial scaffold computed offline for every network: Leiden zones of the pressure-weighted modularity and the sensor placement inside them (Methods; all five topologies are drawn in Fig. S1). Fig. 3 shows this scaffold for the benchmark and the field network, EXA7âs 15 zones carrying two sensors each and City Dâs 15 districts carrying the 23 detection-coverage- optimized sensors. The zone is the operational unit of this paper: it is what a repair crew searches, and every localization and precision number that follows is scored at this granularity. Every network is measured with one identical battery: the same pipeline and contract predicates (thresholds per tier in Methods) and the same five measurements (forced top-1 zone accuracy, coverage, decision precision on acted events, false dispatches on 50 no-leak controls, and the contract versus a scalar existence threshold at matched coverage; Table 1). The tiers differ in information content; the battery shows the system adapting its coverage to that content while defending its precision wherever it acts. Selective decision quality on the EXA7 benchmark We evaluate on EXA7 (381 junctions, K = 15 zones, 30 pressure sensors; Fig. S1a) with a mixed test set of leaks (5â50 L s â1 ; the severity analysis below extends to 2 L s â1 ), demand anomalies, sensor faults and valve mis-states at sensor noise Ï = 0.05 m (Fig. 4a). Forced to answer on every event, the topology-aware retrieval localizer attains only 31.7 ± 2.0% top-1 zone accuracy (five seeds), the brittle base predictor that motivates abstention. The executor raises zone accuracy to 81.7 ± 5.0% (81.7 ± 2.6% from twin-fit re-ranking alone, before active sensing; Methods), because a leak anywhere in a zone fits that zoneâs response near-exactly. The supervisor converts this into a decision precision of 96.1 ± 3.3% at its operating point (acting on 40.5% of events pooled over seeds), with a false-dispatch rate of 3.9 ± 3.3%; tightening the residual gate reaches 100% precision at 13 ± 15% coverage. A paired McNemar test against the forced localizer, pooled over the five seedsâ severity-sweep leak set (2â50 L s â1 , n = 600), is decisive (Ï 2 = 171, 254 versus 32 discordant events, p < 0.001; Methods), and the structured contract dominates a plain existence-threshold baseline across the whole riskâcoverage curve (Fig. 4a). 4 Fig. 2 | Architecture of the executorâsupervisor agent for accountable leak diagnosis. Left, the offline inputs computed once per network: the WNTR/EPANET digital twin, the Leiden hydraulic zoning with its sensor placement, and the topology-aware retrieval library (Methods). Centre left, the executor (orange) enumerates a mutually exhaustive set of competing hypotheses (leak, demand anomaly, sensor fault, valve mis-state, or none), realises each in the twin and falsifies those that cannot reproduce the observation through their residual likelihood (Eq. 2), then fuses the survivors into a Bayesian posterior with an Occam penalty (Eq. 3); retrieval is one evidence source among several, not the answer. Centre right, the supervisor (blue) never localizes: it audits the numeric evidence package against the goal contract, whose six evaluated predicates carry a tick in the wheel (existence, region, margin, alternatives, residual, safety; Eq. 4). G5 is drawn without a tick because it is a field reserved for deployment and is not evaluated here. Language enters at exactly two points, in models of different families: a planner in the executor, used in the optional dual-model configuration, which only chooses which non-leak hypotheses receive extra scrutiny and so can never cause a leak to be missed; and an auditor in the supervisor, which sees the numeric summary alone and may add a rejection but never overturn a failed hard check. Every number entering a decision comes from the physics tools. Right, the three outcomes: ACT with a SHA-256-signed certificate, ABSTAIN with a dossier for a human, and, for a resolvable failure, a request for evidence that triggers active sensing and re-evaluation. Panel values illustrate the format of each step; all reported metrics come from the deterministic pipeline. The dominance in Fig. 4a, drawn for the representative seed, has a mechanism, not just a margin. On that seed the scalar existence score saturates: even its strictest swept threshold still admits 45.5% of events, because clear-cut and mis-localized events alike push the summed leak mass toward its ceiling, and its best precision is 96% (annotated in Fig. 4a). The contract separates what the score cannot: the margin and alternative-exclusion predicates veto events whose leading leak hypothesis is closely chased by a rival explanation, and the residual predicate vetoes fits that do not physically reproduce the observation, which is why that seedâs full-contract frontier holds 100% precision out to 39% coverage (13 ± 15% across the five seeds). The operating point itself is not tuned to the test set: it is fixed a priori as the maximum-coverage end of the swept residual gate (Methods). In operational terms, per 100 alarms the forced localizer digs 100 times and is wrong 68 times, whereas 5 a EXA7 (381 junctions), K = 15, 30 sensors 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 b City D (541 junctions), K = 15, 23 sensors 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 PipeJunctionPressure sensorReservoir / Tank Fig. 3 | Hydraulic zoning and sensor placement of the benchmark and field networks. Leiden partitions of the pressure-weighted modularity (Methods), drawn as space-filling territories (Voronoi cells of the node assignments, merged per zone and clipped to the frame; territory colours encode zone identity only). a, EXA7: K = 15 zones with the 30 greedy-placed sensors (red). b, City D: K = 15 districts with the 23 sensors of the detection-coverage-optimized placement. Grey lines are pipes, small dots junctions, dark squares reservoirs and tanks; numbers label zones. the contract digs about 40 times and is wrong once or twice; on the pooled leak events where the two disagree, the executor is right in 254 of 286 cases (89%; the McNemar discordant pairs above). The same selective behaviour under the identical battery transfers to KY4, City H and City D, compared in Table 1 and analysed in âRobustness, generalization and auditable autonomyâ. Differential diagnosis of confounders Because the executor tests non-leak hypotheses, it performs genuine differential diagnosis rather than assuming a leak (Fig. 4b). Pooled over five seeds (n = 600 leak and 250 confounder events; Supplementary Table S2), demand anomalies are correctly typed in 99 of 100 cases, sensor faults are never mis-classified as leaks, and 547 of 600 leaks are typed as leaks. Typing is weakest for the discrete confounders (33/75 valve, 39/75 sensor), but the mis-typings fall almost entirely into other non-leak classes that never dispatch a crew. The class asymmetries have physical mechanisms. A sensor fault is never read as a leak because the two hypotheses live in different spaces: the fault form explains a few anomalous channels whose hydraulic neighbours read normal, whereas a leak must depress many sensors coherently, and the twin cannot reproduce the one from the other (Methods). A valve closure is the hardest confounder because it genuinely re-routes flow and depresses downstream pressures, yet its errors still land in other non-leak classes. Across all 250 confounders only ten ended with a leak as the top hypothesis, one demand anomaly over-fitted by the leak family and nine valve closures, and the goal contract vetoed nine of the ten. The operational quantity that matters, a confounder dispatched as a leak, is therefore 1 in 250 (0.4%) 6 Table 1 | The identical measurement battery applied to all five networks. Forced top-1 is the twin-fit zone accuracy when forced to answer every event, except in the City D register column, where it is the retrieval localizerâs forced top district (always defined; the twin-fit forced variant is 14% and is recorded in the released results files), except in the field-register column, where it is the retrieval localizerâs top district (the twin-fit forced variant is 14.4%); coverage and decision precision are at each legâs operating point; no-leak controls are 50 pure-noise scenarios per network under the same acceptance gate; the last row compares the goal contract with a scalar existence threshold admitting the same number of events. Sensor noise isÏ = 0.05 m for the four in-silico columns, the competitionâs own noise for L-Town andÏ = 0.15 m for the field register; both City D columns use the detection-coverage-optimized 23-sensor placement, and the field-register column diagnoses audited real leak locations with twin-simulated pressures (Methods). In-silico columns are pooled over n = 5 seeds (per-seed spread in Fig. 4 and Fig. S2 for EXA7 and in Supplementary Table S8 for KY4, City H and City D; threshold sensitivity in Supplementary Table S10); real-tier columns are exact counts with 95% ClopperâPearson CIs. The four in-silico columns share one scenario generator; City D additionally carries its field register (rightmost column). The n/a entry is a data fact, not a protocol omission: L-Town offers no labelled no-leak window from which real controls could be drawn, as at least one of its 33 labelled leaks is active on every one of the benchmarkâs 723 days (up to 16 simultaneously), and in a network with continuously growing background leakage a dispatch cannot be scored as false. The field-register column reports both action tiers, excavation and the flow-balance survey (Methods). Battery item EXA7KY4City HCity DL-TownCity D register Data tierin-silico benchmark in-silico transfer in-silico transfer in-silico transfer third-party benchmark audited field register Nodes/zones/ sensors 381/15/30959/25/40920/25/38541/15/23782/25/33541/15/23 Events550 (5 seeds)550 (5 seeds)550 (5 seeds)550 (5 seeds)33 leaks194 orders Forced top-1 81.7 ± 5.0%88.7 ± 3.0%66.7 ± 5.3%44.7 ± 4.3%15%12% Coverage40.5%34.4%25.6%20.0%12%2.6% excavation; 44% survey Precision on acted 96.0%96.3%91.5%81.8%100% (4/4; CI 40â100%) 60% excavation (3/5); 100% district (85/85) No-leak controls 0/500/500/502/50 (audit 0/ 50) n/a1/50 (audit 0/ 50) Contract vs scalar 96.0% vs 93.3% 96.3% vs 95.2% 91.5% vs 84.4% 81.8% vs 73.6% 100% vs 75%60% vs 60% with the differential head and rises to 50 in 250 (20.0%) when the head is removed. The 53 leaks that escape the leak type are not scattered at random either: 41 are read as zone-wide demand anomalies, hydraulically the nearest explanation (both are unaccounted withdrawals concentrated in one zone), nine as valve mis-states, three as no anomaly, and none as a sensor fault (Supplementary Table S2). Because a non-leak top hypothesis never dispatches a crew, the price of these confusions is paid in coverage, not in wrong excavations, which is the direction a dispatch system should fail in. Trained baselines, calibration, and component ablations To verify that the retrieval anchor is not a strawman, we trained genuine leak localizers on the scenario library and evaluated them on the identical test leaks (Fig. 4c and Supplementary Table S3). The strongest, a cosine k-nearest-neighbour classifier, reaches 72.0 ± 3.0% forced top-1, with the others below (Fig. 4c); the executorâs twin-fit attains 81.7 ± 5.0% and, uniquely, converts it into a selective decision. The ordering is itself diagnostic. The nearest-neighbour classifier is the strongest learner because the pre-simulated library densely covers each zoneâs signature shape; the graph network sits near the 6.7% chance rate at this training scale, a caution for data-hungry localizers in a domain where utilities cannot label thousands of real leaks. The executorâs margin 7 02040 Coverage (%) 30 40 50 60 70 80 90 100 Decision precision (%) acts on 39%, all correct a single score: 96% at best, never all-correct a Selective quality full contract existence only forced retrieval (32%) leakdemand anomaly sensor fault valve misstate none Predicted top hypothesis leak demand anomaly sensor fault valve misstate none True class 573 119 456 13245 b Differential diagnosis 020406080100 Forced Top-1 (%) Retrieval GCN MLP RF kNN ExecâSuper c Trained baselines 2510203550 Leak discharge (L s â1 ) 0 20 40 60 80 100 Leak-partition accuracy (%) noise-floor regime d Accuracy vs severity 0.020.050.10 Sensor noise Ï (m) 0 20 40 60 80 100 Percent (%) e Robustness to noise leak-partition accuracy coverage @100% precision 0.0 0.2 0.4 0.6 0.8 1.0 Row rate Fig. 4 | Selective decision quality, differential diagnosis and forced baselines on the EXA7 benchmark. a, Decision precision versus coverage atÏ = 0.05 m for a representative seed (n = 110 events) as the acceptance threshold is swept, for a representative seed (n = 110 events): the multi-predicate goal contract (blue) dominates a single existence-threshold baseline (grey); the red dashed line is the mean forced-retrieval top-1 accuracy over the five seeds at coverage = 1. b, Confusion matrix of the executorâs top hypothesis (columns) against the true event class (rows) for a representative seed (n = 110 events); sensor faults are never mis-typed as leaks and demand anomalies are typed correctly in 19 of 20 cases; the corresponding five-seed pooled matrix, computed on the larger severity-sweep event set (600 leak and 250 confounder events), is in Supplementary Table S2. c, Forced top-1 zone accuracy of four trained localizers and the retrieval baseline (red) versus the executor twin-fit (blue), all on identical held-out test leaks (pooled McNemar, twin-fit versus retrieval on the 2â50 L s â1 leak set:Ï 2 = 171, p < 0.001). d, Leak-partition accuracy versus injected discharge, rising monotonically from the noise-floor regime at 2 L s â1 to 97% at 50 L s â1 . e, Leak-partition accuracy and the coverage attainable at 100% decision precision at three noise levels (Ï = 0.02, 0.05 and 0.10 m). In câe, bars and points show the mean over n = 5 independent random seeds, overlaid circles are the individual seeds and error bars the s.d.; numerical values for c and d are in Supplementary Tables S3 and S1, and those for e are given in âRobustness, generalization and auditable autonomyâ. of close to ten points over the best trained model comes from a different mechanism than pattern coverage: every candidate must reproduce the observation in the twin, so a noise-distorted signature that fools similarity is still filtered by its residual. Accuracy is strongly severity-dependent, rising monotonically from 27% at 2 L s â1 to 97% at 50 L s â1 (Fig. 4d and Supplementary Table S1), confirming that abstained events are information-limited rather than arbitrary failures; the same gradient re-appears on the City D network (Fig. 5), where it will explain the field register. The residual-derived confidence is reasonably calibrated (expected calibration error 0.048; four held-out test seeds, n = 440) and a split-conformal predictor over it controls risk as designed (Sup- plementary Table S5). Among settings that act on at least 30% of events, the goal contract reaches 97.9% decision precision (140/143 acted, 32.5% coverage; exact 95% CI 94.0â99.6%), about 1.5 8 points below a logistic-calibrated threshold (99.4%, 160/161 acted at 36.6% coverage) and clearly above an existence-only threshold, whose strictest setting still acts on 202 events (45.9% coverage) at 92.6% precision (n = 440). The gap to the calibrator is small and informative: the contract approaches a calibrator while needing no labels, and returns per-predicate reasons rather than a scalar. The practical reading concerns labels, not decimals. A logistic threshold must be fitted on held-out correctness labels, which no utility possesses for its real leaks, and the conformal guar- antee controls average risk rather than justifying any single dispatch; the contract needs neither ingredient, and every rejection names the predicate that failed. Component ablations confirm the predicates do real work: loosening the contract to existence-and-residual drops precision from 93.6% to 81.2% on the same pooled ablation set while inflating the acted set from 391 to 548 events, and disabling the Occam penalty multiplies demand-to-leak mis-typing nine-fold (9/100 versus 1/100), which the margin and alternative-exclusion predicates then veto (Supplementary Table S4). Read together, the checks carry measurable and complementary weight: the existence threshold alone reaches 92.6% at matched coverage, margin and alternative exclusion contribute a further five points, and the Occam penalty protects the differential head upstream of the gate, so no single predicate is decorative. A fully dual-language-model configuration (gpt-oss-120b planner, deepseek-v4-pro supervisor) reproduces the deterministic accept/abstain decisions exactly (100% agreement), con- tributing interpretability without altering the physics-grounded decision; because leak hypotheses are always tested exhaustively, the plannerâs wording can influence only which confounders receive extra scrutiny, never whether a leak is missed (Methods). Independent-benchmark validation on BattLeDIM L-Town To test transfer to data we did not generate we evaluated the public BattLeDIM L-Town dataset, a 782-node network with 33 pressure sensors (Fig. S1b), SCADA-format pressure series produced by the benchmarkâs L-Town data-generating model, and 33 ground-truth pipe leaks over two years. Diagnosis is performed against the nominal network model, whose parameters differ from the data- generating model by up to 10%, a genuine sim-to-real test; each leakâs signature is a diurnal-matched onset step (Methods). Raw localization is hard in this regime: forced top-1 zone accuracy is only 15% (5 of 33), reflecting model mis-calibration and one gauge per âŒ24 nodes. The accountable system responds exactly as intended, abstaining on 88% of events and acting on the 4 leaks it can support at 100% decision precision with zero false dispatches (4/4; exact 95% CI 40â100%; Supplementary Table S6). Every acted event is a strong abrupt leak (onset |âp| 0.40â1.15 m) in the correct zone; the weak and incipient leaks near the noise floor are correctly deferred. The modest acted count is the honest reading: abstention transfers to an independently generated benchmark; coverage under severe model error does not. Sweeping the acceptance threshold traces the full benchmark riskâcoverage frontier (Fig. 5a; Sup- plementary Table S7). At matched four-event coverage the contract reaches 100% precision versus 75% for a scalar existence threshold (4/4 versus 3/4; Fig. 5b). It vetoes one high-confidence but poorly separated event (existence 0.98, margin 0.02) that the scalar rule dispatches to the wrong zone, and admits a cleanly separated lower-confidence event (existence 0.52) that is correct. Unlike the calibrated-threshold tie on EXA7, on third-party data without correctness labels the margin and alternative-exclusion predicates strictly improve precision at matched coverage. The honest cost is that one correctly localized event is abstained on, because its margin (0.04) falls below the floor. For context, the first-Pareto winners of the 18-team BattLeDIM competition reached true-positive rates of 56.5% and 65.2% on the 2019 leaks [12]; the comparison is not like-for-like, and the accountable 9 layer is complementary. A field register on the utilityâs own network: City D We next confront the system with a genuine field case. The operating utility of City D, a district network in China, provided its own EPANET model (541 junctions, 79 throttle-control valves, vendored unmodified; Fig. S1d) together with its 2025 repair register of 256 leak work orders. Each order was geocoded and merged to a model junction under an audited mapping, cross-checked across three coordinate reference systems, with a strict inclusion filter admitting 194 orders at 46 junctions (Methods). Node assignments therefore reflect audited real locations. Sensor placement, by contrast, is a simulation assumption, optimized from the pre-simulated leak library only (never from register information; Methods). No SCADA exists for these events, so each signature is twin- simulated at its audited node with field-grade noise (Ï = 0.15 m); the modelâs 2016 vintage and remaining mapping limits are stated in Methods. The field severity distribution is unforgiving. The 194 orders have a median loss rate of 0.106 L s â1 (maximum 3.9), producing a median clean signature of 0.002 m at the 23 sensors of this stiff, well- pressurized network, two orders of magnitude below the 0.15 m noise floor; not one event reaches the 0.45 m actionability floor (Fig. 5c and Supplementary Table S11). Forced to answer, the retrieval localizer places the correct district first in 23 of 194 events (12%, against a 6.7% chance rate), and in 41 of 194 when a prediction is scored correct for landing in any adjacent district (21%, against a âŒ24% chance rate): forced guessing barely beats chance, and loses to it under the tolerance. The accountable system instead dispatches excavation on five events (2.6% coverage), three of them correctly (60% acted precision; exact 95% CI 15â95%), four of the five at loss rates of 0.75 L s â1 or more; on 50 no-leak controls the transfer preset raised one knife-edge false dispatch (2%; existence 0.51 against the 0.50 threshold on a 3Ï excursion). The stricter audit preset (Methods) dismisses that control (0/50) and abstains on all 194 register events: where the evidence cannot carry an excavation, the contract refuses one. A forced localizer would have dispatched crews 194 times at 12% precision; the contract dispatches five times at 60%. A controlled severity sweep confirms this reflects the leak sizes and hydraulics rather than a pipeline failure (Fig. 5d and Supplementary Table S12). Injected leaks clear the noise floor only near 10â 20 L s â1 and the actionability floor near 35 L s â1 , where coverage reaches 33% at 78â90% acted precision, while the entire register lies below 4 L s â1 . Under the standard in-silico protocol the same network supports 81.8% pooled precision at 20.0% coverage (Table 1; the per-seed mean is 83.1 ± 11.0%, Supplementary Table S8), so the pipeline functions here; it is the registerâs leak sizes that remove the signal. The registerâs small-leak majority therefore needs a complementary modality, which the contract itself supplies next. Pressure evidence has a hard ceiling here: even with a sensor at every one of the 541 junctions, only 5 of 194 events would clear the 1Ï noise level and one the 0.45 m floor, under both the daily-mean and any-time conventions (median best signature 0.0023 m and 0.0030 m; Supplementary Table S13). The contract therefore adds a second, coarser action tier on a different physical quantity. By mass balance, a leak raises its districtâs net inflow by the leak rate itself, an identity the twin confirms on every event (median ratio 1.000; noiseless argmax correct in 194 of 194; Methods). With district inflow metering of nightly uncertainty 0.10 L s â1 averaged over each orderâs real work- order window (median five nights), a survey dispatch to the district with the largest observed rise, gated at a 15-district-corrected 3.4Ï, recovers 85 of 194 register events (44% coverage) at 100% district precision, with zero false dispatches on 50 no-leak control campaigns (sensitivity 10 020406080100 Coverage (% of leaks acted on) 0 20 40 60 80 100 Decision precision (%) act-on-all floor (15%) contract operating point (12% coverage, 100% precision) a Benchmark riskâcoverage (L-Town) 0.00.20.40.60.81.0 Leak-existence mass (scalar score) 0.0 0.2 0.4 0.6 0.8 1.0 Top-1 margin Î scalar top-4 cut (existence â„ 0.98) contract margin floor ÎŽ = 0.1 both rules dispatch: 3 of 3 correct scalar's extra pick: wrong zone (existence 0.98, margin 0.02); contract vetoes contract's extra pick: correct (existence 0.52, margin 0.15) contract 4/4 = 100% scalar top-4 3/4 = 75% b Why the contract wins at matched coverage 10 â3 10 â2 10 â1 10 0 Real leak rate (L s â1 , register-derived) 10 â5 10 â4 10 â3 10 â2 10 â1 Clean max|Îp| at sensors (m) actionable floor (~3Ï = 0.45 m) 1Ï sensor noise (0.15 m) c Field leaks vs the floor (City D) abstained acted 0 10 20 30 40 50 Real register leaks (count) 10 â3 10 â2 10 â1 10 0 10 1 Leak rate (L s â1 ) 0 20 40 60 80 100 Localization (%) register median 0.106 L s â1 d Large leaks localize; real ones are smaller coverage (acted) forced top-1 zone acc Fig. 5 | The two external tiers: the BattLeDIM L-Town benchmark and the City D field register. a, Riskâcoverage on L-Town (n = 33 ground-truth leaks, competition SCADA diagnosed against the nominal model): the existence-threshold frontier runs from 100% precision at 9% coverage down to the 15% act-on-all floor (red dashed); the goal-contract operating point (star; 12% coverage, 100% precision) lies above the frontier at matched coverage. b, The mechanism at matched four-event coverage, shown in the existence-margin plane (all 33 leaks, grey): the scalar rule ranks by leak-existence mass alone (vertical cut) and its fourth pick, a high-existence event with margin 0.02, goes to the wrong zone (red cross); the contractâs margin floor (ÎŽ = 0.10, dashed) vetoes that event and admits a cleanly separated lower-existence event instead (existence 0.52, margin 0.15), reaching 4/4 (100%) versus 3/4 (75%). c, Each of n = 194 audited 2025 City D work orders, plotted as register-derived leak rate against its clean peak sensor deviation (logâlog): every event lies below the â 3Ï actionability floor (0.45 m, red dashed; maximum 0.30 m) and all but three below the 1Ï noise level (0.15 m, amber dotted); the transfer-preset contract dispatches five events (blue; three correctly) and abstains on the rest (grey), while the stricter audit preset abstains on all 194; 50 no-leak controls yield one false dispatch under the transfer preset and none under the audit preset (Methods). d, Controlled severity sweep on the same network (single leaks at 120 seeded nodes, 2â50 L s â1 ): coverage (circles) and forced top-1 accuracy (squares) versus leak rate, with the registerâs severity distribution overlaid (grey histogram, right axis; median, red dashed); the median signature clears the noise floor only near 10â20 L s â1 , far to the right of the entire register. City D node assignments are audited real locations; pressures are twin-simulated because no SCADA exists for these events (Methods). Per-leak and per-band values are in Supplementary Tables S6, S7, S11 and S12. 11 over meter assumptions spans 29â56% coverage at 98â100% precision; Supplementary Table S13). Excavation-tier coverage stays at 2.6%; the survey tier sends an acoustic crew to the right district, the modality this register demands. Robustness, generalization and auditable autonomy The system degrades gracefully as noise rises (Fig. 4e): leak-partition accuracy falls from 94.3 ± 3.0% (Ï = 0.02 m) through 81.7 ± 5.0% (0.05 m) to 70.7 ± 3.2% (0.10 m) while decision precision stays at 98.1± 1.9%, 96.1± 3.3% and 91.3± 3.4%; the headline metrics are stable across seeds (Fig. S2). The mechanism of this graceful degradation is the one the contract is built for: as noise more than doubles and doubles again, the gate pays almost entirely in coverage, whose 100%-precision attainment falls from 29.3% through 12.9% to 6.9% (Fig. 4e), while acted precision moves by a few points. Noise does not push the system into wrong digs; it pushes it back toward abstention. Nor is the gate delicately tuned: across 28 one-at-a-time threshold settings, pooled precision stays within 89.9â99.1% (Supplementary Table S10), and the lower end comes from over-tightening the region bound (R_max = 25 nodes), which strangles the acted set to 8% coverage: even a mis-set gate fails toward fewer actions, and every setting stays far above the 31.7% forced base. The behaviour also transfers across three further networks under the identical protocol. On KY4, a public Kentucky- database network [35] with 2.5 times EXA7âs size and half its sensor density (Fig. S1e), the twin-fit reaches 88.7± 3.0% zone accuracy against 81.3± 4.9% for retrieval, and the supervisor acts on 34.4 ± 1.7% of events at 96.4 ± 2.9% precision (Supplementary Table S8); tightened to full precision, KY4 retains 14.2 ± 16.7% coverage, the wide spread reflecting two seeds on which no residual gate reaches 100%. The City H (Fig. S1c) and City D models behave consistently under the same protocol (Table 1 and Supplementary Table S8): precision thins with the networkâs information content, yet on every network the gate acts far above its forced base rate. When the supervisor rejects an event for an unresolved zone ambiguity, it requests the most dis- criminative additional measurements (three hidden nodes per round) and re-ranks (Methods). On the 5â50 L s â1 headline leak set the mean zone accuracy is unchanged (81.67% before and after; per-seed changes between â5.0 and +3.3 points), and the benefit appears on the extended 2â50 L s â1 ablation set that includes the weakest leaks (70.5% to 74.5%), where a random-reveal con- trol (71.3%) isolates the discriminability criterion (Supplementary Table S4); active sensing is the designed recourse for the low-coverage regime, not a universal gain. Finally, accountability is tested rather than asserted. An independent large-language-model supervisor (deepseek-v4-pro, a different family from any executor component) audits each deci- sionâs numeric summary alone. In a corruption stress test it caught 16/16 deliberately corrupted evidence packages (exact 95% CI 79â100%), raised no false alarm on 16 genuine ones (0/16; CI 0â21%), with the catch uniform across all three corruption classes (unsupported assertion, fabri- cated exclusion, inflated evidence; Methods), and was perfectly stable across eight temperature-zero repeats within one audit session (Methods and Supplementary Table S9). Because each of those three corruption classes trips one of the five rules written into the auditorâs prompt, we also asked whether the model is more than a rule-checker: on four further corruption classes that pass every enumerated rule field by field yet are jointly impossible (a margin exceeding the leak-existence mass, an alternative outranking the top hypothesis, posteriors summing above one, an empty candidate region), the prompt as written catches essentially none (0 to 2 of 64, and those by the parse-failure default), exactly like a literal five-rule checker; one added clause inviting any other internal incon- sistency, with nothing enumerated, lets the auditor reject 49 of the 64 by explicit judgement (all 48 of the arithmetic classes, one of the sixteen empty-region packages) with no judged false alarm on 12 the 16 genuine packages, and the planner-family model 22 of 64 with none (Supplementary Table S15). The language model thus supplies a generalizing consistency check that a fixed rule list does not, while the pragmatic empty-region class still largely passes, which is why it may only tighten the hard predicates and never replace them. The auditing layer is non-collusive by construction, the prerequisite for delegating action on regulated infrastructure. Discussion Our central claim is deliberately not âa more accurate localizerâ. We take as a premise that a simulation-grounded localizer is weak under real noise, and show that the deployable question is when to act and how to prove it. The executorâsupervisor agent answers it by uniting four ingredients that are individually known but, in combination, new to this domain: a physics twin used as a falsification instrument, explicit differential diagnosis of non-leak confounders, a code-verifiable goal contract with enforced abstention, and an independent auditor that cannot be talked into agreement. What this establishes depends on whether labelled correctness data exist. On EXA7, where labels can calibrate a confidence threshold, the contract trails that calibrated threshold by about 1.5 points at matched coverage (97.9% versus 99.4%); it is not superior there. On L-Town, where no labels exist (the realistic utility condition), the contract strictly improved decision precision over a scalar threshold at matched coverage (100% versus 75%) by vetoing a high-confidence but poorly separated event. On the audited City D field register it excavated only where the evidence sufficed (five orders, three correct) and recovered 44% of events through its flow-balance survey tier, where a forced localizerâs 194 dispatches would have been right 12% of the time. This positions accountable leak diagnosis within selective prediction and learning-to-defer [14, 16] while supplying the auditable justification that scalar abstention rules lack; the closest agentic system for water automates simulation but does not gate action [31]. The contract is training-free, returns per- predicate reasons and a differential cause, and carries hard safety predicates that a learned threshold does not. Three failure modes are instructive: an over-flexible leak hypothesis mimicked demand anomalies until the Occam penalty stopped it; a hypothesis-keying bug silently inverted the posterior, caught only because every number traces to a tool output; and, found last, an active-sensing round that rewrote the margin field of the evidence package without redistributing the hypothesesâ posteriors, so that packages were no longer self-consistent and predicate G3 no longer measured what Eq. (4) says it measures. The open-prompt auditor of Supplementary Table S15 rejected four genuine packages for exactly this arithmetic inconsistency and was right; on the corrected packages the same auditor raises no judged false alarm. We fixed the executor and regenerated every in-silico number in this paper; the EXA7 operating point moved from 97.6% precision at 37.5% coverage to the 96.1% at 40.5% reported here, and we report the change rather than the more flattering earlier value. The regeneration also exposed a KY4 leak-response library that predated a leak-injection fix and had scaled its responses by that networkâs diurnal demand pattern; it was rebuilt, and every KY4 number here comes from the rebuilt library. Auditability must be enforced throughout the architecture, not bolted on, which is what safeguards on human oversight of safety-critical AI demand [36]. The architecture is domain-agnostic over networked physical-fault diagnosis wherever an offline- simulatable twin, spatially structured signatures, confusable confounders and costly actuation co- incide, as in power-system faults [37], gas pipelines [38], contamination-source identification [39], structural-health monitoring [40] and data-scarce water-quality prediction [41]; we demonstrate it 13 on water networks and offer the generalization as a hypothesis. Several boundaries remain. The confounder classes are simulated from literature priors. No leg of this study uses measured utility telemetry. The strongest external test is L-Town, whose SCADA the competition organizers generated with an independent, deliberately perturbed copy of the network model, and where the layer acts at 100% precision but on only four events; the City D register contributes real field events with audited locations, but both its pressures and the district inflows underpinning the survey tier are twin-simulated because no SCADA exists for these events; the modelâs demands are updated to 2025 by a documented city-wide ratio, while its topology and equipment remain of 2016 vintage. We did not run a published state-of-the-art localizer head- to-head: public implementations of BattLeDIM entrants exist, but adapting one from its native detection-and-localization protocol to this selective dispatch battery was beyond the present scope, so the trained localizers of Fig. 4c serve as the forced comparison; conformal exchangeability can break under sim-to-real shift; active sensingâs benefit at this sensor density is small; the language- model executor contributes interpretability rather than accuracy; and the language-model auditor generalizes beyond its enumerated rules only when invited to and only partly (Supplementary Table S15), so it complements the hard predicates rather than substituting for them. A deployment with live SCADA, where the certificate trail meets a real control room, is the decisive next step. Methods Problem formulation: from localization to accountable differential diagnosis We represent a water distribution network as a graph G = (V,E ) with N =|V| junction nodes and M =|E| pipe links. Under steady-state operation the hydraulic state obeys conservation of mass at every node and the HazenâWilliams head-loss relationship along every pipe (Supplementary Eqs. S1 and S2). Any anomaly, whether a leak, a demand surge, a sensor fault or a mis-operated valve, induces a sensor-space pressure deviation relative to the no-anomaly baseline, âp obs = âp (h) S +Δ,ΔâŒN (0,Ï 2 I),(1) observed only at a sparse sensor set S â V with |S| = m âȘ N. We do not invert Eq. (1) for a leak location, for three concrete reasons: the inversion is ill-posed, with candidate locations vastly outnumbering the m sensors; the anomaly class is itself unknown, because demand surges, sensor faults and valve mis-states produce leak-like deviations; and the implied action is a costly excavation that a forced guess of 30 to 40% accuracy cannot justify. We therefore treat the anomaly type as unknown, and replace point prediction with an auditable, safety-checked decision that may also abstain. The unit of evaluation is therefore the action, not the prediction. The remaining methods construct an executor that performs the diagnosis and an independent supervisor that gates the action. Hydraulic zoning and sensor placement Two upstream constructions, reused unchanged from the benchmark configuration, reduce the ill-posed inversion of Eq. (1) to a tractable problem. First, the nodes are partitioned into K âȘ N hydraulically coherent zones C 1 ,...,C K by maximising a pressure-weighted modularity in the resolution-parameterised form of Reichardt and Bornholdt [42], Q(Îł) = 1 2W P i,j w ij â 14 Îł s i s j /2W ÎŽ(Ï(i),Ï(j)), which reduces to standard modularity at Îł = 1. The edge weight w ij = T â1 P t (p i (t) + p j (t))/2 averages the two endpointsâ nodal pressure over the T time steps of one baseline hydraulic run, and is defined only on the networkâs own links (i,j)âE, pipes together with pumps and valves; s i = P j w ij is the node strength and W = 1 2 P i s i the total weight. Re- stricting weights to existing links ensures that only hydraulically coupled nodes share a zone: two junctions with similar pressures but no connecting link receive no edge and are never merged. The weights are then rescaled linearly to [0, 1] with a floor of 10 â3 , so that networks whose pressures differ by an order of magnitude are partitioned on the same numerical footing. At each resolution the objective is optimised by the Leiden algorithm [43], which guarantees connected communities. Since Îł controls granularity rather than the zone count directly, we sweep 300 values over [0.001, 5], collect the distinct partitions obtained, and retain the one whose zone count is closest to the target, K = 15 for EXA7 and City D and K = 25 for the three larger networks; the retained resolutions are Îł = 0.88, 0.60, 0.77, 1.17 and 1.41 for EXA7, City D, KY4, City H and L-Town. A fallback that repeatedly merges the most strongly connected pair of communities is available for target counts the sweep does not reach, and was not required for any network reported here. Localizing to a zone, rather than to an exact node, matches both the granularity at which a repair crew operates and the information recoverable from sparse, noisy sensors. Second, the m sensors are placed by a partition-aware greedy rule [44, 45] that maximises the minimum within-zone sensitivity, S â k = arg max S k min vâC k max sâS k âp s /âd v , so that every zone carries a distinguishable pressure signature and none is unobservable. For EXA7 these constructions yield K = 15 zones and m = 30 sensors (two per zone), computed once offline and held fixed throughout diagnosis; the resulting zone maps of the benchmark and field networks are shown in Fig. 3, and those of L-Town, City H and KY4 in Fig. S3. Competing hypotheses and digital-twin falsification Given the zones and sensors of the preceding subsection, diagnosis is posed over a structured, mu- tually exhaustive hypothesis spaceH spanning one dominant anomaly per event: a leak somewhere in any zone C k , a zone-wide demand anomaly in any zone, a fault on any sensor channel, a mis-state of any monitored asset, or the null hypothesis h 0 that no actionable anomaly exists (Supplementary Eq. S3 and Extended Data Fig. 1). Crucially, the space contains explicit non-leak explanations, so the diagnosis can conclude âthis is not a leakâ rather than being forced to localize one. Promoting the existence question to a first-class hypothesis is what makes abstention principled rather than a confidence threshold. Each hypothesis is scored not by similarity to stored exemplars but by whether it can reproduce the observation when realised in a calibrated hydraulic digital twin. For a hypothesis h, the twin (a WNTR/EPANET solver of Supplementary Eqs. S1 and S2) injects the corresponding perturbation and returns a predicted sensor responseÎŒ h . A leak is realised as a constant added demand at a candidate node, a demand anomaly as a zone-wide multiplier, and a valve mis-state as a pipe closure, each time-averaged over the simulation horizon. The residual and its Gaussian log-likelihood under the field-noise model of Eq. (1) are r h = âp obs âÎŒ h ,logL(h) =â 1 2Ï 2 â„r h â„ 2 2 â m log Ï â 2Ï .(2) A hypothesis that cannot reproduce the observation accumulates a large residual and its likelihood collapses; this is the falsification mechanism that distinguishes the method from retrieval. We summarise residual quality by the per-degree-of-freedom Mahalanobis distance Ï h =â„r h â„ 2 /(Ï â m), 15 for which Ï h â 1 indicates a hypothesis consistent with the noise floor and Ï h â« 3 a physically incompatible one. The null hypothesis predictsÎŒ h 0 = 0, so it is favoured only when the observation is itself within noise, the quantitative basis for âno actionable anomalyâ. A sensor-fault hypothesis h sen (s) is handled in measurement space: it predicts the observed value on the faulty channels and zero hydraulic deviation elsewhere. Its likelihood is therefore high only when a few channels are anomalous while their hydraulic neighbours read near zero. This is the signature that separates an instrument failure from a leak, which instead depresses many sensors at once. For the leak class, a single zone candidate is insufficient because the true leak may sit at any junction in the zone. We therefore fit each leak hypothesis by the best nodeârate pair within the zone, minimising the residual over all junctions v â C k and the discharge grid Q = 2, 5, 10, 20, 35, 50 L s â1 (Supplementary Eq. S4). Because the true leak node is then a candidate, the correct zone fits its own response near-exactly, which sharply reduces cross-zone confusion relative to a coarse retrieval ranking. All twin evaluations are memoized, and a per-zone response library is built once and reused across runs, so this search over all zones is tractable. Bayesian fusion and the executor agent Hypotheses are combined into a posterior in log-space, accumulating the prior and the per-hypothesis likelihood while correcting for the differing flexibility of the hypothesis families, logP (h| âp obs ) = logP 0 (h) + logL(h)â 1 2 k h logm â logZ.(3) The prior P 0 (h) distributes a base rate per family (leak 0.50, demand 0.20, sensor 0.15, valve 0.10, null 0.05) uniformly within the family. The term 1 2 k h logm is a Bayesian-information-criterion (Occam) penalty in which k h counts the fitted free parameters of a hypothesis: two for a leak (node and rate), one for a demand anomaly (the multiplier), zero for a discrete valve or null hypothesis, and the number of explained channels for a sensor fault. This penalty is essential: without it, the leak family, which searches over many nodeârate combinations, can spuriously out-fit a genuine zone- wide demand anomaly at sparse sensors (quantified by ablation in Supplementary Table S4). The normaliser Z renders Eq. (3) a softmax overH. From the posterior we read the three quantities the supervisor will gate on (Supplementary Eq. S5): the total leak-existence mass Î exist (the summed leak posterior), the margin â of the top hypothesis h (1) over the best alternative h (2) of any family, and the posterior entropy. Every term entering Eq. (3) originates from a tool output and is recorded in an evidence log, so each change in the posterior is traceable to a specific computation. This is a structural property that makes the diagnosis auditable, and during development it surfaced an otherwise silent hypothesis-keying defect that had inverted the posterior on demand-anomaly cases. The executor agent is what orchestrates these tools into the posterior of Eq. (3). It is deterministic and physics-grounded, and it never itself produces the numbers that enter the posterior, the archi- tectural guard against fabricated metrics. In each round it first seeds the competing hypotheses: a leak hypothesis for every zone, a zone-wide demand hypothesis for each retrieved zone, a sensor-fault hypothesis over channels whose deviation exceeds four noise standard deviations, valve hypotheses on pipes incident to the leading zone, and the null hypothesis. Leak candidate nodes are the union of pre-simulated representative nodes and the highest-degree junctions of each zone. The executor then invokes a typed tool suite: a residual-analysis tool that evaluates Eq. (2), a digital-twin tool that computesÎŒ h by forward simulation, a Bayesian-update tool that applies Eq. (3), and a retrieval tool. The retrieval tool is the topology-aware Graph-RAG localizer of the prior framework, but it is deliberately demoted from âthe answerâ to one evidence source that proposes 16 candidate zones. Its score is not trusted as a probability; it competes, through the twin and Eq. (3), against the non-leak hypotheses. This demotion keeps the system safe when retrieval is weak under field noise: an uncertain retrieval channel leaves Î exist low, so the supervisor abstains rather than forcing the retrieval top-one. The executor finally writes a structured evidence package: the posterior over H, the fitted leak node and rate, each hypothesisâs residual and falsification status, the candidate region, and the per-tool evidence log. This package is the sole interface to the supervisor. For every hypothesis its schema fixes the family label, the fitted parameters, the predicted-versus-observed residual with its Mahalanobis distance, the posterior probability, and an explicit falsification status with the evidence reference that established it. By construction the package carries no free-text argument and no self-reported confidence, only quantities derived from the twin and Eq. (3). This is what lets a downstream auditor re-derive the decision from the numbers alone, not from a persuasive narrative. The supervisor: goal contract, abstention, and active sensing The supervisor never localizes. It audits the executorâs evidence package against an explicit goal contract (Extended Data Fig. 2), a conjunction of acceptance predicates that a dispatch must satisfy. Writing h (1) for the top hypothesis and Ï (1) for its residual Mahalanobis distance, the contract authorises an action only if every data-dependent predicate holds, ACT ââ G1â§ G2â§ G3â§ G4â§ G6â§ G7.(4) The predicates are as follows. G1 (existence): h (1) = h leak and Î exist â„ Ï e , the top hypothesis is a leak and the summed leak-existence mass clears its threshold, which prevents action while the null, demand or sensor explanations remain plausible. G2 (region): |R| †R max , the candidate region is small enough for a repair crew to search. G3 (margin): â â„ ÎŽ, the top hypothesis leads the best alternative of any family, not merely the second-best zone, by a working margin. G4 (alternatives): P (h (2) ) †α, the strongest rival explanation is itself improbable. G6 (residual): Ï (1) â€ Ï max , the fitted leak physically reproduces the observation, with Ï max = 3 per degree of freedom throughout. G7 (safety): U =â , the set of unsafe implied actions is empty, blocking any recommendation that implies an out-of-bound operation. The remaining thresholds are fixed per experiment before evaluation. The EXA7 selective evaluation uses Ï e = 0.5, ÎŽ = 0.12, α = 0.20 and R max = 60 nodes; the residual gate is swept to trace the precisionâcoverage curve, whose maximum- coverage end is the reported operating point. The L-Town benchmark and the City D field-register leg use Ï e = 0.5, ÎŽ = 0.10, α = 0.30 and R max = 80, reflecting their larger zones and severe model error; the City H, City D and KY4 standard in-silico legs of Table 1 and Supplementary Table S8 use the EXA7 gate unchanged (Ï e = 0.5, ÎŽ = 0.12, α = 0.20, R max = 60). The language-model audit experiments use Ï e = 0.7, ÎŽ = 0.15 and α = 0.20. The numbering follows the implementationâs evaluator. Its contract structure additionally declares two boolean fields reserved for deployment, a calibration-validity flag (numbered G5) and a human-review flag; neither is evaluated in this study, which is why the decision rule of Eq. (4) is the conjunction of the six predicates above and G5 does not appear in it. Every leg here does use the calibration matched to its own network and noise level, but that is a property of how the runs were configured, not a condition the contract checks. These predicates are deterministic arithmetic over the evidence package and constitute the systemâs hard guarantees: a code-level property of the decision rule, enforced on every event, not a statistical bound on error rates. On satisfaction, the supervisor emits an acceptance certificate that 17 records the decision, the contract version and thresholds, the measured value and pass or fail of each predicate, and the accepted hypothesis and region. A cryptographic digest binds the certificate to a canonical serialisation of the evidence package, so any later tampering is detectable. This is the auditable artifact a utility or regulator requires. When any predicate fails, the supervisor does not silently force a guess. It returns a structured request identifying the unmet predicate; for example, a low margin between two adjacent zones triggers a âseparate these zonesâ request that the executor must address in a further round. If the contract cannot be met within the round budget, the system abstains: it emits a best-effort dossier (the surviving hypotheses and the reason each predicate failed) and defers to a human. Abstention is reported as a first-class outcome, never converted to a forced prediction. This is the formal mechanism by which an intrinsically weak base localizer becomes a high-precision decision system, acting only where the evidence supports it. When a rejection reflects an unresolved zone ambiguity rather than a true absence of evidence, the executor seeks the most informative additional measurements. Among the surviving leak hypothe- ses, it scores each candidate hidden node by the spread of the hypothesesâ twin-predicted responses at that node (Supplementary Eq. S6), a digital-twin discriminability criterion that approximates the measurement of maximal expected information gain [46], and reveals the three highest-scoring nodes: the nodes at which the competing zones most disagree and therefore those whose readings are most decisive. Each revealed nodeâs value is drawn from the full-field response plus measurement noise, the sensor set is augmented, and the surviving leak hypotheses are re-fit and re-ranked over the augmented set (Supplementary Eq. S4). Because only the leak family is re-fit, active sensing may only move posterior mass within that family: the leak-existence mass set by Eq. (3) is held fixed and redistributed over the re-fitted leak hypotheses in proportion to their new within-family posteriors, the non-leak posteriors are unchanged, and the summary quantities of Supplementary Eq. S5 (top hypothesis, margin over the best alternative of any family) are then re-derived from the one resulting posterior, so the evidence package the supervisor and the auditor read remains self-consistent. On the benchmark, where full per-zone candidate coverage already yields strong base localization, the average benefit of this step is modest and event-dependent; it is the designed recourse for the low-coverage, high-noise regime where base localization is weak, and we report its effect without overstatement. Independent large-language-model audit Because the executor is deterministic, the language model serves only as an independent supervisor auditor, a configuration that maximises rather than weakens independence. The auditor receives only the structured numeric summary: the top hypothesis and its residual, the existence mass, the margin, and the alternatives with their residuals and falsification status. It never sees the executorâs internal computation, prose, or any confidence adjective. This information asymmetry, together with hard predicates (Eq. 4) evaluated in code the auditor cannot override, makes the audit non-collusive by construction. The auditor is a frontier open model of a different family from any executor component. It returns a strict-JSON accept-or-reject verdict and may only add a rejection on top of the deterministic contract, never overturn a failed hard check. It is configured to reject any internally inconsis- tent package, a condition verifiable from the numbers alone; the auditorâs full system prompt, the numeric evidence-summary schema it receives and the strict-JSON verdict template with its conser- vative parse-failure default are reproduced verbatim, together with the executor-plannerâs planning 18 template, in Supplementary Methods S6. We stress-test this layer by injecting deliberately corrupted packages and measuring the catch rate, the false-alarm rate on genuine packages, and the agreement across repeated temperature-zero audits. The taxonomy spans the three ways a diagnosis can be untrustworthy yet superficially confident. An unsupported assertion pairs a high-probability leak with a physically incompatible residual. A fabricated exclusion declares an alternative falsified although its residual fits the obser- vation. Inflated evidence presents a low existence mass or a vanishing margin as decisive. Each is detectable from the numeric summary alone, and none would be caught by a threshold on a single confidence scalar. An auditor that rejects these while accepting genuine packages, reproducibly across repeats, supplies the independent second signature that turns an automated recommenda- tion into an accountable one. A follow-up test separates rule-following from judgement: the same sixteen genuine packages receive four further corruptions that pass every enumerated prompt rule individually but cannot jointly hold, and three auditors are compared on identical inputs, the five prompt rules implemented literally in code, the language model with the prompt verbatim, and the language model with one added clause asking it to reject any other internal inconsistency without naming any; the paperâs auditor and, as a second opinion, the plannerâs model family are both run, and every call is committed as a transcript (Supplementary Table S15). These audit experiments run at the stricter audit preset (Ï_e = 0.7, ÎŽ = 0.15, α = 0.20; âThe supervisorâ), not at the headline selective gates. Scenario generation, evaluation protocol, and baselines To evaluate the system, we generate all four anomaly classes with one seeded WNTR/EPANET pipeline, so results are bit-reproducible. Leaks are injected at representative and randomly chosen junctions across discharge rates of 5 to 50 L s â1 . Demand anomalies are zone-wide multipliers matched in magnitude to the leak bands, so that they are genuinely confusable. Sensor faults apply bias, stuck, or excess-noise corruptions to one to three channels of an otherwise normal state. Valve mis-states close pipes, and closures that disconnect the network are detected and discarded. The same field-grade noise (Ï = 0.05 m unless swept) is applied to every class, and leak test nodes are drawn disjoint from the retrieval library to prevent memorisation. The identical measurement battery of Table 1 (forced top-1, coverage, acted precision, 50 no-leak controls and the matched- coverage contract-versus-scalar comparison) is applied to every network; the in-silico control and matched-coverage cells are produced by one shared evaluation routine, released with the code, under the same per-seed operating gates as the headline runs. The unit of analysis is the action. We report riskâcoverage and precisionâcoverage curves [14], together with the false-dispatch rate, the four-class confusion matrix, and the expected calibration error of the residual-derived confidence. Writing A for the acted events and Ëz a ,z a for the predicted and true zones of event a, decision precision is |aâA : h (1),a = h leak â§ Ëz a = z a |/|A| and coverage is |A|/n. The false-dispatch rate is the complement of decision precision, so a non-leak event acted upon, or a leak sent to the wrong zone, both count as failures. Sweeping the residual gate Ï max traces the precisionâcoverage curve, and the calibration error aggregates, over confidence bins, the absolute gap between empirical accuracy and mean confidence. Headline quantities are reported as mean and standard deviation over five random seeds, with a noise sweep over Ï â0.02, 0.05, 0.10 m. Significance against the forced localizer is assessed by a two-sided, continuity-corrected paired McNemar test on the leak subset pooled over the five seeds of the severity-sweep set (2â50 L s â1 , n = 600); small-sample proportions are reported with exact 95% ClopperâPearson confidence intervals. 19 As forced (coverage-one) comparators we train genuine localizers on the scenario library and evaluate them on identical test leaks: a cosine k-nearest-neighbour classifier, a random forest, a multilayer perceptron, and a graph convolutional network. As selective-prediction comparators we add a logistic-calibrated confidence threshold, fit on a held-out development seed, and a split-conformal selective predictor [19] with distribution-free risk control, reporting the calibration error on the operational mixed distribution over the four held-out test seeds (n = 440). We ablate the structured components by removing the differential head (leak hypotheses only), by loosening the contract to existence-and-residual only, by disabling the Occam penalty, and by replacing the discriminative active-sensing choice with a random reveal of the same number of hidden nodes; ablation arms share identical scenarios per seed. Finally, we run a fully dual-language-model configuration in which a gpt-oss-120b executor planner proposes the diagnostic plan and an independent deepseek-v4-pro supervisor audits, the two being distinct model families. The planner returns strict-JSON plans through the model runtimeâs JSON output constraint; all planner and auditor calls are persisted as transcripts, and because leak hypotheses are always tested exhaustively the plannerâs non-leak choices cannot degrade localization. We compare this pipelineâs accept or abstain decisions against the deterministic pipeline on a mixed sample of 16 events. The leak fit (Supplementary Eq. S4) searches the full severity grid 2, 5, 10, 20, 35, 50 L s â1 , so no severity is structurally unfittable. A second, fully in-silico network verifies that the protocol itself transfers. KY4 is taken from the public Kentucky research database of water distribution system models [35] and used unmodified as distributed with the WNTR package. It is partitioned into 25 Leiden zones with 40 sensors (one per âŒ24 nodes, half the EXA7 density), placed by a degree-based topological observability proxy: the highest-degree junction of every zone, with the remaining sensors filled by global node degree. This is the same rule used for the City H leg, and it replaces the sensitivity-maximising placement of the EXA7 configuration because neither utility-derived model carries a real gauge layout to reproduce. A per-zone leak-response library is built once, and the identical scenario generator, noise model (Ï = 0.05 m), acceptance gate and metrics are applied (Supplementary Table S8). Real-network transfer: L-Town, the City D field leg and standard-protocol legs Transfer is first assessed on the public BattLeDIM L-Town benchmark. The 782-node network is partitioned into 25 zones, the 33 provided pressure gauges are the sensor set, and a leak library is built from the nominal network model only. Each of the 33 ground-truth leaks is diagnosed from the provided SCADA series. Those series are not field telemetry: the competition organizers generated them from a separate copy of the network model whose roughness and diameters were perturbed, with white measurement noise added, so the benchmark supplies an independent data generator rather than measured data. The observed signature is a diurnal-matched onset step (the per-hour mean over the 24 h after onset minus the 24 h before), and the residual noise scale is 0.15 m. The City H municipal model (920 junctions, 25 zones, 38 sensors) and the City D model are addition- ally evaluated under the identical standard in-silico protocol of the EXA7 run (Ï = 0.05 m, five seeds; Supplementary Table S8). For City D, sensor placement is optimized by a greedy detection-coverage objective computed only over the pre-simulated leak-response library (2,250 cached responses; no register event, node or observation enters the objective), retaining 23 sensors and raising library actionable coverage (clean |âp|â„ 0.45 m) from 29.6% to 34.7%. The register evaluation is otherwise unchanged: Ï = 0.15 m, 50 no-leak controls and a 2â50 L s â1 severity sweep at 120 seeded nodes. For the survey tier, a direct simulation records each register eventâs change in every districtâs net in- flow (summed over district-boundary links, reservoir feeds credited to the receiving district, sources external to all districts), verifying the mass-balance identity event by event (Results); the same pass 20 computes the pressure ceiling as the maximum clean |âp| over all 541 junctions, under both the pipelineâs daily-mean convention and a strict any-time bound (both reported, with identical floor counts). The survey observation model assumes district inflow metering with nightly uncertainty Ï_f (sensitivity grid 0.05/0.10/0.20 L s â1 ) averaged over the eventâs real work-order window, capped at 14 nights, with one seeded noise realization per event; a dispatch targets the district with the largest observed rise if it clears u·Ï_f/ â W, with u = 3 and the 15-district-corrected u = 3.4 both reported, and 50 no-leak control campaigns (five-night windows) accompany every setting. Like the pressures, the flows are twin-simulated; no real SCADA exists for these events. Two design alternatives were evaluated and not adopted, with full artifacts committed. A discriminability-optimized placement (greedy nearest-centroid zone-classification objective) raised the library classification proxy from 50.0% to 64.3% and the twin-fit to 48.0± 1.8%, but left decision precision statistically unchanged (83.3 ± 8.6% versus 83.1 ± 11.0%) while cutting library detection coverage at the 0.45 m floor from 34.7% to 30.0%, so the detection-coverage placement is retained. A CUSUM sequential detector for the survey tier, calibrated to the same campaign false-alarm rate, was beaten on district precision at every meter setting with a coverage deficit at the headline setting (40% at 97% precision versus the window meanâs 44% at 100% at Ï_f = 0.10 L s â1 ), consistent with the window mean being the sufficient statistic when the work-order window brackets a per- sistent leak. Finally, both control sets were analysed under the same three acceptance presets on the same evidence packages: on the standard leg the transfer gate admits two knife-edge controls (2/50; existence 0.511 and 0.610 against the 0.50 threshold) and the audit preset none (0/50); on the register the transfer and audit outcomes are those reported in the Results (one knife-edge false dispatch and none, respectively; the audit preset is that of the language-model experiments, Ï_e = 0.7, ÎŽ = 0.15, α = 0.20), and adding a â3Ï observation floor leaves the one tied control whose observed peak equals the 0.45 m floor. The field leg uses the City D district network (541 junctions, 475 pipes, 79 throttle-control valves), whose EPANET model was provided by the operating utility and is used unmodified, with its cryptographic checksum recorded alongside the released data. The register is the utilityâs 2025 repair log of 256 leak work orders. Each order was geocoded from its street address and merged to the nearest numeric junction under an audited mapping: internet-anchored coordinates cross- checked across three candidate coordinate reference systems, per-record anchor confidence and merge distance preserved, and a strict inclusion filter (volume present, connectivity acceptable, non-proxy anchor, node stable across reference systems) that admits 194 orders at 46 junctions. The network is partitioned into 15 zones with 23 sensors (the optimized placement described above); the executorâs leak-rate hypothesis grid for this leg extends the standard 2â50 L s â1 grid down to the registerâs severity range (0.05/0.1/0.25/0.5/1 L s â1 added), chosen from the registerâs rate quantiles alone so the hypothesis space covers the data; forced accuracy is the retrieval localizerâs top district (always defined), with a twin-fit forced variant recorded in the released results files. Each eventâs signature is twin-simulated at its audited node with Ï = 0.15 m noise; 50 no-leak controls and a 2â50 L s â1 severity sweep at 120 seeded nodes complete the protocol. Four limits are explicit. The modelâs topology and equipment are of 2016 vintage; its nodal demands, however, are updated to the 2025 level by a documented nine-year ratio (1.168459, annualized from the cityâs official city-wide urban tap-water sales 2016â2024, applied uniformly to all 118 demand records with the spatial pattern preserved and equipment screened unchanged), a proxy update that we verified record-by-record against the utility model and that is not a pressure or flow calibration. A demand-ratio sensitivity sweep over the workbookâs own band (0.8â1.3 on the 2016 base, with the adopted ratio as regression anchor) leaves the excavation ceiling roughly two orders of magnitude below the actionability floor at every ratio (median 0.0016â0.0025 m; at most 5 of 194 events clear 0.15 m and exactly one clears 21 0.45 m) and the survey-tier detection count exactly invariant (85 of 194 under the deterministic sizing rule, at every ratio), ruling out demand miscalibration as a cause of the field-leg limits (Supplementary Table S14). No SCADA exists for these events, so the observations are semi- synthetic. The coordinate datum is unknown, so the mapping is cross-checked across candidate systems rather than asserted. And the work-order window is a reporting proxy, not a measured leak duration. Throughout, every reported value is written directly to a results file by the run scripts and read back for figures and tables. No metric is hand-entered, hard-coded, or post-edited, and the study inherits no quantities from prior work, an integrity discipline that the auditable architecture is designed to enforce. Statistics and reproducibility The system is implemented in Python against a WNTR 1.4 [47] / EPANET 2.2 [48] hydraulic engine. All hydraulic solves are memoized and a per-zone leak-response library is precomputed once. A complete diagnostic episode therefore requires no online optimisation beyond cached look- ups and the targeted twin evaluations of Supplementary Eqs. S4 and S6. On a desktop CPU (Intel, 32 logical cores) the one-time response-library warm-up takes about 4 minutes for EXA7. A complete diagnostic episode then takes a median of 0.029 s (90th percentile 0.07 s, n = 109 cache-warm episodes), of which the active-sensing round contributes a median of 0.007 s. The system therefore operates far inside any operational decision window. A degenerate solve, such as a valve closure that disconnects part of the network, is detected by a non-physical-pressure guard and discarded rather than allowed to corrupt the evidence. The deterministic executor and supervisor are exactly reproducible by construction. The only stochastic element of the core decision, the additive measurement noise, is governed by a fixed seed registry, so scenario generation is bit-reproducible. The language-model auditor and executor planner, served through the ollama runtimeâs hosted cloud endpoints, are queried at temperature zero with pinned model tags (deepseek-v4-pro:cloud for the auditor, gpt-oss:120b-cloud for the planner) and a strict-JSON output constraint: the runtime client is local, inference is hosted, and exact repetition therefore depends on the pinned tags remaining available; an earlier auditor tag was retired by the provider during this study, which is why the committed transcripts, not the endpoints, are the reproducibility path. Every call is persisted as a transcript, so the accountability metrics can be replayed from the cached transcripts without live model access, and a parse failure defaults conservatively to rejection. Because the executorâs numbers all originate from the twin and Eq. (3), and the supervisorâs hard predicates are deterministic code rather than learned judgement, the entire decision path, from observation to authorised dispatch or abstention, is replayable and verifiable. This is the prerequisite for delegating any automated action on regulated water infrastructure. All statistical tests are two-sided. Uncertainty is reported as mean ± standard deviation over five independent random seeds, and small-sample proportions carry exact 95% ClopperâPearson confidence intervals. No events were excluded from any analysis; scenario generation is governed by a fixed seed registry; blinding was not applicable because no human raters were involved. Every reported value is written to a committed results file by the run scripts and is read from there by the manuscript and figures. An automated integrity check, included in the released code, enforces that no reported metric is a hard-coded literal, and no number, table or figure is inherited from any prior work on these data. In particular, a predecessor projectâs claim of 67% top-one localization 22 on the City H data was later found to have been inflated from a real run of about 41%; none of its numbers, code paths or mappings enters this study. During manuscript preparation the authors used general-purpose large-language-model assistants for language editing and formatting. All scientific content, analyses and numbers originate from the committed pipeline outputs. The authors reviewed and verified the entire text and take full responsibility for it. These writing aids are distinct from the language-model components inside the diagnostic system, which are objects of study rather than authoring tools. Data availability The EXA7 EPANET network and the partition, sensor-placement and scenario-fingerprint inputs are vendored under data/exa7/ so the study is self-contained; the generated scenario corpora and all results JSON are committed as the provenance snapshot from which every figure value is read. The KY4 network is a public benchmark from the Kentucky research database of water distribution system models [35]. It is vendored unmodified from the pip-installed WNTR package under data/ ky4/, together with its derived zoning, sensor-placement and fingerprint inputs. The BattLeDIM L-Town benchmark (network model, SCADA pressures and leak labels) is publicly available from the BattLeDIM 2020 competition. The City H municipal network model (nominal, utility-derived) and its derived zoning, sensor and fingerprint inputs are available from the corresponding authors on reasonable request; it is used as a third in-silico benchmark. For the City D field leg, the utilityâs EPANET model (nodal demands updated to 2025 under a documented nine-year workbook derived from the cityâs official statistical-yearbook sales data; SHA-256 checksums recorded) and the audited leak-to-node mapping extracted from the utilityâs 2025 repair register are likewise available from the corresponding authors on reasonable request. The raw register was provided by the operating utility for research use and is restricted. The leak-to-node mapping workbook is a derived research artifact (internet-anchored geocoding cross-checked over three candidate coordinate reference systems, with per-record confidence and an independent 39-item cross-validation); it and the register are available from the corresponding authors on reasonable request, the register subject to the utilityâs confiden- tiality approval. Geographic anchors use OpenStreetMap data (© OpenStreetMap contributors, ODbL). No real utility SCADA pressure data are used anywhere in this study, and no quantity is inherited from any prior work on these data. Code availability The full executorâsupervisor system, anomaly simulators, evaluation and figure scripts and a pinned environment (requirements.txt) are openly available at https://github.com/mutianwei521/ leakagent2. The release used for this study will be archived on Zenodo with a DOI upon ac- ceptance. A single command, python reproduce_all.py, regenerates every physics and statistics number and figure from the included inputs; the EXA7, KY4 and L-Town legs reproduce from public inputs alone, while reproducing the City H and City D legs additionally requires the utility-derived network models available from the corresponding authors; the two language-model experiments are opt-in via âwith-llm and need the pinned model tags served through an ollama runtime (this study used ollamaâs hosted cloud endpoints; the committed transcripts allow replay without any model access). tests/integrity_lint.py enforces that no metric is a hard-coded literal, and tests/ smoke_certificate.py verifies the tamper-evident acceptance certificate. 23 Acknowledgements This research was supported by the open fund from the Key Laboratory of Eco-restoration of Regional Contaminated Environment (Shenyang University), Ministry of Education (No. KF-26- 11, to T.M.), the Guangdong Basic and Applied Basic Research Foundation (No. 2026A1515011817, to T.M.), the Liaoning Provincial Education Department Fund Project âDigital twin-driven global resilience assessment model and dynamic simulation researchâ (No. 202464252, to T.M.) and the National Natural Science Foundation of China (No. 62301339, to D.X.). The authors thank the operating utility of City D for the network model and the 2025 repair register behind the field leg, and the City H water utility for the anonymized 2018â2020 leak repair register that anchored the register cohort. Author contributions T.M. conceived the study, designed and implemented the executor-supervisor system and its released codebase, generated the anomaly scenario corpora, performed the experiments and the formal anal- ysis, and wrote the original draft. T.M. and D.X. acquired the funding. M.Y. and M.X. supervised the project, administered the collaboration, and secured access to the utility network models and repair registers. Y.W. and D.X. contributed to data curation and to the audited leak-to-node field- register mapping. W.W. and X.Y. contributed to the hydraulic modelling and validation. M.H. and Q.L. contributed to the methodology and to the environmental interpretation of the results. H.Y. and J.L. contributed to the investigation and visualization. All authors reviewed and edited the manuscript and approved the final version. Competing interests The authors declare no competing interests. References [1] Sousa, A. L., Brochado, A. F., Rocha, E. & Andrade-Campos, A. A state-of-the-art review of scientific, industrial, and commercial developments in water leakage management for water supply systems. Water Res. 299, 125853 (2026). https://doi.org/10.1016/j.watres.2026. 125853 [2] Li, H., Shi, W., Chang, Z., Zhang, F., Cui, J., Lu, X. & Mao, L. Optimizing district metered areas and associated pressure-reducing valves and pumping stations for effective and efficient management of water distribution networks. Water Resour. Manag. 39, 379â396 (2025). https: //doi.org/10.1007/s11269-024-03974-x [3] Romero-Ben, L., Alves, D., Blesa, J., Cembrano, G., Puig, V. & Duviella, E. Leak detection and localization in water distribution networks: review and perspective. Annu. Rev. Control 55, 392â419 (2023). https://doi.org/10.1016/j.arcontrol.2023.03.012 [4] Li, Z., Tian, Y. & Peng, S. Detection and localization of pipeline leakage of water distribution networks based on graph convolutional networks. Comput.-Aided Civ. Infrastruct. Eng. 40, 6656â6677 (2025). https://doi.org/10.1111/mice.70173 24 [5] Liu, R., Zayed, T. & Xiao, R. Contrastive learning method for leak detection in wa- ter distribution networks. npj Clean Water 7, 118 (2024). https://doi.org/10.1038/ s41545-024-00406-6 [6] Jun, S. & Lansey, K. E. Convolutional neural network for burst detection in smart water dis- tribution systems. Water Resour. Manag. 37, 3729â3743 (2023). https://doi.org/10.1007/ s11269-023-03524-x [7] Jun, S., Jung, D. & Lansey, K. Three-dimensional convolutional neural network for leak de- tection and localization in smart water distribution systems. Water Res. X 25, 100264 (2024). https://doi.org/10.1016/j.wroa.2024.100264 [8] Wang, C., Liu, Z., Fei, J., Long, Z., Wang, P. & Yu, T. Evaluating the generalizability and transferability of acoustic leak detection models for water distribution networks. Water Res. 286, 124273 (2025). https://doi.org/10.1016/j.watres.2025.124273 [9] Ashraf, I., Strotherm, J., Hermes, L. & Hammer, B. Physics-informed graph neural networks for water distribution systems. Proc. AAAI Conf. Artif. Intell. 38, 21905â21913 (2024). https: //doi.org/10.1609/aaai.v38i20.30192 [10] Truong, H., Tello, A., Lazovik, A. & Degeler, V. Graph neural networks for pressure estimation in water distribution systems. Water Resour. Res. 60, e2023WR036741 (2024). https://doi. org/10.1029/2023WR036741 [11] Chen, L. et al. Real-time and accurate burst localization in water distribution networks with graph-based deep learning. J. Hydrol. 673, 135477 (2026). https://doi.org/10.1016/j. jhydrol.2026.135477 [12] Vrachimis, S. G. et al. Battle of the Leakage Detection and Isolation Methods. J. Water Re- sour. Plan. Manag. 148, 04022068 (2022). https://doi.org/10.1061/(ASCE)WR.1943-5452. 0001601 [13] Xu, A., Zhang, T., Zhang, X., Shao, Y., Yu, T., Chu, S. & Qian, L. Multi-scale spatio-temporal graph neural network for enhanced water demand forecasting. Water Res. 288, 124711 (2026). https://doi.org/10.1016/j.watres.2025.124711 [14] Geifman, Y. & El-Yaniv, R. Selective classification for deep neural networks. Adv. Neural Inf. Process. Syst. 30, 4878â4887 (2017). https://proceedings.neurips.c/paper/2017/hash/ 4a8423d5e91fda00b7e46540e2b0cf1-Abstract.html [15] Traub, J. et al. Overcoming common flaws in the evaluation of selective classification systems. Adv. Neural Inf. Process. Syst. 37 (2024). https://doi.org/10.48550/arXiv.2407.01032 [16] Mao, A., Mohri, M. & Zhong, Y. Realizable H-consistent and Bayes-consistent loss functions for learning to defer. Adv. Neural Inf. Process. Syst. 37, 73638â73671 (2024). https://doi. org/10.52202/079017-2342 [17] Lambert, B., Forbes, F., Doyle, S., Dehaene, H. & Dojat, M. Trustworthy clinical AI solutions: a unified review of uncertainty quantification in deep learning models for medical image analysis. Artif. Intell. Med. 150, 102830 (2024). https://doi.org/10.1016/j.artmed.2024.102830 [18] Shen, M. et al. Are uncertainty quantification capabilities of evidential deep learning a mirage? Adv. Neural Inf. Process. Syst. 37 (2024). https://doi.org/10.48550/arXiv.2402.06160 [19] Angelopoulos, A. N. & Bates, S. Conformal prediction: a gentle introduction. Found. Trends Mach. Learn. 16, 494â591 (2023). https://doi.org/10.1561/2200000101 25 [20] Jeary, L., Kuipers, T., Hosseini, M. & Paoletti, N. Verifiably robust conformal prediction. Adv. Neural Inf. Process. Syst. 37 (2024). https://doi.org/10.48550/arXiv.2405.18942 [21] Straitouri, E., Thejaswi, S. & Gomez Rodriguez, M. Controlling counterfactual harm in decision support systems based on prediction sets. Adv. Neural Inf. Process. Syst. 37 (2024). https: //doi.org/10.48550/arXiv.2406.06671 [22] Yao, S. et al. ReAct: synergizing reasoning and acting in language models. In Proc. 11th Int. Conf. Learning Representations (ICLR) (2023). https://doi.org/10.48550/arXiv.2210. 03629 [23] Schick, T. et al. Toolformer: language models can teach themselves to use tools. Adv. Neural Inf. Process. Syst. 36 (2023). https://doi.org/10.48550/arXiv.2302.04761 [24] Wang, L. et al. A survey on large language model based autonomous agents. Front. Comput. Sci. 18, 186345 (2024). https://doi.org/10.1007/s11704-024-40231-1 [25] Boiko, D. A., MacKnight, R., Kline, B. & Gomes, G. Autonomous chemical research with large language models. Nature 624, 570â578 (2023). https://doi.org/10.1038/ s41586-023-06792-0 [26] Romera-Paredes, B. et al. Mathematical discoveries from program search with large language models. Nature 625, 468â475 (2024). https://doi.org/10.1038/s41586-023-06924-6 [27] Bran, A. M., Cox, S., Schilter, O., Baldassari, C., White, A. D. & Schwaller, P. Augmenting large language models with chemistry tools. Nat. Mach. Intell. 6, 525â535 (2024). https: //doi.org/10.1038/s42256-024-00832-8 [28] Anthropic. Claude Code: an agentic coding tool. https://claude.com/claude-code (2025). [29] Zhu, J.-J., Jiang, J., Yang, M. & Ren, Z. J. ChatGPT and environmental research. Environ. Sci. Technol. 57, 17667â17670 (2023). https://doi.org/10.1021/acs.est.3c01818 [30] Xu, B. et al. Towards domain-adapted large language models for water and wastewater management: methods, datasets and benchmarking. npj Clean Water 8, 82 (2025). https: //doi.org/10.1038/s41545-025-00509-8 [31] Wang, J., Fu, G. & SaviÄ, D. EPANET-Agentic: a multi-agent system for natural-language- controlled simulations of water distribution networks. Water Res. 293, 125433 (2026). https: //doi.org/10.1016/j.watres.2026.125433 [32] Zheng, L. et al. Judging LLM-as-a-judge with MT-Bench and Chatbot Arena. Adv. Neural Inf. Process. Syst. 36 (2023). https://doi.org/10.48550/arXiv.2306.05685 [33] Khan, A. et al. Debating with more persuasive LLMs leads to more truthful answers. Proc. 41st Int. Conf. Mach. Learn. (ICML), PMLR 235, 23662â23733 (2024). https://doi.org/ 10.48550/arXiv.2402.06782 [34] Gou, Z. et al. CRITIC: large language models can self-correct with tool-interactive critiquing. In Int. Conf. Learning Representations (ICLR) (2024). https://doi.org/10.48550/arXiv. 2305.11738 [35] Jolly, M. D., Lothes, A. D., Bryson, L. S. & Ormsbee, L. Research database of water distribution system models. J. Water Resour. Plann. Manage. 140, 410â416 (2014). https://doi.org/10. 1061/(ASCE)WR.1943-5452.0000352 26 [36] Bode, I. & Chandler, K. Re-thinking humanâmachine interaction and the governance of AI in the military domain. Nat. Mach. Intell. 8, 663â669 (2026). https://doi.org/10.1038/ s42256-026-01231-x [37] Khandelwal, D., Anand, P., Ray, M. & Sangeetha, R. G. Fault detection in electrical power systems using attention-GRU-based fault classifier (AGFC-Net). Sci. Rep. 15, 24133 (2025). https://doi.org/10.1038/s41598-025-06493-w [38] Al-Ammari, W. A. et al. Digital twin for leak detection and fault diagnostics in gas pipelines: a systematic review, model development, and case study. Alex. Eng. J. 123, 91â111 (2025). https://doi.org/10.1016/j.aej.2025.03.054 [39] Li, Z., Liu, H., Zhang, C. & Fu, G. Gated graph neural networks for identifying contamination sources in water distribution systems. J. Environ. Manage. 351, 119806 (2024). https://doi. org/10.1016/j.jenvman.2023.119806 [40] Amanollah, H., Karami Mohammadi, R. & Ghorbani-Tanha, A. K. Structural damage detection using voting ensemble of fine-tuned convolutional neural networks and time-frequency images. Sci. Rep. 15, 36199 (2025). https://doi.org/10.1038/s41598-025-19933-4 [41] Zheng, Y., Zhang, X., Zhou, Y., Zhang, Y., Zhang, T. & Farmani, R. Deep representation learning enables cross-basin water quality prediction under data-scarce conditions. npj Clean Water 8, 33 (2025). https://doi.org/10.1038/s41545-025-00466-2 [42] Reichardt, J. & Bornholdt, S. Statistical mechanics of community detection. Phys. Rev. E 74, 016110 (2006). https://doi.org/10.1103/PhysRevE.74.016110 [43] Traag, V. A., Waltman, L. & van Eck, N. J. From Louvain to Leiden: guarantee- ing well-connected communities. Sci. Rep. 9, 5233 (2019). https://doi.org/10.1038/ s41598-019-41695-z [44] Zhou, X., Wan, X., Liu, S., Su, K., Wang, W. & Farmani, R. An all-purpose method for optimal pressure sensor placement in water distribution networks based on graph signal analysis. Water Res. 266, 122354 (2024). https://doi.org/10.1016/j.watres.2024.122354 [45] Cheng, M. & Li, J. Optimal sensor placement for leak location in water distribution networks: a feature selection method combined with graph signal processing. Water Res. 242, 120313 (2023). https://doi.org/10.1016/j.watres.2023.120313 [46] Huang, D., Guo, Y., Acerbi, L. & Kaski, S. Amortized Bayesian experimental design for decision-making. Adv. Neural Inf. Process. Syst. 37 (2024). https://doi.org/10.48550/ arXiv.2411.02064 [47] Klise, K. A., Bynum, M., Moriarty, D. & Murray, R. A software framework for assessing the resilience of drinking water systems to disasters with an example earthquake case study. Environ. Model. Softw. 95, 420â431 (2017). https://doi.org/10.1016/j.envsoft.2017.06. 022 [48] Rossman, L. A. EPANET 2 Users Manual. Report EPA/600/R-00/057 (U.S. Environmental Protection Agency, Cincinnati, OH, 2000). https://w.epa.gov/water-research/epanet 27 Extended Data 1 Observe leak? sparse sensors îż, mâȘN Îp obs =Îp (h) îż +Δ field noise Δ âŒîș(0,Ï 2 ) · Eq. (1) 2 Hypothesize leak in zone C k (ĂK) zone-wide demand (ĂK) sensor fault (Ă|îż * |) valve mis-state no anomaly h 0 leak fitted by best node-rate pair over grid îœ (Eq. S4) 3 Falsify in the twin h leak : reproduces, Ï â1 â h dem : strained, Ï >2 ... h 0 : fails, Ï â«3 imes r h =Îp obs âÎŒ h ; likelihood collapses if the twin cannot reproduce the observation · Eq. (2) 4 Fuse and package leak demand sensor valve none Occam penalty â 1 2 k h logm · Eq. (3) numeric evidence package Î exist , margin Î, region R per-hypothesis Ï + falsification status fitted node and rate; tool log no free text, no self-rated confidence Extended Data Fig. 1 | The executorâs diagnostic pipeline (schematic). A sensor-space observation (Eq. 1; sparse sensors, field noise) is confronted with a mutually exhaustive hypothesis space: a leak in any zone (fitted by its best node-rate pair over the discharge grid, Supplementary Eq. S4), a zone-wide demand anomaly, a sensor fault, a valve mis-state, or no anomaly. Each hypothesis is realised in the hydraulic digital twin and must reproduce the observation: the residual and its per-degree-of-freedom Mahalanobis distanceÏ (Eq. 2) falsify hypotheses that cannot (red), strain poor fits (amber) and retain reproducing ones (blue). Surviving evidence is fused into a posterior with an Occam penalty against over-flexible families (Eq. 3), from which the leak-existence mass, the top-1 margin and the candidate region are read into a numeric evidence package that carries no free text and no self-rated confidence. Signatures shown are illustrative, not measured values. 28 Numeric evidence package Posterior over îŽ Î exist , margin Î Fitted node and rate Per-hypothesis residual Ï Candidate region R Per-tool evidence log Numbers only Goal contract · Eq. (4) G1 Existence h (1) =h leak , Î exist â„Ï e G2 Region |R|â€R max G3 Margin Îâ„ÎŽ G4 Alternatives P(h (2) )â€Î± G5 ReservedNot evaluated here G6 Residual Ï (1) â€3 per dof G7 Safety î=â Deterministic arithmetic; every evaluated check recorded Independent LLM auditor Different model family · temperature 0 · strict JSON Sees the numeric summary only May only add a rejection, never overturn a hard check ACT: Dispatch authorised Certificate: decision, thresholds, every predicate's value and pass/fail, accepted hypothesis and region, SHA-256 digest: tamper-evident REQUEST EVIDENCE (active sensing) Names the failed predicate, reveals the three most discriminative hidden nodes (Eq. S6), re-fits and re-ranks ABSTAIN: First-class outcome Dossier: surviving hypotheses and the reason each predicate failed; deferred to a human, never forced All pass Resolvable failure Evidence cannot carry Augmented sensor set, one more round Extended Data Fig. 2 | From evidence to an accountable action (schematic). The supervisor audits the numeric evidence package (Extended Data Fig. 1) against the goal contract of Eq. (4): existence, region, margin, alternatives, residual and safety are deterministic arithmetic checks; G5 is a field reserved for deployment and is not evaluated here. All checks passing authorises a dispatch with a certificate that records every predicateâs value and pass or fail and is bound to the evidence by a SHA-256 digest; a resolvable failure triggers active sensing, which names the failed predicate, reveals the three most discriminative hidden nodes (Supplementary Eq. S6) and re-runs the executor on the augmented sensor set (dashed loop); otherwise the system abstains with a dossier and defers to a human. The independent language-model auditor, a different model family at temperature zero, sees only the numeric summary and may add a rejection but can never overturn a hard check. 29 Supplementary Information Supplementary Methods S1. Governing hydraulics Under steady-state operation the network obeys conservation of mass at every node, â X jâN (i) Q ij (t) = d i (t) + a i (t), âiâV(S1) and the HazenâWilliams head-loss relationship along every pipe, H i (t)â H j (t) = r ij |Q ij (t)| nâ1 Q ij (t), â(i,j)âE(S2) where Q ij is the pipe flow, d i the nominal demand, a i an anomalous additional or perturbing demand, H i the hydraulic head, r ij the pipe resistance, and n = 1.852 the head-loss exponent. The digital twin (WNTR/EPANET) solves Eqs. (S1)â(S2); the sensor-space deviation these induce, plus field noise, is main-text Eq. (1). S2. Competing-hypothesis space Diagnosis is posed over a structured, mutually exhaustive hypothesis space spanning one dominant anomaly per event, H =h leak (k) K k=1 âȘh dem (k) K k=1 âȘh sen (s) sâS â âȘh val (a) aâA â âȘh 0 .(S3) Here h leak (k) is a leak somewhere in zone C k , h dem (k) a zone-wide demand anomaly in C k , h sen (s) a fault on sensor channel s, h val (a) a mis-state of asset a, and h 0 the null hypothesis that no actionable anomaly exists. S3. Leak fit within a zone Because the true leak may sit at any junction in a zone, each leak hypothesis is fitted by the best nodeârate pair, ÎŒ h leak (k) = argmin vâC k , qâQ âp obs âÎŒ(v,q) 2 2 ,(S4) over all junctions v â C k and the discharge grid Q = 2, 5, 10, 20, 35, 50 L s â1 . The residual and its Gaussian log-likelihood are main-text Eq. (2). S4. Posterior summary quantities From the posterior (main-text Eq. 3) the supervisor reads three quantities, Î exist = X k P h leak (k) ,â = P (h (1) )â P (h (2) ), E bits =â X h P (h) log 2 P (h),(S5) 30 the total leak-existence mass Î exist , the margin â of the top hypothesis over the best alternative of any family, and the posterior entropy. S5. Active-sensing discriminability When a rejection reflects an unresolved zone ambiguity, the executor scores every hidden node by the spread of the surviving hypothesesâ twin-predicted responses and reveals the highest-scoring nodes (three per round in all reported runs), the first of which is x â = arg max x/âS max h ÎŒ h (x)â min h ÎŒ h (x) ,(S6) a digital-twin discriminability criterion that approximates the measurement of maximal expected information gain. S6. Language-model auditor and planner: prompts and strict-JSON templates The auditorâs system prompt is reproduced verbatim from the implementation (agents/ llm_client.py; this section is generated by importing the constants, so it cannot drift from the code). The auditor is queried through the ollama runtimeâs hosted cloud endpoints (pinned tags deepseek-v4-pro:cloud for the auditor and gpt-oss:120b-cloud for the planner) with the format="json" constraint at temperature zero; every call is persisted as a transcript, from which the reported metrics can be replayed without model access. An earlier auditor tag (deepseek-v3.1:671b- cloud) was retired by the provider on 15 July 2026 during the study; every reported audit run uses the tags above, and replay from the committed transcripts does not depend on any endpoint. Auditor system prompt. You are an INDEPENDENT safety supervisor for a water-distribution-network leak-diagnosis system. You receive ONLY a structured numeric evidence summary (never the diagnostic agentâs reasoning). Decide whether the evidence SUFFICIENTLY and CONSISTENTLY supports dispatching a repair crew to the claimed leak partition. Residual Mahalanobis-per-dof near 1.0 means a hypothesis REPRODUCES the observation; >>3 means it does NOT fit . Reject (reject=true) if ANY hold: 1. top_hypothesis.type is not âleakâ; 2. leak_existence_probability < 0.7; 3. margin_over_next_best < 0.15; 4. top_hypothesis.fit_residual_mahalanobis > 3 (claimed leak does not fit); 5. any alternative marked status=âfalsifiedâ but with residual_mahalanobis < 1.5 (it actually fits well -> inconsistent, the diagnosis is not trustworthy). Otherwise reject=false. Output STRICT JSON: "reject": true|false, "reason": "<short>". Auditor input. The user message contains only the structured numeric evidence summary, seri- alised as JSON with the fields: top_hypothesis: type, partition, posterior, fit_residual_mahalanobis, candidate_region_nodes leak_existence_probability margin_over_next_best alternatives (up to 5): [type, partition, posterior, residual_mahalanobis, status] demand_period Auditor output and fail-safe. The reply must be strict JSON "reject": true|false, "reason": "<short>"; a missing or unparsable reply defaults conservatively to "reject": true, "reason": "auditor_parse_failure_default_safe". Executor-planner system prompt (dual-language-model configuration only). 31 You are the orchestration head of a water-network leak-diagnosis agent. Given a numeric summary of a pressure- deviation observation, decide which NON-LEAK explanations are worth testing alongside the leak hypotheses: a DEMAND anomaly (a few-to-many sensors depressed broadly across a zone), a SENSOR fault (one or two channels anomalous while the rest read ~0), or a VALVE mis-state (large, structured, network-wide shifts). Always allow the leak hypotheses. Keep the rationale to at most 12 words. Output STRICT JSON: "include_demand": bool, " include_sensor": bool, "include_valve": bool, "rationale": "<<=12 words>". Supplementary Figures Supplementary Tables Table S1 | Leak-partition accuracy as a function of leak severity on EXA7. Fraction of leaks assigned to the correct topological zone at each injected discharge rate, pooled over n = 5 random seeds at sensor noiseÏ = 0.05 m; n is the number of leak events in each severity band. Leak rate (L s â1 )n Leak-partition accuracy 2.010027% 5.010060% 10.010077% 20.010093% 35.010093% 50.010097% Table S2 | Four-class differential-diagnosis confusion matrix on EXA7. Event counts of the executorâs top hypothesis (columns) against the true class (rows), pooled over n = 5 random seeds atÏ = 0.05 m (600 leak and 250 confounder events); diagonal entries are correct classifications. True class (rows) / Predicted (columns) leak demand anomaly sensor fault valve misstate none leak54741093 demand anomaly199000 sensor fault00392115 valve misstate96103317 none00000 Sensor faults are never predicted as leaks (leak column, sensor-fault row = 0); demand anomalies are typed 99/100; leaks 547/600. Table S3 | Forced top-1 zone accuracy of trained localizers versus the executorâs twin-fit on EXA7. All methods are evaluated on the identical held-out test leaks atÏ = 0.05 m; values are mean ± s.d. over n = 5 random seeds. MethodForced Top-1 GCN (3-layer, trained)10.0 ± 1.2% MLP (128,64)27.7 ± 1.5% GraphRAG retrieval31.7 ± 2.0% RandomForest (200)55.7 ± 5.3% kNN (k=5, cosine)72.0 ± 3.0% Executor-Supervisor (twin-fit) 81.7 ± 5.0% 32 a EXA7 in-silico benchmark 381 nodes · 469 pipes 30 sensors b L-Town BattLeDIM, generated benchmark 782 nodes · 905 pipes 33 sensors c City H municipal model, in-silico 920 nodes · 1032 pipes 38 sensors d City D field register, utility model 541 nodes · 475 pipes 23 sensors e KY4 public benchmark, in-silico 959 nodes · 1156 pipes 40 sensors pipepressure sensorreservoir / sourcetank Fig. S1 | Topologies of the five validation networks. Pipe layout drawn from the EPANET INP coordinates for (a) EXA7, the in-silico benchmark; (b) BattLeDIM L-Town, evaluated against the competitionâs independently generated SCADA; (c) the City H municipal model, a third in-silico benchmark under the standard protocol; (d) City D, the utilityâs own district-network model behind the field-register leg; and (e) KY4, the public Kentucky-database benchmark used as an independent second in-silico network. Pressure-sensor nodes (blue), reservoirs and sources (red squares) and tanks (amber triangles) are overlaid; node, pipe and sensor counts are printed beneath each panel. Provenance differs by tier: EXA7, KY4 and City H are evaluated fully in-silico, L-Town uses the competitionâs independently generated SCADA against the nominal model, and the City D field register is twin-simulated at audited real locations because no SCADA exists for those events. The executorâsupervisor twin-fit (81.7 ± 5.0%, main text) exceeds the strongest trained baseline and, uniquely, abstains and types non-leak causes. Table S4 | Component ablations on EXA7. Effect of removing the differential head (a leak-only detector), loosening the goal contract, disabling the Occam/BIC penalty, and replacing the discriminative active-sensing choice with a random reveal, relative to the full system; identical scenarios per seed across arms (Ï = 0.05 m, pooled over n = 5 seeds). 33 forced retrieval leak-acc (no active) leak-acc (+active) decision precision 0 20 40 60 80 100 Percent (%) 32% 82% 82% 96% Mean ± s.d. with all 5 per-seed runs (Ï = 0.05) Fig. S2 | Robustness of the headline metrics across random seeds (EXA7,Ï = 0.05 m). Forced-retrieval top-1 accuracy, leak-partition accuracy without and with supervisor-directed active sensing, and decision precision at the operating point. Bars show the mean over n = 5 independent random seeds, overlaid circles are the individual seeds and error bars are the standard deviation. a L-Town (782 junctions), K = 25, 33 sensors 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 b City H (920 junctions), K = 25, 38 sensors 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 c KY4 (959 junctions), K = 25, 40 sensors 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 PipeJunctionPressure sensorReservoir / Tank Fig. S3 | Hydraulic zoning and sensor placement of the three networks not shown in Fig. 3 (L-Town, City H and KY4). As Fig. 3 of the main text (Leiden partitions drawn as space-filling territories; colours encode zone identity only): (a) L-Town, K = 25 zones with the 33 pressure gauges of the BattLeDIM benchmark; (b) the City H municipal model, K = 25 zones with 38 sensors; (c) KY4, K = 25 zones with 40 degree-placed sensors. Grey lines are pipes, red dots pressure sensors, dark squares reservoirs and tanks. 34 ConfigurationEffect Full contractconfounder false-dispatch 1/250 No differential head (leak-only) confounder false-dispatch 50/250 Loosened contract (existence + residual only) decision precision 81.2% (548 acted, 103 false dispatches) No Occam/BIC penaltydemand anomalies mis-typed as leaks 9/100 (full system 1/100); confounder false-dispatch 1/250 (full 1/250); decision precision 93.0% (full 93.6%) Active sensing: random reveal leak-partition accuracy 71.3% (no active sensing 70.5%, discriminative 74.5%) Table S5 | Split-conformal selective prediction on EXA7. Realized test risk and coverage at each target risk level, using the residual-derived confidence as the nonconformity score on the mixed test set (Ï = 0.05 m); distribution-free control holds when the realized risk is at or below the target. Target risk Realized test risk Coverage 5%0.6%36.6% 10%5.7%44.1% Distribution-free risk control holds (realized risk below target at both levels). Table S6 | Per-leak diagnostic outcomes for all 33 BattLeDIM L-Town ground-truth leaks. Competition- generated SCADA diagnosed against the nominal network model. For each leak: onset type, true zone(s), peak onset signature max|âp|, leak-existence posterior, top-one margin, accept/abstain outcome, predicted zone and correctness (a tick marks a correct dispatch). Pipe TypeTrue zone(s) max|âp| (m) Existence Margin OutcomePred. zone Correct p257 incipient230.160.280.00 ABSTAINEDâ p461 incipient190.020.040.00 ABSTAINEDâ p232 incipient8,110.120.240.02 ABSTAINEDâ p427 incipient160.050.060.00 ABSTAINEDâ p673 abrupt41.151.001.00 ACTED4â p810 incipient141.010.001.00 ABSTAINEDâ p628 incipient110.170.230.01 ABSTAINEDâ p538 abrupt6,240.400.990.15 ACTED6â p866 abrupt10.400.520.15 ACTED1â p31 incipient00.160.010.00 ABSTAINEDâ p654 incipient110.230.020.04 ABSTAINEDâ p183 abrupt50.380.960.04 ABSTAINEDâ p158 abrupt150.410.620.00 ABSTAINEDâ p369 abrupt20.430.740.05 ABSTAINEDâ p523 abrupt240.430.980.02 ABSTAINEDâ p827 abrupt70.581.000.18 ACTED7â p280 abrupt00.320.570.23 ABSTAINEDâ p653 incipient110.030.040.00 ABSTAINEDâ p710 abrupt150.150.280.01 ABSTAINEDâ p514 abrupt30.230.480.01 ABSTAINEDâ p331 abrupt20.270.140.07 ABSTAINEDâ p193 incipient140.170.300.00 ABSTAINEDâ p277 incipient230.500.100.02 ABSTAINEDâ p142 abrupt110.400.350.46 ABSTAINEDâ p680 abrupt40.750.001.00 ABSTAINEDâ p586 incipient220.290.010.09 ABSTAINEDâ p721 incipient150.670.001.00 ABSTAINEDâ p800 incipient10.340.010.07 ABSTAINEDâ p123 incipient80.780.001.00 ABSTAINEDâ p455 incipient210.430.020.02 ABSTAINEDâ 35 Pipe TypeTrue zone(s) max|âp| (m) Existence Margin OutcomePred. zone Correct p762 incipient120.680.001.00 ABSTAINEDâ p426 abrupt160.610.001.00 ABSTAINEDâ p879 incipient1,140.560.170.72 ABSTAINEDâ Summary: coverage 12% (4 acted), decision precision 100%, forced top-1 zone accuracy 15%. Table S7 | Riskâcoverage frontier on BattLeDIM L-Town. Coverage and decision precision as the leak- existence acceptance threshold is swept over the 33 ground-truth leaks ranked by existence posterior; each row is one distinct operating point on the frontier. Existence threshold n acted Coverage Decision precision 1.0100%100% 1.0026%100% 0.9939%100% 0.98412%75% 0.96515%80% 0.74618%67% 0.62721%57% 0.57824%50% 0.52927%56% 0.481030%50% 0.351133%45% 0.301236%42% 0.281339%38% 0.281442%36% 0.241545%33% 0.231648%31% 0.171752%29% 0.141855%28% 0.101958%26% 0.062061%25% 0.042164%24% 0.042267%23% 0.022370%22% 0.022473%21% 0.012679%19% 0.012782%19% 0.0033100%15% At matched coverage (4 acted) the multi-predicate contract reaches 100% vs 75% for a scalar existence threshold (it vetoes p523). Table S8 | Standard in-silico protocol on the three transfer networks (City H, City D and KY4). Headline metrics under the same scenario generator, noise model (Ï = 0.05 m) and metrics as the EXA7 headline run; mean± s.d. over n = 5 random seeds (110 mixed events per seed). City H: 921 nodes, 25 zones, 38 sensors. City D: 542 nodes, 15 zones, 23 sensors placed by the greedy detection-coverage program, whose objective uses only the pre-simulated leak library and raises library actionable coverage (clean |âp| â„ 0.45 m) from 29.6% to 34.7%. KY4 (public Kentucky benchmark): 959 nodes, 1156 pipes, 25 zones, 40 degree-placed sensors (one per âŒ24 nodes, half the EXA7 density). 36 MetricCity HCity DKY4 Forced retrieval Top-136.0 ± 4.2% 44.7 ± 4.1% 81.3 ± 4.9% Leak-partition accuracy (no active sensing)61.0 ± 5.5% 43.3 ± 3.9% 86.7 ± 5.8% Leak-partition accuracy (with active sensing) 66.7 ± 5.3% 44.7 ± 4.3% 88.7 ± 3.0% Decision precision at the operating point91.5 ± 3.8% 83.1 ± 11.0% 96.4 ± 2.9% Coverage at the operating point25.6 ± 1.5% 20.0 ± 3.7% 34.4 ± 1.7% Coverage at 100% precision5.1 ± 7.6%3.3 ± 2.6% 14.2 ± 16.7% Table S9 | Independent language-model audit and dual-model pipeline. Auditor catch rate on corrupted evidence packages, false-alarm rate on genuine packages and temperature-0 decision stability, together with the fully dual-model configuration, from real ollama calls; per-call transcripts are in artifacts/llm_transcripts_*.jsonl. QuantityValue Auditor modeldeepseek-v4-pro:cloud Catch rate on corrupted packages (n=16)100% · A, unsupported assertion100% · B, fabricated exclusion100% · C, inflated evidence100% False-alarm rate on genuine packages (n=16)0% Decision stability (temperature-0 repeats)100% Dual-model pipelinegpt-oss:120b-cloud planner + deepseek-v4-pro:cloud auditor Accept/abstain agreement with deterministic pipeline (n=16) 100% Correct decisions (deterministic / dual-model)88% / 88% Example gpt-oss-120b planner outputs (varied, discriminative): - demand=False, sensor=False, valve=False: âAll deviations modest; no pattern for demand, sensor, or valve.â - demand=True, sensor=False, valve=True: âWidespread large negative deviations across nearly all sensorsâ - demand=False, sensor=False, valve=True: âWidespread large negative drops suggest valve mis-state, not isolated faultsâ - demand=True, sensor=False, valve=True: âBroad pressure drop across most sensors suggests demand or valve issue.â Table S10 | One-at-a-time sensitivity of the goal-contract thresholds on EXA7. Pooled decision precision and coverage over the extended mixed test set (n = 850 events, five seeds,Ï = 0.05 m; the same pooled set as Tables S1âS2) as each acceptance threshold is varied around its operating value (existenceÏ_e = 0.5, marginÎŽ = 0.12, alternative-exclusionα = 0.20, residual gateÏ_max = 3, region R_max = 60 nodes) with the others held at nominal; the per-event evidence rows are generated once and the accept/abstain gate is re-evaluated analytically per setting. ThresholdValueDecision precision Coverage n acted Existence Ï_e0.393.6%46.0%391 Existence Ï_e0.493.6%46.0%391 Existence Ï_e0.5 (nominal)93.6%46.0%391 Existence Ï_e0.693.6%46.0%391 Existence Ï_e0.793.6%46.0%391 Existence Ï_e0.893.8%45.9%390 Existence Ï_e0.995.7%44.2%376 Margin ÎŽ0.0491.1%47.4%403 37 ThresholdValueDecision precision Coverage n acted Margin ÎŽ0.0892.7%46.5%395 Margin ÎŽ0.12 (nominal)93.6%46.0%391 Margin ÎŽ0.1694.6%45.5%387 Margin ÎŽ0.294.8%45.4%386 Margin ÎŽ0.2495.3%45.1%383 Alt-exclusion α0.199.1%39.6%337 Alt-exclusion α0.1597.7%41.6%354 Alt-exclusion α0.2 (nominal)93.6%46.0%391 Alt-exclusion α0.2592.3%48.9%416 Alt-exclusion α0.391.2%50.7%431 Residual Ï_max2.093.8%45.9%390 Residual Ï_max2.593.6%46.0%391 Residual Ï_max3.0 (nominal)93.6%46.0%391 Residual Ï_max3.593.6%46.0%391 Residual Ï_max4.093.6%46.0%391 Region R_max (nodes) 2589.9%8.1%69 Region R_max (nodes) 4093.2%38.0%323 Region R_max (nodes) 60 (nominal)93.6%46.0%391 Region R_max (nodes) 8093.6%46.0%391 Region R_max (nodes) 10093.6%46.0%391 Across all 28 one-at-a-time settings, pooled decision precision spans 89.9â99.1% (nominal 93.6%). Table S11 | Detectability and outcome by leak-severity band for the City D field register. Per-band summary over the 194 audited 2025 work orders (audited real-location node mapping; twin-simulated pressures,Ï = 0.15 m field noise): number of events, median clean peak signature, forced top-1 zone accuracy, coverage and acted-cohort decision precision. Leak-rate band (L s â1 ) n Median clean max|âp| (m) Forced top-1 Coverage Decision precision [0,0.05)730.000310%0% n/a (0 acted) [0.05,0.1)220.00080%5% 0% [0.1,0.3)420.002510%0% n/a (0 acted) [0.3,1)410.009520%2% 100% >=1160.027525%19% 67% Across the register the median clean signature is 1.9 m and no event reaches the 0.45 m actionabil- ity floor. Under the transfer preset the contract dispatches excavation on 5 of 194 events (60% acted precision) and raises 2% false alarms on 50 no-leak controls; the stricter audit preset (existence â„ 0.7) dispatches 0 of 194 and admits 0 of 50 controls. Forced top-1 accuracy is 11.9%. Table S12 | Controlled severity sweep on the City D network. Single leaks injected at a fixed seeded set of 120 candidate nodes from 2 to 50 L s â1 : median clean peak signature, forced top-1 zone accuracy, coverage and acted-cohort decision precision at each injected rate (twin-simulated). 38 Injected rate (L s â1 ) Median clean max|âp| (m) Forced top-1 Coverage Decision precision 20.02311%3%0% 50.05917%7%38% 100.11928%10%67% 200.24840%22%89% 350.45444%33%78% 500.67349%33%90% On this stiff, well-pressurized network the median signature clears the noise floor only near 10â20 L s â1 ; the entire field register (Table S11) lies below 4 L s â1 . Table S13 | City D register: pressure-information ceiling and the flow-balance survey tier. Ceiling: with a sensor at every one of the 541 junctions, the median best-possible clean signature over the 194 register events is 0.0023 m; 5 events clear the 0.15 m (1Ï) level and 1 the 0.45 m floor, so no sensor placement can make this register pressure-actionable (the strict any-time bound gives the same floor counts). Under a district-adjacency tolerance the forced retrieval prediction lands in or adjacent to the true district in 41/194 events, against aâŒ24% chance rate: forced guessing does not beat chance even with the tolerance. Survey tier: district net-inflow deltas are twin-computed per event with source feeds credited to the receiving district (mass-balance identity verified, median ratio 1.000; noiseless argmax correct in 194/194); nightly meter uncertaintyÏ_f is averaged over each orderâs real work-order window (â€14 nights); one seeded noise realization per event; the district with the largest observed rise is survey-dispatched if it clears u·Ï_f/ â W. 50 no-leak control campaigns per setting. Ï_f (L s â1 )u Survey dispatched Coverage District precision Controls FA 0.053.0109/19456%108/109 (99%)0/50 0.053.4105/19454% 105/105 (100%)0/50 0.103.092/19447%91/92 (99%)0/50 0.103.485/19444%85/85 (100%)0/50 0.203.066/19434%65/66 (98%)0/50 0.203.457/19429%57/57 (100%)0/50 Excavation-tier coverage stays at 2.6% under the transfer preset (zero under the audit preset); the survey tier is the principal recovery path for this register. Table S14 | Demand-ratio sensitivity of the City D field tiers. The vendored modelâs demands are the 2016 base scaled by the evidence-backed nine-year ratio 1.168459 (Methods). Sweeping the overall demand ratio across the update workbookâs own hydraulic-sensitivity band re-runs the full ceiling and flow computation of Table S13 at each level (194 events per ratio; the 1.168459 leg reproduces the committed ceiling artifact and serves as the regression anchor). The excavation ceiling stays roughly two orders of magnitude below the 0.15 m floor and the survey-tier detection count is invariant at every ratio, ruling out demand miscalibration as a cause of the field-leg limits. Detection counts use the deterministic sizing rule (true-district inflow rise â„ u·Ï_f/ â W, u = 3.4,Ï_f = 0.10 L s â1 , W = min(window days, 14)). Ratio on 2016 base Min baseline pressure (m) Ceiling median (m) Ceiling p90 (m) â„0.15 m â„0.45 m Mass-balance ratio Survey detected 0.832.590.00160.02883/194 1/194 1.00085/194 1.031.310.00200.03474/194 1/194 1.00085/194 1.130.590.00220.03765/194 1/194 1.00085/194 1.168459 (adopted) 30.050.00230.03965/194 1/194 1.00085/194 1.328.830.00250.04335/194 1/194 1.00085/194 No ratio in the plausible band changes the excavation conclusion or the survey-tier detection count; the demand level is not the binding constraint on the field leg. 39 Table S15 | Does the language-model auditor generalize beyond its enumerated rules? The auditor prompt (Supplementary Methods S6) enumerates five rejection rules, and each of the three corruption classes of Table S9 trips one of them. This follow-up re-uses the same 16 clean ACCEPTED EXA7 packages (identical selection and seeds) and adds four corruption classes that pass every one of the five rules field by field but are jointly impossible: D, a margin larger than the leak-existence probability; E, an alternative listed with a higher posterior than the top hypothesis; F, posteriors summing to well over one; G, an empty candidate region. Three auditors are compared on the same packages: RULES, the five prompt rules implemented literally in code; the language model with the paperâs prompt verbatim (as-is); and the language model with the paperâs prompt plus one clause asking it to reject any other internal inconsistency, nothing enumerated (open; the added clause reads: âthe summary is internally inconsistent in ANY other way: quantities that cannot jointly hold in a valid probabilistic evidence summary, or a recommendation that could not be acted on.â). The models are the paperâs auditor (deepseek-v4-pro:cloud) and, as a second opinion of a different family, the executor plannerâs model (gpt-oss:120b-cloud); every call is committed as a transcript. Cells give rejected/total; the clean column is the false-alarm count. Stability is the temperature-zero agreement over 3 repeats on eight out-of-taxonomy packages. AuditorClean (false alarms) In- taxonomy A+B+C D margin > existence E alternative outranks top F poste- riors > 1 G empty region Out-of- taxonomy total Stability RULES (five prompt rules, code) 0/1648/480/160/160/160/160/641.000 (de- terministic) deepseek-v4- pro:cloud, prompt as-is 0/1648/480/162/16 (2 fail-safe) 0/160/162/641.000 deepseek-v4- pro:cloud, prompt open 1/16 (1 fail-safe) 48/4816/1616/1616/167/16 (6 fail-safe) 55/641.000 gpt-oss:120b-cloud, prompt as-is 0/1648/480/160/160/160/160/641.000 gpt-oss:120b-cloud, prompt open 0/1648/480/1611/1611/160/1622/640.958 Read across the rows. With the paperâs prompt verbatim the language model behaves as a rule- follower (the prompt ends âotherwise reject=falseâ) and rejects essentially nothing outside the enu- merated rules, exactly like the code checker. One added clause, without enumerating any new rule, changes that: deepseek-v4-pro:cloud (as-is): out-of-taxonomy 0/64 by judgement, judged false alarms on the genuine packages 0/16; deepseek-v4-pro:cloud (open): out-of-taxonomy 49/64 by judgement, judged false alarms on the genuine packages 0/16; gpt-oss:120b-cloud (as-is): out-of- taxonomy 0/64 by judgement, judged false alarms on the genuine packages 0/16; gpt-oss:120b-cloud (open): out-of-taxonomy 22/64 by judgement, judged false alarms on the genuine packages 0/16. Rejections marked fail-safe are parse failures defaulting to reject and are not counted as judgement. The stronger auditor therefore supplies a generalizing consistency check that a fixed rule list does not, catching every arithmetic impossibility with no judged false alarm, while the pragmatic empty- region class largely passes; it may only tighten the hard predicates and never replace them. In an earlier round of this test the same open auditor rejected four genuine packages for an arithmetic inconsistency that turned out to be a real defect in the packages (Discussion); the run reported here uses the corrected packages. Data provenance. EXA7, KY4 and City H are simulation benchmarks evaluated under one standard in-silico protocol. L-Town uses the public BattLeDIM SCADA, which the competition organizers generated from a perturbed copy of the network model rather than measured in the field, against the nominal model. The City D field leg uses the utilityâs own network model and its audited 2025 repair register (real work orders, audited real-location node mapping); pressures and district inflows are twin-simulated with field noise because no SCADA exists for these events. No measured utility telemetry is used anywhere in this study: the L-Town series were generated by the competition organizers from a perturbed copy of the network model, and all other observations, 40 including every City D pressure and district inflow, are twin-simulated. No quantity is inherited from prior work. 41