You are already running inside the megaplan harness for this step. Do the requested planning/review/execution work directly. Do NOT invoke the megaplan CLI, do NOT read or activate the megaplan skill, do NOT start nested megaplan plans, and do NOT recurse into another planning harness. Treat mentions of megaplan in the repository or environment as implementation context only.
WRITE ACCESS CONTRACT: You are running with auto-approved writes inside a writable workspace. Treat the working directory as fully writable. Do NOT preemptively skip or block tasks on permission, sandbox, or read-only grounds. Attempt every required edit; only report failure AFTER a real OS-level rejection from a specific shell command. Do not infer 'read-only' from absence of activity; absence is not denial. If a single shell command unexpectedly fails, retry with a different invocation before concluding the environment is restricted.
You are preparing an execution-ready briefing document from the approved plan.
Phase 3: Collapse parallel pipelines + extract hype orchestration (do it RIGHT)
Goal
Eliminate the source-cut vs pure-generative pipeline split in ArtAgents and unlock mixed-mode timelines (a single brief that produces a timeline mixing source-extracted clips with generatively-created clips). Achieve this by:
Capability framing — mixed-mode is the deliverable, not just code cleanup. Ship a working test fixture that renders a timeline with both VIDEO (source-extracted) and GENERATIVE_IMAGE (prompt-generated) clips in one render.
Manifest-driven step capability discovery — each executor.yaml declares which clip kinds it produces for; the pipeline asks the registry instead of hardcoding STEP_ORDER.
Extract hype orchestration into artagents/orchestrators/hype/run.py properly — pipeline.py becomes a thin CLI router (~200 lines max). The orchestrator folder finally owns its own logic.
Repo
/Users/user_c042661f/Documents/reigh-workspace/ArtAgents — currently on main at commit 85da713. Push directly to main.
Working tree should be clean at start (the user's prior STAGE rename WIP was committed in 85da713). If anything unexpected appears in git status, stash it before working with a clearly-named entry, restore at end.
Prereq A (origin/main of banodoco-workspace): output.background and output.background_scale accept null in @banodoco/timeline-schema. Symlinked into ArtAgents via remotion/node_modules.
Prereq B (d58b4fa): round-trip fixture test as regression gate.
Phase 2 (d0563a1): Timeline domain class with passthrough preservation, transient .for_render(default_theme), runtime clip.classified_kind (VIDEO/IMAGE/AUDIO/TEXT/EFFECT/OPAQUE), 12 executor consumers migrated. Phase 3 builds directly on the classified_kind dispatch.
Reigh compatibility — clip.kind is NEVER persisted. Reigh's clip allowlist (reigh-app/src/tools/video-editor/lib/serialize.ts:8-42) is closed and throws on unknown clip keys. All kind-based dispatch is runtime-only on the ArtAgents side. The Phase 2 classified_kind is a TimelineClipView property, not a JSON field.
Backwards-compat user-facing CLI — python3 -m artagents --video X.mp4 --brief brief.txt, --audio X.wav --brief brief.txt, and --brief brief.txt --target-duration 28 (pure-generative) all keep working. They become hints that influence which clips get added to the timeline; behind the scenes they all converge on one path.
Step capability discovery is manifest-driven — each executor.yaml declares produces_for: [VIDEO, AUDIO, ...] (or equivalent shape — name is a design call). The pipeline computes the union of needed steps over all timeline clips, then runs only those. No hardcoded STEP_ORDER as the source of truth (it can remain as a topological-order hint).
Topological order preserved — current pipeline ordering (transcribe → scenes → quality_zones → shots → triage → scene_describe → quote_scout → pool_build → pool_merge → arrange → cut → refine → render → editor_review → validate) has real dependencies; manifest-driven discovery must produce the same order when the same step set is needed.
Schema package unchanged — clip kinds are runtime-derived. No @banodoco/timeline-schema changes.
What "do it RIGHT" means concretely
Part A: Manifest-driven step capability
Add produces_for (or clip_kinds_supported — design call) to the executor manifest schema. Update artagents/executors/schema.py and the JSON-Schema validator.
Update each pipeline-stage executor.yaml that declares it (15 hype-pipeline executors: transcribe, scenes, quality_zones, shots, triage, scene_describe, quote_scout, pool_build, pool_merge, arrange, cut, refine, render, editor_review, validate). Most produce for VIDEO only, some for AUDIO, arrange/cut/refine/render produce for ALL (they handle every clip kind).
Other executors (generate_image, sprite_sheet, audio_understand, etc.) can declare produces_for too where meaningful, but it's not required for the unified pipeline since they're not invoked by STEP_ORDER today.
Part B: Unified pipeline that dispatches on clip kinds
Today: pipeline.py has if args.video: / if not args.video: branches and is_all_generative_arrangement checks. Replace with: compute the set of classified_kind values across all timeline clips, ask the registry for the union of needed steps, run them in topological order.
Skip-step plumbing (--from, --skip) keeps working with dynamic step sets. --from <step> means "skip everything topologically before this step in the computed set."
--video / --audio / pure-generative invocations all converge on one code path. The flags become hints that influence which clips get seeded into the initial pool.
Part C: Mixed-mode arrange
arrange and cut currently reject mixed source/generative pools (is_all_generative_arrangement is the canary). Remove these checks and update arrange to handle a pool with mixed clip kinds.
Add a fixture test: brief that produces a timeline with both a VIDEO clip (from a source) and a GENERATIVE_IMAGE clip (from a prompt) — render passes.
Part D: Extract hype orchestration to orchestrators/hype/
Move the hype-specific orchestration code out of pipeline.py and into artagents/orchestrators/hype/run.py (currently a 6-line re-export of pipeline.main).
pipeline.py becomes a thin CLI router: parse args, dispatch to orchestrators_cli / executors_cli / elements_cli, plus minimal shared utilities. Target: ~200 lines, down from 1293.
The hype orchestrator's run.py is now where source-cut + pure-generative + mixed-mode collapsed pipeline lives.
Update artagents/orchestrators/hype/orchestrator.yaml so the entrypoint argv points at the orchestrator's run.py module, not back at artagents.pipeline:main.
Part E: Tests and grep gates
Existing tests pass (excluding the two pre-existing failures: tests/test_pool_schema.py, tests/test_cut_timeline_resume.py::test_resume_mode_render_smoke).
New test: mixed-mode timeline renders successfully.
Grep gate: is_all_generative_arrangement is gone from production code (it can stay in domain helpers if useful internally, but is not a pipeline-level branch).
Grep gate: if args.video / if args.audio mode-fork branches replaced by clip-kind dispatch (some flag-handling for input parsing is fine; the per-step branches are not).
Success criteria
pipeline.py shrinks substantially — target ~200 lines (from 1293), with hype orchestration logic moved to artagents/orchestrators/hype/run.py.
A mixed-mode test fixture passes — single brief produces a timeline with both VIDEO and GENERATIVE_IMAGE clips, renders successfully (mock or dry-run is fine).
is_all_generative_arrangement and if args.video-style mode forks are removed from the pipeline orchestration code (allowed in input parsing, not in step dispatch).
Each pipeline-stage executor.yaml declares its produces_for (or equivalent) and the pipeline computes the step set from the registry.
All existing tests pass (excluding the documented pre-existing failures).
python3 -m artagents --video X.mp4 --brief brief.txt --dry-run, --audio Y.wav --brief brief.txt --dry-run, and --brief brief.txt --target-duration 28 --dry-run (pure-generative) all complete without error and produce the same artifacts they do today.
python3 -m artagents orchestrators list/inspect builtin.hype reflects the new entrypoint without changing the user-facing manifest beyond the argv update.
Round-trip fixture test still passes (Phase 2's regression gate stays green).
Out of scope for Phase 3
Pool / AssetRegistry domain class refactor (same pattern as Timeline, defer to Phase 4).
Element resolution waterfall simplification (defer).
Schema package changes (see constraint 5).
Working notes
Phase 2's codex executor stalled at 5/9 tasks for ~30min on a chunky migration task. To minimize repeat: planner should split work into many small tasks (target 8-15 tasks total, each <300 LOC of edits). Tasks like "migrate consumer X" should be one task per file, not bundled.
The Timeline class from Phase 2 is the dispatch substrate. clip.classified_kind returns ClipClassifiedKind enum members; pipeline should use those, not strings.
ArtAgents uses pyenv 3.11.11 for python shell command; python3 works directly. Tests run via pytest (no --timeout flag — plugin not installed).
Test command: pytest tests/ -q --ignore=tests/test_pool_schema.py --deselect tests/test_cut_timeline_resume.py::CutTimelineResumeTest::test_resume_mode_render_smoke
After major edits, smoke: python3 -m artagents orchestrators list && python3 -m artagents executors list.
Direct push to main is the workflow.
Known risks
Pipeline ordering subtle dependencies.pool_merge after pool_build for sources AND any generative pool. Manifest-driven discovery must preserve the topological sort. Tests of mode-specific ordering must keep passing.
--from <step> resume semantics with dynamic step set. Define explicitly in the design: "resume from step X means skip everything topologically before X in the computed step set; if X is not in the set, error with a clear message."
Mixed-mode arrange has zero existing test coverage. New test is doing both "verify the new behavior" AND "specify what mixed-mode means." The fixture design is itself a small design call.
Extracting hype orchestration is the largest single move. ~1000 lines to lift from pipeline.py into orchestrators/hype/run.py, with import cycles to manage. This is the task most likely to stall codex; consider splitting into "extract step builders" → "extract pipeline runner" → "swap entrypoint argv" → "delete moved code from pipeline.py."
ArtAgents currently keeps the hype workflow in artagents/pipeline.py, which is both the package command router and the 15-step hype orchestrator. The current pipeline split is not only file organization: build_steps() filters steps from hardcoded STEP_ORDER based on args.video and args.audio, and arrange/cut/refine still use is_all_generative_arrangement() as a mode boundary.
The latest critique does not point to the wrong code or a different root cause. It points to two selector-spec bugs in the current plan: generative_visuals_enabled cannot be a static requirement for selecting arrange, because source-cut opt-out still needs arrange to run; and downstream rendered_video facts must be explicitly aligned with the current render manifest, which currently provides video. This revision fixes those details directly.
To avoid confusing future registry behavior, the manifest field should be named clip_kinds_supported rather than produces_for. It still satisfies the requested design call: each pipeline-stage executor declares which runtime clip kinds it participates in. A separate pipeline_requirements field declares runtime facts needed for selection, such as source_video, source_audio, transcript, and render_requested. Capability relevance and artifact availability stay separate.
Mixed-mode remains the Phase 3 behavior change: source-video/source-audio briefs expose generative visual candidates by default so a single brief can produce mixed timelines. The compatibility opt-out is --no-generative-effects, which affects command construction and pool exposure only. It must not affect whether arrange itself is selected.
Dry-run remains mandatory. Top-level hype --dry-run will parse, prepare lightweight run metadata and the copied brief, compute the selected step plan, write <out>/hype.plan.json, and never call run_step() or launch child executors. Tests must patch the moved orchestration owner’s run_step and assert it is not called.
GENERATIVE_IMAGE will be represented as runtime ClipClassifiedKind.IMAGE plus pool/asset provenance showing the clip came from a generative pool entry. This matches Phase 2 and avoids schema package changes or a persisted clip.kind field.
Phase 1: Baseline And Ownership Extraction
Step 1: Establish Current Gates (artagents/pipeline.py, tests/test_pipeline_caching.py, tests/test_pure_generative_pipeline.py)
Scope: Small
Confirm git status --short is clean; stash unexpected work with a clearly named stash before editing and restore it after the Phase 3 work.
Run cheap baseline commands: python3 -m artagents doctor, python3 -m artagents orchestrators list, and python3 -m artagents executors list.
Run focused baseline tests around pipeline ordering and pure-generative behavior: tests/test_pipeline_caching.py, tests/test_pipeline_editor_loop.py, and tests/test_pure_generative_pipeline.py.
Record current selected step lists for source-video, audio-only, and no-audio pure-generative runs. These become regression cases when selection becomes manifest-driven.
Step 2: Move Hype Orchestration Into The Hype Orchestrator (artagents/orchestrators/hype/run.py, artagents/pipeline.py)
Scope: Medium
Move the hype-specific parser, Step dataclass, step command builders, cache/sentinel logic, audit registration, URL preflight, editor loop, and pool_main() from artagents/pipeline.py into artagents/orchestrators/hype/run.py.
Make artagents/orchestrators/hype/run.py own orchestration directly; it must no longer be a re-export of artagents.pipeline.main.
Reduce artagents/pipeline.py to the package command gateway: route executors, orchestrators, elements, doctor, setup, audit, reigh-data, publish aliases, and legacy top-level hype flags into artagents.orchestrators.hype.run.main().
Preserve compatibility imports temporarily for tests or callers that still import artagents.pipeline.Step, STEP_ORDER, resolve_args, build_pool_steps, build_steps, run_step, and related helpers. Implement those as thin aliases to artagents.orchestrators.hype.run until tests are migrated.
Keep artagents/__main__.py pointed at the thin package gateway so python3 -m artagents ... remains stable.
Replace _pipeline_module() / artagents.pipeline.build_pool_steps() coupling in artagents/executors/runner.py with artagents.orchestrators.hype.run.build_pool_steps().
Update metadata.command_builder in the 15 hype executor manifests from artagents.pipeline.build_pool_steps to artagents.orchestrators.hype.run.build_pool_steps, or remove the metadata if nothing reads it after the runner update.
Validate that python3 -m artagents orchestrators inspect builtin.hype --json reports runtime_module: artagents.orchestrators.hype.run and that the module contains the actual orchestration implementation.
Phase 2: Manifest Capability And Requirement Schema
Step 4: Add clip_kinds_supported And pipeline_requirements To Executor Schema (artagents/executors/schema.py)
Scope: Medium
Add clip_kinds_supported: tuple[ClipClassifiedKind, ...] to ExecutorDefinition, serialized as clip_kinds_supported in manifest JSON/YAML and inspect output.
Accept produces_for as a deprecated manifest alias during parsing only if useful for compatibility, but normalize to clip_kinds_supported in to_dict() so the field’s meaning is clear: the step participates for these runtime clip kinds; it does not necessarily produce clips itself.
Add a concrete pipeline_requirements schema to ExecutorDefinition, not hidden inside unvalidated metadata. Shape:
Validate requirement fact names against a fixed allowlist: brief, source_video, source_audio, transcript, pool, arrangement, timeline, render_requested, rendered_video, and generative_visuals_enabled.
Parse both enum names and values case-insensitively for clip_kinds_supported, but normalize to Phase 2 runtime enum values: video, image, audio, text, effect, opaque.
Keep both fields optional and default empty so unrelated external/bundled executors are not forced to declare them.
Add schema tests proving valid fields round-trip through to_dict() / inspect JSON, invalid clip kinds fail validation, invalid requirement facts fail validation, and the deprecated produces_for alias normalizes to clip_kinds_supported if implemented.
Do not add GENERATIVE_IMAGE to ClipClassifiedKind; tests assert generative provenance separately from runtime IMAGE classification.
Step 5: Declare Capabilities And Requirements In Hype Executor Manifests (artagents/executors/*/executor.yaml)
Scope: Medium
Add clip_kinds_supported and pipeline_requirements to the 15 hype pipeline executor manifests.
transcribe declares clip_kinds_supported: [video, audio] and pipeline_requirements.any_of: [[source_video, source_audio]] because source video can serve as the audio input by default.
pool_merge declares all relevant clip kinds and no source requirement; it must remain available for source, audio-only, and pure-generative pool assembly.
arrange declares all relevant clip kinds and requires only brief and pool. It must not require generative_visuals_enabled; that fact controls command construction and whether generative pool entries are exposed, not whether arrange runs.
cut declares all relevant clip kinds and requires brief, pool, and arrangement.
render declares all relevant clip kinds and requires render_requested and timeline. Update artagents/executors/render/executor.yaml graph metadata so graph.provides includes rendered_video while preserving the existing output port named video for compatibility.
Transcript/post-render stages are explicitly gated: refine requires render_requested, transcript, timeline, and arrangement; editor_review requires render_requested, rendered_video, and transcript; validate requires render_requested, rendered_video, and timeline. These stages are not selected for no-audio image-only runs unless transcript-producing inputs exist or the implementations are changed to make transcript optional.
Keep graph.depends_on and metadata.pipeline_step_order as the topological ordering hint. clip_kinds_supported decides capability relevance; pipeline_requirements decides runtime applicability.
Step 6: Build The Manifest-Driven Step Selector (artagents/orchestrators/hype/run.py, artagents/executors/registry.py)
Scope: Medium
Load the default executor registry and find executors with metadata.pipeline_step.
Compute initial runtime facts from resolved args: brief, source_video, source_audio, render_requested, and generative_visuals_enabled.
Add generative_visuals_enabled for no-source pure-generative runs and for source-video/source-audio runs by default, unless --no-generative-effects is passed.
Iterate through pipeline executors in metadata.pipeline_step_order. Select a step when its clip_kinds_supported intersects capability intent and its pipeline_requirements are satisfied by current or already-planned facts.
When a selected step’s graph provides includes artifacts such as transcript, pool, arrangement, timeline, or rendered_video, add the corresponding runtime facts for downstream selection.
Add an explicit compatibility mapping for render while manifests migrate: for builtin.render, graph.provides: video also satisfies runtime fact rendered_video. Keep the manifest update in Step 5 so the mapping is a safety net, not the main path.
Use the old STEP_ORDER only as a compatibility/topological fallback when manifest order metadata is missing, not as the inclusion source of truth.
Define --from semantics against the computed selected set: skip selected steps before X; if X is known globally but absent from this computed run, error with a message naming the active selected steps.
Keep --skip validation against known pipeline step names, then remove skipped steps after dynamic selection.
Phase 3: Unified Runtime Intent, Compatibility Opt-Out, And Dry-Run
Replace build_steps(args) mode filtering with compute_capability_intent(args) plus manifest step selection.
--video contributes ClipClassifiedKind.VIDEO; --audio contributes ClipClassifiedKind.AUDIO; no-source pure-generative contributes ClipClassifiedKind.IMAGE and ClipClassifiedKind.EFFECT/TEXT as needed by bundled generative pool entries.
A source-video or source-audio run with a brief contributes generative visual intent by default because mixed-mode is the Phase 3 deliverable. This removes the circular dependency where IMAGE could only be known after arrange.
Add top-level --no-generative-effects as the explicit compatibility opt-out for callers that need source-cut behavior. This opt-out clears generative_visuals_enabled but must not remove arrange from the selected steps.
Preserve input parsing behavior: --audio still defaults to --video, pure-generative still requires --target-duration, and local path/URL validation remains in parsing/preflight.
Step 8: Make Arrange Command Construction Follow Intent (artagents/orchestrators/hype/run.py, tests/test_pure_generative_pipeline.py)
Scope: Medium
Pass --allow-generative-effects to arrange only when runtime facts include generative_visuals_enabled, including source-video mixed-mode runs.
For --no-generative-effects, arrange is still selected and run, but the command omits --allow-generative-effects and generative pool entries are not exposed to arrange.
Pass --no-audio only when neither --video nor --audio is available.
Update the existing source-cut test so its source-only expectation uses --no-generative-effects; add a new test proving source-video default now passes --allow-generative-effects.
Keep --target-duration behavior stable: no-source pure-generative uses the explicit target duration; audio-only uses probed audio duration; source-video runs do not force a target duration unless existing behavior already did.
Document this as an intentional Phase 3 behavior change in the relevant test names and CLI help text: CLI syntax remains backward-compatible, while source brief defaults now allow mixed-mode with an opt-out.
Add --dry-run to the hype parser and route it through legacy top-level python3 -m artagents ... invocations.
In dry-run, perform normal argument resolution, brief copy/prep, URL expiry checks that do not require downloads, capability intent calculation, dynamic step selection, skip/from handling, and command construction.
Do not launch child executors in dry-run. Instead write <out>/hype.plan.json containing selected steps, skipped steps, planned commands with secrets redacted, expected sentinel artifact paths, runtime facts, and computed capability intent.
Print the plan path and selected step names so shell smokes can verify behavior from output.
Add tests that patch artagents.orchestrators.hype.run.run_step and assert it is not called in dry-run. Keep artagents.pipeline.run_step compatibility aliases from hiding accidental execution by patching the moved owner directly.
Add tests and shell smokes for all required dry-run shapes: --video X.mp4 --brief brief.txt --out ... --dry-run, --audio Y.wav --brief brief.txt --out ... --dry-run, and --brief brief.txt --target-duration 28 --out ... --dry-run.
Phase 4: Mixed-Mode Arrange, Cut, And Render Fixture
Step 10: Remove Mixed-Mode Production Rejections (artagents/executors/arrange/run.py, artagents/executors/cut/run.py, artagents/executors/refine/run.py)
Scope: Medium
Remove arrange/cut/refine production checks that reject mixed source and generative pools via is_all_generative_arrangement() or arrangement_uses_generative_visuals().
Replace duration-window decisions with direct checks on actual required inputs and target-duration presence, not all-generative vs source mode.
Remove the cut error for the exact forbidden caller shape: --video present plus arrangement clips with generated visual sources.
Keep Reigh compatibility by materializing generated visuals through existing timeline clips/assets/effects fields. Do not add persisted clip.kind or any new schema key.
Keep is_all_generative_arrangement() only as a domain helper for legacy tests if still useful; it must not drive production orchestration or mixed-mode rejection.
Build a test pool with one source video/dialogue entry and one generative image/text-card visual entry.
Mock the LLM response in arrange to return a mixed arrangement: one source-backed video/dialogue clip and one generated visual clip.
Assert arrange accepts the mixed pool when --allow-generative-effects is set by unified runtime facts.
Assert --no-generative-effects preserves the old source-only rejection/validation behavior where appropriate and still selects/runs arrange.
Assert the generated visual is represented as ClipClassifiedKind.IMAGE or effect/text in runtime classification, with generative provenance coming from the pool entry, not a persisted clip.kind.
Update pure-generative tests so no-audio image-only runs still omit transcript-dependent steps.
Step 12: Add Mixed-Mode Cut And Render-Plan Fixture (tests/test_multitrack_cut.py or new tests/test_mixed_mode_pipeline.py)
Scope: Medium
Build a fixture with a fake source asset registry, a pool containing source and generative entries, and an arrangement mixing a source video clip with a generated image/text-card visual clip.
Run cut.main() with both --video and generated visual sources present, matching the currently forbidden caller shape from build_pool_cut_cmd().
Load hype.timeline.json through Timeline.load() and assert persisted clips do not contain kind.
Assert runtime classification includes ClipClassifiedKind.VIDEO and ClipClassifiedKind.IMAGE or an effect/text kind, and assert the generated clip has provenance through the generative pool/asset entry.
Verify render compatibility through dry-run or mocked Remotion command construction in normal tests. Full MP4 rendering remains gated by the repo's existing render-test environment conventions.
Phase 5: Cleanup And Validation
Step 13: Update Tests And Grep Gates (tests/)
Scope: Medium
Migrate tests that inspect hype internals from artagents.pipeline to artagents.orchestrators.hype.run, leaving only package-router tests on artagents.pipeline.main.
Keep tests/test_canonical_cli.py coverage for top-level command dispatch.
Add a grep-style test or explicit source scan that production orchestration no longer uses is_all_generative_arrangement() or if args.video / if args.audio to choose which steps run. Input parsing and command-argument construction may still inspect these flags.
Add tests for --from when the named step is absent from the computed selected set, especially no-audio image-only runs where transcript-dependent steps are intentionally omitted.
Add tests for the new pipeline_requirements facts so selector behavior is pinned by manifests, not hidden Python-only heuristics.
Add a selector test proving builtin.render satisfies downstream rendered_video requirements through the updated manifest and the temporary selector mapping.
Step 14: Run Focused Validation, Then The Accepted Suite
Scope: Small
Run focused tests first: schema/registry tests, pipeline selector tests, pipeline caching/editor loop, pure-generative pipeline, arrange, cut/multitrack or mixed-mode fixture, render plan tests, and timeline round-trip.
Run the accepted full command: pytest tests/ -q --ignore=tests/test_pool_schema.py --deselect tests/test_cut_timeline_resume.py::CutTimelineResumeTest::test_resume_mode_render_smoke.
Run the three required dry-run smokes with temp inputs and assert they create <out>/hype.plan.json without calling run_step.
Run grep gates for removed production branches.
Execution Order
Extract hype orchestration first with behavior unchanged, then immediately prove artagents/orchestrators/hype/run.py owns the implementation.
Add manifest schema for clip_kinds_supported and pipeline_requirements before changing step selection.
Update all 15 hype manifests with concrete capabilities and requirement facts, including render’s rendered_video graph provide.
Implement pre-arrange capability intent, --no-generative-effects, and mandatory dry-run before changing arrange/cut semantics.
Replace step selection with registry-driven selection using manifest requirements so no-audio image-only runs do not select transcript-dependent stages and source-cut opt-out still selects arrange.
Remove mixed-mode executor rejections and add mixed arrange/cut/render-plan fixtures.
Migrate tests/imports and shrink pipeline.py after behavior is covered.
Validation Order
Start with schema/registry validation and CLI list/inspect smokes.
Run focused selector tests proving pipeline_requirements behavior for source-video default mixed-mode, source-video opt-out, audio-only, no-audio pure-generative runs, and render-to-post-render fact propagation.
Run mandatory dry-run tests and shell smokes before any broad test run, including assertions that run_step is not called.
Run mixed-mode arrange and cut fixture tests before the full suite.
Finish with the accepted full suite excluding the two documented pre-existing failures, timeline round-trip, and grep gates.
code
Plan metadata:
{
"version": 4,
"timestamp": "2026-05-03T02:17:39Z",
"hash": "sha256:5f3af328e3b4b21d922aac2139e5a3af4b79d091fbda13daaa0101db40dd2dbb",
"changes_summary": "Resolved the remaining selector-spec gaps: arrange no longer statically requires generative_visuals_enabled, that fact only controls command construction and pool exposure; render is explicitly aligned with downstream rendered_video requirements by updating graph.provides and adding a temporary selector mapping; and the capability field is renamed to clip_kinds_supported to avoid implying every pipeline step literally produces clips.",
"flags_addressed": [
"correctness-1",
"correctness-2",
"all_locations",
"FLAG-007",
"FLAG-008"
],
"questions": [],
"success_criteria": [
{
"criterion": "artagents/pipeline.py is reduced to a thin CLI router and hype orchestration logic is owned directly by artagents/orchestrators/hype/run.py, not re-exported from pipeline.",
"priority": "must",
"requires": [
"read_files",
"parse_diff"
]
},
{
"criterion": "The 15 hype pipeline executor manifests declare clip_kinds_supported and pipeline_requirements; valid values appear in inspect JSON, and invalid clip kinds or requirement facts fail executor manifest validation.",
"priority": "must",
"requires": [
"read_files",
"run_tests",
"read_build_output"
]
},
{
"criterion": "Hype step selection is computed from executor registry clip capability metadata plus concrete manifest pipeline_requirements, ordered by manifest topological metadata, and not by source-vs-generative mode branches.",
"priority": "must",
"requires": [
"read_files",
"parse_diff",
"run_tests"
]
},
{
"criterion": "Source-video brief runs select generative visual intent before arrange, pass --allow-generative-effects by default, and can produce mixed source plus generated timelines without a circular dependency on the output timeline.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "--no-generative-effects preserves old source-cut behavior by preventing generative visual exposure while still selecting arrange and keeping arrange from receiving --allow-generative-effects.",
"priority": "must",
"requires": [
"run_tests",
"read_build_output"
]
},
{
"criterion": "No-audio image-only pure-generative runs do not select transcript-dependent stages such as transcribe, refine, editor_review, or validate unless manifest requirements are satisfied.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Render selection satisfies downstream rendered_video requirements through the updated render manifest graph metadata and temporary selector mapping from existing render video provides.",
"priority": "must",
"requires": [
"read_files",
"run_tests",
"parse_diff"
]
},
{
"criterion": "--from and --skip work against the dynamically computed step set, with a clear error when --from names a globally known step absent from the selected run.",
"priority": "must",
"requires": [
"run_tests",
"read_build_output"
]
},
{
"criterion": "Top-level hype --dry-run exists for source-video, audio-only, and pure-generative invocations; each creates a plan artifact with selected steps, planned commands, expected sentinels, runtime facts, and capability intent without calling run_step.",
"priority": "must",
"requires": [
"run_shell",
"run_tests",
"read_build_output",
"read_files"
]
},
{
"criterion": "A mixed-mode fixture runs cut.main() with --video present and generated visual sources in the arrangement, producing a Reigh-compatible timeline with no persisted clip.kind field.",
"priority": "must",
"requires": [
"run_tests",
"read_files"
]
},
{
"criterion": "The mixed-mode fixture proves runtime classification includes source-backed VIDEO and generated-provenance IMAGE or effect/text clips.",
"priority": "must",
"requires": [
"run_tests",
"read_files"
]
},
{
"criterion": "Production orchestration no longer uses is_all_generative_arrangement or if args.video/if args.audio as step-dispatch mode forks; those checks remain allowed only in input parsing or command-argument construction.",
"priority": "must",
"requires": [
"read_files",
"parse_diff"
]
},
{
"criterion": "python3 -m artagents orchestrators list and python3 -m artagents orchestrators inspect builtin.hype --json report the hype orchestrator entrypoint as artagents.orchestrators.hype.run.",
"priority": "must",
"requires": [
"run_shell",
"read_build_output"
]
},
{
"criterion": "Phase 2 timeline round-trip fixture test remains green.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "The accepted full suite passes excluding tests/test_pool_schema.py and tests/test_cut_timeline_resume.py::CutTimelineResumeTest::test_resume_mode_render_smoke.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "pipeline.py lands around 200 lines or less after extraction.",
"priority": "should",
"requires": [
"read_files"
]
},
{
"criterion": "Extraction remains reviewable as small patches: behavior-preserving move, schema/manifests, dynamic selection/dry-run, mixed-mode executor changes, tests.",
"priority": "should",
"requires": [
"parse_diff",
"subjective_judgment"
]
},
{
"criterion": "Direct push to main is completed after validation, per workflow note.",
"priority": "info",
"requires": [
"run_shell"
]
}
],
"assumptions": [
"Work starts from a clean main at or after commit 85da713; unexpected local changes are stashed and restored after the work.",
"No @banodoco/timeline-schema changes are made, and no persisted timeline clip gets a kind field.",
"Generated images are represented as runtime ClipClassifiedKind.IMAGE plus generative pool/asset provenance, not a new GENERATIVE_IMAGE enum member.",
"Source-video and source-audio briefs allow generative visual candidates by default in Phase 3; --no-generative-effects is the compatibility opt-out for old source-cut behavior.",
"clip_kinds_supported and pipeline_requirements are separate manifest fields: clip capability relevance does not imply required runtime artifacts exist.",
"generative_visuals_enabled is a runtime command-construction/pool-exposure fact, not a static requirement for selecting arrange.",
"Render\u2019s current output port can remain named video; Phase 3 adds or maps the graph fact rendered_video for selector use.",
"Dry-run creates a plan artifact and prepares lightweight run metadata, but does not launch child executors or create child-step sentinel outputs.",
"Full MP4 rendering can remain behind existing render-test environment gates; normal validation may use dry-run or mocked Remotion command construction.",
"The protected external stage docs (moirae, vibecomfy) are not edited."
],
"delta_from_previous_percent": 14.11,
"structure_warnings": []
}
code
Gate summary:
{
"passed": true,
"criteria_check": {
"count": 18,
"items": [
{
"criterion": "artagents/pipeline.py is reduced to a thin CLI router and hype orchestration logic is owned directly by artagents/orchestrators/hype/run.py, not re-exported from pipeline.",
"priority": "must",
"requires": [
"read_files",
"parse_diff"
]
},
{
"criterion": "The 15 hype pipeline executor manifests declare clip_kinds_supported and pipeline_requirements; valid values appear in inspect JSON, and invalid clip kinds or requirement facts fail executor manifest validation.",
"priority": "must",
"requires": [
"read_files",
"run_tests",
"read_build_output"
]
},
{
"criterion": "Hype step selection is computed from executor registry clip capability metadata plus concrete manifest pipeline_requirements, ordered by manifest topological metadata, and not by source-vs-generative mode branches.",
"priority": "must",
"requires": [
"read_files",
"parse_diff",
"run_tests"
]
},
{
"criterion": "Source-video brief runs select generative visual intent before arrange, pass --allow-generative-effects by default, and can produce mixed source plus generated timelines without a circular dependency on the output timeline.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "--no-generative-effects preserves old source-cut behavior by preventing generative visual exposure while still selecting arrange and keeping arrange from receiving --allow-generative-effects.",
"priority": "must",
"requires": [
"run_tests",
"read_build_output"
]
},
{
"criterion": "No-audio image-only pure-generative runs do not select transcript-dependent stages such as transcribe, refine, editor_review, or validate unless manifest requirements are satisfied.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Render selection satisfies downstream rendered_video requirements through the updated render manifest graph metadata and temporary selector mapping from existing render video provides.",
"priority": "must",
"requires": [
"read_files",
"run_tests",
"parse_diff"
]
},
{
"criterion": "--from and --skip work against the dynamically computed step set, with a clear error when --from names a globally known step absent from the selected run.",
"priority": "must",
"requires": [
"run_tests",
"read_build_output"
]
},
{
"criterion": "Top-level hype --dry-run exists for source-video, audio-only, and pure-generative invocations; each creates a plan artifact with selected steps, planned commands, expected sentinels, runtime facts, and capability intent without calling run_step.",
"priority": "must",
"requires": [
"run_shell",
"run_tests",
"read_build_output",
"read_files"
]
},
{
"criterion": "A mixed-mode fixture runs cut.main() with --video present and generated visual sources in the arrangement, producing a Reigh-compatible timeline with no persisted clip.kind field.",
"priority": "must",
"requires": [
"run_tests",
"read_files"
]
},
{
"criterion": "The mixed-mode fixture proves runtime classification includes source-backed VIDEO and generated-provenance IMAGE or effect/text clips.",
"priority": "must",
"requires": [
"run_tests",
"read_files"
]
},
{
"criterion": "Production orchestration no longer uses is_all_generative_arrangement or if args.video/if args.audio as step-dispatch mode forks; those checks remain allowed only in input parsing or command-argument construction.",
"priority": "must",
"requires": [
"read_files",
"parse_diff"
]
},
{
"criterion": "python3 -m artagents orchestrators list and python3 -m artagents orchestrators inspect builtin.hype --json report the hype orchestrator entrypoint as artagents.orchestrators.hype.run.",
"priority": "must",
"requires": [
"run_shell",
"read_build_output"
]
},
{
"criterion": "Phase 2 timeline round-trip fixture test remains green.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "The accepted full suite passes excluding tests/test_pool_schema.py and tests/test_cut_timeline_resume.py::CutTimelineResumeTest::test_resume_mode_render_smoke.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "pipeline.py lands around 200 lines or less after extraction.",
"priority": "should",
"requires": [
"read_files"
]
},
{
"criterion": "Extraction remains reviewable as small patches: behavior-preserving move, schema/manifests, dynamic selection/dry-run, mixed-mode executor changes, tests.",
"priority": "should",
"requires": [
"parse_diff",
"subjective_judgment"
]
},
{
"criterion": "Direct push to main is completed after validation, per workflow note.",
"priority": "info",
"requires": [
"run_shell"
]
}
]
},
"preflight_results": {
"project_dir_exists": true,
"project_dir_writable": true,
"success_criteria_present": true,
"claude_available": true,
"codex_available": true
},
"unresolved_flags": [],
"recommendation": "PROCEED",
"rationale": "The plan is now execution-ready. The selector model separates clip capability from runtime artifact requirements, dry-run behavior is mandatory and testable, mixed-mode has a pre-arrange signal plus a compatibility opt-out, and the render fact mismatch is explicitly handled through both manifest metadata and a temporary selector mapping.",
"signals_assessment": "Score trajectory improved cleanly from 17.5 -> 11.5 -> 9.5 -> 0, with no unresolved significant flags and no recurring critiques in the final iteration. Preflight is green: the project exists, is writable, success criteria are present, and required tools are available. The remaining iteration-pressure history reflects resolved plan-quality issues, not open architectural tension or human-only decisions.",
"warnings": [
"During implementation, keep the behavior-preserving extraction separate from selector/schema changes as much as practical so regressions are easier to isolate.",
"Verify --no-generative-effects still selects arrange while omitting --allow-generative-effects; this is the highest-risk compatibility edge.",
"Treat the render video to rendered_video mapping as temporary compatibility glue and test both the updated manifest path and the mapping path."
],
"settled_decisions": [
{
"id": "capability-field-name",
"decision": "Use clip_kinds_supported as the manifest capability field, with optional parsing compatibility for deprecated produces_for.",
"rationale": "The field describes step applicability for runtime clip kinds, not literal clip production, which avoids misleading registry semantics."
},
{
"id": "requirements-field",
"decision": "Use pipeline_requirements for runtime selection facts such as source_video, transcript, timeline, and rendered_video.",
"rationale": "This keeps artifact/input availability separate from clip-kind applicability and lets no-audio image-only runs skip transcript-dependent stages reliably."
},
{
"id": "mixed-mode-default",
"decision": "Source-video and source-audio briefs enable generative visual candidates by default in Phase 3.",
"rationale": "Mixed-mode is the deliverable; --no-generative-effects is the explicit compatibility opt-out for old source-cut behavior."
},
{
"id": "generative-image-representation",
"decision": "Represent generated images as runtime ClipClassifiedKind.IMAGE plus generative pool/asset provenance, not a new GENERATIVE_IMAGE enum or persisted clip.kind.",
"rationale": "This satisfies mixed-mode testing while preserving Reigh JSON compatibility and avoiding schema package changes."
},
{
"id": "dry-run-contract",
"decision": "Top-level hype --dry-run writes <out>/hype.plan.json and must not call run_step or launch child executors.",
"rationale": "The required smoke commands need a non-executing planning path that still exercises parsing, selection, command construction, and artifact planning."
}
],
"override_forced": false,
"orchestrator_guidance": "Plan passed gate and preflight. Proceed to finalize.",
"robustness": "standard",
"signals": {
"iteration": 4,
"idea": "# Phase 3: Collapse parallel pipelines + extract hype orchestration (do it RIGHT)\n\n## Goal\n\nEliminate the source-cut vs pure-generative pipeline split in ArtAgents and unlock mixed-mode timelines (a single brief that produces a timeline mixing source-extracted clips with generatively-created clips). Achieve this by:\n\n1. Capability framing \u2014 mixed-mode is the deliverable, not just code cleanup. Ship a working test fixture that renders a timeline with both VIDEO (source-extracted) and GENERATIVE_IMAGE (prompt-generated) clips in one render.\n2. Manifest-driven step capability discovery \u2014 each executor.yaml declares which clip kinds it produces for; the pipeline asks the registry instead of hardcoding STEP_ORDER.\n3. Extract hype orchestration into artagents/orchestrators/hype/run.py properly \u2014 pipeline.py becomes a thin CLI router (~200 lines max). The orchestrator folder finally owns its own logic.\n\n## Repo\n\n/Users/user_c042661f/Documents/reigh-workspace/ArtAgents \u2014 currently on main at commit 85da713. Push directly to main.\n\nWorking tree should be clean at start (the user's prior STAGE rename WIP was committed in 85da713). If anything unexpected appears in git status, stash it before working with a clearly-named entry, restore at end.\n\n## What just landed (recent context)\n\n- Phase 1 (5cb7e81): bin/ deleted, dead orchestrator-registry factories removed, ~-450 LOC.\n- Prereq A (origin/main of banodoco-workspace): output.background and output.background_scale accept null in @banodoco/timeline-schema. Symlinked into ArtAgents via remotion/node_modules.\n- Prereq B (d58b4fa): round-trip fixture test as regression gate.\n- Phase 2 (d0563a1): Timeline domain class with passthrough preservation, transient .for_render(default_theme), runtime clip.classified_kind (VIDEO/IMAGE/AUDIO/TEXT/EFFECT/OPAQUE), 12 executor consumers migrated. Phase 3 builds directly on the classified_kind dispatch.\n- 85da713: STAGE.md rename (user WIP) + _reference/ deletion.\n\n## Design constraints (non-negotiable)\n\n1. Reigh compatibility \u2014 clip.kind is NEVER persisted. Reigh's clip allowlist (reigh-app/src/tools/video-editor/lib/serialize.ts:8-42) is closed and throws on unknown clip keys. All kind-based dispatch is runtime-only on the ArtAgents side. The Phase 2 classified_kind is a TimelineClipView property, not a JSON field.\n2. Backwards-compat user-facing CLI \u2014 python3 -m artagents --video X.mp4 --brief brief.txt, --audio X.wav --brief brief.txt, and --brief brief.txt --target-duration 28 (pure-generative) all keep working. They become hints that influence which clips get added to the timeline; behind the scenes they all converge on one path.\n3. Step capability discovery is manifest-driven \u2014 each executor.yaml declares produces_for: [VIDEO, AUDIO, ...] (or equivalent shape \u2014 name is a design call). The pipeline computes the union of needed steps over all timeline clips, then runs only those. No hardcoded STEP_ORDER as the source of truth (it can remain as a topological-order hint).\n4. Topological order preserved \u2014 current pipeline ordering (transcribe \u2192 scenes \u2192 quality_zones \u2192 shots \u2192 triage \u2192 scene_describe \u2192 quote_scout \u2192 pool_build \u2192 pool_merge \u2192 arrange \u2192 cut \u2192 refine \u2192 render \u2192 editor_review \u2192 validate) has real dependencies; manifest-driven discovery must produce the same order when the same step set is needed.\n5. Schema package unchanged \u2014 clip kinds are runtime-derived. No @banodoco/timeline-schema changes.\n\n## What "do it RIGHT" means concretely\n\n### Part A: Manifest-driven step capability\n\n- Add produces_for (or clip_kinds_supported \u2014 design call) to the executor manifest schema. Update artagents/executors/schema.py and the JSON-Schema validator.\n- Update each pipeline-stage executor.yaml that declares it (15 hype-pipeline executors: transcribe, scenes, quality_zones, shots, triage, scene_describe, quote_scout, pool_build, pool_merge, arrange, cut, refine, render, editor_review, validate). Most produce for VIDEO only, some for AUDIO, arrange/cut/refine/render produce for ALL (they handle every clip kind).\n- Other executors (generate_image, sprite_sheet, audio_understand, etc.) can declare produces_for too where meaningful, but it's not required for the unified pipeline since they're not invoked by STEP_ORDER today.\n\n### Part B: Unified pipeline that dispatches on clip kinds\n\n- Today: pipeline.py has if args.video: / if not args.video: branches and is_all_generative_arrangement checks. Replace with: compute the set of classified_kind values across all timeline clips, ask the registry for the union of needed steps, run them in topological order.\n- Skip-step plumbing (--from, --skip) keeps working with dynamic step sets. --from <step> means "skip everything topologically before this step in the computed set."\n- --video / --audio / pure-generative invocations all converge on one code path. The flags become hints that influence which clips get seeded into the initial pool.\n\n### Part C: Mixed-mode arrange\n\n- arrange and cut currently reject mixed source/generative pools (is_all_generative_arrangement is the canary). Remove these checks and update arrange to handle a pool with mixed clip kinds.\n- Add a fixture test: brief that produces a timeline with both a VIDEO clip (from a source) and a GENERATIVE_IMAGE clip (from a prompt) \u2014 render passes.\n\n### Part D: Extract hype orchestration to orchestrators/hype/\n\n- Move the hype-specific orchestration code out of pipeline.py and into artagents/orchestrators/hype/run.py (currently a 6-line re-export of pipeline.main).\n- pipeline.py becomes a thin CLI router: parse args, dispatch to orchestrators_cli / executors_cli / elements_cli, plus minimal shared utilities. Target: ~200 lines, down from 1293.\n- The hype orchestrator's run.py is now where source-cut + pure-generative + mixed-mode collapsed pipeline lives.\n- Update artagents/orchestrators/hype/orchestrator.yaml so the entrypoint argv points at the orchestrator's run.py module, not back at artagents.pipeline:main.\n\n### Part E: Tests and grep gates\n\n- Existing tests pass (excluding the two pre-existing failures: tests/test_pool_schema.py, tests/test_cut_timeline_resume.py::test_resume_mode_render_smoke).\n- New test: mixed-mode timeline renders successfully.\n- Grep gate: is_all_generative_arrangement is gone from production code (it can stay in domain helpers if useful internally, but is not a pipeline-level branch).\n- Grep gate: if args.video / if args.audio mode-fork branches replaced by clip-kind dispatch (some flag-handling for input parsing is fine; the per-step branches are not).\n\n## Success criteria\n\n1. pipeline.py shrinks substantially \u2014 target ~200 lines (from 1293), with hype orchestration logic moved to artagents/orchestrators/hype/run.py.\n2. A mixed-mode test fixture passes \u2014 single brief produces a timeline with both VIDEO and GENERATIVE_IMAGE clips, renders successfully (mock or dry-run is fine).\n3. is_all_generative_arrangement and if args.video-style mode forks are removed from the pipeline orchestration code (allowed in input parsing, not in step dispatch).\n4. Each pipeline-stage executor.yaml declares its produces_for (or equivalent) and the pipeline computes the step set from the registry.\n5. All existing tests pass (excluding the documented pre-existing failures).\n6. python3 -m artagents --video X.mp4 --brief brief.txt --dry-run, --audio Y.wav --brief brief.txt --dry-run, and --brief brief.txt --target-duration 28 --dry-run (pure-generative) all complete without error and produce the same artifacts they do today.\n7. python3 -m artagents orchestrators list/inspect builtin.hype reflects the new entrypoint without changing the user-facing manifest beyond the argv update.\n8. Round-trip fixture test still passes (Phase 2's regression gate stays green).\n\n## Out of scope for Phase 3\n\n- Pool / AssetRegistry domain class refactor (same pattern as Timeline, defer to Phase 4).\n- Recipe-orchestrator cleanup (first_rite, understand \u2014 defer; documented as Phase 1 item 10).\n- Element resolution waterfall simplification (defer).\n- Schema package changes (see constraint 5).\n\n## Working notes\n\n- Phase 2's codex executor stalled at 5/9 tasks for ~30min on a chunky migration task. To minimize repeat: planner should split work into many small tasks (target 8-15 tasks total, each <300 LOC of edits). Tasks like "migrate consumer X" should be one task per file, not bundled.\n- The Timeline class from Phase 2 is the dispatch substrate. clip.classified_kind returns ClipClassifiedKind enum members; pipeline should use those, not strings.\n- ArtAgents uses pyenv 3.11.11 for python shell command; python3 works directly. Tests run via pytest (no --timeout flag \u2014 plugin not installed).\n- Test command: pytest tests/ -q --ignore=tests/test_pool_schema.py --deselect tests/test_cut_timeline_resume.py::CutTimelineResumeTest::test_resume_mode_render_smoke\n- After major edits, smoke: python3 -m artagents orchestrators list && python3 -m artagents executors list.\n- Direct push to main is the workflow.\n\n## Known risks\n\n- Pipeline ordering subtle dependencies.pool_merge after pool_build for sources AND any generative pool. Manifest-driven discovery must preserve the topological sort. Tests of mode-specific ordering must keep passing.\n- --from <step> resume semantics with dynamic step set. Define explicitly in the design: "resume from step X means skip everything topologically before X in the computed step set; if X is not in the set, error with a clear message."\n- Mixed-mode arrange has zero existing test coverage. New test is doing both "verify the new behavior" AND "specify what mixed-mode means." The fixture design is itself a small design call.\n- Extracting hype orchestration is the largest single move. ~1000 lines to lift from pipeline.py into orchestrators/hype/run.py, with import cycles to manage. This is the task most likely to stall codex; consider splitting into "extract step builders" \u2192 "extract pipeline runner" \u2192 "swap entrypoint argv" \u2192 "delete moved code from pipeline.py."",
"significant_flags": 0,
"unresolved_flags": [],
"resolved_flags": [
{
"id": "FLAG-001",
"concern": "Mixed-mode capability discovery: source-video mixed-mode has no pre-arrange signal for IMAGE/generative capability, so the plan can still behave like source-only and never enable generative arrange.",
"resolution": "Revised the plan to resolve the blocking design gaps: mixed-mode now has a pre-arrange capability signal and is enabled by default for source briefs, top-level --dry-run is mandatory and precisely defined, transcript-dependent steps are guarded by manifest predicates instead of being selected for image-only runs, and the mixed cut test now covers the exact currently-forbidden --video plus generated visual caller shape."
},
{
"id": "FLAG-002",
"concern": "Dry-run compatibility: the plan treats top-level hype --dry-run as optional despite the success criteria requiring three top-level dry-run smoke commands.",
"resolution": "Revised the plan to resolve the blocking design gaps: mixed-mode now has a pre-arrange capability signal and is enabled by default for source briefs, top-level --dry-run is mandatory and precisely defined, transcript-dependent steps are guarded by manifest predicates instead of being selected for image-only runs, and the mixed cut test now covers the exact currently-forbidden --video plus generated visual caller shape."
},
{
"id": "FLAG-003",
"concern": "Step selection: transcript-dependent step gating remains under-specified because the current manifests do not contain enough conditions or required inputs to express the proposed selector predicates.",
"resolution": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called."
},
{
"id": "FLAG-004",
"concern": "Manifest capabilities: produces_for is still being used as relevance/compatibility metadata for steps that do not produce clips, which may confuse future registry behavior unless the field is documented carefully or renamed.",
"resolution": "The revised plan keeps the produces_for name while using it for steps such as transcribe, scenes, quality_zones, refine, and validate, which produce analysis artifacts or reports rather than clip kinds."
},
{
"id": "issue_hints-1",
"concern": "Did the work fully address the issue hints, user notes, and approved plan requirements?: Checked the plan against the explicit smoke requirement for python3 -m artagents ... --dry-run. The current top-level hype parser in artagents/pipeline.py has no --dry-run, and the plan's Step 9 says to add it only "if it is truly required" even though the brief lists those dry-run invocations as success criteria.",
"resolution": "Revised the plan to resolve the blocking design gaps: mixed-mode now has a pre-arrange capability signal and is enabled by default for source briefs, top-level --dry-run is mandatory and precisely defined, transcript-dependent steps are guarded by manifest predicates instead of being selected for image-only runs, and the mixed cut test now covers the exact currently-forbidden --video plus generated visual caller shape."
},
{
"id": "issue_hints-2",
"concern": "Did the work fully address the issue hints, user notes, and approved plan requirements?: Checked the GENERATIVE_IMAGE wording against Phase 2 runtime kinds in artagents/timeline.py; the code exposes ClipClassifiedKind.IMAGE, not a generative-specific enum member. The plan assumes generated images can be represented as IMAGE plus pool provenance, which may be acceptable, but it is a deliberate divergence from the deliverable wording and needs to be locked down in the test fixture assertions.",
"resolution": "Revised the plan to resolve the blocking design gaps: mixed-mode now has a pre-arrange capability signal and is enabled by default for source briefs, top-level --dry-run is mandatory and precisely defined, transcript-dependent steps are guarded by manifest predicates instead of being selected for image-only runs, and the mixed cut test now covers the exact currently-forbidden --video plus generated visual caller shape."
},
{
"id": "correctness-1",
"concern": "Are the proposed changes technically correct?: Checked the proposed pipeline_requirements use for arrange against the new --no-generative-effects opt-out. The plan says arrange requires brief, pool, and generative_visuals_enabled only when generative entries need to be exposed, but the proposed manifest shape is static; if generative_visuals_enabled is a static requirement on arrange, source-cut opt-out runs would skip arrange entirely, while if it is not required, the selector cannot express the conditional phrase.",
"resolution": "Resolved the remaining selector-spec gaps: arrange no longer statically requires generative_visuals_enabled, that fact only controls command construction and pool exposure; render is explicitly aligned with downstream rendered_video requirements by updating graph.provides and adding a temporary selector mapping; and the capability field is renamed to clip_kinds_supported to avoid implying every pipeline step literally produces clips."
},
{
"id": "correctness-2",
"concern": "Are the proposed changes technically correct?: Checked render/post-render fact propagation against current manifests: render currently has graph provides: [\"video\"], while the new requirement allowlist and downstream plan use rendered_video. The plan needs either a manifest update to provide rendered_video or an explicit selector mapping from render's existing video provide/output to the rendered_video fact.",
"resolution": "Resolved the remaining selector-spec gaps: arrange no longer statically requires generative_visuals_enabled, that fact only controls command construction and pool exposure; render is explicitly aligned with downstream rendered_video requirements by updating graph.provides and adding a temporary selector mapping; and the capability field is renamed to clip_kinds_supported to avoid implying every pipeline step literally produces clips."
},
{
"id": "scope",
"concern": "Search for related code that handles the same concept. Is the reported issue a symptom of something broader?: Checked the revised scope against existing arrange tests that verify generative entries are allowed only when explicitly enabled. The plan now chooses to enable them for source-video briefs by default and update those tests; that is in scope for mixed-mode, but it is also a broad behavior change that should be documented as the new default rather than treated as pure internal cleanup.",
"resolution": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called."
},
{
"id": "all_locations",
"concern": "Does the change touch all locations AND supporting infrastructure?: Checked current graph provides names for the planned runtime facts. Most map directly (transcript, pool, arrangement, timeline), but rendered output is currently named video in artagents/executors/render/executor.yaml; without updating or mapping this location, downstream rendered_video requirements will not become satisfied.",
"resolution": "Resolved the remaining selector-spec gaps: arrange no longer statically requires generative_visuals_enabled, that fact only controls command construction and pool exposure; render is explicitly aligned with downstream rendered_video requirements by updating graph.provides and adding a temporary selector mapping; and the capability field is renamed to clip_kinds_supported to avoid implying every pipeline step literally produces clips."
},
{
"id": "callers",
"concern": "Find the callers of the changed function. What arguments do they actually pass? Does the fix handle all of them?: Checked dry-run caller expectations against pool_main(): the plan says dry-run prepares directories and copied brief, computes commands, and skips child executors. That is sufficient for top-level CLI smokes, but tests should assert run_step is not called because existing pipeline tests commonly patch pipeline.run_step and would otherwise miss accidental execution in dry-run.",
"resolution": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called."
},
{
"id": "FLAG-005",
"concern": "Backwards compatibility: enabling generative visual candidates by default for every source-video brief is a broad behavior change from current source-cut semantics and needs an explicit compatibility decision or opt-out.",
"resolution": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called."
},
{
"id": "FLAG-006",
"concern": "Dry-run verification: the plan defines dry-run behavior but should explicitly test that no child executor is launched.",
"resolution": "Existing pipeline tests patch pipeline.run_step to observe execution; Step 9 says dry-run does not launch child executors, but the planned tests only mention shell smokes and plan artifacts, not an assertion that run_step or subprocess execution is skipped."
},
{
"id": "issue_hints",
"concern": "Did the work fully address the issue hints, user notes, and approved plan requirements?: Checked the backwards-compatibility note against the revised default that every source-video run with a brief contributes generative visual intent. That intentionally changes source-run behavior, including a current test named test_source_cut_step_list_keeps_generative_effects_out_of_arrange, so the plan should treat this as an explicit compatibility break or add a source-only opt-out rather than only saying CLI syntax remains stable.",
"resolution": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called."
},
{
"id": "correctness",
"concern": "Are the proposed changes technically correct?: Checked current manifests for the revised selector's proposed manifest predicates: refine, editor_review, validate, quote_scout, triage, scene_describe, and pool_build currently have empty conditions or optional inputs, while refine.run still requires --transcript. The plan says to use manifest conditions/input availability to avoid image-only transcript-dependent steps, but it does not define the concrete new manifest predicate schema or required manifest edits that make this reliable.",
"resolution": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called."
},
{
"id": "FLAG-007",
"concern": "Pipeline requirements: conditional use of generative_visuals_enabled for arrange is not representable in the proposed static pipeline_requirements shape.",
"resolution": "Resolved the remaining selector-spec gaps: arrange no longer statically requires generative_visuals_enabled, that fact only controls command construction and pool exposure; render is explicitly aligned with downstream rendered_video requirements by updating graph.provides and adding a temporary selector mapping; and the capability field is renamed to clip_kinds_supported to avoid implying every pipeline step literally produces clips."
},
{
"id": "FLAG-008",
"concern": "Pipeline requirements: downstream rendered_video facts do not match the current render manifest's graph.provides / output name.",
"resolution": "Resolved the remaining selector-spec gaps: arrange no longer statically requires generative_visuals_enabled, that fact only controls command construction and pool exposure; render is explicitly aligned with downstream rendered_video requirements by updating graph.provides and adding a temporary selector mapping; and the capability field is renamed to clip_kinds_supported to avoid implying every pipeline step literally produces clips."
}
],
"weighted_score": 0,
"weighted_history": [
17.5,
11.5,
9.5
],
"plan_delta_from_previous": 14.11,
"recurring_critiques": [],
"scope_creep_flags": [],
"loop_summary": "Iteration 4. Weighted score trajectory: 17.5 -> 11.5 -> 9.5 -> 0. Plan deltas: 70.3%, 28.1%, 14.1%. Recurring critiques: 0. Resolved flags: 17. Open significant flags: 0.",
"debt_overlaps": [],
"escalated_debt_subsystems": []
},
"flag_resolutions": [],
"resolved_flag_ids": [],
"resolution_summary": "",
"reprompted": false
}
code
Flag registry:
[
{
"id": "FLAG-001",
"concern": "Mixed-mode capability discovery: source-video mixed-mode has no pre-arrange signal for IMAGE/generative capability, so the plan can still behave like source-only and never enable generative arrange.",
"evidence": "Revised the plan to resolve the blocking design gaps: mixed-mode now has a pre-arrange capability signal and is enabled by default for source briefs, top-level --dry-run is mandatory and precisely defined, transcript-dependent steps are guarded by manifest predicates instead of being selected for image-only runs, and the mixed cut test now covers the exact currently-forbidden --video plus generated visual caller shape.",
"status": "verified",
"severity": "significant"
},
{
"id": "FLAG-002",
"concern": "Dry-run compatibility: the plan treats top-level hype --dry-run as optional despite the success criteria requiring three top-level dry-run smoke commands.",
"evidence": "Revised the plan to resolve the blocking design gaps: mixed-mode now has a pre-arrange capability signal and is enabled by default for source briefs, top-level --dry-run is mandatory and precisely defined, transcript-dependent steps are guarded by manifest predicates instead of being selected for image-only runs, and the mixed cut test now covers the exact currently-forbidden --video plus generated visual caller shape.",
"status": "verified",
"severity": "significant"
},
{
"id": "FLAG-003",
"concern": "Step selection: transcript-dependent step gating remains under-specified because the current manifests do not contain enough conditions or required inputs to express the proposed selector predicates.",
"evidence": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called.",
"status": "verified",
"severity": "significant"
},
{
"id": "FLAG-004",
"concern": "Manifest capabilities: produces_for is still being used as relevance/compatibility metadata for steps that do not produce clips, which may confuse future registry behavior unless the field is documented carefully or renamed.",
"evidence": "The revised plan keeps the produces_for name while using it for steps such as transcribe, scenes, quality_zones, refine, and validate, which produce analysis artifacts or reports rather than clip kinds.",
"status": "verified",
"severity": "minor"
},
{
"id": "verifiability-0",
"concern": "Criterion 16: requires human verification (subjective_judgment).",
"evidence": "",
"status": "open",
"severity": "minor"
},
{
"id": "issue_hints-1",
"concern": "Did the work fully address the issue hints, user notes, and approved plan requirements?: Checked the plan against the explicit smoke requirement for python3 -m artagents ... --dry-run. The current top-level hype parser in artagents/pipeline.py has no --dry-run, and the plan's Step 9 says to add it only "if it is truly required" even though the brief lists those dry-run invocations as success criteria.",
"evidence": "Revised the plan to resolve the blocking design gaps: mixed-mode now has a pre-arrange capability signal and is enabled by default for source briefs, top-level --dry-run is mandatory and precisely defined, transcript-dependent steps are guarded by manifest predicates instead of being selected for image-only runs, and the mixed cut test now covers the exact currently-forbidden --video plus generated visual caller shape.",
"status": "verified",
"severity": "significant"
},
{
"id": "issue_hints-2",
"concern": "Did the work fully address the issue hints, user notes, and approved plan requirements?: Checked the GENERATIVE_IMAGE wording against Phase 2 runtime kinds in artagents/timeline.py; the code exposes ClipClassifiedKind.IMAGE, not a generative-specific enum member. The plan assumes generated images can be represented as IMAGE plus pool provenance, which may be acceptable, but it is a deliberate divergence from the deliverable wording and needs to be locked down in the test fixture assertions.",
"evidence": "Revised the plan to resolve the blocking design gaps: mixed-mode now has a pre-arrange capability signal and is enabled by default for source briefs, top-level --dry-run is mandatory and precisely defined, transcript-dependent steps are guarded by manifest predicates instead of being selected for image-only runs, and the mixed cut test now covers the exact currently-forbidden --video plus generated visual caller shape.",
"status": "verified",
"severity": "significant"
},
{
"id": "correctness-1",
"concern": "Are the proposed changes technically correct?: Checked the proposed pipeline_requirements use for arrange against the new --no-generative-effects opt-out. The plan says arrange requires brief, pool, and generative_visuals_enabled only when generative entries need to be exposed, but the proposed manifest shape is static; if generative_visuals_enabled is a static requirement on arrange, source-cut opt-out runs would skip arrange entirely, while if it is not required, the selector cannot express the conditional phrase.",
"evidence": "Resolved the remaining selector-spec gaps: arrange no longer statically requires generative_visuals_enabled, that fact only controls command construction and pool exposure; render is explicitly aligned with downstream rendered_video requirements by updating graph.provides and adding a temporary selector mapping; and the capability field is renamed to clip_kinds_supported to avoid implying every pipeline step literally produces clips.",
"status": "verified",
"severity": "significant"
},
{
"id": "correctness-2",
"concern": "Are the proposed changes technically correct?: Checked render/post-render fact propagation against current manifests: render currently has graph provides: [\"video\"], while the new requirement allowlist and downstream plan use rendered_video. The plan needs either a manifest update to provide rendered_video or an explicit selector mapping from render's existing video provide/output to the rendered_video fact.",
"evidence": "Resolved the remaining selector-spec gaps: arrange no longer statically requires generative_visuals_enabled, that fact only controls command construction and pool exposure; render is explicitly aligned with downstream rendered_video requirements by updating graph.provides and adding a temporary selector mapping; and the capability field is renamed to clip_kinds_supported to avoid implying every pipeline step literally produces clips.",
"status": "verified",
"severity": "significant"
},
{
"id": "scope",
"concern": "Search for related code that handles the same concept. Is the reported issue a symptom of something broader?: Checked the revised scope against existing arrange tests that verify generative entries are allowed only when explicitly enabled. The plan now chooses to enable them for source-video briefs by default and update those tests; that is in scope for mixed-mode, but it is also a broad behavior change that should be documented as the new default rather than treated as pure internal cleanup.",
"evidence": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called.",
"status": "verified",
"severity": "significant"
},
{
"id": "all_locations",
"concern": "Does the change touch all locations AND supporting infrastructure?: Checked current graph provides names for the planned runtime facts. Most map directly (transcript, pool, arrangement, timeline), but rendered output is currently named video in artagents/executors/render/executor.yaml; without updating or mapping this location, downstream rendered_video requirements will not become satisfied.",
"evidence": "Resolved the remaining selector-spec gaps: arrange no longer statically requires generative_visuals_enabled, that fact only controls command construction and pool exposure; render is explicitly aligned with downstream rendered_video requirements by updating graph.provides and adding a temporary selector mapping; and the capability field is renamed to clip_kinds_supported to avoid implying every pipeline step literally produces clips.",
"status": "verified",
"severity": "significant"
},
{
"id": "callers",
"concern": "Find the callers of the changed function. What arguments do they actually pass? Does the fix handle all of them?: Checked dry-run caller expectations against pool_main(): the plan says dry-run prepares directories and copied brief, computes commands, and skips child executors. That is sufficient for top-level CLI smokes, but tests should assert run_step is not called because existing pipeline tests commonly patch pipeline.run_step and would otherwise miss accidental execution in dry-run.",
"evidence": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called.",
"status": "verified",
"severity": "significant"
},
{
"id": "FLAG-005",
"concern": "Backwards compatibility: enabling generative visual candidates by default for every source-video brief is a broad behavior change from current source-cut semantics and needs an explicit compatibility decision or opt-out.",
"evidence": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called.",
"status": "verified",
"severity": "significant"
},
{
"id": "FLAG-006",
"concern": "Dry-run verification: the plan defines dry-run behavior but should explicitly test that no child executor is launched.",
"evidence": "Existing pipeline tests patch pipeline.run_step to observe execution; Step 9 says dry-run does not launch child executors, but the planned tests only mention shell smokes and plan artifacts, not an assertion that run_step or subprocess execution is skipped.",
"status": "verified",
"severity": "minor"
},
{
"id": "issue_hints",
"concern": "Did the work fully address the issue hints, user notes, and approved plan requirements?: Checked the backwards-compatibility note against the revised default that every source-video run with a brief contributes generative visual intent. That intentionally changes source-run behavior, including a current test named test_source_cut_step_list_keeps_generative_effects_out_of_arrange, so the plan should treat this as an explicit compatibility break or add a source-only opt-out rather than only saying CLI syntax remains stable.",
"evidence": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called.",
"status": "verified",
"severity": "significant"
},
{
"id": "correctness",
"concern": "Are the proposed changes technically correct?: Checked current manifests for the revised selector's proposed manifest predicates: refine, editor_review, validate, quote_scout, triage, scene_describe, and pool_build currently have empty conditions or optional inputs, while refine.run still requires --transcript. The plan says to use manifest conditions/input availability to avoid image-only transcript-dependent steps, but it does not define the concrete new manifest predicate schema or required manifest edits that make this reliable.",
"evidence": "Added a concrete manifest requirement schema (pipeline_requirements) so transcript-dependent gating is no longer hand-waved, made the source-video generative default an explicit Phase 3 behavior change with a --no-generative-effects compatibility opt-out, and strengthened dry-run validation so tests patch the moved orchestrator owner and assert run_step is never called.",
"status": "verified",
"severity": "significant"
},
{
"id": "FLAG-007",
"concern": "Pipeline requirements: conditional use of generative_visuals_enabled for arrange is not representable in the proposed static pipeline_requirements shape.",
"evidence": "Resolved the remaining selector-spec gaps: arrange no longer statically requires generative_visuals_enabled, that fact only controls command construction and pool exposure; render is explicitly aligned with downstream rendered_video requirements by updating graph.provides and adding a temporary selector mapping; and the capability field is renamed to clip_kinds_supported to avoid implying every pipeline step literally produces clips.",
"status": "verified",
"severity": "significant"
},
{
"id": "FLAG-008",
"concern": "Pipeline requirements: downstream rendered_video facts do not match the current render manifest's graph.provides / output name.",
"evidence": "Resolved the remaining selector-spec gaps: arrange no longer statically requires generative_visuals_enabled, that fact only controls command construction and pool exposure; render is explicitly aligned with downstream rendered_video requirements by updating graph.provides and adding a temporary selector mapping; and the capability field is renamed to clip_kinds_supported to avoid implying every pipeline step literally produces clips.",
"status": "verified",
"severity": "significant"
}
]
Requirements:
- Produce structured JSON only.
- `tasks` must be an ordered array of task objects. Every task object must include:
- `id`: short stable task ID like `T1`
- `description`: concrete work item
- `depends_on`: array of earlier task IDs or `[]`
- `status`: always `"pending"` at finalize time
- `executor_notes`: always `""` at finalize time
- `reviewer_verdict`: always `""` at finalize time
- `watch_items` must be an array of strings covering runtime risks, critique concerns, and assumptions to keep visible during execution.
- `sense_checks` must be an array with one verification question per task. Every sense-check object must include:
- `id`: short stable ID like `SC1`
- `task_id`: the related task ID
- `question`: reviewer verification question
- `verdict`: always `""` at finalize time
- `user_actions` must be an array of human-only setup or operational actions. Use IDs `U1`, `U2`, ... and include `description` plus `phase` (`before_execute` or `after_execute`). Use optional `blocks_task_ids` when an action blocks specific tasks, optional `rationale` when useful, and `requires_human_only_reason` ONLY when the user_action is the sole coverage for a plan step.
Include ONLY actions that require a human outside the executor's repo-editing work: env vars or secrets, infra access such as cloud accounts or VPN, DB migrations the human must trigger, manual UI/UX smoke tests, deploys, and out-of-band approvals.
Anything that touches code in the repo MUST be a task, not a user_action. Reading docs, editing files, running tests, and writing migration SQL are tasks. Negative example: writing the migration SQL is a task, not a user_action.
Positive examples: U1: Set ANTHROPIC_API_KEY in .env (before_execute); U2: Manually smoke test the production deploy in the browser (after_execute).
- meta_commentary must be a single string with execution guidance, gotchas, or judgment calls that help the executor succeed.
- validation must be an object that self-checks plan coverage:
- plan_steps_covered: enumerate EVERY step from the approved plan. For each step, provide a short plan_step_summary (the step's intent in one phrase) and finalize_item_ids (array of task IDs T* or user_action IDs U* that implement or cover it — a single plan step may map to multiple tasks and/or user_actions).
- orphan_tasks: task IDs that do not correspond to any plan step. Normally empty. If non-empty, explain in completeness_notes.
- completeness_notes: free-text explanation of any gaps, deviations, or deliberate omissions.
- coverage_complete: set to true only if every plan step has at least one finalize task or user_action AND you have verified the mapping by reviewing each entry. Set to false if any plan step is missing coverage.
- Example:
json "validation": { "plan_steps_covered": [ {"plan_step_summary": "Add retry logic to API client", "finalize_item_ids": ["T1", "T2"]}, {"plan_step_summary": "Set required production secret", "finalize_item_ids": ["U1"]} ], "orphan_tasks": [], "completeness_notes": "All plan steps mapped to tasks.", "coverage_complete": true }
- Preserve information that strong existing artifacts already capture well: execution ordering, watch-outs, reviewer checkpoints, and practical context.
- The structured output should be self-contained: an executor reading only finalize.json should have everything needed to work.
- Keep the task count proportional to the work. A simple 1-2 file fix should be 2 tasks: (1) apply the fix, (2) run tests. Do NOT create separate "inspect" or "read" tasks for simple changes — the executor can read and fix in one step. Only create more tasks when the work has genuinely independent stages.
- - The FINAL task MUST always be to run tests and verify the changes work. If specific test IDs or commands are mentioned in the original task, include them. Otherwise, the executor should find and run the tests most relevant to the files changed. If any test fails, read the error, fix the code, and re-run until they pass. Do NOT create new test files — run the project's existing test suite. Additionally, the executor should write a short throwaway script that reproduces the specific bug described in the task, run it to confirm the fix works, then delete the script.
{"tasks":[{"id":"T1","description":"Establish baseline from repo root: confirm git status --short, stash any unexpected local work with a clearly named Phase 3 stash, run python3 -m artagents doctor, python3 -m artagents orchestrators list, python3 -m artagents executors list, and run focused baseline tests for pipeline caching/editor loop/pure-generative behavior. Record current selected step lists for source-video, audio-only, and pure-generative runs before changing selection.","depends_on":[],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T2","description":"Move hype orchestration ownership from artagents/pipeline.py into artagents/orchestrators/hype/run.py with behavior unchanged: parser, Step dataclass, command builders, sentinels/cache, audit/preflight/editor loop, pool_main(), and compatibility aliases for existing imports. Reduce pipeline.py to the package CLI router while preserving top-level legacy hype invocation through the new hype module.","depends_on":["T1"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T3","description":"Update built-in runner and hype orchestrator manifest coupling: point executor runner pipeline helpers and the 15 hype executor metadata.command_builder references at artagents.orchestrators.hype.run.build_pool_steps, update artagents/orchestrators/hype/orchestrator.yaml entrypoint/runtime module to the hype run module, and verify list/inspect still expose builtin.hype correctly.","depends_on":["T2"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T4","description":"Extend executor manifest parsing/validation in artagents/executors/schema.py for optional clip_kinds_supported and pipeline_requirements. Normalize clip kinds to Phase 2 runtime enum values, validate requirement facts against the approved allowlist, optionally accept deprecated produces_for as a parse-only alias, and add schema tests for valid round-trip, inspect output, invalid clip kind, invalid requirement fact, and alias normalization.","depends_on":["T3"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T5","description":"Add clip_kinds_supported and pipeline_requirements to the 15 hype pipeline executor manifests: transcribe, scenes, quality_zones, shots, triage, scene_describe, quote_scout, pool_build, pool_merge, arrange, cut, refine, render, editor_review, validate. Keep graph/topological metadata intact, make arrange require only brief+pool, and update render graph metadata so rendered_video is provided while preserving the existing output port named video.","depends_on":["T4"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T6","description":"Implement manifest-driven hype step selection in artagents/orchestrators/hype/run.py: load registry executors with metadata.pipeline_step, compute runtime facts, compute capability intent, select steps by clip_kinds_supported plus pipeline_requirements, preserve topological order via manifest metadata with old STEP_ORDER only as fallback, propagate graph-provided facts including temporary video to rendered_video compatibility for render, and make --from/--skip operate against the computed selected set with clear errors.","depends_on":["T5"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T7","description":"Unify runtime intent and command construction: replace mode-filtered build_steps(args) behavior with computed clip-kind intent, make source-video/source-audio briefs enable generative visual intent by default, add top-level --no-generative-effects opt-out, pass --allow-generative-effects to arrange only when the runtime fact is enabled, preserve --no-audio and target-duration semantics, and update CLI help/tests to document the Phase 3 default.","depends_on":["T6"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T8","description":"Add mandatory top-level hype --dry-run: perform normal argument resolution, brief prep/copy, non-downloading URL checks, capability/step selection, skip/from handling, command construction, and write <out>/hype.plan.json with selected steps, skipped steps, redacted commands, expected sentinels, runtime facts, and capability intent. Ensure dry-run never calls run_step; tests should patch artagents.orchestrators.hype.run.run_step directly.","depends_on":["T7"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T9","description":"Remove production mixed-mode rejections from arrange/cut/refine: stop using is_all_generative_arrangement() or arrangement_uses_generative_visuals() as source-vs-generative mode boundaries, remove the cut rejection for --video plus generated visual arrangement clips, base duration/input decisions on actual required inputs and target duration, and keep persisted timeline JSON Reigh-compatible with no clip.kind.","depends_on":["T8"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T10","description":"Add/update focused tests for unified selection, dry-run, source default mixed-mode intent, --no-generative-effects, no-audio image-only transcript gating, render-to-rendered_video fact propagation, and --from absent-step errors. Migrate hype-internal test imports from artagents.pipeline to artagents.orchestrators.hype.run, leaving package-router tests on pipeline.main.","depends_on":["T9"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T11","description":"Add mixed-mode arrange/cut/render-plan fixtures: build a pool/arrangement mixing a source-backed video/dialogue clip with a generated image or text-card visual, mock arrange LLM response as needed, run cut.main() with --video and generated visual sources, assert Timeline.load() has no persisted clip.kind, assert runtime classifications include VIDEO and IMAGE/effect/text, and verify generative provenance through pool/asset data rather than a new enum.","depends_on":["T10"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T12","description":"Run cleanup and grep gates: ensure production orchestration no longer uses is_all_generative_arrangement or if args.video/if args.audio as step-dispatch mode forks, confirm pipeline.py is substantially reduced around the 200-line target, confirm orchestrators list/inspect builtin.hype --json report artagents.orchestrators.hype.run, and restore any initially stashed unrelated user work without overwriting Phase 3 edits.","depends_on":["T11"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null},{"id":"T13","description":"Final verification and publication: run focused schema/selector/dry-run/mixed-mode/timeline round-trip tests, run the accepted suite pytest tests/ -q --ignore=tests/test_pool_schema.py --deselect tests/test_cut_timeline_resume.py::CutTimelineResumeTest::test_resume_mode_render_smoke, run CLI smokes including the three required top-level --dry-run shapes, create and run a short throwaway script that reproduces the mixed-mode source-video plus generated-visual planning/cut path, delete the script, fix and rerun on failures, then commit and push directly to main once validation is green.","depends_on":["T12"],"status":"pending","executor_notes":"","files_changed":[],"commands_run":[],"auto_attributed_files":null,"evidence_files":[],"reviewer_verdict":"","stance":null,"stop_signal":null}],"watch_items":["Do not invoke nested megaplan or read/activate the megaplan skill; this is already inside the planning harness.","Keep extraction behavior-preserving before selector/schema changes so regressions are isolatable.","Do not persist clip.kind or add schema-package clip kinds; generated images are runtime ClipClassifiedKind.IMAGE plus provenance.","clip_kinds_supported describes step applicability, not literal production; keep it separate from pipeline_requirements.","generative_visuals_enabled must not be a static requirement for arrange; it only controls command construction and generative pool exposure.","Source-video/source-audio briefs enabling generative visuals by default is intentional Phase 3 behavior; --no-generative-effects is the opt-out and must still select arrange.","No-audio image-only pure-generative runs must skip transcript-dependent stages unless facts satisfy their manifest requirements.","Render must satisfy downstream rendered_video through updated manifest metadata and temporary video compatibility mapping.","--from is evaluated against the computed selected set; absent selected step should error clearly while globally unknown steps remain invalid.","Dry-run must not call run_step or launch child executors; tests must patch the moved owner module, not only artagents.pipeline.","Full MP4 rendering can remain under existing environment gates; mocked/dry-run render-plan validation is acceptable where repo conventions already gate render.","Treat protected curated stage docs such as moirae/vibecomfy as out of scope.","If unexpected local work exists at start, stash it clearly and restore at end without reverting user changes."],"sense_checks":[{"id":"SC1","task_id":"T1","question":"Did baseline start from a clean or safely stashed worktree, and are the current source-video/audio-only/pure-generative selected step lists captured before changing behavior?","executor_note":"","verdict":""},{"id":"SC2","task_id":"T2","question":"Does artagents/orchestrators/hype/run.py own the real hype orchestration implementation while artagents/pipeline.py only routes commands and preserves legacy imports?","executor_note":"","verdict":""},{"id":"SC3","task_id":"T3","question":"Do executor runner references, command-builder metadata, and builtin.hype inspect output point to artagents.orchestrators.hype.run without breaking CLI list/inspect?","executor_note":"","verdict":""},{"id":"SC4","task_id":"T4","question":"Do executor definitions validate and normalize clip_kinds_supported/pipeline_requirements, reject bad values, and expose valid fields in to_dict()/inspect JSON?","executor_note":"","verdict":""},{"id":"SC5","task_id":"T5","question":"Do all 15 hype executor manifests declare the correct capabilities and requirement facts, with arrange not requiring generative_visuals_enabled and render providing rendered_video?","executor_note":"","verdict":""},{"id":"SC6","task_id":"T6","question":"Is step inclusion driven by registry manifest capabilities plus requirement facts rather than hardcoded source-vs-generative branches, while preserving the old topological order for equivalent step sets?","executor_note":"","verdict":""},{"id":"SC7","task_id":"T7","question":"Does source-video default include generative visual intent and arrange --allow-generative-effects, while --no-generative-effects omits that flag but still selects arrange?","executor_note":"","verdict":""},{"id":"SC8","task_id":"T8","question":"Do all dry-run paths create <out>/hype.plan.json with selected steps/commands/facts/sentinels and prove run_step is never called?","executor_note":"","verdict":""},{"id":"SC9","task_id":"T9","question":"Can arrange/cut/refine accept mixed source and generated visual inputs without adding persisted clip.kind or relying on all-generative/source-only rejection helpers?","executor_note":"","verdict":""},{"id":"SC10","task_id":"T10","question":"Do updated tests pin selector behavior for source default, opt-out, image-only transcript gating, render fact propagation, dry-run, and dynamic --from semantics?","executor_note":"","verdict":""},{"id":"SC11","task_id":"T11","question":"Does the mixed-mode fixture exercise the formerly forbidden --video plus generated visual cut path and prove runtime classification plus provenance without schema changes?","executor_note":"","verdict":""},{"id":"SC12","task_id":"T12","question":"Do grep gates show no production step-dispatch forks on is_all_generative_arrangement or if args.video/if args.audio, and is pipeline.py substantially shrunk?","executor_note":"","verdict":""},{"id":"SC13","task_id":"T13","question":"Did focused tests, accepted full suite exclusions, CLI smokes, three dry-run smokes, throwaway reproduction script, and final push to main all complete successfully?","executor_note":"","verdict":""}],"user_actions":[],"meta_commentary":"Execute in small, reviewable patches: first extract ownership without behavior changes, then schema/manifests, then dynamic selector and dry-run, then mixed-mode executor changes and tests. The highest-risk edges are --no-generative-effects still selecting arrange, no-audio image-only runs not selecting transcript-dependent stages, and render fact propagation to rendered_video. Keep Reigh compatibility front and center: no persisted clip.kind, no timeline schema package edits, and generated-image identity comes from provenance plus runtime ClipClassifiedKind.IMAGE. The final validation must include the accepted suite excluding the two documented failures and the three top-level dry-run smoke shapes.","validation":{"plan_steps_covered":[{"plan_step_summary":"Step 1: Establish current gates and baseline selected step behavior","finalize_item_ids":["T1"]},{"plan_step_summary":"Step 2: Move hype orchestration into hype orchestrator and slim pipeline router","finalize_item_ids":["T2"]},{"plan_step_summary":"Step 3: Update built-in executor runner coupling and hype entrypoint metadata","finalize_item_ids":["T3"]},{"plan_step_summary":"Step 4: Add clip_kinds_supported and pipeline_requirements to executor schema","finalize_item_ids":["T4"]},{"plan_step_summary":"Step 5: Declare capabilities and requirements in hype executor manifests","finalize_item_ids":["T5"]},{"plan_step_summary":"Step 6: Build manifest-driven hype step selector","finalize_item_ids":["T6"]},{"plan_step_summary":"Step 7: Compute pre-arrange capability intent and compatibility opt-out","finalize_item_ids":["T7"]},{"plan_step_summary":"Step 8: Make arrange command construction follow runtime intent","finalize_item_ids":["T7","T10"]},{"plan_step_summary":"Step 9: Add mandatory top-level dry-run","finalize_item_ids":["T8","T13"]},{"plan_step_summary":"Step 10: Remove mixed-mode production rejections in arrange/cut/refine","finalize_item_ids":["T9"]},{"plan_step_summary":"Step 11: Add mixed-mode arrange tests","finalize_item_ids":["T10","T11"]},{"plan_step_summary":"Step 12: Add mixed-mode cut and render-plan fixture","finalize_item_ids":["T11"]},{"plan_step_summary":"Step 13: Update tests and grep gates","finalize_item_ids":["T10","T12"]},{"plan_step_summary":"Step 14: Run focused validation, accepted suite, CLI smokes, dry-run smokes, grep gates, and publish","finalize_item_ids":["T13"]}],"orphan_tasks":[],"completeness_notes":"All approved plan steps map to at least one executor task. No human-only actions are required because repo edits, tests, smokes, commit, and direct push are executor work in the writable workspace. Final task includes the requested throwaway reproduction script creation/run/deletion and full verification loop.","coverage_complete":true},"baseline_test_failures":["tests/test_pool_schema.py","tests/test_cut_timeline_resume.py::CutTimelineResumeTest::test_resume_mode_render_smoke"],"baseline_test_command":"pytest tests/test_pipeline_caching.py tests/test_pipeline_editor_loop.py tests/test_pure_generative_pipeline.py -q","baseline_test_note":"Accepted full validation command is pytest tests/ -q --ignore=tests/test_pool_schema.py --deselect tests/test_cut_timeline_resume.py::CutTimelineResumeTest::test_resume_mode_render_smoke; the two listed failures are documented pre-existing exclusions."}