{
  "schema_version": 1,
  "evidence": "Constructed exact arithmetic, not measurements or Ceph execution",
  "assumptions": [
    "One equal-sized shard per distinct domain",
    "Freely divisible data and unrestricted combinations of eligible domains",
    "Capacity budgets are dedicated to this pool; no existing allocations",
    "No placement-group skew, metadata overhead or transient migration space"
  ],
  "examples": [
    {
      "label": "Three unequal domains",
      "domain_capacity_TiB": [
        "60",
        "20",
        "20"
      ],
      "threshold": "1",
      "shards": 3,
      "data_shards": 1,
      "per_position_TiB": "20",
      "logical_TiB": "20",
      "raw_used_TiB": "60",
      "stranded_within_budget_TiB": "40",
      "reserved_by_threshold_TiB": "0"
    },
    {
      "label": "Expand only the largest",
      "domain_capacity_TiB": [
        "120",
        "20",
        "20"
      ],
      "threshold": "1",
      "shards": 3,
      "data_shards": 1,
      "per_position_TiB": "20",
      "logical_TiB": "20",
      "raw_used_TiB": "60",
      "stranded_within_budget_TiB": "100",
      "reserved_by_threshold_TiB": "0"
    },
    {
      "label": "Add a fourth domain",
      "domain_capacity_TiB": [
        "60",
        "20",
        "20",
        "20"
      ],
      "threshold": "1",
      "shards": 3,
      "data_shards": 1,
      "per_position_TiB": "30",
      "logical_TiB": "30",
      "raw_used_TiB": "90",
      "stranded_within_budget_TiB": "30",
      "reserved_by_threshold_TiB": "0"
    },
    {
      "label": "Expand both small domains",
      "domain_capacity_TiB": [
        "60",
        "40",
        "40"
      ],
      "threshold": "1",
      "shards": 3,
      "data_shards": 1,
      "per_position_TiB": "40",
      "logical_TiB": "40",
      "raw_used_TiB": "120",
      "stranded_within_budget_TiB": "20",
      "reserved_by_threshold_TiB": "0"
    },
    {
      "label": "2+1 equal-sized erasure shards",
      "domain_capacity_TiB": [
        "60",
        "20",
        "20"
      ],
      "threshold": "1",
      "shards": 3,
      "data_shards": 2,
      "per_position_TiB": "20",
      "logical_TiB": "40",
      "raw_used_TiB": "60",
      "stranded_within_budget_TiB": "40",
      "reserved_by_threshold_TiB": "0"
    },
    {
      "label": "Four domains at 95 percent",
      "domain_capacity_TiB": [
        "60",
        "20",
        "20",
        "20"
      ],
      "threshold": "19/20",
      "shards": 3,
      "data_shards": 1,
      "per_position_TiB": "57/2",
      "logical_TiB": "57/2",
      "raw_used_TiB": "171/2",
      "stranded_within_budget_TiB": "57/2",
      "reserved_by_threshold_TiB": "6"
    },
    {
      "label": "Largest domain lost; 90 percent budget",
      "domain_capacity_TiB": [
        "0",
        "20",
        "20",
        "20"
      ],
      "threshold": "9/10",
      "shards": 3,
      "data_shards": 1,
      "per_position_TiB": "18",
      "logical_TiB": "18",
      "raw_used_TiB": "54",
      "stranded_within_budget_TiB": "0",
      "reserved_by_threshold_TiB": "6"
    }
  ]
}
