{
  "ok": true,
  "protocol": "Model Context Protocol",
  "transport": "streamable-http",
  "endpoint": "https://middle-corridor-deal-risk-gate-a2a.vassiliy-lakhonin.workers.dev/mcp/agent",
  "legacy_payment_endpoint": "https://middle-corridor-deal-risk-gate-a2a.vassiliy-lakhonin.workers.dev/mcp",
  "fleet_directory": "https://middle-corridor-deal-risk-gate-a2a.vassiliy-lakhonin.workers.dev/.well-known/fleet.json",
  "invocation": {
    "method": "POST",
    "content_type": "application/json",
    "accept": [
      "application/json",
      "text/event-stream"
    ]
  },
  "supports_sse_get": false,
  "supported_protocol_versions": [
    "2026-07-28",
    "2025-11-25",
    "2025-06-18",
    "2025-03-26"
  ],
  "server_card": "https://middle-corridor-deal-risk-gate-a2a.vassiliy-lakhonin.workers.dev/.well-known/mcp/server-card.json",
  "tools": [
    {
      "name": "middle_corridor_deal_risk",
      "description": "Screen a Kazakhstan / Middle Corridor (Trans-Caspian) trade deal for sanctions-adjacent and corridor risk before signature, shipment, insurer handoff, or committee review. Returns a triage recommendation, risk signal, decision-readiness score, supplied vs. minimum-required source categories, and evidence gaps. Required tool arguments: route, cargo, counterparties, dated_sources, risk_question, decision_stage. Grades supplied evidence; it does not independently verify source truth. Obtain the source records requested by inputSchema before asking for a decision-ready result. Do not fabricate missing evidence. For a Middle Corridor sanctions question without evidence, use corridor_sanctions_assistant at https://corridor-sanctions-assistant-a2a.vassiliy-lakhonin.workers.dev/mcp for orientation only. Illustrative example arguments (synthetic; replace with your own data): {\"route\":\"Altynkol -> Aktau/Kuryk -> Baku -> Poti\",\"cargo\":\"industrial equipment\",\"shipment_value\":{\"amount\":2400000,\"currency\":\"USD\"},\"counterparties\":[{\"role\":\"forwarder\",\"name\":\"Kazakhstan forwarder\",\"jurisdiction\":\"Kazakhstan\"}],\"dated_sources\":[{\"id\":\"e1\",\"source_type\":\"port_operator_notice\",\"title\":\"Port operator notice\",\"date\":\"2026-05-20\",\"url\":\"https://example.com/port-notice\"}],\"risk_question\":\"Should this be escalated before contract signature?\",\"decision_stage\":\"pre_signature\",\"requested_output\":\"structured_json\"}. This product offers two free trial attempts at /v1/trial; shared networks share the allowance and daily capacity is limited. Evaluation on paid endpoints requires a signed Base USDC payment for the exact request, or Pro access. Discovery is free. Keep the original request and X-Payment-Signature for result recovery within 24 hours. Current prices: https://middle-corridor-deal-risk-gate-a2a.vassiliy-lakhonin.workers.dev/.well-known/x402. Do not pay automatically. Evidence triage only: no factual-truth verification, no legal, compliance, sanctions, or financial advice. Human review is required before any commercial action.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://github.com/vassiliylakhonin/agenda-intelligence-md/schemas/v1/middle-corridor-deal-risk-request.schema.json",
        "title": "MiddleCorridorDealRiskRequest",
        "description": "Product-grade structured request contract for Kazakhstan / Middle Corridor deal-risk evidence triage. This schema describes caller-supplied route, cargo, counterparty, dated-source, and decision-stage inputs. It does not enable live retrieval, factual-truth verification, legal advice, sanctions advice, compliance advice, financial advice, investment advice, insurance advice, or trading advice.",
        "x-schema-version": "1",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "route",
          "cargo",
          "counterparties",
          "dated_sources",
          "risk_question",
          "decision_stage"
        ],
        "properties": {
          "route": {
            "type": "string",
            "minLength": 1,
            "description": "Route, corridor, or transit path under review."
          },
          "cargo": {
            "type": "string",
            "minLength": 1,
            "description": "Cargo, commodity, goods, or shipment type under review."
          },
          "shipment_value": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "amount",
              "currency"
            ],
            "properties": {
              "amount": {
                "type": "number",
                "minimum": 0
              },
              "currency": {
                "type": "string",
                "enum": [
                  "USD",
                  "EUR",
                  "GBP",
                  "KZT",
                  "CNY",
                  "TRY",
                  "AED",
                  "other"
                ]
              }
            }
          },
          "counterparties": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/$defs/counterparty"
            }
          },
          "dated_sources": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/dated_source"
            }
          },
          "risk_question": {
            "type": "string",
            "minLength": 1
          },
          "decision_stage": {
            "type": "string",
            "enum": [
              "pre_signature",
              "pre_shipment",
              "in_transit",
              "post_incident",
              "committee_review",
              "other"
            ]
          },
          "notes": {
            "type": "string",
            "minLength": 1
          },
          "requested_output": {
            "type": "string",
            "enum": [
              "structured_json",
              "markdown_summary",
              "both"
            ],
            "default": "structured_json"
          }
        },
        "$defs": {
          "counterparty": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "role",
              "name"
            ],
            "properties": {
              "role": {
                "type": "string",
                "enum": [
                  "shipper",
                  "forwarder",
                  "carrier",
                  "port_agent",
                  "consignee",
                  "bank",
                  "insurer",
                  "broker",
                  "customs_broker",
                  "unknown",
                  "other"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "jurisdiction": {
                "type": "string",
                "minLength": 1
              },
              "notes": {
                "type": "string",
                "minLength": 1
              },
              "specified_sectors": {
                "type": "array",
                "description": "Optional. Sectors the counterparty operates in, drawn from OFAC FAQ 1148 / 1151 named sectors of the Russian Federation economy. A counterparty operating in any non-'other' value carries automatic FFI sanctions-exposure context under EO 14024 as amended by EO 14114. Structural tagging only; not a sanctions determination.",
                "items": {
                  "type": "string",
                  "enum": [
                    "technology",
                    "defense_and_related_materiel",
                    "construction",
                    "aerospace",
                    "manufacturing",
                    "other"
                  ]
                }
              },
              "date_of_formation": {
                "type": "string",
                "format": "date",
                "description": "Optional. ISO 8601 date of the counterparty's company formation. Drawn from the OFAC FFI advisory red-flag pattern of a newly-formed entity in a transshipment-risk jurisdiction. Structural tagging only; not a sanctions determination."
              }
            }
          },
          "dated_source": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "source_type",
              "title",
              "date"
            ],
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "source_type": {
                "$ref": "#/$defs/source_type"
              },
              "title": {
                "type": "string",
                "minLength": 1
              },
              "date": {
                "type": "string",
                "format": "date"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "notes": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          "source_type": {
            "type": "string",
            "enum": [
              "port_operator_notice",
              "sanctions_list_extract",
              "carrier_note",
              "counterparty_registry_extract",
              "beneficial_ownership_source",
              "customs_or_regulatory_source",
              "insurance_clause_or_underwriter_note",
              "vessel_or_carrier_history",
              "rail_capacity_or_border_wait_source",
              "contract_or_invoice_extract",
              "end_user_or_reexport_evidence",
              "source_of_funds_or_wealth_evidence",
              "pep_screening_evidence",
              "business_substance_evidence",
              "user_provided_note",
              "other"
            ]
          }
        },
        "examples": [
          {
            "route": "Altynkol -> Aktau/Kuryk -> Baku -> Poti",
            "cargo": "industrial equipment",
            "shipment_value": {
              "amount": 2400000,
              "currency": "USD"
            },
            "counterparties": [
              {
                "role": "forwarder",
                "name": "Kazakhstan forwarder",
                "jurisdiction": "Kazakhstan"
              }
            ],
            "dated_sources": [
              {
                "id": "e1",
                "source_type": "port_operator_notice",
                "title": "Port operator notice",
                "date": "2026-05-20",
                "url": "https://example.com/port-notice"
              }
            ],
            "risk_question": "Should this be escalated before contract signature?",
            "decision_stage": "pre_signature",
            "requested_output": "structured_json"
          }
        ]
      },
      "_meta": {
        "com.agenda/readiness": {
          "schema_version": 1,
          "required_arguments": [
            "route",
            "cargo",
            "counterparties",
            "dated_sources",
            "risk_question",
            "decision_stage"
          ],
          "example_arguments": {
            "route": "Altynkol -> Aktau/Kuryk -> Baku -> Poti",
            "cargo": "industrial equipment",
            "shipment_value": {
              "amount": 2400000,
              "currency": "USD"
            },
            "counterparties": [
              {
                "role": "forwarder",
                "name": "Kazakhstan forwarder",
                "jurisdiction": "Kazakhstan"
              }
            ],
            "dated_sources": [
              {
                "id": "e1",
                "source_type": "port_operator_notice",
                "title": "Port operator notice",
                "date": "2026-05-20",
                "url": "https://example.com/port-notice"
              }
            ],
            "risk_question": "Should this be escalated before contract signature?",
            "decision_stage": "pre_signature",
            "requested_output": "structured_json"
          },
          "example_is_synthetic": true,
          "next_step": "Grades supplied evidence; it does not independently verify source truth. Obtain the source records requested by inputSchema before asking for a decision-ready result. Do not fabricate missing evidence. For a Middle Corridor sanctions question without evidence, use corridor_sanctions_assistant at https://corridor-sanctions-assistant-a2a.vassiliy-lakhonin.workers.dev/mcp for orientation only.",
          "expected_output_fields": [
            "triage_recommendation",
            "risk_signal",
            "decision_readiness_score",
            "decision_readiness_label",
            "supplied_sources",
            "minimum_sources_before_go",
            "evidence_gaps",
            "watch_next",
            "human_review_required",
            "not_advice_notice"
          ],
          "access": {
            "authentication": "none",
            "base_call_price": "paid",
            "billing_mode": "pay_per_call",
            "discovery_is_free": true,
            "quota_per_hour": null,
            "quota_enforcement": "best_effort",
            "pricing_url": "https://middle-corridor-deal-risk-gate-a2a.vassiliy-lakhonin.workers.dev/.well-known/x402",
            "free_trial": {
              "endpoint": "/v1/trial",
              "agent_profile": "kazakhstan",
              "tool": "middle_corridor_deal_risk",
              "evaluation_kind": "evidence_review",
              "attempts_per_network": 2,
              "daily_service_limit": 1000,
              "payment_required": false,
              "scope": "Two attempts per network address per product for this trial campaign; shared networks share the allowance. Daily capacity is shared across all products.",
              "paid_endpoint": "/mcp",
              "paid_transport": "mcp",
              "paid_price_usdc": 0.05
            },
            "on_quota_exceeded": "Wait for the next UTC hour or review optional paid access; do not pay automatically.",
            "payment_integration": "Legacy transaction-hash integration; standard x402 interoperability is not certified."
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://github.com/vassiliylakhonin/agenda-intelligence-md/schemas/v1/middle-corridor-deal-risk-response.schema.json",
        "title": "MiddleCorridorDealRiskResponse",
        "description": "Product-grade structured response contract for Kazakhstan / Middle Corridor deal-risk evidence triage. This schema supports source-coverage gaps, escalation routing, watch-next indicators, and human-review requirements. It does not provide legal advice, sanctions advice, compliance advice, financial advice, investment advice, insurance advice, trading advice, live retrieval, or factual-truth verification.",
        "x-schema-version": "1",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "triage_recommendation",
          "risk_signal",
          "decision_readiness_score",
          "decision_readiness_label",
          "supplied_sources",
          "minimum_sources_before_go",
          "evidence_gaps",
          "watch_next",
          "human_review_required",
          "not_advice_notice"
        ],
        "properties": {
          "triage_recommendation": {
            "type": "string",
            "enum": [
              "not_decision_ready",
              "escalate_before_signature",
              "escalate_before_shipment",
              "ready_for_human_review",
              "insufficient_information"
            ]
          },
          "risk_signal": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "medium_high",
              "high",
              "unknown"
            ]
          },
          "decision_readiness_score": {
            "description": "Heuristic 0-100 score for evidence-pack readiness for human review. This is not approval, clearance, legal advice, sanctions advice, compliance advice, financial advice, investment advice, insurance advice, or trading advice.",
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "decision_readiness_label": {
            "type": "string",
            "enum": [
              "insufficient_information",
              "not_decision_ready",
              "partial",
              "review_ready"
            ]
          },
          "link_integrity": {
            "description": "Observe-only structural lint of cited source-URL well-formedness. Present only when at least one supplied source carries a malformed or placeholder URL. Structural check only: it does not fetch URLs, verify that a page exists, perform live retrieval, or verify factual content. It does not change the triage recommendation, risk signal, operational decision, or evidence gaps.",
            "type": "object",
            "additionalProperties": false,
            "required": [
              "checked",
              "flagged"
            ],
            "properties": {
              "checked": {
                "type": "integer",
                "minimum": 0
              },
              "well_formed": {
                "type": "integer",
                "minimum": 0
              },
              "illustrative": {
                "type": "integer",
                "minimum": 0
              },
              "flagged": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "url",
                    "reason"
                  ],
                  "properties": {
                    "source_id": {
                      "type": "string"
                    },
                    "source_type": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "operational_decision": {
            "description": "Logistics/ops-facing booking decision derived from the decision-readiness score, risk signal, triage recommendation, and decision stage. Triage routing only; not clearance, approval, a sanctions determination, or any legal, sanctions, compliance, financial, investment, insurance, or trading advice. It never issues a hard reject (a compliance/legal call) and stops at hold or escalate. Human review is required before any commercial action.",
            "type": "object",
            "additionalProperties": false,
            "required": [
              "decision",
              "applies_to",
              "rationale"
            ],
            "properties": {
              "decision": {
                "type": "string",
                "enum": [
                  "proceed",
                  "proceed_with_conditions",
                  "hold",
                  "escalate"
                ]
              },
              "applies_to": {
                "type": "string",
                "minLength": 1
              },
              "rationale": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          "route": {
            "type": "string",
            "minLength": 1
          },
          "cargo": {
            "type": "string",
            "minLength": 1
          },
          "shipment_value": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "amount",
              "currency"
            ],
            "properties": {
              "amount": {
                "type": "number",
                "minimum": 0
              },
              "currency": {
                "type": "string",
                "enum": [
                  "USD",
                  "EUR",
                  "GBP",
                  "KZT",
                  "CNY",
                  "TRY",
                  "AED",
                  "other"
                ]
              }
            }
          },
          "counterparties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/counterparty"
            }
          },
          "supplied_sources": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/source_type"
            }
          },
          "minimum_sources_before_go": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/source_type"
            }
          },
          "evidence_gaps": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "top_risks": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "exposure_layers": {
            "type": "object",
            "additionalProperties": false,
            "description": "Risk picture decomposed into the two layers a practitioner separates: home-jurisdiction legal / documentation posture (not assessed by this product) versus foreign / secondary-sanctions exposure. Structural decomposition only; not a legal or sanctions determination.",
            "properties": {
              "domestic_legal_layer": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "foreign_sanctions_exposure_layer": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          },
          "vessel_due_diligence_indicators": {
            "type": "array",
            "description": "Deceptive-shipping-practice (DSP) verification checklist surfaced for the maritime leg when vessel / carrier history is not yet supplied. An evidence-gap checklist routed to human review (drawn from OFAC maritime guidance); not vessel adjudication, AIS analysis, live retrieval, or insurance advice.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "reexport_control_indicators": {
            "type": "array",
            "description": "End-use / end-user verification checklist surfaced when end-user or no-re-export evidence is not yet supplied. An evidence-gap checklist routed to human review (drawn from EU Sanctions Helpdesk and US end-user diversion red flags); not an end-use determination, sanctions determination, live retrieval, or legal advice. Does not affect the decision-readiness score.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "source_of_funds_indicators": {
            "type": "array",
            "description": "Source-of-funds / source-of-wealth verification checklist surfaced when source-of-funds-or-wealth evidence is not yet supplied. An evidence-gap checklist routed to human review (drawn from FATF Recommendation 10 EDD guidance); not a financial determination, AML clearance, live retrieval, or financial advice. Does not affect the decision-readiness score.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "pep_screening_indicators": {
            "type": "array",
            "description": "Politically-exposed-person (PEP) screening checklist surfaced when PEP-screening evidence is not yet supplied. An evidence-gap checklist routed to human review (drawn from FATF Recommendations 12 and 22); not a PEP determination, a political-exposure judgment, live retrieval, or legal advice. Does not affect the decision-readiness score.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "front_company_indicators": {
            "type": "array",
            "description": "Front-company / business-substance checklist surfaced when business-substance evidence is not yet supplied. An evidence-gap checklist routed to human review (drawn from EU Sanctions Helpdesk counterparty red flags: recently established or no business background, little or no web presence, shared addresses, line-of-business mismatch, contact only via broad power of attorney); not a shell-company determination, an ownership determination, live retrieval, or legal advice. Does not affect the decision-readiness score.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "route_sanctions_exposure_indicators": {
            "type": "array",
            "description": "Standing route-screening checklist of Middle Corridor connections that carry elevated sanctions-program exposure: Iran-transit legs and Russia Northern Corridor overlaps (OFAC Iran and Russia programs), sanctioned Caspian operators, and onward connections into a sanctions-relevant jurisdiction. Presence-flagging routed to human review; not a sanctions determination, live screening, or legal advice.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "route_sanctions_matched_segments": {
            "type": "array",
            "description": "Corridor segments named in the declared route text that match a sanctions-exposed connection on the screening checklist. Case-insensitive substring presence-flagging on the route string only, routed to human review; not a sanctions determination or live screening. Does not affect the decision-readiness score.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "customs_harmonization_indicators": {
            "type": "array",
            "description": "Standing customs-regime review checklist for the route: permitting clarity, and harmonized digital-customs coverage (eTIR; adopted by Organization of Turkic States members) versus unharmonized national permitting that remains a recurring barrier to private-sector corridor use. Evidence-gap prompts routed to human review; not customs, legal, or compliance advice. Does not affect the decision-readiness score.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "watch_next": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "human_review_required": {
            "type": "boolean"
          },
          "not_advice_notice": {
            "type": "string",
            "minLength": 1
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "counterparty_readiness": {
            "type": "object",
            "additionalProperties": false,
            "description": "Outward-facing reframe of the evidence-gap picture for the party that must PRESENT a due-diligence dossier to a bank, insurer, or counterparty under enhanced due diligence, rather than the internal analyst deciding whether to escalate. Derived from the required-before-go contract and supplied sources. Dossier-completeness only; not clearance, approval, a sanctions determination, or compliance advice.",
            "required": [
              "status",
              "required_total",
              "supplied_count",
              "missing_count",
              "outstanding_documents",
              "presentable_note"
            ],
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "insufficient_information",
                  "incomplete",
                  "partial",
                  "complete_for_review"
                ]
              },
              "required_total": {
                "type": "integer",
                "minimum": 0
              },
              "supplied_count": {
                "type": "integer",
                "minimum": 0
              },
              "missing_count": {
                "type": "integer",
                "minimum": 0
              },
              "outstanding_documents": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/source_type"
                }
              },
              "document_ledger": {
                "type": "array",
                "description": "Per-required-document ledger mirroring the EDD chain-of-custody practice of tracking each item with the date it was received. One entry per required-before-go source type. date_received is the earliest supplied dated source of that type, when present. Status tracking only; not verification of the document's contents or authenticity.",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "source_type",
                    "status"
                  ],
                  "properties": {
                    "source_type": {
                      "$ref": "#/$defs/source_type"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "received",
                        "missing"
                      ]
                    },
                    "date_received": {
                      "type": "string",
                      "minLength": 1
                    }
                  }
                }
              },
              "presentable_note": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          "run_provenance": {
            "type": "object",
            "additionalProperties": false,
            "description": "Deterministic content-provenance stamp: which contract version and response schema produced this output, plus a digest of the exact request input. Lets a downstream reviewer (compliance committee, bank, auditor) confirm the artifact is reproducible from a named input and ruleset. Reproducibility / traceability only; not a signature of authenticity (that is the A2A / JWS transport layer, ADR 0017), and not a factuality, clearance, or compliance attestation.",
            "required": [
              "contract_version",
              "schema_id",
              "input_digest"
            ],
            "properties": {
              "contract_version": {
                "type": "string",
                "minLength": 1,
                "description": "Version of the agenda-intelligence package / ruleset that produced this response."
              },
              "schema_id": {
                "type": "string",
                "minLength": 1,
                "description": "The $id of the response schema this output conforms to."
              },
              "input_digest": {
                "type": "string",
                "pattern": "^sha256:[0-9a-f]{64}$",
                "description": "sha256 of the canonicalized request JSON (UTF-8, keys sorted, no insignificant whitespace). Same input + same contract_version reproduces the same digest."
              }
            }
          },
          "readiness_contract": {
            "$ref": "#/$defs/readiness_contract"
          },
          "source_record_review": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "policy_version",
              "scope",
              "source_content_verified",
              "freshness_verified",
              "usable_source_types",
              "issues",
              "next_action"
            ],
            "properties": {
              "policy_version": {
                "const": "source-records.v1"
              },
              "scope": {
                "const": "reference_metadata_only"
              },
              "source_content_verified": {
                "const": false
              },
              "freshness_verified": {
                "const": false
              },
              "usable_source_types": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "issues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "source_index",
                    "source_type",
                    "issue"
                  ],
                  "properties": {
                    "source_index": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "source_type": {
                      "type": "string"
                    },
                    "issue": {
                      "type": "string"
                    }
                  }
                }
              },
              "next_action": {
                "type": "string"
              }
            }
          }
        },
        "$defs": {
          "counterparty": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "role",
              "name"
            ],
            "properties": {
              "role": {
                "type": "string",
                "enum": [
                  "shipper",
                  "forwarder",
                  "carrier",
                  "port_agent",
                  "consignee",
                  "bank",
                  "insurer",
                  "broker",
                  "customs_broker",
                  "unknown",
                  "other"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "jurisdiction": {
                "type": "string",
                "minLength": 1
              },
              "notes": {
                "type": "string",
                "minLength": 1
              },
              "specified_sectors": {
                "type": "array",
                "description": "Optional. Sectors the counterparty operates in, drawn from OFAC FAQ 1148 / 1151 named sectors of the Russian Federation economy. A counterparty operating in any non-'other' value carries automatic FFI sanctions-exposure context under EO 14024 as amended by EO 14114. Structural tagging only; not a sanctions determination.",
                "items": {
                  "type": "string",
                  "enum": [
                    "technology",
                    "defense_and_related_materiel",
                    "construction",
                    "aerospace",
                    "manufacturing",
                    "other"
                  ]
                }
              },
              "date_of_formation": {
                "type": "string",
                "format": "date",
                "description": "Optional. ISO 8601 date of the counterparty's company formation. Drawn from the OFAC FFI advisory red-flag pattern of a newly-formed entity in a transshipment-risk jurisdiction. Structural tagging only; not a sanctions determination."
              }
            }
          },
          "source_type": {
            "type": "string",
            "enum": [
              "port_operator_notice",
              "sanctions_list_extract",
              "carrier_note",
              "counterparty_registry_extract",
              "beneficial_ownership_source",
              "customs_or_regulatory_source",
              "insurance_clause_or_underwriter_note",
              "vessel_or_carrier_history",
              "rail_capacity_or_border_wait_source",
              "contract_or_invoice_extract",
              "end_user_or_reexport_evidence",
              "source_of_funds_or_wealth_evidence",
              "pep_screening_evidence",
              "business_substance_evidence",
              "user_provided_note",
              "other"
            ]
          },
          "readiness_named_value": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "field",
              "value"
            ],
            "properties": {
              "field": {
                "type": "string",
                "minLength": 1
              },
              "value": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          "readiness_contract": {
            "type": "object",
            "additionalProperties": false,
            "description": "Additive normalized readiness view for cross-profile human-review routing. Built from existing response fields; does not replace profile-specific fields and does not imply approval, clearance, advice, factual verification, or autonomous decision-making.",
            "required": [
              "profile",
              "status",
              "score",
              "routing",
              "signal",
              "blocking_gaps",
              "non_blocking_gaps",
              "claim_audit",
              "owner_actions",
              "watch_next",
              "human_review_required",
              "boundary_notice"
            ],
            "properties": {
              "profile": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "minLength": 1
              },
              "score": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0,
                "maximum": 100
              },
              "routing": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/readiness_named_value"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "signal": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/readiness_named_value"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "blocking_gaps": {
                "type": "array",
                "items": {}
              },
              "non_blocking_gaps": {
                "type": "array",
                "items": {}
              },
              "claim_audit": {
                "type": "array",
                "items": {}
              },
              "owner_actions": {
                "type": "array",
                "items": {}
              },
              "watch_next": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "human_review_required": {
                "type": "boolean"
              },
              "boundary_notice": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        },
        "examples": [
          {
            "triage_recommendation": "escalate_before_signature",
            "risk_signal": "medium_high",
            "decision_readiness_score": 42,
            "decision_readiness_label": "not_decision_ready",
            "operational_decision": {
              "decision": "escalate",
              "applies_to": "quote / sign the booking",
              "rationale": "Route to compliance or legal before you quote / sign the booking."
            },
            "route": "Altynkol -> Aktau/Kuryk -> Baku -> Poti",
            "cargo": "industrial equipment",
            "shipment_value": {
              "amount": 2400000,
              "currency": "USD"
            },
            "counterparties": [
              {
                "role": "forwarder",
                "name": "Kazakhstan forwarder",
                "jurisdiction": "Kazakhstan"
              }
            ],
            "supplied_sources": [
              "port_operator_notice",
              "sanctions_list_extract",
              "carrier_note"
            ],
            "minimum_sources_before_go": [
              "counterparty_registry_extract",
              "beneficial_ownership_source",
              "customs_or_regulatory_source",
              "insurance_clause_or_underwriter_note",
              "vessel_or_carrier_history"
            ],
            "evidence_gaps": [
              "No beneficial ownership extract supplied."
            ],
            "top_risks": [
              "sanctions adjacency",
              "Caspian crossing capacity and draft exposure"
            ],
            "watch_next": [
              "new sanctions designations",
              "Caspian ferry-slot, tonnage, or draft notice",
              "port delays or operator notices"
            ],
            "human_review_required": true,
            "not_advice_notice": "Pre-compliance evidence triage only. Not legal, sanctions, compliance, financial, investment, insurance, or trading advice.",
            "run_provenance": {
              "contract_version": "1.1.0",
              "schema_id": "https://github.com/vassiliylakhonin/agenda-intelligence-md/schemas/v1/middle-corridor-deal-risk-response.schema.json",
              "input_digest": "sha256:3b8c1d2e4f5a6079889aabbccddeeff00112233445566778899aabbccddeeff0"
            }
          }
        ]
      }
    }
  ],
  "liveness": "ok"
}