chati-dev 4.2.2 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/README.md +80 -53
  2. package/bin/chati.js +150 -5
  3. package/framework/agents/build/dev.md +509 -76
  4. package/framework/agents/deploy/devops.md +40 -25
  5. package/framework/agents/discover/brief.md +156 -22
  6. package/framework/agents/discover/brownfield-wu.md +24 -14
  7. package/framework/agents/discover/greenfield-wu.md +100 -14
  8. package/framework/agents/plan/architect-data-engineer.md +6 -6
  9. package/framework/agents/plan/architect-system.md +46 -12
  10. package/framework/agents/plan/architect.md +40 -20
  11. package/framework/agents/plan/detail.md +36 -24
  12. package/framework/agents/plan/phases.md +36 -26
  13. package/framework/agents/plan/tasks.md +114 -33
  14. package/framework/agents/plan/ux-brand-architect.md +240 -8
  15. package/framework/agents/plan/ux-component-engineer.md +28 -13
  16. package/framework/agents/plan/ux-researcher.md +7 -6
  17. package/framework/agents/plan/ux.md +55 -22
  18. package/framework/agents/quality/qa-implementation.md +143 -74
  19. package/framework/agents/quality/qa-planning.md +115 -42
  20. package/framework/agents/quality/qa-visual.md +439 -0
  21. package/framework/agents/shared/visualizer.md +128 -0
  22. package/framework/config.yaml +7 -6
  23. package/framework/constitution.md +127 -44
  24. package/framework/context/governance.md +12 -7
  25. package/framework/context/quality.md +6 -5
  26. package/framework/context/root.md +6 -6
  27. package/framework/data/entity-registry.yaml +377 -4
  28. package/framework/data/model-limits.json +19 -0
  29. package/framework/domains/agents/qa-visual.yaml +74 -0
  30. package/framework/domains/constitution.yaml +46 -2
  31. package/framework/domains/workflows/greenfield-fullstack.yaml +2 -2
  32. package/framework/hooks/advance-trigger.js +131 -0
  33. package/framework/hooks/brief-validator.js +83 -0
  34. package/framework/hooks/constitution-guard.js +24 -5
  35. package/framework/hooks/license-guard.js +62 -27
  36. package/framework/hooks/mode-governance.js +13 -2
  37. package/framework/hooks/model-governance.js +1 -0
  38. package/framework/hooks/post-dev.js +207 -0
  39. package/framework/hooks/prism-engine.js +274 -105
  40. package/framework/hooks/reasoning-escalator.js +371 -0
  41. package/framework/hooks/reference-trigger.js +117 -0
  42. package/framework/hooks/session-digest.js +50 -1
  43. package/framework/hooks/settings.json +32 -1
  44. package/framework/hooks/style-guard.js +25 -6
  45. package/framework/hooks/team-quality-gate.js +19 -12
  46. package/framework/hooks/undercover-guard.js +4 -2
  47. package/framework/i18n/en.yaml +3 -3
  48. package/framework/i18n/es.yaml +3 -3
  49. package/framework/i18n/fr.yaml +3 -3
  50. package/framework/i18n/pt.yaml +3 -3
  51. package/framework/intelligence/context-engine.md +4 -5
  52. package/framework/intelligence/decision-engine.md +1 -1
  53. package/framework/intelligence/hooks-performance.md +3 -3
  54. package/framework/migrations/v1.0-to-v1.1.yaml +1 -1
  55. package/framework/migrations/v1.4-to-v2.0.yaml +11 -11
  56. package/framework/migrations/v4.0-to-v4.1.yaml +2 -2
  57. package/framework/migrations/v4.2-to-v4.3.yaml +29 -0
  58. package/framework/orchestrator/chati-router.js +387 -0
  59. package/framework/orchestrator/chati-update.md +40 -40
  60. package/framework/orchestrator/chati.md +294 -94
  61. package/framework/scaffold/motion-premium/README.md +89 -0
  62. package/framework/scaffold/motion-premium/app/globals.css.template +400 -0
  63. package/framework/scaffold/motion-premium/app/layout.tsx.template +110 -0
  64. package/framework/scaffold/motion-premium/components/animation/BackgroundCrossfadeProvider.tsx.template +170 -0
  65. package/framework/scaffold/motion-premium/components/animation/LenisProvider.tsx.template +49 -0
  66. package/framework/scaffold/motion-premium/components/animation/PageTransitionWrapper.tsx.template +83 -0
  67. package/framework/scaffold/motion-premium/components/animation/Preloader.tsx.template +171 -0
  68. package/framework/scaffold/motion-premium/components/ui/Container.tsx.template +69 -0
  69. package/framework/scaffold/motion-premium/components/ui/PageSection.tsx.template +74 -0
  70. package/framework/scaffold/motion-premium/lib/animations/gsap.ts.template +112 -0
  71. package/framework/scaffold/motion-premium/lib/animations/refreshCoordinator.ts.template +75 -0
  72. package/framework/scaffold/motion-premium/lib/animations/tokens.ts.template +119 -0
  73. package/framework/scaffold/motion-premium/lib/animations/useGsapContext.ts.template +92 -0
  74. package/framework/scaffold/motion-premium/lib/animations/useScrollSnapStepper.ts.template +265 -0
  75. package/framework/scaffold/motion-premium/lib/animations/useSmoothScroll.ts.template +67 -0
  76. package/framework/scaffold/motion-premium/lib/brand.ts.template +43 -0
  77. package/framework/scaffold/motion-premium/scaffold.yaml +174 -0
  78. package/framework/scaffold/motion-premium-3d/README.md +80 -0
  79. package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/ScrollDemoCanvas.tsx.template +81 -0
  80. package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/ScrollDemoClient.tsx.template +75 -0
  81. package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/page.tsx.template +26 -0
  82. package/framework/scaffold/motion-premium-3d/components/3d/CameraRig.tsx.template +100 -0
  83. package/framework/scaffold/motion-premium-3d/components/3d/CanvasProvider.tsx.template +85 -0
  84. package/framework/scaffold/motion-premium-3d/components/3d/InvalidateOnScroll.tsx.template +51 -0
  85. package/framework/scaffold/motion-premium-3d/components/3d/MeshCrossfade.tsx.template +79 -0
  86. package/framework/scaffold/motion-premium-3d/components/3d/ScrollCrossfade.tsx.template +88 -0
  87. package/framework/scaffold/motion-premium-3d/components/3d/ScrollScene.tsx.template +121 -0
  88. package/framework/scaffold/motion-premium-3d/components/webgl/SceneFallback.tsx.template +65 -0
  89. package/framework/scaffold/motion-premium-3d/components/webgl/WebGLContext.tsx.template +68 -0
  90. package/framework/scaffold/motion-premium-3d/lib/webgl/detect.ts.template +69 -0
  91. package/framework/scaffold/motion-premium-3d/scaffold.yaml +133 -0
  92. package/framework/schemas/session.schema.json +109 -21
  93. package/framework/scripts/reference-capture.js +430 -0
  94. package/framework/scripts/visual-qa.js +674 -0
  95. package/framework/tasks/orchestrator-handoff.md +1 -1
  96. package/framework/tasks/orchestrator-resume.md +1 -1
  97. package/framework/tasks/orchestrator-route.md +1 -1
  98. package/framework/tasks/orchestrator-status.md +3 -3
  99. package/framework/tasks/qa-planning-gate-define.md +1 -1
  100. package/framework/templates/brandbook-html-tmpl.md +1 -1
  101. package/framework/templates/brandbook-tmpl.yaml +1 -1
  102. package/framework/templates/component-spec-tmpl.yaml +1 -1
  103. package/framework/templates/design-token-tmpl.yaml +1 -1
  104. package/framework/templates/icon-system-tmpl.yaml +1 -1
  105. package/framework/templates/team-planning-tasks.yaml +6 -5
  106. package/framework/workflows/brownfield-discovery.yaml +2 -2
  107. package/framework/workflows/brownfield-fullstack.yaml +15 -11
  108. package/framework/workflows/brownfield-service.yaml +14 -10
  109. package/framework/workflows/brownfield-ui.yaml +15 -11
  110. package/framework/workflows/greenfield-fullstack.yaml +16 -13
  111. package/framework/workflows/quick-flow.yaml +3 -3
  112. package/framework/workflows/standard-flow.yaml +12 -9
  113. package/package.json +10 -5
  114. package/src/autonomy/autonomous-gate.js +1 -0
  115. package/src/autonomy/build-state.js +1 -2
  116. package/src/autonomy/progress-reporter.js +1 -1
  117. package/src/config/agent-customizer.js +11 -3
  118. package/src/config/claude-settings-generator.js +27 -7
  119. package/src/config/context-file-generator.js +41 -21
  120. package/src/config/framework-adapter.js +1 -0
  121. package/src/config/gemini-hooks-generator.js +19 -7
  122. package/src/config/mcp-configs.js +1 -0
  123. package/src/context/layers/l1-global.js +2 -1
  124. package/src/dashboard/data-reader.js +4 -3
  125. package/src/dashboard/layout.js +2 -1
  126. package/src/decision/analyzer.js +6 -30
  127. package/src/decision/engine.js +4 -28
  128. package/src/decision/registry-healer.js +3 -2
  129. package/src/decision/registry-updater.js +23 -14
  130. package/src/extensions/loader.js +2 -8
  131. package/src/gates/g1-planning-complete.js +2 -1
  132. package/src/gates/g2-qa-planning.js +2 -1
  133. package/src/gates/g3-implementation.js +2 -1
  134. package/src/gates/g4-qa-implementation.js +3 -2
  135. package/src/gates/g5-deploy-ready.js +2 -1
  136. package/src/health/engine.js +4 -3
  137. package/src/installer/core.js +422 -81
  138. package/src/installer/preflight.js +131 -0
  139. package/src/installer/provider-overlay.js +3 -3
  140. package/src/installer/scaffold-applier.js +358 -0
  141. package/src/installer/templates.js +46 -29
  142. package/src/installer/validator.js +17 -12
  143. package/src/intelligence/registry-manager.js +22 -29
  144. package/src/intelligence/timeline.js +11 -6
  145. package/src/license/commands.js +1 -1
  146. package/src/license/wait.js +102 -0
  147. package/src/memory/agent-memory.js +81 -0
  148. package/src/memory/dream.js +32 -1
  149. package/src/merger/replace-merger.js +28 -15
  150. package/src/orchestrator/agent-selector.js +2 -1
  151. package/src/orchestrator/cli.js +1869 -71
  152. package/src/orchestrator/doctor.js +270 -0
  153. package/src/orchestrator/handoff-engine.js +4 -3
  154. package/src/orchestrator/index.js +2 -0
  155. package/src/orchestrator/pipeline-manager.js +306 -15
  156. package/src/orchestrator/session-manager.js +331 -6
  157. package/src/tasks/handoff.js +3 -2
  158. package/src/telemetry/config.js +4 -3
  159. package/src/telemetry/schema.js +1 -0
  160. package/src/terminal/collector.js +3 -2
  161. package/src/terminal/index.js +1 -2
  162. package/src/terminal/isolation.js +52 -18
  163. package/src/terminal/prompt-builder.js +42 -25
  164. package/src/terminal/run-parallel.js +1 -1
  165. package/src/terminal/run-team.js +3 -3
  166. package/src/terminal/team-task-list.js +43 -4
  167. package/src/upgrade/backup.js +3 -2
  168. package/src/upgrade/checker.js +3 -2
  169. package/src/upgrade/migrator.js +65 -7
  170. package/src/upgrade/tracked-files-detector.js +86 -0
  171. package/src/upgrade/user-messages.js +94 -0
  172. package/src/utils/config-parser.js +2 -1
  173. package/src/utils/feature-flags.js +2 -1
  174. package/src/utils/flatten-entities.js +69 -0
  175. package/src/utils/framework-dir.js +16 -0
  176. package/src/utils/model-id.js +85 -0
  177. package/src/utils/provider-limits.js +84 -23
  178. package/src/utils/schema-validator.js +1 -1
  179. package/src/wizard/i18n.js +5 -4
  180. package/src/wizard/index.js +14 -0
  181. package/assets/logo - c/303/263pia.png +0 -0
  182. package/assets/logo.svg +0 -42
  183. package/assets/logo2.png +0 -0
  184. package/assets/social-preview.png +0 -0
  185. package/scripts/bundle-framework.js +0 -69
  186. package/scripts/changelog-generator.js +0 -222
  187. package/scripts/codebase-mapper.js +0 -728
  188. package/scripts/commit-message-generator.js +0 -167
  189. package/scripts/coverage-analyzer.js +0 -260
  190. package/scripts/dependency-analyzer.js +0 -280
  191. package/scripts/doctor/checks/agents.js +0 -77
  192. package/scripts/doctor/checks/constitution.js +0 -41
  193. package/scripts/doctor/checks/domain-alignment.js +0 -58
  194. package/scripts/doctor/checks/prism-layers.js +0 -84
  195. package/scripts/doctor/checks/registry.js +0 -55
  196. package/scripts/doctor/checks/schemas.js +0 -61
  197. package/scripts/doctor/fixes/reference-fix.js +0 -100
  198. package/scripts/doctor/fixes/registry-fix.js +0 -56
  199. package/scripts/doctor/index.js +0 -212
  200. package/scripts/framework-analyzer.js +0 -308
  201. package/scripts/generate-constitution-domain.js +0 -253
  202. package/scripts/generate-signing-key.js +0 -33
  203. package/scripts/health-check.js +0 -481
  204. package/scripts/ide-sync.js +0 -326
  205. package/scripts/performance-analyzer.js +0 -325
  206. package/scripts/plan-tracker.js +0 -278
  207. package/scripts/populate-entity-registry.js +0 -481
  208. package/scripts/pr-review.js +0 -317
  209. package/scripts/rollback-manager.js +0 -310
  210. package/scripts/semantic-lint.js +0 -328
  211. package/scripts/sign-manifest.js +0 -53
  212. package/scripts/stuck-detector.js +0 -343
  213. package/scripts/test-quality-assessment.js +0 -257
  214. package/scripts/validate-agents.js +0 -368
  215. package/scripts/validate-package.js +0 -505
  216. package/scripts/validate-tasks.js +0 -465
  217. package/src/autonomy/worktree-manager.js +0 -250
  218. package/src/intelligence/decision-engine.js +0 -256
  219. package/src/intelligence/document-sharder.js +0 -221
  220. package/src/intelligence/elicitation.js +0 -265
@@ -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
- - **DISCOVER → PLAN pipeline**: greenfield-wu → brief → detail architect ux → phases → tasks → qa-planning
53
+ - **DISCOVER → PLAN pipeline**: greenfield-wu → brief → [Planning Team: detail + architect + ux + qa-planning] → phases → tasks
54
54
  - **BUILD pipeline**: dev → qa-implementation
55
55
  - **DEPLOY pipeline**: devops
56
56
  - Handle special cases (skipped, needs_revalidation)
@@ -59,7 +59,7 @@ Check if the requested action is valid for current position:
59
59
  ### 5. Select Target Agent
60
60
  Based on intent and position, identify the appropriate agent:
61
61
  - **DISCOVER agents**: greenfield-wu, brownfield-wu, brief, detail
62
- - **PLAN agents**: architect, ux, phases, tasks, qa-planning
62
+ - **PLAN agents**: architect, ux, phases, tasks (qa-planning runs inside the Planning Team after detail+architect+ux complete, not as a standalone sequential agent)
63
63
  - **BUILD agents**: dev, qa-implementation
64
64
  - **DEPLOY agents**: devops
65
65
  - **Orchestrator actions**: status, health, deviation
@@ -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
- - **DISCOVER + PLAN**: 9 agents (greenfield-wu OR brownfield-wu, brief, detail, architect, ux, phases, tasks, qa-planning)
49
+ - **DISCOVER + PLAN**: 8 agents (greenfield-wu OR brownfield-wu, brief, detail, architect, ux, phases, tasks) qa-planning runs inside the Planning Team alongside detail+architect+ux, not as a separate sequential agent
50
50
  - **BUILD**: 2 agents (dev, qa-implementation)
51
51
  - **DEPLOY**: 1 agent (devops)
52
52
  - Calculate percentage: completed / total
@@ -166,7 +166,7 @@ status_report:
166
166
 
167
167
  pipeline_progress:
168
168
  planning:
169
- total_agents: 8 # brownfield-wu counted, greenfield-wu skipped
169
+ total_agents: 7 # brownfield-wu counted, greenfield-wu skipped; qa-planning is inside Planning Team, not a standalone sequential agent
170
170
  completed: 3
171
171
  percentage: 37.5
172
172
  agents:
@@ -244,7 +244,7 @@ status_report:
244
244
  ╚════════════════════════════════════════════════════════════╝
245
245
 
246
246
  DISCOVER / PLAN Pipeline (37.5%)
247
- ✓ brownfield-wu ✓ brief ✓ detail ◐ architect ○ ux ○ phasestasksqa-planning
247
+ ✓ brownfield-wu ✓ brief ✓ detail ◐ architect ○ ux [qa-planning — runs inside Planning Team]phasestasks
248
248
 
249
249
  BUILD Pipeline (0%)
250
250
  ○ dev ○ qa-implementation
@@ -42,7 +42,7 @@ Define quality gates and enforcement thresholds for each stage of the chati.dev
42
42
  - **Bypass**: Not allowed (ensures baseline quality)
43
43
 
44
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)
45
+ - **Agent Completion**: All DISCOVER + PLAN agents must complete: WU → brief → [Planning Team: detail + architect + ux + qa-planning] → phases → tasks
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
@@ -11,7 +11,7 @@ sections must exist and what each must contain.
11
11
  - **CSS**: All styles in a single `<style>` tag (no external stylesheets)
12
12
  - **Fonts**: Google Fonts via `<link>` tags (only external dependency allowed)
13
13
  - **JavaScript**: Minimal (only for theme toggle and smooth scroll)
14
- - **Output path**: `chati.dev/artifacts/4-UX/brandbook.html`
14
+ - **Output path**: `artifacts/4-UX/brandbook.html`
15
15
 
16
16
  ## Mandatory Sections (14)
17
17
 
@@ -10,7 +10,7 @@ template:
10
10
  typography rationale, color philosophy, spacing rhythm, and iconography
11
11
  style. Must be completed BEFORE design tokens.
12
12
 
13
- output_path: chati.dev/artifacts/4-UX/brandbook.md
13
+ output_path: artifacts/4-UX/brandbook.md
14
14
 
15
15
  sections:
16
16
  - brand_voice
@@ -9,7 +9,7 @@ template:
9
9
  UI component specification document. Defines variants, states,
10
10
  anatomy, props, accessibility, and responsive behavior.
11
11
 
12
- output_path: chati.dev/artifacts/4-UX/components/
12
+ output_path: artifacts/4-UX/components/
13
13
 
14
14
  fields:
15
15
  - name: id
@@ -9,7 +9,7 @@ template:
9
9
  Structured design token system with 4 layers: primitive, semantic,
10
10
  component, and utility. Derived from brandbook decisions.
11
11
 
12
- output_path: chati.dev/artifacts/4-UX/design-tokens.md
12
+ output_path: artifacts/4-UX/design-tokens.md
13
13
 
14
14
  layers:
15
15
  - primitive
@@ -9,7 +9,7 @@ template:
9
9
  Icon library selection, sizing scale, usage guidelines, and inventory.
10
10
  Aligned with brandbook iconography style.
11
11
 
12
- output_path: chati.dev/artifacts/4-UX/icon-system.md
12
+ output_path: artifacts/4-UX/icon-system.md
13
13
 
14
14
  sections:
15
15
  library_selection:
@@ -60,14 +60,15 @@ tasks:
60
60
  - brandbook.html
61
61
  threshold: 90
62
62
 
63
- - id: TT-PLN-004
64
- title: "Cross-validate alignment: PRD entities = DB tables = UI components"
65
- assigned_to: null
63
+ - id: TT-PLN-005
64
+ title: "QA-Planning: Validate traceability, criteria quality, cross-artifact consistency"
65
+ assigned_to: qa-planning
66
66
  status: pending
67
67
  score: null
68
68
  blocker: null
69
69
  depends_on: [TT-PLN-001, TT-PLN-002, TT-PLN-003]
70
70
  cross_review: null
71
- artifacts_produced: []
71
+ artifacts_produced:
72
+ - qa-planning-report.md
72
73
  threshold: 95
73
- notes: "Assigned by Team Lead after individual tasks complete. All 3 members participate."
74
+ notes: "Activates after Detail, Architect, UX complete. Reviews PRD + Architecture + UX for traceability and consistency. Sends qa_review_finding via mailbox if ERRORs found. Team dissolves only when QA-Planning approves (score >= 95%)."
@@ -67,9 +67,9 @@ phases:
67
67
  sequence:
68
68
  - agent: brownfield-wu
69
69
  action: compile-report
70
- creates: [chati.dev/artifacts/0-WU/wu-full-report.md]
70
+ creates: [artifacts/0-WU/wu-full-report.md]
71
71
  notes: "Consolidate all findings into comprehensive report"
72
72
 
73
73
  output:
74
- primary: chati.dev/artifacts/0-WU/wu-full-report.md
74
+ primary: artifacts/0-WU/wu-full-report.md
75
75
  duration: "1-4 hours depending on codebase size"
@@ -19,7 +19,7 @@ phases:
19
19
  sequence:
20
20
  - agent: brownfield-wu
21
21
  action: full-discovery
22
- creates: [chati.dev/artifacts/0-WU/wu-full-report.md]
22
+ creates: [artifacts/0-WU/wu-full-report.md]
23
23
  notes: >
24
24
  Both axes (technical + operational). ALWAYS runs Deep Discovery
25
25
  with 3 scout calls: Architect, UX, QA in scout mode.
@@ -30,7 +30,7 @@ phases:
30
30
  sequence:
31
31
  - agent: brief
32
32
  action: problem-extraction
33
- creates: [chati.dev/artifacts/1-Brief/brief-report.md]
33
+ creates: [artifacts/1-Brief/brief-report.md]
34
34
  notes: "Informed by existing codebase context from WU"
35
35
 
36
36
  - phase: 2
@@ -39,7 +39,7 @@ phases:
39
39
  sequence:
40
40
  - agent: architect
41
41
  action: assess-architecture
42
- creates: [chati.dev/artifacts/3-Architecture/architecture.md]
42
+ creates: [artifacts/3-Architecture/architecture.md]
43
43
  template: fullstack-architecture-tmpl.yaml
44
44
  notes: >
45
45
  Architect comes BEFORE Detail in brownfield.
@@ -51,12 +51,12 @@ phases:
51
51
  sequence:
52
52
  - agent: detail
53
53
  action: create-prd
54
- creates: [chati.dev/artifacts/2-PRD/prd.md]
54
+ creates: [artifacts/2-PRD/prd.md]
55
55
  template: brownfield-prd-tmpl.yaml
56
56
  notes: "PRD informed by architectural constraints"
57
57
  - agent: ux
58
58
  action: define-experience
59
- creates: [chati.dev/artifacts/4-UX/ux-specification.md]
59
+ creates: [artifacts/4-UX/ux-specification.md]
60
60
  notes: "Includes Design System audit of existing code"
61
61
 
62
62
  - phase: 4
@@ -65,20 +65,24 @@ phases:
65
65
  sequence:
66
66
  - agent: phases
67
67
  action: create-roadmap
68
- creates: [chati.dev/artifacts/5-Phases/phases.md]
68
+ creates: [artifacts/5-Phases/phases.md]
69
69
  - agent: tasks
70
70
  action: create-tasks
71
- creates: [chati.dev/artifacts/6-Tasks/tasks.md]
71
+ creates: [artifacts/6-Tasks/tasks.md]
72
72
  template: task-tmpl.yaml
73
73
 
74
74
  - phase: 5
75
- name: Planning Quality Gate
75
+ name: Planning Quality Gate (Planning Team)
76
76
  category: PLAN
77
77
  sequence:
78
78
  - agent: qa-planning
79
79
  action: validate-traceability
80
- creates: [chati.dev/artifacts/7-QA-Planning/qa-planning-report.md]
80
+ creates: [artifacts/7-QA-Planning/qa-planning-report.md]
81
81
  template: qa-gate-tmpl.yaml
82
+ notes: >
83
+ Runs inside Planning Team (Article XXI), not as a standalone step.
84
+ Activates after Detail, Architect, and UX complete their tasks.
85
+ Score synced to session.yaml by orchestrator on team dissolution.
82
86
 
83
87
  - phase: 6
84
88
  name: Implementation
@@ -88,7 +92,7 @@ phases:
88
92
  action: implement-tasks
89
93
  - agent: qa-implementation
90
94
  action: validate-code
91
- creates: [chati.dev/artifacts/9-QA-Implementation/qa-implementation-report.md]
95
+ creates: [artifacts/9-QA-Implementation/qa-implementation-report.md]
92
96
 
93
97
  - phase: 7
94
98
  name: Deployment
@@ -96,7 +100,7 @@ phases:
96
100
  sequence:
97
101
  - agent: devops
98
102
  action: deploy
99
- creates: [chati.dev/artifacts/10-Deploy/deploy-report.md]
103
+ creates: [artifacts/10-Deploy/deploy-report.md]
100
104
 
101
105
  transitions:
102
106
  discover_to_plan:
@@ -20,7 +20,7 @@ phases:
20
20
  sequence:
21
21
  - agent: brownfield-wu
22
22
  action: full-discovery
23
- creates: [chati.dev/artifacts/0-WU/wu-full-report.md]
23
+ creates: [artifacts/0-WU/wu-full-report.md]
24
24
 
25
25
  - phase: 1
26
26
  name: Problem Definition
@@ -28,7 +28,7 @@ phases:
28
28
  sequence:
29
29
  - agent: brief
30
30
  action: problem-extraction
31
- creates: [chati.dev/artifacts/1-Brief/brief-report.md]
31
+ creates: [artifacts/1-Brief/brief-report.md]
32
32
 
33
33
  - phase: 2
34
34
  name: Architecture & Specification
@@ -36,11 +36,11 @@ phases:
36
36
  sequence:
37
37
  - agent: architect
38
38
  action: assess-architecture
39
- creates: [chati.dev/artifacts/3-Architecture/architecture.md]
39
+ creates: [artifacts/3-Architecture/architecture.md]
40
40
  notes: "Focus on API design, data model, service patterns"
41
41
  - agent: detail
42
42
  action: create-prd
43
- creates: [chati.dev/artifacts/2-PRD/prd.md]
43
+ creates: [artifacts/2-PRD/prd.md]
44
44
  template: brownfield-prd-tmpl.yaml
45
45
 
46
46
  - phase: 3
@@ -49,18 +49,22 @@ phases:
49
49
  sequence:
50
50
  - agent: phases
51
51
  action: create-roadmap
52
- creates: [chati.dev/artifacts/5-Phases/phases.md]
52
+ creates: [artifacts/5-Phases/phases.md]
53
53
  - agent: tasks
54
54
  action: create-tasks
55
- creates: [chati.dev/artifacts/6-Tasks/tasks.md]
55
+ creates: [artifacts/6-Tasks/tasks.md]
56
56
 
57
57
  - phase: 4
58
- name: Planning Quality Gate
58
+ name: Planning Quality Gate (Planning Team)
59
59
  category: PLAN
60
60
  sequence:
61
61
  - agent: qa-planning
62
62
  action: validate-traceability
63
- creates: [chati.dev/artifacts/7-QA-Planning/qa-planning-report.md]
63
+ creates: [artifacts/7-QA-Planning/qa-planning-report.md]
64
+ notes: >
65
+ Runs inside Planning Team (Article XXI), not as a standalone step.
66
+ Activates after Detail and Architect complete their tasks.
67
+ Score synced to session.yaml by orchestrator on team dissolution.
64
68
 
65
69
  - phase: 5
66
70
  name: Implementation
@@ -70,7 +74,7 @@ phases:
70
74
  action: implement-tasks
71
75
  - agent: qa-implementation
72
76
  action: validate-code
73
- creates: [chati.dev/artifacts/9-QA-Implementation/qa-implementation-report.md]
77
+ creates: [artifacts/9-QA-Implementation/qa-implementation-report.md]
74
78
 
75
79
  - phase: 6
76
80
  name: Deployment
@@ -78,7 +82,7 @@ phases:
78
82
  sequence:
79
83
  - agent: devops
80
84
  action: deploy
81
- creates: [chati.dev/artifacts/10-Deploy/deploy-report.md]
85
+ creates: [artifacts/10-Deploy/deploy-report.md]
82
86
 
83
87
  transitions:
84
88
  discover_to_plan:
@@ -20,7 +20,7 @@ phases:
20
20
  sequence:
21
21
  - agent: brownfield-wu
22
22
  action: full-discovery
23
- creates: [chati.dev/artifacts/0-WU/wu-full-report.md]
23
+ creates: [artifacts/0-WU/wu-full-report.md]
24
24
  notes: "UX scout call gets extra attention for component audit"
25
25
 
26
26
  - phase: 1
@@ -29,7 +29,7 @@ phases:
29
29
  sequence:
30
30
  - agent: brief
31
31
  action: problem-extraction
32
- creates: [chati.dev/artifacts/1-Brief/brief-report.md]
32
+ creates: [artifacts/1-Brief/brief-report.md]
33
33
 
34
34
  - phase: 2
35
35
  name: Architecture & Experience
@@ -37,15 +37,15 @@ phases:
37
37
  sequence:
38
38
  - agent: architect
39
39
  action: assess-architecture
40
- creates: [chati.dev/artifacts/3-Architecture/architecture.md]
40
+ creates: [artifacts/3-Architecture/architecture.md]
41
41
  notes: "Focus on frontend architecture, state management, component patterns"
42
42
  - agent: detail
43
43
  action: create-prd
44
- creates: [chati.dev/artifacts/2-PRD/prd.md]
44
+ creates: [artifacts/2-PRD/prd.md]
45
45
  template: brownfield-prd-tmpl.yaml
46
46
  - agent: ux
47
47
  action: define-experience
48
- creates: [chati.dev/artifacts/4-UX/ux-specification.md]
48
+ creates: [artifacts/4-UX/ux-specification.md]
49
49
  notes: "Full Design System audit + new token definitions"
50
50
 
51
51
  - phase: 3
@@ -54,18 +54,22 @@ phases:
54
54
  sequence:
55
55
  - agent: phases
56
56
  action: create-roadmap
57
- creates: [chati.dev/artifacts/5-Phases/phases.md]
57
+ creates: [artifacts/5-Phases/phases.md]
58
58
  - agent: tasks
59
59
  action: create-tasks
60
- creates: [chati.dev/artifacts/6-Tasks/tasks.md]
60
+ creates: [artifacts/6-Tasks/tasks.md]
61
61
 
62
62
  - phase: 4
63
- name: Planning Quality Gate
63
+ name: Planning Quality Gate (Planning Team)
64
64
  category: PLAN
65
65
  sequence:
66
66
  - agent: qa-planning
67
67
  action: validate-traceability
68
- creates: [chati.dev/artifacts/7-QA-Planning/qa-planning-report.md]
68
+ creates: [artifacts/7-QA-Planning/qa-planning-report.md]
69
+ notes: >
70
+ Runs inside Planning Team (Article XXI), not as a standalone step.
71
+ Activates after Architect, Detail, and UX complete their tasks.
72
+ Score synced to session.yaml by orchestrator on team dissolution.
69
73
 
70
74
  - phase: 5
71
75
  name: Implementation
@@ -76,7 +80,7 @@ phases:
76
80
  notes: "Design System token enforcement is critical for UI work"
77
81
  - agent: qa-implementation
78
82
  action: validate-code
79
- creates: [chati.dev/artifacts/9-QA-Implementation/qa-implementation-report.md]
83
+ creates: [artifacts/9-QA-Implementation/qa-implementation-report.md]
80
84
 
81
85
  - phase: 6
82
86
  name: Deployment
@@ -84,7 +88,7 @@ phases:
84
88
  sequence:
85
89
  - agent: devops
86
90
  action: deploy
87
- creates: [chati.dev/artifacts/10-Deploy/deploy-report.md]
91
+ creates: [artifacts/10-Deploy/deploy-report.md]
88
92
 
89
93
  transitions:
90
94
  discover_to_plan:
@@ -20,7 +20,7 @@ phases:
20
20
  sequence:
21
21
  - agent: greenfield-wu
22
22
  action: operational-discovery
23
- creates: [chati.dev/artifacts/0-WU/wu-operational-report.md]
23
+ creates: [artifacts/0-WU/wu-operational-report.md]
24
24
  notes: "Operational context only (no codebase to analyze)"
25
25
 
26
26
  - phase: 1
@@ -29,7 +29,7 @@ phases:
29
29
  sequence:
30
30
  - agent: brief
31
31
  action: problem-extraction
32
- creates: [chati.dev/artifacts/1-Brief/brief-report.md]
32
+ creates: [artifacts/1-Brief/brief-report.md]
33
33
  notes: "5-phase extraction process"
34
34
 
35
35
  - phase: 2
@@ -38,7 +38,7 @@ phases:
38
38
  sequence:
39
39
  - agent: detail
40
40
  action: create-prd
41
- creates: [chati.dev/artifacts/2-PRD/prd.md]
41
+ creates: [artifacts/2-PRD/prd.md]
42
42
  template: prd-tmpl.yaml
43
43
  notes: "Detail comes BEFORE Architect in greenfield"
44
44
 
@@ -48,16 +48,16 @@ phases:
48
48
  sequence:
49
49
  - agent: architect
50
50
  action: design-architecture
51
- creates: [chati.dev/artifacts/3-Architecture/architecture.md]
51
+ creates: [artifacts/3-Architecture/architecture.md]
52
52
  template: fullstack-architecture-tmpl.yaml
53
53
  notes: "Tech stack selection, data model, deployment strategy"
54
54
  - agent: architect
55
55
  action: dep-audit
56
- creates: [chati.dev/artifacts/3-Architecture/dep-audit.yaml]
56
+ creates: [artifacts/3-Architecture/dep-audit.yaml]
57
57
  notes: "Verify dependency versions, vulnerabilities, and compatibility before implementation"
58
58
  - agent: ux
59
59
  action: define-experience
60
- creates: [chati.dev/artifacts/4-UX/ux-specification.md]
60
+ creates: [artifacts/4-UX/ux-specification.md]
61
61
  notes: "UX follows Architect (needs to know the stack)"
62
62
 
63
63
  - phase: 4
@@ -66,23 +66,26 @@ phases:
66
66
  sequence:
67
67
  - agent: phases
68
68
  action: create-roadmap
69
- creates: [chati.dev/artifacts/5-Phases/phases.md]
69
+ creates: [artifacts/5-Phases/phases.md]
70
70
  notes: "MVP-first phase breakdown"
71
71
  - agent: tasks
72
72
  action: create-tasks
73
- creates: [chati.dev/artifacts/6-Tasks/tasks.md]
73
+ creates: [artifacts/6-Tasks/tasks.md]
74
74
  template: task-tmpl.yaml
75
75
  notes: "Atomic tasks with Given-When-Then criteria"
76
76
 
77
77
  - phase: 5
78
- name: Planning Quality Gate
78
+ name: Planning Quality Gate (Planning Team)
79
79
  category: PLAN
80
80
  sequence:
81
81
  - agent: qa-planning
82
82
  action: validate-traceability
83
- creates: [chati.dev/artifacts/7-QA-Planning/qa-planning-report.md]
83
+ creates: [artifacts/7-QA-Planning/qa-planning-report.md]
84
84
  template: qa-gate-tmpl.yaml
85
- notes: "Must score >= 95% to proceed to BUILD"
85
+ notes: >
86
+ Runs inside Planning Team (Article XXI), not as a standalone step.
87
+ Activates after Detail, Architect, and UX complete their tasks.
88
+ Must score >= 95% to proceed to BUILD. Score synced to session.yaml by orchestrator on team dissolution.
86
89
 
87
90
  - phase: 6
88
91
  name: Implementation
@@ -93,7 +96,7 @@ phases:
93
96
  notes: "Interactive or autonomous (Ralph Wiggum) mode"
94
97
  - agent: qa-implementation
95
98
  action: validate-code
96
- creates: [chati.dev/artifacts/9-QA-Implementation/qa-implementation-report.md]
99
+ creates: [artifacts/9-QA-Implementation/qa-implementation-report.md]
97
100
  template: qa-gate-tmpl.yaml
98
101
  notes: "Tests + SAST + code review. Must pass to deploy"
99
102
 
@@ -103,7 +106,7 @@ phases:
103
106
  sequence:
104
107
  - agent: devops
105
108
  action: deploy
106
- creates: [chati.dev/artifacts/10-Deploy/deploy-report.md]
109
+ creates: [artifacts/10-Deploy/deploy-report.md]
107
110
  notes: "Git operations, deployment, documentation"
108
111
 
109
112
  transitions:
@@ -45,7 +45,7 @@ phases:
45
45
  sequence:
46
46
  - agent: brief
47
47
  action: quick-extraction
48
- creates: [chati.dev/artifacts/1-Brief/quick-brief.md]
48
+ creates: [artifacts/1-Brief/quick-brief.md]
49
49
  notes: >
50
50
  Condensed extraction: single-pass, no 5-phase process.
51
51
  Capture: what, why, constraints, acceptance criteria.
@@ -72,7 +72,7 @@ phases:
72
72
  sequence:
73
73
  - agent: qa-implementation
74
74
  action: validate-code
75
- creates: [chati.dev/artifacts/9-QA-Implementation/qa-implementation-report.md]
75
+ creates: [artifacts/9-QA-Implementation/qa-implementation-report.md]
76
76
  notes: >
77
77
  Full QA-Implementation validation still applies (no shortcuts on quality).
78
78
  Adversarial review still mandatory.
@@ -87,7 +87,7 @@ phases:
87
87
  sequence:
88
88
  - agent: devops
89
89
  action: deploy
90
- creates: [chati.dev/artifacts/10-Deploy/deploy-report.md]
90
+ creates: [artifacts/10-Deploy/deploy-report.md]
91
91
  notes: "Standard deployment process"
92
92
 
93
93
  transitions:
@@ -40,7 +40,7 @@ agents:
40
40
  - detail
41
41
  - architect
42
42
  - tasks
43
- - qa-planning
43
+ - qa-planning # runs inside Planning Team; score synced via team dissolution
44
44
  - dev
45
45
  - qa-implementation
46
46
  - devops
@@ -57,7 +57,7 @@ phases:
57
57
  sequence:
58
58
  - agent: brief
59
59
  action: extract-requirements
60
- creates: [chati.dev/artifacts/1-Brief/brief.md]
60
+ creates: [artifacts/1-Brief/brief.md]
61
61
  notes: >
62
62
  Full brief extraction (5 phases). Since no WU precedes it,
63
63
  Brief must also capture codebase context from user input.
@@ -71,27 +71,30 @@ phases:
71
71
  sequence:
72
72
  - agent: detail
73
73
  action: expand-requirements
74
- creates: [chati.dev/artifacts/2-Detail/prd.md]
74
+ creates: [artifacts/2-Detail/prd.md]
75
75
  notes: "Full PRD from brief output"
76
76
  parallel_with: [architect]
77
77
 
78
78
  - agent: architect
79
79
  action: design-architecture
80
- creates: [chati.dev/artifacts/3-Architecture/architecture.md]
80
+ creates: [artifacts/3-Architecture/architecture.md]
81
81
  notes: "Architecture decisions, no UX constraints needed"
82
82
  parallel_with: [detail]
83
83
 
84
84
  - agent: tasks
85
85
  action: create-tasks
86
- creates: [chati.dev/artifacts/5-Tasks/tasks.md]
86
+ creates: [artifacts/5-Tasks/tasks.md]
87
87
  notes: >
88
88
  Tasks agent works directly from PRD + Architecture.
89
89
  No phases agent — tasks agent determines task breakdown directly.
90
90
 
91
91
  - agent: qa-planning
92
92
  action: validate-plan
93
- creates: [chati.dev/artifacts/6-QA-Planning/qa-planning-report.md]
94
- notes: "Full QA-Planning validation. Score >= 95% required to advance."
93
+ creates: [artifacts/6-QA-Planning/qa-planning-report.md]
94
+ notes: >
95
+ Runs inside Planning Team (Article XXI), not as a standalone step.
96
+ Activates after Detail, Architect complete. Score >= 95% required to advance.
97
+ Score synced to session.yaml by orchestrator on team dissolution.
95
98
  config:
96
99
  minimum_score: 95
97
100
 
@@ -105,7 +108,7 @@ phases:
105
108
 
106
109
  - agent: qa-implementation
107
110
  action: validate-code
108
- creates: [chati.dev/artifacts/9-QA-Implementation/qa-implementation-report.md]
111
+ creates: [artifacts/9-QA-Implementation/qa-implementation-report.md]
109
112
  notes: >
110
113
  Full QA-Implementation validation. Score >= 95% required.
111
114
  Adversarial review mandatory.
@@ -120,7 +123,7 @@ phases:
120
123
  sequence:
121
124
  - agent: devops
122
125
  action: deploy
123
- creates: [chati.dev/artifacts/10-Deploy/deploy-report.md]
126
+ creates: [artifacts/10-Deploy/deploy-report.md]
124
127
  notes: "Standard deployment process"
125
128
 
126
129
  transitions:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "chati-dev",
3
- "version": "4.2.2",
4
- "description": "AI-Powered Multi-Agent Orchestration System Structured vibe coding for Full Stack Development",
3
+ "version": "4.3.0",
4
+ "description": "AI-Powered Multi-Agent Orchestration System - Structured vibe coding for Full Stack Development",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "chati": "bin/chati.js",
@@ -18,16 +18,18 @@
18
18
  "files": [
19
19
  "bin/",
20
20
  "src/",
21
- "assets/",
21
+ "assets/logo.txt",
22
22
  "framework/",
23
- "scripts/",
24
23
  "LICENSE",
25
24
  "TERMS_OF_USE.md"
26
25
  ],
27
26
  "scripts": {
28
27
  "start": "node bin/chati.js",
29
28
  "bundle": "node scripts/bundle-framework.js",
30
- "prepublishOnly": "node scripts/bundle-framework.js && node scripts/validate-package.js && node scripts/sign-manifest.js",
29
+ "sync": "node scripts/sync-framework.js",
30
+ "scan": "node scripts/scan-stale.js",
31
+ "install-to": "node scripts/install-to.js",
32
+ "prepublishOnly": "node scripts/sync-framework.js && node scripts/scan-stale.js && node scripts/validate-package.js && node scripts/sign-manifest.js",
31
33
  "test": "node --test test/**/*.test.js",
32
34
  "lint": "eslint src/ bin/",
33
35
  "lint:fix": "eslint src/ bin/ --fix"
@@ -68,6 +70,9 @@
68
70
  "engines": {
69
71
  "node": ">=20.0.0"
70
72
  },
73
+ "optionalDependencies": {
74
+ "playwright": "^1.50.0"
75
+ },
71
76
  "devDependencies": {
72
77
  "@eslint/js": "^10.0.1",
73
78
  "eslint": "^10.1.0",
@@ -18,6 +18,7 @@ export const GATE_RESULTS = {
18
18
  const GATE_THRESHOLDS = {
19
19
  'qa-planning': 95, // Highest — gates planning→build transition
20
20
  'qa-implementation': 95, // Gates build→deploy transition
21
+ 'qa-visual': 90, // Visual quality gate
21
22
  'brief': 90, // Requirements are critical
22
23
  'detail': 90,
23
24
  'architect': 90,
@@ -8,7 +8,7 @@
8
8
  * Constitution Article XVII — Execution Mode Governance.
9
9
  */
10
10
 
11
- import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'fs';
11
+ import { existsSync, readFileSync, writeFileSync, mkdirSync, unlinkSync } from 'fs';
12
12
  import { join, dirname } from 'path';
13
13
 
14
14
  // ---------------------------------------------------------------------------
@@ -281,7 +281,6 @@ export function getProgress(state) {
281
281
  export function clearBuildState(projectDir) {
282
282
  const statePath = join(projectDir, BUILD_STATE_FILE);
283
283
  if (existsSync(statePath)) {
284
- const { unlinkSync } = require('fs');
285
284
  unlinkSync(statePath);
286
285
  }
287
286
  }
@@ -160,7 +160,7 @@ export function calculateCompletion(pipelineState) {
160
160
  function getStageAgents(stage) {
161
161
  const stages = {
162
162
  DISCOVER: ['greenfield-wu', 'brownfield-wu', 'brief'],
163
- PLAN: ['detail', 'architect', 'ux', 'phases', 'tasks', 'qa-planning'],
163
+ PLAN: ['detail', 'architect', 'ux', 'phases', 'tasks'], // qa-planning runs inside Planning Team; score synced via team dissolution
164
164
  BUILD: ['dev', 'qa-implementation'],
165
165
  DEPLOY: ['devops'],
166
166
  };