@cratis/pi 8.2.1 → 8.3.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 (1140) hide show
  1. package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +7 -9
  2. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +25 -55
  3. package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +10 -7
  4. package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +8 -1
  5. package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -2
  6. package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +5 -5
  7. package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -3
  8. package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -4
  9. package/package/corpus/harnesses/copilot/instructions/components.instructions.md +6 -8
  10. package/package/corpus/harnesses/copilot/instructions/concepts.instructions.md +15 -2
  11. package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -5
  12. package/package/corpus/harnesses/copilot/instructions/criticality-tiers.instructions.md +7 -35
  13. package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +13 -6
  14. package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +8 -3
  15. package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +8 -2
  16. package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +12 -6
  17. package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +12 -7
  18. package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +8 -6
  19. package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +13 -9
  20. package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +9 -5
  21. package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +12 -8
  22. package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -4
  23. package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +12 -6
  24. package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +11 -7
  25. package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +7 -7
  26. package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +5 -3
  27. package/package/corpus/harnesses/copilot/instructions/general.instructions.md +2 -2
  28. package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +11 -6
  29. package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +13 -13
  30. package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +13 -39
  31. package/package/corpus/harnesses/copilot/instructions/go.instructions.md +18 -139
  32. package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +14 -60
  33. package/package/corpus/harnesses/copilot/instructions/issue-assignment.instructions.md +6 -9
  34. package/package/corpus/harnesses/copilot/instructions/java.instructions.md +8 -6
  35. package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +12 -7
  36. package/package/corpus/harnesses/copilot/instructions/local-verification-and-delivery.instructions.md +8 -5
  37. package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +11 -64
  38. package/package/corpus/harnesses/copilot/instructions/new-repository-intake.instructions.md +7 -28
  39. package/package/corpus/harnesses/copilot/instructions/operational-safety.instructions.md +26 -41
  40. package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +22 -5
  41. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +8 -11
  42. package/package/corpus/harnesses/copilot/instructions/published-contracts.instructions.md +6 -25
  43. package/package/corpus/harnesses/copilot/instructions/react.instructions.md +9 -2
  44. package/package/corpus/harnesses/copilot/instructions/reactors.instructions.md +17 -5
  45. package/package/corpus/harnesses/copilot/instructions/review-reports.instructions.md +12 -94
  46. package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +5 -5
  47. package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +11 -8
  48. package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +9 -4
  49. package/package/corpus/harnesses/copilot/instructions/specs.instructions.md +7 -4
  50. package/package/corpus/harnesses/copilot/instructions/specs.scenarios.csharp.instructions.md +11 -2
  51. package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +8 -11
  52. package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +4 -7
  53. package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -8
  54. package/package/corpus/harnesses/copilot/instructions/verification-discipline.instructions.md +6 -9
  55. package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +29 -5
  56. package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +12 -3
  57. package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +11 -3
  58. package/package/corpus/hooks/README.md +2 -0
  59. package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +36 -24
  60. package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +66 -22
  61. package/package/corpus/hooks/scripts/cratis-guard-writes.sh +2 -1
  62. package/package/corpus/hooks/scripts/cratis-store-mutations.json +1 -1
  63. package/package/corpus/rules/ai-distribution.md +7 -9
  64. package/package/corpus/rules/authoring-skills.md +25 -55
  65. package/package/corpus/rules/browser.md +10 -7
  66. package/package/corpus/rules/code-health-policy.txt +3 -3
  67. package/package/corpus/rules/code-health.md +8 -1
  68. package/package/corpus/rules/code-quality.csharp.md +3 -2
  69. package/package/corpus/rules/code-quality.md +5 -5
  70. package/package/corpus/rules/code-quality.typescript.md +4 -3
  71. package/package/corpus/rules/codescene-reference.txt +34 -0
  72. package/package/corpus/rules/codescene.md +5 -4
  73. package/package/corpus/rules/components.md +6 -8
  74. package/package/corpus/rules/concepts.md +15 -2
  75. package/package/corpus/rules/cratis-folder-is-configuration.md +3 -5
  76. package/package/corpus/rules/criticality-tiers.md +7 -35
  77. package/package/corpus/rules/csharp.md +13 -6
  78. package/package/corpus/rules/dialogs.md +8 -3
  79. package/package/corpus/rules/discoverability.md +8 -2
  80. package/package/corpus/rules/documentation-structure-and-formatting.md +12 -6
  81. package/package/corpus/rules/documentation.md +12 -7
  82. package/package/corpus/rules/editing-cratis-docs.md +8 -6
  83. package/package/corpus/rules/efcore.md +13 -9
  84. package/package/corpus/rules/efcore.specs.md +9 -5
  85. package/package/corpus/rules/elixir.md +12 -8
  86. package/package/corpus/rules/exit-codes-and-wrappers.md +7 -4
  87. package/package/corpus/rules/framework-dotnet.md +12 -6
  88. package/package/corpus/rules/framework.md +11 -7
  89. package/package/corpus/rules/frontend-quality.md +7 -7
  90. package/package/corpus/rules/frontend-testing.md +5 -3
  91. package/package/corpus/rules/general.md +8 -10
  92. package/package/corpus/rules/github-actions.md +11 -6
  93. package/package/corpus/rules/glossary.md +13 -13
  94. package/package/corpus/rules/go-engineering.md +13 -39
  95. package/package/corpus/rules/go.md +18 -139
  96. package/package/corpus/rules/guards-and-fuses.md +14 -60
  97. package/package/corpus/rules/issue-assignment.md +6 -9
  98. package/package/corpus/rules/java.md +8 -6
  99. package/package/corpus/rules/kotlin.md +12 -7
  100. package/package/corpus/rules/local-verification-and-delivery.md +8 -5
  101. package/package/corpus/rules/local-work-artifacts.md +11 -64
  102. package/package/corpus/rules/new-repository-intake.md +7 -28
  103. package/package/corpus/rules/operational-safety.md +26 -41
  104. package/package/corpus/rules/orleans.md +22 -5
  105. package/package/corpus/rules/profiles.md +8 -11
  106. package/package/corpus/rules/published-contracts.md +6 -25
  107. package/package/corpus/rules/react.md +9 -2
  108. package/package/corpus/rules/reactors.md +17 -5
  109. package/package/corpus/rules/review-reports.md +12 -94
  110. package/package/corpus/rules/scripting.md +5 -5
  111. package/package/corpus/rules/specs.csharp.md +11 -8
  112. package/package/corpus/rules/specs.elixir.md +9 -4
  113. package/package/corpus/rules/specs.md +7 -4
  114. package/package/corpus/rules/specs.scenarios.csharp.md +11 -2
  115. package/package/corpus/rules/specs.typescript.md +8 -11
  116. package/package/corpus/rules/storybook.md +4 -7
  117. package/package/corpus/rules/typescript.md +8 -8
  118. package/package/corpus/rules/verification-discipline.md +6 -9
  119. package/package/corpus/rules/vertical-slices.md +29 -5
  120. package/package/corpus/rules/writing-correct-examples.md +12 -3
  121. package/package/corpus/rules/writing-cratis-docs.md +11 -3
  122. package/package/corpus/skills/cratis-ai-corpus-authoring/LICENSE +21 -0
  123. package/package/corpus/skills/cratis-ai-corpus-authoring/SKILL.md +140 -0
  124. package/package/corpus/skills/cratis-ai-corpus-authoring/references/checklist.md +46 -0
  125. package/package/corpus/skills/cratis-ai-corpus-authoring/references/evaluation.md +19 -0
  126. package/package/corpus/skills/cratis-ai-corpus-authoring/references/large-rewrites.md +25 -0
  127. package/package/corpus/skills/cratis-ai-corpus-authoring/references/skill-anatomy.md +75 -0
  128. package/package/corpus/skills/cratis-application-growth/SKILL.md +148 -63
  129. package/package/corpus/skills/cratis-application-growth/references/csharp.md +170 -0
  130. package/package/corpus/skills/cratis-application-growth/references/elixir.md +26 -0
  131. package/package/corpus/skills/cratis-application-growth/references/go.md +27 -0
  132. package/package/corpus/skills/cratis-application-growth/references/java.md +23 -0
  133. package/package/corpus/skills/cratis-application-growth/references/kotlin.md +31 -0
  134. package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +7 -6
  135. package/package/corpus/skills/cratis-application-growth/references/rename-window.md +14 -14
  136. package/package/corpus/skills/cratis-application-growth/references/service-and-delivery.md +21 -0
  137. package/package/corpus/skills/cratis-application-growth/references/stages.md +1 -9
  138. package/package/corpus/skills/cratis-application-growth/references/typescript.md +38 -0
  139. package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +31 -23
  140. package/package/corpus/skills/cratis-arc-authorize-request/references/authproxy.md +92 -0
  141. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp-query-security.md +61 -0
  142. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +92 -38
  143. package/package/corpus/skills/cratis-arc-authorize-request/references/elixir.md +74 -4
  144. package/package/corpus/skills/cratis-arc-authorize-request/references/go-authentication.md +93 -0
  145. package/package/corpus/skills/cratis-arc-authorize-request/references/go.md +80 -2
  146. package/package/corpus/skills/cratis-arc-authorize-request/references/java.md +79 -3
  147. package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +80 -17
  148. package/package/corpus/skills/cratis-arc-authorize-request/references/python.md +1 -1
  149. package/package/corpus/skills/cratis-arc-authorize-request/references/typescript.md +106 -6
  150. package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +85 -42
  151. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript-rule-fixes.md +89 -0
  152. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript.md +99 -0
  153. package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +54 -14
  154. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-connection-resolution.md +66 -0
  155. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-ef.md +78 -0
  156. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-neo4j.md +30 -0
  157. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +59 -66
  158. package/package/corpus/skills/cratis-arc-connect-storage/references/elixir.md +121 -3
  159. package/package/corpus/skills/cratis-arc-connect-storage/references/go.md +73 -3
  160. package/package/corpus/skills/cratis-arc-connect-storage/references/java.md +68 -3
  161. package/package/corpus/skills/cratis-arc-connect-storage/references/kotlin.md +74 -3
  162. package/package/corpus/skills/cratis-arc-connect-storage/references/python.md +2 -2
  163. package/package/corpus/skills/cratis-arc-connect-storage/references/typescript-drizzle.md +31 -0
  164. package/package/corpus/skills/cratis-arc-connect-storage/references/typescript.md +62 -4
  165. package/package/corpus/skills/cratis-arc-declare-command/SKILL.md +52 -28
  166. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-chronicle.md +190 -0
  167. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-controller.md +44 -0
  168. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-history.md +125 -0
  169. package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +281 -55
  170. package/package/corpus/skills/cratis-arc-declare-command/references/elixir.md +121 -8
  171. package/package/corpus/skills/cratis-arc-declare-command/references/go-aggregate.md +59 -0
  172. package/package/corpus/skills/cratis-arc-declare-command/references/go-chronicle.md +51 -0
  173. package/package/corpus/skills/cratis-arc-declare-command/references/go-wire.md +94 -0
  174. package/package/corpus/skills/cratis-arc-declare-command/references/go.md +160 -25
  175. package/package/corpus/skills/cratis-arc-declare-command/references/java.md +140 -13
  176. package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +189 -23
  177. package/package/corpus/skills/cratis-arc-declare-command/references/typescript-aggregates.md +73 -0
  178. package/package/corpus/skills/cratis-arc-declare-command/references/typescript.md +209 -24
  179. package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +28 -25
  180. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-abilities.md +30 -0
  181. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-recovery.md +50 -0
  182. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +27 -55
  183. package/package/corpus/skills/cratis-arc-declare-operation/references/elixir.md +17 -1
  184. package/package/corpus/skills/cratis-arc-declare-operation/references/go.md +75 -5
  185. package/package/corpus/skills/cratis-arc-declare-operation/references/java.md +13 -2
  186. package/package/corpus/skills/cratis-arc-declare-operation/references/kotlin.md +11 -2
  187. package/package/corpus/skills/cratis-arc-declare-operation/references/python.md +2 -2
  188. package/package/corpus/skills/cratis-arc-declare-operation/references/typescript.md +84 -8
  189. package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +42 -36
  190. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +44 -51
  191. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/elixir.md +50 -3
  192. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/go.md +85 -2
  193. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/java.md +70 -2
  194. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/kotlin.md +60 -2
  195. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/typescript.md +94 -5
  196. package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +59 -81
  197. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp-diagnose-tool-call.md +44 -0
  198. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp.md +309 -0
  199. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/elixir.md +5 -0
  200. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/go.md +5 -0
  201. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/java.md +5 -0
  202. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/kotlin.md +5 -0
  203. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/typescript.md +5 -0
  204. package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +65 -15
  205. package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +379 -31
  206. package/package/corpus/skills/cratis-arc-expose-query/references/elixir.md +84 -4
  207. package/package/corpus/skills/cratis-arc-expose-query/references/go-live.md +55 -0
  208. package/package/corpus/skills/cratis-arc-expose-query/references/go.md +204 -18
  209. package/package/corpus/skills/cratis-arc-expose-query/references/java.md +236 -7
  210. package/package/corpus/skills/cratis-arc-expose-query/references/kotlin.md +242 -3
  211. package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +360 -19
  212. package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +84 -10
  213. package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +70 -29
  214. package/package/corpus/skills/cratis-arc-generate-proxies/references/elixir.md +54 -5
  215. package/package/corpus/skills/cratis-arc-generate-proxies/references/go-directives.md +74 -0
  216. package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +50 -4
  217. package/package/corpus/skills/cratis-arc-generate-proxies/references/java-diagnostics.md +67 -0
  218. package/package/corpus/skills/cratis-arc-generate-proxies/references/java-wire-types.md +115 -0
  219. package/package/corpus/skills/cratis-arc-generate-proxies/references/java.md +86 -2
  220. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-diagnostics.md +67 -0
  221. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-wire-types.md +108 -0
  222. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin.md +77 -4
  223. package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +64 -16
  224. package/package/corpus/skills/cratis-arc-generate-proxies/scripts/check-proxy.mjs +3 -3
  225. package/package/corpus/skills/cratis-arc-host-application/SKILL.md +67 -12
  226. package/package/corpus/skills/cratis-arc-host-application/references/csharp-availability.md +130 -0
  227. package/package/corpus/skills/cratis-arc-host-application/references/csharp-callers.md +89 -0
  228. package/package/corpus/skills/cratis-arc-host-application/references/csharp-configuration.md +116 -27
  229. package/package/corpus/skills/cratis-arc-host-application/references/csharp-http.md +86 -0
  230. package/package/corpus/skills/cratis-arc-host-application/references/csharp-identity.md +208 -0
  231. package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +154 -35
  232. package/package/corpus/skills/cratis-arc-host-application/references/elixir-access.md +64 -0
  233. package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +53 -23
  234. package/package/corpus/skills/cratis-arc-host-application/references/go-embed.md +121 -0
  235. package/package/corpus/skills/cratis-arc-host-application/references/go-execution.md +86 -0
  236. package/package/corpus/skills/cratis-arc-host-application/references/go-options.md +41 -0
  237. package/package/corpus/skills/cratis-arc-host-application/references/go.md +43 -5
  238. package/package/corpus/skills/cratis-arc-host-application/references/java.md +203 -4
  239. package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +234 -4
  240. package/package/corpus/skills/cratis-arc-host-application/references/typescript-services.md +85 -0
  241. package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +194 -13
  242. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +79 -119
  243. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/java.md +285 -0
  244. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/kotlin.md +265 -0
  245. package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +52 -24
  246. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp-extensions.md +26 -0
  247. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +55 -25
  248. package/package/corpus/skills/cratis-arc-invoke-command/references/elixir-liveview.md +112 -0
  249. package/package/corpus/skills/cratis-arc-invoke-command/references/elixir.md +72 -2
  250. package/package/corpus/skills/cratis-arc-invoke-command/references/go.md +51 -3
  251. package/package/corpus/skills/cratis-arc-invoke-command/references/java.md +74 -3
  252. package/package/corpus/skills/cratis-arc-invoke-command/references/kotlin.md +58 -18
  253. package/package/corpus/skills/cratis-arc-invoke-command/references/python.md +2 -2
  254. package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +49 -2
  255. package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +31 -13
  256. package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +68 -29
  257. package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +84 -2
  258. package/package/corpus/skills/cratis-arc-isolate-tenant/references/go.md +73 -2
  259. package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +70 -3
  260. package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +65 -5
  261. package/package/corpus/skills/cratis-arc-isolate-tenant/references/python.md +1 -1
  262. package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +56 -3
  263. package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +125 -27
  264. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/csharp.md +217 -0
  265. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/elixir.md +3 -0
  266. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/go.md +3 -0
  267. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/java.md +29 -0
  268. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/kotlin.md +29 -0
  269. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/typescript.md +132 -0
  270. package/package/corpus/skills/cratis-arc-page-query/SKILL.md +33 -13
  271. package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +63 -33
  272. package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +55 -4
  273. package/package/corpus/skills/cratis-arc-page-query/references/go.md +77 -4
  274. package/package/corpus/skills/cratis-arc-page-query/references/java.md +66 -4
  275. package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +65 -5
  276. package/package/corpus/skills/cratis-arc-page-query/references/typescript.md +81 -6
  277. package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +148 -48
  278. package/package/corpus/skills/cratis-arc-react-bind-slice/references/react-screen-from-model.md +10 -0
  279. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-commands.md +190 -0
  280. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-host.md +160 -0
  281. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-identity.md +131 -0
  282. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-queries.md +157 -0
  283. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript.md +88 -0
  284. package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +155 -66
  285. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/typescript.md +628 -0
  286. package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +18 -5
  287. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/csharp.md +64 -3
  288. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +77 -11
  289. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +61 -19
  290. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +119 -7
  291. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +117 -7
  292. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +124 -10
  293. package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +129 -107
  294. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/java.md +436 -0
  295. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/kotlin.md +440 -0
  296. package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +58 -90
  297. package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript-drizzle.md +165 -0
  298. package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript.md +226 -0
  299. package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +86 -89
  300. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/typescript.md +228 -0
  301. package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +179 -90
  302. package/package/corpus/skills/cratis-arc-testing-kotlin/references/java.md +95 -0
  303. package/package/corpus/skills/cratis-arc-testing-kotlin/references/kotlin.md +107 -0
  304. package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +80 -107
  305. package/package/corpus/skills/cratis-arc-testing-typescript/references/typescript.md +272 -0
  306. package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +56 -17
  307. package/package/corpus/skills/cratis-arc-validate-command/references/csharp-rules.md +38 -0
  308. package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +84 -13
  309. package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +50 -12
  310. package/package/corpus/skills/cratis-arc-validate-command/references/go.md +119 -15
  311. package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +125 -93
  312. package/package/corpus/skills/cratis-arc-validation-kotlin/references/java.md +272 -0
  313. package/package/corpus/skills/cratis-arc-validation-kotlin/references/kotlin.md +238 -0
  314. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +133 -58
  315. package/package/corpus/skills/cratis-arc-validation-typescript/references/{models-and-queries.md → typescript-models-and-queries.md} +17 -0
  316. package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript-rules-and-checks.md +101 -0
  317. package/package/corpus/skills/cratis-arc-validation-typescript/references/{server-decisions.md → typescript-server-decisions.md} +49 -13
  318. package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript.md +196 -0
  319. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +107 -7
  320. package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +21 -11
  321. package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +70 -10
  322. package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +4 -65
  323. package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +138 -16
  324. package/package/corpus/skills/cratis-chronicle-cli-operations/references/setup-and-target.md +85 -0
  325. package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +54 -12
  326. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-patterns.md +45 -0
  327. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-services.md +80 -0
  328. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-transport.md +26 -0
  329. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-workload.md +35 -0
  330. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +57 -39
  331. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-patterns.md +32 -0
  332. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-policies.md +47 -0
  333. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +38 -3
  334. package/package/corpus/skills/cratis-chronicle-connect-application/references/go-patterns.md +30 -0
  335. package/package/corpus/skills/cratis-chronicle-connect-application/references/go.md +95 -3
  336. package/package/corpus/skills/cratis-chronicle-connect-application/references/java.md +89 -2
  337. package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin-patterns.md +35 -0
  338. package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin.md +108 -3
  339. package/package/corpus/skills/cratis-chronicle-connect-application/references/python.md +61 -0
  340. package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript-patterns.md +32 -0
  341. package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript.md +75 -6
  342. package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +42 -11
  343. package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +67 -25
  344. package/package/corpus/skills/cratis-chronicle-constrain-append/references/elixir.md +90 -3
  345. package/package/corpus/skills/cratis-chronicle-constrain-append/references/go.md +83 -3
  346. package/package/corpus/skills/cratis-chronicle-constrain-append/references/java.md +99 -2
  347. package/package/corpus/skills/cratis-chronicle-constrain-append/references/kotlin.md +76 -3
  348. package/package/corpus/skills/cratis-chronicle-constrain-append/references/python.md +1 -1
  349. package/package/corpus/skills/cratis-chronicle-constrain-append/references/typescript.md +84 -2
  350. package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +167 -31
  351. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/authentication.md +150 -0
  352. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/configuration.md +418 -0
  353. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/csharp.md +48 -0
  354. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/development-and-production.md +57 -0
  355. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/kernel-options.md +694 -0
  356. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/network-and-tls.md +161 -0
  357. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/production-checklist.md +66 -0
  358. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +154 -2
  359. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/troubleshooting.md +57 -0
  360. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md +124 -0
  361. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/webhooks.md +101 -3
  362. package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +59 -15
  363. package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +57 -41
  364. package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +69 -3
  365. package/package/corpus/skills/cratis-chronicle-evolve-event/references/go.md +71 -2
  366. package/package/corpus/skills/cratis-chronicle-evolve-event/references/java.md +50 -2
  367. package/package/corpus/skills/cratis-chronicle-evolve-event/references/kotlin.md +58 -2
  368. package/package/corpus/skills/cratis-chronicle-evolve-event/references/schema-annotation-cleanup.md +58 -0
  369. package/package/corpus/skills/cratis-chronicle-evolve-event/references/typescript.md +87 -2
  370. package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +47 -13
  371. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +107 -37
  372. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +56 -5
  373. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go-jobs-and-alerts.md +77 -0
  374. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go.md +106 -3
  375. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/java.md +55 -3
  376. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/kotlin.md +95 -3
  377. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/typescript.md +89 -7
  378. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +156 -12
  379. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +12 -20
  380. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +114 -33
  381. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +100 -47
  382. package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +182 -11
  383. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-fluent.md +228 -0
  384. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-graphs.md +102 -0
  385. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md +232 -0
  386. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-reading.md +120 -0
  387. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +105 -45
  388. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-graphs.md +49 -0
  389. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-mappings.md +45 -0
  390. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-reading.md +17 -0
  391. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +23 -27
  392. package/package/corpus/skills/cratis-chronicle-project-view/references/go-graphs.md +22 -0
  393. package/package/corpus/skills/cratis-chronicle-project-view/references/go-mappings.md +50 -0
  394. package/package/corpus/skills/cratis-chronicle-project-view/references/go-reads.md +25 -0
  395. package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +45 -5
  396. package/package/corpus/skills/cratis-chronicle-project-view/references/java-graphs.md +46 -0
  397. package/package/corpus/skills/cratis-chronicle-project-view/references/java-mappings.md +53 -0
  398. package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +69 -5
  399. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin-graphs.md +44 -0
  400. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +71 -6
  401. package/package/corpus/skills/cratis-chronicle-project-view/references/python.md +1 -1
  402. package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +279 -3
  403. package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +69 -10
  404. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-scopes.md +35 -0
  405. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-standalone.md +93 -4
  406. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +79 -34
  407. package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +56 -11
  408. package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +61 -11
  409. package/package/corpus/skills/cratis-chronicle-protect-decision/references/java.md +76 -3
  410. package/package/corpus/skills/cratis-chronicle-protect-decision/references/kotlin.md +65 -17
  411. package/package/corpus/skills/cratis-chronicle-protect-decision/references/typescript.md +77 -5
  412. package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +27 -12
  413. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +65 -47
  414. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/elixir.md +68 -3
  415. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/go.md +91 -2
  416. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/java.md +75 -2
  417. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/kotlin.md +64 -3
  418. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/typescript.md +65 -3
  419. package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +69 -11
  420. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp-integrations.md +89 -0
  421. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +57 -52
  422. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir-integrations.md +132 -0
  423. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +86 -14
  424. package/package/corpus/skills/cratis-chronicle-publish-contract/references/go-integrations.md +91 -0
  425. package/package/corpus/skills/cratis-chronicle-publish-contract/references/go.md +80 -2
  426. package/package/corpus/skills/cratis-chronicle-publish-contract/references/java-integrations.md +121 -0
  427. package/package/corpus/skills/cratis-chronicle-publish-contract/references/java.md +64 -2
  428. package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin-integrations.md +112 -0
  429. package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin.md +71 -2
  430. package/package/corpus/skills/cratis-chronicle-publish-contract/references/python.md +2 -2
  431. package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript-integrations.md +69 -0
  432. package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript.md +69 -2
  433. package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +65 -12
  434. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-occurrences.md +3 -1
  435. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-outputs.md +39 -0
  436. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-pages.md +43 -0
  437. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +43 -43
  438. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir-recovery.md +23 -0
  439. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir.md +79 -8
  440. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +97 -3
  441. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +123 -3
  442. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +113 -4
  443. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/typescript.md +122 -8
  444. package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +83 -13
  445. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-coordination.md +86 -0
  446. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-history.md +86 -0
  447. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +53 -92
  448. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-context.md +74 -0
  449. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-history.md +51 -0
  450. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +48 -20
  451. package/package/corpus/skills/cratis-chronicle-record-event/references/go-payloads.md +80 -0
  452. package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +78 -2
  453. package/package/corpus/skills/cratis-chronicle-record-event/references/java-history.md +63 -0
  454. package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +107 -11
  455. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin-history.md +88 -0
  456. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +103 -21
  457. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-import.md +30 -0
  458. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-provenance.md +40 -0
  459. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +187 -3
  460. package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +55 -13
  461. package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +235 -24
  462. package/package/corpus/skills/cratis-chronicle-reduce-state/references/elixir.md +82 -2
  463. package/package/corpus/skills/cratis-chronicle-reduce-state/references/go.md +94 -3
  464. package/package/corpus/skills/cratis-chronicle-reduce-state/references/java.md +99 -2
  465. package/package/corpus/skills/cratis-chronicle-reduce-state/references/kotlin.md +89 -3
  466. package/package/corpus/skills/cratis-chronicle-reduce-state/references/python.md +2 -2
  467. package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +91 -2
  468. package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +17 -12
  469. package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +63 -3
  470. package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +52 -3
  471. package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +64 -3
  472. package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +54 -2
  473. package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +56 -3
  474. package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +35 -18
  475. package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +46 -4
  476. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +60 -12
  477. package/package/corpus/skills/cratis-chronicle-web-workbench/references/csharp.md +57 -0
  478. package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +80 -53
  479. package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +44 -59
  480. package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +241 -203
  481. package/package/corpus/skills/cratis-ci-pipeline-performance/references/affected-tests.md +134 -0
  482. package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +25 -10
  483. package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +14 -1
  484. package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -0
  485. package/package/corpus/skills/cratis-ci-pipeline-performance/references/publish-pipelines.md +83 -6
  486. package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +68 -1
  487. package/package/corpus/skills/cratis-ci-pipeline-performance/references/runner-sizing-and-images.md +33 -6
  488. package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +11 -4
  489. package/package/corpus/skills/cratis-ci-pipeline-performance/references/shared-workflows.md +65 -0
  490. package/package/corpus/skills/cratis-ci-pipeline-performance/references/test-setup-cost.md +12 -0
  491. package/package/corpus/skills/cratis-ci-pipeline-performance/references/trim-and-aot-ratchets.md +32 -0
  492. package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +285 -139
  493. package/package/corpus/skills/cratis-cli-terminal-workbench/references/views-and-refresh.md +66 -0
  494. package/package/corpus/skills/cratis-code-review/SKILL.md +286 -165
  495. package/package/corpus/skills/cratis-code-review/references/csharp-diagnostics.md +76 -0
  496. package/package/corpus/skills/cratis-code-review/references/csharp.md +130 -0
  497. package/package/corpus/skills/cratis-code-review/references/elixir.md +30 -0
  498. package/package/corpus/skills/cratis-code-review/references/go.md +25 -0
  499. package/package/corpus/skills/cratis-code-review/references/java.md +38 -0
  500. package/package/corpus/skills/cratis-code-review/references/kotlin.md +37 -0
  501. package/package/corpus/skills/cratis-code-review/references/python.md +3 -0
  502. package/package/corpus/skills/cratis-code-review/references/typescript.md +189 -0
  503. package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +213 -13
  504. package/package/corpus/skills/cratis-commits-and-pull-requests/references/commits.md +37 -11
  505. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +98 -6
  506. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-labels-and-release.md +77 -2
  507. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +123 -16
  508. package/package/corpus/skills/cratis-components-accessibility/references/typescript.md +182 -0
  509. package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +167 -31
  510. package/package/corpus/skills/cratis-components-build-canvas/references/conversation-kit.md +89 -0
  511. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-chat.md +73 -0
  512. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-pixi-items.md +46 -0
  513. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-props.md +44 -0
  514. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-shapes.md +159 -0
  515. package/package/corpus/skills/cratis-components-build-canvas/references/typescript.md +140 -0
  516. package/package/corpus/skills/cratis-components-choose-control/SKILL.md +113 -28
  517. package/package/corpus/skills/cratis-components-choose-control/references/breadcrumbs-and-labels.md +21 -0
  518. package/package/corpus/skills/cratis-components-choose-control/references/collections.md +27 -3
  519. package/package/corpus/skills/cratis-components-choose-control/references/typescript-common.md +50 -0
  520. package/package/corpus/skills/cratis-components-choose-control/references/typescript-composition.md +174 -0
  521. package/package/corpus/skills/cratis-components-choose-control/references/typescript-display.md +12 -0
  522. package/package/corpus/skills/cratis-components-choose-control/references/typescript-dropdown.md +27 -0
  523. package/package/corpus/skills/cratis-components-choose-control/references/typescript-iconpicker.md +19 -0
  524. package/package/corpus/skills/cratis-components-choose-control/references/typescript-markdowneditor.md +16 -0
  525. package/package/corpus/skills/cratis-components-choose-control/references/typescript.md +69 -0
  526. package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +210 -23
  527. package/package/corpus/skills/cratis-components-compose-toolbar/references/behavior.md +87 -0
  528. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-composition.md +202 -0
  529. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-toolbar.md +125 -0
  530. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript.md +128 -0
  531. package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +138 -65
  532. package/package/corpus/skills/cratis-components-coordinate-feedback/references/dialog-props.md +30 -0
  533. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-dialogs.md +139 -0
  534. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-notifications.md +66 -0
  535. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript.md +170 -0
  536. package/package/corpus/skills/cratis-components-display-list/SKILL.md +204 -38
  537. package/package/corpus/skills/cratis-components-display-list/references/parts-and-messages.md +22 -0
  538. package/package/corpus/skills/cratis-components-display-list/references/typescript-datatables.md +179 -0
  539. package/package/corpus/skills/cratis-components-display-list/references/typescript.md +204 -0
  540. package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +188 -75
  541. package/package/corpus/skills/cratis-components-edit-schema-data/references/editing-rules.md +27 -0
  542. package/package/corpus/skills/cratis-components-edit-schema-data/references/schema-mapping.md +57 -0
  543. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-componentpicker.md +22 -0
  544. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-composition.md +246 -0
  545. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-configurationeditor.md +23 -0
  546. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectcontenteditor.md +12 -0
  547. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectnavigationalbar.md +7 -0
  548. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-schemaeditor.md +89 -0
  549. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript.md +141 -0
  550. package/package/corpus/skills/cratis-components-explore-data/SKILL.md +192 -48
  551. package/package/corpus/skills/cratis-components-explore-data/references/typescript-composition.md +87 -0
  552. package/package/corpus/skills/cratis-components-explore-data/references/typescript-filter.md +47 -0
  553. package/package/corpus/skills/cratis-components-explore-data/references/typescript-pivotviewer.md +27 -0
  554. package/package/corpus/skills/cratis-components-explore-data/references/typescript-timemachine.md +44 -0
  555. package/package/corpus/skills/cratis-components-explore-data/references/typescript.md +133 -0
  556. package/package/corpus/skills/cratis-components-host-chat/SKILL.md +189 -34
  557. package/package/corpus/skills/cratis-components-host-chat/references/presentation.md +60 -0
  558. package/package/corpus/skills/cratis-components-host-chat/references/typescript-composition.md +108 -0
  559. package/package/corpus/skills/cratis-components-host-chat/references/typescript-layouts.md +59 -0
  560. package/package/corpus/skills/cratis-components-host-chat/references/typescript.md +158 -0
  561. package/package/corpus/skills/cratis-components-submit-form/SKILL.md +127 -45
  562. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commanddialog.md +138 -0
  563. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commandform.md +96 -0
  564. package/package/corpus/skills/cratis-components-submit-form/references/typescript-fields.md +157 -0
  565. package/package/corpus/skills/cratis-components-submit-form/references/typescript.md +113 -0
  566. package/package/corpus/skills/cratis-components-theme-application/SKILL.md +137 -47
  567. package/package/corpus/skills/cratis-components-theme-application/references/palette.md +4 -5
  568. package/package/corpus/skills/cratis-components-theme-application/references/parts.md +73 -0
  569. package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +34 -3
  570. package/package/corpus/skills/cratis-components-theme-application/references/tokens.md +17 -0
  571. package/package/corpus/skills/cratis-components-theme-application/references/typescript-adapter-authoring.md +198 -0
  572. package/package/corpus/skills/cratis-components-theme-application/references/typescript.md +243 -0
  573. package/package/corpus/skills/cratis-content-length/SKILL.md +221 -162
  574. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +173 -6
  575. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +259 -184
  576. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +32 -16
  577. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +115 -0
  578. package/package/corpus/skills/cratis-discoverability/SKILL.md +196 -85
  579. package/package/corpus/skills/cratis-discoverability/references/csharp.md +6 -0
  580. package/package/corpus/skills/cratis-discoverability/references/elixir.md +6 -0
  581. package/package/corpus/skills/cratis-discoverability/references/entities.md +41 -25
  582. package/package/corpus/skills/cratis-discoverability/references/go.md +6 -0
  583. package/package/corpus/skills/cratis-discoverability/references/java.md +6 -0
  584. package/package/corpus/skills/cratis-discoverability/references/kotlin.md +6 -0
  585. package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +10 -5
  586. package/package/corpus/skills/cratis-discoverability/references/page-checklist.md +90 -49
  587. package/package/corpus/skills/cratis-discoverability/references/structured-data.md +35 -28
  588. package/package/corpus/skills/cratis-discoverability/references/typescript.md +6 -0
  589. package/package/corpus/skills/cratis-discoverability/scripts/verify-discoverability.mjs +24 -9
  590. package/package/corpus/skills/cratis-documentation-writing/SKILL.md +266 -172
  591. package/package/corpus/skills/cratis-documentation-writing/references/cratis-site.md +113 -100
  592. package/package/corpus/skills/cratis-documentation-writing/references/writing-guidance.md +4 -2
  593. package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +220 -87
  594. package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +145 -9
  595. package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +259 -54
  596. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +88 -38
  597. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +102 -24
  598. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +118 -87
  599. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-alternate-implementations.md +60 -0
  600. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-code-style.md +294 -0
  601. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/{domain-philosophy.md → csharp-domain-philosophy.md} +11 -10
  602. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-exceptions-logging-and-di.md +328 -0
  603. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-monads.md +124 -0
  604. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp.md +54 -0
  605. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +266 -97
  606. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +21 -8
  607. package/package/corpus/skills/cratis-engineering-decision-record/references/direct.md +118 -0
  608. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +114 -102
  609. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +301 -71
  610. package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +294 -56
  611. package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +161 -86
  612. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/csharp.md +52 -0
  613. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/elixir.md +21 -0
  614. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +35 -6
  615. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/go.md +17 -0
  616. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/java.md +14 -0
  617. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/kotlin.md +14 -0
  618. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/typescript.md +15 -0
  619. package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +127 -27
  620. package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +40 -13
  621. package/package/corpus/skills/cratis-engineering-inherited-work/references/pull-request-evidence.md +66 -0
  622. package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +254 -79
  623. package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +97 -52
  624. package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +159 -64
  625. package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +119 -67
  626. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +249 -57
  627. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{dotnet-nuget.md → csharp.md} +11 -16
  628. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +40 -8
  629. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +5 -8
  630. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/elixir.md +108 -0
  631. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go.md +276 -0
  632. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +28 -18
  633. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/java.md +105 -0
  634. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/kotlin.md +179 -0
  635. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/train-mode.md +1 -1
  636. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{npm-yarn.md → typescript.md} +5 -3
  637. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +116 -48
  638. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/scripts/dependency-map.tsv +1 -1
  639. package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +283 -81
  640. package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +5 -20
  641. package/package/corpus/skills/cratis-engineering-post-mortem/references/public-safe-wording.md +18 -23
  642. package/package/corpus/skills/cratis-engineering-post-mortem/references/review-template.md +86 -37
  643. package/package/corpus/skills/cratis-engineering-post-mortem/references/silent-backup-failure.md +92 -98
  644. package/package/corpus/skills/cratis-engineering-post-mortem/references/unintended-release-regression.md +79 -73
  645. package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +98 -56
  646. package/package/corpus/skills/cratis-engineering-regression-cluster/references/history-and-proof.md +30 -0
  647. package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +290 -62
  648. package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +138 -107
  649. package/package/corpus/skills/cratis-engineering-release-trains/references/final-merge-gate.md +118 -0
  650. package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +311 -68
  651. package/package/corpus/skills/cratis-engineering-review-rounds/references/review-ranges.md +99 -0
  652. package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +235 -95
  653. package/package/corpus/skills/cratis-environments-and-secrets/references/csharp.md +112 -0
  654. package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +28 -23
  655. package/package/corpus/skills/cratis-environments-and-secrets/references/transcript-safety.md +31 -0
  656. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +174 -65
  657. package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +73 -69
  658. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +143 -0
  659. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp-serialization.md +183 -0
  660. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp.md +113 -0
  661. package/package/corpus/skills/cratis-fundamentals-concept/references/elixir.md +76 -0
  662. package/package/corpus/skills/cratis-fundamentals-concept/references/go-naming.md +36 -0
  663. package/package/corpus/skills/cratis-fundamentals-concept/references/go.md +276 -0
  664. package/package/corpus/skills/cratis-fundamentals-concept/references/java-json.md +121 -0
  665. package/package/corpus/skills/cratis-fundamentals-concept/references/java-primitives.md +156 -0
  666. package/package/corpus/skills/cratis-fundamentals-concept/references/java.md +155 -0
  667. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-json.md +123 -0
  668. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-primitives.md +161 -0
  669. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin.md +140 -0
  670. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md +203 -0
  671. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript.md +100 -0
  672. package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +113 -11
  673. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp-specs.md +165 -0
  674. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +223 -29
  675. package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +162 -4
  676. package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +227 -5
  677. package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +203 -6
  678. package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +251 -5
  679. package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +160 -9
  680. package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +120 -62
  681. package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp-otlp-export.md +56 -0
  682. package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp.md +224 -0
  683. package/package/corpus/skills/cratis-fundamentals-telemetry/references/elixir.md +10 -0
  684. package/package/corpus/skills/cratis-fundamentals-telemetry/references/go.md +33 -0
  685. package/package/corpus/skills/cratis-fundamentals-telemetry/references/java.md +9 -0
  686. package/package/corpus/skills/cratis-fundamentals-telemetry/references/kotlin.md +9 -0
  687. package/package/corpus/skills/cratis-fundamentals-telemetry/references/typescript.md +9 -0
  688. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +104 -26
  689. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp-diagnostics.md +75 -0
  690. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp.md +182 -0
  691. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/elixir.md +30 -0
  692. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go-dependency-injection.md +168 -0
  693. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go.md +29 -0
  694. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/java.md +39 -0
  695. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/kotlin.md +31 -0
  696. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/typescript.md +32 -0
  697. package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +346 -273
  698. package/package/corpus/skills/cratis-governed-release-methodology/references/artifact-verification.md +58 -0
  699. package/package/corpus/skills/cratis-governed-release-methodology/references/lifecycle-phases.md +32 -25
  700. package/package/corpus/skills/cratis-governed-release-methodology/references/release-decisions.md +78 -0
  701. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +331 -98
  702. package/package/corpus/skills/cratis-lens-browser-extension/references/csharp.md +13 -0
  703. package/package/corpus/skills/cratis-lens-browser-extension/references/elixir.md +9 -0
  704. package/package/corpus/skills/cratis-lens-browser-extension/references/go.md +8 -0
  705. package/package/corpus/skills/cratis-lens-browser-extension/references/java.md +8 -0
  706. package/package/corpus/skills/cratis-lens-browser-extension/references/kotlin.md +8 -0
  707. package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +111 -102
  708. package/package/corpus/skills/cratis-lens-browser-extension/references/typescript.md +10 -0
  709. package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +333 -102
  710. package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +144 -15
  711. package/package/corpus/skills/cratis-modeling-design-event-model/references/command-inventory.md +43 -0
  712. package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +71 -3
  713. package/package/corpus/skills/cratis-modeling-design-event-model/references/review-one-slice.md +14 -13
  714. package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +265 -14
  715. package/package/corpus/skills/cratis-modeling-discover-timeline/references/discovery-questions.md +10 -8
  716. package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +5 -1
  717. package/package/corpus/skills/cratis-modeling-discover-timeline/references/studio.md +136 -0
  718. package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +172 -9
  719. package/package/corpus/skills/cratis-modeling-review-event-model/references/csharp.md +40 -0
  720. package/package/corpus/skills/cratis-modeling-review-event-model/references/elixir.md +32 -0
  721. package/package/corpus/skills/cratis-modeling-review-event-model/references/event-log-hygiene.md +44 -0
  722. package/package/corpus/skills/cratis-modeling-review-event-model/references/go.md +27 -0
  723. package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +20 -9
  724. package/package/corpus/skills/cratis-modeling-review-event-model/references/java.md +28 -0
  725. package/package/corpus/skills/cratis-modeling-review-event-model/references/kotlin.md +28 -0
  726. package/package/corpus/skills/cratis-modeling-review-event-model/references/model-findings.md +30 -10
  727. package/package/corpus/skills/cratis-modeling-review-event-model/references/resilience-review.md +1 -1
  728. package/package/corpus/skills/cratis-modeling-review-event-model/references/screenplay-evidence.md +159 -0
  729. package/package/corpus/skills/cratis-modeling-review-event-model/references/typescript.md +27 -0
  730. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +128 -16
  731. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +5 -5
  732. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp-source-adapter.md +221 -0
  733. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp.md +11 -0
  734. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/draft-checks.md +23 -0
  735. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/elixir.md +13 -0
  736. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/go.md +10 -0
  737. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/java.md +5 -0
  738. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/kotlin.md +5 -0
  739. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +67 -4
  740. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/side-car-migration.md +11 -0
  741. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/typescript.md +5 -0
  742. package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +229 -90
  743. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp-aspire.md +204 -0
  744. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp.md +31 -0
  745. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +82 -36
  746. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/elixir.md +10 -0
  747. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/go.md +11 -0
  748. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/java.md +11 -0
  749. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/kotlin.md +11 -0
  750. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/typescript.md +15 -0
  751. package/package/corpus/skills/cratis-observability/SKILL.md +178 -10
  752. package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +153 -13
  753. package/package/corpus/skills/cratis-observability/references/csharp-arc-and-chronicle-signals.md +79 -0
  754. package/package/corpus/skills/cratis-observability/references/csharp-setup-options.md +104 -0
  755. package/package/corpus/skills/cratis-observability/references/csharp.md +172 -56
  756. package/package/corpus/skills/cratis-observability/references/elixir.md +243 -5
  757. package/package/corpus/skills/cratis-observability/references/go-arc-diagnostics.md +134 -0
  758. package/package/corpus/skills/cratis-observability/references/go.md +292 -0
  759. package/package/corpus/skills/cratis-observability/references/java.md +236 -0
  760. package/package/corpus/skills/cratis-observability/references/kotlin.md +251 -0
  761. package/package/corpus/skills/cratis-observability/references/troubleshooting.md +13 -17
  762. package/package/corpus/skills/cratis-observability/references/typescript-chronicle-client.md +116 -0
  763. package/package/corpus/skills/cratis-observability/references/typescript.md +159 -0
  764. package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +222 -85
  765. package/package/corpus/skills/cratis-onboarding-runtime/references/ante-onboarding-keys.md +153 -10
  766. package/package/corpus/skills/cratis-onboarding-runtime/references/csharp.md +61 -0
  767. package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +29 -33
  768. package/package/corpus/skills/cratis-onboarding-runtime/references/performance.md +75 -19
  769. package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +10 -6
  770. package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +174 -80
  771. package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +78 -49
  772. package/package/corpus/skills/cratis-orchestration-lanes/references/lane-brief.md +48 -16
  773. package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +11 -8
  774. package/package/corpus/skills/cratis-orchestration-lanes/references/work-records.md +16 -0
  775. package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +80 -90
  776. package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +153 -59
  777. package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +10 -6
  778. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +216 -32
  779. package/package/corpus/skills/cratis-orleans-jobs/references/csharp-lifecycle-and-placement.md +89 -0
  780. package/package/corpus/skills/cratis-orleans-jobs/references/csharp-state-machines.md +96 -0
  781. package/package/corpus/skills/cratis-orleans-jobs/references/csharp.md +301 -0
  782. package/package/corpus/skills/cratis-performance-review/SKILL.md +265 -45
  783. package/package/corpus/skills/cratis-performance-review/references/csharp.md +67 -0
  784. package/package/corpus/skills/cratis-performance-review/references/elixir.md +34 -0
  785. package/package/corpus/skills/cratis-performance-review/references/go.md +43 -0
  786. package/package/corpus/skills/cratis-performance-review/references/java.md +38 -0
  787. package/package/corpus/skills/cratis-performance-review/references/kotlin.md +37 -0
  788. package/package/corpus/skills/cratis-performance-review/references/observer-tuning.md +117 -0
  789. package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +173 -77
  790. package/package/corpus/skills/cratis-performance-review/references/typescript.md +41 -0
  791. package/package/corpus/skills/cratis-platform-build-application/SKILL.md +243 -0
  792. package/package/corpus/skills/cratis-platform-build-application/references/cli-map.md +256 -0
  793. package/package/corpus/skills/cratis-platform-build-application/references/csharp-guided-tours.md +41 -0
  794. package/package/corpus/skills/cratis-platform-build-application/references/csharp.md +17 -0
  795. package/package/corpus/skills/cratis-platform-build-application/references/direct.md +258 -0
  796. package/package/corpus/skills/cratis-platform-build-application/references/elixir.md +27 -0
  797. package/package/corpus/skills/cratis-platform-build-application/references/go.md +13 -0
  798. package/package/corpus/skills/cratis-platform-build-application/references/java.md +13 -0
  799. package/package/corpus/skills/cratis-platform-build-application/references/kotlin.md +13 -0
  800. package/package/corpus/skills/cratis-platform-build-application/references/typescript-guided-tours.md +132 -0
  801. package/package/corpus/skills/cratis-platform-build-application/references/typescript.md +13 -0
  802. package/package/corpus/skills/cratis-platform-build-application/scripts/model-first-status.sh +100 -0
  803. package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +130 -31
  804. package/package/corpus/skills/cratis-platform-configure-environment/references/csharp.md +336 -0
  805. package/package/corpus/skills/cratis-platform-configure-environment/references/elixir.md +224 -0
  806. package/package/corpus/skills/cratis-platform-configure-environment/references/go.md +257 -0
  807. package/package/corpus/skills/cratis-platform-configure-environment/references/java.md +209 -0
  808. package/package/corpus/skills/cratis-platform-configure-environment/references/kotlin.md +240 -0
  809. package/package/corpus/skills/cratis-platform-configure-environment/references/typescript.md +280 -0
  810. package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +120 -8
  811. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-arc-mcp.md +65 -0
  812. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-cli-registration.md +86 -0
  813. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp.md +21 -0
  814. package/package/corpus/skills/cratis-platform-contribute-change/references/elixir.md +12 -0
  815. package/package/corpus/skills/cratis-platform-contribute-change/references/go.md +14 -0
  816. package/package/corpus/skills/cratis-platform-contribute-change/references/java.md +9 -0
  817. package/package/corpus/skills/cratis-platform-contribute-change/references/kotlin.md +12 -0
  818. package/package/corpus/skills/cratis-platform-contribute-change/references/repositories.md +93 -0
  819. package/package/corpus/skills/cratis-platform-contribute-change/references/typescript.md +13 -0
  820. package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +235 -13
  821. package/package/corpus/skills/cratis-platform-deliver-slice/references/contract-reconciliation.md +73 -6
  822. package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +7 -4
  823. package/package/corpus/skills/cratis-platform-deliver-slice/references/csharp.md +251 -0
  824. package/package/corpus/skills/cratis-platform-deliver-slice/references/elixir.md +266 -0
  825. package/package/corpus/skills/cratis-platform-deliver-slice/references/go.md +242 -0
  826. package/package/corpus/skills/cratis-platform-deliver-slice/references/java.md +310 -0
  827. package/package/corpus/skills/cratis-platform-deliver-slice/references/kotlin.md +297 -0
  828. package/package/corpus/skills/cratis-platform-deliver-slice/references/typescript.md +248 -0
  829. package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +173 -25
  830. package/package/corpus/skills/cratis-platform-diagnose-slice/references/csharp.md +7 -0
  831. package/package/corpus/skills/cratis-platform-diagnose-slice/references/elixir.md +7 -0
  832. package/package/corpus/skills/cratis-platform-diagnose-slice/references/evidence.md +100 -0
  833. package/package/corpus/skills/cratis-platform-diagnose-slice/references/go.md +7 -0
  834. package/package/corpus/skills/cratis-platform-diagnose-slice/references/java.md +5 -0
  835. package/package/corpus/skills/cratis-platform-diagnose-slice/references/kotlin.md +5 -0
  836. package/package/corpus/skills/cratis-platform-diagnose-slice/references/typescript.md +7 -0
  837. package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +178 -13
  838. package/package/corpus/skills/cratis-platform-prepare-release-pr/references/product-release-checks.md +23 -0
  839. package/package/corpus/skills/cratis-platform-start-application/SKILL.md +239 -21
  840. package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +223 -18
  841. package/package/corpus/skills/cratis-platform-start-application/references/elixir.md +11 -0
  842. package/package/corpus/skills/cratis-platform-start-application/references/go.md +11 -0
  843. package/package/corpus/skills/cratis-platform-start-application/references/java.md +224 -9
  844. package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +191 -9
  845. package/package/corpus/skills/cratis-platform-start-application/references/typescript.md +14 -0
  846. package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +211 -12
  847. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/csharp.md +9 -0
  848. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/elixir.md +5 -0
  849. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/go.md +5 -0
  850. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/java.md +5 -0
  851. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/kotlin.md +5 -0
  852. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/routes-and-failures.md +40 -0
  853. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/typescript.md +5 -0
  854. package/package/corpus/skills/cratis-release-notes/SKILL.md +137 -57
  855. package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -59
  856. package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +55 -61
  857. package/package/corpus/skills/cratis-rtk/SKILL.md +188 -35
  858. package/package/corpus/skills/cratis-rtk/references/rtk-administration.md +137 -0
  859. package/package/corpus/skills/cratis-rtk/references/rtk-filters.md +68 -0
  860. package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +160 -18
  861. package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +2 -0
  862. package/package/corpus/skills/cratis-screenplay-accept-model/references/csharp.md +122 -0
  863. package/package/corpus/skills/cratis-screenplay-accept-model/references/diagnostic-decisions.md +10 -0
  864. package/package/corpus/skills/cratis-screenplay-accept-model/references/read-the-evidence.md +50 -0
  865. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +265 -41
  866. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/email-templates.md +47 -0
  867. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/environment-keys.md +81 -0
  868. package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +182 -20
  869. package/package/corpus/skills/cratis-screenplay-author-extension/references/cli.md +58 -0
  870. package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +31 -8
  871. package/package/corpus/skills/cratis-screenplay-author-extension/references/csharp.md +66 -0
  872. package/package/corpus/skills/cratis-screenplay-author-extension/references/elixir.md +8 -0
  873. package/package/corpus/skills/cratis-screenplay-author-extension/references/frontend-components.md +12 -0
  874. package/package/corpus/skills/cratis-screenplay-author-extension/references/go.md +95 -0
  875. package/package/corpus/skills/cratis-screenplay-author-extension/references/java.md +15 -0
  876. package/package/corpus/skills/cratis-screenplay-author-extension/references/kotlin.md +69 -0
  877. package/package/corpus/skills/cratis-screenplay-author-extension/references/lock-and-trust.md +23 -0
  878. package/package/corpus/skills/cratis-screenplay-author-extension/references/protocol.md +12 -0
  879. package/package/corpus/skills/cratis-screenplay-author-extension/references/runtime-details.md +30 -0
  880. package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +70 -6
  881. package/package/corpus/skills/cratis-screenplay-author-extension/references/typescript.md +66 -0
  882. package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +165 -20
  883. package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +60 -4
  884. package/package/corpus/skills/cratis-screenplay-availability/references/csharp.md +88 -0
  885. package/package/corpus/skills/cratis-screenplay-availability/references/elixir.md +45 -0
  886. package/package/corpus/skills/cratis-screenplay-availability/references/go.md +5 -0
  887. package/package/corpus/skills/cratis-screenplay-availability/references/java.md +5 -0
  888. package/package/corpus/skills/cratis-screenplay-availability/references/kotlin.md +5 -0
  889. package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +62 -13
  890. package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +72 -13
  891. package/package/corpus/skills/cratis-screenplay-availability/references/typescript.md +20 -0
  892. package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +232 -66
  893. package/package/corpus/skills/cratis-screenplay-declare-slice/references/commands.md +256 -0
  894. package/package/corpus/skills/cratis-screenplay-declare-slice/references/concepts-and-generated-values.md +206 -0
  895. package/package/corpus/skills/cratis-screenplay-declare-slice/references/context-and-identity.md +105 -0
  896. package/package/corpus/skills/cratis-screenplay-declare-slice/references/events-and-constraints.md +123 -0
  897. package/package/corpus/skills/cratis-screenplay-declare-slice/references/language-map.md +129 -0
  898. package/package/corpus/skills/cratis-screenplay-declare-slice/references/policies-and-purposes.md +117 -0
  899. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +3 -12
  900. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projections.md +222 -0
  901. package/package/corpus/skills/cratis-screenplay-declare-slice/references/queries.md +122 -0
  902. package/package/corpus/skills/cratis-screenplay-declare-slice/references/reducers-graphs-sinks.md +105 -0
  903. package/package/corpus/skills/cratis-screenplay-declare-slice/references/structure-and-imports.md +142 -0
  904. package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +164 -21
  905. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/mcp-tools.md +138 -0
  906. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +63 -14
  907. package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +120 -25
  908. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/csharp.md +107 -0
  909. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/mcp.md +16 -0
  910. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/ordering.md +29 -3
  911. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/recipient-contracts.md +50 -0
  912. package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +190 -101
  913. package/package/corpus/skills/cratis-screenplay-model-automation/references/external-effects.md +10 -0
  914. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +12 -4
  915. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-example.md +95 -0
  916. package/package/corpus/skills/cratis-screenplay-model-automation/references/stage-subset.md +61 -0
  917. package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +171 -51
  918. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-host-api.md +177 -0
  919. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp.md +127 -0
  920. package/package/corpus/skills/cratis-screenplay-model-interaction/references/decision-inputs.md +10 -0
  921. package/package/corpus/skills/cratis-screenplay-model-interaction/references/elixir.md +9 -0
  922. package/package/corpus/skills/cratis-screenplay-model-interaction/references/go.md +9 -0
  923. package/package/corpus/skills/cratis-screenplay-model-interaction/references/java.md +9 -0
  924. package/package/corpus/skills/cratis-screenplay-model-interaction/references/kotlin.md +9 -0
  925. package/package/corpus/skills/cratis-screenplay-model-interaction/references/localized-strings.md +1 -1
  926. package/package/corpus/skills/cratis-screenplay-model-interaction/references/navigation-reachability.md +25 -0
  927. package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +187 -20
  928. package/package/corpus/skills/cratis-screenplay-model-interaction/references/typescript.md +119 -6
  929. package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +259 -89
  930. package/package/corpus/skills/cratis-screenplay-model-translation/references/boundary-diagnostics.md +32 -0
  931. package/package/corpus/skills/cratis-screenplay-model-translation/references/stage-realization.md +36 -0
  932. package/package/corpus/skills/cratis-screenplay-model-translation/references/translation-scenarios.md +114 -0
  933. package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +185 -20
  934. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/cli.md +88 -0
  935. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/csharp.md +210 -0
  936. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/typescript.md +45 -0
  937. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/workspace-mcp.md +133 -0
  938. package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +161 -20
  939. package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +195 -7
  940. package/package/corpus/skills/cratis-screenplay-recover-intent/references/elixir.md +21 -0
  941. package/package/corpus/skills/cratis-screenplay-recover-intent/references/go.md +17 -0
  942. package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
  943. package/package/corpus/skills/cratis-screenplay-recover-intent/references/java.md +9 -0
  944. package/package/corpus/skills/cratis-screenplay-recover-intent/references/kotlin.md +9 -0
  945. package/package/corpus/skills/cratis-screenplay-recover-intent/references/running-system.md +122 -6
  946. package/package/corpus/skills/cratis-screenplay-recover-intent/references/typescript.md +9 -0
  947. package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +233 -62
  948. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/boundary-scenarios.md +60 -0
  949. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/case-questions.md +30 -0
  950. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/coverage-worksheet.md +16 -8
  951. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/csharp.md +41 -0
  952. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/graph-steps.md +37 -5
  953. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/named-cases.md +23 -10
  954. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +22 -19
  955. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/scenarios.md +230 -0
  956. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +140 -14
  957. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
  958. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +7 -9
  959. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +36 -24
  960. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/destination-repairs.md +21 -0
  961. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
  962. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +6 -9
  963. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +3 -6
  964. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +4 -5
  965. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +32 -19
  966. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +53 -16
  967. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +1 -1
  968. package/package/corpus/skills/cratis-security-review/SKILL.md +137 -72
  969. package/package/corpus/skills/cratis-security-review/references/csharp.md +114 -0
  970. package/package/corpus/skills/cratis-security-review/references/elixir.md +21 -0
  971. package/package/corpus/skills/cratis-security-review/references/go.md +22 -0
  972. package/package/corpus/skills/cratis-security-review/references/java.md +20 -0
  973. package/package/corpus/skills/cratis-security-review/references/kotlin.md +20 -0
  974. package/package/corpus/skills/cratis-security-review/references/python.md +3 -0
  975. package/package/corpus/skills/cratis-security-review/references/review-checklist.md +98 -68
  976. package/package/corpus/skills/cratis-security-review/references/typescript.md +22 -0
  977. package/package/corpus/skills/cratis-session-handoff/SKILL.md +134 -90
  978. package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +35 -52
  979. package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +170 -86
  980. package/package/corpus/skills/cratis-showrunner-herald/references/csharp-templates-and-images.md +115 -0
  981. package/package/corpus/skills/cratis-showrunner-herald/references/csharp.md +280 -0
  982. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +252 -38
  983. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +104 -10
  984. package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +185 -27
  985. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +103 -3
  986. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-decision-reads.md +40 -11
  987. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-events.md +136 -0
  988. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-graphs.md +45 -0
  989. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-integration.md +121 -75
  990. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +33 -8
  991. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-reactors.md +117 -0
  992. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-read-models.md +96 -0
  993. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-relational.md +16 -0
  994. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-slice.md +68 -0
  995. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +142 -34
  996. package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +274 -32
  997. package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +176 -111
  998. package/package/corpus/skills/cratis-specifications-exercise-backend/references/java.md +208 -5
  999. package/package/corpus/skills/cratis-specifications-exercise-backend/references/kotlin.md +235 -7
  1000. package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +223 -57
  1001. package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +159 -34
  1002. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-running.md +180 -0
  1003. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp.md +331 -0
  1004. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/kotlin.md +5 -0
  1005. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/typescript.md +9 -0
  1006. package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +92 -55
  1007. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-browser.md +44 -0
  1008. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-storybook.md +157 -0
  1009. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript.md +8 -0
  1010. package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +182 -9
  1011. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-rendering.md +172 -0
  1012. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript.md +400 -0
  1013. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +139 -9
  1014. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/references/typescript.md +316 -0
  1015. package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +284 -14
  1016. package/package/corpus/skills/cratis-stage-render-slice/references/csharp-configuration.md +202 -0
  1017. package/package/corpus/skills/cratis-stage-render-slice/references/csharp-planning.md +80 -0
  1018. package/package/corpus/skills/cratis-stage-render-slice/references/csharp.md +221 -0
  1019. package/package/corpus/skills/cratis-stage-render-slice/references/graph-rendering.md +53 -0
  1020. package/package/corpus/skills/cratis-stage-render-slice/references/java.md +25 -0
  1021. package/package/corpus/skills/cratis-stage-render-slice/references/review-render-plan.md +154 -12
  1022. package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +212 -12
  1023. package/package/corpus/skills/cratis-stage-run-sandbox/references/journey-replay.md +47 -0
  1024. package/package/corpus/skills/cratis-stage-run-sandbox/references/published-mode.md +103 -0
  1025. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-runtime.md +67 -0
  1026. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +60 -6
  1027. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +243 -52
  1028. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/tools.md +239 -0
  1029. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/webhooks.md +74 -0
  1030. package/package/corpus/skills/cratis-technical-examples/SKILL.md +233 -67
  1031. package/package/corpus/skills/cratis-technical-examples/references/csharp.md +325 -0
  1032. package/package/corpus/skills/cratis-technical-examples/references/elixir.md +114 -0
  1033. package/package/corpus/skills/cratis-technical-examples/references/go.md +74 -0
  1034. package/package/corpus/skills/cratis-technical-examples/references/java.md +194 -0
  1035. package/package/corpus/skills/cratis-technical-examples/references/kotlin.md +205 -0
  1036. package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +57 -40
  1037. package/package/corpus/skills/cratis-technical-examples/references/typescript.md +427 -0
  1038. package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +120 -35
  1039. package/package/corpus/skills/cratis-ux-review/SKILL.md +136 -33
  1040. package/package/corpus/skills/cratis-ux-review/references/checklist.md +10 -6
  1041. package/package/corpus/skills/cratis-ux-review/references/report-template.md +10 -8
  1042. package/package/corpus/skills/cratis-ux-review/references/typescript.md +9 -0
  1043. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +275 -51
  1044. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +49 -35
  1045. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/pattern-evidence.md +151 -0
  1046. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +28 -16
  1047. package/package/corpus/skills/migrate-dotnet10-to-dotnet11/SKILL.md +3 -1
  1048. package/package/profile-catalog.json +34 -2
  1049. package/package.json +1 -1
  1050. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +0 -40
  1051. package/package/corpus/skills/cratis-arc-declare-command/references/python.md +0 -3
  1052. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/python.md +0 -3
  1053. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +0 -23
  1054. package/package/corpus/skills/cratis-arc-expose-query/references/python.md +0 -3
  1055. package/package/corpus/skills/cratis-arc-generate-proxies/references/python.md +0 -3
  1056. package/package/corpus/skills/cratis-arc-host-application/references/python.md +0 -3
  1057. package/package/corpus/skills/cratis-arc-page-query/references/python.md +0 -3
  1058. package/package/corpus/skills/cratis-arc-react-bind-slice/references/commands.md +0 -88
  1059. package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +0 -9
  1060. package/package/corpus/skills/cratis-arc-react-bind-slice/references/identity.md +0 -7
  1061. package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +0 -9
  1062. package/package/corpus/skills/cratis-arc-react-bind-slice/references/manual-screen.md +0 -10
  1063. package/package/corpus/skills/cratis-arc-react-bind-slice/references/query-state.md +0 -29
  1064. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +0 -45
  1065. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/python.md +0 -3
  1066. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +0 -11
  1067. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +0 -40
  1068. package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +0 -62
  1069. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +0 -49
  1070. package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +0 -25
  1071. package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +0 -51
  1072. package/package/corpus/skills/cratis-arc-validate-command/references/java.md +0 -27
  1073. package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +0 -23
  1074. package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +0 -23
  1075. package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +0 -55
  1076. package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +0 -72
  1077. package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +0 -86
  1078. package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +0 -46
  1079. package/package/corpus/skills/cratis-chronicle-evolve-event/references/bulk-repair.md +0 -7
  1080. package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +0 -50
  1081. package/package/corpus/skills/cratis-chronicle-record-event/references/python.md +0 -3
  1082. package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +0 -29
  1083. package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +0 -8
  1084. package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +0 -15
  1085. package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +0 -3
  1086. package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +0 -5
  1087. package/package/corpus/skills/cratis-components-display-list/references/server-query.md +0 -21
  1088. package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +0 -9
  1089. package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +0 -9
  1090. package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +0 -9
  1091. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +0 -68
  1092. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +0 -202
  1093. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +0 -161
  1094. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +0 -20
  1095. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go-jvm-python-elixir.md +0 -83
  1096. package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +0 -109
  1097. package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +0 -95
  1098. package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +0 -3
  1099. package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +0 -16
  1100. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +0 -14
  1101. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +0 -52
  1102. package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +0 -54
  1103. package/package/corpus/skills/cratis-observability/references/dotnet-setup-and-options.md +0 -68
  1104. package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +0 -22
  1105. package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +0 -12
  1106. package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +0 -12
  1107. package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +0 -5
  1108. package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +0 -56
  1109. package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +0 -66
  1110. package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +0 -27
  1111. package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +0 -35
  1112. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +0 -90
  1113. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/unknown-preserving-reader.md +0 -9
  1114. package/package/corpus/skills/cratis-screenplay-model-automation/references/host-trigger.md +0 -17
  1115. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-performers.md +0 -18
  1116. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +0 -12
  1117. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -10
  1118. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +0 -123
  1119. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/interview-batch.md +0 -20
  1120. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +0 -11
  1121. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/review-questions.md +0 -13
  1122. package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +0 -58
  1123. package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +0 -20
  1124. package/package/corpus/skills/cratis-showrunner-herald/references/options.md +0 -35
  1125. package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +0 -76
  1126. package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +0 -37
  1127. package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +0 -40
  1128. package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +0 -24
  1129. package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +0 -23
  1130. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-phase-timings.md +0 -13
  1131. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +0 -7
  1132. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/blocked-tools.md +0 -11
  1133. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/observational-tools.md +0 -7
  1134. package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +0 -8
  1135. package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +0 -8
  1136. package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +0 -24
  1137. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +0 -23
  1138. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +0 -25
  1139. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +0 -17
  1140. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +0 -23
@@ -1,94 +1,188 @@
1
1
  <!-- Copyright (c) Cratis. All rights reserved. -->
2
2
  <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
3
3
 
4
- # Merge queue state checks
4
+ # Merge turn state checks
5
5
 
6
- Each check reads GitHub or Git state immediately before the merge. The final
7
- request changes GitHub state and is for the authorized merger only. Use the REST
8
- API through `gh api`. Set `repo` to `owner/name`, `predecessor` and `pr` to the PR numbers, and
9
- `run_id` to the relied-on CI run ID. Stop after any failed command. Gate
10
- content and run watching stay in `cratis-engineering-ci-gates`.
6
+ ## Contents
11
7
 
12
- ## 1. Predecessors are merged
8
+ - Setup
9
+ - 1. Check authority, intent and method
10
+ - 2. Reconcile exact-candidate checks and runs
11
+ - 3. Prove ancestry and non-overlap
12
+ - 4. Guard publishing and recheck inputs
13
+ - 5. Submit one head-bound request
14
+ - 6. Verify landing and settle the turn
15
+ - Bounded event wait
16
+ - Worked example
17
+
18
+ ## Setup
19
+
20
+ Set the repository, PR number and an absolute scratch directory under the brief's ignored `<work-root>`. The names and numbers below are illustrative. Run Git from the checkout root and use an authorized remote for the target repository (not the contributor's fork). Run each command under the brief's time box with stdin closed; check command errors before using any output. Read-only evidence gathering is not permission to merge.
13
21
 
14
22
  ```bash
15
- gh api "repos/$repo/pulls/$predecessor" --jq '{state: .state, merged: .merged}'
23
+ export GH_PROMPT_DISABLED=1 GIT_TERMINAL_PROMPT=0
24
+ repo=example-org/dispatch
25
+ pr=12
26
+ predecessor=10
27
+ remote=origin
16
28
  ```
17
29
 
18
- Proceed only when `merged` is `true`. A closed pull request with `merged:
19
- false` was abandoned, not delivered: stop and report it.
30
+ ## 1. Check authority, intent and method
20
31
 
21
- ## 2. No publish is active
32
+ Only the named merger can write. Verify the planned release impact and current labels against `cratis-commits-and-pull-requests`. Where required, verify exactly one applicable release label. Missing or ambiguous intent blocks; `major` goes to the human for explicit approval and human merge, without an agent merging, enqueueing or arming auto-merge. A PR-only or admission-only instruction does not authorize an auto-merge request; even queue admission must be authorized to result in automatic landing under queue policy.
22
33
 
23
34
  ```bash
24
- gh api --paginate "repos/$repo/actions/workflows/$workflow/runs" \
25
- --jq '.workflow_runs[] | select(.status != "completed") | .id'
35
+ gh api graphql -F owner="${repo%/*}" -F name="${repo#*/}" -F pr="$pr" -f query='
36
+ query($owner: String!, $name: String!, $pr: Int!) {
37
+ repository(owner: $owner, name: $name) {
38
+ mergeCommitAllowed
39
+ pullRequest(number: $pr) {
40
+ id state headRefOid baseRefName baseRefOid potentialMergeCommit { oid }
41
+ isDraft reviewDecision mergeStateStatus mergeable autoMergeRequest { enabledAt }
42
+ isMergeQueueEnabled isInMergeQueue
43
+ mergeQueue { configuration { mergeMethod maximumEntriesToMerge } }
44
+ mergeQueueEntry { id state }
45
+ }
46
+ }
47
+ }' --jq .data.repository < /dev/null
48
+ gh pr view "$pr" -R "$repo" --json labels < /dev/null
49
+ ```
50
+
51
+ Pin `pr_id` and `pr_head` to `id` and `headRefOid`, `base` and `base_tip` to `baseRefName` and `baseRefOid`, and record the test-merge SHA when available. Read the actual branch's current tip and protection, and all pages of its active rules (including inherited rules). Use `jq` to URL-encode a branch name with slashes:
52
+
53
+ ```bash
54
+ base_api=$(jq -nr --arg ref "$base" '$ref | @uri' < /dev/null)
55
+ gh api "repos/$repo/branches/$base_api" < /dev/null
56
+ gh api "repos/$repo/branches/$base_api/protection" < /dev/null
57
+ gh api --paginate "repos/$repo/rules/branches/$base_api" < /dev/null
26
58
  ```
27
59
 
28
- Set `workflow` to the repository's publish workflow ID or file name. Proceed
29
- only when the query succeeds and lists no IDs. Report any returned IDs; never cancel another
30
- owner's publish run (see `cratis-engineering-ci-gates`).
60
+ The classic protection response supplies `required_status_checks` (`checks` with `context` and `app_id`, `contexts`, and `strict`), `required_pull_request_reviews`, and `required_linear_history.enabled`. Rulesets add `required_status_checks` (`required_status_checks` entries with `context` and `integration_id`, and `strict_required_status_checks_policy`), required workflows, and other branch rules. A verified absence of classic protection, such as an accessible unprotected branch and a `Branch not protected` response, is not an error in the policy. A missing permission, ambiguous 404, incomplete page or unreadable policy is not absence; ask an authorized reader. An empty ruleset response cannot rule out classic protection.
61
+
62
+ Proceed only for an open, non-draft PR with required reviews and other branch requirements satisfied as applicable before submission. Check required review counts and special conditions such as Code Owners and approval of the latest push; use `reviewDecision` and the merge box as evidence, not a replacement for the policy. Treat conflicts, unresolved requirements and uncomputed mergeability as blockers. If strict protection applies, refresh a head that does not include the current base. Do not assume `CLEAN` proves the lane gates.
63
+
64
+ Require `mergeCommitAllowed`, `merge` in any applicable `pull_request.allowed_merge_methods` rule, and no enforced linear-history requirement. For a required queue, verify its effective `mergeMethod` is `MERGE` and that queue membership and grouping cannot land another candidate under this turn. An incompatible policy blocks; neither rebase nor squash is a fallback. If already queued or auto-merge is armed, reconcile that outstanding write with its owner; do not submit another.
31
65
 
32
- ## 3. No overlapping change on main since CI ran
66
+ ## 2. Reconcile exact-candidate checks and runs
33
67
 
34
- Identify `tested_base`, the immutable main revision the workflow actually
35
- tested against. A run head SHA identifies the run head, not that base. Refresh
36
- `origin/main` with authorized Git fetch access. Set `candidate_path` to a
37
- repository-relative path the delivery touches; repeat the check for each path.
68
+ Build the expected inventory from both protection systems in step 1, plus repository CI policy and the brief. List each required context and expected publisher, and each required workflow (identify by source and workflow path/ID, not display name alone). For a required workflow that is not a named status context, separately verify that workflow's result and GitHub's policy decision. No expected branch contexts is valid **only** after both policy sources were checked. Still require delivery evidence from the appropriate CI runs; an empty set neither invents a required check nor waives the tested-base proof.
69
+
70
+ Use the PR's checks box and identified `potentialMergeCommit.oid` to determine the effective SHA: if the test merge has a status, GitHub requires the test merge to pass; otherwise the head must pass. Confirm the current test merge combines the pinned head and base when relying on it. Do not fall back to a known-green head when the effective test-merge checks are missing or failing. Use each explicitly required delivery run's actual checkout and trigger to determine what it tested. Read reported checks and statuses for the exact SHA being reconciled:
38
71
 
39
72
  ```bash
40
- git fetch origin refs/heads/main:refs/remotes/origin/main &&
41
- git merge-base --is-ancestor "$tested_base" origin/main &&
42
- git log --oneline "$tested_base"..origin/main -- "$candidate_path"
73
+ gh api --paginate "repos/$repo/commits/$check_sha/check-runs?filter=all" \
74
+ --jq '.check_runs[] | {name, head_sha, status, conclusion, app: .app.id, check_suite}' < /dev/null
75
+ gh api --paginate "repos/$repo/commits/$check_sha/status" \
76
+ --jq '{sha, statuses: [.statuses[] | {context, state, creator, target_url}]}' < /dev/null
77
+ gh api "repos/$repo/actions/runs/$run_id" \
78
+ --jq '{workflow_id, path, event, status, conclusion, head_sha, head_repository, pull_requests, check_suite_id, display_title}' < /dev/null
43
79
  ```
44
80
 
45
- Proceed only when the commands succeed and the log is empty for every
46
- candidate path. If the tested base is missing, unprovable or not an ancestor
47
- of current main, refresh the branch as required and run CI again.
81
+ A required check must be present on the effective SHA from the allowed source in the current applicable suite, completed with `success`, `skipped` or `neutral`; a commit status must be `success`. If both a check and a status share a required name, both must pass. Verify the configured publisher, not a coincidentally named context or user; when the API result doesn't prove the publisher, inspect the trusted merge-box evidence or stop. Missing is not skipped. For Actions, match the check suite and job to the latest applicable run and attempt for that workflow, verify the eligible event and PR/repository identity, and require `completed` with `success` for mandatory runs. A `workflow_dispatch` job does not satisfy a required PR ruleset check even if it uses the right SHA. For an external publisher, verify its equivalent trusted result and inputs. Retain the exact head, event base and actual checked-out commit from trusted run metadata, logs or results. A workflow run's `head_sha` by itself does not identify its checkout or prove what base it tested.
82
+
83
+ `gh pr checks --required --json name,workflow,bucket` is useful for diagnosing reported head contexts only. `pass` and `skipping` are acceptable **reported** outcomes; `fail`, `pending` and `cancel` are not. The JSON exit status is not a pass signal. A non-JSON invocation can exit zero on cancellation, and “no required checks reported” cannot distinguish missing requirements from verified absence.
84
+
85
+ ## 3. Prove ancestry and non-overlap
48
86
 
49
- ## 4. The run belongs to the current head
87
+ For every predecessor, read `gh pr view "$predecessor" -R "$repo" --json state < /dev/null`. Only `MERGED` passes. Then fetch the target and the candidate from the target repository's PR ref. Require full history and that both fetched refs still match step 1; a changed input invalidates the turn evidence.
50
88
 
51
89
  ```bash
52
- pr_head=$(gh api "repos/$repo/pulls/$pr" --jq '.head.sha') &&
53
- run_head=$(gh api "repos/$repo/actions/runs/$run_id" --jq '.head_sha') &&
54
- test -n "$pr_head" && test "$pr_head" = "$run_head"
90
+ git fetch "$remote" "refs/heads/$base" < /dev/null &&
91
+ test "$(git rev-parse FETCH_HEAD)" = "$base_tip" &&
92
+ git fetch "$remote" "refs/pull/$pr/head" < /dev/null &&
93
+ test "$(git rev-parse FETCH_HEAD)" = "$pr_head" &&
94
+ test "$(git rev-parse --is-shallow-repository)" = false
55
95
  ```
56
96
 
57
- A nonzero exit means the match was not proved. Also verify the required run
58
- completed successfully and is the expected workflow for this pull request.
97
+ For **each** relied-on CI baseline, identify `tested_base`, the immutable target revision actually integrated into the tested code. A PR test-merge run can prove it with the recorded test-merge commit and its parents (the event's base and head), if that commit was actually checked out. For a head-only checkout, use the recorded integrated base and prove it is an ancestor of the built head. A recorded event base is not proof it was tested if the checkout overrode the ref. Never derive the tested base from today's base, the run's display name without corroboration, or an unverified assumption about checkout. When evidence is missing, ask the workflow owner to supply it or refresh and obtain new CI that records it.
59
98
 
60
- ## 5. Bind the authorized merge to the verified head
99
+ Prove `tested_base` is an ancestor of the actual `tested_revision` and of the pinned `base_tip`. Prove the tested input belongs to the pinned `pr_head` as above. For the candidate paths only, use the current PR's diff base: obtain the unique merge base of the pinned head and target with `git merge-base --all`, stop if it is ambiguous, and use it as `pr_start`. Do not reuse `pr_start` as tested-base evidence. Set `candidate_paths` to a scratch file; repeat the history check for each proven baseline:
61
100
 
62
- For a direct merge, supply the SHA you just verified. For example, when the
63
- repository uses merge commits:
101
+ ```bash
102
+ git merge-base --is-ancestor "$tested_base" "$tested_revision" < /dev/null &&
103
+ git merge-base --is-ancestor "$tested_base" "$base_tip" < /dev/null &&
104
+ git diff --no-renames --name-only -z "$pr_start" "$pr_head" -- > "$candidate_paths" < /dev/null
105
+ ```
64
106
 
65
107
  ```bash
66
- GH_PROMPT_DISABLED=1 gh pr merge "$pr" --repo "$repo" --merge \
67
- --match-head-commit "$run_head" < /dev/null
108
+ check_overlap() (
109
+ blocked=0
110
+ while IFS= read -r -d '' path; do
111
+ changes=$(git log --full-history --sparse --diff-merges=separate \
112
+ --no-renames --format= --name-only "$tested_base..$base_tip" -- \
113
+ ":(top,literal)$path" < /dev/null) || exit 1
114
+ if [ -n "$changes" ]; then
115
+ printf 'Overlap: %q\n' "$path"
116
+ git log --full-history --diff-merges=separate --oneline --name-status \
117
+ --no-renames "$tested_base..$base_tip" -- ":(top,literal)$path" < /dev/null || exit 1
118
+ blocked=1
119
+ fi
120
+ done < "$candidate_paths"
121
+ exit "$blocked"
122
+ )
123
+ check_overlap
68
124
  ```
69
125
 
70
- Use the repository's required merge strategy. If GitHub requires a merge
71
- queue, keep its protection: omit the strategy flag and still pass
72
- `--match-head-commit`. Queue admission or auto-merge setup is not a completed
73
- merge. Verify the required merge-group checks for the queued candidate and
74
- do not advance the turn until GitHub confirms the pull request merged. If its
75
- head changes before completion, stop and recheck the current head and all
76
- gates. If GitHub rejects the SHA or cannot enforce it, stop and report
77
- it; never retry without the SHA or bypass branch protection.
126
+ The check passes only when it exits zero with no overlapping path. It walks commits and merge-parent diffs, so a target edit and its revert both count even when a net diff is empty. It intentionally errs on the side of refreshing and counts both paths of renames. Include any wider path scopes required by the brief; file paths are not a check for semantic coupling across files. On overlap, the branch owner merges in the base and obtains CI on the resulting revision. Do not rebase or rerun the old event: a rerun reuses its original commit and ref.
78
127
 
79
- ## Worked example
128
+ ## 4. Guard publishing and recheck inputs
129
+
130
+ For a no-overlap guarantee, use the repository's verified shared interlock: obtain exclusive admission against other base updates and publishes, wait for prior publishing to drain, and hold the interlock through merge confirmation or confirmed cancellation/withdrawal. It must cover every publisher and contender, including manual dispatch, queued deliveries and alternative entry points. For queued landing it must remain effective while GitHub, not the agent, owns the write; it must keep the authorized head, release intent and candidate scope valid through landing. A publish workflow's concurrency setting, a lane lease alone or an interlock that expires while the request can still land is insufficient. If no such contract is in place, stop; only an expressly authorized direct merge may use the weaker snapshot check. Neither the snapshot nor the expected-head parameter prevents a race with a new publish or a change to the base.
131
+
132
+ Under that guard, re-read head, base, test-merge identity if relied on, policy, intent and readiness before writing. Any change invalidates the evidence. As the last read before the write, check every publishing workflow, including manual release paths, using its file name or ID in `workflow`:
133
+
134
+ ```bash
135
+ gh api --paginate "repos/$repo/actions/workflows/$workflow/runs" \
136
+ --jq '.workflow_runs[] | select(.status != "completed") | {id, status}' < /dev/null
137
+ ```
138
+
139
+ Require a successful read with no result for every publisher. Any run still queued, waiting, requested, pending or in progress blocks as much as an executing publish. Include non-Actions publishers in the interlock and use their equivalent activity evidence. Never cancel another owner's publish.
140
+
141
+ ## 5. Submit one head-bound request
80
142
 
81
- Candidate pull request 12 depends on pull request 10. Its CI run 900 was green.
143
+ **Default, when the branch does not require a queue:** use the synchronous merge endpoint. This endpoint does not enqueue or arm auto-merge. Require `merged: true` and record the returned SHA; still verify landing in step 6.
82
144
 
83
- 1. Predecessor: `pulls/10` reports `merged: true`. Passes.
84
- 2. Publish: the workflow query succeeds and lists no IDs. Passes.
85
- 3. Overlap: the recorded tested base predates a commit on main; the path check
86
- for `Source/Api` prints that commit, which changed `Source/Api`. Fails.
145
+ ```bash
146
+ gh api --method PUT "repos/$repo/pulls/$pr/merge" \
147
+ -f sha="$pr_head" -f merge_method=merge < /dev/null
148
+ ```
149
+
150
+ **Required queue only:** after verifying admission authority, method, grouping, pre-admission CI and the interlock, enqueue the current head explicitly. Do not use `gh pr merge` as an enqueue-only call: it uses the auto-merge mutation and can arm auto-merge when checks are pending. The enqueue request's expected head guards admission, not a later publish or base update.
151
+
152
+ ```bash
153
+ gh api graphql -f id="$pr_id" -f head="$pr_head" -f query='
154
+ mutation($id: ID!, $head: GitObjectID!) {
155
+ enqueuePullRequest(input: {pullRequestId: $id, expectedHeadOid: $head}) {
156
+ mergeQueueEntry { id state }
157
+ }
158
+ }' --jq .data.enqueuePullRequest.mergeQueueEntry < /dev/null
159
+ ```
160
+
161
+ Expect a queue entry, not a merge. A null result, SHA rejection or inability to enforce protection blocks. On an ambiguous timeout or lost response, read actual state and reconcile the potentially outstanding write before any further action. Never retry with an unbound SHA, choose a different merge method or bypass protection.
162
+
163
+ ## 6. Verify landing and settle the turn
164
+
165
+ For a queued PR, identify the actual merge group containing the verified head from the queue's group/check details and trusted run or `merge_group.checks_requested` event metadata. Pin its group SHA (`merge_group.head_sha`) and ref (`merge_group.head_ref`). Fetch that ref while it exists (or retain trusted group evidence), verify the SHA, the group's base and inclusion of the authorized PR head, and reconcile required checks and runs on **that SHA** as in step 2. Required Actions workflows must report for `merge_group`; a green `pull_request` run for the same PR does not count. If GitHub rebuilds the group, use the replacement's evidence. Track the entry and checks within the brief's limit using the CI watch from `cratis-engineering-ci-gates`; a PR-head event subscription is not a group check watch. Verify stored group evidence if GitHub lands before the read. If the group cannot be identified or its checks cannot be verified, do not report successful delivery.
166
+
167
+ `QUEUED`, `AWAITING_CHECKS`, `MERGEABLE` and `LOCKED` are not delivered. Investigate missing group checks, including workflows that do not trigger for `merge_group`. A changed head, failed group, `UNMERGEABLE`, or a PR leaving the queue without merging stops this turn. If the brief authorizes withdrawal, use `dequeuePullRequest(input: {id: ...})` with the PR node ID; if an auto-merge request exists, disabling it with `gh pr merge --disable-auto` is a separate authorized operation. Read both states and confirm no write remains armed, or reconcile an already completed merge. On timeout or uncertainty, send `blocked`, hand the outstanding request and interlock to the coordinator, and do not give the next lane a turn.
168
+
169
+ ```bash
170
+ gh pr view "$pr" -R "$repo" --json state,headRefOid,mergedAt,mergeCommit < /dev/null
171
+ ```
172
+
173
+ Require `MERGED` with a merge commit for the authorized head. Fetch the resulting commit from the target, verify its parents and the inclusion of the verified head in Git; confirm it matches the intended merge (for a direct merge the verified head is its second parent). For a queue also retain the successful exact-group evidence and its association with that landing. Record policy, head, tested bases, predecessors, publishes, any group SHA and checks, commands and results, and merge SHA. Only then release the serial turn as delivered. A confirmed removal with no pending write settles the request as **not delivered**, not as success.
174
+
175
+ ## Bounded event wait
176
+
177
+ Off-path: if GitHub CLI event subscriptions are enabled on the account, listen on the relevant PR, here the predecessor. Use the brief's bound in `wait_limit`; detach beyond the threshold. Without subscriptions, use the coordinator's handoff rather than polling.
178
+
179
+ ```bash
180
+ gh event listen --resource "https://github.com/$repo/pull/$predecessor" \
181
+ --event com.github.pull_request.state.changed.v1 --timeout "$wait_limit" < /dev/null
182
+ ```
183
+
184
+ The listener exits zero after the first event and 8 on timeout. Add review-submitted, head-changed, check-suite or conflict events when waiting for those changes, by repeating `--event` or separating types with commas. Read current state after attach and on wake; the event contains an API URL, not a decision, and can duplicate or miss changes. On timeout send `blocked`, not permission to proceed.
185
+
186
+ ## Worked example
87
187
 
88
- The lane does not merge. It reports "turn blocked: main changed `Source/Api`
89
- after the tested base" with the commit id, then hands the turn back to
90
- `<coordinator>`. After updating the branch it needs a new run on the new head;
91
- the old green run proves nothing for it. The merge proceeds only when the three
92
- state checks (predecessors merged, no publish running, no overlap since CI ran)
93
- all hold, CI matches the current head, and the authorized merge request is
94
- bound to that SHA. The lane records the commands and their results.
188
+ The dispatch PR targets the next serial turn. Its predecessor reads `MERGED`; protection allows merge commits and CI proved the exact current candidate. The target changed `Routing/Dispatch.cs` after the recorded tested base, then reverted that edit. The target's net diff is empty for the path, but step 3 reports both commits. Record the path and commits and hand the turn back without a write. The branch owner merges in the new base, obtains fresh CI, and the merger repeats the checks before requesting a turn.
@@ -10,7 +10,9 @@ box.
10
10
  ## The no-prompt contract
11
11
 
12
12
  - Every command runs without a terminal prompt: explicit flags, values passed
13
- by argument or environment, stdin closed (`< /dev/null`).
13
+ by argument or environment, stdin closed (`< /dev/null`). Set
14
+ `GH_PROMPT_DISABLED=1` for the GitHub CLI and `GIT_TERMINAL_PROMPT=0` so Git
15
+ fails instead of asking for credentials.
14
16
  - Every command has a deadline. A hung command is killed by its box, not
15
17
  waited on.
16
18
  - A hook that would ask is a blocker, not an obstacle. Never loosen a hook,
@@ -26,9 +28,9 @@ a brief may override within those bounds. The queue wait is set by the brief.
26
28
 
27
29
  | Box | Value from | Action at the limit |
28
30
  |---|---|---|
29
- | Targeted check | placeholders.md | Stop and diagnose |
30
- | Build or test phase | placeholders.md | Stop and diagnose; longer needs approval |
31
- | Detach threshold | placeholders.md | Run detached; do not wait |
31
+ | Targeted check | Lanes defaults | Stop and diagnose |
32
+ | Build or test phase | Lanes defaults | Stop and diagnose; longer needs approval |
33
+ | Detach threshold | Lanes defaults | Run detached; do not wait |
32
34
  | Queue wait | the brief | Send a `blocked` message |
33
35
 
34
36
  ## A silent command is diagnosed
@@ -46,8 +48,8 @@ blocking watch described in `cratis-engineering-ci-gates` holds the wait.
46
48
 
47
49
  ## Checkable example
48
50
 
49
- Set the repository and PR number first. Use the harness's 120-second command
50
- limit for this read-only inspection:
51
+ Set the repository and pull request number first. Run this read-only
52
+ inspection within the targeted-check time box:
51
53
 
52
54
  ```sh
53
55
  GH_PROMPT_DISABLED=1 gh pr view "$pr" --repo "$repo" --json state,headRefOid < /dev/null
@@ -56,3 +58,5 @@ GH_PROMPT_DISABLED=1 gh pr view "$pr" --repo "$repo" --json state,headRefOid < /
56
58
  Expect exit 0 and the state and head SHA. Any failure or timeout blocks that
57
59
  check. GitHub CLI prompt suppression does not authorize a merge or bypass a
58
60
  hook; only the designated merge owner may act on the verified state.
61
+
62
+ If the brief uses GNU `timeout`, status 124 normally means its deadline expired. `timeout` is not installed on every platform; where it is missing, use the harness's command limit. A harness may report a timeout differently. In either case record a timeout, stop and diagnose; do not count it as a gate result.
@@ -1,49 +1,233 @@
1
1
  ---
2
2
  name: cratis-orleans-jobs
3
- description: Use when a .NET service using Orleans needs recoverable Choreography jobs or job lifecycle changes. Not for operating a live Chronicle store (use cratis-chronicle-cli-operations).
3
+ description: Use when designing, hosting, recovering or testing Cratis Choreography jobs, worker grains or grain state machines. Not for branching or waiting workflows or live Chronicle operations.
4
4
  license: MIT
5
5
  ---
6
6
 
7
- <!-- Copyright (c) Cratis. All rights reserved. -->
8
- <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
9
-
10
7
  # Recoverable Choreography jobs
11
8
 
12
- For services and kernel contributors using Orleans. This is library-consumer guidance, not the application vertical-slice architecture. For live Chronicle operations use `cratis-chronicle-cli-operations` in `cratis/cli` instead.
13
-
14
- ## 1. Choose a job, not a detached task
15
-
16
- A job plans recoverable work; each step is a grain and does the work. Use it for work that must outlive a request. It is **at-least-once**, not exactly-once: a step interrupted before a durable checkpoint can perform the same work again. Protect external effects with receiver-owned idempotency/deduplication; a checkpoint does not atomically commit an external write.
17
-
18
- - Job: derive `Job<TRequest, TJobState>`; the request is a class implementing `IJobRequest`, the state derives `JobState`. Implement `PrepareSteps(TRequest)` returning `Task<IImmutableList<JobStepDetails>>`.
19
- - Step: derive `JobStep<TRequest, TResult, TState>`; state derives `JobStepState`. Its constructor receives `[PersistentState(nameof(JobStepState), WellKnownGrainStorageProviders.JobSteps)] IPersistentState<TState>`, `IJobStepThrottle`, and `ILogger<JobStep<TRequest, TResult, TState>>`.
20
- - Implement `PrepareStep(TRequest)` → `Task<Result<PrepareJobStepError>>`; `InitializeState(TRequest)` → `ValueTask`, called after preparation succeeds; and `PerformStep(TState, CancellationToken)` → `Task<Catch<JobStepResult>>`. `TResult` is the step's result type; the work method returns the framework's `JobStepResult` envelope, not `TResult` directly.
21
- - Give the concrete job and step unique `[GrainType("product-specific-name")]` names. Use serializable request/state/result types. Do not reuse a class-derived grain name across assemblies.
9
+ ## Contents
22
10
 
23
- Run step work outside the activation using its copied state. Read [activation callbacks](references/activation-callbacks.md) before committing a checkpoint, mutating grain state or handling stop.
11
+ - What a job is
12
+ - Choose the building block
13
+ - How a job runs
14
+ - Default path
15
+ - Rules that keep jobs correct
16
+ - Capability catalog
17
+ - Verify
24
18
 
25
- ## 2. Plan the steps
26
-
27
- Default to independent steps. Read [step planning](references/step-planning.md) to implement a durable plan or add stages when later work depends on an earlier outcome.
28
-
29
- ## 3. Start locally and recover every scope
30
-
31
- Inject the local singleton `IJobs`, registered by `AddCratisChoreography`. Prefer `Start<TJob,TRequest>(key, request)` with a `JobKey` built from the host scope and namespace, then use the successful result’s ID with `Stop(key, jobId)` and `Delete(key, jobId)`. Choose the explicit job-ID overload when the host supplies the ID.
32
-
33
- Inspect `Result<JobId, StartJobError>` before telling a caller that work started. `FailedStartingSomeJobSteps` means remaining work is still running, not that nothing started; `AllJobStepsFailedStarting` means no step started. Start success is not completion. Match `StopJobResult`/`DeleteJobResult`: accepted, `NotFound`, `UnknownJobType`, or `Refused` with the job's error. Unknown types require a host that has registered the job type; exceptions propagate. Deletion acceptance is not completed removal. Third-party storage should override `IJobStorage.GetJobType` with a metadata-only read; its fallback reads the request too.
19
+ <!-- Copyright (c) Cratis. All rights reserved. -->
20
+ <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
34
21
 
35
- `IGrainFactory.GetJobsManager(scope, namespace)` remains available. `IJobsManager.Resume(JobId)` returns **`Task<bool>`**; false means nothing took the job: do not wait for a completion callback as though resumption succeeded. True may also mean already running or finalized. `IJobsManager.Stop` returns `Result<StopJobError>`; preserve a persistence refusal. `Rehydrate()` returns after loading/preparing interrupted jobs, before its bounded background drain resumes them all. `StartStepsInBackground = true` moves step preparation/start to the next turn after durability; later failures belong to the job, not Start.
22
+ Read `references/<language>.md` for the project's SDK (`.csproj` → csharp, Node server `package.json` → typescript, `*.kt` → kotlin, `*.java` → java, `go.mod` → go, `mix.exs` → elixir); only the project's languages are installed.
36
23
 
37
- Recovery runs on silo activation and when a member dies. Provide singleton `IJobsManagerKeys` implementations on **every silo**, enumerating all host-owned scope/namespace pairs through `GetKeys(CancellationToken)`. The default remembers only keys used in this process: it is not a durable catalog. Providers run outside request scope; never inject a current tenant/user or scoped database. Recovery retries failed providers and managers, from 1 second doubling to 60 seconds until success or silo shutdown. There is no periodic sweep by default. `AddCratisChoreography` registers recovery; separately configured silos need `AddCratisChoreographyJobsRecovery()` (`Cratis.Choreography.Hosting`).
24
+ Choreography is C#-only: TypeScript, Kotlin, Java, Go, Elixir and Python applications call the service that owns the job through its API.
38
25
 
39
- Read [lifecycle and placement](references/lifecycle-and-placement.md) for drain/admission, bounded attempts, placement, custom storage compatibility and step test runs.
26
+ ## What a job is
40
27
 
41
- ## 4. Configure storage
28
+ A job grain plans and dispatches work from one serializable request. Each step grain works off its grain turn and reports an outcome per attempt. Durable jobs storage saves the request, plan, progress and step state for recovery.
42
29
 
43
- Read [storage and options](references/storage-and-options.md) to choose a provider, tune concurrency or decide what terminal state to retain. Use persistent storage for jobs that must survive a host restart; confirm recovery with a restart test.
30
+ A job id and job key (scope and namespace) address a job. The key selects storage and, if configured, tenant context. Chronicle uses its store and namespace.
44
31
 
45
- ## State machines and verification
32
+ Work is **at least once**. Resume can repeat work since the last durable checkpoint. Protect external effects with receiver-side idempotency; checkpoints do not commit external writes atomically.
46
33
 
47
- Use [state-machines.md](references/state-machines.md) for `StateMachine<TStoredState>` and `EventSourcedStateMachine<TModel>`. Neither makes external effects exactly-once.
34
+ ## Choose the building block
48
35
 
49
- Verify planning, invalid/missing saved plans, idempotent redelivery, stop/resume/refusal, failed barriers/Unreachable, retention and persistence failures. Exercise durable storage restart recovery and SQL migration permissions. A build alone cannot establish crash recovery. Do not operate a live store merely to validate an example.
36
+ | The problem is | Use |
37
+ | --- | --- |
38
+ | A body of work that must not be lost, split into pieces that can run in parallel or in ordered stages | Job |
39
+ | One in-memory piece of background work that must not block a grain's turn and may be lost with the grain | Worker |
40
+ | One grain whose behaviour depends on which state it is in | State machine |
41
+ | A grain whose state follows Chronicle events | Event-sourced state machine |
42
+ | A business process that branches, waits for a person or a timer | Choreography workflow (not covered here) |
43
+ | Request-scoped logic or a simple entity | A plain Orleans grain |
44
+
45
+ For branching, durable waits, approvals or Chronicle event triggers, use a Choreography workflow with a durable journal, such as Chronicle. Do not model a wait as a blocked step.
46
+
47
+ ## How a job runs
48
+
49
+ 1. **Start.** Ask admission if registered; refusal writes nothing. Persist the request and `PreparingJob` before planning. The complete plan must round-trip the host's JSON options and be durably attached to the job before step preparation. If interrupted before the plan is attached, recovery refuses `MissingStepPlan`; it does not rerun the planner.
50
+ 2. **Prepare.** Validate and initialize steps in **all** stages before any stage executes. Do not depend on earlier-stage output during preparation; read it during work. Recovery skips only steps durably marked prepared, so initialization must be safe to repeat. Copy the inputs into step state; the work does not receive the request.
51
+ 3. **Dispatch.** Steps start a bounded number at a time per job; a per-silo throttle bounds how many step bodies run at once. Start returns once the first stage runs (or, with background start, once the job is durable).
52
+ 4. **Perform.** The step's work runs off the activation on a deep copy of its state. Changing that copy persists nothing; durable changes go through an activation callback and a (debounced) checkpoint.
53
+ 5. **Report.** A step persists its outcome, then delivers it to the job with retries; the job counts each step and attempt once. When enabled, a watchdog reconciles stored outcomes even if their delivery retries are exhausted.
54
+ 6. **Finish.** A failed step (a failed result or an exception) is counted while the others finish; the job ends `CompletedSuccessfully` or `CompletedWithFailures`. A successful job removes itself unless kept; a job with failures is kept until retention cleanup.
55
+
56
+ Job statuses: `None` (unset), `PreparingJob`, `PreparingSteps`, `StartingSteps`, `Running`, `CompletedSuccessfully`, `CompletedWithFailures`, `Stopped`, `Failed`, `Removing`. Step statuses: `Unknown` (unset), `Scheduled`, `Running`, `CompletedSuccessfully`, `CompletedWithFailure`, `Stopped`, `Failed`, `Removing`, `Unreachable`.
57
+
58
+ ## Default path
59
+
60
+ Names are illustrative: a "reindex" job that plans one step per shard.
61
+
62
+ 1. **Define** the marked request, job and step grain contracts and state. Plan one step per shard; leave scheduling hooks at their defaults.
63
+ 2. **Implement** validation, initialization and idempotent work. Persist required output before reporting success.
64
+ 3. **Host** with Choreography, MongoDB jobs storage and a recovery catalog listing every scope and namespace on every silo. Use in-memory storage only for local work.
65
+ 4. **Start** with the local jobs service. Branch on start errors; acceptance is not completion.
66
+ 5. **Observe** progress through the scoped jobs manager. **Stop, drain or delete** through the jobs service.
67
+
68
+ See Define a job, Define a step, Host the silo, and Lifecycle, recovery and placement in your language reference.
69
+
70
+ ## Rules that keep jobs correct
71
+
72
+ - **Keep wire identities stable.** Add request/state members without renaming or retyping. Do not rename or move live step types. Pin job type names if needed.
73
+ - **Use activation callbacks, never call your own step grain.** Capture inputs, call out, commit in a second callback. Never call another grain or await a second callback inside one.
74
+ - **Send outside input to the job.** Persist it in job state and keep the job if the input must survive success. Do not write live step state from outside.
75
+ - **Keep hooks idempotent.** Stop and step-completion hooks can repeat; reconciliation can bypass the step hook. Check write errors separately from callback refusal.
76
+ - **Attempt backoff is in memory.** A pending failed attempt counts as final after reactivation.
77
+ - **Register consistently across silos.** A silo without admission admits everything. Missing jobs storage fails at first job activation, not host startup.
78
+
79
+ ## Capability catalog
80
+
81
+ One line per capability; exact names and shapes are in your language reference.
82
+
83
+ **Define a job**
84
+
85
+ - Job base over request and job state; job grain interface over one request; job-request marker - every job.
86
+ - Job-type attribute - pin the stored job type name before renaming or to resolve a name clash.
87
+ - Plan steps (required) - return the complete plan for a start; recovery does not replan.
88
+ - Create step (step interface, request) and create step with stage - one plan entry per piece; stages order pipelines (`First` is the default stage; gaps between stage values are fine).
89
+ - Keep after completed (default off) - keep a successful job queryable, or keep outside input it recorded.
90
+ - Keep after completed with failures (default on) - turn off for short-cadence jobs that report failures elsewhere.
91
+ - Start steps in background (default off) - start returns once the job is durable; step start failures are only logged.
92
+ - Max active steps (default from options) - per-job window; the next step starts as one finishes.
93
+ - Can retry failed steps (default off) - allow the manager's retry-failed-steps; unavailable for jobs with stages.
94
+ - Should retry step (step id, result, attempt) - retry a timeout but not a rejected input; default retries while attempts remain.
95
+ - Step retry delay (failed attempt) - compute your own backoff.
96
+ - Failure behaviour for stage - stop the job (default: later steps become `Unreachable`) or continue with the next stage for a best-effort stage.
97
+ - Active silos - override which silos the lease watchdog treats as alive.
98
+ - Before starting steps / before resuming steps hooks - work that must precede the first or the resumed dispatch.
99
+ - Before dispatching steps hook (context says initialization may be incomplete) - idempotent initialization needed on both start and resume; failure dispatches nothing.
100
+ - All steps completed / failed to prepare / stopped hooks - react to the outcome; the stopped hook also runs on removal and may run again.
101
+ - Step completed or stopped hook (step id, result) - react to reported outcomes, not the sole path for durable output.
102
+ - Can resume - refuse a resume; job details - display string for the job.
103
+ - Job members: id, key, request, own reference, storage, all-steps-succeeded flag, write state (inspect its result).
104
+
105
+ **Define a step**
106
+
107
+ - Step base over request, result and step state; step grain interface; step state base (status, attempt, progress, lease, stage, name).
108
+ - Prepare step - validate the request; prepare errors are `Unknown`, `WrongRequestType`, `CannotPrepare`, `UnexpectedErrorPreparing`.
109
+ - Initialize state - after successful validation; populate state without assuming the initialization runs only once.
110
+ - Perform step (state snapshot, cancellation) - the work; an exception counts as failure.
111
+ - Create cancelled result from current state - partial result for a stopped run, or none.
112
+ - Step result: succeeded (optional value) or failed (error or messages); read back the full result or the error.
113
+ - Activation callback, with or without a value - run on the activation; refused as `NoRun`, `StaleRun`, `Closed` or `Cancelled`; the queue token cancels only callbacks that have not started.
114
+ - Debounced checkpoint / flush checkpoint / write state - make progress durable; any status write flushes.
115
+ - Checkpoint after every batch (default off) - shrink the redo window at the cost of writes.
116
+
117
+ Leave the step grain's lifecycle operations to job orchestration; applications use the jobs service and step overrides.
118
+
119
+ - Prepare (typed request) - validate and initialize; untyped request, optionally with stage, also marks prepared and attempts a state write.
120
+ - Start (parent grain id) - dispatch a prepared step; repeated starts do not duplicate work.
121
+ - Retry (parent grain id, attempt) - dispatch a failed step's next attempt after backoff.
122
+ - Stop (removing flag) - stop a step, or stop and remove it.
123
+ - Report status change (status) - persist the step status.
124
+ - Report failure (error) - report a step failure to the parent job.
125
+ - Read step state - inspect without driving the lifecycle.
126
+
127
+ **Start and manage jobs**
128
+
129
+ - Jobs service: start (key, request), start (key, job id, request), stop, delete, stop-and-drain (timeout; zero polls).
130
+ - Start errors: `NotAdmitted` (nothing written), `AlreadyBeenPrepared`, `AlreadyCompleted`, `InvalidStepPlan`, `CouldNotPrepareJobSteps`, `NoJobStepsToStart` (empty plan, job completes), `FailedStartingSomeJobSteps` (job **is** running), `AllJobStepsFailedStarting`, `Unknown`.
131
+ - Stop result: stopped, not found, unknown job type, refused (`JobIsCompleted`, `JobIsNotRunning`, `CouldNotPersistStop`, `Unknown`).
132
+ - Delete result: deleted, not found, unknown job type, refused (`JobIsCompleted`, `JobIsAlreadyBeingRemoved`, `CouldNotPersistRemoval`, `Unknown`).
133
+ - Drain result: drained, timed out (call again), completed, not found, unknown job type.
134
+ - Jobs manager for (scope, namespace): rehydrate, start (generic), resume (true/false), resume-if-running, stop, retry failed steps, delete, jobs of type, jobs by query (type, statuses, created before, skip, take - default 100), all jobs, clean up dead jobs.
135
+ - Resume outcomes: success, `JobIsCompleted`, `JobAlreadyRunning`, `JobIsNotRunning`; cannot resume: `JobIsNotPrepared`, `JobCannotBeResumed`, `NotAdmitted`, `MissingStepPlan`, `Unknown`; or steps failed to resume.
136
+ - Retry failed steps: count of steps run again, or `Unknown`, `NotSupported`, `JobIsNotCompletedWithFailures`, `CouldNotPersist`.
137
+ - Job grain: stop, resume, resume-if-running, remove, retry failed; job drain: stop-and-drain (drained, timed out, completed).
138
+ - Job state: status and status history, progress (total, successful, failed, stopped, unreachable steps; completed, stopped, has-failures), created, request, plan, pending drain.
139
+ - Step stop errors: timeout (not quiescent), report failed, write failed.
140
+
141
+ **Host the silo**
142
+
143
+ - Co-host options: enabled, clustering mode, cluster and service ids, database and connection settings, grain storage, workflows and patching (flags and callbacks), local preset.
144
+ - Self-hosted silo - use only for independently hosted Orleans; register Choreography explicitly.
145
+ - MongoDB jobs storage - shared client, database name resolver, retry count and base delay.
146
+ - SQL jobs storage - resolve database options by scope and namespace; built-in migrations own the schema.
147
+ - Jobs storage - in-memory: development and tests; nothing survives the process.
148
+ - Reset jobs storage - after emptying or recreating a database behind the job system.
149
+ - Recovery key catalog - list all scope/namespace pairs without request services.
150
+ - Jobs recovery registration - add when self-hosting.
151
+ - Admission (key, id, type, request) - refuse start, resume or later stages; first refusal wins.
152
+ - Tenancy (current tenant, tenant by key, establish tenant) - bind grain calls to the right tenant.
153
+ - Job and step placement - use the built-in strategy or your own director for eligible workers.
154
+ - Per-silo parallelism metadata - size throttles per machine.
155
+ - Step throttle - cap step bodies per silo; substitute in specs.
156
+
157
+ **Jobs options** (register one constructed instance)
158
+
159
+ - Max parallel steps (default processor count minus one, at least 1) - per silo.
160
+ - Max concurrent step starts (16) - per job start or resume.
161
+ - Max active steps per job (all) - window size.
162
+ - Max step attempts (1) - attempts before a failure counts.
163
+ - Step retry backoff (5 s) and max step retry backoff (5 min) - doubling delay between attempts.
164
+ - Step checkpoint batch interval (100) and step checkpoint flush interval (5 s) - debounced checkpoint durability.
165
+ - Step stop timeout (10 s) - how long a step stop waits for work to settle.
166
+ - Step lease timeout (off) - heartbeat lease; the watchdog restarts a step only when its owner silo is gone and the lease expired.
167
+ - Job watchdog interval (1 min) - storage reconciliation and watchdog-driven restarts; zero or infinite disables the watchdog, not attempt backoff or outcome delivery.
168
+ - Step delivery max attempts (10), step delivery retry delay (1 s), max step delivery retry delay (30 s) - outcome delivery.
169
+ - Max inline step plan size (1 MiB) - externalize larger plans only with a plan store and confirmed support on every silo hosting the job; otherwise inline.
170
+ - Terminal job retention (7 days; infinite keeps) and max terminal jobs per cleanup (100) - retention cleanup.
171
+ - Dead job threshold (1 h), cleanup cadence (1 h), max concurrent cleanup (4) - removal of jobs stuck preparing.
172
+ - Max concurrent rehydration (8) - jobs resumed at once during recovery.
173
+
174
+ **Workers**
175
+
176
+ - Worker grain base over request and result, with a matching grain interface (Guid key) - one in-memory background task per grain.
177
+ - Start (optional cancellation, checked only before the work begins) - refuse while a task is active or after success; a failed or stopped run can start again once cleared.
178
+ - Work status: `NotStarted`, `Running`, `Completed`, `Failed`, `Stopped`; exception of a failed run.
179
+ - Get result - never waits: the result (value, error `None`/`Cancelled`/`WorkerError`/`PerformingWorkError`, exception) or `NotStarted`, `NotFinished`, `WorkCancelled`.
180
+ - Limits: no durability, no cancellation inside the work (hold your own cancellation source), no concurrency cap; keep the grain alive yourself if idle collection must not end the work. Work that must survive, retry or report progress is a job step.
181
+
182
+ **Test a step**
183
+
184
+ - Begin a test run on a step hosted in a test silo (optional stand-in scheduler) - without a run every activation callback is refused `NoRun`.
185
+ - Perform (state) - runs the work off the stand-in activation and returns its result; closes admission when it returns.
186
+ - Stop (cancel, admission stays open) and close admission (refuse new callbacks, work continues).
187
+ - Activation, is-on-activation, cancellation, admission open, callbacks settled - assert state changes happen only in callbacks; await settlement first.
188
+ - A second live run or a superseded run fails; a run records and delivers nothing to a job.
189
+
190
+ **State machines** - see State machines in your language reference for declarations and transition order.
191
+
192
+ - Stored machine base - register a named grain storage provider, or supply storage directly when the grain owns that dependency.
193
+ - Stored state base - persist the current state type so activation can restore it without repeating entry actions.
194
+ - Create states (required) - declare the state objects for the machine.
195
+ - Initial state - choose first entry when no current state is recorded.
196
+ - Activation hook - initialize from storage before states are created.
197
+ - Resolve activation state - choose the activation state from stored data when the default is insufficient.
198
+ - Transition to (generic or runtime type) - request a move; a refused transition does nothing.
199
+ - Can transition to (generic or runtime type) - test a guard when a caller needs to branch.
200
+ - Current state, states, active-state flag and grain identity - inspect the machine or identify action context.
201
+ - Before/after entering and before/after leaving hooks - machine-wide work around each state change.
202
+ - State base and allowed transitions - define which moves a state offers.
203
+ - State transition guard - make an allowed move conditional on stored state.
204
+ - Enter and leave hooks - compute stored state before the corresponding actions run.
205
+ - Define actions (entry, running, exit), or override the three action lists - choose which phase owns each action.
206
+ - Assign a machine to a state - test the state with a substitute.
207
+ - Add a custom action - use when the built-in actions cannot express the work.
208
+ - Run code - perform local work against the action context.
209
+ - Call a service (typed or via the service provider) - resolve a dependency for an action.
210
+ - Run a process (individual arguments) - run a known executable without a shell.
211
+ - Run a process (argument sequence, optional working directory and timeout) - control where it runs or bound runtime.
212
+ - Transition action - request a state change from an action.
213
+ - Start workflow action (id, trigger, optional scope) - hand off to a workflow.
214
+ - Execute command action - invoke an Arc command.
215
+ - Append event action (optional target) - record a Chronicle event.
216
+ - Read actions - inspect the builder's list.
217
+ - Build actions - compose one ordered action.
218
+ - Event-sourced machine base and string-keyed grain contract - use a Chronicle read model instead of grain state.
219
+ - Event-sourced key and model - access the addressed source and current read model.
220
+ - Refresh (event type and context) - delivery entry point; leave it to Chronicle integration.
221
+ - Define projection - declare the read model projection if one is not already registered.
222
+ - Define transitions (on event, optional guard, target state) - route delivered events to state changes.
223
+ - Resolve state - derive the activation state from the model; keep it consistent with event-driven transitions.
224
+ - Model-changed hook - react to a refresh before evaluating transitions.
225
+ - Look up the grain (composite key, store and source, or store name, source and optional namespace) - address the right model instance.
226
+ - Register event-sourced machines (silo or services) - wire discovery, projections and reactors.
227
+ - Discover machines (default on) - automatically find machine classes.
228
+ - Explicit machine types - add machines or select only named classes when discovery is off.
229
+ - Catch-up timeout and poll interval - bound how long a materialized model can delay event handling and how often it is checked.
230
+
231
+ ## Verify
232
+
233
+ Specify plan failures, replay, stop/resume refusals, stage failure, retention and failed writes. Test restart recovery with durable storage and SQL migration permissions if applicable. Never validate examples against a live store.