{
  "schema": "nodus.synthetic.clock-offset-bounds.v1",
  "scope": "Authored arithmetic only; no clocks sampled, network requests, GPU or provider measurements.",
  "assumptions": [
    "constant server-minus-client offset",
    "equal clock rates and units",
    "no reset, wrap, timestamp error or drift",
    "nonnegative one-way delays",
    "server sends immediately at the defined ready event"
  ],
  "complete_cases": [
    {
      "unit": "synthetic_seconds",
      "constant_offset_equal_rate": true,
      "client_clock_send": "caller-A",
      "client_clock_receive": "caller-A",
      "server_clock_receive": "worker-B",
      "server_clock_send": "worker-B",
      "id": "positive_origin",
      "c0": "0",
      "s1": "1005",
      "s2": "1013",
      "c3": "18",
      "deadline": "16"
    },
    {
      "unit": "synthetic_seconds",
      "constant_offset_equal_rate": true,
      "client_clock_send": "caller-A",
      "client_clock_receive": "caller-A",
      "server_clock_receive": "worker-B",
      "server_clock_send": "worker-B",
      "id": "negative_origin",
      "c0": "0",
      "s1": "-995",
      "s2": "-987",
      "c3": "18",
      "deadline": "16"
    },
    {
      "unit": "synthetic_seconds",
      "constant_offset_equal_rate": true,
      "client_clock_send": "caller-A",
      "client_clock_receive": "caller-A",
      "server_clock_receive": "worker-B",
      "server_clock_send": "worker-B",
      "id": "zero_origin",
      "c0": "0",
      "s1": "5",
      "s2": "13",
      "c3": "18",
      "deadline": "16"
    },
    {
      "unit": "synthetic_seconds",
      "constant_offset_equal_rate": true,
      "client_clock_send": "caller-A",
      "client_clock_receive": "caller-A",
      "server_clock_receive": "worker-B",
      "server_clock_send": "worker-B",
      "id": "no_network_residual",
      "c0": "0",
      "s1": "1000",
      "s2": "1008",
      "c3": "8",
      "deadline": "8"
    },
    {
      "unit": "synthetic_seconds",
      "constant_offset_equal_rate": true,
      "client_clock_send": "caller-A",
      "client_clock_receive": "caller-A",
      "server_clock_receive": "worker-B",
      "server_clock_send": "worker-B",
      "id": "rational_values",
      "c0": "1/2",
      "s1": "201/2",
      "s2": "209/2",
      "c3": "13/2",
      "deadline": "5"
    },
    {
      "unit": "synthetic_seconds",
      "constant_offset_equal_rate": true,
      "client_clock_send": "caller-A",
      "client_clock_receive": "caller-A",
      "server_clock_receive": "worker-B",
      "server_clock_send": "worker-B",
      "id": "guaranteed_late",
      "c0": "0",
      "s1": "1005",
      "s2": "1013",
      "c3": "18",
      "deadline": "7"
    },
    {
      "unit": "synthetic_seconds",
      "constant_offset_equal_rate": true,
      "client_clock_send": "caller-A",
      "client_clock_receive": "caller-A",
      "server_clock_receive": "worker-B",
      "server_clock_send": "worker-B",
      "id": "guaranteed_within",
      "c0": "0",
      "s1": "1005",
      "s2": "1013",
      "c3": "18",
      "deadline": "18"
    }
  ],
  "results": [
    {
      "id": "positive_origin",
      "offset_interval": [
        "995",
        "1005"
      ],
      "ready_elapsed_interval": [
        "8",
        "18"
      ],
      "naive_cross_clock_difference": "1013",
      "midpoint_ready_elapsed": "13",
      "caller_round_trip": "18",
      "deadline": "16",
      "verdict": "unidentified_within_model",
      "witnesses": [
        {
          "offset": "995",
          "outbound": "10",
          "server_work": "8",
          "inbound": "0",
          "ready_elapsed": "18",
          "ready_by_deadline": false
        },
        {
          "offset": "1000",
          "outbound": "5",
          "server_work": "8",
          "inbound": "5",
          "ready_elapsed": "13",
          "ready_by_deadline": true
        },
        {
          "offset": "1005",
          "outbound": "0",
          "server_work": "8",
          "inbound": "10",
          "ready_elapsed": "8",
          "ready_by_deadline": true
        }
      ]
    },
    {
      "id": "negative_origin",
      "offset_interval": [
        "-1005",
        "-995"
      ],
      "ready_elapsed_interval": [
        "8",
        "18"
      ],
      "naive_cross_clock_difference": "-987",
      "midpoint_ready_elapsed": "13",
      "caller_round_trip": "18",
      "deadline": "16",
      "verdict": "unidentified_within_model",
      "witnesses": [
        {
          "offset": "-1005",
          "outbound": "10",
          "server_work": "8",
          "inbound": "0",
          "ready_elapsed": "18",
          "ready_by_deadline": false
        },
        {
          "offset": "-1000",
          "outbound": "5",
          "server_work": "8",
          "inbound": "5",
          "ready_elapsed": "13",
          "ready_by_deadline": true
        },
        {
          "offset": "-995",
          "outbound": "0",
          "server_work": "8",
          "inbound": "10",
          "ready_elapsed": "8",
          "ready_by_deadline": true
        }
      ]
    },
    {
      "id": "zero_origin",
      "offset_interval": [
        "-5",
        "5"
      ],
      "ready_elapsed_interval": [
        "8",
        "18"
      ],
      "naive_cross_clock_difference": "13",
      "midpoint_ready_elapsed": "13",
      "caller_round_trip": "18",
      "deadline": "16",
      "verdict": "unidentified_within_model",
      "witnesses": [
        {
          "offset": "-5",
          "outbound": "10",
          "server_work": "8",
          "inbound": "0",
          "ready_elapsed": "18",
          "ready_by_deadline": false
        },
        {
          "offset": "0",
          "outbound": "5",
          "server_work": "8",
          "inbound": "5",
          "ready_elapsed": "13",
          "ready_by_deadline": true
        },
        {
          "offset": "5",
          "outbound": "0",
          "server_work": "8",
          "inbound": "10",
          "ready_elapsed": "8",
          "ready_by_deadline": true
        }
      ]
    },
    {
      "id": "no_network_residual",
      "offset_interval": [
        "1000",
        "1000"
      ],
      "ready_elapsed_interval": [
        "8",
        "8"
      ],
      "naive_cross_clock_difference": "1008",
      "midpoint_ready_elapsed": "8",
      "caller_round_trip": "8",
      "deadline": "8",
      "verdict": "guaranteed_within_model",
      "witnesses": [
        {
          "offset": "1000",
          "outbound": "0",
          "server_work": "8",
          "inbound": "0",
          "ready_elapsed": "8",
          "ready_by_deadline": true
        }
      ]
    },
    {
      "id": "rational_values",
      "offset_interval": [
        "98",
        "100"
      ],
      "ready_elapsed_interval": [
        "4",
        "6"
      ],
      "naive_cross_clock_difference": "104",
      "midpoint_ready_elapsed": "5",
      "caller_round_trip": "6",
      "deadline": "5",
      "verdict": "unidentified_within_model",
      "witnesses": [
        {
          "offset": "98",
          "outbound": "2",
          "server_work": "4",
          "inbound": "0",
          "ready_elapsed": "6",
          "ready_by_deadline": false
        },
        {
          "offset": "99",
          "outbound": "1",
          "server_work": "4",
          "inbound": "1",
          "ready_elapsed": "5",
          "ready_by_deadline": true
        },
        {
          "offset": "100",
          "outbound": "0",
          "server_work": "4",
          "inbound": "2",
          "ready_elapsed": "4",
          "ready_by_deadline": true
        }
      ]
    },
    {
      "id": "guaranteed_late",
      "offset_interval": [
        "995",
        "1005"
      ],
      "ready_elapsed_interval": [
        "8",
        "18"
      ],
      "naive_cross_clock_difference": "1013",
      "midpoint_ready_elapsed": "13",
      "caller_round_trip": "18",
      "deadline": "7",
      "verdict": "guaranteed_late_within_model",
      "witnesses": [
        {
          "offset": "995",
          "outbound": "10",
          "server_work": "8",
          "inbound": "0",
          "ready_elapsed": "18",
          "ready_by_deadline": false
        },
        {
          "offset": "1000",
          "outbound": "5",
          "server_work": "8",
          "inbound": "5",
          "ready_elapsed": "13",
          "ready_by_deadline": false
        },
        {
          "offset": "1005",
          "outbound": "0",
          "server_work": "8",
          "inbound": "10",
          "ready_elapsed": "8",
          "ready_by_deadline": false
        }
      ]
    },
    {
      "id": "guaranteed_within",
      "offset_interval": [
        "995",
        "1005"
      ],
      "ready_elapsed_interval": [
        "8",
        "18"
      ],
      "naive_cross_clock_difference": "1013",
      "midpoint_ready_elapsed": "13",
      "caller_round_trip": "18",
      "deadline": "18",
      "verdict": "guaranteed_within_model",
      "witnesses": [
        {
          "offset": "995",
          "outbound": "10",
          "server_work": "8",
          "inbound": "0",
          "ready_elapsed": "18",
          "ready_by_deadline": true
        },
        {
          "offset": "1000",
          "outbound": "5",
          "server_work": "8",
          "inbound": "5",
          "ready_elapsed": "13",
          "ready_by_deadline": true
        },
        {
          "offset": "1005",
          "outbound": "0",
          "server_work": "8",
          "inbound": "10",
          "ready_elapsed": "8",
          "ready_by_deadline": true
        }
      ]
    }
  ],
  "refusal_controls": [
    {
      "id": "client_reset",
      "refused": true,
      "reason": "client clock instance changed"
    },
    {
      "id": "server_reset",
      "refused": true,
      "reason": "server clock instance changed"
    },
    {
      "id": "unit_unqualified",
      "refused": true,
      "reason": "unqualified unit"
    },
    {
      "id": "rate_or_offset_unqualified",
      "refused": true,
      "reason": "clock model not qualified"
    },
    {
      "id": "backward_client",
      "refused": true,
      "reason": "negative duration or deadline"
    },
    {
      "id": "backward_server",
      "refused": true,
      "reason": "negative duration or deadline"
    },
    {
      "id": "server_work_exceeds_round_trip",
      "refused": true,
      "reason": "no feasible constant-offset world"
    },
    {
      "id": "negative_deadline",
      "refused": true,
      "reason": "negative duration or deadline"
    },
    {
      "id": "inexact_float_input",
      "refused": true,
      "reason": "timestamps must be exact rational strings"
    }
  ],
  "summary": {
    "cases": 7,
    "literal_expected_results_passed": 7,
    "compatible_witnesses": 19,
    "refusal_controls_passed": 9
  }
}
