From 19531c5b09fdab340c0e72d1bcad49f96c345649 Mon Sep 17 00:00:00 2001 From: "juancarlos.cavero" Date: Fri, 31 Jul 2026 20:50:23 +0200 Subject: [PATCH] feat(selection): require clips to stand alone without sacrificing the payoff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Measured with a blind judge comparing two candidates from the same video, positions alternated and durations matched. Baseline first: the current pipeline beats a random window of the same length 82% of the time over 60 comparisons, so selection works and the room is in the remaining 18%. The judge's stated reasons kept naming something the prompt never asked for: whether the moment stands on its own. Two versions of that rule were tested. v1 "must make sense to someone who has seen nothing else" 19 vs 20, 49%, p = 1.000 -> nothing v2 v1 plus "fix it by moving the START earlier, never by cutting the ending short" run 1 27 vs 11, 71%, p = 0.014 run 2 18 vs 13, 58%, p = 0.473 (replication, different seed) pooled 45 vs 24, 65%, p = 0.015 -> adopted Read the replication honestly: it did NOT reproduce 71% on its own. Both runs point the same way and pooled they clear the bar, but the effect is smaller than the first run suggested. If the true rate were 71%, seeing 18/31 or worse has p = 0.085, so this is a weaker effect rather than a contradiction. Adopted because it is free — no fewer clips, no extra call — and revisit it if another selection change ever needs the same slot. The gap between v1 and v2 is the useful finding. Asking for self-containment alone is inert because the model buys context by delaying the start and pays for it with the payoff, and the two cancel out; v1's losses were literally "B ends abruptly in mid-sentence" and "A includes the final call to action". Median overlap between the two selections was 37-42%, which is what makes the v1 result meaningful: the prompts really do pick different seconds, so 49% means "no better", not "no different". Harnesses kept in the reframe-testing skill (selection_ab.py, prompt_ab.py). --- gemini_worker.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gemini_worker.py b/gemini_worker.py index 1d90488..972cc97 100644 --- a/gemini_worker.py +++ b/gemini_worker.py @@ -248,6 +248,12 @@ CLIP RULES: - Start slightly before the hook and end slightly after the payoff when possible. - Do not cut in the middle of a word or phrase. - No generic intros/outros unless they are the hook. +- STANDS ALONE: the clip must make sense to someone who has seen nothing else. + If it opens on a pronoun, a "that", a "so anyway", or an answer whose question + was asked earlier, move the start back to where the idea begins or skip it. + A brilliant moment that needs the previous five minutes is not a clip. + Fix this by moving the START earlier, never by cutting the ending short: a + clip that loses its payoff to gain context has traded down. - Prefer one great clip per candidate window. Maximum 2 clips per window only if clearly justified. - DIVERSITY: never return two clips that make the same point, tell the same story, or land the same joke — even across different windows. Pick the