{
  "issuer": "Astera Technology",
  "resource": "ops-product-field-owner-scope",
  "locale": "zh-HK",
  "contract": "假設燈具兩款共用 NOTE-W 註記編號；黑款電線 1 米，白款 2 米。NOTE-W 只是一個已提供編號，沒有任何保養建議。主商品記共通註記，電線米數逐款記；只有每款已知而且相同，才列共通電線長度。",
  "input": {
    "product": "Lamp",
    "sharedNote": "NOTE-W",
    "variants": [
      {
        "id": "black",
        "cableMetres": 1
      },
      {
        "id": "white",
        "cableMetres": 2
      }
    ]
  },
  "output": {
    "ok": true,
    "state": "complete",
    "result": {
      "product": "Lamp",
      "sharedNote": "NOTE-W",
      "commonCableMetres": null,
      "variants": [
        {
          "id": "black",
          "cableMetres": 1,
          "sharedNote": "NOTE-W",
          "decision": "known"
        },
        {
          "id": "white",
          "cableMetres": 2,
          "sharedNote": "NOTE-W",
          "decision": "known"
        }
      ]
    },
    "trace": [
      {
        "id": "black",
        "cableMetres": 1,
        "sharedNote": "NOTE-W",
        "decision": "known"
      },
      {
        "id": "white",
        "cableMetres": 2,
        "sharedNote": "NOTE-W",
        "decision": "known"
      }
    ]
  },
  "verificationCases": [
    {
      "name": "baseline",
      "input": {
        "product": "Lamp",
        "sharedNote": "NOTE-W",
        "variants": [
          {
            "id": "black",
            "cableMetres": 1
          },
          {
            "id": "white",
            "cableMetres": 2
          }
        ]
      },
      "expected": {
        "ok": true,
        "state": "complete",
        "result": {
          "product": "Lamp",
          "sharedNote": "NOTE-W",
          "commonCableMetres": null,
          "variants": [
            {
              "id": "black",
              "cableMetres": 1,
              "sharedNote": "NOTE-W",
              "decision": "known"
            },
            {
              "id": "white",
              "cableMetres": 2,
              "sharedNote": "NOTE-W",
              "decision": "known"
            }
          ]
        }
      }
    },
    {
      "name": "material-edit",
      "input": {
        "product": "Lamp",
        "sharedNote": "NOTE-W",
        "variants": [
          {
            "id": "black",
            "cableMetres": 1
          },
          {
            "id": "white",
            "cableMetres": 1
          }
        ]
      },
      "expected": {
        "ok": true,
        "state": "complete",
        "result": {
          "product": "Lamp",
          "sharedNote": "NOTE-W",
          "commonCableMetres": 1,
          "variants": [
            {
              "id": "black",
              "cableMetres": 1,
              "sharedNote": "NOTE-W",
              "decision": "known"
            },
            {
              "id": "white",
              "cableMetres": 1,
              "sharedNote": "NOTE-W",
              "decision": "known"
            }
          ]
        }
      }
    },
    {
      "name": "fresh-boundary",
      "input": {
        "product": "Lamp",
        "sharedNote": "NOTE-W",
        "variants": [
          {
            "id": "black",
            "cableMetres": 1
          },
          {
            "id": "white",
            "cableMetres": null
          }
        ]
      },
      "expected": {
        "ok": true,
        "state": "unknown",
        "result": {
          "product": "Lamp",
          "sharedNote": "NOTE-W",
          "commonCableMetres": null,
          "variants": [
            {
              "id": "black",
              "cableMetres": 1,
              "sharedNote": "NOTE-W",
              "decision": "known"
            },
            {
              "id": "white",
              "cableMetres": null,
              "sharedNote": "NOTE-W",
              "decision": "unknown"
            }
          ]
        }
      }
    }
  ],
  "meaningOfNull": "該欄位未知或沒有已建立的值；請按逐項結果判斷。",
  "businessSideEffects": false
}
