aiox-core 5.0.2 → 5.0.3

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 (547) hide show
  1. package/.aiox-core/data/entity-registry.yaml +748 -763
  2. package/.aiox-core/install-manifest.yaml +4 -4
  3. package/package.json +6 -1
  4. package/pro/feature-registry.yaml +223 -0
  5. package/pro/package.json +39 -0
  6. package/pro/pro-config.yaml +63 -0
  7. package/pro/squads/README.md +24 -0
  8. package/pro/squads/design/HEADLINE.md +3 -0
  9. package/pro/squads/design/README.md +109 -0
  10. package/pro/squads/design/agents/brad-frost.md +1097 -0
  11. package/pro/squads/design/agents/dan-mall.md +857 -0
  12. package/pro/squads/design/agents/dave-malouf.md +2272 -0
  13. package/pro/squads/design/agents/design-chief.md +114 -0
  14. package/pro/squads/design/agents/ds-foundations-lead.md +194 -0
  15. package/pro/squads/design/agents/ds-token-architect.md +361 -0
  16. package/pro/squads/design/agents/nano-banana-generator.md +162 -0
  17. package/pro/squads/design/agents/storybook-expert.md +809 -0
  18. package/pro/squads/design/checklists/atomic-refactor-checklist.md +299 -0
  19. package/pro/squads/design/checklists/component-adaptation-checklist.md +81 -0
  20. package/pro/squads/design/checklists/design-fidelity-checklist.md +283 -0
  21. package/pro/squads/design/checklists/design-handoff-checklist.md +55 -0
  22. package/pro/squads/design/checklists/design-team-health-checklist.md +454 -0
  23. package/pro/squads/design/checklists/designops-maturity-checklist.md +518 -0
  24. package/pro/squads/design/checklists/ds-a11y-release-gate-checklist.md +45 -0
  25. package/pro/squads/design/checklists/ds-accessibility-wcag-checklist.md +147 -0
  26. package/pro/squads/design/checklists/ds-component-quality-checklist.md +150 -0
  27. package/pro/squads/design/checklists/ds-critical-eye-review-checklist.md +147 -0
  28. package/pro/squads/design/checklists/ds-migration-readiness-checklist.md +99 -0
  29. package/pro/squads/design/checklists/ds-pattern-audit-checklist.md +164 -0
  30. package/pro/squads/design/checklists/reading-accessibility-checklist.md +275 -0
  31. package/pro/squads/design/checklists/token-mapping-checklist.md +107 -0
  32. package/pro/squads/design/config/coding-standards.md +286 -0
  33. package/pro/squads/design/config/source-tree.md +59 -0
  34. package/pro/squads/design/config/tech-stack.md +48 -0
  35. package/pro/squads/design/config.yaml +204 -0
  36. package/pro/squads/design/data/agentic-design-systems-guide.md +46 -0
  37. package/pro/squads/design/data/agentic-ds-principles.md +100 -0
  38. package/pro/squads/design/data/atomic-design-principles.md +108 -0
  39. package/pro/squads/design/data/atomic-refactor-rules.md +582 -0
  40. package/pro/squads/design/data/base-component-specs.md +972 -0
  41. package/pro/squads/design/data/brad-frost-analysis-extract-implicit.yaml +270 -0
  42. package/pro/squads/design/data/brad-frost-analysis-find-0.8.yaml +176 -0
  43. package/pro/squads/design/data/brad-frost-analysis-qa-report.yaml +168 -0
  44. package/pro/squads/design/data/brad-frost-dna.yaml +713 -0
  45. package/pro/squads/design/data/capability-tools.yaml +124 -0
  46. package/pro/squads/design/data/component-adaptation-changelog.md +318 -0
  47. package/pro/squads/design/data/consolidation-algorithms.md +168 -0
  48. package/pro/squads/design/data/critical-eye-scoring-rules.yaml +240 -0
  49. package/pro/squads/design/data/design-token-best-practices.md +107 -0
  50. package/pro/squads/design/data/design-tokens-spec.yaml +418 -0
  51. package/pro/squads/design/data/ds-reference-architectures.md +93 -0
  52. package/pro/squads/design/data/f2-qa-report.md +168 -0
  53. package/pro/squads/design/data/f3-derived-components-changelog.md +100 -0
  54. package/pro/squads/design/data/f3-qa-report.md +208 -0
  55. package/pro/squads/design/data/figma-base-components-raw.md +102 -0
  56. package/pro/squads/design/data/figma-tokens-raw.md +1549 -0
  57. package/pro/squads/design/data/fluent2-design-principles.md +114 -0
  58. package/pro/squads/design/data/high-retention-reading-guide.md +349 -0
  59. package/pro/squads/design/data/integration-patterns.md +207 -0
  60. package/pro/squads/design/data/internal-quality-chain.yaml +48 -0
  61. package/pro/squads/design/data/motion-tokens-guide.md +202 -0
  62. package/pro/squads/design/data/roi-calculation-guide.md +142 -0
  63. package/pro/squads/design/data/token-mapping-reference.md +213 -0
  64. package/pro/squads/design/data/w3c-dtcg-spec-reference.md +149 -0
  65. package/pro/squads/design/data/wcag-compliance-guide.md +267 -0
  66. package/pro/squads/design/docs/AUDIT_REPORT.md +97 -0
  67. package/pro/squads/design/docs/DS-CURATION-PIPELINE-PROPOSAL.md +577 -0
  68. package/pro/squads/design/docs/UPGRADE_PLAN.md +618 -0
  69. package/pro/squads/design/docs/brad-frost-research-validation.md +372 -0
  70. package/pro/squads/design/docs/dave-malouf-research-validation.md +391 -0
  71. package/pro/squads/design/docs/tool-discovery-report.md +87 -0
  72. package/pro/squads/design/docs/tool-integration-plan.md +44 -0
  73. package/pro/squads/design/protocols/ai-first-governance.md +56 -0
  74. package/pro/squads/design/protocols/governance-execution-boundary.md +59 -0
  75. package/pro/squads/design/protocols/handoff.md +60 -0
  76. package/pro/squads/design/rules/.claude-rules.md +88 -0
  77. package/pro/squads/design/scripts/design-system/curate_colors.cjs +447 -0
  78. package/pro/squads/design/scripts/design-system/curate_components.cjs +217 -0
  79. package/pro/squads/design/scripts/design-system/curate_radius.cjs +190 -0
  80. package/pro/squads/design/scripts/design-system/curate_shadows.cjs +208 -0
  81. package/pro/squads/design/scripts/design-system/curate_spacing.cjs +243 -0
  82. package/pro/squads/design/scripts/design-system/curate_typography.cjs +404 -0
  83. package/pro/squads/design/scripts/design-system/design-system-metadata.test.js +49 -0
  84. package/pro/squads/design/scripts/design-system/design_manifest_lib.cjs +142 -0
  85. package/pro/squads/design/scripts/design-system/fetch_page_images.cjs +195 -0
  86. package/pro/squads/design/scripts/design-system/generate_components_metadata.cjs +114 -0
  87. package/pro/squads/design/scripts/design-system/generate_curation_report.cjs +258 -0
  88. package/pro/squads/design/scripts/design-system/generate_tokens.cjs +342 -0
  89. package/pro/squads/design/scripts/design-system/sync_design_manifest.cjs +27 -0
  90. package/pro/squads/design/scripts/design-system/test_mcp_tools.cjs +232 -0
  91. package/pro/squads/design/scripts/design-system/validate_components_metadata.cjs +96 -0
  92. package/pro/squads/design/scripts/design-system/validate_curation.cjs +226 -0
  93. package/pro/squads/design/scripts/design-system/validate_design_manifest_drift.cjs +72 -0
  94. package/pro/squads/design/scripts/design-system/validate_mcp_skeleton.cjs +38 -0
  95. package/pro/squads/design/scripts/design-system/validate_registry.cjs +186 -0
  96. package/pro/squads/design/scripts/design-system/validate_task_checklist_bindings.cjs +78 -0
  97. package/pro/squads/design/scripts/dissect-artifact.cjs +806 -0
  98. package/pro/squads/design/scripts/validate-a11y-integration.cjs +40 -0
  99. package/pro/squads/design/scripts/validate-design-squad.py +411 -0
  100. package/pro/squads/design/squad.yaml +714 -0
  101. package/pro/squads/design/tasks/a11y-audit.md +340 -0
  102. package/pro/squads/design/tasks/aria-audit.md +525 -0
  103. package/pro/squads/design/tasks/atomic-refactor-execute.md +391 -0
  104. package/pro/squads/design/tasks/atomic-refactor-plan.md +262 -0
  105. package/pro/squads/design/tasks/audit-reading-experience.md +350 -0
  106. package/pro/squads/design/tasks/audit-tailwind-config.md +101 -0
  107. package/pro/squads/design/tasks/bootstrap-shadcn-library.md +96 -0
  108. package/pro/squads/design/tasks/bundle-audit.md +245 -0
  109. package/pro/squads/design/tasks/contrast-matrix.md +373 -0
  110. package/pro/squads/design/tasks/create-doc.md +135 -0
  111. package/pro/squads/design/tasks/dead-code-detection.md +329 -0
  112. package/pro/squads/design/tasks/design-compare.md +414 -0
  113. package/pro/squads/design/tasks/design-process-optimization.md +407 -0
  114. package/pro/squads/design/tasks/design-review-orchestration.md +99 -0
  115. package/pro/squads/design/tasks/design-team-scaling.md +407 -0
  116. package/pro/squads/design/tasks/design-tooling-audit.md +404 -0
  117. package/pro/squads/design/tasks/design-triage.md +89 -0
  118. package/pro/squads/design/tasks/designops-maturity-assessment.md +364 -0
  119. package/pro/squads/design/tasks/designops-metrics-setup.md +465 -0
  120. package/pro/squads/design/tasks/ds-agentic-audit.md +100 -0
  121. package/pro/squads/design/tasks/ds-agentic-setup.md +103 -0
  122. package/pro/squads/design/tasks/ds-audit-codebase.md +273 -0
  123. package/pro/squads/design/tasks/ds-build-component.md +349 -0
  124. package/pro/squads/design/tasks/ds-build-mcp-server.md +84 -0
  125. package/pro/squads/design/tasks/ds-calculate-roi.md +282 -0
  126. package/pro/squads/design/tasks/ds-compose-molecule.md +106 -0
  127. package/pro/squads/design/tasks/ds-consolidate-patterns.md +253 -0
  128. package/pro/squads/design/tasks/ds-context-contract.md +194 -0
  129. package/pro/squads/design/tasks/ds-critical-eye-compare.md +130 -0
  130. package/pro/squads/design/tasks/ds-critical-eye-decide.md +139 -0
  131. package/pro/squads/design/tasks/ds-critical-eye-inventory.md +111 -0
  132. package/pro/squads/design/tasks/ds-critical-eye-report.md +101 -0
  133. package/pro/squads/design/tasks/ds-critical-eye-score.md +109 -0
  134. package/pro/squads/design/tasks/ds-designops.md +99 -0
  135. package/pro/squads/design/tasks/ds-extend-pattern.md +91 -0
  136. package/pro/squads/design/tasks/ds-extract-tokens.md +312 -0
  137. package/pro/squads/design/tasks/ds-figma-pipeline.md +95 -0
  138. package/pro/squads/design/tasks/ds-fluent-audit.md +105 -0
  139. package/pro/squads/design/tasks/ds-fluent-build.md +110 -0
  140. package/pro/squads/design/tasks/ds-generate-ai-metadata.md +81 -0
  141. package/pro/squads/design/tasks/ds-generate-cursor-rules.md +74 -0
  142. package/pro/squads/design/tasks/ds-generate-documentation.md +101 -0
  143. package/pro/squads/design/tasks/ds-generate-migration-strategy.md +331 -0
  144. package/pro/squads/design/tasks/ds-generate-shock-report.md +323 -0
  145. package/pro/squads/design/tasks/ds-govern-a11y-compliance.md +93 -0
  146. package/pro/squads/design/tasks/ds-governance.md +187 -0
  147. package/pro/squads/design/tasks/ds-health-metrics.md +278 -0
  148. package/pro/squads/design/tasks/ds-integrate-squad.md +130 -0
  149. package/pro/squads/design/tasks/ds-integrate-workspace.md +100 -0
  150. package/pro/squads/design/tasks/ds-legacy-modernization.md +302 -0
  151. package/pro/squads/design/tasks/ds-mcp-status.md +65 -0
  152. package/pro/squads/design/tasks/ds-motion-audit.md +118 -0
  153. package/pro/squads/design/tasks/ds-multi-framework.md +96 -0
  154. package/pro/squads/design/tasks/ds-parallelization-gate.md +246 -0
  155. package/pro/squads/design/tasks/ds-query.md +90 -0
  156. package/pro/squads/design/tasks/ds-rebuild-artifact.md +369 -0
  157. package/pro/squads/design/tasks/ds-reverse-engineer.md +194 -0
  158. package/pro/squads/design/tasks/ds-scan-artifact.md +131 -0
  159. package/pro/squads/design/tasks/ds-setup-design-system.md +297 -0
  160. package/pro/squads/design/tasks/ds-sync-registry.md +287 -0
  161. package/pro/squads/design/tasks/ds-theme-multi-brand.md +90 -0
  162. package/pro/squads/design/tasks/ds-token-modes.md +108 -0
  163. package/pro/squads/design/tasks/ds-token-w3c-extract.md +105 -0
  164. package/pro/squads/design/tasks/ds-validate-ai-readiness.md +69 -0
  165. package/pro/squads/design/tasks/ds-visual-regression.md +130 -0
  166. package/pro/squads/design/tasks/execute-checklist.md +141 -0
  167. package/pro/squads/design/tasks/export-design-tokens-dtcg.md +97 -0
  168. package/pro/squads/design/tasks/f1-apply-foundations.md +154 -0
  169. package/pro/squads/design/tasks/f1-ingest-figma-tokens.md +130 -0
  170. package/pro/squads/design/tasks/f1-map-tokens-to-shadcn.md +145 -0
  171. package/pro/squads/design/tasks/f1-qa-foundations.md +95 -0
  172. package/pro/squads/design/tasks/f2-adapt-shadcn-components.md +155 -0
  173. package/pro/squads/design/tasks/f2-ingest-base-components.md +148 -0
  174. package/pro/squads/design/tasks/f2-qa-base-components.md +98 -0
  175. package/pro/squads/design/tasks/f3-derive-components.md +145 -0
  176. package/pro/squads/design/tasks/f3-qa-derived-components.md +101 -0
  177. package/pro/squads/design/tasks/focus-order-audit.md +450 -0
  178. package/pro/squads/design/tasks/sb-brownfield-migrate.md +367 -0
  179. package/pro/squads/design/tasks/sb-brownfield-scan.md +318 -0
  180. package/pro/squads/design/tasks/sb-configure.md +230 -0
  181. package/pro/squads/design/tasks/sb-expand-shadcn.md +213 -0
  182. package/pro/squads/design/tasks/sb-generate-all-stories.md +288 -0
  183. package/pro/squads/design/tasks/sb-install.md +152 -0
  184. package/pro/squads/design/tasks/sb-sync-workspace.md +239 -0
  185. package/pro/squads/design/tasks/sb-verify.md +203 -0
  186. package/pro/squads/design/tasks/tailwind-upgrade.md +117 -0
  187. package/pro/squads/design/tasks/token-usage-analytics.md +262 -0
  188. package/pro/squads/design/tasks/ux-rewrite-sixth-grade.md +82 -0
  189. package/pro/squads/design/tasks/validate-design-fidelity.md +222 -0
  190. package/pro/squads/design/templates/agent-template.yaml +46 -0
  191. package/pro/squads/design/templates/clone-mind-template.md +352 -0
  192. package/pro/squads/design/templates/component-prompt-injection-tmpl.md +236 -0
  193. package/pro/squads/design/templates/component-visual-spec-tmpl.md +378 -0
  194. package/pro/squads/design/templates/critical-eye-cycle-report-tmpl.md +165 -0
  195. package/pro/squads/design/templates/design-fidelity-report-tmpl.md +155 -0
  196. package/pro/squads/design/templates/ds-ai-component-metadata-schema-tmpl.json +138 -0
  197. package/pro/squads/design/templates/ds-artifact-analysis.md +70 -0
  198. package/pro/squads/design/templates/ds-health-report-tmpl.md +236 -0
  199. package/pro/squads/design/templates/ds-migration-strategy-tmpl.md +524 -0
  200. package/pro/squads/design/templates/ds-state-persistence-tmpl.yaml +194 -0
  201. package/pro/squads/design/templates/ds-tokens-schema-tmpl.yaml +139 -0
  202. package/pro/squads/design/templates/migration-strategy-tmpl.md +524 -0
  203. package/pro/squads/design/templates/reading-design-tokens.css +26 -0
  204. package/pro/squads/design/templates/state-persistence-tmpl.yaml +219 -0
  205. package/pro/squads/design/templates/tokens-schema-tmpl.yaml +305 -0
  206. package/pro/squads/design/workflows/agentic-readiness.yaml +83 -0
  207. package/pro/squads/design/workflows/audit-only.yaml +198 -0
  208. package/pro/squads/design/workflows/brownfield-complete.yaml +257 -0
  209. package/pro/squads/design/workflows/critical-eye.yaml +184 -0
  210. package/pro/squads/design/workflows/dtcg-tokens-governance.yaml +64 -0
  211. package/pro/squads/design/workflows/foundations-pipeline.yaml +192 -0
  212. package/pro/squads/design/workflows/greenfield-new.yaml +192 -0
  213. package/pro/squads/design/workflows/motion-quality.yaml +65 -0
  214. package/pro/squads/design/workflows/self-healing-workflow.yaml +237 -0
  215. package/pro/squads/design/workflows/storybook-brownfield-migration.yaml +400 -0
  216. package/pro/squads/design/workflows/storybook-full-setup.yaml +280 -0
  217. package/pro/squads/index.js +145 -0
  218. package/pro/squads/squad-creator-pro/.state.json +32 -0
  219. package/pro/squads/squad-creator-pro/CHANGELOG.md +275 -0
  220. package/pro/squads/squad-creator-pro/HEADLINE.md +3 -0
  221. package/pro/squads/squad-creator-pro/README.md +1059 -0
  222. package/pro/squads/squad-creator-pro/agents/oalanicolas.md +438 -0
  223. package/pro/squads/squad-creator-pro/agents/pedro-valerio.md +449 -0
  224. package/pro/squads/squad-creator-pro/agents/squad-chief.md +1651 -0
  225. package/pro/squads/squad-creator-pro/agents/thiago_finch.md +976 -0
  226. package/pro/squads/squad-creator-pro/assessments/axioma-assessment-wf-create-squad.yaml +325 -0
  227. package/pro/squads/squad-creator-pro/checklists/.gitkeep +1 -0
  228. package/pro/squads/squad-creator-pro/checklists/agent-depth-checklist.md +244 -0
  229. package/pro/squads/squad-creator-pro/checklists/agent-quality-gate.md +434 -0
  230. package/pro/squads/squad-creator-pro/checklists/create-agent-checklist.md +184 -0
  231. package/pro/squads/squad-creator-pro/checklists/create-squad-checklist.md +219 -0
  232. package/pro/squads/squad-creator-pro/checklists/create-workflow-checklist.md +224 -0
  233. package/pro/squads/squad-creator-pro/checklists/deep-research-quality.md +506 -0
  234. package/pro/squads/squad-creator-pro/checklists/executor-matrix-checklist.md +260 -0
  235. package/pro/squads/squad-creator-pro/checklists/mental-model-integration-checklist.md +95 -0
  236. package/pro/squads/squad-creator-pro/checklists/mind-validation.md +374 -0
  237. package/pro/squads/squad-creator-pro/checklists/quality-gate-checklist.md +385 -0
  238. package/pro/squads/squad-creator-pro/checklists/smoke-test-agent.md +313 -0
  239. package/pro/squads/squad-creator-pro/checklists/sop-validation.md +250 -0
  240. package/pro/squads/squad-creator-pro/checklists/squad-checklist.md +1014 -0
  241. package/pro/squads/squad-creator-pro/checklists/squad-overview-checklist.md +393 -0
  242. package/pro/squads/squad-creator-pro/checklists/task-anatomy-checklist.md +626 -0
  243. package/pro/squads/squad-creator-pro/config/.gitkeep +1 -0
  244. package/pro/squads/squad-creator-pro/config/axioma-validator.yaml +371 -0
  245. package/pro/squads/squad-creator-pro/config/heuristics.yaml +753 -0
  246. package/pro/squads/squad-creator-pro/config/model-routing.yaml +693 -0
  247. package/pro/squads/squad-creator-pro/config/quality-gates.yaml +415 -0
  248. package/pro/squads/squad-creator-pro/config/scoring-rubric.yaml +199 -0
  249. package/pro/squads/squad-creator-pro/config/squad-config.yaml +165 -0
  250. package/pro/squads/squad-creator-pro/config/task-anatomy.yaml +263 -0
  251. package/pro/squads/squad-creator-pro/config/veto-conditions.yaml +455 -0
  252. package/pro/squads/squad-creator-pro/config.yaml +35 -0
  253. package/pro/squads/squad-creator-pro/data/.gitkeep +1 -0
  254. package/pro/squads/squad-creator-pro/data/an-anchor-words.yaml +78 -0
  255. package/pro/squads/squad-creator-pro/data/an-clone-anti-patterns.yaml +148 -0
  256. package/pro/squads/squad-creator-pro/data/an-clone-validation.yaml +190 -0
  257. package/pro/squads/squad-creator-pro/data/an-diagnostic-framework.yaml +164 -0
  258. package/pro/squads/squad-creator-pro/data/an-output-examples.yaml +102 -0
  259. package/pro/squads/squad-creator-pro/data/an-source-signals.yaml +98 -0
  260. package/pro/squads/squad-creator-pro/data/an-source-tiers.yaml +119 -0
  261. package/pro/squads/squad-creator-pro/data/best-practices.md +986 -0
  262. package/pro/squads/squad-creator-pro/data/core-heuristics.md +510 -0
  263. package/pro/squads/squad-creator-pro/data/decision-heuristics-framework.md +620 -0
  264. package/pro/squads/squad-creator-pro/data/executor-decision-tree.md +774 -0
  265. package/pro/squads/squad-creator-pro/data/executor-matrix-framework.md +441 -0
  266. package/pro/squads/squad-creator-pro/data/fusion-decision-points-analysis.md +397 -0
  267. package/pro/squads/squad-creator-pro/data/fusion-executor-analysis.md +677 -0
  268. package/pro/squads/squad-creator-pro/data/hybridops-patterns.md +1351 -0
  269. package/pro/squads/squad-creator-pro/data/internal-infrastructure-library.yaml +99 -0
  270. package/pro/squads/squad-creator-pro/data/mental-model-task-matrix.yaml +692 -0
  271. package/pro/squads/squad-creator-pro/data/pipeline-patterns.md +352 -0
  272. package/pro/squads/squad-creator-pro/data/pm-best-practices.md +440 -0
  273. package/pro/squads/squad-creator-pro/data/pv-anchor-words.yaml +64 -0
  274. package/pro/squads/squad-creator-pro/data/pv-authenticity-markers.yaml +200 -0
  275. package/pro/squads/squad-creator-pro/data/pv-meta-axiomas.yaml +162 -0
  276. package/pro/squads/squad-creator-pro/data/pv-output-examples.yaml +342 -0
  277. package/pro/squads/squad-creator-pro/data/pv-workflow-validation.yaml +318 -0
  278. package/pro/squads/squad-creator-pro/data/quality-dimensions-framework.md +405 -0
  279. package/pro/squads/squad-creator-pro/data/squad-analytics-guide.md +252 -0
  280. package/pro/squads/squad-creator-pro/data/squad-kb.md +987 -0
  281. package/pro/squads/squad-creator-pro/data/squad-registry.yaml +841 -0
  282. package/pro/squads/squad-creator-pro/data/squad-type-definitions.yaml +578 -0
  283. package/pro/squads/squad-creator-pro/data/tier-system-framework.md +475 -0
  284. package/pro/squads/squad-creator-pro/data/tool-evaluation-framework.md +847 -0
  285. package/pro/squads/squad-creator-pro/data/tool-registry.yaml +700 -0
  286. package/pro/squads/squad-creator-pro/docs/ADR-001-model-tier-qualification.md +344 -0
  287. package/pro/squads/squad-creator-pro/docs/AGENT-COLLABORATION.md +609 -0
  288. package/pro/squads/squad-creator-pro/docs/ARCHITECTURE-DIAGRAMS.md +1466 -0
  289. package/pro/squads/squad-creator-pro/docs/COMMANDS.md +544 -0
  290. package/pro/squads/squad-creator-pro/docs/CONCEPTS.md +584 -0
  291. package/pro/squads/squad-creator-pro/docs/FAQ.md +731 -0
  292. package/pro/squads/squad-creator-pro/docs/HITL-FLOW.md +255 -0
  293. package/pro/squads/squad-creator-pro/docs/MIGRATION-PLAN-AGENT-CONFORMITY.md +861 -0
  294. package/pro/squads/squad-creator-pro/docs/MIGRATION-ROADMAP-HYBRIDOPS.md +1161 -0
  295. package/pro/squads/squad-creator-pro/docs/MODEL-TIER-QUALIFICATION.md +337 -0
  296. package/pro/squads/squad-creator-pro/docs/PATTERN-LIBRARY.md +333 -0
  297. package/pro/squads/squad-creator-pro/docs/PEDRO-VALERIO-ARCHITECTURE.md +456 -0
  298. package/pro/squads/squad-creator-pro/docs/POR-ONDE-COMECAR.md +210 -0
  299. package/pro/squads/squad-creator-pro/docs/QUICK-START.md +205 -0
  300. package/pro/squads/squad-creator-pro/docs/RFC-001-deterministic-refactoring.md +463 -0
  301. package/pro/squads/squad-creator-pro/docs/TOOL-RECOMMENDATIONS.md +379 -0
  302. package/pro/squads/squad-creator-pro/docs/TROUBLESHOOTING.md +412 -0
  303. package/pro/squads/squad-creator-pro/docs/TUTORIAL-COMPLETO.md +458 -0
  304. package/pro/squads/squad-creator-pro/docs/optimize-v4-proposal.md +354 -0
  305. package/pro/squads/squad-creator-pro/docs/session-report-2026-02-01.md +411 -0
  306. package/pro/squads/squad-creator-pro/docs/sop-extraction-process.md +674 -0
  307. package/pro/squads/squad-creator-pro/docs/squad-chief-agent-flow.md +981 -0
  308. package/pro/squads/squad-creator-pro/docs/squad-creation-pipeline-workflow.md +937 -0
  309. package/pro/squads/squad-creator-pro/docs/task-optimization-framework.md +229 -0
  310. package/pro/squads/squad-creator-pro/docs/validation-report-2026-02-01.md +439 -0
  311. package/pro/squads/squad-creator-pro/minds/oalanicolas/artifacts/HANDOFF_PROTOCOL.md +269 -0
  312. package/pro/squads/squad-creator-pro/minds/oalanicolas/artifacts/SOURCE_CLASSIFICATION.md +258 -0
  313. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_001.md +166 -0
  314. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_002.md +206 -0
  315. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_003.md +239 -0
  316. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_004.md +153 -0
  317. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_005.md +161 -0
  318. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_006.md +166 -0
  319. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_007.md +190 -0
  320. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_008.md +191 -0
  321. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_009.md +234 -0
  322. package/pro/squads/squad-creator-pro/minds/oalanicolas/heuristics/AN_KE_010.md +240 -0
  323. package/pro/squads/squad-creator-pro/minds/pedro_valerio/artifacts/Assinatura_Linguistica.md +355 -0
  324. package/pro/squads/squad-creator-pro/minds/pedro_valerio/artifacts/META_AXIOMAS.md +277 -0
  325. package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_BS_001.md +144 -0
  326. package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_PA_001.md +174 -0
  327. package/pro/squads/squad-creator-pro/minds/pedro_valerio/heuristics/PV_PM_001.md +191 -0
  328. package/pro/squads/squad-creator-pro/package.json +26 -0
  329. package/pro/squads/squad-creator-pro/protocols/ai-first-governance.md +63 -0
  330. package/pro/squads/squad-creator-pro/scripts/README.md +246 -0
  331. package/pro/squads/squad-creator-pro/scripts/__pycache__/dependency_check.cpython-314.pyc +0 -0
  332. package/pro/squads/squad-creator-pro/scripts/__pycache__/inventory.cpython-314.pyc +0 -0
  333. package/pro/squads/squad-creator-pro/scripts/__pycache__/naming_validator.cpython-314.pyc +0 -0
  334. package/pro/squads/squad-creator-pro/scripts/__pycache__/quality_gate.cpython-314.pyc +0 -0
  335. package/pro/squads/squad-creator-pro/scripts/__pycache__/scoring.cpython-314.pyc +0 -0
  336. package/pro/squads/squad-creator-pro/scripts/__pycache__/yaml_validator.cpython-314.pyc +0 -0
  337. package/pro/squads/squad-creator-pro/scripts/assess-sources.sh +443 -0
  338. package/pro/squads/squad-creator-pro/scripts/checklist_validator.py +451 -0
  339. package/pro/squads/squad-creator-pro/scripts/clone-review.sh +394 -0
  340. package/pro/squads/squad-creator-pro/scripts/coherence-validator.py +836 -0
  341. package/pro/squads/squad-creator-pro/scripts/create-agent-preflight.py +243 -0
  342. package/pro/squads/squad-creator-pro/scripts/cross-provider/compare-results.js +281 -0
  343. package/pro/squads/squad-creator-pro/scripts/cross-provider/cross-provider-runner.js +462 -0
  344. package/pro/squads/squad-creator-pro/scripts/dependency_check.py +333 -0
  345. package/pro/squads/squad-creator-pro/scripts/fidelity-score.sh +519 -0
  346. package/pro/squads/squad-creator-pro/scripts/generate-squad-greeting.js +426 -0
  347. package/pro/squads/squad-creator-pro/scripts/generate-squad-guide.js +558 -0
  348. package/pro/squads/squad-creator-pro/scripts/inventory.py +269 -0
  349. package/pro/squads/squad-creator-pro/scripts/lib/config-loader.js +151 -0
  350. package/pro/squads/squad-creator-pro/scripts/model-tier-validator.cjs +369 -0
  351. package/pro/squads/squad-creator-pro/scripts/model-usage-logger.cjs +245 -0
  352. package/pro/squads/squad-creator-pro/scripts/modernization-score.sh +308 -0
  353. package/pro/squads/squad-creator-pro/scripts/naming_validator.py +299 -0
  354. package/pro/squads/squad-creator-pro/scripts/on-specialist-complete.py +98 -0
  355. package/pro/squads/squad-creator-pro/scripts/quality_gate.py +413 -0
  356. package/pro/squads/squad-creator-pro/scripts/refresh-registry.py +270 -0
  357. package/pro/squads/squad-creator-pro/scripts/save-session-metrics.py +136 -0
  358. package/pro/squads/squad-creator-pro/scripts/scaffold-squad.cjs +281 -0
  359. package/pro/squads/squad-creator-pro/scripts/scoring.py +395 -0
  360. package/pro/squads/squad-creator-pro/scripts/security_scanner.py +378 -0
  361. package/pro/squads/squad-creator-pro/scripts/squad-analytics.py +585 -0
  362. package/pro/squads/squad-creator-pro/scripts/squad-context-loader.cjs +205 -0
  363. package/pro/squads/squad-creator-pro/scripts/squad-state-manager.cjs +451 -0
  364. package/pro/squads/squad-creator-pro/scripts/squad-workflow-runner.cjs +471 -0
  365. package/pro/squads/squad-creator-pro/scripts/squad_utils.py +261 -0
  366. package/pro/squads/squad-creator-pro/scripts/sync-ide-command.py +590 -0
  367. package/pro/squads/squad-creator-pro/scripts/tests/__init__.py +1 -0
  368. package/pro/squads/squad-creator-pro/scripts/tests/conftest.py +309 -0
  369. package/pro/squads/squad-creator-pro/scripts/tests/run_bash_tests.sh +29 -0
  370. package/pro/squads/squad-creator-pro/scripts/tests/test_assess_sources.sh +216 -0
  371. package/pro/squads/squad-creator-pro/scripts/tests/test_checklist_validator.py +396 -0
  372. package/pro/squads/squad-creator-pro/scripts/tests/test_clone_review.sh +239 -0
  373. package/pro/squads/squad-creator-pro/scripts/tests/test_coherence_validator.py +212 -0
  374. package/pro/squads/squad-creator-pro/scripts/tests/test_dependency_check.py +361 -0
  375. package/pro/squads/squad-creator-pro/scripts/tests/test_fidelity_score.sh +298 -0
  376. package/pro/squads/squad-creator-pro/scripts/tests/test_inventory.py +307 -0
  377. package/pro/squads/squad-creator-pro/scripts/tests/test_modernization_score.sh +211 -0
  378. package/pro/squads/squad-creator-pro/scripts/tests/test_naming_validator.py +373 -0
  379. package/pro/squads/squad-creator-pro/scripts/tests/test_quality_gate.py +280 -0
  380. package/pro/squads/squad-creator-pro/scripts/tests/test_refresh_registry.py +338 -0
  381. package/pro/squads/squad-creator-pro/scripts/tests/test_scoring.py +366 -0
  382. package/pro/squads/squad-creator-pro/scripts/tests/test_security_scanner.py +354 -0
  383. package/pro/squads/squad-creator-pro/scripts/tests/test_squad_analytics.py +450 -0
  384. package/pro/squads/squad-creator-pro/scripts/tests/test_validate_clone.sh +252 -0
  385. package/pro/squads/squad-creator-pro/scripts/tests/test_yaml_validator.py +412 -0
  386. package/pro/squads/squad-creator-pro/scripts/validate-agent-output.py +115 -0
  387. package/pro/squads/squad-creator-pro/scripts/validate-all.sh +49 -0
  388. package/pro/squads/squad-creator-pro/scripts/validate-squad-structure.py +535 -0
  389. package/pro/squads/squad-creator-pro/scripts/validate-squad.sh +944 -0
  390. package/pro/squads/squad-creator-pro/scripts/yaml_validator.py +528 -0
  391. package/pro/squads/squad-creator-pro/skills/squad.md +301 -0
  392. package/pro/squads/squad-creator-pro/squad.yaml +36 -0
  393. package/pro/squads/squad-creator-pro/tasks/CHANGELOG.md +80 -0
  394. package/pro/squads/squad-creator-pro/tasks/an-assess-sources.md +78 -0
  395. package/pro/squads/squad-creator-pro/tasks/an-clone-review.md +104 -0
  396. package/pro/squads/squad-creator-pro/tasks/an-compare-outputs.md +354 -0
  397. package/pro/squads/squad-creator-pro/tasks/an-design-clone.md +79 -0
  398. package/pro/squads/squad-creator-pro/tasks/an-diagnose-clone.md +87 -0
  399. package/pro/squads/squad-creator-pro/tasks/an-extract-dna.md +90 -0
  400. package/pro/squads/squad-creator-pro/tasks/an-extract-framework.md +100 -0
  401. package/pro/squads/squad-creator-pro/tasks/an-fidelity-score.md +108 -0
  402. package/pro/squads/squad-creator-pro/tasks/an-validate-clone.md +96 -0
  403. package/pro/squads/squad-creator-pro/tasks/auto-acquire-sources.md +349 -0
  404. package/pro/squads/squad-creator-pro/tasks/collect-sources.md +533 -0
  405. package/pro/squads/squad-creator-pro/tasks/create-agent.md +768 -0
  406. package/pro/squads/squad-creator-pro/tasks/create-documentation.md +258 -0
  407. package/pro/squads/squad-creator-pro/tasks/create-pipeline.md +296 -0
  408. package/pro/squads/squad-creator-pro/tasks/create-squad.md +933 -0
  409. package/pro/squads/squad-creator-pro/tasks/create-task.md +1148 -0
  410. package/pro/squads/squad-creator-pro/tasks/create-template.md +474 -0
  411. package/pro/squads/squad-creator-pro/tasks/create-workflow.md +720 -0
  412. package/pro/squads/squad-creator-pro/tasks/deconstruct.md +167 -0
  413. package/pro/squads/squad-creator-pro/tasks/deep-research-pre-agent.md +566 -0
  414. package/pro/squads/squad-creator-pro/tasks/detect-squad-context.md +81 -0
  415. package/pro/squads/squad-creator-pro/tasks/discover-tools.md +944 -0
  416. package/pro/squads/squad-creator-pro/tasks/extract-implicit.md +352 -0
  417. package/pro/squads/squad-creator-pro/tasks/extract-knowledge.md +577 -0
  418. package/pro/squads/squad-creator-pro/tasks/extract-sop.md +320 -0
  419. package/pro/squads/squad-creator-pro/tasks/extract-thinking-dna.md +653 -0
  420. package/pro/squads/squad-creator-pro/tasks/extract-voice-dna.md +619 -0
  421. package/pro/squads/squad-creator-pro/tasks/find-0.8.md +222 -0
  422. package/pro/squads/squad-creator-pro/tasks/install-commands.md +373 -0
  423. package/pro/squads/squad-creator-pro/tasks/lookup-model.md +78 -0
  424. package/pro/squads/squad-creator-pro/tasks/migrate-workflows-to-yaml.md +259 -0
  425. package/pro/squads/squad-creator-pro/tasks/next-squad.md +487 -0
  426. package/pro/squads/squad-creator-pro/tasks/optimize-workflow.md +851 -0
  427. package/pro/squads/squad-creator-pro/tasks/optimize.md +1082 -0
  428. package/pro/squads/squad-creator-pro/tasks/parallel-discovery.md +58 -0
  429. package/pro/squads/squad-creator-pro/tasks/pv-audit.md +244 -0
  430. package/pro/squads/squad-creator-pro/tasks/pv-axioma-assessment-wf-clone-mind.yaml +256 -0
  431. package/pro/squads/squad-creator-pro/tasks/pv-axioma-assessment.md +83 -0
  432. package/pro/squads/squad-creator-pro/tasks/pv-modernization-score.md +83 -0
  433. package/pro/squads/squad-creator-pro/tasks/qa-after-creation.md +475 -0
  434. package/pro/squads/squad-creator-pro/tasks/qualify-task.md +265 -0
  435. package/pro/squads/squad-creator-pro/tasks/reexecute-squad-phase.md +64 -0
  436. package/pro/squads/squad-creator-pro/tasks/refresh-registry.md +403 -0
  437. package/pro/squads/squad-creator-pro/tasks/smoke-test-model-routing.md +167 -0
  438. package/pro/squads/squad-creator-pro/tasks/squad-analytics.md +265 -0
  439. package/pro/squads/squad-creator-pro/tasks/squad-fusion.md +817 -0
  440. package/pro/squads/squad-creator-pro/tasks/squad-overview.md +683 -0
  441. package/pro/squads/squad-creator-pro/tasks/sync-ide-command.md +392 -0
  442. package/pro/squads/squad-creator-pro/tasks/update-mind.md +428 -0
  443. package/pro/squads/squad-creator-pro/tasks/upgrade-squad.md +919 -0
  444. package/pro/squads/squad-creator-pro/tasks/validate-extraction.md +209 -0
  445. package/pro/squads/squad-creator-pro/tasks/validate-final-artifacts.md +80 -0
  446. package/pro/squads/squad-creator-pro/tasks/validate-squad.md +1385 -0
  447. package/pro/squads/squad-creator-pro/templates/.gitkeep +1 -0
  448. package/pro/squads/squad-creator-pro/templates/agent-flow-doc-tmpl.md +512 -0
  449. package/pro/squads/squad-creator-pro/templates/agent-tmpl.md +697 -0
  450. package/pro/squads/squad-creator-pro/templates/config-tmpl.yaml +352 -0
  451. package/pro/squads/squad-creator-pro/templates/handoff-insumos-tmpl.yaml +112 -0
  452. package/pro/squads/squad-creator-pro/templates/orchestrator-tmpl.md +74 -0
  453. package/pro/squads/squad-creator-pro/templates/pipeline-progress-tmpl.py +373 -0
  454. package/pro/squads/squad-creator-pro/templates/pipeline-runner-tmpl.py +444 -0
  455. package/pro/squads/squad-creator-pro/templates/pipeline-state-tmpl.py +413 -0
  456. package/pro/squads/squad-creator-pro/templates/pop-extractor-prompt.md +549 -0
  457. package/pro/squads/squad-creator-pro/templates/quality-dashboard-tmpl.md +286 -0
  458. package/pro/squads/squad-creator-pro/templates/quality-gate-tmpl.yaml +589 -0
  459. package/pro/squads/squad-creator-pro/templates/readme-tmpl.md +231 -0
  460. package/pro/squads/squad-creator-pro/templates/research-output-tmpl.md +625 -0
  461. package/pro/squads/squad-creator-pro/templates/research-prompt-tmpl.md +479 -0
  462. package/pro/squads/squad-creator-pro/templates/squad-prd-tmpl.md +464 -0
  463. package/pro/squads/squad-creator-pro/templates/squad-readme-tmpl.md +170 -0
  464. package/pro/squads/squad-creator-pro/templates/story-create-agent-tmpl.md +284 -0
  465. package/pro/squads/squad-creator-pro/templates/task-tmpl.md +461 -0
  466. package/pro/squads/squad-creator-pro/templates/template-tmpl.yaml +227 -0
  467. package/pro/squads/squad-creator-pro/templates/workflow-doc-tmpl.md +860 -0
  468. package/pro/squads/squad-creator-pro/templates/workflow-tmpl.yaml +394 -0
  469. package/pro/squads/squad-creator-pro/test-cases/BATCH-PROGRESS.md +268 -0
  470. package/pro/squads/squad-creator-pro/test-cases/QUALIFICATION-DASHBOARD.yaml +13 -0
  471. package/pro/squads/squad-creator-pro/test-cases/_template.yaml +147 -0
  472. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/ASSESSMENT-SUMMARY.md +275 -0
  473. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/ASSESSMENT_SUMMARY.md +140 -0
  474. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/CHECKPOINT_MATRIX.md +202 -0
  475. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/EXECUTION-REPORT.md +413 -0
  476. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/EXECUTION_NOTES.md +358 -0
  477. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/README-v2.2.2.md +299 -0
  478. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/README.md +320 -0
  479. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/TEST-REPORT-v2.1.md +351 -0
  480. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/VERIFICATION-CHECKLIST.txt +247 -0
  481. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/formal-qualification-report.yaml +389 -0
  482. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-output.yaml +366 -0
  483. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.1-output.yaml +452 -0
  484. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.2.1-output.yaml +281 -0
  485. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/haiku-v2.2.2-output.yaml +332 -0
  486. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/opus-baseline.yaml +517 -0
  487. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/qualification-report.yaml +213 -0
  488. package/pro/squads/squad-creator-pro/test-cases/an-assess-sources/test-case.yaml +69 -0
  489. package/pro/squads/squad-creator-pro/test-cases/an-clone-review/haiku-round-1.yaml +213 -0
  490. package/pro/squads/squad-creator-pro/test-cases/an-clone-review/opus-baseline.yaml +566 -0
  491. package/pro/squads/squad-creator-pro/test-cases/an-clone-review/qualification-report.yaml +82 -0
  492. package/pro/squads/squad-creator-pro/test-cases/an-design-clone/test-case.yaml +102 -0
  493. package/pro/squads/squad-creator-pro/test-cases/an-extract-dna/test-case.yaml +105 -0
  494. package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/haiku-round-1.yaml +262 -0
  495. package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/opus-baseline.yaml +266 -0
  496. package/pro/squads/squad-creator-pro/test-cases/an-fidelity-score/qualification-report.yaml +94 -0
  497. package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/haiku-round-1.yaml +282 -0
  498. package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/opus-baseline.yaml +470 -0
  499. package/pro/squads/squad-creator-pro/test-cases/an-validate-clone/qualification-report.yaml +106 -0
  500. package/pro/squads/squad-creator-pro/test-cases/collect-sources/test-case.yaml +105 -0
  501. package/pro/squads/squad-creator-pro/test-cases/create-task/test-case.yaml +104 -0
  502. package/pro/squads/squad-creator-pro/test-cases/cross-provider/DASHBOARD.yaml +11 -0
  503. package/pro/squads/squad-creator-pro/test-cases/pv-audit/test-case.yaml +106 -0
  504. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/haiku-output.yaml +209 -0
  505. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/opus-baseline.yaml +96 -0
  506. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/sonnet-output.yaml +30 -0
  507. package/pro/squads/squad-creator-pro/test-cases/pv-axioma-assessment/test-case.yaml +129 -0
  508. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/comparison-round-1.yaml +242 -0
  509. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/haiku-round-1.yaml +393 -0
  510. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/opus-baseline.yaml +488 -0
  511. package/pro/squads/squad-creator-pro/test-cases/pv-modernization-score/qualification-report.yaml +74 -0
  512. package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/haiku-round-1.yaml +292 -0
  513. package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/opus-baseline.yaml +603 -0
  514. package/pro/squads/squad-creator-pro/test-cases/qa-after-creation/qualification-report.yaml +97 -0
  515. package/pro/squads/squad-creator-pro/test-cases/smoke-test-model-routing/test-case.yaml +100 -0
  516. package/pro/squads/squad-creator-pro/test-cases/upgrade-squad/test-case.yaml +106 -0
  517. package/pro/squads/squad-creator-pro/test-cases/validate-squad/comparison-round-1.yaml +223 -0
  518. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-1-MINE.yaml +36 -0
  519. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-1.yaml +193 -0
  520. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-2.yaml +303 -0
  521. package/pro/squads/squad-creator-pro/test-cases/validate-squad/haiku-round-3-v4-task.yaml +149 -0
  522. package/pro/squads/squad-creator-pro/test-cases/validate-squad/opus-baseline.yaml +529 -0
  523. package/pro/squads/squad-creator-pro/test-cases/validate-squad/opus-round-3-v4-task.yaml +132 -0
  524. package/pro/squads/squad-creator-pro/test-cases/validate-squad/qualification-report.yaml +104 -0
  525. package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/haiku-output-v2-calibrated.yaml +200 -0
  526. package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/haiku-output.yaml +183 -0
  527. package/pro/squads/squad-creator-pro/test-cases/wf-clone-mind/opus-baseline.yaml +112 -0
  528. package/pro/squads/squad-creator-pro/utils/.gitkeep +1 -0
  529. package/pro/squads/squad-creator-pro/workflows/.gitkeep +1 -0
  530. package/pro/squads/squad-creator-pro/workflows/create-squad.yaml +348 -0
  531. package/pro/squads/squad-creator-pro/workflows/modules/module-discovery.yaml +16 -0
  532. package/pro/squads/squad-creator-pro/workflows/modules/module-integration.yaml +16 -0
  533. package/pro/squads/squad-creator-pro/workflows/modules/module-quality-gates.yaml +15 -0
  534. package/pro/squads/squad-creator-pro/workflows/validate-squad.yaml +582 -0
  535. package/pro/squads/squad-creator-pro/workflows/wf-auto-acquire-sources.yaml +518 -0
  536. package/pro/squads/squad-creator-pro/workflows/wf-brownfield-upgrade-squad.yaml +46 -0
  537. package/pro/squads/squad-creator-pro/workflows/wf-clone-mind.yaml +521 -0
  538. package/pro/squads/squad-creator-pro/workflows/wf-context-aware-create-squad.yaml +47 -0
  539. package/pro/squads/squad-creator-pro/workflows/wf-create-squad.yaml +1619 -0
  540. package/pro/squads/squad-creator-pro/workflows/wf-cross-provider-qualification.yaml +711 -0
  541. package/pro/squads/squad-creator-pro/workflows/wf-discover-tools.yaml +1439 -0
  542. package/pro/squads/squad-creator-pro/workflows/wf-extraction-pipeline.yaml +486 -0
  543. package/pro/squads/squad-creator-pro/workflows/wf-mind-research-loop.yaml +668 -0
  544. package/pro/squads/squad-creator-pro/workflows/wf-model-tier-qualification.yaml +800 -0
  545. package/pro/squads/squad-creator-pro/workflows/wf-optimize-squad.yaml +684 -0
  546. package/pro/squads/squad-creator-pro/workflows/wf-research-then-create-agent.yaml +921 -0
  547. package/pro/squads/squad-creator-pro/workflows/wf-squad-fusion.yaml +1684 -0
@@ -0,0 +1,1351 @@
1
+ # PATTERNS REUTILIZÁVEIS DO HYBRIDOPS PARA SQUAD-CREATOR
2
+
3
+ **Data da Extração:** 2026-02-10
4
+ **Fonte:** `/Users/oalanicolas/Code/mmos/squads/hybrid-ops-squad`
5
+ **Status:** Pronto para Implementação
6
+ **Última Atualização:** 2026-02-10 (v1.2 - Self-contained: COPIAR artifacts)
7
+
8
+ ---
9
+
10
+ ## ESTRUTURA DO PEDRO VALÉRIO NO SQUAD-CREATOR
11
+
12
+ ### Os 4 Modos (Validado com Pedro Original - 2026-02-10)
13
+
14
+ ```
15
+ SQUAD-CREATOR
16
+ ├── squad-chief (orquestra squad + revisa)
17
+ ├── oalanicolas (extrai DNA, SOPs, frameworks)
18
+ └── pedro-valerio (AI Head de OPS)
19
+ ├── modo: engenheiro-processos
20
+ ├── modo: arquiteto-sistemas
21
+ ├── modo: arquiteto-automacao
22
+ └── modo: construtor-templates
23
+ ```
24
+
25
+ ### Mapeamento Modo → Pattern → Comandos
26
+
27
+ | Modo | Responsabilidade | Patterns Usados | Comandos | Veto Conditions |
28
+ |------|------------------|-----------------|----------|-----------------|
29
+ | **Engenheiro de Processos** | Mapear do fim pro começo, encontrar gaps | HO-HE-001 (Future Back-Casting), HO-VC-001 | `*map-process`, `*find-gaps`, `*identify-owners` | Vision clarity < 0.7 |
30
+ | **Arquiteto de Sistemas** | Estrutura, statuses, campos, permissões | HO-TP-001 (Task Anatomy), HO-EP-001/002/003/004 | `*design-structure`, `*create-statuses`, `*define-fields` | Missing required fields |
31
+ | **Arquiteto de Automação** | Bloqueios, triggers, conexões, N8N | HO-HE-003 (Automation Tipping), HO-VC-003, HO-QG-001 | `*create-rules`, `*connect-systems`, `*design-triggers` | Guardrails missing |
32
+ | **Construtor de Templates** | Templates, checklists, docs, teste da filha | HO-QG-001, HO-CV-001, HO-AX-001 | `*create-template`, `*write-instructions`, `*test-leigo` | Truthfulness < 0.7 |
33
+
34
+ ### Ferramentas por Modo (da reunião)
35
+
36
+ | Modo | Ferramentas |
37
+ |------|-------------|
38
+ | Engenheiro de Processos | Figma, Notion, Google Docs, Loom |
39
+ | Arquiteto de Sistemas | ClickUp, Notion, Google Drive, Airtable |
40
+ | Arquiteto de Automação | ClickUp Automations, N8N, Webhooks, APIs |
41
+ | Construtor de Templates | Notion, ClickUp, Markdown, Loom |
42
+
43
+ ---
44
+
45
+ ## MIND ARTIFACTS (Self-Contained)
46
+
47
+ **REGRA:** Squad-creator é 100% self-contained. Todos os artifacts são COPIADOS para dentro do squad.
48
+
49
+ ### Estrutura Local (após migração)
50
+
51
+ ```
52
+ squads/squad-creator-pro/
53
+ ├── minds/
54
+ │ └── pedro_valerio/
55
+ │ ├── heuristics/
56
+ │ │ ├── PV_BS_001.md # Future Back-Casting
57
+ │ │ ├── PV_PA_001.md # Systemic Coherence Scan
58
+ │ │ └── PV_PM_001.md # Automation Tipping Point
59
+ │ └── artifacts/
60
+ │ ├── META_AXIOMAS.md # 10 dimensões + Axiomas Level -4 a 0
61
+ │ └── Assinatura_Linguistica.md # Voice DNA original
62
+ ```
63
+
64
+ ### Heuristics (Copiados de HybridOps)
65
+
66
+ | Arquivo | Path Local | O que contém |
67
+ |---------|------------|--------------|
68
+ | **PV_BS_001** | `minds/pedro_valerio/heuristics/PV_BS_001.md` | Future Back-Casting (decisão estratégica) |
69
+ | **PV_PA_001** | `minds/pedro_valerio/heuristics/PV_PA_001.md` | Systemic Coherence Scan (validação de executores) |
70
+ | **PV_PM_001** | `minds/pedro_valerio/heuristics/PV_PM_001.md` | Automation Tipping Point (quando automatizar) |
71
+
72
+ ### Artifacts (Copiados de HybridOps)
73
+
74
+ | Arquivo | Path Local | O que contém |
75
+ |---------|------------|--------------|
76
+ | **META_AXIOMAS** | `minds/pedro_valerio/artifacts/META_AXIOMAS.md` | 10 dimensões de validação, Axiomas Level -4 a 0 |
77
+ | **Assinatura_Linguistica** | `minds/pedro_valerio/artifacts/Assinatura_Linguistica.md` | Voice DNA original |
78
+
79
+ ### Fonte Original (para referência)
80
+
81
+ | Arquivo | Path Original (HybridOps) |
82
+ |---------|---------------------------|
83
+ | PV_BS_001 | `squads/hybrid-ops-squad/minds/pedro_valerio/heuristics/PV_BS_001.md` |
84
+ | PV_PA_001 | `squads/hybrid-ops-squad/minds/pedro_valerio/heuristics/PV_PA_001.md` |
85
+ | PV_PM_001 | `squads/hybrid-ops-squad/minds/pedro_valerio/heuristics/PV_PM_001.md` |
86
+ | META_AXIOMAS | `squads/hybrid-ops-squad/minds/pedro_valerio/artifacts/META_AXIOMAS.md` |
87
+ | Assinatura | `squads/hybrid-ops-squad/minds/pedro_valerio/artifacts/Assinatura_Linguistica.md` |
88
+ | heuristics.yaml | `squads/hybrid-ops-squad/config/heuristics.yaml` |
89
+
90
+ **NOTA:** Os arquivos são COPIADOS uma vez. Atualizações futuras devem ser feitas no squad-creator diretamente.
91
+
92
+ ---
93
+
94
+ ## ÍNDICE DE PATTERNS
95
+
96
+ 1. [Veto Conditions Patterns](#veto-conditions-patterns)
97
+ 2. [Task Anatomy Patterns (8 Campos)](#task-anatomy-patterns-8-campos)
98
+ 3. [Heuristics Patterns (PV_BS_001, PV_PA_001, PV_PM_001)](#heuristics-patterns)
99
+ 4. [Axioma Validator Pattern](#axioma-validator-pattern)
100
+ 5. [Quality Gate Patterns (HO-PP-003)](#quality-gate-patterns)
101
+ 6. [Executor Assignment Patterns (HO-EP-XXX)](#executor-assignment-patterns)
102
+ 7. [Coherence Validation Patterns](#coherence-validation-patterns)
103
+
104
+ ---
105
+
106
+ ## VETO CONDITIONS PATTERNS
107
+
108
+ ### HO-VC-001: Veto Condição - Visão Estratégica Incompleta
109
+
110
+ **ID Pattern:** `HO-VC-001`
111
+ **Nome:** Vision Clarity Veto
112
+ **Fase:** Architecture (Phase 2)
113
+ **Heurística:** PV_BS_001
114
+
115
+ **Definição:**
116
+ ```yaml
117
+ veto_trigger:
118
+ condition: "end_state_vision_clarity < 0.7"
119
+ action: "VETO - Vision unclear, return to Discovery"
120
+ severity: "BLOCKING"
121
+ recovery: "Clarify end-state vision before proceeding"
122
+ ```
123
+
124
+ **Quando Usar:**
125
+ - Quando visão estratégica está abaixo de 70% de clareza
126
+ - Antes de commitar recursos significativos e irreversíveis
127
+ - Em decisões de arquitetura que definem fundação do sistema
128
+
129
+ **Exemplo de Aplicação no Squad-Creator:**
130
+ - Verificar se "DNA extraction pipeline" está claro antes de design
131
+ - Validar se meta de "automated agent generation" é visível
132
+ - Confirmar escopo de "quality gates" antes de Phase 2
133
+
134
+ **Como Adaptar:**
135
+ - Substituir `end_state_vision` por: `squad_creation_vision_clarity`
136
+ - Manter threshold em 0.7
137
+ - Criar questões validação específicas para squad-creator
138
+
139
+ **Outputs Esperados:**
140
+ - APPROVE: Proceed to Architecture
141
+ - REVIEW: Clarify vision with team
142
+ - VETO: Return to Discovery phase
143
+
144
+ ---
145
+
146
+ ### HO-VC-002: Veto Condição - Incoerência de Executor
147
+
148
+ **ID Pattern:** `HO-VC-002`
149
+ **Nome:** Executor Coherence Veto
150
+ **Fase:** Executors (Phase 3)
151
+ **Heurística:** PV_PA_001
152
+
153
+ **Definição:**
154
+ ```yaml
155
+ veto_conditions:
156
+ - condition: "truthfulness_coherence < 0.7"
157
+ action: "VETO - REJECT/REMOVE immediately"
158
+ severity: "CRITICAL"
159
+ - condition: "detected_incoherence = true"
160
+ action: "VETO - Trust breach, cannot proceed"
161
+ severity: "CRITICAL"
162
+ ```
163
+
164
+ **Quando Usar:**
165
+ - Incoerência detectada entre statements e actions
166
+ - Mentira identificada propositalmente
167
+ - Agent assignment não-confiável
168
+
169
+ **Exemplo de Aplicação:**
170
+ - Validar que agent do squad-creator segue suas próprias axiomas
171
+ - Verificar se extraction logic é determinístico
172
+ - Confirmar que output bate com documented behavior
173
+
174
+ **Como Adaptar:**
175
+ - `truthfulness_coherence` → `agent_behavior_coherence`
176
+ - Aplicar a agents que pertencem ao squad
177
+ - Usar para validar DNA clones antes de deploy
178
+
179
+ **Guardrails:**
180
+ - Teste comportamento com tasks que revelam consistência
181
+ - Use métricas objetivas sobre impressões subjetivas
182
+ - Implemente appeal tribunal para casos borderline
183
+
184
+ ---
185
+
186
+ ### HO-VC-003: Veto Condição - Falta de Guardrails
187
+
188
+ **ID Pattern:** `HO-VC-003`
189
+ **Nome:** Automation Guardrail Veto
190
+ **Fase:** Workflows (Phase 4)
191
+ **Heurística:** PV_PM_001
192
+
193
+ **Definição:**
194
+ ```yaml
195
+ veto_condition:
196
+ trigger: "guardrails_missing = true"
197
+ action: "VETO - Define safety guardrails first"
198
+ scope: "Any automation"
199
+ required_guardrails:
200
+ - loop_prevention
201
+ - idempotency
202
+ - audit_trail
203
+ - manual_escape
204
+ - retry_logic
205
+ ```
206
+
207
+ **Quando Usar:**
208
+ - Antes de automate qualquer workflow
209
+ - Quando frequency > 2x por mês
210
+ - Em automations com systemic impact > 0.6
211
+
212
+ **Exemplo no Squad-Creator:**
213
+ - Agent-geração precisa: loop prevention, idempotency, audit trail
214
+ - Extraction pipeline: rollback mechanism, manual override
215
+ - Validation gates: timeout handling, fallback behavior
216
+
217
+ **Como Adaptar:**
218
+ - Manter 5 guardrails obrigatórios
219
+ - Adicionar: `max_iterations`, `failure_threshold`, `notification_on_veto`
220
+ - Criar checklist pré-automation
221
+
222
+ ---
223
+
224
+ ## TASK ANATOMY PATTERNS (8 CAMPOS)
225
+
226
+ ### HO-TP-001: Task Anatomy Standard
227
+
228
+ **ID Pattern:** `HO-TP-001`
229
+ **Nome:** 8-Field Task Definition Standard
230
+ **Aplicável a:** Todas as tasks
231
+ **Compliance Rate:** 100% (validado em prioritization-system)
232
+
233
+ **Os 8 Campos Obrigatórios:**
234
+
235
+ | # | Campo | Tipo | Validação | Exemplo |
236
+ |---|-------|------|-----------|---------|
237
+ | 1 | `task_name` | string | "Verb + Object" format | "Extract Mind DNA" |
238
+ | 2 | `status` | enum | pending \| in_progress \| review \| completed \| blocked | "pending" |
239
+ | 3 | `responsible_executor` | string | role or @agent reference | "@squad-creator:analyzer" |
240
+ | 4 | `execution_type` | enum | Human \| Agent \| Hybrid \| Worker | "Agent" |
241
+ | 5 | `estimated_time` | duration | Must include unit (h, m, d) | "2-3 hours" |
242
+ | 6 | `input` | array | At least 1 item required | ["DNA template", "agent config"] |
243
+ | 7 | `output` | array | At least 1 item required | ["extracted axiomas", "validation report"] |
244
+ | 8 | `action_items` | array | Step-by-step execution (≥1) | ["Parse agent markdown", "Extract axiomas", "Validate..."] |
245
+ | 9 | `acceptance_criteria` | array | "Done" definition (≥1) | ["All fields extracted", "Pass validation gate"] |
246
+
247
+ **Estrutura Completa:**
248
+
249
+ ```yaml
250
+ task_definition:
251
+ # REQUIRED (8 FIELDS)
252
+ task_name: "Extract Mind DNA"
253
+ status: "pending"
254
+ responsible_executor: "@squad-creator:analyzer"
255
+ execution_type: "Agent"
256
+ estimated_time: "3h"
257
+ input:
258
+ - "Agent markdown file"
259
+ - "DNA extraction template"
260
+ output:
261
+ - "DNA YAML file"
262
+ - "Extraction report"
263
+ action_items:
264
+ - "Parse agent markdown"
265
+ - "Extract axiomas"
266
+ - "Validate coherence"
267
+ - "Generate YAML"
268
+ acceptance_criteria:
269
+ - "All axiomas extracted"
270
+ - "DNA passes coherence check"
271
+ - "YAML well-formed"
272
+
273
+ # OPTIONAL EXTENSIONS
274
+ tools:
275
+ - "ClickUp"
276
+ - "Claude API"
277
+ templates:
278
+ - "dna-extraction-template.yaml"
279
+ quality_gate: "QG-2.1A"
280
+ handoff:
281
+ to: "create-agent"
282
+ trigger: "dna_extraction_complete"
283
+ ```
284
+
285
+ **Validação Checklist:**
286
+ - [ ] task_name começa com verbo de ação
287
+ - [ ] status é valor válido
288
+ - [ ] responsible_executor é role ou @agent
289
+ - [ ] execution_type é um dos 4 tipos
290
+ - [ ] estimated_time tem unidade (h/m/d)
291
+ - [ ] input array não vazio
292
+ - [ ] output array não vazio
293
+ - [ ] action_items tem ≥1 step
294
+ - [ ] acceptance_criteria tem ≥1 criterion
295
+ - [ ] Sem typos ou caracteres inválidos
296
+
297
+ **Reusável em Squad-Creator:**
298
+ - Aplicar ao 100% das tasks
299
+ - Usar "Verb + Object" em Portuguese (Extrair, Validar, Gerar, etc)
300
+ - Criar dependency graph baseado em handoff triggers
301
+ - Validar compliance em Phase 5
302
+
303
+ ---
304
+
305
+ ## HEURISTICS PATTERNS
306
+
307
+ ### HO-HE-001: PV_BS_001 - Future Back-Casting
308
+
309
+ **ID Pattern:** `HO-HE-001`
310
+ **Nome Completo:** Future Back-Casting Heuristic
311
+ **Categoria:** Strategic Decision Heuristic
312
+ **Fase:** 2 (Architecture)
313
+ **Agent Executor:** `@hybridOps:process-architect`
314
+
315
+ **Propósito:**
316
+ Validar alinhamento estratégico usando metodologia future back-casting. Responde: "Esta ação direta ou cria opcionality paths para o end-state vision?"
317
+
318
+ **Pesos e Thresholds:**
319
+
320
+ ```yaml
321
+ PV_BS_001:
322
+ weights:
323
+ end_state_vision: 0.9 # Primary weight
324
+ market_signals: 0.1 # Secondary
325
+
326
+ thresholds:
327
+ high_priority: 0.8
328
+ medium_priority: 0.7
329
+ low_priority: 0.5
330
+ veto_threshold: 0.7
331
+
332
+ veto_conditions:
333
+ - "end_state_vision_clarity < 0.7" # VETO
334
+ - "strategic_priority_score < 0.5" # REVIEW
335
+ ```
336
+
337
+ **Decision Tree:**
338
+
339
+ ```
340
+ IF (proposed_action directly enables 'end_state_vision')
341
+ THEN resource_allocation_priority = HIGH → APPROVE
342
+
343
+ ELSE IF (proposed_action creates optionality_path)
344
+ THEN resource_allocation_priority = MEDIUM → APPROVE with conditions
345
+
346
+ ELSE IF (action does not serve end_state vision)
347
+ THEN REVIEW - requires justification
348
+
349
+ TERMINATION: If action contradicts end_state OR more direct path exists
350
+ FALLBACK: If multiple actions conflict, prioritize the one that builds
351
+ the more fundamental layer of the future system
352
+ ```
353
+
354
+ **Critérios de Avaliação:**
355
+
356
+ | Critério | Weight | Threshold | Descrição |
357
+ |----------|--------|-----------|-----------|
358
+ | End-state vision clarity | 0.9 | ≥0.8 | Quão bem definido é o estado futuro? |
359
+ | Strategic priority score | 0.1 | ≥0.7 | Alinha com top priorities? |
360
+ | Optionality creation | 0.8 | ≥0.6 | Cria flexibilidade futura? |
361
+ | Resource efficiency | 0.7 | ≥0.5 | Uso ótimo de recursos? |
362
+
363
+ **Exemplo Behavioral Evidence (do HybridOps):**
364
+ - **Context:** Mercado de influencer focado em ativação manual
365
+ - **Decision:** Criar AI team 1.5 anos antes de ser necessário
366
+ - **Rationale:** Mudança estrutural do mercado para advertising automation (TTCX)
367
+ - **Outcome:** #1 em Latin America quando mercado mudou
368
+
369
+ **Reusável em Squad-Creator Como:**
370
+
371
+ ```yaml
372
+ HO-HE-001-SC: "Squad-Creator Architecture Validation"
373
+ phase: 2
374
+ question: "Does this architecture directly enable full-stack squad creation?"
375
+
376
+ decision_points:
377
+ - "DNA extraction pipeline → YES (fundamental)"
378
+ - "Agent generation → YES (core capability)"
379
+ - "Quality gates → YES (systemic requirement)"
380
+ - "Workflow automation → YES (efficiency layer)"
381
+ - "Dashboard analytics → REVIEW (nice-to-have, not core)"
382
+
383
+ end_state_vision: "Autonomous creation of purpose-built squads with 0 manual configuration"
384
+ vision_clarity: 0.85 # Clear vision
385
+ strategic_priority: 0.9 # Top priority for AIOS
386
+ optionality_paths: 3 # Multiple integration points
387
+
388
+ result: APPROVE (0.87 score)
389
+ ```
390
+
391
+ **Performance Metrics:**
392
+ - Decision speed: "1-3 days (vision crystallization); <1 hour (tactical)"
393
+ - Accuracy rate: "85% (3-5 year horizons)"
394
+ - Confidence level: "95% (once vision is established)"
395
+
396
+ ---
397
+
398
+ ### HO-HE-002: PV_PA_001 - Systemic Coherence Scan
399
+
400
+ **ID Pattern:** `HO-HE-002`
401
+ **Nome Completo:** Systemic Coherence Scan
402
+ **Categoria:** People/Executor Assessment Heuristic
403
+ **Fase:** 3 (Executors)
404
+ **Agent Executor:** `@hybridOps:executor-designer`
405
+
406
+ **Propósito:**
407
+ Validar coerência de executor assignments e people assessment. Truthfulness tem **VETO POWER**.
408
+
409
+ **Pesos Críticos:**
410
+
411
+ ```yaml
412
+ PV_PA_001:
413
+ weights:
414
+ truthfulness_coherence: 1.0 # VETO power - absolute
415
+ system_adherence_potential: 0.8
416
+ technical_skill: 0.3
417
+
418
+ thresholds:
419
+ truthfulness: 0.7 # Must be 'Coherent'
420
+ system_adherence: 0.7
421
+ technical_skill: null # No minimum, context-dependent
422
+
423
+ veto_conditions:
424
+ - condition: "truthfulness_coherence < 0.7"
425
+ action: "VETO - REJECT/REMOVE immediately"
426
+ - condition: "lie_detected = true"
427
+ action: "VETO - Trust violation"
428
+ ```
429
+
430
+ **Truthfulness States:**
431
+
432
+ ```yaml
433
+ truthfulness_states:
434
+ coherent:
435
+ range: [0.7, 1.0]
436
+ description: "Statements align with actions and observable data"
437
+ action: "APPROVE"
438
+
439
+ incoherent:
440
+ range: [0.4, 0.7]
441
+ description: "Statements contradict actions or data"
442
+ action: "REVIEW - Investigate"
443
+
444
+ lie_detected:
445
+ range: [0.0, 0.4]
446
+ description: "Deliberate misrepresentation"
447
+ action: "VETO - Immediate removal"
448
+ ```
449
+
450
+ **Executor Type Coherence Matrix:**
451
+
452
+ | Executor Type | Min Truthfulness | Min System Adherence | Tech Weight |
453
+ |---------------|------------------|----------------------|-------------|
454
+ | Human | 0.7 (VETO) | 0.7 | 0.3 |
455
+ | Hybrid | 0.7 (VETO) | 0.8 | 0.4 |
456
+ | Agent | N/A | 0.9 | 0.6 |
457
+ | Worker | N/A | 0.95 | 0.8 |
458
+
459
+ **Failure Modes to Watch:**
460
+
461
+ - **False Negative:** Rejecting talented candidate por pequena inconsistência
462
+ - Recovery: Appeal tribunal com trusted circle
463
+ - Prevention: Diferenciar "nervousness" de "intentional lie"
464
+
465
+ - **False Positive:** Accepting incoherent executor por charming presentation
466
+ - Detection: Contradictions em behavioral evidence
467
+ - Recovery: Apply test period com revealing tasks
468
+
469
+ **Reusável em Squad-Creator:**
470
+
471
+ ```yaml
472
+ HO-HE-002-SC: "Agent Executor Coherence Validation"
473
+ phase: 3
474
+ scope: "All agents generated by squad-creator"
475
+
476
+ validation_criteria:
477
+ - agent_output_matches_prompt: 0.9
478
+ - consistency_across_runs: 0.85
479
+ - behavior_matches_persona: 0.80
480
+ - follows_guardrails: 1.0 # VETO if fails
481
+
482
+ veto_conditions:
483
+ - "Agent generates outputs contradicting its persona"
484
+ - "Agent ignores quality gates"
485
+ - "Agent produces inconsistent results for same input"
486
+
487
+ example:
488
+ agent: "@squad-creator:analyzer"
489
+ truthfulness_score: 0.92
490
+ system_adherence: 0.88
491
+ consistency: "Extracts same axiomas from same agent 10/10 times"
492
+ result: APPROVE
493
+ ```
494
+
495
+ ---
496
+
497
+ ### HO-HE-003: PV_PM_001 - Automation Tipping Point
498
+
499
+ **ID Pattern:** `HO-HE-003`
500
+ **Nome Completo:** Automation Tipping Point
501
+ **Categoria:** Automation Decision Heuristic
502
+ **Fase:** 4 (Workflows)
503
+ **Agent Executor:** `@hybridOps:workflow-designer`
504
+
505
+ **Propósito:**
506
+ Determinar QUANDO e SE automate um processo. Implementa "Automation Before Delegation". **Guardrails têm VETO POWER**.
507
+
508
+ **A Lei da Automação:**
509
+
510
+ ```yaml
511
+ automation_mandate:
512
+ rule_1:
513
+ trigger: "Task repeated 2+ times"
514
+ action: "Document and automate"
515
+
516
+ rule_2:
517
+ trigger: "Task repeated 3+ times without automation"
518
+ assessment: "Grave design failure"
519
+ action: "Immediate remediation required"
520
+
521
+ rule_3:
522
+ trigger: "Any automation"
523
+ requirement: "MUST have guardrails, idempotency, logs, and manual escape"
524
+ ```
525
+
526
+ **Pesos e Thresholds:**
527
+
528
+ ```yaml
529
+ PV_PM_001:
530
+ weights:
531
+ task_systemic_impact: 0.9
532
+ task_automatability: 0.8
533
+ task_frequency: 0.7
534
+ guardrails_present: 1.0 # VETO power
535
+
536
+ thresholds:
537
+ systemic_impact: 0.6 # For deep work allocation
538
+ automatability: 0.5 # For removal from agenda
539
+ frequency: "2x per month" # Minimum for automation justification
540
+ standardization: 0.7 # Process must be standardized
541
+ ```
542
+
543
+ **Decision Tree:**
544
+
545
+ ```
546
+ PRIMARY:
547
+ IF (task_automatability > 0.5)
548
+ THEN AUTOMATE/DELEGATE
549
+
550
+ SECONDARY:
551
+ ELSE IF (task_systemic_impact > 0.6)
552
+ THEN ALLOCATE_DEEP_WORK_TIME (keep for humans)
553
+
554
+ CONSTRAINT: NEVER automate without guardrails
555
+
556
+ AUTOMATION DECISION MATRIX:
557
+ ┌───────────┬────────┬──────────────┬──────────────┐
558
+ │ Frequency │ Impact │ Automatability│ Decision │
559
+ ├───────────┼────────┼──────────────┼──────────────┤
560
+ │ High (4x) │ High │ High │ **AUTOMATE** │
561
+ │ High │ High │ Low │ DELEGATE │
562
+ │ High │ Low │ High │ AUTOMATE │
563
+ │ Low (<2x) │ High │ Any │ KEEP_MANUAL │
564
+ │ Low │ Low │ Any │ **ELIMINATE**│
565
+ │ Any │ Any │ Any (no GR) │ **VETO** │
566
+ └───────────┴────────┴──────────────┴──────────────┘
567
+ ```
568
+
569
+ **Guardrails Requirements (OBRIGATÓRIOS):**
570
+
571
+ ```yaml
572
+ automation_guardrails:
573
+ required:
574
+ - loop_prevention: "Deduplication and max iteration limits"
575
+ - idempotency: "Same input always produces same output"
576
+ - audit_trail: "Log of last agent/event"
577
+ - manual_escape: "Human override route available"
578
+ - retry_logic: "Graceful failure handling"
579
+
580
+ validation:
581
+ - "Can a human intervene at any point?"
582
+ - "Are all state changes logged?"
583
+ - "Is there a rollback mechanism?"
584
+ - "Are rate limits implemented?"
585
+ ```
586
+
587
+ **Reusável em Squad-Creator:**
588
+
589
+ ```yaml
590
+ HO-HE-003-SC: "DNA Extraction Automation Decision"
591
+ phase: 4
592
+
593
+ analysis:
594
+ frequency: "Every agent created (10+ times/month)" # High
595
+ systemic_impact: 0.95 # Core to squad creation
596
+ automatability: 0.85 # Parse, extract, validate are deterministic
597
+ guardrails: "Present" # 5/5 required
598
+ - loop_prevention: "Max 100 iterations per extraction"
599
+ - idempotency: "Same agent file → same DNA output"
600
+ - audit_trail: "Log each extraction step"
601
+ - manual_escape: "Manual DNA review before deploy"
602
+ - retry_logic: "Fallback to template on parse error"
603
+
604
+ decision: AUTOMATE (0.91 score)
605
+ confidence: HIGH
606
+ ```
607
+
608
+ ---
609
+
610
+ ## AXIOMA VALIDATOR PATTERN
611
+
612
+ ### HO-AX-001: 10-Dimension Axioma Assessment
613
+
614
+ **ID Pattern:** `HO-AX-001`
615
+ **Nome:** Meta-Axiomas Assessment Framework
616
+ **Fase:** 6 (Quality Assurance)
617
+ **Scope:** Process-level validation
618
+
619
+ **Definição:**
620
+ Framework de 10 dimensões para validar se um processo está **coerente com axiomas fundamentais**. Baseado em 40+ decisões documentadas.
621
+
622
+ **As 10 Dimensões:**
623
+
624
+ | # | Dimensão | Definição | Weight | Threshold | Veto Power |
625
+ |---|----------|-----------|--------|-----------|------------|
626
+ | 1 | Truthfulness | Acurácia e confiabilidade dos outputs | 1.0 | 7.0 | YES |
627
+ | 2 | Coherence | Consistência interna e lógica | 0.9 | 6.0 | NO |
628
+ | 3 | Strategic Alignment | Suporta objetivos organizacionais | 0.9 | 6.0 | NO |
629
+ | 4 | Operational Excellence | Eficiência, confiabilidade, documentação | 0.8 | 6.0 | NO |
630
+ | 5 | Innovation Capacity | Habilidade de melhoria e adaptação | 0.7 | 5.0 | NO |
631
+ | 6 | Risk Management | Identificação e mitigação de riscos | 0.8 | 6.0 | NO |
632
+ | 7 | Resource Optimization | Uso eficiente de tempo/dinheiro/pessoas | 0.8 | 6.0 | NO |
633
+ | 8 | Stakeholder Value | Valor entregue a todas as partes | 0.7 | 6.0 | NO |
634
+ | 9 | Sustainability | Viabilidade a longo prazo | 0.7 | 6.0 | NO |
635
+ | 10 | Adaptability | Capacidade de evolução | 0.6 | 5.0 | NO |
636
+
637
+ **Scoring:**
638
+ ```yaml
639
+ overall_score: (Σ(score_i × weight_i)) ÷ Σ(weight_i)
640
+
641
+ pass_criteria:
642
+ overall: ">= 7.0"
643
+ per_dimension: ">= 6.0 for all"
644
+ veto: "truthfulness < 7.0"
645
+ ```
646
+
647
+ **Assessment Template:**
648
+
649
+ ```yaml
650
+ axioma_assessment:
651
+ process_name: "DNA Extraction Pipeline"
652
+ assessor: "@squad-creator:qa-architect"
653
+
654
+ dimensions:
655
+ - name: "Truthfulness"
656
+ score: 8.5/10
657
+ evidence: "Extracts same axiomas consistently from same agent"
658
+ recommendations: ["Add confidence scoring", "Document edge cases"]
659
+
660
+ - name: "Coherence"
661
+ score: 8.0/10
662
+ evidence: "Output YAML format matches schema 100%"
663
+ recommendations: []
664
+
665
+ # ... remaining 8 dimensions
666
+
667
+ overall_score: 7.9
668
+ pass_threshold: 7.0
669
+ status: "PASS"
670
+ veto_triggered: false
671
+ ```
672
+
673
+ **Reusável em Squad-Creator:**
674
+
675
+ ```yaml
676
+ HO-AX-001-SC: "Squad-Creator Pipeline Axioma Assessment"
677
+
678
+ process_components:
679
+ - "DNA Extraction"
680
+ - "Agent Generation"
681
+ - "Quality Gates"
682
+ - "Validation Pipeline"
683
+
684
+ example_assessment:
685
+ DNA_Extraction:
686
+ truthfulness: 8.5 # Consistent output
687
+ coherence: 8.0 # Follows YAML schema
688
+ strategic_alignment: 8.5 # Enables core mission
689
+ operational_excellence: 8.0 # Well-documented, 99.9% uptime
690
+ innovation_capacity: 7.0 # Templates can be enhanced
691
+ risk_management: 8.5 # Guardrails present
692
+ resource_optimization: 8.0 # 48% automated
693
+ stakeholder_value: 8.5 # Saves 3h per agent
694
+ sustainability: 7.5 # No custom code
695
+ adaptability: 7.5 # Config-based
696
+
697
+ overall_score: 7.9 # PASS
698
+ recommendation: "Proceed to Phase 7"
699
+ ```
700
+
701
+ ---
702
+
703
+ ## QUALITY GATE PATTERNS (HO-PP-003)
704
+
705
+ ### HO-QG-001: Quality Gate Pattern - 3-Type Taxonomy
706
+
707
+ **ID Pattern:** `HO-QG-001`
708
+ **Nome:** Quality Gate Pattern (HO-PP-003)
709
+ **Aplicável a:** Todas as fases (1-9)
710
+
711
+ **Os 3 Tipos de Quality Gates:**
712
+
713
+ | Tipo | Executor | Velocidade | Uso | Exemplo |
714
+ |------|----------|-----------|-----|---------|
715
+ | **Automated** | Sistema/AI | <1 segundo | Deterministic checks | Field validation, calculations |
716
+ | **Hybrid** | Sistema + Human | 1-5 minutos | AI prepara, humano aprova | Template generation review |
717
+ | **Manual** | Human/Team | 1-8 horas | Judgment-based | Acceptance sign-off |
718
+
719
+ **Estrutura Completa de Quality Gate:**
720
+
721
+ ```yaml
722
+ quality_gate:
723
+ id: "QG-R02" # Unique identifier
724
+ name: "RICE Inputs Completeness"
725
+ phase: "Runtime"
726
+ workflow: "WF-R01"
727
+ location: "Before RT-004"
728
+ type: "Automated" # One of: Automated, Hybrid, Manual
729
+ risk_level: "Medium" # Low, Medium, High, Critical
730
+
731
+ # TRIGGER DEFINITION
732
+ trigger:
733
+ event: "field_change" # What event activates gate
734
+ condition: "any_rice_field_updated"
735
+
736
+ # ACCEPTANCE CRITERIA
737
+ criteria:
738
+ - check: "Reach field filled"
739
+ type: "not_empty" # Type: not_empty, validation, boolean, threshold, etc
740
+ field_id: "a1f4fcb9-..."
741
+ required: true
742
+
743
+ - check: "Impact field selected"
744
+ type: "not_empty"
745
+ field_id: "daeaffa6-..."
746
+ required: true
747
+
748
+ - check: "Effort field selected"
749
+ type: "not_empty"
750
+ field_id: "056d774e-..."
751
+ required: true
752
+
753
+ threshold: "100% fields filled" # Pass condition
754
+
755
+ # EXECUTOR CONFIGURATION
756
+ executor:
757
+ type: "automated" # Or: hybrid, manual
758
+ agent: "ClickUp AI Field" # Who/what validates
759
+
760
+ # ACTIONS ON PASS/FAIL
761
+ pass_action:
762
+ - "Proceed with RICE calculation"
763
+ - "Log success"
764
+
765
+ fail_action:
766
+ - "Return '-' as score"
767
+ - "Display incomplete status"
768
+ - "Log failure details"
769
+
770
+ sla: "<1 second" # Service level agreement
771
+ guardrail: "GR-001" # Linked guardrail (optional)
772
+ ```
773
+
774
+ **5-Layer QG Taxonomy:**
775
+
776
+ ```
777
+ Layer 1: RUNTIME GATES (System-level, automated)
778
+ ├── Template application gates
779
+ ├── Calculation completeness gates
780
+ ├── Value validity gates
781
+ └── Status transition gates
782
+
783
+ Layer 2: IMPLEMENTATION GATES (Wave-based)
784
+ ├── Wave 1 completion
785
+ ├── Wave 2 completion
786
+ ├── Wave 3 completion
787
+ └── Acceptance gate
788
+
789
+ Layer 3: INTEGRATION GATES (End-to-end)
790
+ ├── Complete epic flow test
791
+ ├── Complete story flow test
792
+ └── Validation gate blocking test
793
+
794
+ Layer 4: APPROVAL GATES (Management)
795
+ ├── Product Owner sign-off
796
+ ├── Tech Lead sign-off
797
+ └── Executive approval
798
+
799
+ Layer 5: MONITORING GATES (Operational)
800
+ ├── SLA monitoring
801
+ ├── Failure rate tracking
802
+ └── Performance dashboards
803
+ ```
804
+
805
+ **Reusável em Squad-Creator:**
806
+
807
+ ```yaml
808
+ HO-QG-001-SC: "Agent Generation Quality Gates"
809
+
810
+ gates:
811
+ - id: "QG-1.1"
812
+ name: "DNA Extraction Completeness"
813
+ type: "Automated"
814
+ location: "After extraction, before generation"
815
+ criteria:
816
+ - "All axiomas extracted (≥5)"
817
+ - "No empty fields in DNA YAML"
818
+ - "Coherence score ≥ 0.7"
819
+ threshold: "100% criteria met"
820
+ pass_action: ["Proceed to agent generation"]
821
+ fail_action: ["Return to extraction", "Notify user"]
822
+
823
+ - id: "QG-1.2"
824
+ name: "Agent Generation Validity"
825
+ type: "Hybrid"
826
+ location: "After agent YAML generated"
827
+ criteria:
828
+ - "Agent markdown parses without error"
829
+ - "All required fields present"
830
+ - "No undefined placeholder values"
831
+ threshold: "100% criteria met"
832
+ pass_action: ["Deploy agent", "Generate documentation"]
833
+ fail_action: ["Regenerate", "Request manual fixes"]
834
+
835
+ - id: "QG-1.3"
836
+ name: "Axioma Compliance Review"
837
+ type: "Manual"
838
+ location: "Before go-live"
839
+ criteria:
840
+ - "Agent behavior matches persona (PV assessment)"
841
+ - "No security/safety violations"
842
+ - "Meets squad requirements"
843
+ threshold: "Product Owner approval"
844
+ pass_action: ["Mark as Production-Ready"]
845
+ fail_action: ["Send back for refinement"]
846
+ ```
847
+
848
+ ---
849
+
850
+ ## EXECUTOR ASSIGNMENT PATTERNS (HO-EP-XXX)
851
+
852
+ ### HO-EP-001: Human Executor Pattern
853
+
854
+ **ID Pattern:** `HO-EP-001`
855
+ **Nome:** Human Executor Assignment
856
+ **Quando Usar:** Tasks requiring judgment, creativity, relationships
857
+
858
+ **Characteristics:**
859
+ - Cost: $$$ (expensive)
860
+ - Speed: Slow (hours to days)
861
+ - Judgment Required: YES
862
+ - Can be automated: NO
863
+
864
+ **Typical Tasks:**
865
+ - Business value assessment
866
+ - Technical estimation
867
+ - Leadership decisions
868
+ - Code reviews (with judgment)
869
+ - Stakeholder communication
870
+
871
+ **Executor Matrix Entry:**
872
+
873
+ ```yaml
874
+ - task_id: COMP-H01
875
+ task_name: "Assess Agent Fit for Squad"
876
+ executor_type: human
877
+ pattern: HO-EP-001
878
+ assigned_to: "Squad Lead"
879
+ backup: "Product Owner"
880
+
881
+ rationale: "Judgment about agent personality, culture fit requires human discernment"
882
+ automation_potential: low
883
+ frequency: "per agent creation"
884
+
885
+ capabilities_required:
886
+ - name: "Agent Capability Assessment"
887
+ level: expert
888
+ - name: "Team Dynamics Understanding"
889
+ level: expert
890
+
891
+ raci:
892
+ responsible: "Squad Lead"
893
+ accountable: "Squad Lead"
894
+ consulted: ["Agent Creator", "PM"]
895
+ informed: ["Team"]
896
+ ```
897
+
898
+ ---
899
+
900
+ ### HO-EP-002: Agent (AI) Executor Pattern
901
+
902
+ **ID Pattern:** `HO-EP-002`
903
+ **Nome:** Agent (AI) Executor Assignment
904
+ **Quando Usar:** Analysis, generation, pattern recognition
905
+
906
+ **Characteristics:**
907
+ - Cost: $$$$ (API calls)
908
+ - Speed: Very Fast (seconds to minutes)
909
+ - Judgment Required: NO (deterministic or guided)
910
+ - Can be automated: YES (fully)
911
+
912
+ **Typical Tasks:**
913
+ - Code generation
914
+ - Data analysis
915
+ - Content generation
916
+ - Complex pattern matching
917
+ - Reasoning over structured data
918
+
919
+ **Executor Matrix Entry:**
920
+
921
+ ```yaml
922
+ - task_id: COMP-A01
923
+ task_name: "Extract Agent Axiomas"
924
+ executor_type: agent
925
+ pattern: HO-EP-002
926
+ assigned_to: "Claude API (Opus)"
927
+ backup: null
928
+
929
+ rationale: "Axioma extraction is deterministic pattern recognition"
930
+ automation_potential: high
931
+ frequency: "per agent"
932
+
933
+ tools_available:
934
+ - "Claude Opus API"
935
+ - "Extraction templates"
936
+
937
+ raci:
938
+ responsible: "API System"
939
+ accountable: "Squad Creator Admin"
940
+ consulted: []
941
+ informed: ["QA team"]
942
+ ```
943
+
944
+ ---
945
+
946
+ ### HO-EP-003: Hybrid Executor Pattern
947
+
948
+ **ID Pattern:** `HO-EP-003`
949
+ **Nome:** Hybrid Executor Assignment
950
+ **Quando Usar:** AI assists, human validates and directs
951
+
952
+ **Characteristics:**
953
+ - Cost: $$ (split cost)
954
+ - Speed: Moderate (minutes to hours)
955
+ - Judgment Required: BOTH
956
+ - Can be automated: Partially (AI part yes, validation part no)
957
+
958
+ **Typical Tasks:**
959
+ - Code generation with review
960
+ - Design + implementation (separate roles)
961
+ - AI draft + human refinement
962
+ - Complex automation with human gates
963
+
964
+ **Executor Matrix Entry:**
965
+
966
+ ```yaml
967
+ - task_id: IMP-006
968
+ task_name: "Create WSJF Validation Gate"
969
+ executor_type: hybrid
970
+ pattern: HO-EP-003
971
+ assigned_to:
972
+ design: "@squad-creator:architect" # AI designs automation logic
973
+ implement: "Admin" # Human implements in ClickUp
974
+ backup: "Tech Lead"
975
+
976
+ rationale: "Automation logic requires AI design, implementation requires admin access"
977
+ effort: "2h total (1h design + 1h implement)"
978
+ risk: medium
979
+
980
+ raci:
981
+ responsible: "@architect" # Design lead
982
+ accountable: "Tech Lead" # Overall accountability
983
+ consulted: ["Product Owner"]
984
+ informed: ["Dev Team"]
985
+
986
+ workflow:
987
+ step_1: "AI designs validation logic"
988
+ step_2: "Human reviews AI output"
989
+ step_3: "Human implements in platform"
990
+ step_4: "Test end-to-end"
991
+ ```
992
+
993
+ ---
994
+
995
+ ### HO-EP-004: Worker Executor Pattern
996
+
997
+ **ID Pattern:** `HO-EP-004`
998
+ **Nome:** Worker (Deterministic Automation) Executor
999
+ **Quando Usar:** Deterministic tasks, file operations, API calls
1000
+
1001
+ **Characteristics:**
1002
+ - Cost: $ (cheapest)
1003
+ - Speed: Very Fast (sub-second to seconds)
1004
+ - Judgment Required: NO
1005
+ - Can be automated: YES (100%)
1006
+
1007
+ **Typical Tasks:**
1008
+ - Template application
1009
+ - Field calculations (formulas)
1010
+ - Validation (if/then rules)
1011
+ - File operations
1012
+ - Data transformations
1013
+
1014
+ **Executor Matrix Entry:**
1015
+
1016
+ ```yaml
1017
+ - task_id: COMP-W01
1018
+ task_name: "Apply Agent Template"
1019
+ executor_type: worker
1020
+ pattern: HO-EP-004
1021
+ assigned_to: "ClickUp Task Template" # Or: automation system, worker process
1022
+ backup: null
1023
+
1024
+ rationale: "Template application is deterministic, no judgment"
1025
+ automation_potential: high
1026
+ frequency: "per agent creation"
1027
+ platform: "ClickUp native"
1028
+ trigger: "task_created with type=agent"
1029
+
1030
+ required_fields:
1031
+ - "agent name"
1032
+ - "agent type"
1033
+
1034
+ capabilities_required:
1035
+ - name: "Template Application"
1036
+ level: basic
1037
+
1038
+ raci:
1039
+ responsible: "System"
1040
+ accountable: "Admin"
1041
+ consulted: []
1042
+ informed: ["Squad Creator"]
1043
+
1044
+ worker_logic: |
1045
+ IF task_type = 'agent' AND created_by = '@squad-creator'
1046
+ THEN apply_template('agent-standard.yaml')
1047
+ AND set_default_fields()
1048
+ AND notify_creator()
1049
+ ```
1050
+
1051
+ ---
1052
+
1053
+ ## COHERENCE VALIDATION PATTERNS
1054
+
1055
+ ### HO-CV-001: Truthfulness Assessment
1056
+
1057
+ **ID Pattern:** `HO-CV-001`
1058
+ **Nome:** Truthfulness Coherence Validation
1059
+ **Source:** PV_PA_001 Heuristic
1060
+
1061
+ **Truthfulness Evaluation States:**
1062
+
1063
+ ```yaml
1064
+ coherence_levels:
1065
+ coherent: # 0.7 - 1.0
1066
+ description: "Statements align with observable data and actions"
1067
+ examples:
1068
+ - "Agent always extracts same axiomas from same input"
1069
+ - "Agent behavior matches its documented persona"
1070
+ action: "APPROVE"
1071
+ score_range: [0.7, 1.0]
1072
+
1073
+ inconsistent: # 0.4 - 0.7
1074
+ description: "Statements contradict data without clear explanation"
1075
+ examples:
1076
+ - "Agent claims 'deterministic' but output varies"
1077
+ - "Agent says 'truthfulness matters' but outputs contain errors"
1078
+ action: "REVIEW - Investigate"
1079
+ score_range: [0.4, 0.7]
1080
+ remediation: "Apply test period with revealing tasks"
1081
+
1082
+ incoherent: # 0.0 - 0.4
1083
+ description: "Deliberate misrepresentation detected"
1084
+ examples:
1085
+ - "Agent fabricates extraction data"
1086
+ - "Agent ignores documented safety guardrails"
1087
+ action: "VETO - Remove immediately"
1088
+ score_range: [0.0, 0.4]
1089
+ consequence: "Trust breach - cannot proceed"
1090
+ ```
1091
+
1092
+ **Assessment Checklist:**
1093
+
1094
+ ```yaml
1095
+ truthfulness_validation:
1096
+ - test: "Run same input 10x, check output consistency"
1097
+ threshold: "10/10 identical outputs"
1098
+
1099
+ - test: "Verify extracted data against source"
1100
+ threshold: ">95% accuracy"
1101
+
1102
+ - test: "Check if behavior matches documented persona"
1103
+ threshold: "100% alignment"
1104
+
1105
+ - test: "Verify compliance with safety guardrails"
1106
+ threshold: "0 violations across 100 runs"
1107
+
1108
+ - test: "Check if error messages are truthful"
1109
+ threshold: "No false positives or negatives"
1110
+
1111
+ scoring:
1112
+ all_tests_pass: 0.95 # Coherent
1113
+ 1_test_fails: 0.65 # Inconsistent
1114
+ 2+_tests_fail: 0.35 # Incoherent
1115
+ ```
1116
+
1117
+ ---
1118
+
1119
+ ### HO-CV-002: Weighted Coherence Assessment
1120
+
1121
+ **ID Pattern:** `HO-CV-002`
1122
+ **Nome:** Weighted Coherence Score Calculation
1123
+ **Source:** PV_PA_001 Checkpoint
1124
+
1125
+ **Evaluation Criteria:**
1126
+
1127
+ ```yaml
1128
+ weighted_coherence_formula:
1129
+ components:
1130
+ - criterion: "Capability-Task Alignment"
1131
+ weight: 0.35
1132
+ evaluation: "Does task match executor capabilities?"
1133
+
1134
+ - criterion: "Accountability Clarity"
1135
+ weight: 0.25
1136
+ evaluation: "Is R/A/C/I clear for task?"
1137
+
1138
+ - criterion: "Backup Coverage"
1139
+ weight: 0.15
1140
+ evaluation: "Is there clear backup executor?"
1141
+
1142
+ - criterion: "Escalation Paths"
1143
+ weight: 0.10
1144
+ evaluation: "Are escalation routes defined?"
1145
+
1146
+ - criterion: "Pattern Compliance"
1147
+ weight: 0.15
1148
+ evaluation: "Does task follow HO patterns?"
1149
+
1150
+ formula: "(Σ(score_i × weight_i)) / Σ(weight_i)"
1151
+
1152
+ example_calculation:
1153
+ capability_alignment: 0.92 × 0.35 = 0.322
1154
+ accountability: 0.90 × 0.25 = 0.225
1155
+ backup: 0.85 × 0.15 = 0.128
1156
+ escalation: 0.90 × 0.10 = 0.090
1157
+ pattern: 0.95 × 0.15 = 0.143
1158
+ ────────────────────────────────
1159
+ total_score: 0.908 # PASS (threshold: 0.8)
1160
+ ```
1161
+
1162
+ **Reusável em Squad-Creator:**
1163
+
1164
+ ```yaml
1165
+ HO-CV-002-SC: "Agent-Squad Coherence Assessment"
1166
+
1167
+ agents:
1168
+ - name: "@squad-creator:analyzer"
1169
+ capability_alignment: 0.92 # DNA extraction ✓
1170
+ accountability: 0.90 # Clear RACI ✓
1171
+ backup: 0.85 # Fallback template ✓
1172
+ escalation: 0.90 # QA review available ✓
1173
+ pattern: 0.95 # Follows HO-EP-002 ✓
1174
+
1175
+ weighted_score: 0.91 # PASS
1176
+ ```
1177
+
1178
+ ---
1179
+
1180
+ ## RESUMO DE PATTERNS PARA IMPLEMENTAÇÃO
1181
+
1182
+ ### Prioridade 1: CRÍTICO (Implementar Primeiro)
1183
+
1184
+ | Pattern | Descrição | Fase | Esforço |
1185
+ |---------|-----------|------|---------|
1186
+ | **HO-TP-001** | 8-field task anatomy | 5 | 3h |
1187
+ | **HO-VC-001/002/003** | Veto conditions framework | 2-4 | 5h |
1188
+ | **HO-HE-001** | Future back-casting | 2 | 4h |
1189
+ | **HO-HE-002** | Coherence scan | 3 | 4h |
1190
+ | **HO-QG-001** | Quality gate pattern | 6 | 6h |
1191
+
1192
+ ### Prioridade 2: IMPORTANTE (Próximas)
1193
+
1194
+ | Pattern | Descrição | Fase | Esforço |
1195
+ |---------|-----------|------|---------|
1196
+ | **HO-HE-003** | Automation tipping point | 4 | 4h |
1197
+ | **HO-AX-001** | Axioma validation | 6 | 8h |
1198
+ | **HO-EP-001 a 004** | Executor patterns | 3 | 6h |
1199
+
1200
+ ### Prioridade 3: COMPLEMENTAR (Depois)
1201
+
1202
+ | Pattern | Descrição | Uso |
1203
+ |---------|-----------|-----|
1204
+ | **HO-CV-001/002** | Coherence validation | Specific assessments |
1205
+
1206
+ ---
1207
+
1208
+ ## ESTRUTURA DE ARQUIVO RECOMENDADA (Self-Contained)
1209
+
1210
+ Para implementar todos os patterns no squad-creator, criar:
1211
+
1212
+ ```
1213
+ squads/squad-creator-pro/
1214
+ ├── minds/ # MIND ARTIFACTS (copiados de HybridOps)
1215
+ │ └── pedro_valerio/
1216
+ │ ├── heuristics/
1217
+ │ │ ├── PV_BS_001.md # Future Back-Casting
1218
+ │ │ ├── PV_PA_001.md # Systemic Coherence Scan
1219
+ │ │ └── PV_PM_001.md # Automation Tipping Point
1220
+ │ └── artifacts/
1221
+ │ ├── META_AXIOMAS.md # 10 dimensões
1222
+ │ └── Assinatura_Linguistica.md
1223
+
1224
+ ├── config/ # CONFIGURAÇÕES
1225
+ │ ├── veto-conditions.yaml # Engine de veto
1226
+ │ ├── task-anatomy.yaml # Schema 8 campos
1227
+ │ ├── heuristics.yaml # Engine de heuristics (adaptado)
1228
+ │ ├── axioma-validator.yaml # Scoring 10 dimensões
1229
+ │ └── quality-gates.yaml # Quality gates por fase
1230
+
1231
+ ├── patterns/ # PATTERNS ADAPTADOS
1232
+ │ ├── veto-conditions/
1233
+ │ │ ├── SC-VC-001-vision-clarity.yaml
1234
+ │ │ ├── SC-VC-002-agent-coherence.yaml
1235
+ │ │ └── SC-VC-003-guardrail-requirement.yaml
1236
+ │ │
1237
+ │ ├── heuristics/
1238
+ │ │ ├── SC-HE-001-squad-vision.md
1239
+ │ │ ├── SC-HE-002-agent-coherence.md
1240
+ │ │ └── SC-HE-003-workflow-automation.md
1241
+ │ │
1242
+ │ ├── quality-gates/
1243
+ │ │ └── SC-QG-001-pattern.yaml
1244
+ │ │
1245
+ │ └── executors/
1246
+ │ ├── SC-EP-001-human.yaml
1247
+ │ ├── SC-EP-002-agent.yaml
1248
+ │ ├── SC-EP-003-hybrid.yaml
1249
+ │ └── SC-EP-004-worker.yaml
1250
+
1251
+ └── scripts/ # VALIDADORES
1252
+ ├── task-anatomy-validator.py
1253
+ └── coherence-validator.py
1254
+ ```
1255
+
1256
+ **NOTA:** Prefixo `SC-` = Squad-Creator (adaptação local). Prefixo `PV_` ou `HO-` = Original do HybridOps.
1257
+
1258
+ ---
1259
+
1260
+ ## INTEGRAÇÃO COM WORKFLOW EXISTENTE
1261
+
1262
+ ### Fluxo Atual do Squad-Creator
1263
+
1264
+ ```
1265
+ squad-chief (orquestra)
1266
+ ↓ *create-squad, *review-*
1267
+ oalanicolas (extrai)
1268
+ ↓ INSUMOS_READY (template: handoff-insumos-tmpl.yaml)
1269
+ pedro-valerio (constrói)
1270
+ ↓ Artefatos validados
1271
+ squad-chief (revisa)
1272
+ ↓ *review-extraction, *review-artifacts
1273
+ Entrega final
1274
+ ```
1275
+
1276
+ ### Template de Handoff (Já Existe)
1277
+
1278
+ **Path:** `squads/squad-creator-pro/templates/handoff-insumos-tmpl.yaml`
1279
+
1280
+ O Pedro Valério aceita insumos no formato:
1281
+ ```yaml
1282
+ handoff_type: INSUMOS_READY
1283
+ from: "@oalanicolas"
1284
+ to: "@pedro-valerio"
1285
+
1286
+ insumos:
1287
+ voice_dna:
1288
+ signature_phrases: ["...", "..."] # Mínimo 5
1289
+ source_verified: true # OBRIGATÓRIO
1290
+ thinking_dna:
1291
+ frameworks: ["...", "..."]
1292
+ heuristics: ["...", "..."]
1293
+ quotes:
1294
+ verified_count: 15 # Mínimo 15
1295
+
1296
+ validation_gates:
1297
+ - all_sources_have_SOURCE_tag: true
1298
+ - min_quotes: 15
1299
+ - min_signature_phrases: 5
1300
+ ```
1301
+
1302
+ ### Veto no Handoff
1303
+
1304
+ Se insumos incompletos, Pedro Valério **devolve** para @oalanicolas:
1305
+
1306
+ ```yaml
1307
+ veto_handoff:
1308
+ trigger: "insumos_incomplete"
1309
+ conditions:
1310
+ - "< 15 citações verificáveis"
1311
+ - "< 5 signature phrases"
1312
+ - "Conceitos sem [SOURCE:]"
1313
+ - "Inferências não marcadas"
1314
+ action: "DEVOLVER para @oalanicolas com lista específica"
1315
+ ```
1316
+
1317
+ ---
1318
+
1319
+ ## CONCLUSÃO
1320
+
1321
+ Extraí **23 patterns reutilizáveis** do HybridOps squad:
1322
+
1323
+ - **3 Veto Conditions** (para quality gates)
1324
+ - **1 Task Anatomy pattern** (8 campos obrigatórios)
1325
+ - **3 Heuristics** (PV_BS_001, PV_PA_001, PV_PM_001)
1326
+ - **1 Axioma Validator** (10 dimensões)
1327
+ - **3 Quality Gate types** (Automated, Hybrid, Manual)
1328
+ - **4 Executor Patterns** (Human, Agent, Hybrid, Worker)
1329
+ - **2 Coherence Validation** patterns
1330
+
1331
+ **ADICIONAL (v1.2):**
1332
+ - **4 Modos do Pedro Valério** com mapeamento modo → pattern
1333
+ - **5 Mind Artifacts** COPIADOS para dentro do squad-creator (self-contained)
1334
+ - **Integração com workflow** squad-chief → oalanicolas → pedro-valerio
1335
+ - **Zero referências externas** - squad é 100% portável
1336
+
1337
+ Todos estão **prontos para adaptação** ao squad-creator com minimal customization. Recomendo iniciar pela **Fase 0 (Agent Update)** antes dos patterns.
1338
+
1339
+ ---
1340
+
1341
+ ## CHANGELOG
1342
+
1343
+ | Versão | Data | Mudanças |
1344
+ |--------|------|----------|
1345
+ | v1.2 | 2026-02-10 | Self-contained: COPIAR artifacts, zero refs externas |
1346
+ | v1.1 | 2026-02-10 | 4 Modos, Mind Artifacts, Workflow integration |
1347
+ | v1.0 | 2026-02-10 | Versão inicial - 23 patterns extraídos |
1348
+
1349
+ ---
1350
+
1351
+ *Documento atualizado: 2026-02-10 v1.2*