chati-dev 4.5.10 → 4.5.12

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.
Files changed (47) hide show
  1. package/framework/agents/discover/brownfield-wu.md +1 -1
  2. package/framework/agents/plan/tasks.md +2 -2
  3. package/framework/config.yaml +2 -2
  4. package/framework/constitution.md +21 -22
  5. package/framework/context/governance.md +10 -10
  6. package/framework/context/quality.md +6 -6
  7. package/framework/context/root.md +1 -1
  8. package/framework/data/entity-registry.yaml +1 -1
  9. package/framework/domains/constitution.yaml +1 -1
  10. package/framework/domains/workflows/brownfield-fullstack.yaml +5 -3
  11. package/framework/domains/workflows/brownfield-service.yaml +2 -3
  12. package/framework/domains/workflows/brownfield-ui.yaml +2 -3
  13. package/framework/domains/workflows/greenfield-fullstack.yaml +5 -3
  14. package/framework/domains/workflows/quick-flow.yaml +7 -6
  15. package/framework/domains/workflows/standard-flow.yaml +4 -5
  16. package/framework/frameworks/quality-dimensions.yaml +3 -3
  17. package/framework/hooks/git-push-authority.js +8 -4
  18. package/framework/manifest.json +49 -49
  19. package/framework/manifest.sig +1 -1
  20. package/framework/orchestrator/chati.md +29 -20
  21. package/framework/schemas/session.schema.json +5 -5
  22. package/framework/workflows/brownfield-fullstack.yaml +17 -123
  23. package/framework/workflows/brownfield-service.yaml +15 -109
  24. package/framework/workflows/brownfield-ui.yaml +15 -115
  25. package/framework/workflows/greenfield-fullstack.yaml +17 -130
  26. package/framework/workflows/quick-flow.yaml +20 -111
  27. package/framework/workflows/standard-flow.yaml +14 -158
  28. package/package.json +1 -1
  29. package/src/config/claude-settings-generator.js +4 -3
  30. package/src/config/context-file-generator.js +10 -1
  31. package/src/config/framework-adapter.js +10 -2
  32. package/src/context/layers/l1-global.js +2 -0
  33. package/src/installer/core.js +94 -13
  34. package/src/installer/templates.js +5 -4
  35. package/src/installer/validator.js +8 -2
  36. package/src/intelligence/registry-manager.js +11 -4
  37. package/src/orchestrator/cli.js +158 -42
  38. package/src/orchestrator/pipeline-manager.js +2 -0
  39. package/src/orchestrator/runtime-installation-v2.js +38 -0
  40. package/src/orchestrator/session-manager.js +1 -1
  41. package/src/terminal/handoff-parser.js +23 -4
  42. package/src/terminal/prompt-builder.js +15 -1
  43. package/src/terminal/provider-preflight.js +78 -0
  44. package/src/terminal/run-agent.js +66 -23
  45. package/src/terminal/spawner.js +5 -1
  46. package/src/utils/schema-validator.js +5 -2
  47. package/src/wizard/index.js +1 -0
@@ -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: "1.0.0"
4
+ version: "2.0.0"
8
5
  type: brownfield
9
6
  project_types: [api-enhancement, service-modernization, backend-refactoring]
10
- description: >
11
- Pipeline for backend/API changes in existing projects.
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: Problem Definition
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: phases
51
- action: create-roadmap
52
- creates: [artifacts/5-Phases/phases.md]
53
- - agent: tasks
54
- action: create-tasks
55
- creates: [artifacts/6-Tasks/tasks.md]
56
-
57
- - phase: 4
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
- discover_to_plan:
89
- trigger: "brief.status == completed"
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: "1.0.0"
4
+ version: "2.0.0"
8
5
  type: brownfield
9
6
  project_types: [ui-modernization, frontend-migration, component-library, design-system-update]
10
- description: >
11
- Pipeline for frontend/UI changes in existing projects.
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: Problem Definition
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: phases
56
- action: create-roadmap
57
- creates: [artifacts/5-Phases/phases.md]
58
- - agent: tasks
59
- action: create-tasks
60
- creates: [artifacts/6-Tasks/tasks.md]
61
-
62
- - phase: 4
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
- discover_to_plan:
95
- trigger: "brief.status == completed"
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: "1.0.0"
4
+ version: "2.0.0"
9
5
  type: greenfield
10
6
  project_types: [web-app, saas, enterprise, prototype, mvp, api, mobile-web]
11
- description: >
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
- action: operational-discovery
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: Problem Definition
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: qa-planning
82
- action: validate-traceability
83
- creates: [artifacts/7-QA-Planning/qa-planning-report.md]
84
- template: qa-gate-tmpl.yaml
85
- notes: >
86
- Runs inside Planning Team (Article XXI), not as a standalone step.
87
- Activates after Detail, Architect, and UX complete their tasks.
88
- Must score >= 95% to proceed to BUILD. Score synced to session.yaml by orchestrator on team dissolution.
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
- trigger: "brief.status == completed"
115
- type: automatic
116
- action: "Update project.state = plan"
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 }
@@ -1,127 +1,36 @@
1
- # Quick Flow Workflow
2
- # Fast-track pipeline for simple tasks: bug fixes, small features, config changes
3
- # Skips full DISCOVER/PLAN phases when complexity is low
4
-
5
1
  workflow:
6
2
  id: quick-flow
7
- name: Quick Flow — Fast Track Development
8
- version: "1.0.0"
3
+ name: Quick Flow
4
+ version: "2.0.0"
9
5
  type: any
10
6
  project_types: [bug-fix, small-feature, config-change, hotfix, refactor]
11
- description: >
12
- Condensed pipeline for tasks that don't need full discovery/planning.
13
- Used when the orchestrator detects low complexity: clear requirements,
14
- known codebase, small scope. Skips Detail, Architect, UX, Phases, Tasks,
15
- and QA-Planning. Goes straight from Brief (quick) to Dev.
7
+ execution_authority: rail
8
+ description: Condensed planning with the same sealed RAIL and Release contracts as the full workflow.
16
9
 
17
10
  detection:
18
- # Orchestrator uses these signals to auto-detect quick-flow eligibility
19
- triggers:
20
- - "User explicitly requests quick fix or hotfix"
21
- - "Single, well-defined requirement (can be stated in one sentence)"
22
- - "Bug report with reproduction steps"
23
- - "Configuration or environment change"
24
- - "Small refactoring with clear scope"
25
- - "User says 'just do it' or 'quick fix' or similar urgency signals"
26
- - "Simple, fun, or experimental project (single-purpose tool, game, prototype)"
27
- - "Single-page utility or learning project with no production requirements"
28
- disqualifiers:
29
- - "New feature requiring architecture decisions (multiple services, database design, auth system)"
30
- - "Multiple interconnected requirements (>3 distinct features)"
31
- - "Complex greenfield project (enterprise, multi-service, compliance requirements)"
32
- - "Enterprise or compliance context"
33
- - "User explicitly requests full pipeline"
34
- - "Scope involves more than 5 files"
35
- - "Requires database schema changes"
36
- - "Requires new API endpoints (>2)"
37
-
38
11
  confidence_threshold: 0.8
39
12
  user_confirmation: true
13
+ disqualifiers:
14
+ - architecture decision required
15
+ - more than five files expected
16
+ - database schema change
17
+ - more than two new API endpoints
40
18
 
41
19
  phases:
42
20
  - phase: 0
43
- name: Quick Brief
44
- category: DISCOVER
45
- sequence:
46
- - agent: brief
47
- action: quick-extraction
48
- creates: [artifacts/1-Brief/quick-brief.md]
49
- notes: >
50
- Condensed extraction: single-pass, no 5-phase process.
51
- Capture: what, why, constraints, acceptance criteria.
52
- Duration: 2-5 min max.
53
- template: quick-brief-tmpl.yaml
54
- config:
55
- max_rounds: 2
56
- require_approval: true
57
-
58
- - phase: 1
59
- name: Implementation
60
- category: BUILD
61
- sequence:
62
- - agent: dev
63
- action: implement-tasks
64
- notes: >
65
- Dev works directly from Quick Brief (no PRD, no architecture doc).
66
- Scope is tight: fix the bug, add the small feature, make the change.
67
- Self-critique checklist still applies.
68
-
69
- - phase: 2
70
- name: Validation
71
- category: BUILD
72
- sequence:
73
- - agent: qa-implementation
74
- action: validate-code
75
- creates: [artifacts/9-QA-Implementation/qa-implementation-report.md]
76
- notes: >
77
- Full QA-Implementation validation still applies (no shortcuts on quality).
78
- Adversarial review still mandatory.
79
- Tests must pass, SAST must be clean.
80
- config:
81
- adversarial_review: true
82
- minimum_findings: 3
83
-
84
- - phase: 3
85
- name: Deployment
86
- category: DEPLOY
21
+ name: Compact Planning
22
+ category: PLAN
87
23
  sequence:
88
- - agent: devops
89
- action: deploy
90
- creates: [artifacts/10-Deploy/deploy-report.md]
91
- notes: "Standard deployment process"
24
+ - { agent: brief, action: quick-extraction, creates: [artifacts/1-Brief/quick-brief.md] }
25
+ - { agent: tasks, action: compact-sealed-task-graph, creates: [artifacts/6-Tasks/tasks.md] }
26
+ - { agent: qa-planning, action: validate-compact-plan, creates: [artifacts/7-QA-Planning/qa-planning-report.md] }
27
+ - { phase: 1, name: RAIL Execution, category: RAIL, runtime: project-local-rail }
28
+ - { phase: 2, name: Release Lane, category: RELEASE, requires: [rail_complete, independent_review_approved, explicit_human_authorization] }
92
29
 
93
30
  transitions:
94
- quick_brief_to_build:
95
- trigger: "brief.status == completed"
96
- type: automatic
97
- action: "Skip full PLAN phase, go directly to BUILD"
98
- notes: "No Detail, Architect, UX, Phases, Tasks, or QA-Planning"
99
- build_to_validate:
100
- trigger: "dev.status == completed"
101
- type: automatic
102
- action: "Update project.state = validate"
103
- validate_to_deploy:
104
- trigger: "qa-implementation.status == approved"
105
- type: automatic
106
- action: "Update project.state = deploy"
107
- notes: "User preview skipped for quick-flow (scope too small)"
108
- deploy_to_completed:
109
- trigger: "devops.status == completed"
110
- type: automatic
111
- action: "Update project.state = completed"
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 }
112
33
 
113
34
  escalation:
114
- # If at any point the quick-flow feels insufficient, escalate to full pipeline
115
- triggers:
116
- - "Dev discovers the change is more complex than expected"
117
- - "QA-Implementation finds architectural issues"
118
- - "Scope creep detected (>5 files, new APIs, schema changes)"
119
- - "Dev agent requests escalation"
120
- action: >
121
- Pause quick-flow, notify user:
122
- "This task is more complex than initially estimated.
123
- Recommend switching to full pipeline for proper planning.
124
- Options:
125
- 1. Switch to full pipeline (Recommended)
126
- 2. Continue with quick-flow (document risk)
127
- 3. Abort and reassess"
35
+ triggers: [scope-expansion, architecture-decision, planning-gate-failure]
36
+ action: restart with the appropriate full planning workflow