You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
idea: Ref2VA reference-leak probe - flag shots that open on the reference portraits themselves #487
Idea: a Ref2VA reference-leak probe in assess_output / analyze_shots.
Source: field report from an Opus 5.5 session on lem, 2026-09-25/26.
One of 25 H3 Ref2VA shots (3 image references) opened on ~1.5 s of the reference portraits themselves (cream studio backdrop, character-sheet framing) before cutting into the scene. This happened although subject_definitions said the backdrop and framing were not to be reused. Nothing in assess_output flagged it; the shot was only caught by a local check.
Local heuristic that caught it (la-vela/tools/check_leak.py):
sample the first 2 s at 4 fps;
measure the fraction of pixels near the reference backdrop colour.
Night scenes scored ~0; the leaked frames scored 0.3+.
A dw version could do better: the references are known to the job. Compare the first N frames with each reference image (a perceptual hash, or embedding similarity against the reference and its backdrop), and flag a shot whose opening matches a reference more than the rest of the shot does. It's cheap and runs on the job's own inputs. It belongs with the other probes (#387).
Written by the lead agent, model claude-opus-5-5 via anthropic. v3 replaces v2 after building stage A (#493) showed v2's central assumption is false for the one known leak. Scope changes: stage A is withdrawn.
Verdict: don't build the cheap probe; fold the case into #488
v2 said the leak's signature is structural: a shot "opens on ~1.5 s of a different picture … and then cuts", so a hard cut inside a shot's first 2 s would find it. v2 also named what would reopen the design: "a real leak this field misses, meaning the portrait morphs into the scene without a hard cut … The field's opening_jump_ratio on that shot is the evidence." The build found exactly that.
What the build measured (D1 was satisfied)
The leaked shot is in encanto-uprising. It is LaVelaSongShots/20260926-051204-2e36c5ba/final/LaVelaSongShots-shot@final_a.10-0.0.mp4 (8.7 s, 24 fps). Its first 2 s are 70% near-white pixels, against 3% for the rest of the shot. No other of the workspace's 40 shot files goes above 8%.
It is a morph, not a cut. The backdrop is held still for frames 0–21 (~0.9 s, per-frame change ≤ 1.7 grey levels). Then it fades into the scene over roughly 3 s: mean brightness goes 191 → 145 by frame 48 and → 98 by frame 71. The fade never changes more than 7.7 levels in one frame, and the shot's own typical motion after the window is 7.0.
v2's field on all 40 shot files (opening_jump_ratio, implemented as v2 specifies):
the leak scores 1.06, 11th of 40;
the clean shots score 0.37–2.01;
there is no threshold that separates them. seam_frame_jump's 25.0, the starting point, is an order of magnitude away from all of them.
A generic thumbnail distance doesn't separate it either. I tried the opening's distance to the nearest body frame, divided by the body's own drift. The leak scores 0.77, mid-pack among 0.16–1.11, because H3 shots move a lot.
What does separate it is the backdrop's colour, which is the field report's own heuristic (check_leak.py: the share of pixels near the reference backdrop). A model-agnostic probe can't know that colour. A probe that knows it is the reference comparison v2 costed at 2–3 stages ($10–15) plus the lasting "a probe knows the run's inputs" concept (v2's reasons are unchanged: no step arguments in the manifest, references save: false in both templates, no asset→run link, probes see only (media, records, source)).
Reference comparison (the issue's original proposal). Deterministic and cheap per call, but 2–3 stages ($10–15) and the provenance plumbing above, for one incident in 25 shots. It would need its own re-plan.
Backdrop-share heuristic (a bright, flat opening against a darker body). It separates this one case (0.705 vs next 0.079), but it is tuned on a single positive, specific to a light backdrop, and would fire on any shot that opens bright and goes dark. Not recommended.
Approved — build smaller (opening-cut structural probe), not the reference-comparison version. Q1: yes, look in encanto-uprising first; if the shot's gone, calibrate on synthetic + clean fixtures as you said. Q2: yes, keep analyze_shots audio-gated. Q3: yes, model-agnostic — agreed, don't scope to H3 Ref2VA, that's exactly the provenance plumbing this plan is right to avoid.
Spec for #487 plan v2, written by the tester (claude-opus-5-5 via anthropic) from the approved plan alone. The cases are in regression-suite-complete.md. All carry pending: #493, and all are CPU-only, so they spend no GPU time.
C-F144: a 1.5 s leak with no shot records (one whole-file shot) fires shot_opening_cut. It checks opening_cut_s ≈ 1.5 ± 0.1, the value against the finding's own threshold, and at naming the shot, on both the output and a kept asset. A 2.5 s leak, outside the window, does not fire, and its opening_cut_s is ≤ 2.0.
C-F145: a join with recorded shots. The 2.5 s shot gives null for both fields and puts the rule in rules_skipped. The next shot's own hard cut at frame 0 is not an opening cut, and analyze_seams still owns the seam.
C-F146: edges set through the shots= override:
a cut at 1.5 s, 1.958 s and 1 frame fires;
a cut at 2.04 s, at frame 0, or at 2.5 s does not;
a 3.958 s shot is null and skipped, while a 4.000 s shot is measured.
C-F147: clean footage (the incident, and incident×3 joined) produces no finding, and a shot of 4 s or more never has null fields.
C-F148: no new surface.
audio-only priya-voice.wav gives null fields and the rule skipped;
a silent clip is still not applicable (D2);
the probe= 400 is unchanged, and a still is not applicable to all three probes;
analyze_shots params are still video/shots/device;
the docs (the rules table in the WORKFLOW_GUIDE, the TASKS guide's analyze_shots answer) and the minimax-h3 skill name the rule.
Notes, none of them blocking:
The leak fixture is built with loop_frames + pair_audio + concat_videos over qa-cast fixtures. Laundering the join's shot records away needs loop_frames to drop them. If it doesn't, C-F144 falls back to the shots=[0,184] override in C-F146.
The window edge exactly at 2.0 s (frame 48) is left unasserted, because the plan doesn't say whether the window includes it. The cases test 1.958 s and 2.04 s instead.
A shot of exactly 4.0 s is read as measured, because the plan says "under 4 s" is what gets null. If that's wrong, say so in the plan.
The D1 real case (the leaked shot in encanto-uprising) isn't written as a durable case, because which shot it is isn't known until the stage is built. I'll check it at verify and add a case then if it holds.
Activity
fix(docs,plugin): #484 - fold 24-shot field report into H3/Music3 skills
dkackman commentedon Sep 26, 2026
Plan v3: reference-leak probe (#487)
Written by the lead agent, model
claude-opus-5-5viaanthropic. v3 replaces v2 after building stage A (#493) showed v2's central assumption is false for the one known leak. Scope changes: stage A is withdrawn.Verdict: don't build the cheap probe; fold the case into #488
v2 said the leak's signature is structural: a shot "opens on ~1.5 s of a different picture … and then cuts", so a hard cut inside a shot's first 2 s would find it. v2 also named what would reopen the design: "a real leak this field misses, meaning the portrait morphs into the scene without a hard cut … The field's
opening_jump_ratioon that shot is the evidence." The build found exactly that.What the build measured (D1 was satisfied)
encanto-uprising. It isLaVelaSongShots/20260926-051204-2e36c5ba/final/LaVelaSongShots-shot@final_a.10-0.0.mp4(8.7 s, 24 fps). Its first 2 s are 70% near-white pixels, against 3% for the rest of the shot. No other of the workspace's 40 shot files goes above 8%.opening_jump_ratio, implemented as v2 specifies):seam_frame_jump's 25.0, the starting point, is an order of magnitude away from all of them.check_leak.py: the share of pixels near the reference backdrop). A model-agnostic probe can't know that colour. A probe that knows it is the reference comparison v2 costed at 2–3 stages ($10–15) plus the lasting "a probe knows the run's inputs" concept (v2's reasons are unchanged: no step arguments in the manifest, referencessave: falsein both templates, no asset→run link, probes see only(media, records, source)).Options
not plannedwith a pointer. The Skill notes from a 24-shot H3 musical: props vs actions, landmark direction, two-person lip-sync target, crowd age, reference leak, native 1344x768; Music3 ignores per-section singers #484 skill line ("check first frames by eye") stays as the stopgap it is now. Cost here: $0.Stages
not planned. The WIP branchfeat/487-A-opening-cut(the v2 measurement only, never merged) is discarded. Nothing reacheddevelop.Non-goals (unchanged from v2 unless noted)
analyze_shots(D2).Decisions
dkackman commentedon Sep 27, 2026
Approved — build smaller (opening-cut structural probe), not the reference-comparison version. Q1: yes, look in encanto-uprising first; if the shot's gone, calibrate on synthetic + clean fixtures as you said. Q2: yes, keep analyze_shots audio-gated. Q3: yes, model-agnostic — agreed, don't scope to H3 Ref2VA, that's exactly the provenance plumbing this plan is right to avoid.
6 remaining items
dkackman commentedon Sep 27, 2026
Spec for #487 plan v2, written by the tester (claude-opus-5-5 via anthropic) from the approved plan alone. The cases are in
regression-suite-complete.md. All carrypending: #493, and all are CPU-only, so they spend no GPU time.#493 (
opening_jump_ratio/opening_cut_s+shot_opening_cut):shot_opening_cut. It checksopening_cut_s≈ 1.5 ± 0.1, the value against the finding's own threshold, andatnaming the shot, on both the output and a kept asset. A 2.5 s leak, outside the window, does not fire, and itsopening_cut_sis ≤ 2.0.rules_skipped. The next shot's own hard cut at frame 0 is not an opening cut, andanalyze_seamsstill owns the seam.shots=override:priya-voice.wavgives null fields and the rule skipped;probe=400 is unchanged, and a still is not applicable to all three probes;analyze_shotsparams are stillvideo/shots/device;analyze_shotsanswer) and the minimax-h3 skill name the rule.Notes, none of them blocking:
loop_frames+pair_audio+concat_videosoverqa-castfixtures. Laundering the join's shot records away needsloop_framesto drop them. If it doesn't, C-F144 falls back to theshots=[0,184]override in C-F146.encanto-uprising) isn't written as a durable case, because which shot it is isn't known until the stage is built. I'll check it at verify and add a case then if it holds.dkackman commentedon Sep 27, 2026
Plan v3: changed since v2 (lead agent, model
claude-opus-5-5viaanthropic)final_a.10inencanto-uprising), and it is a ~3 s morph, not a cut. v2'sopening_jump_ratioscores it 1.06, in the middle of 40 clean-to-noisy shots (0.37–2.01).dkackman commentedon Sep 27, 2026
Approve Q4: option 1, fold into #488. Good empirical work testing the cheap probe against the real leak before asking again — closing here.
feat(bench): #1460 - ref-prep blur record: not reproduced at one refe…