{
  "schema": "nodus.billing-quantum-result.v1",
  "environment": {
    "python": "3.9.6 (default, May 22 2026, 11:13:45) \n[Clang 21.0.0 (clang-2100.1.1.101)]",
    "platform": "macOS-26.5.1-arm64-arm-64bit"
  },
  "cases": [
    {
      "id": "short_low",
      "tariff": {
        "rate_credits_per_tick": 1,
        "quantum_ticks": 1,
        "minimum_ticks": 10
      },
      "allocations": [
        {
          "id": "a0",
          "start": 0,
          "end": 2,
          "launched": true,
          "observed_ticks": 2,
          "billed_ticks": 10,
          "gross_model_credits": 10,
          "work_ticks": 2,
          "jobs": [
            "j0"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a1",
          "start": 2,
          "end": 4,
          "launched": true,
          "observed_ticks": 2,
          "billed_ticks": 10,
          "gross_model_credits": 10,
          "work_ticks": 2,
          "jobs": [
            "j1"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a2",
          "start": 4,
          "end": 6,
          "launched": true,
          "observed_ticks": 2,
          "billed_ticks": 10,
          "gross_model_credits": 10,
          "work_ticks": 2,
          "jobs": [
            "j2"
          ],
          "idle_ticks": 0
        }
      ],
      "jobs": [
        {
          "id": "j0",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j1",
          "allocation_id": "a1",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j2",
          "allocation_id": "a2",
          "outcome": "accepted",
          "work_ticks": 2
        }
      ],
      "summary": {
        "id": "short_low",
        "observed_allocation_ticks": 6,
        "billed_ticks": 30,
        "gross_model_credits": 30,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "10"
      }
    },
    {
      "id": "short_high",
      "tariff": {
        "rate_credits_per_tick": 2,
        "quantum_ticks": 1,
        "minimum_ticks": 1
      },
      "allocations": [
        {
          "id": "a0",
          "start": 0,
          "end": 2,
          "launched": true,
          "observed_ticks": 2,
          "billed_ticks": 2,
          "gross_model_credits": 4,
          "work_ticks": 2,
          "jobs": [
            "j0"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a1",
          "start": 2,
          "end": 4,
          "launched": true,
          "observed_ticks": 2,
          "billed_ticks": 2,
          "gross_model_credits": 4,
          "work_ticks": 2,
          "jobs": [
            "j1"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a2",
          "start": 4,
          "end": 6,
          "launched": true,
          "observed_ticks": 2,
          "billed_ticks": 2,
          "gross_model_credits": 4,
          "work_ticks": 2,
          "jobs": [
            "j2"
          ],
          "idle_ticks": 0
        }
      ],
      "jobs": [
        {
          "id": "j0",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j1",
          "allocation_id": "a1",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j2",
          "allocation_id": "a2",
          "outcome": "accepted",
          "work_ticks": 2
        }
      ],
      "summary": {
        "id": "short_high",
        "observed_allocation_ticks": 6,
        "billed_ticks": 6,
        "gross_model_credits": 12,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "4"
      }
    },
    {
      "id": "long_low",
      "tariff": {
        "rate_credits_per_tick": 1,
        "quantum_ticks": 1,
        "minimum_ticks": 10
      },
      "allocations": [
        {
          "id": "a0",
          "start": 0,
          "end": 20,
          "launched": true,
          "observed_ticks": 20,
          "billed_ticks": 20,
          "gross_model_credits": 20,
          "work_ticks": 20,
          "jobs": [
            "j0"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a1",
          "start": 20,
          "end": 40,
          "launched": true,
          "observed_ticks": 20,
          "billed_ticks": 20,
          "gross_model_credits": 20,
          "work_ticks": 20,
          "jobs": [
            "j1"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a2",
          "start": 40,
          "end": 60,
          "launched": true,
          "observed_ticks": 20,
          "billed_ticks": 20,
          "gross_model_credits": 20,
          "work_ticks": 20,
          "jobs": [
            "j2"
          ],
          "idle_ticks": 0
        }
      ],
      "jobs": [
        {
          "id": "j0",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 20
        },
        {
          "id": "j1",
          "allocation_id": "a1",
          "outcome": "accepted",
          "work_ticks": 20
        },
        {
          "id": "j2",
          "allocation_id": "a2",
          "outcome": "accepted",
          "work_ticks": 20
        }
      ],
      "summary": {
        "id": "long_low",
        "observed_allocation_ticks": 60,
        "billed_ticks": 60,
        "gross_model_credits": 60,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 60,
        "idle_ticks": 0,
        "credits_per_accepted_job": "20"
      }
    },
    {
      "id": "long_high",
      "tariff": {
        "rate_credits_per_tick": 2,
        "quantum_ticks": 1,
        "minimum_ticks": 1
      },
      "allocations": [
        {
          "id": "a0",
          "start": 0,
          "end": 20,
          "launched": true,
          "observed_ticks": 20,
          "billed_ticks": 20,
          "gross_model_credits": 40,
          "work_ticks": 20,
          "jobs": [
            "j0"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a1",
          "start": 20,
          "end": 40,
          "launched": true,
          "observed_ticks": 20,
          "billed_ticks": 20,
          "gross_model_credits": 40,
          "work_ticks": 20,
          "jobs": [
            "j1"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a2",
          "start": 40,
          "end": 60,
          "launched": true,
          "observed_ticks": 20,
          "billed_ticks": 20,
          "gross_model_credits": 40,
          "work_ticks": 20,
          "jobs": [
            "j2"
          ],
          "idle_ticks": 0
        }
      ],
      "jobs": [
        {
          "id": "j0",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 20
        },
        {
          "id": "j1",
          "allocation_id": "a1",
          "outcome": "accepted",
          "work_ticks": 20
        },
        {
          "id": "j2",
          "allocation_id": "a2",
          "outcome": "accepted",
          "work_ticks": 20
        }
      ],
      "summary": {
        "id": "long_high",
        "observed_allocation_ticks": 60,
        "billed_ticks": 60,
        "gross_model_credits": 120,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 60,
        "idle_ticks": 0,
        "credits_per_accepted_job": "40"
      }
    },
    {
      "id": "pooled_low",
      "tariff": {
        "rate_credits_per_tick": 1,
        "quantum_ticks": 1,
        "minimum_ticks": 10
      },
      "allocations": [
        {
          "id": "a0",
          "start": 0,
          "end": 6,
          "launched": true,
          "observed_ticks": 6,
          "billed_ticks": 10,
          "gross_model_credits": 10,
          "work_ticks": 6,
          "jobs": [
            "j0",
            "j1",
            "j2"
          ],
          "idle_ticks": 0
        }
      ],
      "jobs": [
        {
          "id": "j0",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j1",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j2",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        }
      ],
      "summary": {
        "id": "pooled_low",
        "observed_allocation_ticks": 6,
        "billed_ticks": 10,
        "gross_model_credits": 10,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "10/3"
      }
    },
    {
      "id": "pooled_high",
      "tariff": {
        "rate_credits_per_tick": 2,
        "quantum_ticks": 1,
        "minimum_ticks": 1
      },
      "allocations": [
        {
          "id": "a0",
          "start": 0,
          "end": 6,
          "launched": true,
          "observed_ticks": 6,
          "billed_ticks": 6,
          "gross_model_credits": 12,
          "work_ticks": 6,
          "jobs": [
            "j0",
            "j1",
            "j2"
          ],
          "idle_ticks": 0
        }
      ],
      "jobs": [
        {
          "id": "j0",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j1",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j2",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        }
      ],
      "summary": {
        "id": "pooled_high",
        "observed_allocation_ticks": 6,
        "billed_ticks": 6,
        "gross_model_credits": 12,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "4"
      }
    },
    {
      "id": "idle_held_low",
      "tariff": {
        "rate_credits_per_tick": 1,
        "quantum_ticks": 1,
        "minimum_ticks": 10
      },
      "allocations": [
        {
          "id": "a0",
          "start": 0,
          "end": 20,
          "launched": true,
          "observed_ticks": 20,
          "billed_ticks": 20,
          "gross_model_credits": 20,
          "work_ticks": 6,
          "jobs": [
            "j0",
            "j1",
            "j2"
          ],
          "idle_ticks": 14
        }
      ],
      "jobs": [
        {
          "id": "j0",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j1",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j2",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        }
      ],
      "summary": {
        "id": "idle_held_low",
        "observed_allocation_ticks": 20,
        "billed_ticks": 20,
        "gross_model_credits": 20,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 14,
        "credits_per_accepted_job": "20/3"
      }
    },
    {
      "id": "failed_work_low",
      "tariff": {
        "rate_credits_per_tick": 1,
        "quantum_ticks": 1,
        "minimum_ticks": 10
      },
      "allocations": [
        {
          "id": "a0",
          "start": 0,
          "end": 2,
          "launched": true,
          "observed_ticks": 2,
          "billed_ticks": 10,
          "gross_model_credits": 10,
          "work_ticks": 2,
          "jobs": [
            "j0"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a1",
          "start": 2,
          "end": 4,
          "launched": true,
          "observed_ticks": 2,
          "billed_ticks": 10,
          "gross_model_credits": 10,
          "work_ticks": 2,
          "jobs": [
            "j1"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a2",
          "start": 4,
          "end": 6,
          "launched": true,
          "observed_ticks": 2,
          "billed_ticks": 10,
          "gross_model_credits": 10,
          "work_ticks": 2,
          "jobs": [
            "j2"
          ],
          "idle_ticks": 0
        }
      ],
      "jobs": [
        {
          "id": "j0",
          "allocation_id": "a0",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j1",
          "allocation_id": "a1",
          "outcome": "accepted",
          "work_ticks": 2
        },
        {
          "id": "j2",
          "allocation_id": "a2",
          "outcome": "failed",
          "work_ticks": 2
        }
      ],
      "summary": {
        "id": "failed_work_low",
        "observed_allocation_ticks": 6,
        "billed_ticks": 30,
        "gross_model_credits": 30,
        "accepted_jobs": 2,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "15"
      }
    },
    {
      "id": "quantum_boundaries",
      "tariff": {
        "rate_credits_per_tick": 1,
        "quantum_ticks": 5,
        "minimum_ticks": 0
      },
      "allocations": [
        {
          "id": "a0",
          "start": 0,
          "end": 0,
          "launched": true,
          "observed_ticks": 0,
          "billed_ticks": 0,
          "gross_model_credits": 0,
          "work_ticks": 0,
          "jobs": [
            "j0"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a1",
          "start": 0,
          "end": 1,
          "launched": true,
          "observed_ticks": 1,
          "billed_ticks": 5,
          "gross_model_credits": 5,
          "work_ticks": 1,
          "jobs": [
            "j1"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a2",
          "start": 1,
          "end": 6,
          "launched": true,
          "observed_ticks": 5,
          "billed_ticks": 5,
          "gross_model_credits": 5,
          "work_ticks": 5,
          "jobs": [
            "j2"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a3",
          "start": 6,
          "end": 12,
          "launched": true,
          "observed_ticks": 6,
          "billed_ticks": 10,
          "gross_model_credits": 10,
          "work_ticks": 6,
          "jobs": [
            "j3"
          ],
          "idle_ticks": 0
        }
      ],
      "jobs": [
        {
          "id": "j0",
          "allocation_id": "a0",
          "outcome": "failed",
          "work_ticks": 0
        },
        {
          "id": "j1",
          "allocation_id": "a1",
          "outcome": "accepted",
          "work_ticks": 1
        },
        {
          "id": "j2",
          "allocation_id": "a2",
          "outcome": "accepted",
          "work_ticks": 5
        },
        {
          "id": "j3",
          "allocation_id": "a3",
          "outcome": "accepted",
          "work_ticks": 6
        }
      ],
      "summary": {
        "id": "quantum_boundaries",
        "observed_allocation_ticks": 12,
        "billed_ticks": 20,
        "gross_model_credits": 20,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 12,
        "idle_ticks": 0,
        "credits_per_accepted_job": "20/3"
      }
    },
    {
      "id": "zero_and_unstarted",
      "tariff": {
        "rate_credits_per_tick": 1,
        "quantum_ticks": 1,
        "minimum_ticks": 10
      },
      "allocations": [
        {
          "id": "a0",
          "start": 0,
          "end": 0,
          "launched": true,
          "observed_ticks": 0,
          "billed_ticks": 10,
          "gross_model_credits": 10,
          "work_ticks": 0,
          "jobs": [
            "j0"
          ],
          "idle_ticks": 0
        },
        {
          "id": "a1",
          "start": null,
          "end": null,
          "launched": false,
          "observed_ticks": 0,
          "billed_ticks": 0,
          "gross_model_credits": 0,
          "work_ticks": 0,
          "jobs": [
            "j1"
          ],
          "idle_ticks": 0
        }
      ],
      "jobs": [
        {
          "id": "j0",
          "allocation_id": "a0",
          "outcome": "failed",
          "work_ticks": 0
        },
        {
          "id": "j1",
          "allocation_id": "a1",
          "outcome": "unstarted",
          "work_ticks": 0
        }
      ],
      "summary": {
        "id": "zero_and_unstarted",
        "observed_allocation_ticks": 0,
        "billed_ticks": 10,
        "gross_model_credits": 10,
        "accepted_jobs": 0,
        "unstarted_jobs": 1,
        "declared_work_ticks": 0,
        "idle_ticks": 0,
        "credits_per_accepted_job": null
      }
    }
  ],
  "literal_checks": [
    {
      "id": "short_low",
      "actual": {
        "id": "short_low",
        "observed_allocation_ticks": 6,
        "billed_ticks": 30,
        "gross_model_credits": 30,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "10"
      },
      "literal_expected": {
        "id": "short_low",
        "observed_allocation_ticks": 6,
        "billed_ticks": 30,
        "gross_model_credits": 30,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "10"
      },
      "passed": true
    },
    {
      "id": "short_high",
      "actual": {
        "id": "short_high",
        "observed_allocation_ticks": 6,
        "billed_ticks": 6,
        "gross_model_credits": 12,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "4"
      },
      "literal_expected": {
        "id": "short_high",
        "observed_allocation_ticks": 6,
        "billed_ticks": 6,
        "gross_model_credits": 12,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "4"
      },
      "passed": true
    },
    {
      "id": "long_low",
      "actual": {
        "id": "long_low",
        "observed_allocation_ticks": 60,
        "billed_ticks": 60,
        "gross_model_credits": 60,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 60,
        "idle_ticks": 0,
        "credits_per_accepted_job": "20"
      },
      "literal_expected": {
        "id": "long_low",
        "observed_allocation_ticks": 60,
        "billed_ticks": 60,
        "gross_model_credits": 60,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 60,
        "idle_ticks": 0,
        "credits_per_accepted_job": "20"
      },
      "passed": true
    },
    {
      "id": "long_high",
      "actual": {
        "id": "long_high",
        "observed_allocation_ticks": 60,
        "billed_ticks": 60,
        "gross_model_credits": 120,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 60,
        "idle_ticks": 0,
        "credits_per_accepted_job": "40"
      },
      "literal_expected": {
        "id": "long_high",
        "observed_allocation_ticks": 60,
        "billed_ticks": 60,
        "gross_model_credits": 120,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 60,
        "idle_ticks": 0,
        "credits_per_accepted_job": "40"
      },
      "passed": true
    },
    {
      "id": "pooled_low",
      "actual": {
        "id": "pooled_low",
        "observed_allocation_ticks": 6,
        "billed_ticks": 10,
        "gross_model_credits": 10,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "10/3"
      },
      "literal_expected": {
        "id": "pooled_low",
        "observed_allocation_ticks": 6,
        "billed_ticks": 10,
        "gross_model_credits": 10,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "10/3"
      },
      "passed": true
    },
    {
      "id": "pooled_high",
      "actual": {
        "id": "pooled_high",
        "observed_allocation_ticks": 6,
        "billed_ticks": 6,
        "gross_model_credits": 12,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "4"
      },
      "literal_expected": {
        "id": "pooled_high",
        "observed_allocation_ticks": 6,
        "billed_ticks": 6,
        "gross_model_credits": 12,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "4"
      },
      "passed": true
    },
    {
      "id": "idle_held_low",
      "actual": {
        "id": "idle_held_low",
        "observed_allocation_ticks": 20,
        "billed_ticks": 20,
        "gross_model_credits": 20,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 14,
        "credits_per_accepted_job": "20/3"
      },
      "literal_expected": {
        "id": "idle_held_low",
        "observed_allocation_ticks": 20,
        "billed_ticks": 20,
        "gross_model_credits": 20,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 14,
        "credits_per_accepted_job": "20/3"
      },
      "passed": true
    },
    {
      "id": "failed_work_low",
      "actual": {
        "id": "failed_work_low",
        "observed_allocation_ticks": 6,
        "billed_ticks": 30,
        "gross_model_credits": 30,
        "accepted_jobs": 2,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "15"
      },
      "literal_expected": {
        "id": "failed_work_low",
        "observed_allocation_ticks": 6,
        "billed_ticks": 30,
        "gross_model_credits": 30,
        "accepted_jobs": 2,
        "unstarted_jobs": 0,
        "declared_work_ticks": 6,
        "idle_ticks": 0,
        "credits_per_accepted_job": "15"
      },
      "passed": true
    },
    {
      "id": "quantum_boundaries",
      "actual": {
        "id": "quantum_boundaries",
        "observed_allocation_ticks": 12,
        "billed_ticks": 20,
        "gross_model_credits": 20,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 12,
        "idle_ticks": 0,
        "credits_per_accepted_job": "20/3"
      },
      "literal_expected": {
        "id": "quantum_boundaries",
        "observed_allocation_ticks": 12,
        "billed_ticks": 20,
        "gross_model_credits": 20,
        "accepted_jobs": 3,
        "unstarted_jobs": 0,
        "declared_work_ticks": 12,
        "idle_ticks": 0,
        "credits_per_accepted_job": "20/3"
      },
      "passed": true
    },
    {
      "id": "zero_and_unstarted",
      "actual": {
        "id": "zero_and_unstarted",
        "observed_allocation_ticks": 0,
        "billed_ticks": 10,
        "gross_model_credits": 10,
        "accepted_jobs": 0,
        "unstarted_jobs": 1,
        "declared_work_ticks": 0,
        "idle_ticks": 0,
        "credits_per_accepted_job": null
      },
      "literal_expected": {
        "id": "zero_and_unstarted",
        "observed_allocation_ticks": 0,
        "billed_ticks": 10,
        "gross_model_credits": 10,
        "accepted_jobs": 0,
        "unstarted_jobs": 1,
        "declared_work_ticks": 0,
        "idle_ticks": 0,
        "credits_per_accepted_job": null
      },
      "passed": true
    }
  ],
  "relationships": {
    "short_lower_rate_more_expensive": true,
    "long_lower_rate_less_expensive": true,
    "pooled_short_same_jobs_and_work": true,
    "failed_job_cost_retained": true
  },
  "literal_relationships": {
    "short_lower_rate_more_expensive": true,
    "long_lower_rate_less_expensive": true,
    "pooled_short_same_jobs_and_work": true,
    "failed_job_cost_retained": true
  },
  "selected_controls": [
    {
      "id": "duplicate_case",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "duplicate_case",
      "passed": true
    },
    {
      "id": "negative_rate",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": -1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "integer_domain",
      "passed": true
    },
    {
      "id": "zero_quantum",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 0,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "integer_domain",
      "passed": true
    },
    {
      "id": "negative_minimum",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": -1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "integer_domain",
      "passed": true
    },
    {
      "id": "boolean_rate",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": true,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "integer_domain",
      "passed": true
    },
    {
      "id": "float_rate",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1.0,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "integer_domain",
      "passed": true
    },
    {
      "id": "duplicate_allocation",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a0",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "duplicate_allocation",
      "passed": true
    },
    {
      "id": "end_before_start",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 3,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "end_before_start",
      "passed": true
    },
    {
      "id": "unknown_end",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": null
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "unknown_launched_endpoint",
      "passed": true
    },
    {
      "id": "one_null_endpoint",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": null,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "unknown_launched_endpoint",
      "passed": true
    },
    {
      "id": "duplicate_job",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j0",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "duplicate_job",
      "passed": true
    },
    {
      "id": "unknown_allocation",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "absent",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "unknown_allocation",
      "passed": true
    },
    {
      "id": "unstarted_on_launched",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "unstarted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "launch_outcome",
      "passed": true
    },
    {
      "id": "accepted_unstarted",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": null,
                "end": null
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "launch_outcome",
      "passed": true
    },
    {
      "id": "work_exceeds_duration",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 3
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "work_exceeds_duration",
      "passed": true
    },
    {
      "id": "negative_work",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": -1
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "integer_domain",
      "passed": true
    },
    {
      "id": "bad_outcome",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "pending",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "outcome",
      "passed": true
    },
    {
      "id": "unknown_case_field",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ],
            "extra": 1
          },
          {
            "id": "short_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "long_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "long_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              },
              {
                "id": "a1",
                "start": 20,
                "end": 40
              },
              {
                "id": "a2",
                "start": 40,
                "end": 60
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 20
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 20
              }
            ]
          },
          {
            "id": "pooled_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "pooled_high",
            "tariff": {
              "rate_credits_per_tick": 2,
              "quantum_ticks": 1,
              "minimum_ticks": 1
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "idle_held_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 20
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "failed_work_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "failed",
                "work_ticks": 2
              }
            ]
          },
          {
            "id": "quantum_boundaries",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 0
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": 0,
                "end": 1
              },
              {
                "id": "a2",
                "start": 1,
                "end": 6
              },
              {
                "id": "a3",
                "start": 6,
                "end": 12
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 1
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 5
              },
              {
                "id": "j3",
                "allocation_id": "a3",
                "outcome": "accepted",
                "work_ticks": 6
              }
            ]
          },
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "refused": true,
      "reason": "case_fields",
      "passed": true
    },
    {
      "id": "round_after_minimum",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 5,
              "minimum_ticks": 6
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 2
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a2",
                "start": 4,
                "end": 6
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          }
        ]
      },
      "result": [
        {
          "id": "short_low",
          "tariff": {
            "rate_credits_per_tick": 1,
            "quantum_ticks": 5,
            "minimum_ticks": 6
          },
          "allocations": [
            {
              "id": "a0",
              "start": 0,
              "end": 2,
              "launched": true,
              "observed_ticks": 2,
              "billed_ticks": 10,
              "gross_model_credits": 10,
              "work_ticks": 2,
              "jobs": [
                "j0"
              ],
              "idle_ticks": 0
            },
            {
              "id": "a1",
              "start": 2,
              "end": 4,
              "launched": true,
              "observed_ticks": 2,
              "billed_ticks": 10,
              "gross_model_credits": 10,
              "work_ticks": 2,
              "jobs": [
                "j1"
              ],
              "idle_ticks": 0
            },
            {
              "id": "a2",
              "start": 4,
              "end": 6,
              "launched": true,
              "observed_ticks": 2,
              "billed_ticks": 10,
              "gross_model_credits": 10,
              "work_ticks": 2,
              "jobs": [
                "j2"
              ],
              "idle_ticks": 0
            }
          ],
          "jobs": [
            {
              "id": "j0",
              "allocation_id": "a0",
              "outcome": "accepted",
              "work_ticks": 2
            },
            {
              "id": "j1",
              "allocation_id": "a1",
              "outcome": "accepted",
              "work_ticks": 2
            },
            {
              "id": "j2",
              "allocation_id": "a2",
              "outcome": "accepted",
              "work_ticks": 2
            }
          ],
          "summary": {
            "id": "short_low",
            "observed_allocation_ticks": 6,
            "billed_ticks": 30,
            "gross_model_credits": 30,
            "accepted_jobs": 3,
            "unstarted_jobs": 0,
            "declared_work_ticks": 6,
            "idle_ticks": 0,
            "credits_per_accepted_job": "10"
          }
        }
      ],
      "passed": true
    },
    {
      "id": "row_order_invariance",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "short_low",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a2",
                "start": 4,
                "end": 6
              },
              {
                "id": "a1",
                "start": 2,
                "end": 4
              },
              {
                "id": "a0",
                "start": 0,
                "end": 2
              }
            ],
            "jobs": [
              {
                "id": "j2",
                "allocation_id": "a2",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "accepted",
                "work_ticks": 2
              },
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "accepted",
                "work_ticks": 2
              }
            ]
          }
        ]
      },
      "result": [
        {
          "id": "short_low",
          "tariff": {
            "rate_credits_per_tick": 1,
            "quantum_ticks": 1,
            "minimum_ticks": 10
          },
          "allocations": [
            {
              "id": "a2",
              "start": 4,
              "end": 6,
              "launched": true,
              "observed_ticks": 2,
              "billed_ticks": 10,
              "gross_model_credits": 10,
              "work_ticks": 2,
              "jobs": [
                "j2"
              ],
              "idle_ticks": 0
            },
            {
              "id": "a1",
              "start": 2,
              "end": 4,
              "launched": true,
              "observed_ticks": 2,
              "billed_ticks": 10,
              "gross_model_credits": 10,
              "work_ticks": 2,
              "jobs": [
                "j1"
              ],
              "idle_ticks": 0
            },
            {
              "id": "a0",
              "start": 0,
              "end": 2,
              "launched": true,
              "observed_ticks": 2,
              "billed_ticks": 10,
              "gross_model_credits": 10,
              "work_ticks": 2,
              "jobs": [
                "j0"
              ],
              "idle_ticks": 0
            }
          ],
          "jobs": [
            {
              "id": "j2",
              "allocation_id": "a2",
              "outcome": "accepted",
              "work_ticks": 2
            },
            {
              "id": "j1",
              "allocation_id": "a1",
              "outcome": "accepted",
              "work_ticks": 2
            },
            {
              "id": "j0",
              "allocation_id": "a0",
              "outcome": "accepted",
              "work_ticks": 2
            }
          ],
          "summary": {
            "id": "short_low",
            "observed_allocation_ticks": 6,
            "billed_ticks": 30,
            "gross_model_credits": 30,
            "accepted_jobs": 3,
            "unstarted_jobs": 0,
            "declared_work_ticks": 6,
            "idle_ticks": 0,
            "credits_per_accepted_job": "10"
          }
        }
      ],
      "passed": true
    },
    {
      "id": "minimum_zero_duration",
      "input": {
        "schema": "nodus.billing-quantum-fixture.v1",
        "cases": [
          {
            "id": "zero_and_unstarted",
            "tariff": {
              "rate_credits_per_tick": 1,
              "quantum_ticks": 1,
              "minimum_ticks": 10
            },
            "allocations": [
              {
                "id": "a0",
                "start": 0,
                "end": 0
              },
              {
                "id": "a1",
                "start": null,
                "end": null
              }
            ],
            "jobs": [
              {
                "id": "j0",
                "allocation_id": "a0",
                "outcome": "failed",
                "work_ticks": 0
              },
              {
                "id": "j1",
                "allocation_id": "a1",
                "outcome": "unstarted",
                "work_ticks": 0
              }
            ]
          }
        ]
      },
      "result": [
        {
          "id": "zero_and_unstarted",
          "tariff": {
            "rate_credits_per_tick": 1,
            "quantum_ticks": 1,
            "minimum_ticks": 10
          },
          "allocations": [
            {
              "id": "a0",
              "start": 0,
              "end": 0,
              "launched": true,
              "observed_ticks": 0,
              "billed_ticks": 10,
              "gross_model_credits": 10,
              "work_ticks": 0,
              "jobs": [
                "j0"
              ],
              "idle_ticks": 0
            },
            {
              "id": "a1",
              "start": null,
              "end": null,
              "launched": false,
              "observed_ticks": 0,
              "billed_ticks": 0,
              "gross_model_credits": 0,
              "work_ticks": 0,
              "jobs": [
                "j1"
              ],
              "idle_ticks": 0
            }
          ],
          "jobs": [
            {
              "id": "j0",
              "allocation_id": "a0",
              "outcome": "failed",
              "work_ticks": 0
            },
            {
              "id": "j1",
              "allocation_id": "a1",
              "outcome": "unstarted",
              "work_ticks": 0
            }
          ],
          "summary": {
            "id": "zero_and_unstarted",
            "observed_allocation_ticks": 0,
            "billed_ticks": 10,
            "gross_model_credits": 10,
            "accepted_jobs": 0,
            "unstarted_jobs": 1,
            "declared_work_ticks": 0,
            "idle_ticks": 0,
            "credits_per_accepted_job": null
          }
        }
      ],
      "passed": true
    }
  ],
  "all_checks_passed": true
}
