{
  "schemaVersion": 1,
  "kind": "Exact synthetic finite-distribution arithmetic",
  "generatedAt": "2026-10-17T09:10:21.336276+00:00",
  "pythonVersion": "3.12.3",
  "sourceCodeSha256": "9ac2c00c8ee7aac44ea369ad1c6784a38595c4d5facc669230912e020452fc63",
  "license": "CC0-1.0 for this original model and generated examples only",
  "units": {
    "duration": "milliseconds",
    "busy": "sum of modeled service milliseconds across the dispatched copies",
    "requests": "dispatched copies per logical request",
    "weight": "exact probability weight, not an observed sample count"
  },
  "assumptions": [
    "Both replicas are eligible to return an equivalent successful read result.",
    "Primary starts at zero; secondary starts at delay only if primary is unfinished.",
    "Completion at exactly the delay suppresses the secondary.",
    "Durations and joint weights are fixed; extra work does not change them.",
    "Each copy runs continuously from dispatch until completion or cancellation.",
    "Cancellation arrives cancel_after_ms after the first result; no message cost.",
    "No queues, network latency, failures, deadlines that abort work, or load feedback.",
    "This is not tied-request cancellation at service start."
  ],
  "scenarios": [
    {
      "name": "Independent",
      "delay_ms": 20,
      "cancel_after_ms": 0,
      "deadline_ms": 50,
      "weight_total": 400,
      "events": [
        {
          "primary_ms": 10,
          "secondary_ms": 10,
          "weight": 361,
          "completion_ms": 10,
          "requests": 1,
          "busy_ms": 10,
          "uncancelled_busy_ms": 10
        },
        {
          "primary_ms": 10,
          "secondary_ms": 100,
          "weight": 19,
          "completion_ms": 10,
          "requests": 1,
          "busy_ms": 10,
          "uncancelled_busy_ms": 10
        },
        {
          "primary_ms": 100,
          "secondary_ms": 10,
          "weight": 19,
          "completion_ms": 30,
          "requests": 2,
          "busy_ms": 40,
          "uncancelled_busy_ms": 110
        },
        {
          "primary_ms": 100,
          "secondary_ms": 100,
          "weight": 1,
          "completion_ms": 100,
          "requests": 2,
          "busy_ms": 180,
          "uncancelled_busy_ms": 200
        }
      ],
      "baseline_mean_ms": 14.5,
      "mean_completion_ms": 11.175,
      "mean_requests": 1.05,
      "mean_busy_ms": 11.85,
      "mean_uncancelled_busy_ms": 15.225,
      "baseline_late_probability": 0.05,
      "late_probability": 0.0025,
      "exact": {
        "baseline_mean_ms": "29/2",
        "mean_completion_ms": "447/40",
        "mean_requests": "21/20",
        "mean_busy_ms": "237/20",
        "mean_uncancelled_busy_ms": "609/40",
        "baseline_late_probability": "1/20",
        "late_probability": "1/400"
      }
    },
    {
      "name": "Shared slow state",
      "delay_ms": 20,
      "cancel_after_ms": 0,
      "deadline_ms": 50,
      "weight_total": 20,
      "events": [
        {
          "primary_ms": 10,
          "secondary_ms": 10,
          "weight": 19,
          "completion_ms": 10,
          "requests": 1,
          "busy_ms": 10,
          "uncancelled_busy_ms": 10
        },
        {
          "primary_ms": 100,
          "secondary_ms": 100,
          "weight": 1,
          "completion_ms": 100,
          "requests": 2,
          "busy_ms": 180,
          "uncancelled_busy_ms": 200
        }
      ],
      "baseline_mean_ms": 14.5,
      "mean_completion_ms": 14.5,
      "mean_requests": 1.05,
      "mean_busy_ms": 18.5,
      "mean_uncancelled_busy_ms": 19.5,
      "baseline_late_probability": 0.05,
      "late_probability": 0.05,
      "exact": {
        "baseline_mean_ms": "29/2",
        "mean_completion_ms": "29/2",
        "mean_requests": "21/20",
        "mean_busy_ms": "37/2",
        "mean_uncancelled_busy_ms": "39/2",
        "baseline_late_probability": "1/20",
        "late_probability": "1/20"
      }
    },
    {
      "name": "Disjoint slow states",
      "delay_ms": 20,
      "cancel_after_ms": 0,
      "deadline_ms": 50,
      "weight_total": 20,
      "events": [
        {
          "primary_ms": 10,
          "secondary_ms": 10,
          "weight": 18,
          "completion_ms": 10,
          "requests": 1,
          "busy_ms": 10,
          "uncancelled_busy_ms": 10
        },
        {
          "primary_ms": 10,
          "secondary_ms": 100,
          "weight": 1,
          "completion_ms": 10,
          "requests": 1,
          "busy_ms": 10,
          "uncancelled_busy_ms": 10
        },
        {
          "primary_ms": 100,
          "secondary_ms": 10,
          "weight": 1,
          "completion_ms": 30,
          "requests": 2,
          "busy_ms": 40,
          "uncancelled_busy_ms": 110
        }
      ],
      "baseline_mean_ms": 14.5,
      "mean_completion_ms": 11.0,
      "mean_requests": 1.05,
      "mean_busy_ms": 11.5,
      "mean_uncancelled_busy_ms": 15.0,
      "baseline_late_probability": 0.05,
      "late_probability": 0.0,
      "exact": {
        "baseline_mean_ms": "29/2",
        "mean_completion_ms": "11",
        "mean_requests": "21/20",
        "mean_busy_ms": "23/2",
        "mean_uncancelled_busy_ms": "15",
        "baseline_late_probability": "1/20",
        "late_probability": "0"
      }
    },
    {
      "name": "Independent; cancellation takes 20 ms",
      "delay_ms": 20,
      "cancel_after_ms": 20,
      "deadline_ms": 50,
      "weight_total": 400,
      "events": [
        {
          "primary_ms": 10,
          "secondary_ms": 10,
          "weight": 361,
          "completion_ms": 10,
          "requests": 1,
          "busy_ms": 10,
          "uncancelled_busy_ms": 10
        },
        {
          "primary_ms": 10,
          "secondary_ms": 100,
          "weight": 19,
          "completion_ms": 10,
          "requests": 1,
          "busy_ms": 10,
          "uncancelled_busy_ms": 10
        },
        {
          "primary_ms": 100,
          "secondary_ms": 10,
          "weight": 19,
          "completion_ms": 30,
          "requests": 2,
          "busy_ms": 60,
          "uncancelled_busy_ms": 110
        },
        {
          "primary_ms": 100,
          "secondary_ms": 100,
          "weight": 1,
          "completion_ms": 100,
          "requests": 2,
          "busy_ms": 200,
          "uncancelled_busy_ms": 200
        }
      ],
      "baseline_mean_ms": 14.5,
      "mean_completion_ms": 11.175,
      "mean_requests": 1.05,
      "mean_busy_ms": 12.85,
      "mean_uncancelled_busy_ms": 15.225,
      "baseline_late_probability": 0.05,
      "late_probability": 0.0025,
      "exact": {
        "baseline_mean_ms": "29/2",
        "mean_completion_ms": "447/40",
        "mean_requests": "21/20",
        "mean_busy_ms": "257/20",
        "mean_uncancelled_busy_ms": "609/40",
        "baseline_late_probability": "1/20",
        "late_probability": "1/400"
      }
    }
  ],
  "limitations": [
    "Same marginal durations do not identify the joint law.",
    "Busy time is not device utilization, CPU time or bytes transferred.",
    "The model cannot show overload-induced slowdowns or choose a safe hedge delay.",
    "Neither paper measurements nor production latency improvements are reproduced."
  ]
}
