Implements deterministic feature lifecycle management for agent-driven
development. Agents use the CLI in pods; operators control via REST API.
Library (internal/sdlc/):
- Feature lifecycle with 10 phases (draft → released)
- Classifier engine with priority-ordered rules
- Artifact tracking with approval workflow
- Task management within features
- YAML-based state persistence
CLI (cmd/sdlc/):
- init, state, next, feature, artifact, task, query commands
- --json flag for machine-readable output
- Runs inside project pods
API (21 endpoints under /projects/{id}/sdlc/):
- State: GET /state, GET /next
- Features: CRUD + transition/block/unblock
- Artifacts: approve/reject per type
- Tasks: add/start/complete/block
- Queries: blocked/ready/needs-approval
Architecture:
- Port: SDLCExecutor interface (internal/port/)
- Adapter: kubectl exec into pods (internal/adapter/kubernetes/)
- Service: pod resolution + logging (internal/service/)
- Handlers: 5 files under 500-line limit (internal/handlers/)
Also includes template upgrades (chassis framework, UI components,
OpenAPI helpers, backend/frontend guides) and component improvements.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 lines
669 B
Go
17 lines
669 B
Go
package sdlc
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrNotInitialized = errors.New("sdlc not initialized: run 'sdlc init'")
|
|
ErrFeatureNotFound = errors.New("feature not found")
|
|
ErrFeatureExists = errors.New("feature already exists")
|
|
ErrInvalidSlug = errors.New("invalid slug: must be lowercase alphanumeric with hyphens")
|
|
ErrInvalidTransition = errors.New("invalid phase transition")
|
|
ErrInvalidPhase = errors.New("invalid phase")
|
|
ErrInvalidArtifact = errors.New("invalid artifact type")
|
|
ErrTaskNotFound = errors.New("task not found")
|
|
ErrArtifactNotFound = errors.New("artifact not found")
|
|
ErrNoFeatures = errors.New("no features found")
|
|
)
|