feat(pipeline): add proposal engine for context-aware pipeline sequencing#218
Open
nextlevelshit wants to merge 4 commits intomainfrom
Open
feat(pipeline): add proposal engine for context-aware pipeline sequencing#218nextlevelshit wants to merge 4 commits intomainfrom
nextlevelshit wants to merge 4 commits intomainfrom
Conversation
Add tiered execution support to MatrixStrategy, enabling items with dependencies to execute in topologically-sorted tiers. Items within a tier run in parallel; tiers execute sequentially. New MatrixStrategy fields: - item_id_key: dot-path to unique ID field in each item - dependency_key: dot-path to dependency array in each item - child_pipeline: name of pipeline to invoke per item (Phase 2) - input_template: Go template for constructing input (Phase 2) New MatrixResult fields: Skipped, SkipReason, ItemID Implementation uses Kahn's algorithm (BFS topological sort) to compute tiers. Dependency failure propagation skips downstream items but allows unrelated items to continue. 6 new tests covering independent items, linear chains, diamond dependencies, dependency failure propagation, cycle detection, and missing dependency validation.
Add the ability for matrix strategy steps to invoke a full child pipeline per matrix item instead of executing a single step. This enables the gh-implement-epic pipeline to fan out gh-implement runs per subissue. Key additions: - NewChildExecutor() factory on DefaultPipelineExecutor for independent state - ChildPipeline field on MatrixStrategy to name or path a child pipeline - InputTemplate field with Go text/template rendering for item → input - Refactored tieredExecution to accept a matrixWorkerFunc for reuse - 5 new tests: LoadsAndExecutes, InputTemplate, WithTiers, PartialFailure, NotFound
New pipeline that consumes gh-scope output and implements all subissues by fanning out parallel gh-implement child pipeline runs, respecting the dependency ordering from the scope plan. Pipeline steps: - fetch-scope: parse epic's scope comment, extract subissues + deps - implement-subissues: matrix strategy with child_pipeline + dependency tiers - report: post implementation summary comment on parent epic Includes: - Pipeline YAML with matrix strategy using child_pipeline and dependency_key - Prompt files for fetch-scope and report steps - Contract schemas for epic-scope-plan and epic-report - Mock adapter output for testing (gh-implement-epic routing before gh-implement)
…cing (#208) Implement a separate proposal engine package (internal/pipeline/proposal/) that consumes codebase health analysis artifacts and the pipeline catalog to produce structured, prioritized pipeline execution proposals. Key components: - Core types with ForgeType enum, HealthArtifact, ProposalItem, Proposal - Pipeline catalog discovery with YAML parsing and deduplication - Forge-type filtering by pipeline name prefix (gh-*, gl-*, gt-*, bb-*) - Relevance scoring via Scorer interface with DefaultScorer mapping health signals to pipeline recommendations - Engine with dependency edge construction and parallel group assignment - JSON Schema contract for the proposal output artifact Design decision: built as a separate package rather than extending MetaPipelineExecutor, since the proposal engine performs deterministic pipeline selection (pure Go) vs the meta executor's LLM-based generation.
15 tasks
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
Closes #208
Changes
Proposal Engine (
internal/pipeline/proposal/)Proposal,ProposalItem,HealthArtifact,PipelineCatalogEntry,DependencyEdgeMatrix Executor Enhancements (
internal/pipeline/)ChildPipelineResulttype for tracking invoked pipeline outcomesEpic Pipeline (
.wave/pipelines/,.wave/contracts/,.wave/prompts/)Specifications (
specs/208-pipeline-proposal-engine/)Test Plan
go test ./...and pass