chati-dev 2.0.5 → 2.0.6

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 (118) hide show
  1. package/README.md +48 -36
  2. package/framework/agents/{clarity → planning}/architect.md +1 -1
  3. package/framework/agents/{clarity → planning}/brief.md +1 -1
  4. package/framework/agents/{clarity → planning}/brownfield-wu.md +1 -1
  5. package/framework/agents/{clarity → planning}/detail.md +1 -1
  6. package/framework/agents/{clarity → planning}/greenfield-wu.md +1 -1
  7. package/framework/agents/{clarity → planning}/phases.md +1 -1
  8. package/framework/agents/{clarity → planning}/tasks.md +1 -1
  9. package/framework/agents/{clarity → planning}/ux.md +1 -1
  10. package/framework/agents/quality/qa-planning.md +5 -5
  11. package/framework/constitution.md +6 -6
  12. package/framework/context/governance.md +3 -3
  13. package/framework/context/quality.md +1 -1
  14. package/framework/context/root.md +1 -1
  15. package/framework/data/entity-registry.yaml +9 -9
  16. package/framework/domains/agents/qa-implementation.yaml +1 -1
  17. package/framework/domains/constitution.yaml +2 -2
  18. package/framework/domains/global.yaml +1 -1
  19. package/framework/hooks/mode-governance.js +5 -5
  20. package/framework/hooks/prism-engine.js +1 -1
  21. package/framework/hooks/session-digest.js +1 -1
  22. package/framework/i18n/en.yaml +1 -3
  23. package/framework/i18n/es.yaml +1 -3
  24. package/framework/i18n/fr.yaml +1 -3
  25. package/framework/i18n/pt.yaml +1 -3
  26. package/framework/intelligence/context-engine.md +3 -3
  27. package/framework/orchestrator/chati.md +24 -24
  28. package/framework/quality-gates/planning-gate.md +1 -1
  29. package/framework/schemas/context.schema.json +1 -1
  30. package/framework/schemas/session.schema.json +3 -3
  31. package/framework/tasks/architect-api-design.md +1 -1
  32. package/framework/tasks/architect-consolidate.md +1 -1
  33. package/framework/tasks/architect-db-design.md +1 -1
  34. package/framework/tasks/architect-design.md +1 -1
  35. package/framework/tasks/architect-security-review.md +1 -1
  36. package/framework/tasks/architect-stack-selection.md +1 -1
  37. package/framework/tasks/brief-consolidate.md +1 -1
  38. package/framework/tasks/brief-constraint-identify.md +1 -1
  39. package/framework/tasks/brief-extract-requirements.md +1 -1
  40. package/framework/tasks/brief-stakeholder-map.md +1 -1
  41. package/framework/tasks/brief-validate-completeness.md +1 -1
  42. package/framework/tasks/brownfield-wu-architecture-map.md +1 -1
  43. package/framework/tasks/brownfield-wu-deep-discovery.md +1 -1
  44. package/framework/tasks/brownfield-wu-dependency-scan.md +1 -1
  45. package/framework/tasks/brownfield-wu-migration-plan.md +1 -1
  46. package/framework/tasks/brownfield-wu-report.md +1 -1
  47. package/framework/tasks/brownfield-wu-risk-assess.md +1 -1
  48. package/framework/tasks/detail-acceptance-criteria.md +1 -1
  49. package/framework/tasks/detail-consolidate.md +1 -1
  50. package/framework/tasks/detail-edge-case-analysis.md +1 -1
  51. package/framework/tasks/detail-expand-prd.md +1 -1
  52. package/framework/tasks/detail-nfr-extraction.md +1 -1
  53. package/framework/tasks/greenfield-wu-analyze-empty.md +1 -1
  54. package/framework/tasks/greenfield-wu-report.md +1 -1
  55. package/framework/tasks/greenfield-wu-scaffold-detection.md +1 -1
  56. package/framework/tasks/greenfield-wu-tech-stack-assess.md +1 -1
  57. package/framework/tasks/orchestrator-deviation.md +3 -3
  58. package/framework/tasks/orchestrator-escalate.md +2 -2
  59. package/framework/tasks/orchestrator-handoff.md +6 -6
  60. package/framework/tasks/orchestrator-health.md +1 -1
  61. package/framework/tasks/orchestrator-mode-switch.md +20 -20
  62. package/framework/tasks/orchestrator-resume.md +6 -6
  63. package/framework/tasks/orchestrator-route.md +7 -7
  64. package/framework/tasks/orchestrator-status.md +8 -8
  65. package/framework/tasks/orchestrator-suggest-mode.md +13 -13
  66. package/framework/tasks/phases-breakdown.md +1 -1
  67. package/framework/tasks/phases-dependency-mapping.md +1 -1
  68. package/framework/tasks/phases-mvp-scoping.md +1 -1
  69. package/framework/tasks/qa-impl-regression-check.md +2 -2
  70. package/framework/tasks/qa-planning-consolidate.md +3 -3
  71. package/framework/tasks/qa-planning-coverage-plan.md +1 -1
  72. package/framework/tasks/qa-planning-gate-define.md +7 -7
  73. package/framework/tasks/qa-planning-risk-matrix.md +1 -1
  74. package/framework/tasks/qa-planning-test-strategy.md +1 -1
  75. package/framework/tasks/tasks-acceptance-write.md +1 -1
  76. package/framework/tasks/tasks-consolidate.md +1 -1
  77. package/framework/tasks/tasks-decompose.md +1 -1
  78. package/framework/tasks/tasks-estimate.md +1 -1
  79. package/framework/tasks/ux-a11y-check.md +1 -1
  80. package/framework/tasks/ux-component-map.md +1 -1
  81. package/framework/tasks/ux-consolidate.md +1 -1
  82. package/framework/tasks/ux-user-flow.md +1 -1
  83. package/framework/tasks/ux-wireframe.md +1 -1
  84. package/framework/workflows/brownfield-discovery.yaml +7 -7
  85. package/framework/workflows/brownfield-fullstack.yaml +9 -9
  86. package/framework/workflows/brownfield-service.yaml +5 -5
  87. package/framework/workflows/brownfield-ui.yaml +5 -5
  88. package/framework/workflows/greenfield-fullstack.yaml +9 -9
  89. package/package.json +2 -2
  90. package/scripts/bundle-framework.js +1 -1
  91. package/scripts/health-check.js +8 -8
  92. package/scripts/populate-entity-registry.js +1 -1
  93. package/scripts/validate-agents.js +1 -1
  94. package/scripts/validate-tasks.js +1 -1
  95. package/src/autonomy/autonomous-gate.js +1 -1
  96. package/src/autonomy/progress-reporter.js +9 -9
  97. package/src/config/mcp-configs.js +16 -85
  98. package/src/context/engine.js +2 -2
  99. package/src/context/layers/l1-global.js +3 -3
  100. package/src/dashboard/layout.js +7 -7
  101. package/src/dashboard/renderer.js +2 -2
  102. package/src/gates/g1-planning-complete.js +9 -9
  103. package/src/installer/core.js +11 -11
  104. package/src/installer/templates.js +1 -1
  105. package/src/installer/validator.js +8 -8
  106. package/src/intelligence/registry-manager.js +4 -4
  107. package/src/memory/session-digest.js +1 -1
  108. package/src/orchestrator/agent-selector.js +10 -10
  109. package/src/orchestrator/intent-classifier.js +4 -4
  110. package/src/orchestrator/pipeline-manager.js +3 -3
  111. package/src/orchestrator/pipeline-state.js +1 -1
  112. package/src/orchestrator/session-manager.js +3 -3
  113. package/src/tasks/executor.js +1 -1
  114. package/src/tasks/loader.js +1 -1
  115. package/src/terminal/prompt-builder.js +10 -10
  116. package/src/wizard/i18n.js +1 -3
  117. package/src/wizard/index.js +10 -15
  118. package/src/wizard/questions.js +7 -70
@@ -96,7 +96,7 @@ If not already set in session.yaml:
96
96
  project:
97
97
  name: "{detected or asked}"
98
98
  type: greenfield | brownfield
99
- state: clarity
99
+ state: planning
100
100
  execution_mode: interactive
101
101
  current_agent: greenfield-wu | brownfield-wu
102
102
  language: "{detected}"
@@ -106,8 +106,8 @@ user_level_confidence: 0.0
106
106
 
107
107
  #### 3d. Route to First Agent
108
108
  ```
109
- If greenfield -> Read chati.dev/agents/clarity/greenfield-wu.md -> Activate
110
- If brownfield -> Read chati.dev/agents/clarity/brownfield-wu.md -> Activate
109
+ If greenfield -> Read chati.dev/agents/planning/greenfield-wu.md -> Activate
110
+ If brownfield -> Read chati.dev/agents/planning/brownfield-wu.md -> Activate
111
111
  ```
112
112
 
113
113
  ### Step 5: Session Resume
@@ -144,14 +144,14 @@ brownfield-wu -> Brief -> Architect -> Detail -> UX -> Phases -> Tasks -> QA-Pla
144
144
  ### Agent Location Map
145
145
  | Agent | File |
146
146
  |-------|------|
147
- | greenfield-wu | chati.dev/agents/clarity/greenfield-wu.md |
148
- | brownfield-wu | chati.dev/agents/clarity/brownfield-wu.md |
149
- | brief | chati.dev/agents/clarity/brief.md |
150
- | detail | chati.dev/agents/clarity/detail.md |
151
- | architect | chati.dev/agents/clarity/architect.md |
152
- | ux | chati.dev/agents/clarity/ux.md |
153
- | phases | chati.dev/agents/clarity/phases.md |
154
- | tasks | chati.dev/agents/clarity/tasks.md |
147
+ | greenfield-wu | chati.dev/agents/planning/greenfield-wu.md |
148
+ | brownfield-wu | chati.dev/agents/planning/brownfield-wu.md |
149
+ | brief | chati.dev/agents/planning/brief.md |
150
+ | detail | chati.dev/agents/planning/detail.md |
151
+ | architect | chati.dev/agents/planning/architect.md |
152
+ | ux | chati.dev/agents/planning/ux.md |
153
+ | phases | chati.dev/agents/planning/phases.md |
154
+ | tasks | chati.dev/agents/planning/tasks.md |
155
155
  | qa-planning | chati.dev/agents/quality/qa-planning.md |
156
156
  | dev | chati.dev/agents/build/dev.md |
157
157
  | qa-implementation | chati.dev/agents/quality/qa-implementation.md |
@@ -167,7 +167,7 @@ When an agent completes (score >= 95%):
167
167
  4. Orchestrator identifies next agent from pipeline
168
168
  5. Update session.yaml: current_agent = next_agent
169
169
  6. Update project.state if crossing macro-phase boundary:
170
- - WU through QA-Planning = clarity
170
+ - WU through QA-Planning = planning
171
171
  - Dev + QA-Implementation = build
172
172
  - Final validation = validate
173
173
  - DevOps = deploy
@@ -230,7 +230,7 @@ For autonomous agents:
230
230
  ╔══════════════════════════════════════════════════════════════╗
231
231
  ║ PARALLELIZATION CHECK (MANDATORY — DO NOT SKIP) ║
232
232
  ║ ║
233
- ║ GROUP 1 — Clarity Phase (after Brief completes):
233
+ ║ GROUP 1 — Planning Phase (after Brief completes):
234
234
  ║ Agents: [detail, architect, ux] ║
235
235
  ║ ALL run in parallel via separate terminals ║
236
236
  ║ ║
@@ -344,7 +344,7 @@ model_selections:
344
344
  Before any agent writes a file, the orchestrator validates the operation against the current mode:
345
345
 
346
346
  ```
347
- If project.state == "clarity":
347
+ If project.state == "planning":
348
348
  ALLOW write to: chati.dev/**, .chati/**
349
349
  BLOCK write to: everything else
350
350
  ALLOW read: everything (essential for brownfield-wu codebase analysis)
@@ -364,13 +364,13 @@ If project.state == "deploy":
364
364
  Mode transitions are AUTOMATIC based on quality gate results. The orchestrator executes the transition when the trigger condition is met.
365
365
 
366
366
  ```
367
- clarity -> build:
367
+ planning -> build:
368
368
  TRIGGER: qa-planning agent completes with score >= 95%
369
369
  ACTION:
370
370
  1. Update project.state = "build"
371
371
  2. Log transition in session.yaml mode_transitions:
372
372
  - timestamp: "{now}"
373
- from: clarity
373
+ from: planning
374
374
  to: build
375
375
  trigger: "qa-planning completed with score {score}%"
376
376
  type: automatic
@@ -403,12 +403,12 @@ deploy -> completed:
403
403
  ### Backward Transitions
404
404
 
405
405
  ```
406
- build/validate -> clarity:
406
+ build/validate -> planning:
407
407
  TRIGGER: qa-implementation classifies issue as:
408
408
  - issue_type: "spec" (requirement gap, ambiguity, conflict)
409
409
  - issue_type: "architecture" (design flaw, missing component)
410
410
  ACTION:
411
- 1. Update project.state = "clarity"
411
+ 1. Update project.state = "planning"
412
412
  2. Log backward transition in mode_transitions:
413
413
  - type: backward
414
414
  reason: "{QA finding description}"
@@ -432,8 +432,8 @@ When user requests to skip phases (e.g., "I need to code this NOW"):
432
432
  ```
433
433
  1. Orchestrator detects intent to change mode
434
434
  2. Inform user of current state and what will be skipped:
435
- "You're in CLARITY mode. Skipping to BUILD will bypass:
436
- - {list of pending CLARITY agents}
435
+ "You're in PLANNING mode. Skipping to BUILD will bypass:
436
+ - {list of pending PLANNING agents}
437
437
  Artifacts from these agents will not be generated."
438
438
  3. Request explicit confirmation
439
439
  4. If confirmed:
@@ -445,7 +445,7 @@ When user requests to skip phases (e.g., "I need to code this NOW"):
445
445
  - Mark skipped agents as "skipped" in session.yaml (not "completed")
446
446
  - Continue with target agent
447
447
  5. After override session completes, suggest:
448
- "You skipped CLARITY phases. Want to go back and complete planning?"
448
+ "You skipped PLANNING phases. Want to go back and complete planning?"
449
449
  ```
450
450
 
451
451
  ---
@@ -550,7 +550,7 @@ Display project status dashboard:
550
550
  Phase: {state} Mode: {execution_mode}
551
551
  Language: {language} IDE: {ides}
552
552
 
553
- CLARITY:
553
+ PLANNING:
554
554
  WU: {score} Brief: {score} Detail: {score} Arch: {score}
555
555
  UX: {score} Phases: {score} Tasks: {score} QA-P: {score}
556
556
 
@@ -756,7 +756,7 @@ If agent fails repeatedly:
756
756
  ### Exclusive (only the orchestrator can do this)
757
757
  - Route user messages to agents
758
758
  - Activate/deactivate agents
759
- - Execute mode transitions (clarity -> build -> validate -> deploy)
759
+ - Execute mode transitions (planning -> build -> validate -> deploy)
760
760
  - Manage session lock (activate/deactivate)
761
761
  - Handle deviations and re-routing
762
762
  - Manage backlog items
@@ -938,7 +938,7 @@ Level 4 - Graceful Degradation:
938
938
  1. **Single Entry Point**: The orchestrator is the ONLY way users interact with Chati.dev. No agent is directly accessible.
939
939
  2. **Transparent Routing**: Users should understand which agent is active and why, but never need to manage agents directly.
940
940
  3. **State Preservation**: Every state change is logged in session.yaml. No action is lossy.
941
- 4. **Fail-Safe Defaults**: When uncertain, default to the most restrictive mode (clarity) and the safest agent.
941
+ 4. **Fail-Safe Defaults**: When uncertain, default to the most restrictive mode (planning) and the safest agent.
942
942
  5. **Progressive Disclosure**: Show complexity only when the user needs it. Start simple, reveal depth on demand.
943
943
  6. **Pipeline Respect**: Never skip pipeline steps without explicit user consent and documented risk.
944
944
  7. **Language Fidelity**: Interaction always in user's language. Artifacts always in English. No exceptions.
@@ -1,7 +1,7 @@
1
1
  # Planning Quality Gate
2
2
 
3
3
  ## Purpose
4
- Validates traceability and consistency across all CLARITY artifacts before allowing transition to BUILD phase.
4
+ Validates traceability and consistency across all PLANNING artifacts before allowing transition to BUILD phase.
5
5
 
6
6
  ## When
7
7
  After Tasks agent completes, before Dev agent starts.
@@ -14,7 +14,7 @@
14
14
  "description": "Summarized constitution content (always injected, L0 layer)"
15
15
  },
16
16
  "mode": {
17
- "enum": ["clarity", "build", "deploy"],
17
+ "enum": ["planning", "build", "deploy"],
18
18
  "description": "Current execution mode from session state (L1 layer)"
19
19
  },
20
20
  "agent": {
@@ -11,7 +11,7 @@
11
11
  "properties": {
12
12
  "name": { "type": "string", "description": "Project name" },
13
13
  "type": { "enum": ["greenfield", "brownfield"], "description": "Project type" },
14
- "state": { "enum": ["clarity", "build", "validate", "deploy", "completed"], "description": "Current pipeline macro-phase" }
14
+ "state": { "enum": ["planning", "build", "validate", "deploy", "completed"], "description": "Current pipeline macro-phase" }
15
15
  }
16
16
  },
17
17
  "execution_mode": {
@@ -122,8 +122,8 @@
122
122
  "required": ["timestamp", "from", "to", "trigger"],
123
123
  "properties": {
124
124
  "timestamp": { "type": "string", "format": "date-time" },
125
- "from": { "enum": ["clarity", "build", "validate", "deploy", "completed"] },
126
- "to": { "enum": ["clarity", "build", "validate", "deploy", "completed"] },
125
+ "from": { "enum": ["planning", "build", "validate", "deploy", "completed"] },
126
+ "to": { "enum": ["planning", "build", "validate", "deploy", "completed"] },
127
127
  "trigger": { "type": "string", "description": "What caused the transition (agent completion, override, backward)" },
128
128
  "type": { "enum": ["automatic", "backward", "override"], "description": "Transition classification" },
129
129
  "skipped_agents": {
@@ -2,7 +2,7 @@
2
2
  id: architect-api-design
3
3
  agent: architect
4
4
  trigger: architect-stack-selection
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [api-design.yaml]
@@ -2,7 +2,7 @@
2
2
  id: architect-consolidate
3
3
  agent: architect
4
4
  trigger: architect-security-review
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [architecture-final.yaml]
@@ -2,7 +2,7 @@
2
2
  id: architect-db-design
3
3
  agent: architect
4
4
  trigger: architect-api-design
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [db-design.yaml]
@@ -2,7 +2,7 @@
2
2
  id: architect-design
3
3
  agent: architect
4
4
  trigger: detail
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: true
8
8
  outputs: [architecture.yaml]
@@ -2,7 +2,7 @@
2
2
  id: architect-security-review
3
3
  agent: architect
4
4
  trigger: architect-db-design
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [security-review.yaml]
@@ -2,7 +2,7 @@
2
2
  id: architect-stack-selection
3
3
  agent: architect
4
4
  trigger: architect-design
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [stack-selection.yaml]
@@ -2,7 +2,7 @@
2
2
  id: brief-consolidate
3
3
  agent: brief
4
4
  trigger: brief-constraint-identify
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [brief.yaml]
@@ -2,7 +2,7 @@
2
2
  id: brief-constraint-identify
3
3
  agent: brief
4
4
  trigger: brief-stakeholder-map
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: true
7
7
  parallelizable: false
8
8
  outputs: [constraints.yaml]
@@ -2,7 +2,7 @@
2
2
  id: brief-extract-requirements
3
3
  agent: brief
4
4
  trigger: orchestrator
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: true
7
7
  parallelizable: false
8
8
  outputs: [requirements-raw.yaml]
@@ -2,7 +2,7 @@
2
2
  id: brief-stakeholder-map
3
3
  agent: brief
4
4
  trigger: brief-validate-completeness
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: true
7
7
  parallelizable: false
8
8
  outputs: [stakeholder-map.yaml]
@@ -2,7 +2,7 @@
2
2
  id: brief-validate-completeness
3
3
  agent: brief
4
4
  trigger: brief-extract-requirements
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: true
7
7
  parallelizable: false
8
8
  outputs: [validation-report.yaml]
@@ -2,7 +2,7 @@
2
2
  id: brownfield-wu-architecture-map
3
3
  agent: brownfield-wu
4
4
  trigger: brownfield-wu-dependency-scan
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: true
8
8
  outputs: [architecture-map.yaml]
@@ -2,7 +2,7 @@
2
2
  id: brownfield-wu-deep-discovery
3
3
  agent: brownfield-wu
4
4
  trigger: orchestrator
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [discovery.yaml]
@@ -2,7 +2,7 @@
2
2
  id: brownfield-wu-dependency-scan
3
3
  agent: brownfield-wu
4
4
  trigger: brownfield-wu-deep-discovery
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: true
8
8
  outputs: [dependencies.yaml]
@@ -2,7 +2,7 @@
2
2
  id: brownfield-wu-migration-plan
3
3
  agent: brownfield-wu
4
4
  trigger: brownfield-wu-risk-assess
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: true
7
7
  parallelizable: false
8
8
  outputs: [migration-plan.yaml]
@@ -2,7 +2,7 @@
2
2
  id: brownfield-wu-report
3
3
  agent: brownfield-wu
4
4
  trigger: brownfield-wu-migration-plan
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [wu-report.yaml]
@@ -2,7 +2,7 @@
2
2
  id: brownfield-wu-risk-assess
3
3
  agent: brownfield-wu
4
4
  trigger: brownfield-wu-architecture-map
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [risk-assessment.yaml]
@@ -2,7 +2,7 @@
2
2
  id: detail-acceptance-criteria
3
3
  agent: detail
4
4
  trigger: detail-edge-case-analysis
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [acceptance-criteria.yaml]
@@ -2,7 +2,7 @@
2
2
  id: detail-consolidate
3
3
  agent: detail
4
4
  trigger: detail-acceptance-criteria
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [prd.yaml]
@@ -2,7 +2,7 @@
2
2
  id: detail-edge-case-analysis
3
3
  agent: detail
4
4
  trigger: detail-nfr-extraction
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: true
8
8
  outputs: [edge-cases.yaml]
@@ -2,7 +2,7 @@
2
2
  id: detail-expand-prd
3
3
  agent: detail
4
4
  trigger: brief
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [prd-draft.yaml]
@@ -2,7 +2,7 @@
2
2
  id: detail-nfr-extraction
3
3
  agent: detail
4
4
  trigger: detail-expand-prd
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: true
8
8
  outputs: [nfr.yaml]
@@ -2,7 +2,7 @@
2
2
  id: greenfield-wu-analyze-empty
3
3
  agent: greenfield-wu
4
4
  trigger: orchestrator
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [wu-analysis.yaml]
@@ -2,7 +2,7 @@
2
2
  id: greenfield-wu-report
3
3
  agent: greenfield-wu
4
4
  trigger: greenfield-wu-tech-stack-assess
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [wu-report.yaml]
@@ -2,7 +2,7 @@
2
2
  id: greenfield-wu-scaffold-detection
3
3
  agent: greenfield-wu
4
4
  trigger: greenfield-wu-analyze-empty
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: false
7
7
  parallelizable: false
8
8
  outputs: [scaffold-report.yaml]
@@ -2,7 +2,7 @@
2
2
  id: greenfield-wu-tech-stack-assess
3
3
  agent: greenfield-wu
4
4
  trigger: greenfield-wu-scaffold-detection
5
- phase: clarity
5
+ phase: planning
6
6
  requires_input: true
7
7
  parallelizable: false
8
8
  outputs: [tech-stack.yaml]
@@ -54,8 +54,8 @@ Identify which artifacts are impacted:
54
54
  ### 4. Assess Impact Scope
55
55
  Evaluate the ripple effects:
56
56
  - **Localized**: Change affects only current/next agent
57
- - **Phase-wide**: Change affects current phase (e.g., all of CLARITY)
58
- - **Mode-wide**: Change affects entire mode (e.g., clarity → build transition)
57
+ - **Phase-wide**: Change affects current phase (e.g., all of PLANNING)
58
+ - **Mode-wide**: Change affects entire mode (e.g., planning → build transition)
59
59
  - **Global**: Change affects entire project plan
60
60
 
61
61
  ### 5. Determine Required Rework
@@ -172,7 +172,7 @@ deviation_plan:
172
172
  urgency: "medium"
173
173
 
174
174
  impact_assessment:
175
- scope: "phase-wide" # Affects multiple CLARITY agents
175
+ scope: "phase-wide" # Affects multiple PLANNING agents
176
176
  affected_agents:
177
177
  - agent: "detail"
178
178
  status: "completed"
@@ -190,8 +190,8 @@ escalation_report:
190
190
 
191
191
  context:
192
192
  previous_agent: "detail"
193
- session_mode: "clarity"
194
- pipeline_position: "CLARITY/architect"
193
+ session_mode: "planning"
194
+ pipeline_position: "PLANNING/architect"
195
195
 
196
196
  root_cause_analysis:
197
197
  primary_cause: "dependency-missing"
@@ -77,14 +77,14 @@ Modify `.chati/session.yaml`:
77
77
 
78
78
  ### 7. Determine Next Agent
79
79
  Based on pipeline position and mode:
80
- - **CLARITY**: Follow sequence (wu → brief → detail → architect → ux → phases → tasks → qa-planning)
80
+ - **PLANNING**: Follow sequence (wu → brief → detail → architect → ux → phases → tasks → qa-planning)
81
81
  - **BUILD**: dev → qa-implementation
82
82
  - **DEPLOY**: devops
83
83
  - Handle special transitions (e.g., qa-planning → dev requires mode switch)
84
84
 
85
85
  ### 8. Check Quality Gates
86
86
  Evaluate if mode transition should occur:
87
- - **After QA-Planning**: If score >= 95%, eligible for clarity → build
87
+ - **After QA-Planning**: If score >= 95%, eligible for planning → build
88
88
  - **After Dev**: If complete, eligible for build → validate
89
89
  - **After QA-Implementation**: If approved, eligible for validate → deploy
90
90
 
@@ -170,8 +170,8 @@ handoff_document:
170
170
  status: "completed"
171
171
  quality_score: 8.5
172
172
  duration_minutes: 45
173
- mode: "clarity"
174
- phase: "CLARITY"
173
+ mode: "planning"
174
+ phase: "PLANNING"
175
175
 
176
176
  summary: |
177
177
  Completed detailed requirements analysis for HealthCare Portal.
@@ -228,14 +228,14 @@ handoff_document:
228
228
 
229
229
  session_update:
230
230
  agent_status: "completed"
231
- pipeline_progress: 37.5 # 3 of 8 CLARITY agents done
231
+ pipeline_progress: 37.5 # 3 of 8 PLANNING agents done
232
232
  mode_transition_check:
233
233
  eligible: false
234
234
  reason: "QA-Planning not yet complete"
235
235
 
236
236
  routing_decision:
237
237
  next_action: "route-to-architect"
238
- mode: "clarity"
238
+ mode: "planning"
239
239
  context_package:
240
240
  - ".chati/artifacts/handoffs/2026-02-13-detail.md"
241
241
  - ".chati/artifacts/handoffs/2026-02-12-brief.md"
@@ -282,7 +282,7 @@ health_report:
282
282
  status: "healthy"
283
283
  articles_present: 11
284
284
  article_xi_valid: true
285
- mode_definitions: ["clarity", "build", "deploy"]
285
+ mode_definitions: ["planning", "build", "deploy"]
286
286
  transition_rules_defined: true
287
287
  quality_gates_specified: true
288
288