chati-dev 2.0.5 → 2.0.7
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 +51 -38
- 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 +7 -7
- package/framework/context/governance.md +4 -4
- package/framework/context/quality.md +3 -2
- 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 +22 -2
- package/framework/hooks/read-protection.js +107 -0
- package/framework/hooks/session-digest.js +1 -1
- package/framework/hooks/settings.json +9 -0
- 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 +3 -3
- package/scripts/bundle-framework.js +1 -1
- package/scripts/generate-signing-key.js +33 -0
- package/scripts/health-check.js +8 -8
- package/scripts/populate-entity-registry.js +1 -1
- package/scripts/semantic-lint.js +328 -0
- package/scripts/sign-manifest.js +53 -0
- package/scripts/validate-agents.js +1 -1
- package/scripts/validate-package.js +257 -0
- package/scripts/validate-tasks.js +1 -1
- package/src/autonomy/autonomous-gate.js +2 -2
- 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/gates/g4-qa-implementation.js +9 -9
- package/src/installer/core.js +27 -12
- package/src/installer/manifest.js +33 -1
- package/src/installer/signing-public-key.pem +3 -0
- package/src/installer/templates.js +1 -1
- package/src/installer/validator.js +41 -8
- package/src/intelligence/registry-manager.js +4 -4
- package/src/memory/agent-memory.js +20 -0
- 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 +4 -4
- 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
|
@@ -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
|
|
|
@@ -18,7 +18,7 @@ criteria:
|
|
|
18
18
|
# Orchestrator Mode Switch Task
|
|
19
19
|
|
|
20
20
|
## Purpose
|
|
21
|
-
Execute transitions between modes (
|
|
21
|
+
Execute transitions between modes (planning, build, deploy) while enforcing Article XI governance rules and validating quality gates.
|
|
22
22
|
|
|
23
23
|
## Prerequisites
|
|
24
24
|
- Session state at `.chati/session.yaml`
|
|
@@ -33,28 +33,28 @@ Identify the transition request:
|
|
|
33
33
|
- **Autonomous**: Quality gate met, auto-transition enabled
|
|
34
34
|
- **Suggested**: Conditions met, awaiting user confirmation
|
|
35
35
|
- **Manual**: User explicitly requests mode change
|
|
36
|
-
- **Backward**: QA-Implementation found spec issues, reverting to
|
|
36
|
+
- **Backward**: QA-Implementation found spec issues, reverting to planning
|
|
37
37
|
|
|
38
38
|
### 2. Load Current Mode State
|
|
39
39
|
Read session to understand current position:
|
|
40
|
-
- Current mode (
|
|
40
|
+
- Current mode (planning/build/deploy)
|
|
41
41
|
- Last completed agent in current mode
|
|
42
42
|
- Quality scores
|
|
43
43
|
- Mode transition history
|
|
44
44
|
|
|
45
45
|
### 3. Validate Transition Direction
|
|
46
46
|
Check if transition is valid per Article XI:
|
|
47
|
-
- **Forward transitions**:
|
|
48
|
-
- **Backward transitions**: build/validate →
|
|
49
|
-
- **Invalid**: deploy → build, build →
|
|
47
|
+
- **Forward transitions**: planning → build, build → validate, validate → deploy
|
|
48
|
+
- **Backward transitions**: build/validate → planning (on spec issues)
|
|
49
|
+
- **Invalid**: deploy → build, build → planning (except on QA failure)
|
|
50
50
|
|
|
51
51
|
### 4. Check Transition Preconditions
|
|
52
52
|
Verify mode-specific requirements are met:
|
|
53
53
|
|
|
54
|
-
**For
|
|
54
|
+
**For planning → build**:
|
|
55
55
|
- QA-Planning agent completed
|
|
56
56
|
- QA-Planning score >= 95%
|
|
57
|
-
- All
|
|
57
|
+
- All PLANNING agents complete or skipped
|
|
58
58
|
- No blocking issues
|
|
59
59
|
|
|
60
60
|
**For build → validate**:
|
|
@@ -67,7 +67,7 @@ Verify mode-specific requirements are met:
|
|
|
67
67
|
- QA-Implementation approved (score >= 8.0)
|
|
68
68
|
- No deployment blockers
|
|
69
69
|
|
|
70
|
-
**For backward to
|
|
70
|
+
**For backward to planning**:
|
|
71
71
|
- QA-Implementation found spec/architecture issues
|
|
72
72
|
- Issues documented in handoff
|
|
73
73
|
- User confirmation obtained (if manual)
|
|
@@ -101,7 +101,7 @@ If transition approved:
|
|
|
101
101
|
|
|
102
102
|
### 9. Apply Mode Scope Restrictions
|
|
103
103
|
Enforce Article XI scope rules for new mode:
|
|
104
|
-
- **
|
|
104
|
+
- **planning**: Read all, write only to `chati.dev/` directory
|
|
105
105
|
- **build**: Full filesystem access
|
|
106
106
|
- **deploy**: Full access + infrastructure operations
|
|
107
107
|
|
|
@@ -109,7 +109,7 @@ Enforce Article XI scope rules for new mode:
|
|
|
109
109
|
Route to first agent of new mode:
|
|
110
110
|
- **build mode**: Route to `dev` agent
|
|
111
111
|
- **deploy mode**: Route to `devops` agent
|
|
112
|
-
- **
|
|
112
|
+
- **planning mode** (backward): Route to agent that needs rework
|
|
113
113
|
|
|
114
114
|
## Decision Points
|
|
115
115
|
|
|
@@ -128,14 +128,14 @@ If user wants to force transition despite low confidence:
|
|
|
128
128
|
|
|
129
129
|
### When Backward Transition is Needed
|
|
130
130
|
If QA-Implementation finds fundamental spec problems:
|
|
131
|
-
1. Identify which
|
|
131
|
+
1. Identify which PLANNING agent needs to re-run
|
|
132
132
|
2. Mark affected agents as `needs_revalidation`
|
|
133
|
-
3. Set mode to `
|
|
133
|
+
3. Set mode to `planning`
|
|
134
134
|
4. Route to earliest affected agent
|
|
135
135
|
|
|
136
136
|
### When Multiple Transitions are Eligible
|
|
137
137
|
If conditions for multiple transitions are met (edge case):
|
|
138
|
-
1. Follow pipeline sequence (
|
|
138
|
+
1. Follow pipeline sequence (planning → build → deploy)
|
|
139
139
|
2. Execute one transition at a time
|
|
140
140
|
3. Re-evaluate after each transition
|
|
141
141
|
|
|
@@ -180,9 +180,9 @@ mode_transition:
|
|
|
180
180
|
type: "autonomous" # or "suggested", "manual", "backward"
|
|
181
181
|
|
|
182
182
|
from_state:
|
|
183
|
-
mode: "
|
|
183
|
+
mode: "planning"
|
|
184
184
|
current_agent: "qa-planning"
|
|
185
|
-
pipeline_position: "
|
|
185
|
+
pipeline_position: "PLANNING/qa-planning"
|
|
186
186
|
|
|
187
187
|
to_state:
|
|
188
188
|
mode: "build"
|
|
@@ -195,7 +195,7 @@ mode_transition:
|
|
|
195
195
|
autonomous_gate: true
|
|
196
196
|
|
|
197
197
|
validation:
|
|
198
|
-
transition_direction: "forward" #
|
|
198
|
+
transition_direction: "forward" # planning → build
|
|
199
199
|
preconditions_met: true
|
|
200
200
|
quality_gate:
|
|
201
201
|
required_score: 95
|
|
@@ -208,7 +208,7 @@ mode_transition:
|
|
|
208
208
|
score: 95
|
|
209
209
|
level: "high"
|
|
210
210
|
factors:
|
|
211
|
-
- "All
|
|
211
|
+
- "All PLANNING agents completed"
|
|
212
212
|
- "QA-Planning score excellent (97.5%)"
|
|
213
213
|
- "Only 2 minor open questions"
|
|
214
214
|
- "No blockers"
|
|
@@ -238,7 +238,7 @@ mode_transition:
|
|
|
238
238
|
pipeline_position: "BUILD/dev"
|
|
239
239
|
mode_transitions:
|
|
240
240
|
- type: "autonomous-forward"
|
|
241
|
-
from: "
|
|
241
|
+
from: "planning"
|
|
242
242
|
to: "build"
|
|
243
243
|
timestamp: "2026-02-13T15:45:00Z"
|
|
244
244
|
trigger: "qa-planning-score-97.5"
|
|
@@ -251,7 +251,7 @@ mode_transition:
|
|
|
251
251
|
deviation_protocol: false
|
|
252
252
|
|
|
253
253
|
user_notification: |
|
|
254
|
-
✓ Mode Transition:
|
|
254
|
+
✓ Mode Transition: PLANNING → BUILD
|
|
255
255
|
|
|
256
256
|
QA-Planning completed with score 97.5% (>= 95% required).
|
|
257
257
|
Autonomous transition to BUILD mode approved.
|
|
@@ -36,7 +36,7 @@ Check for existing session at `.chati/session.yaml`:
|
|
|
36
36
|
### 2. Load Session State
|
|
37
37
|
Parse the YAML session file and extract:
|
|
38
38
|
- Project metadata (name, type, language)
|
|
39
|
-
- Current mode (
|
|
39
|
+
- Current mode (planning/build/deploy)
|
|
40
40
|
- Pipeline position (phase, last agent)
|
|
41
41
|
- Agent statuses and timestamps
|
|
42
42
|
- Decisions log
|
|
@@ -50,7 +50,7 @@ Find the most recent agent with `status: completed`:
|
|
|
50
50
|
|
|
51
51
|
### 4. Determine Next Agent
|
|
52
52
|
Based on pipeline position and last completed agent:
|
|
53
|
-
- **
|
|
53
|
+
- **PLANNING pipeline**: greenfield-wu → brief → detail → architect → ux → phases → tasks → qa-planning
|
|
54
54
|
- **BUILD pipeline**: dev → qa-implementation
|
|
55
55
|
- **DEPLOY pipeline**: devops
|
|
56
56
|
- Handle special cases (skipped, needs_revalidation)
|
|
@@ -72,7 +72,7 @@ Rebuild the working context from session + handoff:
|
|
|
72
72
|
|
|
73
73
|
### 7. Check Mode Transition Conditions
|
|
74
74
|
Evaluate if mode transition should occur:
|
|
75
|
-
- **
|
|
75
|
+
- **planning → build**: QA-Planning score >= 95%
|
|
76
76
|
- **build → validate**: Dev agent completed
|
|
77
77
|
- **validate → deploy**: QA-Implementation approved
|
|
78
78
|
- Check autonomous_gate flag
|
|
@@ -161,9 +161,9 @@ session_state:
|
|
|
161
161
|
name: "HealthCare Portal"
|
|
162
162
|
type: "brownfield"
|
|
163
163
|
language: "Portugues"
|
|
164
|
-
current_mode: "
|
|
164
|
+
current_mode: "planning"
|
|
165
165
|
pipeline_position:
|
|
166
|
-
phase: "
|
|
166
|
+
phase: "PLANNING"
|
|
167
167
|
last_completed_agent: "detail"
|
|
168
168
|
next_agent: "architect"
|
|
169
169
|
completion_percentage: 30
|
|
@@ -183,7 +183,7 @@ session_state:
|
|
|
183
183
|
mode_transition_check:
|
|
184
184
|
eligible: false
|
|
185
185
|
reason: "QA-Planning not yet complete"
|
|
186
|
-
next_gate: "
|
|
186
|
+
next_gate: "planning → build at QA-Planning >= 95%"
|
|
187
187
|
resumption_action: "route-to-architect"
|
|
188
188
|
user_message: "Welcome back! You completed Detail agent. Next: Architect will design the system architecture."
|
|
189
189
|
```
|
|
@@ -35,7 +35,7 @@ Extract the core intent from user message. Identify:
|
|
|
35
35
|
|
|
36
36
|
### 2. Load Session Context
|
|
37
37
|
Read `.chati/session.yaml` to understand:
|
|
38
|
-
- Current mode (
|
|
38
|
+
- Current mode (planning/build/deploy)
|
|
39
39
|
- Last completed agent
|
|
40
40
|
- Pipeline position
|
|
41
41
|
- Active phase
|
|
@@ -58,7 +58,7 @@ Check if the requested action is valid for current position:
|
|
|
58
58
|
|
|
59
59
|
### 5. Select Target Agent
|
|
60
60
|
Based on intent and position, identify the appropriate agent:
|
|
61
|
-
- **
|
|
61
|
+
- **PLANNING agents**: greenfield-wu, brownfield-wu, brief, detail, architect, ux, phases, tasks, qa-planning
|
|
62
62
|
- **BUILD agents**: dev, qa-implementation
|
|
63
63
|
- **DEPLOY agents**: devops
|
|
64
64
|
- **Orchestrator actions**: status, health, deviation
|
|
@@ -151,16 +151,16 @@ routing_decision:
|
|
|
151
151
|
intent_classification: "pipeline-next"
|
|
152
152
|
target_type: "agent" # or "orchestrator-action"
|
|
153
153
|
target: "detail"
|
|
154
|
-
reason: "User completed brief, detail is next in
|
|
155
|
-
mode: "
|
|
156
|
-
pipeline_position: "
|
|
154
|
+
reason: "User completed brief, detail is next in PLANNING pipeline"
|
|
155
|
+
mode: "planning"
|
|
156
|
+
pipeline_position: "PLANNING/detail"
|
|
157
157
|
context_package:
|
|
158
158
|
previous_agent: "brief"
|
|
159
159
|
handoff_file: ".chati/artifacts/handoffs/2026-02-13-brief.md"
|
|
160
160
|
session_excerpt:
|
|
161
|
-
mode: "
|
|
161
|
+
mode: "planning"
|
|
162
162
|
project_type: "greenfield"
|
|
163
|
-
current_phase: "
|
|
163
|
+
current_phase: "PLANNING"
|
|
164
164
|
validation:
|
|
165
165
|
mode_check: "passed"
|
|
166
166
|
prerequisites_check: "passed"
|
|
@@ -46,7 +46,7 @@ For each agent in the pipeline, gather:
|
|
|
46
46
|
|
|
47
47
|
### 3. Calculate Pipeline Progress
|
|
48
48
|
Determine overall completion for each mode:
|
|
49
|
-
- **
|
|
49
|
+
- **PLANNING**: 9 agents (greenfield-wu OR brownfield-wu, brief, detail, architect, ux, phases, tasks, qa-planning)
|
|
50
50
|
- **BUILD**: 2 agents (dev, qa-implementation)
|
|
51
51
|
- **DEPLOY**: 1 agent (devops)
|
|
52
52
|
- Calculate percentage: completed / total
|
|
@@ -60,7 +60,7 @@ Determine where the user is in the pipeline:
|
|
|
60
60
|
|
|
61
61
|
### 5. Check Mode Transition Eligibility
|
|
62
62
|
Evaluate if mode transition conditions are met:
|
|
63
|
-
- **
|
|
63
|
+
- **planning → build**: QA-Planning score >= 95%
|
|
64
64
|
- **build → validate**: Dev completed
|
|
65
65
|
- **validate → deploy**: QA-Implementation approved
|
|
66
66
|
- Report eligibility status
|
|
@@ -159,13 +159,13 @@ status_report:
|
|
|
159
159
|
initialized: "2026-02-10T14:00:00Z"
|
|
160
160
|
|
|
161
161
|
current_state:
|
|
162
|
-
mode: "
|
|
163
|
-
phase: "
|
|
162
|
+
mode: "planning"
|
|
163
|
+
phase: "PLANNING"
|
|
164
164
|
last_activity: "2026-02-13T02:15:00Z"
|
|
165
165
|
hours_since_activity: 8.25
|
|
166
166
|
|
|
167
167
|
pipeline_progress:
|
|
168
|
-
|
|
168
|
+
planning:
|
|
169
169
|
total_agents: 8 # brownfield-wu counted, greenfield-wu skipped
|
|
170
170
|
completed: 3
|
|
171
171
|
percentage: 37.5
|
|
@@ -204,7 +204,7 @@ status_report:
|
|
|
204
204
|
|
|
205
205
|
mode_transitions:
|
|
206
206
|
eligible_for_next: false
|
|
207
|
-
next_transition: "
|
|
207
|
+
next_transition: "planning → build"
|
|
208
208
|
condition: "QA-Planning score >= 95%"
|
|
209
209
|
current_score: null
|
|
210
210
|
|
|
@@ -240,10 +240,10 @@ status_report:
|
|
|
240
240
|
visual_report: |
|
|
241
241
|
╔════════════════════════════════════════════════════════════╗
|
|
242
242
|
║ chati.dev Status - HealthCare Portal ║
|
|
243
|
-
║ Mode:
|
|
243
|
+
║ Mode: PLANNING | Progress: 25% (3/12 agents) ║
|
|
244
244
|
╚════════════════════════════════════════════════════════════╝
|
|
245
245
|
|
|
246
|
-
|
|
246
|
+
PLANNING Pipeline (37.5%)
|
|
247
247
|
✓ brownfield-wu ✓ brief ✓ detail ◐ architect ○ ux ○ phases ○ tasks ○ qa-planning
|
|
248
248
|
|
|
249
249
|
BUILD Pipeline (0%)
|
|
@@ -30,7 +30,7 @@ Analyze session state to determine if mode transition conditions are met, calcul
|
|
|
30
30
|
|
|
31
31
|
### 1. Load Current Session State
|
|
32
32
|
Read session to understand current position:
|
|
33
|
-
- Current mode (
|
|
33
|
+
- Current mode (planning/build/deploy)
|
|
34
34
|
- Last completed agent
|
|
35
35
|
- Agent statuses and timestamps
|
|
36
36
|
- Quality scores
|
|
@@ -38,17 +38,17 @@ Read session to understand current position:
|
|
|
38
38
|
|
|
39
39
|
### 2. Identify Potential Transitions
|
|
40
40
|
Based on current mode, check eligibility for:
|
|
41
|
-
- **
|
|
41
|
+
- **planning → build**: Triggered after QA-Planning completes
|
|
42
42
|
- **build → validate**: Triggered after Dev completes
|
|
43
43
|
- **validate → deploy**: Triggered after QA-Implementation approves
|
|
44
44
|
|
|
45
45
|
### 3. Evaluate Transition Conditions
|
|
46
46
|
For each potential transition, check requirements:
|
|
47
47
|
|
|
48
|
-
**For
|
|
48
|
+
**For planning → build**:
|
|
49
49
|
- QA-Planning agent status = `completed`
|
|
50
50
|
- QA-Planning score >= 95%
|
|
51
|
-
- All
|
|
51
|
+
- All PLANNING agents completed or skipped
|
|
52
52
|
- No blocking issues in planning phase
|
|
53
53
|
|
|
54
54
|
**For build → validate**:
|
|
@@ -207,13 +207,13 @@ mode_suggestion:
|
|
|
207
207
|
session_id: "sess-20260210-140000"
|
|
208
208
|
|
|
209
209
|
current_state:
|
|
210
|
-
mode: "
|
|
211
|
-
phase: "
|
|
210
|
+
mode: "planning"
|
|
211
|
+
phase: "PLANNING"
|
|
212
212
|
last_completed_agent: "qa-planning"
|
|
213
213
|
last_activity: "2026-02-13T15:30:00Z"
|
|
214
214
|
|
|
215
215
|
potential_transition:
|
|
216
|
-
from_mode: "
|
|
216
|
+
from_mode: "planning"
|
|
217
217
|
to_mode: "build"
|
|
218
218
|
trigger_agent: "qa-planning"
|
|
219
219
|
|
|
@@ -222,7 +222,7 @@ mode_suggestion:
|
|
|
222
222
|
qa_planning_score: 97.5
|
|
223
223
|
qa_planning_threshold: 95
|
|
224
224
|
score_meets_threshold: true
|
|
225
|
-
|
|
225
|
+
all_planning_agents_done: true
|
|
226
226
|
no_blockers: true
|
|
227
227
|
conditions_met: true
|
|
228
228
|
|
|
@@ -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
|
|
274
|
+
All PLANNING 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
|
-
|
|
285
|
+
PLANNING → 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:
|
|
324
|
+
Mode Transition Available: PLANNING → 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
|
|
331
|
+
✓ All PLANNING 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
|
|
361
|
+
QA-Planning score: 92% (95% required for PLANNING → BUILD)
|
|
362
362
|
|
|
363
363
|
To proceed:
|
|
364
364
|
1. Address planning issues identified by QA-Planning
|
|
@@ -192,7 +192,7 @@ regressions:
|
|
|
192
192
|
severity: CRITICAL
|
|
193
193
|
type: functional
|
|
194
194
|
feature: Mode transition validation
|
|
195
|
-
description: "Autonomous transition from
|
|
195
|
+
description: "Autonomous transition from planning to build no longer checks 95% threshold"
|
|
196
196
|
baseline_behavior: "Transition blocked when qa-planning score < 95%"
|
|
197
197
|
current_behavior: "Transition proceeds regardless of score"
|
|
198
198
|
root_cause: "Removed threshold check in mode-governance.js line 87 during refactor"
|
|
@@ -348,7 +348,7 @@ smoke_tests:
|
|
|
348
348
|
mode_transitions:
|
|
349
349
|
autonomous_transition:
|
|
350
350
|
status: FAIL
|
|
351
|
-
issue: "Autonomous transition from
|
|
351
|
+
issue: "Autonomous transition from planning to build bypassed 95% check"
|
|
352
352
|
regression_id: REG-001
|
|
353
353
|
|
|
354
354
|
manual_transition:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
id: qa-planning-consolidate
|
|
3
3
|
agent: qa-planning
|
|
4
4
|
trigger: qa-planning-risk-matrix
|
|
5
|
-
phase:
|
|
5
|
+
phase: planning
|
|
6
6
|
requires_input: false
|
|
7
7
|
parallelizable: false
|
|
8
8
|
outputs: [qa-plan.yaml]
|
|
@@ -43,7 +43,7 @@ Compile all QA planning outputs into a final qa-plan.yaml document, calculate an
|
|
|
43
43
|
- **Execution order established** (5 points): Pre-commit, pre-push, CI, release order set
|
|
44
44
|
|
|
45
45
|
3. **Calculate Quality Gates Score (25 points)**
|
|
46
|
-
- **Gates for all stages** (7 points): Pre-commit,
|
|
46
|
+
- **Gates for all stages** (7 points): Pre-commit, planning, build, validate, deploy gates defined
|
|
47
47
|
- **Thresholds with pass/fail** (6 points): Clear numeric or boolean thresholds for each gate
|
|
48
48
|
- **Enforcement mechanisms** (6 points): Automated, agent-enforced, manual processes specified
|
|
49
49
|
- **Bypass procedures** (3 points): Deviation protocol, manual approval, exceptions documented
|
|
@@ -84,7 +84,7 @@ Compile all QA planning outputs into a final qa-plan.yaml document, calculate an
|
|
|
84
84
|
|
|
85
85
|
9. **Cross-Validate with Constitution**
|
|
86
86
|
- Verify mode governance rules are respected (autonomous transition at 95%)
|
|
87
|
-
- Ensure quality gates align with mode constraints (
|
|
87
|
+
- Ensure quality gates align with mode constraints (planning = read all, write chati.dev/ only)
|
|
88
88
|
- Check that agent handoff logic is valid (qa-planning → dev)
|
|
89
89
|
- Validate autonomous_gate: true is correctly set
|
|
90
90
|
|
|
@@ -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:
|
|
5
|
+
phase: planning
|
|
6
6
|
requires_input: false
|
|
7
7
|
parallelizable: false
|
|
8
8
|
outputs: [quality-gates.yaml]
|
|
@@ -21,17 +21,17 @@ Define quality gates and enforcement thresholds for each stage of the chati.dev
|
|
|
21
21
|
|
|
22
22
|
## Prerequisites
|
|
23
23
|
- test-strategy.yaml completed with testing approach
|
|
24
|
-
- Phase plan showing pipeline stages (
|
|
24
|
+
- Phase plan showing pipeline stages (planning → build → validate → deploy)
|
|
25
25
|
- Understanding of mode governance rules from constitution
|
|
26
26
|
- Risk matrix inputs (will be formalized in later task)
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
29
|
|
|
30
30
|
1. **Review Pipeline Architecture**
|
|
31
|
-
- Identify all pipeline stages:
|
|
31
|
+
- Identify all pipeline stages: planning (8 agents), build (dev + qa-impl), validate (qa-impl verdict), deploy (devops)
|
|
32
32
|
- Map agent handoff points where quality checks occur
|
|
33
33
|
- Note autonomous transition triggers (qa-planning → dev at 95%, qa-impl verdict → devops on PASS)
|
|
34
|
-
- Identify backward transition scenarios (build →
|
|
34
|
+
- Identify backward transition scenarios (build → planning when spec issues found)
|
|
35
35
|
|
|
36
36
|
2. **Define Pre-Commit Gates**
|
|
37
37
|
- **Unit Test Pass Rate**: 100% (all unit tests must pass)
|
|
@@ -41,8 +41,8 @@ Define quality gates and enforcement thresholds for each stage of the chati.dev
|
|
|
41
41
|
- **Enforcement**: Git pre-commit hooks
|
|
42
42
|
- **Bypass**: Not allowed (ensures baseline quality)
|
|
43
43
|
|
|
44
|
-
3. **Define
|
|
45
|
-
- **Agent Completion**: All 8
|
|
44
|
+
3. **Define Planning Phase Gates**
|
|
45
|
+
- **Agent Completion**: All 8 planning agents must complete (greenfield-wu/brownfield-wu → brief → detail → architect → ux → phases → tasks → qa-planning)
|
|
46
46
|
- **Specification Completeness**: 100% of required sections filled
|
|
47
47
|
- **QA Planning Score**: >= 95% for autonomous transition to build phase
|
|
48
48
|
- **Manual Override**: Available if score 90-94% with justification
|
|
@@ -161,7 +161,7 @@ pipeline_stages:
|
|
|
161
161
|
enforcement: tsc --noEmit
|
|
162
162
|
bypass: not_allowed
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
planning:
|
|
165
165
|
gates:
|
|
166
166
|
- name: Agent Completion
|
|
167
167
|
threshold: 8/8 agents complete
|