aiox-core 5.0.4 → 5.0.5

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 (618) hide show
  1. package/.aiox-core/core/config/config-cache.js +10 -1
  2. package/.aiox-core/core/config/config-loader.js +2 -2
  3. package/.aiox-core/core/execution/build-state-manager.js +1 -1
  4. package/.aiox-core/core/synapse/runtime/hook-runtime.js +11 -2
  5. package/.aiox-core/core/utils/yaml-validator.js +1 -1
  6. package/.aiox-core/data/entity-registry.yaml +761 -796
  7. package/.aiox-core/development/scripts/workflow-validator.js +92 -18
  8. package/.aiox-core/development/tasks/create-workflow.md +44 -42
  9. package/.aiox-core/development/tasks/project-status.md +280 -0
  10. package/.aiox-core/development/tasks/validate-workflow.md +2 -2
  11. package/.aiox-core/development/templates/squad/workflow-template.yaml +106 -91
  12. package/.aiox-core/development/templates/squad-template/workflows/example-workflow.yaml +72 -51
  13. package/.aiox-core/development/workflows/README.md +12 -5
  14. package/.aiox-core/development/workflows/development-cycle.yaml +90 -0
  15. package/.aiox-core/infrastructure/scripts/config-cache.js +10 -1
  16. package/.aiox-core/install-manifest.yaml +35 -39
  17. package/.aiox-core/lib/build.json +1 -0
  18. package/.claude/hooks/precompact-session-digest.cjs +47 -12
  19. package/.claude/hooks/synapse-engine.cjs +13 -13
  20. package/README.en.md +23 -37
  21. package/README.md +26 -38
  22. package/package.json +1 -1
  23. package/packages/installer/src/wizard/i18n.js +18 -15
  24. package/packages/installer/src/wizard/pro-setup.js +302 -68
  25. package/.aiox-core/core/execution/predictive-pipeline.js +0 -1283
  26. package/.aiox-core/core/memory/decision-memory.js +0 -564
  27. package/.aiox-core/data/registry-update-log.jsonl +0 -2
  28. package/pro/README.md +0 -66
  29. package/pro/feature-registry.yaml +0 -225
  30. package/pro/license/degradation.js +0 -220
  31. package/pro/license/errors.js +0 -450
  32. package/pro/license/feature-gate.js +0 -354
  33. package/pro/license/index.js +0 -181
  34. package/pro/license/license-api.js +0 -701
  35. package/pro/license/license-cache.js +0 -523
  36. package/pro/license/license-crypto.js +0 -303
  37. package/pro/package.json +0 -39
  38. package/pro/pro-config.yaml +0 -63
  39. package/pro/squads/README.md +0 -24
  40. package/pro/squads/design/HEADLINE.md +0 -3
  41. package/pro/squads/design/README.md +0 -109
  42. package/pro/squads/design/agents/brad-frost.md +0 -1097
  43. package/pro/squads/design/agents/dan-mall.md +0 -857
  44. package/pro/squads/design/agents/dave-malouf.md +0 -2272
  45. package/pro/squads/design/agents/design-chief.md +0 -114
  46. package/pro/squads/design/agents/ds-foundations-lead.md +0 -194
  47. package/pro/squads/design/agents/ds-token-architect.md +0 -361
  48. package/pro/squads/design/agents/nano-banana-generator.md +0 -162
  49. package/pro/squads/design/agents/storybook-expert.md +0 -809
  50. package/pro/squads/design/checklists/atomic-refactor-checklist.md +0 -299
  51. package/pro/squads/design/checklists/component-adaptation-checklist.md +0 -81
  52. package/pro/squads/design/checklists/design-fidelity-checklist.md +0 -283
  53. package/pro/squads/design/checklists/design-handoff-checklist.md +0 -55
  54. package/pro/squads/design/checklists/design-team-health-checklist.md +0 -454
  55. package/pro/squads/design/checklists/designops-maturity-checklist.md +0 -518
  56. package/pro/squads/design/checklists/ds-a11y-release-gate-checklist.md +0 -45
  57. package/pro/squads/design/checklists/ds-accessibility-wcag-checklist.md +0 -147
  58. package/pro/squads/design/checklists/ds-component-quality-checklist.md +0 -150
  59. package/pro/squads/design/checklists/ds-critical-eye-review-checklist.md +0 -147
  60. package/pro/squads/design/checklists/ds-migration-readiness-checklist.md +0 -99
  61. package/pro/squads/design/checklists/ds-pattern-audit-checklist.md +0 -164
  62. package/pro/squads/design/checklists/reading-accessibility-checklist.md +0 -275
  63. package/pro/squads/design/checklists/token-mapping-checklist.md +0 -107
  64. package/pro/squads/design/config/coding-standards.md +0 -286
  65. package/pro/squads/design/config/source-tree.md +0 -59
  66. package/pro/squads/design/config/tech-stack.md +0 -48
  67. package/pro/squads/design/config.yaml +0 -204
  68. package/pro/squads/design/data/agentic-design-systems-guide.md +0 -46
  69. package/pro/squads/design/data/agentic-ds-principles.md +0 -100
  70. package/pro/squads/design/data/atomic-design-principles.md +0 -108
  71. package/pro/squads/design/data/atomic-refactor-rules.md +0 -582
  72. package/pro/squads/design/data/base-component-specs.md +0 -972
  73. package/pro/squads/design/data/brad-frost-analysis-extract-implicit.yaml +0 -270
  74. package/pro/squads/design/data/brad-frost-analysis-find-0.8.yaml +0 -176
  75. package/pro/squads/design/data/brad-frost-analysis-qa-report.yaml +0 -168
  76. package/pro/squads/design/data/brad-frost-dna.yaml +0 -713
  77. package/pro/squads/design/data/capability-tools.yaml +0 -124
  78. package/pro/squads/design/data/component-adaptation-changelog.md +0 -318
  79. package/pro/squads/design/data/consolidation-algorithms.md +0 -168
  80. package/pro/squads/design/data/critical-eye-scoring-rules.yaml +0 -240
  81. package/pro/squads/design/data/design-token-best-practices.md +0 -107
  82. package/pro/squads/design/data/design-tokens-spec.yaml +0 -418
  83. package/pro/squads/design/data/ds-reference-architectures.md +0 -93
  84. package/pro/squads/design/data/f2-qa-report.md +0 -168
  85. package/pro/squads/design/data/f3-derived-components-changelog.md +0 -100
  86. package/pro/squads/design/data/f3-qa-report.md +0 -208
  87. package/pro/squads/design/data/figma-base-components-raw.md +0 -102
  88. package/pro/squads/design/data/figma-tokens-raw.md +0 -1549
  89. package/pro/squads/design/data/fluent2-design-principles.md +0 -114
  90. package/pro/squads/design/data/high-retention-reading-guide.md +0 -349
  91. package/pro/squads/design/data/integration-patterns.md +0 -207
  92. package/pro/squads/design/data/internal-quality-chain.yaml +0 -48
  93. package/pro/squads/design/data/motion-tokens-guide.md +0 -202
  94. package/pro/squads/design/data/roi-calculation-guide.md +0 -142
  95. package/pro/squads/design/data/token-mapping-reference.md +0 -213
  96. package/pro/squads/design/data/w3c-dtcg-spec-reference.md +0 -149
  97. package/pro/squads/design/data/wcag-compliance-guide.md +0 -267
  98. package/pro/squads/design/docs/AUDIT_REPORT.md +0 -97
  99. package/pro/squads/design/docs/DS-CURATION-PIPELINE-PROPOSAL.md +0 -577
  100. package/pro/squads/design/docs/UPGRADE_PLAN.md +0 -618
  101. package/pro/squads/design/docs/brad-frost-research-validation.md +0 -372
  102. package/pro/squads/design/docs/dave-malouf-research-validation.md +0 -391
  103. package/pro/squads/design/docs/tool-discovery-report.md +0 -87
  104. package/pro/squads/design/docs/tool-integration-plan.md +0 -44
  105. package/pro/squads/design/protocols/ai-first-governance.md +0 -56
  106. package/pro/squads/design/protocols/governance-execution-boundary.md +0 -59
  107. package/pro/squads/design/protocols/handoff.md +0 -60
  108. package/pro/squads/design/rules/.claude-rules.md +0 -88
  109. package/pro/squads/design/scripts/design-system/curate_colors.cjs +0 -447
  110. package/pro/squads/design/scripts/design-system/curate_components.cjs +0 -217
  111. package/pro/squads/design/scripts/design-system/curate_radius.cjs +0 -190
  112. package/pro/squads/design/scripts/design-system/curate_shadows.cjs +0 -208
  113. package/pro/squads/design/scripts/design-system/curate_spacing.cjs +0 -243
  114. package/pro/squads/design/scripts/design-system/curate_typography.cjs +0 -404
  115. package/pro/squads/design/scripts/design-system/design-system-metadata.test.js +0 -49
  116. package/pro/squads/design/scripts/design-system/design_manifest_lib.cjs +0 -142
  117. package/pro/squads/design/scripts/design-system/fetch_page_images.cjs +0 -195
  118. package/pro/squads/design/scripts/design-system/generate_components_metadata.cjs +0 -114
  119. package/pro/squads/design/scripts/design-system/generate_curation_report.cjs +0 -258
  120. package/pro/squads/design/scripts/design-system/generate_tokens.cjs +0 -342
  121. package/pro/squads/design/scripts/design-system/sync_design_manifest.cjs +0 -27
  122. package/pro/squads/design/scripts/design-system/test_mcp_tools.cjs +0 -232
  123. package/pro/squads/design/scripts/design-system/validate_components_metadata.cjs +0 -96
  124. package/pro/squads/design/scripts/design-system/validate_curation.cjs +0 -226
  125. package/pro/squads/design/scripts/design-system/validate_design_manifest_drift.cjs +0 -72
  126. package/pro/squads/design/scripts/design-system/validate_mcp_skeleton.cjs +0 -38
  127. package/pro/squads/design/scripts/design-system/validate_registry.cjs +0 -186
  128. package/pro/squads/design/scripts/design-system/validate_task_checklist_bindings.cjs +0 -78
  129. package/pro/squads/design/scripts/dissect-artifact.cjs +0 -806
  130. package/pro/squads/design/scripts/validate-a11y-integration.cjs +0 -40
  131. package/pro/squads/design/scripts/validate-design-squad.py +0 -411
  132. package/pro/squads/design/squad.yaml +0 -714
  133. package/pro/squads/design/tasks/a11y-audit.md +0 -340
  134. package/pro/squads/design/tasks/aria-audit.md +0 -525
  135. package/pro/squads/design/tasks/atomic-refactor-execute.md +0 -391
  136. package/pro/squads/design/tasks/atomic-refactor-plan.md +0 -262
  137. package/pro/squads/design/tasks/audit-reading-experience.md +0 -350
  138. package/pro/squads/design/tasks/audit-tailwind-config.md +0 -101
  139. package/pro/squads/design/tasks/bootstrap-shadcn-library.md +0 -96
  140. package/pro/squads/design/tasks/bundle-audit.md +0 -245
  141. package/pro/squads/design/tasks/contrast-matrix.md +0 -373
  142. package/pro/squads/design/tasks/create-doc.md +0 -135
  143. package/pro/squads/design/tasks/dead-code-detection.md +0 -329
  144. package/pro/squads/design/tasks/design-compare.md +0 -414
  145. package/pro/squads/design/tasks/design-process-optimization.md +0 -407
  146. package/pro/squads/design/tasks/design-review-orchestration.md +0 -99
  147. package/pro/squads/design/tasks/design-team-scaling.md +0 -407
  148. package/pro/squads/design/tasks/design-tooling-audit.md +0 -404
  149. package/pro/squads/design/tasks/design-triage.md +0 -89
  150. package/pro/squads/design/tasks/designops-maturity-assessment.md +0 -364
  151. package/pro/squads/design/tasks/designops-metrics-setup.md +0 -465
  152. package/pro/squads/design/tasks/ds-agentic-audit.md +0 -100
  153. package/pro/squads/design/tasks/ds-agentic-setup.md +0 -103
  154. package/pro/squads/design/tasks/ds-audit-codebase.md +0 -273
  155. package/pro/squads/design/tasks/ds-build-component.md +0 -349
  156. package/pro/squads/design/tasks/ds-build-mcp-server.md +0 -84
  157. package/pro/squads/design/tasks/ds-calculate-roi.md +0 -282
  158. package/pro/squads/design/tasks/ds-compose-molecule.md +0 -106
  159. package/pro/squads/design/tasks/ds-consolidate-patterns.md +0 -253
  160. package/pro/squads/design/tasks/ds-context-contract.md +0 -194
  161. package/pro/squads/design/tasks/ds-critical-eye-compare.md +0 -130
  162. package/pro/squads/design/tasks/ds-critical-eye-decide.md +0 -139
  163. package/pro/squads/design/tasks/ds-critical-eye-inventory.md +0 -111
  164. package/pro/squads/design/tasks/ds-critical-eye-report.md +0 -101
  165. package/pro/squads/design/tasks/ds-critical-eye-score.md +0 -109
  166. package/pro/squads/design/tasks/ds-designops.md +0 -99
  167. package/pro/squads/design/tasks/ds-extend-pattern.md +0 -91
  168. package/pro/squads/design/tasks/ds-extract-tokens.md +0 -312
  169. package/pro/squads/design/tasks/ds-figma-pipeline.md +0 -95
  170. package/pro/squads/design/tasks/ds-fluent-audit.md +0 -105
  171. package/pro/squads/design/tasks/ds-fluent-build.md +0 -110
  172. package/pro/squads/design/tasks/ds-generate-ai-metadata.md +0 -81
  173. package/pro/squads/design/tasks/ds-generate-cursor-rules.md +0 -74
  174. package/pro/squads/design/tasks/ds-generate-documentation.md +0 -101
  175. package/pro/squads/design/tasks/ds-generate-migration-strategy.md +0 -331
  176. package/pro/squads/design/tasks/ds-generate-shock-report.md +0 -323
  177. package/pro/squads/design/tasks/ds-govern-a11y-compliance.md +0 -93
  178. package/pro/squads/design/tasks/ds-governance.md +0 -187
  179. package/pro/squads/design/tasks/ds-health-metrics.md +0 -278
  180. package/pro/squads/design/tasks/ds-integrate-squad.md +0 -130
  181. package/pro/squads/design/tasks/ds-integrate-workspace.md +0 -100
  182. package/pro/squads/design/tasks/ds-legacy-modernization.md +0 -302
  183. package/pro/squads/design/tasks/ds-mcp-status.md +0 -65
  184. package/pro/squads/design/tasks/ds-motion-audit.md +0 -118
  185. package/pro/squads/design/tasks/ds-multi-framework.md +0 -96
  186. package/pro/squads/design/tasks/ds-parallelization-gate.md +0 -246
  187. package/pro/squads/design/tasks/ds-query.md +0 -90
  188. package/pro/squads/design/tasks/ds-rebuild-artifact.md +0 -369
  189. package/pro/squads/design/tasks/ds-reverse-engineer.md +0 -194
  190. package/pro/squads/design/tasks/ds-scan-artifact.md +0 -131
  191. package/pro/squads/design/tasks/ds-setup-design-system.md +0 -297
  192. package/pro/squads/design/tasks/ds-sync-registry.md +0 -287
  193. package/pro/squads/design/tasks/ds-theme-multi-brand.md +0 -90
  194. package/pro/squads/design/tasks/ds-token-modes.md +0 -108
  195. package/pro/squads/design/tasks/ds-token-w3c-extract.md +0 -105
  196. package/pro/squads/design/tasks/ds-validate-ai-readiness.md +0 -69
  197. package/pro/squads/design/tasks/ds-visual-regression.md +0 -130
  198. package/pro/squads/design/tasks/execute-checklist.md +0 -141
  199. package/pro/squads/design/tasks/export-design-tokens-dtcg.md +0 -97
  200. package/pro/squads/design/tasks/f1-apply-foundations.md +0 -154
  201. package/pro/squads/design/tasks/f1-ingest-figma-tokens.md +0 -130
  202. package/pro/squads/design/tasks/f1-map-tokens-to-shadcn.md +0 -145
  203. package/pro/squads/design/tasks/f1-qa-foundations.md +0 -95
  204. package/pro/squads/design/tasks/f2-adapt-shadcn-components.md +0 -155
  205. package/pro/squads/design/tasks/f2-ingest-base-components.md +0 -148
  206. package/pro/squads/design/tasks/f2-qa-base-components.md +0 -98
  207. package/pro/squads/design/tasks/f3-derive-components.md +0 -145
  208. package/pro/squads/design/tasks/f3-qa-derived-components.md +0 -101
  209. package/pro/squads/design/tasks/focus-order-audit.md +0 -450
  210. package/pro/squads/design/tasks/sb-brownfield-migrate.md +0 -367
  211. package/pro/squads/design/tasks/sb-brownfield-scan.md +0 -318
  212. package/pro/squads/design/tasks/sb-configure.md +0 -230
  213. package/pro/squads/design/tasks/sb-expand-shadcn.md +0 -213
  214. package/pro/squads/design/tasks/sb-generate-all-stories.md +0 -288
  215. package/pro/squads/design/tasks/sb-install.md +0 -152
  216. package/pro/squads/design/tasks/sb-sync-workspace.md +0 -239
  217. package/pro/squads/design/tasks/sb-verify.md +0 -203
  218. package/pro/squads/design/tasks/tailwind-upgrade.md +0 -117
  219. package/pro/squads/design/tasks/token-usage-analytics.md +0 -262
  220. package/pro/squads/design/tasks/ux-rewrite-sixth-grade.md +0 -82
  221. package/pro/squads/design/tasks/validate-design-fidelity.md +0 -222
  222. package/pro/squads/design/templates/agent-template.yaml +0 -46
  223. package/pro/squads/design/templates/clone-mind-template.md +0 -352
  224. package/pro/squads/design/templates/component-prompt-injection-tmpl.md +0 -236
  225. package/pro/squads/design/templates/component-visual-spec-tmpl.md +0 -378
  226. package/pro/squads/design/templates/critical-eye-cycle-report-tmpl.md +0 -165
  227. package/pro/squads/design/templates/design-fidelity-report-tmpl.md +0 -155
  228. package/pro/squads/design/templates/ds-ai-component-metadata-schema-tmpl.json +0 -138
  229. package/pro/squads/design/templates/ds-artifact-analysis.md +0 -70
  230. package/pro/squads/design/templates/ds-health-report-tmpl.md +0 -236
  231. package/pro/squads/design/templates/ds-migration-strategy-tmpl.md +0 -524
  232. package/pro/squads/design/templates/ds-state-persistence-tmpl.yaml +0 -194
  233. package/pro/squads/design/templates/ds-tokens-schema-tmpl.yaml +0 -139
  234. package/pro/squads/design/templates/migration-strategy-tmpl.md +0 -524
  235. package/pro/squads/design/templates/reading-design-tokens.css +0 -26
  236. package/pro/squads/design/templates/state-persistence-tmpl.yaml +0 -219
  237. package/pro/squads/design/templates/tokens-schema-tmpl.yaml +0 -305
  238. package/pro/squads/design/workflows/agentic-readiness.yaml +0 -83
  239. package/pro/squads/design/workflows/audit-only.yaml +0 -198
  240. package/pro/squads/design/workflows/brownfield-complete.yaml +0 -257
  241. package/pro/squads/design/workflows/critical-eye.yaml +0 -184
  242. package/pro/squads/design/workflows/dtcg-tokens-governance.yaml +0 -64
  243. package/pro/squads/design/workflows/foundations-pipeline.yaml +0 -192
  244. package/pro/squads/design/workflows/greenfield-new.yaml +0 -192
  245. package/pro/squads/design/workflows/motion-quality.yaml +0 -65
  246. package/pro/squads/design/workflows/self-healing-workflow.yaml +0 -237
  247. package/pro/squads/design/workflows/storybook-brownfield-migration.yaml +0 -400
  248. package/pro/squads/design/workflows/storybook-full-setup.yaml +0 -280
  249. package/pro/squads/index.js +0 -145
  250. package/pro/squads/mmos-squad/minds/alex_hormozi/artifacts/ARQUITETURA_COGNITIVA_DE_ALEX_HORMOZI_EXTRA/303/207/303/203O_COMPLETA.md +0 -215
  251. package/pro/squads/mmos-squad/minds/alex_hormozi/artifacts/A_Rotina_de_Alta_Performance_de_Alex_Hormozi_Arquitetura,_Motiva/303/247/303/265es_e_Replica/303/247/303/243o.md +0 -309
  252. package/pro/squads/mmos-squad/minds/alex_hormozi/artifacts/O_sistema_completo_de_cria/303/247/303/243o_de_conte/303/272do_de_Alex_Hormozi.md +0 -416
  253. package/pro/squads/mmos-squad/minds/alex_hormozi/artifacts/Processo_Cria/303/247/303/243o_Conte/303/272do_Hormozi.md +0 -0
  254. package/pro/squads/mmos-squad/minds/brad_frost/.backup/2026-01-13/artifacts/DECIS/303/225ES_ESTRAT/303/211GICAS_DE_DESIGN_SYSTEMS_(2022_2025).md +0 -1038
  255. package/pro/squads/mmos-squad/minds/brad_frost/.backup/2026-01-13/artifacts/FRAMEWORK_COMPLETO_DE_IMPLEMENTA/303/207/303/203O_ATOMIC_DESIGN.md +0 -797
  256. package/pro/squads/mmos-squad/minds/brad_frost/.backup/2026-01-13/artifacts/O_Cemit/303/251rio_de_Design_Systems.md +0 -447
  257. package/pro/squads/mmos-squad/minds/brad_frost/.backup/2026-01-13/artifacts/PRINC/303/215PIOS_DE_RACIOC/303/215NIO.md +0 -190
  258. package/pro/squads/mmos-squad/minds/brad_frost/artifacts/DECIS/303/225ES_ESTRAT/303/211GICAS_DE_DESIGN_SYSTEMS_(2022_2025).md +0 -1038
  259. package/pro/squads/mmos-squad/minds/brad_frost/artifacts/FRAMEWORK_COMPLETO_DE_IMPLEMENTA/303/207/303/203O_ATOMIC_DESIGN.md +0 -797
  260. package/pro/squads/mmos-squad/minds/brad_frost/artifacts/O_Cemit/303/251rio_de_Design_Systems.md +0 -447
  261. package/pro/squads/mmos-squad/minds/brad_frost/artifacts/PRINC/303/215PIOS_DE_RACIOC/303/215NIO.md +0 -190
  262. package/pro/squads/mmos-squad/minds/elon_musk/artifacts/AN/303/201LISE_PSICOM/303/211TRICA_PROFUNDA_ELON_MUSK.md +0 -291
  263. package/pro/squads/mmos-squad/minds/elon_musk/artifacts/ASSINATURA_LINGU/303/215STICA_ELON_MUSK.md +0 -485
  264. package/pro/squads/mmos-squad/minds/elon_musk/artifacts/A_Arquitetura_Mental_de_Elon_Musk_Uma_An/303/241lise_Sistem/303/241tica_dos_Frameworks_de_Pensamento.md +0 -907
  265. package/pro/squads/mmos-squad/minds/elon_musk/artifacts/Dossi/303/252_Estrat/303/251gico_A_Arquitetura_Psicol/303/263gica_de_Elon_Musk.md +0 -252
  266. package/pro/squads/mmos-squad/minds/elon_musk/artifacts/Os_Padr/303/265es_de_Leitura_de_Elon_Musk_e_Sua_Influ/303/252ncia_Sistem/303/241tica.md +0 -287
  267. package/pro/squads/mmos-squad/minds/elon_musk/artifacts/Uma_an/303/241lise_psicol/303/263gica_abrangente.md +0 -187
  268. package/pro/squads/mmos-squad/minds/eugene_schwartz/artifacts/AN/303/201LISE_PSICOM/303/211TRICA_PROFUNDA_EUGENE_M._SCHWARTZ.md +0 -790
  269. package/pro/squads/mmos-squad/minds/eugene_schwartz/artifacts/An/303/241lise_Completa_Eugene_Schwartz_Arquitetura_Cognitiva_DEEP.md +0 -210
  270. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/5H_EXTRA/303/207/303/203O_COGNITIVA_COMPLETA_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -226
  271. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/AN/303/201LISE_COMPARATIVA_REVISADA_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -246
  272. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/AN/303/201LISE_LINGU/303/215STICA_CARIOCA_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -274
  273. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/AN/303/201LISE_PSICOM/303/211TRICA_DEFINITIVA_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -821
  274. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/AN/303/201LISE_PSICOM/303/211TRICA_PROFUNDA_PEDRO_VAL/303/211RIO.md +0 -1844
  275. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/C/303/201LCULO_DE_RARIDADE_ESTAT/303/215STICA_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -154
  276. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/EXTRA/303/207/303/203O_PEDRO_VAL/303/211RIO.md +0 -237
  277. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/MAPEAMENTO_LINGU/303/215STICO_PROFUNDO.md +0 -161
  278. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/META_AXIOMAS_DE_PEDRO_VAL/303/211RIO.md +0 -256
  279. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/SISTEMA_IMUNOL/303/223GICO_COGNITIVO_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -586
  280. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/SISTEMA_IMUNOL/303/223GICO_COGNITIVO_V2_/342/200/224_CLONE_IA.md +0 -452
  281. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/TABELA_COMPARATIVA_AN/303/201LISE_COMPLETA_DOS_CLONES_IA.md +0 -102
  282. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/WHATSAPP_PADR/303/225ES_LINGU/303/215STICOS_PEDRO_VAL/303/211RIO_LOPEZ.md +0 -286
  283. package/pro/squads/mmos-squad/minds/pedro_valerio/sources/artifacts_v1.6/heur/303/255sticas_de_decis/303/243o_e_algoritmos_mentais_/303/272nicos.md +0 -268
  284. package/pro/squads/mmos-squad/minds/ray_kurzweil/sources/books/PROTOCOLO_COMPLETO_DE_INTERROGA/303/207/303/203O_-_NAVAL_RAVIKANT.md +0 -3624
  285. package/pro/squads/mmos-squad/minds/steve_jobs/artifacts/FRAMEWORK_COMPLETO_DE_IMPLEMENTA/303/207/303/203O_JOBS.md +0 -488
  286. package/pro/squads/mmos-squad/minds/steve_jobs/artifacts/Framework_Cabe/303/247a_Steve.md +0 -257
  287. package/pro/squads/mmos-squad/minds/steve_jobs/artifacts/Relat/303/263rio_Abrangente_sobre_Steve_Jobs_para_Cria/303/247/303/243o_de_Clone_de_IA.md +0 -370
  288. package/pro/squads/mmos-squad/minds/steve_jobs/artifacts/Steve_Jobs_An/303/241lise_Psicol/303/263gica_Profunda_e_Valida/303/247/303/243o_Comportamental.md +0 -65
  289. package/pro/squads/squad-creator-pro/.state.json +0 -32
  290. package/pro/squads/squad-creator-pro/CHANGELOG.md +0 -275
  291. package/pro/squads/squad-creator-pro/HEADLINE.md +0 -3
  292. package/pro/squads/squad-creator-pro/README.md +0 -1059
  293. package/pro/squads/squad-creator-pro/agents/oalanicolas.md +0 -438
  294. package/pro/squads/squad-creator-pro/agents/pedro-valerio.md +0 -449
  295. package/pro/squads/squad-creator-pro/agents/squad-chief.md +0 -1651
  296. package/pro/squads/squad-creator-pro/agents/thiago_finch.md +0 -976
  297. package/pro/squads/squad-creator-pro/assessments/axioma-assessment-wf-create-squad.yaml +0 -325
  298. package/pro/squads/squad-creator-pro/checklists/.gitkeep +0 -1
  299. package/pro/squads/squad-creator-pro/checklists/agent-depth-checklist.md +0 -244
  300. package/pro/squads/squad-creator-pro/checklists/agent-quality-gate.md +0 -434
  301. package/pro/squads/squad-creator-pro/checklists/create-agent-checklist.md +0 -184
  302. package/pro/squads/squad-creator-pro/checklists/create-squad-checklist.md +0 -219
  303. package/pro/squads/squad-creator-pro/checklists/create-workflow-checklist.md +0 -224
  304. package/pro/squads/squad-creator-pro/checklists/deep-research-quality.md +0 -506
  305. package/pro/squads/squad-creator-pro/checklists/executor-matrix-checklist.md +0 -260
  306. package/pro/squads/squad-creator-pro/checklists/mental-model-integration-checklist.md +0 -95
  307. package/pro/squads/squad-creator-pro/checklists/mind-validation.md +0 -374
  308. package/pro/squads/squad-creator-pro/checklists/quality-gate-checklist.md +0 -385
  309. package/pro/squads/squad-creator-pro/checklists/smoke-test-agent.md +0 -313
  310. package/pro/squads/squad-creator-pro/checklists/sop-validation.md +0 -250
  311. package/pro/squads/squad-creator-pro/checklists/squad-checklist.md +0 -1014
  312. package/pro/squads/squad-creator-pro/checklists/squad-overview-checklist.md +0 -393
  313. package/pro/squads/squad-creator-pro/checklists/task-anatomy-checklist.md +0 -626
  314. package/pro/squads/squad-creator-pro/config/.gitkeep +0 -1
  315. package/pro/squads/squad-creator-pro/config/axioma-validator.yaml +0 -371
  316. package/pro/squads/squad-creator-pro/config/heuristics.yaml +0 -753
  317. package/pro/squads/squad-creator-pro/config/model-routing.yaml +0 -693
  318. package/pro/squads/squad-creator-pro/config/quality-gates.yaml +0 -415
  319. package/pro/squads/squad-creator-pro/config/scoring-rubric.yaml +0 -199
  320. package/pro/squads/squad-creator-pro/config/squad-config.yaml +0 -165
  321. package/pro/squads/squad-creator-pro/config/task-anatomy.yaml +0 -263
  322. package/pro/squads/squad-creator-pro/config/veto-conditions.yaml +0 -455
  323. package/pro/squads/squad-creator-pro/config.yaml +0 -35
  324. package/pro/squads/squad-creator-pro/data/.gitkeep +0 -1
  325. package/pro/squads/squad-creator-pro/data/an-anchor-words.yaml +0 -78
  326. package/pro/squads/squad-creator-pro/data/an-clone-anti-patterns.yaml +0 -148
  327. package/pro/squads/squad-creator-pro/data/an-clone-validation.yaml +0 -190
  328. package/pro/squads/squad-creator-pro/data/an-diagnostic-framework.yaml +0 -164
  329. package/pro/squads/squad-creator-pro/data/an-output-examples.yaml +0 -102
  330. package/pro/squads/squad-creator-pro/data/an-source-signals.yaml +0 -98
  331. package/pro/squads/squad-creator-pro/data/an-source-tiers.yaml +0 -119
  332. package/pro/squads/squad-creator-pro/data/best-practices.md +0 -986
  333. package/pro/squads/squad-creator-pro/data/core-heuristics.md +0 -510
  334. package/pro/squads/squad-creator-pro/data/decision-heuristics-framework.md +0 -620
  335. package/pro/squads/squad-creator-pro/data/executor-decision-tree.md +0 -774
  336. package/pro/squads/squad-creator-pro/data/executor-matrix-framework.md +0 -441
  337. package/pro/squads/squad-creator-pro/data/fusion-decision-points-analysis.md +0 -397
  338. package/pro/squads/squad-creator-pro/data/fusion-executor-analysis.md +0 -677
  339. package/pro/squads/squad-creator-pro/data/hybridops-patterns.md +0 -1351
  340. package/pro/squads/squad-creator-pro/data/internal-infrastructure-library.yaml +0 -99
  341. package/pro/squads/squad-creator-pro/data/mental-model-task-matrix.yaml +0 -692
  342. package/pro/squads/squad-creator-pro/data/pipeline-patterns.md +0 -352
  343. package/pro/squads/squad-creator-pro/data/pm-best-practices.md +0 -440
  344. package/pro/squads/squad-creator-pro/data/pv-anchor-words.yaml +0 -64
  345. package/pro/squads/squad-creator-pro/data/pv-authenticity-markers.yaml +0 -200
  346. package/pro/squads/squad-creator-pro/data/pv-meta-axiomas.yaml +0 -162
  347. package/pro/squads/squad-creator-pro/data/pv-output-examples.yaml +0 -342
  348. package/pro/squads/squad-creator-pro/data/pv-workflow-validation.yaml +0 -318
  349. package/pro/squads/squad-creator-pro/data/quality-dimensions-framework.md +0 -405
  350. package/pro/squads/squad-creator-pro/data/squad-analytics-guide.md +0 -252
  351. package/pro/squads/squad-creator-pro/data/squad-kb.md +0 -987
  352. package/pro/squads/squad-creator-pro/data/squad-registry.yaml +0 -841
  353. package/pro/squads/squad-creator-pro/data/squad-type-definitions.yaml +0 -578
  354. package/pro/squads/squad-creator-pro/data/tier-system-framework.md +0 -475
  355. package/pro/squads/squad-creator-pro/data/tool-evaluation-framework.md +0 -847
  356. package/pro/squads/squad-creator-pro/data/tool-registry.yaml +0 -700
  357. package/pro/squads/squad-creator-pro/docs/ADR-001-model-tier-qualification.md +0 -344
  358. package/pro/squads/squad-creator-pro/docs/AGENT-COLLABORATION.md +0 -609
  359. package/pro/squads/squad-creator-pro/docs/ARCHITECTURE-DIAGRAMS.md +0 -1466
  360. package/pro/squads/squad-creator-pro/docs/COMMANDS.md +0 -544
  361. package/pro/squads/squad-creator-pro/docs/CONCEPTS.md +0 -584
  362. package/pro/squads/squad-creator-pro/docs/FAQ.md +0 -731
  363. package/pro/squads/squad-creator-pro/docs/HITL-FLOW.md +0 -255
  364. package/pro/squads/squad-creator-pro/docs/MIGRATION-PLAN-AGENT-CONFORMITY.md +0 -861
  365. package/pro/squads/squad-creator-pro/docs/MIGRATION-ROADMAP-HYBRIDOPS.md +0 -1161
  366. package/pro/squads/squad-creator-pro/docs/MODEL-TIER-QUALIFICATION.md +0 -337
  367. package/pro/squads/squad-creator-pro/docs/PATTERN-LIBRARY.md +0 -333
  368. package/pro/squads/squad-creator-pro/docs/PEDRO-VALERIO-ARCHITECTURE.md +0 -456
  369. package/pro/squads/squad-creator-pro/docs/POR-ONDE-COMECAR.md +0 -210
  370. package/pro/squads/squad-creator-pro/docs/QUICK-START.md +0 -205
  371. package/pro/squads/squad-creator-pro/docs/RFC-001-deterministic-refactoring.md +0 -463
  372. package/pro/squads/squad-creator-pro/docs/TOOL-RECOMMENDATIONS.md +0 -379
  373. package/pro/squads/squad-creator-pro/docs/TROUBLESHOOTING.md +0 -412
  374. package/pro/squads/squad-creator-pro/docs/TUTORIAL-COMPLETO.md +0 -458
  375. package/pro/squads/squad-creator-pro/docs/optimize-v4-proposal.md +0 -354
  376. package/pro/squads/squad-creator-pro/docs/session-report-2026-02-01.md +0 -411
  377. package/pro/squads/squad-creator-pro/docs/sop-extraction-process.md +0 -674
  378. package/pro/squads/squad-creator-pro/docs/squad-chief-agent-flow.md +0 -981
  379. package/pro/squads/squad-creator-pro/docs/squad-creation-pipeline-workflow.md +0 -937
  380. package/pro/squads/squad-creator-pro/docs/task-optimization-framework.md +0 -229
  381. package/pro/squads/squad-creator-pro/docs/validation-report-2026-02-01.md +0 -439
  382. package/pro/squads/squad-creator-pro/minds/oalanicolas/artifacts/HANDOFF_PROTOCOL.md +0 -269
  383. package/pro/squads/squad-creator-pro/minds/oalanicolas/artifacts/SOURCE_CLASSIFICATION.md +0 -258
  384. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_001.md +0 -166
  385. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_002.md +0 -206
  386. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_003.md +0 -239
  387. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_004.md +0 -153
  388. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_005.md +0 -161
  389. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_006.md +0 -166
  390. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_007.md +0 -190
  391. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_008.md +0 -191
  392. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_009.md +0 -234
  393. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_010.md +0 -240
  394. package/pro/squads/squad-creator-pro/minds/pedro_valerio/artifacts/Assinatura_Linguistica.md +0 -355
  395. package/pro/squads/squad-creator-pro/minds/pedro_valerio/artifacts/META_AXIOMAS.md +0 -277
  396. package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_BS_001.md +0 -144
  397. package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_PA_001.md +0 -174
  398. package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_PM_001.md +0 -191
  399. package/pro/squads/squad-creator-pro/package.json +0 -26
  400. package/pro/squads/squad-creator-pro/protocols/ai-first-governance.md +0 -63
  401. package/pro/squads/squad-creator-pro/scripts/README.md +0 -246
  402. package/pro/squads/squad-creator-pro/scripts/__pycache__/dependency_check.cpython-314.pyc +0 -0
  403. package/pro/squads/squad-creator-pro/scripts/__pycache__/inventory.cpython-314.pyc +0 -0
  404. package/pro/squads/squad-creator-pro/scripts/__pycache__/naming_validator.cpython-314.pyc +0 -0
  405. package/pro/squads/squad-creator-pro/scripts/__pycache__/quality_gate.cpython-314.pyc +0 -0
  406. package/pro/squads/squad-creator-pro/scripts/__pycache__/scoring.cpython-314.pyc +0 -0
  407. package/pro/squads/squad-creator-pro/scripts/__pycache__/yaml_validator.cpython-314.pyc +0 -0
  408. package/pro/squads/squad-creator-pro/scripts/assess-sources.sh +0 -443
  409. package/pro/squads/squad-creator-pro/scripts/checklist_validator.py +0 -451
  410. package/pro/squads/squad-creator-pro/scripts/clone-review.sh +0 -394
  411. package/pro/squads/squad-creator-pro/scripts/coherence-validator.py +0 -836
  412. package/pro/squads/squad-creator-pro/scripts/create-agent-preflight.py +0 -243
  413. package/pro/squads/squad-creator-pro/scripts/cross-provider/compare-results.js +0 -281
  414. package/pro/squads/squad-creator-pro/scripts/cross-provider/cross-provider-runner.js +0 -462
  415. package/pro/squads/squad-creator-pro/scripts/dependency_check.py +0 -333
  416. package/pro/squads/squad-creator-pro/scripts/fidelity-score.sh +0 -519
  417. package/pro/squads/squad-creator-pro/scripts/generate-squad-greeting.js +0 -426
  418. package/pro/squads/squad-creator-pro/scripts/generate-squad-guide.js +0 -558
  419. package/pro/squads/squad-creator-pro/scripts/inventory.py +0 -269
  420. package/pro/squads/squad-creator-pro/scripts/lib/config-loader.js +0 -151
  421. package/pro/squads/squad-creator-pro/scripts/model-tier-validator.cjs +0 -369
  422. package/pro/squads/squad-creator-pro/scripts/model-usage-logger.cjs +0 -245
  423. package/pro/squads/squad-creator-pro/scripts/modernization-score.sh +0 -308
  424. package/pro/squads/squad-creator-pro/scripts/naming_validator.py +0 -299
  425. package/pro/squads/squad-creator-pro/scripts/on-specialist-complete.py +0 -98
  426. package/pro/squads/squad-creator-pro/scripts/quality_gate.py +0 -413
  427. package/pro/squads/squad-creator-pro/scripts/refresh-registry.py +0 -270
  428. package/pro/squads/squad-creator-pro/scripts/save-session-metrics.py +0 -136
  429. package/pro/squads/squad-creator-pro/scripts/scaffold-squad.cjs +0 -281
  430. package/pro/squads/squad-creator-pro/scripts/scoring.py +0 -395
  431. package/pro/squads/squad-creator-pro/scripts/security_scanner.py +0 -378
  432. package/pro/squads/squad-creator-pro/scripts/squad-analytics.py +0 -585
  433. package/pro/squads/squad-creator-pro/scripts/squad-context-loader.cjs +0 -205
  434. package/pro/squads/squad-creator-pro/scripts/squad-state-manager.cjs +0 -451
  435. package/pro/squads/squad-creator-pro/scripts/squad-workflow-runner.cjs +0 -471
  436. package/pro/squads/squad-creator-pro/scripts/squad_utils.py +0 -261
  437. package/pro/squads/squad-creator-pro/scripts/sync-ide-command.py +0 -590
  438. package/pro/squads/squad-creator-pro/scripts/tests/__init__.py +0 -1
  439. package/pro/squads/squad-creator-pro/scripts/tests/conftest.py +0 -309
  440. package/pro/squads/squad-creator-pro/scripts/tests/run_bash_tests.sh +0 -29
  441. package/pro/squads/squad-creator-pro/scripts/tests/test_assess_sources.sh +0 -216
  442. package/pro/squads/squad-creator-pro/scripts/tests/test_checklist_validator.py +0 -396
  443. package/pro/squads/squad-creator-pro/scripts/tests/test_clone_review.sh +0 -239
  444. package/pro/squads/squad-creator-pro/scripts/tests/test_coherence_validator.py +0 -212
  445. package/pro/squads/squad-creator-pro/scripts/tests/test_dependency_check.py +0 -361
  446. package/pro/squads/squad-creator-pro/scripts/tests/test_fidelity_score.sh +0 -298
  447. package/pro/squads/squad-creator-pro/scripts/tests/test_inventory.py +0 -307
  448. package/pro/squads/squad-creator-pro/scripts/tests/test_modernization_score.sh +0 -211
  449. package/pro/squads/squad-creator-pro/scripts/tests/test_naming_validator.py +0 -373
  450. package/pro/squads/squad-creator-pro/scripts/tests/test_quality_gate.py +0 -280
  451. package/pro/squads/squad-creator-pro/scripts/tests/test_refresh_registry.py +0 -338
  452. package/pro/squads/squad-creator-pro/scripts/tests/test_scoring.py +0 -366
  453. package/pro/squads/squad-creator-pro/scripts/tests/test_security_scanner.py +0 -354
  454. package/pro/squads/squad-creator-pro/scripts/tests/test_squad_analytics.py +0 -450
  455. package/pro/squads/squad-creator-pro/scripts/tests/test_validate_clone.sh +0 -252
  456. package/pro/squads/squad-creator-pro/scripts/tests/test_yaml_validator.py +0 -412
  457. package/pro/squads/squad-creator-pro/scripts/validate-agent-output.py +0 -115
  458. package/pro/squads/squad-creator-pro/scripts/validate-all.sh +0 -49
  459. package/pro/squads/squad-creator-pro/scripts/validate-squad-structure.py +0 -535
  460. package/pro/squads/squad-creator-pro/scripts/validate-squad.sh +0 -944
  461. package/pro/squads/squad-creator-pro/scripts/yaml_validator.py +0 -528
  462. package/pro/squads/squad-creator-pro/skills/squad.md +0 -301
  463. package/pro/squads/squad-creator-pro/squad.yaml +0 -36
  464. package/pro/squads/squad-creator-pro/tasks/CHANGELOG.md +0 -80
  465. package/pro/squads/squad-creator-pro/tasks/an-assess-sources.md +0 -78
  466. package/pro/squads/squad-creator-pro/tasks/an-clone-review.md +0 -104
  467. package/pro/squads/squad-creator-pro/tasks/an-compare-outputs.md +0 -354
  468. package/pro/squads/squad-creator-pro/tasks/an-design-clone.md +0 -79
  469. package/pro/squads/squad-creator-pro/tasks/an-diagnose-clone.md +0 -87
  470. package/pro/squads/squad-creator-pro/tasks/an-extract-dna.md +0 -90
  471. package/pro/squads/squad-creator-pro/tasks/an-extract-framework.md +0 -100
  472. package/pro/squads/squad-creator-pro/tasks/an-fidelity-score.md +0 -108
  473. package/pro/squads/squad-creator-pro/tasks/an-validate-clone.md +0 -96
  474. package/pro/squads/squad-creator-pro/tasks/auto-acquire-sources.md +0 -349
  475. package/pro/squads/squad-creator-pro/tasks/collect-sources.md +0 -533
  476. package/pro/squads/squad-creator-pro/tasks/create-agent.md +0 -768
  477. package/pro/squads/squad-creator-pro/tasks/create-documentation.md +0 -258
  478. package/pro/squads/squad-creator-pro/tasks/create-pipeline.md +0 -296
  479. package/pro/squads/squad-creator-pro/tasks/create-squad.md +0 -933
  480. package/pro/squads/squad-creator-pro/tasks/create-task.md +0 -1148
  481. package/pro/squads/squad-creator-pro/tasks/create-template.md +0 -474
  482. package/pro/squads/squad-creator-pro/tasks/create-workflow.md +0 -720
  483. package/pro/squads/squad-creator-pro/tasks/deconstruct.md +0 -167
  484. package/pro/squads/squad-creator-pro/tasks/deep-research-pre-agent.md +0 -566
  485. package/pro/squads/squad-creator-pro/tasks/detect-squad-context.md +0 -81
  486. package/pro/squads/squad-creator-pro/tasks/discover-tools.md +0 -944
  487. package/pro/squads/squad-creator-pro/tasks/extract-implicit.md +0 -352
  488. package/pro/squads/squad-creator-pro/tasks/extract-knowledge.md +0 -577
  489. package/pro/squads/squad-creator-pro/tasks/extract-sop.md +0 -320
  490. package/pro/squads/squad-creator-pro/tasks/extract-thinking-dna.md +0 -653
  491. package/pro/squads/squad-creator-pro/tasks/extract-voice-dna.md +0 -619
  492. package/pro/squads/squad-creator-pro/tasks/find-0.8.md +0 -222
  493. package/pro/squads/squad-creator-pro/tasks/install-commands.md +0 -373
  494. package/pro/squads/squad-creator-pro/tasks/lookup-model.md +0 -78
  495. package/pro/squads/squad-creator-pro/tasks/migrate-workflows-to-yaml.md +0 -259
  496. package/pro/squads/squad-creator-pro/tasks/next-squad.md +0 -487
  497. package/pro/squads/squad-creator-pro/tasks/optimize-workflow.md +0 -851
  498. package/pro/squads/squad-creator-pro/tasks/optimize.md +0 -1082
  499. package/pro/squads/squad-creator-pro/tasks/parallel-discovery.md +0 -58
  500. package/pro/squads/squad-creator-pro/tasks/pv-audit.md +0 -244
  501. package/pro/squads/squad-creator-pro/tasks/pv-axioma-assessment-wf-clone-mind.yaml +0 -256
  502. package/pro/squads/squad-creator-pro/tasks/pv-axioma-assessment.md +0 -83
  503. package/pro/squads/squad-creator-pro/tasks/pv-modernization-score.md +0 -83
  504. package/pro/squads/squad-creator-pro/tasks/qa-after-creation.md +0 -475
  505. package/pro/squads/squad-creator-pro/tasks/qualify-task.md +0 -265
  506. package/pro/squads/squad-creator-pro/tasks/reexecute-squad-phase.md +0 -64
  507. package/pro/squads/squad-creator-pro/tasks/refresh-registry.md +0 -403
  508. package/pro/squads/squad-creator-pro/tasks/smoke-test-model-routing.md +0 -167
  509. package/pro/squads/squad-creator-pro/tasks/squad-analytics.md +0 -265
  510. package/pro/squads/squad-creator-pro/tasks/squad-fusion.md +0 -817
  511. package/pro/squads/squad-creator-pro/tasks/squad-overview.md +0 -683
  512. package/pro/squads/squad-creator-pro/tasks/sync-ide-command.md +0 -392
  513. package/pro/squads/squad-creator-pro/tasks/update-mind.md +0 -428
  514. package/pro/squads/squad-creator-pro/tasks/upgrade-squad.md +0 -919
  515. package/pro/squads/squad-creator-pro/tasks/validate-extraction.md +0 -209
  516. package/pro/squads/squad-creator-pro/tasks/validate-final-artifacts.md +0 -80
  517. package/pro/squads/squad-creator-pro/tasks/validate-squad.md +0 -1385
  518. package/pro/squads/squad-creator-pro/templates/.gitkeep +0 -1
  519. package/pro/squads/squad-creator-pro/templates/agent-flow-doc-tmpl.md +0 -512
  520. package/pro/squads/squad-creator-pro/templates/agent-tmpl.md +0 -697
  521. package/pro/squads/squad-creator-pro/templates/config-tmpl.yaml +0 -352
  522. package/pro/squads/squad-creator-pro/templates/handoff-insumos-tmpl.yaml +0 -112
  523. package/pro/squads/squad-creator-pro/templates/orchestrator-tmpl.md +0 -74
  524. package/pro/squads/squad-creator-pro/templates/pipeline-progress-tmpl.py +0 -373
  525. package/pro/squads/squad-creator-pro/templates/pipeline-runner-tmpl.py +0 -444
  526. package/pro/squads/squad-creator-pro/templates/pipeline-state-tmpl.py +0 -413
  527. package/pro/squads/squad-creator-pro/templates/pop-extractor-prompt.md +0 -549
  528. package/pro/squads/squad-creator-pro/templates/quality-dashboard-tmpl.md +0 -286
  529. package/pro/squads/squad-creator-pro/templates/quality-gate-tmpl.yaml +0 -589
  530. package/pro/squads/squad-creator-pro/templates/readme-tmpl.md +0 -231
  531. package/pro/squads/squad-creator-pro/templates/research-output-tmpl.md +0 -625
  532. package/pro/squads/squad-creator-pro/templates/research-prompt-tmpl.md +0 -479
  533. package/pro/squads/squad-creator-pro/templates/squad-prd-tmpl.md +0 -464
  534. package/pro/squads/squad-creator-pro/templates/squad-readme-tmpl.md +0 -170
  535. package/pro/squads/squad-creator-pro/templates/story-create-agent-tmpl.md +0 -284
  536. package/pro/squads/squad-creator-pro/templates/task-tmpl.md +0 -461
  537. package/pro/squads/squad-creator-pro/templates/template-tmpl.yaml +0 -227
  538. package/pro/squads/squad-creator-pro/templates/workflow-doc-tmpl.md +0 -860
  539. package/pro/squads/squad-creator-pro/templates/workflow-tmpl.yaml +0 -394
  540. package/pro/squads/squad-creator-pro/test-cases/BATCH-PROGRESS.md +0 -268
  541. package/pro/squads/squad-creator-pro/test-cases/QUALIFICATION-DASHBOARD.yaml +0 -13
  542. package/pro/squads/squad-creator-pro/test-cases/_template.yaml +0 -147
  543. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/ASSESSMENT-SUMMARY.md +0 -275
  544. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/ASSESSMENT_SUMMARY.md +0 -140
  545. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/CHECKPOINT_MATRIX.md +0 -202
  546. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/EXECUTION-REPORT.md +0 -413
  547. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/EXECUTION_NOTES.md +0 -358
  548. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/README-v2.2.2.md +0 -299
  549. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/README.md +0 -320
  550. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/TEST-REPORT-v2.1.md +0 -351
  551. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/VERIFICATION-CHECKLIST.txt +0 -247
  552. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/formal-qualification-report.yaml +0 -389
  553. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-output.yaml +0 -366
  554. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.1-output.yaml +0 -452
  555. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.2.1-output.yaml +0 -281
  556. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.2.2-output.yaml +0 -332
  557. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/opus-baseline.yaml +0 -517
  558. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/qualification-report.yaml +0 -213
  559. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/test-case.yaml +0 -69
  560. package/pro/squads/squad-creator-pro/test-cases/an-clone-review/haiku-round-1.yaml +0 -213
  561. package/pro/squads/squad-creator-pro/test-cases/an-clone-review/opus-baseline.yaml +0 -566
  562. package/pro/squads/squad-creator-pro/test-cases/an-clone-review/qualification-report.yaml +0 -82
  563. package/pro/squads/squad-creator-pro/test-cases/an-design-clone/test-case.yaml +0 -102
  564. package/pro/squads/squad-creator-pro/test-cases/an-extract-dna/test-case.yaml +0 -105
  565. package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/haiku-round-1.yaml +0 -262
  566. package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/opus-baseline.yaml +0 -266
  567. package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/qualification-report.yaml +0 -94
  568. package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/haiku-round-1.yaml +0 -282
  569. package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/opus-baseline.yaml +0 -470
  570. package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/qualification-report.yaml +0 -106
  571. package/pro/squads/squad-creator-pro/test-cases/collect-sources/test-case.yaml +0 -105
  572. package/pro/squads/squad-creator-pro/test-cases/create-task/test-case.yaml +0 -104
  573. package/pro/squads/squad-creator-pro/test-cases/cross-provider/DASHBOARD.yaml +0 -11
  574. package/pro/squads/squad-creator-pro/test-cases/pv-audit/test-case.yaml +0 -106
  575. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/haiku-output.yaml +0 -209
  576. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/opus-baseline.yaml +0 -96
  577. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/sonnet-output.yaml +0 -30
  578. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/test-case.yaml +0 -129
  579. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/comparison-round-1.yaml +0 -242
  580. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/haiku-round-1.yaml +0 -393
  581. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/opus-baseline.yaml +0 -488
  582. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/qualification-report.yaml +0 -74
  583. package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/haiku-round-1.yaml +0 -292
  584. package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/opus-baseline.yaml +0 -603
  585. package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/qualification-report.yaml +0 -97
  586. package/pro/squads/squad-creator-pro/test-cases/smoke-test-model-routing/test-case.yaml +0 -100
  587. package/pro/squads/squad-creator-pro/test-cases/upgrade-squad/test-case.yaml +0 -106
  588. package/pro/squads/squad-creator-pro/test-cases/validate-squad/comparison-round-1.yaml +0 -223
  589. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-1-MINE.yaml +0 -36
  590. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-1.yaml +0 -193
  591. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-2.yaml +0 -303
  592. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-3-v4-task.yaml +0 -149
  593. package/pro/squads/squad-creator-pro/test-cases/validate-squad/opus-baseline.yaml +0 -529
  594. package/pro/squads/squad-creator-pro/test-cases/validate-squad/opus-round-3-v4-task.yaml +0 -132
  595. package/pro/squads/squad-creator-pro/test-cases/validate-squad/qualification-report.yaml +0 -104
  596. package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/haiku-output-v2-calibrated.yaml +0 -200
  597. package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/haiku-output.yaml +0 -183
  598. package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/opus-baseline.yaml +0 -112
  599. package/pro/squads/squad-creator-pro/utils/.gitkeep +0 -1
  600. package/pro/squads/squad-creator-pro/workflows/.gitkeep +0 -1
  601. package/pro/squads/squad-creator-pro/workflows/create-squad.yaml +0 -348
  602. package/pro/squads/squad-creator-pro/workflows/modules/module-discovery.yaml +0 -16
  603. package/pro/squads/squad-creator-pro/workflows/modules/module-integration.yaml +0 -16
  604. package/pro/squads/squad-creator-pro/workflows/modules/module-quality-gates.yaml +0 -15
  605. package/pro/squads/squad-creator-pro/workflows/validate-squad.yaml +0 -582
  606. package/pro/squads/squad-creator-pro/workflows/wf-auto-acquire-sources.yaml +0 -518
  607. package/pro/squads/squad-creator-pro/workflows/wf-brownfield-upgrade-squad.yaml +0 -46
  608. package/pro/squads/squad-creator-pro/workflows/wf-clone-mind.yaml +0 -521
  609. package/pro/squads/squad-creator-pro/workflows/wf-context-aware-create-squad.yaml +0 -47
  610. package/pro/squads/squad-creator-pro/workflows/wf-create-squad.yaml +0 -1619
  611. package/pro/squads/squad-creator-pro/workflows/wf-cross-provider-qualification.yaml +0 -711
  612. package/pro/squads/squad-creator-pro/workflows/wf-discover-tools.yaml +0 -1439
  613. package/pro/squads/squad-creator-pro/workflows/wf-extraction-pipeline.yaml +0 -486
  614. package/pro/squads/squad-creator-pro/workflows/wf-mind-research-loop.yaml +0 -668
  615. package/pro/squads/squad-creator-pro/workflows/wf-model-tier-qualification.yaml +0 -800
  616. package/pro/squads/squad-creator-pro/workflows/wf-optimize-squad.yaml +0 -684
  617. package/pro/squads/squad-creator-pro/workflows/wf-research-then-create-agent.yaml +0 -921
  618. package/pro/squads/squad-creator-pro/workflows/wf-squad-fusion.yaml +0 -1684
@@ -1,1385 +0,0 @@
1
- # Task: Validate Squad
2
-
3
- **Task ID:** validate-squad
4
- **Version:** 3.3.0
5
- **Purpose:** Validate a squad against AIOS principles using tiered, context-aware validation
6
- **Orchestrator:** @squad-chief
7
- **Process Specialist:** @pedro-valerio
8
- **Mode:** Tiered validation (structure → coverage → quality → contextual)
9
- **Execution Type:** `Hybrid` (Worker scripts for Phases 0-2 + Agent for Phases 3-6)
10
- **Worker Scripts:** `scripts/validate-squad.sh`, `scripts/quality_gate.py`, `scripts/yaml_validator.py`
11
-
12
- **Process Validation (via @pedro-valerio):**
13
- - Audit workflows para verificar se impedem caminhos errados
14
- - Validar veto conditions em cada checkpoint
15
- - Identificar gaps de tempo entre handoffs
16
- - Garantir fluxo unidirecional (cards nunca voltam)
17
-
18
- **Core Philosophy:**
19
- ```
20
- Quality comes from adherence to principles AND context-awareness.
21
- An orchestrator doesn't need voice_dna. An expert agent does.
22
- Validation must understand WHAT type of squad it's validating.
23
- ```
24
-
25
- **Frameworks Used:**
26
- - `config/veto-conditions.yaml` → Veto engine with 10 blocking conditions **[v3.3]**
27
- - `config/task-anatomy.yaml` → 8-field task validation schema **[v3.3]**
28
- - `data/squad-type-definitions.yaml` → Squad type detection and requirements
29
- - `checklists/squad-checklist.md` → Complete validation checklist (v3.0)
30
- - `data/quality-dimensions-framework.md` → Quality scoring
31
- - `data/tier-system-framework.md` → Agent tier validation
32
- - `data/executor-decision-tree.md` → Executor type validation (Worker/Agent/Hybrid/Human) **[v3.2]**
33
- - `data/tool-registry.yaml` → Tool and MCP integration validation **[v3.2]**
34
-
35
- ---
36
-
37
- ## Validation Flow
38
-
39
- ```
40
- INPUT (squad_name)
41
-
42
- [PHASE 0: TYPE DETECTION]
43
- → Detect squad type (Expert/Pipeline/Hybrid)
44
- → Load type-specific requirements
45
-
46
- [PHASE 1: STRUCTURE - TIER 1]
47
- → config.yaml exists and valid
48
- → Entry agent defined and activatable
49
- → All referenced files exist
50
- → BLOCKING: Any failure = ABORT
51
-
52
- [PHASE 2: COVERAGE - TIER 2]
53
- → Checklist coverage for complex tasks (>=30%)
54
- → Orphan task detection (max 2)
55
- → Pipeline phase coverage (Pipeline squads)
56
- → Data file usage (>=50%)
57
- → Tool registry validation (if exists) [v3.2]
58
- → BLOCKING: Coverage failures = ABORT
59
-
60
- [PHASE 3: QUALITY - TIER 3]
61
- → Prompt Quality (20%)
62
- → Pipeline Coherence (20%)
63
- → Checklist Actionability (20%)
64
- → Documentation (20%)
65
- → Optimization Opportunities (20%) [v3.2]
66
- → Score 0-10, threshold 7.0
67
-
68
- [PHASE 4: CONTEXTUAL - TIER 4]
69
- → Expert: voice_dna, objection_algorithms, tiers
70
- → Pipeline: workflow, checkpoints, orchestrator
71
- → Hybrid: persona, behavioral_states, heuristics, executor_decision_tree [v3.2]
72
- → Score 0-10, weighted 20% of final
73
-
74
- [PHASE 5: VETO CHECK]
75
- → Check type-specific veto conditions
76
- → Any veto = FAIL regardless of score
77
-
78
- [PHASE 6: SCORING & REPORT]
79
- → Calculate: (Tier 3 × 0.80) + (Tier 4 × 0.20)
80
- → Generate detailed report
81
-
82
- OUTPUT: Validation Report + Final Score
83
- ```
84
-
85
- ---
86
-
87
- ## Inputs
88
-
89
- | Parameter | Type | Required | Description | Example |
90
- |-----------|------|----------|-------------|---------|
91
- | `squad_name` | string | Yes | Name of squad to validate | `"{your-squad}"` |
92
- | `squad_path` | string | No | Override default path | `"squads/{squad-name}/"` |
93
- | `type_override` | string | No | Force squad type | `"expert"`, `"pipeline"`, `"hybrid"` |
94
-
95
- ---
96
-
97
- ## PHASE 0: TYPE DETECTION
98
-
99
- **Duration:** < 30 seconds
100
- **Mode:** Autonomous
101
- **Reference:** `data/squad-type-definitions.yaml`
102
-
103
- ### Step 0.1: Analyze Squad Structure
104
-
105
- ```yaml
106
- detection_signals:
107
- count_agents:
108
- action: "Count files in agents/"
109
- weight_expert: "high count (+)"
110
- weight_pipeline: "low count (+)"
111
-
112
- check_voice_dna:
113
- action: "Grep for 'voice_dna:' in agent files"
114
- weight_expert: "present (+3)"
115
- weight_pipeline: "absent (neutral)"
116
- weight_hybrid: "absent (neutral)"
117
-
118
- check_workflow:
119
- action: "Look for workflow.yaml or sequential phases in orchestrator"
120
- weight_pipeline: "present (+3)"
121
-
122
- check_heuristics:
123
- action: "Grep for heuristic IDs (PV_*, SC_*)"
124
- weight_hybrid: "present (+3)"
125
-
126
- calculate_ratio:
127
- action: "tasks_count / agents_count"
128
- weight_pipeline: "ratio > 3 (+2)"
129
- weight_expert: "ratio 2-4 (+1)"
130
- weight_hybrid: "ratio ~1 (+2)"
131
- ```
132
-
133
- ### Step 0.2: Determine Type
134
-
135
- ```yaml
136
- detection_algorithm:
137
- expert_score: 0
138
- pipeline_score: 0
139
- hybrid_score: 0
140
-
141
- # Apply weights from signals
142
- if agents_count >= 5: expert_score += 2
143
- if voice_dna_present_in_50_percent: expert_score += 3
144
- if has_tier_organization: expert_score += 1
145
-
146
- if has_orchestrator_agent: pipeline_score += 2
147
- if has_sequential_phases: pipeline_score += 3
148
- if tasks_count > agents_count * 3: pipeline_score += 2
149
-
150
- if has_heuristic_validation: hybrid_score += 3
151
- if has_persona_profile_pattern: hybrid_score += 2
152
- if agents_count ~= phases_count: hybrid_score += 1
153
-
154
- # Determine winner
155
- detected_type: max(expert_score, pipeline_score, hybrid_score)
156
-
157
- # Handle ties
158
- if tie:
159
- if real_person_names_in_agents: "expert"
160
- elif phase_numbering_present: "pipeline"
161
- else: "pipeline" # default
162
- ```
163
-
164
- ### Step 0.3: Load Type Requirements
165
-
166
- ```yaml
167
- load_requirements:
168
- file: "data/squad-type-definitions.yaml"
169
- section: "squad_types.{detected_type}"
170
-
171
- output:
172
- required_components: [...]
173
- optional_components: [...]
174
- veto_conditions: [...]
175
- benchmarks: {...}
176
- ```
177
-
178
- **Output (PHASE 0):**
179
- ```yaml
180
- phase_0_output:
181
- detected_type: "pipeline" # or "expert" or "hybrid"
182
- confidence: 0.85
183
- signals:
184
- agents_count: 1
185
- voice_dna_present: false
186
- has_workflow: true
187
- task_agent_ratio: 19
188
- requirements_loaded: true
189
- ```
190
-
191
- ---
192
-
193
- ## PHASE 1: STRUCTURE (TIER 1 - BLOCKING)
194
-
195
- **Duration:** < 1 minute
196
- **Mode:** Autonomous
197
- **Result:** PASS or ABORT
198
-
199
- ### 1.1 Configuration Check
200
-
201
- ```yaml
202
- structure_checks:
203
- - id: "T1-CFG-001"
204
- check: "config.yaml exists in squad root"
205
- action: "ls {squad_path}/config.yaml"
206
- on_fail: "ABORT - No config.yaml found"
207
-
208
- - id: "T1-CFG-002"
209
- check: "config.yaml is valid YAML"
210
- action: "Parse YAML, check for errors"
211
- on_fail: "ABORT - Invalid YAML syntax"
212
-
213
- - id: "T1-CFG-003"
214
- check: "Required fields present"
215
- fields: ["name", "version", "description", "entry_agent"]
216
- on_fail: "ABORT - Missing required field: {field}"
217
-
218
- - id: "T1-CFG-004"
219
- check: "name uses kebab-case"
220
- pattern: "^[a-z0-9]+(-[a-z0-9]+)*$"
221
- on_fail: "ABORT - Name must be kebab-case"
222
-
223
- - id: "T1-CFG-005"
224
- check: "version follows semver"
225
- pattern: "^\\d+\\.\\d+\\.\\d+$"
226
- on_fail: "ABORT - Version must be X.Y.Z"
227
- ```
228
-
229
- ### 1.2 Entry Point Check
230
-
231
- ```yaml
232
- entry_point_checks:
233
- - id: "T1-ENT-001"
234
- check: "entry_agent file exists"
235
- action: "ls {squad_path}/agents/{entry_agent}.md"
236
- on_fail: "ABORT - Entry agent file not found"
237
-
238
- - id: "T1-ENT-002"
239
- check: "entry_agent has activation-instructions"
240
- action: "Grep for 'activation-instructions:'"
241
- on_fail: "ABORT - Entry agent not activatable"
242
-
243
- - id: "T1-ENT-003"
244
- check: "entry_agent has *help command"
245
- action: "Grep for '*help' in commands section"
246
- on_fail: "ABORT - Entry agent missing *help command"
247
- ```
248
-
249
- ### 1.3 File Reference Check
250
-
251
- ```yaml
252
- reference_checks:
253
- - id: "T1-REF-001"
254
- check: "All config.yaml dependencies exist"
255
- action: |
256
- For each file in config.yaml dependencies:
257
- Check file exists at {squad_path}/{type}/{file}
258
- threshold: "100%"
259
- on_fail: "ABORT - Missing dependency: {file}"
260
-
261
- - id: "T1-REF-002"
262
- check: "All agent dependencies exist"
263
- action: |
264
- For each agent:
265
- For each file in dependencies:
266
- Check file exists
267
- threshold: "80%" # Allow some missing
268
- on_fail_above_threshold: "ABORT - >20% missing references"
269
-
270
- - id: "T1-REF-003"
271
- check: "Required directories exist"
272
- directories: ["agents/"]
273
- conditional:
274
- - "tasks/ if any tasks referenced"
275
- - "checklists/ if complex tasks exist"
276
- on_fail: "ABORT - Missing required directory"
277
- ```
278
-
279
- ### 1.4 Cross-Reference Validation
280
-
281
- ```yaml
282
- cross_reference_checks:
283
- - id: "T1-XREF-001"
284
- check: "All handoff_to targets exist"
285
- action: |
286
- For each agent with handoff_to:
287
- Verify target agent file exists
288
- on_fail: "ABORT - Handoff to non-existent agent: {target}"
289
-
290
- - id: "T1-XREF-002"
291
- check: "All task references valid"
292
- action: |
293
- For each task referenced in agents/workflows:
294
- Verify task file exists in tasks/
295
- on_fail: "ABORT - Task reference invalid: {task}"
296
-
297
- - id: "T1-XREF-003"
298
- check: "All template references valid"
299
- action: |
300
- For each template referenced in tasks:
301
- Verify template file exists
302
- on_fail: "WARNING - Template missing: {template}"
303
-
304
- - id: "T1-XREF-004"
305
- check: "All checklist references valid"
306
- action: |
307
- For each checklist referenced:
308
- Verify checklist file exists
309
- on_fail: "WARNING - Checklist missing: {checklist}"
310
- ```
311
-
312
- ### 1.5 Security Scan
313
-
314
- **Reference:** OWASP Secrets Management, squad-checklist.md SEC-001 to SEC-018
315
-
316
- ```yaml
317
- security_scan:
318
- description: "Comprehensive security scan for secrets and vulnerabilities"
319
-
320
- # Category 1: API Keys & Tokens (BLOCKING)
321
- api_tokens:
322
- - id: "T1-SEC-001"
323
- check: "No hardcoded API keys"
324
- action: "grep -rE '(api[_-]?key|apikey)\\s*[:=]\\s*[^${}]{20,}'"
325
- exclude: "# Placeholder|{{|\\$[A-Z]"
326
- on_match: "ABORT - API key found"
327
-
328
- - id: "T1-SEC-002"
329
- check: "No hardcoded secrets/passwords"
330
- action: "grep -rE '(secret|password|passwd)\\s*[:=]\\s*['\"][^'\"${}]{8,}'"
331
- on_match: "ABORT - Secret/password found"
332
-
333
- - id: "T1-SEC-003"
334
- check: "No bearer/JWT tokens"
335
- action: "grep -rE '(bearer|jwt[_-]?secret)\\s*[:=]\\s*['\"][^'\"]{20,}'"
336
- on_match: "ABORT - Token found"
337
-
338
- # Category 2: Cloud Credentials (BLOCKING)
339
- cloud_credentials:
340
- - id: "T1-SEC-004"
341
- check: "No AWS Access Keys"
342
- action: "grep -rE 'AKIA[A-Z0-9]{16}'"
343
- on_match: "ABORT - AWS Access Key found"
344
-
345
- - id: "T1-SEC-005"
346
- check: "No AWS Secret Keys"
347
- action: "grep -rE 'aws[_-]?secret.*['\"][A-Za-z0-9/+=]{40}'"
348
- on_match: "ABORT - AWS Secret Key found"
349
-
350
- - id: "T1-SEC-006"
351
- check: "No GCP Service Account Keys"
352
- action: "grep -rE '\"type\":\\s*\"service_account\"'"
353
- on_match: "ABORT - GCP Service Account found"
354
-
355
- # Category 3: Private Keys (BLOCKING)
356
- private_keys:
357
- - id: "T1-SEC-007"
358
- check: "No private keys in content"
359
- action: "grep -rE '-----BEGIN.*PRIVATE KEY-----'"
360
- on_match: "ABORT - Private key content found"
361
-
362
- - id: "T1-SEC-008"
363
- check: "No private key files"
364
- action: "find . -name '*.pem' -o -name '*.key' -o -name 'id_rsa' -o -name 'id_ecdsa'"
365
- on_match: "ABORT - Private key file found"
366
-
367
- # Category 4: Database URLs (BLOCKING)
368
- database_urls:
369
- - id: "T1-SEC-009"
370
- check: "No database URLs with credentials"
371
- action: "grep -rE '(postgres|mysql|mongodb|redis)://[^:]+:[^@]+@'"
372
- on_match: "ABORT - Database URL with password found"
373
-
374
- - id: "T1-SEC-010"
375
- check: "No Supabase service role keys"
376
- action: "grep -rE 'supabase.*service[_-]?role.*eyJ'"
377
- on_match: "ABORT - Supabase service role key found"
378
-
379
- # Category 5: Sensitive Files (BLOCKING)
380
- sensitive_files:
381
- - id: "T1-SEC-011"
382
- check: "No .env files"
383
- action: "find . -name '.env*' -o -name '*.env'"
384
- on_match: "ABORT - .env file found"
385
-
386
- - id: "T1-SEC-012"
387
- check: "No credential files"
388
- action: "find . -name 'credentials*.json' -o -name 'service-account*.json' -o -name 'secrets.yaml'"
389
- on_match: "ABORT - Credential file found"
390
-
391
- # Category 6: Code Vulnerabilities (WARNING)
392
- code_vulnerabilities:
393
- - id: "T1-SEC-013"
394
- check: "No dangerous eval/exec"
395
- action: "grep -rE '\\b(eval|exec)\\s*\\(' --include='*.py' --include='*.js'"
396
- severity: WARNING
397
- on_match: "WARNING - eval/exec found, review context"
398
-
399
- # False positive exclusions
400
- exclude_patterns:
401
- - "{{.*}}" # Jinja/Mustache placeholders
402
- - "$[A-Z_]+" # Shell variables
403
- - "process.env." # Node.js env
404
- - "os.environ" # Python env
405
- - "# Example:" # Example in comments
406
- - "your-.*-here" # Placeholder text
407
- ```
408
-
409
- **Tier 1 Output:**
410
- ```yaml
411
- tier_1_result:
412
- status: "PASS" # or "ABORT"
413
- checks_run: 11
414
- checks_passed: 11
415
- checks_failed: 0
416
- blocking_issues: []
417
- ```
418
-
419
- ---
420
-
421
- ## PHASE 2: COVERAGE (TIER 2 - BLOCKING)
422
-
423
- **Duration:** 1-2 minutes
424
- **Mode:** Autonomous
425
- **Result:** PASS or ABORT
426
-
427
- ### 2.1 Checklist Coverage
428
-
429
- ```yaml
430
- checklist_coverage:
431
- id: "T2-COV-001"
432
- description: "Complex tasks should have checklists"
433
-
434
- calculation:
435
- step_1: "Count tasks with >500 lines"
436
- step_2: "Count checklists in checklists/"
437
- step_3: "Calculate ratio: checklists / complex_tasks"
438
-
439
- threshold: 0.30 # 30%
440
- result:
441
- pass_if: "ratio >= 0.30"
442
- warn_if: "ratio >= 0.20"
443
- fail_if: "ratio < 0.20"
444
-
445
- on_fail: "ABORT - Insufficient checklist coverage ({ratio}% < 30%)"
446
- ```
447
-
448
- ### 2.2 Orphan Task Detection
449
-
450
- ```yaml
451
- orphan_detection:
452
- id: "T2-ORP-001"
453
- description: "Tasks must be referenced somewhere"
454
-
455
- calculation:
456
- for_each_task_in_tasks:
457
- check_1: "Is task referenced in any agent's commands?"
458
- check_2: "Is task referenced in any agent's dependencies?"
459
- check_3: "Is task referenced in any workflow?"
460
- if_none: "Mark as ORPHAN"
461
-
462
- threshold: 2 # Max orphans allowed
463
- result:
464
- pass_if: "orphan_count <= 2"
465
- warn_if: "orphan_count <= 5"
466
- fail_if: "orphan_count > 5"
467
-
468
- on_fail: "ABORT - Too many orphan tasks: {orphan_list}"
469
- ```
470
-
471
- ### 2.3 Pipeline Phase Coverage (Pipeline squads only)
472
-
473
- ```yaml
474
- phase_coverage:
475
- id: "T2-PHS-001"
476
- description: "All workflow phases must have tasks"
477
- applies_to: "pipeline"
478
-
479
- calculation:
480
- step_1: "List all phases in workflow"
481
- step_2: "For each phase, verify task reference exists"
482
- step_3: "Calculate coverage %"
483
-
484
- threshold: 1.0 # 100%
485
- result:
486
- pass_if: "coverage == 100%"
487
- fail_if: "coverage < 100%"
488
-
489
- on_fail: "ABORT - Phases without tasks: {missing_phases}"
490
- ```
491
-
492
- ### 2.4 Data File Usage
493
-
494
- ```yaml
495
- data_usage:
496
- id: "T2-DAT-001"
497
- description: "Data files should be referenced"
498
-
499
- calculation:
500
- step_1: "List all files in data/"
501
- step_2: "For each file, grep all agents and tasks for filename"
502
- step_3: "Calculate usage %"
503
-
504
- threshold: 0.50 # 50%
505
- result:
506
- pass_if: "usage >= 50%"
507
- warn_if: "usage >= 30%"
508
- fail_if: "usage < 30%"
509
-
510
- on_warn: "WARNING - Low data file usage: {unused_files}"
511
- # Not blocking, just warning
512
- ```
513
-
514
- ### 2.5 Tool Registry Validation [v3.2]
515
-
516
- ```yaml
517
- tool_registry_validation:
518
- id: "T2-TOOL-001"
519
- description: "Validate tool registry if squad uses external tools/MCPs"
520
- applies_when: "data/tool-registry.yaml exists OR scripts/ contains integrations"
521
- reference: "data/tool-registry.yaml"
522
-
523
- checks:
524
- registry_exists:
525
- id: "T2-TOOL-001a"
526
- check: "tool-registry.yaml exists if squad uses external tools"
527
- action: |
528
- If squad has:
529
- - MCP integrations
530
- - External API calls in tasks
531
- - Automation scripts with tool dependencies
532
- THEN tool-registry.yaml SHOULD exist
533
- severity: "WARNING"
534
- on_missing: "WARNING - Squad uses tools but no registry found"
535
-
536
- declared_tools_functional:
537
- id: "T2-TOOL-001b"
538
- check: "Declared tools are accessible"
539
- action: |
540
- For each tool in tool-registry.yaml:
541
- Verify: path exists OR MCP is configured
542
- severity: "WARNING"
543
- on_fail: "WARNING - Tool declared but not accessible: {tool}"
544
-
545
- integration_documented:
546
- id: "T2-TOOL-001c"
547
- check: "Tool integrations documented in README"
548
- action: "Grep README for tool names from registry"
549
- severity: "WARNING"
550
- on_fail: "WARNING - Tools not documented in README"
551
-
552
- result:
553
- pass_if: "All declared tools accessible"
554
- warn_if: "Some tools missing or undocumented"
555
- # Not blocking - tools are enhancement, not requirement
556
- ```
557
-
558
- **Tier 2 Output:**
559
- ```yaml
560
- tier_2_result:
561
- status: "PASS" # or "ABORT"
562
- metrics:
563
- checklist_coverage: "35%"
564
- orphan_tasks: 1
565
- phase_coverage: "100%" # if pipeline
566
- data_usage: "67%"
567
- tool_registry: "N/A" # or "PASS" if exists and valid [v3.2]
568
- issues: []
569
- ```
570
-
571
- ---
572
-
573
- ## PHASE 3: QUALITY (TIER 3 - SCORING)
574
-
575
- **Duration:** 5-10 minutes
576
- **Mode:** Autonomous with sampling
577
- **Result:** Score 0-10
578
-
579
- ### 3.1 Prompt Quality (25%)
580
-
581
- ```yaml
582
- prompt_quality:
583
- id: "T3-PQ"
584
- weight: 0.25
585
- question: "Are task prompts specific, actionable, and reproducible?"
586
-
587
- sampling:
588
- method: "Select 3 representative tasks"
589
- selection:
590
- - "Most complex (highest lines)"
591
- - "Entry/main task"
592
- - "Random task"
593
-
594
- criteria:
595
- - name: "Explicit examples"
596
- points: 3
597
- check: "Task has input/output examples?"
598
-
599
- - name: "Anti-patterns"
600
- points: 2
601
- check: "Task has 'don't do' section?"
602
-
603
- - name: "Success criteria"
604
- points: 2
605
- check: "Task has measurable completion criteria?"
606
-
607
- - name: "Step-by-step"
608
- points: 2
609
- check: "Instructions are sequential and clear?"
610
-
611
- - name: "No vague language"
612
- points: 1
613
- check: "Avoids 'verify', 'ensure', 'check' without specifics?"
614
-
615
- scoring:
616
- per_task: "Sum criteria points (max 10)"
617
- final: "Average of 3 sampled tasks"
618
- ```
619
-
620
- ### 3.2 Pipeline Coherence (25%)
621
-
622
- ```yaml
623
- pipeline_coherence:
624
- id: "T3-PC"
625
- weight: 0.25
626
- question: "Does data flow correctly between components?"
627
-
628
- criteria:
629
- - name: "Output→Input chain"
630
- points: 3
631
- check: |
632
- For each phase transition:
633
- Phase N output field == Phase N+1 input field?
634
- File paths consistent?
635
-
636
- - name: "No sequence collisions"
637
- points: 2
638
- check: "No two tasks have same sequence number?"
639
-
640
- - name: "Checkpoints present"
641
- points: 2
642
- check: |
643
- Quality gate before final output?
644
- Human review at critical points?
645
-
646
- - name: "Failure handling"
647
- points: 2
648
- check: "Rework rules defined for failures?"
649
-
650
- - name: "Dependencies explicit"
651
- points: 1
652
- check: "Task dependencies are listed, not implicit?"
653
-
654
- scoring:
655
- method: "Sum criteria points (max 10)"
656
- ```
657
-
658
- ### 3.3 Checklist Actionability (25%)
659
-
660
- ```yaml
661
- checklist_actionability:
662
- id: "T3-CA"
663
- weight: 0.25
664
- question: "Are checklists measurable and actionable?"
665
-
666
- sampling:
667
- method: "Evaluate all checklists (or max 3)"
668
-
669
- criteria:
670
- - name: "Measurable items"
671
- points: 3
672
- check: |
673
- Items can be answered YES/NO?
674
- Avoids 'verify quality', 'ensure completeness'?
675
-
676
- - name: "Scoring system"
677
- points: 2
678
- check: "Has point values or grades?"
679
-
680
- - name: "Pass/fail thresholds"
681
- points: 2
682
- check: "Defines what score = pass?"
683
-
684
- - name: "Auto-correction"
685
- points: 2
686
- check: "If item fails, guidance on how to fix?"
687
-
688
- - name: "Edge cases"
689
- points: 1
690
- check: "Covers unusual scenarios?"
691
-
692
- scoring:
693
- per_checklist: "Sum criteria points (max 10)"
694
- final: "Average of all checklists"
695
- ```
696
-
697
- ### 3.4 Documentation (25%)
698
-
699
- ```yaml
700
- documentation:
701
- id: "T3-DOC"
702
- weight: 0.25
703
- question: "Can a new user understand and use this squad?"
704
-
705
- criteria:
706
- - name: "README purpose"
707
- points: 2
708
- check: "README clearly explains what squad does?"
709
-
710
- - name: "Getting started"
711
- points: 2
712
- check: "Installation/activation instructions present?"
713
-
714
- - name: "Command examples"
715
- points: 2
716
- check: "Commands documented with usage examples?"
717
-
718
- - name: "Architecture diagram"
719
- points: 1
720
- check: "Visual flow or structure diagram?"
721
-
722
- - name: "Changelog"
723
- points: 1
724
- check: "Version history maintained?"
725
-
726
- - name: "Error handling"
727
- points: 1
728
- check: "Common errors and fixes documented?"
729
-
730
- - name: "Dependencies"
731
- points: 1
732
- check: "External dependencies listed?"
733
-
734
- - name: "Changelog separation" # [v3.2.1]
735
- points: 1
736
- check: |
737
- Tasks >= v2.0.0 have separate CHANGELOG.md?
738
- Reference: HO-DP-001 in best-practices.md
739
-
740
- scoring:
741
- method: "Sum criteria points (max 11, normalized to 10)"
742
- ```
743
-
744
- ### 3.5 Optimization Opportunities [v3.2]
745
-
746
- ```yaml
747
- optimization_opportunities:
748
- id: "T3-OPT"
749
- weight: 0.20
750
- question: "Are tasks using the optimal executor type (Worker vs Agent)?"
751
- reference: "data/executor-decision-tree.md"
752
-
753
- description: |
754
- This check identifies tasks that could be converted from Agent (LLM, expensive)
755
- to Worker (code, cheap) for cost savings. Uses the Executor Decision Tree (Q1-Q6).
756
-
757
- sampling:
758
- method: "Analyze all tasks with execution_type field"
759
- focus: "Tasks marked as Agent that could be Worker"
760
-
761
- criteria:
762
- - name: "Executor type declared"
763
- points: 2
764
- check: "Tasks have execution_type field? (Worker|Agent|Hybrid|Human)"
765
-
766
- - name: "Deterministic tasks use Worker"
767
- points: 3
768
- check: |
769
- Tasks that are 100% deterministic (format, validate, transform)
770
- are marked as Worker, not Agent?
771
- Apply Q1-Q2 from executor-decision-tree.md
772
-
773
- - name: "No expensive Agent misuse"
774
- points: 3
775
- check: |
776
- Agent tasks truly require:
777
- - Language interpretation
778
- - Creative generation
779
- - Context-aware analysis
780
- If task could be a script, DEDUCT points
781
-
782
- - name: "Hybrid correctly applied"
783
- points: 2
784
- check: |
785
- Hybrid tasks have:
786
- - Defined human_checkpoint
787
- - Clear AI vs Human boundaries
788
- - Fallback behavior
789
-
790
- scoring:
791
- method: "Sum criteria points (max 10)"
792
-
793
- economy_projection:
794
- calculate: |
795
- For each Agent task that could be Worker:
796
- monthly_executions: estimated 20/month
797
- agent_cost: ~$0.10-0.50 per execution (tokens)
798
- worker_cost: ~$0.001 per execution (compute)
799
- potential_savings: (agent_cost - worker_cost) × monthly_executions
800
-
801
- output: |
802
- Optimization Report:
803
- - Tasks eligible for conversion: N
804
- - Monthly token savings: ~X tokens
805
- - Monthly cost savings: ~$X
806
-
807
- output_note: |
808
- This check is INFORMATIONAL - not blocking.
809
- Low score indicates optimization opportunity, not failure.
810
- Run `*optimize {squad}` for detailed conversion recommendations.
811
- ```
812
-
813
- **Tier 3 Output:**
814
- ```yaml
815
- tier_3_result:
816
- scores:
817
- prompt_quality: 8.5
818
- pipeline_coherence: 7.0
819
- checklist_actionability: 6.5
820
- documentation: 8.0
821
- optimization_opportunities: 6.0 # Indicates room for improvement
822
- weighted_total: 7.2
823
- details:
824
- prompt_quality_samples: ["brutal-extractor.md", "final-writer.md", "gap-analyzer.md"]
825
- coherence_issues: ["Phase 3.5 not in workflow.yaml", "Sequence 10 collision"]
826
- checklist_issues: ["book-summary-scoring.md missing auto-correction for some items"]
827
- optimization_notes: # [v3.2]
828
- agent_tasks_convertible: 3
829
- potential_monthly_savings: "~$15"
830
- recommendation: "Run *optimize {squad} for details"
831
- ```
832
-
833
- ---
834
-
835
- ## PHASE 4: CONTEXTUAL VALIDATION (TIER 4)
836
-
837
- **Duration:** 3-5 minutes
838
- **Mode:** Type-specific
839
- **Result:** Score 0-10
840
-
841
- ### 4A. Expert Squad Validation
842
-
843
- ```yaml
844
- expert_validation:
845
- applies_to: "expert"
846
-
847
- checks:
848
- voice_dna:
849
- id: "T4E-VD"
850
- weight: 0.30
851
- required: true
852
- criteria:
853
- - "Each agent has voice_dna section"
854
- - "sentence_starters defined by context"
855
- - "metaphors defined with usage"
856
- - "vocabulary.always_use has 5+ terms"
857
- - "vocabulary.never_use has 3+ terms"
858
-
859
- objection_algorithms:
860
- id: "T4E-OA"
861
- weight: 0.25
862
- required: true
863
- criteria:
864
- - "Each agent has objection_algorithms"
865
- - "Minimum 3 objections per agent"
866
- - "Responses are domain-specific"
867
-
868
- output_examples:
869
- id: "T4E-OE"
870
- weight: 0.25
871
- required: true
872
- criteria:
873
- - "Each agent has 3+ examples"
874
- - "Examples show input→output"
875
- - "Examples are realistic"
876
-
877
- tier_organization:
878
- id: "T4E-TO"
879
- weight: 0.20
880
- required: true
881
- criteria:
882
- - "Tier 0 (diagnosis) agents exist"
883
- - "Tier assignments documented"
884
- - "Orchestrator/Chief defined"
885
- ```
886
-
887
- ### 4B. Pipeline Squad Validation
888
-
889
- ```yaml
890
- pipeline_validation:
891
- applies_to: "pipeline"
892
-
893
- checks:
894
- workflow_definition:
895
- id: "T4P-WD"
896
- weight: 0.30
897
- required: true
898
- criteria:
899
- - "Workflow file exists"
900
- - "Phases numbered sequentially"
901
- - "Each phase has: name, task, outputs"
902
- - "Dependencies explicit"
903
-
904
- phase_checkpoints:
905
- id: "T4P-PC"
906
- weight: 0.30
907
- required: true
908
- criteria:
909
- - "Critical phases have checkpoints"
910
- - "Quality gate before final output"
911
- - "Rework rules on failure"
912
-
913
- orchestrator_completeness:
914
- id: "T4P-OC"
915
- weight: 0.25
916
- required: true
917
- criteria:
918
- - "All phases documented in orchestrator"
919
- - "Commands map to tasks"
920
- - "Status tracking capability"
921
-
922
- intermediate_outputs:
923
- id: "T4P-IO"
924
- weight: 0.10
925
- required: true
926
- criteria:
927
- - "Each phase produces output"
928
- - "Output paths consistent"
929
- - "Outputs inspectable"
930
-
931
- automation_script:
932
- id: "T4P-AS"
933
- weight: 0.15
934
- required: false # Required only if phases >= 8
935
- applies_when: "phases_count >= 8"
936
- criteria:
937
- - "Script exists in scripts/ directory"
938
- - "Accepts input parameters (slug/target)"
939
- - "Has --help documentation"
940
- - "Has state management (state.json)"
941
- - "Has progress tracking"
942
- - "Logs to logs/ directory"
943
- - "Supports resume capability"
944
- reference: "YOLO mode automation pattern"
945
- scoring:
946
- 7_of_7: 10
947
- 6_of_7: 8
948
- 5_of_7: 7 # minimum pass
949
- below_5: "FAIL"
950
- ```
951
-
952
- ### 4C. Hybrid Squad Validation
953
-
954
- ```yaml
955
- hybrid_validation:
956
- applies_to: "hybrid"
957
-
958
- checks:
959
- persona_profile:
960
- id: "T4H-PP"
961
- weight: 0.15
962
- required: true
963
- criteria:
964
- - "Each agent has persona_profile"
965
- - "Archetype defined"
966
- - "Communication style documented"
967
-
968
- behavioral_states:
969
- id: "T4H-BS"
970
- weight: 0.15
971
- required: true
972
- criteria:
973
- - "Operational modes defined"
974
- - "Mode triggers documented"
975
- - "Output format per mode"
976
-
977
- heuristic_validation:
978
- id: "T4H-HV"
979
- weight: 0.20
980
- required: true
981
- criteria:
982
- - "Heuristics have IDs (PV_*, SC_*)"
983
- - "Each has: trigger, evaluation, threshold"
984
- - "VETO conditions explicit"
985
- - "Fallback behavior defined"
986
-
987
- process_standards:
988
- id: "T4H-PS"
989
- weight: 0.15
990
- required: true
991
- criteria:
992
- - "Task Anatomy (8 fields) enforced"
993
- - "BPMN or equivalent used"
994
- - "Integration points documented"
995
-
996
- # [v3.2] NEW: Executor Decision Tree Validation
997
- executor_decision_tree:
998
- id: "T4H-EX"
999
- weight: 0.35
1000
- required: true
1001
- reference: "data/executor-decision-tree.md"
1002
- description: |
1003
- Validate that tasks correctly apply the 4-type executor model:
1004
- - Worker: Deterministic code (100% consistent, cheap)
1005
- - Agent: LLM probabilistic (needs interpretation, expensive)
1006
- - Hybrid: AI + Human (needs both judgment types)
1007
- - Human: Pure human decision (irreducible complexity)
1008
-
1009
- criteria:
1010
- - name: "execution_type declared"
1011
- check: "Each task has execution_type field"
1012
- points: 2
1013
-
1014
- - name: "Q1-Q6 correctly applied"
1015
- check: |
1016
- For each task, verify decision tree was followed:
1017
- Q1: Is output 100% predictable from input?
1018
- Q2: Can ALL rules be codified?
1019
- Q2a: Does task require language interpretation?
1020
- Q2b: Can one person ALWAYS make the decision?
1021
- Q3: Is decision-maker-level or safety-critical?
1022
- Q4: Can human error be tolerated?
1023
- Q5: Is real-time response required?
1024
- Q6: Does complexity require expert + AI together?
1025
- points: 4
1026
-
1027
- - name: "Worker tasks have scripts"
1028
- check: "Tasks marked Worker have implementation in scripts/"
1029
- points: 2
1030
-
1031
- - name: "Hybrid tasks have checkpoints"
1032
- check: "Tasks marked Hybrid define human_checkpoint"
1033
- points: 1
1034
-
1035
- - name: "Fallback chain defined"
1036
- check: "Each executor type has fallback (Worker→Agent, Agent→Hybrid, Hybrid→Human)"
1037
- points: 1
1038
-
1039
- scoring:
1040
- 10_of_10: 10
1041
- 8_of_10: 8
1042
- 6_of_10: 6 # Minimum pass
1043
- below_6: "CONDITIONAL - Executor types need review"
1044
-
1045
- anti_patterns:
1046
- - "Task marked Agent but is pure format/transform (should be Worker)"
1047
- - "Task marked Worker but requires interpretation (should be Agent)"
1048
- - "Task marked Hybrid but no human checkpoint defined"
1049
- - "No fallback for when primary executor fails"
1050
- ```
1051
-
1052
- **Tier 4 Output:**
1053
- ```yaml
1054
- # Pipeline squad example:
1055
- tier_4_result:
1056
- squad_type: "pipeline"
1057
- score: 7.5
1058
- checks:
1059
- workflow_definition: 8.0
1060
- phase_checkpoints: 6.0 # Missing rework rules
1061
- orchestrator_completeness: 9.0
1062
- intermediate_outputs: 7.0
1063
- issues:
1064
- - "Phase checkpoints missing rework rules"
1065
- - "Some phases lack explicit outputs"
1066
-
1067
- # Hybrid squad example [v3.2]:
1068
- tier_4_result_hybrid:
1069
- squad_type: "hybrid"
1070
- score: 7.8
1071
- checks:
1072
- persona_profile: 8.0
1073
- behavioral_states: 7.5
1074
- heuristic_validation: 8.0
1075
- process_standards: 7.0
1076
- executor_decision_tree: 8.5 # [v3.2] NEW
1077
- issues:
1078
- - "2 tasks marked Agent could be Worker"
1079
- - "Missing fallback for Hybrid→Human"
1080
- optimization:
1081
- convertible_tasks: 2
1082
- potential_savings: "~$12/month"
1083
- ```
1084
-
1085
- ---
1086
-
1087
- ## PHASE 5: VETO CHECK
1088
-
1089
- **Duration:** < 30 seconds
1090
- **Mode:** Autonomous
1091
- **Result:** VETO or PROCEED
1092
- **Reference:** `config/veto-conditions.yaml` **[v3.3]**
1093
-
1094
- ### Universal Vetos (SC_VC_*)
1095
-
1096
- ```yaml
1097
- universal_vetos:
1098
- # From config/veto-conditions.yaml
1099
- - id: "SC_VC_001"
1100
- condition: "Domain not viable"
1101
- check: "elite_minds_count < 3 OR source_quality < 0.6"
1102
- result: "VETO - Domain not viable for squad creation"
1103
-
1104
- - id: "SC_VC_002"
1105
- condition: "Vision unclear"
1106
- check: "squad_vision_clarity < 0.7"
1107
- result: "VETO - Vision unclear, return to Discovery"
1108
-
1109
- - id: "SC_VC_010"
1110
- condition: "Task anatomy incomplete"
1111
- check: "required_fields_missing = true"
1112
- result: "VETO - Task missing required 8 fields"
1113
-
1114
- # Legacy vetos (maintained for backwards compatibility)
1115
- - id: "V1"
1116
- condition: "No entry agent defined"
1117
- check: "tier_1_result.entry_agent_exists == false"
1118
- result: "VETO"
1119
-
1120
- - id: "V2"
1121
- condition: "Entry agent cannot activate"
1122
- check: "tier_1_result.entry_agent_activatable == false"
1123
- result: "VETO"
1124
-
1125
- - id: "V3"
1126
- condition: ">20% of referenced files missing"
1127
- check: "tier_1_result.missing_references > 20%"
1128
- result: "VETO"
1129
-
1130
- - id: "V4"
1131
- condition: "config.yaml invalid"
1132
- check: "tier_1_result.config_valid == false"
1133
- result: "VETO"
1134
-
1135
- - id: "V5"
1136
- condition: "Security issue detected"
1137
- check: "tier_1_result.security_issues > 0"
1138
- result: "VETO"
1139
- message: "Secrets, API keys, or credentials found"
1140
-
1141
- - id: "V6"
1142
- condition: "Critical cross-reference broken"
1143
- check: "tier_1_result.broken_handoffs > 0"
1144
- result: "VETO"
1145
- message: "Handoff to non-existent agent"
1146
- ```
1147
-
1148
- ### Expert Squad Vetos
1149
-
1150
- ```yaml
1151
- expert_vetos:
1152
- - id: "VE1"
1153
- condition: "Zero agents with voice_dna"
1154
- check: "tier_4_result.voice_dna_coverage == 0"
1155
- result: "VETO"
1156
-
1157
- - id: "VE2"
1158
- condition: "No Tier 0 (diagnosis) capability"
1159
- check: "tier_4_result.has_tier_0 == false"
1160
- result: "VETO"
1161
- ```
1162
-
1163
- ### Pipeline Squad Vetos
1164
-
1165
- ```yaml
1166
- pipeline_vetos:
1167
- - id: "VP1"
1168
- condition: "Workflow has sequence collisions"
1169
- check: "tier_3_result.sequence_collisions > 0"
1170
- result: "VETO"
1171
-
1172
- - id: "VP2"
1173
- condition: "Phase outputs don't connect"
1174
- check: "tier_3_result.broken_output_chain == true"
1175
- result: "VETO"
1176
-
1177
- - id: "VP3"
1178
- condition: "No quality gate before final"
1179
- check: "tier_4_result.has_quality_gate == false"
1180
- result: "VETO"
1181
- ```
1182
-
1183
- ### Hybrid Squad Vetos
1184
-
1185
- ```yaml
1186
- hybrid_vetos:
1187
- - id: "VH1"
1188
- condition: "No heuristic validation defined"
1189
- check: "tier_4_result.heuristic_count == 0"
1190
- result: "VETO"
1191
-
1192
- - id: "VH2"
1193
- condition: "Missing fallback behavior"
1194
- check: "tier_4_result.has_fallback == false"
1195
- result: "VETO"
1196
- ```
1197
-
1198
- **Veto Output:**
1199
- ```yaml
1200
- veto_result:
1201
- status: "PROCEED" # or "VETO"
1202
- triggered: null # or veto ID
1203
- message: null # or veto message
1204
- ```
1205
-
1206
- ---
1207
-
1208
- ## PHASE 6: SCORING & REPORT
1209
-
1210
- **Duration:** 1-2 minutes
1211
- **Mode:** Autonomous
1212
-
1213
- ### Final Score Calculation
1214
-
1215
- ```yaml
1216
- score_calculation:
1217
- # Only if Tier 1 and Tier 2 passed
1218
- precondition:
1219
- tier_1: "PASS"
1220
- tier_2: "PASS"
1221
- veto: "PROCEED"
1222
-
1223
- formula: "(tier_3_score × 0.80) + (tier_4_score × 0.20)"
1224
-
1225
- example:
1226
- tier_3_score: 7.5
1227
- tier_4_score: 7.5
1228
- final: (7.5 × 0.80) + (7.5 × 0.20) = 6.0 + 1.5 = 7.5
1229
-
1230
- interpretation:
1231
- 9.0-10.0: "EXCELLENT - Gold standard reference"
1232
- 7.0-8.9: "PASS - Production ready"
1233
- 5.0-6.9: "CONDITIONAL - Needs improvements"
1234
- 0.0-4.9: "FAIL - Significant rework needed"
1235
- ```
1236
-
1237
- ### Report Format
1238
-
1239
- ```yaml
1240
- report_structure:
1241
- header:
1242
- squad_name: "{name}"
1243
- squad_type: "{detected_type}"
1244
- version: "{version}"
1245
- validation_date: "{date}"
1246
- validator: "Squad Architect v3.0"
1247
-
1248
- executive_summary:
1249
- final_score: "X.X/10"
1250
- result: "PASS | CONDITIONAL | FAIL"
1251
- type_detected: "Expert | Pipeline | Hybrid"
1252
- key_strengths:
1253
- - "..."
1254
- key_issues:
1255
- - "..."
1256
-
1257
- tier_results:
1258
- tier_1_structure:
1259
- status: "PASS | ABORT"
1260
- checks: X/Y
1261
- blocking_issues: []
1262
-
1263
- tier_2_coverage:
1264
- status: "PASS | ABORT"
1265
- metrics:
1266
- checklist_coverage: "X%"
1267
- orphan_tasks: N
1268
- data_usage: "X%"
1269
-
1270
- tier_3_quality:
1271
- score: "X.X/10"
1272
- breakdown:
1273
- prompt_quality: "X.X (25%)"
1274
- pipeline_coherence: "X.X (25%)"
1275
- checklist_actionability: "X.X (25%)"
1276
- documentation: "X.X (25%)"
1277
-
1278
- tier_4_contextual:
1279
- type: "Expert | Pipeline | Hybrid"
1280
- score: "X.X/10"
1281
- breakdown: {...}
1282
-
1283
- veto_status:
1284
- triggered: "None | VXX"
1285
- message: "..."
1286
-
1287
- issues_by_priority:
1288
- critical:
1289
- - issue: "..."
1290
- component: "..."
1291
- fix: "..."
1292
- high:
1293
- - issue: "..."
1294
- fix: "..."
1295
- medium:
1296
- - issue: "..."
1297
- fix: "..."
1298
-
1299
- recommendations:
1300
- immediate: ["..."]
1301
- short_term: ["..."]
1302
-
1303
- sign_off:
1304
- validator: "Squad Architect"
1305
- date: "{date}"
1306
- final_score: "X.X/10"
1307
- result: "PASS | CONDITIONAL | FAIL"
1308
- ```
1309
-
1310
- ---
1311
-
1312
- ## Outputs
1313
-
1314
- | Output | Location | Description |
1315
- |--------|----------|-------------|
1316
- | Validation Report | Console + `{squad_path}/docs/validation-report-{date}.md` | Full report |
1317
- | Score Summary | Console | Quick pass/fail with score |
1318
-
1319
- ---
1320
-
1321
- ## Usage
1322
-
1323
- ```bash
1324
- # Validate entire squad
1325
- @squad-chief
1326
- *validate-squad books
1327
-
1328
- # With type override (skip detection)
1329
- *validate-squad books --type=pipeline
1330
-
1331
- # Verbose mode
1332
- *validate-squad copy --verbose
1333
- ```
1334
-
1335
- ---
1336
-
1337
- ## Quick Reference: What's Required by Type
1338
-
1339
- | Component | Expert | Pipeline | Hybrid |
1340
- |-----------|--------|----------|--------|
1341
- | voice_dna | REQUIRED | optional | optional |
1342
- | objection_algorithms | REQUIRED | optional | optional |
1343
- | output_examples | REQUIRED | optional | optional |
1344
- | tier_organization | REQUIRED | optional | optional |
1345
- | workflow_definition | optional | REQUIRED | optional |
1346
- | phase_checkpoints | optional | REQUIRED | optional |
1347
- | orchestrator | optional | REQUIRED | optional |
1348
- | automation_script | optional | **IF 8+ phases** | optional |
1349
- | persona_profile | optional | optional | REQUIRED |
1350
- | behavioral_states | optional | optional | REQUIRED |
1351
- | heuristic_validation | optional | optional | REQUIRED |
1352
- | **executor_decision_tree** [v3.2] | optional | optional | **REQUIRED** |
1353
- | **tool_registry** [v3.2] | optional | optional | optional |
1354
- | **optimization_check** [v3.2] | informational | informational | informational |
1355
-
1356
- ---
1357
-
1358
- ## Related
1359
-
1360
- | Command | Purpose |
1361
- |---------|---------|
1362
- | `*validate-squad {name}` | Full squad validation |
1363
- | `*validate-agent {file}` | Single agent validation |
1364
- | `*validate-task {file}` | Single task validation |
1365
-
1366
- | Reference | File |
1367
- |-----------|------|
1368
- | Checklist | `checklists/squad-checklist.md` |
1369
- | Type Definitions | `data/squad-type-definitions.yaml` |
1370
- | Quality Framework | `data/quality-dimensions-framework.md` |
1371
- | Executor Decision Tree | `data/executor-decision-tree.md` **[v3.2]** |
1372
- | Tool Registry | `data/tool-registry.yaml` **[v3.2]** |
1373
- | Optimize Task | `tasks/optimize.md` **[v3.2]** |
1374
-
1375
- ---
1376
-
1377
- ## Changelog
1378
-
1379
- Ver histórico completo em: [`CHANGELOG.md`](./CHANGELOG.md)
1380
-
1381
- ---
1382
-
1383
- _Task Version: 3.3.0_
1384
- _Philosophy: Context-aware validation - different squads need different things_
1385
- _Reference: squad-checklist.md v3.0, squad-type-definitions.yaml v1.0, executor-decision-tree.md v1.0_