{
  "name": "SheetYield DTF Planning Benchmark",
  "version": "1.0.0",
  "provenance": "Original synthetic cases with fictional rate cards. This file contains no customer artwork, orders, or supplier quotes.",
  "reuse": "You may copy and redistribute these synthetic cases for testing and evaluation.",
  "scoring": "Compare the stated expected fields. Unlisted fields and alternative valid placements do not affect the score. Dollars are encoded as integer US cents. Output option and design indexes are zero-based.",
  "cases": [
    {
      "id": "free-shipping-cliff",
      "tool": "estimate_dtf_order",
      "task": "One 6 by 6 inch design needs one transfer. A 10 by 10 sheet is $38, a 12 by 12 is $40, and shipping is $16 below a $40 sheet subtotal. Compare the delivered totals.",
      "input": {
        "designs": [{ "label": "Badge", "width_in": 6, "height_in": 6, "quantity": 1 }],
        "suppliers": [{ "label": "Shop A", "shipping_cents": 1600, "free_shipping_at_cents": 4000, "stocks": [{ "width_in": 10, "height_in": 10, "price_cents": 3800 }, { "width_in": 12, "height_in": 12, "price_cents": 4000 }] }]
      },
      "expected": { "best_total_cents": 4000, "lower_bound_cents": 4000, "optimality_proven": true, "options": [{ "print_cents": 4000, "shipping_cents": 0, "sheet_count": 1 }] },
      "why": "The smaller sheet is $54 shipped. The larger sheet qualifies for free shipping at exactly $40."
    },
    {
      "id": "delivered-beats-subtotal",
      "tool": "estimate_dtf_order",
      "task": "Compare two rate cards for four 5 by 5 inch prints and a $24 delivered individual-transfer quote. Use zero gap and zero margin for this test.",
      "input": {
        "designs": [{ "label": "Chest patch", "width_in": 5, "height_in": 5, "quantity": 4 }],
        "suppliers": [
          { "label": "Shop A", "shipping_cents": 900, "stocks": [{ "width_in": 10, "height_in": 10, "price_cents": 1200 }] },
          { "label": "Shop B", "shipping_cents": 300, "stocks": [{ "width_in": 10, "height_in": 10, "price_cents": 1400 }] }
        ],
        "gap_in": 0, "edge_in": 0, "individual_quote_cents": 2400
      },
      "expected": { "best_supplier_index": 1, "best_total_cents": 1700, "optimality_proven": true, "comparison": { "savings_cents": 700 }, "options": [{ "total_cents": 2100 }, { "total_cents": 1700, "average_transfer_cents": 425 }] },
      "why": "Four prints fit exactly on a single sheet. $14 + $3 beats $12 + $9 and saves $7 against the individual quote."
    },
    {
      "id": "rotation-required",
      "tool": "estimate_dtf_order",
      "task": "Fit one 9 by 6 inch print on a 7 by 10 inch sheet with a 0.5 inch inset on every edge. Rotation is allowed.",
      "input": {
        "designs": [{ "label": "Wordmark", "width_in": 9, "height_in": 6, "quantity": 1 }],
        "suppliers": [{ "label": "Shop A", "shipping_cents": 0, "stocks": [{ "width_in": 7, "height_in": 10, "price_cents": 1000 }] }],
        "edge_in": 0.5, "allow_rotation": true
      },
      "expected": { "best_total_cents": 1000, "options": [{ "sheets": [{ "placements": [{ "x_in": 0.5, "y_in": 0.5, "width_in": 6, "height_in": 9, "rotated": true }] }] }] },
      "why": "The usable area is 6 by 9 inches. Turning the original 90 degrees is the only fit."
    },
    {
      "id": "locked-orientation-no-fit",
      "tool": "estimate_dtf_order",
      "task": "Check that the 9 by 6 inch print fails on the same 7 by 10 inch sheet with a 0.5 inch inset when rotation is prohibited.",
      "input": {
        "designs": [{ "label": "Wordmark", "width_in": 9, "height_in": 6, "quantity": 1 }],
        "suppliers": [{ "label": "Shop A", "shipping_cents": 0, "stocks": [{ "width_in": 7, "height_in": 10, "price_cents": 1000 }] }],
        "edge_in": 0.5, "allow_rotation": false
      },
      "expected": { "status": "no_layout_found", "best_total_cents": null, "optimality_proven": false },
      "why": "A 9 inch width cannot fit in the 6 inch usable width when rotation is prohibited."
    },
    {
      "id": "spacing-breaks-exact-fit",
      "tool": "estimate_dtf_order",
      "task": "Price two 5 by 5 inch prints on 10 by 5 inch sheets at $10 each, with a 0.25 inch gap, no edge inset and $3 flat shipping.",
      "input": {
        "designs": [{ "label": "Badge", "width_in": 5, "height_in": 5, "quantity": 2 }],
        "suppliers": [{ "label": "Shop A", "shipping_cents": 300, "stocks": [{ "width_in": 10, "height_in": 5, "price_cents": 1000 }] }],
        "gap_in": 0.25, "edge_in": 0
      },
      "expected": { "best_total_cents": 2300, "optimality_proven": true, "options": [{ "sheet_count": 2, "shipping_cents": 300 }] },
      "why": "Two prints and the gap require 10.25 inches in a row. Buy two sheets and pay shipping once."
    },
    {
      "id": "area-floor-does-not-prove-fit",
      "tool": "estimate_dtf_order",
      "task": "Report a checked total and the lower bound for three 6 by 6 inch prints on 10 by 12 inch sheets at $10 each with no gap, margin or shipping.",
      "input": {
        "designs": [{ "label": "Badge", "width_in": 6, "height_in": 6, "quantity": 3 }],
        "suppliers": [{ "label": "Shop A", "shipping_cents": 0, "stocks": [{ "width_in": 10, "height_in": 12, "price_cents": 1000 }] }],
        "gap_in": 0, "edge_in": 0
      },
      "expected": { "best_total_cents": 2000, "lower_bound_cents": 1000, "optimality_proven": false },
      "why": "The area says 108 square inches could fit on 120. In the rectangle layout at most two fit because any two 6 inch wide prints overlap horizontally on 10 inch stock."
    },
    {
      "id": "allocate-every-cent",
      "tool": "estimate_dtf_order",
      "task": "Allocate a $10.01 sheet and $1.01 shipping between one 6 by 10 print and one 4 by 10 print on 10 by 10 stock, with no gap or margin.",
      "input": {
        "designs": [{ "label": "Large", "width_in": 6, "height_in": 10, "quantity": 1 }, { "label": "Small", "width_in": 4, "height_in": 10, "quantity": 1 }],
        "suppliers": [{ "label": "Shop A", "shipping_cents": 101, "stocks": [{ "width_in": 10, "height_in": 10, "price_cents": 1001 }] }],
        "gap_in": 0, "edge_in": 0
      },
      "expected": { "best_total_cents": 1102, "options": [{ "design_costs": [{ "print_cents": 601, "shipping_cents": 61, "total_cents": 662 }, { "print_cents": 400, "shipping_cents": 40, "total_cents": 440 }] }] },
      "why": "Each charge splits by area, 60% and 40%. Award each leftover cent to the largest fractional share. Design totals reconcile to $11.02."
    },
    {
      "id": "mixed-stock-is-cheaper",
      "tool": "estimate_dtf_order",
      "task": "Price three 10 by 10 inch transfers with no spacing or margins. The supplier charges $9 for 10 by 10 stock and $14 for 10 by 20 stock. Shipping is $4.",
      "input": {
        "designs": [{ "label": "Back print", "width_in": 10, "height_in": 10, "quantity": 3 }],
        "suppliers": [{ "label": "Shop A", "shipping_cents": 400, "stocks": [{ "width_in": 10, "height_in": 10, "price_cents": 900 }, { "width_in": 10, "height_in": 20, "price_cents": 1400 }] }],
        "gap_in": 0, "edge_in": 0
      },
      "expected": { "best_total_cents": 2700, "optimality_proven": true, "options": [{ "sheet_count": 2, "best_single_size_total_cents": 3100 }] },
      "why": "A small and a large sheet cost $23 plus $4 shipping. Three small sheets cost $31 delivered. Two large sheets cost $32 delivered."
    },
    {
      "id": "dpi-weak-axis",
      "tool": "check_artwork_dpi",
      "task": "Check a 1500 by 1199 pixel crop printed at 5 by 4 inches against a 300 DPI target.",
      "input": { "pixel_width": 1500, "pixel_height": 1199, "width_in": 5, "height_in": 4, "target_dpi": 300 },
      "expected": { "dpi_x": 300, "dpi_y": 299, "limiting_dpi": 299, "meets_target": false, "max_width_in_at_target": 5, "max_height_in_at_target": 3.99 },
      "why": "The height is 299.75 DPI, below the target. A 300 DPI height of 3.996… inches rounds down to 3.99."
    },
    {
      "id": "dpi-exact-target",
      "tool": "check_artwork_dpi",
      "task": "Check a 975 by 600 pixel crop printed at 3.25 by 2 inches against a 300 DPI target.",
      "input": { "pixel_width": 975, "pixel_height": 600, "width_in": 3.25, "height_in": 2 },
      "expected": { "dpi_x": 300, "dpi_y": 300, "limiting_dpi": 300, "meets_target": true, "max_width_in_at_target": 3.25, "max_height_in_at_target": 2 },
      "why": "Both axes divide to exactly 300 DPI, which passes the inclusive target."
    }
  ]
}
