{
  "version": "1.1.0",
  "title": "Feasible sequences found",
  "summary": "Compare one-, two- or three-provider fallbacks before changing production.",
  "metrics": [
    {
      "label": "Feasible sequences",
      "value": 3
    },
    {
      "label": "Sequences checked",
      "value": 4
    },
    {
      "label": "Currency",
      "value": "USD"
    }
  ],
  "tables": [
    {
      "title": "Lowest estimated cost first",
      "columns": [
        "Sequence",
        "Worst cost",
        "Expected cost",
        "Estimated success",
        "Latency bound (ms)"
      ],
      "rows": [
        [
          "Example A → Example B",
          "0.03",
          0.018,
          "98.00%",
          6000
        ],
        [
          "Example B",
          "0.02",
          0.02,
          "95.00%",
          4000
        ],
        [
          "Example B → Example A",
          "0.03",
          0.0205,
          "98.00%",
          6000
        ]
      ]
    },
    {
      "title": "Excluded candidates",
      "columns": [
        "Candidate",
        "Reason"
      ],
      "rows": [
        [
          "Restricted provider",
          "Excluded by your policy"
        ]
      ]
    }
  ],
  "notes": [
    "This is an offline scenario planner, not an execution or payment router. Expected figures assume independent failures, fixed all-in attempt costs and early stop after success.",
    "Correlated failures invalidate the success estimates. Every allowed sequence uses distinct candidates; budget checks use exact worst-case total cost, not expected cost. Latency is a supplied bound, not an observed guarantee.",
    "Only the first 20 feasible sequences are shown; all sequences and rejection reasons are included in the JSON report."
  ],
  "data": {
    "recommendation": {
      "sequence": [
        "Example A",
        "Example B"
      ],
      "worstCost": "0.03",
      "expectedCost": 0.018,
      "success": 0.98,
      "latencyMs": 6000,
      "eligible": true,
      "reasons": []
    },
    "plans": [
      {
        "sequence": [
          "Example A"
        ],
        "worstCost": "0.01",
        "expectedCost": 0.01,
        "success": 0.6,
        "latencyMs": 2000,
        "eligible": false,
        "reasons": [
          "Estimated success below target"
        ]
      },
      {
        "sequence": [
          "Example A",
          "Example B"
        ],
        "worstCost": "0.03",
        "expectedCost": 0.018,
        "success": 0.98,
        "latencyMs": 6000,
        "eligible": true,
        "reasons": []
      },
      {
        "sequence": [
          "Example B"
        ],
        "worstCost": "0.02",
        "expectedCost": 0.02,
        "success": 0.95,
        "latencyMs": 4000,
        "eligible": true,
        "reasons": []
      },
      {
        "sequence": [
          "Example B",
          "Example A"
        ],
        "worstCost": "0.03",
        "expectedCost": 0.0205,
        "success": 0.98,
        "latencyMs": 6000,
        "eligible": true,
        "reasons": []
      }
    ]
  }
}
