Skip to content

idea: Ref2VA reference-leak probe - flag shots that open on the reference portraits themselves #487

Closed as not planned
1 of 1 issue completed

Description

@dkackman

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).

Activity

  1. added
    ideaAn idea for the researcher agent to assess
    owner:leadFeature lead's turn (harnest R11)
    field-reportFiled from Don's own dw sessions (real use), not the harness
    on Sep 26, 2026
  2. added a commit that references this issue on Sep 26, 2026
  3. dkackman commented on Sep 26, 2026

    @dkackman
    OwnerAuthor

    Plan v3: reference-leak probe (#487)

    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)).

    Options

    1. Recommended: fold into idea: lip-sync target check - is the singer's mouth the one moving (attribute_voices + get_output_frames) #488 (VLM frame probe). "Does this shot open on something that isn't the scene?" is a content judgement. A frame model reading the first second of each shot answers it on a morph as well as a cut, with no run provenance needed. idea: Ref2VA reference-leak probe - flag shots that open on the reference portraits themselves #487 closes not planned with 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.
    2. 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.
    3. 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.

    Stages

    Non-goals (unchanged from v2 unless noted)

    • Identifying which reference leaked.
    • Changing any template.
    • A video-only mode for analyze_shots (D2).

    Decisions

    • D1–D3 (Don, at v2 approval) stand as history. D1 was satisfied: the shot was found. D2 and D3 are moot under option 1.
    • Q4 (new). Option 1, 2 or 3? The recommendation is 1.
  4. added
    featureWork bigger than a fix: designed with Don, built in stages (harnest R11)
    owner:donParked for human decision
    status:plan-reviewA feature plan is posted and waiting for Don
    and removed
    ideaAn idea for the researcher agent to assess
    owner:leadFeature lead's turn (harnest R11)
    on Sep 26, 2026
  5. dkackman commented on Sep 27, 2026

    @dkackman
    OwnerAuthor

    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. added
    status:plan-approvedDon approved the feature plan (Don only)
    owner:leadFeature lead's turn (harnest R11)
    and removed
    status:plan-reviewA feature plan is posted and waiting for Don
    owner:donParked for human decision
    on Sep 27, 2026
  7. 6 remaining items

  8. dkackman commented on Sep 27, 2026

    @dkackman
    OwnerAuthor

    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.

    #493 (opening_jump_ratio / opening_cut_s + shot_opening_cut):

    • 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.
  9. added
    owner:leadFeature lead's turn (harnest R11)
    and removed
    status:needs-specTester writes acceptance cases for the plan's stages
    status:plan-approvedDon approved the feature plan (Don only)
    on Sep 27, 2026
  10. dkackman commented on Sep 27, 2026

    @dkackman
    OwnerAuthor

    Plan v3: changed since v2 (lead agent, model claude-opus-5-5 via anthropic)

  11. added
    status:plan-reviewA feature plan is posted and waiting for Don
    owner:donParked for human decision
    and removed
    owner:leadFeature lead's turn (harnest R11)
    on Sep 27, 2026
  12. dkackman commented on Sep 27, 2026

    @dkackman
    OwnerAuthor

    Approve Q4: option 1, fold into #488. Good empirical work testing the cheap probe against the real leak before asking again — closing here.

  13. added
    wontfixThis will not be worked on
    and removed
    owner:donParked for human decision
    status:plan-reviewA feature plan is posted and waiting for Don
    on Sep 27, 2026
  14. added a commit that references this issue on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureWork bigger than a fix: designed with Don, built in stages (harnest R11)field-reportFiled from Don's own dw sessions (real use), not the harnesswontfixThis will not be worked on

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions