sinapse-ai 1.19.1 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (545) hide show
  1. package/.claude/CLAUDE.md +2 -2
  2. package/.claude/hooks/enforce-delegation.cjs +32 -36
  3. package/.claude/rules/agent-handoff.md +10 -21
  4. package/.claude/rules/mandatory-delegation.md +1 -1
  5. package/.claude/rules/token-economy.md +12 -5
  6. package/.sinapse-ai/constitution.md +2 -0
  7. package/.sinapse-ai/core/atlas/flows-pt.js +6 -0
  8. package/.sinapse-ai/core/atlas/flows.js +7 -0
  9. package/.sinapse-ai/core/atlas/render-markdown.js +8 -0
  10. package/.sinapse-ai/core/doctor/checks/constitution-consistency.js +7 -0
  11. package/.sinapse-ai/core/execution/autonomous-build-loop.js +10 -4
  12. package/.sinapse-ai/core/execution/build-orchestrator.js +104 -2
  13. package/.sinapse-ai/core/execution/context-injector.js +2 -0
  14. package/.sinapse-ai/core/execution/parallel-executor.js +2 -0
  15. package/.sinapse-ai/core/execution/parallel-monitor.js +2 -0
  16. package/.sinapse-ai/core/execution/rate-limit-manager.js +2 -0
  17. package/.sinapse-ai/core/execution/result-aggregator.js +2 -0
  18. package/.sinapse-ai/core/execution/semantic-merge-engine.js +2 -0
  19. package/.sinapse-ai/core/execution/wave-executor.js +2 -0
  20. package/.sinapse-ai/core/health-check/checks/project/constitution-consistency.js +12 -1
  21. package/.sinapse-ai/core/orchestration/cli-commands.js +121 -4
  22. package/.sinapse-ai/core/orchestration/executors/epic-4-executor.js +25 -4
  23. package/.sinapse-ai/core/orchestration/executors/epic-6-executor.js +53 -2
  24. package/.sinapse-ai/core/orchestration/gate-evaluator.js +78 -3
  25. package/.sinapse-ai/core/orchestration/index.js +3 -0
  26. package/.sinapse-ai/core/orchestration/master-orchestrator.js +116 -18
  27. package/.sinapse-ai/core/synapse/context/context-tracker.js +118 -11
  28. package/.sinapse-ai/core/synapse/engine.js +18 -3
  29. package/.sinapse-ai/core/synapse/layers/l0-constitution.js +189 -8
  30. package/.sinapse-ai/core/synapse/output/formatter.js +65 -25
  31. package/.sinapse-ai/core-config.yaml +8 -1
  32. package/.sinapse-ai/data/entity-registry.yaml +69 -68
  33. package/.sinapse-ai/development/agents/developer.md +18 -34
  34. package/.sinapse-ai/development/agents/snps-orqx.md +5 -5
  35. package/.sinapse-ai/development/agents/sprint-lead.md +20 -36
  36. package/.sinapse-ai/development/scripts/agent-exit-hooks.js +13 -4
  37. package/.sinapse-ai/infrastructure/integrations/ai-providers/README.md +2 -2
  38. package/.sinapse-ai/install-manifest.yaml +73 -73
  39. package/.sinapse-ai/product/templates/activation-instructions-template.md +72 -185
  40. package/.sinapse-ai/product/templates/ide-rules/claude-rules.md +45 -274
  41. package/.sinapse-ai/product/templates/statusline/agent-badges.json +2 -2
  42. package/.sinapse-ai/product/templates/statusline/statusline-script.js +5 -3
  43. package/.sinapse-ai/workflow-intelligence/engine/wave-analyzer.js +8 -0
  44. package/CHANGELOG.md +42 -1
  45. package/README.md +10 -0
  46. package/bin/cli.js +29 -0
  47. package/bin/commands/help.js +5 -0
  48. package/bin/commands/uninstall.js +5 -0
  49. package/bin/postinstall.js +7 -0
  50. package/bin/sinapse.js +149 -1
  51. package/docs/framework/atlas/OPERATING-ATLAS.md +3 -3
  52. package/docs/framework/atlas/atlas-data.json +6 -6
  53. package/docs/framework/atlas/atlas.html +2 -2
  54. package/docs/framework/source-tree.md +1 -1
  55. package/docs/framework/workflow-engine-status.md +70 -0
  56. package/docs/guides/ade-guide.md +4 -2
  57. package/docs/guides/api-reference.md +2 -0
  58. package/docs/guides/permission-modes.md +2 -0
  59. package/docs/guides/user-guide.md +21 -7
  60. package/docs/guides/workflows/AUTO-WORKTREE-WORKFLOW.md +2 -2
  61. package/docs/pt/architecture/ade-architecture.md +2 -0
  62. package/docs/pt/architecture/high-level-architecture.md +1 -1
  63. package/docs/pt/guides/ade-guide.md +4 -2
  64. package/docs/pt/guides/api-reference.md +2 -0
  65. package/docs/pt/guides/permission-modes.md +2 -0
  66. package/docs/pt/guides/user-guide.md +21 -7
  67. package/docs/pt/platforms/claude-code.md +2 -2
  68. package/docs/sinapse-workflows/auto-worktree-workflow.md +2 -2
  69. package/package.json +1 -1
  70. package/packages/installer/src/config/configure-environment.js +6 -0
  71. package/packages/installer/src/config/templates/core-config-template.js +43 -1
  72. package/packages/installer/src/installer/synapse-runtime-installer.js +148 -0
  73. package/packages/installer/src/wizard/i18n.js +294 -0
  74. package/packages/installer/src/wizard/index.js +26 -0
  75. package/packages/installer/src/wizard/validation/troubleshooting-system.js +60 -131
  76. package/scripts/bracket-report.js +103 -0
  77. package/scripts/validate-agent-codenames.js +168 -37
  78. package/scripts/validate-install-docs.js +23 -2
  79. package/sinapse/agents/sinapse-orqx.md +3 -3
  80. package/sinapse/agents/snps-orqx.md +3 -3
  81. package/sinapse/knowledge-base/routing-catalog.md +1 -1
  82. package/sinapse/tasks/diagnose-and-route.md +1 -1
  83. package/squads/claude-code-mastery/CHANGELOG.md +1 -1
  84. package/squads/claude-code-mastery/README.md +6 -6
  85. package/squads/claude-code-mastery/agents/claude-mastery-chief.md +7 -7
  86. package/squads/claude-code-mastery/agents/roadmap-sentinel.md +9 -9
  87. package/squads/claude-code-mastery/agents/swarm-orqx.md +5 -5
  88. package/squads/claude-code-mastery/data/claude-code-quick-ref.yaml +1 -1
  89. package/squads/claude-code-mastery/knowledge-base/claude-code-internals-deep.md +4 -4
  90. package/squads/claude-code-mastery/knowledge-base/claude-code-internals-reference.md +4 -4
  91. package/squads/claude-code-mastery/tasks/create-agent-definition.md +6 -6
  92. package/squads/claude-code-mastery/tasks/create-team-topology.md +3 -3
  93. package/squads/claude-code-mastery/tasks/diagnose.md +1 -1
  94. package/squads/claude-code-mastery/tasks/parallel-decomposition.md +1 -1
  95. package/squads/claude-code-mastery/tasks/worktree-strategy.md +1 -1
  96. package/squads/squad-animations/README.md +1 -1
  97. package/squads/squad-animations/agents/animation-interpreter.md +5 -5
  98. package/squads/squad-animations/agents/animations-orqx.md +6 -6
  99. package/squads/squad-animations/squad.yaml +1 -1
  100. package/squads/squad-animations/tasks/analyze-reference-animation.md +1 -1
  101. package/squads/squad-animations/tasks/build-animation-brief.md +1 -1
  102. package/squads/squad-animations/tasks/create-animation-storyboard.md +1 -1
  103. package/squads/squad-animations/tasks/cross-reference-brand-system.md +1 -1
  104. package/squads/squad-animations/tasks/extract-animation-intent.md +1 -1
  105. package/squads/squad-animations/tasks/generate-motion-vocabulary.md +1 -1
  106. package/squads/squad-animations/tasks/identify-website-animation.md +1 -1
  107. package/squads/squad-animations/tasks/interpret-animation-prompt.md +1 -1
  108. package/squads/squad-animations/tasks/refine-animation-specification.md +1 -1
  109. package/squads/squad-animations/tasks/translate-feeling-to-parameters.md +1 -1
  110. package/squads/squad-animations/tasks/validate-animation-feasibility.md +1 -1
  111. package/squads/squad-animations/workflows/prompt-to-animation-cycle.yaml +2 -2
  112. package/squads/squad-brand/agents/brand-auditor.md +1 -1
  113. package/squads/squad-brand/agents/brand-compiler.md +1 -1
  114. package/squads/squad-brand/agents/brand-motion-vfx.md +5 -5
  115. package/squads/squad-brand/agents/brand-orqx.md +2 -2
  116. package/squads/squad-brand/agents/brand-sonic-designer.md +1 -1
  117. package/squads/squad-brand/squad.yaml +1 -1
  118. package/squads/squad-brand/tasks/create-animation-library.md +1 -1
  119. package/squads/squad-brand/tasks/create-brand-characters.md +2 -2
  120. package/squads/squad-brand/tasks/create-event-branding.md +2 -2
  121. package/squads/squad-brand/tasks/create-micro-interactions.md +1 -1
  122. package/squads/squad-brand/tasks/create-page-transitions.md +1 -1
  123. package/squads/squad-brand/tasks/create-video-templates.md +1 -1
  124. package/squads/squad-brand/tasks/create-web-templates.md +1 -1
  125. package/squads/squad-brand/tasks/define-motion-language.md +1 -1
  126. package/squads/squad-brand/tasks/design-dynamic-identity-system.md +2 -2
  127. package/squads/squad-brand/tasks/design-illustration-system.md +1 -1
  128. package/squads/squad-commercial/README.md +3 -3
  129. package/squads/squad-commercial/agents/commercial-orqx.md +8 -8
  130. package/squads/squad-commercial/agents/cs-crm-specialist.md +3 -3
  131. package/squads/squad-commercial/agents/cs-revops-analyst.md +3 -3
  132. package/squads/squad-commercial/agents/cs-sales-closer.md +1 -1
  133. package/squads/squad-commercial/knowledge-base/commercial-analytics-reporting.md +7 -7
  134. package/squads/squad-commercial/knowledge-base/sales-revenue-master-reference.md +1 -1
  135. package/squads/squad-commercial/squad.yaml +3 -3
  136. package/squads/squad-commercial/tasks/analyze-revenue-leaks.md +2 -2
  137. package/squads/squad-commercial/tasks/audit-commercial-tech-stack.md +1 -1
  138. package/squads/squad-commercial/tasks/audit-crm-data.md +1 -1
  139. package/squads/squad-commercial/tasks/build-deal-scoring-model.md +1 -1
  140. package/squads/squad-commercial/tasks/build-forecasting-model.md +1 -1
  141. package/squads/squad-commercial/tasks/build-pipeline-dashboard.md +2 -2
  142. package/squads/squad-commercial/tasks/build-unit-economics-model.md +1 -1
  143. package/squads/squad-commercial/tasks/conduct-commercial-retrospective.md +2 -2
  144. package/squads/squad-commercial/tasks/conduct-deal-review.md +1 -1
  145. package/squads/squad-commercial/tasks/conduct-win-loss-analysis.md +1 -1
  146. package/squads/squad-commercial/tasks/configure-activity-tracking.md +1 -1
  147. package/squads/squad-commercial/tasks/configure-crm-integrations.md +1 -1
  148. package/squads/squad-commercial/tasks/configure-pipeline-stages.md +1 -1
  149. package/squads/squad-commercial/tasks/coordinate-revenue-cycle.md +1 -1
  150. package/squads/squad-commercial/tasks/create-commercial-brief.md +2 -2
  151. package/squads/squad-commercial/tasks/create-revenue-dashboard.md +1 -1
  152. package/squads/squad-commercial/tasks/design-lead-routing.md +1 -1
  153. package/squads/squad-commercial/tasks/design-quota-model.md +1 -1
  154. package/squads/squad-commercial/tasks/execute-save-play.md +1 -1
  155. package/squads/squad-commercial/tasks/manage-commercial-handoffs.md +1 -1
  156. package/squads/squad-commercial/tasks/manage-pipeline-forecast.md +3 -3
  157. package/squads/squad-commercial/tasks/monitor-pipeline-health.md +1 -1
  158. package/squads/squad-commercial/tasks/monitor-saas-metrics.md +1 -1
  159. package/squads/squad-commercial/tasks/plan-sales-capacity.md +1 -1
  160. package/squads/squad-commercial/tasks/plan-territory-mapping.md +1 -1
  161. package/squads/squad-commercial/tasks/review-revenue-architecture.md +2 -2
  162. package/squads/squad-commercial/tasks/run-quarterly-commercial-review.md +3 -3
  163. package/squads/squad-commercial/tasks/select-commercial-workflow.md +1 -1
  164. package/squads/squad-commercial/tasks/setup-outreach-sequences.md +1 -1
  165. package/squads/squad-commercial/templates/offer-brief-template.md +2 -2
  166. package/squads/squad-commercial/workflows/new-offer-launch.yaml +2 -2
  167. package/squads/squad-commercial/workflows/quarterly-commercial-review.yaml +1 -1
  168. package/squads/squad-commercial/workflows/revenue-forecasting-cycle.yaml +2 -2
  169. package/squads/squad-content/README.md +1 -1
  170. package/squads/squad-content/agents/content-analyst.md +4 -4
  171. package/squads/squad-content/agents/content-engineer.md +2 -2
  172. package/squads/squad-content/agents/content-governor.md +1 -1
  173. package/squads/squad-content/agents/content-orqx.md +6 -6
  174. package/squads/squad-content/agents/editorial-strategist.md +5 -5
  175. package/squads/squad-content/agents/platform-specialist.md +1 -1
  176. package/squads/squad-content/agents/signal-intelligence.md +4 -4
  177. package/squads/squad-content/checklists/editorial-planning-checklist.md +1 -1
  178. package/squads/squad-content/checklists/onboarding-setup-checklist.md +2 -2
  179. package/squads/squad-content/knowledge-base/ai-native-content-loop.md +2 -2
  180. package/squads/squad-content/knowledge-base/content-governance-principles.md +2 -2
  181. package/squads/squad-content/knowledge-base/cross-squad-integration-protocol.md +1 -1
  182. package/squads/squad-content/knowledge-base/signal-intelligence-v2.md +1 -1
  183. package/squads/squad-content/knowledge-base/task-ownership-map.md +5 -5
  184. package/squads/squad-content/squad.yaml +2 -2
  185. package/squads/squad-content/tasks/alert-opportunity-windows.md +6 -6
  186. package/squads/squad-content/tasks/analyze-content-performance.md +2 -2
  187. package/squads/squad-content/tasks/batch-content-production.md +1 -1
  188. package/squads/squad-content/tasks/benchmark-against-competitors.md +1 -1
  189. package/squads/squad-content/tasks/coordinate-cross-squad.md +1 -1
  190. package/squads/squad-content/tasks/create-content-governance.md +1 -1
  191. package/squads/squad-content/tasks/create-editorial-calendar.md +1 -1
  192. package/squads/squad-content/tasks/curate-ugc-signals.md +2 -2
  193. package/squads/squad-content/tasks/define-big-idea.md +1 -1
  194. package/squads/squad-content/tasks/define-content-kpis.md +1 -1
  195. package/squads/squad-content/tasks/flag-content-for-amplification.md +2 -2
  196. package/squads/squad-content/tasks/generate-content-report.md +3 -3
  197. package/squads/squad-content/tasks/manage-content-sprint.md +1 -1
  198. package/squads/squad-content/tasks/measure-content-roi.md +3 -3
  199. package/squads/squad-content/tasks/orchestrate-content-pipeline.md +2 -2
  200. package/squads/squad-content/tasks/plan-content-sprint.md +3 -3
  201. package/squads/squad-content/tasks/predict-content-performance.md +2 -2
  202. package/squads/squad-content/tasks/scan-daily-signals.md +2 -2
  203. package/squads/squad-content/tasks/triage-content-requests.md +1 -1
  204. package/squads/squad-content/tasks/triage-urgent-signal.md +1 -1
  205. package/squads/squad-content/templates/signal-alert-template.md +2 -2
  206. package/squads/squad-content/templates/weekly-briefing-template.md +1 -1
  207. package/squads/squad-content/workflows/content-audit-cycle.yaml +1 -1
  208. package/squads/squad-content/workflows/content-creation-cycle.yaml +3 -3
  209. package/squads/squad-content/workflows/editorial-planning-cycle.yaml +3 -3
  210. package/squads/squad-content/workflows/onboarding-content-cycle.yaml +3 -3
  211. package/squads/squad-content/workflows/performance-feedback-loop.yaml +3 -3
  212. package/squads/squad-content/workflows/signal-to-content-cycle.yaml +5 -5
  213. package/squads/squad-copy/README.md +4 -4
  214. package/squads/squad-copy/agents/ad-copywriter.md +4 -4
  215. package/squads/squad-copy/agents/copy-orqx.md +3 -3
  216. package/squads/squad-copy/agents/copy-strategist.md +5 -5
  217. package/squads/squad-copy/agents/direct-response-writer.md +3 -3
  218. package/squads/squad-copy/agents/email-sequence-strategist.md +1 -1
  219. package/squads/squad-copy/agents/funnel-copywriter.md +3 -3
  220. package/squads/squad-copy/agents/headline-specialist.md +1 -1
  221. package/squads/squad-copy/agents/proof-architect.md +3 -3
  222. package/squads/squad-copy/squad.yaml +3 -3
  223. package/squads/squad-copy/tasks/build-proof-stack.md +3 -3
  224. package/squads/squad-copy/tasks/craft-cta-variations.md +2 -2
  225. package/squads/squad-copy/tasks/craft-email-nurture-sequence.md +2 -2
  226. package/squads/squad-copy/tasks/craft-objection-handlers.md +1 -1
  227. package/squads/squad-copy/tasks/craft-social-media-hooks.md +1 -1
  228. package/squads/squad-copy/tasks/create-cart-abandonment-sequence.md +2 -2
  229. package/squads/squad-copy/tasks/create-customer-story.md +2 -2
  230. package/squads/squad-copy/tasks/create-email-campaign.md +2 -2
  231. package/squads/squad-copy/tasks/create-mechanism-copy.md +4 -4
  232. package/squads/squad-copy/tasks/create-opening-hooks.md +1 -1
  233. package/squads/squad-copy/tasks/create-ugc-script.md +2 -2
  234. package/squads/squad-copy/tasks/create-urgency-scarcity-framework.md +1 -1
  235. package/squads/squad-copy/tasks/create-welcome-sequence.md +2 -2
  236. package/squads/squad-copy/tasks/design-headline-ab-tests.md +1 -1
  237. package/squads/squad-copy/tasks/design-trigger-sequence.md +1 -1
  238. package/squads/squad-copy/tasks/design-welcome-series.md +2 -2
  239. package/squads/squad-copy/tasks/optimize-existing-copy.md +2 -2
  240. package/squads/squad-copy/tasks/optimize-funnel-conversion-copy.md +2 -2
  241. package/squads/squad-copy/tasks/optimize-pricing-framing.md +2 -2
  242. package/squads/squad-copy/tasks/write-ad-copy-google.md +2 -2
  243. package/squads/squad-copy/tasks/write-ad-copy-social.md +2 -2
  244. package/squads/squad-copy/tasks/write-ad-copy-variations.md +4 -4
  245. package/squads/squad-copy/tasks/write-case-study.md +2 -2
  246. package/squads/squad-copy/tasks/write-comparison-piece.md +2 -2
  247. package/squads/squad-copy/tasks/write-email-sequence.md +1 -1
  248. package/squads/squad-copy/tasks/write-email-subject-lines.md +1 -1
  249. package/squads/squad-copy/tasks/write-funnel-copy-sequence.md +4 -4
  250. package/squads/squad-copy/tasks/write-landing-page-copy.md +2 -2
  251. package/squads/squad-copy/tasks/write-launch-sequence.md +2 -2
  252. package/squads/squad-copy/tasks/write-opt-in-page.md +2 -2
  253. package/squads/squad-copy/tasks/write-product-narrative.md +2 -2
  254. package/squads/squad-copy/tasks/write-retargeting-copy.md +2 -2
  255. package/squads/squad-copy/tasks/write-sales-letter.md +1 -1
  256. package/squads/squad-copy/tasks/write-social-proof-section.md +1 -1
  257. package/squads/squad-copy/tasks/write-subheadlines-and-deck-copy.md +1 -1
  258. package/squads/squad-copy/tasks/write-upsell-copy.md +2 -2
  259. package/squads/squad-copy/tasks/write-vsl-script.md +3 -3
  260. package/squads/squad-copy/tasks/write-whitepaper-persuasive.md +2 -2
  261. package/squads/squad-copy/workflows/campaign-copy-cycle.yaml +4 -4
  262. package/squads/squad-copy/workflows/conversion-copy-sprint.yaml +6 -6
  263. package/squads/squad-copy/workflows/sales-copy-pipeline.yaml +4 -4
  264. package/squads/squad-design/README.md +6 -6
  265. package/squads/squad-design/agents/cro-persuasion.md +3 -3
  266. package/squads/squad-design/agents/design-orqx.md +17 -17
  267. package/squads/squad-design/agents/dx-accessibility-specialist.md +5 -5
  268. package/squads/squad-design/agents/dx-design-system-architect.md +8 -8
  269. package/squads/squad-design/agents/dx-frontend-engineer.md +7 -7
  270. package/squads/squad-design/agents/dx-interaction-designer.md +6 -6
  271. package/squads/squad-design/agents/dx-performance-engineer.md +3 -3
  272. package/squads/squad-design/agents/dx-ui-designer.md +7 -7
  273. package/squads/squad-design/agents/dx-ux-strategist.md +7 -7
  274. package/squads/squad-design/agents/platform-aesthetic-director.md +11 -11
  275. package/squads/squad-design/agents/premium-packaging-strategist.md +2 -2
  276. package/squads/squad-design/agents/product-surface-director.md +1 -1
  277. package/squads/squad-design/squad.yaml +6 -6
  278. package/squads/squad-design/tasks/analyze-javascript-bundles.md +1 -1
  279. package/squads/squad-design/tasks/audit-core-web-vitals.md +1 -1
  280. package/squads/squad-design/tasks/audit-design-system-health.md +1 -1
  281. package/squads/squad-design/tasks/audit-motion-performance.md +1 -1
  282. package/squads/squad-design/tasks/certify-accessibility-compliance.md +2 -2
  283. package/squads/squad-design/tasks/compose-screen-layouts.md +3 -3
  284. package/squads/squad-design/tasks/conduct-competitive-ux-analysis.md +1 -1
  285. package/squads/squad-design/tasks/conduct-dx-quality-gate.md +3 -3
  286. package/squads/squad-design/tasks/conduct-usability-heuristic-review.md +1 -1
  287. package/squads/squad-design/tasks/conduct-visual-qa.md +1 -1
  288. package/squads/squad-design/tasks/conduct-wcag-audit.md +1 -1
  289. package/squads/squad-design/tasks/configure-cdn-strategy.md +1 -1
  290. package/squads/squad-design/tasks/configure-token-export-pipeline.md +1 -1
  291. package/squads/squad-design/tasks/create-a11y-remediation-plan.md +4 -4
  292. package/squads/squad-design/tasks/create-color-system.md +2 -2
  293. package/squads/squad-design/tasks/create-component-governance.md +1 -1
  294. package/squads/squad-design/tasks/create-component-tokens.md +2 -2
  295. package/squads/squad-design/tasks/create-dark-light-themes.md +3 -3
  296. package/squads/squad-design/tasks/create-easing-curve-library.md +1 -1
  297. package/squads/squad-design/tasks/create-empty-error-states.md +1 -1
  298. package/squads/squad-design/tasks/create-error-boundary-patterns.md +1 -1
  299. package/squads/squad-design/tasks/create-illustration-style.md +1 -1
  300. package/squads/squad-design/tasks/create-mobile-first-designs.md +2 -2
  301. package/squads/squad-design/tasks/create-motion-documentation.md +1 -1
  302. package/squads/squad-design/tasks/create-motion-tokens.md +2 -2
  303. package/squads/squad-design/tasks/create-primitive-tokens.md +1 -1
  304. package/squads/squad-design/tasks/create-responsive-grid-system.md +1 -1
  305. package/squads/squad-design/tasks/create-screen-reader-specs.md +1 -1
  306. package/squads/squad-design/tasks/create-scroll-animation-patterns.md +1 -1
  307. package/squads/squad-design/tasks/create-semantic-tokens.md +1 -1
  308. package/squads/squad-design/tasks/create-storybook-documentation-standards.md +1 -1
  309. package/squads/squad-design/tasks/create-user-personas.md +1 -1
  310. package/squads/squad-design/tasks/create-ux-principles.md +1 -1
  311. package/squads/squad-design/tasks/create-wireframe-brief.md +2 -2
  312. package/squads/squad-design/tasks/define-atomic-hierarchy.md +2 -2
  313. package/squads/squad-design/tasks/define-content-hierarchy.md +2 -2
  314. package/squads/squad-design/tasks/define-motion-principles.md +4 -4
  315. package/squads/squad-design/tasks/define-performance-budgets.md +1 -1
  316. package/squads/squad-design/tasks/define-token-taxonomy.md +2 -2
  317. package/squads/squad-design/tasks/design-accessible-form-patterns.md +2 -2
  318. package/squads/squad-design/tasks/design-component-api-contracts.md +3 -3
  319. package/squads/squad-design/tasks/design-component-visual-states.md +4 -4
  320. package/squads/squad-design/tasks/design-dashboard-layouts.md +1 -1
  321. package/squads/squad-design/tasks/design-duration-scale.md +1 -1
  322. package/squads/squad-design/tasks/design-feedback-animations.md +2 -2
  323. package/squads/squad-design/tasks/design-focus-management.md +1 -1
  324. package/squads/squad-design/tasks/design-form-patterns.md +2 -2
  325. package/squads/squad-design/tasks/design-icon-system.md +1 -1
  326. package/squads/squad-design/tasks/design-information-architecture.md +2 -2
  327. package/squads/squad-design/tasks/design-landing-page-ui.md +3 -3
  328. package/squads/squad-design/tasks/design-loading-choreography.md +1 -1
  329. package/squads/squad-design/tasks/design-multi-brand-theming.md +1 -1
  330. package/squads/squad-design/tasks/design-page-transitions.md +1 -1
  331. package/squads/squad-design/tasks/design-spacing-scale.md +3 -3
  332. package/squads/squad-design/tasks/design-typography-scale.md +3 -3
  333. package/squads/squad-design/tasks/design-user-flows.md +2 -2
  334. package/squads/squad-design/tasks/design-visual-hierarchy.md +2 -2
  335. package/squads/squad-design/tasks/eliminate-render-blocking.md +1 -1
  336. package/squads/squad-design/tasks/extract-critical-css.md +1 -1
  337. package/squads/squad-design/tasks/govern-third-party-scripts.md +1 -1
  338. package/squads/squad-design/tasks/implement-authentication-ui.md +1 -1
  339. package/squads/squad-design/tasks/implement-component-library.md +4 -4
  340. package/squads/squad-design/tasks/implement-form-system.md +2 -2
  341. package/squads/squad-design/tasks/implement-reduced-motion.md +3 -3
  342. package/squads/squad-design/tasks/implement-responsive-layouts.md +1 -1
  343. package/squads/squad-design/tasks/implement-routing-strategy.md +1 -1
  344. package/squads/squad-design/tasks/map-dark-mode-tokens.md +3 -3
  345. package/squads/squad-design/tasks/map-user-journeys.md +2 -2
  346. package/squads/squad-design/tasks/migrate-legacy-design-system.md +1 -1
  347. package/squads/squad-design/tasks/monitor-performance-regression.md +1 -1
  348. package/squads/squad-design/tasks/optimize-font-loading.md +1 -1
  349. package/squads/squad-design/tasks/optimize-image-pipeline.md +1 -1
  350. package/squads/squad-design/tasks/orchestrate-dx-pipeline.md +2 -2
  351. package/squads/squad-design/tasks/plan-ux-research-sprint.md +1 -1
  352. package/squads/squad-design/tasks/produce-design-handoff-specs.md +4 -4
  353. package/squads/squad-design/tasks/review-aria-patterns.md +1 -1
  354. package/squads/squad-design/tasks/setup-performance-ci-gates.md +1 -1
  355. package/squads/squad-design/tasks/setup-storybook-integration.md +1 -1
  356. package/squads/squad-design/tasks/spec-gesture-interactions.md +1 -1
  357. package/squads/squad-design/tasks/spec-micro-interactions.md +2 -2
  358. package/squads/squad-design/tasks/synthesize-user-research.md +2 -2
  359. package/squads/squad-design/tasks/test-keyboard-navigation.md +1 -1
  360. package/squads/squad-design/tasks/validate-ux-with-testing.md +1 -1
  361. package/squads/squad-design/tasks/verify-color-contrast.md +2 -2
  362. package/squads/squad-design/templates/a11y-audit-report-template.md +1 -1
  363. package/squads/squad-design/templates/design-handoff-template.md +1 -1
  364. package/squads/squad-design/templates/performance-budget-template.md +1 -1
  365. package/squads/squad-design/templates/ux-research-plan-template.md +1 -1
  366. package/squads/squad-design/workflows/a11y-compliance-cycle.yaml +8 -8
  367. package/squads/squad-design/workflows/design-system-build-cycle.yaml +12 -12
  368. package/squads/squad-design/workflows/landing-page-sprint.yaml +10 -10
  369. package/squads/squad-design/workflows/performance-remediation-cycle.yaml +6 -6
  370. package/squads/squad-design/workflows/ux-research-sprint.yaml +8 -8
  371. package/squads/squad-design/workflows/zero-to-digital-product-cycle.yaml +16 -16
  372. package/squads/squad-finance/README.md +1 -1
  373. package/squads/squad-finance/agents/budget-controller.md +1 -1
  374. package/squads/squad-finance/agents/cost-optimizer.md +2 -2
  375. package/squads/squad-finance/agents/finance-orqx.md +4 -4
  376. package/squads/squad-finance/agents/fiscal-compliance-br.md +4 -4
  377. package/squads/squad-finance/agents/forecast-strategist.md +6 -6
  378. package/squads/squad-finance/agents/pricing-strategist.md +3 -3
  379. package/squads/squad-finance/agents/profitability-analyst.md +1 -1
  380. package/squads/squad-finance/agents/revenue-analyst.md +1 -1
  381. package/squads/squad-finance/checklists/monthly-close-checklist.md +1 -1
  382. package/squads/squad-finance/checklists/quarterly-review-checklist.md +1 -1
  383. package/squads/squad-finance/squad.yaml +2 -2
  384. package/squads/squad-finance/tasks/analyze-price-sensitivity.md +1 -1
  385. package/squads/squad-finance/tasks/benchmark-competitor-pricing.md +1 -1
  386. package/squads/squad-finance/tasks/calculate-rate-card.md +1 -1
  387. package/squads/squad-finance/tasks/coordinate-quarterly-review.md +2 -2
  388. package/squads/squad-finance/tasks/create-proposal-pricing.md +1 -1
  389. package/squads/squad-finance/tasks/design-service-tiers.md +1 -1
  390. package/squads/squad-finance/tasks/design-value-based-pricing.md +1 -1
  391. package/squads/squad-finance/tasks/manage-financial-calendar.md +1 -1
  392. package/squads/squad-finance/tasks/model-pricing-scenario.md +1 -1
  393. package/squads/squad-finance/tasks/optimize-rate-realization.md +1 -1
  394. package/squads/squad-finance/tasks/simulate-pricing-impact.md +1 -1
  395. package/squads/squad-finance/tasks/track-pricing-performance.md +1 -1
  396. package/squads/squad-paidmedia/README.md +4 -4
  397. package/squads/squad-paidmedia/agents/campaign-analyst.md +6 -6
  398. package/squads/squad-paidmedia/agents/creative-strategist.md +2 -2
  399. package/squads/squad-paidmedia/agents/cro-specialist.md +5 -5
  400. package/squads/squad-paidmedia/agents/google-ads-specialist.md +2 -2
  401. package/squads/squad-paidmedia/agents/meta-ads-specialist.md +6 -6
  402. package/squads/squad-paidmedia/agents/paidmedia-orqx.md +6 -6
  403. package/squads/squad-paidmedia/agents/performance-engineer.md +2 -2
  404. package/squads/squad-paidmedia/agents/pm-creative-performance-analyst.md +2 -2
  405. package/squads/squad-paidmedia/knowledge-base/routing-catalog.md +21 -21
  406. package/squads/squad-paidmedia/squad.yaml +4 -4
  407. package/squads/squad-paidmedia/tasks/allocate-cross-channel-budget.md +1 -1
  408. package/squads/squad-paidmedia/tasks/allocate-meta-budget.md +2 -2
  409. package/squads/squad-paidmedia/tasks/analyze-audience-performance.md +1 -1
  410. package/squads/squad-paidmedia/tasks/analyze-content-performance.md +1 -1
  411. package/squads/squad-paidmedia/tasks/analyze-conversion-funnel.md +2 -2
  412. package/squads/squad-paidmedia/tasks/analyze-creative-effectiveness.md +1 -1
  413. package/squads/squad-paidmedia/tasks/analyze-keyword-rankings.md +1 -1
  414. package/squads/squad-paidmedia/tasks/analyze-landing-page.md +1 -1
  415. package/squads/squad-paidmedia/tasks/analyze-local-keywords.md +1 -1
  416. package/squads/squad-paidmedia/tasks/analyze-local-market.md +1 -1
  417. package/squads/squad-paidmedia/tasks/analyze-reviews-strategy.md +1 -1
  418. package/squads/squad-paidmedia/tasks/analyze-top-pages.md +1 -1
  419. package/squads/squad-paidmedia/tasks/analyze-traffic-sources.md +1 -1
  420. package/squads/squad-paidmedia/tasks/analyze-user-behavior.md +1 -1
  421. package/squads/squad-paidmedia/tasks/audit-conversion-tracking.md +1 -1
  422. package/squads/squad-paidmedia/tasks/audit-gmb-location.md +1 -1
  423. package/squads/squad-paidmedia/tasks/audit-meta-ads-account.md +1 -1
  424. package/squads/squad-paidmedia/tasks/audit-sitemap-health.md +1 -1
  425. package/squads/squad-paidmedia/tasks/build-audience-architecture.md +2 -2
  426. package/squads/squad-paidmedia/tasks/build-creative-scorecard.md +1 -1
  427. package/squads/squad-paidmedia/tasks/calculate-sample-size.md +1 -1
  428. package/squads/squad-paidmedia/tasks/check-indexing-status.md +1 -1
  429. package/squads/squad-paidmedia/tasks/create-scaling-roadmap.md +1 -1
  430. package/squads/squad-paidmedia/tasks/design-campaign-structure.md +2 -2
  431. package/squads/squad-paidmedia/tasks/design-progressive-profiling.md +1 -1
  432. package/squads/squad-paidmedia/tasks/detect-creative-fatigue.md +1 -1
  433. package/squads/squad-paidmedia/tasks/execute-launch-checklist.md +1 -1
  434. package/squads/squad-paidmedia/tasks/generate-monthly-report.md +1 -1
  435. package/squads/squad-paidmedia/tasks/generate-search-performance-overview.md +1 -1
  436. package/squads/squad-paidmedia/tasks/generate-weekly-summary.md +1 -1
  437. package/squads/squad-paidmedia/tasks/manage-pixel-capi-health.md +1 -1
  438. package/squads/squad-paidmedia/tasks/manage-scaling-roadmap.md +1 -1
  439. package/squads/squad-paidmedia/tasks/measure-activation-rate.md +1 -1
  440. package/squads/squad-paidmedia/tasks/optimize-ad-set-targeting.md +2 -2
  441. package/squads/squad-paidmedia/tasks/optimize-form-conversion.md +1 -1
  442. package/squads/squad-paidmedia/tasks/optimize-onboarding-activation.md +1 -1
  443. package/squads/squad-paidmedia/tasks/optimize-page-conversion.md +1 -1
  444. package/squads/squad-paidmedia/tasks/optimize-signup-flow.md +1 -1
  445. package/squads/squad-paidmedia/tasks/plan-customer-engagement.md +1 -1
  446. package/squads/squad-paidmedia/tasks/run-ab-test.md +1 -1
  447. package/squads/squad-paidmedia/tasks/run-creative-test.md +1 -1
  448. package/squads/squad-paidmedia/tasks/track-gmb-performance-trends.md +1 -1
  449. package/squads/squad-paidmedia/tasks/triage-campaign-issues.md +1 -1
  450. package/squads/squad-product/README.md +2 -2
  451. package/squads/squad-product/agents/product-orqx.md +4 -4
  452. package/squads/squad-product/agents/ps-delivery-manager.md +2 -2
  453. package/squads/squad-product/agents/ps-product-ops-specialist.md +2 -2
  454. package/squads/squad-product/squad.yaml +2 -2
  455. package/squads/squad-product/tasks/audit-product-tool-stack.md +1 -1
  456. package/squads/squad-product/tasks/build-product-knowledge-base.md +1 -1
  457. package/squads/squad-product/tasks/calculate-sprint-velocity.md +1 -1
  458. package/squads/squad-product/tasks/configure-feature-flag-rollout.md +1 -1
  459. package/squads/squad-product/tasks/create-product-artifact-template.md +1 -1
  460. package/squads/squad-product/tasks/create-product-onboarding-runbook.md +3 -3
  461. package/squads/squad-product/tasks/create-product-playbook.md +2 -2
  462. package/squads/squad-product/tasks/document-product-process.md +1 -1
  463. package/squads/squad-product/tasks/execute-feature-launch-checklist.md +1 -1
  464. package/squads/squad-product/tasks/facilitate-sprint-retrospective.md +1 -1
  465. package/squads/squad-product/tasks/generate-product-health-report.md +2 -2
  466. package/squads/squad-product/tasks/maintain-decision-log-system.md +1 -1
  467. package/squads/squad-product/tasks/manage-sprint-capacity-planning.md +1 -1
  468. package/squads/squad-product/tasks/map-cross-functional-dependencies.md +1 -1
  469. package/squads/squad-product/tasks/prepare-product-handoff-package.md +4 -4
  470. package/squads/squad-product/tasks/run-product-operations-audit.md +1 -1
  471. package/squads/squad-product/tasks/run-shape-up-betting-table.md +1 -1
  472. package/squads/squad-product/tasks/run-sprint-planning-session.md +1 -1
  473. package/squads/squad-product/tasks/scope-agency-mvp.md +1 -1
  474. package/squads/squad-product/tasks/setup-new-client-product-operations.md +1 -1
  475. package/squads/squad-product/tasks/standardize-cross-client-metrics.md +1 -1
  476. package/squads/squad-product/tasks/triage-technical-debt-backlog.md +1 -1
  477. package/squads/squad-product/tasks/write-release-notes.md +1 -1
  478. package/squads/squad-research/README.md +3 -3
  479. package/squads/squad-research/agents/audience-intelligence.md +9 -9
  480. package/squads/squad-research/agents/competitive-intelligence.md +1 -1
  481. package/squads/squad-research/agents/data-synthesizer.md +11 -11
  482. package/squads/squad-research/agents/deep-researcher.md +2 -2
  483. package/squads/squad-research/agents/market-analyst.md +9 -9
  484. package/squads/squad-research/agents/research-orqx.md +4 -4
  485. package/squads/squad-research/agents/trend-forecaster.md +2 -2
  486. package/squads/squad-research/knowledge-base/agentic-second-brain-reference.md +1 -1
  487. package/squads/squad-research/knowledge-base/community-platforms-reference.md +1 -1
  488. package/squads/squad-research/knowledge-base/cross-squad-integration-protocol.md +1 -1
  489. package/squads/squad-research/knowledge-base/multi-agent-research-methodology.md +3 -3
  490. package/squads/squad-research/squad.yaml +3 -3
  491. package/squads/squad-research/tasks/analyze-audience-behavior.md +2 -2
  492. package/squads/squad-research/tasks/analyze-audience-psychographics.md +2 -2
  493. package/squads/squad-research/tasks/analyze-competitor-pricing.md +1 -1
  494. package/squads/squad-research/tasks/analyze-industry-trends.md +2 -2
  495. package/squads/squad-research/tasks/analyze-macro-forces.md +1 -1
  496. package/squads/squad-research/tasks/analyze-pricing-landscape.md +2 -2
  497. package/squads/squad-research/tasks/analyze-social-listening.md +2 -2
  498. package/squads/squad-research/tasks/analyze-value-chain.md +2 -2
  499. package/squads/squad-research/tasks/answer-strategic-question.md +1 -1
  500. package/squads/squad-research/tasks/assess-market-maturity.md +2 -2
  501. package/squads/squad-research/tasks/build-audience-persona.md +2 -2
  502. package/squads/squad-research/tasks/build-data-narrative.md +2 -2
  503. package/squads/squad-research/tasks/compile-competitive-dossier.md +2 -2
  504. package/squads/squad-research/tasks/conduct-deep-research.md +1 -1
  505. package/squads/squad-research/tasks/conduct-jobs-to-be-done.md +2 -2
  506. package/squads/squad-research/tasks/create-empathy-map.md +2 -2
  507. package/squads/squad-research/tasks/create-executive-briefing.md +2 -2
  508. package/squads/squad-research/tasks/create-insight-deck.md +2 -2
  509. package/squads/squad-research/tasks/create-research-dossier.md +1 -1
  510. package/squads/squad-research/tasks/create-research-repository.md +2 -2
  511. package/squads/squad-research/tasks/create-swot-analysis.md +4 -4
  512. package/squads/squad-research/tasks/design-survey.md +2 -2
  513. package/squads/squad-research/tasks/evaluate-market-entry.md +2 -2
  514. package/squads/squad-research/tasks/evaluate-regulatory-landscape.md +2 -2
  515. package/squads/squad-research/tasks/forecast-industry-trends.md +2 -2
  516. package/squads/squad-research/tasks/forecast-market-growth.md +2 -2
  517. package/squads/squad-research/tasks/generate-actionable-recommendations.md +2 -2
  518. package/squads/squad-research/tasks/identify-market-segments.md +3 -3
  519. package/squads/squad-research/tasks/map-audience-ecosystem.md +2 -2
  520. package/squads/squad-research/tasks/map-audience-journey.md +2 -2
  521. package/squads/squad-research/tasks/map-industry-ecosystem.md +2 -2
  522. package/squads/squad-research/tasks/map-market-opportunity.md +2 -2
  523. package/squads/squad-research/tasks/map-pain-gain-matrix.md +2 -2
  524. package/squads/squad-research/tasks/map-strategic-implications.md +2 -2
  525. package/squads/squad-research/tasks/orchestrate-research-pipeline.md +4 -4
  526. package/squads/squad-research/tasks/predict-market-shifts.md +1 -1
  527. package/squads/squad-research/tasks/profile-ideal-customer.md +2 -2
  528. package/squads/squad-research/tasks/run-porter-five-forces.md +1 -1
  529. package/squads/squad-research/tasks/run-scenario-planning.md +1 -1
  530. package/squads/squad-research/tasks/segment-audience.md +2 -2
  531. package/squads/squad-research/tasks/size-market-tam-sam-som.md +2 -2
  532. package/squads/squad-research/tasks/synthesize-multi-source.md +1 -1
  533. package/squads/squad-research/tasks/synthesize-research-report.md +2 -2
  534. package/squads/squad-research/tasks/validate-persona-with-data.md +2 -2
  535. package/squads/squad-research/tasks/visualize-research-data.md +2 -2
  536. package/squads/squad-research/templates/audience-persona-template.md +1 -1
  537. package/squads/squad-research/templates/competitive-dossier-template.md +1 -1
  538. package/squads/squad-research/templates/market-analysis-template.md +1 -1
  539. package/squads/squad-research/workflows/audience-intelligence-cycle.yaml +12 -12
  540. package/squads/squad-research/workflows/competitive-intelligence-cycle.yaml +2 -2
  541. package/squads/squad-research/workflows/deep-research-cycle.yaml +2 -2
  542. package/squads/squad-research/workflows/full-research-sprint.yaml +8 -8
  543. package/squads/squad-research/workflows/market-analysis-cycle.yaml +12 -12
  544. package/squads/squad-research/workflows/trend-forecasting-cycle.yaml +2 -2
  545. package/.sinapse-ai/lib/build.json +0 -1
@@ -1,118 +1,76 @@
1
1
  # Agent Activation Instructions Template
2
- **Story**: 6.1.2.5 - Contextual Agent Load System Integration
3
- **Version**: 2.0 (GreetingBuilder Integration)
4
- **Last Updated**: 2025-11-16
2
+
3
+ **Story**: onda2-p7 - Boilerplate pilot + retirement of weak-model coercion language
4
+ **Version**: 3.0 (Lean canonical — post-Fable-5 pass)
5
+ **Last Updated**: 2026-07-02
5
6
 
6
7
  ## Overview
7
8
 
8
- This template defines the canonical activation-instructions format for SINAPSE agents after GreetingBuilder integration (Story 6.1.2.5).
9
+ This is the **single source of truth** for the activation-instructions block shared by SINAPSE core agents (`.sinapse-ai/development/agents/*.md`). It replaces v2.0 (GreetingBuilder-era, Story 6.1.2.5, 2025-11-16), which documented a `STEP 3: Build intelligent greeting using greeting-builder.js` call that no core agent actually uses anymore — see "What Changed in v3.0" below.
9
10
 
10
- **Key Change**: Replaced manual greeting STEPs (2.5-5) with intelligent `GreetingBuilder` call that adapts greetings based on session context.
11
+ **Important this template does NOT get resolved at runtime.** Claude Code loads each agent's `.md` file wholesale when the agent activates; there is no templating engine that expands "see template X" references inline. So the block below is the *doctrinal* canonical form, but every agent file must keep its own **self-contained copy** of it (parametrized with its own `{id}`, `{icon}`, etc.). When creating or migrating an agent, copy this block in — don't reference it.
11
12
 
12
- ## Canonical Format
13
+ ## Canonical Format (v3.0)
13
14
 
14
15
  ```yaml
16
+ IDE-FILE-RESOLUTION:
17
+ - Dependencies map to .sinapse-ai/development/{type}/{name} (type=tasks|templates|checklists|data|utils; e.g. create-doc.md → .sinapse-ai/development/tasks/create-doc.md)
18
+ - Load these files only when a command actually needs them, never during activation
19
+ REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task); ask for clarification if there's no clear match.
15
20
  activation-instructions:
16
- - STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
21
+ - STEP 1: Read this entire file - it contains your complete persona definition
17
22
  - STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
18
- - STEP 3: Build intelligent greeting using .sinapse-ai/development/scripts/greeting-builder.js
19
- Call buildGreeting(agentDefinition, conversationHistory) which:
20
- - Detects session type (new/existing/workflow) via context analysis
21
- - Checks git configuration status (with 5min cache)
22
- - Loads project status automatically
23
- - Filters commands by visibility metadata (full/quick/key)
24
- - Suggests workflow next steps if in recurring pattern
25
- - Formats adaptive greeting automatically
26
- - STEP 4: Display the greeting returned by GreetingBuilder
23
+ - STEP 3: |
24
+ Display greeting using native context (zero JS execution):
25
+ 0. GREENFIELD GUARD: if gitStatus reports no git repository (or git commands fail as "not a git repository"):
26
+ - skip the "Branch:" append and the git-status narrative
27
+ - show "📊 **Project Status:** Greenfield project no git repository detected" instead
28
+ - after the commands list, show "💡 **Recommended:** Run `*environment-bootstrap` to initialize git, GitHub remote, and CI/CD"
29
+ - do NOT run git commands during activation — they will fail
30
+ 1. Show: "{icon} {persona_profile.communication.greeting_levels.archetypal}" + current permission badge (e.g., [⚠️ Ask], [🟢 Auto], [🔍 Explore])
31
+ 2. Show: "**Role:** {persona.role}" append active story (docs/stories/) and branch (if not main/master) when detected
32
+ 3. Show: "📊 **Project Status:**" as a natural-language narrative from gitStatus (branch, modified files, active story, last commit)
33
+ 4. Show: "**Available Commands:**" — commands from the 'commands' section whose visibility includes 'key'
34
+ 5. Show: "Type `*guide` for comprehensive usage instructions."
35
+ 5.5. Check `.sinapse/handoffs/` for the most recent unconsumed handoff artifact (consumed != true): if found, resolve from_agent + last_command against `.sinapse-ai/data/workflow-chains.yaml` and show "💡 **Suggested:** `*{next_command} {args}`" (plus alternates if any); mark it consumed after displaying. Skip silently if none found.
36
+ 6. Show: "{persona_profile.communication.signature_closing}"
37
+ # FALLBACK: If native greeting fails, run: node .sinapse-ai/development/scripts/unified-activation-pipeline.js {id}
38
+ - STEP 4: Display the greeting assembled in STEP 3
27
39
  - STEP 5: HALT and await user input
28
- - IMPORTANT: Do NOT improvise or add explanatory text beyond what is specified in greeting_levels and Quick Commands section
29
- - DO NOT: Load any other agent files during activation
30
- - ONLY load dependency files when user requests specific command execution
40
+ - Do not improvise beyond what greeting_levels and Quick Commands specify. Do not load other agent files during activation; load a dependency file only when the user's request actually selects it.
31
41
  - The agent.customization field ALWAYS takes precedence over any conflicting instructions
32
- - CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written
33
- - MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format
34
- - When listing tasks/templates or presenting options during conversations, always show as numbered options list
35
- - STAY IN CHARACTER!
36
- - CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance
42
+ - CRITICAL: task/checklist instructions from dependencies are executable workflows, not reference material — follow them exactly as written, including elicit=true steps (user interaction is mandatory there, never skipped for efficiency)
43
+ - When listing tasks/templates or presenting options, always show a numbered list so the user can pick by number
44
+ # Agent-specific tail goes here (e.g. dev's devLoadAlwaysFiles rule, sm's greet-then-HALT clause) — keep it, it's product behavior, not boilerplate.
37
45
  ```
38
46
 
39
- ## What Changed (Story 6.1.2.5)
47
+ Everything above `# Agent-specific tail` is the shared block. It runs ~35 lines instead of the pre-v3.0 ~51, because it cuts repetition and retired coercion phrasing — not because it dropped behavior. Every numbered greeting step, the GREENFIELD GUARD, and the handoff-artifact suggestion are unchanged in substance.
40
48
 
41
- ### BEFORE (Manual/Mechanical)
42
- ```yaml
43
- - STEP 2.5: Load project status using .sinapse-ai/infrastructure/scripts/project-status-loader.js
44
- - STEP 2.6: Load session context using .sinapse-ai/scripts/session-context-loader.js
45
- - STEP 3: Greet user with EXACTLY the text from greeting_levels.named
46
- - STEP 3.5: Introduce yourself using format: "I'm {agent.name}..."
47
- - STEP 3.6: Display session context if available
48
- - STEP 4: Display project status from STEP 2.5
49
- - STEP 5: Output EXACTLY the "Quick Commands" section
50
- ```
49
+ ## What Changed in v3.0 (Story onda2-p7 / AF-20260702 item 2.14)
51
50
 
52
- **Problem**: Claude interpreted these as literal instructions → mechanical, rigid output
51
+ **Removed coercion language calibrated for weak/older models, contradicts the product's own positioning:**
52
+ - `"stay in this being until told to exit this mode"` (personification framing) → plain "read it in full before acting"
53
+ - `STAY IN CHARACTER!` — a bare imperative with no operational content. Modern models follow the persona defined in `agent`/`persona` without a shouted reminder; dropping it is not a behavior change.
54
+ - `"...that dumb AI agents can implement..."` / `"...guide the dumb dev agent"` (sprint-lead persona fields) → reworded to state the same requirement (stories must be unambiguous and execution-ready) without the demeaning frame.
53
55
 
54
- ### AFTER (Intelligent/Adaptive)
55
- ```yaml
56
- - STEP 3: Build intelligent greeting using greeting-builder.js
57
- - STEP 4: Display the greeting returned by GreetingBuilder
58
- - STEP 5: HALT and await user input
59
- ```
56
+ **Merged pure redundancy, not simplification of meaning:**
57
+ - `IMPORTANT: Do NOT improvise` + `DO NOT: Load any other agent files` + `ONLY load dependency files when selected` → one bullet, same three constraints.
58
+ - `CRITICAL WORKFLOW RULE` + `MANDATORY INTERACTION RULE` + `CRITICAL RULE` (the third restated the first two almost verbatim) → one `CRITICAL:` bullet carrying both real constraints (tasks are literal workflows; `elicit=true` requires real interaction).
59
+
60
+ **Kept as-is this is product, not boilerplate:**
61
+ - GREENFIELD GUARD logic (exact substeps and messages)
62
+ - The 6-step native greeting algorithm (icon/permission badge, role, project status, commands, guide hint, signature closing)
63
+ - The 5.5 handoff-artifact suggestion (reads `.sinapse/handoffs/` + `workflow-chains.yaml`)
64
+ - The `unified-activation-pipeline.js` FALLBACK reference
65
+ - `agent.customization` precedence rule
66
+ - Numbered-list presentation convention
67
+ - Every agent-specific tail line (e.g. dev's story-draft gate, sm's greet-then-HALT clause) — these encode real per-role behavior, not shared filler, so they are untouched by this pass.
68
+
69
+ **Superseded from v2.0:** the `GreetingBuilder.buildGreeting()` call described as the *primary* STEP 3 path in v2.0 was never actually adopted as the inline instruction in any of the 12 core agents — they all carry the "native context, zero JS execution" algorithm shown above. `greeting-builder.js` is real, shipped code, but it now backs the **FALLBACK** path only (invoked by `unified-activation-pipeline.js` when native rendering fails), not the primary path. v3.0 documents what is actually deployed.
70
+
71
+ ## Rollout Status
60
72
 
61
- **Benefit**: GreetingBuilder handles all logic internally contextual, adaptive greetings
62
-
63
- ## GreetingBuilder Parameters
64
-
65
- ### Input: `agentDefinition`
66
- The complete agent object containing:
67
- - `agent.name`, `agent.id`, `agent.title`, `agent.icon`
68
- - `persona_profile.greeting_levels` (minimal, named, archetypal)
69
- - `persona.identity` (role description)
70
- - `commands[]` with visibility metadata
71
-
72
- ### Input: `conversationHistory`
73
- Session context provided by Claude Code, containing:
74
- - Previous messages in the conversation
75
- - Previous agent activations
76
- - Recent commands executed
77
-
78
- ### Output: Formatted Greeting String
79
- Returns complete greeting including:
80
- - Presentation (adapted to session type)
81
- - Role description (new sessions only)
82
- - Project status (if git configured)
83
- - Current context (existing/workflow sessions)
84
- - Workflow suggestions (workflow sessions only)
85
- - Filtered commands (by session type)
86
- - Git warning (if not configured)
87
-
88
- ## Session Type Detection
89
-
90
- GreetingBuilder automatically detects three session types:
91
-
92
- ### 1. New Session (Minimal Context)
93
- **Detection**: No conversation history or very short history
94
- **Greeting Style**: Full
95
- - ✅ Complete greeting with role description
96
- - ✅ Up to 12 commands (visibility: full, quick, key)
97
- - ✅ Project status or git warning
98
- - ✅ Help text: "Type *help for all commands"
99
-
100
- ### 2. Existing Context (Active Session)
101
- **Detection**: Conversation history exists, agent switch detected
102
- **Greeting Style**: Quick
103
- - ✅ Quick greeting (no role description)
104
- - ✅ 6-8 commands (visibility: quick, key)
105
- - ✅ Current Context section (previous agent)
106
- - ✅ Compact project status
107
-
108
- ### 3. Workflow (Recurring Pattern)
109
- **Detection**: Workflow pattern matched in conversation history
110
- **Greeting Style**: Minimal
111
- - ✅ Minimal greeting (e.g., "🎯 Pax ready")
112
- - ✅ 3-5 commands (visibility: key only)
113
- - ✅ Workflow Context section
114
- - ✅ Next-step suggestion
115
- - ✅ 1-line compact project status
73
+ As of Story onda2-p7 (2026-07-02), only **developer.md** and **sprint-lead.md** have been migrated to this v3.0 block, as a measured pilot (validated via `validate:agents` + `validate:parity` + `sync:ide`). The other 10 core agents (`architect`, `product-lead`, `project-lead`, `quality-gate`, `analyst`, `data-engineer`, `ux-design-expert`, `devops`, plus any others under `.sinapse-ai/development/agents/`) and the ~160 squad agents still carry the pre-v3.0 block, including `STAY IN CHARACTER!`. Rolling the rest of the fleet forward is an explicit follow-up story (out of scope here — Conservative Default: no blanket sweep without a per-agent look, per the same discipline applied to the codename-collision triage).
116
74
 
117
75
  ## Command Visibility Metadata
118
76
 
@@ -134,13 +92,13 @@ commands:
134
92
  ```
135
93
 
136
94
  **Visibility Levels:**
137
- - `full`: Show in new sessions (up to 12 total)
138
- - `quick`: Show in existing sessions (6-8 total)
139
- - `key`: Show in workflow sessions (3-5 total)
95
+ - `full`: shown in the full command list (`*help`)
96
+ - `quick`: shown in the condensed quick-reference list
97
+ - `key`: shown during activation greeting (STEP 3.4 above)
140
98
 
141
99
  ## Git Configuration Warning
142
100
 
143
- If git is not configured, GreetingBuilder automatically appends:
101
+ If git is not configured, the greeting should append:
144
102
 
145
103
  ```
146
104
  ⚠️ **Git Configuration Needed**
@@ -155,105 +113,34 @@ git:
155
113
  cacheTimeSeconds: 300 # 5 minutes cache
156
114
  ```
157
115
 
158
- ## Performance Characteristics
159
-
160
- - **Target**: < 150ms (hard limit with timeout protection)
161
- - **Typical**: < 100ms average
162
- - **Fallback**: Simple greeting on timeout or error
163
-
164
- **Optimizations:**
165
- - Git config cached for 5 minutes (0ms after first check)
166
- - Context analysis ~20ms
167
- - Parallel execution of checks
168
-
169
- ## Backwards Compatibility
170
-
171
- GreetingBuilder includes safety features:
172
-
173
- 1. **Timeout Protection**: Falls back to simple greeting after 150ms
174
- 2. **Error Handling**: Graceful degradation on any error
175
- 3. **Missing Metadata**: Agents without visibility metadata show all commands
176
- 4. **Simple Fallback**: `{greeting}\n\nType *help to see available commands.`
177
-
178
116
  ## Migration Checklist
179
117
 
180
- When creating new agents or updating existing ones:
118
+ When creating new agents or migrating an existing one to v3.0:
181
119
 
182
- - [ ] Use canonical activation-instructions format
183
- - [ ] Include GreetingBuilder call (STEP 3)
184
- - [ ] Remove manual greeting STEPs (2.5-5)
120
+ - [ ] Copy the Canonical Format block above inline (no external reference — the loader doesn't resolve one)
121
+ - [ ] Parametrize `{id}` (agent id, used in the FALLBACK line) and keep `{icon}`/`persona_profile`/`persona` placeholders as literal template tokens for the greeting engine to fill in
122
+ - [ ] Drop `STAY IN CHARACTER!` and any "dumb agent" framing — do not reintroduce coercion phrasing
123
+ - [ ] Keep the agent-specific tail (rules unique to that role) unchanged unless the story specifically targets them
185
124
  - [ ] Add visibility metadata to all commands
186
- - [ ] Test with fresh Claude Code session
187
- - [ ] Verify fallback greeting works
188
-
189
- ## Examples
190
-
191
- ### New Agent Creation
192
- ```yaml
193
- agent:
194
- name: Nova
195
- id: new-agent
196
- title: New Agent Title
197
- icon: 🆕
198
-
199
- persona_profile:
200
- greeting_levels:
201
- minimal: "🆕 Nova ready"
202
- named: "🆕 Nova (Archetype) ready. Let's work together!"
203
-
204
- commands:
205
- - name: help
206
- visibility: [full, quick, key]
207
- description: "Show all commands"
208
- - name: do-thing
209
- visibility: [full, quick]
210
- description: "Do the thing"
211
- ```
212
-
213
- ### Testing
214
- 1. Activate agent in fresh session → Should show full greeting
215
- 2. Activate different agent, then return → Should show quick greeting
216
- 3. Execute workflow command, activate next agent → Should show workflow greeting
125
+ - [ ] Run `npm run validate:agents`, `npm run validate:parity` (or `validate:parity:fast`), and `npm run sync:ide`
126
+ - [ ] Test activation in a fresh session and verify the greeting still renders correctly
217
127
 
218
128
  ## Related Files
219
129
 
220
- - **GreetingBuilder**: `.sinapse-ai/development/scripts/greeting-builder.js`
130
+ - **GreetingBuilder** (fallback-path formatter): `.sinapse-ai/development/scripts/greeting-builder.js`
131
+ - **Unified activation pipeline** (fallback entry point): `.sinapse-ai/development/scripts/unified-activation-pipeline.js`
221
132
  - **Context Detector**: `.sinapse-ai/core/session/context-detector.js`
222
- - **Git Config Detector**: `.sinapse-ai/infrastructure/scripts/git-config-detector.js`
223
- - **Workflow Navigator**: `.sinapse-ai/development/scripts/workflow-navigator.js`
224
- - **Project Status Loader**: `.sinapse-ai/infrastructure/scripts/project-status-loader.js`
225
- - **Workflow Patterns**: `.sinapse-ai/data/workflow-patterns.yaml`
226
-
227
- ## Troubleshooting
228
-
229
- ### Greeting appears mechanical
230
- - Check that GreetingBuilder call is in STEP 3
231
- - Verify old STEPs 2.5-5 are removed
232
- - Test with fresh Claude Code session
233
-
234
- ### Commands not filtered
235
- - Check command visibility metadata exists
236
- - Verify session type detection is working
237
- - Check conversation history is being passed
238
-
239
- ### Git warning not showing
240
- - Check `git.showConfigWarning: true` in core-config.yaml
241
- - Verify project has no git remote configured
242
- - Check git config cache (may be cached from previous check)
243
-
244
- ### Performance issues
245
- - Verify greeting displays in < 150ms
246
- - Check git cache is enabled
247
- - Monitor for timeout fallbacks in logs
133
+ - **Workflow Chains** (handoff-artifact suggestions): `.sinapse-ai/data/workflow-chains.yaml`
134
+ - **Agent format validator**: `.sinapse-ai/infrastructure/scripts/validate-agents.js`
248
135
 
249
136
  ## Version History
250
137
 
251
138
  | Version | Date | Changes | Story |
252
139
  |---------|------|---------|-------|
253
- | 2.0 | 2025-11-16 | GreetingBuilder integration | 6.1.2.5 |
140
+ | 3.0 | 2026-07-02 | Rewrote as accurate canonical (matches deployed "native, zero-JS" STEP 3); retired weak-model coercion language; documented pilot rollout status | onda2-p7 (AF-20260702 #2.14) |
141
+ | 2.0 | 2025-11-16 | GreetingBuilder integration (never actually adopted inline by core agents) | 6.1.2.5 |
254
142
  | 1.0 | 2025-01-15 | Manual activation STEPs | N/A |
255
143
 
256
144
  ---
257
145
 
258
146
  *Template maintained by SINAPSE Framework Team*
259
-