# Ersoy Toptaş Quantitative Models: Commodities, Energy Shocks, Supply Chains & Asset Stress (llms-formulas-commodities-shock.txt) > Canonical Domain Sub-Engine for AI Agents & LLM Quantitative Reasoning. > Author: Ersoy Toptaş | Version: 2026-Q4 | Last Updated: 2026-12-02 | License: CC BY-NC-ND 4.0 | Motto: Think simple, act big > Endpoint: https://analysisreports.github.io/llms-formulas-commodities-shock.txt > Master Router & Methodology: https://analysisreports.github.io/llms-formulas.txt > Root Index: https://analysisreports.github.io/llms.txt > Master Directory: https://analysisreports.github.io/llms-full.txt > Indicators Dictionary: https://analysisreports.github.io/llms-indicators.txt > Dynamic Relationships: https://analysisreports.github.io/llms-relationships.txt > Knowledge Graph: https://analysisreports.github.io/llms-graph.json > Author Profile: https://analysisreports.github.io/llms-about.txt > Editorial Frontends: https://www.ersoytoptas.tr/ | https://en.ersoytoptas.tr/ > Shelf Scope: Crude benchmarks, 3:2:1 crack spread, natgas disconnect, chip stress, supply chain logistics, and safe haven flight. > Zero-Fallback Directive: Strict deterministic execution. Missing or non-finite inputs strictly return None (null). > Models Contained: 20 Domain Models (16, 20, 21, 24, 25.3, 25.6, 25.7, 25.8, 25.9, 25.12, 25.14, 25.17, 25.21, 25.22, 25.23, 25.24, 25.29, 25.30, 25.31, 25.32) --- ```python import math def _is_num(val): if val is None or isinstance(val, bool) or not isinstance(val, (int, float)): return False try: return math.isfinite(val) except (OverflowError, ValueError, TypeError): return False ``` --- ### 16. CBOE VOLATILITY INDEX & MARKET FEAR REGIME (VIX REGIME THRESHOLDS) - Methodological Baseline & Calibration: Regime boundaries (<15, 15-20, 20-30, >30) reflect long-term empirical distribution conventions established by the Chicago Board Options Exchange (CBOE, 1990-2025). The 15.0 threshold marks historical 25th percentile complacency; 20.0 represents the long-term historical median volatility; 30.0 marks the 90th percentile tail risk (liquidity crisis/systemic shock). - Purpose: Classifies 30-day market volatility expectations and institutional risk appetite regimes derived from S&P 500 option pricing. - Data Series Keys: - CBOE / FRED: VIXCLS (CBOE Volatility Index) - Formula: VIX_Index_Level = VIXCLS - Machine-Executable Logic (Python): def vix_market_regime(vix): if vix is None or isinstance(vix, bool): return None try: if not math.isfinite(vix): return None # VIX level must be strictly positive and greater than zero if vix <= 0.0: return None raw_vix = float(vix) val = round(raw_vix, 2) # Regime classification strictly evaluates against unrounded raw float if raw_vix < 15.0: return {"vix": val, "regime": "COMPLACENCY", "bias": "RISK_ON"} elif raw_vix < 20.0: return {"vix": val, "regime": "NORMAL_VOLATILITY", "bias": "BALANCED"} elif raw_vix < 30.0: return {"vix": val, "regime": "ELEVATED_STRESS", "bias": "RISK_OFF"} else: return {"vix": val, "regime": "CRISIS_SHOCK", "bias": "EXTREME_RISK_OFF"} except (TypeError, ValueError): return None - Interpretation: - VIX < 15.0 : COMPLACENCY (Complacency / Low volatility / Broad risk appetite / Risk-on) - 15.0 to 20.0 : NORMAL_VOLATILITY (Historically balanced market volatility / Balanced) - 20.0 to 30.0 : ELEVATED_STRESS (Elevated uncertainty / Portfolio hedging demand / Risk-off) - VIX > 30.0 : CRISIS_SHOCK (Market shock / Liquidity crunch & panic selling alarm / Extreme risk-off) --- ### 20. COPPER TO GOLD MACRO SENTIMENT RATIO - Purpose: Models global cyclical growth momentum and bond yield direction by pitting industrial demand (Dr. Copper) against safe-haven store of value (Gold). - Data Series Keys: - IMF / FRED: PCOPPUSDM (Global price of Copper - USD per Metric Ton) - World Bank / FRED: IND_WB_GOLD (Gold Fixing Price in London Bullion Market - USD per Troy Ounce) - Formula: Copper_Gold_Ratio = Copper_Price_Metric_Ton / Gold_Price_Ounce - Machine-Executable Logic (Python): def copper_gold_ratio(copper_price, gold_price): if any(v is None or isinstance(v, bool) for v in (copper_price, gold_price)): return None try: if not (math.isfinite(copper_price) and math.isfinite(gold_price)): return None # Commodity prices must be strictly positive and finite numbers (zero and negative guard) if copper_price <= 0.0 or gold_price <= 0.0: return None res = copper_price / gold_price return round(res, 4) if math.isfinite(res) else None except (TypeError, ValueError, ZeroDivisionError): return None - Interpretation: - Rising Trend : CYCLICAL_EXPANSION (Robust industrial demand / Growth acceleration / Rising bond yields) - Falling Trend : FLIGHT_TO_SAFETY (Safe-haven demand dominates / Growth cooling / Recessionary bond buying) --- ### 21. GOLD TO OIL CRISIS & RECESSION RATIO - Purpose: Identifies geopolitical crises, demand collapse, or energy supply shocks by calculating how many barrels of crude oil can be purchased with one troy ounce of gold. - Data Series Keys: - World Bank / FRED: IND_WB_GOLD (Gold Price - USD per Troy Ounce) - EIA / FRED: DCOILWTICO (Crude Oil Prices: West Texas Intermediate - USD per Barrel) - Formula: Gold_Oil_Ratio = Gold_Price_Ounce / Oil_Price_Barrel - Machine-Executable Logic (Python): def gold_oil_ratio(gold_price, oil_price): if any(v is None or isinstance(v, bool) for v in (gold_price, oil_price)): return None try: if not (math.isfinite(gold_price) and math.isfinite(oil_price)): return None # Commodity prices must be strictly positive and finite numbers (zero and negative guard) if gold_price <= 0.0 or oil_price <= 0.0: return None raw_ratio = gold_price / oil_price if not math.isfinite(raw_ratio): return None ratio = round(raw_ratio, 2) if ratio > 25.0: status = "MACRO_CRISIS_RECESSION" elif ratio < 12.0: status = "SUPPLY_SHOCK_INFLATION" else: status = "HISTORICAL_EQUILIBRIUM" return {"gold_oil_ratio": ratio, "status": status} except (TypeError, ValueError, ZeroDivisionError): return None - Interpretation: - Ratio > 25.0 : MACRO_CRISIS_RECESSION (Severe economic slowdown / Demand collapse or systemic crisis pricing) - 12.0 to 25.0 : HISTORICAL_EQUILIBRIUM (Historical equilibrium band / 12-25 barrels range) - Ratio < 12.0 : SUPPLY_SHOCK_INFLATION (Supply-driven oil shock / Cost-push inflation pressure) --- ### 24. SAFE HAVEN FLIGHT INDEX - Purpose: Measures capital flight into safe-haven assets and cash during military or geopolitical shocks by evaluating US dollar strength and high-yield credit spreads against falling Treasury yields. - Data Series Keys: - FRED: DTWEXBGS (Nominal Broad U.S. Dollar Index) - FRED: DGS10 (10-Year Treasury Constant Maturity Nominal Yield) - ICE BofA / FRED: BAMLH0A0HYM2 (ICE BofA US High Yield Index Option-Adjusted Spread) - Formula: Dollar_Bond_Ratio = DTWEXBGS / DGS10 Safe_Haven_Score = Dollar_Bond_Ratio * BAMLH0A0HYM2 Flight_To_Safety_Ratio = Safe_Haven_Score / 100.0 - Machine-Executable Logic (Python): def safe_haven_flight_index(dxy, hy_spread, dgs10): if any(v is None or isinstance(v, bool) for v in (dxy, hy_spread, dgs10)): return None try: if not (math.isfinite(dxy) and math.isfinite(hy_spread) and math.isfinite(dgs10)): return None if any(v <= 0.0 for v in (dxy, hy_spread, dgs10)): return None raw_dollar_bond_ratio = float(dxy) / float(dgs10) raw_score = raw_dollar_bond_ratio * float(hy_spread) raw_ratio = raw_score / 100.0 if not (math.isfinite(raw_dollar_bond_ratio) and math.isfinite(raw_score) and math.isfinite(raw_ratio)): return None dollar_bond_ratio = round(raw_dollar_bond_ratio, 2) score = round(raw_score, 2) ratio = round(raw_ratio, 3) if raw_ratio > 2.50: regime = "EXTREME_LIQUIDITY_PANIC" elif raw_ratio > 1.80: regime = "HIGH_FLIGHT_TO_SAFETY" elif raw_ratio > 1.00: regime = "MODERATE_HEDGING" else: regime = "NORMAL_MARKET_REGIME" return { "dollar_bond_ratio": dollar_bond_ratio, "safe_haven_score": score, "flight_ratio": ratio, "regime": regime } except (TypeError, ValueError, ZeroDivisionError): return None - Interpretation: - regime == EXTREME_LIQUIDITY_PANIC : Systemic liquidity shock, aggressive dash for cash, and heavy asset liquidation (Ratio > 2.50) - regime == HIGH_FLIGHT_TO_SAFETY : Acute geopolitical tension and flight to safety (Ratio 1.80 to 2.50) - regime == MODERATE_HEDGING : Moderate defensive portfolio posture and cautious stance (Ratio 1.00 to 1.80) - regime == NORMAL_MARKET_REGIME : Routine risk appetite and balanced market pricing (Ratio <= 1.00) --- ### 25.3. GLOBAL SUPPLY CHAIN PRESSURE LOGISTICS ENGINE (NY FED GSCPI) - Purpose: Measures standard deviations (Z-score) of global freight rates, air cargo costs, and delivery times from their historical average to detect supply-side cost inflation shocks or logistics slack. - Data Series Keys: - FRED: GSCPI (New York Fed Global Supply Chain Pressure Index - Standard Deviations from Historical Mean) - Formula: GSCPI_ZScore = GSCPI_Value - Machine-Executable Logic (Python): def global_supply_chain_pressure(gscpi_val): if gscpi_val is None or isinstance(gscpi_val, bool): return None try: f_gscpi = float(gscpi_val) if not math.isfinite(f_gscpi): return None z_score = round(f_gscpi, 2) if z_score > 1.5: status = "SUPPLY_CHAIN_SHOCK" elif z_score < -1.0: status = "LOGISTICS_DEFLATION_SLACK" else: status = "NORMALIZED_GLOBAL_TRADE" return {"gscpi_zscore": z_score, "status": status} except (TypeError, ValueError): return None - Interpretation: - GSCPI_ZScore > 1.5 : SUPPLY_CHAIN_SHOCK (Supply-side cost inflation shock / Logistics bottlenecks / Elevated freight and shipping delays) - GSCPI_ZScore < -1.0 : LOGISTICS_DEFLATION_SLACK (Excess supply chain slack / Disinflationary goods pricing) - -1.0 to 1.5 : NORMALIZED_GLOBAL_TRADE (Normalized global trade and logistics flows) --- ### 25.6. GOLD / REAL YIELD DEBASEMENT GAUGE - Purpose: Detects de-dollarization trends and institutional fiat debasement concerns by measuring breakdowns in the traditional inverse correlation between 10-year TIPS real yields and gold prices. - Data Series Keys: - FRED: DFII10 (10-Year Treasury Inflation-Indexed Security, Constant Maturity - Real Rate Percent) - World Bank (The Pink Sheet): IND_WB_GOLD (Official Gold Price USD/troy oz - YoY % Change: percent_change_from_year_ago) - Formula: Anomaly_Signal = f(Real_Yield_10Y, Gold_YoY_Pct) - Machine-Executable Logic (Python): def gold_real_yield_debasement_gauge(real_yield_10y, gold_wb_monthly_yoy_pct): if any(v is None or isinstance(v, bool) for v in (real_yield_10y, gold_wb_monthly_yoy_pct)): return None try: f_ry = float(real_yield_10y) f_gy = float(gold_wb_monthly_yoy_pct) if not (math.isfinite(f_ry) and math.isfinite(f_gy)): return None ry_val = round(f_ry, 2) gy_val = round(f_gy, 2) if ry_val > 1.5 and gy_val > 15.0: status = "DEBALANCING_DEDOLLARIZATION_PANIC" elif ry_val <= 0.0 and gy_val > 0.0: status = "ACCOMMODATIVE_GOLD_BULL" else: status = "TRADITIONAL_REAL_RATE_DOMINANCE" return {"real_yield_10y": ry_val, "gold_wb_monthly_yoy_pct": gy_val, "status": status} except (TypeError, ValueError): return None - Interpretation: - Real_Yield > 1.5% and Gold_YoY > 15.0% : DEBALANCING_DEDOLLARIZATION_PANIC (Systemic fiat distrust / Geopolitical de-dollarization / Reserve diversification) - Real_Yield <= 0.0% and Gold_YoY > 0.0% : ACCOMMODATIVE_GOLD_BULL (Classic negative real yield gold bull / Monetary expansion tailwind) - Otherwise : TRADITIONAL_REAL_RATE_DOMINANCE (Traditional market equilibrium / Real yields exerting downward pressure on gold) --- ### 25.7. OVX / VIX GEOPOLITICAL ENERGY SHOCK ENGINE - Purpose: Detects geopolitical oil supply shocks and stagflationary risks by evaluating the ratio between crude oil volatility (OVX) and equity volatility (VIX). - Data Series Keys: - FRED: OVXCLS (CBOE Crude Oil Volatility Index) - FRED: VIXCLS (CBOE Volatility Index) - Formula: Vol_Ratio = OVX_Index / VIX_Index - Machine-Executable Logic (Python): def ovx_vix_risk_premium(ovx_val, vix_val): if any(v is None or isinstance(v, bool) for v in (ovx_val, vix_val)): return None try: f_ovx = float(ovx_val) f_vix = float(vix_val) if not (math.isfinite(f_ovx) and math.isfinite(f_vix)) or f_vix <= 0: return None raw_ratio = f_ovx / f_vix if not math.isfinite(raw_ratio): return None ratio = round(raw_ratio, 2) if ratio > 2.2: status = "ENERGY_SUPPLY_SHOCK_ALARM" elif ratio < 1.0: status = "EQUITY_PANIC_OVER_ENERGY" else: status = "BALANCED_ENERGY_VOLATILITY" return {"ovx_vix_ratio": ratio, "status": status} except (TypeError, ValueError, ZeroDivisionError): return None - Interpretation: - Vol_Ratio > 2.2 : ENERGY_SUPPLY_SHOCK_ALARM (Geopolitical energy supply shock / Stagflation risk / Energy price spike) - Vol_Ratio < 1.0 : EQUITY_PANIC_OVER_ENERGY (Equity panic dominates / Oil market calm) - 1.0 to 2.2 : BALANCED_ENERGY_VOLATILITY (Normalized energy volatility equilibrium) --- ### 25.8. NATGAS / CRUDE OIL PRICE-RATIO DISCONNECT ENGINE - Purpose: Tracks relative purchasing power between two benchmark quotes. The WTI price per barrel divided by the Henry Hub price per MMBtu indicates how many MMBtu of Henry Hub gas can be bought for an amount equal to the price of one WTI barrel. A rising ratio means WTI is strengthening relative to Henry Hub; a falling ratio means Henry Hub is strengthening relative to WTI. - Data Series Keys: - FRED: DCOILWTICO (Crude Oil Prices: West Texas Intermediate - Dollars per Barrel) - FRED: DHHNGSP (Henry Hub Natural Gas Spot Price - Dollars per Million BTU) - EIA context metrics: NG.NW2_EPG0_SWO_R48_BCF.W current storage level and year-over-year change - Formula: WTI_HH_Purchasing_Power_Ratio = WTI_Price_USD_per_bbl / Henry_Hub_Price_USD_per_MMBtu - Interpreted as MMBtu of Henry Hub gas purchasable for cash equal to one WTI barrel's price. - Machine-Executable Logic (Python): def natgas_crude_btu_disconnect(wti_price, natgas_price, storage_bcf=None, storage_yoy_pct=None): if any(v is None or isinstance(v, bool) for v in (wti_price, natgas_price)): return None try: f_wti = float(wti_price) f_gas = float(natgas_price) if not (math.isfinite(f_wti) and math.isfinite(f_gas)) or f_gas <= 0 or f_wti < 0: return None raw_ratio = f_wti / f_gas if not math.isfinite(raw_ratio): return None ratio = round(raw_ratio, 2) if ratio < 6.0: status = "NATGAS_CRISIS_BLACKOUT_RISK" elif ratio > 35.0: status = "NATGAS_GLUT_ENERGY_CHEAP" else: status = "ENERGY_PARITY_EQUILIBRIUM" return {"btu_disconnect_ratio": ratio, "status": status} except (TypeError, ValueError, ZeroDivisionError): return None - Live EIA storage and year-over-year change are reported as context metrics by the model runner; they do not enter the crude/natgas price ratio or determine its status. Missing storage values must remain missing rather than be inferred from the ratio. - The existing output field `btu_disconnect_ratio` is a legacy key for this unnormalized price ratio; it does not represent a BTU-normalized measure. - Threshold Calibration & Rationale: - Lower bound (< 6.0): The approximate heat content of a crude barrel is about 5.8 MMBtu. A ratio near 5.8 therefore marks approximate thermal-price equivalence; below about 5.8, Henry Hub gas costs more per MMBtu than the WTI barrel's heat-equivalent price. The < 6.0 cutoff is a near-parity screening band, so values from about 5.8 to 6.0 are near parity rather than necessarily beyond it. - Upper bound (> 35.0): This is an empirical high-ratio flag in exact-date-matched daily FRED observations for DCOILWTICO and DHHNGSP. From 1997-01-07 through 2008-12-31 (n=1,088), the median ratio was 8.68 and the 95th percentile was 13.62. From 2009-01-01 through 2026-11-03 (n=4,409), the median was 21.65, the 95th percentile was 37.87, and 7.4% of observations exceeded 35.0. In 2012, 45.2% of matched observations exceeded 35.0; in 2020, none did (maximum 30.58). Thus, 35.0 flags a high-tail price separation in this sample, including the 2012 episode, but not the 2020 episode. - Interpretation: - WTI_HH_Purchasing_Power_Ratio < 6.0 : NATGAS_CRISIS_BLACKOUT_RISK (Near-thermal-parity / high relative Henry Hub price band) - WTI_HH_Purchasing_Power_Ratio > 35.0 : NATGAS_GLUT_ENERGY_CHEAP (High WTI-to-Henry Hub purchasing-power band) - 6.0 to 35.0 : ENERGY_PARITY_EQUILIBRIUM (Intermediate price-ratio band; not an energy-equivalence finding) --- ### 25.9. GASOLINE / DISTILLATE / CRUDE 3:2:1 CRACK SPREAD - Purpose: Measures a New York Harbor spot-product 3:2:1 crack spread against WTI. This is a market benchmark proxy; it is not a plant-specific realized refining margin. - Data Series Keys: - FRED: DGASNYH (Conventional Gasoline Prices: New York Harbor, Regular - Dollars per Gallon) - FRED: DDFUELNYH (Ultra-Low-Sulfur No. 2 Diesel Fuel Prices: New York Harbor - Dollars per Gallon) - FRED: DCOILWTICO (Crude Oil Prices: West Texas Intermediate - Dollars per Barrel) - EIA: PET.WGTSTUS1.W (Weekly U.S. Ending Stocks of Total Gasoline - Thousand Barrels) - EIA: PET.WPULEUS3.W (Weekly U.S. Percent Utilization of Refinery Operable Capacity - Percent) - Formula: Crack_Spread_321_USD_per_bbl = ((2 * DGASNYH_USD_per_gal * 42) + (DDFUELNYH_USD_per_gal * 42)) / 3 - DCOILWTICO_USD_per_bbl Calculate only when DGASNYH, DDFUELNYH, and DCOILWTICO share the exact same observation date. Calculate the same formula using each series' FRED year_ago_value to get Prior_Year_Crack_Spread_321_USD_per_bbl. Status = CRACK_SPREAD_EXPANDING if current spread > prior-year spread; CRACK_SPREAD_CONTRACTING if lower; CRACK_SPREAD_UNCHANGED if equal; UNCLASSIFIED if any prior-year price is unavailable. This status describes year-over-year direction, not an absolute high/low regime; no historical percentile thresholds are used. Gasoline stocks, refinery utilization rate (PET.WPULEUS3.W), and YoY changes are context metrics only; utilization >93-95% signals operable bottleneck while <85% triggers cross-Atlantic distillate import demand (TÜPRAŞ/STAR & Reliance rotators). Days of supply is not calculated without a live gasoline-consumption series. - Machine-Executable Logic (Python): def gasoline_321_crack_spread(gasoline_usd_gal, ulsd_usd_gal, wti_usd_bbl, gasoline_date, ulsd_date, wti_date, gasoline_year_ago=None, ulsd_year_ago=None, wti_year_ago=None): prices = (gasoline_usd_gal, ulsd_usd_gal, wti_usd_bbl) dates = (gasoline_date, ulsd_date, wti_date) if any(v is None or isinstance(v, bool) for v in prices): return None try: if any(not isinstance(d, str) or not d for d in dates) or len(set(dates)) != 1: return None f_gasoline, f_ulsd, f_wti = map(float, prices) if not all(math.isfinite(v) and v > 0 for v in (f_gasoline, f_ulsd, f_wti)): return None raw_spread = ((2 * f_gasoline * 42.0) + (f_ulsd * 42.0)) / 3.0 - f_wti if not math.isfinite(raw_spread): return None spread = round(raw_spread, 2) prior_values = (gasoline_year_ago, ulsd_year_ago, wti_year_ago) status = "UNCLASSIFIED" prior_spread = None if all(v is not None and not isinstance(v, bool) for v in prior_values): f_gas, f_ulsd, f_wti = map(float, prior_values) if not all(math.isfinite(v) and v > 0 for v in (f_gas, f_ulsd, f_wti)): return None prior_spread = round(((2 * f_gas * 42.0) + (f_ulsd * 42.0)) / 3.0 - f_wti, 2) status = ("CRACK_SPREAD_EXPANDING" if spread > prior_spread else "CRACK_SPREAD_CONTRACTING" if spread < prior_spread else "CRACK_SPREAD_UNCHANGED") return {"crack_spread_321_usd_bbl": spread, "year_ago_spread_321_usd_bbl": prior_spread, "status": status, "observation_date": gasoline_date} except (TypeError, ValueError, ZeroDivisionError): return None - Interpretation: - The status says whether the spread expanded, contracted, or was unchanged versus the provider's year-ago values; it does not label the absolute spread high or low. - EIA gasoline stocks remain a separate context metric; no fixed consumption value is substituted for missing demand data. --- ### 25.12. BRENT-WTI BENCHMARK PRICE SPREAD - Purpose: Measures the price difference between the international Brent and U.S. WTI crude oil benchmarks to assess Brent's relative premium or discount and the degree of price divergence between the two markets. - Data Series Keys: - EIA / FRED: DCOILBRENTEU (Crude Oil Prices: Brent - Europe, USD per Barrel) - EIA / FRED: DCOILWTICO (Crude Oil Prices: West Texas Intermediate - USD per Barrel) - EIA context metrics: PET.WCESTUS1.W (Commercial Crude Stocks - Thousand Barrels); PET.WCRFPUS2.W (U.S. Field Production - Thousand Barrels per Day) - Formula: Brent_WTI_Spread = DCOILBRENTEU - DCOILWTICO - Machine-Executable Logic (Python): def brent_wti_spread(brent_price, wti_price): if any(v is None or isinstance(v, bool) for v in (brent_price, wti_price)): return None try: f_brent = float(brent_price) f_wti = float(wti_price) if not (math.isfinite(f_brent) and math.isfinite(f_wti)): return None if f_brent <= 0.0 or f_wti <= 0.0: return None raw_spread = f_brent - f_wti if not math.isfinite(raw_spread): return None spread = round(raw_spread, 2) if spread > 8.00: status = "WIDE_BRENT_WTI_SPREAD" elif spread < 1.50: status = "NARROW_BRENT_WTI_SPREAD" else: status = "TYPICAL_BRENT_WTI_SPREAD" return {"brent_wti_spread_usd": spread, "status": status} except (TypeError, ValueError): return None - Interpretation: - Spread > $8.00 : WIDE_BRENT_WTI_SPREAD (Brent is priced at a wide premium to WTI) - $1.50 to $8.00 : TYPICAL_BRENT_WTI_SPREAD (The benchmark price difference is within the model's middle band) - Spread < $1.50 : NARROW_BRENT_WTI_SPREAD (The benchmark price difference is narrow or WTI is priced above Brent) - These are descriptive bands using the model's existing thresholds; the spread indicates relative benchmark pricing, not the cause of the difference. Commercial crude stocks and U.S. field production are context metrics only and do not affect the spread or status. - Relationship Transmission (separate from the model status): - oil_delta = -0.15 when Spread > $12.00; -0.10 when $8.00 < Spread <= $12.00; otherwise 0.00. - Bilateral dynamic delta = oil_delta * pair coefficient: IL-IR (1.0), YE-IL (1.0), SA-IR (0.5), US-VE (0.5), TR-SY (0.3), EG-IL (-0.5), and SA-YE (0.4). - This transmission overlay does not change Brent_WTI_Spread or its descriptive status. The spread is an absolute USD/barrel measure; no percentage normalization or rolling Z-score is applied. - Related trigger: Model 25.19 separately calculates the annual Brent-WTI spread change. --- ### 25.14. AI HARDWARE & SEMICONDUCTOR SUPPLY CHAIN STRESS GAUGE (AI_CHIP_STRESS) - Purpose: Quantifies global hardware bottlenecks, geopolitical semiconductor supply chain frictions (e.g., Taiwan Strait risk, export controls), and space-grade tactical defense processor conduits (SEC_DEF_STARSHIELD) by synthesizing physical supply chain stress (GSCPI), semiconductor equity momentum (NASDAQSOX), and financial risk aversion (VIXCLS) into a normalized composite index. - Data Series Keys: - NY Fed / FRED: GSCPI (Global Supply Chain Pressure Index - Standard Deviations) - NASDAQ / FRED: NASDAQSOX (PHLX Semiconductor Sector Index - YoY % Change, pc1) - CBOE / FRED: VIXCLS (CBOE Volatility Index - Daily Close Index, Monthly Avg) - Scale Ingestion Contract: - GSCPI: Native standard deviations (Centered at 0.0, shock threshold >= +1.5). - NASDAQSOX: Scaled by historical ±50.0% cyclical volatility band: (NASDAQSOX_YoY / 50.0). Inverse coefficient (-0.35) applied as higher equity growth signals supply relief. - VIXCLS: Scaled by historical median baseline of 20.0: (VIXCLS / 20.0). Higher volatility compounds financial risk premium (+0.25). - Formula: AI_CHIP_STRESS = (GSCPI * 0.40) + ((NASDAQSOX_YoY / 50.0) * -0.35) + ((VIXCLS / 20.0) * 0.25) - Machine-Executable Logic (Python): def ai_chip_stress_gauge(gscpi_val, sox_yoy_pct, vix_val): if any(v is None or isinstance(v, bool) for v in (gscpi_val, sox_yoy_pct, vix_val)): return None try: g = float(gscpi_val) s = float(sox_yoy_pct) v = float(vix_val) if not all(math.isfinite(x) for x in (g, s, v)): return None if v <= 0.0: return None gscpi_comp = g * 0.40 sox_comp = (s / 50.0) * -0.35 vix_comp = (v / 20.0) * 0.25 raw_stress = gscpi_comp + sox_comp + vix_comp if not math.isfinite(raw_stress): return None stress_score = round(raw_stress, 3) if stress_score >= 1.20: status = "ACUTE_CHIP_SUPPLY_CRUNCH" elif stress_score >= 0.50: status = "ELEVATED_SEMICONDUCTOR_BOTTLENECK" elif stress_score <= -0.40: status = "CHIP_SUPPLY_ABUNDANCE_EXPANSION" else: status = "BALANCED_HARDWARE_FLOW" return { "ai_chip_stress_index": stress_score, "gscpi_component": round(gscpi_comp, 3), "sox_component": round(sox_comp, 3), "vix_component": round(vix_comp, 3), "status": status } except (TypeError, ValueError): return None - Interpretation: - Stress >= +1.20 : ACUTE_CHIP_SUPPLY_CRUNCH (Severe physical supply chain disruption, foundry shutdown or Taiwan maritime embargo risk; tech Capex delays) - +0.50 <= Stress < +1.20 : ELEVATED_SEMICONDUCTOR_BOTTLENECK (Supply constraints outpacing delivery capacity; hardware inflation and extended lead times) - -0.40 < Stress < +0.50 : BALANCED_HARDWARE_FLOW (Normal semiconductor cycle and functioning global logistics channels) - Stress <= -0.40 : CHIP_SUPPLY_ABUNDANCE_EXPANSION (High fabrication throughput, robust capacity expansion, and subdued market volatility) --- ### 25.17. LIQUIDITY & COMMODITY MACRO REGIME MATRIX (LIQUIDITY_COMMODITY_MATRIX) - Purpose: Evaluates front-end money market liquidity conditions (Treasury 3M-1M T-Bill spread in bps) against crude oil cost inflation momentum (Brent YoY % change) in a 2x2 deterministic macro matrix to identify systemic liquidity and cost shock regimes. - Target: economy.json, llms-models.json -> MODEL_25.17_LIQUIDITY_COMMODITY_MATRIX - Frequency: Daily (Business Day) - Canonical Input Series: - FRED: DGS3MO (3-Month Treasury Bill Secondary Market Rate, Percent) - FRED: DGS1MO (1-Month Treasury Bill Secondary Market Rate, Percent) - EIA / FRED: DCOILBRENTEU (Crude Oil Prices: Brent - Europe, USD per Barrel) - Mathematical Formulation: 1. Front-End Liquidity Slope (bps): Slope_bps = (DGS3MO - DGS1MO) * 100.0 2. Commodity Inflation Momentum (YoY %): Brent_YoY_pct = ((Brent_t / Brent_t_year_ago) - 1.0) * 100.0 - Machine-Executable Logic (Python): def calculate_liquidity_commodity_matrix(dgs3mo, dgs1mo, brent_yoy_pct): if any(v is None or isinstance(v, bool) for v in (dgs3mo, dgs1mo, brent_yoy_pct)): return None try: f_3m = float(dgs3mo) f_1m = float(dgs1mo) f_brent_yoy = float(brent_yoy_pct) if not (math.isfinite(f_3m) and math.isfinite(f_1m) and math.isfinite(f_brent_yoy)): return None if f_3m < 0.0 or f_1m < 0.0: return None slope_bps = round((f_3m - f_1m) * 100.0, 2) brent_yoy = round(f_brent_yoy, 2) # 2x2 Macro Regime Decision Matrix if brent_yoy > 15.0: if slope_bps < 0.0: if slope_bps <= -25.0: status = "ACUTE_STAGFLATION_CRUNCH" else: status = "STAGFLATION_SHOCK" else: status = "REFLATIONARY_EXPANSION" elif brent_yoy < 0.0: if slope_bps < 0.0: status = "DEFLATIONARY_RECESSION" else: status = "GOLDILOCKS_EXPANSION" else: # Moderate / Neutral Cost Zone (0.0% <= brent_yoy <= 15.0%) if slope_bps < 0.0: status = "RESTRICTIVE_SLOWDOWN" else: status = "GOLDILOCKS_EXPANSION" return { "model_id": "MODEL_25.17_LIQUIDITY_COMMODITY_MATRIX", "slope_bps": slope_bps, "brent_yoy_pct": brent_yoy, "status": status } except (TypeError, ValueError, OverflowError): return None - Interpretation: - status == ACUTE_STAGFLATION_CRUNCH : Severe cost-push inflation (Brent YoY > 15%) combined with deep funding liquidity drainage (Slope <= -25 bps). Acute systemic stagflation shock. - status == STAGFLATION_SHOCK : Supply shock and stagflation (Brent YoY > 15%, Inverted Yield Curve < 0 bps). Elevating input costs while funding liquidity contracts; hostile environment for equities. - status == REFLATIONARY_EXPANSION : Reflationary expansion (Brent YoY > 15%, Normal Slope >= 0 bps). Strong demand momentum lifting energy prices while financial liquidity supports economic growth. - status == DEFLATIONARY_RECESSION : Deflationary recession (Brent YoY < 0%, Inverted Yield Curve < 0 bps). Severe demand destruction, collapsing commodity prices, and tight funding; pronounced recession risk. - status == GOLDILOCKS_EXPANSION : Disinflationary expansion (Brent YoY <= 15%, Normal Slope >= 0 bps). Benign cost pressures accompanied by smooth money market liquidity; optimal macroeconomic backdrop for equities. - status == RESTRICTIVE_SLOWDOWN : Restrictive monetary slowdown (Moderate energy cost, Inverted Yield Curve < 0 bps). Policy transmission cooling economic activity. --- ### 25.21. RUSSIA-INDIA CRUDE IMPORT VALUE CONCENTRATION ENGINE (RUS_IN_CRUDE_FLOW) - Purpose: Evaluates the share of Russian crude oil (HS 270900) in India's total crude oil import value and measures the value difference relative to the pre-war baseline (FY 2017-2020 mean) using official Indian customs statistics. - Target: economy.json, llms-models.json -> MODEL_25.21 - Frequency: Annual (Indian Fiscal Year: April 1 to March 31) - Canonical Input Series: - DGCIS / TRADESTAT: IND_IN_RU_CRUDE_VAL_USD (India Annual Import Value of Russian Crude (HS 270900) in Million USD) - DGCIS / TRADESTAT: IND_IN_WLD_CRUDE_VAL_USD (India Total Annual Crude Oil Import Value (HS 270900) in Million USD) - FRED / EIA: DCOILBRENTEU (Crude Oil Prices: Brent - Europe, USD per Barrel - Benchmark Control Variable) - Mathematical Formulation: 1. Crude Supply Concentration Ratio (%): Concentration_pct = (IND_IN_RU_CRUDE_VAL_USD / IND_IN_WLD_CRUDE_VAL_USD) * 100.0 2. Excess Crude Import Value over Baseline (Million USD): Excess_Crude_Import_Value_USD = IND_IN_RU_CRUDE_VAL_USD(t) - Baseline_PreWar where Baseline_PreWar = Dynamic mean of pre-war observations across FY 2017-18, 2018-19, and 2019-20 (~1,368.40 Million USD). 3. Price Benchmark vs. Value Divergence Check (%): Price_Value_Divergence_pct = Russian_Crude_YoY_pct - Brent_Crude_YoY_pct - Metric Definition: İthalat değeri büyümesinin Brent fiyat değişimine göre pozitif/negatif farkıdır. Tek başına fiziki hacim değişimini kanıtlamaz; Urals fiyatı ve miktar verisi olmadan açıklayıcı sapma metriğidir. - English: Difference between import value growth and Brent crude price growth. Does not in itself establish physical volume change; serves as an explanatory divergence metric in the absence of Urals pricing and tonnage data. - Machine-Executable Logic (Python): def calculate_rus_in_crude_flow(ind_in_ru_crude_val_usd, ind_in_wld_crude_val_usd, brent_fy_avg=None, brent_yoy_pct=None, ru_yoy_pct=None): if any(v is None or isinstance(v, bool) for v in (ind_in_ru_crude_val_usd, ind_in_wld_crude_val_usd)): return None try: ru_val = float(ind_in_ru_crude_val_usd) wld_val = float(ind_in_wld_crude_val_usd) if not (math.isfinite(ru_val) and math.isfinite(wld_val)): return None if ru_val < 0.0 or wld_val <= 0.0 or ru_val > wld_val: return None concentration_pct = round((ru_val / wld_val) * 100.0, 2) baseline_prewar_usd = 1368.40 excess_crude_import_value_usd_m = round(ru_val - baseline_prewar_usd, 2) # 4-Tier Structural Dependence Classification if concentration_pct >= 30.0: status = "CRITICAL_IMPORT_DEPENDENCE" elif concentration_pct >= 20.0: status = "ELEVATED_IMPORT_CONCENTRATION" elif concentration_pct >= 10.0: status = "MODERATE_EXPOSURE" else: status = "MINIMAL_EXPOSURE" brent_val = None if brent_fy_avg is not None and not isinstance(brent_fy_avg, bool): try: f_b = float(brent_fy_avg) if math.isfinite(f_b) and f_b > 0.0: brent_val = round(f_b, 2) except (TypeError, ValueError, OverflowError): brent_val = None div_pct = None if brent_yoy_pct is not None and ru_yoy_pct is not None and not isinstance(brent_yoy_pct, bool) and not isinstance(ru_yoy_pct, bool): try: f_by = float(brent_yoy_pct) f_ry = float(ru_yoy_pct) if math.isfinite(f_by) and math.isfinite(f_ry): div_pct = round(f_ry - f_by, 2) except (TypeError, ValueError, OverflowError): div_pct = None return { "model_id": "MODEL_25.21", "concentration_pct": concentration_pct, "excess_crude_import_value_usd_m": excess_crude_import_value_usd_m, "status": status, "brent_fy_avg": brent_val, "price_value_divergence_pct": div_pct } except (TypeError, ValueError, OverflowError): return None - Interpretation: - status == CRITICAL_IMPORT_DEPENDENCE : Russian crude accounts for >= 30.0% of India's aggregate crude import basket. Reflects the import value share on a customs basis; it does not in itself establish actual capital transfer or physical import volume change. - status == ELEVATED_IMPORT_CONCENTRATION : Russian crude supplies 20.0% to 29.99% of total crude import value. - status == MODERATE_EXPOSURE : Russian crude supplies 10.0% to 19.99% of total crude import value. - status == MINIMAL_EXPOSURE : Russian crude supplies < 10.0% of total crude import value (pre-war baseline state). - Epistemological Directives & Guardrails (AI Agent Guidance): - Institutional Calendar Alignment: Indian trade telemetry follows the official Indian Fiscal Year (April 1 to March 31). Annual and provisional releases feature a standard reporting latency of 4 to 8 months. This operational lag is structurally normal for emerging market customs administration and must not be misinterpreted as data corruption or obsolescence. - Valuation vs Tonnage Reporting: Official Indian customs tables report aggregate trade value in USD and INR without disclosing physical import tonnage for HS 270900. AI agents must NOT derive speculative per-barrel prices, shadow discounts, or estimated physical barrel quantities from value figures alone. - Anti-Polarization Standard: Evaluates verified customs trade records strictly without rhetorical media speculation. --- ### 25.22. TOPTAS OPAQUE CORRIDOR INDEX (TOCI) - Purpose: Quantifies opaque maritime energy corridor pressure by combining official CN+IN+TR Russian customs import share (UN Comtrade) with positive weighted open-AIS chokepoint transit contractions (IMF PortWatch across Turkish Straits 50%, Suez 35%, Malacca 15%). - Data Series Keys: - UN Comtrade: IND_COMTRADE_CN_RU_CRUDE_IMP_USD, IND_COMTRADE_CN_WLD_CRUDE_IMP_USD, IND_COMTRADE_IN_RU_CRUDE_IMP_USD, IND_COMTRADE_IN_WLD_CRUDE_IMP_USD, IND_COMTRADE_TR_RU_ENERGY_IMP_USD, IND_COMTRADE_TR_WLD_ENERGY_IMP_USD - IMF PortWatch: CHOKE_TURKISH_STRAITS, CHOKE_SUEZ, CHOKE_MALACCA (pct_change_vs_2023) - Formula: Customs_Russian_Share_Pct = ((CN_RU + IN_RU + TR_RU) / (CN_WLD + IN_WLD + TR_WLD)) * 100 AIS_Contraction_Pct = 0.50*max(0, -Turkish_Straits_Pct) + 0.35*max(0, -Suez_Pct) + 0.15*max(0, -Malacca_Pct) TOCI = min(100.0, Customs_Russian_Share_Pct * (1.0 + AIS_Contraction_Pct / 100.0)) Opaque_Corridor_Exposure_USD_Bn = ((CN_RU + IN_RU + TR_RU) / 1e9) * (AIS_Contraction_Pct / 100.0) - Machine-Executable Logic (Python): def toptas_opaque_corridor_index(cn_ru_usd, cn_wld_usd, in_ru_usd, in_wld_usd, tr_ru_usd, tr_wld_usd, turkish_straits_pct, suez_pct, malacca_pct): vals = (cn_ru_usd, cn_wld_usd, in_ru_usd, in_wld_usd, tr_ru_usd, tr_wld_usd, turkish_straits_pct, suez_pct, malacca_pct) if any(v is None or isinstance(v, bool) for v in vals): return None try: f_vals = [float(v) for v in vals] if not all(math.isfinite(v) for v in f_vals): return None cn_ru, cn_wld, in_ru, in_wld, tr_ru, tr_wld, ts_pct, sz_pct, ml_pct = f_vals if any(x < 0.0 for x in (cn_ru, in_ru, tr_ru)) or any(x <= 0.0 for x in (cn_wld, in_wld, tr_wld)): return None if cn_ru > cn_wld or in_ru > in_wld or tr_ru > tr_wld: return None total_ru = cn_ru + in_ru + tr_ru total_wld = cn_wld + in_wld + tr_wld customs_russian_share_pct = round((total_ru / total_wld) * 100.0, 2) ais_contraction_pct = round( 0.50 * max(0.0, -ts_pct) + 0.35 * max(0.0, -sz_pct) + 0.15 * max(0.0, -ml_pct), 2, ) toci = round(min(100.0, customs_russian_share_pct * (1.0 + ais_contraction_pct / 100.0)), 2) if toci >= 45.0: status = "CRITICAL_OPAQUE_BYPASS" elif toci >= 30.0: status = "ELEVATED_SHADOW_CORRIDOR" elif toci >= 15.0: status = "MODERATE_REROUTING" else: status = "NORMAL_TRANSPARENT_FLOW" return { "model_id": "MODEL_25.22", "toci": toci, "customs_russian_share_pct": customs_russian_share_pct, "ais_contraction_pct": ais_contraction_pct, "opaque_corridor_exposure_usd_bn": round((total_ru / 1e9) * (ais_contraction_pct / 100.0), 3), "status": status, } except (TypeError, ValueError, OverflowError): return None - Interpretation: - CRITICAL_OPAQUE_BYPASS : TOCI >= 45.0 (High structural Russian customs share compounded by severe open-AIS chokepoint contraction). - ELEVATED_SHADOW_CORRIDOR : TOCI 30.0 to 44.99 (Elevated divergence between official customs imports and open-AIS maritime traffic). - MODERATE_REROUTING : TOCI 15.0 to 29.99 (Moderate rerouting across non-transparent corridors). - NORMAL_TRANSPARENT_FLOW : TOCI < 15.0 (Low opaque corridor divergence). - Epistemological Directives & Guardrails: - Positive Contraction Rule: Positive AIS growth (e.g. Malacca +17.2%) yields 0.0% contraction via max(0.0, -pct_change_vs_2023) so Pacific expansion never masks Western chokepoint contraction. - USD-Only Scope: Reports customs-based USD exposure only; never extrapolates physical barrels or tonnage from USD trade values. --- ### 25.23. TOPTAS GEO-YIELD TRAP & FLIGHT INDEX (TGYTI) - Purpose: Quantifies the systemic yield trap via an additive 0-100 normalized weighted index (35% Opaque Corridor & Brent Shock, 35% Sovereign Yield Stress, 30% Safe-Haven Flight) linking maritime corridor opacity (TOCI) and crude inflation to restrictive US 10Y yields and sovereign safe-haven hedging. - Data Series Keys: - Model 25.22: TOCI (0-100) - FRED: IND_DCOILBRENTEU (Brent Crude YoY % Change), IND_DGS10 (US 10-Year Treasury Yield %), IND_VIXCLS (CBOE VIX Index) - World Bank: IND_WB_GOLD (World Bank Gold Monthly Avg YoY % Change) - Formula: Corridor_Energy_Score = 0.50*min(100, max(0, TOCI)) + 0.50*min(100, max(0, Brent_YoY_Pct) / 80.0 * 100) Yield_Stress_Score = min(100, max(0, (DGS10 - 2.0) / (6.0 - 2.0)) * 100) Flight_Score = 0.50*min(100, max(0, WB_Gold_YoY_Pct) / 50.0 * 100) + 0.50*min(100, max(0, (VIX - 12.0) / (45.0 - 12.0)) * 100) TGYTI = min(100.0, 0.35*Corridor_Energy_Score + 0.35*Yield_Stress_Score + 0.30*Flight_Score) - Machine-Executable Logic (Python): def toptas_geo_yield_trap_index(toci_score, brent_yoy_pct, us_10y_yield, gold_wb_yoy_pct, vix_index): vals = (toci_score, brent_yoy_pct, us_10y_yield, gold_wb_yoy_pct, vix_index) if any(v is None or isinstance(v, bool) for v in vals): return None try: f_vals = [float(v) for v in vals] if not all(math.isfinite(v) for v in f_vals): return None toci, brent_yoy, us_10y, gold_yoy, vix = f_vals toci_comp = min(100.0, max(0.0, toci)) brent_comp = min(100.0, (max(0.0, brent_yoy) / 80.0) * 100.0) corridor_energy_score = round(0.50 * toci_comp + 0.50 * brent_comp, 2) yield_stress_score = round(min(100.0, max(0.0, (us_10y - 2.0) / (6.0 - 2.0)) * 100.0), 2) gold_comp = min(100.0, (max(0.0, gold_yoy) / 50.0) * 100.0) vix_comp = min(100.0, max(0.0, (vix - 12.0) / (45.0 - 12.0)) * 100.0) flight_score = round(0.50 * gold_comp + 0.50 * vix_comp, 2) tgyti = round(min(100.0, 0.35 * corridor_energy_score + 0.35 * yield_stress_score + 0.30 * flight_score), 2) if tgyti >= 85.0: status = "SYSTEMIC_YIELD_TRAP_AND_FLIGHT" elif tgyti >= 60.0: status = "STRUCTURAL_STAGFLATION_RISK" elif tgyti >= 35.0: status = "ELEVATED_MACRO_FRICTION" else: status = "FIAT_SYSTEM_EQUILIBRIUM" return { "model_id": "MODEL_25.23", "tgyti": tgyti, "corridor_energy_score": corridor_energy_score, "yield_stress_score": yield_stress_score, "flight_score": flight_score, "status": status, } except (TypeError, ValueError, OverflowError): return None - Interpretation: - SYSTEMIC_YIELD_TRAP_AND_FLIGHT : TGYTI >= 85.0 (Opaque corridor inflation anchors restrictive bond yields while sovereign flows aggressively hedge into hard assets). - STRUCTURAL_STAGFLATION_RISK : TGYTI 60.0 to 84.99 (Elevated physical energy and yield stress restricting monetary easing). - ELEVATED_MACRO_FRICTION : TGYTI 35.0 to 59.99 (Moderate geopolitical corridor and bond-market friction with headroom before systemic lock-in). - FIAT_SYSTEM_EQUILIBRIUM : TGYTI < 35.0 (Low corridor opacity, anchored yields, and calm volatility). - Epistemological Directives & Guardrails: - Additive Normalization Rule: Uses bounded 0-100 sub-indices instead of multiplicative products or fixed spot price anchors so structural price level shifts never saturate the index. --- ### 25.24. SEMICONDUCTOR FRIENDSHORING & BRIDGE CORRIDOR INDEX (SFBCI) - Purpose: Quantifies structural semiconductor supply-chain bifurcation between BLOC_PAX_SILICA and BLOC_WAICO by combining Pax Silica core US chip import concentration (FCR), US-to-China direct export contraction (Decoupling Pressure), and inter-bloc geopolitical polarity friction. - Data Series Keys: - US Census NAICS 3344: CENSUS_NAICS3344_TAIWAN, CENSUS_NAICS3344_KOREA, CENSUS_NAICS3344_JAPAN, CENSUS_NAICS3344_EU, CENSUS_NAICS3344_WORLD, CENSUS_NAICS3344_CHINA - Federated Graph Polarity: BLOC_PAX_SILICA <-> BLOC_WAICO (p_baseline from llms-graph-actors.json) - Formula: FCR_Pct = ((TW_Import + KR_Import + JP_Import + EU_Import) / WORLD_Import) * 100 CN_Decoupling_Score = min(100.0, (max(0.0, -CN_Export_MoM_Pct) / 25.0) * 100.0) Bloc_Friction_Score = min(100.0, abs(min(0.0, Bloc_Polarity)) * 100.0) SFBCI = min(100.0, 0.45*FCR_Pct + 0.25*CN_Decoupling_Score + 0.30*Bloc_Friction_Score) - Machine-Executable Logic (Python): def semiconductor_friendshoring_bridge_index(pax_core_imports_usd, world_imports_usd, cn_export_mom_pct, bloc_polarity): vals = (pax_core_imports_usd, world_imports_usd, cn_export_mom_pct, bloc_polarity) if any(v is None or isinstance(v, bool) for v in vals): return None try: f_vals = [float(v) for v in vals] if not all(math.isfinite(v) for v in f_vals): return None pax_imp, wld_imp, cn_mom, pol = f_vals if pax_imp < 0.0 or wld_imp <= 0.0 or pol < -1.0 or pol > 1.0: return None fcr_pct = round(min(100.0, (pax_imp / wld_imp) * 100.0), 2) cn_decoupling_score = round(min(100.0, (max(0.0, -cn_mom) / 25.0) * 100.0), 2) bloc_friction_score = round(min(100.0, abs(min(0.0, pol)) * 100.0), 2) sfbci = round(min(100.0, 0.45 * fcr_pct + 0.25 * cn_decoupling_score + 0.30 * bloc_friction_score), 2) if sfbci >= 65.0: status = "HIGH_BIFURCATION_STRAIN" elif sfbci >= 40.0: status = "MODERATE_FRIENDSHORING_SHIFT" else: status = "INTEGRATED_SUPPLY" return { "model_id": "MODEL_25.24", "sfbci": sfbci, "fcr_pct": fcr_pct, "cn_decoupling_score": cn_decoupling_score, "bloc_friction_score": bloc_friction_score, "status": status, } except (TypeError, ValueError, OverflowError): return None - Interpretation: - HIGH_BIFURCATION_STRAIN : SFBCI >= 65.0 (Heavy Pax Silica supply concentration paired with sharp US-China decoupling and acute inter-bloc friction). - MODERATE_FRIENDSHORING_SHIFT : SFBCI 40.0 to 64.99 (Active ally-centric semiconductor sourcing shift with persistent bridge-node compliance pressure). - INTEGRATED_SUPPLY : SFBCI < 40.0 (Low bloc concentration and minimal bilateral export-control contraction). - Epistemological Directives & Guardrails: - Zero-Proxy Census Scope: Uses only verified live Census NAICS 3344 partner corridors (TW, KR, JP, EU, CN, WORLD) without fabricating unmeasured SG/KZ bilateral export series. --- ### 25.29. SEMICONDUCTOR SUPPLY-CHAIN CASCADE & PASS-THROUGH MODEL (SEMICONDUCTOR_SUPPLY_CHAIN_CASCADE) - Purpose: Tracks butterfly-effect cost transmission across the 3-link NAICS 3344 semiconductor chain — from upstream border import prices (IZ3344) to domestic producer prices (PCU33443344) and real physical industrial output (IPG3344S) — to distinguish stagflationary supply bottlenecks from demand-driven AI/capex pass-through booms, producer margin squeezes, and cyclical destocking. - Domain: Commodities, Energy Shocks, Supply Chains & Asset Stress (NAICS 3344 Semiconductor Transmission) - Data Series Keys: - BLS / FRED: IZ3344 (Import Price Index (NAICS): Semiconductor and Other Electronic Component Manufacturing — Monthly YoY %) - BLS / FRED: PCU33443344 (Producer Price Index by Industry: Semiconductor and Other Electronic Component Manufacturing — Monthly YoY %) - FRED: IPG3344S (Industrial Production: Manufacturing: Durable Goods: Semiconductor and Other Electronic Component (NAICS = 3344) — Monthly YoY %) - Temporal Integrity: - All three inputs carry optional paired `observation_dates` and `observation_frequencies` dicts with exact keys `("IZ3344", "PCU33443344", "IPG3344S")` and real ISO `YYYY-MM-DD` calendar dates. - `asynchronous_frequencies` is `True` only when canonical source frequencies differ (all three are `Monthly` -> `False` even if publication dates differ). - Range guards reject non-finite, boolean, or out-of-range YoY values outside `[-100.0%, +300.0%]` by returning `None`. - Formula: Cascade_Price_Pressure_Pct = 0.5 * IZ3344_YoY + 0.5 * PCU33443344_YoY Import_to_PPI_Spread_ppt = IZ3344_YoY - PCU33443344_YoY Pass_Through_Ratio = PCU33443344_YoY / IZ3344_YoY (when abs(IZ3344_YoY) >= 1.0%, else None) Real_Output_vs_Price_Gap_ppt = IPG3344S_YoY - PCU33443344_YoY - Machine-Executable Logic (Python): def calculate_semiconductor_supply_chain_cascade(import_price_yoy_pct, ppi_yoy_pct, industrial_prod_yoy_pct, observation_dates=None, observation_frequencies=None): vals = (import_price_yoy_pct, ppi_yoy_pct, industrial_prod_yoy_pct) if any(v is None or isinstance(v, bool) for v in vals): return None try: f_imp, f_ppi, f_ip = float(import_price_yoy_pct), float(ppi_yoy_pct), float(industrial_prod_yoy_pct) if not all(math.isfinite(v) for v in (f_imp, f_ppi, f_ip)): return None if any(v < -100.0 or v > 300.0 for v in (f_imp, f_ppi, f_ip)): return None cascade_pressure = round(0.5 * f_imp + 0.5 * f_ppi, 2) import_to_ppi_spread = round(f_imp - f_ppi, 2) pass_through_ratio = round(f_ppi / f_imp, 4) if abs(f_imp) >= 1.0 else None real_output_vs_price_gap = round(f_ip - f_ppi, 2) if f_imp >= 5.0 and f_ppi >= 5.0 and f_ip <= 0.0: status = "SUPPLY_BOTTLENECK_CASCADE" elif f_imp >= 5.0 and f_ppi >= 5.0 and f_ip > 0.0: status = "DEMAND_PASS_THROUGH_BOOM" elif f_imp >= 5.0 and f_ppi < 5.0: status = "PRODUCER_MARGIN_SQUEEZE" elif f_imp < 5.0 and f_ppi >= 5.0 and f_ip <= 0.0: status = "DOMESTIC_PPI_BOTTLENECK" elif f_imp < 5.0 and f_ppi < 5.0 and f_ip <= 0.0: status = "SEMICONDUCTOR_DEMAND_COOLING" else: status = "BALANCED_SUPPLY_CHAIN" return { "model_id": "MODEL_25.29", "cascade_price_pressure_pct": cascade_pressure, "import_to_ppi_spread_ppt": import_to_ppi_spread, "pass_through_ratio": pass_through_ratio, "real_output_vs_price_gap_ppt": real_output_vs_price_gap, "status": status, } except (TypeError, ValueError, OverflowError, ZeroDivisionError): return None - Interpretation: - IZ3344_YoY >= 5.0% & PCU33443344_YoY >= 5.0% & IPG3344S_YoY <= 0.0% : SUPPLY_BOTTLENECK_CASCADE (Import & producer prices surging while physical semiconductor output contracts / Stagflationary chip bottleneck) - IZ3344_YoY >= 5.0% & PCU33443344_YoY >= 5.0% & IPG3344S_YoY > 0.0% : DEMAND_PASS_THROUGH_BOOM (Import & producer prices surging alongside expanding physical output / AI-capex pass-through boom) - IZ3344_YoY >= 5.0% & PCU33443344_YoY < 5.0% : PRODUCER_MARGIN_SQUEEZE (Import input costs spiking faster than producer pass-through / Margin compression & delayed PPI risk) - IZ3344_YoY < 5.0% & PCU33443344_YoY >= 5.0% & IPG3344S_YoY <= 0.0% : DOMESTIC_PPI_BOTTLENECK (Domestic producer prices surging while physical output contracts despite contained import prices) - IZ3344_YoY < 5.0% & PCU33443344_YoY < 5.0% & IPG3344S_YoY <= 0.0% : SEMICONDUCTOR_DEMAND_COOLING (Subdued prices with contracting physical output / Chip destocking cycle) - Otherwise : BALANCED_SUPPLY_CHAIN (Contained upstream/producer price pressure with positive physical output) --- ### 25.30. AGRI-FOOD SUPPLY CASCADE & PASS-THROUGH MODEL (AGRI_FOOD_SUPPLY_CASCADE) - Purpose: Quantifies upstream-to-retail agricultural price transmission from global grain benchmarks (PWHEAMTUSDM Wheat and PMAIZMTUSDM Corn) into the IMF Global Food Price Index (PFOODINDEXM) to detect systemic food inflation cascades, pending pass-through shocks, and external-balance risks for food-importing sovereigns. - Domain: Commodities, Energy Shocks, Supply Chains & Asset Stress (Global Agri-Food Security) - Data Series Keys: - IMF / FRED: PWHEAMTUSDM (Global price of Wheat — Monthly YoY %) - IMF / FRED: PMAIZMTUSDM (Global price of Corn — Monthly YoY %) - IMF / FRED: PFOODINDEXM (Global price of Food index — Monthly YoY %) - Temporal Integrity: - All three inputs carry optional paired `observation_dates` and `observation_frequencies` dicts with exact keys `("PWHEAMTUSDM", "PMAIZMTUSDM", "PFOODINDEXM")` and real ISO `YYYY-MM-DD` calendar dates. - `asynchronous_frequencies` is `True` only when canonical source frequencies differ (all three are `Monthly` -> `False`). - Range guards reject non-finite, boolean, or out-of-range YoY values outside `[-100.0%, +300.0%]` by returning `None`. - Formula: Grain_Basket_YoY_Pct = 0.6 * PWHEAMTUSDM_YoY + 0.4 * PMAIZMTUSDM_YoY Grain_to_Food_Spread_ppt = Grain_Basket_YoY_Pct - PFOODINDEXM_YoY Food_Pass_Through_Ratio = PFOODINDEXM_YoY / Grain_Basket_YoY_Pct (when abs(Grain_Basket_YoY_Pct) >= 1.0%, else None) - Machine-Executable Logic (Python): def calculate_agri_food_supply_cascade(wheat_yoy_pct, corn_yoy_pct, food_index_yoy_pct, observation_dates=None, observation_frequencies=None): vals = (wheat_yoy_pct, corn_yoy_pct, food_index_yoy_pct) if any(v is None or isinstance(v, bool) for v in vals): return None try: f_w, f_c, f_f = float(wheat_yoy_pct), float(corn_yoy_pct), float(food_index_yoy_pct) if not all(math.isfinite(v) for v in (f_w, f_c, f_f)): return None if any(v < -100.0 or v > 300.0 for v in (f_w, f_c, f_f)): return None grain_basket_raw = 0.6 * f_w + 0.4 * f_c grain_basket_yoy = round(grain_basket_raw, 2) grain_to_food_spread = round(grain_basket_raw - f_f, 2) pass_through_ratio = round(f_f / grain_basket_raw, 4) if abs(grain_basket_raw) >= 1.0 else None if grain_basket_raw >= 30.0 and f_f >= 8.0: status = "GLOBAL_FOOD_SUPPLY_CASCADE" elif grain_basket_raw >= 30.0 and f_f < 8.0: status = "UPSTREAM_GRAIN_SHOCK_PENDING" elif grain_basket_raw >= 15.0 or f_f >= 8.0: status = "ELEVATED_AGRI_COST_PRESSURE" elif grain_basket_raw <= 0.0 and f_f <= 0.0: status = "AGRI_FOOD_DISINFLATION" else: status = "BALANCED_FOOD_SUPPLY" return { "model_id": "MODEL_25.30", "grain_basket_yoy_pct": grain_basket_yoy, "grain_to_food_spread_ppt": grain_to_food_spread, "food_pass_through_ratio": pass_through_ratio, "status": status, } except (TypeError, ValueError, OverflowError, ZeroDivisionError): return None - Interpretation: - Grain_Basket_YoY >= 30.0% & PFOODINDEXM_YoY >= 8.0% : GLOBAL_FOOD_SUPPLY_CASCADE (Upstream grain surge transmitting into broad global food inflation / Import & CPI shock) - Grain_Basket_YoY >= 30.0% & PFOODINDEXM_YoY < 8.0% : UPSTREAM_GRAIN_SHOCK_PENDING (Severe grain price surge not yet fully reflected in broad food index / Delayed retail food pass-through) - Grain_Basket_YoY >= 15.0% or PFOODINDEXM_YoY >= 8.0% : ELEVATED_AGRI_COST_PRESSURE (Elevated agricultural input or food basket inflation above trend) - Grain_Basket_YoY <= 0.0% & PFOODINDEXM_YoY <= 0.0% : AGRI_FOOD_DISINFLATION (Broad grain and food basket deflationary easing) - Otherwise : BALANCED_FOOD_SUPPLY (Contained grain and global food index price dynamics) ### 25.31. EUROPEAN GAS STORAGE-PRICE SHIELD INDEX (EU_GAS_STORAGE_PRICE_SHIELD) - Purpose: Combines aggregate physical natural gas closing stocks across six major European Union economies (DE, FR, IT, ES, NL, PL via Eurostat) with the European natural gas benchmark price (PNGASEUUSDM via IMF/FRED) into a 0-100 co-movement stress proxy that distinguishes speculative price spikes from physical storage drawdowns. - Domain: Commodities, Energy Shocks, Supply Chains & Asset Stress (European Energy Security) - Data Series Keys: - Eurostat: IND_EUROSTAT_GAS_CLOSING_STOCK_DE (Germany monthly natural gas closing stock — Million Cubic Metres) - Eurostat: IND_EUROSTAT_GAS_CLOSING_STOCK_FR (France monthly natural gas closing stock — Million Cubic Metres) - Eurostat: IND_EUROSTAT_GAS_CLOSING_STOCK_IT (Italy monthly natural gas closing stock — Million Cubic Metres) - Eurostat: IND_EUROSTAT_GAS_CLOSING_STOCK_ES (Spain monthly natural gas closing stock — Million Cubic Metres) - Eurostat: IND_EUROSTAT_GAS_CLOSING_STOCK_NL (Netherlands monthly natural gas closing stock — Million Cubic Metres) - Eurostat: IND_EUROSTAT_GAS_CLOSING_STOCK_PL (Poland monthly natural gas closing stock — Million Cubic Metres) - IMF / FRED: PNGASEUUSDM (Global price of Natural Gas, EU — Monthly YoY %) - Temporal Integrity: - All seven inputs carry optional paired `observation_dates` and `observation_frequencies` dicts with exact keys `("IND_EUROSTAT_GAS_CLOSING_STOCK_DE", "IND_EUROSTAT_GAS_CLOSING_STOCK_FR", "IND_EUROSTAT_GAS_CLOSING_STOCK_IT", "IND_EUROSTAT_GAS_CLOSING_STOCK_ES", "IND_EUROSTAT_GAS_CLOSING_STOCK_NL", "IND_EUROSTAT_GAS_CLOSING_STOCK_PL", "PNGASEUUSDM")` and real ISO `YYYY-MM-DD` calendar dates (Eurostat `YYYY-MM` monthly periods are normalized to first-of-month `YYYY-MM-01` by the ingestion engine). - `asynchronous_frequencies` is `True` only when canonical source frequencies differ (all seven are `Monthly` -> `False`). - Range guards reject non-finite, boolean, missing, non-positive (`<= 0`), or out-of-range stock levels (`> 200000.0` Mcm per country) and out-of-range gas price YoY values outside `[-100.0%, +500.0%]` by returning `None`. - Formula: EU6_Stock_Current_Mcm = sum(Stock_Current[c] for c in {DE, FR, IT, ES, NL, PL}) EU6_Stock_YearAgo_Mcm = sum(Stock_YearAgo[c] for c in {DE, FR, IT, ES, NL, PL}) Stock_YoY_Pct = ((EU6_Stock_Current_Mcm - EU6_Stock_YearAgo_Mcm) / EU6_Stock_YearAgo_Mcm) * 100 Stock_Stress = min(100.0, max(0.0, (-Stock_YoY_Pct / 25.0) * 100.0)) Price_Stress = min(100.0, max(0.0, (PNGASEUUSDM_YoY / 100.0) * 100.0)) EU_Gas_Shield_Stress = 0.6 * Stock_Stress + 0.4 * Price_Stress - Machine-Executable Logic (Python): def calculate_eu_gas_storage_price_shield(eu6_stock_current_mcm, eu6_stock_year_ago_mcm, eu_gas_price_yoy_pct, observation_dates=None, observation_frequencies=None): countries = ("DE", "FR", "IT", "ES", "NL", "PL") if not isinstance(eu6_stock_current_mcm, dict) or not isinstance(eu6_stock_year_ago_mcm, dict): return None if set(eu6_stock_current_mcm.keys()) != set(countries) or set(eu6_stock_year_ago_mcm.keys()) != set(countries): return None if eu_gas_price_yoy_pct is None or isinstance(eu_gas_price_yoy_pct, bool): return None try: f_price_yoy = float(eu_gas_price_yoy_pct) if not math.isfinite(f_price_yoy) or f_price_yoy < -100.0 or f_price_yoy > 500.0: return None cur_map, yoy_map, country_yoy = {}, {}, {} for c in countries: raw_cur, raw_yoy = eu6_stock_current_mcm[c], eu6_stock_year_ago_mcm[c] if raw_cur is None or raw_yoy is None or isinstance(raw_cur, bool) or isinstance(raw_yoy, bool): return None fc, fy = float(raw_cur), float(raw_yoy) if not (math.isfinite(fc) and math.isfinite(fy)) or fc <= 0.0 or fy <= 0.0 or fc > 200000.0 or fy > 200000.0: return None cur_map[c], yoy_map[c] = fc, fy country_yoy[c] = round(((fc - fy) / fy) * 100.0, 2) total_cur = sum(cur_map.values()) total_yoy = sum(yoy_map.values()) stock_yoy_raw = ((total_cur - total_yoy) / total_yoy) * 100.0 stock_stress_raw = min(100.0, max(0.0, (-stock_yoy_raw / 25.0) * 100.0)) price_stress_raw = min(100.0, max(0.0, (f_price_yoy / 100.0) * 100.0)) score_raw = 0.6 * stock_stress_raw + 0.4 * price_stress_raw if score_raw >= 75.0: status = "CRITICAL_ENERGY_SQUEEZE" elif score_raw >= 50.0: status = "HIGH_VULNERABILITY" elif score_raw >= 25.0: status = "MODERATE_PRESSURE" else: status = "SHIELD_INTACT" worst_country = min(countries, key=lambda c: ((cur_map[c] - yoy_map[c]) / yoy_map[c])) return { "model_id": "MODEL_25.31", "eu_gas_shield_stress": round(score_raw, 2), "stock_stress": round(stock_stress_raw, 2), "price_stress": round(price_stress_raw, 2), "eu6_stock_current_total_mcm": round(total_cur, 3), "eu6_stock_year_ago_total_mcm": round(total_yoy, 3), "eu6_stock_yoy_pct": round(stock_yoy_raw, 2), "country_stock_yoy_pct": country_yoy, "worst_hit_country": worst_country, "worst_hit_country_yoy_pct": country_yoy[worst_country], "status": status, } except (TypeError, ValueError, OverflowError, ZeroDivisionError): return None - Interpretation: - Score >= 75.0 : CRITICAL_ENERGY_SQUEEZE (Severe concurrent EU-6 physical gas storage drawdown and European gas price surge) - 50.0 <= Score < 75.0 : HIGH_VULNERABILITY (Dual-track storage erosion and elevated European gas price pressure) - 25.0 <= Score < 50.0 : MODERATE_PRESSURE (Single-leg stress: price spike with intact storage shield or early storage drawdown) - Score < 25.0 : SHIELD_INTACT (Adequate EU-6 storage buffer and contained European gas price dynamics) ### 25.32. ISRAEL IMPORTED ENERGY PASS-THROUGH & RESERVE SHIELD (ISRAEL_ENERGY_PASS_THROUGH_SHIELD) - Purpose: Measures imported energy price pass-through into Israel's (`GEO_IL`) consumer basket by isolating imported fuel/refined energy CPI (`BOI_CPI_ENERGY_EX_DOM_YOY`, excluding domestic natural gas and electricity) minus core ex-energy CPI (`BOI_CPI_EX_ENERGY_YOY`), colliding that wedge against global Brent crude YoY (`DCOILBRENTEU`, `CHOKE_HORMUZ` shock proxy) and the Bank of Israel's external FX reserve shield (`BOI_FX_RESERVES_GDP_PCT` level and YoY pp change). - Domain: Commodities, Energy Shocks, Supply Chains & Asset Stress (Middle East / Israel Energy Transmission) - Data Series Keys: - BOI: BOI_CPI_ENERGY_EX_DOM_YOY (`IND_BOI_CPI_ENERGY_EX_DOM_YOY` — Israel CPI Energy Excl. Electricity and Domestic Gas, Monthly, % YoY) - BOI: BOI_CPI_EX_ENERGY_YOY (`IND_BOI_CPI_EX_ENERGY_YOY` — Israel CPI Excluding Energy, Monthly, % YoY) - EIA / FRED: DCOILBRENTEU (`IND_DCOILBRENTEU` — Crude Oil Brent Europe Spot Price, Daily, % YoY) - BOI: BOI_FX_RESERVES_GDP_PCT (`IND_BOI_FX_RESERVES_GDP_PCT` — Bank of Israel FX Reserves % of GDP, Monthly level and YoY pp change) - Temporal Integrity: - All four series carry optional paired `observation_dates` and `observation_frequencies` dicts with exact keys `("BOI_CPI_ENERGY_EX_DOM_YOY", "BOI_CPI_EX_ENERGY_YOY", "DCOILBRENTEU", "BOI_FX_RESERVES_GDP_PCT")` and real ISO `YYYY-MM-DD` calendar dates (BOI `YYYY-MM` monthly periods are normalized to first-of-month `YYYY-MM-01` by the ingestion engine). - `asynchronous_frequencies` is `True` when canonical source frequencies differ (Monthly BOI series + Daily FRED `DCOILBRENTEU` -> `True`; equal canonical frequencies with different release dates remain `False`). - Range guards reject non-finite, boolean, missing, or out-of-range inputs (`BOI_CPI_*` outside `[-50.0, 100.0]`, `DCOILBRENTEU` YoY outside `[-95.0, 500.0]`, `BOI_FX_RESERVES_GDP_PCT` outside `[0.0, 200.0]`, YoY reserve change outside `[-100.0, 100.0]`) by returning `None`. - Formula: Energy_Wedge_pp = BOI_CPI_ENERGY_EX_DOM_YOY - BOI_CPI_EX_ENERGY_YOY Energy_Pass_Through_Ratio = Energy_Wedge_pp / DCOILBRENTEU_YoY (when |DCOILBRENTEU_YoY| >= 10.0%, else None) Reserve_Shield_Strained = (BOI_FX_RESERVES_GDP_PCT < 25.0) or (BOI_FX_RESERVES_GDP_YoY_Chg_pp <= -5.0) - Machine-Executable Logic (Python): def calculate_israel_energy_pass_through_shield(il_energy_ex_dom_cpi_yoy_pct, il_ex_energy_cpi_yoy_pct, brent_yoy_pct, il_fx_reserves_gdp_pct, il_fx_reserves_gdp_yoy_chg_pp, observation_dates=None, observation_frequencies=None): vals = (il_energy_ex_dom_cpi_yoy_pct, il_ex_energy_cpi_yoy_pct, brent_yoy_pct, il_fx_reserves_gdp_pct, il_fx_reserves_gdp_yoy_chg_pp) if any(v is None or isinstance(v, bool) for v in vals): return None try: f_en, f_core, f_brent, f_res, f_res_chg = [float(v) for v in vals] if not all(math.isfinite(x) for x in (f_en, f_core, f_brent, f_res, f_res_chg)): return None if not (-50.0 <= f_en <= 100.0 and -50.0 <= f_core <= 100.0): return None if not (-95.0 <= f_brent <= 500.0 and 0.0 <= f_res <= 200.0 and -100.0 <= f_res_chg <= 100.0): return None wedge_raw = f_en - f_core wedge_pp = round(wedge_raw, 2) pass_through_ratio = round(wedge_raw / f_brent, 4) if abs(f_brent) >= 10.0 else None shield_strained = (f_res < 25.0) or (f_res_chg <= -5.0) if wedge_raw >= 5.0 and f_brent >= 15.0 and shield_strained: status = "ENERGY_PASS_THROUGH_SHIELD_STRAINED" elif wedge_raw >= 5.0 and f_brent >= 15.0: status = "EXTERNAL_ENERGY_PASS_THROUGH_SHIELD_INTACT" elif wedge_raw >= 2.0: status = "DOMESTIC_OR_MODERATE_ENERGY_PRESSURE" elif wedge_raw <= -2.0: status = "IMPORTED_ENERGY_DISINFLATION" else: status = "CONTAINED_ENERGY_PASS_THROUGH" inputs_dict = { "boi_cpi_energy_ex_dom_yoy_pct": round(f_en, 4), "boi_cpi_ex_energy_yoy_pct": round(f_core, 4), "brent_dcoilbrenteu_yoy_pct": round(f_brent, 4), "boi_fx_reserves_gdp_pct": round(f_res, 4), "boi_fx_reserves_gdp_yoy_chg_pp": round(f_res_chg, 4), } # If paired observation_dates & observation_frequencies (exact 4 keys, real ISO YYYY-MM-DD dates) are supplied, # attach observation_dates, observation_frequencies, and asynchronous_frequencies = len(set(freqs.values())) > 1. return { "model_id": "MODEL_25.32", "model_name": "Israel Imported Energy Pass-Through & Reserve Shield", "formula_ref": "https://analysisreports.github.io/llms-formulas-commodities-shock.txt#25.32", "primary_value": wedge_pp, "unit": "Percentage Points (pp)", "status": status, "inputs": inputs_dict, "components": { "energy_wedge_pp": wedge_pp, "energy_pass_through_ratio": pass_through_ratio, "reserve_shield_strained": shield_strained, }, "metrics": { "energy_wedge_pp": wedge_pp, "energy_pass_through_ratio": pass_through_ratio, "reserve_shield_strained": shield_strained, "boi_cpi_energy_ex_dom_yoy_pct": round(f_en, 4), "boi_cpi_ex_energy_yoy_pct": round(f_core, 4), "brent_yoy_pct": round(f_brent, 4), "boi_fx_reserves_gdp_pct": round(f_res, 4), "boi_fx_reserves_gdp_yoy_chg_pp": round(f_res_chg, 4), }, "interpretation": "Rendered from llms-model-rules.json MODEL_25.32 output_interpretation_template", } except (TypeError, ValueError, OverflowError, ZeroDivisionError): return None - Interpretation: - Energy_Wedge_pp >= +5.0 pp & Brent_YoY >= +15.0% & (FX_Reserves_GDP < 25.0% or FX_Reserves_YoY_Chg <= -5.0 pp) : ENERGY_PASS_THROUGH_SHIELD_STRAINED (External crude shock co-moving with elevated imported-energy CPI wedge alongside FX reserve shield erosion) - Energy_Wedge_pp >= +5.0 pp & Brent_YoY >= +15.0% & intact FX reserves : EXTERNAL_ENERGY_PASS_THROUGH_SHIELD_INTACT (External crude shock passing into imported-energy CPI while Bank of Israel FX reserve shield remains stable) - Energy_Wedge_pp >= +2.0 pp : DOMESTIC_OR_MODERATE_ENERGY_PRESSURE (Moderate imported-energy CPI divergence or domestic fuel-price pressure without concurrent severe Brent shock) - Energy_Wedge_pp <= -2.0 pp : IMPORTED_ENERGY_DISINFLATION (Imported energy prices acting as a disinflationary drag relative to core ex-energy CPI) - Otherwise : CONTAINED_ENERGY_PASS_THROUGH (Imported energy CPI closely tracking core ex-energy CPI)