{
  "caseId": "2d-stock-exhausted",
  "title": "Finite sheet stock exhausted",
  "description": "Three large panels compete for one finite sheet that can hold only one, requiring two explicit stock-exhausted results.",
  "difficulty": "small",
  "category": "failure-boundary",
  "tags": [
    "finite-stock",
    "unplaced-parts",
    "feasibility"
  ],
  "inputFile": "cases/2d-stock-exhausted.json",
  "source": "synthetic",
  "license": "CC-BY-4.0",
  "provenance": "Created by Technodweep as a deterministic 2D feasibility and unplaced-part reporting boundary.",
  "solverStatus": "completed",
  "metrics": {
    "sheetsUsed": 1,
    "totalParts": 3,
    "placedParts": 1,
    "unplacedParts": 2,
    "totalSheetArea": 10000,
    "placedPartArea": 3600,
    "estimatedUnusedArea": 6400,
    "utilizationPercent": 36,
    "estimatedUnusedAreaPercent": 64
  },
  "timing": {
    "rawSolveTimeMs": [
      0.4296,
      0.5127,
      0.5167,
      0.5423,
      0.5462,
      0.5671,
      0.5585,
      0.5183,
      0.519,
      0.5171,
      0.5194,
      0.5158,
      0.5176,
      0.5143,
      0.5174,
      0.5137,
      0.5161,
      0.5123,
      0.5165,
      0.5134,
      0.5161,
      0.5138,
      0.5162,
      0.5144,
      0.5348,
      0.5135,
      0.5178,
      0.5514,
      0.5543,
      0.5139
    ],
    "p50SolveTimeMs": 0.5165,
    "p95SolveTimeMs": 0.5585
  },
  "validation": {
    "valid": true,
    "errors": [],
    "areaAccountingValid": true,
    "solverInvariantsValid": true
  },
  "productionResult": {
    "schemaVersion": 1,
    "sheets": [
      {
        "cost": 10,
        "estimatedLeftoverArea": 6400,
        "geometry": {
          "holes": [],
          "outer": [
            {
              "x": 0,
              "y": 0
            },
            {
              "x": 100,
              "y": 0
            },
            {
              "x": 100,
              "y": 100
            },
            {
              "x": 0,
              "y": 100
            }
          ]
        },
        "height": 100,
        "isRemnant": false,
        "materialGroup": "steel::s275::6",
        "placedPartArea": 3600,
        "placements": [
          {
            "area": 3600,
            "bounds": {
              "maxX": 60,
              "maxY": 60,
              "minX": 0,
              "minY": 0
            },
            "holes": [],
            "locked": false,
            "manuallyEdited": false,
            "mirrored": false,
            "outer": [
              {
                "x": 0,
                "y": 0
              },
              {
                "x": 60,
                "y": 0
              },
              {
                "x": 60,
                "y": 60
              },
              {
                "x": 0,
                "y": 60
              }
            ],
            "partDefinitionId": "large-panel",
            "partInstanceId": "large-panel-1",
            "partName": "Large panel",
            "rotationDeg": 0,
            "sheetInstanceId": "single-plate-1",
            "x": 0,
            "y": 0
          }
        ],
        "sheetDefinitionId": "single-plate",
        "sheetInstanceId": "single-plate-1",
        "sheetName": "Single 100 x 100 plate",
        "usableArea": 10000,
        "utilizationPercent": 36,
        "width": 100
      }
    ],
    "solver": {
      "deterministicSeed": 2026072205,
      "engine": "wasm",
      "evaluatedCandidates": 24,
      "invariantErrors": [],
      "invariantsValid": true,
      "searchTimeMs": 0.25439453125,
      "status": "completed",
      "strategiesAttempted": 2
    },
    "summary": {
      "estimatedLeftoverArea": 6400,
      "placedPartArea": 3600,
      "placedParts": 1,
      "sheetsUsed": 1,
      "totalKnownCost": 10,
      "totalParts": 3,
      "totalSheetArea": 10000,
      "unknownCostSheets": 0,
      "unplacedParts": 2,
      "utilizationPercent": 36
    },
    "unplaced": [
      {
        "message": "Compatible sheet quantity was exhausted before this part could be placed.",
        "partDefinitionId": "large-panel",
        "partInstanceId": "large-panel-2",
        "partName": "Large panel",
        "reason": "stock_exhausted"
      },
      {
        "message": "Compatible sheet quantity was exhausted before this part could be placed.",
        "partDefinitionId": "large-panel",
        "partInstanceId": "large-panel-3",
        "partName": "Large panel",
        "reason": "stock_exhausted"
      }
    ],
    "warnings": [
      "This beta result is a deterministic heuristic, not a proof of globally optimal nesting.",
      "Part-in-hole placement and machine toolpath generation are not enabled."
    ]
  }
}
