Download videoagent/docs/v1_execution_plan.md from ppppppz/video_agent_trace: direct link, hf CLI and curl.
- Browser
- Download file 35.2 kB
-
https://huggingface.co/datasets/ppppppz/video_agent_trace/resolve/main/videoagent/docs/v1_execution_plan.md
- Command line
-
hf download hf://datasets/ppppppz/video_agent_trace/videoagent/docs/v1_execution_plan.md
-
curl -L -o v1_execution_plan.md https://huggingface.co/datasets/ppppppz/video_agent_trace/resolve/main/videoagent/docs/v1_execution_plan.md
TraceRepair-Agent V1: Executable Research Plan
Working title: Scaling Long-Form Video Generation through Agentic Diagnosis and Minimal Trajectory Repair
Version: V1.0
Date: 2026-08-10
Status: Implementation-ready research specification
Compact Outline
- Build 30–90 second, multi-shot video projects from 4–15 second shots.
- Use MiniMax H3 to inject one controlled trajectory error into one shot while protecting all unrelated content.
- Give the repair agent only the corrupted project and its production context; hide the clean source and injection instruction.
- Let the agent choose among
KEEP,H3_EDIT, andSHOT_REGENERATE, then verify, retry, or roll back. - Evaluate joint repair correctness, protected-content preservation, long-range coherence, cost, and repair span.
- Explicitly test and control generator-specific leakage caused by using H3 for both injection and repair.
1. Executive Decision
V1 will study sparse trajectory-error repair in long-form, multi-shot video projects. A trajectory error is a wrong motion or state transition whose incorrectness becomes clear only when the target shot is interpreted together with its local or cross-shot context. Examples include a character entering from the wrong side, reaching the wrong destination, reversing direction across a cut, or violating an object handoff.
MiniMax H3 Ref2VA will be used as a candidate error injector and a candidate repair tool. Its output is never trusted automatically: every injected sample must pass target-error, preservation, naturalness, and solvability gates. MAGI-2 Preview is not a direct video editor and is therefore optional in V1; it can only serve as an expensive full-shot regeneration backend from a still-image anchor.
The central research question is:
Can an agent scale short-video generators into a reliable long-form production system by diagnosing sparse trajectory failures, choosing the smallest viable repair action, and verifying the result without access to the original correct shot?
V1 paper hypothesis
An agent that maintains an explicit cross-shot state ledger and uses verification-guided, adaptive repair will achieve a better correctness–preservation–cost trade-off than fixed editing, one-shot planning, or full-project regeneration.
This is a hypothesis to test, not a result to claim in advance.
Non-goals for V1
- End-to-end generation of a feature-length film.
- Pixel-perfect local editing guarantees from H3.
- Arbitrary dialogue, identity, lighting, and physics repair in one benchmark.
- Training a new foundation video model.
- Claiming novelty until the final related-work and concurrent-work audit is complete.
2. Task Definition
2.1 Input project
A clean project is
[ P^* = (B, R, S^*, L^*) ]
where:
- (B) is a short story or production brief;
- (R) is a reference pack containing character, object, location, and style anchors;
- (S^*={s_1,\ldots,s_n}) is an ordered sequence of clean shots;
- (L^*) is a canonical state ledger describing relevant entities at shot boundaries.
V1 projects contain 4–10 shots and last 30–90 seconds. Each shot lasts 4–15 seconds, matching the operating range of H3.
2.2 Controlled corruption
The injector selects one target shot (s_k) and one error specification (e), then uses H3 to produce a corrupted shot (\tilde{s}_k). The resulting project is
[ \tilde{P} = (B, R, {s_1,\ldots,\tilde{s}_k,\ldots,s_n}, \tilde{L}). ]
Each error specification contains:
- Target error: the single fact that must become wrong.
- Protected facts: facts that must remain unchanged.
- Evidence window: shots needed to prove that the error exists.
- Repairability constraints: allowed actions and acceptable outputs.
2.3 Blind repair setting
The repair agent receives:
- the corrupted project (\tilde{P});
- the brief (B);
- the reference pack (R);
- shot boundaries and ordinary production metadata.
The agent does not receive:
- the original clean target shot (s_k);
- the injected-error description;
- the H3 injection prompt;
- the clean ledger entries that directly reveal the answer.
The agent returns a repaired project (\hat{P}) and an auditable repair trace containing diagnosis, evidence, chosen action, tool parameters, verification results, retries, and final acceptance decision.
2.4 Optimization target
V1 will report a metric vector rather than hide trade-offs in one arbitrary scalar:
[ (\text{Repair Success},\ \text{Protected-Fact Preservation},\ \text{Coherence},\ \text{Cost},\ \text{Latency},\ \text{Repair Span}). ]
The primary success event is strict:
The target error is repaired and all critical protected facts pass.
3. V1 Error Ontology
V1 starts with five trajectory-error families that are visually testable and plausible for H3 editing.
| ID | Error family | Example | Required context | Preferred injection |
|---|---|---|---|---|
| T1 | Direction reversal | A runner moves left although the plan requires right | One shot or adjacent shot | H3 edit |
| T2 | Entry/exit mismatch | A character exits frame-right and re-enters from frame-right after a cut | Two adjacent shots | Edit one boundary shot |
| T3 | Wrong endpoint | A character walks to the wrong door or object | One shot plus brief/reference | H3 edit or shot regenerate |
| T4 | Route/waypoint violation | A vehicle passes on the wrong side of a landmark | One shot plus scene layout | H3 edit; retain only if controllable |
| T5 | Handoff/state-transition violation | An object moves to the wrong person or location | Two to three shots | Edit one shot or regenerate |
Scope rule
Each V1 example contains exactly one primary trajectory error. Samples with additional identity, count, camera, scene, or causal errors are rejected rather than assigned multiple labels.
Pilot calibration rule
An error family remains in V1 only if the pilot shows that:
- the target error can be injected reliably;
- unrelated content can be preserved at an acceptable rate;
- independent raters can identify the error and its evidence window;
- the error cannot be solved from a generator watermark or low-level artifact alone.
T4 is expected to be the hardest family and may be deferred if H3 cannot follow route constraints reliably.
4. H3-Based Error Injection Pipeline
flowchart LR
A[Clean multi-shot project] --> B[Build canonical state ledger]
B --> C[Sample one target error]
C --> D[Write target + protected facts]
D --> E[Generate N H3 edit candidates]
E --> F{Target error present?}
F -- No --> E
F -- Yes --> G{Protected facts retained?}
G -- No --> E
G -- Yes --> H{Natural and uniquely labeled?}
H -- No --> E
H -- Yes --> I[Human audit and accept]
I --> J[Freeze benchmark record]
4.1 Step A — Select a clean project
The clean sequence must already satisfy the brief and contain no target-family trajectory failure. Two annotators inspect the sequence before it becomes an injection source. The project is segmented at shot boundaries, and all entities relevant to the planned corruption are entered in the state ledger.
4.2 Step B — Build the canonical state ledger
For each relevant entity and shot boundary, store only observable or brief-grounded facts:
- screen position and movement direction;
- world-relative origin, destination, and optional waypoint;
- object ownership and contact state;
- entry and exit side;
- action phase and completion state;
- confidence and visual evidence timestamp.
The ledger is privileged evaluator data. A separately reconstructed ledger is available to the agent, but the clean ledger is not.
4.3 Step C — Compile the injection specification
The injection compiler produces a structured record:
{
"error_id": "T2_ENTRY_EXIT_MISMATCH",
"target_shot": "shot_05",
"evidence_shots": ["shot_04", "shot_05"],
"target_error": "The woman enters shot_05 from frame-right instead of frame-left.",
"protected_facts": [
"The woman's identity and clothing remain unchanged.",
"The station platform, lighting, and camera remain unchanged.",
"The man in the background keeps the same action.",
"Shot duration and dialogue remain unchanged."
],
"forbidden_changes": [
"No new people or objects.",
"No camera cut or camera-motion change."
]
}
4.4 Step D — Generate H3 candidates
Use H3 Ref2VA with the clean target shot as the source video. Generate multiple candidates with different seeds and, when necessary, small prompt variants. A canonical prompt template is:
Use <Video 1> as the source shot. Change only the specified motion trajectory:
[TARGET ERROR].
Preserve all other visible and audible content: [PROTECTED FACTS].
Keep the same character identity, clothing, scene geometry, lighting, camera,
shot duration, background actions, and audio unless explicitly changed above.
Do not add any new event, person, object, cut, or camera movement.
Prompts, model version, seed, sampling settings, source hash, and candidate lineage must be stored for reproducibility. Prompt wording is metadata for the injector and is never exposed to the repair agent.
4.5 Step E — Automatic acceptance gates
Each candidate passes through four gates:
- Target gate: a video-language judge and trajectory-specific measurements agree that the intended error is present.
- Isolation gate: critical protected facts pass entity identity, scene, camera, audio, and non-target-action checks.
- Naturalness gate: the candidate contains no obvious generation failure that reveals the injection mechanism.
- Uniqueness gate: the sample has one primary error with an unambiguous evidence window.
Automatic gates may reject samples but cannot provide final benchmark acceptance during the pilot.
4.6 Step F — Human acceptance
Two raters independently answer:
- Is the target trajectory error present?
- Which shot and timestamps prove it?
- Did any critical protected fact change?
- Is there another equally severe error?
- Does the corrupted shot look plausible enough to occur in ordinary generation?
Disagreement is adjudicated by a third rater. Store the reasons for rejection; they are valuable evidence about H3's controllability limits.
5. Benchmark Record and Leakage Controls
5.1 Record schema
{
"project_id": "project_000123",
"case_id": "project_000123_T2_01",
"brief": "...",
"references": ["character_A.png", "station.png"],
"corrupted_shots": ["shot_01.mp4", "...", "shot_08_bad.mp4"],
"shot_metadata": [{"shot_id": "shot_01", "start": 0.0, "end": 8.0}],
"private_evaluation": {
"clean_target_shot": "shot_08_clean.mp4",
"error_spec": {},
"clean_state_ledger": {},
"protected_fact_tests": []
},
"injection_provenance": {
"backend": "MiniMax-H3-Ref2VA",
"model_version": "pinned-version",
"seed": 0,
"prompt_template_id": "inj_t2_v3"
}
}
Public agent inputs and private evaluation assets must be stored in separate manifests to prevent accidental answer leakage.
5.2 Mandatory anti-circularity controls
Using H3 for both corruption and repair creates a serious shortcut risk. V1 therefore requires:
- Blind repair: the clean shot and injection prompt are private.
- Project-disjoint splits: no story, source shot, or reference pack crosses train/dev/test.
- Template-disjoint test: injection prompt templates used in test are not used for agent development.
- Seed and generation disjointness: repair never reuses injection seeds or hidden sampling metadata.
- Alternative-injector subset: at least 20% of the final test set uses a different corruption route, such as independently prompted shot regeneration, controlled compositing where appropriate, or expert-curated natural failures.
- Artifact-only probe: a classifier sees only isolated frames or codec statistics. If it can identify error labels above chance, rebuild the split or remove the artifact.
- Cross-backend repair test: when infrastructure permits, evaluate a non-H3 regeneration backend on H3-injected cases and H3 on non-H3 cases.
If the alternative-injector subset cannot be built, the paper must narrow its claim to repairing H3-style synthetic trajectory corruptions.
6. Repair Agent
flowchart TB
A[Corrupted project + brief + references] --> B[Perception and shot summaries]
B --> C[Cross-shot state ledger]
C --> D[Fault hypotheses and evidence windows]
D --> E[Repair policy]
E --> F1[KEEP]
E --> F2[H3_EDIT]
E --> F3[SHOT_REGENERATE]
F1 --> G[Project-level verifier]
F2 --> G
F3 --> G
G -->|accept| H[Final repaired project]
G -->|reject with critique| D
G -->|budget exhausted| I[Rollback best candidate]
6.1 Perception and state reconstruction
The agent first builds a compact evidence index rather than repeatedly watching the full project. It extracts shot summaries, entity tracks, entry/exit events, motion direction, object contacts, dialogue, and boundary keyframes. These observations form an estimated state ledger with confidence and timestamps.
Why needed: the error may only be visible across a cut, while H3 can edit only short shots.
Technical advantage: explicit boundary states make long-range evidence inspectable and reduce repeated full-video processing.
6.1.1 Perception/memory backend bake-off
Do not build a complete long-video understanding agent before testing reusable
open backends behind InspectionPort and LedgerPort. The leading hypothesis
is WorldMM for multimodal, multi-scale retrieval plus a lightweight
entity/object tracker for stable cross-shot identities, with the local
EstimatedLedger retaining only repair-specific boundary state. This is a
hypothesis rather than an accepted dependency decision; the tracker may reuse
only an object-centric component from the memory-augmented VideoAgent rather
than running a second full agent loop.
Compare WorldMM, memory-augmented VideoAgent, LangRepo, WorldMM plus tracking,
and a targeted-VLM/local-ledger baseline on the same 10--30 annotated
multi-shot videos. Every adapter must emit the same atomic, timestamp-grounded
Observation format. Measure cross-shot entity association; boundary-state
precision/recall; temporal grounding; sparse-anomaly retention; raw-evidence
recoverability; INCONCLUSIVE calibration; local invalidation after one shot
replacement; and latency, compute/API cost, dependency burden, and adapter
complexity.
Format conversion alone is acceptable only when the upstream output preserves stable identities, atomic evidence, confidence, raw evidence references, and asset-hash-based incremental invalidation. QA accuracy alone is not a backend selection criterion. See ADR-0002 and the framework-selection audit.
6.2 Fault localization
The diagnostic module proposes ranked hypotheses of the form:
(error family, target shot, evidence shots, violated constraint, confidence)
It must cite visual timestamps or brief constraints for every hypothesis. The module can request targeted re-inspection of uncertain windows before editing.
Why needed: editing the wrong shot can create more errors even if the backend is strong.
Technical advantage: separating diagnosis from execution allows localization accuracy to be measured independently.
6.3 Adaptive repair policy
V1 exposes three actions:
| Action | Use when | Main risk |
|---|---|---|
KEEP |
Evidence is insufficient or the project is already correct | Missed repair |
H3_EDIT |
One visible motion fact should change while most of the shot is protected | Collateral drift |
SHOT_REGENERATE |
The event structure must change substantially or direct editing repeatedly fails | Loss of visual continuity |
The policy predicts expected repair success, preservation risk, and cost. It should choose the smallest action with sufficient expected success, not always the cheapest action.
The SHOT_REGENERATE action can use H3 FL2VA/Ref2VA with boundary anchors. MAGI-2 I2V is an optional backend for ablation or fallback, not a required V1 dependency.
6.4 Verification, retry, and rollback
After every action, the verifier compares the candidate with:
- the brief and reference pack;
- neighboring shots and reconstructed boundary states;
- the pre-edit corrupted shot for protected content;
- the agent's explicit repair hypothesis.
The verifier returns separate verdicts for target correction, protected facts, project coherence, and visual quality. A failed candidate produces a structured critique that can trigger:
- prompt revision;
- another H3 seed;
- expansion from direct edit to full-shot regeneration;
- rollback to the original accepted revision when no candidate passes;
- abstention when the budget is exhausted.
V1 caps each case at three generation calls by default so that success cannot be purchased through unlimited sampling. The default schedule is one standard candidate, one seed/prompt-diverse or critique-revised candidate, and one final critique-conditioned attempt or escalation. Each candidate is an immutable branch from the accepted parent unless candidate-on-candidate editing is explicitly planned.
Target correction, protected facts, cross-shot coherence, visual quality, and naturalness are hard gates. Scores rank only candidates that pass all critical gates; a high average score cannot compensate for a failed target correction or protected fact. Candidate-specific observations and ledger deltas remain isolated until selection. If all candidates fail, the system keeps the original accepted revision rather than committing the least-bad rejected candidate.
The operational runtime performs blind verified selection. Private truth is used offline to report Pass@1, Oracle Pass@3, and Verifier Select@3 separately. This distinguishes generator candidate coverage from the verifier's ability to select a correct candidate. See ADR-0003.
6.5 Auditable repair trace
Every run stores:
{
"observations": [],
"hypotheses": [],
"selected_action": "H3_EDIT",
"edit_instruction": "...",
"protected_facts": [],
"tool_calls": [],
"verifier_results": [],
"retry_reason": null,
"final_decision": "accept"
}
The trace is both an analysis artifact and potential supervision for later policy learning. V1 evaluates the agent without requiring reinforcement learning.
7. Data Plan
7.1 Stage A — Injection feasibility pilot
- 20 clean projects, each 30–60 seconds and 4–8 shots.
- Cover all five candidate error families.
- Generate approximately 200 H3 corruption candidates.
- Target at least 60 accepted cases after automatic and human filtering.
- Record rejection reasons by error family and protected-fact category.
The pilot decides which error families survive and estimates real generation cost per accepted case.
7.2 Stage B — V1 benchmark
- 150 clean projects.
- 300 validated corrupted cases as the minimum complete V1.
- Project-disjoint split: 180 development / 60 validation / 60 test cases, adjusted only to preserve family balance.
- Final test contains at least 20% alternative-injector or natural-failure cases.
- Balance single-shot and cross-shot evidence windows.
- Preserve all rejected candidates in a research-only failure archive.
The benchmark should initially use generated or redistribution-safe source footage. Licensing and consent metadata are mandatory for any human-containing external video.
7.3 Stage C — Scale stress test
Without changing individual shot duration, concatenate or author projects with increasing context:
- 4 shots / approximately 30 seconds;
- 8 shots / approximately 60 seconds;
- 12–16 shots / approximately 2 minutes.
The same sparse error rate is maintained. This isolates whether explicit memory and targeted re-inspection scale better than repeatedly processing the entire video.
8. Evaluation Protocol
8.1 Injection quality metrics
| Metric | Meaning |
|---|---|
| Target Injection Success (TIS) | Intended trajectory error is present |
| Protected-Fact Pass Rate (PFPR) | Critical unrelated facts remain valid |
| Single-Fault Purity (SFP) | No second error of comparable severity |
| Naturalness Pass Rate (NPR) | No obvious injection artifact |
| Accepted Yield (AY) | Fully accepted cases per generated candidate |
| Human Agreement | Reliability of target and protection labels |
8.2 Repair metrics
| Metric | Direction | Definition |
|---|---|---|
| Fault Localization Accuracy | ↑ | Correct error family and target shot |
| Repair Success Rate (RSR) | ↑ | Target error is no longer present |
| Protected-Fact Pass Rate (PFPR) | ↑ | Critical unrelated facts remain correct after repair |
| Joint Repair Success (JRS) | ↑ | RSR and all critical protected facts pass |
| Cross-Shot Coherence | ↑ | Boundary states agree with neighboring shots and brief |
| Unintended Edit Rate | ↓ | New non-target failures per repaired case |
| Repair Span | ↓ | Seconds or shots regenerated per successful repair |
| Generation Calls | ↓ | Video-model calls per case and per success |
| Pass@1 | ↑ | Private JRS success of the first repair candidate |
| Oracle Pass@3 | ↑ | At least one privately successful candidate within the fixed three-call set |
| Verifier Select@3 | ↑ | Private success of the candidate selected by the blind operational verifier |
| Verifier False Accept / Reject | ↓ | Incorrect candidates accepted / correct candidates rejected by the blind verifier |
| GPU Cost / Latency | ↓ | Resource cost under a fixed hardware protocol |
| Abstention Quality | ↑ | Unsafe cases are rejected rather than incorrectly accepted |
8.3 Evaluators
Use three complementary evaluator classes:
- Trajectory measurements: tracking, screen-coordinate trends, entry/exit side, endpoint and contact detectors.
- Semantic judges: independent video-language models answer structured target and protected-fact questions with evidence timestamps.
- Human evaluation: blinded pairwise and checklist evaluation on the complete test set or a statistically justified subset.
The final JRS is not determined by the same model that planned the repair. Human results and evaluator agreement must be reported separately.
9. Baselines and Experiments
9.1 Baselines
- No repair: measures benchmark difficulty and false positives.
- Full-project regeneration: regenerate all shots from the brief; expensive upper-context baseline.
- Fixed H3 edit: always edit the most suspicious shot once.
- One-shot LLM planner + H3: diagnose and edit once without verifier feedback.
- Verifier-only retry: repeat the same edit action with new seeds.
- Oracle localization + H3: receives the correct target shot but not the clean video; isolates editor limitations.
- Oracle error description + H3: receives the hidden error description; approximate repair-backend ceiling.
- TraceRepair-Agent: full state ledger, adaptive action choice, verification, retry, and rollback.
9.2 Core experiments
E1 — Can H3 inject isolated trajectory errors?
Report TIS, PFPR, SFP, NPR, accepted yield, cost, and rejection reasons for every error family.
E2 — Does agentic repair improve the joint outcome?
Compare all baselines on JRS, localization, preservation, calls, latency, and repair span.
E3 — Does explicit cross-shot memory scale with project length?
Evaluate 30-second, 60-second, and approximately 2-minute contexts under the same sparse error setting.
E4 — Does adaptive action selection beat a fixed editing strategy?
Compare always-edit, always-regenerate, and policy-selected actions, including success by error family.
E5 — Does the method generalize beyond H3 injection artifacts?
Evaluate on the alternative-injector/natural-failure subset and report the domain gap.
9.3 Required ablations
- Remove the explicit state ledger.
- Remove evidence-grounded fault localization.
- Remove protected facts from tool prompts.
- Remove the verifier.
- Remove rollback and keep the final sampled candidate.
- Disable action escalation from edit to regenerate.
- Change generation-call budget: 1 vs. 2 vs. 3.
- Use local-shot context only vs. complete project context.
- Use a single semantic judge vs. measurement + semantic + human protocol.
9.4 Qualitative analysis
For each error family, show:
- the clean hidden reference for paper analysis only;
- the H3-injected corrupted shot and cross-shot evidence;
- the agent's diagnosis and chosen action;
- failed repair candidates with verifier critiques;
- the final accepted or abstained result;
- protected facts that passed or failed.
10. Implementation Architecture
10.1 Suggested repository layout
videoagent/
├── configs/
│ ├── injection/
│ ├── repair/
│ └── evaluation/
├── data/
│ ├── public/
│ │ └── manifests/
│ └── private_eval/
│ └── manifests/
├── src/
│ ├── ledger/
│ ├── injection/
│ ├── perception/
│ ├── diagnosis/
│ ├── policy/
│ ├── tools/
│ ├── verification/
│ └── evaluation/
├── prompts/
│ ├── injection/
│ ├── diagnosis/
│ ├── repair/
│ └── verification/
├── runs/
├── reports/
└── docs/
10.2 Minimum tool contracts
inspect_video(project_id, shot_ids, questions) -> observations + evidence
build_ledger(project_id) -> estimated boundary states
edit_shot(shot_id, instruction, protected_facts, seed) -> candidate_shot
regenerate_shot(shot_id, anchors, instruction, seed) -> candidate_shot
verify_candidate(project_id, candidate_shot, hypothesis) -> structured verdict
commit_candidate(project_id, candidate_id) -> repaired_project
rollback(project_id, candidate_id) -> project state
All tool calls must be idempotent or versioned. A candidate never overwrites its parent asset.
10.3 Reproducibility requirements
- Pin model checkpoints, API versions, and prompts.
- Hash all video, audio, reference, and manifest assets.
- Record seed, sampling configuration, hardware, runtime, and failure status.
- Separate development judge prompts from final test judge prompts.
- Store raw evaluator outputs and human annotation decisions.
- Version every accepted-case manifest; never silently replace a benchmark video.
11. Six-Week Execution Schedule
| Week | Objective | Concrete output | Exit criterion |
|---|---|---|---|
| 0 | Infrastructure smoke test | H3 edit wrapper, immutable asset store, one end-to-end case | A source shot can be edited, evaluated, and replayed |
| 1 | Injection calibration | 200 candidates, rejection taxonomy, retained error families | At least 60 cleanly labeled accepted cases or a documented pivot |
| 2 | Dataset and ledger | 150 project plans, schemas, private/public manifests | No answer leakage; annotators can reproduce labels |
| 3 | Agent MVP | perception, ledger, diagnosis, three-action policy | End-to-end blind repair runs with complete traces |
| 4 | Verifier and baselines | automatic gates, human form, all required baselines | Fair fixed-budget comparison is runnable |
| 5 | Main evaluation | core table, scaling test, ablations, failure gallery | Every major hypothesis has direct evidence |
| 6 | Consolidation | 300-case V1, paper figures, audit report | Reproducible release candidate and honest claim boundary |
First 72 hours
- Implement an immutable H3 Ref2VA wrapper and log complete provenance.
- Select four clean projects and author ten injection specifications across T1–T5.
- Generate 3–4 candidates per specification.
- Build the human acceptance form before inspecting results.
- Measure the first accepted-yield and collateral-change distribution.
- Freeze the surviving error families before implementing the repair agent.
12. Go/No-Go Gates
Gate A — Injection viability
Proceed to the 300-case benchmark if the pilot achieves all of the following:
- target-error success of at least 60% for at least three error families;
- fully accepted yield of at least 30% after preservation and naturalness filtering;
- inter-rater agreement of Cohen's kappa ≥ 0.70 on target-error presence;
- no artifact-only probe materially above chance;
- median generation cost compatible with the planned benchmark budget.
If only one or two families survive, narrow the task instead of hiding the failure.
Gate B — Agent value
The full agent is promising if, under the same three-call budget:
- JRS improves by at least 10 absolute points over the one-shot planner;
- protected-fact preservation does not degrade relative to fixed H3 editing;
- median repair span is less than half of full-project regeneration;
- improvement remains positive on the alternative-injector subset.
These thresholds are internal decisions for V1, not universal scientific standards.
Gate C — Paper-strength evidence
Do not claim general long-form video self-correction unless performance remains stable as project length increases and the alternative-injector test rules out H3-specific shortcuts.
13. Main Risks and Mitigations
| Risk | Why it matters | Mitigation |
|---|---|---|
| H3 changes unrelated content | Corruption labels become invalid | Protected-fact gate, multi-sampling, reject aggressively |
| H3 cannot follow precise paths | Some ontology families are infeasible | Pilot each family; narrow to controllable errors |
| H3 is both injector and repairer | Agent may exploit generator artifacts | Blind repair, alternative injector, artifact probe, cross-backend test |
| Verifier shares the planner's bias | False success inflates results | Independent judges, measurements, blinded humans |
| Benchmark is too easy | Local artifacts reveal target shot | Naturalness filtering and artifact-only baselines |
| Benchmark is too synthetic | Claims do not transfer | Natural-failure subset and explicit claim boundary |
| Full regeneration wins on correctness | Minimal repair may look unnecessary | Report preservation, span, cost, and latency jointly |
| Unlimited retries hide weak policy | Compute replaces intelligence | Fixed three-call budget and calls-per-success metric |
| Long context is not actually needed | Scale-up claim is unsupported | Include local-context baseline and length stress test |
| H3 hosted modules are unavailable | Reproduction becomes incomplete | Implement our own prompt/context compiler around open H3 base; document API-only components |
14. Deliverables
Code
- Versioned H3 injection and repair wrappers.
- State-ledger builder and evidence index.
- Repair policy with
KEEP,H3_EDIT, andSHOT_REGENERATE. - Project-level verifier, retry controller, and rollback store.
- Reproducible evaluation and report generation.
Data
- 300-case validated V1 benchmark.
- Private clean references and evaluator ledgers.
- Public corrupted projects and non-leaking metadata.
- Injection rejection archive and alternative-injector test subset.
Research artifacts
- Injection feasibility report.
- Main benchmark and ablation tables.
- Cost/preservation Pareto analysis.
- Qualitative repair-trace gallery.
- Concurrent-work and novelty audit updated before submission.
15. Claim–Evidence Map
| Proposed claim | Required evidence | Current status |
|---|---|---|
| H3 can create controlled trajectory corruptions suitable for benchmarking | E1 injection metrics, rejection analysis, human agreement | Needs experiment |
| Explicit cross-shot state helps diagnose long-range errors | E3 plus state-ledger ablation | Needs experiment |
| Adaptive edit/regenerate selection improves joint repair success | E2, E4, policy ablations | Needs experiment |
| Verification-guided retries improve reliability under a fixed budget | E2 plus verifier/retry ablations | Needs experiment |
| Minimal repair preserves more content and costs less than broad regeneration | Preservation, repair span, calls, latency, cost | Needs experiment |
| The method is not merely exploiting H3 injection artifacts | E5, artifact probe, cross-backend results | Needs experiment |
No empirical claim above should appear as a fact in an abstract until its evidence is complete.
16. Adversarial Self-Review
Contribution
Question: Is this more than an LLM calling a video editor?
Current answer: Potentially. The defendable contribution must be the benchmarked decision problem of evidence-grounded diagnosis, minimal repair selection, and verification under long context and a fixed compute budget. The adaptive policy and benchmark protocol need strong ablations.Question: Is the injected-error benchmark itself meaningful?
Current answer: Only if errors are isolated, natural, cross-shot, and not recognizable from H3 artifacts. E1 and E5 are hard prerequisites.
Writing clarity
- Question: Are key terms stable?
Current answer: Yes for V1:trajectory error,protected fact,state ledger,repair action, andJoint Repair Successhave one definition each.
Experimental strength
- Question: Can oracle baselines reveal the real bottleneck?
Current answer: Yes. Oracle localization separates diagnosis failure from H3 editing failure; oracle error description estimates the backend ceiling.
Evaluation completeness
- Question: Can one biased video-language judge determine success?
Current answer: No. The protocol requires trajectory measurements, independent semantic judges, and blinded humans.
Method soundness
- Question: Does using H3 twice invalidate the benchmark?
Current answer: It is a major risk but not automatically fatal. The blind setting, artifact probe, alternative injector, and cross-backend tests are mandatory. Claims must be narrowed if these controls are unavailable.
17. Official Model Constraints Used in This Plan
- MiniMax H3 official repository: H3 supports 4–15 second generation; Ref2VA accepts reference video and is the direct editing path used in V1. The open H3 base is distinct from hosted Context-IR and 2K regeneration components.
- MiniMax H3 official introduction: H3 describes audio-video-to-audio-video reference/editing and multi-shot modeling.
- MAGI-2 Preview official repository: the current preview supports text-to-video and still-image-to-video for 10-second clips, not direct source-video editing.