@lvlup-sw/exarchos 2.5.0 → 2.6.1

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 (554) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/AGENTS.md +1 -1
  3. package/README.md +24 -1
  4. package/commands/dogfood.md +31 -0
  5. package/commands/oneshot.md +178 -0
  6. package/commands/prune.md +90 -0
  7. package/dist/exarchos.js +286 -280
  8. package/package.json +7 -3
  9. package/skills/{cleanup → claude/cleanup}/SKILL.md +6 -0
  10. package/skills/{delegation → claude/delegation}/SKILL.md +50 -29
  11. package/skills/{delegation → claude/delegation}/references/troubleshooting.md +2 -2
  12. package/skills/claude/dogfood/SKILL.md +235 -0
  13. package/skills/claude/dogfood/references/report-template.md +109 -0
  14. package/skills/claude/dogfood/references/root-cause-patterns.md +227 -0
  15. package/skills/claude/oneshot-workflow/SKILL.md +468 -0
  16. package/skills/claude/oneshot-workflow/references/choice-state.md +65 -0
  17. package/skills/claude/prune-workflows/SKILL.md +290 -0
  18. package/skills/claude/prune-workflows/references/safeguards.md +74 -0
  19. package/skills/{quality-review → claude/quality-review}/SKILL.md +2 -0
  20. package/skills/{shepherd → claude/shepherd}/SKILL.md +4 -0
  21. package/skills/{spec-review → claude/spec-review}/SKILL.md +2 -0
  22. package/skills/{synthesis → claude/synthesis}/SKILL.md +40 -0
  23. package/skills/{workflow-state → claude/workflow-state}/SKILL.md +40 -4
  24. package/skills/{workflow-state → claude/workflow-state}/references/phase-transitions.md +22 -0
  25. package/skills/codex/brainstorming/SKILL.md +182 -0
  26. package/skills/codex/brainstorming/references/design-template.md +107 -0
  27. package/skills/codex/brainstorming/references/worked-example.md +58 -0
  28. package/skills/codex/cleanup/SKILL.md +169 -0
  29. package/skills/codex/cleanup/references/merge-verification.md +40 -0
  30. package/skills/codex/debug/SKILL.md +247 -0
  31. package/skills/codex/debug/references/hotfix-track.md +105 -0
  32. package/skills/codex/debug/references/investigation-checklist.md +217 -0
  33. package/skills/codex/debug/references/rca-template.md +150 -0
  34. package/skills/codex/debug/references/state-schema.md +294 -0
  35. package/skills/codex/debug/references/thorough-track.md +171 -0
  36. package/skills/codex/debug/references/triage-questions.md +155 -0
  37. package/skills/codex/debug/references/troubleshooting.md +47 -0
  38. package/skills/codex/delegation/SKILL.md +353 -0
  39. package/skills/codex/delegation/references/adaptive-orchestration.md +31 -0
  40. package/skills/codex/delegation/references/agent-teams-saga.md +254 -0
  41. package/skills/codex/delegation/references/fix-mode.md +118 -0
  42. package/skills/codex/delegation/references/fixer-prompt.md +174 -0
  43. package/skills/codex/delegation/references/implementer-prompt.md +401 -0
  44. package/skills/codex/delegation/references/parallel-strategy.md +124 -0
  45. package/skills/codex/delegation/references/pbt-patterns.md +172 -0
  46. package/skills/codex/delegation/references/pr-fixes-mode.md +155 -0
  47. package/skills/codex/delegation/references/rationalization-refutation.md +15 -0
  48. package/skills/codex/delegation/references/state-management.md +84 -0
  49. package/skills/codex/delegation/references/testing-patterns.md +146 -0
  50. package/skills/codex/delegation/references/troubleshooting.md +109 -0
  51. package/skills/codex/delegation/references/worked-example.md +104 -0
  52. package/skills/codex/delegation/references/workflow-steps.md +131 -0
  53. package/skills/codex/delegation/references/worktree-enforcement.md +71 -0
  54. package/skills/codex/dogfood/SKILL.md +235 -0
  55. package/skills/codex/dogfood/references/report-template.md +109 -0
  56. package/skills/codex/dogfood/references/root-cause-patterns.md +227 -0
  57. package/skills/codex/git-worktrees/SKILL.md +193 -0
  58. package/skills/codex/git-worktrees/references/commands-reference.md +78 -0
  59. package/skills/codex/implementation-planning/SKILL.md +289 -0
  60. package/skills/codex/implementation-planning/references/plan-document-template.md +42 -0
  61. package/skills/codex/implementation-planning/references/rationalization-refutation.md +13 -0
  62. package/skills/codex/implementation-planning/references/spec-tracing-guide.md +51 -0
  63. package/skills/codex/implementation-planning/references/task-template.md +63 -0
  64. package/skills/codex/implementation-planning/references/testing-strategy-guide.md +109 -0
  65. package/skills/codex/implementation-planning/references/worked-example.md +76 -0
  66. package/skills/codex/oneshot-workflow/SKILL.md +468 -0
  67. package/skills/codex/oneshot-workflow/references/choice-state.md +65 -0
  68. package/skills/codex/prune-workflows/SKILL.md +290 -0
  69. package/skills/codex/prune-workflows/references/safeguards.md +74 -0
  70. package/skills/codex/quality-review/SKILL.md +371 -0
  71. package/skills/codex/quality-review/references/auto-transition.md +47 -0
  72. package/skills/codex/quality-review/references/axiom-integration.md +135 -0
  73. package/skills/codex/quality-review/references/code-quality-checklist.md +171 -0
  74. package/skills/codex/quality-review/references/convergence-and-verdict.md +48 -0
  75. package/skills/codex/quality-review/references/gate-execution.md +60 -0
  76. package/skills/codex/quality-review/references/rationalization-refutation.md +13 -0
  77. package/skills/codex/quality-review/references/review-report-template.md +65 -0
  78. package/skills/codex/quality-review/references/security-checklist.md +79 -0
  79. package/skills/codex/quality-review/references/typescript-standards.md +24 -0
  80. package/skills/codex/refactor/SKILL.md +196 -0
  81. package/skills/codex/refactor/references/brief-template.md +81 -0
  82. package/skills/codex/refactor/references/doc-update-checklist.md +113 -0
  83. package/skills/codex/refactor/references/explore-checklist.md +79 -0
  84. package/skills/codex/refactor/references/overhaul-track.md +194 -0
  85. package/skills/codex/refactor/references/phases/auto-chain.md +267 -0
  86. package/skills/codex/refactor/references/phases/brief.md +176 -0
  87. package/skills/codex/refactor/references/phases/explore.md +132 -0
  88. package/skills/codex/refactor/references/phases/overhaul-delegate.md +136 -0
  89. package/skills/codex/refactor/references/phases/overhaul-plan.md +312 -0
  90. package/skills/codex/refactor/references/phases/overhaul-review.md +304 -0
  91. package/skills/codex/refactor/references/phases/polish-implement.md +347 -0
  92. package/skills/codex/refactor/references/phases/polish-validate.md +218 -0
  93. package/skills/codex/refactor/references/phases/update-docs.md +234 -0
  94. package/skills/codex/refactor/references/polish-track.md +152 -0
  95. package/skills/codex/shepherd/SKILL.md +251 -0
  96. package/skills/codex/shepherd/references/assess-checklist.md +170 -0
  97. package/skills/codex/shepherd/references/escalation-criteria.md +53 -0
  98. package/skills/codex/shepherd/references/fix-strategies.md +289 -0
  99. package/skills/codex/shepherd/references/gate-event-emission.md +47 -0
  100. package/skills/codex/shepherd/references/shepherd-event-schemas.md +56 -0
  101. package/skills/codex/spec-review/SKILL.md +294 -0
  102. package/skills/codex/spec-review/references/rationalization-refutation.md +13 -0
  103. package/skills/codex/spec-review/references/review-checklist.md +79 -0
  104. package/skills/codex/spec-review/references/worked-example.md +72 -0
  105. package/skills/codex/synthesis/SKILL.md +217 -0
  106. package/skills/codex/synthesis/references/github-native-stacking.md +135 -0
  107. package/skills/codex/synthesis/references/merge-ordering.md +50 -0
  108. package/skills/codex/synthesis/references/pr-descriptions.md +87 -0
  109. package/skills/codex/synthesis/references/synthesis-steps.md +145 -0
  110. package/skills/codex/synthesis/references/troubleshooting.md +115 -0
  111. package/skills/codex/workflow-state/SKILL.md +254 -0
  112. package/skills/codex/workflow-state/references/mcp-tool-reference.md +89 -0
  113. package/skills/codex/workflow-state/references/phase-transitions.md +206 -0
  114. package/skills/copilot/brainstorming/SKILL.md +182 -0
  115. package/skills/copilot/brainstorming/references/design-template.md +107 -0
  116. package/skills/copilot/brainstorming/references/worked-example.md +58 -0
  117. package/skills/copilot/cleanup/SKILL.md +169 -0
  118. package/skills/copilot/cleanup/references/merge-verification.md +40 -0
  119. package/skills/copilot/debug/SKILL.md +247 -0
  120. package/skills/copilot/debug/references/hotfix-track.md +105 -0
  121. package/skills/copilot/debug/references/investigation-checklist.md +217 -0
  122. package/skills/copilot/debug/references/rca-template.md +150 -0
  123. package/skills/copilot/debug/references/state-schema.md +294 -0
  124. package/skills/copilot/debug/references/thorough-track.md +171 -0
  125. package/skills/copilot/debug/references/triage-questions.md +155 -0
  126. package/skills/copilot/debug/references/troubleshooting.md +47 -0
  127. package/skills/copilot/delegation/SKILL.md +345 -0
  128. package/skills/copilot/delegation/references/adaptive-orchestration.md +31 -0
  129. package/skills/copilot/delegation/references/agent-teams-saga.md +254 -0
  130. package/skills/copilot/delegation/references/fix-mode.md +118 -0
  131. package/skills/copilot/delegation/references/fixer-prompt.md +174 -0
  132. package/skills/copilot/delegation/references/implementer-prompt.md +401 -0
  133. package/skills/copilot/delegation/references/parallel-strategy.md +124 -0
  134. package/skills/copilot/delegation/references/pbt-patterns.md +172 -0
  135. package/skills/copilot/delegation/references/pr-fixes-mode.md +155 -0
  136. package/skills/copilot/delegation/references/rationalization-refutation.md +15 -0
  137. package/skills/copilot/delegation/references/state-management.md +84 -0
  138. package/skills/copilot/delegation/references/testing-patterns.md +146 -0
  139. package/skills/copilot/delegation/references/troubleshooting.md +109 -0
  140. package/skills/copilot/delegation/references/worked-example.md +104 -0
  141. package/skills/copilot/delegation/references/workflow-steps.md +131 -0
  142. package/skills/copilot/delegation/references/worktree-enforcement.md +71 -0
  143. package/skills/copilot/dogfood/SKILL.md +235 -0
  144. package/skills/copilot/dogfood/references/report-template.md +109 -0
  145. package/skills/copilot/dogfood/references/root-cause-patterns.md +227 -0
  146. package/skills/copilot/git-worktrees/SKILL.md +193 -0
  147. package/skills/copilot/git-worktrees/references/commands-reference.md +78 -0
  148. package/skills/copilot/implementation-planning/SKILL.md +289 -0
  149. package/skills/copilot/implementation-planning/references/plan-document-template.md +42 -0
  150. package/skills/copilot/implementation-planning/references/rationalization-refutation.md +13 -0
  151. package/skills/copilot/implementation-planning/references/spec-tracing-guide.md +51 -0
  152. package/skills/copilot/implementation-planning/references/task-template.md +63 -0
  153. package/skills/copilot/implementation-planning/references/testing-strategy-guide.md +109 -0
  154. package/skills/copilot/implementation-planning/references/worked-example.md +76 -0
  155. package/skills/copilot/oneshot-workflow/SKILL.md +468 -0
  156. package/skills/copilot/oneshot-workflow/references/choice-state.md +65 -0
  157. package/skills/copilot/prune-workflows/SKILL.md +290 -0
  158. package/skills/copilot/prune-workflows/references/safeguards.md +74 -0
  159. package/skills/copilot/quality-review/SKILL.md +371 -0
  160. package/skills/copilot/quality-review/references/auto-transition.md +47 -0
  161. package/skills/copilot/quality-review/references/axiom-integration.md +135 -0
  162. package/skills/copilot/quality-review/references/code-quality-checklist.md +171 -0
  163. package/skills/copilot/quality-review/references/convergence-and-verdict.md +48 -0
  164. package/skills/copilot/quality-review/references/gate-execution.md +60 -0
  165. package/skills/copilot/quality-review/references/rationalization-refutation.md +13 -0
  166. package/skills/copilot/quality-review/references/review-report-template.md +65 -0
  167. package/skills/copilot/quality-review/references/security-checklist.md +79 -0
  168. package/skills/copilot/quality-review/references/typescript-standards.md +24 -0
  169. package/skills/copilot/refactor/SKILL.md +196 -0
  170. package/skills/copilot/refactor/references/brief-template.md +81 -0
  171. package/skills/copilot/refactor/references/doc-update-checklist.md +113 -0
  172. package/skills/copilot/refactor/references/explore-checklist.md +79 -0
  173. package/skills/copilot/refactor/references/overhaul-track.md +194 -0
  174. package/skills/copilot/refactor/references/phases/auto-chain.md +267 -0
  175. package/skills/copilot/refactor/references/phases/brief.md +176 -0
  176. package/skills/copilot/refactor/references/phases/explore.md +132 -0
  177. package/skills/copilot/refactor/references/phases/overhaul-delegate.md +136 -0
  178. package/skills/copilot/refactor/references/phases/overhaul-plan.md +312 -0
  179. package/skills/copilot/refactor/references/phases/overhaul-review.md +304 -0
  180. package/skills/copilot/refactor/references/phases/polish-implement.md +347 -0
  181. package/skills/copilot/refactor/references/phases/polish-validate.md +218 -0
  182. package/skills/copilot/refactor/references/phases/update-docs.md +234 -0
  183. package/skills/copilot/refactor/references/polish-track.md +152 -0
  184. package/skills/copilot/shepherd/SKILL.md +251 -0
  185. package/skills/copilot/shepherd/references/assess-checklist.md +170 -0
  186. package/skills/copilot/shepherd/references/escalation-criteria.md +53 -0
  187. package/skills/copilot/shepherd/references/fix-strategies.md +289 -0
  188. package/skills/copilot/shepherd/references/gate-event-emission.md +47 -0
  189. package/skills/copilot/shepherd/references/shepherd-event-schemas.md +56 -0
  190. package/skills/copilot/spec-review/SKILL.md +294 -0
  191. package/skills/copilot/spec-review/references/rationalization-refutation.md +13 -0
  192. package/skills/copilot/spec-review/references/review-checklist.md +79 -0
  193. package/skills/copilot/spec-review/references/worked-example.md +72 -0
  194. package/skills/copilot/synthesis/SKILL.md +217 -0
  195. package/skills/copilot/synthesis/references/github-native-stacking.md +135 -0
  196. package/skills/copilot/synthesis/references/merge-ordering.md +50 -0
  197. package/skills/copilot/synthesis/references/pr-descriptions.md +87 -0
  198. package/skills/copilot/synthesis/references/synthesis-steps.md +145 -0
  199. package/skills/copilot/synthesis/references/troubleshooting.md +115 -0
  200. package/skills/copilot/workflow-state/SKILL.md +254 -0
  201. package/skills/copilot/workflow-state/references/mcp-tool-reference.md +89 -0
  202. package/skills/copilot/workflow-state/references/phase-transitions.md +206 -0
  203. package/skills/cursor/brainstorming/SKILL.md +182 -0
  204. package/skills/cursor/brainstorming/references/design-template.md +107 -0
  205. package/skills/cursor/brainstorming/references/worked-example.md +58 -0
  206. package/skills/cursor/cleanup/SKILL.md +169 -0
  207. package/skills/cursor/cleanup/references/merge-verification.md +40 -0
  208. package/skills/cursor/debug/SKILL.md +247 -0
  209. package/skills/cursor/debug/references/hotfix-track.md +105 -0
  210. package/skills/cursor/debug/references/investigation-checklist.md +217 -0
  211. package/skills/cursor/debug/references/rca-template.md +150 -0
  212. package/skills/cursor/debug/references/state-schema.md +294 -0
  213. package/skills/cursor/debug/references/thorough-track.md +171 -0
  214. package/skills/cursor/debug/references/triage-questions.md +155 -0
  215. package/skills/cursor/debug/references/troubleshooting.md +47 -0
  216. package/skills/cursor/delegation/SKILL.md +351 -0
  217. package/skills/cursor/delegation/references/adaptive-orchestration.md +31 -0
  218. package/skills/cursor/delegation/references/agent-teams-saga.md +254 -0
  219. package/skills/cursor/delegation/references/fix-mode.md +118 -0
  220. package/skills/cursor/delegation/references/fixer-prompt.md +174 -0
  221. package/skills/cursor/delegation/references/implementer-prompt.md +401 -0
  222. package/skills/cursor/delegation/references/parallel-strategy.md +124 -0
  223. package/skills/cursor/delegation/references/pbt-patterns.md +172 -0
  224. package/skills/cursor/delegation/references/pr-fixes-mode.md +155 -0
  225. package/skills/cursor/delegation/references/rationalization-refutation.md +15 -0
  226. package/skills/cursor/delegation/references/state-management.md +84 -0
  227. package/skills/cursor/delegation/references/testing-patterns.md +146 -0
  228. package/skills/cursor/delegation/references/troubleshooting.md +109 -0
  229. package/skills/cursor/delegation/references/worked-example.md +104 -0
  230. package/skills/cursor/delegation/references/workflow-steps.md +131 -0
  231. package/skills/cursor/delegation/references/worktree-enforcement.md +71 -0
  232. package/skills/cursor/dogfood/SKILL.md +235 -0
  233. package/skills/cursor/dogfood/references/report-template.md +109 -0
  234. package/skills/cursor/dogfood/references/root-cause-patterns.md +227 -0
  235. package/skills/cursor/git-worktrees/SKILL.md +193 -0
  236. package/skills/cursor/git-worktrees/references/commands-reference.md +78 -0
  237. package/skills/cursor/implementation-planning/SKILL.md +289 -0
  238. package/skills/cursor/implementation-planning/references/plan-document-template.md +42 -0
  239. package/skills/cursor/implementation-planning/references/rationalization-refutation.md +13 -0
  240. package/skills/cursor/implementation-planning/references/spec-tracing-guide.md +51 -0
  241. package/skills/cursor/implementation-planning/references/task-template.md +63 -0
  242. package/skills/cursor/implementation-planning/references/testing-strategy-guide.md +109 -0
  243. package/skills/cursor/implementation-planning/references/worked-example.md +76 -0
  244. package/skills/cursor/oneshot-workflow/SKILL.md +468 -0
  245. package/skills/cursor/oneshot-workflow/references/choice-state.md +65 -0
  246. package/skills/cursor/prune-workflows/SKILL.md +290 -0
  247. package/skills/cursor/prune-workflows/references/safeguards.md +74 -0
  248. package/skills/cursor/quality-review/SKILL.md +371 -0
  249. package/skills/cursor/quality-review/references/auto-transition.md +47 -0
  250. package/skills/cursor/quality-review/references/axiom-integration.md +135 -0
  251. package/skills/cursor/quality-review/references/code-quality-checklist.md +171 -0
  252. package/skills/cursor/quality-review/references/convergence-and-verdict.md +48 -0
  253. package/skills/cursor/quality-review/references/gate-execution.md +60 -0
  254. package/skills/cursor/quality-review/references/rationalization-refutation.md +13 -0
  255. package/skills/cursor/quality-review/references/review-report-template.md +65 -0
  256. package/skills/cursor/quality-review/references/security-checklist.md +79 -0
  257. package/skills/cursor/quality-review/references/typescript-standards.md +24 -0
  258. package/skills/cursor/refactor/SKILL.md +196 -0
  259. package/skills/cursor/refactor/references/brief-template.md +81 -0
  260. package/skills/cursor/refactor/references/doc-update-checklist.md +113 -0
  261. package/skills/cursor/refactor/references/explore-checklist.md +79 -0
  262. package/skills/cursor/refactor/references/overhaul-track.md +194 -0
  263. package/skills/cursor/refactor/references/phases/auto-chain.md +267 -0
  264. package/skills/cursor/refactor/references/phases/brief.md +176 -0
  265. package/skills/cursor/refactor/references/phases/explore.md +132 -0
  266. package/skills/cursor/refactor/references/phases/overhaul-delegate.md +136 -0
  267. package/skills/cursor/refactor/references/phases/overhaul-plan.md +312 -0
  268. package/skills/cursor/refactor/references/phases/overhaul-review.md +304 -0
  269. package/skills/cursor/refactor/references/phases/polish-implement.md +347 -0
  270. package/skills/cursor/refactor/references/phases/polish-validate.md +218 -0
  271. package/skills/cursor/refactor/references/phases/update-docs.md +234 -0
  272. package/skills/cursor/refactor/references/polish-track.md +152 -0
  273. package/skills/cursor/shepherd/SKILL.md +251 -0
  274. package/skills/cursor/shepherd/references/assess-checklist.md +170 -0
  275. package/skills/cursor/shepherd/references/escalation-criteria.md +53 -0
  276. package/skills/cursor/shepherd/references/fix-strategies.md +289 -0
  277. package/skills/cursor/shepherd/references/gate-event-emission.md +47 -0
  278. package/skills/cursor/shepherd/references/shepherd-event-schemas.md +56 -0
  279. package/skills/cursor/spec-review/SKILL.md +294 -0
  280. package/skills/cursor/spec-review/references/rationalization-refutation.md +13 -0
  281. package/skills/cursor/spec-review/references/review-checklist.md +79 -0
  282. package/skills/cursor/spec-review/references/worked-example.md +72 -0
  283. package/skills/cursor/synthesis/SKILL.md +217 -0
  284. package/skills/cursor/synthesis/references/github-native-stacking.md +135 -0
  285. package/skills/cursor/synthesis/references/merge-ordering.md +50 -0
  286. package/skills/cursor/synthesis/references/pr-descriptions.md +87 -0
  287. package/skills/cursor/synthesis/references/synthesis-steps.md +145 -0
  288. package/skills/cursor/synthesis/references/troubleshooting.md +115 -0
  289. package/skills/cursor/workflow-state/SKILL.md +254 -0
  290. package/skills/cursor/workflow-state/references/mcp-tool-reference.md +89 -0
  291. package/skills/cursor/workflow-state/references/phase-transitions.md +206 -0
  292. package/skills/generic/brainstorming/SKILL.md +182 -0
  293. package/skills/generic/brainstorming/references/design-template.md +107 -0
  294. package/skills/generic/brainstorming/references/worked-example.md +58 -0
  295. package/skills/generic/cleanup/SKILL.md +169 -0
  296. package/skills/generic/cleanup/references/merge-verification.md +40 -0
  297. package/skills/generic/debug/SKILL.md +247 -0
  298. package/skills/generic/debug/references/hotfix-track.md +105 -0
  299. package/skills/generic/debug/references/investigation-checklist.md +217 -0
  300. package/skills/generic/debug/references/rca-template.md +150 -0
  301. package/skills/generic/debug/references/state-schema.md +294 -0
  302. package/skills/generic/debug/references/thorough-track.md +171 -0
  303. package/skills/generic/debug/references/triage-questions.md +155 -0
  304. package/skills/generic/debug/references/troubleshooting.md +47 -0
  305. package/skills/generic/delegation/SKILL.md +345 -0
  306. package/skills/generic/delegation/references/adaptive-orchestration.md +31 -0
  307. package/skills/generic/delegation/references/agent-teams-saga.md +254 -0
  308. package/skills/generic/delegation/references/fix-mode.md +118 -0
  309. package/skills/generic/delegation/references/fixer-prompt.md +174 -0
  310. package/skills/generic/delegation/references/implementer-prompt.md +401 -0
  311. package/skills/generic/delegation/references/parallel-strategy.md +124 -0
  312. package/skills/generic/delegation/references/pbt-patterns.md +172 -0
  313. package/skills/generic/delegation/references/pr-fixes-mode.md +155 -0
  314. package/skills/generic/delegation/references/rationalization-refutation.md +15 -0
  315. package/skills/generic/delegation/references/state-management.md +84 -0
  316. package/skills/generic/delegation/references/testing-patterns.md +146 -0
  317. package/skills/generic/delegation/references/troubleshooting.md +109 -0
  318. package/skills/generic/delegation/references/worked-example.md +104 -0
  319. package/skills/generic/delegation/references/workflow-steps.md +131 -0
  320. package/skills/generic/delegation/references/worktree-enforcement.md +71 -0
  321. package/skills/generic/dogfood/SKILL.md +235 -0
  322. package/skills/generic/dogfood/references/report-template.md +109 -0
  323. package/skills/generic/dogfood/references/root-cause-patterns.md +227 -0
  324. package/skills/generic/git-worktrees/SKILL.md +193 -0
  325. package/skills/generic/git-worktrees/references/commands-reference.md +78 -0
  326. package/skills/generic/implementation-planning/SKILL.md +289 -0
  327. package/skills/generic/implementation-planning/references/plan-document-template.md +42 -0
  328. package/skills/generic/implementation-planning/references/rationalization-refutation.md +13 -0
  329. package/skills/generic/implementation-planning/references/spec-tracing-guide.md +51 -0
  330. package/skills/generic/implementation-planning/references/task-template.md +63 -0
  331. package/skills/generic/implementation-planning/references/testing-strategy-guide.md +109 -0
  332. package/skills/generic/implementation-planning/references/worked-example.md +76 -0
  333. package/skills/generic/oneshot-workflow/SKILL.md +468 -0
  334. package/skills/generic/oneshot-workflow/references/choice-state.md +65 -0
  335. package/skills/generic/prune-workflows/SKILL.md +290 -0
  336. package/skills/generic/prune-workflows/references/safeguards.md +74 -0
  337. package/skills/generic/quality-review/SKILL.md +371 -0
  338. package/skills/generic/quality-review/references/auto-transition.md +47 -0
  339. package/skills/generic/quality-review/references/axiom-integration.md +135 -0
  340. package/skills/generic/quality-review/references/code-quality-checklist.md +171 -0
  341. package/skills/generic/quality-review/references/convergence-and-verdict.md +48 -0
  342. package/skills/generic/quality-review/references/gate-execution.md +60 -0
  343. package/skills/generic/quality-review/references/rationalization-refutation.md +13 -0
  344. package/skills/generic/quality-review/references/review-report-template.md +65 -0
  345. package/skills/generic/quality-review/references/security-checklist.md +79 -0
  346. package/skills/generic/quality-review/references/typescript-standards.md +24 -0
  347. package/skills/generic/refactor/SKILL.md +196 -0
  348. package/skills/generic/refactor/references/brief-template.md +81 -0
  349. package/skills/generic/refactor/references/doc-update-checklist.md +113 -0
  350. package/skills/generic/refactor/references/explore-checklist.md +79 -0
  351. package/skills/generic/refactor/references/overhaul-track.md +194 -0
  352. package/skills/generic/refactor/references/phases/auto-chain.md +267 -0
  353. package/skills/generic/refactor/references/phases/brief.md +176 -0
  354. package/skills/generic/refactor/references/phases/explore.md +132 -0
  355. package/skills/generic/refactor/references/phases/overhaul-delegate.md +136 -0
  356. package/skills/generic/refactor/references/phases/overhaul-plan.md +312 -0
  357. package/skills/generic/refactor/references/phases/overhaul-review.md +304 -0
  358. package/skills/generic/refactor/references/phases/polish-implement.md +347 -0
  359. package/skills/generic/refactor/references/phases/polish-validate.md +218 -0
  360. package/skills/generic/refactor/references/phases/update-docs.md +234 -0
  361. package/skills/generic/refactor/references/polish-track.md +152 -0
  362. package/skills/generic/shepherd/SKILL.md +251 -0
  363. package/skills/generic/shepherd/references/assess-checklist.md +170 -0
  364. package/skills/generic/shepherd/references/escalation-criteria.md +53 -0
  365. package/skills/generic/shepherd/references/fix-strategies.md +289 -0
  366. package/skills/generic/shepherd/references/gate-event-emission.md +47 -0
  367. package/skills/generic/shepherd/references/shepherd-event-schemas.md +56 -0
  368. package/skills/generic/spec-review/SKILL.md +294 -0
  369. package/skills/generic/spec-review/references/rationalization-refutation.md +13 -0
  370. package/skills/generic/spec-review/references/review-checklist.md +79 -0
  371. package/skills/generic/spec-review/references/worked-example.md +72 -0
  372. package/skills/generic/synthesis/SKILL.md +217 -0
  373. package/skills/generic/synthesis/references/github-native-stacking.md +135 -0
  374. package/skills/generic/synthesis/references/merge-ordering.md +50 -0
  375. package/skills/generic/synthesis/references/pr-descriptions.md +87 -0
  376. package/skills/generic/synthesis/references/synthesis-steps.md +145 -0
  377. package/skills/generic/synthesis/references/troubleshooting.md +115 -0
  378. package/skills/generic/workflow-state/SKILL.md +254 -0
  379. package/skills/generic/workflow-state/references/mcp-tool-reference.md +89 -0
  380. package/skills/generic/workflow-state/references/phase-transitions.md +206 -0
  381. package/skills/opencode/brainstorming/SKILL.md +182 -0
  382. package/skills/opencode/brainstorming/references/design-template.md +107 -0
  383. package/skills/opencode/brainstorming/references/worked-example.md +58 -0
  384. package/skills/opencode/cleanup/SKILL.md +169 -0
  385. package/skills/opencode/cleanup/references/merge-verification.md +40 -0
  386. package/skills/opencode/debug/SKILL.md +247 -0
  387. package/skills/opencode/debug/references/hotfix-track.md +105 -0
  388. package/skills/opencode/debug/references/investigation-checklist.md +217 -0
  389. package/skills/opencode/debug/references/rca-template.md +150 -0
  390. package/skills/opencode/debug/references/state-schema.md +294 -0
  391. package/skills/opencode/debug/references/thorough-track.md +171 -0
  392. package/skills/opencode/debug/references/triage-questions.md +155 -0
  393. package/skills/opencode/debug/references/troubleshooting.md +47 -0
  394. package/skills/opencode/delegation/SKILL.md +353 -0
  395. package/skills/opencode/delegation/references/adaptive-orchestration.md +31 -0
  396. package/skills/opencode/delegation/references/agent-teams-saga.md +254 -0
  397. package/skills/opencode/delegation/references/fix-mode.md +118 -0
  398. package/skills/opencode/delegation/references/fixer-prompt.md +174 -0
  399. package/skills/opencode/delegation/references/implementer-prompt.md +401 -0
  400. package/skills/opencode/delegation/references/parallel-strategy.md +124 -0
  401. package/skills/opencode/delegation/references/pbt-patterns.md +172 -0
  402. package/skills/opencode/delegation/references/pr-fixes-mode.md +155 -0
  403. package/skills/opencode/delegation/references/rationalization-refutation.md +15 -0
  404. package/skills/opencode/delegation/references/state-management.md +84 -0
  405. package/skills/opencode/delegation/references/testing-patterns.md +146 -0
  406. package/skills/opencode/delegation/references/troubleshooting.md +109 -0
  407. package/skills/opencode/delegation/references/worked-example.md +104 -0
  408. package/skills/opencode/delegation/references/workflow-steps.md +131 -0
  409. package/skills/opencode/delegation/references/worktree-enforcement.md +71 -0
  410. package/skills/opencode/dogfood/SKILL.md +235 -0
  411. package/skills/opencode/dogfood/references/report-template.md +109 -0
  412. package/skills/opencode/dogfood/references/root-cause-patterns.md +227 -0
  413. package/skills/opencode/git-worktrees/SKILL.md +193 -0
  414. package/skills/opencode/git-worktrees/references/commands-reference.md +78 -0
  415. package/skills/opencode/implementation-planning/SKILL.md +289 -0
  416. package/skills/opencode/implementation-planning/references/plan-document-template.md +42 -0
  417. package/skills/opencode/implementation-planning/references/rationalization-refutation.md +13 -0
  418. package/skills/opencode/implementation-planning/references/spec-tracing-guide.md +51 -0
  419. package/skills/opencode/implementation-planning/references/task-template.md +63 -0
  420. package/skills/opencode/implementation-planning/references/testing-strategy-guide.md +109 -0
  421. package/skills/opencode/implementation-planning/references/worked-example.md +76 -0
  422. package/skills/opencode/oneshot-workflow/SKILL.md +468 -0
  423. package/skills/opencode/oneshot-workflow/references/choice-state.md +65 -0
  424. package/skills/opencode/prune-workflows/SKILL.md +290 -0
  425. package/skills/opencode/prune-workflows/references/safeguards.md +74 -0
  426. package/skills/opencode/quality-review/SKILL.md +371 -0
  427. package/skills/opencode/quality-review/references/auto-transition.md +47 -0
  428. package/skills/opencode/quality-review/references/axiom-integration.md +135 -0
  429. package/skills/opencode/quality-review/references/code-quality-checklist.md +171 -0
  430. package/skills/opencode/quality-review/references/convergence-and-verdict.md +48 -0
  431. package/skills/opencode/quality-review/references/gate-execution.md +60 -0
  432. package/skills/opencode/quality-review/references/rationalization-refutation.md +13 -0
  433. package/skills/opencode/quality-review/references/review-report-template.md +65 -0
  434. package/skills/opencode/quality-review/references/security-checklist.md +79 -0
  435. package/skills/opencode/quality-review/references/typescript-standards.md +24 -0
  436. package/skills/opencode/refactor/SKILL.md +196 -0
  437. package/skills/opencode/refactor/references/brief-template.md +81 -0
  438. package/skills/opencode/refactor/references/doc-update-checklist.md +113 -0
  439. package/skills/opencode/refactor/references/explore-checklist.md +79 -0
  440. package/skills/opencode/refactor/references/overhaul-track.md +194 -0
  441. package/skills/opencode/refactor/references/phases/auto-chain.md +267 -0
  442. package/skills/opencode/refactor/references/phases/brief.md +176 -0
  443. package/skills/opencode/refactor/references/phases/explore.md +132 -0
  444. package/skills/opencode/refactor/references/phases/overhaul-delegate.md +136 -0
  445. package/skills/opencode/refactor/references/phases/overhaul-plan.md +312 -0
  446. package/skills/opencode/refactor/references/phases/overhaul-review.md +304 -0
  447. package/skills/opencode/refactor/references/phases/polish-implement.md +347 -0
  448. package/skills/opencode/refactor/references/phases/polish-validate.md +218 -0
  449. package/skills/opencode/refactor/references/phases/update-docs.md +234 -0
  450. package/skills/opencode/refactor/references/polish-track.md +152 -0
  451. package/skills/opencode/shepherd/SKILL.md +251 -0
  452. package/skills/opencode/shepherd/references/assess-checklist.md +170 -0
  453. package/skills/opencode/shepherd/references/escalation-criteria.md +53 -0
  454. package/skills/opencode/shepherd/references/fix-strategies.md +289 -0
  455. package/skills/opencode/shepherd/references/gate-event-emission.md +47 -0
  456. package/skills/opencode/shepherd/references/shepherd-event-schemas.md +56 -0
  457. package/skills/opencode/spec-review/SKILL.md +294 -0
  458. package/skills/opencode/spec-review/references/rationalization-refutation.md +13 -0
  459. package/skills/opencode/spec-review/references/review-checklist.md +79 -0
  460. package/skills/opencode/spec-review/references/worked-example.md +72 -0
  461. package/skills/opencode/synthesis/SKILL.md +217 -0
  462. package/skills/opencode/synthesis/references/github-native-stacking.md +135 -0
  463. package/skills/opencode/synthesis/references/merge-ordering.md +50 -0
  464. package/skills/opencode/synthesis/references/pr-descriptions.md +87 -0
  465. package/skills/opencode/synthesis/references/synthesis-steps.md +145 -0
  466. package/skills/opencode/synthesis/references/troubleshooting.md +115 -0
  467. package/skills/opencode/workflow-state/SKILL.md +254 -0
  468. package/skills/opencode/workflow-state/references/mcp-tool-reference.md +89 -0
  469. package/skills/opencode/workflow-state/references/phase-transitions.md +206 -0
  470. package/dist/node_modules/electron/index.js +0 -1
  471. package/dist/node_modules/electron/package.json +0 -1
  472. package/dist/node_modules/playwright-core/index.js +0 -1
  473. package/dist/node_modules/playwright-core/package.json +0 -1
  474. package/skills/shared/prompts/context-reading.md +0 -66
  475. package/skills/shared/prompts/report-format.md +0 -54
  476. package/skills/shared/prompts/tdd-requirements.md +0 -39
  477. package/skills/shared/references/coding-standards.md +0 -46
  478. package/skills/shared/references/mcp-tool-guidance.md +0 -39
  479. package/skills/shared/references/skill-path-resolution.md +0 -10
  480. package/skills/shared/references/tdd.md +0 -58
  481. package/skills/shared/references/telemetry-awareness.md +0 -9
  482. /package/skills/{brainstorming → claude/brainstorming}/SKILL.md +0 -0
  483. /package/skills/{brainstorming → claude/brainstorming}/references/design-template.md +0 -0
  484. /package/skills/{brainstorming → claude/brainstorming}/references/worked-example.md +0 -0
  485. /package/skills/{cleanup → claude/cleanup}/references/merge-verification.md +0 -0
  486. /package/skills/{debug → claude/debug}/SKILL.md +0 -0
  487. /package/skills/{debug → claude/debug}/references/hotfix-track.md +0 -0
  488. /package/skills/{debug → claude/debug}/references/investigation-checklist.md +0 -0
  489. /package/skills/{debug → claude/debug}/references/rca-template.md +0 -0
  490. /package/skills/{debug → claude/debug}/references/state-schema.md +0 -0
  491. /package/skills/{debug → claude/debug}/references/thorough-track.md +0 -0
  492. /package/skills/{debug → claude/debug}/references/triage-questions.md +0 -0
  493. /package/skills/{debug → claude/debug}/references/troubleshooting.md +0 -0
  494. /package/skills/{delegation → claude/delegation}/references/adaptive-orchestration.md +0 -0
  495. /package/skills/{delegation → claude/delegation}/references/agent-teams-saga.md +0 -0
  496. /package/skills/{delegation → claude/delegation}/references/fix-mode.md +0 -0
  497. /package/skills/{delegation → claude/delegation}/references/fixer-prompt.md +0 -0
  498. /package/skills/{delegation → claude/delegation}/references/implementer-prompt.md +0 -0
  499. /package/skills/{delegation → claude/delegation}/references/parallel-strategy.md +0 -0
  500. /package/skills/{delegation → claude/delegation}/references/pbt-patterns.md +0 -0
  501. /package/skills/{delegation → claude/delegation}/references/pr-fixes-mode.md +0 -0
  502. /package/skills/{delegation → claude/delegation}/references/rationalization-refutation.md +0 -0
  503. /package/skills/{delegation → claude/delegation}/references/state-management.md +0 -0
  504. /package/skills/{delegation → claude/delegation}/references/testing-patterns.md +0 -0
  505. /package/skills/{delegation → claude/delegation}/references/worked-example.md +0 -0
  506. /package/skills/{delegation → claude/delegation}/references/workflow-steps.md +0 -0
  507. /package/skills/{delegation → claude/delegation}/references/worktree-enforcement.md +0 -0
  508. /package/skills/{git-worktrees → claude/git-worktrees}/SKILL.md +0 -0
  509. /package/skills/{git-worktrees → claude/git-worktrees}/references/commands-reference.md +0 -0
  510. /package/skills/{implementation-planning → claude/implementation-planning}/SKILL.md +0 -0
  511. /package/skills/{implementation-planning → claude/implementation-planning}/references/plan-document-template.md +0 -0
  512. /package/skills/{implementation-planning → claude/implementation-planning}/references/rationalization-refutation.md +0 -0
  513. /package/skills/{implementation-planning → claude/implementation-planning}/references/spec-tracing-guide.md +0 -0
  514. /package/skills/{implementation-planning → claude/implementation-planning}/references/task-template.md +0 -0
  515. /package/skills/{implementation-planning → claude/implementation-planning}/references/testing-strategy-guide.md +0 -0
  516. /package/skills/{implementation-planning → claude/implementation-planning}/references/worked-example.md +0 -0
  517. /package/skills/{quality-review → claude/quality-review}/references/auto-transition.md +0 -0
  518. /package/skills/{quality-review → claude/quality-review}/references/axiom-integration.md +0 -0
  519. /package/skills/{quality-review → claude/quality-review}/references/code-quality-checklist.md +0 -0
  520. /package/skills/{quality-review → claude/quality-review}/references/convergence-and-verdict.md +0 -0
  521. /package/skills/{quality-review → claude/quality-review}/references/gate-execution.md +0 -0
  522. /package/skills/{quality-review → claude/quality-review}/references/rationalization-refutation.md +0 -0
  523. /package/skills/{quality-review → claude/quality-review}/references/review-report-template.md +0 -0
  524. /package/skills/{quality-review → claude/quality-review}/references/security-checklist.md +0 -0
  525. /package/skills/{quality-review → claude/quality-review}/references/typescript-standards.md +0 -0
  526. /package/skills/{refactor → claude/refactor}/SKILL.md +0 -0
  527. /package/skills/{refactor → claude/refactor}/references/brief-template.md +0 -0
  528. /package/skills/{refactor → claude/refactor}/references/doc-update-checklist.md +0 -0
  529. /package/skills/{refactor → claude/refactor}/references/explore-checklist.md +0 -0
  530. /package/skills/{refactor → claude/refactor}/references/overhaul-track.md +0 -0
  531. /package/skills/{refactor → claude/refactor/references}/phases/auto-chain.md +0 -0
  532. /package/skills/{refactor → claude/refactor/references}/phases/brief.md +0 -0
  533. /package/skills/{refactor → claude/refactor/references}/phases/explore.md +0 -0
  534. /package/skills/{refactor → claude/refactor/references}/phases/overhaul-delegate.md +0 -0
  535. /package/skills/{refactor → claude/refactor/references}/phases/overhaul-plan.md +0 -0
  536. /package/skills/{refactor → claude/refactor/references}/phases/overhaul-review.md +0 -0
  537. /package/skills/{refactor → claude/refactor/references}/phases/polish-implement.md +0 -0
  538. /package/skills/{refactor → claude/refactor/references}/phases/polish-validate.md +0 -0
  539. /package/skills/{refactor → claude/refactor/references}/phases/update-docs.md +0 -0
  540. /package/skills/{refactor → claude/refactor}/references/polish-track.md +0 -0
  541. /package/skills/{shepherd → claude/shepherd}/references/assess-checklist.md +0 -0
  542. /package/skills/{shepherd → claude/shepherd}/references/escalation-criteria.md +0 -0
  543. /package/skills/{shepherd → claude/shepherd}/references/fix-strategies.md +0 -0
  544. /package/skills/{shepherd → claude/shepherd}/references/gate-event-emission.md +0 -0
  545. /package/skills/{shepherd → claude/shepherd}/references/shepherd-event-schemas.md +0 -0
  546. /package/skills/{spec-review → claude/spec-review}/references/rationalization-refutation.md +0 -0
  547. /package/skills/{spec-review → claude/spec-review}/references/review-checklist.md +0 -0
  548. /package/skills/{spec-review → claude/spec-review}/references/worked-example.md +0 -0
  549. /package/skills/{synthesis → claude/synthesis}/references/github-native-stacking.md +0 -0
  550. /package/skills/{synthesis → claude/synthesis}/references/merge-ordering.md +0 -0
  551. /package/skills/{synthesis → claude/synthesis}/references/pr-descriptions.md +0 -0
  552. /package/skills/{synthesis → claude/synthesis}/references/synthesis-steps.md +0 -0
  553. /package/skills/{synthesis → claude/synthesis}/references/troubleshooting.md +0 -0
  554. /package/skills/{workflow-state → claude/workflow-state}/references/mcp-tool-reference.md +0 -0
@@ -0,0 +1,227 @@
1
+ # Root Cause Patterns
2
+
3
+ Common failure patterns observed from dogfooding Exarchos workflows. Use this reference to quickly diagnose failures during `/dogfood` triage.
4
+
5
+ Each pattern includes a **Debug trace check** showing which MCP self-service queries to run for diagnosis. These queries use the same platform-agnostic tools available to any MCP client.
6
+
7
+ ---
8
+
9
+ ## Code Bug Patterns
10
+
11
+ ### Schema Too Strict
12
+ **Symptom:** Zod validation rejects input that should be valid.
13
+ **Examples:**
14
+ - `branch: null` rejected on pending tasks (should be nullable)
15
+ - `status: "completed"` rejected (only accepts `"complete"`)
16
+ - Required fields that should be optional for certain task states
17
+
18
+ **Diagnosis:** Compare the rejected input against the Zod schema in `servers/exarchos-mcp/src/`. If the input represents a valid real-world state, the schema is too strict.
19
+
20
+ **Debug trace check:** Use `exarchos_workflow describe(actions: ['set'])` or `exarchos_event describe(eventTypes: ['...'])` to get the authoritative JSON Schema. Compare the rejected field's type/constraints against the schema output. If the schema is stricter than the domain allows, it's a code bug.
21
+
22
+ **Historical:** #876 (null branch), #941 (completed vs complete)
23
+
24
+ ### Stale Cache / Sequence Divergence
25
+ **Symptom:** CAS retry loop exhaustion, `CLAIM_FAILED`, `SEQUENCE_CONFLICT` with no concurrent writers.
26
+ **Examples:**
27
+ - `.seq` file from prior session disagrees with JSONL line count
28
+ - All retries produce the same mismatch
29
+
30
+ **Diagnosis:** Check if the error occurs on first attempt with no other agents running. If so, it's a stale cache issue, not concurrency.
31
+
32
+ **Debug trace check:** Use `exarchos_event query(stream)` to count events and compare against the sequence number in the error. Use `exarchos_view telemetry` to check if there are concurrent tool invocations. A mismatch with no interleaved writers confirms stale cache.
33
+
34
+ **Historical:** #939 (stale .seq cache)
35
+
36
+ ### Gate Over-Enforcement
37
+ **Symptom:** Workflow blocked by a gate that doesn't apply to the current task type.
38
+ **Examples:**
39
+ - TDD compliance gate blocks documentation-only tasks
40
+ - Manual evidence parameter accepted but not consulted for bypass
41
+
42
+ **Diagnosis:** Check if the gate has exemption logic for the task's characteristics (file types changed, task category). If not, the gate needs conditional enforcement.
43
+
44
+ **Debug trace check:** Use `exarchos_orchestrate describe(actions: ['check_tdd_compliance'])` to inspect gate metadata (blocking, dimension). Use `exarchos_view convergence` to see if this gate is systematically failing. Use `exarchos_workflow get` to check task metadata that should trigger exemptions.
45
+
46
+ **Historical:** #940 (TDD gate on docs-only tasks)
47
+
48
+ ### Silent State Corruption
49
+ **Symptom:** Debug trace reveals workflow state that doesn't match the event log. Only visible via server-side inspection — the conversation shows no errors.
50
+ **Examples:**
51
+ - Events accepted but state not updated (projection bug)
52
+ - Phase field shows a value that no transition event supports
53
+ - Task status regressed to a prior state
54
+
55
+ **Diagnosis:** Compare the event stream (chronological record of what happened) against the current workflow state (projected view). If the state can't be derived from the event sequence, there's a projection or state-rebuild bug.
56
+
57
+ **Debug trace check:** Read full event log via `exarchos_event query(stream)`, then read state via `exarchos_workflow get`. Walk the events forward and verify the final state matches. Use `exarchos_workflow reconcile` to see if reconciliation produces a different state — if so, the live projection diverged.
58
+
59
+ ### Topology/Engine Mismatch
60
+ **Symptom:** HSM topology defines a transition but the engine rejects it, or vice versa.
61
+ **Examples:**
62
+ - Agent attempts a transition that exists in `describe(topology)` but gets `INVALID_TRANSITION`
63
+ - Guard defined in topology never fires (guard handler not registered)
64
+ - Effect defined in topology doesn't produce expected side effect
65
+
66
+ **Diagnosis:** Compare `exarchos_workflow describe(topology)` output against actual engine behavior. The topology is the declared specification; if the engine doesn't honor it, the engine has a bug.
67
+
68
+ **Debug trace check:** Use `describe(topology: '<workflowType>')` to get the full HSM definition. Identify the transition the agent attempted. Check guards, effects, and target state. Then check `workflow.guard-failed` events in the log for the specific guard that blocked it. If the guard isn't in the topology definition but still fires, the engine has undeclared guards.
69
+
70
+ ### Auto-Emission Failure
71
+ **Symptom:** An action's gate metadata declares `autoEmits` events, but those events don't appear in the event log after the action succeeds.
72
+ **Examples:**
73
+ - `task_complete` should auto-emit `task.completed` but no such event appears
74
+ - `check_tdd_compliance` should auto-emit `gate.executed` but the gate event is missing
75
+
76
+ **Diagnosis:** Compare `exarchos_orchestrate describe(actions: ['<action>'])` auto-emission metadata against `exarchos_event query(stream)` filtered for the expected event type after the action's timestamp.
77
+
78
+ **Debug trace check:** Run `describe(actions: ['<action>'])` → note `autoEmits` field. Query event log filtered by type and time range. If the event is missing, the auto-emission handler has a bug.
79
+
80
+ ---
81
+
82
+ ## Documentation Issue Patterns
83
+
84
+ ### Schema-Doc Drift
85
+ **Symptom:** Agent constructs payloads from skill doc examples that fail Zod validation. Multiple retries with different field names.
86
+ **Examples:**
87
+ - Skill doc shows `gate` field, actual schema requires `gateName`
88
+ - Skill doc omits required fields like `taskId`
89
+ - Skill doc includes fields (`prNumbers`, `maxIterations`) that aren't in the schema
90
+
91
+ **Diagnosis:** Compare the example payloads in skill docs against the `describe` output. The `describe` API returns the authoritative JSON Schema — it is the source of truth.
92
+
93
+ **Debug trace check:** Use `exarchos_orchestrate describe(actions: ['<action>'])` or `exarchos_event describe(eventTypes: ['<type>'])` to get the authoritative schema. Diff field names, types, and required status against what skill docs prescribe. Any mismatch is schema-doc drift.
94
+
95
+ **Historical:** #964 (shepherd event payloads)
96
+
97
+ ### Unknown Valid Values
98
+ **Symptom:** Agent guesses enum values and fails with `invalid_enum_value`.
99
+ **Examples:**
100
+ - Agent tries `wave.completed` when valid type is `workflow.transition`
101
+ - Agent doesn't know which event types exist
102
+
103
+ **Diagnosis:** Check if the skill docs list the valid enum values. If not, the agent has to guess — that's a documentation gap.
104
+
105
+ **Debug trace check:** Use `exarchos_event describe(emissionGuide: true)` to get the full event type catalog organized by emission source (auto/model/hook/planned). Cross-reference against what skill docs list. Missing types in the skill docs = documentation gap.
106
+
107
+ **Historical:** #741 (unknown event types)
108
+
109
+ ### Path Resolution
110
+ **Symptom:** `ENOENT` errors when scripts are invoked via documented paths.
111
+ **Examples:**
112
+ - Skill references `scripts/check-tdd-compliance.sh` but script lives at `~/.claude/scripts/`
113
+ - MCP orchestrate `spawnSync` fails because CWD isn't the exarchos install dir
114
+
115
+ **Diagnosis:** Check if the script exists at the path referenced in the skill docs. Then check where the installer actually places it. Mismatch = path resolution bug.
116
+
117
+ **Debug trace check:** Use `exarchos_orchestrate describe(actions: ['<action>'])` to verify what the server expects for script paths. If the describe output shows a different path convention than skill docs, the docs need updating.
118
+
119
+ **Historical:** #942 (scripts/ relative to CWD)
120
+
121
+ ### Playbook-Skill Divergence
122
+ **Symptom:** Playbook prescribes tools, events, or transition criteria that differ from what the skill docs instruct. Agent follows skill docs and fails; playbook had the correct answer.
123
+ **Examples:**
124
+ - Skill says to emit `team.started`, playbook says to emit `team.spawned`
125
+ - Skill says phase transitions on "all tasks complete", playbook says it also requires `teamDisbanded`
126
+ - Skill doesn't mention a human checkpoint that the playbook requires
127
+ - Skill lists 3 tools for a phase, playbook lists 5
128
+
129
+ **Diagnosis:** The playbook is the source of truth for phase behavior (it's served by the MCP server). If skill docs diverge, they need updating.
130
+
131
+ **Debug trace check:** Use `exarchos_workflow describe(playbook: '<workflowType>')` and compare each phase's `tools`, `events`, `transitionCriteria`, `guardPrerequisites`, and `humanCheckpoint` against the corresponding skill SKILL.md sections. Flag structural contradictions.
132
+
133
+ ### Runbook-Skill Divergence
134
+ **Symptom:** Runbook prescribes steps or decision logic that differs from skill docs. Agent follows skill and misses steps or takes the wrong branch.
135
+ **Examples:**
136
+ - Skill says to run gates in order A-B-C, runbook says A-C-B
137
+ - Skill's track selection logic doesn't match the decision runbook's branches
138
+ - Skill doesn't mention required `templateVars` that the runbook expects
139
+
140
+ **Diagnosis:** Decision runbooks are authoritative for decision logic; linear runbooks are authoritative for step ordering. If skill docs encode their own decision trees that don't match, the skill needs updating.
141
+
142
+ **Debug trace check:** Use `exarchos_orchestrate runbook(phase: '<phase>')` to get the resolved runbook. Compare step ordering and decision branches against skill instructions. For decision runbooks, check that the skill references the runbook rather than encoding inline logic.
143
+
144
+ ### Missing Workflow Instructions
145
+ **Symptom:** Orchestrator skips required tool calls or doesn't follow the expected workflow.
146
+ **Examples:**
147
+ - Delegation phase uses Claude Code Task/TaskUpdate but never calls `exarchos_workflow set`
148
+ - No events emitted during an entire workflow phase
149
+ - PR bodies don't follow the template
150
+
151
+ **Diagnosis:** Check if the skill docs explicitly instruct the agent to make these tool calls. If not, the agent has no reason to — the docs need to prescribe the correct workflow.
152
+
153
+ **Debug trace check:** Use `exarchos_event query(stream)` and filter by phase. An empty or sparse event log for a phase that should have activity indicates the agent was never told to emit events. Cross-reference with `describe(playbook)` to see what the playbook prescribes.
154
+
155
+ **Historical:** #739 (no exarchos tools during delegation), #740 (no events), #907 (PR template)
156
+
157
+ ### Describe-Doc Divergence
158
+ **Symptom:** Debug trace reveals that MCP `describe` responses contain information that contradicts or supersedes what skill docs say.
159
+ **Examples:**
160
+ - Skill doc says phase X has no gates, but `describe(topology)` shows a guard on the transition
161
+ - Skill doc lists 3 required event fields, but `describe(eventTypes)` shows 5
162
+ - CompactGuidance mentions an anti-pattern the skill doc doesn't cover
163
+ - Gate metadata shows `blocking: true` but skill says it's advisory
164
+
165
+ **Diagnosis:** The describe API is the source of truth for platform-agnostic workflow metadata. If skill docs diverge from describe responses, the skill docs need updating.
166
+
167
+ **Debug trace check:** For each failure, query the relevant describe endpoint and compare its output against the skill doc that the agent was following. The discrepancy IS the documentation issue.
168
+
169
+ ---
170
+
171
+ ## User Error Patterns
172
+
173
+ ### Sequence Violation
174
+ **Symptom:** Tool call fails because a prerequisite wasn't met.
175
+ **Examples:**
176
+ - Quality review dispatched before spec review passes
177
+ - Synthesis attempted before review phase completes
178
+ - Task completion attempted without required gate events
179
+
180
+ **Diagnosis:** Check if the skill docs describe the prerequisite. If they do and the agent skipped it, it's user error. If they don't, it's a documentation issue.
181
+
182
+ **Debug trace check:** Use `exarchos_workflow describe(topology)` to verify the transition's guards. If the guard that blocked the agent is documented in both the topology and skill docs, the agent should have known.
183
+
184
+ ### Parameter Format Mismatch
185
+ **Symptom:** Tool call fails with wrong type or format, and the correct format is documented.
186
+ **Examples:**
187
+ - Passing a number where a string is expected
188
+ - Using camelCase when kebab-case is required
189
+ - Missing required field that the skill docs explicitly list
190
+
191
+ **Diagnosis:** If the skill docs clearly show the correct format and the agent didn't follow them, it's user error. If the docs are ambiguous or show the wrong format, it's a documentation issue.
192
+
193
+ **Debug trace check:** Use the appropriate `describe` action to confirm the schema matches what skill docs say. If both agree and the agent deviated, it's user error.
194
+
195
+ ### Runbook Deviation
196
+ **Symptom:** Agent deviated from runbook step ordering or decision branches without justification.
197
+ **Examples:**
198
+ - Skipped a step marked `onFail: "stop"`
199
+ - Took a decision branch inconsistent with the `source` field's value
200
+ - Didn't supply required `templateVars`
201
+
202
+ **Diagnosis:** If the runbook is accessible via `exarchos_orchestrate runbook()` and the skill docs reference it, the agent should have followed it. Deviation without cause is user error.
203
+
204
+ **Debug trace check:** Use `exarchos_orchestrate runbook(id: '<id>')` to get the resolved steps. Map agent's actual execution against the step list.
205
+
206
+ ### Context Loss After Compaction
207
+ **Symptom:** Agent loses track of state, teammates, or in-progress work after context compaction.
208
+ **Examples:**
209
+ - Orchestrator re-dispatches already-completed tasks
210
+ - Agent doesn't check workflow state after resume
211
+ - Agent creates duplicate branches
212
+
213
+ **Diagnosis:** Check if the skill docs include post-compaction recovery instructions. If they do, this is user error. If not, the skill needs compaction-resilience instructions (likely a documentation issue).
214
+
215
+ **Debug trace check:** Use `exarchos_workflow get` to see actual state. If the agent's assumptions diverge from server state after compaction, and the skill instructs re-orientation via `exarchos_workflow get` or `exarchos_view pipeline`, the agent should have re-checked.
216
+
217
+ **Historical:** #738 (lost teammates after compaction)
218
+
219
+ ---
220
+
221
+ ## Severity Guide
222
+
223
+ | Severity | Definition | Filing Priority |
224
+ |----------|-----------|----------------|
225
+ | **HIGH** | Blocks workflow progression, no workaround, or causes data loss | File immediately |
226
+ | **MEDIUM** | Degraded experience, workaround exists (e.g., change field value, use different path) | File in batch |
227
+ | **LOW** | Minor friction, single retry resolves it | Track for patterns, file if recurrent |