{"product": "AquaState", "version": "WRI-2.0", "country": {"iso2": "AD", "iso3": "AND", "name": "Andorra", "region": "Europe", "subregion": "Southern Europe", "lat": 42.5, "lon": 1.5, "bbox": [1.38, 42.38, 1.62, 42.62], "has_outline": false, "population": 81938, "area_km2": 468.0, "demand_mm3_day": 0.25, "data_mode": "cached", "last_refresh": "2026-11-19T15:02:28.758377+00:00"}, "scenario": {"rain": "forecast", "demand_factor": 1.0, "horizon_days": 14, "hypothetical": false, "label": "Forecast"}, "generated_at": "2026-11-19T15:12:26.217914+00:00", "formula": "WRI = \u03a3 w\u1d62\u00b7S\u1d62 \u2212 0.15 \u00d7 max(0, 35 \u2212 min(S\u1d62)). The score is the current-state score; the horizon verdict is reported separately and never rewrites it.", "weights": {"buffer": 0.34, "soil": 0.18, "groundwater": 0.14, "forecast": 0.14, "trend": 0.2}, "base_index": 63.1, "horizon_gate": {"applied": false, "score_unchanged": true, "secured": true, "base_index": 63.1, "headline_status": "ok", "headline_label": "OK until rain", "provisional": false, "reason": "A forecast-backed refill covers the remaining gap before the emergency reserve is reached; the score is reported at its current/scenario value and is not rewritten by the horizon gate."}, "pillars": [{"key": "buffer", "label": "Storage buffer", "value": 100.0, "weight": 0.34, "weight_pct": 34.0, "contribution": 34.0, "formula": "B = 100 \u00d7 [\u03a3 d\u1d62 \u00d7 min(1, cover_days\u1d62 / 90)^0.85] / \u03a3 d\u1d62", "substitution": "\u03a3 d\u1d62 = 0.25 Mm\u00b3/day; demand-weighted buffer = 100.0; aggregate runway = 272.1 days", "inputs": [{"label": "Usable stored water", "value": 70.4, "unit": "Mm\u00b3"}, {"label": "Aggregate net burn", "value": 0.259, "unit": "Mm\u00b3/day"}, {"label": "Aggregate runway", "value": 272.1, "unit": "days"}, {"label": "Target runway", "value": 90, "unit": "days"}], "source": "Public dam inventory + mass-balance reconstruction", "source_url": "/sources/", "source_kind": "reference/modeled", "confidence": 0.45, "interpretation": "How long the usable stored water can serve the allocated demand at the current net burn. The score reaches 100 at a 90-day runway."}, {"key": "soil", "label": "Soil moisture", "value": 40.63, "weight": 0.18, "weight_pct": 18.0, "contribution": 7.31, "formula": "M = 0.7 \u00d7 percentile(GWETTOP) + 0.3 \u00d7 [50 + 50 \u00d7 tanh((current \u2212 normal)/max(0.05, 0.25 \u00d7 normal))]", "substitution": "current = 0.495; normal = 0.606; percentile = 50; anomaly = -0.73\u03c3", "inputs": [{"label": "7-day surface wetness", "value": 0.495, "unit": "fraction"}, {"label": "Same-window normal", "value": 0.606, "unit": "fraction"}, {"label": "Percentile rank", "value": 50, "unit": "%"}, {"label": "Normalised anomaly", "value": -0.73, "unit": "\u03c3"}], "source": "NASA POWER / MERRA-2 surface soil wetness (GWETTOP)", "source_url": "https://power.larc.nasa.gov/", "source_kind": "NASA POWER GWETTOP", "confidence": 0.9, "interpretation": "Surface soil wetness compared with the same calendar window in the prior ten years. It is an antecedent-condition signal, not a reservoir level.", "history": [{"date": "2026-07-21", "value": 0.24}, {"date": "2026-07-22", "value": 0.25}, {"date": "2026-07-23", "value": 0.31}, {"date": "2026-07-24", "value": 0.29}, {"date": "2026-07-25", "value": 0.29}, {"date": "2026-07-26", "value": 0.28}, {"date": "2026-07-27", "value": 0.28}, {"date": "2026-07-28", "value": 0.26}, {"date": "2026-07-29", "value": 0.25}, {"date": "2026-07-30", "value": 0.23}, {"date": "2026-07-31", "value": 0.23}, {"date": "2026-08-01", "value": 0.23}, {"date": "2026-08-02", "value": 0.26}, {"date": "2026-08-03", "value": 0.28}, {"date": "2026-08-04", "value": 0.32}, {"date": "2026-08-05", "value": 0.32}, {"date": "2026-08-06", "value": 0.49}, {"date": "2026-08-07", "value": 0.41}, {"date": "2026-08-08", "value": 0.42}, {"date": "2026-08-09", "value": 0.42}, {"date": "2026-08-10", "value": 0.39}, {"date": "2026-08-11", "value": 0.47}, {"date": "2026-08-12", "value": 0.42}, {"date": "2026-08-13", "value": 0.39}, {"date": "2026-08-14", "value": 0.38}, {"date": "2026-08-15", "value": 0.47}, {"date": "2026-08-16", "value": 0.5}, {"date": "2026-08-17", "value": 0.43}, {"date": "2026-08-18", "value": 0.4}, {"date": "2026-08-19", "value": 0.4}, {"date": "2026-08-20", "value": 0.42}, {"date": "2026-08-21", "value": 0.46}, {"date": "2026-08-22", "value": 0.41}, {"date": "2026-08-23", "value": 0.42}, {"date": "2026-08-24", "value": 0.54}, {"date": "2026-08-25", "value": 0.45}, {"date": "2026-08-26", "value": 0.43}, {"date": "2026-08-27", "value": 0.42}, {"date": "2026-08-28", "value": 0.41}, {"date": "2026-08-29", "value": 0.41}, {"date": "2026-08-30", "value": 0.4}, {"date": "2026-08-31", "value": 0.4}, {"date": "2026-09-01", "value": 0.4}, {"date": "2026-09-02", "value": 0.39}, {"date": "2026-09-03", "value": 0.39}, {"date": "2026-09-04", "value": 0.38}, {"date": "2026-09-05", "value": 0.38}, {"date": "2026-09-06", "value": 0.38}, {"date": "2026-09-07", "value": 0.37}, {"date": "2026-09-08", "value": 0.37}, {"date": "2026-09-09", "value": 0.43}, {"date": "2026-09-10", "value": 0.39}, {"date": "2026-09-11", "value": 0.38}, {"date": "2026-09-12", "value": 0.38}, {"date": "2026-09-13", "value": 0.38}, {"date": "2026-09-14", "value": 0.37}, {"date": "2026-09-15", "value": 0.37}, {"date": "2026-09-16", "value": 0.38}, {"date": "2026-09-17", "value": 0.38}, {"date": "2026-09-18", "value": 0.38}, {"date": "2026-09-19", "value": 0.37}, {"date": "2026-09-20", "value": 0.37}, {"date": "2026-09-21", "value": 0.36}, {"date": "2026-09-22", "value": 0.36}, {"date": "2026-09-23", "value": 0.36}, {"date": "2026-09-24", "value": 0.35}, {"date": "2026-09-25", "value": 0.35}, {"date": "2026-09-26", "value": 0.35}, {"date": "2026-09-27", "value": 0.35}, {"date": "2026-09-28", "value": 0.35}, {"date": "2026-09-29", "value": 0.45}, {"date": "2026-09-30", "value": 0.42}, {"date": "2026-10-01", "value": 0.41}, {"date": "2026-10-02", "value": 0.45}, {"date": "2026-10-03", "value": 0.43}, {"date": "2026-10-04", "value": 0.41}, {"date": "2026-10-05", "value": 0.41}, {"date": "2026-10-06", "value": 0.45}, {"date": "2026-10-07", "value": 0.46}, {"date": "2026-10-08", "value": 0.45}, {"date": "2026-10-09", "value": 0.41}, {"date": "2026-10-10", "value": 0.39}, {"date": "2026-10-11", "value": 0.38}, {"date": "2026-10-12", "value": 0.38}, {"date": "2026-10-13", "value": 0.37}, {"date": "2026-10-14", "value": 0.35}, {"date": "2026-10-15", "value": 0.34}, {"date": "2026-10-16", "value": 0.33}, {"date": "2026-10-17", "value": 0.38}, {"date": "2026-10-18", "value": 0.49}, {"date": "2026-10-19", "value": 0.52}, {"date": "2026-10-20", "value": 0.49}, {"date": "2026-10-21", "value": 0.46}, {"date": "2026-10-22", "value": 0.44}, {"date": "2026-10-23", "value": 0.42}, {"date": "2026-10-24", "value": 0.42}, {"date": "2026-10-25", "value": 0.42}, {"date": "2026-10-26", "value": 0.43}, {"date": "2026-10-27", "value": 0.41}, {"date": "2026-10-28", "value": 0.43}, {"date": "2026-10-29", "value": 0.42}, {"date": "2026-10-30", "value": 0.4}, {"date": "2026-10-31", "value": 0.4}, {"date": "2026-11-01", "value": 0.38}, {"date": "2026-11-02", "value": 0.38}, {"date": "2026-11-03", "value": 0.44}, {"date": "2026-11-04", "value": 0.5}, {"date": "2026-11-05", "value": 0.49}, {"date": "2026-11-06", "value": 0.47}, {"date": "2026-11-07", "value": 0.46}, {"date": "2026-11-08", "value": 0.45}, {"date": "2026-11-09", "value": 0.48}, {"date": "2026-11-10", "value": 0.48}, {"date": "2026-11-11", "value": 0.49}, {"date": "2026-11-12", "value": 0.54}, {"date": "2026-11-13", "value": 0.5}, {"date": "2026-11-14", "value": 0.5}, {"date": "2026-11-15", "value": 0.49}, {"date": "2026-11-16", "value": 0.49}], "percentile": 50.0}, {"key": "groundwater", "label": "Underground reserve", "value": 42.05, "weight": 0.14, "weight_pct": 14.0, "contribution": 5.89, "formula": "G = 0.6 \u00d7 percentile(GWETROOT) + 0.4 \u00d7 trend_score(Sen / Mann\u2013Kendall)", "substitution": "root-zone percentile 50; trend score 30; no measured aquifer record loaded", "inputs": [{"label": "Aquifer systems", "value": "\u2013", "unit": "count"}, {"label": "Primary data", "value": "Root-zone proxy", "unit": ""}], "source": "NASA POWER root-zone wetness proxy (no aquifer inventory)", "source_url": "/sources/", "source_kind": "proxy", "confidence": 0.42, "interpretation": "Abstraction pressure and water-table direction for mapped aquifers. Fossil systems are not renewable on management timescales.", "aquifers": []}, {"key": "forecast", "label": "Forecast opportunity", "value": 41.87, "weight": 0.14, "weight_pct": 14.0, "contribution": 5.86, "formula": "F = 100 \u00d7 min(1, (P14 / max(1, Pnormal14)) / 1.25)", "substitution": "P14 = 15.0 mm; normal 14-day rain = 28.6 mm; ratio = 0.52", "inputs": [{"label": "14-day forecast rain", "value": 15.0, "unit": "mm"}, {"label": "10-year same-window normal", "value": 28.6, "unit": "mm"}, {"label": "Rain scenario", "value": "Forecast", "unit": ""}], "source": "Open-Meteo 16-day forecast + NASA POWER 10-year normal", "source_url": "https://open-meteo.com/", "source_kind": "fallback", "confidence": 0.35, "interpretation": "Near-term rainfall opportunity relative to the ten-year normal for the same fortnight. It is an opportunity signal, not a guarantee. Missing data is neutral, not dry."}, {"key": "trend", "label": "Storage trend", "value": 50.0, "weight": 0.2, "weight_pct": 20.0, "contribution": 10.0, "formula": "T = 50 + (100 \u00d7 clamp(0.5 + \u03b2/4, 0, 1) \u2212 50) \u00d7 (1 \u2212 p)", "substitution": "Sen \u03b2 = +0.00% capacity/year; Mann\u2013Kendall p = 0.927465; n = 11", "inputs": [{"label": "Sen slope", "value": 0.0, "unit": "% cap/yr"}, {"label": "Mann\u2013Kendall p", "value": 0.927465, "unit": ""}, {"label": "Annual observations", "value": 11, "unit": "years"}], "source": "Mass-balance storage history; Sen's slope + Mann\u2013Kendall", "source_url": "/methodology/", "source_kind": "modeled", "confidence": 0.8, "interpretation": "The direction of the ten-year storage trajectory, shrunk toward neutral when the Mann\u2013Kendall test is not significant. Positive slope means recovery.", "history": [{"year": 2016, "storage_pct": 70.25}, {"year": 2017, "storage_pct": 100.0}, {"year": 2018, "storage_pct": 100.0}, {"year": 2019, "storage_pct": 100.0}, {"year": 2020, "storage_pct": 100.0}, {"year": 2021, "storage_pct": 96.12}, {"year": 2022, "storage_pct": 100.0}, {"year": 2023, "storage_pct": 99.53}, {"year": 2024, "storage_pct": 93.64}, {"year": 2025, "storage_pct": 100.0}, {"year": 2026, "storage_pct": 100.0}], "slope": {"per_year": 0.0, "pct_per_year": 0.0, "p_value": 0.927465, "significant": false, "n": 11}}], "horizon": {"state": "secured", "verdict": "OK until rain", "headline": "OK until rain", "days_to_rain": 11, "rain_amount_mm": 9.6, "relief_threshold_mm": 7.8, "rain_event_window": {"start": "2026-11-27", "lag_days": 2}, "cover_days": 272.1, "min_projected_ratio": 90.4, "projected_storage_pct": 96.1, "emergency_ratio_pct": 3.0, "post_relief_ok": true, "post_relief_ratio_pct": 92.1, "ratio_at_relief_pct": 95.0, "post_relief_net_balance_mm3": -2.13, "refill_gain_mm3": 1.5, "refill_needed_mm3": 1.4, "reserve_days": 8.6, "covered_to_relief": true, "runway": [{"date": "2026-11-19", "storage_pct": 97.42, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-11-20", "storage_pct": 97.06, "rain_mm": 3.04, "threshold_pct": 3.0}, {"date": "2026-11-21", "storage_pct": 96.7, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-11-22", "storage_pct": 97.02, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-11-23", "storage_pct": 96.66, "rain_mm": 2.33, "threshold_pct": 3.0}, {"date": "2026-11-24", "storage_pct": 96.3, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-11-25", "storage_pct": 96.46, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-11-26", "storage_pct": 96.1, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-11-27", "storage_pct": 95.74, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-11-28", "storage_pct": 95.38, "rain_mm": 1.68, "threshold_pct": 3.0}, {"date": "2026-11-29", "storage_pct": 95.02, "rain_mm": 7.91, "threshold_pct": 3.0}, {"date": "2026-11-30", "storage_pct": 95.03, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-01", "storage_pct": 96.43, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-02", "storage_pct": 96.08, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-03", "storage_pct": 95.72, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-04", "storage_pct": 95.36, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-05", "storage_pct": 95.0, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-06", "storage_pct": 94.65, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-07", "storage_pct": 94.29, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-08", "storage_pct": 93.93, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-09", "storage_pct": 93.58, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-10", "storage_pct": 93.22, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-11", "storage_pct": 92.86, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-12", "storage_pct": 92.5, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-13", "storage_pct": 92.15, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-14", "storage_pct": 91.79, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-15", "storage_pct": 91.43, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-16", "storage_pct": 91.08, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-17", "storage_pct": 90.72, "rain_mm": 0.0, "threshold_pct": 3.0}, {"date": "2026-12-18", "storage_pct": 90.36, "rain_mm": 0.0, "threshold_pct": 3.0}], "reservoirs": [{"id": 75, "name": "National reference storage pool", "cover_days": 272.1, "days_to_rain": 11, "usable_ratio": 0.88, "min_projected_ratio": 0.95, "major": true, "local_relief_threshold_mm": 7.8, "status": "covered"}], "alerts": [], "simulation_note": "45-day daily balance. Forecast rain is used for days 0-15; zero rain is assumed after day 16. The runoff lag is 2 days. Screening response = rain \u00d7 (capacity/300) \u00d7 0.60, where capacity/300 is Mm\u00b3 per mm."}, "narrative": {"headline": "OK until rain", "headline_label": "OK until rain", "summary": "Stored water covers 272 days of demand. Rain runoff arrives in 11 days, bringing about 10 mm. The forward reserve stays above the emergency threshold, so the horizon verdict is OK. The current-state score is 63.1/100.", "bottleneck": "The weakest pillar is Soil moisture at 41/100.", "status": "OK", "condition": "conditional on the forecast", "country": "Andorra"}, "data_quality": {"confidence": 0.58, "label": "Medium", "mode": "cached", "fallback": true, "proxy": true, "notes": ["Reservoir inventory is a national reference pool, not a dam list.", "Groundwater uses a labelled root-zone proxy; no aquifer inventory is loaded for this country."]}, "sources": [{"key": "climate", "name": "NASA POWER / MERRA-2", "what": "10-year precipitation and soil wetness at the demand-weighted reservoir centroid", "kind": "live", "source": "NASA POWER / MERRA-2", "fetched_at": "2026-11-19T15:02:28.182588+00:00", "url": "https://power.larc.nasa.gov/"}, {"key": "forecast", "name": "Open-Meteo", "what": "16-day precipitation, ET0 and temperature forecast", "kind": "fallback", "source": "Synthetic fallback", "fetched_at": "2026-11-19T15:02:28.683345+00:00", "url": "https://open-meteo.com/"}, {"key": "inventory", "name": "Public dam inventory", "what": "Reservoir names, locations and screening capacities", "kind": "synthetic", "source": "National reference pool", "fetched_at": null, "url": "https://en.wikipedia.org/wiki/List_of_dams_and_reservoirs_in_Algeria"}, {"key": "storage", "name": "Mass-balance reconstruction", "what": "Current live storage and annual end-of-year history", "kind": "modeled", "source": "NASA POWER precipitation + allocated demand + ET0", "fetched_at": "2026-11-19T15:02:28.758377+00:00", "url": "/methodology/"}, {"key": "outline", "name": "Natural Earth 1:110m", "what": "Country outline for the map and offline fallback", "kind": "reference", "source": "Natural Earth public domain", "fetched_at": null, "url": "https://www.naturalearthdata.com/"}], "ai": {"policy": {"enabled": false, "allow_subindex_adjustment": false, "max_adjustment": 5.0, "core_formula_mutable": false, "default_behavior": "advisory-only"}, "slots": [{"id": 4, "name": "anomaly-explanation-agent", "stage": "anomaly_explanation", "description": "Reserved: flags an unexplained jump or divergence for analyst review.", "enabled": false, "max_delta": 0.0, "weight": 0.0, "contract_version": "1.0", "endpoint": "", "metadata": {"mutates_core": false, "status": "reserved"}}, {"id": 3, "name": "confidence-calibration-agent", "stage": "confidence_calibration", "description": "Reserved: proposes a separate confidence adjustment from source agreement. Never changes the score.", "enabled": false, "max_delta": 5.0, "weight": 1.0, "contract_version": "1.0", "endpoint": "", "metadata": {"mutates_core": false, "status": "reserved"}}, {"id": 2, "name": "horizon-narrative-agent", "stage": "horizon_narrative", "description": "Reserved: turns the deterministic horizon simulation into a plain-language briefing.", "enabled": false, "max_delta": 0.0, "weight": 0.0, "contract_version": "1.0", "endpoint": "", "metadata": {"mutates_core": false, "status": "reserved"}}, {"id": 1, "name": "reservoir-context-agent", "stage": "post_subindex_advice", "description": "Reserved: explains anomalous reservoir storage against local operations context. Advisory only.", "enabled": false, "max_delta": 0.0, "weight": 0.0, "contract_version": "1.0", "endpoint": "", "metadata": {"mutates_core": false, "status": "reserved"}}, {"id": 5, "name": "scenario-critic-agent", "stage": "post_subindex_advice", "description": "Reserved: argues against the current scenario and lists missing evidence. Advisory only.", "enabled": false, "max_delta": 0.0, "weight": 0.0, "contract_version": "1.0", "endpoint": "", "metadata": {"mutates_core": false, "status": "reserved"}}], "contract": "Agent suggestions are advisory only. Core formula, inputs, pillars, horizon verdict and score are immutable by contract.", "policy_reference": {"allow_subindex_adjustment": false, "max_adjustment": 5.0, "core_formula_mutable": false, "requires_rationale": true, "requires_confidence": true, "audit_all_suggestions": true, "default_behavior": "advisory-only"}}, "ai_trace": {"enabled": false, "policy": {"enabled": false, "allow_subindex_adjustment": false, "max_adjustment": 5.0, "core_formula_mutable": false, "default_behavior": "advisory-only"}, "contributions": [], "slots": [{"id": 4, "name": "anomaly-explanation-agent", "stage": "anomaly_explanation", "description": "Reserved: flags an unexplained jump or divergence for analyst review.", "enabled": false, "max_delta": 0.0, "weight": 0.0, "contract_version": "1.0", "endpoint": "", "metadata": {"mutates_core": false, "status": "reserved"}}, {"id": 3, "name": "confidence-calibration-agent", "stage": "confidence_calibration", "description": "Reserved: proposes a separate confidence adjustment from source agreement. Never changes the score.", "enabled": false, "max_delta": 5.0, "weight": 1.0, "contract_version": "1.0", "endpoint": "", "metadata": {"mutates_core": false, "status": "reserved"}}, {"id": 2, "name": "horizon-narrative-agent", "stage": "horizon_narrative", "description": "Reserved: turns the deterministic horizon simulation into a plain-language briefing.", "enabled": false, "max_delta": 0.0, "weight": 0.0, "contract_version": "1.0", "endpoint": "", "metadata": {"mutates_core": false, "status": "reserved"}}, {"id": 1, "name": "reservoir-context-agent", "stage": "post_subindex_advice", "description": "Reserved: explains anomalous reservoir storage against local operations context. Advisory only.", "enabled": false, "max_delta": 0.0, "weight": 0.0, "contract_version": "1.0", "endpoint": "", "metadata": {"mutates_core": false, "status": "reserved"}}, {"id": 5, "name": "scenario-critic-agent", "stage": "post_subindex_advice", "description": "Reserved: argues against the current scenario and lists missing evidence. Advisory only.", "enabled": false, "max_delta": 0.0, "weight": 0.0, "contract_version": "1.0", "endpoint": "", "metadata": {"mutates_core": false, "status": "reserved"}}], "status": "disabled"}, "latest_snapshot": {"id": 53, "created_at": "2026-11-19T15:02:28.852349+00:00", "base_index": 63.1, "final_index": 63.1, "status": "ok", "verdict": "OK until rain"}}