# TraceRepair-Agent Roadmap ## M0 — Offline Scaffold (complete, static) - [x] Select and pin the upstream video-agent framework. - [x] Define public/private data boundaries and immutable domain contracts. - [x] Scaffold injection, inspection, narrative diagnosis, memory, policy, repair, verification, and evaluation. - [x] Provide fake adapters, example manifests, trace examples, and static tests. - [x] Commit a deterministic fake E2E path without running/building the environment. ## M1 — H3 Injection Pilot - Implement the real H3 Ref2VA provider adapter. - Author ten injection specifications across the surviving V1 error families. - Generate bounded candidate sets and run target/isolation/naturalness/uniqueness gates. - Freeze human review protocol before inspecting candidates. - Decide which error families survive based on accepted yield. ## M2 — Blind Repair MVP - Run the perception/memory adapter bake-off on 10--30 annotated multi-shot videos: WorldMM, memory-augmented VideoAgent, LangRepo, WorldMM plus an entity tracker, and a targeted-VLM baseline. - Select the smallest backend stack that meets repair-oriented boundary-state, evidence-grounding, and revision-invalidation gates. - Implement public-only video inspection and estimated ledger construction. - Compile a public Narrative Contract from script, brief, and shot plan. - Locate first narrative divergence with evidence timestamps. - Run `KEEP`, `H3_EDIT`, and `SHOT_REGENERATE` with a three-call budget. - Generate immutable candidate branches and implement critique-conditioned retry/escalation under the three-call budget. - Select only candidates that pass every critical verifier gate; if none pass, roll back to the original accepted revision. - Report Pass@1, private Oracle Pass@3, blind-verifier Select@3, and verifier false-accept/false-reject rates. ## M3 — Benchmark V1 - Build 300 validated cases with project-disjoint splits. - Add at least 20% alternative-injector or natural-failure test cases. - Complete private JRS/PFPR/coherence/cost evaluation. - Add artifact-only probes and prompt/template/seed leakage checks. ## M4 — Main Experiments - Run fixed-edit, one-shot planner, oracle-localization, and full-regeneration baselines. - Run state-ledger, verifier, rollback, escalation, context, and budget ablations. - Scale from approximately 30 seconds to approximately two minutes. - Produce trace-grounded qualitative and failure analyses. ## Explicitly Deferred - RL policy training. - Distributed task queues and multi-tenant service infrastructure. - Pixel-perfect editing guarantees. - MAGI-2 as a direct editor. - Unbounded feature-length generation.