feat: custom pipeline stages + pluggable handlers#5
Open
terraboops wants to merge 1 commit intomainfrom
Open
Conversation
Ship the custom-stages spec: user-defined `stages → role_groups → roles` pipelines, JSON-in/out handler contract (agent/script/webhook/human/k8s_job), atomic role execution via baseline+rollback, watcher scope and reactivation from the `done` sentinel, and the UI surfaces to operate it all. Backwards-compatible: legacy `pipeline.agents`/`post_ready`/`parallel_groups` migrates on read; scheduler dual-reads the legacy status fields while mirror writing the new `role_state` tree. 453 pytest cases + 9 Playwright flows cover the new behaviours end-to-end. See FEATURES.md for the full behaviour catalogue. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Ships the custom-stages spec in full: user-defined
stages → role_groups → rolespipelines, JSON-in/out handler contract (agent/script/webhook/human/k8s_job), atomic role execution via baseline+rollback, watcher scope with done-stage reactivation, and the UI surfaces to operate it all.stages[]+role_groups[][]withdonesentinel, backwards-compatible with today'sagents/post_ready/parallel_groupsvia on-read migration.HandlerABC with five concrete types; scheduler dispatches throughnext_roles_in_current_stage(role-group parallelism) and mirrors state into arole_statetree.BlackboardSnapshot+ crash recovery on startup, git used as a patch primitive (no.gitdirs in idea folders)."*"/ role-names /done) andreactivate+add_stagepayloads for re-opening done ideas.+ Add stageaffordance + rename endpoint.POST /ideas/{id}/roles/{role}/retry,POST /ideas/{id}/stages,POST /ideas/{id}/stages/{name}/rename,trellis retryCLI.See
FEATURES.mdfor the exhaustive 176-behaviour catalogue.Test plan
tests/test_browser_custom_stages.py🤖 Generated with Claude Code