chati-dev 2.0.8 → 2.1.0

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 (134) hide show
  1. package/README.md +32 -21
  2. package/assets/logo - co/314/201pia.png +0 -0
  3. package/assets/logo - co/314/201pia.svg" +42 -0
  4. package/bin/chati.js +3 -3
  5. package/framework/agents/{planning → discover}/brief.md +24 -2
  6. package/framework/agents/{planning → discover}/brownfield-wu.md +1 -1
  7. package/framework/agents/{planning → discover}/greenfield-wu.md +1 -1
  8. package/framework/agents/{planning → plan}/architect.md +1 -1
  9. package/framework/agents/{planning → plan}/detail.md +1 -1
  10. package/framework/agents/{planning → plan}/phases.md +1 -1
  11. package/framework/agents/{planning → plan}/tasks.md +1 -1
  12. package/framework/agents/{planning → plan}/ux.md +1 -1
  13. package/framework/agents/quality/qa-implementation.md +53 -4
  14. package/framework/agents/quality/qa-planning.md +53 -2
  15. package/framework/config.yaml +3 -3
  16. package/framework/constitution.md +4 -4
  17. package/framework/context/quality.md +1 -1
  18. package/framework/context/root.md +5 -4
  19. package/framework/data/entity-registry.yaml +35 -11
  20. package/framework/domains/agents/brief.yaml +14 -0
  21. package/framework/domains/agents/qa-implementation.yaml +16 -0
  22. package/framework/domains/agents/qa-planning.yaml +16 -0
  23. package/framework/domains/constitution.yaml +6 -2
  24. package/framework/domains/workflows/brownfield-discovery.yaml +5 -4
  25. package/framework/domains/workflows/quick-flow.yaml +23 -0
  26. package/framework/hooks/mode-governance.js +14 -2
  27. package/framework/hooks/model-governance.js +5 -1
  28. package/framework/hooks/prism-engine.js +1 -1
  29. package/framework/hooks/session-digest.js +6 -2
  30. package/framework/hooks/settings.json +11 -0
  31. package/framework/i18n/en.yaml +3 -3
  32. package/framework/i18n/es.yaml +3 -3
  33. package/framework/i18n/fr.yaml +3 -3
  34. package/framework/i18n/pt.yaml +3 -3
  35. package/framework/intelligence/context-engine.md +2 -2
  36. package/framework/intelligence/decision-engine.md +2 -2
  37. package/framework/manifest.json +5 -0
  38. package/framework/manifest.sig +1 -0
  39. package/framework/orchestrator/chati.md +68 -20
  40. package/framework/patterns/elicitation-library.yaml +592 -0
  41. package/framework/patterns/elicitation.md +2 -0
  42. package/framework/quality-gates/planning-gate.md +1 -1
  43. package/framework/schemas/session.schema.json +36 -3
  44. package/framework/tasks/architect-api-design.md +1 -1
  45. package/framework/tasks/architect-consolidate.md +1 -1
  46. package/framework/tasks/architect-db-design.md +1 -1
  47. package/framework/tasks/architect-design.md +1 -1
  48. package/framework/tasks/architect-security-review.md +1 -1
  49. package/framework/tasks/architect-stack-selection.md +1 -1
  50. package/framework/tasks/brief-consolidate.md +1 -1
  51. package/framework/tasks/brief-constraint-identify.md +1 -1
  52. package/framework/tasks/brief-extract-requirements.md +1 -1
  53. package/framework/tasks/brief-stakeholder-map.md +1 -1
  54. package/framework/tasks/brief-validate-completeness.md +1 -1
  55. package/framework/tasks/brownfield-wu-architecture-map.md +1 -1
  56. package/framework/tasks/brownfield-wu-deep-discovery.md +1 -1
  57. package/framework/tasks/brownfield-wu-dependency-scan.md +1 -1
  58. package/framework/tasks/brownfield-wu-migration-plan.md +1 -1
  59. package/framework/tasks/brownfield-wu-report.md +1 -1
  60. package/framework/tasks/brownfield-wu-risk-assess.md +1 -1
  61. package/framework/tasks/detail-acceptance-criteria.md +1 -1
  62. package/framework/tasks/detail-consolidate.md +1 -1
  63. package/framework/tasks/detail-edge-case-analysis.md +1 -1
  64. package/framework/tasks/detail-expand-prd.md +1 -1
  65. package/framework/tasks/detail-nfr-extraction.md +1 -1
  66. package/framework/tasks/greenfield-wu-analyze-empty.md +1 -1
  67. package/framework/tasks/greenfield-wu-report.md +1 -1
  68. package/framework/tasks/greenfield-wu-scaffold-detection.md +1 -1
  69. package/framework/tasks/greenfield-wu-tech-stack-assess.md +1 -1
  70. package/framework/tasks/orchestrator-deviation.md +2 -2
  71. package/framework/tasks/orchestrator-escalate.md +1 -1
  72. package/framework/tasks/orchestrator-handoff.md +3 -3
  73. package/framework/tasks/orchestrator-mode-switch.md +16 -5
  74. package/framework/tasks/orchestrator-preview.md +181 -0
  75. package/framework/tasks/orchestrator-resume.md +2 -2
  76. package/framework/tasks/orchestrator-route.md +5 -4
  77. package/framework/tasks/orchestrator-status.md +4 -4
  78. package/framework/tasks/orchestrator-suggest-mode.md +7 -7
  79. package/framework/tasks/phases-breakdown.md +1 -1
  80. package/framework/tasks/phases-dependency-mapping.md +1 -1
  81. package/framework/tasks/phases-mvp-scoping.md +1 -1
  82. package/framework/tasks/qa-impl-consolidate.md +2 -2
  83. package/framework/tasks/qa-impl-verdict.md +2 -2
  84. package/framework/tasks/qa-planning-consolidate.md +1 -1
  85. package/framework/tasks/qa-planning-coverage-plan.md +2 -2
  86. package/framework/tasks/qa-planning-gate-define.md +1 -1
  87. package/framework/tasks/qa-planning-risk-matrix.md +1 -1
  88. package/framework/tasks/qa-planning-test-strategy.md +1 -1
  89. package/framework/tasks/tasks-acceptance-write.md +1 -1
  90. package/framework/tasks/tasks-consolidate.md +1 -1
  91. package/framework/tasks/tasks-decompose.md +1 -1
  92. package/framework/tasks/tasks-estimate.md +1 -1
  93. package/framework/tasks/ux-a11y-check.md +1 -1
  94. package/framework/tasks/ux-component-map.md +1 -1
  95. package/framework/tasks/ux-consolidate.md +1 -1
  96. package/framework/tasks/ux-user-flow.md +1 -1
  97. package/framework/tasks/ux-wireframe.md +1 -1
  98. package/framework/templates/quick-brief-tmpl.yaml +90 -0
  99. package/framework/workflows/brownfield-discovery.yaml +7 -7
  100. package/framework/workflows/brownfield-fullstack.yaml +24 -10
  101. package/framework/workflows/brownfield-service.yaml +41 -5
  102. package/framework/workflows/brownfield-ui.yaml +41 -5
  103. package/framework/workflows/greenfield-fullstack.yaml +24 -10
  104. package/framework/workflows/quick-flow.yaml +125 -0
  105. package/package.json +4 -4
  106. package/scripts/bundle-framework.js +1 -1
  107. package/scripts/populate-entity-registry.js +1 -1
  108. package/scripts/semantic-lint.js +2 -2
  109. package/scripts/validate-agents.js +2 -1
  110. package/scripts/validate-package.js +1 -1
  111. package/scripts/validate-tasks.js +1 -1
  112. package/src/autonomy/progress-reporter.js +26 -19
  113. package/src/context/engine.js +1 -1
  114. package/src/context/layers/l1-global.js +17 -5
  115. package/src/dashboard/layout.js +2 -1
  116. package/src/gates/g1-planning-complete.js +10 -10
  117. package/src/installer/core.js +14 -12
  118. package/src/installer/templates.js +1 -1
  119. package/src/installer/validator.js +8 -8
  120. package/src/intelligence/registry-manager.js +4 -4
  121. package/src/memory/session-digest.js +1 -1
  122. package/src/orchestrator/agent-selector.js +11 -11
  123. package/src/orchestrator/intent-classifier.js +12 -8
  124. package/src/orchestrator/pipeline-manager.js +100 -3
  125. package/src/orchestrator/pipeline-state.js +1 -1
  126. package/src/orchestrator/session-manager.js +13 -4
  127. package/src/preview/detector.js +238 -0
  128. package/src/preview/index.js +20 -0
  129. package/src/preview/launcher.js +235 -0
  130. package/src/preview/log-buffer.js +103 -0
  131. package/src/tasks/executor.js +1 -1
  132. package/src/tasks/loader.js +1 -1
  133. package/src/terminal/prompt-builder.js +10 -10
  134. package/src/wizard/i18n.js +3 -3
@@ -48,7 +48,7 @@ For each potential transition, check requirements:
48
48
  **For planning → build**:
49
49
  - QA-Planning agent status = `completed`
50
50
  - QA-Planning score >= 95%
51
- - All PLANNING agents completed or skipped
51
+ - All DISCOVER/PLAN agents completed or skipped
52
52
  - No blocking issues in planning phase
53
53
 
54
54
  **For build → validate**:
@@ -208,7 +208,7 @@ mode_suggestion:
208
208
 
209
209
  current_state:
210
210
  mode: "planning"
211
- phase: "PLANNING"
211
+ phase: "PLAN"
212
212
  last_completed_agent: "qa-planning"
213
213
  last_activity: "2026-02-13T15:30:00Z"
214
214
 
@@ -271,7 +271,7 @@ mode_suggestion:
271
271
  approved_by: "autonomous"
272
272
  rationale: |
273
273
  QA-Planning completed with excellent score (97.5% vs 95% required).
274
- All PLANNING agents complete. No blockers. High confidence (95%).
274
+ All DISCOVER/PLAN agents complete. No blockers. High confidence (95%).
275
275
  Article XI allows autonomous transition. Auto-executing.
276
276
 
277
277
  execution:
@@ -282,7 +282,7 @@ mode_suggestion:
282
282
  user_notification: |
283
283
  ✓ Autonomous Mode Transition
284
284
 
285
- PLANNING → BUILD
285
+ PLAN → BUILD
286
286
 
287
287
  QA-Planning completed with score 97.5% (>= 95% required).
288
288
  Confidence: 95% (high)
@@ -321,14 +321,14 @@ mode_suggestion:
321
321
  3 open questions reduce confidence. Suggesting to user.
322
322
 
323
323
  user_prompt: |
324
- Mode Transition Available: PLANNING → BUILD
324
+ Mode Transition Available: PLAN → BUILD
325
325
 
326
326
  QA-Planning completed with score 96.5% (>= 95% required).
327
327
  Confidence: 87% (strong suggestion)
328
328
 
329
329
  Considerations:
330
330
  ✓ Quality score exceeds threshold
331
- ✓ All PLANNING agents complete
331
+ ✓ All DISCOVER/PLAN agents complete
332
332
  ⚠ 3 open questions remain (non-blocking)
333
333
 
334
334
  Proceed with transition to BUILD mode? (yes/no)
@@ -358,7 +358,7 @@ mode_suggestion:
358
358
  user_notification: |
359
359
  Mode Transition: Not Ready
360
360
 
361
- QA-Planning score: 92% (95% required for PLANNING → BUILD)
361
+ QA-Planning score: 92% (95% required for PLAN → BUILD)
362
362
 
363
363
  To proceed:
364
364
  1. Address planning issues identified by QA-Planning
@@ -2,7 +2,7 @@
2
2
  id: phases-breakdown
3
3
  agent: phases
4
4
  trigger: architect
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [phases.yaml]
@@ -2,7 +2,7 @@
2
2
  id: phases-dependency-mapping
3
3
  agent: phases
4
4
  trigger: phases-breakdown
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [dependency-map.yaml]
@@ -2,7 +2,7 @@
2
2
  id: phases-mvp-scoping
3
3
  agent: phases
4
4
  trigger: phases-dependency-mapping
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [mvp-scope.yaml]
@@ -2,7 +2,7 @@
2
2
  id: qa-impl-consolidate
3
3
  agent: qa-implementation
4
4
  trigger: qa-impl-verdict
5
- phase: validate
5
+ phase: build
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [qa-implementation-report.yaml]
@@ -142,7 +142,7 @@ Compile the final QA implementation report synthesizing all testing, analysis, a
142
142
  version: 1.0.0
143
143
  created: YYYY-MM-DD
144
144
  agent: qa-implementation
145
- phase: validate
145
+ phase: build
146
146
 
147
147
  executive_summary:
148
148
  verdict: PASS # PASS, FAIL, CONDITIONAL
@@ -2,7 +2,7 @@
2
2
  id: qa-impl-verdict
3
3
  agent: qa-implementation
4
4
  trigger: qa-impl-performance-test
5
- phase: validate
5
+ phase: build
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [qa-verdict.yaml]
@@ -148,7 +148,7 @@ Issue the final QA verdict by synthesizing all QA implementation results (tests,
148
148
  version: 1.0.0
149
149
  created: YYYY-MM-DD
150
150
  agent: qa-implementation
151
- phase: validate
151
+ phase: build
152
152
 
153
153
  verdict: PASS # PASS, FAIL, CONDITIONAL
154
154
 
@@ -2,7 +2,7 @@
2
2
  id: qa-planning-consolidate
3
3
  agent: qa-planning
4
4
  trigger: qa-planning-risk-matrix
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [qa-plan.yaml]
@@ -2,7 +2,7 @@
2
2
  id: qa-planning-coverage-plan
3
3
  agent: qa-planning
4
4
  trigger: qa-planning-gate-define
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [coverage-plan.yaml]
@@ -166,7 +166,7 @@ modules:
166
166
  files:
167
167
  - chati.dev/orchestrator.js
168
168
  - chati.dev/mode-governance.js
169
- - chati.dev/deviation-handler.js
169
+ - chati.dev/orchestrator/chati.md
170
170
  hard_to_test:
171
171
  - IDE detection: mock process.env and fs
172
172
  - User prompts: mock readline interface
@@ -2,7 +2,7 @@
2
2
  id: qa-planning-gate-define
3
3
  agent: qa-planning
4
4
  trigger: qa-planning-test-strategy
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [quality-gates.yaml]
@@ -2,7 +2,7 @@
2
2
  id: qa-planning-risk-matrix
3
3
  agent: qa-planning
4
4
  trigger: qa-planning-coverage-plan
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [risk-matrix.yaml]
@@ -2,7 +2,7 @@
2
2
  id: qa-planning-test-strategy
3
3
  agent: qa-planning
4
4
  trigger: orchestrator
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [test-strategy.yaml]
@@ -2,7 +2,7 @@
2
2
  id: tasks-acceptance-write
3
3
  agent: tasks
4
4
  trigger: tasks-estimate
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [task-criteria.yaml]
@@ -2,7 +2,7 @@
2
2
  id: tasks-consolidate
3
3
  agent: tasks
4
4
  trigger: tasks-acceptance-write
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [tasks-final.yaml]
@@ -2,7 +2,7 @@
2
2
  id: tasks-decompose
3
3
  agent: tasks
4
4
  trigger: phases
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [tasks-list.yaml]
@@ -2,7 +2,7 @@
2
2
  id: tasks-estimate
3
3
  agent: tasks
4
4
  trigger: tasks-decompose
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [estimates.yaml]
@@ -2,7 +2,7 @@
2
2
  id: ux-a11y-check
3
3
  agent: ux
4
4
  trigger: ux-component-map
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [a11y-report.yaml]
@@ -2,7 +2,7 @@
2
2
  id: ux-component-map
3
3
  agent: ux
4
4
  trigger: ux-user-flow
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [component-map.yaml]
@@ -2,7 +2,7 @@
2
2
  id: ux-consolidate
3
3
  agent: ux
4
4
  trigger: ux-a11y-check
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [ux-final.yaml]
@@ -2,7 +2,7 @@
2
2
  id: ux-user-flow
3
3
  agent: ux
4
4
  trigger: ux-wireframe
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [user-flows.yaml]
@@ -2,7 +2,7 @@
2
2
  id: ux-wireframe
3
3
  agent: ux
4
4
  trigger: detail
5
- phase: planning
5
+ phase: plan
6
6
  requires_input: false
7
7
  parallelizable: true
8
8
  outputs: [wireframes.yaml]
@@ -0,0 +1,90 @@
1
+ # Quick Brief Template
2
+ # Used by: Brief Agent (quick-extraction mode via Quick Flow workflow)
3
+ # Language: English (Constitution Article VII)
4
+
5
+ template:
6
+ name: Quick Brief
7
+ version: "1.0.0"
8
+ description: >
9
+ Condensed brief for simple tasks (bug fixes, small features, config changes).
10
+ Single-pass extraction instead of the full 5-phase process.
11
+
12
+ fields:
13
+ - name: description
14
+ type: string
15
+ description: "One-sentence description of the change"
16
+ required: true
17
+
18
+ - name: motivation
19
+ type: string
20
+ description: "Why this change is needed (bug report, user request, improvement)"
21
+ required: true
22
+
23
+ - name: scope
24
+ type: object
25
+ description: "Files and estimated scope of change"
26
+ required: true
27
+ fields:
28
+ - name: files_affected
29
+ type: array
30
+ description: "List of files expected to change"
31
+ - name: estimated_size
32
+ type: enum
33
+ values: [small, medium]
34
+ description: "small = 1-3 files, medium = 4-5 files"
35
+
36
+ - name: acceptance_criteria
37
+ type: array
38
+ description: "Given-When-Then acceptance criteria"
39
+ min_items: 1
40
+ required: true
41
+ item_format: "Given {precondition}, When {action}, Then {expected result}"
42
+
43
+ - name: constraints
44
+ type: array
45
+ description: "Any constraints or considerations"
46
+ required: false
47
+
48
+ - name: risk_assessment
49
+ type: object
50
+ description: "Quick risk check for quick-flow eligibility"
51
+ required: true
52
+ fields:
53
+ - name: complexity
54
+ type: enum
55
+ values: [low]
56
+ description: "Must be low for quick-flow"
57
+ - name: pipeline
58
+ type: string
59
+ value: "quick-flow"
60
+ - name: skipped_agents
61
+ type: array
62
+ value: [detail, architect, ux, phases, tasks, qa-planning]
63
+ - name: justification
64
+ type: string
65
+ description: "Why quick-flow is appropriate for this task"
66
+
67
+ output_format: |
68
+ # Quick Brief — {description}
69
+
70
+ ## What
71
+ {One-sentence description of the change}
72
+
73
+ ## Why
74
+ {Motivation: bug report, user request, improvement}
75
+
76
+ ## Scope
77
+ - Files affected: {list}
78
+ - Estimated changes: {small/medium}
79
+
80
+ ## Acceptance Criteria
81
+ - Given {precondition}, When {action}, Then {expected result}
82
+
83
+ ## Constraints
84
+ - {Any constraints or considerations}
85
+
86
+ ## Risk Assessment
87
+ - Complexity: low
88
+ - Pipeline: quick-flow
89
+ - Skipped: Detail, Architect, UX, Phases, Tasks, QA-Planning
90
+ - Justification: {why quick-flow is appropriate}
@@ -15,7 +15,7 @@ workflow:
15
15
  phases:
16
16
  - phase: 0
17
17
  name: Context Detection
18
- category: PLANNING
18
+ category: DISCOVER
19
19
  sequence:
20
20
  - agent: brownfield-wu
21
21
  action: context-detection
@@ -23,7 +23,7 @@ phases:
23
23
 
24
24
  - phase: 1
25
25
  name: Architecture Analysis
26
- category: PLANNING
26
+ category: DISCOVER
27
27
  sequence:
28
28
  - agent: brownfield-wu
29
29
  action: architecture-scout
@@ -31,7 +31,7 @@ phases:
31
31
 
32
32
  - phase: 2
33
33
  name: UX Analysis
34
- category: PLANNING
34
+ category: DISCOVER
35
35
  sequence:
36
36
  - agent: brownfield-wu
37
37
  action: ux-scout
@@ -39,7 +39,7 @@ phases:
39
39
 
40
40
  - phase: 3
41
41
  name: QA Analysis
42
- category: PLANNING
42
+ category: DISCOVER
43
43
  sequence:
44
44
  - agent: brownfield-wu
45
45
  action: qa-scout
@@ -47,7 +47,7 @@ phases:
47
47
 
48
48
  - phase: 4
49
49
  name: Integration Mapping
50
- category: PLANNING
50
+ category: DISCOVER
51
51
  sequence:
52
52
  - agent: brownfield-wu
53
53
  action: integration-mapping
@@ -55,7 +55,7 @@ phases:
55
55
 
56
56
  - phase: 5
57
57
  name: Technical Debt Assessment
58
- category: PLANNING
58
+ category: DISCOVER
59
59
  sequence:
60
60
  - agent: brownfield-wu
61
61
  action: tech-debt-assessment
@@ -63,7 +63,7 @@ phases:
63
63
 
64
64
  - phase: 6
65
65
  name: Synthesis
66
- category: PLANNING
66
+ category: DISCOVER
67
67
  sequence:
68
68
  - agent: brownfield-wu
69
69
  action: compile-report
@@ -15,7 +15,7 @@ workflow:
15
15
  phases:
16
16
  - phase: 0
17
17
  name: Deep Discovery
18
- category: PLANNING
18
+ category: DISCOVER
19
19
  sequence:
20
20
  - agent: brownfield-wu
21
21
  action: full-discovery
@@ -26,7 +26,7 @@ phases:
26
26
 
27
27
  - phase: 1
28
28
  name: Problem Definition
29
- category: PLANNING
29
+ category: DISCOVER
30
30
  sequence:
31
31
  - agent: brief
32
32
  action: problem-extraction
@@ -35,7 +35,7 @@ phases:
35
35
 
36
36
  - phase: 2
37
37
  name: Architecture Assessment
38
- category: PLANNING
38
+ category: PLAN
39
39
  sequence:
40
40
  - agent: architect
41
41
  action: assess-architecture
@@ -47,7 +47,7 @@ phases:
47
47
 
48
48
  - phase: 3
49
49
  name: Product Specification
50
- category: PLANNING
50
+ category: PLAN
51
51
  sequence:
52
52
  - agent: detail
53
53
  action: create-prd
@@ -61,7 +61,7 @@ phases:
61
61
 
62
62
  - phase: 4
63
63
  name: Execution Planning
64
- category: PLANNING
64
+ category: PLAN
65
65
  sequence:
66
66
  - agent: phases
67
67
  action: create-roadmap
@@ -73,7 +73,7 @@ phases:
73
73
 
74
74
  - phase: 5
75
75
  name: Planning Quality Gate
76
- category: PLANNING
76
+ category: PLAN
77
77
  sequence:
78
78
  - agent: qa-planning
79
79
  action: validate-traceability
@@ -99,7 +99,11 @@ phases:
99
99
  creates: [chati.dev/artifacts/8-Validation/deploy-report.md]
100
100
 
101
101
  transitions:
102
- planning_to_build:
102
+ discover_to_plan:
103
+ trigger: "brief.status == completed"
104
+ type: automatic
105
+ action: "Update project.state = plan"
106
+ plan_to_build:
103
107
  trigger: "qa-planning.score >= 95"
104
108
  type: automatic
105
109
  action: "Update project.state = build"
@@ -107,15 +111,25 @@ transitions:
107
111
  trigger: "dev.status == completed"
108
112
  type: automatic
109
113
  action: "Update project.state = validate"
110
- validate_to_deploy:
114
+ validate_to_preview:
111
115
  trigger: "qa-implementation.status == approved"
112
116
  type: automatic
117
+ action: "Launch user preview (orchestrator-preview task)"
118
+ notes: "User must approve preview before advancing to deploy"
119
+ preview_to_deploy:
120
+ trigger: "user_preview.decision in [approve_keep, approve_kill]"
121
+ type: manual
113
122
  action: "Update project.state = deploy"
123
+ notes: "User explicitly approves the preview"
114
124
  deploy_to_completed:
115
125
  trigger: "devops.status == completed"
116
126
  type: automatic
117
127
  action: "Update project.state = completed"
118
- backward_to_planning:
128
+ backward_to_plan:
119
129
  trigger: "qa-implementation.issue_type in [spec, architecture]"
120
130
  type: backward
121
- action: "Update project.state = planning, route to responsible agent"
131
+ action: "Update project.state = plan, route to responsible agent"
132
+ backward_to_discover:
133
+ trigger: "qa-implementation.issue_type in [requirements, scope]"
134
+ type: backward
135
+ action: "Update project.state = discover, route to brief or wu agent"
@@ -16,7 +16,7 @@ workflow:
16
16
  phases:
17
17
  - phase: 0
18
18
  name: Deep Discovery
19
- category: PLANNING
19
+ category: DISCOVER
20
20
  sequence:
21
21
  - agent: brownfield-wu
22
22
  action: full-discovery
@@ -24,7 +24,7 @@ phases:
24
24
 
25
25
  - phase: 1
26
26
  name: Problem Definition
27
- category: PLANNING
27
+ category: DISCOVER
28
28
  sequence:
29
29
  - agent: brief
30
30
  action: problem-extraction
@@ -32,7 +32,7 @@ phases:
32
32
 
33
33
  - phase: 2
34
34
  name: Architecture & Specification
35
- category: PLANNING
35
+ category: PLAN
36
36
  sequence:
37
37
  - agent: architect
38
38
  action: assess-architecture
@@ -45,7 +45,7 @@ phases:
45
45
 
46
46
  - phase: 3
47
47
  name: Execution Planning
48
- category: PLANNING
48
+ category: PLAN
49
49
  sequence:
50
50
  - agent: phases
51
51
  action: create-roadmap
@@ -56,7 +56,7 @@ phases:
56
56
 
57
57
  - phase: 4
58
58
  name: Planning Quality Gate
59
- category: PLANNING
59
+ category: PLAN
60
60
  sequence:
61
61
  - agent: qa-planning
62
62
  action: validate-traceability
@@ -79,3 +79,39 @@ phases:
79
79
  - agent: devops
80
80
  action: deploy
81
81
  creates: [chati.dev/artifacts/8-Validation/deploy-report.md]
82
+
83
+ transitions:
84
+ discover_to_plan:
85
+ trigger: "brief.status == completed"
86
+ type: automatic
87
+ action: "Update project.state = plan"
88
+ plan_to_build:
89
+ trigger: "qa-planning.score >= 95"
90
+ type: automatic
91
+ action: "Update project.state = build"
92
+ build_to_validate:
93
+ trigger: "dev.status == completed"
94
+ type: automatic
95
+ action: "Update project.state = validate"
96
+ validate_to_preview:
97
+ trigger: "qa-implementation.status == approved"
98
+ type: automatic
99
+ action: "Launch user preview (orchestrator-preview task)"
100
+ notes: "User must approve preview before advancing to deploy"
101
+ preview_to_deploy:
102
+ trigger: "user_preview.decision in [approve_keep, approve_kill]"
103
+ type: manual
104
+ action: "Update project.state = deploy"
105
+ notes: "User explicitly approves the preview"
106
+ deploy_to_completed:
107
+ trigger: "devops.status == completed"
108
+ type: automatic
109
+ action: "Update project.state = completed"
110
+ backward_to_plan:
111
+ trigger: "qa-implementation.issue_type in [spec, architecture]"
112
+ type: backward
113
+ action: "Update project.state = plan, route to responsible agent"
114
+ backward_to_discover:
115
+ trigger: "qa-implementation.issue_type in [requirements, scope]"
116
+ type: backward
117
+ action: "Update project.state = discover, route to brief or wu agent"
@@ -16,7 +16,7 @@ workflow:
16
16
  phases:
17
17
  - phase: 0
18
18
  name: Deep Discovery
19
- category: PLANNING
19
+ category: DISCOVER
20
20
  sequence:
21
21
  - agent: brownfield-wu
22
22
  action: full-discovery
@@ -25,7 +25,7 @@ phases:
25
25
 
26
26
  - phase: 1
27
27
  name: Problem Definition
28
- category: PLANNING
28
+ category: DISCOVER
29
29
  sequence:
30
30
  - agent: brief
31
31
  action: problem-extraction
@@ -33,7 +33,7 @@ phases:
33
33
 
34
34
  - phase: 2
35
35
  name: Architecture & Experience
36
- category: PLANNING
36
+ category: PLAN
37
37
  sequence:
38
38
  - agent: architect
39
39
  action: assess-architecture
@@ -50,7 +50,7 @@ phases:
50
50
 
51
51
  - phase: 3
52
52
  name: Execution Planning
53
- category: PLANNING
53
+ category: PLAN
54
54
  sequence:
55
55
  - agent: phases
56
56
  action: create-roadmap
@@ -61,7 +61,7 @@ phases:
61
61
 
62
62
  - phase: 4
63
63
  name: Planning Quality Gate
64
- category: PLANNING
64
+ category: PLAN
65
65
  sequence:
66
66
  - agent: qa-planning
67
67
  action: validate-traceability
@@ -85,3 +85,39 @@ phases:
85
85
  - agent: devops
86
86
  action: deploy
87
87
  creates: [chati.dev/artifacts/8-Validation/deploy-report.md]
88
+
89
+ transitions:
90
+ discover_to_plan:
91
+ trigger: "brief.status == completed"
92
+ type: automatic
93
+ action: "Update project.state = plan"
94
+ plan_to_build:
95
+ trigger: "qa-planning.score >= 95"
96
+ type: automatic
97
+ action: "Update project.state = build"
98
+ build_to_validate:
99
+ trigger: "dev.status == completed"
100
+ type: automatic
101
+ action: "Update project.state = validate"
102
+ validate_to_preview:
103
+ trigger: "qa-implementation.status == approved"
104
+ type: automatic
105
+ action: "Launch user preview (orchestrator-preview task)"
106
+ notes: "User must approve preview before advancing to deploy"
107
+ preview_to_deploy:
108
+ trigger: "user_preview.decision in [approve_keep, approve_kill]"
109
+ type: manual
110
+ action: "Update project.state = deploy"
111
+ notes: "User explicitly approves the preview"
112
+ deploy_to_completed:
113
+ trigger: "devops.status == completed"
114
+ type: automatic
115
+ action: "Update project.state = completed"
116
+ backward_to_plan:
117
+ trigger: "qa-implementation.issue_type in [spec, architecture]"
118
+ type: backward
119
+ action: "Update project.state = plan, route to responsible agent"
120
+ backward_to_discover:
121
+ trigger: "qa-implementation.issue_type in [requirements, scope]"
122
+ type: backward
123
+ action: "Update project.state = discover, route to brief or wu agent"