Refactor pipeline to stage/step model with shared PIPELINE definition#88
Merged
nicpottier merged 3 commits intomainfrom Feb 19, 2026
Merged
Refactor pipeline to stage/step model with shared PIPELINE definition#88nicpottier merged 3 commits intomainfrom
nicpottier merged 3 commits intomainfrom
Conversation
Introduce a shared pipeline definition (stages + steps) in @adt/types that serves as the single source of truth for both execution order and UI display. Replace the sequential runPipeline/runProof/runMaster CLI flow with a DAG runner that respects inter-stage and intra-stage dependencies, enabling parallel execution where possible. - Add packages/types/src/pipeline.ts with StepName/StageName enums, PIPELINE definition, and derived lookups - Add generic runDAG executor and runPipelineDAG wrapper with 26 tests - Add runFullPipeline with individual step executors for all 17 steps - Rewrite CLI to use DAG runner with pre-created grouped progress bars
- All step/stage topology now derived from PIPELINE in @adt/types (DRY) - Rename StepRunCard → StageRunCard, sub-steps derived from PIPELINE - Rename components/v2/steps/ → components/v2/stages/ - Rename image-classification step → image-filtering - Update image-meaningfulness label to "Image Meaningfulness" - Merge translations + TTS into single text-and-speech stage runner - Add @adt/types as studio workspace dependency
- CLAUDE.md: Add Pipeline Architecture section, @adt/types import exception - GUIDELINES.md: Add Pipeline Architecture subsection, update key files, progress reporting, code duplication warning, layer rule exception - DECISIONS.md: Add ADR 017 (Two-Level DAG Pipeline), update ADR 006 to reflect Tauri v2 decision
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PIPELINEconstant in@adt/types.PIPELINE. No more hardcoded step ordering in multiple places.StepRunCard→StageRunCard,components/v2/steps/→components/v2/stages/,image-classification→image-filtering,image-meaningfulnesslabel updated to "Image Meaningfulness".text-and-speechstage runner, eliminating duplicate text catalog building.Test plan
pnpm typecheckpassespnpm test— 662 tests pass