"""Run V3.6 PIG-3 Reference Image + Audio with Masked AV continuation.""" from __future__ import annotations import argparse import copy import json from pathlib import Path import sys import time import uuid TOOLS_ROOT = Path(__file__).resolve().parent if str(TOOLS_ROOT) not in sys.path: sys.path.insert(0, str(TOOLS_ROOT)) from p32_api_runner import submit_and_wait from v36_r1_stress_gate_runner import _extract_evidence DEFAULT_SOURCE = Path( r"D:\Codex\_test_results\ComfyUI-H3-Continuum\v36-fl2va-combined-20260826" r"\gate-a\04_seed238985343135606_b2_masked_av\prompt.json" ) DEFAULT_OUTPUT = Path( r"D:\Codex\_test_results\ComfyUI-H3-Continuum\v36-production-integration" r"\pig3-reference-masked" ) PROMPT = ( "A continuous cinematic shot of walking forward with clear body " "motion while the camera tracks smoothly. Preserve the person's identity, " "clothing, colors, and environment. Use