chati-dev 2.0.9 → 2.1.2
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 +167 -176
- package/assets/logo - co/314/201pia.png +0 -0
- package/assets/logo - co/314/201pia.svg" +42 -0
- package/bin/chati.js +3 -3
- package/framework/agents/{planning → discover}/brief.md +24 -2
- package/framework/agents/{planning → discover}/brownfield-wu.md +1 -1
- package/framework/agents/{planning → discover}/greenfield-wu.md +1 -1
- package/framework/agents/{planning → plan}/architect.md +1 -1
- package/framework/agents/{planning → plan}/detail.md +1 -1
- package/framework/agents/{planning → plan}/phases.md +1 -1
- package/framework/agents/{planning → plan}/tasks.md +1 -1
- package/framework/agents/{planning → plan}/ux.md +1 -1
- package/framework/agents/quality/qa-implementation.md +53 -4
- package/framework/agents/quality/qa-planning.md +53 -2
- package/framework/config.yaml +3 -3
- package/framework/constitution.md +4 -4
- package/framework/context/quality.md +1 -1
- package/framework/context/root.md +5 -4
- package/framework/data/entity-registry.yaml +35 -11
- package/framework/domains/agents/brief.yaml +14 -0
- package/framework/domains/agents/qa-implementation.yaml +16 -0
- package/framework/domains/agents/qa-planning.yaml +16 -0
- package/framework/domains/constitution.yaml +6 -2
- package/framework/domains/workflows/brownfield-discovery.yaml +5 -4
- package/framework/domains/workflows/quick-flow.yaml +23 -0
- package/framework/hooks/mode-governance.js +14 -2
- package/framework/hooks/model-governance.js +5 -1
- package/framework/hooks/prism-engine.js +1 -1
- package/framework/hooks/session-digest.js +6 -2
- package/framework/hooks/settings.json +11 -0
- package/framework/i18n/en.yaml +3 -3
- package/framework/i18n/es.yaml +3 -3
- package/framework/i18n/fr.yaml +3 -3
- package/framework/i18n/pt.yaml +3 -3
- package/framework/intelligence/context-engine.md +2 -2
- package/framework/intelligence/decision-engine.md +2 -2
- package/framework/manifest.json +5 -0
- package/framework/manifest.sig +1 -0
- package/framework/orchestrator/chati.md +68 -20
- package/framework/patterns/elicitation-library.yaml +592 -0
- package/framework/patterns/elicitation.md +2 -0
- package/framework/quality-gates/planning-gate.md +1 -1
- package/framework/schemas/session.schema.json +36 -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 +2 -2
- package/framework/tasks/orchestrator-escalate.md +1 -1
- package/framework/tasks/orchestrator-handoff.md +3 -3
- package/framework/tasks/orchestrator-mode-switch.md +16 -5
- package/framework/tasks/orchestrator-preview.md +181 -0
- package/framework/tasks/orchestrator-resume.md +2 -2
- package/framework/tasks/orchestrator-route.md +5 -4
- package/framework/tasks/orchestrator-status.md +4 -4
- package/framework/tasks/orchestrator-suggest-mode.md +7 -7
- 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-consolidate.md +2 -2
- package/framework/tasks/qa-impl-verdict.md +2 -2
- package/framework/tasks/qa-planning-consolidate.md +1 -1
- package/framework/tasks/qa-planning-coverage-plan.md +2 -2
- package/framework/tasks/qa-planning-gate-define.md +1 -1
- 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/templates/quick-brief-tmpl.yaml +90 -0
- package/framework/workflows/brownfield-discovery.yaml +7 -7
- package/framework/workflows/brownfield-fullstack.yaml +24 -10
- package/framework/workflows/brownfield-service.yaml +41 -5
- package/framework/workflows/brownfield-ui.yaml +41 -5
- package/framework/workflows/greenfield-fullstack.yaml +24 -10
- package/framework/workflows/quick-flow.yaml +125 -0
- package/package.json +2 -2
- package/scripts/bundle-framework.js +1 -1
- package/scripts/populate-entity-registry.js +1 -1
- package/scripts/semantic-lint.js +2 -2
- package/scripts/validate-agents.js +2 -1
- package/scripts/validate-package.js +1 -1
- package/scripts/validate-tasks.js +1 -1
- package/src/autonomy/progress-reporter.js +26 -19
- package/src/context/engine.js +1 -1
- package/src/context/layers/l1-global.js +17 -5
- package/src/dashboard/layout.js +2 -1
- package/src/gates/g1-planning-complete.js +10 -10
- package/src/installer/core.js +14 -12
- 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 +11 -11
- package/src/orchestrator/intent-classifier.js +12 -8
- package/src/orchestrator/pipeline-manager.js +100 -3
- package/src/orchestrator/pipeline-state.js +1 -1
- package/src/orchestrator/session-manager.js +13 -4
- package/src/preview/detector.js +238 -0
- package/src/preview/index.js +20 -0
- package/src/preview/launcher.js +235 -0
- package/src/preview/log-buffer.js +103 -0
- 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 +3 -3
package/framework/i18n/fr.yaml
CHANGED
|
@@ -16,9 +16,9 @@ installer:
|
|
|
16
16
|
ides_label: "IDEs"
|
|
17
17
|
mcps_label: "MCPs"
|
|
18
18
|
will_install: "Sera installe:"
|
|
19
|
-
agents_count: "13 definitions d'agents (phases
|
|
20
|
-
workflows_count: "
|
|
21
|
-
templates_count: "
|
|
19
|
+
agents_count: "13 definitions d'agents (phases DISCOVER, PLAN, BUILD, DEPLOY)"
|
|
20
|
+
workflows_count: "6 blueprints de workflow"
|
|
21
|
+
templates_count: "6 templates (PRD, PRD Brownfield, Architecture, Task, QA Gate, Quick Brief)"
|
|
22
22
|
constitution: "Constitution (17 Articles + Preambule)"
|
|
23
23
|
session_mgmt: "Systeme de gestion de session"
|
|
24
24
|
quality_gates: "Quality gates (validation en 4 couches)"
|
package/framework/i18n/pt.yaml
CHANGED
|
@@ -16,9 +16,9 @@ installer:
|
|
|
16
16
|
ides_label: "IDEs"
|
|
17
17
|
mcps_label: "MCPs"
|
|
18
18
|
will_install: "Sera instalado:"
|
|
19
|
-
agents_count: "13 definicoes de agentes (fases
|
|
20
|
-
workflows_count: "
|
|
21
|
-
templates_count: "
|
|
19
|
+
agents_count: "13 definicoes de agentes (fases DISCOVER, PLAN, BUILD, DEPLOY)"
|
|
20
|
+
workflows_count: "6 blueprints de workflow"
|
|
21
|
+
templates_count: "6 templates (PRD, PRD Brownfield, Arquitetura, Task, QA Gate, Quick Brief)"
|
|
22
22
|
constitution: "Constituicao (17 Artigos + Preambulo)"
|
|
23
23
|
session_mgmt: "Sistema de gerenciamento de sessao"
|
|
24
24
|
quality_gates: "Quality gates (validacao em 4 camadas)"
|
|
@@ -25,7 +25,7 @@ The orchestrator injects context through 5 hierarchical layers:
|
|
|
25
25
|
|
|
26
26
|
| Layer | Name | Source | When Active |
|
|
27
27
|
|-------|------|--------|-------------|
|
|
28
|
-
| **L0** | Constitution | `chati.dev/constitution.md` (Articles I-
|
|
28
|
+
| **L0** | Constitution | `chati.dev/constitution.md` (Articles I-XVII) | ALWAYS (non-negotiable) |
|
|
29
29
|
| **L1** | Mode + Global | `config.yaml` + mode governance (planning/build/deploy) | ALWAYS |
|
|
30
30
|
| **L2** | Agent Scope | `chati.dev/agents/{agent}/` — mission, inputs, outputs, criteria | When agent is active |
|
|
31
31
|
| **L3** | Pipeline State | `.chati/session.yaml` — pipeline position, scores, backlog | When session is active |
|
|
@@ -49,7 +49,7 @@ The orchestrator produces a structured XML block injected into agent prompts:
|
|
|
49
49
|
```xml
|
|
50
50
|
<chati-context bracket="MODERATE">
|
|
51
51
|
<constitution>
|
|
52
|
-
Articles I-
|
|
52
|
+
Articles I-XVII governing agent behavior.
|
|
53
53
|
Key: Self-validation required. Loop until quality threshold.
|
|
54
54
|
Guided options (1,2,3). Persistent session state.
|
|
55
55
|
Two-layer handoff. Language protocol. Deviation protocol.
|
|
@@ -16,7 +16,7 @@ The registry catalogs every artifact in the system:
|
|
|
16
16
|
metadata:
|
|
17
17
|
version: "1.0.0"
|
|
18
18
|
last_updated: "2026-02-12T00:00:00Z"
|
|
19
|
-
entity_count:
|
|
19
|
+
entity_count: 50
|
|
20
20
|
checksum_algorithm: sha256
|
|
21
21
|
|
|
22
22
|
entities:
|
|
@@ -28,7 +28,7 @@ entities:
|
|
|
28
28
|
keywords: [routing, session, deviation, handoff]
|
|
29
29
|
dependencies: [constitution, session-schema, config]
|
|
30
30
|
adaptability: 0.2
|
|
31
|
-
# ... (all
|
|
31
|
+
# ... (all 50 entities)
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### Entity Fields
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Wjy+M0Wcyt+KTzRu0E4fc8sB97cTe7ye+qEtNGq/av7AzcB2GsSNlwrOhfMV64ukMBHSrBMQ995sDbTtzNKADA==
|
|
@@ -70,6 +70,51 @@ Before determining state, check if the user passed a subcommand:
|
|
|
70
70
|
-> Resume session. Go to Step 5 (Session Resume)
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
### Step 3b: Quick Flow Detection
|
|
74
|
+
|
|
75
|
+
Before full project setup, check if this is a quick-flow candidate:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
Quick Flow Triggers (any of these):
|
|
79
|
+
- User explicitly requests: "quick fix", "hotfix", "bug fix", "small change"
|
|
80
|
+
- Single, well-defined requirement (one sentence)
|
|
81
|
+
- Bug report with reproduction steps
|
|
82
|
+
- Configuration/environment change
|
|
83
|
+
- Small refactoring with clear scope
|
|
84
|
+
|
|
85
|
+
Quick Flow Disqualifiers (any of these blocks quick-flow):
|
|
86
|
+
- New feature requiring architecture decisions
|
|
87
|
+
- Multiple interconnected requirements
|
|
88
|
+
- Greenfield project (no existing codebase)
|
|
89
|
+
- Enterprise or compliance context
|
|
90
|
+
- User explicitly requests full pipeline
|
|
91
|
+
- Scope involves > 5 files or database schema changes
|
|
92
|
+
|
|
93
|
+
IF quick-flow detected (confidence >= 0.8):
|
|
94
|
+
1. Present to user:
|
|
95
|
+
"This looks like a quick task. I can use Quick Flow (fast-track):
|
|
96
|
+
Brief (quick) → Dev → QA → Deploy
|
|
97
|
+
Skips: Detail, Architect, UX, Phases, Tasks, QA-Planning
|
|
98
|
+
|
|
99
|
+
1. Use Quick Flow (Recommended for this task)
|
|
100
|
+
2. Use full pipeline instead
|
|
101
|
+
Enter number:"
|
|
102
|
+
|
|
103
|
+
2. IF user confirms quick-flow:
|
|
104
|
+
- Load workflow: chati.dev/workflows/quick-flow.yaml
|
|
105
|
+
- Set session.yaml: workflow = quick-flow
|
|
106
|
+
- Set project.state = discover
|
|
107
|
+
- Activate Brief agent in quick-extraction mode
|
|
108
|
+
- Skip to Quick Brief (see quick-flow.yaml)
|
|
109
|
+
|
|
110
|
+
3. IF user prefers full pipeline:
|
|
111
|
+
- Continue to Step 4 (New Project Setup)
|
|
112
|
+
|
|
113
|
+
4. Escalation: If during quick-flow, complexity exceeds expectations:
|
|
114
|
+
- Pause and offer switch to full pipeline
|
|
115
|
+
- See quick-flow.yaml escalation section
|
|
116
|
+
```
|
|
117
|
+
|
|
73
118
|
### Step 4: New Project Setup
|
|
74
119
|
|
|
75
120
|
#### 3a. Detect Project Type
|
|
@@ -96,7 +141,7 @@ If not already set in session.yaml:
|
|
|
96
141
|
project:
|
|
97
142
|
name: "{detected or asked}"
|
|
98
143
|
type: greenfield | brownfield
|
|
99
|
-
state:
|
|
144
|
+
state: discover
|
|
100
145
|
execution_mode: interactive
|
|
101
146
|
current_agent: greenfield-wu | brownfield-wu
|
|
102
147
|
language: "{detected}"
|
|
@@ -106,8 +151,8 @@ user_level_confidence: 0.0
|
|
|
106
151
|
|
|
107
152
|
#### 3d. Route to First Agent
|
|
108
153
|
```
|
|
109
|
-
If greenfield -> Read chati.dev/agents/
|
|
110
|
-
If brownfield -> Read chati.dev/agents/
|
|
154
|
+
If greenfield -> Read chati.dev/agents/discover/greenfield-wu.md -> Activate
|
|
155
|
+
If brownfield -> Read chati.dev/agents/discover/brownfield-wu.md -> Activate
|
|
111
156
|
```
|
|
112
157
|
|
|
113
158
|
### Step 5: Session Resume
|
|
@@ -144,14 +189,14 @@ brownfield-wu -> Brief -> Architect -> Detail -> UX -> Phases -> Tasks -> QA-Pla
|
|
|
144
189
|
### Agent Location Map
|
|
145
190
|
| Agent | File |
|
|
146
191
|
|-------|------|
|
|
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/
|
|
192
|
+
| greenfield-wu | chati.dev/agents/discover/greenfield-wu.md |
|
|
193
|
+
| brownfield-wu | chati.dev/agents/discover/brownfield-wu.md |
|
|
194
|
+
| brief | chati.dev/agents/discover/brief.md |
|
|
195
|
+
| detail | chati.dev/agents/plan/detail.md |
|
|
196
|
+
| architect | chati.dev/agents/plan/architect.md |
|
|
197
|
+
| ux | chati.dev/agents/plan/ux.md |
|
|
198
|
+
| phases | chati.dev/agents/plan/phases.md |
|
|
199
|
+
| tasks | chati.dev/agents/plan/tasks.md |
|
|
155
200
|
| qa-planning | chati.dev/agents/quality/qa-planning.md |
|
|
156
201
|
| dev | chati.dev/agents/build/dev.md |
|
|
157
202
|
| qa-implementation | chati.dev/agents/quality/qa-implementation.md |
|
|
@@ -167,7 +212,8 @@ When an agent completes (score >= 95%):
|
|
|
167
212
|
4. Orchestrator identifies next agent from pipeline
|
|
168
213
|
5. Update session.yaml: current_agent = next_agent
|
|
169
214
|
6. Update project.state if crossing macro-phase boundary:
|
|
170
|
-
- WU
|
|
215
|
+
- WU + Brief = discover
|
|
216
|
+
- Detail through QA-Planning = plan
|
|
171
217
|
- Dev + QA-Implementation = build
|
|
172
218
|
- Final validation = validate
|
|
173
219
|
- DevOps = deploy
|
|
@@ -344,7 +390,7 @@ model_selections:
|
|
|
344
390
|
Before any agent writes a file, the orchestrator validates the operation against the current mode:
|
|
345
391
|
|
|
346
392
|
```
|
|
347
|
-
If project.state == "
|
|
393
|
+
If project.state == "discover" OR "plan":
|
|
348
394
|
ALLOW write to: chati.dev/**, .chati/**
|
|
349
395
|
BLOCK write to: everything else
|
|
350
396
|
ALLOW read: everything (essential for brownfield-wu codebase analysis)
|
|
@@ -364,13 +410,13 @@ If project.state == "deploy":
|
|
|
364
410
|
Mode transitions are AUTOMATIC based on quality gate results. The orchestrator executes the transition when the trigger condition is met.
|
|
365
411
|
|
|
366
412
|
```
|
|
367
|
-
|
|
413
|
+
plan -> build:
|
|
368
414
|
TRIGGER: qa-planning agent completes with score >= 95%
|
|
369
415
|
ACTION:
|
|
370
416
|
1. Update project.state = "build"
|
|
371
417
|
2. Log transition in session.yaml mode_transitions:
|
|
372
418
|
- timestamp: "{now}"
|
|
373
|
-
from:
|
|
419
|
+
from: plan
|
|
374
420
|
to: build
|
|
375
421
|
trigger: "qa-planning completed with score {score}%"
|
|
376
422
|
type: automatic
|
|
@@ -403,12 +449,12 @@ deploy -> completed:
|
|
|
403
449
|
### Backward Transitions
|
|
404
450
|
|
|
405
451
|
```
|
|
406
|
-
build/validate ->
|
|
452
|
+
build/validate -> plan:
|
|
407
453
|
TRIGGER: qa-implementation classifies issue as:
|
|
408
454
|
- issue_type: "spec" (requirement gap, ambiguity, conflict)
|
|
409
455
|
- issue_type: "architecture" (design flaw, missing component)
|
|
410
456
|
ACTION:
|
|
411
|
-
1. Update project.state = "
|
|
457
|
+
1. Update project.state = "plan"
|
|
412
458
|
2. Log backward transition in mode_transitions:
|
|
413
459
|
- type: backward
|
|
414
460
|
reason: "{QA finding description}"
|
|
@@ -550,9 +596,11 @@ Display project status dashboard:
|
|
|
550
596
|
Phase: {state} Mode: {execution_mode}
|
|
551
597
|
Language: {language} IDE: {ides}
|
|
552
598
|
|
|
553
|
-
|
|
554
|
-
WU: {score} Brief: {score}
|
|
555
|
-
|
|
599
|
+
DISCOVER:
|
|
600
|
+
WU: {score} Brief: {score}
|
|
601
|
+
PLAN:
|
|
602
|
+
Detail: {score} Arch: {score} UX: {score}
|
|
603
|
+
Phases: {score} Tasks: {score} QA-P: {score}
|
|
556
604
|
|
|
557
605
|
BUILD:
|
|
558
606
|
Dev: {status} QA-Impl: {status}
|