@proflandrigan/shards 1.1.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 (397) hide show
  1. package/README.md +475 -0
  2. package/package.json +37 -0
  3. package/src/agents/academic.md +276 -0
  4. package/src/agents/ai-engineer.md +377 -0
  5. package/src/agents/analytics-engineer.md +364 -0
  6. package/src/agents/applied-ml-scientist.md +410 -0
  7. package/src/agents/backend-engineer.md +255 -0
  8. package/src/agents/bi-engineer.md +333 -0
  9. package/src/agents/data-analyst.md +343 -0
  10. package/src/agents/data-engineer.md +260 -0
  11. package/src/agents/data-modeller.md +386 -0
  12. package/src/agents/data-scientist.md +366 -0
  13. package/src/agents/deep-learning-engineer.md +389 -0
  14. package/src/agents/ml-engineer.md +424 -0
  15. package/src/agents/mlops-engineer.md +339 -0
  16. package/src/agents/researcher.md +187 -0
  17. package/src/agents/specific_instructions/academic/critical_review.md +263 -0
  18. package/src/agents/specific_instructions/academic/report.md +113 -0
  19. package/src/agents/specific_instructions/ai_engineer/advise.md +162 -0
  20. package/src/agents/specific_instructions/ai_engineer/bi_engineer_handoff.md +86 -0
  21. package/src/agents/specific_instructions/ai_engineer/experiment.md +471 -0
  22. package/src/agents/specific_instructions/ai_engineer/experiment_ui_mode.md +44 -0
  23. package/src/agents/specific_instructions/ai_engineer/phases/index.md +45 -0
  24. package/src/agents/specific_instructions/ai_engineer/phases/phase-1.md +55 -0
  25. package/src/agents/specific_instructions/ai_engineer/phases/phase-2.md +86 -0
  26. package/src/agents/specific_instructions/ai_engineer/phases/phase-3.md +96 -0
  27. package/src/agents/specific_instructions/ai_engineer/phases/phase-4.md +138 -0
  28. package/src/agents/specific_instructions/ai_engineer/phases/phase-5.md +157 -0
  29. package/src/agents/specific_instructions/ai_engineer/phases/phase-6.md +196 -0
  30. package/src/agents/specific_instructions/ai_engineer/phases/phase-7.md +313 -0
  31. package/src/agents/specific_instructions/ai_engineer/phases.md +1011 -0
  32. package/src/agents/specific_instructions/ai_engineer/prompt_lab.md +161 -0
  33. package/src/agents/specific_instructions/ai_engineer/prompt_lab_ui_mode.md +28 -0
  34. package/src/agents/specific_instructions/ai_engineer/research.md +393 -0
  35. package/src/agents/specific_instructions/ai_engineer/research_ui_mode.md +66 -0
  36. package/src/agents/specific_instructions/ai_engineer/review.md +159 -0
  37. package/src/agents/specific_instructions/ai_engineer/validation_checklist.md +182 -0
  38. package/src/agents/specific_instructions/analytics_engineer/advise.md +155 -0
  39. package/src/agents/specific_instructions/analytics_engineer/bi_engineer_handoff.md +91 -0
  40. package/src/agents/specific_instructions/analytics_engineer/data_analyst_handoff.md +84 -0
  41. package/src/agents/specific_instructions/analytics_engineer/deep_phases.md +818 -0
  42. package/src/agents/specific_instructions/analytics_engineer/phases_deep/index.md +24 -0
  43. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-1.md +77 -0
  44. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-2.md +106 -0
  45. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-3.md +93 -0
  46. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-4.md +79 -0
  47. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-5.md +61 -0
  48. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-6.md +45 -0
  49. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-7.md +235 -0
  50. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-8.md +221 -0
  51. package/src/agents/specific_instructions/analytics_engineer/phases_quick/index.md +19 -0
  52. package/src/agents/specific_instructions/analytics_engineer/phases_quick/phase-1.md +47 -0
  53. package/src/agents/specific_instructions/analytics_engineer/phases_quick/phase-2.md +78 -0
  54. package/src/agents/specific_instructions/analytics_engineer/quick_phases.md +112 -0
  55. package/src/agents/specific_instructions/analytics_engineer/review.md +167 -0
  56. package/src/agents/specific_instructions/analytics_engineer/service_mode.md +369 -0
  57. package/src/agents/specific_instructions/analytics_engineer/ui_mode.md +45 -0
  58. package/src/agents/specific_instructions/analytics_engineer/update.md +162 -0
  59. package/src/agents/specific_instructions/analytics_engineer/validation_checklist.md +121 -0
  60. package/src/agents/specific_instructions/applied_ml_scientist/advise.md +143 -0
  61. package/src/agents/specific_instructions/applied_ml_scientist/phases/index.md +21 -0
  62. package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-1.md +51 -0
  63. package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-2.md +66 -0
  64. package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-3.md +113 -0
  65. package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-4.md +104 -0
  66. package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-5.md +156 -0
  67. package/src/agents/specific_instructions/applied_ml_scientist/phases.md +428 -0
  68. package/src/agents/specific_instructions/applied_ml_scientist/research.md +379 -0
  69. package/src/agents/specific_instructions/applied_ml_scientist/review.md +142 -0
  70. package/src/agents/specific_instructions/applied_ml_scientist/validation_checklist.md +136 -0
  71. package/src/agents/specific_instructions/backend_engineer/clean.md +149 -0
  72. package/src/agents/specific_instructions/backend_engineer/review.md +91 -0
  73. package/src/agents/specific_instructions/backend_engineer/review_checklist.md +54 -0
  74. package/src/agents/specific_instructions/backend_engineer/service_mode.md +67 -0
  75. package/src/agents/specific_instructions/bi_engineer/advise.md +137 -0
  76. package/src/agents/specific_instructions/bi_engineer/data_analyst_handoff.md +77 -0
  77. package/src/agents/specific_instructions/bi_engineer/incoming_handoff.md +45 -0
  78. package/src/agents/specific_instructions/bi_engineer/phases/index.md +20 -0
  79. package/src/agents/specific_instructions/bi_engineer/phases/phase-1.md +164 -0
  80. package/src/agents/specific_instructions/bi_engineer/phases/phase-2.md +92 -0
  81. package/src/agents/specific_instructions/bi_engineer/phases/phase-3.md +121 -0
  82. package/src/agents/specific_instructions/bi_engineer/phases/phase-4.md +106 -0
  83. package/src/agents/specific_instructions/bi_engineer/phases.md +451 -0
  84. package/src/agents/specific_instructions/bi_engineer/review.md +166 -0
  85. package/src/agents/specific_instructions/bi_engineer/update.md +147 -0
  86. package/src/agents/specific_instructions/bi_engineer/validation_checklist.md +124 -0
  87. package/src/agents/specific_instructions/data_analyst/advise.md +138 -0
  88. package/src/agents/specific_instructions/data_analyst/explain.md +221 -0
  89. package/src/agents/specific_instructions/data_analyst/incoming_handoff.md +40 -0
  90. package/src/agents/specific_instructions/data_analyst/phases/index.md +20 -0
  91. package/src/agents/specific_instructions/data_analyst/phases/phase-1.md +159 -0
  92. package/src/agents/specific_instructions/data_analyst/phases/phase-2.md +112 -0
  93. package/src/agents/specific_instructions/data_analyst/phases/phase-3.md +265 -0
  94. package/src/agents/specific_instructions/data_analyst/phases/phase-4.md +100 -0
  95. package/src/agents/specific_instructions/data_analyst/phases.md +501 -0
  96. package/src/agents/specific_instructions/data_analyst/review.md +138 -0
  97. package/src/agents/specific_instructions/data_analyst/ui_mode.md +26 -0
  98. package/src/agents/specific_instructions/data_analyst/update.md +144 -0
  99. package/src/agents/specific_instructions/data_analyst/validation_checklist.md +95 -0
  100. package/src/agents/specific_instructions/data_engineer/advise.md +137 -0
  101. package/src/agents/specific_instructions/data_engineer/phases.md +466 -0
  102. package/src/agents/specific_instructions/data_engineer/phases_deep/index.md +23 -0
  103. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-1.md +49 -0
  104. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-2.md +93 -0
  105. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-3.md +55 -0
  106. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-4.md +48 -0
  107. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-5.md +40 -0
  108. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-6.md +102 -0
  109. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-7.md +87 -0
  110. package/src/agents/specific_instructions/data_engineer/phases_quick/index.md +19 -0
  111. package/src/agents/specific_instructions/data_engineer/phases_quick/phase-1.md +45 -0
  112. package/src/agents/specific_instructions/data_engineer/phases_quick/phase-2.md +54 -0
  113. package/src/agents/specific_instructions/data_engineer/review.md +135 -0
  114. package/src/agents/specific_instructions/data_engineer/validation_checklist.md +136 -0
  115. package/src/agents/specific_instructions/data_modeller/advise.md +137 -0
  116. package/src/agents/specific_instructions/data_modeller/phases.md +581 -0
  117. package/src/agents/specific_instructions/data_modeller/phases_deep/index.md +23 -0
  118. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-1.md +52 -0
  119. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-2.md +113 -0
  120. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-3.md +47 -0
  121. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-4.md +51 -0
  122. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-5.md +45 -0
  123. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-6.md +105 -0
  124. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-7.md +136 -0
  125. package/src/agents/specific_instructions/data_modeller/phases_quick/index.md +19 -0
  126. package/src/agents/specific_instructions/data_modeller/phases_quick/phase-1.md +47 -0
  127. package/src/agents/specific_instructions/data_modeller/phases_quick/phase-2.md +65 -0
  128. package/src/agents/specific_instructions/data_modeller/review.md +141 -0
  129. package/src/agents/specific_instructions/data_modeller/service_mode.md +218 -0
  130. package/src/agents/specific_instructions/data_modeller/validation_checklist.md +125 -0
  131. package/src/agents/specific_instructions/data_scientist/advise.md +158 -0
  132. package/src/agents/specific_instructions/data_scientist/bi_engineer_handoff.md +63 -0
  133. package/src/agents/specific_instructions/data_scientist/experiment.md +482 -0
  134. package/src/agents/specific_instructions/data_scientist/experiment_ui_mode.md +44 -0
  135. package/src/agents/specific_instructions/data_scientist/explain.md +247 -0
  136. package/src/agents/specific_instructions/data_scientist/greenfield_data.md +35 -0
  137. package/src/agents/specific_instructions/data_scientist/ml_engineer_handoff.md +52 -0
  138. package/src/agents/specific_instructions/data_scientist/notebook_walkthrough.md +76 -0
  139. package/src/agents/specific_instructions/data_scientist/phases/index.md +24 -0
  140. package/src/agents/specific_instructions/data_scientist/phases/phase-1.md +45 -0
  141. package/src/agents/specific_instructions/data_scientist/phases/phase-2.md +67 -0
  142. package/src/agents/specific_instructions/data_scientist/phases/phase-3.md +89 -0
  143. package/src/agents/specific_instructions/data_scientist/phases/phase-4.md +143 -0
  144. package/src/agents/specific_instructions/data_scientist/phases/phase-5.md +71 -0
  145. package/src/agents/specific_instructions/data_scientist/phases/phase-6.md +239 -0
  146. package/src/agents/specific_instructions/data_scientist/phases/phase-7.md +207 -0
  147. package/src/agents/specific_instructions/data_scientist/phases.md +651 -0
  148. package/src/agents/specific_instructions/data_scientist/research.md +345 -0
  149. package/src/agents/specific_instructions/data_scientist/research_ui_mode.md +52 -0
  150. package/src/agents/specific_instructions/data_scientist/review.md +136 -0
  151. package/src/agents/specific_instructions/data_scientist/service_mode.md +247 -0
  152. package/src/agents/specific_instructions/data_scientist/validation_checklist.md +183 -0
  153. package/src/agents/specific_instructions/deep_learning_engineer/advise.md +145 -0
  154. package/src/agents/specific_instructions/deep_learning_engineer/phases/index.md +21 -0
  155. package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-1.md +74 -0
  156. package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-2.md +98 -0
  157. package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-3.md +76 -0
  158. package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-4.md +128 -0
  159. package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-5.md +292 -0
  160. package/src/agents/specific_instructions/deep_learning_engineer/phases.md +567 -0
  161. package/src/agents/specific_instructions/deep_learning_engineer/research.md +389 -0
  162. package/src/agents/specific_instructions/deep_learning_engineer/review.md +155 -0
  163. package/src/agents/specific_instructions/deep_learning_engineer/validation_checklist.md +147 -0
  164. package/src/agents/specific_instructions/ml_engineer/advise.md +174 -0
  165. package/src/agents/specific_instructions/ml_engineer/bi_engineer_handoff.md +71 -0
  166. package/src/agents/specific_instructions/ml_engineer/experiment.md +474 -0
  167. package/src/agents/specific_instructions/ml_engineer/experiment_ui_mode.md +44 -0
  168. package/src/agents/specific_instructions/ml_engineer/notebook_walkthrough.md +75 -0
  169. package/src/agents/specific_instructions/ml_engineer/phases/index.md +25 -0
  170. package/src/agents/specific_instructions/ml_engineer/phases/phase-1.md +49 -0
  171. package/src/agents/specific_instructions/ml_engineer/phases/phase-2.md +75 -0
  172. package/src/agents/specific_instructions/ml_engineer/phases/phase-3.md +124 -0
  173. package/src/agents/specific_instructions/ml_engineer/phases/phase-4.md +279 -0
  174. package/src/agents/specific_instructions/ml_engineer/phases/phase-5.md +160 -0
  175. package/src/agents/specific_instructions/ml_engineer/phases/phase-6-5.md +170 -0
  176. package/src/agents/specific_instructions/ml_engineer/phases/phase-6.md +295 -0
  177. package/src/agents/specific_instructions/ml_engineer/phases/phase-7.md +337 -0
  178. package/src/agents/specific_instructions/ml_engineer/phases.md +1068 -0
  179. package/src/agents/specific_instructions/ml_engineer/research.md +437 -0
  180. package/src/agents/specific_instructions/ml_engineer/research_ui_mode.md +71 -0
  181. package/src/agents/specific_instructions/ml_engineer/review.md +187 -0
  182. package/src/agents/specific_instructions/ml_engineer/service_mode.md +273 -0
  183. package/src/agents/specific_instructions/ml_engineer/validation_checklist.md +185 -0
  184. package/src/agents/specific_instructions/mlops_engineer/advise.md +139 -0
  185. package/src/agents/specific_instructions/mlops_engineer/phases/index.md +23 -0
  186. package/src/agents/specific_instructions/mlops_engineer/phases/phase-1.md +52 -0
  187. package/src/agents/specific_instructions/mlops_engineer/phases/phase-2.md +86 -0
  188. package/src/agents/specific_instructions/mlops_engineer/phases/phase-3.md +105 -0
  189. package/src/agents/specific_instructions/mlops_engineer/phases/phase-4.md +128 -0
  190. package/src/agents/specific_instructions/mlops_engineer/phases/phase-5.md +106 -0
  191. package/src/agents/specific_instructions/mlops_engineer/phases/phase-6.md +128 -0
  192. package/src/agents/specific_instructions/mlops_engineer/phases/phase-7.md +144 -0
  193. package/src/agents/specific_instructions/mlops_engineer/phases.md +671 -0
  194. package/src/agents/specific_instructions/mlops_engineer/review.md +164 -0
  195. package/src/agents/specific_instructions/mlops_engineer/service_mode.md +81 -0
  196. package/src/agents/specific_instructions/mlops_engineer/validation_checklist.md +151 -0
  197. package/src/agents/specific_instructions/researcher/critical_review.md +292 -0
  198. package/src/agents/specific_instructions/researcher/review_checklist.md +67 -0
  199. package/src/agents/specific_instructions/researcher/service_mode.md +224 -0
  200. package/src/agents/specific_instructions/shared/auto_verify_mode.md +141 -0
  201. package/src/agents/specific_instructions/shared/autonomous_research.md +1289 -0
  202. package/src/agents/specific_instructions/shared/behavioral_rules.md +36 -0
  203. package/src/agents/specific_instructions/shared/diverge_protocol.md +387 -0
  204. package/src/agents/specific_instructions/shared/engineering_guidelines.md +136 -0
  205. package/src/agents/specific_instructions/shared/experiment_versioning.md +184 -0
  206. package/src/agents/specific_instructions/shared/goal_mode.md +187 -0
  207. package/src/agents/specific_instructions/shared/incremental_testing.md +139 -0
  208. package/src/agents/specific_instructions/shared/intent_discovery.md +223 -0
  209. package/src/agents/specific_instructions/shared/join_path_protocol.md +168 -0
  210. package/src/agents/specific_instructions/shared/knowledge_checkpoint.md +83 -0
  211. package/src/agents/specific_instructions/shared/knowledge_harvest.md +220 -0
  212. package/src/agents/specific_instructions/shared/knowledge_retrieval.md +100 -0
  213. package/src/agents/specific_instructions/shared/notebook_walkthrough_protocol.md +367 -0
  214. package/src/agents/specific_instructions/shared/reviewer_verdict_protocol.md +74 -0
  215. package/src/agents/specific_instructions/shared/swarm_protocol.md +97 -0
  216. package/src/agents/specific_instructions/shared/validation_protocol.md +139 -0
  217. package/src/agents/specific_instructions/syn/arbiter.md +140 -0
  218. package/src/agents/specific_instructions/syn/brainstorm.md +550 -0
  219. package/src/agents/specific_instructions/syn/code_review.md +232 -0
  220. package/src/agents/specific_instructions/syn/diff.md +239 -0
  221. package/src/agents/specific_instructions/syn/final_review.md +65 -0
  222. package/src/agents/specific_instructions/syn/fixer.md +240 -0
  223. package/src/agents/specific_instructions/syn/free_form.md +130 -0
  224. package/src/agents/specific_instructions/syn/knowledge.md +468 -0
  225. package/src/agents/specific_instructions/syn/notebook_walkthrough.md +78 -0
  226. package/src/agents/specific_instructions/syn/panel_review.md +634 -0
  227. package/src/agents/specific_instructions/syn/pm.md +453 -0
  228. package/src/agents/specific_instructions/syn/pr_review.md +255 -0
  229. package/src/agents/specific_instructions/syn/slides.md +417 -0
  230. package/src/agents/syn.md +729 -0
  231. package/src/commands/academic.md +41 -0
  232. package/src/commands/ai-engineer.md +45 -0
  233. package/src/commands/analytics-engineer.md +48 -0
  234. package/src/commands/applied-ml-scientist.md +45 -0
  235. package/src/commands/backend-engineer.md +35 -0
  236. package/src/commands/bi-engineer.md +40 -0
  237. package/src/commands/brainstorm.md +24 -0
  238. package/src/commands/data-analyst.md +38 -0
  239. package/src/commands/data-engineer.md +37 -0
  240. package/src/commands/data-modeller.md +38 -0
  241. package/src/commands/data-scientist.md +38 -0
  242. package/src/commands/deep-learning-engineer.md +47 -0
  243. package/src/commands/end.md +49 -0
  244. package/src/commands/knowledge.md +24 -0
  245. package/src/commands/ml-engineer.md +42 -0
  246. package/src/commands/mlops-engineer.md +47 -0
  247. package/src/commands/notebook-walkthrough.md +58 -0
  248. package/src/commands/researcher.md +40 -0
  249. package/src/commands/resume.md +57 -0
  250. package/src/commands/review-pr.md +26 -0
  251. package/src/commands/shards-guide.md +41 -0
  252. package/src/commands/shards-ui.md +32 -0
  253. package/src/commands/shards.md +41 -0
  254. package/src/docs/01-getting-started/concepts.md +109 -0
  255. package/src/docs/01-getting-started/first-session.md +79 -0
  256. package/src/docs/01-getting-started/install.md +61 -0
  257. package/src/docs/02-agents/academic.md +71 -0
  258. package/src/docs/02-agents/ai-engineer.md +78 -0
  259. package/src/docs/02-agents/analytics-engineer.md +58 -0
  260. package/src/docs/02-agents/applied-ml-scientist.md +59 -0
  261. package/src/docs/02-agents/backend-engineer.md +58 -0
  262. package/src/docs/02-agents/bi-engineer.md +65 -0
  263. package/src/docs/02-agents/data-analyst.md +67 -0
  264. package/src/docs/02-agents/data-engineer.md +57 -0
  265. package/src/docs/02-agents/data-modeller.md +51 -0
  266. package/src/docs/02-agents/data-scientist.md +78 -0
  267. package/src/docs/02-agents/deep-learning-engineer.md +64 -0
  268. package/src/docs/02-agents/ml-engineer.md +80 -0
  269. package/src/docs/02-agents/mlops-engineer.md +59 -0
  270. package/src/docs/02-agents/overview.md +62 -0
  271. package/src/docs/02-agents/researcher.md +73 -0
  272. package/src/docs/02-agents/syn.md +88 -0
  273. package/src/docs/03-protocols/auto-verify.md +82 -0
  274. package/src/docs/03-protocols/autonomous-research.md +59 -0
  275. package/src/docs/03-protocols/behavioral-rules.md +35 -0
  276. package/src/docs/03-protocols/diverge.md +50 -0
  277. package/src/docs/03-protocols/engineering-guidelines.md +56 -0
  278. package/src/docs/03-protocols/experiment-versioning.md +38 -0
  279. package/src/docs/03-protocols/gate-pattern.md +65 -0
  280. package/src/docs/03-protocols/incremental-testing.md +68 -0
  281. package/src/docs/03-protocols/join-path.md +46 -0
  282. package/src/docs/03-protocols/knowledge-ledger.md +70 -0
  283. package/src/docs/03-protocols/reviewer-verdicts.md +39 -0
  284. package/src/docs/03-protocols/swarm.md +40 -0
  285. package/src/docs/03-protocols/validation.md +174 -0
  286. package/src/docs/04-ui/activity-bar.md +70 -0
  287. package/src/docs/04-ui/chat-pane.md +80 -0
  288. package/src/docs/04-ui/code-intel.md +62 -0
  289. package/src/docs/04-ui/file-editing.md +61 -0
  290. package/src/docs/04-ui/git.md +54 -0
  291. package/src/docs/04-ui/keybindings.md +79 -0
  292. package/src/docs/04-ui/knowledge-map.md +76 -0
  293. package/src/docs/04-ui/overview.md +93 -0
  294. package/src/docs/04-ui/panels.md +49 -0
  295. package/src/docs/04-ui/pinboard-selection.md +66 -0
  296. package/src/docs/04-ui/quick-open-palette.md +56 -0
  297. package/src/docs/04-ui/sessions.md +81 -0
  298. package/src/docs/04-ui/settings-permissions.md +56 -0
  299. package/src/docs/05-commands/reference.md +59 -0
  300. package/src/docs/06-outputs/directory-map.md +116 -0
  301. package/src/docs/07-workflows/ai-eval-first.md +57 -0
  302. package/src/docs/07-workflows/deep-study-to-production.md +76 -0
  303. package/src/docs/07-workflows/diverge-exploration.md +77 -0
  304. package/src/docs/07-workflows/quick-analysis.md +45 -0
  305. package/src/docs/08-integrations/claude-code-auto-mode.md +191 -0
  306. package/src/docs/08-integrations/google-slides.md +175 -0
  307. package/src/docs/README.md +30 -0
  308. package/src/docs/manifest.json +108 -0
  309. package/src/templates/analysis-template.md +20 -0
  310. package/src/templates/branch-report.md +46 -0
  311. package/src/templates/diff-report.md +88 -0
  312. package/src/templates/knowledge-index.md +7 -0
  313. package/src/templates/model-card-schema.json +186 -0
  314. package/src/templates/model-card-schema.md +88 -0
  315. package/src/templates/model-card.md +124 -0
  316. package/src/templates/project-plan.md +47 -0
  317. package/src/templates/project-specs.md +81 -0
  318. package/src/templates/report-template.md +43 -0
  319. package/src/templates/study-template.md +25 -0
  320. package/src/ui/cc-readonly.js +181 -0
  321. package/src/ui/chat-session.js +466 -0
  322. package/src/ui/css/base.css +136 -0
  323. package/src/ui/css/brainstorm.css +525 -0
  324. package/src/ui/css/chat.css +1405 -0
  325. package/src/ui/css/editor.css +546 -0
  326. package/src/ui/css/eval-dashboard.css +157 -0
  327. package/src/ui/css/experiment.css +237 -0
  328. package/src/ui/css/guide.css +186 -0
  329. package/src/ui/css/knowledge-map.css +383 -0
  330. package/src/ui/css/layout.css +431 -0
  331. package/src/ui/css/model-card.css +161 -0
  332. package/src/ui/css/notebook-walkthrough.css +271 -0
  333. package/src/ui/css/pr-review.css +403 -0
  334. package/src/ui/css/prompt-lab.css +325 -0
  335. package/src/ui/css/sessions.css +258 -0
  336. package/src/ui/css/sidebar.css +661 -0
  337. package/src/ui/css/terminal.css +113 -0
  338. package/src/ui/css/theme-light.css +542 -0
  339. package/src/ui/index.html +389 -0
  340. package/src/ui/js/agents.js +32 -0
  341. package/src/ui/js/bookmarks.js +230 -0
  342. package/src/ui/js/chat.js +1776 -0
  343. package/src/ui/js/code-intel.js +328 -0
  344. package/src/ui/js/command-palette.js +142 -0
  345. package/src/ui/js/events.js +591 -0
  346. package/src/ui/js/explorer.js +317 -0
  347. package/src/ui/js/file-view.js +477 -0
  348. package/src/ui/js/git.js +536 -0
  349. package/src/ui/js/guide.js +198 -0
  350. package/src/ui/js/hud.js +75 -0
  351. package/src/ui/js/init.js +351 -0
  352. package/src/ui/js/knowledge-map.js +906 -0
  353. package/src/ui/js/markdown.js +114 -0
  354. package/src/ui/js/monaco.js +164 -0
  355. package/src/ui/js/notebook-walkthrough.js +272 -0
  356. package/src/ui/js/notebook.js +448 -0
  357. package/src/ui/js/panels.js +2681 -0
  358. package/src/ui/js/pinboard.js +186 -0
  359. package/src/ui/js/quick-open.js +164 -0
  360. package/src/ui/js/selection-context.js +131 -0
  361. package/src/ui/js/sessions.js +256 -0
  362. package/src/ui/js/settings.js +476 -0
  363. package/src/ui/js/split-view.js +82 -0
  364. package/src/ui/js/state.js +343 -0
  365. package/src/ui/js/table.js +161 -0
  366. package/src/ui/js/tabs.js +284 -0
  367. package/src/ui/js/tabular.js +125 -0
  368. package/src/ui/js/terminal.js +354 -0
  369. package/src/ui/js/timeline.js +137 -0
  370. package/src/ui/js/utils.js +293 -0
  371. package/src/ui/notebook-kernel.py +790 -0
  372. package/src/ui/open-browser.js +55 -0
  373. package/src/ui/permission-pattern.js +42 -0
  374. package/src/ui/relay.js +513 -0
  375. package/src/ui/server.js +3072 -0
  376. package/src/ui/session-index.js +225 -0
  377. package/src/ui/shards_icon.png +0 -0
  378. package/src/ui/spawn-server.js +41 -0
  379. package/src/ui/symbol-index.js +813 -0
  380. package/src/ui/ui-push.js +177 -0
  381. package/tools/gate-hook/VALIDATION_SPEC.md +273 -0
  382. package/tools/gate-hook/__tests__/auto-verify.test.js +343 -0
  383. package/tools/gate-hook/auto-allowlist.js +179 -0
  384. package/tools/gate-hook/auto-state.js +68 -0
  385. package/tools/gate-hook/classify.js +21 -0
  386. package/tools/gate-hook/log.js +57 -0
  387. package/tools/gate-hook/parser.js +205 -0
  388. package/tools/gate-hook/sql-guard.js +230 -0
  389. package/tools/gate-hook/state.js +170 -0
  390. package/tools/gate-hook/sweep.js +139 -0
  391. package/tools/gate-hook/transcript.js +45 -0
  392. package/tools/gate-hook/validation.js +321 -0
  393. package/tools/gate-hook.js +475 -0
  394. package/tools/install.js +914 -0
  395. package/tools/shards-gates.js +311 -0
  396. package/tools/shards-sessions.js +261 -0
  397. package/tools/shards-ui.js +377 -0
@@ -0,0 +1,81 @@
1
+ # Sessions Panel
2
+
3
+ The Sessions panel in the activity bar is a durable history of every Shards chat
4
+ recorded under `.shards/sessions/INDEX.json`. Unlike the **Session Activity**
5
+ timeline (which renders live in-memory state for sessions still spawned in the
6
+ current UI process), the Sessions panel survives server restarts, browser
7
+ closes, and CLI exits — anything that ever opened a chat shows up here.
8
+
9
+ ## Where it lives
10
+
11
+ Activity bar → the loopback arrow icon ("Sessions — resume past chats"). The
12
+ panel sits alongside Explorer, Git, Session Files, Session Activity, and
13
+ Bookmarks.
14
+
15
+ ## What you see
16
+
17
+ Each row shows:
18
+
19
+ - **Agent dot + name** — colored by the agent type
20
+ - **Status pill** — `live`, `ended`, or `abandoned` (active sessions that haven't
21
+ reported activity in 24h are reclassified as abandoned at server startup)
22
+ - **Phase chip** — the last gate phase the session reached, when known
23
+ - **Last user prompt** — a short preview of what you said most recently
24
+ - **Relative time** — when activity last touched this session
25
+
26
+ Rows are grouped by project directory (e.g. `analysis/q2_churn`) so you can
27
+ scan past work on a particular topic quickly.
28
+
29
+ ## Filtering
30
+
31
+ Three quick filter buttons sit above the list: **Live**, **Ended**,
32
+ **Abandoned**. Click one to filter; click again to clear. This is just a view
33
+ filter — the underlying index file isn't modified.
34
+
35
+ ## Resuming a session
36
+
37
+ Click any row. If the session is still live in the current UI process, you'll
38
+ be switched to its chat tab. Otherwise a confirmation dialog appears summarizing
39
+ the session (agent, project, phase, last prompt). Confirm and a fresh chat
40
+ spawns with `--resume <sessionId>`, bringing the Claude Code transcript back
41
+ and dropping you into the same project context.
42
+
43
+ A few constraints worth knowing:
44
+
45
+ - Resume only works for `ended` and `abandoned` sessions. Trying to resume a
46
+ live session that's already attached elsewhere returns a 409 from the server.
47
+ - The new session gets a new `sessionId`. The `resumedFrom` field on the new
48
+ entry points back at the original — useful for tracing chains of resumes.
49
+ - Project state (the on-disk `project-specs.md`, `.shards/gates/state.json`,
50
+ etc.) is shared across resumes since it lives in the project dir, not the
51
+ session. A resumed session sees the same gate state and phase progression
52
+ the original left behind.
53
+
54
+ ## Ending a session
55
+
56
+ The header has an **End Chat** button next to **+ New Chat**. It calls
57
+ `POST /chat/end` for the active session — flushes the transcript, marks the
58
+ INDEX entry as `ended`, snapshots any open gate into `gateOpenAtEnd`, and
59
+ stops the Claude CLI process. The button is disabled when there is no active
60
+ session.
61
+
62
+ Gate state itself is **not** modified — gates belong to the project, not the
63
+ session. If the chat ended mid-phase with a gate open, resuming will land back
64
+ at the same gate awaiting the same confirmation.
65
+
66
+ ## CLI parity
67
+
68
+ The same data is reachable outside the UI. See the
69
+ [Slash Command Reference](../05-commands/reference.md) for `/resume` and
70
+ `/end`, and run `shards-sessions help` from any project root for the full bin.
71
+
72
+ ## Where the data lives
73
+
74
+ - `.shards/sessions/INDEX.json` — the durable index this panel reads
75
+ - `.shards/sessions/<sessionId>-transcript.json` — per-session transcript dump
76
+ - `.shards/sessions/<sessionId>.json` — short-lived in-flight metadata
77
+ (removed when the process exits)
78
+
79
+ The disk index uses atomic writes (`INDEX.json.tmp` → rename) so concurrent
80
+ reads never observe a torn file. The server also runs an abandonment sweep
81
+ on startup that reclassifies stale `active` rows past the 24h window.
@@ -0,0 +1,56 @@
1
+ # Settings & Permissions
2
+
3
+ User-facing configuration. Open with `Cmd+,` or from the command palette.
4
+
5
+ ## Sections
6
+
7
+ ### Appearance
8
+
9
+ - Theme: light / dark.
10
+ - Editor font family + size.
11
+ - Chat font family + size.
12
+ - Line wrapping toggle.
13
+
14
+ ### Editor
15
+
16
+ - Tab size (default 2).
17
+ - Autosave (off / on focus change / on timeout).
18
+ - Show minimap.
19
+ - Show line numbers.
20
+
21
+ ### Chat
22
+
23
+ - Render markdown (on by default).
24
+ - Collapse tool calls by default.
25
+ - Show gate blocks inline (on by default).
26
+ - Search scope: current session only vs. all sessions.
27
+
28
+ ### Code Intel
29
+
30
+ - Enable ctags (auto-detects).
31
+ - Regex fallback (on if ctags missing).
32
+ - Reindex on save vs. debounced.
33
+
34
+ ### Permissions
35
+
36
+ The permission model for Claude Code tool use. Presets:
37
+
38
+ - **plan** — Claude must present a plan before modifying files. Safest.
39
+ - **acceptEdits** — file edits auto-approved; other tools still prompt.
40
+ - **default** — every tool use prompts.
41
+ - **bypassPermissions** — *dangerous*. All tools auto-approved. Only for trusted, sandboxed contexts.
42
+
43
+ Cycle the active mode with `Shift+Tab` from the chat input.
44
+
45
+ Permission state is held per-session and displayed in the HUD.
46
+
47
+ ## Where settings live
48
+
49
+ - UI-only settings (theme, fonts, editor prefs) → `localStorage`.
50
+ - Permission modes → per-session state, driven by Claude Code.
51
+ - `.claude/settings.json` — project-level settings (hooks, permissions allowlist). Edited directly, not from the UI.
52
+
53
+ ## See also
54
+
55
+ - [Keybindings](keybindings.md)
56
+ - [Chat Pane — permission modes](chat-pane.md)
@@ -0,0 +1,59 @@
1
+ # Slash Command Reference
2
+
3
+ Every installed slash command and what it does.
4
+
5
+ ## Orchestration
6
+
7
+ | Command | Agent / Mode | When to use |
8
+ |---|---|---|
9
+ | `/shards` | Syn — triage | Default entry point. You describe the problem; Syn delegates. |
10
+ | `/brainstorm` | Syn — brainstorm | Multi-agent ideation session. |
11
+ | `/knowledge` | Syn — knowledge | Seed, browse, and manage the Knowledge Ledger. |
12
+ | `/review-pr` | Syn — PR review | Threaded review of an open PR. |
13
+
14
+ ## Specialists
15
+
16
+ | Command | Agent | Typical output |
17
+ |---|---|---|
18
+ | `/data-analyst` | Data Analyst | `analysis/<project>/` |
19
+ | `/data-scientist` | Data Scientist | `studies/<project>/` |
20
+ | `/data-engineer` | Data Engineer | `models/<project>/` |
21
+ | `/data-modeller` | Data Modeller | `data_models/<project>/` |
22
+ | `/analytics-engineer` | Analytics Engineer | `data_models/<project>/` |
23
+ | `/ml-engineer` | ML Engineer | `models/<project>/` or existing service dir |
24
+ | `/ai-engineer` | AI Engineer | `services/<project>/` |
25
+ | `/applied-ml-scientist` | Applied ML Scientist | `research/<project>/` |
26
+ | `/deep-learning-engineer` | Deep Learning Engineer | `services/<project>/` |
27
+ | `/mlops-engineer` | MLOps Engineer | `services/<project>/` |
28
+ | `/bi-engineer` | BI Engineer | `dashboards/<project>/` |
29
+ | `/backend-engineer` | Backend Engineer | review only — no files |
30
+ | `/researcher` | Researcher | review only — no files |
31
+ | `/academic` | Academic | review, or `research/<project>/` in report mode |
32
+
33
+ ## UI
34
+
35
+ | Command | Action |
36
+ |---|---|
37
+ | `/shards-ui` | Start the UI server and open the browser |
38
+ | `/shards-guide` | Open the Developer Guide panel in the UI |
39
+
40
+ ## How commands work
41
+
42
+ Each command file at `src/commands/<name>.md` is ~30 lines and does three things:
43
+
44
+ 1. Sets the agent persona.
45
+ 2. References the agent file at `.claude/agents/<name>.md`.
46
+ 3. Provides startup instructions — usually "read the agent file and begin Phase 0".
47
+
48
+ At install time, commands are copied to `.claude/commands/` in the target project. Claude Code discovers them automatically.
49
+
50
+ ## Adding a new command
51
+
52
+ 1. Create `src/commands/<name>.md` with YAML frontmatter.
53
+ 2. Re-run `node tools/install.js` in the target project.
54
+ 3. Confirm it appears in Claude Code's `/` autocomplete.
55
+
56
+ ## See also
57
+
58
+ - [Agents Overview](../02-agents/overview.md)
59
+ - [Install & Setup](../01-getting-started/install.md)
@@ -0,0 +1,116 @@
1
+ # Output Directory Map
2
+
3
+ Where each shard writes. The installer creates these at install time; each project lands under its own named subdirectory.
4
+
5
+ ## Tree
6
+
7
+ ```
8
+ <project root>/
9
+ ├── analysis/ # Data Analyst — adhoc work
10
+ │ └── <project>/
11
+ │ ├── project-specs.md
12
+ │ ├── query.sql
13
+ │ └── findings.md
14
+
15
+ ├── studies/ # Data Scientist — deep studies
16
+ │ └── <project>/
17
+ │ ├── project-specs.md
18
+ │ ├── notebooks/
19
+ │ ├── sql/
20
+ │ └── report.md
21
+
22
+ ├── models/ # Data Engineer + ML Engineer (greenfield)
23
+ │ └── <project>/
24
+ │ ├── project-specs.md
25
+ │ ├── dbt/ # DE
26
+ │ ├── training/ # MLE
27
+ │ └── eval/ # MLE
28
+
29
+ ├── data_models/ # Data Modeller + Analytics Engineer
30
+ │ └── <project>/
31
+ │ ├── project-specs.md
32
+ │ ├── staging/
33
+ │ ├── intermediate/
34
+ │ └── marts/
35
+
36
+ ├── services/ # AI Engineer + DL Engineer + MLOps Engineer
37
+ │ └── <project>/
38
+ │ ├── project-specs.md
39
+ │ ├── src/
40
+ │ ├── eval/
41
+ │ └── deploy/
42
+
43
+ ├── research/ # Applied ML Scientist
44
+ │ └── <project>/
45
+ │ ├── project-specs.md
46
+ │ ├── framework/
47
+ │ ├── experiments/
48
+ │ └── report.md
49
+
50
+ ├── dashboards/ # BI Engineer
51
+ │ └── <project>/
52
+ │ ├── project-specs.md
53
+ │ └── app.py
54
+
55
+ ├── brainstorm/ # Syn brainstorm sessions
56
+ │ ├── brainstorm_<session>.md # living doc — context, specialist input, synthesis, outcome
57
+ │ ├── brainstorm_<session>.state.json # live state for the UI brainstorm panel
58
+ │ └── workstreams.json # optional — multi-workstream escalation
59
+
60
+ ├── fixes/ # Syn Fixer mode
61
+ │ └── <project>/
62
+ │ └── fix-notes.md
63
+
64
+ ├── presentations/ # Syn Slides Mode decks
65
+ │ └── <deck>/
66
+ │ ├── presentation-spec.md
67
+ │ ├── slides-url.txt
68
+ │ └── iterations.md # optional, after revisions
69
+
70
+ └── .shards/ # runtime state, knowledge, UI, hooks
71
+ ├── knowledge/ # Knowledge Ledger — preserved across uninstalls
72
+ │ ├── INDEX.md
73
+ │ ├── entities/
74
+ │ ├── infrastructure/
75
+ │ ├── patterns/
76
+ │ └── features/
77
+ ├── sessions/ # per-session chat + panel state
78
+ ├── gates/ # gate-hook state
79
+ ├── hooks/ # installed hook scripts
80
+ ├── ui/ # UI server assets
81
+ │ └── docs/ # this guide, served at runtime
82
+ └── event-queue.jsonl # hook → UI relay buffer
83
+ ```
84
+
85
+ ## Per-specialist quick reference
86
+
87
+ | Specialist | Dir | Central file |
88
+ |---|---|---|
89
+ | Data Analyst | `analysis/<p>/` | `project-specs.md` + `findings.md` |
90
+ | Data Scientist | `studies/<p>/` | `project-specs.md` + `report.md` |
91
+ | Data Engineer | `models/<p>/` | `project-specs.md` + dbt models |
92
+ | Data Modeller | `data_models/<p>/` | `project-specs.md` + ERD |
93
+ | Analytics Engineer | `data_models/<p>/` | `project-specs.md` + marts |
94
+ | ML Engineer | `models/<p>/` or service | `project-specs.md` + `model-card.md` |
95
+ | AI Engineer | `services/<p>/` | `project-specs.md` + evals |
96
+ | Applied ML Scientist | `research/<p>/` | `project-specs.md` + `report.md` |
97
+ | Deep Learning Engineer | `services/<p>/` | `project-specs.md` + `model-card.md` |
98
+ | MLOps Engineer | `services/<p>/` | `project-specs.md` + deploy config |
99
+ | BI Engineer | `dashboards/<p>/` | `project-specs.md` + app code |
100
+ | Backend Engineer | — | review only |
101
+ | Researcher / Academic | — | review only (Academic has report mode) |
102
+ | Syn Fixer | `fixes/<p>/` | `fix-notes.md` |
103
+ | Syn Slides Mode | `presentations/<deck>/` | `presentation-spec.md` + `slides-url.txt` |
104
+
105
+ ## Plain-markdown guide location
106
+
107
+ The installer also copies the guide to `docs/shards-guide/` at the project root — readable in any editor or on GitHub without the UI.
108
+
109
+ ## Preservation on uninstall
110
+
111
+ `.shards/knowledge/` is explicitly preserved on uninstall. Everything else under `.shards/` is removed, along with the `.claude/agents/`, `.claude/commands/`, and `templates/` that the installer added.
112
+
113
+ ## See also
114
+
115
+ - [Install & Setup](../01-getting-started/install.md)
116
+ - [Knowledge Ledger](../03-protocols/knowledge-ledger.md)
@@ -0,0 +1,57 @@
1
+ # Workflow: AI Engineering — Eval-First
2
+
3
+ The AI Engineer's default posture. Before building the prompt chain or the RAG pipeline, build the evaluation. Every subsequent change is measured against it.
4
+
5
+ ## Flow
6
+
7
+ ```
8
+ /ai-engineer
9
+ ├─ Phase 0: triage (is this actually an AI problem, or a regex?)
10
+ ├─ Phase 1: knowledge retrieval + problem framing
11
+ ├─ Phase 2: eval dataset + metric definition
12
+ │ └─ Researcher consult — statistical rigor of metric
13
+ ├─ Phase 3: baseline (the simplest possible approach)
14
+ │ └─ Record metric on baseline
15
+ ├─ Phase 4: candidate approach(es)
16
+ │ └─ Optional: DIVERGE into parallel branches
17
+ │ └─ Optional: [AR] mode for budget-bounded refinement
18
+ ├─ Phase 5: winner selection + human review
19
+ ├─ Phase 6: productionization (ML Engineer consult for infra)
20
+ ├─ Phase 7: monitoring spec (MLOps consult)
21
+ └─ Phase 8: Syn final review
22
+ ```
23
+
24
+ Output: `services/<project>/` with eval dataset, prompts, evaluation runs, and deployment notes.
25
+
26
+ ## The "could this be a regex?" check
27
+
28
+ The AI Engineer's Phase 0 explicitly asks whether the problem actually needs an LLM. Many apparent AI tasks:
29
+
30
+ - Classification with clear rules → rules engine.
31
+ - Extraction from structured text → regex or parser.
32
+ - Deterministic transformation → code.
33
+
34
+ If regex-able, the AI Engineer refuses and redirects. This saves both inference cost and the operational surface area of an LLM in production.
35
+
36
+ ## Prompt Lab mode (`[PL]`)
37
+
38
+ For iterative prompt design, the AI Engineer's `[PL]` mode pushes a `prompt-lab` UI panel:
39
+
40
+ - Prompt editor on the left.
41
+ - Eval dataset on the right.
42
+ - Run button triggers evaluation; results appear side-by-side.
43
+ - Version history lets you compare prompt variants.
44
+
45
+ ## AR mode (`[AR]`)
46
+
47
+ Budget-bounded autonomous loop. The AI Engineer adapts hypotheses, re-runs evals, auto-keeps or auto-reverts based on metric direction. User can steer mid-loop by editing `research_brief.md`.
48
+
49
+ ## DIVERGE
50
+
51
+ When the approach space itself is unclear (e.g., "RAG vs. fine-tune vs. pure prompt"), fork parallel branches. Each branch runs independently; Syn Arbiter compares.
52
+
53
+ ## See also
54
+
55
+ - [AI Engineer](../02-agents/ai-engineer.md)
56
+ - [Autonomous Research](../03-protocols/autonomous-research.md)
57
+ - [DIVERGE](../03-protocols/diverge.md)
@@ -0,0 +1,76 @@
1
+ # Workflow: Deep Study → Production Model
2
+
3
+ When an analytical question evolves into a deployed ML service. Touches Data Scientist → ML Engineer → MLOps Engineer, with reviewer consults along the way.
4
+
5
+ ## Flow
6
+
7
+ ```
8
+ /shards
9
+ └─ Data Scientist (studies/<p>/)
10
+ ├─ EDA
11
+ ├─ Feature engineering
12
+ ├─ Modeling (Researcher consult for methodology)
13
+ ├─ Report
14
+ └─ Handoff brief → ML Engineer
15
+
16
+ └─ ML Engineer (models/<p>/ or services/<p>/)
17
+ ├─ Production data pipeline
18
+ ├─ Training loop + eval
19
+ ├─ Applied ML Scientist consult (if non-standard)
20
+ ├─ Deep Learning Engineer consult (if DL)
21
+ ├─ Model card
22
+ └─ Handoff → MLOps Engineer
23
+
24
+ └─ MLOps Engineer (services/<p>/)
25
+ ├─ Serving (BentoML / Triton / SageMaker / Vertex)
26
+ ├─ Monitoring + drift detection
27
+ └─ Retraining pipeline
28
+ ```
29
+
30
+ ## Key handoffs
31
+
32
+ ### DS → MLE
33
+
34
+ The Data Scientist's `ml_engineer_handoff.md` variant produces a structured brief:
35
+
36
+ - Final feature set + sources.
37
+ - Modeling methodology + metric definitions.
38
+ - Known limitations, assumptions, and data quality caveats.
39
+ - Suggested production infrastructure constraints.
40
+
41
+ The ML Engineer's incoming-handoff instructions read this brief at Phase 1.
42
+
43
+ ### MLE → MLOps
44
+
45
+ After the ML Engineer ships a trained model with eval + model card, the MLOps Engineer picks up:
46
+
47
+ - Serving target (batch / real-time / streaming).
48
+ - Latency budget.
49
+ - Model registry + versioning strategy.
50
+ - Retraining cadence and trigger conditions.
51
+ - Monitoring alerts.
52
+
53
+ ## Reviewer layers
54
+
55
+ Throughout this chain, reviewers consult via Task:
56
+
57
+ - **Researcher** — statistical methodology at modeling phase.
58
+ - **Data Modeller** — feature source grain before pipeline build.
59
+ - **Data Analyst** — feature interpretability if high explainability required.
60
+ - **Applied ML Scientist** — methodology review if non-standard.
61
+ - **Deep Learning Engineer** — architecture review if DL.
62
+ - **Syn** — final review at each specialist's last phase.
63
+
64
+ ## Knowledge ledger contributions
65
+
66
+ Typical harvest points:
67
+
68
+ - DS phase → entity quirks discovered during EDA.
69
+ - MLE phase → verified ML features land in `features/`.
70
+ - MLOps phase → infrastructure notes (serving latency, retraining cost).
71
+
72
+ ## See also
73
+
74
+ - [Data Scientist](../02-agents/data-scientist.md)
75
+ - [ML Engineer](../02-agents/ml-engineer.md)
76
+ - [MLOps Engineer](../02-agents/mlops-engineer.md)
@@ -0,0 +1,77 @@
1
+ # Workflow: DIVERGE Exploration
2
+
3
+ When the approach is unclear and a single specialist guessing is likely wrong, fork parallel branches. Each branch runs to completion independently; Syn Arbiter compares them; the user picks a winner.
4
+
5
+ ## Flow
6
+
7
+ ```
8
+ Specialist identifies branching point
9
+ └─ Proposes DIVERGE to Syn
10
+ └─ Syn approves fork
11
+ ├─ Branch A (Task: specialist in isolation)
12
+ ├─ Branch B (Task: specialist in isolation)
13
+ └─ Branch C (Task: specialist in isolation)
14
+ │ │ │
15
+ ▼ ▼ ▼
16
+ Each branch produces branch-report.md
17
+
18
+ Syn Arbiter reads all reports
19
+
20
+ Leaderboard + trade-off analysis
21
+
22
+ User selects winner
23
+
24
+ Promote winning branch to main project dir
25
+ ```
26
+
27
+ ## When to use
28
+
29
+ - Competing architectural choices (e.g., vector DB vs. keyword search).
30
+ - Competing modeling approaches (e.g., gradient boosting vs. transformer).
31
+ - Unclear whether a feature is even worth building.
32
+ - You have budget for parallel work and want evidence, not opinion.
33
+
34
+ ## When not to use
35
+
36
+ - The answer is constrained by known infrastructure.
37
+ - The differences between branches are cosmetic.
38
+ - You're under time pressure and need any working answer now.
39
+
40
+ ## Branch isolation
41
+
42
+ Each branch runs as an isolated Task. Branches cannot see each other's state — they can only compete on the branch report they emit. This prevents cross-contamination and ensures fair comparison.
43
+
44
+ ## Branch report
45
+
46
+ Every branch emits a `branch-report.md` following the template at `src/templates/branch-report.md`:
47
+
48
+ - Approach summary.
49
+ - Results / metrics.
50
+ - Trade-offs.
51
+ - Estimated cost (compute, latency, engineering effort).
52
+ - Confidence in recommendation.
53
+
54
+ ## Syn Arbiter
55
+
56
+ After branches complete, Syn enters Arbiter mode:
57
+
58
+ - Reads every branch report.
59
+ - Builds a side-by-side leaderboard.
60
+ - Calls out metrics where branches diverge.
61
+ - Provides an advisory recommendation.
62
+
63
+ The user makes the final call — Arbiter does not unilaterally promote.
64
+
65
+ ## Promotion
66
+
67
+ After user selection, the winning branch's artifacts are promoted to the main project directory. Other branches are archived (not deleted) under `<project>/branches/<branch-id>/` for reference.
68
+
69
+ ## Composition with AR
70
+
71
+ AR fan-out composes DIVERGE with Autonomous Research: each branch runs its own AR loop. When finished, Arbiter compares the best candidate from each branch's loop. Covered in section H of the AR protocol.
72
+
73
+ ## See also
74
+
75
+ - [DIVERGE protocol](../03-protocols/diverge.md)
76
+ - [Autonomous Research](../03-protocols/autonomous-research.md)
77
+ - [Syn](../02-agents/syn.md)
@@ -0,0 +1,45 @@
1
+ # Workflow: Quick Adhoc Analysis
2
+
3
+ The shortest productive path through Shards. Use when you have a specific question answerable in a handful of SQL queries.
4
+
5
+ ## Flow
6
+
7
+ ```
8
+ /shards
9
+ └─ Syn triages → Data Analyst
10
+ ├─ Phase 0: understand the question
11
+ ├─ Phase 1: check Knowledge Ledger, consult Data Modeller for schema
12
+ ├─ Phase 2: write query (join-path check)
13
+ ├─ Phase 3: execute, inspect
14
+ ├─ Phase 4: findings + chart (BI Engineer review if visual)
15
+ └─ Phase 5: Syn final review + knowledge harvest
16
+ ```
17
+
18
+ Output: `analysis/<project>/` with `project-specs.md`, `query.sql`, and `findings.md`.
19
+
20
+ ## Example session
21
+
22
+ **You:**
23
+ > /shards
24
+ > What is the weekly conversion rate by cohort for Q3?
25
+
26
+ **Syn (triage):** Confirms scope, creates `analysis/q3_conversion_by_cohort/`, hands off to Data Analyst.
27
+
28
+ **Data Analyst:**
29
+ - Phase 1 gate — lists known tables (`users`, `signups`, `conversions`), notes grain of each, flags that `conversions` has one row per event (not per user).
30
+ - Phase 2 gate — join path documented (left join `signups` → `conversions`, aggregated to weekly grain).
31
+ - Phase 3 — runs query, notes one cohort is suspicious (unusually high rate).
32
+ - Phase 4 — findings written, chart spec handed to BI Engineer for review.
33
+ - Phase 5 — Syn reviews, knowledge-harvest suggests adding an entry about the suspicious cohort's data quality issue.
34
+
35
+ ## When to escalate
36
+
37
+ - If answering the question requires modeling, feature engineering, or more than ~3 queries → escalate to `/data-scientist`.
38
+ - If the question is actually about infrastructure (missing tables, broken pipeline) → escalate to `/data-engineer`.
39
+ - If the chart is the real deliverable → consider running `/bi-engineer` directly.
40
+
41
+ ## See also
42
+
43
+ - [Data Analyst](../02-agents/data-analyst.md)
44
+ - [Join Path Protocol](../03-protocols/join-path.md)
45
+ - [Gate Pattern](../03-protocols/gate-pattern.md)