omni.py handoff: what the merged flow still needs from the engine (2026-10-06)
This lists only what is NOT built. Line refs are to scripts/ugc_omni/omni.py as of 10-06 ~06:10 (after the caption change below). Re-grep before applying: the file moves.
Already in the engine (removed from this list): per-speaker chaining; cast[].avatar for every extra person (refscan/ref/avatar --frame); ElevenLabs voice-only lines (vo: true, a named voice is required); the hook overlay on screen while the hook is spoken; podcast = full-frame cuts.
Shipped since this handoff was written (verified against the 10-06 file, striked from the list below):
- H1 (cmd_cost pricing): done. cmd_cost (line 1029) now prices per image_arms, counts every extra cast[] member's avatar rolls, and excludes broll.*.real footage from the Omni b-roll sum.
- H2 (hook overlay position): done. cmd_assemble line 1021 calls Y.caption_png(ov, 1080, tmp / "hook.png", 0.15, big=True) with the comment "10-06 audit H2: top 14% is Reels UI; 0.12 sat inside it".
- H11 (broll --stage frame empty refs): done, via a ref key (singular, not the proposed refs list): cmd_broll line 829 adds b["ref"] to the refs list when set, and line 832 refuses with "no reference image..." instead of calling the i2i endpoint with an empty input_urls.
Applied in this merge (Fish approved Reels-safe captions):
- caption_safe() sits above cmd_assemble, and cmd_assemble (line 1005) calls it instead of Y.caption_png(..., 0.68). The caption block is centred at 0.60 and never ends below 0.65, whatever its line count.
- Measured with the same algorithm on the yapper caption font: 1 line 0.574-0.626, 2 lines 0.541-0.650, 3 lines 0.493-0.650.
- Backup: scripts/ugc_omni/omni.py.bak-2026-10-06-merge.
BUILT 10-06 late (striked below, entry points):
- H3 VOC check in board: voc_counter() + the board voc column (--no-voc to skip). verbatim: true + 0 hits = ERROR; src naming voc/stake/survey/reddit + 0 hits = warn; non-Dawn brand = - + warn (verifier corpus is Dawn-only).
- H4 per-mode board warnings: person() / speakers() in cmd_board. oneshot skips the 7 s face + scene-change rules (warns instead past ~35 s); single-person formats skip product-vs-scene-change only when the first frame change is a different person. Per-format profiles also shipped (beyond the original H4 spec): BOARD_SKIP + board_skips(), keyed on job.format_skill — format-whistleblower/format-motion-transfer skip scene_change, format-reaction-duet also skips face_time (>7s); storyboard.md prints the skipped-by-design line.
- H5 hook end frame: take() now defaults a speaker-differing hook's end to that hook line's own frame instead of leaving it None.
- H6 job.rules from pacing: board --job D --pacing <pacing.json or dir> (idempotent, replaces only [pacing]-tagged rules) + a reveal-cap warn when the winner's reveal timing is forced past ~95%.
- H7 combo tags into the receipt: write_receipt() → final/<slug>-<hook>.receipt.json (combo_ keys, parent/iteration/format_skill, ad_name = combo_ad_prefix or job-dir-name + -h<n>); board warns via combo_loop.common.tag_errors.
- H8 caption words + uncaptioned cut: final/<slug>-<hook>.words.json ({word, start, end, speaker}); assemble --no-captions → final/<slug>-<hook>-nocap.mp4.
- H9 recast command: recast --job D --src <clip> [--segments a-b,c-d] [--res 768P|1080P] [--prompt] [--text] [--spend] via minimax/h3-max/recast; refuses without rights_ok + source_type in (own-winner, licensed); dry-run by default, --spend writes ledger.jsonl.
- H10 help text: module docstring now says "GPT Image 2 default, Nano Banana Pro optional arm" (no stale NBP-default wording).
- H12 DEFAULT_ARMS = ["gpt2"] (line 51) — NBP only via image_arms or --arms gpt2,nbp.
- H13* voice preset on flash: cmd_voice refuses on aroll_model: flash; prompt_hash ignores kie_audio_id on flash; preset_audio() warns.
Still open (not bugs, per the 10-06 build): single-person formats without a frame change (whistleblower, motion-transfer, reaction-duet) still warn "no scene change" unless covered by a BOARD_SKIP profile above; reaction-duet still warns face >7 s when no profile is set for it elsewhere. No per-format opt-out beyond the BOARD_SKIP map.
Each item below has the function, current behaviour, the proposed change, and why (kept for history; all items in this file are now shipped — see entry points above).
H3. board doesn't check VOC lines (SHIPPED 10-06, see summary above)
- Now:
cmd_board(line 865) never looks at whether a line is a real mom's words. - Change:
- Import
scripts/statics/voc_check.py(hits(),where(); it has a pickle cache). - For every line, compute
hits(" ".join(caption_words(l["text"], j)))and add avoccolumn tostoryboard.md. - ERROR only when a line carries
"verbatim": trueand has 0 counted hits. warn whensrcnames a VOC/stake/survey row and hits = 0. - Why: R1 requires every spoken "real mom" line to be verified. Erroring on every line would block all written lines (callouts, ruled mechanism lines), which are not VOC by design.
H4. board warnings are single-avatar rules applied to every mode (SHIPPED 10-06)
- Now:
- Line 893
if run_a > 7.0:counts face time across a speaker change. - Lines 919/921 warn "no scene change" and "product vs scene change" in every mode.
- Measured on the shipped examples: street interview 7 warnings, workflow yapper 12, all expected.
- Change:
- Add
person = lambda fr: fr if cast_entry(j, fr) else "avatar". Resetrun_awhenperson(fr)changes. - In
mode == "oneshot"skip both the 7 s face warning and the scene-change warnings. Warn instead if the total runs over ~35 s ("one face, no cuts: tells show"). - When the first frame change is a different person (multi-person jobs), skip the product-vs-scene-change warning.
- Why: expected warnings train people to ignore
board, and errors are what block. The flow treats a clean board as the G0 signal.
H5. A hook whose speaker differs from the body start ends on a free frame (SHIPPED 10-06)
- Now:
take()line ~579-583 lands a hook on the body's start frame only when it's the same person. OtherwiseendstaysNone. - Change: default
end= the hook line's own frame (d / j["frames"][line.get("frame", "avatar")]) when the speakers differ. - Why: street-interview and podcast examples set
end_frameto the hook's own frame by hand. Forgetting it leaves the hook take drifting into the cut.
H6. job.rules seeding from ad_dissector pacing (SHIPPED 10-06)
- Now: nothing reads
output/ad-dissect/<slug>/pacing.json. R1 step 1 copies the numbers by hand. - Change: a
rules --job D --pacing <pacing.json>subcommand that: - appends measured rules ("hard cut every ~{mean_shot_s:.1f} s", "{cuts_per_10s} cuts per 10 s", "talks at ~{wps} wps" when present, "product first shown by {product_reveal_pct-10:.0f} %");
- stores
job.pacing. boardthen compares its own estimated product time ÷ total against that cap.- Why: SKILL.md §0 says analyse the winner, then write
job.rules; ad_dissector already measures it ($0 with--pacing-only).
H7. Combo tags into the receipt (SHIPPED 10-06)
- Now:
combo_*keys survive in job.json (extra keys are ignored), butassemble(line 1022) writes nothing beside the mp4. - Change:
assemblewritesfinal/<slug>-<hook>.receipt.jsonwith: everycombo_*key,parent,iteration,format_skill,hook, theoverlaytext, duration, sha256, the line ids, andad_name = f"{j.get('combo_ad_prefix') or slug}-h{n}".boardwarns whenscripts/combo_loop/tags.py checkwould fail (no combo keys).- Why:
combo_loop/refresh.pyassigns launched ads to a job bycombo_ad_prefix. The launcher needs the exact ad name and parent from one file.
H8. Caption words + an uncaptioned cut for Remotion comps (SHIPPED 10-06)
- Now:
assemblebuilds a globalwordslist (line 966) and leavesfinal/_<hook>/cut.mp4(oraroll.mp4) uncaptioned with pre-loudnorm audio. It exports neither. - Change:
- Write
final/<slug>-<hook>.words.jsonas[{"word": w, "start": s, "end": e}](the RemotionCapWordshape inapps/orange-doc/src/FormatComps.tsx). - Add
--no-captions, which writesfinal/<slug>-<hook>-nocap.mp4(loudnormed, overlay off). - Why:
DuetStack(reaction duet) needs the uncaptioned reactor + words, so it renders captions once inside the safe box (bottom 64 %).- The manual ffmpeg composite keeps omni's burned captions, which land at ~60-71 % of the composite even after
caption_safe(her 0.54-0.65 block sits in the lower panel, so the composite shifts it down).
H9. recast for creator footage (SHIPPED 10-06)
- Now: no command. The registry row "Motion transfer / recast" is PROVEN on a cartoon clip (
output/model-proofs-2026-10-06/2-h3-recast/, direct fal call infal_proof.py), with no wrapper. - Change:
recast --job D --src <clip.mp4> [--segments s0-e0,s1-e1] [--res 768P|1080P] [--spend]: - Inputs: fal
minimax/h3-max/recast,video_url(5-30 s, no shot >15 s),reference_image_urls= one photo per person (frames.avatar, pluscast[]frames in order),resolution. - Gate:
gate()prices it at $0.30/s 768P or $0.45/s 1080P (fal page read 10-06; re-read before use). - Rights: refuses unless
job.source_typeisown-winnerorlicensedANDjob.rights_okis true (format-motion-transfer rights gate; creator usage terms must cover AI modification). - Product: recasts only the listed segments, so band-in-hand or band-on-wrist spans stay the original footage (recast has no product gate).
- Output + check: writes
recast/<stem>.mp4, thenverify --clip(audio is preserved). - Why:
- Fish 10-06: creator footage may be AI-edited.
- The talking-head refresh path (omni re-performance of the transcript) already runs. The true recast, which keeps the creator's motion, cuts and audio, has no entry point.
- It runs on fal (FAL_KEY), not kie.
H10. Help text still says NBP for the avatar and b-roll steps (SHIPPED 10-06)
- Now: module docstring lines 2, 12, 23, 30 ("avatar (Nano Banana Pro i2i)", "NBP rolls", "one-shot NBP i2i", "NBP from the avatar").
- Change: "GPT Image 2 i2i (Nano Banana Pro optional arm)".
- Why:
--helpis what other sessions read first.DEFAULT_ARMS = ["gpt2", "nbp"]stays as is (Fish 10-06: GPT Image 2 default, NBP optional, Seedream lost).
H12. DEFAULT_ARMS still rolls Nano Banana Pro by default (SHIPPED 10-06)
- Now: line 48
DEFAULT_ARMS = ["gpt2", "nbp"]; any job withoutimage_armspays both arms onavatar,variantandbroll --stage frame. The engine's ownjob.example.jsonhad noimage_armskey until the 10-06 audit added it. - Change:
DEFAULT_ARMS = ["gpt2"]; nbp only viaimage_armsor--arms gpt2,nbp. - Why: Fish 10-06: GPT Image 2 default, Nano Banana Pro optional second arm (core §1b). "Optional" is not "on by default".
H13. voice preset is inert on the default flash model (SHIPPED 10-06)
- Now:
take()passesaudio_idsonly on theomnibranch (line ~585);omni_flashnever sends them (kie refuses them withfirst_frame_url).cmd_voicestill creates the preset andprompt_hashincludeskie_audio_id, so runningvoice --spendafterlock --approveinvalidates the lock for no effect. - Change:
cmd_voicerefuses (or warns) whenaroll_modelisflash; dropkie_audio_idfromprompt_hashon flash. Help text and SKILL.md §3 fix-library row already say it (audit 10-06).