{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://analysisreports.github.io/schemas/sitrep.schema.json",
  "title": "Autonomous Macro & Geopolitical Situation Report (SITREP) Schema",
  "description": "Formal JSON Schema Draft 2020-12 data contract for consolidated real-time macro telemetry, chokepoint AIS, and media reality check contagion rules.",
  "type": "object",
  "required": [
    "metadata",
    "top_systemic_flashes",
    "energy_matrix",
    "semiconductors_tech",
    "metals_commodities",
    "maritime_chokepoints",
    "macro_liquidity",
    "systemic_contagion_rules"
  ],
  "properties": {
    "$schema": {
      "type": "string"
    },
    "metadata": {
      "type": "object",
      "required": [
        "title",
        "domain",
        "version",
        "author",
        "license",
        "endpoint",
        "documentation",
        "last_updated",
        "sync_status",
        "data_completeness_pct",
        "source_authority",
        "methodology_reference",
        "root_index"
      ],
      "properties": {
        "title": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "author": {
          "type": "string"
        },
        "license": {
          "type": "string"
        },
        "endpoint": {
          "type": "string",
          "format": "uri"
        },
        "text_endpoint": {
          "type": "string",
          "format": "uri",
          "description": "Canonical URI of the synchronized human/LLM plain text markdown twin (llms-sitrep.txt)."
        },
        "documentation": {
          "type": "string",
          "format": "uri"
        },
        "last_updated": {
          "type": "string",
          "format": "date-time"
        },
        "sync_status": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "FAILED",
            "PARTIAL"
          ]
        },
        "data_completeness_pct": {
          "type": "number"
        },
        "disclaimer": {
          "type": "string"
        },
        "source_authority": {
          "type": "string"
        },
        "methodology_reference": {
          "type": "string",
          "format": "uri"
        },
        "root_index": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "top_systemic_flashes": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "source",
          "entity_id",
          "event"
        ],
        "properties": {
          "source": {
            "type": "string"
          },
          "entity_id": {
            "type": "string"
          },
          "event": {
            "type": "string"
          },
          "causal_chain": {
            "type": "string",
            "description": "Deterministic transmission vector sequence (A -> B -> C)."
          },
          "systemic_impact": {
            "type": "string",
            "description": "Cross-asset institutional and macroeconomic consequence."
          }
        }
      }
    },
    "news_linked_telemetry": {
      "type": "array",
      "description": "Headline-triggered quantitative telemetry promoted dynamically from llms-repertory.json.",
      "items": {
        "type": "object",
        "required": ["dispatch_id", "severity", "entity", "headline", "linked_metrics"],
        "properties": {
          "dispatch_id": { "type": "string" },
          "severity": { "type": "string" },
          "category": { "type": "string" },
          "entity": { "type": "string" },
          "related_entities": { "type": "array", "items": { "type": "string" } },
          "headline": { "type": "string" },
          "source_authority": { "type": "string" },
          "linked_metrics": { "type": "array", "items": { "type": "object" } }
        }
      }
    },
    "energy_matrix": {
      "type": "object"
    },
    "semiconductors_tech": {
      "type": "object",
      "properties": {
        "chip_cascade_pressure_pct": { "type": ["number", "null"] },
        "chip_cascade_regime": { "type": ["string", "null"] },
        "chip_import_price_yoy_pct": { "type": ["number", "null"] },
        "chip_ppi_yoy_pct": { "type": ["number", "null"] },
        "chip_ip_yoy_pct": { "type": ["number", "null"] },
        "chip_pass_through_ratio": { "type": ["number", "null"] },
        "chip_import_to_ppi_spread_ppt": { "type": ["number", "null"] },
        "tech_bloc_telemetry": {
          "type": "object",
          "description": "Structural semiconductor & AI bloc telemetry (BLOC_PAX_SILICA vs BLOC_WAICO) coupled with Model 25.24 (SFBCI).",
          "properties": {
            "pax_silica_signatories_count": { "type": ["integer", "null"] },
            "waico_signatories_count": { "type": ["integer", "null"] },
            "bloc_polarity_stance": { "type": ["number", "null"] },
            "bridge_nodes": {
              "type": "array",
              "items": { "type": "string" }
            },
            "non_aligned_balancer": { "type": ["string", "null"] },
            "pax_core_fcr_pct": { "type": ["number", "null"] },
            "sfbci_score": { "type": ["number", "null"] },
            "sfbci_regime": { "type": ["string", "null"] }
          }
        }
      }
    },
    "metals_commodities": {
      "type": "object",
      "description": "Precious metals and industrial commodities telemetry. Note: 'gold_spot_usd_ozt' represents live physical spot benchmark via The Royal Mint converted using the ECB GBP/USD cross rate. 'gold_wb_monthly_usd_ozt' represents official macroeconomic monthly benchmark (World Bank Pink Sheet).",
      "properties": {
        "food_index_global_val": { "type": ["number", "null"] },
        "food_index_yoy_pct": { "type": ["number", "null"] },
        "food_cascade_grain_basket_yoy_pct": { "type": ["number", "null"] },
        "food_cascade_regime": { "type": ["string", "null"] },
        "food_cascade_corn_yoy_pct": { "type": ["number", "null"] },
        "food_cascade_pass_through_ratio": { "type": ["number", "null"] },
        "food_cascade_spread_ppt": { "type": ["number", "null"] },
        "gold_spot_usd_ozt": {
          "type": [
            "number",
            "null"
          ],
          "description": "Physical live spot gold price in USD per troy ounce (Source: The Royal Mint Sovereign Spot Benchmark, calculated via ECB GBP/USD cross rate)."
        },
        "gold_spot_gbp_ozt": {
          "type": [
            "number",
            "null"
          ],
          "description": "Physical live spot gold price in GBP per troy ounce (Source: The Royal Mint)."
        },
        "silver_spot_usd_ozt": {
          "type": [
            "number",
            "null"
          ],
          "description": "Physical live spot silver price in USD per troy ounce (Source: The Royal Mint, calculated via ECB GBP/USD cross rate)."
        },
        "silver_spot_gbp_ozt": {
          "type": [
            "number",
            "null"
          ],
          "description": "Physical live spot silver price in GBP per troy ounce (Source: The Royal Mint)."
        },
        "ecb_gbp_usd_cross_rate": {
          "type": [
            "number",
            "null"
          ],
          "description": "Official ECB GBP/USD reference exchange rate used for London physical spot currency translation."
        },
        "fx_observation_date": {
          "type": [
            "string",
            "null"
          ],
          "description": "Observation date of the ECB exchange rate and Royal Mint spot feed."
        },
        "gold_wb_monthly_usd_ozt": {
          "type": [
            "number",
            "null"
          ],
          "description": "Macroeconomic monthly benchmark gold price in USD per troy ounce (Source: World Bank Pink Sheet series IND_WB_GOLD)."
        },
        "gold_wb_monthly_yoy_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Year-over-year percentage change for World Bank gold benchmark."
        },
        "silver_wb_monthly_usd_ozt": {
          "type": [
            "number",
            "null"
          ],
          "description": "Macroeconomic monthly benchmark silver price in USD per troy ounce (Source: World Bank Pink Sheet series IND_WB_SILVER)."
        },
        "silver_wb_monthly_yoy_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Year-over-year percentage change for World Bank silver benchmark."
        },
        "gold_silver_ratio": {
          "type": [
            "number",
            "null"
          ],
          "description": "Live gold-to-silver price ratio (calculated primarily via physical spot benchmark)."
        },
        "copper_global_usd_mt": {
          "type": [
            "number",
            "null"
          ],
          "description": "Global copper price in USD per metric ton."
        },
        "copper_yoy_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Year-over-year percentage change for global copper."
        },
        "wheat_global_usd_mt": {
          "type": [
            "number",
            "null"
          ],
          "description": "Global wheat price in USD per metric ton."
        },
        "wheat_yoy_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Year-over-year percentage change for global wheat."
        }
      }
    },
    "maritime_chokepoints": {
      "type": "object",
      "properties": {
        "CHOKE_HORMUZ": {
          "type": "object",
          "properties": {
            "observability_bridge": {
              "type": "object",
              "properties": {
                "status_key": { "type": "string" },
                "formula_link": { "type": "string" },
                "ais_shift_pct": { "type": "number" },
                "refinery_utilization_pct": { "type": "number" },
                "t_calendar_days": { "type": ["integer", "null"] },
                "t_effective_days": { "type": ["number", "null"] },
                "daily_alpha": { "type": ["number", "null"] },
                "spr_depletion_phase": { "type": ["string", "null"] },
                "conditional_days_to_60d_threshold": { "type": ["number", "null"] },
                "conditional_days_to_90d_threshold": { "type": ["number", "null"] }
              }
            }
          }
        }
      }
    },
    "macro_liquidity": {
      "type": "object",
      "properties": {
        "nyfed_sofr_p99_pct": { "type": ["number", "null"] },
        "nyfed_sofr_tail_spread_bps": { "type": ["number", "null"] },
        "nyfed_srf_accepted_bn_usd": { "type": ["number", "null"] },
        "nyfed_fx_swaps_mn_usd": { "type": ["number", "null"] },
        "kc_roro_index": { "type": ["number", "null"] },
        "kc_roro_regime": { "type": ["string", "null"] },
        "kc_roro_gold_usd_index": { "type": ["number", "null"] },
        "kc_roro_gold_usd_regime": { "type": ["string", "null"] }
      }
    },
    "systemic_contagion_rules": {
      "type": "array",
      "description": "Deterministic rules for validating mainstream news narratives against physical ground truth telemetry.",
      "items": {
        "type": "object",
        "required": [
          "rule_id",
          "domain",
          "telemetry_signal",
          "media_claim_bias",
          "ground_truth_reality",
          "formula_link"
        ],
        "properties": {
          "rule_id": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "telemetry_signal": {
            "type": "string"
          },
          "media_claim_bias": {
            "type": "string"
          },
          "ground_truth_reality": {
            "type": "string"
          },
          "formula_link": {
            "type": "string",
            "format": "uri"
          },
          "status": {
            "type": "string",
            "enum": ["ACTIVE", "PASSIVE"]
          },
          "source_provenance": {
            "type": "string"
          },
          "matched_news_claims": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["dispatch_id", "source_authority", "published_utc", "headline"],
              "properties": {
                "dispatch_id": { "type": "string" },
                "source_authority": { "type": "string" },
                "published_utc": { "type": "string" },
                "primary_entity": { "type": "string" },
                "headline": { "type": "string" }
              }
            }
          }
        }
      }
    },
    "active_cognitive_nexus": {
      "type": "array",
      "description": "Lazy-loaded list of currently ACTIVE Cognitive Nexus nodes synthesized from llms-nexus.json.",
      "items": {
        "type": "object",
        "required": [
          "nexus_id",
          "title",
          "status",
          "market_claim_illusion",
          "quantitative_reality",
          "causal_chain"
        ],
        "properties": {
          "nexus_id": { "type": "string" },
          "title": { "type": "string" },
          "status": { "type": "string" },
          "trigger_logic": { "type": "string" },
          "evaluated_inputs": { "type": "object" },
          "market_claim_illusion": { "type": ["string", "null"] },
          "quantitative_reality": { "type": ["string", "null"] },
          "causal_chain": { "type": ["string", "null"] },
          "systemic_impact": { "type": ["string", "null"] },
          "historical_precedents": {
            "type": "array",
            "items": { "type": "string" }
          }
        }
      }
    },
    "daily_movers": {
      "type": "array",
      "description": "Top live series ranked by absolute observation-to-observation percentage change to surface fresh daily signals.",
      "items": {
        "type": "object",
        "required": ["feed", "series_id", "previous_value", "current_value", "delta_pct"],
        "properties": {
          "feed": { "type": "string" },
          "series_id": { "type": "string" },
          "title": { "type": "string" },
          "last_date": { "type": ["string", "null"] },
          "previous_value": { "type": "number" },
          "current_value": { "type": "number" },
          "delta_pct": { "type": "number" }
        }
      }
    },
    "regional_desks": {
      "type": "array",
      "description": "Six regional intelligence desks hoisting their top anomaly flags and 1-hop graph butterfly targets to the master SITREP.",
      "items": {
        "type": "object",
        "required": ["desk_id", "label", "flag_summary", "active_nexus_ids", "matched_news_count", "butterfly_targets", "tracked_blocs"],
        "properties": {
          "desk_id": { "type": "string" },
          "label": { "type": "string" },
          "flag_summary": { "type": "string" },
          "top_mover": { "type": ["object", "null"] },
          "top_chokepoint": { "type": ["object", "null"] },
          "active_nexus_ids": { "type": "array", "items": { "type": "string" } },
          "matched_news_count": { "type": "integer", "minimum": 0 },
          "butterfly_targets": { "type": "array", "items": { "type": "string" } },
          "cross_region_links": { "type": "array", "items": { "type": "string" } },
          "tracked_blocs": { "type": "array", "items": { "type": "string" } }
        }
      }
    }
  }
}