chati-dev 4.5.11 → 4.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/config.yaml +2 -2
- package/framework/constitution.md +21 -22
- package/framework/context/root.md +1 -1
- package/framework/data/entity-registry.yaml +1 -1
- package/framework/domains/constitution.yaml +1 -1
- package/framework/domains/workflows/brownfield-fullstack.yaml +5 -3
- package/framework/domains/workflows/brownfield-service.yaml +2 -3
- package/framework/domains/workflows/brownfield-ui.yaml +2 -3
- package/framework/domains/workflows/greenfield-fullstack.yaml +5 -3
- package/framework/domains/workflows/quick-flow.yaml +7 -6
- package/framework/domains/workflows/standard-flow.yaml +4 -5
- package/framework/frameworks/quality-dimensions.yaml +3 -3
- package/framework/manifest.json +37 -37
- package/framework/manifest.sig +1 -1
- package/framework/schemas/session.schema.json +1 -1
- package/framework/workflows/brownfield-fullstack.yaml +17 -123
- package/framework/workflows/brownfield-service.yaml +15 -109
- package/framework/workflows/brownfield-ui.yaml +15 -115
- package/framework/workflows/greenfield-fullstack.yaml +17 -130
- package/framework/workflows/quick-flow.yaml +20 -111
- package/framework/workflows/standard-flow.yaml +14 -158
- package/package.json +1 -1
- package/src/config/claude-settings-generator.js +4 -3
- package/src/config/context-file-generator.js +10 -1
- package/src/config/framework-adapter.js +31 -0
- package/src/installer/core.js +89 -8
- package/src/installer/templates.js +33 -3
- package/src/installer/validator.js +8 -2
- package/src/intelligence/registry-manager.js +11 -4
- package/src/orchestrator/cli.js +54 -28
- package/src/terminal/handoff-parser.js +23 -4
- package/src/terminal/prompt-builder.js +15 -1
- package/src/terminal/provider-preflight.js +78 -0
- package/src/terminal/run-agent.js +66 -23
- package/src/terminal/spawner.js +5 -1
- package/src/utils/schema-validator.js +5 -2
- package/src/wizard/index.js +1 -0
|
@@ -1,139 +1,33 @@
|
|
|
1
|
-
# Brownfield Fullstack Workflow
|
|
2
|
-
# Handles: feature addition, refactoring, modernization
|
|
3
|
-
|
|
4
1
|
workflow:
|
|
5
2
|
id: brownfield-fullstack
|
|
6
3
|
name: Brownfield Fullstack Development
|
|
7
|
-
version: "
|
|
4
|
+
version: "2.0.0"
|
|
8
5
|
type: brownfield
|
|
9
6
|
project_types: [feature-addition, refactoring, modernization, enhancement]
|
|
10
|
-
|
|
11
|
-
Development pipeline for existing projects. Key difference from greenfield:
|
|
12
|
-
Architect comes BEFORE Detail to understand existing constraints first.
|
|
13
|
-
brownfield-wu ALWAYS runs Deep Discovery with 3 scout calls.
|
|
7
|
+
execution_authority: rail
|
|
14
8
|
|
|
15
9
|
phases:
|
|
16
10
|
- phase: 0
|
|
17
11
|
name: Deep Discovery
|
|
18
12
|
category: DISCOVER
|
|
19
13
|
sequence:
|
|
20
|
-
- agent: brownfield-wu
|
|
21
|
-
|
|
22
|
-
creates: [artifacts/0-WU/wu-full-report.md]
|
|
23
|
-
notes: >
|
|
24
|
-
Both axes (technical + operational). ALWAYS runs Deep Discovery
|
|
25
|
-
with 3 scout calls: Architect, UX, QA in scout mode.
|
|
26
|
-
|
|
14
|
+
- { agent: brownfield-wu, action: deep-discovery, creates: [artifacts/0-WU/wu-operational-report.md] }
|
|
15
|
+
- { agent: brief, action: problem-extraction, creates: [artifacts/1-Brief/brief-report.md] }
|
|
27
16
|
- phase: 1
|
|
28
|
-
name:
|
|
29
|
-
category: DISCOVER
|
|
30
|
-
sequence:
|
|
31
|
-
- agent: brief
|
|
32
|
-
action: problem-extraction
|
|
33
|
-
creates: [artifacts/1-Brief/brief-report.md]
|
|
34
|
-
notes: "Informed by existing codebase context from WU"
|
|
35
|
-
|
|
36
|
-
- phase: 2
|
|
37
|
-
name: Architecture Assessment
|
|
38
|
-
category: PLAN
|
|
39
|
-
sequence:
|
|
40
|
-
- agent: architect
|
|
41
|
-
action: assess-architecture
|
|
42
|
-
creates: [artifacts/3-Architecture/architecture.md]
|
|
43
|
-
template: fullstack-architecture-tmpl.yaml
|
|
44
|
-
notes: >
|
|
45
|
-
Architect comes BEFORE Detail in brownfield.
|
|
46
|
-
Assesses existing architecture, proposes changes.
|
|
47
|
-
|
|
48
|
-
- phase: 3
|
|
49
|
-
name: Product Specification
|
|
50
|
-
category: PLAN
|
|
51
|
-
sequence:
|
|
52
|
-
- agent: detail
|
|
53
|
-
action: create-prd
|
|
54
|
-
creates: [artifacts/2-PRD/prd.md]
|
|
55
|
-
template: brownfield-prd-tmpl.yaml
|
|
56
|
-
notes: "PRD informed by architectural constraints"
|
|
57
|
-
- agent: ux
|
|
58
|
-
action: define-experience
|
|
59
|
-
creates: [artifacts/4-UX/ux-specification.md]
|
|
60
|
-
notes: "Includes Design System audit of existing code"
|
|
61
|
-
|
|
62
|
-
- phase: 4
|
|
63
|
-
name: Execution Planning
|
|
64
|
-
category: PLAN
|
|
65
|
-
sequence:
|
|
66
|
-
- agent: phases
|
|
67
|
-
action: create-roadmap
|
|
68
|
-
creates: [artifacts/5-Phases/phases.md]
|
|
69
|
-
- agent: tasks
|
|
70
|
-
action: create-tasks
|
|
71
|
-
creates: [artifacts/6-Tasks/tasks.md]
|
|
72
|
-
template: task-tmpl.yaml
|
|
73
|
-
|
|
74
|
-
- phase: 5
|
|
75
|
-
name: Planning Quality Gate (Planning Team)
|
|
17
|
+
name: Planning
|
|
76
18
|
category: PLAN
|
|
77
19
|
sequence:
|
|
78
|
-
- agent:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
- phase: 6
|
|
88
|
-
name: Implementation
|
|
89
|
-
category: BUILD
|
|
90
|
-
sequence:
|
|
91
|
-
- agent: dev
|
|
92
|
-
action: implement-tasks
|
|
93
|
-
- agent: qa-implementation
|
|
94
|
-
action: validate-code
|
|
95
|
-
creates: [artifacts/9-QA-Implementation/qa-implementation-report.md]
|
|
96
|
-
|
|
97
|
-
- phase: 7
|
|
98
|
-
name: Deployment
|
|
99
|
-
category: DEPLOY
|
|
100
|
-
sequence:
|
|
101
|
-
- agent: devops
|
|
102
|
-
action: deploy
|
|
103
|
-
creates: [artifacts/10-Deploy/deploy-report.md]
|
|
20
|
+
- { agent: architect, action: map-and-design, creates: [artifacts/3-Architecture/architecture.md] }
|
|
21
|
+
- { agent: detail, action: create-prd, creates: [artifacts/2-PRD/prd.md] }
|
|
22
|
+
- { agent: ux, action: define-experience, creates: [artifacts/4-UX/ux-specification.md] }
|
|
23
|
+
- { agent: phases, action: create-roadmap, creates: [artifacts/5-Phases/phases.md] }
|
|
24
|
+
- { agent: tasks, action: seal-task-graph, creates: [artifacts/6-Tasks/tasks.md] }
|
|
25
|
+
- { agent: qa-planning, action: validate-planning, creates: [artifacts/7-QA-Planning/qa-planning-report.md] }
|
|
26
|
+
- { phase: 2, name: RAIL Execution, category: RAIL, runtime: project-local-rail, contract: .chati/v2/rail/handoffs }
|
|
27
|
+
- { phase: 3, name: Release Lane, category: RELEASE, requires: [rail_complete, independent_review_approved, explicit_human_authorization] }
|
|
104
28
|
|
|
105
29
|
transitions:
|
|
106
|
-
discover_to_plan:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
plan_to_build:
|
|
111
|
-
trigger: "qa-planning.score >= 95"
|
|
112
|
-
type: automatic
|
|
113
|
-
action: "Update project.state = build"
|
|
114
|
-
build_to_validate:
|
|
115
|
-
trigger: "dev.status == completed"
|
|
116
|
-
type: automatic
|
|
117
|
-
action: "Update project.state = validate"
|
|
118
|
-
validate_to_preview:
|
|
119
|
-
trigger: "qa-implementation.status == approved"
|
|
120
|
-
type: automatic
|
|
121
|
-
action: "Launch user preview (orchestrator-preview task)"
|
|
122
|
-
notes: "User must approve preview before advancing to deploy"
|
|
123
|
-
preview_to_deploy:
|
|
124
|
-
trigger: "user_preview.decision in [approve_keep, approve_kill]"
|
|
125
|
-
type: manual
|
|
126
|
-
action: "Update project.state = deploy"
|
|
127
|
-
notes: "User explicitly approves the preview"
|
|
128
|
-
deploy_to_completed:
|
|
129
|
-
trigger: "devops.status == completed"
|
|
130
|
-
type: automatic
|
|
131
|
-
action: "Update project.state = completed"
|
|
132
|
-
backward_to_plan:
|
|
133
|
-
trigger: "qa-implementation.issue_type in [spec, architecture]"
|
|
134
|
-
type: backward
|
|
135
|
-
action: "Update project.state = plan, route to responsible agent"
|
|
136
|
-
backward_to_discover:
|
|
137
|
-
trigger: "qa-implementation.issue_type in [requirements, scope]"
|
|
138
|
-
type: backward
|
|
139
|
-
action: "Update project.state = discover, route to brief or wu agent"
|
|
30
|
+
discover_to_plan: { trigger: "brief.status == completed", target: plan }
|
|
31
|
+
plan_to_rail: { trigger: "qa-planning.score >= 95 && tasks.handoff == sealed", target: rail }
|
|
32
|
+
rail_to_release: { trigger: "rail.all_tasks_approved == true", target: release }
|
|
33
|
+
release_to_completed: { trigger: "release.receipt.status == completed", target: completed }
|
|
@@ -1,121 +1,27 @@
|
|
|
1
|
-
# Brownfield Service Workflow
|
|
2
|
-
# Backend/API enhancements for existing projects
|
|
3
|
-
|
|
4
1
|
workflow:
|
|
5
2
|
id: brownfield-service
|
|
6
3
|
name: Brownfield Service Enhancement
|
|
7
|
-
version: "
|
|
4
|
+
version: "2.0.0"
|
|
8
5
|
type: brownfield
|
|
9
6
|
project_types: [api-enhancement, service-modernization, backend-refactoring]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Same as brownfield-fullstack but Architect focuses on
|
|
13
|
-
API design, data model, and service architecture.
|
|
14
|
-
UX agent runs in minimal mode (API documentation only).
|
|
7
|
+
execution_authority: rail
|
|
8
|
+
planning_focus: [api, data, security, operations]
|
|
15
9
|
|
|
16
10
|
phases:
|
|
17
|
-
- phase: 0
|
|
18
|
-
name: Deep Discovery
|
|
19
|
-
category: DISCOVER
|
|
20
|
-
sequence:
|
|
21
|
-
- agent: brownfield-wu
|
|
22
|
-
action: full-discovery
|
|
23
|
-
creates: [artifacts/0-WU/wu-full-report.md]
|
|
24
|
-
|
|
11
|
+
- { phase: 0, name: Deep Discovery, category: DISCOVER, sequence: [{ agent: brownfield-wu, action: deep-discovery }, { agent: brief, action: problem-extraction }] }
|
|
25
12
|
- phase: 1
|
|
26
|
-
name:
|
|
27
|
-
category: DISCOVER
|
|
28
|
-
sequence:
|
|
29
|
-
- agent: brief
|
|
30
|
-
action: problem-extraction
|
|
31
|
-
creates: [artifacts/1-Brief/brief-report.md]
|
|
32
|
-
|
|
33
|
-
- phase: 2
|
|
34
|
-
name: Architecture & Specification
|
|
35
|
-
category: PLAN
|
|
36
|
-
sequence:
|
|
37
|
-
- agent: architect
|
|
38
|
-
action: assess-architecture
|
|
39
|
-
creates: [artifacts/3-Architecture/architecture.md]
|
|
40
|
-
notes: "Focus on API design, data model, service patterns"
|
|
41
|
-
- agent: detail
|
|
42
|
-
action: create-prd
|
|
43
|
-
creates: [artifacts/2-PRD/prd.md]
|
|
44
|
-
template: brownfield-prd-tmpl.yaml
|
|
45
|
-
|
|
46
|
-
- phase: 3
|
|
47
|
-
name: Execution Planning
|
|
13
|
+
name: Planning
|
|
48
14
|
category: PLAN
|
|
49
15
|
sequence:
|
|
50
|
-
- agent:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
- agent:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
- phase:
|
|
58
|
-
name: Planning Quality Gate (Planning Team)
|
|
59
|
-
category: PLAN
|
|
60
|
-
sequence:
|
|
61
|
-
- agent: qa-planning
|
|
62
|
-
action: validate-traceability
|
|
63
|
-
creates: [artifacts/7-QA-Planning/qa-planning-report.md]
|
|
64
|
-
notes: >
|
|
65
|
-
Runs inside Planning Team (Article XXI), not as a standalone step.
|
|
66
|
-
Activates after Detail and Architect complete their tasks.
|
|
67
|
-
Score synced to session.yaml by orchestrator on team dissolution.
|
|
68
|
-
|
|
69
|
-
- phase: 5
|
|
70
|
-
name: Implementation
|
|
71
|
-
category: BUILD
|
|
72
|
-
sequence:
|
|
73
|
-
- agent: dev
|
|
74
|
-
action: implement-tasks
|
|
75
|
-
- agent: qa-implementation
|
|
76
|
-
action: validate-code
|
|
77
|
-
creates: [artifacts/9-QA-Implementation/qa-implementation-report.md]
|
|
78
|
-
|
|
79
|
-
- phase: 6
|
|
80
|
-
name: Deployment
|
|
81
|
-
category: DEPLOY
|
|
82
|
-
sequence:
|
|
83
|
-
- agent: devops
|
|
84
|
-
action: deploy
|
|
85
|
-
creates: [artifacts/10-Deploy/deploy-report.md]
|
|
16
|
+
- { agent: architect, action: service-design }
|
|
17
|
+
- { agent: detail, action: create-prd }
|
|
18
|
+
- { agent: ux, action: api-consumer-experience }
|
|
19
|
+
- { agent: phases, action: create-roadmap }
|
|
20
|
+
- { agent: tasks, action: seal-task-graph }
|
|
21
|
+
- { agent: qa-planning, action: validate-planning }
|
|
22
|
+
- { phase: 2, name: RAIL Execution, category: RAIL, runtime: project-local-rail }
|
|
23
|
+
- { phase: 3, name: Release Lane, category: RELEASE, requires: [rail_complete, independent_review_approved, explicit_human_authorization] }
|
|
86
24
|
|
|
87
25
|
transitions:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
type: automatic
|
|
91
|
-
action: "Update project.state = plan"
|
|
92
|
-
plan_to_build:
|
|
93
|
-
trigger: "qa-planning.score >= 95"
|
|
94
|
-
type: automatic
|
|
95
|
-
action: "Update project.state = build"
|
|
96
|
-
build_to_validate:
|
|
97
|
-
trigger: "dev.status == completed"
|
|
98
|
-
type: automatic
|
|
99
|
-
action: "Update project.state = validate"
|
|
100
|
-
validate_to_preview:
|
|
101
|
-
trigger: "qa-implementation.status == approved"
|
|
102
|
-
type: automatic
|
|
103
|
-
action: "Launch user preview (orchestrator-preview task)"
|
|
104
|
-
notes: "User must approve preview before advancing to deploy"
|
|
105
|
-
preview_to_deploy:
|
|
106
|
-
trigger: "user_preview.decision in [approve_keep, approve_kill]"
|
|
107
|
-
type: manual
|
|
108
|
-
action: "Update project.state = deploy"
|
|
109
|
-
notes: "User explicitly approves the preview"
|
|
110
|
-
deploy_to_completed:
|
|
111
|
-
trigger: "devops.status == completed"
|
|
112
|
-
type: automatic
|
|
113
|
-
action: "Update project.state = completed"
|
|
114
|
-
backward_to_plan:
|
|
115
|
-
trigger: "qa-implementation.issue_type in [spec, architecture]"
|
|
116
|
-
type: backward
|
|
117
|
-
action: "Update project.state = plan, route to responsible agent"
|
|
118
|
-
backward_to_discover:
|
|
119
|
-
trigger: "qa-implementation.issue_type in [requirements, scope]"
|
|
120
|
-
type: backward
|
|
121
|
-
action: "Update project.state = discover, route to brief or wu agent"
|
|
26
|
+
plan_to_rail: { trigger: "qa-planning.score >= 95 && tasks.handoff == sealed", target: rail }
|
|
27
|
+
rail_to_release: { trigger: "rail.all_tasks_approved == true", target: release }
|
|
@@ -1,127 +1,27 @@
|
|
|
1
|
-
# Brownfield UI Workflow
|
|
2
|
-
# Frontend/UI changes for existing projects
|
|
3
|
-
|
|
4
1
|
workflow:
|
|
5
2
|
id: brownfield-ui
|
|
6
3
|
name: Brownfield UI Enhancement
|
|
7
|
-
version: "
|
|
4
|
+
version: "2.0.0"
|
|
8
5
|
type: brownfield
|
|
9
6
|
project_types: [ui-modernization, frontend-migration, component-library, design-system-update]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Same as brownfield-fullstack but UX agent takes a larger role,
|
|
13
|
-
including Design System audit and component inventory.
|
|
14
|
-
Architect focuses on frontend architecture and state management.
|
|
7
|
+
execution_authority: rail
|
|
8
|
+
planning_focus: [design-system, accessibility, responsive-behavior, visual-regression]
|
|
15
9
|
|
|
16
10
|
phases:
|
|
17
|
-
- phase: 0
|
|
18
|
-
name: Deep Discovery
|
|
19
|
-
category: DISCOVER
|
|
20
|
-
sequence:
|
|
21
|
-
- agent: brownfield-wu
|
|
22
|
-
action: full-discovery
|
|
23
|
-
creates: [artifacts/0-WU/wu-full-report.md]
|
|
24
|
-
notes: "UX scout call gets extra attention for component audit"
|
|
25
|
-
|
|
11
|
+
- { phase: 0, name: Deep Discovery, category: DISCOVER, sequence: [{ agent: brownfield-wu, action: deep-discovery }, { agent: brief, action: problem-extraction }] }
|
|
26
12
|
- phase: 1
|
|
27
|
-
name:
|
|
28
|
-
category: DISCOVER
|
|
29
|
-
sequence:
|
|
30
|
-
- agent: brief
|
|
31
|
-
action: problem-extraction
|
|
32
|
-
creates: [artifacts/1-Brief/brief-report.md]
|
|
33
|
-
|
|
34
|
-
- phase: 2
|
|
35
|
-
name: Architecture & Experience
|
|
36
|
-
category: PLAN
|
|
37
|
-
sequence:
|
|
38
|
-
- agent: architect
|
|
39
|
-
action: assess-architecture
|
|
40
|
-
creates: [artifacts/3-Architecture/architecture.md]
|
|
41
|
-
notes: "Focus on frontend architecture, state management, component patterns"
|
|
42
|
-
- agent: detail
|
|
43
|
-
action: create-prd
|
|
44
|
-
creates: [artifacts/2-PRD/prd.md]
|
|
45
|
-
template: brownfield-prd-tmpl.yaml
|
|
46
|
-
- agent: ux
|
|
47
|
-
action: define-experience
|
|
48
|
-
creates: [artifacts/4-UX/ux-specification.md]
|
|
49
|
-
notes: "Full Design System audit + new token definitions"
|
|
50
|
-
|
|
51
|
-
- phase: 3
|
|
52
|
-
name: Execution Planning
|
|
13
|
+
name: Planning
|
|
53
14
|
category: PLAN
|
|
54
15
|
sequence:
|
|
55
|
-
- agent:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
- agent:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
- phase:
|
|
63
|
-
name: Planning Quality Gate (Planning Team)
|
|
64
|
-
category: PLAN
|
|
65
|
-
sequence:
|
|
66
|
-
- agent: qa-planning
|
|
67
|
-
action: validate-traceability
|
|
68
|
-
creates: [artifacts/7-QA-Planning/qa-planning-report.md]
|
|
69
|
-
notes: >
|
|
70
|
-
Runs inside Planning Team (Article XXI), not as a standalone step.
|
|
71
|
-
Activates after Architect, Detail, and UX complete their tasks.
|
|
72
|
-
Score synced to session.yaml by orchestrator on team dissolution.
|
|
73
|
-
|
|
74
|
-
- phase: 5
|
|
75
|
-
name: Implementation
|
|
76
|
-
category: BUILD
|
|
77
|
-
sequence:
|
|
78
|
-
- agent: dev
|
|
79
|
-
action: implement-tasks
|
|
80
|
-
notes: "Design System token enforcement is critical for UI work"
|
|
81
|
-
- agent: qa-implementation
|
|
82
|
-
action: validate-code
|
|
83
|
-
creates: [artifacts/9-QA-Implementation/qa-implementation-report.md]
|
|
84
|
-
|
|
85
|
-
- phase: 6
|
|
86
|
-
name: Deployment
|
|
87
|
-
category: DEPLOY
|
|
88
|
-
sequence:
|
|
89
|
-
- agent: devops
|
|
90
|
-
action: deploy
|
|
91
|
-
creates: [artifacts/10-Deploy/deploy-report.md]
|
|
16
|
+
- { agent: architect, action: frontend-design }
|
|
17
|
+
- { agent: detail, action: create-prd }
|
|
18
|
+
- { agent: ux, action: design-system-and-flows }
|
|
19
|
+
- { agent: phases, action: create-roadmap }
|
|
20
|
+
- { agent: tasks, action: seal-task-graph }
|
|
21
|
+
- { agent: qa-planning, action: validate-planning }
|
|
22
|
+
- { phase: 2, name: RAIL Execution, category: RAIL, runtime: project-local-rail }
|
|
23
|
+
- { phase: 3, name: Release Lane, category: RELEASE, requires: [rail_complete, independent_review_approved, explicit_human_authorization] }
|
|
92
24
|
|
|
93
25
|
transitions:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
type: automatic
|
|
97
|
-
action: "Update project.state = plan"
|
|
98
|
-
plan_to_build:
|
|
99
|
-
trigger: "qa-planning.score >= 95"
|
|
100
|
-
type: automatic
|
|
101
|
-
action: "Update project.state = build"
|
|
102
|
-
build_to_validate:
|
|
103
|
-
trigger: "dev.status == completed"
|
|
104
|
-
type: automatic
|
|
105
|
-
action: "Update project.state = validate"
|
|
106
|
-
validate_to_preview:
|
|
107
|
-
trigger: "qa-implementation.status == approved"
|
|
108
|
-
type: automatic
|
|
109
|
-
action: "Launch user preview (orchestrator-preview task)"
|
|
110
|
-
notes: "User must approve preview before advancing to deploy"
|
|
111
|
-
preview_to_deploy:
|
|
112
|
-
trigger: "user_preview.decision in [approve_keep, approve_kill]"
|
|
113
|
-
type: manual
|
|
114
|
-
action: "Update project.state = deploy"
|
|
115
|
-
notes: "User explicitly approves the preview"
|
|
116
|
-
deploy_to_completed:
|
|
117
|
-
trigger: "devops.status == completed"
|
|
118
|
-
type: automatic
|
|
119
|
-
action: "Update project.state = completed"
|
|
120
|
-
backward_to_plan:
|
|
121
|
-
trigger: "qa-implementation.issue_type in [spec, architecture]"
|
|
122
|
-
type: backward
|
|
123
|
-
action: "Update project.state = plan, route to responsible agent"
|
|
124
|
-
backward_to_discover:
|
|
125
|
-
trigger: "qa-implementation.issue_type in [requirements, scope]"
|
|
126
|
-
type: backward
|
|
127
|
-
action: "Update project.state = discover, route to brief or wu agent"
|
|
26
|
+
plan_to_rail: { trigger: "qa-planning.score >= 95 && tasks.handoff == sealed", target: rail }
|
|
27
|
+
rail_to_release: { trigger: "rail.all_tasks_approved == true", target: release }
|
|
@@ -1,146 +1,33 @@
|
|
|
1
|
-
# Greenfield Fullstack Workflow
|
|
2
|
-
# Handles: web apps, SaaS, MVP, enterprise, prototypes
|
|
3
|
-
# The single unified pipeline for all greenfield project types
|
|
4
|
-
|
|
5
1
|
workflow:
|
|
6
2
|
id: greenfield-fullstack
|
|
7
3
|
name: Greenfield Fullstack Development
|
|
8
|
-
version: "
|
|
4
|
+
version: "2.0.0"
|
|
9
5
|
type: greenfield
|
|
10
6
|
project_types: [web-app, saas, enterprise, prototype, mvp, api, mobile-web]
|
|
11
|
-
|
|
12
|
-
Complete development pipeline for new projects. The Architect agent
|
|
13
|
-
adapts scope based on project needs (full-stack, service-only, or UI-only)
|
|
14
|
-
rather than requiring separate workflow definitions.
|
|
7
|
+
execution_authority: rail
|
|
15
8
|
|
|
16
9
|
phases:
|
|
17
10
|
- phase: 0
|
|
18
11
|
name: Discovery
|
|
19
12
|
category: DISCOVER
|
|
20
13
|
sequence:
|
|
21
|
-
- agent: greenfield-wu
|
|
22
|
-
|
|
23
|
-
creates: [artifacts/0-WU/wu-operational-report.md]
|
|
24
|
-
notes: "Operational context only (no codebase to analyze)"
|
|
25
|
-
|
|
14
|
+
- { agent: greenfield-wu, action: operational-discovery, creates: [artifacts/0-WU/wu-operational-report.md] }
|
|
15
|
+
- { agent: brief, action: problem-extraction, creates: [artifacts/1-Brief/brief-report.md] }
|
|
26
16
|
- phase: 1
|
|
27
|
-
name:
|
|
28
|
-
category: DISCOVER
|
|
29
|
-
sequence:
|
|
30
|
-
- agent: brief
|
|
31
|
-
action: problem-extraction
|
|
32
|
-
creates: [artifacts/1-Brief/brief-report.md]
|
|
33
|
-
notes: "5-phase extraction process"
|
|
34
|
-
|
|
35
|
-
- phase: 2
|
|
36
|
-
name: Product Specification
|
|
37
|
-
category: PLAN
|
|
38
|
-
sequence:
|
|
39
|
-
- agent: detail
|
|
40
|
-
action: create-prd
|
|
41
|
-
creates: [artifacts/2-PRD/prd.md]
|
|
42
|
-
template: prd-tmpl.yaml
|
|
43
|
-
notes: "Detail comes BEFORE Architect in greenfield"
|
|
44
|
-
|
|
45
|
-
- phase: 3
|
|
46
|
-
name: Technical Design
|
|
47
|
-
category: PLAN
|
|
48
|
-
sequence:
|
|
49
|
-
- agent: architect
|
|
50
|
-
action: design-architecture
|
|
51
|
-
creates: [artifacts/3-Architecture/architecture.md]
|
|
52
|
-
template: fullstack-architecture-tmpl.yaml
|
|
53
|
-
notes: "Tech stack selection, data model, deployment strategy"
|
|
54
|
-
- agent: architect
|
|
55
|
-
action: dep-audit
|
|
56
|
-
creates: [artifacts/3-Architecture/dep-audit.yaml]
|
|
57
|
-
notes: "Verify dependency versions, vulnerabilities, and compatibility before implementation"
|
|
58
|
-
- agent: ux
|
|
59
|
-
action: define-experience
|
|
60
|
-
creates: [artifacts/4-UX/ux-specification.md]
|
|
61
|
-
notes: "UX follows Architect (needs to know the stack)"
|
|
62
|
-
|
|
63
|
-
- phase: 4
|
|
64
|
-
name: Execution Planning
|
|
65
|
-
category: PLAN
|
|
66
|
-
sequence:
|
|
67
|
-
- agent: phases
|
|
68
|
-
action: create-roadmap
|
|
69
|
-
creates: [artifacts/5-Phases/phases.md]
|
|
70
|
-
notes: "MVP-first phase breakdown"
|
|
71
|
-
- agent: tasks
|
|
72
|
-
action: create-tasks
|
|
73
|
-
creates: [artifacts/6-Tasks/tasks.md]
|
|
74
|
-
template: task-tmpl.yaml
|
|
75
|
-
notes: "Atomic tasks with Given-When-Then criteria"
|
|
76
|
-
|
|
77
|
-
- phase: 5
|
|
78
|
-
name: Planning Quality Gate (Planning Team)
|
|
17
|
+
name: Planning
|
|
79
18
|
category: PLAN
|
|
80
19
|
sequence:
|
|
81
|
-
- agent:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
- phase: 6
|
|
91
|
-
name: Implementation
|
|
92
|
-
category: BUILD
|
|
93
|
-
sequence:
|
|
94
|
-
- agent: dev
|
|
95
|
-
action: implement-tasks
|
|
96
|
-
notes: "Interactive or autonomous (Ralph Wiggum) mode"
|
|
97
|
-
- agent: qa-implementation
|
|
98
|
-
action: validate-code
|
|
99
|
-
creates: [artifacts/9-QA-Implementation/qa-implementation-report.md]
|
|
100
|
-
template: qa-gate-tmpl.yaml
|
|
101
|
-
notes: "Tests + SAST + code review. Must pass to deploy"
|
|
102
|
-
|
|
103
|
-
- phase: 7
|
|
104
|
-
name: Deployment
|
|
105
|
-
category: DEPLOY
|
|
106
|
-
sequence:
|
|
107
|
-
- agent: devops
|
|
108
|
-
action: deploy
|
|
109
|
-
creates: [artifacts/10-Deploy/deploy-report.md]
|
|
110
|
-
notes: "Git operations, deployment, documentation"
|
|
20
|
+
- { agent: detail, action: create-prd, creates: [artifacts/2-PRD/prd.md] }
|
|
21
|
+
- { agent: architect, action: design-architecture, creates: [artifacts/3-Architecture/architecture.md] }
|
|
22
|
+
- { agent: ux, action: define-experience, creates: [artifacts/4-UX/ux-specification.md] }
|
|
23
|
+
- { agent: phases, action: create-roadmap, creates: [artifacts/5-Phases/phases.md] }
|
|
24
|
+
- { agent: tasks, action: seal-task-graph, creates: [artifacts/6-Tasks/tasks.md] }
|
|
25
|
+
- { agent: qa-planning, action: validate-planning, creates: [artifacts/7-QA-Planning/qa-planning-report.md] }
|
|
26
|
+
- { phase: 2, name: RAIL Execution, category: RAIL, runtime: project-local-rail, contract: .chati/v2/rail/handoffs }
|
|
27
|
+
- { phase: 3, name: Release Lane, category: RELEASE, requires: [rail_complete, independent_review_approved, explicit_human_authorization] }
|
|
111
28
|
|
|
112
29
|
transitions:
|
|
113
|
-
discover_to_plan:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
plan_to_build:
|
|
118
|
-
trigger: "qa-planning.score >= 95"
|
|
119
|
-
type: automatic
|
|
120
|
-
action: "Update project.state = build"
|
|
121
|
-
build_to_validate:
|
|
122
|
-
trigger: "dev.status == completed"
|
|
123
|
-
type: automatic
|
|
124
|
-
action: "Update project.state = validate"
|
|
125
|
-
validate_to_preview:
|
|
126
|
-
trigger: "qa-implementation.status == approved"
|
|
127
|
-
type: automatic
|
|
128
|
-
action: "Launch user preview (orchestrator-preview task)"
|
|
129
|
-
notes: "User must approve preview before advancing to deploy"
|
|
130
|
-
preview_to_deploy:
|
|
131
|
-
trigger: "user_preview.decision in [approve_keep, approve_kill]"
|
|
132
|
-
type: manual
|
|
133
|
-
action: "Update project.state = deploy"
|
|
134
|
-
notes: "User explicitly approves the preview"
|
|
135
|
-
deploy_to_completed:
|
|
136
|
-
trigger: "devops.status == completed"
|
|
137
|
-
type: automatic
|
|
138
|
-
action: "Update project.state = completed"
|
|
139
|
-
backward_to_plan:
|
|
140
|
-
trigger: "qa-implementation.issue_type in [spec, architecture]"
|
|
141
|
-
type: backward
|
|
142
|
-
action: "Update project.state = plan, route to responsible agent"
|
|
143
|
-
backward_to_discover:
|
|
144
|
-
trigger: "qa-implementation.issue_type in [requirements, scope]"
|
|
145
|
-
type: backward
|
|
146
|
-
action: "Update project.state = discover, route to brief or wu agent"
|
|
30
|
+
discover_to_plan: { trigger: "brief.status == completed", target: plan }
|
|
31
|
+
plan_to_rail: { trigger: "qa-planning.score >= 95 && tasks.handoff == sealed", target: rail }
|
|
32
|
+
rail_to_release: { trigger: "rail.all_tasks_approved == true", target: release }
|
|
33
|
+
release_to_completed: { trigger: "release.receipt.status == completed", target: completed }
|