claude-flow-novice 2.18.6 → 2.18.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1000) hide show
  1. package/.claude/hooks/SKILL.md +471 -471
  2. package/.claude/hooks/cfn-pre-edit-security-warning.sh +40 -40
  3. package/.claude/hooks/{subagent-start.sh → cfn-subagent-start.sh} +1 -1
  4. package/.claude/hooks/{subagent-stop.sh → cfn-subagent-stop.sh} +37 -1
  5. package/.claude/settings.json +5 -5
  6. package/.claude/skills/cfn-agent-selector +1 -0
  7. package/.claude/skills/cfn-agent-spawning +1 -0
  8. package/.claude/skills/cfn-cerebras-code-generator/context-analyzer.sh +95 -95
  9. package/.claude/skills/cfn-cerebras-code-generator/generate-code.sh +204 -204
  10. package/.claude/skills/cfn-cerebras-coordinator/coordinate-generation.sh +380 -380
  11. package/.claude/skills/cfn-cerebras-coordinator/feedback-logger.sh +253 -253
  12. package/.claude/skills/cfn-cerebras-coordinator/fix-existing-code-v2.sh +442 -442
  13. package/.claude/skills/cfn-cerebras-coordinator/query-patterns.sh +181 -181
  14. package/.claude/skills/cfn-cerebras-coordinator/tdd-coordinator.sh +637 -637
  15. package/.claude/skills/cfn-cerebras-coordinator/test-runner.sh +334 -334
  16. package/.claude/skills/cfn-docker-wave-execution +1 -0
  17. package/.claude/skills/cfn-hybrid-routing +1 -0
  18. package/.claude/skills/cfn-local-ruvector-accelerator/AGENT_LIFECYCLE_INTEGRATION.md +341 -0
  19. package/.claude/skills/cfn-local-ruvector-accelerator/analyze-agent-failures.sh +275 -0
  20. package/.claude/skills/cfn-local-ruvector-accelerator/cfn-integration.sh +178 -178
  21. package/.claude/skills/cfn-local-ruvector-accelerator/ingest-agent-transcript.sh +255 -0
  22. package/.claude/skills/cfn-local-ruvector-accelerator/query-agent-patterns.sh +197 -0
  23. package/.claude/skills/cfn-local-ruvector-accelerator/test-agent-lifecycle-integration.sh +254 -0
  24. package/.claude/skills/cfn-loop-orchestration +1 -0
  25. package/.claude/skills/cfn-mdap-context-injection/SKILL.md +2 -9
  26. package/.claude/skills/cfn-mdap-context-injection/inject.sh +39 -39
  27. package/.claude/skills/cfn-provider-routing +1 -0
  28. package/.claude/skills/cfn-redis-coordination +1 -0
  29. package/package.json +43 -39
  30. package/readme/COMPONENT_NPM_STATUS.md +1 -1
  31. package/readme/installation-process.md +1 -1
  32. package/scripts/{init-project.js → cfn-init.js} +23 -101
  33. package/scripts/postinstall.js +144 -0
  34. package/trigger.config.ts +9 -0
  35. package/.claude/.cfn-initialized +0 -1
  36. package/.claude/hooks/SKILL.md.backup +0 -471
  37. package/.claude/hooks/cfn-post-execution/memory-cleanup.sh +0 -20
  38. package/.claude/hooks/cfn-pre-execution/SESSION_START_README.md +0 -87
  39. package/.claude/hooks/cfn-pre-execution/TEST_SESSION_START.md +0 -128
  40. package/.claude/hooks/cfn-pre-execution/memory-check.sh +0 -20
  41. package/.claude/hooks/cfn-pre-execution/session-start-context.sh +0 -111
  42. package/.claude/skills/cfn-docker-runtime/lib/coordination/README.md +0 -349
  43. package/.claude/skills/cfn-docker-runtime/lib/coordination/docker-helpers.sh +0 -433
  44. package/.claude/skills/cfn-docker-runtime/lib/coordination/package.json +0 -38
  45. package/.claude/skills/cfn-docker-runtime/lib/coordination/src/agent-container.ts +0 -471
  46. package/.claude/skills/cfn-docker-runtime/lib/coordination/src/docker-client.ts +0 -483
  47. package/.claude/skills/cfn-docker-runtime/lib/coordination/src/health-checker.ts +0 -418
  48. package/.claude/skills/cfn-docker-runtime/lib/coordination/src/index.ts +0 -45
  49. package/.claude/skills/cfn-docker-runtime/lib/coordination/src/network-manager.ts +0 -377
  50. package/.claude/skills/cfn-docker-runtime/lib/coordination/src/types.ts +0 -412
  51. package/.claude/skills/cfn-docker-runtime/lib/coordination/src/volume-manager.ts +0 -389
  52. package/.claude/skills/cfn-edit-safety/lib/backup/SKILL.md.backup +0 -277
  53. package/.claude/skills/cfn-edit-safety/lib/backup/backup.sh.backup +0 -107
  54. package/.claude/skills/cfn-loop-orchestration-v2/lib/coordination/agent-completion.sh.backup +0 -36
  55. package/.claude/skills/cfn-loop-orchestration-v2/lib/coordination/coordination-patterns.ts +0 -194
  56. package/.claude/skills/cfn-loop-orchestration-v2/lib/coordination/coordination-signal.sh.backup +0 -36
  57. package/.claude/skills/cfn-loop-orchestration-v2/lib/coordination/coordination-wait.sh.backup +0 -36
  58. package/.claude/skills/cfn-loop-orchestration-v2/lib/coordination/index.ts +0 -25
  59. package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/SKILL.md.backup +0 -353
  60. package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/check-dependencies.sh.backup +0 -31
  61. package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/detect-vapor.sh.backup +0 -37
  62. package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/orchestrate-cfn-loop.sh.backup +0 -252
  63. package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/validate-deliverables.sh.backup +0 -37
  64. package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/validate-gate.sh.backup +0 -41
  65. package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/validate-iteration.sh.backup +0 -134
  66. package/.claude/skills/cfn-memory-persistence/lib/redis/agent-log.sh.backup +0 -128
  67. package/.claude/skills/cfn-memory-persistence/lib/redis/agent-recovery.sh.backup +0 -75
  68. package/.claude/skills/cfn-memory-persistence/lib/redis/analyze-task-complexity.sh.backup +0 -277
  69. package/.claude/skills/cfn-memory-persistence/lib/redis/bash-wrappers/store-context.sh.backup +0 -23
  70. package/.claude/skills/cfn-memory-persistence/lib/redis/cancel-swarm.sh.backup +0 -221
  71. package/.claude/skills/cfn-memory-persistence/lib/redis/cfn-loop-exec.sh.backup +0 -468
  72. package/.claude/skills/cfn-memory-persistence/lib/redis/cfn-loop-relaunch.sh.backup +0 -29
  73. package/.claude/skills/cfn-memory-persistence/lib/redis/collect-confidence-scores.sh.backup +0 -209
  74. package/.claude/skills/cfn-memory-persistence/lib/redis/collect-results.sh.backup +0 -75
  75. package/.claude/skills/cfn-memory-persistence/lib/redis/complete-swarm.sh.backup +0 -75
  76. package/.claude/skills/cfn-memory-persistence/lib/redis/get-context.sh.backup +0 -146
  77. package/.claude/skills/cfn-memory-persistence/lib/redis/get-success-criteria.sh.backup +0 -54
  78. package/.claude/skills/cfn-memory-persistence/lib/redis/invoke-waiting-mode.sh.backup +0 -225
  79. package/.claude/skills/cfn-memory-persistence/lib/redis/redis-cli-wrapper.sh.backup +0 -43
  80. package/.claude/skills/cfn-memory-persistence/lib/redis/redis-functions.sh.backup +0 -34
  81. package/.claude/skills/cfn-memory-persistence/lib/redis/report-completion.sh.backup +0 -134
  82. package/.claude/skills/cfn-memory-persistence/lib/redis/store-context.sh.backup +0 -123
  83. package/.claude/skills/cfn-transparency-middleware/src/lib.rs.backup +0 -388
  84. package/claude-assets/agents/AGENT_LIFECYCLE.md +0 -532
  85. package/claude-assets/agents/README-AGENT_LIFECYCLE.md +0 -522
  86. package/claude-assets/agents/README-VALIDATION.md +0 -243
  87. package/claude-assets/agents/SHARED_PROTOCOL.md +0 -64
  88. package/claude-assets/agents/cfn-dev-team/CLAUDE.md +0 -1000
  89. package/claude-assets/agents/cfn-dev-team/README.md +0 -219
  90. package/claude-assets/agents/cfn-dev-team/analysts/analyst.md +0 -113
  91. package/claude-assets/agents/cfn-dev-team/analysts/root-cause-analyst.md +0 -257
  92. package/claude-assets/agents/cfn-dev-team/architecture/api-designer-persona.md +0 -145
  93. package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +0 -150
  94. package/claude-assets/agents/cfn-dev-team/architecture/goal-planner.md +0 -173
  95. package/claude-assets/agents/cfn-dev-team/architecture/planner.md +0 -132
  96. package/claude-assets/agents/cfn-dev-team/architecture/system-architect.md +0 -125
  97. package/claude-assets/agents/cfn-dev-team/coordinators/README.md +0 -42
  98. package/claude-assets/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +0 -886
  99. package/claude-assets/agents/cfn-dev-team/coordinators/consensus-builder.md +0 -473
  100. package/claude-assets/agents/cfn-dev-team/coordinators/handoff-coordinator.md +0 -740
  101. package/claude-assets/agents/cfn-dev-team/coordinators/multi-sprint-coordinator.md +0 -503
  102. package/claude-assets/agents/cfn-dev-team/dev-ops/devops-engineer.md +0 -150
  103. package/claude-assets/agents/cfn-dev-team/dev-ops/docker-specialist.md +0 -664
  104. package/claude-assets/agents/cfn-dev-team/dev-ops/github-commit-agent.md +0 -116
  105. package/claude-assets/agents/cfn-dev-team/dev-ops/kubernetes-specialist.md +0 -617
  106. package/claude-assets/agents/cfn-dev-team/developers/README.md +0 -69
  107. package/claude-assets/agents/cfn-dev-team/developers/api-gateway-specialist.md +0 -970
  108. package/claude-assets/agents/cfn-dev-team/developers/backend-developer.md +0 -192
  109. package/claude-assets/agents/cfn-dev-team/developers/data/data-engineer.md +0 -665
  110. package/claude-assets/agents/cfn-dev-team/developers/database/database-architect.md +0 -369
  111. package/claude-assets/agents/cfn-dev-team/developers/database/supabase-specialist.md +0 -739
  112. package/claude-assets/agents/cfn-dev-team/developers/frontend/mobile-dev.md +0 -240
  113. package/claude-assets/agents/cfn-dev-team/developers/frontend/react-frontend-engineer.md +0 -256
  114. package/claude-assets/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +0 -389
  115. package/claude-assets/agents/cfn-dev-team/developers/frontend/ui-designer.md +0 -214
  116. package/claude-assets/agents/cfn-dev-team/developers/graphql-specialist.md +0 -700
  117. package/claude-assets/agents/cfn-dev-team/developers/rust-developer.md +0 -221
  118. package/claude-assets/agents/cfn-dev-team/documentation/README-VALIDATION.md +0 -245
  119. package/claude-assets/agents/cfn-dev-team/documentation/agent-type-guidelines.md +0 -469
  120. package/claude-assets/agents/cfn-dev-team/documentation/api-documentation.md +0 -104
  121. package/claude-assets/agents/cfn-dev-team/documentation/pseudocode.md +0 -137
  122. package/claude-assets/agents/cfn-dev-team/documentation/specification-agent.md +0 -145
  123. package/claude-assets/agents/cfn-dev-team/product-owners/accessibility-advocate-persona.md +0 -112
  124. package/claude-assets/agents/cfn-dev-team/product-owners/cto-agent.md +0 -131
  125. package/claude-assets/agents/cfn-dev-team/product-owners/power-user-persona.md +0 -144
  126. package/claude-assets/agents/cfn-dev-team/product-owners/product-owner.md +0 -476
  127. package/claude-assets/agents/cfn-dev-team/reviewers/README.md +0 -58
  128. package/claude-assets/agents/cfn-dev-team/reviewers/code-reviewer.md +0 -287
  129. package/claude-assets/agents/cfn-dev-team/reviewers/quality/code-quality-validator.md +0 -213
  130. package/claude-assets/agents/cfn-dev-team/reviewers/quality/cyclomatic-complexity-reducer.md +0 -327
  131. package/claude-assets/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +0 -250
  132. package/claude-assets/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +0 -153
  133. package/claude-assets/agents/cfn-dev-team/reviewers/quality/quality-metrics.md +0 -379
  134. package/claude-assets/agents/cfn-dev-team/testers/README.md +0 -94
  135. package/claude-assets/agents/cfn-dev-team/testers/api-testing-specialist.md +0 -750
  136. package/claude-assets/agents/cfn-dev-team/testers/chaos-engineering-specialist.md +0 -937
  137. package/claude-assets/agents/cfn-dev-team/testers/contract-tester.md +0 -680
  138. package/claude-assets/agents/cfn-dev-team/testers/e2e/playwright-tester.md +0 -117
  139. package/claude-assets/agents/cfn-dev-team/testers/integration-tester.md +0 -778
  140. package/claude-assets/agents/cfn-dev-team/testers/interaction-tester.md +0 -181
  141. package/claude-assets/agents/cfn-dev-team/testers/load-testing-specialist.md +0 -498
  142. package/claude-assets/agents/cfn-dev-team/testers/mutation-testing-specialist.md +0 -636
  143. package/claude-assets/agents/cfn-dev-team/testers/playwright-tester.md +0 -246
  144. package/claude-assets/agents/cfn-dev-team/testers/tester.md +0 -208
  145. package/claude-assets/agents/cfn-dev-team/testers/unit/tdd-london-unit-swarm.md +0 -30
  146. package/claude-assets/agents/cfn-dev-team/testers/validation/validation-production-validator.md +0 -20
  147. package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +0 -273
  148. package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +0 -480
  149. package/claude-assets/agents/cfn-dev-team/utility/context-curator.md +0 -62
  150. package/claude-assets/agents/cfn-dev-team/utility/epic-creator.md +0 -132
  151. package/claude-assets/agents/cfn-dev-team/utility/memory-leak-specialist.md +0 -170
  152. package/claude-assets/agents/cfn-dev-team/utility/researcher.md +0 -109
  153. package/claude-assets/agents/cfn-dev-team/utility/z-ai-specialist.md +0 -211
  154. package/claude-assets/agents/csuite/cto-agent.md +0 -371
  155. package/claude-assets/agents/custom/cfn-docker-expert.md +0 -104
  156. package/claude-assets/agents/custom/cfn-loops-cli-expert.md +0 -455
  157. package/claude-assets/agents/custom/cfn-redis-operations.md +0 -531
  158. package/claude-assets/agents/custom/cfn-system-expert.md +0 -337
  159. package/claude-assets/agents/custom/claude-code-expert.md +0 -291
  160. package/claude-assets/agents/custom/mdap-trigger-specialist.md +0 -437
  161. package/claude-assets/agents/custom/trigger-dev-expert.md +0 -370
  162. package/claude-assets/agents/docker-coordinators/cfn-docker-v3-coordinator.md +0 -1094
  163. package/claude-assets/agents/docker-ts-fixer.md +0 -58
  164. package/claude-assets/agents/project-only-agents/npm-package-specialist.md +0 -327
  165. package/claude-assets/agents/validate-agent.js +0 -841
  166. package/claude-assets/cfn-extras/.gs-api-quota.json +0 -16
  167. package/claude-assets/cfn-extras/.gs-progress-state.json +0 -22
  168. package/claude-assets/cfn-extras/agents/cfn-coordinator-enterprise.md +0 -1303
  169. package/claude-assets/cfn-extras/agents/cfn-coordinator-mvp.md +0 -942
  170. package/claude-assets/cfn-extras/agents/cfn-coordinator-standard.md +0 -1062
  171. package/claude-assets/cfn-extras/agents/cfn-loop-coordinator.md +0 -157
  172. package/claude-assets/cfn-extras/agents/cfn-v3-coordinator.md +0 -517
  173. package/claude-assets/cfn-extras/agents/code-booster.md +0 -67
  174. package/claude-assets/cfn-extras/agents/coordinator.md +0 -182
  175. package/claude-assets/cfn-extras/agents/cost-savings-cfn-loop-coordinator.md +0 -760
  176. package/claude-assets/cfn-extras/agents/cost-savings-coordinator.md +0 -173
  177. package/claude-assets/cfn-extras/agents/deprecated-coordinators/adaptive-coordinator-enhanced.md +0 -147
  178. package/claude-assets/cfn-extras/agents/deprecated-coordinators/adaptive-coordinator.md +0 -162
  179. package/claude-assets/cfn-extras/agents/deprecated-coordinators/blocking-coordinator-example.md +0 -729
  180. package/claude-assets/cfn-extras/agents/deprecated-coordinators/byzantine-coordinator.md +0 -100
  181. package/claude-assets/cfn-extras/agents/deprecated-coordinators/cfn-coordinator-enterprise.md +0 -323
  182. package/claude-assets/cfn-extras/agents/deprecated-coordinators/cfn-coordinator-mvp.md +0 -157
  183. package/claude-assets/cfn-extras/agents/deprecated-coordinators/cfn-coordinator-standard.md +0 -229
  184. package/claude-assets/cfn-extras/agents/deprecated-coordinators/cfn-coordinator-unified.md +0 -149
  185. package/claude-assets/cfn-extras/agents/deprecated-coordinators/coordinator-hybrid.md +0 -231
  186. package/claude-assets/cfn-extras/agents/deprecated-coordinators/gossip-coordinator.md +0 -165
  187. package/claude-assets/cfn-extras/agents/deprecated-coordinators/hierarchical-coordinator.md +0 -95
  188. package/claude-assets/cfn-extras/agents/deprecated-coordinators/mesh-coordinator.md +0 -132
  189. package/claude-assets/cfn-extras/agents/deprecated-coordinators/task-coordinator.md +0 -109
  190. package/claude-assets/cfn-extras/agents/deprecated-coordinators/test-coordinator.md +0 -142
  191. package/claude-assets/cfn-extras/agents/docker-team/csuite/c-suite-template.md +0 -529
  192. package/claude-assets/cfn-extras/agents/docker-team/infrastructure/team-coordinator-template.md +0 -467
  193. package/claude-assets/cfn-extras/agents/docker-team/micro-sprint-planner.md +0 -747
  194. package/claude-assets/cfn-extras/agents/google-sheets/README.md +0 -114
  195. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-advanced-analytics-specialist.md +0 -288
  196. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-api-integrator.md +0 -127
  197. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-automation-scripting-specialist.md +0 -195
  198. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-business-validator.md +0 -179
  199. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-collaboration-security-specialist.md +0 -240
  200. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-coordinator.md +0 -214
  201. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-data-transformer.md +0 -127
  202. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-data-validation-quality-specialist.md +0 -177
  203. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-data-validator.md +0 -119
  204. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-data-visualization-specialist.md +0 -135
  205. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-design-layout-specialist.md +0 -109
  206. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-formula-engineer.md +0 -127
  207. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-formula-engineering-specialist.md +0 -138
  208. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-formula-validator.md +0 -128
  209. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-generalist.md +0 -645
  210. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-integration-api-specialist.md +0 -258
  211. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-performance-analyst.md +0 -125
  212. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-performance-optimization-specialist.md +0 -211
  213. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-schema-designer.md +0 -130
  214. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-template-architecture-specialist.md +0 -259
  215. package/claude-assets/cfn-extras/agents/google-sheets-specialist.md +0 -614
  216. package/claude-assets/cfn-extras/commands/deprecated/CFN_EXPERT_UPDATE.md +0 -142
  217. package/claude-assets/cfn-extras/commands/deprecated/README.md +0 -55
  218. package/claude-assets/cfn-extras/commands/deprecated/cfn-loop-epic.md +0 -478
  219. package/claude-assets/cfn-extras/commands/deprecated/cfn-loop-single.md +0 -256
  220. package/claude-assets/cfn-extras/commands/deprecated/cfn-loop-sprints.md +0 -396
  221. package/claude-assets/cfn-extras/commands/deprecated/context-curate.md +0 -200
  222. package/claude-assets/cfn-extras/commands/deprecated/context-inject.md +0 -251
  223. package/claude-assets/cfn-extras/commands/deprecated/context-query.md +0 -210
  224. package/claude-assets/cfn-extras/commands/deprecated/context-stats.md +0 -269
  225. package/claude-assets/cfn-extras/commands/deprecated/cost-savings-off.md +0 -35
  226. package/claude-assets/cfn-extras/commands/deprecated/cost-savings-on.md +0 -35
  227. package/claude-assets/cfn-extras/commands/deprecated/custom-routing-activate.md +0 -55
  228. package/claude-assets/cfn-extras/commands/deprecated/custom-routing-deactivate.md +0 -46
  229. package/claude-assets/cfn-extras/commands/deprecated/github-commit.md +0 -289
  230. package/claude-assets/cfn-extras/commands/deprecated/parse-epic.md +0 -357
  231. package/claude-assets/cfn-extras/commands/deprecated/suggest-improvements.md +0 -95
  232. package/claude-assets/cfn-extras/docs/GOOGLE_SHEETS_CFN_LOOP.md +0 -619
  233. package/claude-assets/cfn-extras/skills/GOOGLE_SHEETS_SKILLS_README.md +0 -453
  234. package/claude-assets/cfn-extras/skills/advanced-features/cfn-agent-swap/SKILL.md +0 -36
  235. package/claude-assets/cfn-extras/skills/advanced-features/cfn-agent-swap/recommend-swap.sh +0 -60
  236. package/claude-assets/cfn-extras/skills/advanced-features/cfn-api-validation/test-endpoints.sh +0 -54
  237. package/claude-assets/cfn-extras/skills/advanced-features/cfn-context-pruner/SKILL.md +0 -75
  238. package/claude-assets/cfn-extras/skills/advanced-features/cfn-context-pruner/prune-context.sh +0 -73
  239. package/claude-assets/cfn-extras/skills/advanced-features/cfn-event-bus/README.md +0 -299
  240. package/claude-assets/cfn-extras/skills/advanced-features/cfn-event-bus/SKILL.md +0 -412
  241. package/claude-assets/cfn-extras/skills/advanced-features/cfn-event-bus/config.json +0 -111
  242. package/claude-assets/cfn-extras/skills/advanced-features/cfn-event-bus/eventbus-wrapper.cjs +0 -69
  243. package/claude-assets/cfn-extras/skills/advanced-features/cfn-event-bus/invoke-event-publish.sh +0 -147
  244. package/claude-assets/cfn-extras/skills/advanced-features/cfn-event-bus/invoke-event-subscribe.sh +0 -171
  245. package/claude-assets/cfn-extras/skills/advanced-features/cfn-event-bus/invoke-lifecycle-track.sh +0 -201
  246. package/claude-assets/cfn-extras/skills/advanced-features/cfn-event-bus/test-event-bus.sh +0 -280
  247. package/claude-assets/cfn-extras/skills/advanced-features/cfn-fleet-manager/README.md +0 -74
  248. package/claude-assets/cfn-extras/skills/advanced-features/cfn-fleet-manager/SKILL.md +0 -412
  249. package/claude-assets/cfn-extras/skills/advanced-features/cfn-fleet-manager/config.json +0 -60
  250. package/claude-assets/cfn-extras/skills/advanced-features/cfn-fleet-manager/invoke-fleet-allocate.sh +0 -182
  251. package/claude-assets/cfn-extras/skills/advanced-features/cfn-fleet-manager/invoke-fleet-balance.sh +0 -239
  252. package/claude-assets/cfn-extras/skills/advanced-features/cfn-fleet-manager/invoke-fleet-metrics.sh +0 -193
  253. package/claude-assets/cfn-extras/skills/advanced-features/cfn-fleet-manager/invoke-fleet-register.sh +0 -124
  254. package/claude-assets/cfn-extras/skills/advanced-features/cfn-fleet-manager/test-fleet-manager.sh +0 -345
  255. package/claude-assets/cfn-extras/skills/advanced-features/cfn-task-mode-safety/cli-coordination.sh +0 -519
  256. package/claude-assets/cfn-extras/skills/advanced-features/cfn-task-mode-safety/mode-detection.sh +0 -326
  257. package/claude-assets/cfn-extras/skills/advanced-features/cfn-task-mode-sanitize/task-mode-env-sanitizer.sh +0 -267
  258. package/claude-assets/cfn-extras/skills/deprecated/cfn-agent-discovery/SKILL.md +0 -40
  259. package/claude-assets/cfn-extras/skills/deprecated/cfn-agent-discovery/agents-registry-clean.json +0 -0
  260. package/claude-assets/cfn-extras/skills/deprecated/cfn-agent-discovery/agents-registry-fixed.json +0 -19
  261. package/claude-assets/cfn-extras/skills/deprecated/cfn-agent-discovery/agents-registry.json +0 -719
  262. package/claude-assets/cfn-extras/skills/deprecated/cfn-agent-discovery/discover-agents.py +0 -184
  263. package/claude-assets/cfn-extras/skills/deprecated/cfn-agent-discovery/discover-agents.sh +0 -87
  264. package/claude-assets/cfn-extras/skills/deprecated/cfn-agent-discovery/invoke-registry.sh +0 -11
  265. package/claude-assets/cfn-extras/skills/deprecated/cfn-agent-discovery/temp_script.py +0 -0
  266. package/claude-assets/cfn-extras/skills/deprecated/cfn-agent-selector/SKILL.md +0 -91
  267. package/claude-assets/cfn-extras/skills/deprecated/cfn-agent-selector/select-agents.sh +0 -112
  268. package/claude-assets/cfn-extras/skills/deprecated/cfn-cli-setup/validate-cli-environment.sh +0 -192
  269. package/claude-assets/cfn-extras/skills/deprecated/cfn-simplified-agent-lifecycle/DESIGN.md +0 -98
  270. package/claude-assets/cfn-extras/skills/google-sheets-api-coordinator/SKILL.md +0 -272
  271. package/claude-assets/cfn-extras/skills/google-sheets-api-coordinator/api-call.sh +0 -254
  272. package/claude-assets/cfn-extras/skills/google-sheets-api-coordinator/test.sh +0 -174
  273. package/claude-assets/cfn-extras/skills/google-sheets-api-coordinator/validate.sh +0 -98
  274. package/claude-assets/cfn-extras/skills/google-sheets-decomposition/SKILL.md +0 -269
  275. package/claude-assets/cfn-extras/skills/google-sheets-decomposition/decompose.sh +0 -313
  276. package/claude-assets/cfn-extras/skills/google-sheets-formula-builder/SKILL.md +0 -237
  277. package/claude-assets/cfn-extras/skills/google-sheets-formula-builder/build-formula.sh +0 -220
  278. package/claude-assets/cfn-extras/skills/google-sheets-formula-builder/test.sh +0 -172
  279. package/claude-assets/cfn-extras/skills/google-sheets-formula-builder/validate.sh +0 -98
  280. package/claude-assets/cfn-extras/skills/google-sheets-progress/SKILL.md +0 -287
  281. package/claude-assets/cfn-extras/skills/google-sheets-progress/test.sh +0 -385
  282. package/claude-assets/cfn-extras/skills/google-sheets-progress/track-progress.sh +0 -516
  283. package/claude-assets/cfn-extras/skills/google-sheets-progress/validate.sh +0 -119
  284. package/claude-assets/cfn-extras/skills/google-sheets-sprint-order/SKILL.md +0 -277
  285. package/claude-assets/cfn-extras/skills/google-sheets-sprint-order/order-sprints.sh +0 -233
  286. package/claude-assets/cfn-extras/skills/google-sheets-validation/SKILL.md +0 -352
  287. package/claude-assets/cfn-extras/skills/google-sheets-validation/test.sh +0 -355
  288. package/claude-assets/cfn-extras/skills/google-sheets-validation/validate-state.sh +0 -374
  289. package/claude-assets/cfn-extras/skills/google-sheets-validation/validate.sh +0 -128
  290. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/SKILL.md +0 -392
  291. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/operations/create-campaign.sh +0 -231
  292. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/operations/get-campaign-performance.sh +0 -190
  293. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/operations/pause-campaign.sh +0 -142
  294. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/operations/set-budget.sh +0 -181
  295. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/operations/update-bid-strategy.sh +0 -133
  296. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-analytics-data/SKILL.md +0 -124
  297. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-analytics-data/operations/get-ad-performance.sh +0 -105
  298. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-analytics-data/operations/get-conversion-funnel.sh +0 -102
  299. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-analytics-data/operations/get-email-performance.sh +0 -105
  300. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-analytics-data/operations/get-social-engagement.sh +0 -105
  301. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-analytics-data/operations/get-website-traffic.sh +0 -107
  302. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/SKILL.md +0 -340
  303. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/operations/get-conversation-history.sh +0 -121
  304. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/operations/qualify-lead.sh +0 -156
  305. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/operations/schedule-demo.sh +0 -181
  306. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/operations/send-message.sh +0 -137
  307. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/operations/transfer-to-human.sh +0 -179
  308. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/SKILL.md +0 -350
  309. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/operations/get-backlink-profile.sh +0 -154
  310. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/operations/get-keyword-rankings.sh +0 -173
  311. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/operations/get-trending-topics.sh +0 -147
  312. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/operations/monitor-competitor.sh +0 -146
  313. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/operations/search-brand-mentions.sh +0 -167
  314. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/SKILL.md +0 -116
  315. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/operations/add-to-segment.sh +0 -78
  316. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/operations/create-contact.sh +0 -113
  317. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/operations/get-contact.sh +0 -86
  318. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/operations/remove-from-segment.sh +0 -78
  319. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/operations/update-contact.sh +0 -120
  320. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/SKILL.md +0 -106
  321. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/operations/create-campaign.sh +0 -123
  322. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/operations/get-campaign-stats.sh +0 -66
  323. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/operations/list-templates.sh +0 -68
  324. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/operations/schedule-campaign.sh +0 -85
  325. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/operations/send-test-email.sh +0 -81
  326. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-landing-pages/SKILL.md +0 -366
  327. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-landing-pages/operations/create-ab-test.sh +0 -231
  328. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-landing-pages/operations/create-landing-page.sh +0 -190
  329. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-landing-pages/operations/get-page-performance.sh +0 -137
  330. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-landing-pages/operations/publish-page.sh +0 -120
  331. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-landing-pages/operations/unpublish-page.sh +0 -108
  332. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-media-monitoring/SKILL.md +0 -202
  333. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-media-monitoring/operations/create-crisis-alert.sh +0 -104
  334. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-media-monitoring/operations/export-report.sh +0 -92
  335. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-media-monitoring/operations/get-sentiment-analysis.sh +0 -85
  336. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-media-monitoring/operations/search-mentions.sh +0 -86
  337. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-media-outreach/SKILL.md +0 -168
  338. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-media-outreach/operations/search-journalists.sh +0 -74
  339. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-media-outreach/operations/send-pitch.sh +0 -80
  340. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-media-outreach/operations/submit-haro-response.sh +0 -88
  341. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-media-outreach/operations/track-pitch-engagement.sh +0 -66
  342. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-press-distribution/SKILL.md +0 -159
  343. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-press-distribution/operations/distribute-press-release.sh +0 -94
  344. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-press-distribution/operations/get-distribution-status.sh +0 -59
  345. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-press-distribution/operations/get-pickup-metrics.sh +0 -72
  346. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-press-distribution/operations/list-templates.sh +0 -53
  347. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/SKILL.md +0 -429
  348. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/operations/create-campaign.sh +0 -183
  349. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/operations/get-delivery-status.sh +0 -139
  350. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/operations/opt-out.sh +0 -150
  351. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/operations/schedule-campaign.sh +0 -187
  352. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/operations/send-sms.sh +0 -181
  353. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-social-publishing/SKILL.md +0 -108
  354. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-social-publishing/operations/create-post.sh +0 -104
  355. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-social-publishing/operations/delete-post.sh +0 -76
  356. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-social-publishing/operations/get-post-stats.sh +0 -66
  357. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-social-publishing/operations/schedule-post.sh +0 -85
  358. package/claude-assets/cfn-extras/skills/marketing/cfn-marketing-social-publishing/operations/upload-media.sh +0 -88
  359. package/claude-assets/cfn-extras/skills/ui-portal/cfn-web-portal/DESIGN.md +0 -117
  360. package/claude-assets/cfn-extras/skills/ui-portal/cfn-web-portal/SKILL.md +0 -679
  361. package/claude-assets/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-agents.sh +0 -129
  362. package/claude-assets/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-dashboard.sh +0 -85
  363. package/claude-assets/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-events.sh +0 -125
  364. package/claude-assets/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-metrics.sh +0 -112
  365. package/claude-assets/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-start.sh +0 -135
  366. package/claude-assets/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-stop.sh +0 -121
  367. package/claude-assets/cfn-extras/skills/ui-portal/cfn-web-portal/test-web-portal-skill.sh +0 -51
  368. package/claude-assets/cfn-extras/skills/ui-portal/cfn-web-portal/validate-deployment.sh +0 -85
  369. package/claude-assets/cfn-extras/skills/utility/cfn-environment-sanitization/SKILL.md +0 -200
  370. package/claude-assets/cfn-extras/skills/utility/cfn-environment-sanitization/sanitize-environment.sh +0 -244
  371. package/claude-assets/cfn-extras/skills/utility/cfn-process-instrumentation/SKILL.md +0 -279
  372. package/claude-assets/cfn-extras/skills/utility/cfn-process-instrumentation/instrument-process.sh +0 -327
  373. package/claude-assets/cfn-extras/workflows/marketing-ad-campaigns.json +0 -125
  374. package/claude-assets/cfn-extras/workflows/marketing-analytics-data.json +0 -93
  375. package/claude-assets/cfn-extras/workflows/marketing-chatbot-conversations.json +0 -89
  376. package/claude-assets/cfn-extras/workflows/marketing-competitive-intel.json +0 -140
  377. package/claude-assets/cfn-extras/workflows/marketing-crm-contacts.json +0 -86
  378. package/claude-assets/cfn-extras/workflows/marketing-email-campaigns.json +0 -86
  379. package/claude-assets/cfn-extras/workflows/marketing-landing-pages.json +0 -137
  380. package/claude-assets/cfn-extras/workflows/marketing-media-outreach.json +0 -211
  381. package/claude-assets/cfn-extras/workflows/marketing-press-distribution.json +0 -224
  382. package/claude-assets/cfn-extras/workflows/marketing-sms-campaigns.json +0 -81
  383. package/claude-assets/cfn-extras/workflows/marketing-social-publishing.json +0 -86
  384. package/claude-assets/commands/README.md +0 -205
  385. package/claude-assets/commands/cfn-docker/CFN_DOCKER_CLI.md +0 -527
  386. package/claude-assets/commands/cfn-docker/CFN_DOCKER_LOOP.md +0 -377
  387. package/claude-assets/commands/cfn-docker/CFN_DOCKER_NATIVE.md +0 -295
  388. package/claude-assets/commands/cfn-docker/CFN_DOCKER_TASK.md +0 -490
  389. package/claude-assets/commands/cfn-loop/CFN_LOOP_FRONTEND.md +0 -741
  390. package/claude-assets/commands/cfn-loop/CFN_LOOP_TASK_MODE.md +0 -608
  391. package/claude-assets/commands/cfn-loop/cfn-loop-cli.md +0 -308
  392. package/claude-assets/commands/cfn-loop/cfn-loop-document.md +0 -499
  393. package/claude-assets/commands/cfn-loop/cfn-loop-trigger.md +0 -132
  394. package/claude-assets/commands/cfn-loop/cfn-mode.md +0 -20
  395. package/claude-assets/commands/cfn-loop/cfn-optimize-agents.md +0 -103
  396. package/claude-assets/commands/cfn-loop/list-agents-rebuild.md +0 -205
  397. package/claude-assets/commands/cfn-ruvector/codebase-reindex.md +0 -37
  398. package/claude-assets/commands/cfn-ruvector/codebase-search.md +0 -38
  399. package/claude-assets/commands/cfn-ruvector/detect-stale-docs.md +0 -41
  400. package/claude-assets/commands/cost-routing/switch-api.md +0 -109
  401. package/claude-assets/commands/deprecated/README.md +0 -24
  402. package/claude-assets/commands/deprecated/github.md +0 -221
  403. package/claude-assets/commands/deprecated/hello-world-tests.md +0 -381
  404. package/claude-assets/commands/deprecated/run-tests.md +0 -119
  405. package/claude-assets/commands/google-sheets/google-sheets-loop.md +0 -289
  406. package/claude-assets/commands/sparc.md +0 -46
  407. package/claude-assets/commands/testing/cfn-docker-core-test-suite.md +0 -326
  408. package/claude-assets/commands/workflow.md +0 -295
  409. package/claude-assets/commands/write-plan.md +0 -275
  410. package/claude-assets/hooks/GIT-HOOKS-USAGE-EXAMPLES.md +0 -116
  411. package/claude-assets/hooks/README-GIT-HOOKS.md +0 -443
  412. package/claude-assets/hooks/SKILL.md +0 -518
  413. package/claude-assets/hooks/SKILL.md.backup +0 -471
  414. package/claude-assets/hooks/cfn-BACKUP_USAGE.md +0 -243
  415. package/claude-assets/hooks/cfn-invoke-post-edit-ts.sh +0 -100
  416. package/claude-assets/hooks/cfn-invoke-post-edit-ts.sh.backup +0 -78
  417. package/claude-assets/hooks/cfn-invoke-post-edit.sh +0 -135
  418. package/claude-assets/hooks/cfn-invoke-post-edit.sh.backup +0 -87
  419. package/claude-assets/hooks/cfn-invoke-pre-edit-ts.sh +0 -116
  420. package/claude-assets/hooks/cfn-invoke-pre-edit-ts.sh.backup +0 -94
  421. package/claude-assets/hooks/cfn-invoke-pre-edit.sh +0 -110
  422. package/claude-assets/hooks/cfn-invoke-pre-edit.sh.backup +0 -88
  423. package/claude-assets/hooks/cfn-invoke-security-validation.sh +0 -70
  424. package/claude-assets/hooks/cfn-lint-sql-injection.sh +0 -61
  425. package/claude-assets/hooks/cfn-post-edit-cfn-retrospective.sh +0 -110
  426. package/claude-assets/hooks/cfn-post-edit.config.json +0 -51
  427. package/claude-assets/hooks/cfn-post-edit.sh +0 -21
  428. package/claude-assets/hooks/cfn-post-execution/memory-cleanup.sh +0 -20
  429. package/claude-assets/hooks/cfn-pre-edit-backup.sh +0 -71
  430. package/claude-assets/hooks/cfn-pre-edit-security-warning.sh +0 -40
  431. package/claude-assets/hooks/cfn-pre-execution/SESSION_START_README.md +0 -87
  432. package/claude-assets/hooks/cfn-pre-execution/TEST_SESSION_START.md +0 -128
  433. package/claude-assets/hooks/cfn-pre-execution/memory-check.sh +0 -20
  434. package/claude-assets/hooks/cfn-pre-execution/session-start-context.sh +0 -111
  435. package/claude-assets/hooks/cfn-restore-from-backup.sh +0 -37
  436. package/claude-assets/hooks/detect-hardcoded-credentials.sh +0 -212
  437. package/claude-assets/hooks/install-git-hooks.sh +0 -243
  438. package/claude-assets/hooks/post-commit-codebase-index +0 -75
  439. package/claude-assets/hooks/subagent-start.sh +0 -98
  440. package/claude-assets/hooks/subagent-stop.sh +0 -93
  441. package/claude-assets/hooks/validators/credential-scanner.sh +0 -172
  442. package/claude-assets/root-claude-distribute/CFN-CLAUDE.md +0 -513
  443. package/claude-assets/skills/SKILL_TEMPLATE.md +0 -774
  444. package/claude-assets/skills/cfn-agent-lifecycle/SKILL.md +0 -290
  445. package/claude-assets/skills/cfn-agent-lifecycle/cli/lifecycle-hook.sh +0 -5
  446. package/claude-assets/skills/cfn-agent-lifecycle/cli/select-agents.sh +0 -5
  447. package/claude-assets/skills/cfn-agent-lifecycle/cli/spawn-agent.sh +0 -5
  448. package/claude-assets/skills/cfn-agent-lifecycle/lib/audit/execute-lifecycle-hook.sh +0 -544
  449. package/claude-assets/skills/cfn-agent-lifecycle/lib/audit/simple-audit.sh +0 -58
  450. package/claude-assets/skills/cfn-agent-lifecycle/lib/output/README.md +0 -359
  451. package/claude-assets/skills/cfn-agent-lifecycle/lib/selection/SKILL.md +0 -29
  452. package/claude-assets/skills/cfn-agent-lifecycle/lib/selection/agent-mappings.json +0 -142
  453. package/claude-assets/skills/cfn-agent-lifecycle/lib/selection/dist/agent-selector.cjs +0 -297
  454. package/claude-assets/skills/cfn-agent-lifecycle/lib/selection/dist/agent-selector.js +0 -297
  455. package/claude-assets/skills/cfn-agent-lifecycle/lib/selection/dist/cli.cjs +0 -96
  456. package/claude-assets/skills/cfn-agent-lifecycle/lib/selection/dist/cli.js +0 -96
  457. package/claude-assets/skills/cfn-agent-lifecycle/lib/selection/select-agents-with-fallback.sh +0 -195
  458. package/claude-assets/skills/cfn-agent-lifecycle/lib/selection/select-agents.sh +0 -94
  459. package/claude-assets/skills/cfn-agent-lifecycle/lib/selection/task-classifier.sh +0 -93
  460. package/claude-assets/skills/cfn-agent-lifecycle/lib/spawning/SKILL.md +0 -38
  461. package/claude-assets/skills/cfn-agent-lifecycle/lib/spawning/check-dependencies.sh +0 -52
  462. package/claude-assets/skills/cfn-agent-lifecycle/lib/spawning/execute-agent.sh +0 -126
  463. package/claude-assets/skills/cfn-agent-lifecycle/lib/spawning/get-agent-provider-env.sh +0 -149
  464. package/claude-assets/skills/cfn-agent-lifecycle/lib/spawning/parse-agent-provider.sh +0 -81
  465. package/claude-assets/skills/cfn-agent-lifecycle/lib/spawning/spawn-agent-wrapper.sh +0 -63
  466. package/claude-assets/skills/cfn-agent-lifecycle/lib/spawning/spawn-agent.sh +0 -308
  467. package/claude-assets/skills/cfn-agent-lifecycle/lib/spawning/spawn-templates.sh +0 -635
  468. package/claude-assets/skills/cfn-agent-lifecycle/lib/spawning/spawn-worker.sh +0 -198
  469. package/claude-assets/skills/cfn-agent-tooling/SKILL.md +0 -52
  470. package/claude-assets/skills/cfn-agent-tooling/lib/generator/SKILL.md +0 -440
  471. package/claude-assets/skills/cfn-agent-tooling/lib/generator/generate-agent.sh +0 -405
  472. package/claude-assets/skills/cfn-agent-tooling/lib/linter/SKILL.md +0 -589
  473. package/claude-assets/skills/cfn-agent-tooling/lib/linter/lint-agents.sh +0 -271
  474. package/claude-assets/skills/cfn-cerebras-mcp/SKILL.md +0 -58
  475. package/claude-assets/skills/cfn-config/SKILL.md +0 -52
  476. package/claude-assets/skills/cfn-config/lib/management/README.md +0 -42
  477. package/claude-assets/skills/cfn-config/lib/management/SKILL.md +0 -34
  478. package/claude-assets/skills/cfn-config/lib/management/check-dependencies.sh +0 -56
  479. package/claude-assets/skills/cfn-config/lib/management/config.json +0 -32
  480. package/claude-assets/skills/cfn-config/lib/management/manage-config.sh +0 -113
  481. package/claude-assets/skills/cfn-config/lib/sanitization/sanitize-environment.sh +0 -48
  482. package/claude-assets/skills/cfn-conversation-sync/README.md +0 -133
  483. package/claude-assets/skills/cfn-conversation-sync/SKILL.md +0 -82
  484. package/claude-assets/skills/cfn-conversation-sync/sync-conversations.sh +0 -229
  485. package/claude-assets/skills/cfn-dependency-management/SKILL.md +0 -60
  486. package/claude-assets/skills/cfn-dependency-management/lib/extractor/SKILL.md +0 -35
  487. package/claude-assets/skills/cfn-dependency-management/lib/extractor/extract-dependencies.sh +0 -66
  488. package/claude-assets/skills/cfn-dependency-management/lib/ingestion/README.md +0 -101
  489. package/claude-assets/skills/cfn-dependency-management/lib/ingestion/SKILL.md +0 -397
  490. package/claude-assets/skills/cfn-dependency-management/lib/ingestion/build.sh +0 -23
  491. package/claude-assets/skills/cfn-dependency-management/lib/ingestion/dist/ingest-dependencies.js +0 -478
  492. package/claude-assets/skills/cfn-dependency-management/lib/ingestion/ingest-dependencies.sh +0 -295
  493. package/claude-assets/skills/cfn-dependency-management/lib/ingestion/ingest.sh +0 -237
  494. package/claude-assets/skills/cfn-dependency-management/lib/ingestion/manifests/cli-mode-dependencies.txt +0 -219
  495. package/claude-assets/skills/cfn-dependency-management/lib/ingestion/manifests/shared-dependencies.txt +0 -57
  496. package/claude-assets/skills/cfn-dependency-management/lib/ingestion/manifests/trigger-dev-dependencies.txt +0 -82
  497. package/claude-assets/skills/cfn-dependency-management/lib/ingestion/manifests/trigger-mode-dependencies.txt +0 -80
  498. package/claude-assets/skills/cfn-deployment-lifecycle/SKILL.md +0 -53
  499. package/claude-assets/skills/cfn-deployment-lifecycle/lib/deployment/SKILL.md +0 -293
  500. package/claude-assets/skills/cfn-deployment-lifecycle/lib/deployment/execute.sh +0 -21
  501. package/claude-assets/skills/cfn-deployment-lifecycle/lib/promotion/SKILL.md +0 -305
  502. package/claude-assets/skills/cfn-docker-runtime/SKILL.md +0 -84
  503. package/claude-assets/skills/cfn-docker-runtime/lib/build/SKILL.md +0 -96
  504. package/claude-assets/skills/cfn-docker-runtime/lib/build/build.sh +0 -73
  505. package/claude-assets/skills/cfn-docker-runtime/lib/coordination/README.md +0 -349
  506. package/claude-assets/skills/cfn-docker-runtime/lib/coordination/docker-helpers.sh +0 -433
  507. package/claude-assets/skills/cfn-docker-runtime/lib/coordination/package.json +0 -38
  508. package/claude-assets/skills/cfn-docker-runtime/lib/logging/INTEGRATION.md +0 -268
  509. package/claude-assets/skills/cfn-docker-runtime/lib/logging/SAMPLE_OUTPUTS.md +0 -237
  510. package/claude-assets/skills/cfn-docker-runtime/lib/logging/SKILL.md +0 -442
  511. package/claude-assets/skills/cfn-docker-runtime/lib/logging/capture-container-logs.sh +0 -120
  512. package/claude-assets/skills/cfn-docker-runtime/lib/logging/enable-logging.sh +0 -430
  513. package/claude-assets/skills/cfn-docker-runtime/lib/logging/init-hybrid-logging.sh +0 -210
  514. package/claude-assets/skills/cfn-docker-runtime/lib/logging/queries/analytics-summary.sh +0 -87
  515. package/claude-assets/skills/cfn-docker-runtime/lib/logging/queries/query-agent-timeline.sh +0 -51
  516. package/claude-assets/skills/cfn-docker-runtime/lib/logging/queries/query-consensus-history.sh +0 -56
  517. package/claude-assets/skills/cfn-docker-runtime/lib/logging/queries/query-coordination-timeline.sh +0 -39
  518. package/claude-assets/skills/cfn-docker-runtime/lib/logging/queries/query-failed-containers.sh +0 -40
  519. package/claude-assets/skills/cfn-docker-runtime/lib/logging/queries/query-gate-checks.sh +0 -39
  520. package/claude-assets/skills/cfn-docker-runtime/lib/logging/schema.sql +0 -111
  521. package/claude-assets/skills/cfn-docker-runtime/lib/logging/sqlite-helpers.sh +0 -240
  522. package/claude-assets/skills/cfn-docker-runtime/lib/logging/test-hybrid-logging.sh +0 -331
  523. package/claude-assets/skills/cfn-docker-runtime/lib/mcp/SKILL.md +0 -555
  524. package/claude-assets/skills/cfn-docker-runtime/lib/mcp/skill-mcp-selector.js +0 -472
  525. package/claude-assets/skills/cfn-docker-runtime/lib/orchestration/SKILL.md +0 -449
  526. package/claude-assets/skills/cfn-docker-runtime/lib/orchestration/orchestrate.sh +0 -1722
  527. package/claude-assets/skills/cfn-docker-runtime/lib/spawning/SKILL.md +0 -418
  528. package/claude-assets/skills/cfn-docker-runtime/lib/spawning/spawn-agent.sh +0 -569
  529. package/claude-assets/skills/cfn-docker-runtime/lib/waves/SKILL.md +0 -944
  530. package/claude-assets/skills/cfn-docker-runtime/lib/waves/cleanup-wave.sh +0 -445
  531. package/claude-assets/skills/cfn-docker-runtime/lib/waves/lib/docker-helpers.sh +0 -804
  532. package/claude-assets/skills/cfn-docker-runtime/lib/waves/monitor-wave.sh +0 -485
  533. package/claude-assets/skills/cfn-docker-runtime/lib/waves/spawn-wave.sh +0 -547
  534. package/claude-assets/skills/cfn-edit-safety/SKILL.md +0 -62
  535. package/claude-assets/skills/cfn-edit-safety/lib/backup/SKILL.md +0 -324
  536. package/claude-assets/skills/cfn-edit-safety/lib/backup/SKILL.md.backup +0 -277
  537. package/claude-assets/skills/cfn-edit-safety/lib/backup/backup.sh +0 -129
  538. package/claude-assets/skills/cfn-edit-safety/lib/backup/backup.sh.backup +0 -107
  539. package/claude-assets/skills/cfn-edit-safety/lib/hooks/README.md +0 -74
  540. package/claude-assets/skills/cfn-edit-safety/lib/hooks/SKILL.md +0 -148
  541. package/claude-assets/skills/cfn-edit-safety/lib/hooks/auto-resolve.sh +0 -66
  542. package/claude-assets/skills/cfn-edit-safety/lib/hooks/check-dependencies.sh +0 -40
  543. package/claude-assets/skills/cfn-edit-safety/lib/hooks/feedback-resolver.sh +0 -452
  544. package/claude-assets/skills/cfn-edit-safety/lib/hooks/post-edit-handler.sh +0 -154
  545. package/claude-assets/skills/cfn-edit-safety/lib/hooks/security-scan.json +0 -60
  546. package/claude-assets/skills/cfn-edit-safety/lib/hooks/security-scanner.sh +0 -121
  547. package/claude-assets/skills/cfn-edit-safety/lib/hooks/test-root-warning-resolution.sh +0 -148
  548. package/claude-assets/skills/cfn-epic-parser/SKILL.md +0 -55
  549. package/claude-assets/skills/cfn-error-management/SKILL.md +0 -176
  550. package/claude-assets/skills/cfn-error-management/cli/batch-errors.sh +0 -4
  551. package/claude-assets/skills/cfn-error-management/cli/capture-error.sh +0 -4
  552. package/claude-assets/skills/cfn-error-management/cli/log-error.sh +0 -4
  553. package/claude-assets/skills/cfn-error-management/lib/batching/README.md +0 -1016
  554. package/claude-assets/skills/cfn-error-management/lib/batching/analyze-errors.sh +0 -327
  555. package/claude-assets/skills/cfn-error-management/lib/batching/calculate-waves.sh +0 -256
  556. package/claude-assets/skills/cfn-error-management/lib/batching/cli.sh +0 -523
  557. package/claude-assets/skills/cfn-error-management/lib/batching/cluster-files.sh +0 -196
  558. package/claude-assets/skills/cfn-error-management/lib/batching/create-batches.sh +0 -261
  559. package/claude-assets/skills/cfn-error-management/lib/capture/README.md +0 -56
  560. package/claude-assets/skills/cfn-error-management/lib/capture/capture-agent-error.sh +0 -87
  561. package/claude-assets/skills/cfn-error-management/lib/logging/README.md +0 -339
  562. package/claude-assets/skills/cfn-error-management/lib/logging/cleanup-error-logs.sh +0 -334
  563. package/claude-assets/skills/cfn-error-management/lib/logging/integrate-cli.sh +0 -232
  564. package/claude-assets/skills/cfn-error-management/lib/logging/integrate-docker.sh +0 -294
  565. package/claude-assets/skills/cfn-error-management/lib/logging/invoke-error-logging.sh +0 -839
  566. package/claude-assets/skills/cfn-error-management/lib/logging/test-error-logging.sh +0 -475
  567. package/claude-assets/skills/cfn-expert-update/SKILL.md +0 -24
  568. package/claude-assets/skills/cfn-expert-update/update-expert.sh +0 -346
  569. package/claude-assets/skills/cfn-github-workflow/SKILL.md +0 -70
  570. package/claude-assets/skills/cfn-intervention-system/SKILL.md +0 -52
  571. package/claude-assets/skills/cfn-intervention-system/lib/detector/SKILL.md +0 -39
  572. package/claude-assets/skills/cfn-intervention-system/lib/detector/detect-intervention.sh +0 -111
  573. package/claude-assets/skills/cfn-intervention-system/lib/orchestrator/SKILL.md +0 -43
  574. package/claude-assets/skills/cfn-intervention-system/lib/orchestrator/execute-intervention.sh +0 -59
  575. package/claude-assets/skills/cfn-knowledge-base/SKILL.md +0 -61
  576. package/claude-assets/skills/cfn-knowledge-base/lib/playbook/SKILL.md +0 -153
  577. package/claude-assets/skills/cfn-knowledge-base/lib/playbook/init-playbook.sh +0 -54
  578. package/claude-assets/skills/cfn-knowledge-base/lib/playbook/lib/auto-update/auto-update-playbook.sh +0 -86
  579. package/claude-assets/skills/cfn-knowledge-base/lib/playbook/query-playbook.sh +0 -83
  580. package/claude-assets/skills/cfn-knowledge-base/lib/playbook/update-playbook.sh +0 -80
  581. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/APPROVAL_WORKFLOW.md +0 -806
  582. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/COST_TRACKING.md +0 -637
  583. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/DEPLOY_QUICK_REFERENCE.md +0 -106
  584. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/EDGE_CASE_TRACKING.md +0 -404
  585. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/PROPAGATE_UPDATE_QUICK_REFERENCE.md +0 -366
  586. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/README_PHASE4.md +0 -457
  587. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/SKILL.md +0 -110
  588. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/analyze-patterns.sh +0 -899
  589. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/approval-workflow.sh +0 -514
  590. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/deploy-approved-skill.sh +0 -481
  591. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/deploy-approved-skill.sh.backup-1763392820 +0 -512
  592. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/generate-skill-update.sh +0 -525
  593. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/lib/security-utils.sh +0 -204
  594. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/package.json +0 -30
  595. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/propagate-skill-update.sh +0 -648
  596. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/propagate-skill-update.sh.backup-1763392820 +0 -664
  597. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/review-skill.sh +0 -643
  598. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/test-integration.sh +0 -296
  599. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/test-metadata-update.sh +0 -350
  600. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/track-cost-savings.sh +0 -486
  601. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/track-cost-savings.sh.backup-1763392821 +0 -445
  602. package/claude-assets/skills/cfn-knowledge-base/lib/workflow/track-edge-case.sh +0 -290
  603. package/claude-assets/skills/cfn-loop-orchestration-v2/SKILL.md +0 -57
  604. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/coordination/agent-completion.sh.backup +0 -36
  605. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/coordination/coordination-signal.sh.backup +0 -36
  606. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/coordination/coordination-wait.sh.backup +0 -36
  607. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/decision/SKILL.md +0 -664
  608. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/decision/TYPESCRIPT_IMPLEMENTATION.md +0 -653
  609. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/decision/parse-decision.sh +0 -66
  610. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/decision/test-backlog-integration.sh +0 -148
  611. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/decision/validate-deliverables.sh +0 -82
  612. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/CONFIGURATION_IMPROVEMENTS.md +0 -318
  613. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/CONTEXT_LOOKUP_QUICK_START.md +0 -378
  614. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/NORTH_STAR_INDEX.md +0 -323
  615. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/ORCHESTRATOR_IMPLEMENTATION.md +0 -493
  616. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/ORCHESTRATOR_QUICK_START.md +0 -499
  617. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/README.md +0 -149
  618. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/SKILL.md +0 -418
  619. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/SPAWN_AGENTS_IMPLEMENTATION.md +0 -188
  620. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/VALIDATION_SUMMARY.txt +0 -196
  621. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/VALIDATOR_MODULE_GUIDE.md +0 -526
  622. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/agent-spawner/agent-spawner.d.ts +0 -15
  623. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/agent-spawner/agent-spawner.js +0 -29
  624. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/cli/orchestrator-cli.d.ts +0 -49
  625. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/cli/orchestrator-cli.js +0 -339
  626. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/gate-checker/gate-checker.d.ts +0 -15
  627. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/gate-checker/gate-checker.js +0 -32
  628. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/confidence-aggregator.d.ts +0 -115
  629. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/confidence-aggregator.js +0 -359
  630. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/consensus.d.ts +0 -36
  631. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/consensus.js +0 -62
  632. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/context-injector.d.ts +0 -135
  633. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/context-injector.js +0 -257
  634. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/context-lookup.d.ts +0 -179
  635. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/context-lookup.js +0 -388
  636. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/deliverable-verifier.d.ts +0 -26
  637. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/deliverable-verifier.js +0 -116
  638. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/gate-check.d.ts +0 -27
  639. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/gate-check.js +0 -92
  640. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/iteration-manager.d.ts +0 -28
  641. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/iteration-manager.js +0 -34
  642. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/parse-test-results.d.ts +0 -21
  643. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/parse-test-results.js +0 -323
  644. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/product-owner-decision.d.ts +0 -86
  645. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/product-owner-decision.js +0 -272
  646. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/spawn-agents.d.ts +0 -61
  647. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/spawn-agents.js +0 -280
  648. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/timeout-calculator.d.ts +0 -15
  649. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/timeout-calculator.js +0 -34
  650. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/validator.d.ts +0 -83
  651. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/helpers/validator.js +0 -222
  652. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/index.d.ts +0 -14
  653. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/index.js +0 -32
  654. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/orchestrate.d.ts +0 -325
  655. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/orchestrate.js +0 -1083
  656. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/orchestrator/orchestrator.d.ts +0 -17
  657. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/orchestrator/orchestrator.js +0 -31
  658. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/redis/redis-coordinator.d.ts +0 -46
  659. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/redis/redis-coordinator.js +0 -68
  660. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/types.d.ts +0 -166
  661. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/types.js +0 -101
  662. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/utils/logger.d.ts +0 -16
  663. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/dist/utils/logger.js +0 -29
  664. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/e2e-validation-fixed.js +0 -240
  665. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/e2e-validation.js +0 -213
  666. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/orchestrate.sh.backup2 +0 -959
  667. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/orchestrate.sh.clean +0 -949
  668. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/package.json +0 -53
  669. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/run-north-star-e2e.ts +0 -210
  670. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/security_utils.sh +0 -123
  671. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/test-cfn-orchestration.sh +0 -281
  672. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/test-cli.sh +0 -92
  673. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/test-edge-cases.sh +0 -188
  674. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/test-iteration-context-injection.sh +0 -366
  675. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/orchestrator/test-typescript-integration.sh +0 -442
  676. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/output/DELIVERY_SUMMARY.txt +0 -462
  677. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/output/EXAMPLES.md +0 -609
  678. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/output/INDEX.md +0 -531
  679. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/output/README.md +0 -114
  680. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/output/SKILL.md +0 -633
  681. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/output/package.json +0 -50
  682. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/INDEX.md +0 -531
  683. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/README.md +0 -256
  684. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/README_TYPESCRIPT.md +0 -454
  685. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/SKILL.md +0 -400
  686. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/SKILL.md.backup +0 -353
  687. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/SKILL_TYPESCRIPT.md +0 -782
  688. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/VAPOR_DETECTION_EXAMPLES.md +0 -598
  689. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/check-dependencies.sh +0 -53
  690. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/check-dependencies.sh.backup +0 -31
  691. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/config.json +0 -161
  692. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/consensus-calculator.js +0 -477
  693. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/detect-vapor.sh +0 -59
  694. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/detect-vapor.sh.backup +0 -37
  695. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/dist/.tsbuildinfo +0 -1
  696. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/dist/cli/detect-vapor.d.ts +0 -14
  697. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/dist/cli/detect-vapor.js +0 -185
  698. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/dist/cli/validate-deliverables.d.ts +0 -14
  699. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/dist/cli/validate-deliverables.js +0 -176
  700. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/dist/cli/validate-gate.d.ts +0 -19
  701. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/dist/cli/validate-gate.js +0 -123
  702. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/dist/types.d.ts +0 -156
  703. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/dist/types.js +0 -66
  704. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/dist/validator.d.ts +0 -85
  705. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/dist/validator.js +0 -411
  706. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/evidence-chain.sql +0 -163
  707. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/orchestrate-cfn-loop.sh +0 -274
  708. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/orchestrate-cfn-loop.sh.backup +0 -252
  709. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/package.json +0 -93
  710. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/validate-deliverables.sh +0 -59
  711. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/validate-deliverables.sh.backup +0 -37
  712. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/validate-gate.sh +0 -63
  713. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/validate-gate.sh.backup +0 -41
  714. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/validate-iteration.sh +0 -156
  715. package/claude-assets/skills/cfn-loop-orchestration-v2/lib/validation/validate-iteration.sh.backup +0 -134
  716. package/claude-assets/skills/cfn-mdap-context-injection/SKILL.md +0 -176
  717. package/claude-assets/skills/cfn-mdap-context-injection/inject.sh +0 -284
  718. package/claude-assets/skills/cfn-memory-persistence/SKILL.md +0 -59
  719. package/claude-assets/skills/cfn-memory-persistence/lib/auto/SKILL.md +0 -73
  720. package/claude-assets/skills/cfn-memory-persistence/lib/auto/persist-agent-output.sh +0 -49
  721. package/claude-assets/skills/cfn-memory-persistence/lib/auto/query-agent-history.sh +0 -35
  722. package/claude-assets/skills/cfn-memory-persistence/lib/auto/test-memory-persistence.sh +0 -236
  723. package/claude-assets/skills/cfn-memory-persistence/lib/management/SKILL.md +0 -271
  724. package/claude-assets/skills/cfn-memory-persistence/lib/management/check-memory.sh +0 -160
  725. package/claude-assets/skills/cfn-memory-persistence/lib/management/cleanup-memory.sh +0 -197
  726. package/claude-assets/skills/cfn-memory-persistence/lib/redis/SKILL.md +0 -42
  727. package/claude-assets/skills/cfn-memory-persistence/lib/redis/agent-log.sh.backup +0 -128
  728. package/claude-assets/skills/cfn-memory-persistence/lib/redis/agent-recovery.sh.backup +0 -75
  729. package/claude-assets/skills/cfn-memory-persistence/lib/redis/analyze-task-complexity.sh.backup +0 -277
  730. package/claude-assets/skills/cfn-memory-persistence/lib/redis/bash-wrappers/store-context.sh.backup +0 -23
  731. package/claude-assets/skills/cfn-memory-persistence/lib/redis/cancel-swarm.sh.backup +0 -221
  732. package/claude-assets/skills/cfn-memory-persistence/lib/redis/cfn-loop-exec.sh.backup +0 -468
  733. package/claude-assets/skills/cfn-memory-persistence/lib/redis/cfn-loop-relaunch.sh.backup +0 -29
  734. package/claude-assets/skills/cfn-memory-persistence/lib/redis/collect-confidence-scores.sh.backup +0 -209
  735. package/claude-assets/skills/cfn-memory-persistence/lib/redis/collect-results.sh.backup +0 -75
  736. package/claude-assets/skills/cfn-memory-persistence/lib/redis/complete-swarm.sh.backup +0 -75
  737. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/agent-logger.d.ts +0 -92
  738. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/agent-logger.js +0 -329
  739. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/agent-recovery.d.ts +0 -75
  740. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/agent-recovery.js +0 -302
  741. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/completion-reporter.d.ts +0 -58
  742. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/completion-reporter.js +0 -237
  743. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/context-manager.d.ts +0 -63
  744. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/context-manager.js +0 -230
  745. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/index.d.ts +0 -45
  746. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/index.js +0 -114
  747. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/mode-detector.d.ts +0 -31
  748. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/mode-detector.js +0 -185
  749. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/redis-client.d.ts +0 -191
  750. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/redis-client.js +0 -509
  751. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/result-collector.d.ts +0 -75
  752. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/result-collector.js +0 -281
  753. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/swarm-manager.d.ts +0 -75
  754. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/swarm-manager.js +0 -354
  755. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/task-analyzer.d.ts +0 -62
  756. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/task-analyzer.js +0 -305
  757. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/task-executor.d.ts +0 -97
  758. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/task-executor.js +0 -283
  759. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/types.d.ts +0 -176
  760. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/types.js +0 -81
  761. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/waiting-coordinator.d.ts +0 -86
  762. package/claude-assets/skills/cfn-memory-persistence/lib/redis/dist/waiting-coordinator.js +0 -419
  763. package/claude-assets/skills/cfn-memory-persistence/lib/redis/get-context.sh.backup +0 -146
  764. package/claude-assets/skills/cfn-memory-persistence/lib/redis/get-success-criteria.sh.backup +0 -54
  765. package/claude-assets/skills/cfn-memory-persistence/lib/redis/invoke-waiting-mode.sh.backup +0 -225
  766. package/claude-assets/skills/cfn-memory-persistence/lib/redis/redis-cli-wrapper.sh.backup +0 -43
  767. package/claude-assets/skills/cfn-memory-persistence/lib/redis/redis-functions.sh.backup +0 -34
  768. package/claude-assets/skills/cfn-memory-persistence/lib/redis/report-completion.sh.backup +0 -134
  769. package/claude-assets/skills/cfn-memory-persistence/lib/redis/store-context.sh.backup +0 -123
  770. package/claude-assets/skills/cfn-memory-persistence/lib/sqlite/QUICK_REFERENCE.md +0 -204
  771. package/claude-assets/skills/cfn-memory-persistence/lib/sqlite/README.md +0 -65
  772. package/claude-assets/skills/cfn-memory-persistence/lib/sqlite/SKILL.md +0 -415
  773. package/claude-assets/skills/cfn-memory-persistence/lib/sqlite/acl-queries.sql +0 -452
  774. package/claude-assets/skills/cfn-memory-persistence/lib/sqlite/check-dependencies.sh +0 -36
  775. package/claude-assets/skills/cfn-memory-persistence/lib/sqlite/config.json +0 -45
  776. package/claude-assets/skills/cfn-memory-persistence/lib/sqlite/memory-cli.sh +0 -88
  777. package/claude-assets/skills/cfn-memory-persistence/lib/sqlite/test-state-persistence.js +0 -187
  778. package/claude-assets/skills/cfn-memory-persistence/lib/sqlite/ttl-cleanup.sh +0 -266
  779. package/claude-assets/skills/cfn-node-heap-sizer/SKILL.md +0 -23
  780. package/claude-assets/skills/cfn-node-heap-sizer/task-mode-heap-limiter.sh +0 -326
  781. package/claude-assets/skills/cfn-operations/SKILL.md +0 -52
  782. package/claude-assets/skills/cfn-operations/lib/file/SKILL.md +0 -290
  783. package/claude-assets/skills/cfn-operations/lib/file/execute.sh +0 -129
  784. package/claude-assets/skills/cfn-operations/lib/file/lib/atomic-write.sh +0 -294
  785. package/claude-assets/skills/cfn-operations/lib/file/lib/lock.sh +0 -361
  786. package/claude-assets/skills/cfn-operations/lib/file/test.sh +0 -369
  787. package/claude-assets/skills/cfn-operations/lib/log/SKILL.md +0 -308
  788. package/claude-assets/skills/cfn-operations/lib/log/execute.sh +0 -420
  789. package/claude-assets/skills/cfn-operations/lib/log/lib/rotate.sh +0 -406
  790. package/claude-assets/skills/cfn-operations/lib/log/lib/search.sh +0 -448
  791. package/claude-assets/skills/cfn-operations/lib/log/test.sh +0 -394
  792. package/claude-assets/skills/cfn-parameterized-queries/SKILL.md +0 -347
  793. package/claude-assets/skills/cfn-planning/SKILL.md +0 -55
  794. package/claude-assets/skills/cfn-planning/lib/coordinator/README.md +0 -256
  795. package/claude-assets/skills/cfn-planning/lib/coordinator/SKILL.md +0 -62
  796. package/claude-assets/skills/cfn-planning/lib/coordinator/map-dependencies-conflicts.sh +0 -376
  797. package/claude-assets/skills/cfn-planning/lib/coordinator/plan-coordinator-resources.sh +0 -258
  798. package/claude-assets/skills/cfn-planning/lib/coordinator/plan-multi-coordinator-work.sh +0 -267
  799. package/claude-assets/skills/cfn-planning/lib/coordinator/plan-risk-rollout.sh +0 -350
  800. package/claude-assets/skills/cfn-planning/lib/coordinator/test-multi-coordinator-planning.sh +0 -338
  801. package/claude-assets/skills/cfn-planning/lib/coordinator/validate-task-planning.sh +0 -189
  802. package/claude-assets/skills/cfn-planning/lib/epic/SKILL.md +0 -44
  803. package/claude-assets/skills/cfn-planning/lib/epic/decompose-epic.sh +0 -104
  804. package/claude-assets/skills/cfn-planning/lib/scope/SKILL.md +0 -37
  805. package/claude-assets/skills/cfn-planning/lib/scope/simplify-scope.sh +0 -68
  806. package/claude-assets/skills/cfn-process-management/SKILL.md +0 -52
  807. package/claude-assets/skills/cfn-process-management/lib/instrumentation/instrument-process.sh +0 -44
  808. package/claude-assets/skills/cfn-process-management/lib/lifecycle/README.md +0 -43
  809. package/claude-assets/skills/cfn-process-management/lib/lifecycle/SKILL.md +0 -39
  810. package/claude-assets/skills/cfn-process-management/lib/lifecycle/check-dependencies.sh +0 -58
  811. package/claude-assets/skills/cfn-process-management/lib/lifecycle/config.json +0 -39
  812. package/claude-assets/skills/cfn-process-management/lib/lifecycle/process-manager.sh +0 -144
  813. package/claude-assets/skills/cfn-project-analysis/SKILL.md +0 -113
  814. package/claude-assets/skills/cfn-project-management/SKILL.md +0 -52
  815. package/claude-assets/skills/cfn-project-management/lib/backlog/SKILL.md +0 -199
  816. package/claude-assets/skills/cfn-project-management/lib/backlog/add-backlog-item.sh +0 -208
  817. package/claude-assets/skills/cfn-project-management/lib/changelog/SKILL.md +0 -349
  818. package/claude-assets/skills/cfn-project-management/lib/changelog/add-changelog-entry.sh +0 -202
  819. package/claude-assets/skills/cfn-project-management/lib/changelog/bulk-import.sh +0 -268
  820. package/claude-assets/skills/cfn-project-management/lib/changelog/lib/README.md +0 -212
  821. package/claude-assets/skills/cfn-project-management/lib/changelog/lib/validation.sh +0 -72
  822. package/claude-assets/skills/cfn-routing-config/SKILL.md +0 -52
  823. package/claude-assets/skills/cfn-routing-config/lib/hybrid/README.md +0 -50
  824. package/claude-assets/skills/cfn-routing-config/lib/hybrid/SKILL.md +0 -54
  825. package/claude-assets/skills/cfn-routing-config/lib/hybrid/check-dependencies.sh +0 -52
  826. package/claude-assets/skills/cfn-routing-config/lib/hybrid/config.json +0 -26
  827. package/claude-assets/skills/cfn-routing-config/lib/hybrid/spawn-worker.sh +0 -44
  828. package/claude-assets/skills/cfn-routing-config/lib/provider/README.md +0 -129
  829. package/claude-assets/skills/cfn-routing-config/lib/provider/SKILL.md +0 -215
  830. package/claude-assets/skills/cfn-routing-config/lib/provider/resolve-provider-model.ts +0 -223
  831. package/claude-assets/skills/cfn-ruvector-codebase-index/.cfn-manifest.json +0 -37
  832. package/claude-assets/skills/cfn-ruvector-codebase-index/SKILL.md +0 -830
  833. package/claude-assets/skills/cfn-ruvector-codebase-index/batch-indexer.js +0 -185
  834. package/claude-assets/skills/cfn-ruvector-codebase-index/check-db.js +0 -8
  835. package/claude-assets/skills/cfn-ruvector-codebase-index/clean-orphaned-entries.sh +0 -206
  836. package/claude-assets/skills/cfn-ruvector-codebase-index/config.json +0 -65
  837. package/claude-assets/skills/cfn-ruvector-codebase-index/debug-search.js +0 -19
  838. package/claude-assets/skills/cfn-ruvector-codebase-index/detect-stale-docs.sh +0 -325
  839. package/claude-assets/skills/cfn-ruvector-codebase-index/embeddings.js +0 -181
  840. package/claude-assets/skills/cfn-ruvector-codebase-index/get-embedding-text.js +0 -26
  841. package/claude-assets/skills/cfn-ruvector-codebase-index/handle-file-moves.sh +0 -147
  842. package/claude-assets/skills/cfn-ruvector-codebase-index/index.sh +0 -324
  843. package/claude-assets/skills/cfn-ruvector-codebase-index/indexer.js +0 -53
  844. package/claude-assets/skills/cfn-ruvector-codebase-index/init-db.js +0 -27
  845. package/claude-assets/skills/cfn-ruvector-codebase-index/install-hook.sh +0 -51
  846. package/claude-assets/skills/cfn-ruvector-codebase-index/package.json +0 -30
  847. package/claude-assets/skills/cfn-ruvector-codebase-index/parser.js +0 -264
  848. package/claude-assets/skills/cfn-ruvector-codebase-index/query-error-patterns.sh +0 -42
  849. package/claude-assets/skills/cfn-ruvector-codebase-index/query-learnings.sh +0 -44
  850. package/claude-assets/skills/cfn-ruvector-codebase-index/ruvector-learning.js +0 -316
  851. package/claude-assets/skills/cfn-ruvector-codebase-index/search.js +0 -55
  852. package/claude-assets/skills/cfn-ruvector-codebase-index/search.sh +0 -137
  853. package/claude-assets/skills/cfn-ruvector-codebase-index/standalone-indexer.js +0 -129
  854. package/claude-assets/skills/cfn-ruvector-codebase-index/store-error-pattern.sh +0 -54
  855. package/claude-assets/skills/cfn-ruvector-codebase-index/store-learning.sh +0 -64
  856. package/claude-assets/skills/cfn-ruvector-codebase-index/test-comprehensive.js +0 -120
  857. package/claude-assets/skills/cfn-ruvector-codebase-index/test-db-structure.js +0 -40
  858. package/claude-assets/skills/cfn-ruvector-codebase-index/test-integration.js +0 -56
  859. package/claude-assets/skills/cfn-ruvector-codebase-index/test-metadata-fetch.js +0 -57
  860. package/claude-assets/skills/cfn-ruvector-codebase-index/test-search-debug.js +0 -48
  861. package/claude-assets/skills/cfn-session-handoff/SKILL.md +0 -273
  862. package/claude-assets/skills/cfn-skill-management/SKILL.md +0 -55
  863. package/claude-assets/skills/cfn-skill-management/lib/builder/SKILL.md +0 -910
  864. package/claude-assets/skills/cfn-skill-management/lib/loader/SKILL.md +0 -466
  865. package/claude-assets/skills/cfn-skill-management/lib/loader/execute.sh +0 -344
  866. package/claude-assets/skills/cfn-skill-management/lib/propagation/README.md +0 -233
  867. package/claude-assets/skills/cfn-skill-management/lib/propagation/package.json +0 -52
  868. package/claude-assets/skills/cfn-skill-management/lib/propagation/propagate-skill-update.sh +0 -32
  869. package/claude-assets/skills/cfn-sprint-execution/SKILL.md +0 -55
  870. package/claude-assets/skills/cfn-sprint-execution/lib/checkpoint/SKILL.md +0 -333
  871. package/claude-assets/skills/cfn-sprint-execution/lib/checkpoint/cleanup-orphans.sh +0 -374
  872. package/claude-assets/skills/cfn-sprint-execution/lib/checkpoint/resume-wave.sh +0 -325
  873. package/claude-assets/skills/cfn-sprint-execution/lib/checkpoint/save-checkpoint.sh +0 -284
  874. package/claude-assets/skills/cfn-sprint-execution/lib/execution/SKILL.md +0 -27
  875. package/claude-assets/skills/cfn-sprint-execution/lib/execution/execute-sprint-task.sh +0 -59
  876. package/claude-assets/skills/cfn-sprint-execution/lib/execution/execute-sprint.sh +0 -65
  877. package/claude-assets/skills/cfn-task-intelligence/SKILL.md +0 -64
  878. package/claude-assets/skills/cfn-task-intelligence/lib/classifier/SKILL.md +0 -81
  879. package/claude-assets/skills/cfn-task-intelligence/lib/classifier/classify-task.sh +0 -297
  880. package/claude-assets/skills/cfn-task-intelligence/lib/complexity/SKILL.md +0 -96
  881. package/claude-assets/skills/cfn-task-intelligence/lib/complexity/estimate-complexity.sh +0 -144
  882. package/claude-assets/skills/cfn-task-intelligence/lib/specialist/SKILL.md +0 -41
  883. package/claude-assets/skills/cfn-task-intelligence/lib/specialist/recommend-specialist.sh +0 -57
  884. package/claude-assets/skills/cfn-task-planning/SKILL.md +0 -193
  885. package/claude-assets/skills/cfn-task-planning/cli/classify-task.sh +0 -4
  886. package/claude-assets/skills/cfn-task-planning/cli/decompose-task.sh +0 -4
  887. package/claude-assets/skills/cfn-task-planning/cli/init-config.sh +0 -4
  888. package/claude-assets/skills/cfn-task-planning/lib/audit/get-audit-data.sh +0 -397
  889. package/claude-assets/skills/cfn-task-planning/lib/audit/store-task-audit.sh +0 -191
  890. package/claude-assets/skills/cfn-task-planning/lib/classifier/README.md +0 -81
  891. package/claude-assets/skills/cfn-task-planning/lib/classifier/classify-task.sh +0 -297
  892. package/claude-assets/skills/cfn-task-planning/lib/decomposition/task-decomposer.sh +0 -279
  893. package/claude-assets/skills/cfn-test-framework/SKILL.md +0 -55
  894. package/claude-assets/skills/cfn-test-framework/lib/execution/README.md +0 -129
  895. package/claude-assets/skills/cfn-test-framework/lib/execution/SKILL.md +0 -128
  896. package/claude-assets/skills/cfn-test-framework/lib/execution/check-dependencies.sh +0 -36
  897. package/claude-assets/skills/cfn-test-framework/lib/execution/test-cache-reader.sh +0 -134
  898. package/claude-assets/skills/cfn-test-framework/lib/execution/test-concurrent-conflicts.sh +0 -115
  899. package/claude-assets/skills/cfn-test-framework/lib/execution/test-coordinator-pattern.sh +0 -109
  900. package/claude-assets/skills/cfn-test-framework/lib/runner/SKILL.md +0 -288
  901. package/claude-assets/skills/cfn-test-framework/lib/runner/detect-regressions.sh +0 -58
  902. package/claude-assets/skills/cfn-test-framework/lib/runner/detect-regressions.sh.backup-1763392821 +0 -55
  903. package/claude-assets/skills/cfn-test-framework/lib/runner/init-benchmark-db.sh +0 -48
  904. package/claude-assets/skills/cfn-test-framework/lib/runner/run-all-tests.sh +0 -222
  905. package/claude-assets/skills/cfn-test-framework/lib/runner/store-benchmarks.sh +0 -53
  906. package/claude-assets/skills/cfn-test-framework/lib/runner/validate-redis-keys.sh +0 -143
  907. package/claude-assets/skills/cfn-test-framework/lib/webapp/README.md +0 -142
  908. package/claude-assets/skills/cfn-test-framework/lib/webapp/SCREENSHOT_NAMING_CONVENTION.md +0 -547
  909. package/claude-assets/skills/cfn-test-framework/lib/webapp/SKILL.md +0 -877
  910. package/claude-assets/skills/cfn-test-framework/lib/webapp/capture-screenshot.sh +0 -238
  911. package/claude-assets/skills/cfn-test-framework/lib/webapp/cfn-loop-integration.sh +0 -265
  912. package/claude-assets/skills/cfn-test-framework/lib/webapp/compare-screenshots.sh +0 -199
  913. package/claude-assets/skills/cfn-test-framework/lib/webapp/init-storage.sh +0 -150
  914. package/claude-assets/skills/cfn-test-framework/lib/webapp/set-baseline.sh +0 -196
  915. package/claude-assets/skills/cfn-test-framework/lib/webapp/test-webapp-testing.sh +0 -233
  916. package/claude-assets/skills/cfn-transparency-middleware/Cargo.toml +0 -18
  917. package/claude-assets/skills/cfn-transparency-middleware/README.md +0 -74
  918. package/claude-assets/skills/cfn-transparency-middleware/SECURITY.md +0 -41
  919. package/claude-assets/skills/cfn-transparency-middleware/SKILL.md +0 -99
  920. package/claude-assets/skills/cfn-transparency-middleware/TEST_RESULTS.md +0 -174
  921. package/claude-assets/skills/cfn-transparency-middleware/config.json +0 -31
  922. package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-filter.sh +0 -98
  923. package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-init.sh +0 -224
  924. package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-level.sh +0 -333
  925. package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-metrics.sh +0 -345
  926. package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-observe.sh +0 -140
  927. package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-stop.sh +0 -235
  928. package/claude-assets/skills/cfn-transparency-middleware/memory_query.rs +0 -85
  929. package/claude-assets/skills/cfn-transparency-middleware/memory_repository.rs +0 -140
  930. package/claude-assets/skills/cfn-transparency-middleware/memory_schema.rs +0 -64
  931. package/claude-assets/skills/cfn-transparency-middleware/middleware-config.sh +0 -29
  932. package/claude-assets/skills/cfn-transparency-middleware/performance-benchmark.sh +0 -79
  933. package/claude-assets/skills/cfn-transparency-middleware/test-e2e.sh +0 -421
  934. package/claude-assets/skills/cfn-transparency-middleware/test-integration.sh +0 -162
  935. package/claude-assets/skills/cfn-transparency-middleware/test-transparency-skill.sh +0 -368
  936. package/claude-assets/skills/cfn-transparency-middleware/test-transparency-skill.sh.unix +0 -126
  937. package/claude-assets/skills/cfn-transparency-middleware/wrap-agent.sh +0 -132
  938. package/claude-assets/skills/cfn-utilities/SKILL.md +0 -239
  939. package/claude-assets/skills/cfn-utilities/execute.sh +0 -32
  940. package/claude-assets/skills/cfn-utilities/lib/errors.sh +0 -56
  941. package/claude-assets/skills/cfn-utilities/lib/file-ops.sh +0 -164
  942. package/claude-assets/skills/cfn-utilities/lib/logging.sh +0 -77
  943. package/claude-assets/skills/cfn-utilities/lib/retry.sh +0 -127
  944. package/claude-assets/skills/cfn-utilities/test.sh +0 -317
  945. package/claude-assets/skills/cfn-validation-framework/SKILL.md +0 -60
  946. package/claude-assets/skills/cfn-validation-framework/lib/deliverables/confidence-calculator.sh +0 -262
  947. package/claude-assets/skills/cfn-validation-framework/lib/instrumentation/wrapped-executor.sh +0 -291
  948. package/claude-assets/skills/cfn-validation-framework/lib/json/SKILL.md +0 -431
  949. package/claude-assets/skills/cfn-validation-framework/lib/json/test-validate-success-criteria.sh +0 -421
  950. package/claude-assets/skills/cfn-validation-framework/lib/json/validate-success-criteria.sh +0 -197
  951. package/claude-assets/skills/cfn-validation-framework/lib/layers/SKILL.md +0 -133
  952. package/claude-assets/skills/cfn-vision-analysis/SKILL.md +0 -20
  953. package/claude-assets/skills/equation-solver/README.md +0 -327
  954. package/claude-assets/skills/equation-solver/SECURITY.md +0 -306
  955. package/claude-assets/skills/equation-solver/SKILL.md +0 -335
  956. package/claude-assets/skills/equation-solver/package.json +0 -32
  957. package/claude-assets/skills/equation-solver/solve.sh +0 -348
  958. package/claude-assets/skills/equation-solver/test-equation-solver-minimal.sh +0 -103
  959. package/claude-assets/skills/equation-solver/test-equation-solver.sh +0 -510
  960. /package/.claude/commands/{check-errors.md → cfn-check-errors.md} +0 -0
  961. /package/.claude/commands/{detect-stale-docs.md → cfn-detect-stale-docs.md} +0 -0
  962. /package/.claude/commands/{epic-creator-v2.md → cfn-epic-creator-v2.md} +0 -0
  963. /package/.claude/commands/cfn-loop/{list-agents-rebuild.md → cfn-list-agents-rebuild.md} +0 -0
  964. /package/.claude/commands/cfn-ruvector/{codebase-reindex.md → cfn-codebase-reindex.md} +0 -0
  965. /package/.claude/commands/cfn-ruvector/{codebase-search.md → cfn-codebase-search.md} +0 -0
  966. /package/.claude/commands/cfn-ruvector/{detect-stale-docs.md → cfn-detect-stale-docs.md} +0 -0
  967. /package/.claude/commands/{ruvector-search.md → cfn-ruvector-search.md} +0 -0
  968. /package/.claude/commands/{update-search-index.md → cfn-update-search-index.md} +0 -0
  969. /package/.claude/commands/cost-routing/{switch-api.md → cfn-switch-api.md} +0 -0
  970. /package/.claude/core/{agent-manager.js → cfn-agent-manager.js} +0 -0
  971. /package/.claude/core/{agent-manager.js.map → cfn-agent-manager.js.map} +0 -0
  972. /package/.claude/core/{config.js → cfn-config.js} +0 -0
  973. /package/.claude/core/{config.js.map → cfn-config.js.map} +0 -0
  974. /package/.claude/core/{event-bus.js → cfn-event-bus.js} +0 -0
  975. /package/.claude/core/{event-bus.js.map → cfn-event-bus.js.map} +0 -0
  976. /package/.claude/core/{index.js → cfn-index.js} +0 -0
  977. /package/.claude/core/{index.js.map → cfn-index.js.map} +0 -0
  978. /package/.claude/core/{json-persistence.js → cfn-json-persistence.js} +0 -0
  979. /package/.claude/core/{json-persistence.js.map → cfn-json-persistence.js.map} +0 -0
  980. /package/.claude/core/{logger.js → cfn-logger.js} +0 -0
  981. /package/.claude/core/{logger.js.map → cfn-logger.js.map} +0 -0
  982. /package/.claude/core/{orchestrator-fixed.js → cfn-orchestrator-fixed.js} +0 -0
  983. /package/.claude/core/{orchestrator-fixed.js.map → cfn-orchestrator-fixed.js.map} +0 -0
  984. /package/.claude/core/{orchestrator.js → cfn-orchestrator.js} +0 -0
  985. /package/.claude/core/{orchestrator.js.map → cfn-orchestrator.js.map} +0 -0
  986. /package/.claude/core/{persistence.js → cfn-persistence.js} +0 -0
  987. /package/.claude/core/{persistence.js.map → cfn-persistence.js.map} +0 -0
  988. /package/.claude/core/{project-manager.js → cfn-project-manager.js} +0 -0
  989. /package/.claude/core/{project-manager.js.map → cfn-project-manager.js.map} +0 -0
  990. /package/.claude/core/{slash-command.js → cfn-slash-command.js} +0 -0
  991. /package/.claude/core/{version.js → cfn-version.js} +0 -0
  992. /package/.claude/core/{version.js.map → cfn-version.js.map} +0 -0
  993. /package/.claude/helpers/{checkpoint-manager.sh → cfn-checkpoint-manager.sh} +0 -0
  994. /package/.claude/helpers/{github-safe.js → cfn-github-safe.js} +0 -0
  995. /package/.claude/helpers/{github-setup.sh → cfn-github-setup.sh} +0 -0
  996. /package/.claude/helpers/{quick-start.sh → cfn-quick-start.sh} +0 -0
  997. /package/.claude/helpers/{setup-mcp.sh → cfn-setup-mcp.sh} +0 -0
  998. /package/.claude/helpers/{standard-checkpoint-hooks.sh → cfn-standard-checkpoint-hooks.sh} +0 -0
  999. /package/.claude/hooks/{validators/credential-scanner.sh → cfn-credential-scanner.sh} +0 -0
  1000. /package/.claude/hooks/{detect-hardcoded-credentials.sh → cfn-detect-hardcoded-credentials.sh} +0 -0
@@ -1,949 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- ##############################################################################
4
- # CFN Loop Orchestration - Main Coordinator
5
- # Version: 1.1.0 (Security Enhanced)
6
- #
7
- # Orchestrates the Complete Fail Never (CFN) Loop workflow using modular
8
- # helper scripts, Redis Coordination primitives, and enhanced security.
9
- #
10
- # Usage:
11
- # ./orchestrate.sh --task-id <id> \
12
- # --mode <mvp|standard|enterprise> \
13
- # --loop3-agents <agent1,agent2,...> \
14
- # --loop2-agents <agent1,agent2,...> \
15
- # --product-owner <agent-id> \
16
- # [--max-iterations <n>] \
17
- # [--epic-context <json>] \
18
- # [--phase-context <json>] \
19
- # [--success-criteria <json>]
20
- ##############################################################################
21
-
22
- set -euo pipefail
23
-
24
- # ⚠️ ANTI-023 MEMORY LEAK PROTECTION: Block Task Mode agents
25
- # Task Mode agents spawn via Task() tool and should NOT use orchestration scripts
26
- if [[ -z "${TASK_ID:-}" || -z "${LOOP3_AGENTS:-}" ]]; then
27
- echo "❌ TASK MODE DETECTED - Orchestration forbidden" >&2
28
- echo "🚨 ANTI-023: This script is for CLI-spawned coordinators only" >&2
29
- echo "💡 Task Mode coordination should be handled directly by Main Chat" >&2
30
- echo "🔧 Coordinator spawned via Task() tool - Main Chat should coordinate directly" >&2
31
- exit 1
32
- fi
33
-
34
- # Load security utilities
35
- # shellcheck source=./security_utils.sh
36
- source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/security_utils.sh"
37
-
38
- # Determine script directory
39
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
40
- HELPERS_DIR="$SCRIPT_DIR/helpers"
41
- PROJECT_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)" && REDIS_COORD_SKILL="$PROJECT_ROOT/.claude/skills/cfn-redis-coordination"
42
-
43
- # Configuration
44
- TASK_ID=""
45
- MODE="standard"
46
- LOOP3_AGENTS=""
47
- LOOP2_AGENTS=""
48
- PRODUCT_OWNER=""
49
- MAX_ITERATIONS=10
50
- MIN_QUORUM_LOOP3="0.66"
51
- MIN_QUORUM_LOOP2="0.66"
52
- EPIC_CONTEXT=""
53
- PHASE_CONTEXT=""
54
- SUCCESS_CRITERIA=""
55
- EXPECTED_FILES=""
56
- PHASE_ID=""
57
-
58
- # Mode-specific thresholds
59
- declare -A GATE_THRESHOLD=(
60
- [mvp]=0.70
61
- [standard]=0.75
62
- [enterprise]=0.75
63
- )
64
-
65
- declare -A CONSENSUS_THRESHOLD=(
66
- [mvp]=0.80
67
- [standard]=0.90
68
- [enterprise]=0.95
69
- )
70
-
71
- # Execution tracking
72
- START_TIME=$(date +%s)
73
- ITERATIONS_COMPLETED=0
74
- FINAL_DECISION=""
75
- LOOP3_FINAL_CONFIDENCE=0.0
76
- LOOP2_FINAL_CONSENSUS=0.0
77
- DELIVERABLES_VERIFIED=false
78
-
79
- ##############################################################################
80
- # Argument Parsing
81
- ##############################################################################
82
- while [[ $# -gt 0 ]]; do
83
- case $1 in
84
- --task-id)
85
- if [[ $# -lt 2 ]]; then
86
- echo "Error: --task-id requires a value"
87
- exit 1
88
- fi
89
- TASK_ID=$(sanitize_input "$2") || { echo "Invalid task ID"; exit 1; }
90
- shift 2
91
- ;;
92
- --mode)
93
- if [[ $# -lt 2 ]]; then
94
- echo "Error: --mode requires a value"
95
- exit 1
96
- fi
97
- MODE="$2"
98
- # Whitelist allowed modes
99
- if [[ ! "$MODE" =~ ^(mvp|standard|enterprise)$ ]]; then
100
- echo "Invalid mode. Must be mvp, standard, or enterprise."
101
- exit 1
102
- fi
103
- shift 2
104
- ;;
105
- --loop3-agents)
106
- if [[ $# -lt 2 ]]; then
107
- echo "Error: --loop3-agents requires a value"
108
- exit 1
109
- fi
110
- validate_agent_list "$2" || { echo "Invalid Loop 3 agent list"; exit 1; }
111
- LOOP3_AGENTS="$2"
112
- shift 2
113
- ;;
114
- --loop2-agents)
115
- if [[ $# -lt 2 ]]; then
116
- echo "Error: --loop2-agents requires a value"
117
- exit 1
118
- fi
119
- validate_agent_list "$2" || { echo "Invalid Loop 2 agent list"; exit 1; }
120
- LOOP2_AGENTS="$2"
121
- shift 2
122
- ;;
123
- --product-owner)
124
- if [[ $# -lt 2 ]]; then
125
- echo "Error: --product-owner requires a value"
126
- exit 1
127
- fi
128
- PRODUCT_OWNER=$(sanitize_input "$2") || { echo "Invalid product owner"; exit 1; }
129
- shift 2
130
- ;;
131
- --max-iterations)
132
- if [[ $# -lt 2 ]]; then
133
- echo "Error: --max-iterations requires a value"
134
- exit 1
135
- fi
136
- # Validate max iterations is a positive integer
137
- if [[ ! "$2" =~ ^[1-9][0-9]*$ ]]; then
138
- echo "Max iterations must be a positive integer"
139
- exit 1
140
- fi
141
- MAX_ITERATIONS="$2"
142
- shift 2
143
- ;;
144
- --min-quorum-loop3)
145
- if [[ $# -lt 2 ]]; then
146
- echo "Error: --min-quorum-loop3 requires a value"
147
- exit 1
148
- fi
149
- # Validate quorum is a valid decimal between 0 and 1
150
- if [[ ! "$2" =~ ^0\.[0-9]+$ ]] || (( $(echo "$2 > 1" | bc -l) )); then
151
- echo "Invalid Loop 3 quorum. Must be between 0 and 1."
152
- exit 1
153
- fi
154
- MIN_QUORUM_LOOP3="$2"
155
- shift 2
156
- ;;
157
- --min-quorum-loop2)
158
- if [[ $# -lt 2 ]]; then
159
- echo "Error: --min-quorum-loop2 requires a value"
160
- exit 1
161
- fi
162
- # Validate quorum is a valid decimal between 0 and 1
163
- if [[ ! "$2" =~ ^0\.[0-9]+$ ]] || (( $(echo "$2 > 1" | bc -l) )); then
164
- echo "Invalid Loop 2 quorum. Must be between 0 and 1."
165
- exit 1
166
- fi
167
- MIN_QUORUM_LOOP2="$2"
168
- shift 2
169
- ;;
170
- --epic-context)
171
- if [[ $# -lt 2 ]]; then
172
- echo "Error: --epic-context requires a value"
173
- exit 1
174
- fi
175
- validate_json_context "$2" || { echo "Invalid epic context JSON"; exit 1; }
176
- EPIC_CONTEXT="$2"
177
- shift 2
178
- ;;
179
- --phase-context)
180
- if [[ $# -lt 2 ]]; then
181
- echo "Error: --phase-context requires a value"
182
- exit 1
183
- fi
184
- validate_json_context "$2" || { echo "Invalid phase context JSON"; exit 1; }
185
- PHASE_CONTEXT="$2"
186
- shift 2
187
- ;;
188
- --success-criteria)
189
- if [[ $# -lt 2 ]]; then
190
- echo "Error: --success-criteria requires a value"
191
- exit 1
192
- fi
193
- validate_json_context "$2" || { echo "Invalid success criteria JSON"; exit 1; }
194
- SUCCESS_CRITERIA="$2"
195
- shift 2
196
- ;;
197
- --expected-files)
198
- if [[ $# -lt 2 ]]; then
199
- echo "Error: --expected-files requires a value"
200
- exit 1
201
- fi
202
- # Optional: validate each expected file name if not empty
203
- if [ -n "$2" ]; then
204
- IFS=',' read -ra FILES <<< "$2"
205
- for file in "${FILES[@]}"; do
206
- sanitize_input "$file" 256 || { echo "Invalid expected filename: $file"; exit 1; }
207
- done
208
- fi
209
- EXPECTED_FILES="$2"
210
- shift 2
211
- ;;
212
- --phase-id)
213
- if [[ $# -lt 2 ]]; then
214
- echo "Error: --phase-id requires a value"
215
- exit 1
216
- fi
217
- PHASE_ID=$(sanitize_input "$2") || { echo "Invalid phase ID"; exit 1; }
218
- shift 2
219
- ;;
220
- *)
221
- echo "Error: Unknown option: '$1'"
222
- echo ""
223
- echo "Usage: $0 [OPTIONS]"
224
- echo ""
225
- echo "Required options:"
226
- echo " --task-id <id> Unique task identifier"
227
- echo " --loop3-agents <agents> Comma-separated list of Loop 3 agents"
228
- echo " --loop2-agents <agents> Comma-separated list of Loop 2 agents"
229
- echo " --product-owner <agent> Product owner agent ID"
230
- echo ""
231
- echo "Optional options:"
232
- echo " --mode <mode> CFN mode: mvp, standard, enterprise (default: standard)"
233
- echo " --max-iterations <n> Maximum iterations (default: 10)"
234
- echo " --min-quorum-loop3 <n> Loop 3 quorum threshold (default: 0.66)"
235
- echo " --min-quorum-loop2 <n> Loop 2 quorum threshold (default: 0.66)"
236
- echo " --epic-context <json> Epic context JSON"
237
- echo " --phase-context <json> Phase context JSON"
238
- echo " --success-criteria <json> Success criteria JSON"
239
- echo " --expected-files <files> Comma-separated expected deliverables"
240
- echo " --phase-id <id> Phase identifier for timeout calculation"
241
- exit 1
242
- ;;
243
- esac
244
- done
245
-
246
- # Validation
247
- if [ -z "$TASK_ID" ] || [ -z "$LOOP3_AGENTS" ] || [ -z "$LOOP2_AGENTS" ] || [ -z "$PRODUCT_OWNER" ]; then
248
- echo "Error: Required parameters missing"
249
- echo "Usage: $0 --task-id <id> --mode <mode> --loop3-agents <agents> --loop2-agents <agents> --product-owner <agent>"
250
- exit 1
251
- fi
252
-
253
- # Get thresholds for mode
254
- # Add additional mode validation with safe fallback
255
- case "$MODE" in
256
- mvp)
257
- GATE=${GATE_THRESHOLD[mvp]:-0.70}
258
- CONSENSUS=${CONSENSUS_THRESHOLD[mvp]:-0.80}
259
- ;;
260
- standard)
261
- GATE=${GATE_THRESHOLD[standard]:-0.75}
262
- CONSENSUS=${CONSENSUS_THRESHOLD[standard]:-0.90}
263
- ;;
264
- enterprise)
265
- GATE=${GATE_THRESHOLD[enterprise]:-0.85}
266
- CONSENSUS=${CONSENSUS_THRESHOLD[enterprise]:-0.95}
267
- ;;
268
- *)
269
- echo "Invalid mode: $MODE"
270
- exit 1
271
- ;;
272
- esac
273
-
274
- # Calculate timeout
275
- TIMEOUT=$("$HELPERS_DIR/timeout-calculator.sh" --phase-id "${PHASE_ID:-unknown}")
276
-
277
- echo "=============================================="
278
- echo "CFN Loop Orchestration v1.0.0"
279
- echo "=============================================="
280
- echo "Task ID: $TASK_ID"
281
- echo "Mode: $MODE"
282
- echo "Gate Threshold: $GATE"
283
- echo "Consensus Threshold: $CONSENSUS"
284
- echo "Max Iterations: $MAX_ITERATIONS"
285
- echo "Timeout: ${TIMEOUT}s"
286
- echo "=============================================="
287
- echo ""
288
-
289
- ##############################################################################
290
- # Helper Functions
291
- ##############################################################################
292
-
293
- function store_context() {
294
- local task_id="$1"
295
-
296
- # Store epic context if provided using Redis coordination primitive
297
- if [ -n "$EPIC_CONTEXT" ]; then
298
- "$REDIS_COORD_SKILL/store-context.sh" \
299
- --task-id "$task_id" \
300
- --key "epic-context" \
301
- --value "$EPIC_CONTEXT" \
302
- --namespace "swarm" >/dev/null
303
- echo "Stored epic context"
304
- fi
305
-
306
- # Store phase context if provided using Redis coordination primitive
307
- if [ -n "$PHASE_CONTEXT" ]; then
308
- "$REDIS_COORD_SKILL/store-context.sh" \
309
- --task-id "$task_id" \
310
- --key "phase-context" \
311
- --value "$PHASE_CONTEXT" \
312
- --namespace "swarm" >/dev/null
313
- echo "Stored phase context"
314
- fi
315
-
316
- # Store success criteria if provided using Redis coordination primitive
317
- if [ -n "$SUCCESS_CRITERIA" ]; then
318
- "$REDIS_COORD_SKILL/store-context.sh" \
319
- --task-id "$task_id" \
320
- --key "success-criteria" \
321
- --value "$SUCCESS_CRITERIA" \
322
- --namespace "swarm" >/dev/null
323
- echo "Stored success criteria"
324
- fi
325
-
326
- echo ""
327
- }
328
-
329
- build_agent_context() {
330
- local task_id="$1"
331
- local iteration="$2"
332
- local agent_type="$3"
333
- local feedback="$4"
334
- local loop_type="${5:-}" # NEW: loop3, loop2, or loop4 (optional)
335
-
336
- # Initialize context variables
337
- local task_desc="CFN Loop implementation"
338
- local deliverables=""
339
- local acceptance=""
340
- local epic_context=""
341
- local phase_context=""
342
- local target_files=""
343
-
344
- # Try to retrieve complete context from Redis
345
- if command -v "$REDIS_COORD_SKILL/get-context.sh" >/dev/null 2>&1; then
346
- if redis_context=$("$REDIS_COORD_SKILL/get-context.sh" --task-id "$task_id" --namespace "swarm" 2>/dev/null); then
347
- echo "📥 Retrieved Redis context for task: $task_id" >&2
348
-
349
- # Extract fields from Redis context
350
- task_desc=$(echo "$redis_context" | jq -r '.["epic-context"] // .epic_context // "CFN Loop implementation"' 2>/dev/null || echo "CFN Loop implementation")
351
- deliverables=$(echo "$redis_context" | jq -r '.deliverables // [] | if type == "array" then join(", ") else . end' 2>/dev/null || echo "")
352
- acceptance=$(echo "$redis_context" | jq -r '.acceptanceCriteria // .["acceptance-criteria"] // [] | if type == "array" then join(", ") else . end' 2>/dev/null || echo "")
353
- epic_context=$(echo "$redis_context" | jq -r '.["epic-context"] // ""' 2>/dev/null || echo "")
354
- phase_context=$(echo "$redis_context" | jq -r '.["phase-context"] // ""' 2>/dev/null || echo "")
355
- target_files=$(echo "$redis_context" | jq -r '.["target-files"] // ""' 2>/dev/null || echo "")
356
-
357
- echo "📋 Redis context extracted - Task: $task_desc" >&2
358
- else
359
- echo "⚠️ Failed to retrieve Redis context, using local SUCCESS_CRITERIA" >&2
360
- fi
361
- else
362
- echo "⚠️ get-context.sh not found, using local SUCCESS_CRITERIA" >&2
363
- fi
364
-
365
- # Fallback to local SUCCESS_CRITERIA if Redis retrieval failed or incomplete
366
- if [ -z "$deliverables" ] && [ -n "$SUCCESS_CRITERIA" ]; then
367
- deliverables=$(echo "$SUCCESS_CRITERIA" | jq -r '.deliverables // [] | join(", ")' 2>/dev/null || echo "")
368
- acceptance=$(echo "$SUCCESS_CRITERIA" | jq -r '.acceptanceCriteria // [] | join(", ")' 2>/dev/null || echo "")
369
- echo "🔄 Using local SUCCESS_CRITERIA as fallback" >&2
370
- fi
371
-
372
- # Build comprehensive context string
373
- local context="Task: $task_desc"
374
-
375
- if [ -n "$deliverables" ]; then
376
- context="$context | Deliverables: $deliverables"
377
- fi
378
-
379
- if [ -n "$acceptance" ]; then
380
- context="$context | Acceptance Criteria: $acceptance"
381
- fi
382
-
383
- if [ -n "$target_files" ]; then
384
- context="$context | Target Files: $target_files"
385
- fi
386
-
387
- context="$context | Iteration: $iteration"
388
-
389
- if [[ -n "$feedback" ]]; then
390
- context="$context | Feedback: $feedback"
391
- fi
392
-
393
- # Add epic/phase context if available
394
- if [ -n "$epic_context" ]; then
395
- context="$context | Epic: $epic_context"
396
- fi
397
-
398
- if [ -n "$phase_context" ]; then
399
- context="$context | Phase: $phase_context"
400
- fi
401
-
402
- # Inject CFN Loop context if injection script exists and loop_type provided
403
- if [[ -n "$loop_type" ]] && [[ -x "$SCRIPT_DIR/inject-loop-context.sh" ]]; then
404
- context=$("$SCRIPT_DIR/inject-loop-context.sh" "$loop_type" "$context" 2>/dev/null || echo "$context")
405
- fi
406
-
407
- echo "$context"
408
- }
409
-
410
- function spawn_loop3_agents() {
411
- local task_id="$1"
412
- local iteration="$2"
413
- local agents="$3"
414
-
415
- echo "[Loop 3] Spawning implementer agents (iteration $iteration)..."
416
-
417
- # Convert comma-separated agents to array
418
- IFS=',' read -ra AGENT_ARRAY <<< "$agents"
419
-
420
- # Track agent instance counts for unique ID generation
421
- declare -A AGENT_INSTANCE_COUNTS
422
-
423
- # Spawn each agent via CLI
424
- for agent_type in "${AGENT_ARRAY[@]}"; do
425
- # Generate unique agent ID (agent-type-iteration-instance)
426
- AGENT_INSTANCE_COUNTS["$agent_type"]=$((${AGENT_INSTANCE_COUNTS["$agent_type"]:-0} + 1))
427
- INSTANCE_NUM="${AGENT_INSTANCE_COUNTS["$agent_type"]}"
428
- UNIQUE_AGENT_ID="${agent_type}-${iteration}-${INSTANCE_NUM}"
429
-
430
- echo " Spawning: $agent_type (ID: $UNIQUE_AGENT_ID)"
431
-
432
- # Validate agent input
433
- local safe_agent_type safe_task_id safe_agent_id
434
- safe_agent_type=$(sanitize_input "$agent_type") || continue
435
- safe_task_id=$(sanitize_input "$task_id") || continue
436
- safe_agent_id=$(sanitize_input "$UNIQUE_AGENT_ID") || continue
437
-
438
- # Spawn agent in background with explicit agent ID
439
- npx claude-flow-novice agent "$safe_agent_type" \
440
- --task-id "$safe_task_id" \
441
- --agent-id "$safe_agent_id" \
442
- --iteration "$iteration" \
443
- --context "$(build_agent_context "$safe_task_id" "$iteration" "$safe_agent_type" "" "loop3")" &
444
-
445
- # Store PID for monitoring using unique agent ID
446
- AGENT_PID=$!
447
- "$REDIS_COORD_SKILL/store-context.sh" \
448
- --task-id "$task_id" \
449
- --key "${UNIQUE_AGENT_ID}:pid" \
450
- --value "{\"pid\": $AGENT_PID}" \
451
- --namespace "swarm" >/dev/null
452
-
453
- # Store agent ID mapping for later retrieval using Redis SADD for set storage
454
- redis-cli SADD "swarm:${task_id}:loop3:agent_ids:iteration${iteration}" "$UNIQUE_AGENT_ID" >/dev/null
455
- done
456
-
457
- echo "[Loop 3] All agents spawned"
458
- echo ""
459
- }
460
-
461
- function wait_for_agents() {
462
- local task_id="$1"
463
- local agents="$2"
464
- local timeout="$3"
465
- local iteration="${4:-1}"
466
-
467
- echo "Waiting for agents to complete (timeout: ${timeout}s)..."
468
-
469
- # Retrieve actual agent IDs from Redis (stored during spawn using SADD)
470
- local stored_ids
471
- stored_ids=$(redis-cli SMEMBERS "swarm:${task_id}:loop3:agent_ids:iteration${iteration}" 2>/dev/null | tr '\n' ',' | sed 's/,$//')
472
-
473
- # If stored IDs exist, use them; otherwise fallback to generating from agent types
474
- local -a AGENT_IDS
475
- if [ -n "$stored_ids" ]; then
476
- IFS=',' read -ra AGENT_IDS <<< "$stored_ids"
477
- echo " Retrieved ${#AGENT_IDS[@]} agent IDs from Redis"
478
- else
479
- # Fallback: Convert agent types to IDs (legacy compatibility)
480
- echo " Warning: No stored agent IDs, using agent types as fallback"
481
- IFS=',' read -ra AGENT_TYPES <<< "$agents"
482
-
483
- # Track instance counts to match spawn behavior
484
- declare -A AGENT_INSTANCE_COUNTS
485
- for agent_type in "${AGENT_TYPES[@]}"; do
486
- AGENT_INSTANCE_COUNTS["$agent_type"]=$((${AGENT_INSTANCE_COUNTS["$agent_type"]:-0} + 1))
487
- INSTANCE_NUM="${AGENT_INSTANCE_COUNTS["$agent_type"]}"
488
- AGENT_IDS+=("${agent_type}-${iteration}-${INSTANCE_NUM}")
489
- done
490
- fi
491
-
492
- # Parallel BLPOP implementation with shared timeout
493
- # Track start time for global timeout calculation
494
- local start_time=$(date +%s)
495
-
496
- # Spawn parallel BLPOP processes for each agent
497
- local pids=()
498
- local temp_files=()
499
-
500
- for unique_agent_id in "${AGENT_IDS[@]}"; do
501
- # Create temporary file for this agent's result
502
- local temp_file="/tmp/cfn-wait-${task_id}-${unique_agent_id}-$$.tmp"
503
- temp_files+=("$temp_file")
504
-
505
- echo " Waiting for: $unique_agent_id"
506
-
507
- # Spawn BLPOP in background, write result to temp file
508
- (
509
- local result
510
- if redis-cli blpop "swarm:${task_id}:${unique_agent_id}:done" "$timeout" >/dev/null 2>&1; then
511
- echo "success" > "$temp_file"
512
- else
513
- echo "timeout" > "$temp_file"
514
- fi
515
- exit 0
516
- ) &
517
-
518
- pids+=($!)
519
- done
520
-
521
- # Wait for all parallel BLPOP processes to complete
522
- # This ensures timeout is global (60s total), not per-agent (60s * N)
523
- for pid in "${pids[@]}"; do
524
- wait "$pid" 2>/dev/null || true
525
- done
526
-
527
- # Calculate actual elapsed time
528
- local end_time=$(date +%s)
529
- local elapsed=$((end_time - start_time))
530
-
531
- # Check results and report status
532
- local completed=0
533
- local timed_out=0
534
-
535
- for i in "${!AGENT_IDS[@]}"; do
536
- local unique_agent_id="${AGENT_IDS[$i]}"
537
- local temp_file="${temp_files[$i]}"
538
-
539
- if [ -f "$temp_file" ]; then
540
- local result=$(cat "$temp_file")
541
- if [ "$result" = "success" ]; then
542
- ((completed++))
543
- echo " ✅ $unique_agent_id completed"
544
- else
545
- ((timed_out++))
546
- echo " ⚠️ $unique_agent_id did not complete within timeout"
547
- fi
548
- rm -f "$temp_file"
549
- else
550
- ((timed_out++))
551
- echo " ❌ $unique_agent_id result file missing"
552
- fi
553
- done
554
-
555
- echo "Agents completed: $completed/${#AGENT_IDS[@]} (elapsed: ${elapsed}s)"
556
- echo ""
557
- }
558
-
559
- function wait_for_loop2_agents() {
560
- local task_id="$1"
561
- local agents="$2"
562
- local timeout="$3"
563
- local iteration="${4:-1}"
564
-
565
- echo "Waiting for Loop 2 validators to complete (timeout: ${timeout}s)..."
566
-
567
- # Retrieve actual agent IDs from Redis (stored during spawn using SADD)
568
- local stored_ids
569
- stored_ids=$(redis-cli SMEMBERS "swarm:${task_id}:loop2:agent_ids:iteration${iteration}" 2>/dev/null | tr '\n' ',' | sed 's/,$//')
570
-
571
- # If stored IDs exist, use them; otherwise fallback to generating from agent types
572
- local -a VALIDATOR_IDS
573
- if [ -n "$stored_ids" ]; then
574
- IFS=',' read -ra VALIDATOR_IDS <<< "$stored_ids"
575
- echo " Retrieved ${#VALIDATOR_IDS[@]} validator IDs from Redis"
576
- else
577
- # Fallback: Convert agent types to IDs (legacy compatibility)
578
- echo " Warning: No stored validator IDs, using agent types as fallback"
579
- IFS=',' read -ra AGENT_TYPES <<< "$agents"
580
-
581
- # Track instance counts to match spawn behavior
582
- declare -A AGENT_INSTANCE_COUNTS
583
- for agent_type in "${AGENT_TYPES[@]}"; do
584
- AGENT_INSTANCE_COUNTS["$agent_type"]=$((${AGENT_INSTANCE_COUNTS["$agent_type"]:-0} + 1))
585
- INSTANCE_NUM="${AGENT_INSTANCE_COUNTS["$agent_type"]}"
586
- VALIDATOR_IDS+=("${agent_type}-${iteration}-${INSTANCE_NUM}")
587
- done
588
- fi
589
-
590
- # Parallel BLPOP implementation
591
- local start_time=$(date +%s)
592
- local pids=()
593
- local temp_files=()
594
-
595
- for unique_validator_id in "${VALIDATOR_IDS[@]}"; do
596
- local temp_file="/tmp/cfn-wait-${task_id}-${unique_validator_id}-$$.tmp"
597
- temp_files+=("$temp_file")
598
-
599
- echo " Waiting for: $unique_validator_id"
600
-
601
- # Spawn BLPOP in background
602
- (
603
- if redis-cli blpop "swarm:${task_id}:${unique_validator_id}:done" "$timeout" >/dev/null 2>&1; then
604
- echo "success" > "$temp_file"
605
- else
606
- echo "timeout" > "$temp_file"
607
- fi
608
- exit 0
609
- ) &
610
-
611
- pids+=($!)
612
- done
613
-
614
- # Wait for all processes
615
- for pid in "${pids[@]}"; do
616
- wait "$pid" 2>/dev/null || true
617
- done
618
-
619
- # Check results
620
- local end_time=$(date +%s)
621
- local elapsed=$((end_time - start_time))
622
- local completed=0
623
- local timed_out=0
624
-
625
- for i in "${!VALIDATOR_IDS[@]}"; do
626
- local unique_validator_id="${VALIDATOR_IDS[$i]}"
627
- local temp_file="${temp_files[$i]}"
628
-
629
- if [ -f "$temp_file" ]; then
630
- local result=$(cat "$temp_file")
631
- if [ "$result" = "success" ]; then
632
- ((completed++))
633
- echo " ✅ $unique_validator_id completed"
634
- else
635
- ((timed_out++))
636
- echo " ⚠️ $unique_validator_id did not complete within timeout"
637
- fi
638
- rm -f "$temp_file"
639
- else
640
- ((timed_out++))
641
- echo " ❌ $unique_validator_id result file missing"
642
- fi
643
- done
644
-
645
- echo "Validators completed: $completed/${#VALIDATOR_IDS[@]} (elapsed: ${elapsed}s)"
646
- echo ""
647
- }
648
-
649
- function spawn_loop2_agents() {
650
- local task_id="$1"
651
- local iteration="$2"
652
- local agents="$3"
653
-
654
- echo "[Loop 2] Spawning validator agents (iteration $iteration)..."
655
-
656
- # Convert comma-separated agents to array
657
- IFS=',' read -ra AGENT_ARRAY <<< "$agents"
658
-
659
- # Track agent instance counts for unique ID generation
660
- declare -A AGENT_INSTANCE_COUNTS
661
-
662
- # Spawn each agent via CLI
663
- for agent_type in "${AGENT_ARRAY[@]}"; do
664
- # Generate unique agent ID (agent-type-iteration-instance)
665
- AGENT_INSTANCE_COUNTS["$agent_type"]=$((${AGENT_INSTANCE_COUNTS["$agent_type"]:-0} + 1))
666
- INSTANCE_NUM="${AGENT_INSTANCE_COUNTS["$agent_type"]}"
667
- UNIQUE_VALIDATOR_ID="${agent_type}-${iteration}-${INSTANCE_NUM}"
668
-
669
- echo " Spawning: $agent_type (ID: $UNIQUE_VALIDATOR_ID)"
670
-
671
- # Spawn agent in background with explicit agent ID
672
- npx claude-flow-novice agent "$agent_type" \
673
- --task-id "$task_id" \
674
- --agent-id "$UNIQUE_VALIDATOR_ID" \
675
- --iteration "$iteration" \
676
- --context "$(build_agent_context "$task_id" "$iteration" "$agent_type" "" "loop2")" &
677
-
678
- # Store PID for monitoring using unique agent ID
679
- AGENT_PID=$!
680
- "$REDIS_COORD_SKILL/store-context.sh" \
681
- --task-id "$task_id" \
682
- --key "${UNIQUE_VALIDATOR_ID}:pid" \
683
- --value "{\"pid\": $AGENT_PID}" \
684
- --namespace "swarm" >/dev/null
685
-
686
- # Store agent ID mapping for later retrieval using Redis SADD for set storage
687
- redis-cli SADD "swarm:${task_id}:loop2:agent_ids:iteration${iteration}" "$UNIQUE_VALIDATOR_ID" >/dev/null
688
- done
689
-
690
- echo "[Loop 2] All agents spawned"
691
- echo ""
692
- }
693
-
694
- function spawn_product_owner() {
695
- local task_id="$1"
696
- local iteration="$2"
697
-
698
- echo "[Product Owner] Spawning decision agent..."
699
-
700
- # BLOCKER #2 FIX: Match execute-decision.sh actual parameters
701
- # Required: --task-id, --agent-id, --consensus, --threshold, --iteration, --max-iterations
702
- local decision_output
703
- decision_output=$("$SCRIPT_DIR/.claude/skills/cfn-product-owner-decision/execute-decision.sh" \
704
- --task-id "$task_id" \
705
- --agent-id "$PRODUCT_OWNER" \
706
- --consensus "$LOOP2_FINAL_CONSENSUS" \
707
- --threshold "$CONSENSUS" \
708
- --iteration "$iteration" \
709
- --max-iterations "$MAX_ITERATIONS")
710
-
711
- # Parse decision from output
712
- if echo "$decision_output" | grep -q "PROCEED"; then
713
- FINAL_DECISION="PROCEED"
714
- elif echo "$decision_output" | grep -q "ITERATE"; then
715
- FINAL_DECISION="ITERATE"
716
- elif echo "$decision_output" | grep -q "ABORT"; then
717
- FINAL_DECISION="ABORT"
718
- else
719
- echo "Warning: Could not parse Product Owner decision, defaulting to ITERATE"
720
- FINAL_DECISION="ITERATE"
721
- fi
722
-
723
- echo "[Product Owner] Decision: $FINAL_DECISION"
724
- echo ""
725
- }
726
-
727
- function output_result() {
728
- local status="$1"
729
- local end_time=$(date +%s)
730
- local execution_time=$((end_time - START_TIME))
731
-
732
- echo "=============================================="
733
- echo "CFN Loop Execution Complete"
734
- echo "=============================================="
735
- echo "Status: $status"
736
- echo "Iterations: $ITERATIONS_COMPLETED"
737
- echo "Final Decision: $FINAL_DECISION"
738
- echo "Loop 3 Confidence: $LOOP3_FINAL_CONFIDENCE"
739
- echo "Loop 2 Consensus: $LOOP2_FINAL_CONSENSUS"
740
- echo "Deliverables Verified: $DELIVERABLES_VERIFIED"
741
- echo "Execution Time: ${execution_time}s"
742
- echo "=============================================="
743
-
744
- # Output structured JSON result
745
- cat <<EOF
746
- {
747
- "status": "$status",
748
- "iterations_completed": $ITERATIONS_COMPLETED,
749
- "final_decision": "$FINAL_DECISION",
750
- "loop3_confidence": $LOOP3_FINAL_CONFIDENCE,
751
- "loop2_consensus": $LOOP2_FINAL_CONSENSUS,
752
- "deliverables_verified": $DELIVERABLES_VERIFIED,
753
- "execution_time_seconds": $execution_time
754
- }
755
- EOF
756
- }
757
-
758
- ##############################################################################
759
- # Main CFN Loop
760
- ##############################################################################
761
-
762
- # Store context in Redis
763
- store_context "$TASK_ID"
764
-
765
- # Iteration loop
766
- for ((ITERATION=1; ITERATION<=MAX_ITERATIONS; ITERATION++)); do
767
- echo ""
768
- echo "=========================================="
769
- echo "Iteration $ITERATION / $MAX_ITERATIONS"
770
- echo "=========================================="
771
- echo ""
772
-
773
- ITERATIONS_COMPLETED=$ITERATION
774
-
775
- # Step 1: Spawn Loop 3 agents (implementers)
776
- spawn_loop3_agents "$TASK_ID" "$ITERATION" "$LOOP3_AGENTS"
777
-
778
- # Step 2: Wait for Loop 3 completion
779
- wait_for_agents "$TASK_ID" "$LOOP3_AGENTS" "$TIMEOUT" "$ITERATION"
780
-
781
- # Step 3: Verify deliverables (prevent "consensus on vapor")
782
- if [ -n "$EXPECTED_FILES" ] || [ -n "$EPIC_CONTEXT" ]; then
783
- # Extract task type from epic context for keyword detection
784
- TASK_TYPE=""
785
- if [ -n "$EPIC_CONTEXT" ]; then
786
- TASK_TYPE=$(echo "$EPIC_CONTEXT" | jq -r '.epicGoal // ""' 2>/dev/null || echo "")
787
- fi
788
-
789
- if "$HELPERS_DIR/deliverable-verifier.sh" \
790
- --expected-files "${EXPECTED_FILES:-}" \
791
- --task-type "${TASK_TYPE:-}"; then
792
- DELIVERABLES_VERIFIED=true
793
- else
794
- echo "❌ Deliverable verification failed - forcing Loop 3 iteration"
795
- # Use iteration manager to wake Loop 3 agents with explicit feedback
796
- "$HELPERS_DIR/iteration-manager.sh" \
797
- --task-id "$TASK_ID" \
798
- --iteration "$((ITERATION + 1))" \
799
- --agents "$LOOP3_AGENTS" \
800
- --feedback-source "swarm:${TASK_ID}:feedback"
801
- continue
802
- fi
803
- fi
804
-
805
- # Step 4: Gate check (Loop 3 self-validation)
806
- # Retrieve actual Loop 3 agent IDs for validation
807
- LOOP3_IDS=$(redis-cli SMEMBERS "swarm:${TASK_ID}:loop3:agent_ids:iteration${ITERATION}" 2>/dev/null | tr '\n' ',' | sed 's/,$//')
808
-
809
- if [ -z "$LOOP3_IDS" ]; then
810
- echo "⚠️ WARNING: No Loop 3 agent IDs found in Redis, using agent types as fallback"
811
- LOOP3_IDS="$LOOP3_AGENTS"
812
- fi
813
-
814
- if "$HELPERS_DIR/gate-check.sh" \
815
- --task-id "$TASK_ID" \
816
- --agents "$LOOP3_IDS" \
817
- --threshold "$GATE" \
818
- --min-quorum "$MIN_QUORUM_LOOP3"; then
819
- # Gate passed - store confidence
820
- LOOP3_FINAL_CONFIDENCE=$("$REDIS_COORD_SKILL/invoke-waiting-mode.sh" collect \
821
- --task-id "$TASK_ID" \
822
- --agent-ids "$LOOP3_IDS" \
823
- --min-quorum "$MIN_QUORUM_LOOP3")
824
- else
825
- # Gate failed - iterate Loop 3
826
- echo "❌ Gate check failed - iterating Loop 3"
827
- "$HELPERS_DIR/iteration-manager.sh" \
828
- --task-id "$TASK_ID" \
829
- --iteration "$((ITERATION + 1))" \
830
- --agents "$LOOP3_AGENTS" \
831
- --feedback-source "swarm:${TASK_ID}:feedback"
832
- continue
833
- fi
834
-
835
- # Step 5: Spawn Loop 2 agents (validators)
836
- spawn_loop2_agents "$TASK_ID" "$ITERATION" "$LOOP2_AGENTS"
837
-
838
- # Step 6: Wait for Loop 2 completion
839
- wait_for_loop2_agents "$TASK_ID" "$LOOP2_AGENTS" "$TIMEOUT" "$ITERATION"
840
-
841
- # Step 7: Consensus check (Loop 2 validation)
842
- # Retrieve actual Loop 2 agent IDs for validation
843
- LOOP2_IDS=$(redis-cli SMEMBERS "swarm:${TASK_ID}:loop2:agent_ids:iteration${ITERATION}" 2>/dev/null | tr '\n' ',' | sed 's/,$//')
844
-
845
- if [ -z "$LOOP2_IDS" ]; then
846
- echo "⚠️ WARNING: No Loop 2 agent IDs found in Redis, using agent types as fallback"
847
- LOOP2_IDS="$LOOP2_AGENTS"
848
- fi
849
-
850
- if "$HELPERS_DIR/consensus.sh" \
851
- --task-id "$TASK_ID" \
852
- --agents "$LOOP2_IDS" \
853
- --threshold "$CONSENSUS" \
854
- --min-quorum "$MIN_QUORUM_LOOP2"; then
855
- # Consensus reached - store score
856
- LOOP2_FINAL_CONSENSUS=$("$REDIS_COORD_SKILL/invoke-waiting-mode.sh" collect \
857
- --task-id "$TASK_ID" \
858
- --agent-ids "$LOOP2_IDS" \
859
- --min-quorum "$MIN_QUORUM_LOOP2")
860
- else
861
- # Consensus failed - iterate all agents
862
- echo "❌ Consensus check failed - iterating all agents"
863
- "$HELPERS_DIR/iteration-manager.sh" \
864
- --task-id "$TASK_ID" \
865
- --iteration "$((ITERATION + 1))" \
866
- --agents "$LOOP3_AGENTS,$LOOP2_AGENTS" \
867
- --feedback-source "swarm:${TASK_ID}:feedback"
868
- continue
869
- fi
870
-
871
- # Step 8: Product Owner Decision
872
- spawn_product_owner "$TASK_ID" "$ITERATION"
873
-
874
- # Step 9: Execute decision
875
- case "$FINAL_DECISION" in
876
- PROCEED)
877
- # Launch ACE reflection in background (Loop 5)
878
- echo "[Loop 5] Launching reflection in background..."
879
-
880
- # Ensure log directory exists
881
- mkdir -p "$PROJECT_ROOT/.artifacts/logs"
882
-
883
- # Build reflection context from CFN Loop execution
884
- REFLECTION_CONTEXT=$(cat <<EOF
885
- {
886
- "task_id": "$TASK_ID",
887
- "task_type": "cfn_loop",
888
- "mode": "$MODE",
889
- "iterations_completed": $ITERATIONS_COMPLETED,
890
- "loop3_agents": "$LOOP3_AGENTS",
891
- "loop2_agents": "$LOOP2_AGENTS",
892
- "loop3_confidence": $LOOP3_FINAL_CONFIDENCE,
893
- "loop2_consensus": $LOOP2_FINAL_CONSENSUS,
894
- "gate_threshold": $GATE,
895
- "consensus_threshold": $CONSENSUS,
896
- "deliverables_verified": $DELIVERABLES_VERIFIED,
897
- "epic_context": $EPIC_CONTEXT,
898
- "phase_context": $PHASE_CONTEXT,
899
- "success_criteria": $SUCCESS_CRITERIA
900
- }
901
- EOF
902
- )
903
-
904
- # Launch reflection in background (non-blocking)
905
- (
906
- "$PROJECT_ROOT/.claude/skills/cfn-ace-system/invoke-context-reflect.sh" \
907
- --context "$REFLECTION_CONTEXT" \
908
- --output "/tmp/reflection-${TASK_ID}.json" 2>&1 | \
909
- tee -a "$PROJECT_ROOT/.artifacts/logs/ace-reflection-${TASK_ID}.log"
910
-
911
- # Log completion
912
- echo "[$(date -Iseconds)] Reflection complete for task $TASK_ID" >> \
913
- "$PROJECT_ROOT/.artifacts/logs/ace-reflection-${TASK_ID}.log"
914
- ) &
915
-
916
- REFLECTION_PID=$!
917
- echo "[Loop 5] Reflection launched (PID: $REFLECTION_PID)"
918
- echo ""
919
-
920
- # Continue with output (don't wait for reflection)
921
- output_result "success"
922
- exit 0
923
- ;;
924
- ABORT)
925
- output_result "aborted"
926
- exit 1
927
- ;;
928
- ITERATE)
929
- if [ $ITERATION -ge $MAX_ITERATIONS ]; then
930
- echo "❌ Max iterations reached"
931
- output_result "failed"
932
- exit 1
933
- fi
934
-
935
- echo "🔄 Product Owner requested iteration"
936
- "$HELPERS_DIR/iteration-manager.sh" \
937
- --task-id "$TASK_ID" \
938
- --iteration "$((ITERATION + 1))" \
939
- --agents "$LOOP3_AGENTS,$LOOP2_AGENTS" \
940
- --feedback-source "swarm:${TASK_ID}:feedback"
941
- continue
942
- ;;
943
- esac
944
- done
945
-
946
- # Max iterations reached without success
947
- echo "❌ Max iterations ($MAX_ITERATIONS) reached without PROCEED decision"
948
- output_result "failed"
949
- exit 1