{
  "provenance": {
    "inputs_sha256": "41b7d2202704308e00dae3be8d42da93b20c9aa447ba7295eb9d17b319b490bd",
    "readings_sha256": "b4918c150cb448614f0e6b0009ccd810ea18d861cb91ca232e299efc8d07050a",
    "table_sha256": "448d3ff74f428758ef59f0bc0d7e87b8892273f838fc46915491696791b631aa",
    "source_size": [
      1683,
      1190
    ],
    "policy_sha256": "9a7280d5e52a78249926f339fe0efc51e5d64a8acb8242f08b6189123ba53795",
    "rules_code_sha256": "26fa2d606bcc55e24b2598dff1306a5d2a613cfdc4e66d62d8d4f6c1f1ed0bd1",
    "source_fingerprints": {
      "drawing_sha256": "1c2788d63b65944ceabf5245cabbf1e843dbafaff235f1ca1c1cab5efc96b19f",
      "tolerance_sha256": "0c3789fa8b05a8e603c08649b4fe17f088d42c4107ff36a8dc7c25fcb733e3ac",
      "pairs_sha256": "9f1a9db2df9a9eaacce47211b218d924dfcc04168f2a89e88c2303f701ee0dba"
    },
    "transcription_provenance": "Assistant visually transcribed the saved PDF crops and checked feature identity against the full drawing. Values are observations, not expected OK/NG labels. No spatial scoring reference was loaded. Original model outputs are retained separately. Red table marks are ignored per user instruction. Not independently human verified. Matching revision 2026-11-03: four unsupported assignment regressions restored from the earlier SFT model run, then visually rechecked. All other observation records retained.",
    "pair_file": "data/sources/pairs.json",
    "spatial_reference_used": false,
    "model_decides_ok_ng": false,
    "red_marks_select_grade": false
  },
  "id": "B043",
  "black": {
    "id": "B043",
    "class_id": 37,
    "box": [
      1490.73,
      129.94,
      1515.29,
      145.8
    ]
  },
  "red_regions": [
    {
      "id": "R008",
      "box": [
        1499,
        107,
        1528,
        125
      ],
      "ink_area": 200,
      "center": [
        1512.795,
        115.105
      ]
    }
  ],
  "original_crop": "data/crops/B043.png",
  "observation": {
    "pair_red_ids": [
      "R008"
    ],
    "black_text": "2.5",
    "requirement_type": "linear",
    "nominal": "2.5",
    "measured_values": [
      "2.85"
    ],
    "red_text": "2.85",
    "lower_deviation": null,
    "upper_deviation": null,
    "required_measurement_count": 1,
    "unit": "mm",
    "black_readable": true,
    "red_readable": true,
    "association": "plausible",
    "notes": "",
    "review_source": "debug/context/B043.png; debug/black/B043.png; supplied drawing PDF",
    "review_method": "assistant_visual_transcription; not independently human verified"
  },
  "decision": {
    "status": "NG",
    "rule_ids": [
      "R04_EXPLICIT_FIRST",
      "R08_TABLE",
      "R09_ALL_VALUES",
      "R10_ANY_NG",
      "R11_INCLUSIVE_DECIMAL"
    ],
    "reason": "Có ít nhất một rule/cột cho NG: 削 / 中, 削 / 粗, 板金 / 1級 / 寸法. Theo quy tắc đã chỉ định, chỉ cần một NG thì cả cặp là NG.",
    "unit": "mm",
    "scope": "numeric_conformance",
    "measurements": [],
    "candidate_rules": [
      {
        "column": "machining_medium",
        "heading": "削 / 中",
        "family": "machining",
        "nominal_interval": "(0, 6] mm",
        "half_width": "0.1",
        "lower": "2.4",
        "upper": "2.6",
        "source": "/content/検証サンプル②の公差表.pdf, trang 1, 削 / 中, dòng ≤6 mm",
        "measurements": [
          {
            "measurement_index": 1,
            "value": "2.85",
            "lower": "2.4",
            "upper": "2.6",
            "status": "NG",
            "outside_by": "0.25",
            "comparison": "2.4 ≤ 2.85 ≤ 2.6: sai"
          }
        ],
        "numeric_status": "NG",
        "status": "NG"
      },
      {
        "column": "machining_coarse",
        "heading": "削 / 粗",
        "family": "machining",
        "nominal_interval": "(0, 6] mm",
        "half_width": "0.3",
        "lower": "2.2",
        "upper": "2.8",
        "source": "/content/検証サンプル②の公差表.pdf, trang 1, 削 / 粗, dòng ≤6 mm",
        "measurements": [
          {
            "measurement_index": 1,
            "value": "2.85",
            "lower": "2.2",
            "upper": "2.8",
            "status": "NG",
            "outside_by": "0.05",
            "comparison": "2.2 ≤ 2.85 ≤ 2.8: sai"
          }
        ],
        "numeric_status": "NG",
        "status": "NG"
      },
      {
        "column": "sheet_grade_1",
        "heading": "板金 / 1級 / 寸法",
        "family": "sheet_metal",
        "nominal_interval": "(0, 6] mm",
        "half_width": "0.25",
        "lower": "2.25",
        "upper": "2.75",
        "source": "/content/検証サンプル②の公差表.pdf, trang 1, 板金 / 1級 / 寸法, dòng ≤6 mm",
        "measurements": [
          {
            "measurement_index": 1,
            "value": "2.85",
            "lower": "2.25",
            "upper": "2.75",
            "status": "NG",
            "outside_by": "0.1",
            "comparison": "2.25 ≤ 2.85 ≤ 2.75: sai"
          }
        ],
        "numeric_status": "NG",
        "status": "NG"
      },
      {
        "column": "sheet_grade_2",
        "heading": "板金 / 2級 / 寸法",
        "family": "sheet_metal",
        "nominal_interval": "(0, 6] mm",
        "half_width": "0.4",
        "lower": "2.1",
        "upper": "2.9",
        "source": "/content/検証サンプル②の公差表.pdf, trang 1, 板金 / 2級 / 寸法, dòng ≤6 mm",
        "measurements": [
          {
            "measurement_index": 1,
            "value": "2.85",
            "lower": "2.1",
            "upper": "2.9",
            "status": "OK",
            "outside_by": "0",
            "comparison": "2.1 ≤ 2.85 ≤ 2.9: đúng"
          }
        ],
        "numeric_status": "OK",
        "status": "OK"
      },
      {
        "column": "sheet_grade_3",
        "heading": "板金 / 3級 / 寸法",
        "family": "sheet_metal",
        "nominal_interval": "(0, 6] mm",
        "half_width": "0.7",
        "lower": "1.8",
        "upper": "3.2",
        "source": "/content/検証サンプル②の公差表.pdf, trang 1, 板金 / 3級 / 寸法, dòng ≤6 mm",
        "measurements": [
          {
            "measurement_index": 1,
            "value": "2.85",
            "lower": "1.8",
            "upper": "3.2",
            "status": "OK",
            "outside_by": "0",
            "comparison": "1.8 ≤ 2.85 ≤ 3.2: đúng"
          }
        ],
        "numeric_status": "OK",
        "status": "OK"
      }
    ],
    "nominal": "2.5",
    "warnings": [],
    "rule_resolution": "all_applicable_columns",
    "required_information": [],
    "deltas_from_nominal": [
      "0.35"
    ],
    "observed_measurement_count": 1,
    "required_measurement_count": 1
  },
  "explanation": [
    "Yêu cầu: 2.5.",
    "Số đo đỏ: 2.85 mm.",
    "Kết quả: NG. Có ít nhất một rule/cột cho NG: 削 / 中, 削 / 粗, 板金 / 1級 / 寸法. Theo quy tắc đã chỉ định, chỉ cần một NG thì cả cặp là NG.",
    "削 / 中: [2.4, 2.6] mm → NG. 2.4 ≤ 2.85 ≤ 2.6: sai. Nguồn: /content/検証サンプル②の公差表.pdf, trang 1, 削 / 中, dòng ≤6 mm.",
    "削 / 粗: [2.2, 2.8] mm → NG. 2.2 ≤ 2.85 ≤ 2.8: sai. Nguồn: /content/検証サンプル②の公差表.pdf, trang 1, 削 / 粗, dòng ≤6 mm.",
    "板金 / 1級 / 寸法: [2.25, 2.75] mm → NG. 2.25 ≤ 2.85 ≤ 2.75: sai. Nguồn: /content/検証サンプル②の公差表.pdf, trang 1, 板金 / 1級 / 寸法, dòng ≤6 mm.",
    "板金 / 2級 / 寸法: [2.1, 2.9] mm → OK. 2.1 ≤ 2.85 ≤ 2.9: đúng. Nguồn: /content/検証サンプル②の公差表.pdf, trang 1, 板金 / 2級 / 寸法, dòng ≤6 mm.",
    "板金 / 3級 / 寸法: [1.8, 3.2] mm → OK. 1.8 ≤ 2.85 ≤ 3.2: đúng. Nguồn: /content/検証サンプル②の公差表.pdf, trang 1, 板金 / 3級 / 寸法, dòng ≤6 mm."
  ]
}