chati-dev 4.2.2 → 4.3.1

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 (221) hide show
  1. package/README.md +80 -53
  2. package/bin/chati.js +170 -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 +158 -22
  6. package/framework/agents/discover/brownfield-wu.md +26 -14
  7. package/framework/agents/discover/greenfield-wu.md +102 -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 +38 -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 +448 -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 +441 -0
  59. package/framework/orchestrator/chati-update.md +40 -40
  60. package/framework/orchestrator/chati.md +295 -94
  61. package/framework/rules/human-writing-style.md +47 -0
  62. package/framework/scaffold/motion-premium/README.md +99 -0
  63. package/framework/scaffold/motion-premium/app/globals.css.template +400 -0
  64. package/framework/scaffold/motion-premium/app/layout.tsx.template +110 -0
  65. package/framework/scaffold/motion-premium/components/animation/BackgroundCrossfadeProvider.tsx.template +170 -0
  66. package/framework/scaffold/motion-premium/components/animation/LenisProvider.tsx.template +49 -0
  67. package/framework/scaffold/motion-premium/components/animation/PageTransitionWrapper.tsx.template +83 -0
  68. package/framework/scaffold/motion-premium/components/animation/Preloader.tsx.template +171 -0
  69. package/framework/scaffold/motion-premium/components/ui/Container.tsx.template +69 -0
  70. package/framework/scaffold/motion-premium/components/ui/PageSection.tsx.template +74 -0
  71. package/framework/scaffold/motion-premium/lib/animations/gsap.ts.template +112 -0
  72. package/framework/scaffold/motion-premium/lib/animations/refreshCoordinator.ts.template +75 -0
  73. package/framework/scaffold/motion-premium/lib/animations/tokens.ts.template +119 -0
  74. package/framework/scaffold/motion-premium/lib/animations/useGsapContext.ts.template +92 -0
  75. package/framework/scaffold/motion-premium/lib/animations/useScrollSnapStepper.ts.template +265 -0
  76. package/framework/scaffold/motion-premium/lib/animations/useSmoothScroll.ts.template +67 -0
  77. package/framework/scaffold/motion-premium/lib/brand.ts.template +43 -0
  78. package/framework/scaffold/motion-premium/scaffold.yaml +178 -0
  79. package/framework/scaffold/motion-premium-3d/README.md +90 -0
  80. package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/ScrollDemoCanvas.tsx.template +81 -0
  81. package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/ScrollDemoClient.tsx.template +75 -0
  82. package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/page.tsx.template +26 -0
  83. package/framework/scaffold/motion-premium-3d/components/3d/CameraRig.tsx.template +100 -0
  84. package/framework/scaffold/motion-premium-3d/components/3d/CanvasProvider.tsx.template +85 -0
  85. package/framework/scaffold/motion-premium-3d/components/3d/InvalidateOnScroll.tsx.template +51 -0
  86. package/framework/scaffold/motion-premium-3d/components/3d/MeshCrossfade.tsx.template +79 -0
  87. package/framework/scaffold/motion-premium-3d/components/3d/ScrollCrossfade.tsx.template +88 -0
  88. package/framework/scaffold/motion-premium-3d/components/3d/ScrollScene.tsx.template +121 -0
  89. package/framework/scaffold/motion-premium-3d/components/webgl/SceneFallback.tsx.template +65 -0
  90. package/framework/scaffold/motion-premium-3d/components/webgl/WebGLContext.tsx.template +68 -0
  91. package/framework/scaffold/motion-premium-3d/lib/webgl/detect.ts.template +69 -0
  92. package/framework/scaffold/motion-premium-3d/scaffold.yaml +136 -0
  93. package/framework/schemas/session.schema.json +109 -21
  94. package/framework/scripts/reference-capture.js +430 -0
  95. package/framework/scripts/visual-qa.js +686 -0
  96. package/framework/tasks/orchestrator-handoff.md +1 -1
  97. package/framework/tasks/orchestrator-resume.md +1 -1
  98. package/framework/tasks/orchestrator-route.md +1 -1
  99. package/framework/tasks/orchestrator-status.md +3 -3
  100. package/framework/tasks/qa-planning-gate-define.md +1 -1
  101. package/framework/templates/brandbook-html-tmpl.md +2 -2
  102. package/framework/templates/brandbook-tmpl.yaml +1 -1
  103. package/framework/templates/component-spec-tmpl.yaml +1 -1
  104. package/framework/templates/design-token-tmpl.yaml +1 -1
  105. package/framework/templates/icon-system-tmpl.yaml +1 -1
  106. package/framework/templates/team-planning-tasks.yaml +6 -5
  107. package/framework/workflows/brownfield-discovery.yaml +2 -2
  108. package/framework/workflows/brownfield-fullstack.yaml +15 -11
  109. package/framework/workflows/brownfield-service.yaml +14 -10
  110. package/framework/workflows/brownfield-ui.yaml +15 -11
  111. package/framework/workflows/greenfield-fullstack.yaml +16 -13
  112. package/framework/workflows/quick-flow.yaml +3 -3
  113. package/framework/workflows/standard-flow.yaml +12 -9
  114. package/package.json +12 -6
  115. package/src/autonomy/autonomous-gate.js +1 -0
  116. package/src/autonomy/build-state.js +1 -2
  117. package/src/autonomy/progress-reporter.js +1 -1
  118. package/src/config/agent-customizer.js +11 -3
  119. package/src/config/claude-settings-generator.js +27 -7
  120. package/src/config/context-file-generator.js +41 -21
  121. package/src/config/framework-adapter.js +1 -0
  122. package/src/config/gemini-hooks-generator.js +19 -7
  123. package/src/config/mcp-configs.js +1 -0
  124. package/src/context/layers/l1-global.js +2 -1
  125. package/src/dashboard/data-reader.js +4 -3
  126. package/src/dashboard/layout.js +2 -1
  127. package/src/decision/analyzer.js +6 -30
  128. package/src/decision/engine.js +4 -28
  129. package/src/decision/registry-healer.js +3 -2
  130. package/src/decision/registry-updater.js +23 -14
  131. package/src/extensions/loader.js +2 -8
  132. package/src/gates/g1-planning-complete.js +2 -1
  133. package/src/gates/g2-qa-planning.js +2 -1
  134. package/src/gates/g3-implementation.js +2 -1
  135. package/src/gates/g4-qa-implementation.js +3 -2
  136. package/src/gates/g5-deploy-ready.js +2 -1
  137. package/src/health/engine.js +4 -3
  138. package/src/installer/core.js +431 -81
  139. package/src/installer/preflight.js +131 -0
  140. package/src/installer/provider-overlay.js +3 -3
  141. package/src/installer/scaffold-applier.js +358 -0
  142. package/src/installer/templates.js +46 -29
  143. package/src/installer/validator.js +17 -12
  144. package/src/intelligence/registry-manager.js +22 -29
  145. package/src/intelligence/timeline.js +11 -6
  146. package/src/license/commands.js +1 -1
  147. package/src/license/wait.js +102 -0
  148. package/src/memory/agent-memory.js +81 -0
  149. package/src/memory/dream.js +32 -1
  150. package/src/merger/replace-merger.js +28 -15
  151. package/src/orchestrator/agent-selector.js +2 -1
  152. package/src/orchestrator/cli.js +1880 -71
  153. package/src/orchestrator/doctor.js +270 -0
  154. package/src/orchestrator/handoff-engine.js +4 -3
  155. package/src/orchestrator/index.js +2 -0
  156. package/src/orchestrator/pipeline-manager.js +306 -15
  157. package/src/orchestrator/session-manager.js +339 -6
  158. package/src/tasks/handoff.js +3 -2
  159. package/src/telemetry/config.js +4 -3
  160. package/src/telemetry/schema.js +1 -0
  161. package/src/terminal/collector.js +3 -2
  162. package/src/terminal/index.js +1 -2
  163. package/src/terminal/isolation.js +52 -18
  164. package/src/terminal/prompt-builder.js +42 -25
  165. package/src/terminal/run-parallel.js +1 -1
  166. package/src/terminal/run-team.js +3 -3
  167. package/src/terminal/team-task-list.js +43 -4
  168. package/src/upgrade/backup.js +3 -2
  169. package/src/upgrade/checker.js +3 -2
  170. package/src/upgrade/migrator.js +65 -7
  171. package/src/upgrade/tracked-files-detector.js +86 -0
  172. package/src/upgrade/user-messages.js +94 -0
  173. package/src/utils/config-parser.js +2 -1
  174. package/src/utils/feature-flags.js +2 -1
  175. package/src/utils/flatten-entities.js +69 -0
  176. package/src/utils/framework-dir.js +16 -0
  177. package/src/utils/model-id.js +85 -0
  178. package/src/utils/provider-limits.js +84 -23
  179. package/src/utils/schema-validator.js +1 -1
  180. package/src/wizard/i18n.js +5 -4
  181. package/src/wizard/index.js +14 -0
  182. package/assets/logo - c/303/263pia.png +0 -0
  183. package/assets/logo.svg +0 -42
  184. package/assets/logo2.png +0 -0
  185. package/assets/social-preview.png +0 -0
  186. package/scripts/bundle-framework.js +0 -69
  187. package/scripts/changelog-generator.js +0 -222
  188. package/scripts/codebase-mapper.js +0 -728
  189. package/scripts/commit-message-generator.js +0 -167
  190. package/scripts/coverage-analyzer.js +0 -260
  191. package/scripts/dependency-analyzer.js +0 -280
  192. package/scripts/doctor/checks/agents.js +0 -77
  193. package/scripts/doctor/checks/constitution.js +0 -41
  194. package/scripts/doctor/checks/domain-alignment.js +0 -58
  195. package/scripts/doctor/checks/prism-layers.js +0 -84
  196. package/scripts/doctor/checks/registry.js +0 -55
  197. package/scripts/doctor/checks/schemas.js +0 -61
  198. package/scripts/doctor/fixes/reference-fix.js +0 -100
  199. package/scripts/doctor/fixes/registry-fix.js +0 -56
  200. package/scripts/doctor/index.js +0 -212
  201. package/scripts/framework-analyzer.js +0 -308
  202. package/scripts/generate-constitution-domain.js +0 -253
  203. package/scripts/generate-signing-key.js +0 -33
  204. package/scripts/health-check.js +0 -481
  205. package/scripts/ide-sync.js +0 -326
  206. package/scripts/performance-analyzer.js +0 -325
  207. package/scripts/plan-tracker.js +0 -278
  208. package/scripts/populate-entity-registry.js +0 -481
  209. package/scripts/pr-review.js +0 -317
  210. package/scripts/rollback-manager.js +0 -310
  211. package/scripts/semantic-lint.js +0 -328
  212. package/scripts/sign-manifest.js +0 -53
  213. package/scripts/stuck-detector.js +0 -343
  214. package/scripts/test-quality-assessment.js +0 -257
  215. package/scripts/validate-agents.js +0 -368
  216. package/scripts/validate-package.js +0 -505
  217. package/scripts/validate-tasks.js +0 -465
  218. package/src/autonomy/worktree-manager.js +0 -250
  219. package/src/intelligence/decision-engine.js +0 -256
  220. package/src/intelligence/document-sharder.js +0 -221
  221. package/src/intelligence/elicitation.js +0 -265
@@ -19,18 +19,18 @@ import { join } from 'path';
19
19
  // Artifact scope per agent — defines which output paths each agent owns
20
20
  const AGENT_ARTIFACT_SCOPES = {
21
21
  detail: [
22
- 'chati.dev/artifacts/2-PRD/',
23
- 'chati.dev/artifacts/handoffs/detail-',
22
+ 'artifacts/2-PRD/',
23
+ 'artifacts/handoffs/detail-',
24
24
  'prd.md',
25
25
  ],
26
26
  architect: [
27
- 'chati.dev/artifacts/3-Architecture/',
28
- 'chati.dev/artifacts/handoffs/architect-',
27
+ 'artifacts/3-Architecture/',
28
+ 'artifacts/handoffs/architect-',
29
29
  'architecture.md',
30
30
  ],
31
31
  ux: [
32
- 'chati.dev/artifacts/4-UX/',
33
- 'chati.dev/artifacts/handoffs/ux-',
32
+ 'artifacts/4-UX/',
33
+ 'artifacts/handoffs/ux-',
34
34
  'ux-specification.md',
35
35
  'brandbook.md',
36
36
  'brandbook.html',
@@ -50,20 +50,27 @@ const AGENT_ARTIFACT_SCOPES = {
50
50
  'test/',
51
51
  'tests/',
52
52
  '__tests__/',
53
- 'chati.dev/artifacts/8-Implementation/',
54
- 'chati.dev/artifacts/handoffs/dev-',
53
+ 'artifacts/8-Implementation/',
54
+ 'artifacts/handoffs/dev-',
55
+ ],
56
+ 'qa-planning': [
57
+ 'artifacts/7-QA-Planning/',
58
+ 'artifacts/handoffs/qa-planning',
55
59
  ],
56
60
  'qa-implementation': [
57
- 'chati.dev/artifacts/9-QA-Implementation/',
58
- 'chati.dev/artifacts/handoffs/qa-implementation-',
61
+ 'artifacts/9-QA-Implementation/',
62
+ 'artifacts/handoffs/qa-implementation-',
63
+ ],
64
+ 'qa-visual': [
65
+ 'artifacts/handoffs/qa-visual',
59
66
  ],
60
67
  };
61
68
 
62
69
  // Shared paths any teammate can write to
63
70
  const SHARED_PATHS = [
64
71
  '.chati/',
65
- 'chati.dev/artifacts/handoffs/teams/',
66
- 'chati.dev/artifacts/decisions/',
72
+ 'artifacts/handoffs/teams/',
73
+ 'artifacts/decisions/',
67
74
  ];
68
75
 
69
76
  async function main() {
@@ -13,7 +13,7 @@
13
13
  * What gets sanitized:
14
14
  * - Agent names (greenfield-wu, brownfield-wu, qa-planning, etc.)
15
15
  * - Pipeline terminology (PRISM, L0-L5, deviation protocol)
16
- * - Internal paths (chati.dev/artifacts/, .chati/)
16
+ * - Internal paths (artifacts/, .chati/)
17
17
  * - Framework name references in generated code/commits
18
18
  * - Constitution/Article references
19
19
  * - Quality gate internals (adversarial review, devil's advocate)
@@ -44,6 +44,7 @@ const UNDERCOVER_RULES = [
44
44
  { pattern: /\bbrownfield-wu\b/gi, replacement: 'codebase analysis', category: 'agent' },
45
45
  { pattern: /\bqa-planning\b/gi, replacement: 'planning review', category: 'agent' },
46
46
  { pattern: /\bqa-implementation\b/gi, replacement: 'code review', category: 'agent' },
47
+ { pattern: /\bqa-visual\b/gi, replacement: 'visual review', category: 'agent' },
47
48
  { pattern: /\bdevops agent\b/gi, replacement: 'deployment', category: 'agent' },
48
49
  { pattern: /\bdev agent\b/gi, replacement: 'implementation', category: 'agent' },
49
50
  { pattern: /\bbrief agent\b/gi, replacement: 'requirements analysis', category: 'agent' },
@@ -110,7 +111,8 @@ function isExemptPath(filePath, projectDir) {
110
111
  */
111
112
  function isUndercoverEnabled(projectDir) {
112
113
  try {
113
- const configPath = join(projectDir, 'chati.dev', 'config.yaml');
114
+ const fwDir = existsSync(join(projectDir, '.chati.dev')) ? '.chati.dev' : 'chati.dev';
115
+ const configPath = join(projectDir, fwDir, 'config.yaml');
114
116
  if (!existsSync(configPath)) return true;
115
117
  const raw = readFileSync(configPath, 'utf-8');
116
118
  const match = raw.match(/^\s*undercover_mode:\s*(false|no|off|0)/mi);
@@ -31,7 +31,7 @@ installer:
31
31
  agents_count: "Agent definitions across DISCOVER, PLAN, BUILD, DEPLOY phases"
32
32
  workflows_count: "7 workflow blueprints"
33
33
  templates_count: "10 templates (PRD, Brownfield PRD, Architecture, Task, QA Gate, Quick Brief, Brandbook, Design Tokens, Component Spec, Icon System)"
34
- constitution: "Constitution (19 Articles + Preamble)"
34
+ constitution: "Constitution (23 Articles + Preamble)"
35
35
  session_mgmt: "Session management system"
36
36
  quality_gates: "Quality gates (3-tier verdicts)"
37
37
  proceed: "Proceed with installation?"
@@ -39,7 +39,7 @@ installer:
39
39
  created_chati: "Created .chati/ session directory"
40
40
  created_framework: "Created chati.dev/ system directory (agents, templates, workflows)"
41
41
  created_commands: "Created .claude/commands/ (thin router)"
42
- installed_constitution: "Installed Constitution (Articles I-XIX)"
42
+ installed_constitution: "Installed Constitution (Articles I-XXIII)"
43
43
  created_session: "Created session.yaml schema"
44
44
  created_claude_md: "Created CLAUDE.md"
45
45
  configured_mcps: "Configured MCPs:"
@@ -47,7 +47,7 @@ installer:
47
47
  agents_valid: "All agents implement 8 protocols"
48
48
  handoff_ok: "Handoff protocol: OK"
49
49
  validation_ok: "Self-validation criteria: OK"
50
- constitution_ok: "Constitution: 19 articles verified"
50
+ constitution_ok: "Constitution: 23 articles verified"
51
51
  created_memories: "Created .chati/memories/ (Memory Layer)"
52
52
  installed_intelligence: "Installed Intelligence Layer (Context Engine, Memory, Registry)"
53
53
  intelligence_valid: "Intelligence: 6 spec files verified"
@@ -31,7 +31,7 @@ installer:
31
31
  agents_count: "Definiciones de agentes en las fases DISCOVER, PLAN, BUILD, DEPLOY"
32
32
  workflows_count: "7 blueprints de workflow"
33
33
  templates_count: "10 templates (PRD, PRD Brownfield, Arquitectura, Task, QA Gate, Quick Brief, Brandbook, Design Tokens, Component Spec, Icon System)"
34
- constitution: "Constitucion (19 Articulos + Preambulo)"
34
+ constitution: "Constitucion (22 Articulos + Preambulo)"
35
35
  session_mgmt: "Sistema de gestion de sesion"
36
36
  quality_gates: "Quality gates (veredictos en 3 niveles)"
37
37
  proceed: "Proceder con la instalacion?"
@@ -39,7 +39,7 @@ installer:
39
39
  created_chati: "Creado directorio de sesion .chati/"
40
40
  created_framework: "Creado directorio del sistema chati.dev/ (agentes, templates, workflows)"
41
41
  created_commands: "Creado .claude/commands/ (enrutador)"
42
- installed_constitution: "Instalada Constitucion (Articulos I-XIX)"
42
+ installed_constitution: "Instalada Constitucion (Artículos I-XXIII)"
43
43
  created_session: "Creado schema session.yaml"
44
44
  created_claude_md: "Creado CLAUDE.md"
45
45
  configured_mcps: "MCPs configurados:"
@@ -47,7 +47,7 @@ installer:
47
47
  agents_valid: "Todos los agentes implementan 8 protocolos"
48
48
  handoff_ok: "Protocolo de handoff: OK"
49
49
  validation_ok: "Criterios de auto-validacion: OK"
50
- constitution_ok: "Constitucion: 19 articulos verificados"
50
+ constitution_ok: "Constitucion: 22 articulos verificados"
51
51
  created_memories: "Creado .chati/memories/ (Memory Layer)"
52
52
  installed_intelligence: "Instalada Intelligence Layer (Context Engine, Memory, Registry)"
53
53
  intelligence_valid: "Intelligence: 6 archivos de spec verificados"
@@ -31,7 +31,7 @@ installer:
31
31
  agents_count: "Definitions d'agents dans les phases DISCOVER, PLAN, BUILD, DEPLOY"
32
32
  workflows_count: "7 blueprints de workflow"
33
33
  templates_count: "10 templates (PRD, PRD Brownfield, Architecture, Task, QA Gate, Quick Brief, Brandbook, Design Tokens, Component Spec, Icon System)"
34
- constitution: "Constitution (19 Articles + Preambule)"
34
+ constitution: "Constitution (23 Articles + Preambule)"
35
35
  session_mgmt: "Systeme de gestion de session"
36
36
  quality_gates: "Quality gates (verdicts en 3 niveaux)"
37
37
  proceed: "Proceder a l'installation?"
@@ -39,7 +39,7 @@ installer:
39
39
  created_chati: "Cree le repertoire de session .chati/"
40
40
  created_framework: "Cree le repertoire du systeme chati.dev/ (agents, templates, workflows)"
41
41
  created_commands: "Cree .claude/commands/ (routeur)"
42
- installed_constitution: "Installee la Constitution (Articles I-XIX)"
42
+ installed_constitution: "Installee la Constitution (Articles I-XXIII)"
43
43
  created_session: "Cree le schema session.yaml"
44
44
  created_claude_md: "Cree CLAUDE.md"
45
45
  configured_mcps: "MCPs configures:"
@@ -47,7 +47,7 @@ installer:
47
47
  agents_valid: "Tous les agents implementent 8 protocoles"
48
48
  handoff_ok: "Protocole de passation: OK"
49
49
  validation_ok: "Criteres d'auto-validation: OK"
50
- constitution_ok: "Constitution: 19 articles verifies"
50
+ constitution_ok: "Constitution: 23 articles verifies"
51
51
  created_memories: "Cree .chati/memories/ (Memory Layer)"
52
52
  installed_intelligence: "Installee Intelligence Layer (Context Engine, Memory, Registry)"
53
53
  intelligence_valid: "Intelligence: 6 fichiers de spec verifies"
@@ -31,7 +31,7 @@ installer:
31
31
  agents_count: "Definicoes de agentes nas fases DISCOVER, PLAN, BUILD, DEPLOY"
32
32
  workflows_count: "7 blueprints de workflow"
33
33
  templates_count: "10 templates (PRD, PRD Brownfield, Arquitetura, Task, QA Gate, Quick Brief, Brandbook, Design Tokens, Component Spec, Icon System)"
34
- constitution: "Constituicao (19 Artigos + Preambulo)"
34
+ constitution: "Constituicao (22 Artigos + Preambulo)"
35
35
  session_mgmt: "Sistema de gerenciamento de sessao"
36
36
  quality_gates: "Quality gates (veredictos em 3 niveis)"
37
37
  proceed: "Prosseguir com a instalacao?"
@@ -39,7 +39,7 @@ installer:
39
39
  created_chati: "Criado diretorio de sessao .chati/"
40
40
  created_framework: "Criado diretorio do sistema chati.dev/ (agentes, templates, workflows)"
41
41
  created_commands: "Criado .claude/commands/ (roteador)"
42
- installed_constitution: "Instalada Constituicao (Artigos I-XIX)"
42
+ installed_constitution: "Instalada Constituicao (Artigos I-XXIII)"
43
43
  created_session: "Criado schema session.yaml"
44
44
  created_claude_md: "Criado CLAUDE.md"
45
45
  configured_mcps: "MCPs configurados:"
@@ -47,7 +47,7 @@ installer:
47
47
  agents_valid: "Todos os agentes implementam 8 protocolos"
48
48
  handoff_ok: "Protocolo de handoff: OK"
49
49
  validation_ok: "Criterios de auto-validacao: OK"
50
- constitution_ok: "Constituicao: 19 artigos verificados"
50
+ constitution_ok: "Constituicao: 22 artigos verificados"
51
51
  created_memories: "Criado .chati/memories/ (Memory Layer)"
52
52
  installed_intelligence: "Instalada Intelligence Layer (Context Engine, Memory, Registry)"
53
53
  intelligence_valid: "Intelligence: 6 arquivos de spec verificados"
@@ -33,7 +33,7 @@ The orchestrator injects context through 6 hierarchical layers:
33
33
 
34
34
  | Layer | Name | Source | When Active |
35
35
  |-------|------|--------|-------------|
36
- | **L0** | Constitution | `chati.dev/constitution.md` (Articles I-XIX) | ALWAYS (non-negotiable) |
36
+ | **L0** | Constitution | `chati.dev/constitution.md` (Articles I-XXIII) | ALWAYS (non-negotiable) |
37
37
  | **L1** | Mode + Global | `config.yaml` + mode governance (planning/build/deploy) | ALWAYS |
38
38
  | **L2** | Agent Scope | `chati.dev/agents/{agent}/` — mission, inputs, outputs, criteria | When agent is active |
39
39
  | **L3** | Pipeline State | `.chati/session.yaml` — pipeline position, scores, backlog | When session is active |
@@ -60,7 +60,7 @@ The orchestrator produces a structured XML block injected into agent prompts:
60
60
  ```xml
61
61
  <chati-context bracket="MODERATE">
62
62
  <constitution>
63
- Articles I-XIX governing agent behavior.
63
+ Articles I-XXIII governing agent behavior.
64
64
  Key: Self-validation required. Loop until quality threshold.
65
65
  Guided options (1,2,3). Persistent session state.
66
66
  Two-layer handoff. Language protocol. Deviation protocol.
@@ -77,8 +77,7 @@ The orchestrator produces a structured XML block injected into agent prompts:
77
77
  </agent>
78
78
 
79
79
  <pipeline>
80
- WU(100%) -> Brief(in_progress, 45%) -> Detail(pending) -> Architect(pending)
81
- -> UX(pending) -> Phases(pending) -> Tasks(pending) -> QA-Planning(pending)
80
+ WU(100%) -> Brief(in_progress, 45%) -> [Planning Team: Detail+Architect+UX+QA-Planning](pending) -> Phases(pending) -> Tasks(pending)
82
81
  </pipeline>
83
82
 
84
83
  <task>Phase 2: Core Requirements Elicitation</task>
@@ -186,7 +185,7 @@ Memory injection follows the same progressive reinforcement principle: as contex
186
185
 
187
186
  ---
188
187
 
189
- *Context Engine v4.0 — Chati.dev Intelligence Layer (Progressive Reinforcement Model)*
188
+ *Context Engine v4.3.0 — Chati.dev Intelligence Layer (Progressive Reinforcement Model)*
190
189
 
191
190
  ---
192
191
 
@@ -96,7 +96,7 @@ npx chati-dev health
96
96
  Checks:
97
97
  1. All registered entities exist on disk
98
98
  2. Schema files are valid JSON
99
- 3. Constitution has >= 19 articles
99
+ 3. Constitution has >= 23 articles
100
100
  4. Agents contain required protocol references
101
101
  5. Entity count matches actual file count
102
102
  6. Checksums match (if calculated)
@@ -16,7 +16,7 @@ Claude Code spawns each hook as a child process, waits for JSON output, then pro
16
16
  | PreCompact | `.*` | session-digest.js | Session state capture + auto-dream + daily digest |
17
17
  | PreToolUse | `Read` | read-protection.js | Block reading sensitive files |
18
18
  | PreToolUse | `Write\|Edit` | mode-governance.js | Write scope enforcement by phase |
19
- | PreToolUse | `Write\|Edit` | constitution-guard.js | Secret detection + 23 shell injection checks |
19
+ | PreToolUse | `Write\|Edit` | constitution-guard.js | Secret detection + 21 shell injection checks |
20
20
  | PreToolUse | `Write\|Edit` | undercover-guard.js | Sanitize framework terms from deliverables |
21
21
  | PreToolUse | `Write\|Edit` | style-guard.js | Em-dash and emoji enforcement |
22
22
  | PreToolUse | `Bash` | constitution-guard.js | Destructive command + shell injection checks |
@@ -31,7 +31,7 @@ Claude Code spawns each hook as a child process, waits for JSON output, then pro
31
31
  | PreCompact | 1 | ~50-200ms | Runs rarely (context compaction). Auto-dream may add 5-10s if triggered |
32
32
  | PreToolUse (Read) | 1 | ~30ms | Minimal overhead per file read |
33
33
  | PreToolUse (Write/Edit) | 4 | ~200ms | Heaviest path. 4 sequential hooks |
34
- | PreToolUse (Bash) | 3 | ~150ms | 23 regex checks in constitution-guard are negligible (<5ms) |
34
+ | PreToolUse (Bash) | 3 | ~150ms | 21 regex checks in constitution-guard are negligible (<5ms) |
35
35
 
36
36
  ## Performance Characteristics
37
37
 
@@ -42,7 +42,7 @@ Claude Code spawns each hook as a child process, waits for JSON output, then pro
42
42
 
43
43
  ## Optimization Notes
44
44
 
45
- 1. constitution-guard's 23 shell injection regex checks run in <5ms total (all patterns compiled once)
45
+ 1. constitution-guard's 21 shell injection regex checks run in <5ms total (all patterns compiled once)
46
46
  2. undercover-guard and style-guard could be skipped in discover/plan phases (no code being written)
47
47
  3. If latency becomes noticeable, consider merging undercover-guard + style-guard into one hook (same event, similar logic)
48
48
  4. license-guard has a 5-minute ping throttle to avoid network latency on every message
@@ -45,4 +45,4 @@ notes: |
45
45
  - Every migration is idempotent (safe to run multiple times)
46
46
  - Backup is created BEFORE any migration
47
47
  - Automatic rollback on failure
48
- - User artifacts (chati.dev/artifacts/, chati.dev/intelligence/) are NEVER modified
48
+ - User artifacts (artifacts/, chati.dev/intelligence/) are NEVER modified
@@ -34,17 +34,17 @@ operations:
34
34
  - .chati/checkpoints
35
35
  - .chati/decisions
36
36
  - chati.dev/data
37
- - chati.dev/artifacts/0-WU
38
- - chati.dev/artifacts/1-Brief
39
- - chati.dev/artifacts/2-PRD
40
- - chati.dev/artifacts/3-Architecture
41
- - chati.dev/artifacts/4-UX
42
- - chati.dev/artifacts/5-Phases
43
- - chati.dev/artifacts/6-Tasks
44
- - chati.dev/artifacts/7-QA-Planning
45
- - chati.dev/artifacts/8-QA-Impl
46
- - chati.dev/artifacts/9-Deploy
47
- - chati.dev/artifacts/handoffs
37
+ - artifacts/0-WU
38
+ - artifacts/1-Brief
39
+ - artifacts/2-PRD
40
+ - artifacts/3-Architecture
41
+ - artifacts/4-UX
42
+ - artifacts/5-Phases
43
+ - artifacts/6-Tasks
44
+ - artifacts/7-QA-Planning
45
+ - artifacts/8-QA-Impl
46
+ - artifacts/9-Deploy
47
+ - artifacts/handoffs
48
48
 
49
49
  # 2. Create agent memory directories
50
50
  - type: create_directory
@@ -17,8 +17,8 @@ preconditions:
17
17
  version: "4.0.0"
18
18
  message: "Requires chati.dev v4.0.0 or later"
19
19
  - type: constitution_articles
20
- count: 19
21
- message: "Requires Constitution with 19 Articles"
20
+ count: 22
21
+ message: "Requires Constitution with 22 Articles"
22
22
 
23
23
  backup:
24
24
  directories:
@@ -0,0 +1,29 @@
1
+ migration:
2
+ from: "4.2.0"
3
+ to: "4.3.0"
4
+ description: "Framework/user separation hardening: comprehensive .gitignore, tracked-file detection, runtime boundary fixes"
5
+ breaking: false
6
+
7
+ # This migration ensures users upgrading from any v4.2.x to v4.3.0 get:
8
+ # 1. The new comprehensive .gitignore (covers .chati.dev/, .chati/, providers, etc.)
9
+ # 2. Detection + warning if framework files are already tracked in git
10
+ # 3. New 4.3.0 runtime boundary fixes (delivered via copyFrameworkFiles, this is a no-op step)
11
+ #
12
+ # Step types `update_gitignore` and `warn_tracked_files` are introduced in 4.3.0
13
+ # and require src/upgrade/migrator.js >= the corresponding feature.
14
+
15
+ steps:
16
+ # Step 1: Update .gitignore to the comprehensive 4.3.0 template.
17
+ # Idempotent: detects old marker (pre-4.3.0) and replaces; detects new marker and replaces.
18
+ # Merges with user's existing .gitignore (does not overwrite user content outside the chati block).
19
+ - type: update_gitignore
20
+ description: "Replace minimal pre-4.3.0 .gitignore block with comprehensive framework exclusions"
21
+
22
+ # Step 2: Detect framework files already tracked in git history (pre-4.3.0 leaks).
23
+ # Non-blocking: prints a warning with exact `git rm --cached` commands.
24
+ # User decides when/whether to clean up history.
25
+ - type: warn_tracked_files
26
+ description: "Warn if framework files were committed before .gitignore was fixed"
27
+
28
+ # Validation: nothing critical to verify (gitignore content is variable per user).
29
+ # The warn_tracked_files step itself acts as observability.