@cratis/pi 8.2.2 → 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 (1138) 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/scripts/cratis-cleanup-worktrees.sh +36 -24
  59. package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +66 -22
  60. package/package/corpus/hooks/scripts/cratis-store-mutations.json +1 -1
  61. package/package/corpus/rules/ai-distribution.md +7 -9
  62. package/package/corpus/rules/authoring-skills.md +25 -55
  63. package/package/corpus/rules/browser.md +10 -7
  64. package/package/corpus/rules/code-health-policy.txt +3 -3
  65. package/package/corpus/rules/code-health.md +8 -1
  66. package/package/corpus/rules/code-quality.csharp.md +3 -2
  67. package/package/corpus/rules/code-quality.md +5 -5
  68. package/package/corpus/rules/code-quality.typescript.md +4 -3
  69. package/package/corpus/rules/codescene-reference.txt +34 -0
  70. package/package/corpus/rules/codescene.md +5 -4
  71. package/package/corpus/rules/components.md +6 -8
  72. package/package/corpus/rules/concepts.md +15 -2
  73. package/package/corpus/rules/cratis-folder-is-configuration.md +3 -5
  74. package/package/corpus/rules/criticality-tiers.md +7 -35
  75. package/package/corpus/rules/csharp.md +13 -6
  76. package/package/corpus/rules/dialogs.md +8 -3
  77. package/package/corpus/rules/discoverability.md +8 -2
  78. package/package/corpus/rules/documentation-structure-and-formatting.md +12 -6
  79. package/package/corpus/rules/documentation.md +12 -7
  80. package/package/corpus/rules/editing-cratis-docs.md +8 -6
  81. package/package/corpus/rules/efcore.md +13 -9
  82. package/package/corpus/rules/efcore.specs.md +9 -5
  83. package/package/corpus/rules/elixir.md +12 -8
  84. package/package/corpus/rules/exit-codes-and-wrappers.md +7 -4
  85. package/package/corpus/rules/framework-dotnet.md +12 -6
  86. package/package/corpus/rules/framework.md +11 -7
  87. package/package/corpus/rules/frontend-quality.md +7 -7
  88. package/package/corpus/rules/frontend-testing.md +5 -3
  89. package/package/corpus/rules/general.md +8 -10
  90. package/package/corpus/rules/github-actions.md +11 -6
  91. package/package/corpus/rules/glossary.md +13 -13
  92. package/package/corpus/rules/go-engineering.md +13 -39
  93. package/package/corpus/rules/go.md +18 -139
  94. package/package/corpus/rules/guards-and-fuses.md +14 -60
  95. package/package/corpus/rules/issue-assignment.md +6 -9
  96. package/package/corpus/rules/java.md +8 -6
  97. package/package/corpus/rules/kotlin.md +12 -7
  98. package/package/corpus/rules/local-verification-and-delivery.md +8 -5
  99. package/package/corpus/rules/local-work-artifacts.md +11 -64
  100. package/package/corpus/rules/new-repository-intake.md +7 -28
  101. package/package/corpus/rules/operational-safety.md +26 -41
  102. package/package/corpus/rules/orleans.md +22 -5
  103. package/package/corpus/rules/profiles.md +8 -11
  104. package/package/corpus/rules/published-contracts.md +6 -25
  105. package/package/corpus/rules/react.md +9 -2
  106. package/package/corpus/rules/reactors.md +17 -5
  107. package/package/corpus/rules/review-reports.md +12 -94
  108. package/package/corpus/rules/scripting.md +5 -5
  109. package/package/corpus/rules/specs.csharp.md +11 -8
  110. package/package/corpus/rules/specs.elixir.md +9 -4
  111. package/package/corpus/rules/specs.md +7 -4
  112. package/package/corpus/rules/specs.scenarios.csharp.md +11 -2
  113. package/package/corpus/rules/specs.typescript.md +8 -11
  114. package/package/corpus/rules/storybook.md +4 -7
  115. package/package/corpus/rules/typescript.md +8 -8
  116. package/package/corpus/rules/verification-discipline.md +6 -9
  117. package/package/corpus/rules/vertical-slices.md +29 -5
  118. package/package/corpus/rules/writing-correct-examples.md +12 -3
  119. package/package/corpus/rules/writing-cratis-docs.md +11 -3
  120. package/package/corpus/skills/cratis-ai-corpus-authoring/LICENSE +21 -0
  121. package/package/corpus/skills/cratis-ai-corpus-authoring/SKILL.md +140 -0
  122. package/package/corpus/skills/cratis-ai-corpus-authoring/references/checklist.md +46 -0
  123. package/package/corpus/skills/cratis-ai-corpus-authoring/references/evaluation.md +19 -0
  124. package/package/corpus/skills/cratis-ai-corpus-authoring/references/large-rewrites.md +25 -0
  125. package/package/corpus/skills/cratis-ai-corpus-authoring/references/skill-anatomy.md +75 -0
  126. package/package/corpus/skills/cratis-application-growth/SKILL.md +148 -63
  127. package/package/corpus/skills/cratis-application-growth/references/csharp.md +170 -0
  128. package/package/corpus/skills/cratis-application-growth/references/elixir.md +26 -0
  129. package/package/corpus/skills/cratis-application-growth/references/go.md +27 -0
  130. package/package/corpus/skills/cratis-application-growth/references/java.md +23 -0
  131. package/package/corpus/skills/cratis-application-growth/references/kotlin.md +31 -0
  132. package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +7 -6
  133. package/package/corpus/skills/cratis-application-growth/references/rename-window.md +14 -14
  134. package/package/corpus/skills/cratis-application-growth/references/service-and-delivery.md +21 -0
  135. package/package/corpus/skills/cratis-application-growth/references/stages.md +1 -9
  136. package/package/corpus/skills/cratis-application-growth/references/typescript.md +38 -0
  137. package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +31 -23
  138. package/package/corpus/skills/cratis-arc-authorize-request/references/authproxy.md +92 -0
  139. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp-query-security.md +61 -0
  140. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +92 -38
  141. package/package/corpus/skills/cratis-arc-authorize-request/references/elixir.md +74 -4
  142. package/package/corpus/skills/cratis-arc-authorize-request/references/go-authentication.md +93 -0
  143. package/package/corpus/skills/cratis-arc-authorize-request/references/go.md +80 -2
  144. package/package/corpus/skills/cratis-arc-authorize-request/references/java.md +79 -3
  145. package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +80 -17
  146. package/package/corpus/skills/cratis-arc-authorize-request/references/python.md +1 -1
  147. package/package/corpus/skills/cratis-arc-authorize-request/references/typescript.md +106 -6
  148. package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +85 -42
  149. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript-rule-fixes.md +89 -0
  150. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript.md +99 -0
  151. package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +54 -14
  152. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-connection-resolution.md +66 -0
  153. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-ef.md +78 -0
  154. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-neo4j.md +30 -0
  155. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +59 -66
  156. package/package/corpus/skills/cratis-arc-connect-storage/references/elixir.md +121 -3
  157. package/package/corpus/skills/cratis-arc-connect-storage/references/go.md +73 -3
  158. package/package/corpus/skills/cratis-arc-connect-storage/references/java.md +68 -3
  159. package/package/corpus/skills/cratis-arc-connect-storage/references/kotlin.md +74 -3
  160. package/package/corpus/skills/cratis-arc-connect-storage/references/python.md +2 -2
  161. package/package/corpus/skills/cratis-arc-connect-storage/references/typescript-drizzle.md +31 -0
  162. package/package/corpus/skills/cratis-arc-connect-storage/references/typescript.md +62 -4
  163. package/package/corpus/skills/cratis-arc-declare-command/SKILL.md +52 -28
  164. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-chronicle.md +190 -0
  165. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-controller.md +44 -0
  166. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-history.md +125 -0
  167. package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +281 -55
  168. package/package/corpus/skills/cratis-arc-declare-command/references/elixir.md +121 -8
  169. package/package/corpus/skills/cratis-arc-declare-command/references/go-aggregate.md +59 -0
  170. package/package/corpus/skills/cratis-arc-declare-command/references/go-chronicle.md +51 -0
  171. package/package/corpus/skills/cratis-arc-declare-command/references/go-wire.md +94 -0
  172. package/package/corpus/skills/cratis-arc-declare-command/references/go.md +160 -25
  173. package/package/corpus/skills/cratis-arc-declare-command/references/java.md +140 -13
  174. package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +189 -23
  175. package/package/corpus/skills/cratis-arc-declare-command/references/typescript-aggregates.md +73 -0
  176. package/package/corpus/skills/cratis-arc-declare-command/references/typescript.md +209 -24
  177. package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +28 -25
  178. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-abilities.md +30 -0
  179. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-recovery.md +50 -0
  180. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +27 -55
  181. package/package/corpus/skills/cratis-arc-declare-operation/references/elixir.md +17 -1
  182. package/package/corpus/skills/cratis-arc-declare-operation/references/go.md +75 -5
  183. package/package/corpus/skills/cratis-arc-declare-operation/references/java.md +13 -2
  184. package/package/corpus/skills/cratis-arc-declare-operation/references/kotlin.md +11 -2
  185. package/package/corpus/skills/cratis-arc-declare-operation/references/python.md +2 -2
  186. package/package/corpus/skills/cratis-arc-declare-operation/references/typescript.md +84 -8
  187. package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +42 -36
  188. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +44 -51
  189. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/elixir.md +50 -3
  190. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/go.md +85 -2
  191. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/java.md +70 -2
  192. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/kotlin.md +60 -2
  193. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/typescript.md +94 -5
  194. package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +59 -81
  195. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp-diagnose-tool-call.md +44 -0
  196. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp.md +309 -0
  197. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/elixir.md +5 -0
  198. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/go.md +5 -0
  199. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/java.md +5 -0
  200. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/kotlin.md +5 -0
  201. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/typescript.md +5 -0
  202. package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +65 -15
  203. package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +379 -31
  204. package/package/corpus/skills/cratis-arc-expose-query/references/elixir.md +84 -4
  205. package/package/corpus/skills/cratis-arc-expose-query/references/go-live.md +55 -0
  206. package/package/corpus/skills/cratis-arc-expose-query/references/go.md +204 -18
  207. package/package/corpus/skills/cratis-arc-expose-query/references/java.md +236 -7
  208. package/package/corpus/skills/cratis-arc-expose-query/references/kotlin.md +242 -3
  209. package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +360 -19
  210. package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +84 -10
  211. package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +70 -29
  212. package/package/corpus/skills/cratis-arc-generate-proxies/references/elixir.md +54 -5
  213. package/package/corpus/skills/cratis-arc-generate-proxies/references/go-directives.md +74 -0
  214. package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +50 -4
  215. package/package/corpus/skills/cratis-arc-generate-proxies/references/java-diagnostics.md +67 -0
  216. package/package/corpus/skills/cratis-arc-generate-proxies/references/java-wire-types.md +115 -0
  217. package/package/corpus/skills/cratis-arc-generate-proxies/references/java.md +86 -2
  218. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-diagnostics.md +67 -0
  219. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-wire-types.md +108 -0
  220. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin.md +77 -4
  221. package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +64 -16
  222. package/package/corpus/skills/cratis-arc-generate-proxies/scripts/check-proxy.mjs +3 -3
  223. package/package/corpus/skills/cratis-arc-host-application/SKILL.md +67 -12
  224. package/package/corpus/skills/cratis-arc-host-application/references/csharp-availability.md +130 -0
  225. package/package/corpus/skills/cratis-arc-host-application/references/csharp-callers.md +89 -0
  226. package/package/corpus/skills/cratis-arc-host-application/references/csharp-configuration.md +116 -27
  227. package/package/corpus/skills/cratis-arc-host-application/references/csharp-http.md +86 -0
  228. package/package/corpus/skills/cratis-arc-host-application/references/csharp-identity.md +208 -0
  229. package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +154 -35
  230. package/package/corpus/skills/cratis-arc-host-application/references/elixir-access.md +64 -0
  231. package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +53 -23
  232. package/package/corpus/skills/cratis-arc-host-application/references/go-embed.md +121 -0
  233. package/package/corpus/skills/cratis-arc-host-application/references/go-execution.md +86 -0
  234. package/package/corpus/skills/cratis-arc-host-application/references/go-options.md +41 -0
  235. package/package/corpus/skills/cratis-arc-host-application/references/go.md +43 -5
  236. package/package/corpus/skills/cratis-arc-host-application/references/java.md +203 -4
  237. package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +234 -4
  238. package/package/corpus/skills/cratis-arc-host-application/references/typescript-services.md +85 -0
  239. package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +194 -13
  240. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +79 -119
  241. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/java.md +285 -0
  242. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/kotlin.md +265 -0
  243. package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +52 -24
  244. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp-extensions.md +26 -0
  245. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +55 -25
  246. package/package/corpus/skills/cratis-arc-invoke-command/references/elixir-liveview.md +112 -0
  247. package/package/corpus/skills/cratis-arc-invoke-command/references/elixir.md +72 -2
  248. package/package/corpus/skills/cratis-arc-invoke-command/references/go.md +51 -3
  249. package/package/corpus/skills/cratis-arc-invoke-command/references/java.md +74 -3
  250. package/package/corpus/skills/cratis-arc-invoke-command/references/kotlin.md +58 -18
  251. package/package/corpus/skills/cratis-arc-invoke-command/references/python.md +2 -2
  252. package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +49 -2
  253. package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +31 -13
  254. package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +68 -29
  255. package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +84 -2
  256. package/package/corpus/skills/cratis-arc-isolate-tenant/references/go.md +73 -2
  257. package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +70 -3
  258. package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +65 -5
  259. package/package/corpus/skills/cratis-arc-isolate-tenant/references/python.md +1 -1
  260. package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +56 -3
  261. package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +125 -27
  262. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/csharp.md +217 -0
  263. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/elixir.md +3 -0
  264. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/go.md +3 -0
  265. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/java.md +29 -0
  266. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/kotlin.md +29 -0
  267. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/typescript.md +132 -0
  268. package/package/corpus/skills/cratis-arc-page-query/SKILL.md +33 -13
  269. package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +63 -33
  270. package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +55 -4
  271. package/package/corpus/skills/cratis-arc-page-query/references/go.md +77 -4
  272. package/package/corpus/skills/cratis-arc-page-query/references/java.md +66 -4
  273. package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +65 -5
  274. package/package/corpus/skills/cratis-arc-page-query/references/typescript.md +81 -6
  275. package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +148 -48
  276. package/package/corpus/skills/cratis-arc-react-bind-slice/references/react-screen-from-model.md +10 -0
  277. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-commands.md +190 -0
  278. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-host.md +160 -0
  279. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-identity.md +131 -0
  280. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-queries.md +157 -0
  281. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript.md +88 -0
  282. package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +155 -66
  283. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/typescript.md +628 -0
  284. package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +18 -5
  285. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/csharp.md +64 -3
  286. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +77 -11
  287. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +61 -19
  288. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +119 -7
  289. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +117 -7
  290. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +124 -10
  291. package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +129 -107
  292. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/java.md +436 -0
  293. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/kotlin.md +440 -0
  294. package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +58 -90
  295. package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript-drizzle.md +165 -0
  296. package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript.md +226 -0
  297. package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +86 -89
  298. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/typescript.md +228 -0
  299. package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +179 -90
  300. package/package/corpus/skills/cratis-arc-testing-kotlin/references/java.md +95 -0
  301. package/package/corpus/skills/cratis-arc-testing-kotlin/references/kotlin.md +107 -0
  302. package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +80 -107
  303. package/package/corpus/skills/cratis-arc-testing-typescript/references/typescript.md +272 -0
  304. package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +56 -17
  305. package/package/corpus/skills/cratis-arc-validate-command/references/csharp-rules.md +38 -0
  306. package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +84 -13
  307. package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +50 -12
  308. package/package/corpus/skills/cratis-arc-validate-command/references/go.md +119 -15
  309. package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +125 -93
  310. package/package/corpus/skills/cratis-arc-validation-kotlin/references/java.md +272 -0
  311. package/package/corpus/skills/cratis-arc-validation-kotlin/references/kotlin.md +238 -0
  312. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +133 -58
  313. package/package/corpus/skills/cratis-arc-validation-typescript/references/{models-and-queries.md → typescript-models-and-queries.md} +17 -0
  314. package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript-rules-and-checks.md +101 -0
  315. package/package/corpus/skills/cratis-arc-validation-typescript/references/{server-decisions.md → typescript-server-decisions.md} +49 -13
  316. package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript.md +196 -0
  317. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +107 -7
  318. package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +21 -11
  319. package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +70 -10
  320. package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +4 -65
  321. package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +138 -16
  322. package/package/corpus/skills/cratis-chronicle-cli-operations/references/setup-and-target.md +85 -0
  323. package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +54 -12
  324. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-patterns.md +45 -0
  325. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-services.md +80 -0
  326. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-transport.md +26 -0
  327. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-workload.md +35 -0
  328. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +57 -39
  329. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-patterns.md +32 -0
  330. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-policies.md +47 -0
  331. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +38 -3
  332. package/package/corpus/skills/cratis-chronicle-connect-application/references/go-patterns.md +30 -0
  333. package/package/corpus/skills/cratis-chronicle-connect-application/references/go.md +95 -3
  334. package/package/corpus/skills/cratis-chronicle-connect-application/references/java.md +89 -2
  335. package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin-patterns.md +35 -0
  336. package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin.md +108 -3
  337. package/package/corpus/skills/cratis-chronicle-connect-application/references/python.md +61 -0
  338. package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript-patterns.md +32 -0
  339. package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript.md +75 -6
  340. package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +42 -11
  341. package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +67 -25
  342. package/package/corpus/skills/cratis-chronicle-constrain-append/references/elixir.md +90 -3
  343. package/package/corpus/skills/cratis-chronicle-constrain-append/references/go.md +83 -3
  344. package/package/corpus/skills/cratis-chronicle-constrain-append/references/java.md +99 -2
  345. package/package/corpus/skills/cratis-chronicle-constrain-append/references/kotlin.md +76 -3
  346. package/package/corpus/skills/cratis-chronicle-constrain-append/references/python.md +1 -1
  347. package/package/corpus/skills/cratis-chronicle-constrain-append/references/typescript.md +84 -2
  348. package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +167 -31
  349. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/authentication.md +150 -0
  350. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/configuration.md +418 -0
  351. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/csharp.md +48 -0
  352. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/development-and-production.md +57 -0
  353. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/kernel-options.md +694 -0
  354. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/network-and-tls.md +161 -0
  355. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/production-checklist.md +66 -0
  356. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +154 -2
  357. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/troubleshooting.md +57 -0
  358. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md +124 -0
  359. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/webhooks.md +101 -3
  360. package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +59 -15
  361. package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +57 -41
  362. package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +69 -3
  363. package/package/corpus/skills/cratis-chronicle-evolve-event/references/go.md +71 -2
  364. package/package/corpus/skills/cratis-chronicle-evolve-event/references/java.md +50 -2
  365. package/package/corpus/skills/cratis-chronicle-evolve-event/references/kotlin.md +58 -2
  366. package/package/corpus/skills/cratis-chronicle-evolve-event/references/schema-annotation-cleanup.md +58 -0
  367. package/package/corpus/skills/cratis-chronicle-evolve-event/references/typescript.md +87 -2
  368. package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +47 -13
  369. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +107 -37
  370. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +56 -5
  371. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go-jobs-and-alerts.md +77 -0
  372. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go.md +106 -3
  373. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/java.md +55 -3
  374. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/kotlin.md +95 -3
  375. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/typescript.md +89 -7
  376. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +156 -12
  377. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +12 -20
  378. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +114 -33
  379. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +100 -47
  380. package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +182 -11
  381. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-fluent.md +228 -0
  382. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-graphs.md +102 -0
  383. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md +232 -0
  384. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-reading.md +120 -0
  385. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +105 -45
  386. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-graphs.md +49 -0
  387. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-mappings.md +45 -0
  388. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-reading.md +17 -0
  389. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +23 -27
  390. package/package/corpus/skills/cratis-chronicle-project-view/references/go-graphs.md +22 -0
  391. package/package/corpus/skills/cratis-chronicle-project-view/references/go-mappings.md +50 -0
  392. package/package/corpus/skills/cratis-chronicle-project-view/references/go-reads.md +25 -0
  393. package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +45 -5
  394. package/package/corpus/skills/cratis-chronicle-project-view/references/java-graphs.md +46 -0
  395. package/package/corpus/skills/cratis-chronicle-project-view/references/java-mappings.md +53 -0
  396. package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +69 -5
  397. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin-graphs.md +44 -0
  398. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +71 -6
  399. package/package/corpus/skills/cratis-chronicle-project-view/references/python.md +1 -1
  400. package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +279 -3
  401. package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +69 -10
  402. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-scopes.md +35 -0
  403. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-standalone.md +93 -4
  404. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +79 -34
  405. package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +56 -11
  406. package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +61 -11
  407. package/package/corpus/skills/cratis-chronicle-protect-decision/references/java.md +76 -3
  408. package/package/corpus/skills/cratis-chronicle-protect-decision/references/kotlin.md +65 -17
  409. package/package/corpus/skills/cratis-chronicle-protect-decision/references/typescript.md +77 -5
  410. package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +27 -12
  411. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +65 -47
  412. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/elixir.md +68 -3
  413. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/go.md +91 -2
  414. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/java.md +75 -2
  415. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/kotlin.md +64 -3
  416. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/typescript.md +65 -3
  417. package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +69 -11
  418. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp-integrations.md +89 -0
  419. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +57 -52
  420. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir-integrations.md +132 -0
  421. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +86 -14
  422. package/package/corpus/skills/cratis-chronicle-publish-contract/references/go-integrations.md +91 -0
  423. package/package/corpus/skills/cratis-chronicle-publish-contract/references/go.md +80 -2
  424. package/package/corpus/skills/cratis-chronicle-publish-contract/references/java-integrations.md +121 -0
  425. package/package/corpus/skills/cratis-chronicle-publish-contract/references/java.md +64 -2
  426. package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin-integrations.md +112 -0
  427. package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin.md +71 -2
  428. package/package/corpus/skills/cratis-chronicle-publish-contract/references/python.md +2 -2
  429. package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript-integrations.md +69 -0
  430. package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript.md +69 -2
  431. package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +65 -12
  432. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-occurrences.md +3 -1
  433. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-outputs.md +39 -0
  434. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-pages.md +43 -0
  435. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +43 -43
  436. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir-recovery.md +23 -0
  437. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir.md +79 -8
  438. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +97 -3
  439. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +123 -3
  440. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +113 -4
  441. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/typescript.md +122 -8
  442. package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +83 -13
  443. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-coordination.md +86 -0
  444. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-history.md +86 -0
  445. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +53 -92
  446. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-context.md +74 -0
  447. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-history.md +51 -0
  448. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +48 -20
  449. package/package/corpus/skills/cratis-chronicle-record-event/references/go-payloads.md +80 -0
  450. package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +78 -2
  451. package/package/corpus/skills/cratis-chronicle-record-event/references/java-history.md +63 -0
  452. package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +107 -11
  453. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin-history.md +88 -0
  454. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +103 -21
  455. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-import.md +30 -0
  456. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-provenance.md +40 -0
  457. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +187 -3
  458. package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +55 -13
  459. package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +235 -24
  460. package/package/corpus/skills/cratis-chronicle-reduce-state/references/elixir.md +82 -2
  461. package/package/corpus/skills/cratis-chronicle-reduce-state/references/go.md +94 -3
  462. package/package/corpus/skills/cratis-chronicle-reduce-state/references/java.md +99 -2
  463. package/package/corpus/skills/cratis-chronicle-reduce-state/references/kotlin.md +89 -3
  464. package/package/corpus/skills/cratis-chronicle-reduce-state/references/python.md +2 -2
  465. package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +91 -2
  466. package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +17 -12
  467. package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +63 -3
  468. package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +52 -3
  469. package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +64 -3
  470. package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +54 -2
  471. package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +56 -3
  472. package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +35 -18
  473. package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +46 -4
  474. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +60 -12
  475. package/package/corpus/skills/cratis-chronicle-web-workbench/references/csharp.md +57 -0
  476. package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +80 -53
  477. package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +44 -59
  478. package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +241 -203
  479. package/package/corpus/skills/cratis-ci-pipeline-performance/references/affected-tests.md +134 -0
  480. package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +25 -10
  481. package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +14 -1
  482. package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -0
  483. package/package/corpus/skills/cratis-ci-pipeline-performance/references/publish-pipelines.md +83 -6
  484. package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +68 -1
  485. package/package/corpus/skills/cratis-ci-pipeline-performance/references/runner-sizing-and-images.md +33 -6
  486. package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +11 -4
  487. package/package/corpus/skills/cratis-ci-pipeline-performance/references/shared-workflows.md +65 -0
  488. package/package/corpus/skills/cratis-ci-pipeline-performance/references/test-setup-cost.md +12 -0
  489. package/package/corpus/skills/cratis-ci-pipeline-performance/references/trim-and-aot-ratchets.md +32 -0
  490. package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +285 -139
  491. package/package/corpus/skills/cratis-cli-terminal-workbench/references/views-and-refresh.md +66 -0
  492. package/package/corpus/skills/cratis-code-review/SKILL.md +286 -165
  493. package/package/corpus/skills/cratis-code-review/references/csharp-diagnostics.md +76 -0
  494. package/package/corpus/skills/cratis-code-review/references/csharp.md +130 -0
  495. package/package/corpus/skills/cratis-code-review/references/elixir.md +30 -0
  496. package/package/corpus/skills/cratis-code-review/references/go.md +25 -0
  497. package/package/corpus/skills/cratis-code-review/references/java.md +38 -0
  498. package/package/corpus/skills/cratis-code-review/references/kotlin.md +37 -0
  499. package/package/corpus/skills/cratis-code-review/references/python.md +3 -0
  500. package/package/corpus/skills/cratis-code-review/references/typescript.md +189 -0
  501. package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +213 -13
  502. package/package/corpus/skills/cratis-commits-and-pull-requests/references/commits.md +37 -11
  503. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +98 -6
  504. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-labels-and-release.md +77 -2
  505. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +123 -16
  506. package/package/corpus/skills/cratis-components-accessibility/references/typescript.md +182 -0
  507. package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +167 -31
  508. package/package/corpus/skills/cratis-components-build-canvas/references/conversation-kit.md +89 -0
  509. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-chat.md +73 -0
  510. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-pixi-items.md +46 -0
  511. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-props.md +44 -0
  512. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-shapes.md +159 -0
  513. package/package/corpus/skills/cratis-components-build-canvas/references/typescript.md +140 -0
  514. package/package/corpus/skills/cratis-components-choose-control/SKILL.md +113 -28
  515. package/package/corpus/skills/cratis-components-choose-control/references/breadcrumbs-and-labels.md +21 -0
  516. package/package/corpus/skills/cratis-components-choose-control/references/collections.md +27 -3
  517. package/package/corpus/skills/cratis-components-choose-control/references/typescript-common.md +50 -0
  518. package/package/corpus/skills/cratis-components-choose-control/references/typescript-composition.md +174 -0
  519. package/package/corpus/skills/cratis-components-choose-control/references/typescript-display.md +12 -0
  520. package/package/corpus/skills/cratis-components-choose-control/references/typescript-dropdown.md +27 -0
  521. package/package/corpus/skills/cratis-components-choose-control/references/typescript-iconpicker.md +19 -0
  522. package/package/corpus/skills/cratis-components-choose-control/references/typescript-markdowneditor.md +16 -0
  523. package/package/corpus/skills/cratis-components-choose-control/references/typescript.md +69 -0
  524. package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +210 -23
  525. package/package/corpus/skills/cratis-components-compose-toolbar/references/behavior.md +87 -0
  526. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-composition.md +202 -0
  527. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-toolbar.md +125 -0
  528. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript.md +128 -0
  529. package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +138 -65
  530. package/package/corpus/skills/cratis-components-coordinate-feedback/references/dialog-props.md +30 -0
  531. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-dialogs.md +139 -0
  532. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-notifications.md +66 -0
  533. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript.md +170 -0
  534. package/package/corpus/skills/cratis-components-display-list/SKILL.md +204 -38
  535. package/package/corpus/skills/cratis-components-display-list/references/parts-and-messages.md +22 -0
  536. package/package/corpus/skills/cratis-components-display-list/references/typescript-datatables.md +179 -0
  537. package/package/corpus/skills/cratis-components-display-list/references/typescript.md +204 -0
  538. package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +188 -75
  539. package/package/corpus/skills/cratis-components-edit-schema-data/references/editing-rules.md +27 -0
  540. package/package/corpus/skills/cratis-components-edit-schema-data/references/schema-mapping.md +57 -0
  541. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-componentpicker.md +22 -0
  542. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-composition.md +246 -0
  543. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-configurationeditor.md +23 -0
  544. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectcontenteditor.md +12 -0
  545. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectnavigationalbar.md +7 -0
  546. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-schemaeditor.md +89 -0
  547. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript.md +141 -0
  548. package/package/corpus/skills/cratis-components-explore-data/SKILL.md +192 -48
  549. package/package/corpus/skills/cratis-components-explore-data/references/typescript-composition.md +87 -0
  550. package/package/corpus/skills/cratis-components-explore-data/references/typescript-filter.md +47 -0
  551. package/package/corpus/skills/cratis-components-explore-data/references/typescript-pivotviewer.md +27 -0
  552. package/package/corpus/skills/cratis-components-explore-data/references/typescript-timemachine.md +44 -0
  553. package/package/corpus/skills/cratis-components-explore-data/references/typescript.md +133 -0
  554. package/package/corpus/skills/cratis-components-host-chat/SKILL.md +189 -34
  555. package/package/corpus/skills/cratis-components-host-chat/references/presentation.md +60 -0
  556. package/package/corpus/skills/cratis-components-host-chat/references/typescript-composition.md +108 -0
  557. package/package/corpus/skills/cratis-components-host-chat/references/typescript-layouts.md +59 -0
  558. package/package/corpus/skills/cratis-components-host-chat/references/typescript.md +158 -0
  559. package/package/corpus/skills/cratis-components-submit-form/SKILL.md +127 -45
  560. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commanddialog.md +138 -0
  561. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commandform.md +96 -0
  562. package/package/corpus/skills/cratis-components-submit-form/references/typescript-fields.md +157 -0
  563. package/package/corpus/skills/cratis-components-submit-form/references/typescript.md +113 -0
  564. package/package/corpus/skills/cratis-components-theme-application/SKILL.md +137 -47
  565. package/package/corpus/skills/cratis-components-theme-application/references/palette.md +4 -5
  566. package/package/corpus/skills/cratis-components-theme-application/references/parts.md +73 -0
  567. package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +34 -3
  568. package/package/corpus/skills/cratis-components-theme-application/references/tokens.md +17 -0
  569. package/package/corpus/skills/cratis-components-theme-application/references/typescript-adapter-authoring.md +198 -0
  570. package/package/corpus/skills/cratis-components-theme-application/references/typescript.md +243 -0
  571. package/package/corpus/skills/cratis-content-length/SKILL.md +221 -162
  572. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +173 -6
  573. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +259 -184
  574. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +32 -16
  575. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +115 -0
  576. package/package/corpus/skills/cratis-discoverability/SKILL.md +196 -85
  577. package/package/corpus/skills/cratis-discoverability/references/csharp.md +6 -0
  578. package/package/corpus/skills/cratis-discoverability/references/elixir.md +6 -0
  579. package/package/corpus/skills/cratis-discoverability/references/entities.md +41 -25
  580. package/package/corpus/skills/cratis-discoverability/references/go.md +6 -0
  581. package/package/corpus/skills/cratis-discoverability/references/java.md +6 -0
  582. package/package/corpus/skills/cratis-discoverability/references/kotlin.md +6 -0
  583. package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +10 -5
  584. package/package/corpus/skills/cratis-discoverability/references/page-checklist.md +90 -49
  585. package/package/corpus/skills/cratis-discoverability/references/structured-data.md +35 -28
  586. package/package/corpus/skills/cratis-discoverability/references/typescript.md +6 -0
  587. package/package/corpus/skills/cratis-discoverability/scripts/verify-discoverability.mjs +24 -9
  588. package/package/corpus/skills/cratis-documentation-writing/SKILL.md +266 -172
  589. package/package/corpus/skills/cratis-documentation-writing/references/cratis-site.md +113 -100
  590. package/package/corpus/skills/cratis-documentation-writing/references/writing-guidance.md +4 -2
  591. package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +220 -87
  592. package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +145 -9
  593. package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +259 -54
  594. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +88 -38
  595. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +102 -24
  596. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +118 -87
  597. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-alternate-implementations.md +60 -0
  598. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-code-style.md +294 -0
  599. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/{domain-philosophy.md → csharp-domain-philosophy.md} +11 -10
  600. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-exceptions-logging-and-di.md +328 -0
  601. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-monads.md +124 -0
  602. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp.md +54 -0
  603. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +266 -97
  604. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +21 -8
  605. package/package/corpus/skills/cratis-engineering-decision-record/references/direct.md +118 -0
  606. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +114 -102
  607. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +301 -71
  608. package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +294 -56
  609. package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +161 -86
  610. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/csharp.md +52 -0
  611. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/elixir.md +21 -0
  612. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +35 -6
  613. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/go.md +17 -0
  614. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/java.md +14 -0
  615. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/kotlin.md +14 -0
  616. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/typescript.md +15 -0
  617. package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +127 -27
  618. package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +40 -13
  619. package/package/corpus/skills/cratis-engineering-inherited-work/references/pull-request-evidence.md +66 -0
  620. package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +254 -79
  621. package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +97 -52
  622. package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +159 -64
  623. package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +119 -67
  624. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +249 -57
  625. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{dotnet-nuget.md → csharp.md} +11 -16
  626. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +40 -8
  627. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +5 -8
  628. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/elixir.md +108 -0
  629. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go.md +276 -0
  630. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +28 -18
  631. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/java.md +105 -0
  632. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/kotlin.md +179 -0
  633. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/train-mode.md +1 -1
  634. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{npm-yarn.md → typescript.md} +5 -3
  635. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +116 -48
  636. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/scripts/dependency-map.tsv +1 -1
  637. package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +283 -81
  638. package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +5 -20
  639. package/package/corpus/skills/cratis-engineering-post-mortem/references/public-safe-wording.md +18 -23
  640. package/package/corpus/skills/cratis-engineering-post-mortem/references/review-template.md +86 -37
  641. package/package/corpus/skills/cratis-engineering-post-mortem/references/silent-backup-failure.md +92 -98
  642. package/package/corpus/skills/cratis-engineering-post-mortem/references/unintended-release-regression.md +79 -73
  643. package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +98 -56
  644. package/package/corpus/skills/cratis-engineering-regression-cluster/references/history-and-proof.md +30 -0
  645. package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +290 -62
  646. package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +138 -107
  647. package/package/corpus/skills/cratis-engineering-release-trains/references/final-merge-gate.md +118 -0
  648. package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +311 -68
  649. package/package/corpus/skills/cratis-engineering-review-rounds/references/review-ranges.md +99 -0
  650. package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +235 -95
  651. package/package/corpus/skills/cratis-environments-and-secrets/references/csharp.md +112 -0
  652. package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +28 -23
  653. package/package/corpus/skills/cratis-environments-and-secrets/references/transcript-safety.md +31 -0
  654. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +174 -65
  655. package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +73 -69
  656. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +143 -0
  657. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp-serialization.md +183 -0
  658. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp.md +113 -0
  659. package/package/corpus/skills/cratis-fundamentals-concept/references/elixir.md +76 -0
  660. package/package/corpus/skills/cratis-fundamentals-concept/references/go-naming.md +36 -0
  661. package/package/corpus/skills/cratis-fundamentals-concept/references/go.md +276 -0
  662. package/package/corpus/skills/cratis-fundamentals-concept/references/java-json.md +121 -0
  663. package/package/corpus/skills/cratis-fundamentals-concept/references/java-primitives.md +156 -0
  664. package/package/corpus/skills/cratis-fundamentals-concept/references/java.md +155 -0
  665. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-json.md +123 -0
  666. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-primitives.md +161 -0
  667. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin.md +140 -0
  668. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md +203 -0
  669. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript.md +100 -0
  670. package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +113 -11
  671. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp-specs.md +165 -0
  672. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +223 -29
  673. package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +162 -4
  674. package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +227 -5
  675. package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +203 -6
  676. package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +251 -5
  677. package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +160 -9
  678. package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +120 -62
  679. package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp-otlp-export.md +56 -0
  680. package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp.md +224 -0
  681. package/package/corpus/skills/cratis-fundamentals-telemetry/references/elixir.md +10 -0
  682. package/package/corpus/skills/cratis-fundamentals-telemetry/references/go.md +33 -0
  683. package/package/corpus/skills/cratis-fundamentals-telemetry/references/java.md +9 -0
  684. package/package/corpus/skills/cratis-fundamentals-telemetry/references/kotlin.md +9 -0
  685. package/package/corpus/skills/cratis-fundamentals-telemetry/references/typescript.md +9 -0
  686. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +104 -26
  687. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp-diagnostics.md +75 -0
  688. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp.md +182 -0
  689. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/elixir.md +30 -0
  690. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go-dependency-injection.md +168 -0
  691. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go.md +29 -0
  692. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/java.md +39 -0
  693. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/kotlin.md +31 -0
  694. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/typescript.md +32 -0
  695. package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +346 -273
  696. package/package/corpus/skills/cratis-governed-release-methodology/references/artifact-verification.md +58 -0
  697. package/package/corpus/skills/cratis-governed-release-methodology/references/lifecycle-phases.md +32 -25
  698. package/package/corpus/skills/cratis-governed-release-methodology/references/release-decisions.md +78 -0
  699. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +331 -98
  700. package/package/corpus/skills/cratis-lens-browser-extension/references/csharp.md +13 -0
  701. package/package/corpus/skills/cratis-lens-browser-extension/references/elixir.md +9 -0
  702. package/package/corpus/skills/cratis-lens-browser-extension/references/go.md +8 -0
  703. package/package/corpus/skills/cratis-lens-browser-extension/references/java.md +8 -0
  704. package/package/corpus/skills/cratis-lens-browser-extension/references/kotlin.md +8 -0
  705. package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +111 -102
  706. package/package/corpus/skills/cratis-lens-browser-extension/references/typescript.md +10 -0
  707. package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +333 -102
  708. package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +144 -15
  709. package/package/corpus/skills/cratis-modeling-design-event-model/references/command-inventory.md +43 -0
  710. package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +71 -3
  711. package/package/corpus/skills/cratis-modeling-design-event-model/references/review-one-slice.md +14 -13
  712. package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +265 -14
  713. package/package/corpus/skills/cratis-modeling-discover-timeline/references/discovery-questions.md +10 -8
  714. package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +5 -1
  715. package/package/corpus/skills/cratis-modeling-discover-timeline/references/studio.md +136 -0
  716. package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +172 -9
  717. package/package/corpus/skills/cratis-modeling-review-event-model/references/csharp.md +40 -0
  718. package/package/corpus/skills/cratis-modeling-review-event-model/references/elixir.md +32 -0
  719. package/package/corpus/skills/cratis-modeling-review-event-model/references/event-log-hygiene.md +44 -0
  720. package/package/corpus/skills/cratis-modeling-review-event-model/references/go.md +27 -0
  721. package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +20 -9
  722. package/package/corpus/skills/cratis-modeling-review-event-model/references/java.md +28 -0
  723. package/package/corpus/skills/cratis-modeling-review-event-model/references/kotlin.md +28 -0
  724. package/package/corpus/skills/cratis-modeling-review-event-model/references/model-findings.md +30 -10
  725. package/package/corpus/skills/cratis-modeling-review-event-model/references/resilience-review.md +1 -1
  726. package/package/corpus/skills/cratis-modeling-review-event-model/references/screenplay-evidence.md +159 -0
  727. package/package/corpus/skills/cratis-modeling-review-event-model/references/typescript.md +27 -0
  728. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +128 -16
  729. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +5 -5
  730. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp-source-adapter.md +221 -0
  731. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp.md +11 -0
  732. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/draft-checks.md +23 -0
  733. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/elixir.md +13 -0
  734. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/go.md +10 -0
  735. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/java.md +5 -0
  736. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/kotlin.md +5 -0
  737. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +67 -4
  738. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/side-car-migration.md +11 -0
  739. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/typescript.md +5 -0
  740. package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +229 -90
  741. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp-aspire.md +204 -0
  742. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp.md +31 -0
  743. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +82 -36
  744. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/elixir.md +10 -0
  745. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/go.md +11 -0
  746. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/java.md +11 -0
  747. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/kotlin.md +11 -0
  748. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/typescript.md +15 -0
  749. package/package/corpus/skills/cratis-observability/SKILL.md +178 -10
  750. package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +153 -13
  751. package/package/corpus/skills/cratis-observability/references/csharp-arc-and-chronicle-signals.md +79 -0
  752. package/package/corpus/skills/cratis-observability/references/csharp-setup-options.md +104 -0
  753. package/package/corpus/skills/cratis-observability/references/csharp.md +172 -56
  754. package/package/corpus/skills/cratis-observability/references/elixir.md +243 -5
  755. package/package/corpus/skills/cratis-observability/references/go-arc-diagnostics.md +134 -0
  756. package/package/corpus/skills/cratis-observability/references/go.md +292 -0
  757. package/package/corpus/skills/cratis-observability/references/java.md +236 -0
  758. package/package/corpus/skills/cratis-observability/references/kotlin.md +251 -0
  759. package/package/corpus/skills/cratis-observability/references/troubleshooting.md +13 -17
  760. package/package/corpus/skills/cratis-observability/references/typescript-chronicle-client.md +116 -0
  761. package/package/corpus/skills/cratis-observability/references/typescript.md +159 -0
  762. package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +222 -85
  763. package/package/corpus/skills/cratis-onboarding-runtime/references/ante-onboarding-keys.md +153 -10
  764. package/package/corpus/skills/cratis-onboarding-runtime/references/csharp.md +61 -0
  765. package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +29 -33
  766. package/package/corpus/skills/cratis-onboarding-runtime/references/performance.md +75 -19
  767. package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +10 -6
  768. package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +174 -80
  769. package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +78 -49
  770. package/package/corpus/skills/cratis-orchestration-lanes/references/lane-brief.md +48 -16
  771. package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +11 -8
  772. package/package/corpus/skills/cratis-orchestration-lanes/references/work-records.md +16 -0
  773. package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +80 -90
  774. package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +153 -59
  775. package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +10 -6
  776. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +216 -32
  777. package/package/corpus/skills/cratis-orleans-jobs/references/csharp-lifecycle-and-placement.md +89 -0
  778. package/package/corpus/skills/cratis-orleans-jobs/references/csharp-state-machines.md +96 -0
  779. package/package/corpus/skills/cratis-orleans-jobs/references/csharp.md +301 -0
  780. package/package/corpus/skills/cratis-performance-review/SKILL.md +265 -45
  781. package/package/corpus/skills/cratis-performance-review/references/csharp.md +67 -0
  782. package/package/corpus/skills/cratis-performance-review/references/elixir.md +34 -0
  783. package/package/corpus/skills/cratis-performance-review/references/go.md +43 -0
  784. package/package/corpus/skills/cratis-performance-review/references/java.md +38 -0
  785. package/package/corpus/skills/cratis-performance-review/references/kotlin.md +37 -0
  786. package/package/corpus/skills/cratis-performance-review/references/observer-tuning.md +117 -0
  787. package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +173 -77
  788. package/package/corpus/skills/cratis-performance-review/references/typescript.md +41 -0
  789. package/package/corpus/skills/cratis-platform-build-application/SKILL.md +243 -0
  790. package/package/corpus/skills/cratis-platform-build-application/references/cli-map.md +256 -0
  791. package/package/corpus/skills/cratis-platform-build-application/references/csharp-guided-tours.md +41 -0
  792. package/package/corpus/skills/cratis-platform-build-application/references/csharp.md +17 -0
  793. package/package/corpus/skills/cratis-platform-build-application/references/direct.md +258 -0
  794. package/package/corpus/skills/cratis-platform-build-application/references/elixir.md +27 -0
  795. package/package/corpus/skills/cratis-platform-build-application/references/go.md +13 -0
  796. package/package/corpus/skills/cratis-platform-build-application/references/java.md +13 -0
  797. package/package/corpus/skills/cratis-platform-build-application/references/kotlin.md +13 -0
  798. package/package/corpus/skills/cratis-platform-build-application/references/typescript-guided-tours.md +132 -0
  799. package/package/corpus/skills/cratis-platform-build-application/references/typescript.md +13 -0
  800. package/package/corpus/skills/cratis-platform-build-application/scripts/model-first-status.sh +100 -0
  801. package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +130 -31
  802. package/package/corpus/skills/cratis-platform-configure-environment/references/csharp.md +336 -0
  803. package/package/corpus/skills/cratis-platform-configure-environment/references/elixir.md +224 -0
  804. package/package/corpus/skills/cratis-platform-configure-environment/references/go.md +257 -0
  805. package/package/corpus/skills/cratis-platform-configure-environment/references/java.md +209 -0
  806. package/package/corpus/skills/cratis-platform-configure-environment/references/kotlin.md +240 -0
  807. package/package/corpus/skills/cratis-platform-configure-environment/references/typescript.md +280 -0
  808. package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +120 -8
  809. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-arc-mcp.md +65 -0
  810. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-cli-registration.md +86 -0
  811. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp.md +21 -0
  812. package/package/corpus/skills/cratis-platform-contribute-change/references/elixir.md +12 -0
  813. package/package/corpus/skills/cratis-platform-contribute-change/references/go.md +14 -0
  814. package/package/corpus/skills/cratis-platform-contribute-change/references/java.md +9 -0
  815. package/package/corpus/skills/cratis-platform-contribute-change/references/kotlin.md +12 -0
  816. package/package/corpus/skills/cratis-platform-contribute-change/references/repositories.md +93 -0
  817. package/package/corpus/skills/cratis-platform-contribute-change/references/typescript.md +13 -0
  818. package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +235 -13
  819. package/package/corpus/skills/cratis-platform-deliver-slice/references/contract-reconciliation.md +73 -6
  820. package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +7 -4
  821. package/package/corpus/skills/cratis-platform-deliver-slice/references/csharp.md +251 -0
  822. package/package/corpus/skills/cratis-platform-deliver-slice/references/elixir.md +266 -0
  823. package/package/corpus/skills/cratis-platform-deliver-slice/references/go.md +242 -0
  824. package/package/corpus/skills/cratis-platform-deliver-slice/references/java.md +310 -0
  825. package/package/corpus/skills/cratis-platform-deliver-slice/references/kotlin.md +297 -0
  826. package/package/corpus/skills/cratis-platform-deliver-slice/references/typescript.md +248 -0
  827. package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +173 -25
  828. package/package/corpus/skills/cratis-platform-diagnose-slice/references/csharp.md +7 -0
  829. package/package/corpus/skills/cratis-platform-diagnose-slice/references/elixir.md +7 -0
  830. package/package/corpus/skills/cratis-platform-diagnose-slice/references/evidence.md +100 -0
  831. package/package/corpus/skills/cratis-platform-diagnose-slice/references/go.md +7 -0
  832. package/package/corpus/skills/cratis-platform-diagnose-slice/references/java.md +5 -0
  833. package/package/corpus/skills/cratis-platform-diagnose-slice/references/kotlin.md +5 -0
  834. package/package/corpus/skills/cratis-platform-diagnose-slice/references/typescript.md +7 -0
  835. package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +178 -13
  836. package/package/corpus/skills/cratis-platform-prepare-release-pr/references/product-release-checks.md +23 -0
  837. package/package/corpus/skills/cratis-platform-start-application/SKILL.md +239 -21
  838. package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +223 -18
  839. package/package/corpus/skills/cratis-platform-start-application/references/elixir.md +11 -0
  840. package/package/corpus/skills/cratis-platform-start-application/references/go.md +11 -0
  841. package/package/corpus/skills/cratis-platform-start-application/references/java.md +224 -9
  842. package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +191 -9
  843. package/package/corpus/skills/cratis-platform-start-application/references/typescript.md +14 -0
  844. package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +211 -12
  845. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/csharp.md +9 -0
  846. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/elixir.md +5 -0
  847. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/go.md +5 -0
  848. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/java.md +5 -0
  849. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/kotlin.md +5 -0
  850. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/routes-and-failures.md +40 -0
  851. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/typescript.md +5 -0
  852. package/package/corpus/skills/cratis-release-notes/SKILL.md +137 -57
  853. package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -59
  854. package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +55 -61
  855. package/package/corpus/skills/cratis-rtk/SKILL.md +188 -35
  856. package/package/corpus/skills/cratis-rtk/references/rtk-administration.md +137 -0
  857. package/package/corpus/skills/cratis-rtk/references/rtk-filters.md +68 -0
  858. package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +160 -18
  859. package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +2 -0
  860. package/package/corpus/skills/cratis-screenplay-accept-model/references/csharp.md +122 -0
  861. package/package/corpus/skills/cratis-screenplay-accept-model/references/diagnostic-decisions.md +10 -0
  862. package/package/corpus/skills/cratis-screenplay-accept-model/references/read-the-evidence.md +50 -0
  863. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +265 -41
  864. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/email-templates.md +47 -0
  865. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/environment-keys.md +81 -0
  866. package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +182 -20
  867. package/package/corpus/skills/cratis-screenplay-author-extension/references/cli.md +58 -0
  868. package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +31 -8
  869. package/package/corpus/skills/cratis-screenplay-author-extension/references/csharp.md +66 -0
  870. package/package/corpus/skills/cratis-screenplay-author-extension/references/elixir.md +8 -0
  871. package/package/corpus/skills/cratis-screenplay-author-extension/references/frontend-components.md +12 -0
  872. package/package/corpus/skills/cratis-screenplay-author-extension/references/go.md +95 -0
  873. package/package/corpus/skills/cratis-screenplay-author-extension/references/java.md +15 -0
  874. package/package/corpus/skills/cratis-screenplay-author-extension/references/kotlin.md +69 -0
  875. package/package/corpus/skills/cratis-screenplay-author-extension/references/lock-and-trust.md +23 -0
  876. package/package/corpus/skills/cratis-screenplay-author-extension/references/protocol.md +12 -0
  877. package/package/corpus/skills/cratis-screenplay-author-extension/references/runtime-details.md +30 -0
  878. package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +70 -6
  879. package/package/corpus/skills/cratis-screenplay-author-extension/references/typescript.md +66 -0
  880. package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +165 -20
  881. package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +60 -4
  882. package/package/corpus/skills/cratis-screenplay-availability/references/csharp.md +88 -0
  883. package/package/corpus/skills/cratis-screenplay-availability/references/elixir.md +45 -0
  884. package/package/corpus/skills/cratis-screenplay-availability/references/go.md +5 -0
  885. package/package/corpus/skills/cratis-screenplay-availability/references/java.md +5 -0
  886. package/package/corpus/skills/cratis-screenplay-availability/references/kotlin.md +5 -0
  887. package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +62 -13
  888. package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +72 -13
  889. package/package/corpus/skills/cratis-screenplay-availability/references/typescript.md +20 -0
  890. package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +232 -66
  891. package/package/corpus/skills/cratis-screenplay-declare-slice/references/commands.md +256 -0
  892. package/package/corpus/skills/cratis-screenplay-declare-slice/references/concepts-and-generated-values.md +206 -0
  893. package/package/corpus/skills/cratis-screenplay-declare-slice/references/context-and-identity.md +105 -0
  894. package/package/corpus/skills/cratis-screenplay-declare-slice/references/events-and-constraints.md +123 -0
  895. package/package/corpus/skills/cratis-screenplay-declare-slice/references/language-map.md +129 -0
  896. package/package/corpus/skills/cratis-screenplay-declare-slice/references/policies-and-purposes.md +117 -0
  897. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +3 -12
  898. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projections.md +222 -0
  899. package/package/corpus/skills/cratis-screenplay-declare-slice/references/queries.md +122 -0
  900. package/package/corpus/skills/cratis-screenplay-declare-slice/references/reducers-graphs-sinks.md +105 -0
  901. package/package/corpus/skills/cratis-screenplay-declare-slice/references/structure-and-imports.md +142 -0
  902. package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +164 -21
  903. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/mcp-tools.md +138 -0
  904. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +63 -14
  905. package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +120 -25
  906. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/csharp.md +107 -0
  907. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/mcp.md +16 -0
  908. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/ordering.md +29 -3
  909. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/recipient-contracts.md +50 -0
  910. package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +190 -101
  911. package/package/corpus/skills/cratis-screenplay-model-automation/references/external-effects.md +10 -0
  912. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +12 -4
  913. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-example.md +95 -0
  914. package/package/corpus/skills/cratis-screenplay-model-automation/references/stage-subset.md +61 -0
  915. package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +171 -51
  916. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-host-api.md +177 -0
  917. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp.md +127 -0
  918. package/package/corpus/skills/cratis-screenplay-model-interaction/references/decision-inputs.md +10 -0
  919. package/package/corpus/skills/cratis-screenplay-model-interaction/references/elixir.md +9 -0
  920. package/package/corpus/skills/cratis-screenplay-model-interaction/references/go.md +9 -0
  921. package/package/corpus/skills/cratis-screenplay-model-interaction/references/java.md +9 -0
  922. package/package/corpus/skills/cratis-screenplay-model-interaction/references/kotlin.md +9 -0
  923. package/package/corpus/skills/cratis-screenplay-model-interaction/references/localized-strings.md +1 -1
  924. package/package/corpus/skills/cratis-screenplay-model-interaction/references/navigation-reachability.md +25 -0
  925. package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +187 -20
  926. package/package/corpus/skills/cratis-screenplay-model-interaction/references/typescript.md +119 -6
  927. package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +259 -89
  928. package/package/corpus/skills/cratis-screenplay-model-translation/references/boundary-diagnostics.md +32 -0
  929. package/package/corpus/skills/cratis-screenplay-model-translation/references/stage-realization.md +36 -0
  930. package/package/corpus/skills/cratis-screenplay-model-translation/references/translation-scenarios.md +114 -0
  931. package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +185 -20
  932. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/cli.md +88 -0
  933. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/csharp.md +210 -0
  934. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/typescript.md +45 -0
  935. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/workspace-mcp.md +133 -0
  936. package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +161 -20
  937. package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +195 -7
  938. package/package/corpus/skills/cratis-screenplay-recover-intent/references/elixir.md +21 -0
  939. package/package/corpus/skills/cratis-screenplay-recover-intent/references/go.md +17 -0
  940. package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
  941. package/package/corpus/skills/cratis-screenplay-recover-intent/references/java.md +9 -0
  942. package/package/corpus/skills/cratis-screenplay-recover-intent/references/kotlin.md +9 -0
  943. package/package/corpus/skills/cratis-screenplay-recover-intent/references/running-system.md +122 -6
  944. package/package/corpus/skills/cratis-screenplay-recover-intent/references/typescript.md +9 -0
  945. package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +233 -62
  946. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/boundary-scenarios.md +60 -0
  947. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/case-questions.md +30 -0
  948. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/coverage-worksheet.md +16 -8
  949. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/csharp.md +41 -0
  950. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/graph-steps.md +37 -5
  951. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/named-cases.md +23 -10
  952. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +22 -19
  953. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/scenarios.md +230 -0
  954. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +140 -14
  955. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
  956. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +7 -9
  957. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +36 -24
  958. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/destination-repairs.md +21 -0
  959. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
  960. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +6 -9
  961. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +3 -6
  962. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +4 -5
  963. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +32 -19
  964. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +53 -16
  965. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +1 -1
  966. package/package/corpus/skills/cratis-security-review/SKILL.md +137 -72
  967. package/package/corpus/skills/cratis-security-review/references/csharp.md +114 -0
  968. package/package/corpus/skills/cratis-security-review/references/elixir.md +21 -0
  969. package/package/corpus/skills/cratis-security-review/references/go.md +22 -0
  970. package/package/corpus/skills/cratis-security-review/references/java.md +20 -0
  971. package/package/corpus/skills/cratis-security-review/references/kotlin.md +20 -0
  972. package/package/corpus/skills/cratis-security-review/references/python.md +3 -0
  973. package/package/corpus/skills/cratis-security-review/references/review-checklist.md +98 -68
  974. package/package/corpus/skills/cratis-security-review/references/typescript.md +22 -0
  975. package/package/corpus/skills/cratis-session-handoff/SKILL.md +134 -90
  976. package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +35 -52
  977. package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +170 -86
  978. package/package/corpus/skills/cratis-showrunner-herald/references/csharp-templates-and-images.md +115 -0
  979. package/package/corpus/skills/cratis-showrunner-herald/references/csharp.md +280 -0
  980. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +252 -38
  981. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +104 -10
  982. package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +185 -27
  983. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +103 -3
  984. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-decision-reads.md +40 -11
  985. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-events.md +136 -0
  986. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-graphs.md +45 -0
  987. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-integration.md +121 -75
  988. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +33 -8
  989. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-reactors.md +117 -0
  990. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-read-models.md +96 -0
  991. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-relational.md +16 -0
  992. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-slice.md +68 -0
  993. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +142 -34
  994. package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +274 -32
  995. package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +176 -111
  996. package/package/corpus/skills/cratis-specifications-exercise-backend/references/java.md +208 -5
  997. package/package/corpus/skills/cratis-specifications-exercise-backend/references/kotlin.md +235 -7
  998. package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +223 -57
  999. package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +159 -34
  1000. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-running.md +180 -0
  1001. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp.md +331 -0
  1002. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/kotlin.md +5 -0
  1003. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/typescript.md +9 -0
  1004. package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +92 -55
  1005. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-browser.md +44 -0
  1006. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-storybook.md +157 -0
  1007. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript.md +8 -0
  1008. package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +182 -9
  1009. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-rendering.md +172 -0
  1010. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript.md +400 -0
  1011. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +139 -9
  1012. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/references/typescript.md +316 -0
  1013. package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +284 -14
  1014. package/package/corpus/skills/cratis-stage-render-slice/references/csharp-configuration.md +202 -0
  1015. package/package/corpus/skills/cratis-stage-render-slice/references/csharp-planning.md +80 -0
  1016. package/package/corpus/skills/cratis-stage-render-slice/references/csharp.md +221 -0
  1017. package/package/corpus/skills/cratis-stage-render-slice/references/graph-rendering.md +53 -0
  1018. package/package/corpus/skills/cratis-stage-render-slice/references/java.md +25 -0
  1019. package/package/corpus/skills/cratis-stage-render-slice/references/review-render-plan.md +154 -12
  1020. package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +212 -12
  1021. package/package/corpus/skills/cratis-stage-run-sandbox/references/journey-replay.md +47 -0
  1022. package/package/corpus/skills/cratis-stage-run-sandbox/references/published-mode.md +103 -0
  1023. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-runtime.md +67 -0
  1024. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +60 -6
  1025. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +243 -52
  1026. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/tools.md +239 -0
  1027. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/webhooks.md +74 -0
  1028. package/package/corpus/skills/cratis-technical-examples/SKILL.md +233 -67
  1029. package/package/corpus/skills/cratis-technical-examples/references/csharp.md +325 -0
  1030. package/package/corpus/skills/cratis-technical-examples/references/elixir.md +114 -0
  1031. package/package/corpus/skills/cratis-technical-examples/references/go.md +74 -0
  1032. package/package/corpus/skills/cratis-technical-examples/references/java.md +194 -0
  1033. package/package/corpus/skills/cratis-technical-examples/references/kotlin.md +205 -0
  1034. package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +57 -40
  1035. package/package/corpus/skills/cratis-technical-examples/references/typescript.md +427 -0
  1036. package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +120 -35
  1037. package/package/corpus/skills/cratis-ux-review/SKILL.md +136 -33
  1038. package/package/corpus/skills/cratis-ux-review/references/checklist.md +10 -6
  1039. package/package/corpus/skills/cratis-ux-review/references/report-template.md +10 -8
  1040. package/package/corpus/skills/cratis-ux-review/references/typescript.md +9 -0
  1041. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +275 -51
  1042. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +49 -35
  1043. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/pattern-evidence.md +151 -0
  1044. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +28 -16
  1045. package/package/corpus/skills/migrate-dotnet10-to-dotnet11/SKILL.md +3 -1
  1046. package/package/profile-catalog.json +34 -2
  1047. package/package.json +1 -1
  1048. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +0 -40
  1049. package/package/corpus/skills/cratis-arc-declare-command/references/python.md +0 -3
  1050. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/python.md +0 -3
  1051. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +0 -23
  1052. package/package/corpus/skills/cratis-arc-expose-query/references/python.md +0 -3
  1053. package/package/corpus/skills/cratis-arc-generate-proxies/references/python.md +0 -3
  1054. package/package/corpus/skills/cratis-arc-host-application/references/python.md +0 -3
  1055. package/package/corpus/skills/cratis-arc-page-query/references/python.md +0 -3
  1056. package/package/corpus/skills/cratis-arc-react-bind-slice/references/commands.md +0 -88
  1057. package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +0 -9
  1058. package/package/corpus/skills/cratis-arc-react-bind-slice/references/identity.md +0 -7
  1059. package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +0 -9
  1060. package/package/corpus/skills/cratis-arc-react-bind-slice/references/manual-screen.md +0 -10
  1061. package/package/corpus/skills/cratis-arc-react-bind-slice/references/query-state.md +0 -29
  1062. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +0 -45
  1063. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/python.md +0 -3
  1064. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +0 -11
  1065. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +0 -40
  1066. package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +0 -62
  1067. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +0 -49
  1068. package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +0 -25
  1069. package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +0 -51
  1070. package/package/corpus/skills/cratis-arc-validate-command/references/java.md +0 -27
  1071. package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +0 -23
  1072. package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +0 -23
  1073. package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +0 -55
  1074. package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +0 -72
  1075. package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +0 -86
  1076. package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +0 -46
  1077. package/package/corpus/skills/cratis-chronicle-evolve-event/references/bulk-repair.md +0 -7
  1078. package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +0 -50
  1079. package/package/corpus/skills/cratis-chronicle-record-event/references/python.md +0 -3
  1080. package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +0 -29
  1081. package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +0 -8
  1082. package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +0 -15
  1083. package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +0 -3
  1084. package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +0 -5
  1085. package/package/corpus/skills/cratis-components-display-list/references/server-query.md +0 -21
  1086. package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +0 -9
  1087. package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +0 -9
  1088. package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +0 -9
  1089. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +0 -68
  1090. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +0 -202
  1091. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +0 -161
  1092. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +0 -20
  1093. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go-jvm-python-elixir.md +0 -83
  1094. package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +0 -109
  1095. package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +0 -95
  1096. package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +0 -3
  1097. package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +0 -16
  1098. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +0 -14
  1099. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +0 -52
  1100. package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +0 -54
  1101. package/package/corpus/skills/cratis-observability/references/dotnet-setup-and-options.md +0 -68
  1102. package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +0 -22
  1103. package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +0 -12
  1104. package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +0 -12
  1105. package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +0 -5
  1106. package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +0 -56
  1107. package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +0 -66
  1108. package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +0 -27
  1109. package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +0 -35
  1110. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +0 -90
  1111. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/unknown-preserving-reader.md +0 -9
  1112. package/package/corpus/skills/cratis-screenplay-model-automation/references/host-trigger.md +0 -17
  1113. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-performers.md +0 -18
  1114. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +0 -12
  1115. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -10
  1116. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +0 -123
  1117. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/interview-batch.md +0 -20
  1118. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +0 -11
  1119. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/review-questions.md +0 -13
  1120. package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +0 -58
  1121. package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +0 -20
  1122. package/package/corpus/skills/cratis-showrunner-herald/references/options.md +0 -35
  1123. package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +0 -76
  1124. package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +0 -37
  1125. package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +0 -40
  1126. package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +0 -24
  1127. package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +0 -23
  1128. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-phase-timings.md +0 -13
  1129. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +0 -7
  1130. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/blocked-tools.md +0 -11
  1131. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/observational-tools.md +0 -7
  1132. package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +0 -8
  1133. package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +0 -8
  1134. package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +0 -24
  1135. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +0 -23
  1136. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +0 -25
  1137. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +0 -17
  1138. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +0 -23
@@ -0,0 +1,112 @@
1
+ # Bind a Phoenix LiveView to Arc
2
+
3
+ ## Contents
4
+
5
+ - Default path
6
+ - Helpers
7
+ - Forms
8
+ - Who is the caller
9
+ - Hide what is not available
10
+ - Verify
11
+
12
+ Use this when the screen is a LiveView instead of a generated TypeScript client. The LiveView calls the same pipeline in process: availability, authorization, validation and recording behave as they do over HTTP, with no HTTP hop, JSON or proxies. It needs `:phoenix_live_view` in the project and the Arc application (`Dispatch.Arc` below; names are illustrative) running in the supervision tree.
13
+
14
+ ## Default path
15
+
16
+ ```elixir
17
+ defmodule DispatchWeb.ParcelsLive do
18
+ use Phoenix.LiveView
19
+ use Cratis.Arc.LiveView, application: Dispatch.Arc
20
+
21
+ alias Dispatch.Parcels.Listing.Queries
22
+ alias Dispatch.Parcels.ReleaseParcel
23
+
24
+ def mount(_params, _session, socket) do
25
+ {:ok,
26
+ socket
27
+ |> assign_identity()
28
+ |> assign_observable(:parcels, Queries, :pending)
29
+ |> assign_form(:form, ReleaseParcel)}
30
+ end
31
+
32
+ def handle_event("validate", %{"command" => params}, socket),
33
+ do: {:noreply, validate_form(socket, :form, params)}
34
+
35
+ def handle_event("release", %{"command" => params}, socket) do
36
+ case submit_form(socket, :form, params) do
37
+ {:ok, _result, socket} -> {:noreply, put_flash(socket, :info, "Released")}
38
+ {:error, socket} -> {:noreply, socket}
39
+ end
40
+ end
41
+
42
+ def render(assigns) do
43
+ ~H"""
44
+ <.form for={@form} phx-change="validate" phx-submit="release">
45
+ <.input field={@form[:parcel_id]} label="Parcel" />
46
+ <button>Release</button>
47
+ </.form>
48
+ <p :for={parcel <- @parcels}>{parcel.id}</p>
49
+ """
50
+ end
51
+ end
52
+ ```
53
+
54
+ `use Cratis.Arc.LiveView` imports the helpers and attaches the hook that applies query updates; write no `handle_info` for them. `<.input>` is the application's own core component.
55
+
56
+ ## Helpers
57
+
58
+ | Helper | Behaviour |
59
+ | --- | --- |
60
+ | `assign_query(socket, key, read_model, query, args \\ %{}, opts \\ [])` | Runs the query once. Assigns the data to `key` and the full `Cratis.Arc.QueryResult` to `:<key>_result`. A failed query assigns `[]` (or `nil` when `many: false`); read the result assign for the reason. Unknown query name raises `ArgumentError`. |
61
+ | `assign_observable(...)` (same arguments) | Same, and keeps `key` current when the query's `watch:` or `topics:` fire. Before the socket connects it is a one-shot read. Calling it again for the same key replaces the subscription, which ends with the LiveView. Raises when the Arc application is not started. Whole lists are replaced; there is no stream helper. |
62
+ | `execute(socket, command, opts \\ [])` | Runs a command struct or `{module, wire_map}` as the current caller. Returns `{:ok, result}` or `{:error, result}` with a `Cratis.Arc.CommandResult`. `validate_only: true` stops after validation. |
63
+ | `assign_form(socket, key, command, params \\ %{})` | Assigns a `Phoenix.HTML.Form` named `command` for the command module, optionally prefilled. |
64
+ | `validate_form(socket, key, params)` | Runs authorization and validation without recording anything and puts the findings on the form. Use it for `phx-change`. |
65
+ | `submit_form(socket, key, params)` | Executes. `{:ok, result, socket}` with a fresh empty form, or `{:error, socket}` with the findings on the form. |
66
+ | `assign_identity(socket, key \\ :identity)` | Assigns the `Cratis.Arc.Identity.Result` that `/.cratis/me` serves: `id`, `name`, `roles`, `details`, `authenticated?`, `authorized?`. Presentation only; operations authorize themselves. `identity(socket)` returns it without assigning. |
67
+ | `available?(socket, part, arguments \\ %{})` | Whether a command module or `{read_model, query_name}` is available to the caller: the same decision the pipeline makes first. |
68
+ | `context(socket, opts \\ [])` | The `Cratis.Arc.Context` of the current caller, for calling application code directly. |
69
+
70
+ Query `args` use the declared parameter names as atom keys. Query `opts` take `page:`, `page_size:`, `sort_by:` (wire field name) and `sort_direction:`; `assign_query` also takes `tenant:`. `execute/3` passes other options to the context (`tenant:`, `correlation_id:` and the rest of the in-process options in [the main reference](elixir.md)).
71
+
72
+ ## Forms
73
+
74
+ - Form params arrive as strings under `"command"`, keyed by the snake_case field names. Arc converts them to wire names and binds them like an HTTP body.
75
+ - An empty string becomes `nil` for every field that is not `:string`. A field the form does not render is absent, so add the key as a hidden input when editing an existing item.
76
+ - A finding appears on the field its `members` name. A finding without members, an authorization refusal and an exception appear under the form's `:base` errors; render them explicitly.
77
+ - Nested inputs (`<.inputs_for>`) are not supported and raise. Flatten the command or call `execute/3` with a wire map you build.
78
+ - Required fields render the `required` attribute. Other declared rules are checked by `validate_form/3`, not in the browser.
79
+
80
+ ## Who is the caller
81
+
82
+ Arc reads the principal from the socket's assigns on every call, not once at mount, so a signed-out or demoted user is refused on the next call. It looks at `assigns.arc_principal` (a `Cratis.Arc.Principal`), then `assigns.current_scope.user`, then `assigns.current_user` (a map with `:id` and optional `:name` or `:email` and `:roles`); otherwise the caller is anonymous. Set that assign in an authentication `on_mount` hook that runs before the page's `mount` from a verified session, never from client params.
83
+
84
+ To resolve it another way, pass a function that takes the socket and returns a principal:
85
+
86
+ ```elixir
87
+ use Cratis.Arc.LiveView, application: Dispatch.Arc, principal: {DispatchWeb.Auth, :arc_principal}
88
+ ```
89
+
90
+ The tenant is the `:arc_tenant` assign (set it from the verified session), or `tenant:` on one call. The HTTP tenant resolver does not run for a LiveView.
91
+
92
+ A subscription is the exception: `assign_observable` captures the principal and the `:arc_tenant` assign when it subscribes, and every later update is read as that caller and tenant. `tenant:` passed to `assign_observable` affects only the first read, so set `:arc_tenant` instead. When the principal or tenant changes on a live socket, either remount (redirect, or disconnect the LiveView on sign-out), or update the verified assigns, clear the old data and call `assign_observable` again for each key; until then updates still arrive under the old identity.
93
+
94
+ ## Hide what is not available
95
+
96
+ ```heex
97
+ <Cratis.Arc.LiveView.Availability.available
98
+ socket={@socket}
99
+ version={@arc_availability}
100
+ command={Dispatch.Parcels.ReleaseParcel}
101
+ arguments={%{"parcelId" => @parcel.id}}
102
+ >
103
+ <button phx-click="release">Release</button>
104
+ <:unavailable>Releasing is not part of your plan.</:unavailable>
105
+ </Cratis.Arc.LiveView.Availability.available>
106
+ ```
107
+
108
+ Pass `command={Module}` or `query={{ReadModel, :query_name}}`. Always pass `version={@arc_availability}`: a connected LiveView bumps that assign whenever audiences or suspensions change, which re-renders the component. Hiding is presentation; the server refuses regardless.
109
+
110
+ ## Verify
111
+
112
+ Use `Phoenix.LiveViewTest` with the Arc test case configured for the host (`configure: true`, not async; see `cratis-specifications-exercise-backend`). Render a change with an invalid value and assert the finding is shown; submit a valid form and assert the recorded effect. The in-memory test kernel has no read-model queries, so a list backed by a Chronicle read model renders empty there: assert the form, validation and recording instead.
@@ -1,3 +1,73 @@
1
- # Execute through the command pipeline
1
+ # Invoke a command in Elixir
2
2
 
3
- Call the owning application, not `handle/2`: `result = Cratis.Arc.execute(MyApp.Arc, command, principal: principal, tenant: tenant)`. Supply verified identity and authorized tenant, not caller-supplied membership. Use `Cratis.Arc.CommandResult.success?(result)` before reading a response. For wire-shaped input pass `{CommandModule, input_map}` to bind first. Validation-only is not execution. A Chronicle constraint or concurrency conflict is a validation finding; an exception is a different failure. Verify a refused command appended nothing.
3
+ Use the owning application's `:cratis_arc` Mix dependency and running Arc supervisor. Names below are illustrative. For example, `Dispatch.Arc` uses `Cratis.Arc.Application, otp_app: :dispatch`; start it after the configured Chronicle client. Arc discovers commands in that OTP application unless configured with an explicit `artifacts:` list.
4
+
5
+ ## Execute and interpret the result
6
+
7
+ ```elixir
8
+ alias Cratis.Arc
9
+ alias Cratis.Arc.CommandResult
10
+ alias Dispatch.Parcels.ReleaseParcel
11
+
12
+ opts = [principal: principal, tenant: tenant, correlation_id: job_id,
13
+ causation_id: trigger_id, metadata: %{"origin" => "dispatch-job"}]
14
+ command = %ReleaseParcel{parcel_id: parcel_id}
15
+ result = Arc.execute(Dispatch.Arc, command, opts)
16
+
17
+ cond do
18
+ CommandResult.success?(result) -> {:ok, result.response}
19
+ result.retryable? -> {:temporarily_unavailable, result.correlation_id}
20
+ not result.authorized? -> {:denied, result.authorization_failure_reason}
21
+ result.validation_results != [] -> {:rejected, result.validation_results}
22
+ true -> {:fault, result.correlation_id}
23
+ end
24
+ ```
25
+
26
+ The synchronous return is a struct, not `{:ok, result}`. Success requires authorization, empty findings and empty exception messages. `nil` means no response; preserve a legitimate `false` or zero. Inspect each finding's `members`, `severity`, `reason`, optional `reason_detail` and `state`; don't parse `message`. A `"constraintViolation"` can identify the constraint in `reason_detail`; on `"concurrencyViolation"` reload before deciding again. Handle unknown reasons. An undecidable availability check is retryable, not an authorization denial. Use correlation to find the logged exception; detailed `exception_messages` and `exception_stack_trace` are hidden by default (`expose_exceptions` is for trusted diagnostics).
27
+
28
+ Use a verified `%Cratis.Arc.Principal{}` and authorized tenant; direct calls do not authenticate an HTTP request. Defaults are anonymous, no named tenant, a generated correlation UUID, no causation ID and empty metadata. A named tenant selects the Chronicle namespace. Trusted `metadata:` accompanies append causation; don't copy credentials into it. `chronicle:` defaults to the app configuration; override only for a trusted integration, e.g. `chronicle: [client: Dispatch.Chronicle]`.
29
+
30
+ ## Wire input, preflight and deadlines
31
+
32
+ ```elixir
33
+ wire = {ReleaseParcel, %{"parcelId" => parcel_id}}
34
+ preflight = Arc.execute(Dispatch.Arc, wire, Keyword.put(opts, :validate_only, true))
35
+ ```
36
+
37
+ Supply a known module, not a module name derived from arbitrary input. A wire map is cast; a command struct skips casting. Availability runs first, then binding, authorization, app filters and validation. Preflight ends there: no `provide/2`, handler or append, and no promise that a later execute succeeds. For execution pass `wire` and `opts` without `:validate_only`.
38
+
39
+ `allowed_severity: 2` accepts through warning where severity filtering applies (declared/custom validation and provider/handler findings); the default `-1` accepts nothing. Values are unknown 0, information 1, warning 2, error 3. Never pass an unchecked caller number: direct calls do not clamp it. An accepted finding is removed, not returned as a warning; a provider or handler returning only accepted findings need not have completed the write.
40
+
41
+ `deadline: System.monotonic_time(:millisecond) + 500` places an absolute deadline in context. Application code must cooperate, e.g. check `Cratis.Arc.Context.expired?(ctx)` before expensive work. It does not interrupt a running handler or undo a write.
42
+
43
+ Across services POST the JSON object (here `{"parcelId":"P-7"}`) to the published command route, or POST the same body to `<route>/validate`. Plug's optional `x-allowed-severity` accepts integers 0–3 and caps them at 2. Handle transport/authentication failure separately. `CommandResult.status(result)` maps success/retryable/denial/findings/fault to 200/503/403/400/500. `CommandResult.to_wire(result)` emits the envelope including `isSuccess`, a non-nil successful `response` only, and `isRetryable` only when true. In-process `result.events` records successful append returns, not a client payload; it is absent from the envelope. Test accepted and refused calls; check recorded effects, not merely an HTTP status.
44
+
45
+ ## From a LiveView
46
+
47
+ A Phoenix LiveView screen calls the same pipeline in process through `use Cratis.Arc.LiveView, application: Dispatch.Arc`: command forms, one-shot and live query assigns, identity and availability, with the caller read from the socket. Read [LiveView binding](elixir-liveview.md).
48
+
49
+ ## Shared checks and result construction
50
+
51
+ Register `config :dispatch, Dispatch.Arc, filters: [Dispatch.ReleaseAccess]`. Filters run in order after the command's own authorization; the first non-`:ok` stops the command. Inspect the descriptor and context, not payload fields:
52
+
53
+ ```elixir
54
+ defmodule Dispatch.ReleaseAccess do
55
+ @behaviour Cratis.Arc.Filter
56
+ @impl true
57
+ def on_command(ctx, %{module: Dispatch.Parcels.ReleaseParcel}) do
58
+ if "dispatcher" in ctx.principal.roles, do: :ok, else: {:unauthorized, "Dispatcher required"}
59
+ end
60
+ def on_command(_ctx, _descriptor), do: :ok
61
+ end
62
+ ```
63
+
64
+ For an ordinary shared rule return `{:error, [Cratis.Arc.Validation.error("Dispatch window closed")]}` instead. Keep entitlement denials distinct from findings. Use the app's availability configuration for availability decisions. For a command-specific trusted lookup use `provide/2` returning `{:ok, %{depot: depot}}`; the handler reads `ctx.provided.depot`.
65
+
66
+ An adapter needing its own failed result can construct `%Cratis.Arc.CommandResult{correlation_id: ctx.correlation_id, validation_results: findings}` with nonempty findings. An empty struct is successful; return existing failures intact.
67
+
68
+ ## Not supported in this SDK
69
+
70
+ - No typed execute overload, classified refusal accessor, missing-handler flag or stable result error code. Match the successful response, inspect structured result fields, and diagnose deployment faults via correlation and discovery.
71
+ - No injectable scope, global context-values provider, execution runner, response-handler registry, exception-mapper registry or result merge API. Use app configuration/context, command callbacks and explicit result handling. Return known business findings; let unexpected exceptions follow the fault path.
72
+ - No automatic cancellation via the deadline. Bound external operations separately and reconcile an unknown write outcome before retrying.
73
+ - No nested transaction enlistment, occurrence-receipt command executor, command-returning reactor handoff or recovery/operation-outcome envelope. Keep an atomic decision within one supported append boundary; treat follow-up commands as separate, idempotent work. Do not infer durable completion from a reactor return or reuse correlation as a receipt.
@@ -1,5 +1,53 @@
1
- # Execute through the command pipeline
1
+ # Invoke a command in Go
2
2
 
3
- Use the built command pipeline and current context, for example `result, err := commands.Execute[string](ctx, pipeline, command)`. First handle `err` (including cancellation); then inspect `result.IsSuccess()` before taking the response. A nil Go error can accompany an unauthorized or invalid result. Inspect the envelope instead of manufacturing a successful HTTP status. `Response()` reports presence separately: an empty string or zero can be a valid response. Never turn absence into a fabricated scalar.
3
+ Use `github.com/cratis/arc.go/commands` with the owning Arc application. The host registers commands and extensions on `builder.Commands()` before `builder.Build()`, checks build errors, then calls `app.Start(ctx)` and checks admission started before accepting work. Use `app.Commands()` rather than building a second registry. Application names below are illustrative.
4
4
 
5
- Use the envelope’s `StatusCode()` rather than guessing from the response value: success wins (200), then unauthorized (403), invalid (400), otherwise exception (500).
5
+ ## Execute and inspect
6
+
7
+ ```go
8
+ // ReleaseParcel is registered with a string receipt as its client response.
9
+ func release(ctx context.Context, p commands.Pipeline, cmd ReleaseParcel) (string, bool, error) {
10
+ r, err := commands.Execute[string](ctx, p, cmd)
11
+ if err != nil { return "", false, err }
12
+ if !r.IsSuccess() {
13
+ return "", false, fmt.Errorf("release refused (correlation %v)", r.Details().CorrelationID)
14
+ }
15
+ receipt, present := r.Response()
16
+ return receipt, present, nil
17
+ }
18
+ ```
19
+
20
+ Pass the **exact registered Go type**. For an untyped response call `r, err := p.Execute(ctx, cmd)`; `commands.Execute[R]` checks response compatibility (`commands.ErrResponseType`). `Response()` distinguishes absence from a present scalar zero. Failures discard responses. For off-request work, carry trusted facts with `ctx = identity.WithPrincipal(ctx, principal)`, `tenancy.WithTenant(ctx, tenant)` and `correlation.WithID(ctx, id)` (assign each returned context). Preserve the deadline, or derive `ctx, cancel := context.WithTimeout(ctx, budget)` and `defer cancel()`. Cancellation does not imply rollback.
21
+
22
+ - **Preflight:** `r, err := p.Validate(ctx, cmd)` authorizes and checks input; it neither handles nor commits. Inspect errors and `IsSuccess()` just as for execution.
23
+ - **Caller allowance:** e.g. `s := validation.Information; r, err := p.Execute(ctx, cmd, commands.ExecuteOptions{AllowedSeverity: &s})` retains input warnings and errors. Pass at most one options value to execute or validate. Without a caller allowance or command floor only errors survive. A command's inclusive blocking floor cannot be weakened; this allowance does not filter handler-returned findings.
24
+ - **Existing scope:** `p.ExecuteScoped(ctx, scope, cmd)` or `p.ValidateScoped(ctx, scope, cmd)` borrows the caller's live `*execution.Scope`. Otherwise let the pipeline own the scope. In callbacks `inv.Scope()` gives the active scope; `inv.CommandContext()` exposes `Principal()`, `Tenant()` and `CorrelationID()`.
25
+ - **Named JSON input:** `reg, ok := p.Lookup(name)`; reject a miss. Use `cmd, err := reg.Decode(body)` then `p.Execute(ctx, cmd)` only on successful decoding. `p.LookupCommand(cmd)` resolves a bound instance. Neither lookup executes anything.
26
+
27
+ ## Refusals and transport
28
+
29
+ A nil call error does not establish success. `r.IsSuccess()` requires `IsAuthorized() && IsValid() && !HasExceptions()`. On refusal inspect `d := r.Details()`:
30
+
31
+ - For denial use `d.AuthorizationFailureReason`; for invalid input inspect each `d.ValidationResults` finding's `Reason`, `Members`, `Severity`, safe `Message` and optional `State`. E.g. reload for `validation.ConcurrencyViolation`; choose different input for `validation.ConstraintViolation` rather than retrying unchanged.
32
+ - For a fault retain `d.CorrelationID`; keep `ExceptionMessages` and development-only `ExceptionStackTrace` out of indiscriminate logging. Check `errors.Is(err, commands.ErrMissingHandler)` on the call-error path for absent registration.
33
+ - For persistence inspect `r.Completion().Disposition`: `commands.NoPersistedWork`, `NotCommitted`, `Committed`, `OutcomeUnknown` or `MixedCommit` (all in `commands`). Reconcile uncertainty; even a failed command may have committed. `r.OperationOutcomes()` provides server-side operation evidence, not a client response.
34
+
35
+ Across services POST JSON to the published command path, or its `/validate` suffix for preflight, using the operation's authenticated context. For example `http.NewRequestWithContext(ctx, http.MethodPost, executeURL, bytes.NewReader(body))`; set `Content-Type: application/json`, send, close the response body and check status **and** decode the envelope into a client DTO (not `commands.Result`). `r.StatusCode()` prioritizes success 200, denied 403, invalid 400, otherwise 500. Admission/body/transport failures can precede that mapping. When publishing a result, `json.Marshal(r)` uses `MarshalJSON`; `r.MarshalJSONWith(encode)` takes a custom response encoder.
36
+
37
+ ## Extend the host only when needed
38
+
39
+ Use `reg := builder.Commands()` and check **each registration error**. The factory arguments below stand for scoped factories; declare required DI keys after the factory. Do not instantiate extensions at dispatch sites.
40
+
41
+ - `reg.AddContextValuesProvider("dispatch", factsFactory)` adds ordered trusted preauthorization facts. In `Provide(ctx, inv)` return `commands.NewContextValues(map[string]any{"depot": depot})`; later providers overwrite duplicate names. Read with `inv.CommandContext().Values().Get("depot")`.
42
+ - `reg.AddAuthorizationFilter("depot-access", authFactory)` runs before ordinary filters, not instead of declared checks. Use `commands.AsAuthorizationFilter(filter)` in the factory. `reg.AddFilter("capacity", capacityFactory)` adds an ordinary verdict. `OnExecution(ctx, inv)` returns a control and error: e.g. `commands.Success(id), nil` to proceed, `commands.WithValidationResults(id, finding), nil` for a rule, or `commands.Unauthorized(id, safeReason), nil` for denial. A zero control denies.
43
+ - `reg.AddExecutionScope("audit", auditFactory)` wraps root execution: `Begin` before authorization in registration order, `Complete` in reverse for entered participants including a failing Begin. Cleanup is bounded, not proof of rollback. For operation commands use `reg.AddOperationExecutionScope("operations", operationScopeFactory)`; see `cratis-arc-declare-operation` for completion and recovery.
44
+ - `commands.RegisterResponseValueHandler[DispatchNotice](reg, "notify", noticeFactory)` selects a server-consumed type; `reg.AddResponseValueHandler("notify", noticeFactory)` uses dynamic matching instead. Every matching `CanHandle` consumer runs in registration order; `Handle(ctx, inv, value)` returns a control and error. Implement `commands.ResponseValueContextUpdater` to call e.g. `inv.SetValue("depot", depot)` in `UpdateContext` before response selection, not to change identity. Return only the intended payload to clients.
45
+ - For a custom boundary use `commands.WithResponse(id, receipt)` or `commands.Success(id)`; `commands.InvalidBody(id)` denotes malformed input and `commands.FromError[commands.NoResponse](id, err)` maps an error. For explicit presence use `commands.NewResult(details, serialization.Some(receipt))`. `commands.Merge(outer, fragment)` retains outer correlation, ANDs authorization, appends findings/exceptions, keeps the first denial reason and removes a failed response.
46
+ - **Nested dispatch:** in a supported command callback use `child, err := inv.Pipeline().Execute(ctx, next)` synchronously; propagate the error or failed verdict. The bound pipeline joins the current execution; do not cache it or substitute `app.Commands()` to escape the parent's completion boundary. Operation-bearing commands have nesting restrictions; do not use this as an independent transaction.
47
+ - **Reactor delivery:** import `github.com/cratis/arc.go/integrations/chronicle` as `integration` (Chronicle's own package is also named `chronicle`) and its `sdk` subpackage. Construct `runner, err := integration.NewReactorCommands(integration.ReactorCommandOptions{Store: store, Principal: &servicePrincipal, Replay: integration.LiveOnly, Tenant: tenantForNamespace})`. By default reactor methods **return** the command (or a slice of commands): create `h, err := sdk.CommandEffects(runner, reflect.TypeFor[ReleaseParcel]())` and register it with Chronicle's `chronicle.RegisterReactorSideEffectHandler(registry, h)` before constructing the Chronicle client; check each error, and call `runner.Bind(app)` before observers start. The SDK preflights and executes returned commands in order before acknowledgement; a Go error or an unsuccessful result fails the delivery, and execution stops at the first failure while earlier commits remain and may repeat on redelivery. Off-path, execute imperatively in the handler body with `runner.Execute(ctx, sdk.DeliveryFrom(eventContext, delivery), cmd)`, never in a middleware `After` hook. Each command starts a new root; live-only excludes replay, not redelivery. Opt into `integration.IncludeReplay` only with an explicit replay-safe design.
48
+
49
+ ## Not supported in this SDK
50
+
51
+ - No named execute overload: look up and decode before executing. No typed business refusal accessor, stable per-fault result code, retryable/503 or missing-handler envelope flag: use structured findings, authorization, correlation and the actual Go error. Do not classify by message text or infer retryability.
52
+ - No pluggable general exception mapper or distinct availability-filter contract: return a deliberate control for known refusals in the owning integration, use an ordinary filter for shared validation, and leave unknown faults as errors.
53
+ - No occurrence receipt-aware command executor: do not replace receipt-backed work with a bare pipeline invocation. Use an owning service with the receipt contract if required.
@@ -1,5 +1,76 @@
1
- # Execute through the command pipeline
1
+ # Invoke an Arc command from Java
2
2
 
3
- Obtain `AsyncCommandPipeline` from the host. Construct `CommandExecutionOptions` with the operation's correlation UUID, verified principal and service resolver. Compose the stage returned by `pipeline.execute(command, options)`; do not return success before completion. Branch on `result.isSuccess()` and inspect `result.getValidationResults()` on refusal. Keep an exceptionally completed stage distinct from a completed rejected result. Test a denied command and assert the handler made no write.
3
+ Use the configured JVM host's `io.cratis.arc.commands.CommandPipeline` with its registered command metadata, handler and integrations. Prefer its asynchronous Java facade. The command and application callbacks below have illustrative names.
4
4
 
5
- For Chronicle uniqueness rejection inspect the validation finding, not an exception. In Java scenarios `ChronicleCommandScenarios.shouldHaveConstraintViolation(result, "unique-name").getReasonDetail()` identifies the failed constraint. On a concurrency finding reload the decision state before retrying.
5
+ ## Dispatch and preflight
6
+
7
+ At host startup, create `var owner = JavaAsyncScope.usingExecutor(executor)` (`io.cratis.arc.java`), then `var commands = owner.commands(pipeline)`. Keep the owner alive through completion. Close it at shutdown to cancel its children; it leaves the supplied executor running. Use `owningExecutorService(pool)` only to transfer shutdown responsibility. If the host already provides an `AsyncCommandPipeline`, use it directly.
8
+
9
+ ```java
10
+ var options = new CommandExecutionOptions(correlationId, verifiedPrincipal, scopedResolver);
11
+ var command = new ReserveDock(dockId);
12
+ return commands.execute(command, options).thenApply(result -> {
13
+ if (!result.isAuthorized()) return denied(result.getAuthorizationFailureReason());
14
+ if (result.getHasExceptions()) return fault(result.getCorrelationId());
15
+ if (!result.isSuccess()) return rejected(result.getValidationResults());
16
+ return accepted(result.getResponse());
17
+ });
18
+ ```
19
+
20
+ Propagate exceptional completion separately. `commands.validate(command, options)` returns the same stage/result shape without running the handler. Use it for feedback, not as a prerequisite or guarantee. Cancel the original stage's `toCompletableFuture()` to signal its coroutine; cancellation is not rollback confirmation.
21
+
22
+ On a blocking worker only, `new BlockingCommandPipeline(pipeline).execute(command, options)` returns the result directly; `validate` has the same arguments. Alternatively bind options with `new BlockingCommandPipeline(pipeline, options)` to use `execute(command)` or `validate(command)`; explicit per-call options override bound ones. Do not nest a blocking facade or call it in Arc bounded coroutine work. Interruption cancels work and restores the interrupt flag.
23
+
24
+ For tenant-aware work use `new CommandExecutionOptions(correlationId, verifiedPrincipal, scopedResolver, tenantId, tenantNamespace)` with host-authorized values. The resolver is scoped by the caller, not created or disposed by these options. Tenant fields default to null. Append `ValidationResultSeverity.Information` to reject warnings as well as errors at severity-filtered stages. With no threshold only errors remain there; with an explicit threshold only findings strictly above it remain. The final optional boolean `exposeExceptionDetails` defaults to false; core still retains diagnostics, so redact at the host boundary.
25
+
26
+ Inside a live parent execution, compose `commands.execute(child, CommandExecutionOptions.nested(parentContext))` and propagate the child's failure. This preserves parent host metadata and joins its execution rather than starting an independent Chronicle write. Do not report persistence until parent completion.
27
+
28
+ ## Interpret the result
29
+
30
+ `io.cratis.arc.results.CommandResult<?>` has no typed execute overload. On success use e.g. `result.getResponse() instanceof DockReceipt receipt` to narrow the declared payload. Null is normal for a command without a response and mandatory on failure. `isValid()` means only that the findings are empty; `isSuccess()` additionally requires authorization and no exception messages. Keep `getExceptionMessages()` and `getExceptionStackTrace()` in protected diagnostics.
31
+
32
+ For each `finding` in `result.getValidationResults()`, use `getReason()`, `getReasonDetail()` and `getMembers()` for classification and field routing; `getSeverity()`, `getMessage()` and optional `getState()` carry feedback. For Chronicle, a constraint conflict calls for resolving the conflicting input; reload decision state on a concurrency finding. In scenarios, `ChronicleCommandScenarios.shouldHaveConstraintViolation(scenarioResult, "unique-dock")` takes the testing scenario result (not a pipeline `CommandResult`) and returns the expected constraint finding. Test a refusal as well as success; assert no write and no completion notification on refusal.
33
+
34
+ Across services POST the declared JSON to the published command route, or POST it to that route's `/validate` child for preflight. Inspect both status and envelope (normally 200 success, 400 invalid, 403 denied, 500 fault); a transport or admission failure may not carry a command result.
35
+
36
+ ## Extend the host pipeline only when needed
37
+
38
+ Register the core interface as a host bean. Java callback interfaces and their adapters live in `io.cratis.arc.java`. Use `Blocking…Adapter` with a synchronous callback, or the matching `Async…Adapter` for a callback returning a `CompletionStage` (not a blocked future).
39
+
40
+ ```java
41
+ @Bean
42
+ CommandContextValuesProvider regionFacts() {
43
+ return command -> Map.of("region", trustedDeploymentRegion());
44
+ }
45
+
46
+ @Bean
47
+ AuthorizationCommandFilter accessFilter() {
48
+ return new BlockingAuthorizationCommandFilterAdapter(ctx ->
49
+ permitted(ctx.getPrincipal()) ? CommandResult.success(ctx.getCorrelationId())
50
+ : CommandResult.unauthorized(ctx.getCorrelationId(), "Access denied"));
51
+ }
52
+
53
+ @Bean
54
+ CommandFilter availabilityFilter() {
55
+ return new AsyncCommandFilterAdapter(ctx -> capacity.check(ctx).thenApply(open ->
56
+ open ? CommandResult.success(ctx.getCorrelationId()) : CommandResult.invalid(
57
+ ctx.getCorrelationId(), List.of(ValidationResult.error("Dock is closed")))));
58
+ }
59
+ ```
60
+
61
+ - Use `CommandContextValuesProvider.provide(command)` for trusted facts available through `ctx.getValues()`. Keep authorization in the authorization filter, before ordinary filters.
62
+ - For a unit of work register `new BlockingCommandExecutionScopeAdapter(scope)` as `CommandExecutionScope`. Implement `begin(ctx)` to open work; in `complete(ctx, result)` commit only on success, otherwise roll back. Return null for no additional result. `AsyncCommandExecutionScope` still begins synchronously; its `complete` returns a stage of the nullable result.
63
+ - To consume a server-side effect register `new BlockingCommandResponseValueHandlerAdapter(handler)` as `CommandResponseValueHandler`. Implement `canHandle(ctx, value)` (e.g. `value instanceof DispatchNotice`) and `handle(ctx, value)` to process it and return `CommandResult.success(ctx.getCorrelationId())` or a failure. `AsyncCommandResponseValueHandler` keeps the synchronous predicate and returns a stage from `handle`.
64
+ - Return a result fragment using the invocation ID: `CommandResult.success(id)` or `success(id, payload)`, `unauthorized(id[, reason])`, `invalid(id, findings)`, `malformed(id)` for unreadable input, `missingHandler(id, commandName)` for broken registration, or `error(id, safeMessage)`. The no-argument success factory creates a new ID. Pipeline merging combines failures rather than replacing them; there is no public merge method.
65
+ - `CommandResult.fromException(id, ex)` recognizes an application exception implementing `io.cratis.arc.validation.ValidationFailure` with `getValidationResults()` returning a nonempty list of valid findings; cancellation propagates. Otherwise it retains exception details. Use `CommandResult.exception(id, ex)` only when intentionally retaining an ordinary fault rather than converting validation feedback.
66
+
67
+ ## Reactor follow-up
68
+
69
+ In a Chronicle reactor, hand follow-up commands to the injected `ChronicleCommandSideEffectHandler` (`io.cratis.arc.chronicle`; a bean under Spring Boot auto-configuration) instead of calling the pipeline with a made-up identity: `sideEffects.executeAsync(new ReserveDock(dockId), DockReactor.class, eventContext)` returns a `CompletionStage<CommandResult<?>>`. `canHandle(value)` tells whether a value qualifies. The value must be one registered command or a non-empty aggregate (collection, array or multi-value response) whose leaves are all registered commands; anything else returns an error result. Commands run sequentially and the first failed result is returned, ending the run. Each is an independent top-level execution, so earlier commands stay durable when a later one fails. Correlation comes from the event context, and its namespace is used as the tenant. The principal is the event's causing identity with no roles, unless the reactor class carries `@ExecuteCommandsAsSystem(roles = {"dispatcher"})`, which runs them as the system identity with exactly those roles (blank roles are rejected). Inspect the completed result and fail the reaction on refusal rather than acknowledging the event; replay and redelivery rules are in `cratis-chronicle-react-to-fact`.
70
+
71
+ ## Not supported in this SDK
72
+
73
+ - No in-process bind-by-name/body entry point: pass a registered instance or use the HTTP route.
74
+ - No typed refusal extractor, retryable or missing-handler flag, or stable error code on the result: use structured validation reasons where provided; correlate unknown failures with host diagnostics rather than matching messages or retrying automatically.
75
+ - No general exception-mapper registration: use `ValidationFailure` for known validation exceptions; leave unexpected faults intact.
76
+ - No operation/recovery observations on the command result: use server-side persistence evidence. No receipt-aware occurrence command executor: a reactor follow-up is the only tracked delivery route; do not present an ordinary pipeline call as once-per-occurrence.
@@ -1,26 +1,66 @@
1
- # Execute through the command pipeline
1
+ # Invoke a command from Kotlin
2
2
 
3
- Inject the host's `CommandPipeline`. In a suspending operation, pass the command and the `CommandExecutionOptions` supplied by the trusted host: the operation's correlation ID, authenticated `ArcPrincipal`, scoped `ServiceResolver` and applicable tenant ID and namespace. Never build those values from command input or call `handle` directly.
3
+ Use the owning host's `io.cratis.arc.commands.CommandPipeline` in a suspending service. The command's generated handler must be in the host's `CommandHandlerRegistry`. Spring Boot auto-configuration supplies a pipeline bean with the registered filters, scopes, context providers and response handlers. Inject that bean; constructing a bare pipeline for a job would bypass those integrations. Names below are illustrative.
4
+
5
+ ## Execute or preflight
4
6
 
5
7
  ```kotlin
6
- import io.cratis.arc.commands.CommandExecutionOptions
7
- import io.cratis.arc.commands.CommandPipeline
8
- import io.cratis.arc.results.CommandResult
9
-
10
- suspend fun dispatch(
11
- pipeline: CommandPipeline,
12
- command: Any,
13
- options: CommandExecutionOptions,
14
- onAccepted: (Any?) -> Unit
15
- ): CommandResult<*> {
16
- val result = pipeline.execute(command, options)
17
- if (result.isSuccess) onAccepted(result.response)
18
- return result
8
+ // Inside a suspending operation; all context arguments come from the trusted host.
9
+ val options = CommandExecutionOptions(
10
+ correlationId, principal, scopedResolver,
11
+ tenantId = authorizedTenant, tenantNamespace = namespace
12
+ )
13
+ val result = pipeline.execute(ReleaseParcel(parcelId), options)
14
+ when {
15
+ result.isSuccess -> markReleased(parcelId, result.response)
16
+ !result.isAuthorized -> recordDenial(result.correlationId, result.authorizationFailureReason)
17
+ !result.isValid -> showFindings(result.validationResults)
18
+ else -> recordFault(result.correlationId)
19
19
  }
20
20
  ```
21
21
 
22
- A successful command may have no response. Preserve the result so the caller can distinguish refusal from success without a response. Chronicle constraint and concurrency refusals are validation findings (`constraintViolation` and `concurrencyViolation`), not exceptions: an unchanged request will not fix a uniqueness conflict. For stale state reload and re-decide rather than retrying blindly.
22
+ `CommandExecutionOptions` takes a UUID, `ArcPrincipal` and execution-scoped `ServiceResolver`. Reuse the caller's resolver only within its lifetime. Tenant fields default to null; keep identity and tenancy out of caller-editable input. `exposeExceptionDetails` defaults to false; core still retains `exceptionMessages` and `exceptionStackTrace` for protected diagnostics. `hasExceptions` tests for messages. `isSuccess` requires authorization, validity (no remaining findings) and no messages. The nullable `response` on `CommandResult<*>` is absent on failure and optional on success. If a response is declared, check its expected runtime type rather than treating null or zero as rejection.
23
+
24
+ - **Preflight:** `pipeline.validate(command, options)` resolves the handler and runs filters, not execution scopes, the handler or response consumers. Execute separately when ready; state and permissions can change.
25
+ - **Severity:** absent `allowedValidationSeverity`, only `Error` findings remain blocking. For a workflow that must also block warnings, set `allowedValidationSeverity = ValidationResultSeverity.Information` when constructing options. Only severities above an explicit threshold remain (`Unknown`, `Information`, `Warning`, `Error` in increasing order). Do not forward an unchecked caller threshold.
26
+ - **Findings:** inspect each finding's `members`, `reason`, `reasonDetail`, `severity`, `message` and optional `state`. Chronicle `constraintViolation` calls for a different decision; for `concurrencyViolation` reload before deciding again.
27
+ - **Cancellation:** call from the owning coroutine; e.g. `withTimeout(2_000) { pipeline.execute(command, options) }`. Let cancellation propagate rather than converting it to a refusal. A timeout does not prove an external effect was undone.
28
+ - **HTTP:** POST the declared JSON to the published command route, or POST the same body to its `/validate` suffix for preflight. Spring accepts `X-Allowed-Severity` subject to host policy. Inspect both the HTTP exchange and result. `ArcHttpStatusMapper.map(result)` selects 200 for success, then 403 for denial, 400 for findings, otherwise 500. Authentication can fail before this mapping.
29
+
30
+ ## Result helpers
31
+
32
+ Extensions in `io.cratis.arc.results` shorten the branching above. They exist for both `CommandResult` and `QueryResult` and are Kotlin-only.
33
+
34
+ | Helper | Behaviour |
35
+ | --- | --- |
36
+ | `result.fold(onSuccess = { response -> … }, onFailure = { failed -> … })` | Picks one branch by `isSuccess` and returns its value; the failure branch gets the whole result. |
37
+ | `result.onSuccess { response -> … }` | Runs the block only on success and returns the same result for chaining. |
38
+ | `result.getOrThrow()` | Returns the nullable response (or query data); throws `IllegalStateException` carrying the denial reason, validation messages or exception messages when the result did not succeed. Use it only where a failure is a programming error, such as a seeding job. |
39
+ | `result.validationOrNull()` | The findings, or null when there are none. |
40
+
41
+ ## Compose the host pipeline
42
+
43
+ For a custom host use `DefaultCommandPipeline(handlers, commandFilters = filters, executionScopes = scopes, responseValueHandlers = consumers, contextValuesProviders = providers)`. All four extension collections default to empty; built-in response handlers remain installed. In Spring expose the extensions as ordered beans instead.
44
+
45
+ - **Trusted facts:** `CommandContextValuesProvider { mapOf("depot" to assignedDepot) }` contributes to `context.values` before scopes and filters. Source facts from trusted host state.
46
+ - **Authorization:** implement `AuthorizationCommandFilter.execute(context)` returning `CommandResult.unauthorized(context.correlationId, safeReason)` or `CommandResult.success(context.correlationId)`. Authorization filters run first. The filter loop stops on its first unsuccessful merged result, before applying severity filtering.
47
+ - **Ordinary rule:** `CommandFilter { ctx -> if (receivingOpen()) CommandResult.success(ctx.correlationId) else CommandResult.invalid(ctx.correlationId, listOf(ValidationResult.error("Receiving closed"))) }`. This is invalidity, not denial or a retry signal.
48
+ - **Execution boundary:** implement `CommandExecutionScope.begin(context)` to open per-execution resources before filters. In `complete(context, result)` commit only on success, otherwise roll back; return null to leave the result unchanged or a result fragment to amend it. Begun scopes complete in reverse order. `executionScopeCompletionTimeout` on `DefaultCommandPipeline` is a positive cooperative timeout per best-effort completion (default five seconds), not a command deadline.
49
+ - **Returned effects:** implement `CommandResponseValueHandler.canHandle(context, value)` narrowly (e.g. `value is DepotAudit`) and `handle(context, value)` to process the effect and return `CommandResult.success(context.correlationId)` or a failure. Leave only the declared client payload unconsumed.
50
+ - **Result fragments:** use `CommandResult.success(id)` or `success(id, payload)`, `unauthorized(id, reason)`, `invalid(id, findings)`, `malformed(id)` for bad input, `missingHandler(id, name)` for absent registration, or `error(id, safeMessage)`. `exception(id, throwable)` captures diagnostics; `fromException(id, throwable)` converts a well-formed, nonempty `ValidationFailure` into findings, otherwise retains exception details, and propagates cancellation. Preserve the active ID. Merge is internal: the pipeline combines authorization by AND, concatenates findings and errors, and suppresses failed responses.
51
+
52
+ ## Nested Chronicle work
53
+
54
+ In a live parent execution use `val child = pipeline.execute(childCommand, CommandExecutionOptions.nested(parentContext))`. This preserves the parent's trusted options and joins its root; the pipeline also recognizes an inherited execution in coroutine context. Await the child and propagate refusal. With Chronicle enlisted, child success stages work; it does not certify a durable append. Test that both histories advance on outer success and neither advances on child or outer refusal. A failed joined execution marks the root rollback-only; never launch a detached child with a saved context.
55
+
56
+ ## Reactor follow-up
57
+
58
+ In a Chronicle reactor, hand follow-up commands to the injected `ChronicleCommandSideEffectHandler` (`io.cratis.arc.chronicle`; a bean under Spring Boot auto-configuration) instead of calling the pipeline with a made-up identity: `val result = sideEffects.execute(ReleaseParcel(parcelId), this::class.java, eventContext)`. `canHandle(value)` tells whether a value qualifies. The value must be one registered command or a non-empty aggregate (collection, array, tuple or multi-value response) whose leaves are all registered commands; anything else returns an error result. Commands run sequentially and the first failed result is returned, ending the run. Each is an independent top-level execution, so earlier commands stay durable when a later one fails. Correlation comes from the event context, and its namespace is used as the tenant. The principal is the event's causing identity with no roles, unless the reactor class carries `@ExecuteCommandsAsSystem("dispatcher")`, which runs them as the system identity with exactly those roles (blank roles are rejected). Inspect the returned result and fail the reaction on refusal rather than acknowledging the event; replay and redelivery rules are in `cratis-chronicle-react-to-fact`.
23
59
 
24
- ## Prove the outer commit boundary
60
+ ## Not supported in this SDK
25
61
 
26
- Execute an outer command through the Chronicle-enabled pipeline. Have it await a child that stages an event under another ID, then return an outer event. Assert both histories advanced. Repeat with either the child or the outer command refusing, and assert neither history advanced, even if the outer handler ignored the child's unsuccessful result. Include an invalid mixed plain/routed batch and verify no event from that batch was persisted.
62
+ - No in-process name/JSON dispatch or generic payload-selecting execute overload: bind through the HTTP host or pass a registered instance, then inspect the successful response.
63
+ - No typed business-refusal accessor, stable result error code, retryable or missing-handler flag: use structured findings where available, use correlation for diagnostics, verify registrations at deployment and never classify by matching exception text.
64
+ - No public result merge or pluggable pipeline exception mapper: return fragments or translate known failures at the integration boundary; leave unexpected faults visible to host diagnostics.
65
+ - No recovery or operation-outcome collection on the result: verify effects through the owning store after root completion.
66
+ - No receipt-aware occurrence command executor: a reactor follow-up is the only tracked delivery route; do not present an ordinary pipeline call as once-per-occurrence.
@@ -1,3 +1,3 @@
1
- # Python caller
1
+ # Invoke across the service boundary
2
2
 
3
- Call the owning command route and inspect the result envelope before consuming a response.
3
+ Python has no Arc application SDK. POST the command's JSON input to the execution route published by the owning service with the identity that service expects. Do not construct a route from a type name. Check the HTTP outcome and the result envelope's `isSuccess` before reading an optional `response`; retain `correlationId` for support. A timeout is not evidence that the command failed before committing.
@@ -1,6 +1,39 @@
1
1
  # Execute through the command pipeline
2
2
 
3
- Use `server.execute(instance, context)` for a registered class instance; use `server.executeCommand(name, input, context)` for a named command and unbound input. Carry the verified principal and tenant. A resolved promise is not proof of success. Inspect authorization, validation results and exceptions before consuming the response. Distinguish no transport response from a completed refusal; do not retry an ambiguous write blindly.
3
+ Names are illustrative. Use the owning Node ESM application's `app.server` from `@cratis/arc.core`. Register the decorated command and its dependencies before building the host, e.g. `builder.add(ReserveSlot); const app = await builder.build();`. Reuse that server; the host owns `app.dispose()`.
4
+
5
+ ```ts
6
+ import { Severity, type ExecutionContext } from '@cratis/arc.core';
7
+
8
+ // The job has already authenticated its principal and checked tenant membership.
9
+ const context: ExecutionContext = {
10
+ correlationId: job.correlationId, principal: job.principal, tenantId: job.tenantId,
11
+ signal: job.signal, allowedSeverity: Severity.Warning
12
+ };
13
+ const reservation = new ReserveSlot(job.slotId);
14
+ const result = await app.server.execute(reservation, context);
15
+ if (!result.isSuccess) {
16
+ recordRefusalOrFault(result); // classify as below; don't mark the item done
17
+ } else {
18
+ recordCompletion(result.correlationId);
19
+ if (typeof result.response === 'number') recordReceipt(result.response); // zero is valid
20
+ }
21
+ ```
22
+
23
+ Direct calls trust the supplied identity, tenant and severity, not HTTP authentication or tenant admission. `principal` and `tenantId` may be `undefined` when legitimately absent. `connectionId` and `remoteAddress` are optional trusted transport metadata. Forward an existing signal or use `AbortSignal.timeout(5_000)` for a job deadline. Treat a rejected promise separately from a returned failure; neither cancellation nor an absent acknowledgment proves nothing was written.
24
+
25
+ - **Binding:** `execute` encodes the instance and runs ordinary binding. For wire-shaped input use `await app.server.executeCommand('Scheduling.ReserveSlot', { slotId }, context)` instead. Use the registered namespace-qualified name (bare name when no namespace); unknown names and unresolved or ambiguous instance lookup can reject before a result exists.
26
+ - **Preflight:** `await app.server.validate(reservation, context)` or `await app.server.validateCommand(name, input, context)` returns a command result after authorization, binding, filters and validation, without `provide`, `handle` or execution scopes. Execute only on a separate decision, not as a guaranteed second phase.
27
+ - **Severity:** results at or below `allowedSeverity` are removed where severity filtering applies. `Severity.Warning` normally allows warnings; `Severity.Information` blocks them. Direct calls can even allow `Severity.Error`; never derive that setting from untrusted input. HTTP `X-Allowed-Severity` accepts `0`–`2`, defaults to Warning and caps `3` at Warning.
28
+ - **Across services:** POST JSON to the published route (`fetch(url, { method: 'POST', headers, body: JSON.stringify(input), signal })`, with authenticated headers including JSON content type); POST the same body to `url + '/validate'` only for preflight. In-process HTTP adapters can use `await app.server.handle(request)`. Check status and the envelope, handling network, authentication and non-envelope responses separately.
29
+
30
+ ## Interpret a result
31
+
32
+ `CommandResult<T>` describes an optional `response`, but direct methods return `CommandResult` (unknown payload). Narrow it against the declared contract; a successful void command needs no payload. `isValid` means no remaining findings, not permission or success. HTTP normally returns 200 on success, 403 on denial, 400 on validation and 500 on faults.
33
+
34
+ - If `!result.isAuthorized`, use `authorizationFailureReason` only if safe for this audience. Do not retry unchanged credentials.
35
+ - Inspect `validationResults`: `members`, `reason`, `severity`, `message`, optional `reasonDetail` and `state`. For Chronicle `constraintViolation`, resolve the conflict (`reasonDetail` identifies the constraint); for `concurrencyViolation`, reload before reconsidering (`state` carries expected/actual sequence numbers and event source ID).
36
+ - If `result.hasExceptions`, retain `correlationId` with `exceptionMessages` and `exceptionStackTrace` in protected diagnostics, not client prose. Optional backend `recovery?.commitDisposition`, `recovery?.status` and recovery counts, plus `operationOutcomes` (per-operation execution/compensation), inform reconciliation; they are not wire payloads or success predicates.
4
37
 
5
38
  | Stage | If it stops |
6
39
  | --- | --- |
@@ -12,12 +45,19 @@ Use `server.execute(instance, context)` for a registered class instance; use `se
12
45
 
13
46
  ## Extend the pipeline
14
47
 
48
+ - **Trusted context facts:** register a DI provider token with `builder.addCommandContextValuesProvider(token)` (option: `commandContextValuesProviders`). Its `provide(command)` can return a record or map, synchronously or asynchronously, e.g. `{ dispatchRegion: trustedRegion }`. Read `context.values.get('dispatchRegion')`; later providers replace keys case-insensitively.
49
+ - **Build filter results:** `return unauthorizedCommandResult(context, 'Access denied')` for denial; `return commandFilterResult(context, { validationResults: [ValidationResult.error('Slot unavailable', { members: ['slotId'] })] })` for a finding. These public helpers preserve correlation and compute verdicts. Return nothing to continue; the pipeline merges fragments, applies severity and stops on failure. Don't set `isSuccess` by hand.
50
+ - **Execution scope:** `builder.addCommandExecutionScope(() => new ReservationScope())` (option `commandExecutionScopes`): implement `begin(context)` and `complete(context, result)`; complete according to the verdict. A scope participating in command operations must also report `isCommitParticipant` and authoritative `getCommitDisposition(context)` even after failure.
15
51
  - **Access versus ordinary filters.** Implement `AuthorizationCommandFilter` for access or `CommandPipelineFilter` for ordinary refusals; both implement `onExecution(context)` and may return a result fragment or nothing. Register classes with `@authorizationCommandFilter()` or `@commandPipelineFilter()` and `builder.add()`/`discover()`. For an explicit scoped or transient service token, call `addAuthorizationCommandFilter(token)` or `addCommandPipelineFilter(token)`. Authorization runs before ordinary filters and validation on both execute and `/validate`. Within each group, options (`authorizationCommandFilters` / `commandPipelineFilters`) run before explicit registrations, then discovered or added classes. A low-level definition's `filters` is a per-command validation hook, not a global filter.
16
- - **Wrap validated execution.** Use `builder.addCommandExecutionRunner((context, execute) => ...)` to set up a boundary around preparation, execution and response processing. Call and await `execute()` inside that boundary. The `commandExecutionRunner` option is outermost, then builder runners wrap in registration order. Validation alone never starts runners.
52
+ - **Wrap command execution.** Use `builder.addCommandExecutionRunner((context, execute) => ...)` (option `commandExecutionRunner`) for ambient per-command state such as `AsyncLocalStorage`: run and return `execute()` inside your boundary, e.g. `(context, execute) => storage.run(value, execute)`. Authorization, input parsing, command context creation (`commandFactory` and context values providers) and global pipeline filters run before runners, so ambient state a runner sets is not visible to them; validators, a `defineCommand`'s own `filters`, `provide()`, `handle()`, execution scopes and response processing run inside them. On the validate-only route runners still wrap the validators, while `provide()`, `handle()` and execution scopes never start. The `commandExecutionRunner` option is outermost, then builder runners wrap in registration order. A runner is not a commit participant for operations.
17
53
  - **Consume a returned effect.** Implement `CommandResponseValueHandler` with `canHandle(context, value)` and `handle(context, value)`. Register with `@commandResponseValueHandler()` and `builder.add()`/`discover()`, or call `addCommandResponseValueHandler(token)` for a registered service (`commandResponseValueHandlers` on `ArcServer`). Arc flattens branded tuples and `response(...)` branches, not arrays; every accepting handler runs in deterministic name order. Keep at most one unhandled value for the client response. A handler can refuse, not supply a client response.
18
54
 
19
55
  Spec the refusal through the command pipeline: for a verified caller denied by the authorization filter, assert the denied result and no handler effect. For an allowed caller with invalid input, assert the ordinary filter's refusal and again no handler effect. Include an accepted input to prove execution is actually wired.
20
56
 
57
+ ## Nested Chronicle commands
58
+
59
+ With Chronicle configured, `await app.server.execute(child, context)` inside an executing command joins staged returned and aggregate-applied events for the same tenant, correlation and event store. Inspect the child's verdict and propagate refusal. Only the successful outer command sends the batch; even an ignored child failure discards staged events. Immediate SDK appends, low-level Chronicle commands and external writes are outside that batch. Do not dispatch from a command operation or return operations from a parent that attempted nested dispatch.
60
+
21
61
  ## Reactors that return commands (Chronicle)
22
62
 
23
63
  Return an Arc `@command()` instance or a non-empty array of commands only. Arc executes each through its full command pipeline. See `cratis-chronicle-react-to-fact` (in `cratis/chronicle`) for handler matching and replay declarations; handlers receive parsed JSON content, not event-class instances. `ARCCHR0006` flags typed command-returning handlers with neither `@onceOnly()` nor an explicit replay handler. Ensure returned commands tolerate a failed partition re-delivering a batch whose earlier commands already succeeded. Spec replay and re-delivery separately: replay must not run a live command, and re-delivery must not repeat the committed effect.
@@ -25,3 +65,10 @@ Return an Arc `@command()` instance or a non-empty array of commands only. Arc e
25
65
  When a reactor genuinely needs scoped application services, opt in with `activateArtifactsInScopes: true` in the Arc-owned client’s `withChronicle` options. Arc DI resolves reactors and reducers in one scope per delivered batch, with the Chronicle namespace as tenant and no principal. Explicit registrations win.
26
66
 
27
67
  For a caller-owned client, pass `chronicleArtifactActivator(() => app.server, eventStore)` as `artifactActivator` and `reactorCommandResultHandler(() => app.server, eventStore)` as `reactorResultHandler` when constructing the client, then set `activateArtifactsInScopes: true` with the client in `withChronicle`. Build Arc before observation starts and dispose Arc before the client.
68
+
69
+ ## Not supported in this SDK
70
+
71
+ - No direct scope argument or typed dispatch overload: let Arc own the invocation scope and narrow `response` after success.
72
+ - No typed business-refusal accessor, retryable or missing-handler flag, or stable result error code. Use structured findings and authorization, diagnose registration/lookup separately and reconcile ambiguous effects rather than retrying by message.
73
+ - No public exception-mapper registration or standalone result merger: express known refusals through filters or domain validation; let unknown exceptions take the fault path.
74
+ - No leased-occurrence receipt-aware Arc executor: use the owning service's supported receipt-aware workflow when that guarantee is required; ordinary dispatch isn't equivalent.