Reverse-engineer any video, shot by shot: filmed, AI-generated or coded, and how to remake it. Breakdowns in the open VIDEO.md format. 逆向一切视频,逐个镜头看是拍的、AI 生成的还是代码做的,再告诉你怎么复刻;拆解结果按 VIDEO.md 格式输出。
Python agent-skillsai-videoaigc-detectionclaude-codecodexffmpegprompt-engineeringremotionreverse-engineeringshort-videoshot-detectionsubtitlesvideo-analysisvideo-breakdownvideo-editingvideo-generationvideomdvlm
finalize: mark agent-review disputes on the AI/live axis
Jayden0e4bd33c73d5
diff --git a/rea_video/pipeline.py b/rea_video/pipeline.pyindex 3dee7b0..f063808 100644--- a/rea_video/pipeline.py+++ b/rea_video/pipeline.py@@ -331,6 +331,19 @@ def _top_group(probs: dict[str, float]) -> str:return max(g, key=g.get)+def _agent_review_dispute(dt: str, vt: dict | None, rv: dict | None, reviewed: bool, decided: str) -> str | None:+ """An agent-only review (no VLM) disagreeing with the tools on the AI/live axis cannot flip+ the label — the fusion deliberately follows the tools there (eval-calibrated, see _vlm_gate)+ — but the disagreement must stay visible instead of hiding inside a confident-looking label.+ Mirrors the VLM disputed flag above."""+ if decided == "user" or vt or not rv or sum(rv.values()) == 0 or reviewed:+ return None+ if (group_of(_top_group_label(rv)) == "live_action") != (group_of(dt) == "live_action"):+ return (f"工具判{LABEL_ZH[dt]}、看图复核判{LABEL_ZH[_top_group_label(rv)]},融合规则在 AI/实拍轴上"+ "跟了工具(评测校准):请对照截图核实复核证据是否真的看得见")+ return None++def finalize(breakdown: dict, out: Path, engine: str = "seedance2.0") -> dict:"""(Re)classify every shot from stored features + VLM answers, plan replication,summarise and write breakdown.json / reports. Safe to call again after the@@ -394,6 +407,9 @@ def finalize(breakdown: dict, out: Path, engine: str = "seedance2.0") -> dict:follow = "VLM" if group_of(label) == group_of(_top_group_label(vt)) else "工具"rec["base"]["disputed"] = (f"工具判{LABEL_ZH[dt]}、VLM 判{LABEL_ZH[_top_group_label(vt)]},结论跟了{follow}:""请对照截图核实 VLM 的证据是否真的看得见")+ agent_dispute = _agent_review_dispute(dt, vt, rv, reviewed, decided)+ if agent_dispute:+ rec["base"]["disputed"] = agent_disputeseen_live = (seen.get("label_probs") or {}).get("live_action", 0.0) / (sum((seen.get("label_probs") or {}).values()) or 1.0)doubt = None if decided == "user" else _ai_or_live_doubt(label, rec["deterministic"]["facts"], prov, vctx, seen_live,seen=bool(seen.get("label_probs")))diff --git a/tests/test_fusion_groups.py b/tests/test_fusion_groups.pyindex 9497f27..9d77e65 100644--- a/tests/test_fusion_groups.py+++ b/tests/test_fusion_groups.py@@ -70,3 +70,17 @@ def test_reader_backing_tools_runner_up_wins_three_way_split():assert _majority(rec) == "ai_video"seen = {"live_action": 0.5, "ai_video": 0.37, "cg_3d": 0.08}assert decide(fuse(det, seen, "dynamic", majority=_majority(rec)))[0] == "ai_video"+++def test_agent_review_dispute_flags_ai_live_disagreement():+ # keaton shot_001: tools say ai_video (dark static talking head), the agent review says+ # live action; the fusion follows the tools by design (eval-calibrated), but the+ # disagreement must surface as a dispute flag instead of hiding behind the label+ from rea_video.pipeline import _agent_review_dispute++ note = _agent_review_dispute("ai_video", None, {"live_action": 0.9, "ai_video": 0.05}, False, "fused_agent")+ assert note and "看图复核" in note+ # agreement: no flag+ assert _agent_review_dispute("ai_video", None, {"ai_video": 0.9}, True, "fused_agent") is None+ # an existing VLM answer means the VLM disputed flag owns this case: stay out of it+ assert _agent_review_dispute("ai_video", {"live_action": 0.9}, {"live_action": 0.9}, False, "fused_agent") is None