Shock engine
"From where the world is today, close a strait: who runs short first?" The engine answers that for 8 goods and about 220 countries, with no randomness and no LLM. Same inputs, same numbers, every time (CI checks it). Since engine 2.0 (28 Nov 2026) it starts from today's world, where Hormuz has carried only part of its pre-war oil and LNG since March 2026.
How good is it? Scored against simple rules, not against itself (Backtest): on five past disruptions it was never tuned on, in a test preregistered and frozen before any tuning, its prices were no better than simple rules (4% better on the path, worse a month ahead) and its who-rations calls were worse than a one-line exposure rule. The preregistered verdict is FAIL. Read its numbers as a physical what-if (who depends on what, through which strait), not as a forecast. A prospective forecast for December 2026 to February 2027 is frozen and will be scored as the months close.
- Code:
pipeline/src/worldciv_pipeline/engine.py(stdlib + PyYAML only) andengine_inputs.py(builds the inputs). - Assumptions:
config/shock.yaml, every number with asource:or taggedassumption. - Output:
web/public/data/shock/:now(today, Hormuz as it is),now-reopen,now-<chokepoint>-<days>(a closure on top of today; for Hormuz: shut completely), the same closures<chokepoint>-<days>from the 2024 baseline (as if Hormuz were open),replay-2022andbacktest-2026. All 94 run in ~40 s. - Run:
make shock, orcd pipeline && uv run worldciv engine-inputs && uv run worldciv shock --all;uv run worldciv shock --id now-malacca-30prints the ranked list (--id backtest-2026prints the backtest).
The model
Everything is in days of normal consumption per country and good.
- Who needs what. Yearly use C and home production P per country: oil and gas from OWID (Energy Institute), wheat and rice from USDA PSD, minerals and chips as apparent use (below). Import reliance m = (C - P) / C, between 0 and 1.
- From whom. Import partner shares w from BACI 2024 (tonnes for oil, gas, wheat, rice; dollars for the rest), partners under 0.2% dropped. Gas splits into LNG (by sea) and pipeline gas (never through a strait).
- How it travels. 20 sea basins joined by 43 lanes with real sailing distances (searoute, at 12 knots). A sea flow takes the shortest path from any of the exporter's ports to any of the importer's. Land neighbours trade overland, and so does a landlocked country with its neighbours' neighbours. Pipeline gas is overland. Chips fly.
- Close a strait for D days. If a flow's path uses it and another path exists, the cargo is rerouted: it is missing for the extra sailing time (at most D days). If there is no other way (the Gulf, the Black Sea, the Baltic), it is cut for D days. Either way the gap starts L days in, L being the sailing time from the strait to the importer: ships already past the gate still arrive.
- Bypass pipelines. Saudi East-West, UAE ADCOP and Iraq-Turkey (for Hormuz) and SUMED (for Suez) carry part of each cut flow: what they already carry never stops, and their spare capacity starts landing after a ramp-up plus the sailing time from the pipeline's outlet.
- Taiwan. Closing the Taiwan Strait is defined as a quarantine of Taiwan: all sea and air cargo in or out stops, and ships bound elsewhere go east of Taiwan.
- Cut. A country's cut on day t = m x the sum of its partners' shares that are missing that day. A closure can be partial: each day has a closed share (1 for a scenario closure, the observed share for the real 2026 path).
- Spot replacement (2.0). A cut buyer bids for replacement cargoes from the swing supplier (US Gulf for oil, LNG and wheat; Thailand/Vietnam basin for rice). They land after a week to buy plus the sailing time from there, so a cut that is still on Λ days later is replaced: until then the buyer draws its stocks. Replacement must reach the buyer: if its only sea way in is shut, it comes by truck or rail through a land neighbour's open port (not gas). Minerals and chips have no spot market that works within months: no replacement.
- Price (2.0). The market must clear the lost supply (minus emergency stock releases, plus what buyers buy back to refill stocks): demand falls as p^-ed (constant elasticity), supply outside the cut rises as p^es. Gas is priced by LNG: a buyer bids for, and cuts, only its LNG, or all its imports once it is cut; LNG supply cannot grow within months (es = 0).
- Who rations (2.0). Buyers under an IMF lending programme (SBA, EFF or ECF) at the shock's start hold their energy import bill, so their energy imports fall as 1/p: they ration rather than outbid. Everyone else pays and trims use as p^-ed. A country rations when its stocks run dry with a gap left, or when it is budget-capped and its use falls 7% or more (the IEA's emergency trigger). A price-led cut by a buyer who can pay is demand response, not rationing.
- Stocks. Each country starts with its stock in days of use, draws the part of its gap that price does not close, refills once its gap is covered (gas 0.3, oil 0.03, grain 0.1 days of use per day), and IEA members draw their share of a collective release. Running out = the first day stocks hit 0 with a gap still open.
- Ranking. Pairs with a peak cut of at least 5% (or rationing), at least 1 million people and a non-trivial share of world use: run-outs first (earliest), then rationing (earliest, then most people x deepest cut), then lowest cover.
Today's world (2.0). history in config/shock.yaml holds the real Hormuz path as the share of pre-war volume
moving through it: oil 8% in March 2026, 24% Apr-Jun, 42% Jul-Sep, 65% in October, 45% from 20 November; LNG 11%, 8%, 13%,
then 50% in November; food cargoes allowed from 27 March. Sources are EIA's quarterly Hormuz flows, Kpler, Energy
Intelligence and Bloomberg (in the config). IMF PortWatch's ship counts (3-4 transits a day since August against ~90 in
2025) are not used: tankers sail dark and trade ship-to-ship off Oman, so counts undercount the oil that moves. The
engine runs this path from 1 February 2026 with the IEA's 400 million barrel release (16 March to 30 September) and the
East-West pipeline outage (14-22 September), and every now scenario continues from its state on 28 November 2026: stocks
drawn and refilled, prices where they are. Day 0 is today; price 1.00 is February 2026.
The 2022 replay uses the same machinery with explicit cuts on the world of 2021 (BACI 2021 flows, OWID 2021 gas, PSD 2021/22 wheat, EU storage 30% full): Russian pipeline gas to the EU-27 tapers as it really did (32% cut in March 2022 to 83% from August, monthly EU imports against the 2021 mean; LNG kept), Ukraine's wheat exports stop for 159 days (24 Feb to the first Black Sea Grain Initiative ship on 1 Aug 2022). Budget-capped buyers are those with an IMF programme on 28 Feb 2022.
Assumptions
| What | Value | Source | Drives |
|---|---|---|---|
| Ship speed | 12 knots | ICCT 2020 (tankers, bulkers ~11 kn); Baltic Exchange VLCC 13 kn laden | sailing days, gap timing |
| Sea distances | 43 lanes, nautical miles | searoute-py 1.6.0 on the Eurostat/ORNL MARNET network; pipeline/scripts/sea_lanes.py |
routes, detours |
| Basin ports, country ports | 20 basins, ~190 countries | assumption from each country's main seaports | which flows pass which strait |
| Export terminals | SAU, ARE, IRN oil from the Gulf; RUS oil from Baltic/Black Sea/Arctic; RUS wheat from the Black Sea; US oil and LNG from the Gulf Coast; KAZ via CPC, AZE via BTC | EIA country briefs (assumption) | Gulf flows all meet Hormuz |
| Saudi East-West bypass | 2.0 Mb/d in use, 2.16 Mb/d spare, 20-day ramp | EIA 2025 (2.6 Mb/d Saudi+UAE spare), IEA, Reuters 2026 | Hormuz oil |
| UAE ADCOP bypass | 1.06 in use, 0.44 Mb/d spare, 7-day ramp | Kpler via CNBC 2026; ramp assumption | Hormuz oil |
| Iraq-Turkey bypass | 0.12 in use, 0.38 Mb/d spare, 30-day ramp | The National, 17 Nov 2026; ramp assumption | Hormuz oil |
| SUMED | 1.0 in use, 1.5 Mb/d spare, 35-day ramp | Egypt Independent 2026 | Suez oil |
| Oil stocks, IEA members | days of net imports x m, Feb 2026 (pre-war) | IEA oil stocks API | oil cover |
| Oil stocks, others | USA 78.5, CHN 85, IND 60, TWN 150, PAK 20, BGD 21, LKA 30 days | EIA, EIA WPSR, PIB, Taipei Times, Arab News, bd-report, FT.lk | oil cover |
| Oil stocks, EU outside the IEA table | 90 days of net imports | EU Directive 2009/119 | oil cover |
| Oil stock cap | 200 days | assumption: hubs (Netherlands 526, Estonia 13,776 IEA days) capped at Japan's level | oil cover |
| EU gas storage | AGSI working volume x 90% full (start of winter), max 180 days | AGSI+, Reg. 2022/1032 | gas cover |
| EU members without storage | 54.8 days (15% of yearly use held abroad) | Reg. 2022/1032 Art. 6c | gas cover |
| Gas stocks, Asia | JPN 21, KOR 7, TWN 11, CHN 46, PAK 3, BGD 3 days | METI via nextlabs, IEA Korea, Taipei Times, NEA; PAK/BGD assumption (FSRUs only) | gas cover |
| Grain stocks | PSD ending stocks / use x 365; EU members get the EU-wide days | USDA PSD | wheat, rice cover |
| Mineral stocks | JPN 60, KOR 45.5 days | METI, KOMIR | mineral cover |
| Default stocks | oil 30, gas 10, grain 30, minerals 17, chips 40 days | assumption (OGRA 20-day rule); BIS titanium survey 2.4 weeks; US Commerce chip RFI 40 days (2019) | everyone else |
| Elasticities (demand / supply) | oil 0.10/0.10, gas 0.18/0 (LNG supply fixed within months), grain 0.06/0.10, rare earths 0.12/0.14, lithium 0.11/0.33, cobalt 0.17/0.22, chips 0.10/0.05 | Caldara et al. 2019, Labandeira 2017, Hausman & Kellogg 2015, Roberts & Schlenker 2013, USGS OFR 2025-1047; chips assumption | price, demand response |
| Chip production shares | CHN 24, TWN 18, KOR 17, JPN 17, USA 10, Europe 8, other 7% (Europe/other split by fab count) | SIA/BCG 2024 | chips apparent use |
| Mineral production shares | USGS MCS 2026 | sources/minerals.py |
mineral apparent use |
| Partner fixes where BACI is blind | DEU, AUT, POL gas 2021; BGD, KWT, TUR, ARE gas 2024 | BMWK, Austrian parliament, EC Poland, IGU 2025, EPDK via Başkentgaz, Dolphin | gas partners |
| Sea-route exceptions | FRA-BRA, FRA-SUR, RUS-LTU, RUS-POL, AGO-COG, AGO-COD, CHN-IND, CHN-PAK trade by sea | assumption (exclaves, Himalayan borders) | overland rule |
| Ranking floor | peak cut 5%, 1M people, >= 0.02% of world use (0.2% for minerals and chips) | assumption: tiny industrial buyers are noise | ranking only |
| 2022 replay storage | EU 30% full on 24 Feb 2022 | AGSI+ | replay gas cover |
| Swing supplier, replacement lag | US Gulf (oil, LNG, wheat), SE Asia (rice); 7 days to buy + sailing time | EIA STEO Jun and Nov 2026: record US exports in April 2026, US LNG 17.6 bcf/d; Dawn | when a cut is replaced |
| Budget-capped buyers | IMF SBA/EFF/ECF on 28 Feb 2026 (35 countries) and 28 Feb 2022 (32) | IMF lending commitments; fixed bill checked against Pakistan's LNG imports, -56% in Jan-Oct 2026 (Pakistan Today) | who rations |
| Rationing threshold | 7% use cut (budget-capped) or stocks dry | IEA International Energy Program, 1974 | rationing flag |
| Refill rate | gas 0.3, oil 0.03, grain 0.1 days of use per day | AGSI+ 2022 refill (gas); assumption (oil, grain) | stocks after a shock, price |
| IEA 2026 release | 400 million barrels, 16 Mar-30 Sep 2026 | EIA STEO Apr 2026, EIA energy security data; end date assumption | today's oil price, IEA stocks |
| Hormuz 2026 path | oil 8/24/42/65/45%, LNG 11/8/13/50% of pre-war volume | EIA, Kpler (WSJ), Energy Intelligence, Bloomberg; see history |
today's world, backtest |
| Price cap | 4x | assumption (2022 TTF peak ~4x its 2021 mean) | extreme scenarios |
| Units | 1 TWh/yr of oil = 1,726 b/d; 1 t LNG = 13.6 MWh; 1 toe = 11.63 MWh | EI Statistical Review conversion factors | bypass sizing, BACI tonnes |
Data choices. EU wheat and rice: PSD has one EU row. Production is split to members by MapSPAM 2020 output, consumption by apparent use (production + BACI net imports, intra-EU trade included), and every member gets the EU-wide stock days. PSD ending stocks of exactly 0 (Kuwait, Qatar) mean "not tracked" and get the default. Minerals and chips have no public per-country consumption: production = USGS (minerals) or SIA/BCG (chips) world share x world export value, and because these goods come in many grades, exports do not offset imports: use = production kept at home + imports, reliance = imports / use. Countries missing from OWID get consumption = production + BACI net imports.
Known limits
- No seasons. Use is flat through the year, so the engine has no winter gas draw and no summer refill: its EU storage path for winter 2026-27 is flat, which reality will not be.
- Who rations is a weak rule. Budget-capped = IMF programme; on the backtests it flags many programme countries that were not hit and misses Vietnam, Myanmar, Egypt, India and every rice-ban case; a one-line exposure rule scores better.
- Prices are too calm when markets panic. The engine has no forward-looking fear, winter-storage scramble or
inventory-scarcity premium: it underestimates gas in autumn 2026 (x1.45 vs real x1.9-2.5) and in Aug-Oct 2022, and
oil in Sep-Oct 2026 (pipeline attack, stock rebuild). So it also underestimates how much rich buyers cut (EU gas use
-6.5% in the replay vs -17.7% real, Aug 2022-Mar 2023). Adding a scarcity premium or a refill scramble did not fix it
without new free knobs (
docs/backtest/HILLCLIMB.md). - No port, pipeline or canal capacity cap on rerouting or replacement: every ship finds a berth.
- Supply growth since the baseline year (new US LNG trains, Guyana, Brazil) is not in the flows; the price response stands in.
- Gas and grain have one market price each, though they are regional.
- Stocks: all usable, oil from February 2026, EU gas storage 40% on 1 Feb 2026 (assumption), grain at the marketing-year low point; PSD's "0" (Kuwait, Qatar) means untracked and gets the 30-day default.
- BACI is reported trade: re-export hubs look like big users; missing partners are patched only where it mattered (table).
- Chips: one homogeneous good by direct exporter; a blockade's second-round effect is understated.
- Northern Sea Route, Kiel Canal and Iran's Goreh-Jask line are left out.
Backtest
uv run worldciv events scores the engine on real disruptions, and uv run worldciv validate (CI) prints the scores.
Dev events (the engine was built on them): 2026 Hormuz and 2022 Russian gas plus Ukraine wheat. Test events, frozen in
config/events-test.yaml with a hash before any tuning: 2019 Abqaiq, 2021 Ever Given, 2023-24 Red Sea, 2023 India rice
ban, 2023-24 Panama drought (research and sources: docs/backtest/test-events/). Baselines: persistence (the pre-shock
price held), an exposure rule (1 + k x the share of the market cut), and, a month ahead, last month's real price. Who was
hit is scored over every country of at least 1M people, against an observed list (rationing, physical shortage or
emergency supply action, researched for all countries), not a hand-picked few. Engine 2.0's old checks (prices within
±0.35 of the real index) are gone: a constant passed them.
Fixed targets (28 Nov 2026). The 2022 gas price was Protergia's consumption-month index, one month behind the market
(its August 169.8 is July's front month); it is now the TTF front-month monthly average (World Bank Pink Sheet in EUR:
August 235.96, AleaSoft's figure). The 2022 EU demand cut was the engine's Aug-Nov against Eurostat's Aug-Mar; both are now
Aug 2022 to Mar 2023 against normal use (Eurostat's -17.7%, recomputed from nrg_cb_gasm). Three labels are kept apart:
modelled stocks exhausted (the engine's stocks hit zero with a gap left), predicted rationing (the engine's call)
and observed rationing, shortage or emergency action (the real list). The live 2026 replay still has Pakistan's
modelled gas stocks exhausted on day 45: that is a model state, shown as such; what Pakistan really did was ration.
Hill-climb. Fifteen variants on the dev events only (docs/backtest/HILLCLIMB.md): storage refill to the legal 90%
with a 1 November deadline, long-run demand elasticities, inventory-scarcity premia, a who-rations rule by income and by
replacement cargoes. None cleared the preregistered keep bar, so the engine went to the test unchanged.
Scorecard
| Engine error | Best simple rule | Ratio (bar 0.90) | Month ahead: engine / last month | Who was hit, F1: engine / exposure rule | |
|---|---|---|---|---|---|
| 2026 Hormuz (dev, tuned on) | 0.339 | 0.317 | 1.071 | 0.919 | see below |
| 2022 Russian gas (dev, tuned on) | 0.288 | 0.334 | 0.863 | 0.993 | see below |
| 5 test disruptions (never seen) | 0.140 | 0.145 | 0.961 | 1.061 | 0.0 / 0.169 |
Verdict on the preregistered test: FAIL. (Rules in the repo's docs/backtest/PREREG.md; the test set was frozen with a hash before any tuning and run once.) Prices from the shock's start are 4% better than the best simple rule, short of the 10% bar; a month ahead, the engine adds error to last month's price; the five most exposed countries swap under a plausible elasticity change (Suez); and its who-rations calls lose to a one-line exposure rule. The one clear win: India's 2023 rice ban, where the engine's price path is at least a third closer than either baseline. So read the engine's numbers as a physical what-if, not a forecast.
Test set: five disruptions the engine was never tuned on
Each method gets the real shock path (a strait's closed share, an exporter's cut), none gets the outcome. Persistence = the pre-shock price held; exposure rule = 1 + 3.933 x the share of the market physically cut (k fitted on dev); a month ahead = the engine's month-on-month change applied to last month's real price, against last month's price. Prices: World Bank Pink Sheet monthly means.
| Event | Price | Engine | Persistence | Exposure rule | Engine, month ahead | Last month | Verdict |
|---|---|---|---|---|---|---|---|
| 2019: Abqaiq-Khurais attack cuts Saudi crude exports | Oil (Brent) | 0.052 | 0.055 | 0.055 | 0.047 | 0.052 | INCONCLUSIVE |
| 2021: Ever Given blocks the Suez Canal for six days | Oil (Brent) | 0.048 | 0.065 | 0.052 | 0.068 | 0.037 | FAIL |
| Gas (TTF) | 0.189 | 0.209 | 0.196 | 0.149 | 0.147 | ||
| 2023-24: Houthi attacks divert Bab-el-Mandeb traffic round the Cape | Oil (Brent) | 0.119 | 0.117 | 0.117 | 0.046 | 0.043 | FAIL |
| Gas (TTF) | 0.274 | 0.263 | 0.275 | 0.087 | 0.080 | ||
| Wheat (US HRW) | 0.095 | 0.093 | 0.093 | 0.032 | 0.032 | ||
| 2023-24: India bans non-basmati white rice exports | Rice (Thai 5%) | 0.086 | 0.174 | 0.128 | 0.056 | 0.056 | INCONCLUSIVE |
| 2023-24: drought caps Panama Canal transits | Gas (TTF) | 0.208 | 0.211 | 0.208 | 0.140 | 0.139 | FAIL |
| Wheat (US HRW) | 0.184 | 0.184 | 0.184 | 0.034 | 0.034 | ||
| All five | mean of 9 series | 0.140 | 0.152 | 0.145 | 0.073 | 0.069 | FAIL |
Who was hit, pooled over the five events (every country of 1M+ people): engine 0 right, 37 false alarms, 23 missed (F1 0.0); exposure rules E1 F1 0.148, E2 F1 0.169.
Frozen forecast: December 2026 to February 2027
Market snapshot of 2026-11-27, frozen and committed on 28 Nov 2026 (sha256 ee0e7a09e04b0f49), before any of these months began, from the now run (Hormuz stays as it is). Engine-anchored = today's price x the engine's change from today (the primary arm); engine-raw = its own level. It passes if it beats persistence and is within 1.25x the futures curve's error. The engine has no seasonal demand, so its EU storage path is flat: that will miss the winter draw, and we say so before it happens.
| Arm | 2026-12 | 2027-01 | 2027-02 | |
|---|---|---|---|---|
| Brent, USD/bbl | engine-anchored | 96.2 | 99.2 | 99.4 |
| persistence | 91.8 | 91.8 | 91.8 | |
| futures | 90.8 | 88.0 | 85.9 | |
| engine-raw | 90.2 | 93.0 | 93.1 | |
| TTF, EUR/MWh | engine-anchored | 81.1 | 80.6 | 80.6 |
| persistence | 83.2 | 83.2 | 83.2 | |
| futures | 83.0 | 82.4 | 82.4 | |
| engine-raw | 40.2 | 39.9 | 39.9 | |
| JKM, USD/MMBtu | engine-anchored | 26.5 | 26.3 | 26.3 |
| persistence | 27.2 | 27.2 | 27.2 | |
| futures | 27.2 | 27.2 | 27.2 | |
| engine-raw | 13.4 | 13.3 | 13.3 | |
| EU storage, % full (month end) | engine-anchored | 66.0 | 66.0 | 66.0 |
| persistence | 66.0 | 66.0 | 66.0 |
2026: the real Hormuz disruption (dev)
Oil (Brent), index 1 = 2026-02. Error (MAE): engine 0.225, persistence 0.465, exposure rule 0.253; a month ahead: engine 0.166, last month's price 0.225.
| Month | Real | Engine | Persistence | Exposure rule | Engine, month ahead | Last month |
|---|---|---|---|---|---|---|
| 2026-03 | 1.46 | 1.29 | 1.00 | 1.24 | 1.29 | 1.00 |
| 2026-04 | 1.69 | 1.38 | 1.00 | 1.31 | 1.56 | 1.46 |
| 2026-05 | 1.51 | 1.34 | 1.00 | 1.27 | 1.64 | 1.69 |
| 2026-06 | 1.20 | 1.34 | 1.00 | 1.27 | 1.51 | 1.51 |
| 2026-07 | 1.17 | 1.28 | 1.00 | 1.24 | 1.15 | 1.20 |
| 2026-08 | 1.28 | 1.23 | 1.00 | 1.24 | 1.13 | 1.17 |
| 2026-09 | 1.64 | 1.26 | 1.00 | 1.24 | 1.31 | 1.28 |
| 2026-10 | 1.76 | 1.29 | 1.00 | 1.16 | 1.68 | 1.64 |
Gas (TTF), index 1 = 2026-02. Error (MAE): engine 0.454, persistence 0.804, exposure rule 0.381; a month ahead: engine 0.306, last month's price 0.289.
| Month | Real | Engine | Persistence | Exposure rule | Engine, month ahead | Last month |
|---|---|---|---|---|---|---|
| 2026-03 | 1.63 | 1.29 | 1.00 | 1.43 | 1.29 | 1.00 |
| 2026-04 | 1.39 | 1.62 | 1.00 | 1.75 | 2.05 | 1.63 |
| 2026-05 | 1.46 | 1.65 | 1.00 | 1.75 | 1.41 | 1.39 |
| 2026-06 | 1.39 | 1.48 | 1.00 | 1.75 | 1.31 | 1.46 |
| 2026-07 | 1.66 | 1.46 | 1.00 | 1.71 | 1.37 | 1.39 |
| 2026-08 | 1.92 | 1.45 | 1.00 | 1.71 | 1.65 | 1.66 |
| 2026-09 | 2.32 | 1.45 | 1.00 | 1.71 | 1.92 | 1.92 |
| 2026-10 | 2.68 | 1.45 | 1.00 | 1.71 | 2.32 | 2.32 |
| Country | Observed | Model: rations | Model: stocks exhausted |
|---|---|---|---|
| Bangladesh | hit | day 29 | day 65 |
| Ethiopia | hit | day 29 | - |
| Sri Lanka | hit | day 29 | - |
| Nepal | hit | day 29 | - |
| Pakistan | hit | day 40 | day 45 |
| China | hit | - | - |
| Egypt | hit | - | - |
| France | hit | - | - |
| India | hit | - | - |
| Myanmar | hit | - | - |
| Mauritius | hit | - | - |
| S. Sudan | hit | - | - |
| Slovenia | hit | - | - |
| Vietnam | hit | - | - |
| Armenia | not hit | day 29 | - |
| Burkina Faso | not hit | day 29 | - |
| Central African Rep. | not hit | day 29 | - |
| Côte d'Ivoire | not hit | day 41 | - |
| Dem. Rep. Congo | not hit | day 30 | - |
| Gambia | not hit | day 29 | - |
| Guinea-Bissau | not hit | day 29 | - |
| Honduras | not hit | day 29 | - |
| Jordan | not hit | day 29 | - |
| Kuwait | not hit | day 214 | day 214 |
| Liberia | not hit | day 29 | - |
| Madagascar | not hit | day 29 | - |
| Mauritania | not hit | day 30 | day 74 |
| Senegal | not hit | day 29 | - |
| Sierra Leone | not hit | day 29 | - |
| El Salvador | not hit | day 29 | - |
| Somalia | not hit | day 29 | - |
| Togo | not hit | day 29 | - |
| Tanzania | not hit | day 29 | - |
| Ukraine | not hit | day 41 | - |
| Cambodia | unknown | - | - |
| Laos | unknown | - | - |
| Philippines | unknown | - | - |
| South Africa | unknown | - | - |
Engine 5 right, 20 false alarms, 9 missed. Exposure rule E1 (peak cut >= 10%): 9/26/5; E2 (E1 and poor or IMF): 5/11/9. Observed list: docs/backtest/test-events/rationing-2026.md, docs/backtest/2026-asia-importers.md and the country sections of https://en.wikipedia.org/wiki/2026_Iran_war_fuel_crisis (read 28 Nov 2026): PAK, BGD, LKA fuel quotas/load-shedding; VNM, MMR fuel rationing (IEA Energy Efficiency 2026); NPL half-filled LPG cylinders (Nepal Oil Corp, 13 Mar); EGY mandatory 9 pm shop closures + 1 WFH day; ETH fuel restrictions, diesel supply halved; MUS alternative fuel shipped from Singapore + electricity restrictions; SSD electricity rationing in Juba; IND LPG booking-interval limits and cylinder queues; SVN 50 L/day fuel cap (23 Mar); CHN refined-product export halt to secure domestic supply (c); FRA government diesel supply deal with the UAE, Oct 2026 (c). Not hits: JPN, KOR (IEA collective release only), THA (government-office WFH + advice), KEN (panic buying, no shortage), AUS/NZL (alert levels), USA, DEU, ITA.
2022: Russian gas to the EU, Ukraine's wheat (dev)
Gas (TTF), index 1 = 2022-02. Error (MAE): engine 0.489, persistence 0.642, exposure rule 0.545; a month ahead: engine 0.378, last month's price 0.395.
| Month | Real | Engine | Persistence | Exposure rule | Engine, month ahead | Last month |
|---|---|---|---|---|---|---|
| 2022-03 | 1.60 | 1.25 | 1.00 | 1.27 | 1.09 | 1.00 |
| 2022-04 | 1.24 | 1.21 | 1.00 | 1.31 | 1.55 | 1.60 |
| 2022-05 | 1.15 | 1.35 | 1.00 | 1.51 | 1.38 | 1.24 |
| 2022-06 | 1.32 | 1.39 | 1.00 | 1.59 | 1.18 | 1.15 |
| 2022-07 | 2.10 | 1.39 | 1.00 | 1.59 | 1.32 | 1.32 |
| 2022-08 | 2.88 | 1.48 | 1.00 | 1.71 | 2.24 | 2.10 |
| 2022-09 | 2.49 | 1.47 | 1.00 | 1.71 | 2.86 | 2.88 |
| 2022-10 | 1.65 | 1.47 | 1.00 | 1.71 | 2.49 | 2.49 |
| 2022-11 | 1.46 | 1.47 | 1.00 | 1.71 | 1.65 | 1.65 |
| 2022-12 | 1.42 | 1.44 | 1.00 | 1.67 | 1.43 | 1.46 |
| 2023-01 | 0.78 | 1.44 | 1.00 | 1.67 | 1.42 | 1.42 |
| 2023-02 | 0.64 | 1.44 | 1.00 | 1.67 | 0.78 | 0.78 |
| 2023-03 | 0.54 | 1.44 | 1.00 | 1.67 | 0.64 | 0.64 |
Wheat (US HRW), index 1 = 2022-02. Error (MAE): engine 0.088, persistence 0.149, exposure rule 0.123; a month ahead: engine 0.111, last month's price 0.098.
| Month | Real | Engine | Persistence | Exposure rule | Engine, month ahead | Last month |
|---|---|---|---|---|---|---|
| 2022-03 | 1.25 | 1.16 | 1.00 | 1.08 | 1.02 | 1.00 |
| 2022-04 | 1.27 | 1.21 | 1.00 | 1.08 | 1.30 | 1.25 |
| 2022-05 | 1.34 | 1.18 | 1.00 | 1.08 | 1.24 | 1.27 |
| 2022-06 | 1.18 | 1.16 | 1.00 | 1.08 | 1.31 | 1.34 |
| 2022-07 | 0.98 | 1.15 | 1.00 | 1.08 | 1.17 | 1.18 |
| 2022-08 | 0.98 | 1.01 | 1.00 | 1.00 | 0.86 | 0.98 |
| 2022-09 | 1.07 | 1.00 | 1.00 | 1.00 | 0.97 | 0.98 |
| 2022-10 | 1.12 | 1.00 | 1.00 | 1.00 | 1.07 | 1.07 |
| 2022-11 | 1.08 | 1.00 | 1.00 | 1.00 | 1.12 | 1.12 |
EU gas use, Aug 2022 to Mar 2023 (like-for-like with Eurostat's -17.7%): engine 6.5% lower: a miss, its prices stay too low. EU members whose modelled gas stocks run out: none (real: none).
| Country | Observed | Model: rations | Model: stocks exhausted |
|---|---|---|---|
| Pakistan | hit | day 29 | - |
| Bangladesh | hit | - | - |
| Djibouti | hit | - | - |
| Egypt | hit | - | - |
| Iraq | hit | - | - |
| Kenya | hit | - | - |
| Lebanon | hit | - | - |
| Sri Lanka | hit | - | - |
| Moldova | hit | - | - |
| Myanmar | hit | - | - |
| Tunisia | hit | - | - |
| Afghanistan | not hit | day 0 | - |
| Gabon | not hit | day 0 | - |
| Gambia | not hit | day 0 | - |
| Jordan | not hit | day 0 | - |
| Nepal | not hit | day 0 | - |
| Somalia | not hit | day 0 | - |
| Uganda | not hit | day 0 | - |
| Ukraine | unknown | - | - |
Engine 1 right, 7 false alarms, 10 missed. Exposure rule E1 (peak cut >= 10%): 6/27/5; E2 (E1 and poor or IMF): 5/6/6. Observed list: docs/backtest/test-events/rationing-2022.md: energy PAK, BGD (load-shedding, spot LNG unaffordable), LKA (QR fuel quotas), EGY (electricity rationing to export LNG), MMR (LNG-to-power suspension), KEN (fuel-station shortage), MDA (emergency gas procurement); wheat EGY, LBN, TUN (flour rationing/shortage), DJI, IRQ (emergency wheat supply). UKR left out: its shortages came from attacks on refineries, not the gas or wheat cut. No EU member rationed.
Sanity tests (uv run worldciv validate, also in CI)
- Determinism: hormuz-30 and replay-2022 rerun in memory equal the committed JSON.
- Hormuz 30 days: Japan, Korea, India and China lose more oil (peak cut and cover by day 30) than the US; Qatar's LNG shows in their gas; world oil shortfall peaks between 8% and 25%; oil price index above 1.3; bypass use within spare.
- 2022 replay: at least 3 of AUT, HUN, SVK, CZE, DEU, ITA, BGR, FIN, LVA, LTU in the 10 most-cut gas importers; NOR, USA, ESP, PRT gas cut under 10%; at least 3 of EGY, LBN, TUN, LBY, YEM, MAR, IDN, PAK, BGD, TUR in the 15 most-cut wheat importers; USA, CAN, AUS, RUS, ARG, FRA wheat uncut; gas cut all horizon and wheat for 159 days; both prices above 1.
- Monotonic: hormuz-60 never better than hormuz-30, and removing the bypasses never helps.
- Backtests (above): the test set and the frozen forecast are unchanged (hashes), two regression guards (Pakistan, Bangladesh or Sri Lanka flagged in 2026; no EU member's modelled gas stocks exhausted in 2022), and the honest scores as WARN lines while the engine misses the preregistered bar: prices vs baselines, who was hit vs the exposure rule, the 2022 EU demand cut, the test-set verdict.
- Every scenario file exists with the schema the web reads.
--selftestdrops the Hormuz lane label (test 2 must fail), removes the spot market (an EU member must run dry in 2022 again) and opens Hormuz in 2026 (no rationers: must fail).