aios-core 4.0.4 → 4.2.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 (107) hide show
  1. package/.aios-core/cli/commands/migrate/analyze.js +6 -6
  2. package/.aios-core/cli/commands/migrate/backup.js +2 -2
  3. package/.aios-core/cli/commands/migrate/execute.js +4 -4
  4. package/.aios-core/cli/commands/migrate/index.js +5 -5
  5. package/.aios-core/cli/commands/migrate/rollback.js +6 -6
  6. package/.aios-core/cli/commands/migrate/update-imports.js +2 -2
  7. package/.aios-core/cli/commands/migrate/validate.js +2 -2
  8. package/.aios-core/cli/commands/pro/index.js +52 -0
  9. package/.aios-core/cli/index.js +1 -1
  10. package/.aios-core/core/ids/registry-updater.js +29 -3
  11. package/.aios-core/core/migration/migration-config.yaml +2 -2
  12. package/.aios-core/core/migration/module-mapping.yaml +2 -2
  13. package/.aios-core/core/registry/README.md +2 -2
  14. package/.aios-core/core/synapse/context/context-builder.js +34 -0
  15. package/.aios-core/core/synapse/diagnostics/collectors/consistency-collector.js +168 -0
  16. package/.aios-core/core/synapse/diagnostics/collectors/hook-collector.js +129 -0
  17. package/.aios-core/core/synapse/diagnostics/collectors/manifest-collector.js +82 -0
  18. package/.aios-core/core/synapse/diagnostics/collectors/output-analyzer.js +134 -0
  19. package/.aios-core/core/synapse/diagnostics/collectors/pipeline-collector.js +75 -0
  20. package/.aios-core/core/synapse/diagnostics/collectors/quality-collector.js +252 -0
  21. package/.aios-core/core/synapse/diagnostics/collectors/relevance-matrix.js +174 -0
  22. package/.aios-core/core/synapse/diagnostics/collectors/safe-read-json.js +31 -0
  23. package/.aios-core/core/synapse/diagnostics/collectors/session-collector.js +102 -0
  24. package/.aios-core/core/synapse/diagnostics/collectors/timing-collector.js +126 -0
  25. package/.aios-core/core/synapse/diagnostics/collectors/uap-collector.js +83 -0
  26. package/.aios-core/core/synapse/diagnostics/report-formatter.js +484 -0
  27. package/.aios-core/core/synapse/diagnostics/synapse-diagnostics.js +95 -0
  28. package/.aios-core/core/synapse/engine.js +73 -20
  29. package/.aios-core/core/synapse/runtime/hook-runtime.js +60 -0
  30. package/.aios-core/core-config.yaml +6 -0
  31. package/.aios-core/data/agent-config-requirements.yaml +2 -2
  32. package/.aios-core/data/aios-kb.md +4 -4
  33. package/.aios-core/data/entity-registry.yaml +210 -10
  34. package/.aios-core/data/registry-update-log.jsonl +52 -0
  35. package/.aios-core/development/agents/architect.md +10 -10
  36. package/.aios-core/development/agents/devops.md +93 -50
  37. package/.aios-core/development/agents/qa.md +94 -40
  38. package/.aios-core/development/agents/ux-design-expert.md +25 -25
  39. package/.aios-core/development/scripts/activation-runtime.js +63 -0
  40. package/.aios-core/development/scripts/generate-greeting.js +9 -8
  41. package/.aios-core/development/scripts/unified-activation-pipeline.js +102 -2
  42. package/.aios-core/development/tasks/{db-expansion-pack-integration.md → db-squad-integration.md} +5 -5
  43. package/.aios-core/development/tasks/{integrate-expansion-pack.md → integrate-squad.md} +2 -2
  44. package/.aios-core/development/tasks/next.md +3 -3
  45. package/.aios-core/development/tasks/pr-automation.md +2 -2
  46. package/.aios-core/development/tasks/publish-npm.md +257 -0
  47. package/.aios-core/development/tasks/release-management.md +4 -4
  48. package/.aios-core/development/tasks/setup-github.md +1 -1
  49. package/.aios-core/development/tasks/squad-creator-migrate.md +1 -1
  50. package/.aios-core/development/tasks/squad-creator-sync-ide-command.md +14 -14
  51. package/.aios-core/development/tasks/update-aios.md +1 -1
  52. package/.aios-core/development/tasks/validate-next-story.md +99 -2
  53. package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-QUICK-REFERENCE.md +1 -1
  54. package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-V2.1.md +5 -5
  55. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md +21 -21
  56. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.2-SUMMARY.md +25 -25
  57. package/.aios-core/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +4 -4
  58. package/.aios-core/docs/standards/QUALITY-GATES-SPECIFICATION.md +3 -3
  59. package/.aios-core/docs/standards/STANDARDS-INDEX.md +13 -13
  60. package/.aios-core/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +1 -1
  61. package/.aios-core/framework-config.yaml +4 -0
  62. package/.aios-core/infrastructure/scripts/codex-skills-sync/index.js +182 -0
  63. package/.aios-core/infrastructure/scripts/codex-skills-sync/validate.js +172 -0
  64. package/.aios-core/infrastructure/scripts/ide-sync/README.md +14 -0
  65. package/.aios-core/infrastructure/scripts/ide-sync/index.js +6 -0
  66. package/.aios-core/infrastructure/scripts/tool-resolver.js +4 -4
  67. package/.aios-core/infrastructure/scripts/validate-paths.js +142 -0
  68. package/.aios-core/infrastructure/templates/aios-sync.yaml.template +11 -11
  69. package/.aios-core/infrastructure/templates/github-workflows/README.md +1 -1
  70. package/.aios-core/install-manifest.yaml +193 -109
  71. package/.aios-core/local-config.yaml.template +2 -0
  72. package/.aios-core/manifests/agents.csv +29 -1
  73. package/.aios-core/manifests/tasks.csv +80 -3
  74. package/.aios-core/product/README.md +2 -2
  75. package/.aios-core/product/data/integration-patterns.md +1 -1
  76. package/.aios-core/product/templates/ide-rules/cline-rules.md +1 -1
  77. package/.aios-core/product/templates/ide-rules/codex-rules.md +65 -0
  78. package/.aios-core/product/templates/ide-rules/copilot-rules.md +1 -1
  79. package/.aios-core/product/templates/ide-rules/roo-rules.md +1 -1
  80. package/.aios-core/user-guide.md +15 -14
  81. package/.aios-core/workflow-intelligence/engine/output-formatter.js +1 -1
  82. package/.claude/hooks/synapse-engine.js +9 -20
  83. package/README.md +14 -7
  84. package/bin/aios-init.js +255 -184
  85. package/bin/aios-minimal.js +2 -2
  86. package/bin/aios.js +4 -4
  87. package/package.json +6 -1
  88. package/packages/aios-pro-cli/bin/aios-pro.js +75 -2
  89. package/packages/aios-pro-cli/package.json +5 -1
  90. package/packages/aios-pro-cli/src/recover.js +100 -0
  91. package/packages/installer/src/__tests__/performance-benchmark.js +382 -0
  92. package/packages/installer/src/config/ide-configs.js +12 -1
  93. package/packages/installer/src/config/templates/core-config-template.js +2 -2
  94. package/packages/installer/src/installer/aios-core-installer.js +2 -2
  95. package/packages/installer/src/installer/file-hasher.js +97 -0
  96. package/packages/installer/src/installer/post-install-validator.js +41 -1
  97. package/packages/installer/src/pro/pro-scaffolder.js +335 -0
  98. package/packages/installer/src/utils/aios-colors.js +2 -2
  99. package/packages/installer/src/wizard/feedback.js +1 -1
  100. package/packages/installer/src/wizard/ide-config-generator.js +2 -2
  101. package/packages/installer/src/wizard/index.js +58 -19
  102. package/packages/installer/src/wizard/pro-setup.js +931 -0
  103. package/packages/installer/src/wizard/questions.js +20 -14
  104. package/packages/installer/src/wizard/validators.js +1 -1
  105. package/scripts/code-intel-health-check.js +343 -0
  106. package/scripts/package-synapse.js +323 -0
  107. package/scripts/validate-package-completeness.js +317 -0
@@ -190,13 +190,24 @@ token_usage: ~3,000-10,000 tokens
190
190
 
191
191
  ```yaml
192
192
  story: N/A
193
- version: 1.0.0
193
+ version: 2.0.0
194
194
  dependencies:
195
195
  - N/A
196
196
  tags:
197
197
  - automation
198
198
  - workflow
199
- updated_at: 2025-11-17
199
+ - self-healing
200
+ - auto-fix
201
+ updated_at: 2026-02-15
202
+ changelog:
203
+ - version: 2.0.0
204
+ date: 2026-02-15
205
+ author: "@po (Pax)"
206
+ change: "Added Step 12: Auto-Fix and Re-Validate loop — fixes template compliance, CodeRabbit, Dev Notes, Testing, Risks, and task AC mapping automatically"
207
+ - version: 1.0.0
208
+ date: 2025-11-17
209
+ author: "original"
210
+ change: "Initial validate-next-story task (report-only, no auto-fix)"
200
211
  ```
201
212
 
202
213
  ---
@@ -452,4 +463,90 @@ Provide a structured validation report including:
452
463
  - **NO-GO**: Story requires fixes before implementation
453
464
  - **Implementation Readiness Score**: 1-10 scale
454
465
  - **Confidence Level**: High/Medium/Low for successful implementation
466
+
467
+ ### 12. Auto-Fix and Re-Validate (Self-Healing Loop)
468
+
469
+ **Purpose:** Automatically fix all fixable issues found during validation instead of just reporting them. This eliminates the manual round-trip of validate → report → fix → re-validate.
470
+
471
+ **EXECUTION RULES:**
472
+
473
+ ```yaml
474
+ auto_fix:
475
+ enabled: true
476
+ max_iterations: 2
477
+ fixable_categories:
478
+ - template_compliance # Missing sections from story template
479
+ - executor_assignment # Missing or incorrect executor/quality_gate fields
480
+ - story_format # Missing "As a / I want / So that"
481
+ - coderabbit_section # Missing or incomplete CodeRabbit Integration
482
+ - dev_notes # Missing Dev Notes, Source Tree, Testing
483
+ - task_ac_mapping # Tasks without AC references
484
+ - risks_section # Missing Risks section
485
+ - placeholder_sections # Missing Dev Agent Record, QA Results placeholders
486
+ non_fixable_categories:
487
+ - anti_hallucination # Requires human verification
488
+ - business_logic # Requires PO decision
489
+ - scope_changes # Requires stakeholder approval
490
+ ```
491
+
492
+ **SEQUENTIAL AUTO-FIX PROCEDURE:**
493
+
494
+ 1. **Classify issues** from Step 11 report:
495
+ - `FIXABLE`: Template compliance, missing sections, structural issues
496
+ - `NON-FIXABLE`: Business logic, scope, anti-hallucination findings
497
+
498
+ 2. **IF fixable issues exist AND iteration < max_iterations:**
499
+
500
+ a. **Template Compliance Fixes:**
501
+ - Missing Executor Assignment → Infer from story Agent field and Work Type mapping (Step 1.1 table)
502
+ - Missing Story format → Generate from Description section (extract role, action, benefit)
503
+ - Missing Dev Notes → Generate from Technical Notes, File List, and epic context
504
+ - Missing Testing section → Generate from Acceptance Criteria (derive test scenarios)
505
+ - Missing Risks section → Generate from Description and Scope (identify common risk patterns)
506
+ - Missing placeholder sections (Dev Agent Record, QA Results) → Add standard placeholders
507
+
508
+ b. **CodeRabbit Integration Fixes (if `coderabbit_integration.enabled: true`):**
509
+ - Missing section → Generate from story type analysis:
510
+ - Infer Primary Type from Description keywords
511
+ - Assign agents from Work Type mapping
512
+ - Add Quality Gate checkboxes (Pre-Commit always, Pre-PR if applicable)
513
+ - Add Self-Healing config based on primary agent
514
+ - Add Focus Areas based on story type
515
+
516
+ c. **Task Enhancement Fixes:**
517
+ - Missing AC references → Map tasks to ACs by content matching
518
+ - Missing subtasks → Break down vague tasks into specific subtasks
519
+ - Add edge case scenarios to ACs if obvious gaps found
520
+
521
+ d. **Nice-to-Have Improvements:**
522
+ - Add external dependency links (GitHub, npm) if referenced in Technical Notes
523
+ - Expand Scope IN/OUT if implicit from Description
524
+
525
+ 3. **Apply all fixes** to the story file using Edit tool
526
+
527
+ 4. **Re-validate** (run Steps 1-11 again on fixed story)
528
+
529
+ 5. **IF still NO-GO after max_iterations:**
530
+ - Report remaining NON-FIXABLE issues
531
+ - List what was auto-fixed vs what needs human decision
532
+ - HALT for user input
533
+
534
+ 6. **IF GO after fixes:**
535
+ - Update story Status from `Draft` to `Ready`
536
+ - Log transition in Change Log: `"Status: Draft → Ready (validation GO {score}/10, auto-fixed {N} issues)"`
537
+ - Report summary of all fixes applied
538
+
539
+ **AUTO-FIX CHANGE LOG FORMAT:**
540
+ ```markdown
541
+ | {date} | @po (Pax) | v{N} — Auto-fix: {comma-separated list of fixes applied} |
542
+ | {date} | @po (Pax) | Status: Draft → Ready (validation GO {score}/10) |
543
+ ```
544
+
545
+ **IMPORTANT CONSTRAINTS:**
546
+ - NEVER change Acceptance Criteria content (only add missing edge cases as new ACs)
547
+ - NEVER change Description or Problem/Solution
548
+ - NEVER change Scope IN/OUT boundaries
549
+ - NEVER change Points or Priority
550
+ - NEVER invent technical details not present in epic/PRD context
551
+ - All generated content MUST be traceable to existing story content or epic context
455
552
 
@@ -68,7 +68,7 @@ console.log(status.tip('Press Enter to continue'));
68
68
 
69
69
  ### Welcome Screen
70
70
  ```javascript
71
- console.log(headings.h1('🎉 Welcome to AIOS v2.1 Installer!'));
71
+ console.log(headings.h1('🎉 Welcome to AIOS v4.0.4 Installer!'));
72
72
  console.log(colors.info('Let\'s configure your project...\n'));
73
73
  ```
74
74
 
@@ -1,4 +1,4 @@
1
- # AIOS Color Palette v2.1
1
+ # AIOS Color Palette v4.0.4
2
2
 
3
3
  **Version:** 2.1.0
4
4
  **Created:** 2025-01-20
@@ -66,7 +66,7 @@ For special effects, animations, and branding moments:
66
66
  ```javascript
67
67
  const chalk = require('chalk');
68
68
 
69
- // AIOS Color Palette v2.1
69
+ // AIOS Color Palette v4.0.4
70
70
  const colors = {
71
71
  // Core Brand Colors
72
72
  primary: chalk.hex('#8B5CF6'), // ClickUp-inspired purple
@@ -162,7 +162,7 @@ module.exports = {
162
162
  - Example: Welcome screens, major section headers
163
163
 
164
164
  ```javascript
165
- console.log(colors.brandPrimary('🎉 AIOS v2.1 Installer'));
165
+ console.log(colors.brandPrimary('🎉 AIOS v4.0.4 Installer'));
166
166
  ```
167
167
 
168
168
  **Level 2: Primary Content**
@@ -193,7 +193,7 @@ console.log(colors.info('💡 Tip: You can change this later'));
193
193
  **Installer & Wizards:**
194
194
  ```javascript
195
195
  // Welcome
196
- console.log(colors.brandPrimary('\n🎉 Welcome to AIOS v2.1\n'));
196
+ console.log(colors.brandPrimary('\n🎉 Welcome to AIOS v4.0.4\n'));
197
197
  console.log(colors.info('Let\'s get your project set up...\n'));
198
198
 
199
199
  // Questions
@@ -341,7 +341,7 @@ For future design system integration:
341
341
  ## 🔗 Related Documents
342
342
 
343
343
  - [AIOS-LIVRO-DE-OURO-V2.1](./AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md) - Complete AIOS standards
344
- - [Story 1.2](../stories/v2.1/sprint-1/story-1.2-interactive-wizard-foundation.md) - Interactive Wizard (first implementation)
344
+ - [Story 1.2](../stories/v4.0.4/sprint-1/story-1.2-interactive-wizard-foundation.md) - Interactive Wizard (first implementation)
345
345
  - [ClickUp Brand Guidelines](https://clickup.com/brand) - Primary color reference
346
346
 
347
347
  ---
@@ -1,4 +1,4 @@
1
- # AIOS Framework - Livro de Ouro v2.1 (Complete)
1
+ # AIOS Framework - Livro de Ouro v4.0.4 (Complete)
2
2
 
3
3
  ## O Sistema Operacional Definitivo para Orquestração de Agentes IA
4
4
 
@@ -17,7 +17,7 @@
17
17
 
18
18
  ## 📣 IMPORTANTE: Sobre Este Documento
19
19
 
20
- Este documento é a **versão consolidada v2.1** que incorpora todas as mudanças dos Sprints 2-5:
20
+ Este documento é a **versão consolidada v4.0.4** que incorpora todas as mudanças dos Sprints 2-5:
21
21
 
22
22
  - ✅ **Modular Architecture** (4 módulos: core, development, product, infrastructure)
23
23
  - ✅ **Squad System** (nova terminologia, substituindo "Expansion Pack")
@@ -34,13 +34,13 @@ Este documento é a **versão consolidada v2.1** que incorpora todas as mudança
34
34
 
35
35
  ---
36
36
 
37
- ## 📜 Open Source vs. Serviço - Business Model v2.1
37
+ ## 📜 Open Source vs. Serviço - Business Model v4.0.4
38
38
 
39
- ### O Que Mudou de v2.0 para v2.1
39
+ ### O Que Mudou de v2.0 para v4.0.4
40
40
 
41
- **IMPORTANTE: v2.1 alterou fundamentalmente o business model!**
41
+ **IMPORTANTE: v4.0.4 alterou fundamentalmente o business model!**
42
42
 
43
- | Componente | v2.0 | v2.1 | Rationale |
43
+ | Componente | v2.0 | v4.0.4 | Rationale |
44
44
  | ------------------------ | ----------- | --------------- | -------------------------- |
45
45
  | **11 Agents** | ✅ Open | ✅ Open | Core functionality |
46
46
  | **Workers (97+)** | ❌ Closed | ✅ **OPEN** | Commodity, network effects |
@@ -106,7 +106,7 @@ Este documento é a **versão consolidada v2.1** que incorpora todas as mudança
106
106
  | LangChain | ✅ Complete | ❌ None (commodity) |
107
107
  | CrewAI | ✅ Complete | ❌ None (commodity) |
108
108
  | AutoGen | ✅ Complete | ❌ None (commodity) |
109
- | **AIOS v2.1** | ✅ **Complete** | ✅ **Clones (DNA Mental™)** ⭐ |
109
+ | **AIOS v4.0.4** | ✅ **Complete** | ✅ **Clones (DNA Mental™)** ⭐ |
110
110
 
111
111
  **Analogia:** Linux é open source, mas Red Hat Enterprise Linux adiciona suporte e otimizações. Ambos são Linux, mas o valor agregado varia. AIOS funciona igual.
112
112
 
@@ -119,7 +119,7 @@ Este não é um documento para ser lido do início ao fim. É um **sistema de ap
119
119
  - 🚀 **Layer 0: DISCOVERY** - Descubra seu caminho (5 min)
120
120
  - 🎯 **Layer 1: UNDERSTANDING** - 5 essays que ensinam o modelo mental (75 min)
121
121
  - 🎨 **Layer 2: COMPONENT LIBRARY** - Catálogo completo de componentes
122
- - 📋 **Layer 3: USAGE GUIDE** - Como usar AIOS v2.1 no seu contexto
122
+ - 📋 **Layer 3: USAGE GUIDE** - Como usar AIOS v4.0.4 no seu contexto
123
123
  - 📚 **Layer 4: COMPLETE REFERENCE** - Especificação técnica completa
124
124
  - 🔄 **META: EVOLUTION** - Como contribuir e evoluir o framework
125
125
 
@@ -129,7 +129,7 @@ Este não é um documento para ser lido do início ao fim. É um **sistema de ap
129
129
 
130
130
  # 🚀 LAYER 0: DISCOVERY ROUTER
131
131
 
132
- ## Bem-vindo ao AIOS v2.1 - Vamos Encontrar Seu Caminho
132
+ ## Bem-vindo ao AIOS v4.0.4 - Vamos Encontrar Seu Caminho
133
133
 
134
134
  ### Learning Tracks Disponíveis
135
135
 
@@ -192,7 +192,7 @@ AIOS fornece **orquestração estruturada**:
192
192
 
193
193
  ---
194
194
 
195
- ## Essay 3: Business Model v2.1
195
+ ## Essay 3: Business Model v4.0.4
196
196
 
197
197
  ### Por Que Workers São Open-Source Agora?
198
198
 
@@ -212,7 +212,7 @@ AIOS fornece **orquestração estruturada**:
212
212
 
213
213
  ## Essay 4: Agent System
214
214
 
215
- ### Os 11 Agents v2.1
215
+ ### Os 11 Agents v4.0.4
216
216
 
217
217
  | Agent | ID | Archetype | Responsabilidade |
218
218
  | --------- | --------------- | ------------ | ----------------------- |
@@ -288,7 +288,7 @@ responsavel_type: Clone # Year 2
288
288
 
289
289
  # 🎨 LAYER 2: COMPONENT LIBRARY
290
290
 
291
- ## Arquitetura Modular v2.1
291
+ ## Arquitetura Modular v4.0.4
292
292
 
293
293
  ### Os 4 Módulos
294
294
 
@@ -342,7 +342,7 @@ Regras:
342
342
 
343
343
  ---
344
344
 
345
- ## Squad System (Novo em v2.1)
345
+ ## Squad System (Novo em v4.0.4)
346
346
 
347
347
  ### Terminologia
348
348
 
@@ -600,7 +600,7 @@ npm install @aios/mcp-presets
600
600
 
601
601
  # 📋 LAYER 3: USAGE GUIDE
602
602
 
603
- ## Quick Start v2.1
603
+ ## Quick Start v4.0.4
604
604
 
605
605
  ### Installation (5 minutes)
606
606
 
@@ -609,7 +609,7 @@ npm install @aios/mcp-presets
609
609
  $ npx @SynkraAI/aios@latest init
610
610
 
611
611
  # Existing project (Brownfield)
612
- $ npx @SynkraAI/aios migrate v2.0-to-v2.1
612
+ $ npx @SynkraAI/aios migrate v2.0-to-v4.0.4
613
613
  ```
614
614
 
615
615
  ### First Steps
@@ -700,7 +700,7 @@ $ aios workflow brownfield-integration --target=./existing-project
700
700
 
701
701
  # 📚 LAYER 4: COMPLETE REFERENCE
702
702
 
703
- ## Source Tree v2.1 (Current)
703
+ ## Source Tree v4.0.4 (Current)
704
704
 
705
705
  ```
706
706
  @synkra/aios-core/ # Root project
@@ -733,7 +733,7 @@ $ aios workflow brownfield-integration --target=./existing-project
733
733
 
734
734
  ├── docs/ # Project docs
735
735
  │ ├── stories/ # Development stories
736
- │ │ └── v2.1/ # v2.1 stories
736
+ │ │ └── v4.0.4/ # v4.0.4 stories
737
737
  │ │ ├── sprint-1/
738
738
  │ │ ├── sprint-2/
739
739
  │ │ ├── sprint-3/
@@ -785,7 +785,7 @@ $ aios workflow brownfield-integration --target=./existing-project
785
785
 
786
786
  ### Installation
787
787
 
788
- | Metric | v2.0 | v2.1 | Improvement |
788
+ | Metric | v2.0 | v4.0.4 | Improvement |
789
789
  | --------------- | ---------- | --------- | --------------- |
790
790
  | Time to install | 2-4 hours | 5 minutes | **96% faster** |
791
791
  | Steps required | 15+ manual | 1 command | **93% simpler** |
@@ -793,7 +793,7 @@ $ aios workflow brownfield-integration --target=./existing-project
793
793
 
794
794
  ### Development Speed
795
795
 
796
- | Metric | v2.0 | v2.1 | Improvement |
796
+ | Metric | v2.0 | v4.0.4 | Improvement |
797
797
  | --------------------- | -------- | ---------- | ----------------- |
798
798
  | Find reusable Worker | N/A | 30 seconds | **∞** |
799
799
  | Quality issues caught | 20% | 80% | **4x** |
@@ -801,7 +801,7 @@ $ aios workflow brownfield-integration --target=./existing-project
801
801
 
802
802
  ### Quality
803
803
 
804
- | Metric | v2.0 | v2.1 |
804
+ | Metric | v2.0 | v4.0.4 |
805
805
  | ------------------- | ---------- | ------------- |
806
806
  | Quality Gate Layers | 1 (manual) | 3 (automated) |
807
807
  | Auto-caught issues | 0% | 80% |
@@ -834,4 +834,4 @@ $ aios workflow brownfield-integration --target=./existing-project
834
834
 
835
835
  ---
836
836
 
837
- _Este documento consolida AIOS-LIVRO-DE-OURO.md (v2.0) + deltas v2.1 em um único documento completo._
837
+ _Este documento consolida AIOS-LIVRO-DE-OURO.md (v2.0) + deltas v4.0.4 em um único documento completo._
@@ -9,14 +9,14 @@
9
9
 
10
10
  ## 🎯 PURPOSE OF THIS DOCUMENT
11
11
 
12
- This is a **delta document** highlighting **ONLY what changed in v2.2** compared to v2.1.
12
+ This is a **delta document** highlighting **ONLY what changed in v2.2** compared to v4.0.4.
13
13
 
14
14
  For complete content:
15
15
  - ✅ **`AIOS-LIVRO-DE-OURO.md`** (v2.0 base)
16
- - ✅ **`AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md`** (v2.1 changes)
16
+ - ✅ **`AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md`** (v4.0.4 changes)
17
17
  - ✅ **This document** (v2.2 changes ONLY)
18
18
 
19
- **Combined reading:** v2.0 base + v2.1 delta + v2.2 delta = Complete v2.2 understanding
19
+ **Combined reading:** v2.0 base + v4.0.4 delta + v2.2 delta = Complete v2.2 understanding
20
20
 
21
21
  ---
22
22
 
@@ -24,7 +24,7 @@ For complete content:
24
24
 
25
25
  ### Memory Layer (The Game Changer)
26
26
 
27
- **v2.1:** Stateless agents (each execution isolated)
27
+ **v4.0.4:** Stateless agents (each execution isolated)
28
28
  **v2.2:** Agents remember, learn, and improve
29
29
 
30
30
  ```yaml
@@ -59,7 +59,7 @@ Memory Types:
59
59
 
60
60
  ### Agent Lightning (RL Optimization)
61
61
 
62
- **v2.1:** Static workflows
62
+ **v4.0.4:** Static workflows
63
63
  **v2.2:** Self-optimizing workflows
64
64
 
65
65
  ```yaml
@@ -96,7 +96,7 @@ Result:
96
96
 
97
97
  ### Advanced Features Matrix
98
98
 
99
- | Feature | v2.1 | v2.2 | Impact |
99
+ | Feature | v4.0.4 | v2.2 | Impact |
100
100
  |---------|------|------|--------|
101
101
  | **Memory Layer** | ❌ Stateless | ✅ 4 memory types | Agents learn |
102
102
  | **Agent Lightning** | ❌ Static | ✅ RL optimization | 30% faster, 40% cheaper |
@@ -110,7 +110,7 @@ Result:
110
110
 
111
111
  ## 🧠 DEEP DIVE: Memory Layer
112
112
 
113
- ### The Problem (v2.1)
113
+ ### The Problem (v4.0.4)
114
114
 
115
115
  ```yaml
116
116
  Scenario: Developer asks Dex (Dev Agent) to implement feature
@@ -298,10 +298,10 @@ Example:
298
298
 
299
299
  ## ⚡ DEEP DIVE: Agent Lightning
300
300
 
301
- ### The Problem (v2.1)
301
+ ### The Problem (v4.0.4)
302
302
 
303
303
  ```yaml
304
- Static Workflow (v2.1):
304
+ Static Workflow (v4.0.4):
305
305
  1. Developer creates story
306
306
  2. Dex implements (5 min)
307
307
  3. Quinn tests (3 min)
@@ -419,7 +419,7 @@ Result:
419
419
 
420
420
  ### Impact Metrics
421
421
 
422
- **Before Agent Lightning (v2.1):**
422
+ **Before Agent Lightning (v4.0.4):**
423
423
  ```yaml
424
424
  Average workflow time: 11 minutes
425
425
  Average cost per story: $0.50 (LLM calls)
@@ -441,7 +441,7 @@ Learning rate: 10% improvement per week
441
441
 
442
442
  ### Shared Context
443
443
 
444
- **v2.1:** Each developer's agents isolated
444
+ **v4.0.4:** Each developer's agents isolated
445
445
  **v2.2:** Team-wide shared memory
446
446
 
447
447
  ```yaml
@@ -637,11 +637,11 @@ responsavel_type: Clone
637
637
 
638
638
  ---
639
639
 
640
- ## 📊 COMPARATIVE METRICS: v2.1 vs. v2.2
640
+ ## 📊 COMPARATIVE METRICS: v4.0.4 vs. v2.2
641
641
 
642
642
  ### Development Speed
643
643
 
644
- | Metric | v2.1 | v2.2 | Improvement |
644
+ | Metric | v4.0.4 | v2.2 | Improvement |
645
645
  |--------|------|------|-------------|
646
646
  | Simple task time | 11 min | 1 min | **91% faster** |
647
647
  | Complex task time | 11 min | 26 min | Appropriately slower |
@@ -650,7 +650,7 @@ responsavel_type: Clone
650
650
 
651
651
  ### Cost Efficiency
652
652
 
653
- | Metric | v2.1 | v2.2 | Improvement |
653
+ | Metric | v4.0.4 | v2.2 | Improvement |
654
654
  |--------|------|------|-------------|
655
655
  | Avg cost per story | $0.50 | $0.30 | **40% cheaper** |
656
656
  | Wasted LLM calls | 30% | 5% | **83% reduction** |
@@ -658,7 +658,7 @@ responsavel_type: Clone
658
658
 
659
659
  ### Quality & Learning
660
660
 
661
- | Metric | v2.1 | v2.2 | Improvement |
661
+ | Metric | v4.0.4 | v2.2 | Improvement |
662
662
  |--------|------|------|-------------|
663
663
  | Issue catch rate | 80% (3 layers) | 85% (learning) | **+5 percentage points** |
664
664
  | False positive rate | 15% | 8% | **47% reduction** |
@@ -667,7 +667,7 @@ responsavel_type: Clone
667
667
 
668
668
  ### Team Collaboration
669
669
 
670
- | Metric | v2.1 | v2.2 | Improvement |
670
+ | Metric | v4.0.4 | v2.2 | Improvement |
671
671
  |--------|------|------|-------------|
672
672
  | Handoff delay | 30 min avg | 0 min | **100% elimination** |
673
673
  | Coordination overhead | 2h/day | 15min/day | **87% reduction** |
@@ -716,7 +716,7 @@ Features:
716
716
 
717
717
  ## 🎯 SUMMARY: Evolution Path
718
718
 
719
- ### v2.0 → v2.1 (The Foundation)
719
+ ### v2.0 → v4.0.4 (The Foundation)
720
720
 
721
721
  **Focus:** Installation + Discovery + Architecture
722
722
  - ✅ 5-minute installation
@@ -729,7 +729,7 @@ Features:
729
729
 
730
730
  ---
731
731
 
732
- ### v2.1 → v2.2 (The Intelligence)
732
+ ### v4.0.4 → v2.2 (The Intelligence)
733
733
 
734
734
  **Focus:** Memory + Learning + Collaboration
735
735
  - ✅ Memory Layer (4 types)
@@ -756,7 +756,7 @@ Features:
756
756
 
757
757
  ## 📖 WHERE TO GO FROM HERE
758
758
 
759
- ### If You're on v2.1
759
+ ### If You're on v4.0.4
760
760
 
761
761
  1. ✅ Read this summary (done!)
762
762
  2. → Review [Memory Layer Architecture](#memory-layer)
@@ -782,7 +782,7 @@ Features:
782
782
 
783
783
  ---
784
784
 
785
- **Full v2.2 Documentation:** Combine v2.0 base + v2.1 delta + v2.2 delta
785
+ **Full v2.2 Documentation:** Combine v2.0 base + v4.0.4 delta + v2.2 delta
786
786
 
787
787
  **Next Version:** v2.3 (Q3 2026) - Enterprise & Scale
788
788
 
@@ -988,7 +988,7 @@ Features:
988
988
  │ ├── research/
989
989
  │ ├── epics/
990
990
  │ ├── stories/
991
- │ │ ├── v2.1/ # v2.1 stories (completed)
991
+ │ │ ├── v4.0.4/ # v4.0.4 stories (completed)
992
992
  │ │ ├── v2.2/ # ⭐ v2.2 stories (in progress)
993
993
  │ │ │ ├── sprint-1/ # Memory Layer
994
994
  │ │ │ ├── sprint-2/ # Agent Lightning
@@ -1093,7 +1093,7 @@ Features:
1093
1093
 
1094
1094
  ---
1095
1095
 
1096
- ### Key Changes from v2.1 → v2.2
1096
+ ### Key Changes from v4.0.4 → v2.2
1097
1097
 
1098
1098
  **1. Memory Layer:**
1099
1099
  ```
@@ -1192,7 +1192,7 @@ ENHANCED: .aios-core/core/validation/learning-feedback-loop.js
1192
1192
  - False positive reduction
1193
1193
  - Accuracy improvement over time
1194
1194
 
1195
- Impact: 85% catch rate (vs. 80% in v2.1), 8% false positives (vs. 15%)
1195
+ Impact: 85% catch rate (vs. 80% in v4.0.4), 8% false positives (vs. 15%)
1196
1196
  ```
1197
1197
 
1198
1198
  **7. Local Development Environment:**
@@ -1221,7 +1221,7 @@ Impact: Never lose institutional knowledge
1221
1221
 
1222
1222
  ### Storage Requirements Comparison
1223
1223
 
1224
- | Component | v2.1 | v2.2 | Additional Storage |
1224
+ | Component | v4.0.4 | v2.2 | Additional Storage |
1225
1225
  |-----------|------|------|-------------------|
1226
1226
  | Base Framework | ~50MB | ~50MB | 0MB |
1227
1227
  | Workers | ~5MB | ~5MB | 0MB |
@@ -1237,7 +1237,7 @@ Impact: Never lose institutional knowledge
1237
1237
 
1238
1238
  ### Performance Comparison
1239
1239
 
1240
- | Metric | v2.1 | v2.2 | Improvement |
1240
+ | Metric | v4.0.4 | v2.2 | Improvement |
1241
1241
  |--------|------|------|-------------|
1242
1242
  | Simple task time | 1 min | 30s | **50% faster** |
1243
1243
  | Complex task time | 26 min | 22 min | **15% faster** |
@@ -3,7 +3,7 @@
3
3
  **Version:** 2.1.0
4
4
  **Date:** 2025-12-09
5
5
  **Purpose:** Document differences between AIOS open-source and AIOS service implementations
6
- **Status:** ⚠️ Needs Review - Updated for v2.1 Multi-Repo Strategy
6
+ **Status:** ⚠️ Needs Review - Updated for v4.0.4 Multi-Repo Strategy
7
7
 
8
8
  ---
9
9
 
@@ -17,7 +17,7 @@ This document clarifies which features apply to which context.
17
17
 
18
18
  ---
19
19
 
20
- ## Multi-Repo Strategy (v2.1)
20
+ ## Multi-Repo Strategy (v4.0.4)
21
21
 
22
22
  ### Repository Organization
23
23
 
@@ -489,7 +489,7 @@ function validateTask(task) {
489
489
 
490
490
  ## Related Documents
491
491
 
492
- - [AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md](./AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md) - Complete v2.1 framework guide
492
+ - [AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md](./AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md) - Complete v4.0.4 framework guide
493
493
  - [STANDARDS-INDEX.md](./STANDARDS-INDEX.md) - Standards navigation
494
494
  - [TASK-FORMAT-SPECIFICATION-V1.md](./TASK-FORMAT-SPECIFICATION-V1.md) - Complete task format spec
495
495
  - [AGENT-PERSONALIZATION-STANDARD-V1.md](./AGENT-PERSONALIZATION-STANDARD-V1.md) - Personality guidelines
@@ -508,4 +508,4 @@ function validateTask(task) {
508
508
 
509
509
  **Last Updated:** 2025-12-09
510
510
  **Version:** 2.1.0
511
- **Applies to:** AIOS v2.1+
511
+ **Applies to:** AIOS v4.0.4+
@@ -1,4 +1,4 @@
1
- # Quality Gates Specification v2.1
1
+ # Quality Gates Specification v4.0.4
2
2
 
3
3
  **Version:** 2.1.0
4
4
  **Last Updated:** 2025-12-09
@@ -481,7 +481,7 @@ reviews:
481
481
  Verify:
482
482
  - Terminology uses 'Squad' not 'Expansion Pack'
483
483
  - All internal links work
484
- - Version numbers are v2.1
484
+ - Version numbers are v4.0.4
485
485
 
486
486
  - path: "squads/**"
487
487
  instructions: |
@@ -512,7 +512,7 @@ reviews:
512
512
  | Issues escaping to production | ~15% |
513
513
  | Developer context switches | High |
514
514
 
515
- ### After Quality Gates (v2.1)
515
+ ### After Quality Gates (v4.0.4)
516
516
 
517
517
  | Metric | Value | Improvement |
518
518
  |--------|-------|-------------|
@@ -16,18 +16,18 @@
16
16
 
17
17
  ### For Existing Users
18
18
 
19
- - **v2.0 → v2.1 Migration:** See "What's New" section in [AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md](./AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md)
19
+ - **v2.0 → v4.0.4 Migration:** See "What's New" section in [AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md](./AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md)
20
20
  - **Architecture Changes:** Review [ARCHITECTURE-INDEX.md](../../docs/architecture/ARCHITECTURE-INDEX.md)
21
21
 
22
22
  ---
23
23
 
24
24
  ## 📚 Standards by Category
25
25
 
26
- ### Core Framework Standards (Current v2.1)
26
+ ### Core Framework Standards (Current v4.0.4)
27
27
 
28
28
  | Document | Description | Status | Version |
29
29
  |----------|-------------|--------|---------|
30
- | [AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md](./AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md) | **Complete v2.1 framework guide** | ✅ Current | 2.1.0 |
30
+ | [AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md](./AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md) | **Complete v4.0.4 framework guide** | ✅ Current | 2.1.0 |
31
31
  | [QUALITY-GATES-SPECIFICATION.md](./QUALITY-GATES-SPECIFICATION.md) | 3-layer quality gates system | ✅ Current | 2.1.0 |
32
32
  | [STORY-TEMPLATE-V2-SPECIFICATION.md](./STORY-TEMPLATE-V2-SPECIFICATION.md) | Story template v2.0 specification | ✅ Current | 2.0.0 |
33
33
  | [TASK-FORMAT-SPECIFICATION-V1.md](./TASK-FORMAT-SPECIFICATION-V1.md) | Task-First architecture format | ✅ Current | 1.0.0 |
@@ -52,21 +52,21 @@
52
52
  | Document | Description | Status | Superseded By |
53
53
  |----------|-------------|--------|---------------|
54
54
  | [AIOS-LIVRO-DE-OURO.md](./AIOS-LIVRO-DE-OURO.md) | v2.0.0 base document | ⚠️ Deprecated | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md |
55
- | [AIOS-LIVRO-DE-OURO-V2.1.md](./AIOS-LIVRO-DE-OURO-V2.1.md) | v2.1 delta (partial) | ⚠️ Deprecated | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md |
56
- | [AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md](./AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md) | v2.1 summary | ⚠️ Deprecated | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md |
55
+ | [AIOS-LIVRO-DE-OURO-V2.1.md](./AIOS-LIVRO-DE-OURO-V2.1.md) | v4.0.4 delta (partial) | ⚠️ Deprecated | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md |
56
+ | [AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md](./AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md) | v4.0.4 summary | ⚠️ Deprecated | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md |
57
57
  | [AIOS-LIVRO-DE-OURO-V2.2-SUMMARY.md](./AIOS-LIVRO-DE-OURO-V2.2-SUMMARY.md) | Future v2.2 planning | 📋 Draft | N/A |
58
58
  | [AIOS-FRAMEWORK-MASTER.md](./AIOS-FRAMEWORK-MASTER.md) | v2.0.0 framework doc | ⚠️ Deprecated | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md |
59
59
  | [V3-ARCHITECTURAL-DECISIONS.md](./V3-ARCHITECTURAL-DECISIONS.md) | Old architectural decisions | 📦 Archive Candidate | Current architecture docs |
60
60
 
61
61
  ---
62
62
 
63
- ## 🔄 What Changed in v2.1
63
+ ## 🔄 What Changed in v4.0.4
64
64
 
65
65
  ### New Documents Created
66
66
 
67
67
  | Document | Purpose |
68
68
  |----------|---------|
69
- | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md | Consolidated v2.1 documentation |
69
+ | AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md | Consolidated v4.0.4 documentation |
70
70
  | QUALITY-GATES-SPECIFICATION.md | 3-layer quality gates |
71
71
  | STORY-TEMPLATE-V2-SPECIFICATION.md | Story template v2.0 |
72
72
  | STANDARDS-INDEX.md | This navigation document |
@@ -101,8 +101,8 @@
101
101
  .aios-core/docs/standards/
102
102
  ├── STANDARDS-INDEX.md # This file - navigation
103
103
 
104
- ├── Current v2.1 Standards
105
- │ ├── AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md # Complete v2.1 guide
104
+ ├── Current v4.0.4 Standards
105
+ │ ├── AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md # Complete v4.0.4 guide
106
106
  │ ├── QUALITY-GATES-SPECIFICATION.md # Quality gates
107
107
  │ ├── STORY-TEMPLATE-V2-SPECIFICATION.md # Story template
108
108
  │ ├── TASK-FORMAT-SPECIFICATION-V1.md # Task format
@@ -113,8 +113,8 @@
113
113
 
114
114
  ├── Legacy (Reference Only)
115
115
  │ ├── AIOS-LIVRO-DE-OURO.md # v2.0.0 base (deprecated)
116
- │ ├── AIOS-LIVRO-DE-OURO-V2.1.md # v2.1 delta (deprecated)
117
- │ ├── AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md # v2.1 summary (deprecated)
116
+ │ ├── AIOS-LIVRO-DE-OURO-V2.1.md # v4.0.4 delta (deprecated)
117
+ │ ├── AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md # v4.0.4 summary (deprecated)
118
118
  │ ├── AIOS-FRAMEWORK-MASTER.md # v2.0.0 (deprecated)
119
119
  │ └── V3-ARCHITECTURAL-DECISIONS.md # Archive candidate
120
120
 
@@ -156,7 +156,7 @@ Located in `docs/`:
156
156
 
157
157
  | Status | Meaning | Action |
158
158
  |--------|---------|--------|
159
- | ✅ Current | Up-to-date with v2.1 | Use as reference |
159
+ | ✅ Current | Up-to-date with v4.0.4 | Use as reference |
160
160
  | ⚠️ Deprecated | Superseded by newer document | Refer to replacement |
161
161
  | ⚠️ Needs Update | Content outdated | Update planned |
162
162
  | 📦 Archive Candidate | Should be archived | Move to _archived/ |
@@ -201,7 +201,7 @@ grep -r "v2.0" .aios-core/docs/standards --include="*.md"
201
201
 
202
202
  | Date | Version | Changes | Author |
203
203
  |------|---------|---------|--------|
204
- | 2025-12-09 | 2.1.0 | Initial STANDARDS-INDEX creation for v2.1 | @dev (Dex) |
204
+ | 2025-12-09 | 2.1.0 | Initial STANDARDS-INDEX creation for v4.0.4 | @dev (Dex) |
205
205
 
206
206
  ---
207
207