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.
- package/README.md +48 -36
- package/framework/agents/{clarity → planning}/architect.md +1 -1
- package/framework/agents/{clarity → planning}/brief.md +1 -1
- package/framework/agents/{clarity → planning}/brownfield-wu.md +1 -1
- package/framework/agents/{clarity → planning}/detail.md +1 -1
- package/framework/agents/{clarity → planning}/greenfield-wu.md +1 -1
- package/framework/agents/{clarity → planning}/phases.md +1 -1
- package/framework/agents/{clarity → planning}/tasks.md +1 -1
- package/framework/agents/{clarity → planning}/ux.md +1 -1
- package/framework/agents/quality/qa-planning.md +5 -5
- package/framework/constitution.md +6 -6
- package/framework/context/governance.md +3 -3
- package/framework/context/quality.md +1 -1
- package/framework/context/root.md +1 -1
- package/framework/data/entity-registry.yaml +9 -9
- package/framework/domains/agents/qa-implementation.yaml +1 -1
- package/framework/domains/constitution.yaml +2 -2
- package/framework/domains/global.yaml +1 -1
- package/framework/hooks/mode-governance.js +5 -5
- package/framework/hooks/prism-engine.js +1 -1
- package/framework/hooks/session-digest.js +1 -1
- package/framework/i18n/en.yaml +1 -3
- package/framework/i18n/es.yaml +1 -3
- package/framework/i18n/fr.yaml +1 -3
- package/framework/i18n/pt.yaml +1 -3
- package/framework/intelligence/context-engine.md +3 -3
- package/framework/orchestrator/chati.md +24 -24
- package/framework/quality-gates/planning-gate.md +1 -1
- package/framework/schemas/context.schema.json +1 -1
- package/framework/schemas/session.schema.json +3 -3
- package/framework/tasks/architect-api-design.md +1 -1
- package/framework/tasks/architect-consolidate.md +1 -1
- package/framework/tasks/architect-db-design.md +1 -1
- package/framework/tasks/architect-design.md +1 -1
- package/framework/tasks/architect-security-review.md +1 -1
- package/framework/tasks/architect-stack-selection.md +1 -1
- package/framework/tasks/brief-consolidate.md +1 -1
- package/framework/tasks/brief-constraint-identify.md +1 -1
- package/framework/tasks/brief-extract-requirements.md +1 -1
- package/framework/tasks/brief-stakeholder-map.md +1 -1
- package/framework/tasks/brief-validate-completeness.md +1 -1
- package/framework/tasks/brownfield-wu-architecture-map.md +1 -1
- package/framework/tasks/brownfield-wu-deep-discovery.md +1 -1
- package/framework/tasks/brownfield-wu-dependency-scan.md +1 -1
- package/framework/tasks/brownfield-wu-migration-plan.md +1 -1
- package/framework/tasks/brownfield-wu-report.md +1 -1
- package/framework/tasks/brownfield-wu-risk-assess.md +1 -1
- package/framework/tasks/detail-acceptance-criteria.md +1 -1
- package/framework/tasks/detail-consolidate.md +1 -1
- package/framework/tasks/detail-edge-case-analysis.md +1 -1
- package/framework/tasks/detail-expand-prd.md +1 -1
- package/framework/tasks/detail-nfr-extraction.md +1 -1
- package/framework/tasks/greenfield-wu-analyze-empty.md +1 -1
- package/framework/tasks/greenfield-wu-report.md +1 -1
- package/framework/tasks/greenfield-wu-scaffold-detection.md +1 -1
- package/framework/tasks/greenfield-wu-tech-stack-assess.md +1 -1
- package/framework/tasks/orchestrator-deviation.md +3 -3
- package/framework/tasks/orchestrator-escalate.md +2 -2
- package/framework/tasks/orchestrator-handoff.md +6 -6
- package/framework/tasks/orchestrator-health.md +1 -1
- package/framework/tasks/orchestrator-mode-switch.md +20 -20
- package/framework/tasks/orchestrator-resume.md +6 -6
- package/framework/tasks/orchestrator-route.md +7 -7
- package/framework/tasks/orchestrator-status.md +8 -8
- package/framework/tasks/orchestrator-suggest-mode.md +13 -13
- package/framework/tasks/phases-breakdown.md +1 -1
- package/framework/tasks/phases-dependency-mapping.md +1 -1
- package/framework/tasks/phases-mvp-scoping.md +1 -1
- package/framework/tasks/qa-impl-regression-check.md +2 -2
- package/framework/tasks/qa-planning-consolidate.md +3 -3
- package/framework/tasks/qa-planning-coverage-plan.md +1 -1
- package/framework/tasks/qa-planning-gate-define.md +7 -7
- package/framework/tasks/qa-planning-risk-matrix.md +1 -1
- package/framework/tasks/qa-planning-test-strategy.md +1 -1
- package/framework/tasks/tasks-acceptance-write.md +1 -1
- package/framework/tasks/tasks-consolidate.md +1 -1
- package/framework/tasks/tasks-decompose.md +1 -1
- package/framework/tasks/tasks-estimate.md +1 -1
- package/framework/tasks/ux-a11y-check.md +1 -1
- package/framework/tasks/ux-component-map.md +1 -1
- package/framework/tasks/ux-consolidate.md +1 -1
- package/framework/tasks/ux-user-flow.md +1 -1
- package/framework/tasks/ux-wireframe.md +1 -1
- package/framework/workflows/brownfield-discovery.yaml +7 -7
- package/framework/workflows/brownfield-fullstack.yaml +9 -9
- package/framework/workflows/brownfield-service.yaml +5 -5
- package/framework/workflows/brownfield-ui.yaml +5 -5
- package/framework/workflows/greenfield-fullstack.yaml +9 -9
- package/package.json +2 -2
- package/scripts/bundle-framework.js +1 -1
- package/scripts/health-check.js +8 -8
- package/scripts/populate-entity-registry.js +1 -1
- package/scripts/validate-agents.js +1 -1
- package/scripts/validate-tasks.js +1 -1
- package/src/autonomy/autonomous-gate.js +1 -1
- package/src/autonomy/progress-reporter.js +9 -9
- package/src/config/mcp-configs.js +16 -85
- package/src/context/engine.js +2 -2
- package/src/context/layers/l1-global.js +3 -3
- package/src/dashboard/layout.js +7 -7
- package/src/dashboard/renderer.js +2 -2
- package/src/gates/g1-planning-complete.js +9 -9
- package/src/installer/core.js +11 -11
- package/src/installer/templates.js +1 -1
- package/src/installer/validator.js +8 -8
- package/src/intelligence/registry-manager.js +4 -4
- package/src/memory/session-digest.js +1 -1
- package/src/orchestrator/agent-selector.js +10 -10
- package/src/orchestrator/intent-classifier.js +4 -4
- package/src/orchestrator/pipeline-manager.js +3 -3
- package/src/orchestrator/pipeline-state.js +1 -1
- package/src/orchestrator/session-manager.js +3 -3
- package/src/tasks/executor.js +1 -1
- package/src/tasks/loader.js +1 -1
- package/src/terminal/prompt-builder.js +10 -10
- package/src/wizard/i18n.js +1 -3
- package/src/wizard/index.js +10 -15
- 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:
|
|
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/
|
|
110
|
-
If brownfield -> Read chati.dev/agents/
|
|
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/
|
|
148
|
-
| brownfield-wu | chati.dev/agents/
|
|
149
|
-
| brief | chati.dev/agents/
|
|
150
|
-
| detail | chati.dev/agents/
|
|
151
|
-
| architect | chati.dev/agents/
|
|
152
|
-
| ux | chati.dev/agents/
|
|
153
|
-
| phases | chati.dev/agents/
|
|
154
|
-
| tasks | chati.dev/agents/
|
|
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 =
|
|
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 —
|
|
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 == "
|
|
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
|
-
|
|
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:
|
|
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 ->
|
|
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 = "
|
|
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
|
|
436
|
-
- {list of pending
|
|
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
|
|
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
|
-
|
|
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 (
|
|
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 (
|
|
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
|
|
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": ["
|
|
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": ["
|
|
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": ["
|
|
126
|
-
"to": { "enum": ["
|
|
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": {
|
|
@@ -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
|
|
58
|
-
- **Mode-wide**: Change affects entire mode (e.g.,
|
|
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
|
|
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: "
|
|
194
|
-
pipeline_position: "
|
|
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
|
-
- **
|
|
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
|
|
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: "
|
|
174
|
-
phase: "
|
|
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
|
|
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: "
|
|
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: ["
|
|
285
|
+
mode_definitions: ["planning", "build", "deploy"]
|
|
286
286
|
transition_rules_defined: true
|
|
287
287
|
quality_gates_specified: true
|
|
288
288
|
|