Ultimate UGC flow (Dawn): one path from combo to read-back
What this is: the merged end-to-end flow for every photoreal people ad. The engine is ugc-omni (skills/ugc-omni/SKILL.md + scripts/ugc_omni/omni.py, G0-G4). Around it this file adds the format, research and launch layers: R0 plan, R1 research before the engine, and B1-B8 back end after it.
Ownership: written 2026-10-06 by the format-skills session as an add-on. The ugc-omni session owns SKILL.md, omni.py and job.example.json; nothing here edits or restates them.
When two sources disagree: the engine wins on HOW to generate. knowledge/ad-formats/_FORMAT-CORE.md wins on doctrine and launch. Fish's 10-06 rulings relayed through the engine session win over both (list at the bottom). Code that isn't built yet is written up in ultimate-handoff-omni-py.md. Format presets are in ultimate-formats.md.
Run everything from ~/.openclaw/workspace. O=scripts/ugc_omni/omni.py, J=output/ugc_omni/<slug> (a new slug every run). Every omni paid step is a dry run until --spend, and every gate is Fish's.
| Stage | Owner tool | Command (free unless marked) | Gate | Output |
|---|---|---|---|---|
| R0 Plan | workflow-combo-loop | plan.py, tags.py |
Fish OKs combo + ONE variable | $J/job.json skeleton with combo_* |
| R1 Research | workflow-copy-research + tools | ad_dissector.py, voc_check.py, omni.py mine |
core §4 gate 1 (concept + script) | output/copy-research/<slug>-<date>/, job.rules, job.lines[] |
| G0-G4 | ugc-omni | omni.py board … assemble (mine costs ElevenLabs Scribe quota; prodcheck/pick --product one Gemini call) |
G0-G4 (SKILL.md) | $J/final/<slug>-<hook>.mp4 |
| B1-B5 Finish | this file + core §4 gate 8 | ffmpeg preview, Remotion comps, meta_preflight.py |
Fish watches the placed cut | _clean/ assets |
| B6-B8 Launch + read | media-buyer, combo-loop | meta_dof_guard, readout, refresh.py |
Fish approves every Meta write | launch memory, read, refreshed map |
R0. Plan: a paying parent, one variable, tagged
python3 scripts/combo_loop/plan.py --format <format-skill> --brand dawn [--n 3]writesoutput/combo-loop/dawn/plans/<date>-<format>.md. Each combo = a named paying parent + ONE changed dimension + a yaml block. - Recipe check before you pick.- Story presets (KJ UGC, yapper, podcast, whistleblower) = recipe A (MAP §2A): mom-1st narrator, an accuser close to her, an explainer inside the story, vindication.
- Callout presets (callout UGC, AI actor demo, street interview, reaction duet) = recipe B (MAP §2B): brand-voice callout, her daily burden, guarantee/science authority, independence payoff.
plan.pymaps every ugc-talking format to the story family. The video family has 0 paying parents, so it proposes song parents and can proposedevice: testimonial, which MAP §2B says loses.- For a callout preset, run
python3 scripts/combo_loop/plan.py --format dawn-statics --brand dawninstead and take a paying static parent. Then setcombo_format: ugc-talkingandcombo_variable: format. (Open item for Fish, see bottom.)
- Paste the yaml as top-level
combo_*keys in$J/job.json(tags.pyalso reads a"combo": {...}block; omni.py ignores extra keys). - Keys:python3 scripts/combo_loop/tags.py keys --brand dawn=combo_avatar combo_angle combo_pov combo_authority combo_stake combo_stake_on combo_emotion combo_root_cause combo_mechanism combo_payoff combo_device combo_format combo_parent combo_variable combo_ad_prefix(optional:combo_stake_intensity combo_stake_line combo_hook). Allowed values come fromoutput/dawn-combo-map-2026-10-05/codebook.md. - Core §5 keys go next to them:
format: ugc-omni,format_skill,parent(+ CPA),iteration(the ONE variable),title,overlay. Nolabelkey (Fish 10-06: no disclosure label on the cut or in primary text). - Gate:
python3 scripts/combo_loop/tags.py check $J/job.jsonmust PASS. Today it fails on every shipped example, because none carry combo keys.combo_ad_prefixbecomes the start of every launched Meta ad name (B6), so leave it empty only if the job dir name is the prefix you want.
R1. Research: the Dawn checklist before G0
Do all eight items, in order. Each one lands in a file that G0 reads.
- Dissect the winner or source.
python3 scripts/ad_dissector.py <winner.mp4|URL> --slug <slug> --brand-context "Dawn: a silent vibrating wake-up band for deep-sleeping kids" [--competitor] [--pacing-only]writesoutput/ad-dissect/<slug>/pacing.jsonanddissect.md. -pacing.jsonholdsduration_s,cuts_per_10s,mean_shot_s, words/s when Scribe runs, andproduct_reveal_pct. - BUILT 10-06 (handoff H6 shipped):python3 scripts/ugc_omni/omni.py board --job <job.json> --pacing <pacing.json or the ad-dissect dir>writes the measured numbers straight intojob.rules("hard cut every ~N s", "N cuts per 10 s", "she talks at ~N wps", "product first shown by (reveal % − 10)") and storesjob.pacing; idempotent (re-running replaces only the[pacing]-tagged rules), andboardthen warns if the reveal cap is forced past ~95%. Then add the KJ rules ugc-omni §0 lists. ---competitoroutput is a gap map, never a template: the concept must fail the competitor-swap test (core §1). - 1b. TrendTrack pull (standing input since 10-06). Beforejob.rulesis written, read the format's pattern file in the latest pull (~/research/trendtrack-winners-2026-10-06/patterns-<a..j>.md, index inindex.md, cross-format facts inSUMMARY.md) and copy its measured range (runtime, wps, cuts/10 s, first-product %, who speaks) intojob.rulesnext to the parent's numbers; the "TrendTrack says / we assume / test cell" line of the preset (ultimate-formats.md) names the one alternative cell. Refresh the pull per format when it is older than ~30 days or the format has no row. Route (0 API credits; the public API has no transcript search and the key sits at 0/10k credits until 10-16): the TrendTrack web app's internal explorer API through the logged-in Chrome tab over CDP 9333 (output/dawn-iterate-2026-10-04/B-raw/tt_post.py:get_pagefinds theapp.trendtrack.iotab,postaddsworkspaceId, Playwrightfetchwithcredentials: include). Search =POST /api/v1/explorer/ads/searchwithsort {field: longestRunning | duplicates, direction: desc},limit 40,filters {isActive: true, countryCodes: ["US"], mediaTypes: ["video"]}and the transcript filteradvancedFilters: [{field: "all", scopeFields: ["transcript"], operator: "contains", matchMode: "any", values: ["<phrase>"]}](phrase lists per format in~/research/trendtrack-winners-2026-10-06/raw/search.py,search2.py,search3.py; a competitor roster usesfilters.landingPages: ["<domain>"]instead,raw/gapmap.py). Detail =GET /api/v1/explorer/meta-ads/<composite id>?workspaceId=…→content.transcriptText,creative.duration/mediaUrl/thumbnailUrl,duplicate.duplicateCount,status.daysRunning(output/dawn-iterate-2026-10-04/B-raw/tx_fetch.py, 24 ids per batch). Then rank (raw/pool.py: dups ≥3 or days ≥45, 12-240 s, exclusion list of app/SaaS/junk domains), thumb sheets (raw/sheets.py), hand-pick ~4 per format, downloadmediaUrl, dissect each withscripts/ad_dissector.py <mp4> --slug tt-<format>-<brand> --out <pull>/dissect/<slug>(dissect/run_one.sh;--competitorfor a lane leader), and writepatterns-<format>.md+index.md. Gotchas: 429 → sleep 3 s and retry, ~0.4 s between calls; ids are composite (facebook_<id>); Whisper never emits ♪, and[Music]-only transcripts are silent text-pop ads, lyric hits are licensed tracks (patterns-i_song.md); some rows have no transcript (the hook is Gemini's paraphrase, marked "(para)"); US-only ads carry no reach, soduplicatesis the scaling proxy; Gemini's beat timestamps drift on long ads (pacing.jsonis the measured truth) and it sometimes returns a list instead of an object (raw/fix_list.pyrepairs the dir); 4 per format is a curated sample, so every finding is a pattern to test, never proof. Paraphrase; never quote more than the hook's first words; a lane-leader row is a gap map only (Fish 10-05). - VOC lines verified. Every line spoken as a real mom's words gets
python3 scripts/statics/voc_check.py "<phrase>". Exit 1 = 0 counted hits: drop the line or re-source it. - Read every hit in context (--fileslists the corpus). - Tables, hooks and the verifier followskills/workflow-copy-research/SKILL.mdsteps 2-4 andreferences/procedure.md§3. - Lines we wrote (callout, ruled mechanism) aren't VOC; give each asrcsaying so. - Sub-avatar + casting.
-
combo_avatar(parent-teen, parent-adhd, …) picks the sub-avatar. -persona_logic= someone who has already SOLVED it (ugc-omni §0 avatar logic), a mom 35-54. Callout presets cast her as the voice of the callout, not a reviewer. - Wrists bare. Every extra person (street moms, podcast host, insider) is acast[]entry with her ownavatarblock (built: ugc-omni §3c). - Reference creators by platform (ugc-omni §1: younger → TikTok, millennial → Instagram, older → Facebook). Dawn moms 35-54 = Facebook and Instagram creators talking to a propped phone.
-
python3 $O mine <URLs…> --keywords alarm,morning,schoolwritesoutput/ugc_omni/_mine/hooks.md(first spoken line, product-mention time). - Shortlist the source videos here.refscanranks frames at G1. - Objections. Buyer survey at purchase, n = 156 (
knowledge/brands/dawnbands/research/customer-evidence-2026-09-15.mdlines 194-195; alsoresearch/bottleneck-diagnosis-2026-10-03.md): - "Not sure it would wake them" = 82 = 52.6 %. Answer it by SHOWING the band buzz and the kid getting up: gated omni b-roll or real footage. More mechanism talk doesn't answer it. - "Not sure they'd wear it" = 29 = 18.6 %. Answer it with a kid wearing it asleep. - Every script answers at least the 52.6 % one on screen. - Proof (
knowledge/brands/dawnbands/claims-register.md, claims unlocked 10-02): the 60-night wake-up guarantee (risk reversal, never the headline) and "10,000+ parents". - Product facts only fromproduct-truth.md+ the live PDP. The price is never spoken unless checked live that day. - 3 hooks per concept, each traced to a table or stake-bank row (workflow-copy-research step 6, procedure §4;
knowledge/hook-taxonomy.md). Inlines[]:hook: H1/H2/H3+overlay(one string or{hook: text}). - Competitor gap map: the
--competitordissect of the lane leader, plus the swap test. Note what they never show; that is our angle. Standing wrist-alarm map:~/research/trendtrack-winners-2026-10-06/gap-map-wrist-alarm.md(FitSleeps / HiStrips: sleeper-as-buyer, "silent vibrating" asserted with no root cause, lit display in frame 1, no story format; the mom, touch-vs-sound and story formats are ours).
Per-preset emphasis (full presets in ultimate-formats.md):
| Preset | Dissect source | VOC load | Casting | Objection it must answer |
|---|---|---|---|---|
| KJ UGC / yapper | our paying song/native parent or a KJ-style organic UGC | stake + accuser lines | 1 mom who solved it | wake doubt (demo b-roll) |
| Callout UGC / AI actor demo | paying static callout | symptom lines in her words | 1 mom delivering the callout | wake doubt (demo) + wear doubt (worn asleep) |
| Street interview | vox-pop organic | 6-8 verbatim answers (heaviest) | 7-8 distinct moms, cast[] |
wake doubt (band insert) |
| Podcast | podcast-clip organic | story + host questions | MOM + HOST (cast[]) |
wake doubt (cutaway) |
| Reaction duet | the forum post itself | the quote card is verbatim | 1 reactor | wake doubt (answer beat) |
| Whistleblower | Foreplay #02 / insider confession | stake lines (insider is written) | MOM + silhouette insider (cast[]) |
wake doubt (beat 5) |
| Creator recast | our own UGC winner | the winner's transcript | new avatar, genetic change | as the parent |
Gate: concept + script approved (core §4 gate 1). The script went through the format beat sheet → direct-response-copywriter doctrine → humanizer → Opus red-team (workflow-copy-research step 8). Then it becomes job.lines[].
G0-G4. The engine (ugc-omni; read it, don't restate it)
| Gate | Engine section | What our layer adds at that gate |
|---|---|---|
G0 script + hooks + storyboard (board clean) |
SKILL.md §0, §3b (modes), §3c (cast, vo lines, overlay) | python3 $O board --job $J: before G1 only "frame … not picked yet" errors may remain. Plus tags.py check PASS and every VOC line verified (R1.2). python3 $O cost --job $J for the quote (it prices images at the NBP rate whatever the arms: handoff H1). |
| G1 reference frame + avatar | §1, §2, §3c | --arms gpt2 (Fish 10-06: Seedream 5 Pro lost both tests; nbp optional second arm; omni's own default still runs gpt2 + nbp). Extra people: refscan/ref/avatar --frame <name>, then pick --name <name>. Product frames through variant/pick --product. |
| G2 locked prompt: one line, same take good 3x | §3 | Same line good 3× = the 9-30 motion proof. Product lines lock product_action separately. No gen before G2. |
| G3 every A-roll line watched; b-roll frames + product accuracy checked | §4, §5 | Real-footage fallback for any band shot that won't pass pick --product ≥7/10: python3 scripts/clip_library.py search --tags dawn-raw,product,waking-up --all → copy the .h264-clean.mp4 to $J/broll/<id>.mp4 and never run broll on that id. vo lines (interviewer/narrator) need job.vo_voice_id (ElevenLabs, no default). |
| G4 the assembled cut, by eye and ear | §6 | python3 $O assemble --job $J --hook H1 (repeat per hook), then everything below before Fish's watch. |
Back end: from omni's cut to a read
B1. Captions inside the Reels safe zone.
- Core §4 gate 8: content must sit in y 14-65 %.
- Captions: fixed 10-06. assemble burns them through caption_safe() (omni.py, above cmd_assemble): the block is centred at 0.60 and never ends below 0.65, whatever the line count. Measured on the caption font (text bbox of the rendered PNG; same numbers as the caption_safe docstring and handoff): 1 line 0.574-0.626, 2 lines 0.540-0.650; a 3-line block ends at 0.650 and its top depends on wrap (0.39-0.49 measured 10-06), all inside y 14-65 %. Backup of the old behaviour (block TOP at 0.68, 2 lines to 0.79): scripts/ugc_omni/omni.py.bak-2026-10-06-merge.
- Hook overlay: still open. Its block spans y 0.120-0.223 (measured 10-06), so the top ~2 % sits in Meta's top 14 % band. Handoff H2 (anchor at 0.15). Until it lands, run the B4 preview on the hook frame and decide with Fish; a one-line overlay usually survives because the glyphs start below 0.14, a two-line one may not.
- Remotion comps that caption once (DuetStack) still need the uncaptioned picture ($J/final/_<hook>/cut.mp4, or aroll.mp4 when there's no b-roll; audio not yet loudnormed) plus a words file: handoff H8.
B2. No label. Fish 10-06: no disclosure label of any kind on the cut or in the primary text. Don't add a label key; omni.py ignores one if it is present.
B3. Layouts omni assemble doesn't do.
- Reaction duet: python3 scripts/remotion_stitch.py comp DuetStack <props.json> <out.mp4>. Props: top = [{src, start, end}] cards/clips, bottom = the reactor video, words = [{word, start, end}].
- DuetStack puts captions in the safe box (block bottom 64 %), but it needs the uncaptioned bottom + a words file (handoff H8).
- Until then: format-reaction-duet's manual ffmpeg composite (crop=1080:960:0:840). There, omni's burned captions (0.54-0.65 of her frame) land at ~60-71 % of the composite, the lower part inside the UI band. Preview it (B4) and flag it to Fish.
- Podcast: full-frame cuts between speakers (Fish 10-06). assemble already intercuts in script order. PodcastTwoShot is NOT used for podcast unless Fish reopens split screen.
- Street interview: question = overlay, follow-up = a vo: true line. Both are built; no Remotion step.
B4. Placement preview + decision-moment check (core §4 gate 8):
F=$J/final/<slug>-H1.mp4
SAFE="drawbox=x=0:y=0:w=iw:h=ih*0.14:color=red@0.35:t=fill,drawbox=x=0:y=ih*0.65:w=iw:h=ih*0.35:color=red@0.35:t=fill,drawbox=x=0:y=0:w=iw*0.06:h=ih:color=red@0.35:t=fill,drawbox=x=iw*0.94:y=0:w=iw*0.06:h=ih:color=red@0.35:t=fill"
ffmpeg -y -loglevel error -sseof -15 -i $F -vf "fps=2,$SAFE,scale=216:-2,tile=6x5" -frames:v 1 $J/final/last15-safe.jpg # last 15 s, 2 fps, safe zone shaded (tested 10-06)
ffmpeg -y -loglevel error -ss <reveal_s> -i $F -vf "$SAFE" -frames:v 1 $J/final/reveal-safe.jpg # hook frame (0), reveal, CTA
- Nothing that matters (captions, overlay, the band, CTA) may sit in red.
- Feed shows a 4:5 centre crop, losing ~15 % top and bottom; check the overlay survives it.
- Primary text: the symptom must show before "See more"; the headline adds proof and never repeats the hook.
- Go frame by frame through the last ~15 s (reveal, product, CTA): AI flaws cluster where the ad asks for the click.
B5. Sanitize: python3 scripts/meta_preflight.py $F writes _clean/<slug>.mp4 + a manifest with metadata stripped (standing rule). Note that a missing Meta "AI info" label ≠ clearance (core §6).
B6. Launch (media-buyer skill; every Meta write needs Fish's approval):
- python3 scripts/meta_changes.py 3d first.
- Own ad set per concept in Testing CBO (one variable vs the parent). Ad names START WITH combo_ad_prefix, e.g. <prefix>-h1.
- Creative POST only through meta_dof_guard.post_creative_strict(client, acct, payload, expect=LINK) (explicit OPT_OUT degrees_of_freedom_spec, read back; never re-post bare).
- check_links: ad link = Shop Now = text URL.
- Before adding ads, check test capacity: Testing $/day × 7 ÷ (target CPA × chosen multiple).
- Record project_launch_<date>_<slug>.md with IDs and the verdict date (+7 days).
B7. Read at 7 days, never earlier (core §6). Find the loss point in this order:
- hook rate (3-s views ÷ impressions) → hold (ThruPlays ÷ 3-s views; first 15 s only) → CTR → CVR. Verdict = CPA vs break-even at 7 days, same dates and window for every arm. Never pause; reduce spend.
- Per-hook split: python3 -m scripts.cartoon_h3.readout --concept <prefix> --pattern '<prefix>-h(?P<h>\d+)' --days 7 (read-only).
- Record whether each live arm shows Meta's AI label: that's a hidden second variable.
B8. Feed back into the combo map. python3 scripts/combo_loop/refresh.py --brand dawn (weekly; read-only Meta GET + Sonnet coding of new concepts, owned by workflow-combo-loop):
- It assigns launched ads to this job by combo_ad_prefix, re-aggregates recipes.json, and diffs the MAP.
- The next R0 plan.py run starts from the updated recipes.
Fish rulings this flow applies (10-06; relayed by the engine session)
- Image arms:
gpt2only; Seedream 5 Pro lost both 10-06 tests; Nano Banana Pronbp= optional second arm. - No disclosure label of any kind on a photoreal cut or in its primary text.
- Podcast = full-frame cuts between speakers, no split screen.
- Extra people need their own
cast[].avatar(genetic change); off-camera voices = ElevenLabs with a named voice; hook text shows while the hook is spoken. - Every product description carries the display-off sentence (product-refs README): "Display off: a plain black ribbed silicone strap of even width all the way around, no visible screen, no screen pod, no raised module, no glossy rectangle; it looks like a plain sports band."
Open items that need Fish (not resolved here)
scripts/combo_loop/plan.pyFORMATS maps callout formats (ai-actor-demo, street-interview, reaction-duet) tokind: story. R0 works around it; the fix belongs to the combo-loop owner.- The hook overlay's top at 0.12 (H2) is the one placement issue left on omni cuts for Reels; captions are inside the safe zone since 10-06 (B1).
omni.py costunder-prices multi-person jobs and ignoresimage_arms(H1): quote street interview / podcast / whistleblower by hand until it lands. (Checked 10-06:_FORMAT-CORE.md§1b and_MODEL-REGISTRY.mdalready carry the GPT Image 2 default and no label line; nothing left for their owner from this merge.)