aiox-core 5.0.7 → 5.0.8

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 (191) hide show
  1. package/.aiox-core/cli/commands/pro/buyer.js +379 -0
  2. package/.aiox-core/cli/commands/pro/index.js +191 -52
  3. package/.aiox-core/cli/commands/validate/index.js +2 -0
  4. package/.aiox-core/core/code-intel/helpers/dev-helper.js +1 -1
  5. package/.aiox-core/core/code-intel/helpers/devops-helper.js +0 -1
  6. package/.aiox-core/core/code-intel/helpers/planning-helper.js +1 -1
  7. package/.aiox-core/core/code-intel/helpers/qa-helper.js +2 -2
  8. package/.aiox-core/core/config/schemas/framework-config.schema.json +1 -0
  9. package/.aiox-core/core/config/template-overrides.js +1 -1
  10. package/.aiox-core/core/doctor/checks/ide-sync.js +81 -25
  11. package/.aiox-core/core/doctor/checks/rules-files.js +0 -1
  12. package/.aiox-core/core/doctor/checks/skills-count.js +83 -15
  13. package/.aiox-core/core/graph-dashboard/cli.js +1 -2
  14. package/.aiox-core/core/graph-dashboard/data-sources/code-intel-source.js +1 -1
  15. package/.aiox-core/core/ids/layer-classifier.js +1 -1
  16. package/.aiox-core/core/pro/pro-updater.js +578 -0
  17. package/.aiox-core/core/synapse/context/context-tracker.js +107 -9
  18. package/.aiox-core/core/synapse/layers/layer-processor.js +1 -1
  19. package/.aiox-core/core-config.yaml +15 -1
  20. package/.aiox-core/data/capability-detection.js +15 -15
  21. package/.aiox-core/data/entity-registry.yaml +18 -2
  22. package/.aiox-core/data/registry-update-log.jsonl +5 -0
  23. package/.aiox-core/data/tok3-token-comparison.js +0 -4
  24. package/.aiox-core/data/tool-search-validation.js +1 -1
  25. package/.aiox-core/development/agents/aiox-master.md +44 -6
  26. package/.aiox-core/development/agents/data-engineer.md +4 -4
  27. package/.aiox-core/development/agents/devops.md +52 -2
  28. package/.aiox-core/development/agents/po.md +1 -1
  29. package/.aiox-core/development/agents/qa.md +5 -11
  30. package/.aiox-core/development/agents/sm.md +3 -3
  31. package/.aiox-core/development/agents/ux-design-expert.md +1 -1
  32. package/.aiox-core/development/scripts/unified-activation-pipeline.js +29 -3
  33. package/.aiox-core/development/tasks/dev-develop-story.md +46 -7
  34. package/.aiox-core/development/tasks/devops-pro-access-grant.md +93 -0
  35. package/.aiox-core/development/tasks/devops-pro-activate.md +42 -0
  36. package/.aiox-core/development/tasks/devops-pro-check-access.md +34 -0
  37. package/.aiox-core/development/tasks/devops-pro-request-reset.md +34 -0
  38. package/.aiox-core/development/tasks/devops-pro-resend-verification.md +32 -0
  39. package/.aiox-core/development/tasks/devops-pro-reset-password.md +36 -0
  40. package/.aiox-core/development/tasks/devops-pro-validate-login.md +36 -0
  41. package/.aiox-core/development/tasks/devops-pro-verify-status.md +33 -0
  42. package/.aiox-core/development/tasks/qa-gate.md +54 -4
  43. package/.aiox-core/development/tasks/validate-next-story.md +39 -2
  44. package/.aiox-core/framework-config.yaml +1 -0
  45. package/.aiox-core/infrastructure/scripts/codex-skills-sync/README.md +69 -0
  46. package/.aiox-core/infrastructure/scripts/codex-skills-sync/bootstrap.js +727 -0
  47. package/.aiox-core/infrastructure/scripts/codex-skills-sync/index.js +10 -0
  48. package/.aiox-core/infrastructure/scripts/codex-skills-sync/validate.js +65 -4
  49. package/.aiox-core/infrastructure/scripts/generate-settings-json.js +29 -4
  50. package/.aiox-core/infrastructure/scripts/ide-sync/agent-parser.js +4 -0
  51. package/.aiox-core/infrastructure/scripts/ide-sync/index.js +67 -7
  52. package/.aiox-core/infrastructure/scripts/ide-sync/transformers/claude-code.js +145 -3
  53. package/.aiox-core/infrastructure/scripts/repair-agent-references.js +263 -0
  54. package/.aiox-core/infrastructure/scripts/validate-claude-integration.js +60 -8
  55. package/.aiox-core/infrastructure/scripts/validate-paths.js +13 -0
  56. package/.aiox-core/install-manifest.yaml +134 -82
  57. package/.aiox-core/utils/filters/index.js +2 -1
  58. package/.claude/commands/AIOX/agents/aiox-master.md +21 -0
  59. package/.claude/commands/AIOX/agents/analyst.md +21 -0
  60. package/.claude/commands/AIOX/agents/architect.md +21 -0
  61. package/.claude/commands/AIOX/agents/data-engineer.md +21 -0
  62. package/.claude/commands/AIOX/agents/dev.md +21 -0
  63. package/.claude/commands/AIOX/agents/devops.md +21 -0
  64. package/.claude/commands/AIOX/agents/pm.md +21 -0
  65. package/.claude/commands/AIOX/agents/po.md +21 -0
  66. package/.claude/commands/AIOX/agents/qa.md +21 -0
  67. package/.claude/commands/AIOX/agents/sm.md +21 -0
  68. package/.claude/commands/AIOX/agents/squad-creator.md +21 -0
  69. package/.claude/commands/AIOX/agents/ux-design-expert.md +21 -0
  70. package/.claude/commands/AIOX/scripts/agent-config-loader.js +624 -0
  71. package/.claude/commands/AIOX/scripts/generate-greeting.js +160 -0
  72. package/.claude/commands/AIOX/scripts/greeting-builder.js +866 -0
  73. package/.claude/commands/AIOX/scripts/session-context-loader.js +286 -0
  74. package/.claude/commands/AIOX/stories/story-6.1.4.md +1404 -0
  75. package/.claude/commands/cohort-squad/agents/cohort-manager.md +156 -0
  76. package/.claude/commands/design-system/agents/brad-frost.md +1097 -0
  77. package/.claude/commands/design-system/agents/dan-mall.md +857 -0
  78. package/.claude/commands/design-system/agents/dave-malouf.md +2272 -0
  79. package/.claude/commands/design-system/agents/design-chief.md +102 -0
  80. package/.claude/commands/design-system/agents/nano-banana-generator.md +162 -0
  81. package/.claude/commands/greet.md +101 -0
  82. package/.claude/commands/synapse/manager.md +75 -0
  83. package/.claude/commands/synapse/tasks/add-rule.md +94 -0
  84. package/.claude/commands/synapse/tasks/create-command.md +109 -0
  85. package/.claude/commands/synapse/tasks/create-domain.md +127 -0
  86. package/.claude/commands/synapse/tasks/diagnose-synapse.md +245 -0
  87. package/.claude/commands/synapse/tasks/edit-rule.md +109 -0
  88. package/.claude/commands/synapse/tasks/suggest-domain.md +116 -0
  89. package/.claude/commands/synapse/tasks/toggle-domain.md +83 -0
  90. package/.claude/commands/synapse/templates/domain-template +8 -0
  91. package/.claude/commands/synapse/templates/manifest-entry-template +4 -0
  92. package/.claude/commands/synapse/utils/manifest-parser-reference.md +134 -0
  93. package/.claude/hooks/precompact-session-digest.cjs +2 -2
  94. package/.claude/skills/AIOX/agents/aiox-master/SKILL.md +511 -0
  95. package/.claude/skills/AIOX/agents/analyst/SKILL.md +281 -0
  96. package/.claude/skills/AIOX/agents/architect/SKILL.md +482 -0
  97. package/.claude/skills/AIOX/agents/data-engineer/SKILL.md +503 -0
  98. package/.claude/skills/AIOX/agents/dev/SKILL.md +568 -0
  99. package/.claude/skills/AIOX/agents/devops/SKILL.md +597 -0
  100. package/.claude/skills/AIOX/agents/pm/SKILL.md +385 -0
  101. package/.claude/skills/AIOX/agents/po/SKILL.md +343 -0
  102. package/.claude/skills/AIOX/agents/qa/SKILL.md +451 -0
  103. package/.claude/skills/AIOX/agents/sm/SKILL.md +295 -0
  104. package/.claude/skills/AIOX/agents/squad-creator/SKILL.md +352 -0
  105. package/.claude/skills/AIOX/agents/ux-design-expert/SKILL.md +503 -0
  106. package/.claude/skills/architect-first/SKILL.md +275 -0
  107. package/.claude/skills/architect-first/assets/architecture-template.md +505 -0
  108. package/.claude/skills/architect-first/assets/config-template.yaml +351 -0
  109. package/.claude/skills/architect-first/references/architecture-checklist.md +216 -0
  110. package/.claude/skills/architect-first/references/pre-implementation-checklist.md +119 -0
  111. package/.claude/skills/architect-first/references/stop-rules-guide.md +291 -0
  112. package/.claude/skills/architect-first/references/testing-strategy-guide.md +477 -0
  113. package/.claude/skills/architect-first/scripts/architecture_validator.py +490 -0
  114. package/.claude/skills/architect-first/scripts/check_coupling.py +306 -0
  115. package/.claude/skills/architect-first/scripts/validate_risk_mitigation.py +382 -0
  116. package/.claude/skills/checklist-runner/SKILL.md +113 -0
  117. package/.claude/skills/clone-mind.md +329 -0
  118. package/.claude/skills/coderabbit-review/SKILL.md +106 -0
  119. package/.claude/skills/course-generation-workflow.md +76 -0
  120. package/.claude/skills/enhance-workflow.md +466 -0
  121. package/.claude/skills/mcp-builder/LICENSE.txt +202 -0
  122. package/.claude/skills/mcp-builder/SKILL.md +328 -0
  123. package/.claude/skills/mcp-builder/reference/evaluation.md +602 -0
  124. package/.claude/skills/mcp-builder/reference/mcp_best_practices.md +915 -0
  125. package/.claude/skills/mcp-builder/reference/node_mcp_server.md +916 -0
  126. package/.claude/skills/mcp-builder/reference/python_mcp_server.md +752 -0
  127. package/.claude/skills/mcp-builder/scripts/connections.py +151 -0
  128. package/.claude/skills/mcp-builder/scripts/evaluation.py +373 -0
  129. package/.claude/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
  130. package/.claude/skills/mcp-builder/scripts/requirements.txt +2 -0
  131. package/.claude/skills/ralph.md +181 -0
  132. package/.claude/skills/skill-creator/LICENSE.txt +202 -0
  133. package/.claude/skills/skill-creator/SKILL.md +209 -0
  134. package/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
  135. package/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
  136. package/.claude/skills/skill-creator/scripts/quick_validate.py +65 -0
  137. package/.claude/skills/squad.md +301 -0
  138. package/.claude/skills/synapse/SKILL.md +132 -0
  139. package/.claude/skills/synapse/assets/README.md +50 -0
  140. package/.claude/skills/synapse/references/brackets.md +100 -0
  141. package/.claude/skills/synapse/references/commands.md +118 -0
  142. package/.claude/skills/synapse/references/domains.md +126 -0
  143. package/.claude/skills/synapse/references/layers.md +186 -0
  144. package/.claude/skills/synapse/references/manifest.md +142 -0
  145. package/.claude/skills/tech-search/SKILL.md +431 -0
  146. package/.claude/skills/tech-search/prompts/page-extract.md +133 -0
  147. package/README.en.md +2 -2
  148. package/README.md +8 -2
  149. package/bin/aiox.js +55 -4
  150. package/bin/utils/framework-guard.js +4 -2
  151. package/bin/utils/pro-detector.js +119 -28
  152. package/bin/utils/validate-publish.js +6 -6
  153. package/docs/aiox-agent-flows/devops-system.md +18 -0
  154. package/docs/aiox-workflows/README.md +1 -0
  155. package/docs/aiox-workflows/pro-access-grant-workflow.md +218 -0
  156. package/docs/guides/pro/access-grant-ops-playbook.md +370 -0
  157. package/docs/guides/pro/install-gate-setup.md +12 -6
  158. package/docs/guides/pro/squad-creator-handoff-pro-access-ops.md +134 -0
  159. package/docs/guides/supabase-ops-handoff.md +768 -0
  160. package/package.json +12 -1
  161. package/packages/aiox-pro-cli/bin/aiox-pro.js +33 -12
  162. package/packages/installer/src/config/configure-environment.js +118 -50
  163. package/packages/installer/src/installer/aiox-core-installer.js +124 -27
  164. package/packages/installer/src/installer/brownfield-upgrader.js +66 -9
  165. package/packages/installer/src/installer/dependency-installer.js +4 -0
  166. package/packages/installer/src/pro/pro-scaffolder.js +5 -5
  167. package/packages/installer/src/updater/index.js +151 -10
  168. package/packages/installer/src/wizard/ide-config-generator.js +73 -7
  169. package/packages/installer/src/wizard/index.js +119 -31
  170. package/packages/installer/src/wizard/pro-setup.js +118 -47
  171. package/packages/installer/src/wizard/validation/validators/dependency-validator.js +32 -25
  172. package/packages/installer/src/wizard/validation/validators/file-structure-validator.js +26 -0
  173. package/packages/installer/tests/unit/artifact-copy-pipeline/artifact-copy-pipeline.test.js +84 -1
  174. package/packages/installer/tests/unit/claude-md-template-v5/claude-md-template-v5.test.js +1 -1
  175. package/packages/installer/tests/unit/doctor/doctor-checks.test.js +85 -19
  176. package/packages/installer/tests/unit/entity-registry-bootstrap.test.js +4 -4
  177. package/packages/installer/tests/unit/generate-settings-json/generate-settings-json.test.js +5 -5
  178. package/packages/installer/tests/unit/ide-sync-integration/ide-sync-integration.test.js +4 -4
  179. package/packages/installer/tests/unit/merger/yaml-merger.test.js +11 -11
  180. package/pro/README.md +12 -1
  181. package/pro/license/index.js +3 -11
  182. package/pro/license/license-api.js +25 -0
  183. package/pro/license/license-cache.js +135 -31
  184. package/pro/license/license-crypto.js +59 -3
  185. package/pro/package.json +5 -4
  186. package/pro/squads/README.md +16 -16
  187. package/pro/squads/index.js +1 -1
  188. package/scripts/e2e/installed-skills-smoke.js +264 -0
  189. package/scripts/package-synapse.js +3 -3
  190. package/scripts/validate-package-completeness.js +8 -11
  191. package/.aiox-core/lib/build.json +0 -1
@@ -0,0 +1,351 @@
1
+ # Configuration Template for Architect-First Projects
2
+ #
3
+ # This template demonstrates the principle: Config > Hardcoding
4
+ # All mutable values should be externalized to configuration files like this.
5
+ #
6
+ # Usage:
7
+ # 1. Copy this template to your project's config directory
8
+ # 2. Rename to config.yaml or config.{environment}.yaml
9
+ # 3. Fill in values appropriate for your project
10
+ # 4. NEVER hardcode these values in source code
11
+ # 5. Load configuration at runtime from this file
12
+
13
+ # =============================================================================
14
+ # System Configuration
15
+ # =============================================================================
16
+ system:
17
+ name: "my-project" # Project/system name
18
+ version: "1.0.0" # Current version
19
+ environment: "development" # development|staging|production
20
+ debug: true # Enable debug mode
21
+
22
+ # =============================================================================
23
+ # Application Settings
24
+ # =============================================================================
25
+ application:
26
+ host: "localhost" # Application host
27
+ port: 8000 # Application port
28
+ workers: 4 # Number of worker processes
29
+ timeout: 30 # Request timeout (seconds)
30
+ max_connections: 100 # Maximum concurrent connections
31
+
32
+ # =============================================================================
33
+ # Logging Configuration
34
+ # =============================================================================
35
+ logging:
36
+ level: "INFO" # DEBUG|INFO|WARNING|ERROR|CRITICAL
37
+ format: "json" # json|text
38
+ output: "stdout" # stdout|file
39
+ file_path: "logs/app.log" # Log file path (if output=file)
40
+ rotation:
41
+ enabled: true # Enable log rotation
42
+ max_size: "100MB" # Max size before rotation
43
+ max_files: 10 # Number of files to keep
44
+
45
+ # =============================================================================
46
+ # Database Configuration
47
+ # =============================================================================
48
+ database:
49
+ primary:
50
+ engine: "postgresql" # postgresql|mysql|sqlite
51
+ host: "localhost"
52
+ port: 5432
53
+ name: "myapp_dev"
54
+ username: "developer"
55
+ password: "${DB_PASSWORD}" # From environment variable
56
+ pool_size: 10 # Connection pool size
57
+ pool_timeout: 30 # Pool timeout (seconds)
58
+ ssl_mode: "prefer" # disable|allow|prefer|require
59
+
60
+ replica: # Optional read replica
61
+ enabled: false
62
+ host: "replica.localhost"
63
+ port: 5432
64
+ # ... same structure as primary
65
+
66
+ # =============================================================================
67
+ # Cache Configuration
68
+ # =============================================================================
69
+ cache:
70
+ enabled: true
71
+ backend: "redis" # redis|memcached|memory
72
+ host: "localhost"
73
+ port: 6379
74
+ db: 0
75
+ password: "${REDIS_PASSWORD}" # From environment variable
76
+ ttl: 3600 # Default TTL in seconds
77
+ key_prefix: "myapp:" # Key prefix for namespace
78
+
79
+ # =============================================================================
80
+ # External Services / Integrations
81
+ # =============================================================================
82
+ integrations:
83
+ # Example: External API integration
84
+ external_api:
85
+ enabled: true
86
+ base_url: "https://api.example.com"
87
+ api_key: "${EXTERNAL_API_KEY}" # From environment variable
88
+ timeout: 10 # Request timeout (seconds)
89
+ retry:
90
+ enabled: true
91
+ max_attempts: 3
92
+ backoff_factor: 2 # Exponential backoff multiplier
93
+
94
+ # Example: Email service
95
+ email:
96
+ enabled: true
97
+ provider: "smtp" # smtp|sendgrid|ses
98
+ smtp_host: "smtp.example.com"
99
+ smtp_port: 587
100
+ smtp_user: "${EMAIL_USER}"
101
+ smtp_password: "${EMAIL_PASSWORD}"
102
+ from_address: "noreply@example.com"
103
+ from_name: "My Application"
104
+
105
+ # Example: Cloud storage
106
+ storage:
107
+ enabled: true
108
+ provider: "s3" # s3|gcs|azure
109
+ bucket: "my-app-uploads"
110
+ region: "us-east-1"
111
+ access_key: "${AWS_ACCESS_KEY}"
112
+ secret_key: "${AWS_SECRET_KEY}"
113
+ public_url_base: "https://cdn.example.com"
114
+
115
+ # =============================================================================
116
+ # Feature Flags
117
+ # =============================================================================
118
+ features:
119
+ new_feature_x:
120
+ enabled: false # Enable/disable feature
121
+ rollout_percentage: 0 # Gradual rollout (0-100)
122
+ allowed_users: [] # Whitelist of user IDs
123
+
124
+ experimental_feature_y:
125
+ enabled: true
126
+ config: # Feature-specific configuration
127
+ threshold: 0.8
128
+ max_items: 100
129
+
130
+ # =============================================================================
131
+ # Security Settings
132
+ # =============================================================================
133
+ security:
134
+ # Authentication
135
+ auth:
136
+ jwt:
137
+ secret: "${JWT_SECRET}" # From environment variable
138
+ algorithm: "HS256"
139
+ expiration: 3600 # Token expiration (seconds)
140
+ refresh_expiration: 604800 # Refresh token expiration (7 days)
141
+
142
+ session:
143
+ secret: "${SESSION_SECRET}"
144
+ cookie_name: "session_id"
145
+ secure: true # HTTPS only
146
+ http_only: true # Not accessible via JavaScript
147
+ same_site: "lax" # lax|strict|none
148
+
149
+ # Rate limiting
150
+ rate_limit:
151
+ enabled: true
152
+ requests_per_minute: 60
153
+ burst: 10 # Burst allowance
154
+
155
+ # CORS
156
+ cors:
157
+ enabled: true
158
+ allowed_origins:
159
+ - "https://example.com"
160
+ - "https://app.example.com"
161
+ allowed_methods:
162
+ - "GET"
163
+ - "POST"
164
+ - "PUT"
165
+ - "DELETE"
166
+ allowed_headers:
167
+ - "Content-Type"
168
+ - "Authorization"
169
+ max_age: 3600
170
+
171
+ # =============================================================================
172
+ # Monitoring & Observability
173
+ # =============================================================================
174
+ monitoring:
175
+ # Metrics
176
+ metrics:
177
+ enabled: true
178
+ provider: "prometheus" # prometheus|datadog|custom
179
+ port: 9090
180
+ path: "/metrics"
181
+
182
+ # Distributed tracing
183
+ tracing:
184
+ enabled: true
185
+ provider: "jaeger" # jaeger|zipkin|datadog
186
+ endpoint: "http://localhost:14268/api/traces"
187
+ sample_rate: 0.1 # Sample 10% of requests
188
+
189
+ # Health checks
190
+ health:
191
+ enabled: true
192
+ path: "/health"
193
+ checks:
194
+ - name: "database"
195
+ critical: true
196
+ - name: "cache"
197
+ critical: false
198
+ - name: "external_api"
199
+ critical: false
200
+
201
+ # =============================================================================
202
+ # Module/Expansion Pack Paths
203
+ # =============================================================================
204
+ # CRITICAL: Never hardcode module paths in source code
205
+ # Always reference modules through configuration
206
+ modules:
207
+ expansion_packs_dir: "expansion-packs"
208
+
209
+ # Individual expansion pack paths (relative to project root)
210
+ creator_os: "expansion-packs/creator-os"
211
+ mmos_mind_mapper: "expansion-packs/mmos"
212
+ innerlens: "expansion-packs/innerlens"
213
+ etl_data_collector: "expansion-packs/etl-data-collector"
214
+
215
+ # Module discovery (alternative to explicit paths)
216
+ auto_discover:
217
+ enabled: true # Automatically discover modules
218
+ search_paths:
219
+ - "expansion-packs"
220
+ - "plugins"
221
+ pattern: "*/module.yaml" # Module metadata file pattern
222
+
223
+ # =============================================================================
224
+ # File Paths & Directories
225
+ # =============================================================================
226
+ # CRITICAL: All file paths should be configurable, never hardcoded
227
+ paths:
228
+ # Input/output directories
229
+ data_dir: "data"
230
+ output_dir: "outputs"
231
+ temp_dir: "/tmp/myapp"
232
+ upload_dir: "uploads"
233
+
234
+ # Application directories
235
+ templates_dir: "templates"
236
+ static_dir: "static"
237
+
238
+ # Specific output paths
239
+ courses_output: "outputs/courses"
240
+ minds_output: "outputs/minds"
241
+ database_output: "outputs/database"
242
+
243
+ # =============================================================================
244
+ # Performance & Optimization
245
+ # =============================================================================
246
+ performance:
247
+ # Caching
248
+ cache_templates: true
249
+ cache_static_files: true
250
+
251
+ # Compression
252
+ enable_compression: true
253
+ compression_level: 6 # 1-9 (higher = more compression)
254
+ compression_min_size: 1024 # Minimum size to compress (bytes)
255
+
256
+ # Connection pooling
257
+ http_pool_size: 10
258
+ http_pool_timeout: 30
259
+
260
+ # Async processing
261
+ async_enabled: true
262
+ async_workers: 4
263
+ queue_backend: "redis"
264
+
265
+ # =============================================================================
266
+ # Development & Testing
267
+ # =============================================================================
268
+ development:
269
+ # Auto-reload on code changes
270
+ auto_reload: true
271
+
272
+ # Debug toolbar
273
+ debug_toolbar: true
274
+
275
+ # Mock external services
276
+ mock_external_services: true
277
+
278
+ # Test data
279
+ use_test_data: true
280
+ test_data_path: "tests/fixtures"
281
+
282
+ # =============================================================================
283
+ # Environment-Specific Overrides
284
+ # =============================================================================
285
+ # This section demonstrates how to handle environment-specific configs
286
+ # In practice, use separate files: config.dev.yaml, config.prod.yaml
287
+
288
+ environments:
289
+ development:
290
+ debug: true
291
+ logging:
292
+ level: "DEBUG"
293
+ database:
294
+ name: "myapp_dev"
295
+
296
+ staging:
297
+ debug: false
298
+ logging:
299
+ level: "INFO"
300
+ database:
301
+ name: "myapp_staging"
302
+
303
+ production:
304
+ debug: false
305
+ logging:
306
+ level: "WARNING"
307
+ database:
308
+ name: "myapp_prod"
309
+ security:
310
+ rate_limit:
311
+ requests_per_minute: 100
312
+
313
+ # =============================================================================
314
+ # Custom Application Settings
315
+ # =============================================================================
316
+ # Add your application-specific configuration here
317
+ custom:
318
+ # Example: Business logic thresholds
319
+ thresholds:
320
+ max_upload_size: 10485760 # 10MB in bytes
321
+ min_password_length: 8
322
+ session_timeout: 1800 # 30 minutes
323
+
324
+ # Example: Feature-specific settings
325
+ notification:
326
+ channels:
327
+ email: true
328
+ sms: false
329
+ push: true
330
+ batch_size: 100
331
+ retry_failed: true
332
+
333
+ # =============================================================================
334
+ # Configuration Metadata
335
+ # =============================================================================
336
+ _metadata:
337
+ version: "1.0"
338
+ last_updated: "2024-01-01"
339
+ schema_version: "2.0"
340
+
341
+ # Validation rules (optional - for config validation tools)
342
+ validation:
343
+ required_env_vars:
344
+ - "DB_PASSWORD"
345
+ - "JWT_SECRET"
346
+ - "SESSION_SECRET"
347
+
348
+ deprecated_keys:
349
+ - key: "old_setting"
350
+ replacement: "new_setting"
351
+ since: "0.9.0"
@@ -0,0 +1,216 @@
1
+ # Architecture Validation Checklist
2
+
3
+ Use this checklist when validating architectural decisions before implementation.
4
+
5
+ ## 1. Current State Documentation
6
+
7
+ **Map Before Modify** - Document what exists before making changes.
8
+
9
+ - [ ] Current system architecture documented
10
+ - [ ] Component diagram created
11
+ - [ ] Data flow diagram created
12
+ - [ ] Integration points identified
13
+ - [ ] Dependencies mapped
14
+
15
+ - [ ] Touch points identified
16
+ - [ ] All modules that will be affected listed
17
+ - [ ] Cross-module dependencies documented
18
+ - [ ] External system integrations noted
19
+
20
+ - [ ] Baseline capabilities cataloged
21
+ - [ ] Current feature list documented
22
+ - [ ] Performance metrics recorded
23
+ - [ ] User workflows mapped
24
+
25
+ ## 2. Proposed Solution Design
26
+
27
+ **Architect Before Build** - Complete design before code.
28
+
29
+ - [ ] Multiple options presented (A/B/C minimum)
30
+ - [ ] Option A: [Name and brief description]
31
+ - [ ] Option B: [Name and brief description]
32
+ - [ ] Option C: [Name and brief description]
33
+
34
+ - [ ] Trade-offs explicitly documented
35
+ - [ ] Performance implications
36
+ - [ ] Complexity implications
37
+ - [ ] Maintainability implications
38
+ - [ ] Scalability implications
39
+
40
+ - [ ] Chosen architecture documented
41
+ - [ ] System architecture diagram
42
+ - [ ] Component interaction diagram
43
+ - [ ] Data flow diagram
44
+ - [ ] Configuration schema (YAML)
45
+ - [ ] Integration points
46
+ - [ ] API contracts
47
+
48
+ ## 3. Multi-Agent Validation
49
+
50
+ **No Unilateral Structural Decisions** - Get validation from multiple perspectives.
51
+
52
+ - [ ] Product Owner validation
53
+ - [ ] Business goals alignment confirmed
54
+ - [ ] User value clearly articulated
55
+ - [ ] Priority justified
56
+
57
+ - [ ] Architect validation
58
+ - [ ] Technical soundness confirmed
59
+ - [ ] Scalability verified
60
+ - [ ] Security reviewed
61
+ - [ ] Performance acceptable
62
+
63
+ - [ ] User/Stakeholder validation
64
+ - [ ] Final decision documented
65
+ - [ ] Rationale recorded
66
+ - [ ] Approval obtained
67
+
68
+ ## 4. Capability Preservation
69
+
70
+ **Never Lose Capability** - Ensure no regression in functionality.
71
+
72
+ - [ ] Gold Standard Baseline comparison
73
+ - [ ] All previous capabilities mapped
74
+ - [ ] New design maintains ALL capabilities
75
+ - [ ] Any removals explicitly justified and approved
76
+
77
+ - [ ] Feature parity verified
78
+ - [ ] Feature comparison table created
79
+ - [ ] Migration path for removed features (if any)
80
+ - [ ] Backward compatibility plan
81
+
82
+ ## 5. Zero Coupling Validation
83
+
84
+ **Max Modularity** - Ensure independence between components.
85
+
86
+ - [ ] Module independence verified
87
+ - [ ] Each expansion pack can run independently
88
+ - [ ] No hardcoded cross-module dependencies
89
+ - [ ] Clean interfaces defined
90
+
91
+ - [ ] Configuration externalized
92
+ - [ ] All cross-module references in YAML config
93
+ - [ ] No hardcoded paths or identifiers
94
+ - [ ] Configuration schema documented
95
+
96
+ - [ ] Coupling check script passed
97
+ - [ ] `scripts/check_coupling.py` executed
98
+ - [ ] All coupling violations resolved
99
+ - [ ] Zero-coupling principle maintained
100
+
101
+ ## 6. Configuration Strategy
102
+
103
+ **Config > Hardcoding** - Externalize all mutable values.
104
+
105
+ - [ ] Mutable values identified
106
+ - [ ] List of all configuration points
107
+ - [ ] Default values defined
108
+ - [ ] Override mechanisms specified
109
+
110
+ - [ ] YAML configuration created
111
+ - [ ] Configuration schema defined
112
+ - [ ] Example configurations provided
113
+ - [ ] Validation rules specified
114
+
115
+ - [ ] No hardcoding violations
116
+ - [ ] All paths configurable
117
+ - [ ] All thresholds configurable
118
+ - [ ] All integration points configurable
119
+
120
+ ## 7. Testing Strategy
121
+
122
+ **Quality Escape Hatch** - Tests as safety net for implementation.
123
+
124
+ - [ ] Test plan defined
125
+ - [ ] Unit test strategy
126
+ - [ ] Integration test strategy
127
+ - [ ] End-to-end test scenarios
128
+
129
+ - [ ] Test coverage targets set
130
+ - [ ] Minimum coverage percentage
131
+ - [ ] Critical paths identified
132
+ - [ ] Edge cases documented
133
+
134
+ - [ ] Logging strategy defined
135
+ - [ ] Key observation points identified
136
+ - [ ] Log levels specified
137
+ - [ ] Debugging hooks planned
138
+
139
+ ## 8. Documentation Requirements
140
+
141
+ **Documentation is Non-Negotiable** - Must precede implementation.
142
+
143
+ - [ ] Architecture Decision Record (ADR) created
144
+ - [ ] Context documented
145
+ - [ ] Decision documented
146
+ - [ ] Consequences documented
147
+ - [ ] Use template: `assets/adr-template.md`
148
+
149
+ - [ ] Implementation guide created
150
+ - [ ] Short and actionable
151
+ - [ ] "How to customize" focus
152
+ - [ ] Code examples included
153
+ - [ ] Configuration examples included
154
+
155
+ - [ ] API documentation created (if applicable)
156
+ - [ ] Endpoints documented
157
+ - [ ] Request/response schemas
158
+ - [ ] Authentication requirements
159
+ - [ ] Rate limits and constraints
160
+
161
+ ## 9. Risk Assessment
162
+
163
+ **Mitigate Before Implementing** - Identify and address risks upfront.
164
+
165
+ - [ ] Risks identified
166
+ - [ ] Technical risks listed
167
+ - [ ] Business risks listed
168
+ - [ ] Timeline risks listed
169
+
170
+ - [ ] Mitigations defined
171
+ - [ ] Each risk has mitigation strategy
172
+ - [ ] Mitigation feasibility verified
173
+ - [ ] Contingency plans documented
174
+
175
+ - [ ] Risk mitigation validated
176
+ - [ ] `scripts/validate_risk_mitigation.py` executed
177
+ - [ ] All high-priority risks addressed
178
+ - [ ] Acceptable risk level confirmed
179
+
180
+ ## 10. Implementation Readiness
181
+
182
+ **Final Gate** - Ready to proceed to code.
183
+
184
+ - [ ] All previous checklist items completed
185
+ - [ ] Architecture approved by all stakeholders
186
+ - [ ] Zero coupling verified
187
+ - [ ] Configuration externalized
188
+ - [ ] Tests defined
189
+ - [ ] Documentation complete
190
+ - [ ] Risks mitigated
191
+
192
+ ---
193
+
194
+ ## Stop Rules Trigger Check
195
+
196
+ **If ANY of these are true, STOP and remediate:**
197
+
198
+ - ⛔ Capability loss detected vs baseline
199
+ - ⛔ Structural decision without multi-agent validation
200
+ - ⛔ Coupling between modules detected
201
+ - ⛔ Missing architectural documentation
202
+ - ⛔ Hardcoded mutable configuration values
203
+
204
+ → If stopped, consult `stop-rules-guide.md` for remediation steps.
205
+
206
+ ---
207
+
208
+ ## Sign-Off
209
+
210
+ - **Product Owner**: _________________ Date: _______
211
+ - **Architect**: _________________ Date: _______
212
+ - **Lead Developer**: _________________ Date: _______
213
+
214
+ **Architecture Approved**: [ ] YES [ ] NO
215
+
216
+ **Proceed to Implementation**: [ ] YES [ ] NO
@@ -0,0 +1,119 @@
1
+ # Pre-Implementation Checklist
2
+
3
+ Use this checklist before writing any code to ensure architectural validation is complete.
4
+
5
+ ## Architecture Validation
6
+
7
+ - [ ] **Architecture documented and validated?**
8
+ - [ ] Architecture diagrams created
9
+ - [ ] Component interactions defined
10
+ - [ ] Data flows mapped
11
+ - [ ] Integration points identified
12
+ - [ ] Multi-agent validation completed
13
+ - [ ] Architecture Decision Record (ADR) written
14
+
15
+ ## Core Use Case Definition
16
+
17
+ - [ ] **Core use case clearly defined?**
18
+ - [ ] Primary user workflow documented
19
+ - [ ] Success criteria specified
20
+ - [ ] Acceptance criteria written
21
+ - [ ] Edge cases identified
22
+ - [ ] Error scenarios mapped
23
+
24
+ ## Configuration Externalization
25
+
26
+ - [ ] **Configuration externalized to YAML?**
27
+ - [ ] All mutable values identified
28
+ - [ ] YAML schema defined
29
+ - [ ] Default configuration created
30
+ - [ ] Configuration validation rules specified
31
+ - [ ] No hardcoded values in planned implementation
32
+ - [ ] Configuration documentation written
33
+
34
+ ## Test Strategy
35
+
36
+ - [ ] **Test strategy defined?**
37
+ - [ ] Test plan written
38
+ - [ ] Unit test cases identified
39
+ - [ ] Integration test scenarios defined
40
+ - [ ] Coverage targets set
41
+ - [ ] Test data requirements identified
42
+
43
+ ## Logging Strategy
44
+
45
+ - [ ] **Logging/observation points identified?**
46
+ - [ ] Key decision points for logging marked
47
+ - [ ] Log levels assigned
48
+ - [ ] Error handling points identified
49
+ - [ ] Debugging hooks planned
50
+ - [ ] Monitoring requirements specified
51
+
52
+ ## Dependencies
53
+
54
+ - [ ] **Dependencies validated?**
55
+ - [ ] All required libraries/packages identified
56
+ - [ ] Version compatibility verified
57
+ - [ ] License compliance checked
58
+ - [ ] Zero-coupling maintained (no hardcoded cross-module deps)
59
+
60
+ ## Documentation Plan
61
+
62
+ - [ ] **Documentation plan ready?**
63
+ - [ ] API documentation outline created
64
+ - [ ] Usage examples planned
65
+ - [ ] Configuration guide outline created
66
+ - [ ] "How to customize" focus maintained
67
+
68
+ ## Implementation Readiness
69
+
70
+ - [ ] **Ready to implement?**
71
+ - [ ] All above checklist items completed
72
+ - [ ] Team has clear understanding of architecture
73
+ - [ ] First coding task identified
74
+ - [ ] Code review process established
75
+
76
+ ---
77
+
78
+ ## Quality Escape Hatch Acknowledgment
79
+
80
+ **Remember**: Code quality is negotiable IF backed by tests.
81
+
82
+ You may proceed with:
83
+ - ✓ "Ugly" code WITH comprehensive tests
84
+ - ✓ Quick implementation WITH test plan + logging
85
+ - ✓ 80% feature completeness IF core case works
86
+
87
+ You must NOT proceed with:
88
+ - ✗ "Ugly" code WITHOUT tests
89
+ - ✗ Hardcoded mutable values
90
+ - ✗ Implementation without core case defined
91
+
92
+ ---
93
+
94
+ ## Stop Rules Check
95
+
96
+ Before proceeding, verify NONE of these conditions are true:
97
+
98
+ - ⛔ Capability loss vs baseline
99
+ - ⛔ Structural decision without multi-agent validation
100
+ - ⛔ Coupling between modules
101
+ - ⛔ Missing architectural documentation
102
+ - ⛔ Quick & dirty code WITHOUT test plan and logs
103
+ - ⛔ Hardcoded mutable configuration values
104
+
105
+ **If any stop rule triggered**: HALT and remediate before coding.
106
+
107
+ ---
108
+
109
+ ## Approval
110
+
111
+ **Pre-Implementation Checklist Completed**: [ ] YES [ ] NO
112
+
113
+ **Approved to Start Coding**: [ ] YES [ ] NO
114
+
115
+ **Approver**: _________________ Date: _______
116
+
117
+ **First Task**: _________________________________________________
118
+
119
+ **Estimated Completion**: _______