Skip to content

Pipeline-as-code: configurable workflow definitions #279

Closed

Description

@admarble

Summary

Allow users to define custom workflow pipelines via YAML/JSON configuration files instead of being locked to the default spec → exec → test → qa → docs → merge sequence.

This is the foundational step toward fully customizable AI-assisted development workflows. Sequant's phase isolation architecture (clean input/output boundaries via state.json, env vars, issue comments) already behaves like a node graph defined in code — this feature surfaces that as a user-facing configuration layer.

Motivation

  • Teams have different workflows for different issue types (bugs vs features vs refactors)
  • Some phases are unnecessary for certain work (e.g., docs for a one-line fix)
  • Enterprise teams need to insert custom phases (security review, compliance checks, manager approval)
  • Power users want to add custom skills as pipeline phases
  • Currently the only way to customize is to manually run individual slash commands

Proposed Design

A .sequant/workflows/ directory with YAML definitions:

# .sequant/workflows/feature.yaml
name: feature
description: Standard feature development workflow

phases:
  - skill: spec
    required: true
  - skill: exec
    required: true
    retry: 2
  - skill: test
    required: true
  - skill: security-review
    when: labels.includes('security')
  - skill: qa
    required: true
  - skill: docs
    when: size != 'small'
  - skill: merge
    required: true
# .sequant/workflows/hotfix.yaml
name: hotfix
description: Fast-track for urgent fixes

phases:
  - skill: exec
    required: true
  - skill: test
    required: true
  - skill: qa
    required: true
  - skill: merge
    required: true

Key Capabilities

  • Phase ordering — define which phases run and in what order
  • Conditional phases — skip phases based on issue labels, size, or custom flags
  • Retry logic — configure retry attempts per phase
  • Custom skills as phases — reference user-defined skills in .claude/skills/
  • Workflow selection — auto-select workflow based on issue labels, or explicit --workflow hotfix
  • Validation — sequant validate to check workflow definitions before use
  • Default fallback — without config, current behavior is preserved exactly

What This Enables Later

This config format becomes the serialization layer for a future visual node builder (#280). The YAML is the source of truth; any future UI is just a view on top of it.

Scope

  • Define workflow schema (YAML format, validation rules)
  • Workflow loader with fallback to built-in default
  • Conditional phase evaluation engine
  • --workflow flag for /fullsolve and /solve
  • sequant validate command for workflow files
  • Built-in workflow templates (feature, hotfix, refactor)
  • Documentation

Out of Scope

Labels

enhancement, roadmap

Activity

  1. added
    enhancement
    on Feb 12, 2026
  2. admarble commented on Feb 22, 2026

    @admarble
    ContributorAuthor

    Closing per issue audit. The default pipeline needs to be rock-solid before making it configurable. Premature complexity — revisit post-2.0 when the core workflow is mature and there's real user demand for custom pipelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions