@cratis/pi 8.2.1 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1140) hide show
  1. package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +7 -9
  2. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +25 -55
  3. package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +10 -7
  4. package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +8 -1
  5. package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -2
  6. package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +5 -5
  7. package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -3
  8. package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -4
  9. package/package/corpus/harnesses/copilot/instructions/components.instructions.md +6 -8
  10. package/package/corpus/harnesses/copilot/instructions/concepts.instructions.md +15 -2
  11. package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -5
  12. package/package/corpus/harnesses/copilot/instructions/criticality-tiers.instructions.md +7 -35
  13. package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +13 -6
  14. package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +8 -3
  15. package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +8 -2
  16. package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +12 -6
  17. package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +12 -7
  18. package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +8 -6
  19. package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +13 -9
  20. package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +9 -5
  21. package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +12 -8
  22. package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -4
  23. package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +12 -6
  24. package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +11 -7
  25. package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +7 -7
  26. package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +5 -3
  27. package/package/corpus/harnesses/copilot/instructions/general.instructions.md +2 -2
  28. package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +11 -6
  29. package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +13 -13
  30. package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +13 -39
  31. package/package/corpus/harnesses/copilot/instructions/go.instructions.md +18 -139
  32. package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +14 -60
  33. package/package/corpus/harnesses/copilot/instructions/issue-assignment.instructions.md +6 -9
  34. package/package/corpus/harnesses/copilot/instructions/java.instructions.md +8 -6
  35. package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +12 -7
  36. package/package/corpus/harnesses/copilot/instructions/local-verification-and-delivery.instructions.md +8 -5
  37. package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +11 -64
  38. package/package/corpus/harnesses/copilot/instructions/new-repository-intake.instructions.md +7 -28
  39. package/package/corpus/harnesses/copilot/instructions/operational-safety.instructions.md +26 -41
  40. package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +22 -5
  41. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +8 -11
  42. package/package/corpus/harnesses/copilot/instructions/published-contracts.instructions.md +6 -25
  43. package/package/corpus/harnesses/copilot/instructions/react.instructions.md +9 -2
  44. package/package/corpus/harnesses/copilot/instructions/reactors.instructions.md +17 -5
  45. package/package/corpus/harnesses/copilot/instructions/review-reports.instructions.md +12 -94
  46. package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +5 -5
  47. package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +11 -8
  48. package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +9 -4
  49. package/package/corpus/harnesses/copilot/instructions/specs.instructions.md +7 -4
  50. package/package/corpus/harnesses/copilot/instructions/specs.scenarios.csharp.instructions.md +11 -2
  51. package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +8 -11
  52. package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +4 -7
  53. package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -8
  54. package/package/corpus/harnesses/copilot/instructions/verification-discipline.instructions.md +6 -9
  55. package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +29 -5
  56. package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +12 -3
  57. package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +11 -3
  58. package/package/corpus/hooks/README.md +2 -0
  59. package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +36 -24
  60. package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +66 -22
  61. package/package/corpus/hooks/scripts/cratis-guard-writes.sh +2 -1
  62. package/package/corpus/hooks/scripts/cratis-store-mutations.json +1 -1
  63. package/package/corpus/rules/ai-distribution.md +7 -9
  64. package/package/corpus/rules/authoring-skills.md +25 -55
  65. package/package/corpus/rules/browser.md +10 -7
  66. package/package/corpus/rules/code-health-policy.txt +3 -3
  67. package/package/corpus/rules/code-health.md +8 -1
  68. package/package/corpus/rules/code-quality.csharp.md +3 -2
  69. package/package/corpus/rules/code-quality.md +5 -5
  70. package/package/corpus/rules/code-quality.typescript.md +4 -3
  71. package/package/corpus/rules/codescene-reference.txt +34 -0
  72. package/package/corpus/rules/codescene.md +5 -4
  73. package/package/corpus/rules/components.md +6 -8
  74. package/package/corpus/rules/concepts.md +15 -2
  75. package/package/corpus/rules/cratis-folder-is-configuration.md +3 -5
  76. package/package/corpus/rules/criticality-tiers.md +7 -35
  77. package/package/corpus/rules/csharp.md +13 -6
  78. package/package/corpus/rules/dialogs.md +8 -3
  79. package/package/corpus/rules/discoverability.md +8 -2
  80. package/package/corpus/rules/documentation-structure-and-formatting.md +12 -6
  81. package/package/corpus/rules/documentation.md +12 -7
  82. package/package/corpus/rules/editing-cratis-docs.md +8 -6
  83. package/package/corpus/rules/efcore.md +13 -9
  84. package/package/corpus/rules/efcore.specs.md +9 -5
  85. package/package/corpus/rules/elixir.md +12 -8
  86. package/package/corpus/rules/exit-codes-and-wrappers.md +7 -4
  87. package/package/corpus/rules/framework-dotnet.md +12 -6
  88. package/package/corpus/rules/framework.md +11 -7
  89. package/package/corpus/rules/frontend-quality.md +7 -7
  90. package/package/corpus/rules/frontend-testing.md +5 -3
  91. package/package/corpus/rules/general.md +8 -10
  92. package/package/corpus/rules/github-actions.md +11 -6
  93. package/package/corpus/rules/glossary.md +13 -13
  94. package/package/corpus/rules/go-engineering.md +13 -39
  95. package/package/corpus/rules/go.md +18 -139
  96. package/package/corpus/rules/guards-and-fuses.md +14 -60
  97. package/package/corpus/rules/issue-assignment.md +6 -9
  98. package/package/corpus/rules/java.md +8 -6
  99. package/package/corpus/rules/kotlin.md +12 -7
  100. package/package/corpus/rules/local-verification-and-delivery.md +8 -5
  101. package/package/corpus/rules/local-work-artifacts.md +11 -64
  102. package/package/corpus/rules/new-repository-intake.md +7 -28
  103. package/package/corpus/rules/operational-safety.md +26 -41
  104. package/package/corpus/rules/orleans.md +22 -5
  105. package/package/corpus/rules/profiles.md +8 -11
  106. package/package/corpus/rules/published-contracts.md +6 -25
  107. package/package/corpus/rules/react.md +9 -2
  108. package/package/corpus/rules/reactors.md +17 -5
  109. package/package/corpus/rules/review-reports.md +12 -94
  110. package/package/corpus/rules/scripting.md +5 -5
  111. package/package/corpus/rules/specs.csharp.md +11 -8
  112. package/package/corpus/rules/specs.elixir.md +9 -4
  113. package/package/corpus/rules/specs.md +7 -4
  114. package/package/corpus/rules/specs.scenarios.csharp.md +11 -2
  115. package/package/corpus/rules/specs.typescript.md +8 -11
  116. package/package/corpus/rules/storybook.md +4 -7
  117. package/package/corpus/rules/typescript.md +8 -8
  118. package/package/corpus/rules/verification-discipline.md +6 -9
  119. package/package/corpus/rules/vertical-slices.md +29 -5
  120. package/package/corpus/rules/writing-correct-examples.md +12 -3
  121. package/package/corpus/rules/writing-cratis-docs.md +11 -3
  122. package/package/corpus/skills/cratis-ai-corpus-authoring/LICENSE +21 -0
  123. package/package/corpus/skills/cratis-ai-corpus-authoring/SKILL.md +140 -0
  124. package/package/corpus/skills/cratis-ai-corpus-authoring/references/checklist.md +46 -0
  125. package/package/corpus/skills/cratis-ai-corpus-authoring/references/evaluation.md +19 -0
  126. package/package/corpus/skills/cratis-ai-corpus-authoring/references/large-rewrites.md +25 -0
  127. package/package/corpus/skills/cratis-ai-corpus-authoring/references/skill-anatomy.md +75 -0
  128. package/package/corpus/skills/cratis-application-growth/SKILL.md +148 -63
  129. package/package/corpus/skills/cratis-application-growth/references/csharp.md +170 -0
  130. package/package/corpus/skills/cratis-application-growth/references/elixir.md +26 -0
  131. package/package/corpus/skills/cratis-application-growth/references/go.md +27 -0
  132. package/package/corpus/skills/cratis-application-growth/references/java.md +23 -0
  133. package/package/corpus/skills/cratis-application-growth/references/kotlin.md +31 -0
  134. package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +7 -6
  135. package/package/corpus/skills/cratis-application-growth/references/rename-window.md +14 -14
  136. package/package/corpus/skills/cratis-application-growth/references/service-and-delivery.md +21 -0
  137. package/package/corpus/skills/cratis-application-growth/references/stages.md +1 -9
  138. package/package/corpus/skills/cratis-application-growth/references/typescript.md +38 -0
  139. package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +31 -23
  140. package/package/corpus/skills/cratis-arc-authorize-request/references/authproxy.md +92 -0
  141. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp-query-security.md +61 -0
  142. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +92 -38
  143. package/package/corpus/skills/cratis-arc-authorize-request/references/elixir.md +74 -4
  144. package/package/corpus/skills/cratis-arc-authorize-request/references/go-authentication.md +93 -0
  145. package/package/corpus/skills/cratis-arc-authorize-request/references/go.md +80 -2
  146. package/package/corpus/skills/cratis-arc-authorize-request/references/java.md +79 -3
  147. package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +80 -17
  148. package/package/corpus/skills/cratis-arc-authorize-request/references/python.md +1 -1
  149. package/package/corpus/skills/cratis-arc-authorize-request/references/typescript.md +106 -6
  150. package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +85 -42
  151. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript-rule-fixes.md +89 -0
  152. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript.md +99 -0
  153. package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +54 -14
  154. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-connection-resolution.md +66 -0
  155. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-ef.md +78 -0
  156. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-neo4j.md +30 -0
  157. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +59 -66
  158. package/package/corpus/skills/cratis-arc-connect-storage/references/elixir.md +121 -3
  159. package/package/corpus/skills/cratis-arc-connect-storage/references/go.md +73 -3
  160. package/package/corpus/skills/cratis-arc-connect-storage/references/java.md +68 -3
  161. package/package/corpus/skills/cratis-arc-connect-storage/references/kotlin.md +74 -3
  162. package/package/corpus/skills/cratis-arc-connect-storage/references/python.md +2 -2
  163. package/package/corpus/skills/cratis-arc-connect-storage/references/typescript-drizzle.md +31 -0
  164. package/package/corpus/skills/cratis-arc-connect-storage/references/typescript.md +62 -4
  165. package/package/corpus/skills/cratis-arc-declare-command/SKILL.md +52 -28
  166. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-chronicle.md +190 -0
  167. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-controller.md +44 -0
  168. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-history.md +125 -0
  169. package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +281 -55
  170. package/package/corpus/skills/cratis-arc-declare-command/references/elixir.md +121 -8
  171. package/package/corpus/skills/cratis-arc-declare-command/references/go-aggregate.md +59 -0
  172. package/package/corpus/skills/cratis-arc-declare-command/references/go-chronicle.md +51 -0
  173. package/package/corpus/skills/cratis-arc-declare-command/references/go-wire.md +94 -0
  174. package/package/corpus/skills/cratis-arc-declare-command/references/go.md +160 -25
  175. package/package/corpus/skills/cratis-arc-declare-command/references/java.md +140 -13
  176. package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +189 -23
  177. package/package/corpus/skills/cratis-arc-declare-command/references/typescript-aggregates.md +73 -0
  178. package/package/corpus/skills/cratis-arc-declare-command/references/typescript.md +209 -24
  179. package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +28 -25
  180. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-abilities.md +30 -0
  181. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-recovery.md +50 -0
  182. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +27 -55
  183. package/package/corpus/skills/cratis-arc-declare-operation/references/elixir.md +17 -1
  184. package/package/corpus/skills/cratis-arc-declare-operation/references/go.md +75 -5
  185. package/package/corpus/skills/cratis-arc-declare-operation/references/java.md +13 -2
  186. package/package/corpus/skills/cratis-arc-declare-operation/references/kotlin.md +11 -2
  187. package/package/corpus/skills/cratis-arc-declare-operation/references/python.md +2 -2
  188. package/package/corpus/skills/cratis-arc-declare-operation/references/typescript.md +84 -8
  189. package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +42 -36
  190. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +44 -51
  191. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/elixir.md +50 -3
  192. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/go.md +85 -2
  193. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/java.md +70 -2
  194. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/kotlin.md +60 -2
  195. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/typescript.md +94 -5
  196. package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +59 -81
  197. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp-diagnose-tool-call.md +44 -0
  198. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp.md +309 -0
  199. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/elixir.md +5 -0
  200. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/go.md +5 -0
  201. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/java.md +5 -0
  202. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/kotlin.md +5 -0
  203. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/typescript.md +5 -0
  204. package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +65 -15
  205. package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +379 -31
  206. package/package/corpus/skills/cratis-arc-expose-query/references/elixir.md +84 -4
  207. package/package/corpus/skills/cratis-arc-expose-query/references/go-live.md +55 -0
  208. package/package/corpus/skills/cratis-arc-expose-query/references/go.md +204 -18
  209. package/package/corpus/skills/cratis-arc-expose-query/references/java.md +236 -7
  210. package/package/corpus/skills/cratis-arc-expose-query/references/kotlin.md +242 -3
  211. package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +360 -19
  212. package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +84 -10
  213. package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +70 -29
  214. package/package/corpus/skills/cratis-arc-generate-proxies/references/elixir.md +54 -5
  215. package/package/corpus/skills/cratis-arc-generate-proxies/references/go-directives.md +74 -0
  216. package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +50 -4
  217. package/package/corpus/skills/cratis-arc-generate-proxies/references/java-diagnostics.md +67 -0
  218. package/package/corpus/skills/cratis-arc-generate-proxies/references/java-wire-types.md +115 -0
  219. package/package/corpus/skills/cratis-arc-generate-proxies/references/java.md +86 -2
  220. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-diagnostics.md +67 -0
  221. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-wire-types.md +108 -0
  222. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin.md +77 -4
  223. package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +64 -16
  224. package/package/corpus/skills/cratis-arc-generate-proxies/scripts/check-proxy.mjs +3 -3
  225. package/package/corpus/skills/cratis-arc-host-application/SKILL.md +67 -12
  226. package/package/corpus/skills/cratis-arc-host-application/references/csharp-availability.md +130 -0
  227. package/package/corpus/skills/cratis-arc-host-application/references/csharp-callers.md +89 -0
  228. package/package/corpus/skills/cratis-arc-host-application/references/csharp-configuration.md +116 -27
  229. package/package/corpus/skills/cratis-arc-host-application/references/csharp-http.md +86 -0
  230. package/package/corpus/skills/cratis-arc-host-application/references/csharp-identity.md +208 -0
  231. package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +154 -35
  232. package/package/corpus/skills/cratis-arc-host-application/references/elixir-access.md +64 -0
  233. package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +53 -23
  234. package/package/corpus/skills/cratis-arc-host-application/references/go-embed.md +121 -0
  235. package/package/corpus/skills/cratis-arc-host-application/references/go-execution.md +86 -0
  236. package/package/corpus/skills/cratis-arc-host-application/references/go-options.md +41 -0
  237. package/package/corpus/skills/cratis-arc-host-application/references/go.md +43 -5
  238. package/package/corpus/skills/cratis-arc-host-application/references/java.md +203 -4
  239. package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +234 -4
  240. package/package/corpus/skills/cratis-arc-host-application/references/typescript-services.md +85 -0
  241. package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +194 -13
  242. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +79 -119
  243. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/java.md +285 -0
  244. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/kotlin.md +265 -0
  245. package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +52 -24
  246. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp-extensions.md +26 -0
  247. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +55 -25
  248. package/package/corpus/skills/cratis-arc-invoke-command/references/elixir-liveview.md +112 -0
  249. package/package/corpus/skills/cratis-arc-invoke-command/references/elixir.md +72 -2
  250. package/package/corpus/skills/cratis-arc-invoke-command/references/go.md +51 -3
  251. package/package/corpus/skills/cratis-arc-invoke-command/references/java.md +74 -3
  252. package/package/corpus/skills/cratis-arc-invoke-command/references/kotlin.md +58 -18
  253. package/package/corpus/skills/cratis-arc-invoke-command/references/python.md +2 -2
  254. package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +49 -2
  255. package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +31 -13
  256. package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +68 -29
  257. package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +84 -2
  258. package/package/corpus/skills/cratis-arc-isolate-tenant/references/go.md +73 -2
  259. package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +70 -3
  260. package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +65 -5
  261. package/package/corpus/skills/cratis-arc-isolate-tenant/references/python.md +1 -1
  262. package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +56 -3
  263. package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +125 -27
  264. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/csharp.md +217 -0
  265. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/elixir.md +3 -0
  266. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/go.md +3 -0
  267. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/java.md +29 -0
  268. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/kotlin.md +29 -0
  269. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/typescript.md +132 -0
  270. package/package/corpus/skills/cratis-arc-page-query/SKILL.md +33 -13
  271. package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +63 -33
  272. package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +55 -4
  273. package/package/corpus/skills/cratis-arc-page-query/references/go.md +77 -4
  274. package/package/corpus/skills/cratis-arc-page-query/references/java.md +66 -4
  275. package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +65 -5
  276. package/package/corpus/skills/cratis-arc-page-query/references/typescript.md +81 -6
  277. package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +148 -48
  278. package/package/corpus/skills/cratis-arc-react-bind-slice/references/react-screen-from-model.md +10 -0
  279. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-commands.md +190 -0
  280. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-host.md +160 -0
  281. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-identity.md +131 -0
  282. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-queries.md +157 -0
  283. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript.md +88 -0
  284. package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +155 -66
  285. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/typescript.md +628 -0
  286. package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +18 -5
  287. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/csharp.md +64 -3
  288. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +77 -11
  289. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +61 -19
  290. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +119 -7
  291. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +117 -7
  292. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +124 -10
  293. package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +129 -107
  294. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/java.md +436 -0
  295. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/kotlin.md +440 -0
  296. package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +58 -90
  297. package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript-drizzle.md +165 -0
  298. package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript.md +226 -0
  299. package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +86 -89
  300. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/typescript.md +228 -0
  301. package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +179 -90
  302. package/package/corpus/skills/cratis-arc-testing-kotlin/references/java.md +95 -0
  303. package/package/corpus/skills/cratis-arc-testing-kotlin/references/kotlin.md +107 -0
  304. package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +80 -107
  305. package/package/corpus/skills/cratis-arc-testing-typescript/references/typescript.md +272 -0
  306. package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +56 -17
  307. package/package/corpus/skills/cratis-arc-validate-command/references/csharp-rules.md +38 -0
  308. package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +84 -13
  309. package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +50 -12
  310. package/package/corpus/skills/cratis-arc-validate-command/references/go.md +119 -15
  311. package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +125 -93
  312. package/package/corpus/skills/cratis-arc-validation-kotlin/references/java.md +272 -0
  313. package/package/corpus/skills/cratis-arc-validation-kotlin/references/kotlin.md +238 -0
  314. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +133 -58
  315. package/package/corpus/skills/cratis-arc-validation-typescript/references/{models-and-queries.md → typescript-models-and-queries.md} +17 -0
  316. package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript-rules-and-checks.md +101 -0
  317. package/package/corpus/skills/cratis-arc-validation-typescript/references/{server-decisions.md → typescript-server-decisions.md} +49 -13
  318. package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript.md +196 -0
  319. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +107 -7
  320. package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +21 -11
  321. package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +70 -10
  322. package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +4 -65
  323. package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +138 -16
  324. package/package/corpus/skills/cratis-chronicle-cli-operations/references/setup-and-target.md +85 -0
  325. package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +54 -12
  326. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-patterns.md +45 -0
  327. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-services.md +80 -0
  328. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-transport.md +26 -0
  329. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-workload.md +35 -0
  330. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +57 -39
  331. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-patterns.md +32 -0
  332. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-policies.md +47 -0
  333. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +38 -3
  334. package/package/corpus/skills/cratis-chronicle-connect-application/references/go-patterns.md +30 -0
  335. package/package/corpus/skills/cratis-chronicle-connect-application/references/go.md +95 -3
  336. package/package/corpus/skills/cratis-chronicle-connect-application/references/java.md +89 -2
  337. package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin-patterns.md +35 -0
  338. package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin.md +108 -3
  339. package/package/corpus/skills/cratis-chronicle-connect-application/references/python.md +61 -0
  340. package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript-patterns.md +32 -0
  341. package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript.md +75 -6
  342. package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +42 -11
  343. package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +67 -25
  344. package/package/corpus/skills/cratis-chronicle-constrain-append/references/elixir.md +90 -3
  345. package/package/corpus/skills/cratis-chronicle-constrain-append/references/go.md +83 -3
  346. package/package/corpus/skills/cratis-chronicle-constrain-append/references/java.md +99 -2
  347. package/package/corpus/skills/cratis-chronicle-constrain-append/references/kotlin.md +76 -3
  348. package/package/corpus/skills/cratis-chronicle-constrain-append/references/python.md +1 -1
  349. package/package/corpus/skills/cratis-chronicle-constrain-append/references/typescript.md +84 -2
  350. package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +167 -31
  351. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/authentication.md +150 -0
  352. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/configuration.md +418 -0
  353. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/csharp.md +48 -0
  354. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/development-and-production.md +57 -0
  355. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/kernel-options.md +694 -0
  356. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/network-and-tls.md +161 -0
  357. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/production-checklist.md +66 -0
  358. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +154 -2
  359. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/troubleshooting.md +57 -0
  360. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md +124 -0
  361. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/webhooks.md +101 -3
  362. package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +59 -15
  363. package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +57 -41
  364. package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +69 -3
  365. package/package/corpus/skills/cratis-chronicle-evolve-event/references/go.md +71 -2
  366. package/package/corpus/skills/cratis-chronicle-evolve-event/references/java.md +50 -2
  367. package/package/corpus/skills/cratis-chronicle-evolve-event/references/kotlin.md +58 -2
  368. package/package/corpus/skills/cratis-chronicle-evolve-event/references/schema-annotation-cleanup.md +58 -0
  369. package/package/corpus/skills/cratis-chronicle-evolve-event/references/typescript.md +87 -2
  370. package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +47 -13
  371. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +107 -37
  372. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +56 -5
  373. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go-jobs-and-alerts.md +77 -0
  374. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go.md +106 -3
  375. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/java.md +55 -3
  376. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/kotlin.md +95 -3
  377. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/typescript.md +89 -7
  378. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +156 -12
  379. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +12 -20
  380. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +114 -33
  381. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +100 -47
  382. package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +182 -11
  383. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-fluent.md +228 -0
  384. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-graphs.md +102 -0
  385. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md +232 -0
  386. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-reading.md +120 -0
  387. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +105 -45
  388. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-graphs.md +49 -0
  389. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-mappings.md +45 -0
  390. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-reading.md +17 -0
  391. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +23 -27
  392. package/package/corpus/skills/cratis-chronicle-project-view/references/go-graphs.md +22 -0
  393. package/package/corpus/skills/cratis-chronicle-project-view/references/go-mappings.md +50 -0
  394. package/package/corpus/skills/cratis-chronicle-project-view/references/go-reads.md +25 -0
  395. package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +45 -5
  396. package/package/corpus/skills/cratis-chronicle-project-view/references/java-graphs.md +46 -0
  397. package/package/corpus/skills/cratis-chronicle-project-view/references/java-mappings.md +53 -0
  398. package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +69 -5
  399. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin-graphs.md +44 -0
  400. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +71 -6
  401. package/package/corpus/skills/cratis-chronicle-project-view/references/python.md +1 -1
  402. package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +279 -3
  403. package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +69 -10
  404. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-scopes.md +35 -0
  405. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-standalone.md +93 -4
  406. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +79 -34
  407. package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +56 -11
  408. package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +61 -11
  409. package/package/corpus/skills/cratis-chronicle-protect-decision/references/java.md +76 -3
  410. package/package/corpus/skills/cratis-chronicle-protect-decision/references/kotlin.md +65 -17
  411. package/package/corpus/skills/cratis-chronicle-protect-decision/references/typescript.md +77 -5
  412. package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +27 -12
  413. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +65 -47
  414. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/elixir.md +68 -3
  415. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/go.md +91 -2
  416. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/java.md +75 -2
  417. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/kotlin.md +64 -3
  418. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/typescript.md +65 -3
  419. package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +69 -11
  420. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp-integrations.md +89 -0
  421. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +57 -52
  422. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir-integrations.md +132 -0
  423. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +86 -14
  424. package/package/corpus/skills/cratis-chronicle-publish-contract/references/go-integrations.md +91 -0
  425. package/package/corpus/skills/cratis-chronicle-publish-contract/references/go.md +80 -2
  426. package/package/corpus/skills/cratis-chronicle-publish-contract/references/java-integrations.md +121 -0
  427. package/package/corpus/skills/cratis-chronicle-publish-contract/references/java.md +64 -2
  428. package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin-integrations.md +112 -0
  429. package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin.md +71 -2
  430. package/package/corpus/skills/cratis-chronicle-publish-contract/references/python.md +2 -2
  431. package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript-integrations.md +69 -0
  432. package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript.md +69 -2
  433. package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +65 -12
  434. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-occurrences.md +3 -1
  435. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-outputs.md +39 -0
  436. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-pages.md +43 -0
  437. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +43 -43
  438. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir-recovery.md +23 -0
  439. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir.md +79 -8
  440. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +97 -3
  441. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +123 -3
  442. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +113 -4
  443. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/typescript.md +122 -8
  444. package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +83 -13
  445. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-coordination.md +86 -0
  446. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-history.md +86 -0
  447. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +53 -92
  448. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-context.md +74 -0
  449. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-history.md +51 -0
  450. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +48 -20
  451. package/package/corpus/skills/cratis-chronicle-record-event/references/go-payloads.md +80 -0
  452. package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +78 -2
  453. package/package/corpus/skills/cratis-chronicle-record-event/references/java-history.md +63 -0
  454. package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +107 -11
  455. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin-history.md +88 -0
  456. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +103 -21
  457. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-import.md +30 -0
  458. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-provenance.md +40 -0
  459. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +187 -3
  460. package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +55 -13
  461. package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +235 -24
  462. package/package/corpus/skills/cratis-chronicle-reduce-state/references/elixir.md +82 -2
  463. package/package/corpus/skills/cratis-chronicle-reduce-state/references/go.md +94 -3
  464. package/package/corpus/skills/cratis-chronicle-reduce-state/references/java.md +99 -2
  465. package/package/corpus/skills/cratis-chronicle-reduce-state/references/kotlin.md +89 -3
  466. package/package/corpus/skills/cratis-chronicle-reduce-state/references/python.md +2 -2
  467. package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +91 -2
  468. package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +17 -12
  469. package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +63 -3
  470. package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +52 -3
  471. package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +64 -3
  472. package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +54 -2
  473. package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +56 -3
  474. package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +35 -18
  475. package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +46 -4
  476. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +60 -12
  477. package/package/corpus/skills/cratis-chronicle-web-workbench/references/csharp.md +57 -0
  478. package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +80 -53
  479. package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +44 -59
  480. package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +241 -203
  481. package/package/corpus/skills/cratis-ci-pipeline-performance/references/affected-tests.md +134 -0
  482. package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +25 -10
  483. package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +14 -1
  484. package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -0
  485. package/package/corpus/skills/cratis-ci-pipeline-performance/references/publish-pipelines.md +83 -6
  486. package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +68 -1
  487. package/package/corpus/skills/cratis-ci-pipeline-performance/references/runner-sizing-and-images.md +33 -6
  488. package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +11 -4
  489. package/package/corpus/skills/cratis-ci-pipeline-performance/references/shared-workflows.md +65 -0
  490. package/package/corpus/skills/cratis-ci-pipeline-performance/references/test-setup-cost.md +12 -0
  491. package/package/corpus/skills/cratis-ci-pipeline-performance/references/trim-and-aot-ratchets.md +32 -0
  492. package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +285 -139
  493. package/package/corpus/skills/cratis-cli-terminal-workbench/references/views-and-refresh.md +66 -0
  494. package/package/corpus/skills/cratis-code-review/SKILL.md +286 -165
  495. package/package/corpus/skills/cratis-code-review/references/csharp-diagnostics.md +76 -0
  496. package/package/corpus/skills/cratis-code-review/references/csharp.md +130 -0
  497. package/package/corpus/skills/cratis-code-review/references/elixir.md +30 -0
  498. package/package/corpus/skills/cratis-code-review/references/go.md +25 -0
  499. package/package/corpus/skills/cratis-code-review/references/java.md +38 -0
  500. package/package/corpus/skills/cratis-code-review/references/kotlin.md +37 -0
  501. package/package/corpus/skills/cratis-code-review/references/python.md +3 -0
  502. package/package/corpus/skills/cratis-code-review/references/typescript.md +189 -0
  503. package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +213 -13
  504. package/package/corpus/skills/cratis-commits-and-pull-requests/references/commits.md +37 -11
  505. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +98 -6
  506. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-labels-and-release.md +77 -2
  507. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +123 -16
  508. package/package/corpus/skills/cratis-components-accessibility/references/typescript.md +182 -0
  509. package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +167 -31
  510. package/package/corpus/skills/cratis-components-build-canvas/references/conversation-kit.md +89 -0
  511. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-chat.md +73 -0
  512. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-pixi-items.md +46 -0
  513. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-props.md +44 -0
  514. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-shapes.md +159 -0
  515. package/package/corpus/skills/cratis-components-build-canvas/references/typescript.md +140 -0
  516. package/package/corpus/skills/cratis-components-choose-control/SKILL.md +113 -28
  517. package/package/corpus/skills/cratis-components-choose-control/references/breadcrumbs-and-labels.md +21 -0
  518. package/package/corpus/skills/cratis-components-choose-control/references/collections.md +27 -3
  519. package/package/corpus/skills/cratis-components-choose-control/references/typescript-common.md +50 -0
  520. package/package/corpus/skills/cratis-components-choose-control/references/typescript-composition.md +174 -0
  521. package/package/corpus/skills/cratis-components-choose-control/references/typescript-display.md +12 -0
  522. package/package/corpus/skills/cratis-components-choose-control/references/typescript-dropdown.md +27 -0
  523. package/package/corpus/skills/cratis-components-choose-control/references/typescript-iconpicker.md +19 -0
  524. package/package/corpus/skills/cratis-components-choose-control/references/typescript-markdowneditor.md +16 -0
  525. package/package/corpus/skills/cratis-components-choose-control/references/typescript.md +69 -0
  526. package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +210 -23
  527. package/package/corpus/skills/cratis-components-compose-toolbar/references/behavior.md +87 -0
  528. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-composition.md +202 -0
  529. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-toolbar.md +125 -0
  530. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript.md +128 -0
  531. package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +138 -65
  532. package/package/corpus/skills/cratis-components-coordinate-feedback/references/dialog-props.md +30 -0
  533. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-dialogs.md +139 -0
  534. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-notifications.md +66 -0
  535. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript.md +170 -0
  536. package/package/corpus/skills/cratis-components-display-list/SKILL.md +204 -38
  537. package/package/corpus/skills/cratis-components-display-list/references/parts-and-messages.md +22 -0
  538. package/package/corpus/skills/cratis-components-display-list/references/typescript-datatables.md +179 -0
  539. package/package/corpus/skills/cratis-components-display-list/references/typescript.md +204 -0
  540. package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +188 -75
  541. package/package/corpus/skills/cratis-components-edit-schema-data/references/editing-rules.md +27 -0
  542. package/package/corpus/skills/cratis-components-edit-schema-data/references/schema-mapping.md +57 -0
  543. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-componentpicker.md +22 -0
  544. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-composition.md +246 -0
  545. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-configurationeditor.md +23 -0
  546. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectcontenteditor.md +12 -0
  547. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectnavigationalbar.md +7 -0
  548. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-schemaeditor.md +89 -0
  549. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript.md +141 -0
  550. package/package/corpus/skills/cratis-components-explore-data/SKILL.md +192 -48
  551. package/package/corpus/skills/cratis-components-explore-data/references/typescript-composition.md +87 -0
  552. package/package/corpus/skills/cratis-components-explore-data/references/typescript-filter.md +47 -0
  553. package/package/corpus/skills/cratis-components-explore-data/references/typescript-pivotviewer.md +27 -0
  554. package/package/corpus/skills/cratis-components-explore-data/references/typescript-timemachine.md +44 -0
  555. package/package/corpus/skills/cratis-components-explore-data/references/typescript.md +133 -0
  556. package/package/corpus/skills/cratis-components-host-chat/SKILL.md +189 -34
  557. package/package/corpus/skills/cratis-components-host-chat/references/presentation.md +60 -0
  558. package/package/corpus/skills/cratis-components-host-chat/references/typescript-composition.md +108 -0
  559. package/package/corpus/skills/cratis-components-host-chat/references/typescript-layouts.md +59 -0
  560. package/package/corpus/skills/cratis-components-host-chat/references/typescript.md +158 -0
  561. package/package/corpus/skills/cratis-components-submit-form/SKILL.md +127 -45
  562. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commanddialog.md +138 -0
  563. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commandform.md +96 -0
  564. package/package/corpus/skills/cratis-components-submit-form/references/typescript-fields.md +157 -0
  565. package/package/corpus/skills/cratis-components-submit-form/references/typescript.md +113 -0
  566. package/package/corpus/skills/cratis-components-theme-application/SKILL.md +137 -47
  567. package/package/corpus/skills/cratis-components-theme-application/references/palette.md +4 -5
  568. package/package/corpus/skills/cratis-components-theme-application/references/parts.md +73 -0
  569. package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +34 -3
  570. package/package/corpus/skills/cratis-components-theme-application/references/tokens.md +17 -0
  571. package/package/corpus/skills/cratis-components-theme-application/references/typescript-adapter-authoring.md +198 -0
  572. package/package/corpus/skills/cratis-components-theme-application/references/typescript.md +243 -0
  573. package/package/corpus/skills/cratis-content-length/SKILL.md +221 -162
  574. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +173 -6
  575. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +259 -184
  576. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +32 -16
  577. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +115 -0
  578. package/package/corpus/skills/cratis-discoverability/SKILL.md +196 -85
  579. package/package/corpus/skills/cratis-discoverability/references/csharp.md +6 -0
  580. package/package/corpus/skills/cratis-discoverability/references/elixir.md +6 -0
  581. package/package/corpus/skills/cratis-discoverability/references/entities.md +41 -25
  582. package/package/corpus/skills/cratis-discoverability/references/go.md +6 -0
  583. package/package/corpus/skills/cratis-discoverability/references/java.md +6 -0
  584. package/package/corpus/skills/cratis-discoverability/references/kotlin.md +6 -0
  585. package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +10 -5
  586. package/package/corpus/skills/cratis-discoverability/references/page-checklist.md +90 -49
  587. package/package/corpus/skills/cratis-discoverability/references/structured-data.md +35 -28
  588. package/package/corpus/skills/cratis-discoverability/references/typescript.md +6 -0
  589. package/package/corpus/skills/cratis-discoverability/scripts/verify-discoverability.mjs +24 -9
  590. package/package/corpus/skills/cratis-documentation-writing/SKILL.md +266 -172
  591. package/package/corpus/skills/cratis-documentation-writing/references/cratis-site.md +113 -100
  592. package/package/corpus/skills/cratis-documentation-writing/references/writing-guidance.md +4 -2
  593. package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +220 -87
  594. package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +145 -9
  595. package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +259 -54
  596. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +88 -38
  597. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +102 -24
  598. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +118 -87
  599. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-alternate-implementations.md +60 -0
  600. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-code-style.md +294 -0
  601. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/{domain-philosophy.md → csharp-domain-philosophy.md} +11 -10
  602. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-exceptions-logging-and-di.md +328 -0
  603. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-monads.md +124 -0
  604. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp.md +54 -0
  605. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +266 -97
  606. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +21 -8
  607. package/package/corpus/skills/cratis-engineering-decision-record/references/direct.md +118 -0
  608. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +114 -102
  609. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +301 -71
  610. package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +294 -56
  611. package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +161 -86
  612. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/csharp.md +52 -0
  613. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/elixir.md +21 -0
  614. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +35 -6
  615. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/go.md +17 -0
  616. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/java.md +14 -0
  617. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/kotlin.md +14 -0
  618. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/typescript.md +15 -0
  619. package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +127 -27
  620. package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +40 -13
  621. package/package/corpus/skills/cratis-engineering-inherited-work/references/pull-request-evidence.md +66 -0
  622. package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +254 -79
  623. package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +97 -52
  624. package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +159 -64
  625. package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +119 -67
  626. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +249 -57
  627. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{dotnet-nuget.md → csharp.md} +11 -16
  628. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +40 -8
  629. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +5 -8
  630. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/elixir.md +108 -0
  631. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go.md +276 -0
  632. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +28 -18
  633. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/java.md +105 -0
  634. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/kotlin.md +179 -0
  635. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/train-mode.md +1 -1
  636. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{npm-yarn.md → typescript.md} +5 -3
  637. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +116 -48
  638. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/scripts/dependency-map.tsv +1 -1
  639. package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +283 -81
  640. package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +5 -20
  641. package/package/corpus/skills/cratis-engineering-post-mortem/references/public-safe-wording.md +18 -23
  642. package/package/corpus/skills/cratis-engineering-post-mortem/references/review-template.md +86 -37
  643. package/package/corpus/skills/cratis-engineering-post-mortem/references/silent-backup-failure.md +92 -98
  644. package/package/corpus/skills/cratis-engineering-post-mortem/references/unintended-release-regression.md +79 -73
  645. package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +98 -56
  646. package/package/corpus/skills/cratis-engineering-regression-cluster/references/history-and-proof.md +30 -0
  647. package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +290 -62
  648. package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +138 -107
  649. package/package/corpus/skills/cratis-engineering-release-trains/references/final-merge-gate.md +118 -0
  650. package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +311 -68
  651. package/package/corpus/skills/cratis-engineering-review-rounds/references/review-ranges.md +99 -0
  652. package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +235 -95
  653. package/package/corpus/skills/cratis-environments-and-secrets/references/csharp.md +112 -0
  654. package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +28 -23
  655. package/package/corpus/skills/cratis-environments-and-secrets/references/transcript-safety.md +31 -0
  656. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +174 -65
  657. package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +73 -69
  658. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +143 -0
  659. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp-serialization.md +183 -0
  660. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp.md +113 -0
  661. package/package/corpus/skills/cratis-fundamentals-concept/references/elixir.md +76 -0
  662. package/package/corpus/skills/cratis-fundamentals-concept/references/go-naming.md +36 -0
  663. package/package/corpus/skills/cratis-fundamentals-concept/references/go.md +276 -0
  664. package/package/corpus/skills/cratis-fundamentals-concept/references/java-json.md +121 -0
  665. package/package/corpus/skills/cratis-fundamentals-concept/references/java-primitives.md +156 -0
  666. package/package/corpus/skills/cratis-fundamentals-concept/references/java.md +155 -0
  667. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-json.md +123 -0
  668. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-primitives.md +161 -0
  669. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin.md +140 -0
  670. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md +203 -0
  671. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript.md +100 -0
  672. package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +113 -11
  673. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp-specs.md +165 -0
  674. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +223 -29
  675. package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +162 -4
  676. package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +227 -5
  677. package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +203 -6
  678. package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +251 -5
  679. package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +160 -9
  680. package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +120 -62
  681. package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp-otlp-export.md +56 -0
  682. package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp.md +224 -0
  683. package/package/corpus/skills/cratis-fundamentals-telemetry/references/elixir.md +10 -0
  684. package/package/corpus/skills/cratis-fundamentals-telemetry/references/go.md +33 -0
  685. package/package/corpus/skills/cratis-fundamentals-telemetry/references/java.md +9 -0
  686. package/package/corpus/skills/cratis-fundamentals-telemetry/references/kotlin.md +9 -0
  687. package/package/corpus/skills/cratis-fundamentals-telemetry/references/typescript.md +9 -0
  688. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +104 -26
  689. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp-diagnostics.md +75 -0
  690. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp.md +182 -0
  691. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/elixir.md +30 -0
  692. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go-dependency-injection.md +168 -0
  693. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go.md +29 -0
  694. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/java.md +39 -0
  695. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/kotlin.md +31 -0
  696. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/typescript.md +32 -0
  697. package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +346 -273
  698. package/package/corpus/skills/cratis-governed-release-methodology/references/artifact-verification.md +58 -0
  699. package/package/corpus/skills/cratis-governed-release-methodology/references/lifecycle-phases.md +32 -25
  700. package/package/corpus/skills/cratis-governed-release-methodology/references/release-decisions.md +78 -0
  701. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +331 -98
  702. package/package/corpus/skills/cratis-lens-browser-extension/references/csharp.md +13 -0
  703. package/package/corpus/skills/cratis-lens-browser-extension/references/elixir.md +9 -0
  704. package/package/corpus/skills/cratis-lens-browser-extension/references/go.md +8 -0
  705. package/package/corpus/skills/cratis-lens-browser-extension/references/java.md +8 -0
  706. package/package/corpus/skills/cratis-lens-browser-extension/references/kotlin.md +8 -0
  707. package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +111 -102
  708. package/package/corpus/skills/cratis-lens-browser-extension/references/typescript.md +10 -0
  709. package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +333 -102
  710. package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +144 -15
  711. package/package/corpus/skills/cratis-modeling-design-event-model/references/command-inventory.md +43 -0
  712. package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +71 -3
  713. package/package/corpus/skills/cratis-modeling-design-event-model/references/review-one-slice.md +14 -13
  714. package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +265 -14
  715. package/package/corpus/skills/cratis-modeling-discover-timeline/references/discovery-questions.md +10 -8
  716. package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +5 -1
  717. package/package/corpus/skills/cratis-modeling-discover-timeline/references/studio.md +136 -0
  718. package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +172 -9
  719. package/package/corpus/skills/cratis-modeling-review-event-model/references/csharp.md +40 -0
  720. package/package/corpus/skills/cratis-modeling-review-event-model/references/elixir.md +32 -0
  721. package/package/corpus/skills/cratis-modeling-review-event-model/references/event-log-hygiene.md +44 -0
  722. package/package/corpus/skills/cratis-modeling-review-event-model/references/go.md +27 -0
  723. package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +20 -9
  724. package/package/corpus/skills/cratis-modeling-review-event-model/references/java.md +28 -0
  725. package/package/corpus/skills/cratis-modeling-review-event-model/references/kotlin.md +28 -0
  726. package/package/corpus/skills/cratis-modeling-review-event-model/references/model-findings.md +30 -10
  727. package/package/corpus/skills/cratis-modeling-review-event-model/references/resilience-review.md +1 -1
  728. package/package/corpus/skills/cratis-modeling-review-event-model/references/screenplay-evidence.md +159 -0
  729. package/package/corpus/skills/cratis-modeling-review-event-model/references/typescript.md +27 -0
  730. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +128 -16
  731. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +5 -5
  732. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp-source-adapter.md +221 -0
  733. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp.md +11 -0
  734. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/draft-checks.md +23 -0
  735. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/elixir.md +13 -0
  736. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/go.md +10 -0
  737. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/java.md +5 -0
  738. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/kotlin.md +5 -0
  739. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +67 -4
  740. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/side-car-migration.md +11 -0
  741. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/typescript.md +5 -0
  742. package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +229 -90
  743. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp-aspire.md +204 -0
  744. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp.md +31 -0
  745. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +82 -36
  746. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/elixir.md +10 -0
  747. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/go.md +11 -0
  748. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/java.md +11 -0
  749. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/kotlin.md +11 -0
  750. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/typescript.md +15 -0
  751. package/package/corpus/skills/cratis-observability/SKILL.md +178 -10
  752. package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +153 -13
  753. package/package/corpus/skills/cratis-observability/references/csharp-arc-and-chronicle-signals.md +79 -0
  754. package/package/corpus/skills/cratis-observability/references/csharp-setup-options.md +104 -0
  755. package/package/corpus/skills/cratis-observability/references/csharp.md +172 -56
  756. package/package/corpus/skills/cratis-observability/references/elixir.md +243 -5
  757. package/package/corpus/skills/cratis-observability/references/go-arc-diagnostics.md +134 -0
  758. package/package/corpus/skills/cratis-observability/references/go.md +292 -0
  759. package/package/corpus/skills/cratis-observability/references/java.md +236 -0
  760. package/package/corpus/skills/cratis-observability/references/kotlin.md +251 -0
  761. package/package/corpus/skills/cratis-observability/references/troubleshooting.md +13 -17
  762. package/package/corpus/skills/cratis-observability/references/typescript-chronicle-client.md +116 -0
  763. package/package/corpus/skills/cratis-observability/references/typescript.md +159 -0
  764. package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +222 -85
  765. package/package/corpus/skills/cratis-onboarding-runtime/references/ante-onboarding-keys.md +153 -10
  766. package/package/corpus/skills/cratis-onboarding-runtime/references/csharp.md +61 -0
  767. package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +29 -33
  768. package/package/corpus/skills/cratis-onboarding-runtime/references/performance.md +75 -19
  769. package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +10 -6
  770. package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +174 -80
  771. package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +78 -49
  772. package/package/corpus/skills/cratis-orchestration-lanes/references/lane-brief.md +48 -16
  773. package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +11 -8
  774. package/package/corpus/skills/cratis-orchestration-lanes/references/work-records.md +16 -0
  775. package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +80 -90
  776. package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +153 -59
  777. package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +10 -6
  778. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +216 -32
  779. package/package/corpus/skills/cratis-orleans-jobs/references/csharp-lifecycle-and-placement.md +89 -0
  780. package/package/corpus/skills/cratis-orleans-jobs/references/csharp-state-machines.md +96 -0
  781. package/package/corpus/skills/cratis-orleans-jobs/references/csharp.md +301 -0
  782. package/package/corpus/skills/cratis-performance-review/SKILL.md +265 -45
  783. package/package/corpus/skills/cratis-performance-review/references/csharp.md +67 -0
  784. package/package/corpus/skills/cratis-performance-review/references/elixir.md +34 -0
  785. package/package/corpus/skills/cratis-performance-review/references/go.md +43 -0
  786. package/package/corpus/skills/cratis-performance-review/references/java.md +38 -0
  787. package/package/corpus/skills/cratis-performance-review/references/kotlin.md +37 -0
  788. package/package/corpus/skills/cratis-performance-review/references/observer-tuning.md +117 -0
  789. package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +173 -77
  790. package/package/corpus/skills/cratis-performance-review/references/typescript.md +41 -0
  791. package/package/corpus/skills/cratis-platform-build-application/SKILL.md +243 -0
  792. package/package/corpus/skills/cratis-platform-build-application/references/cli-map.md +256 -0
  793. package/package/corpus/skills/cratis-platform-build-application/references/csharp-guided-tours.md +41 -0
  794. package/package/corpus/skills/cratis-platform-build-application/references/csharp.md +17 -0
  795. package/package/corpus/skills/cratis-platform-build-application/references/direct.md +258 -0
  796. package/package/corpus/skills/cratis-platform-build-application/references/elixir.md +27 -0
  797. package/package/corpus/skills/cratis-platform-build-application/references/go.md +13 -0
  798. package/package/corpus/skills/cratis-platform-build-application/references/java.md +13 -0
  799. package/package/corpus/skills/cratis-platform-build-application/references/kotlin.md +13 -0
  800. package/package/corpus/skills/cratis-platform-build-application/references/typescript-guided-tours.md +132 -0
  801. package/package/corpus/skills/cratis-platform-build-application/references/typescript.md +13 -0
  802. package/package/corpus/skills/cratis-platform-build-application/scripts/model-first-status.sh +100 -0
  803. package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +130 -31
  804. package/package/corpus/skills/cratis-platform-configure-environment/references/csharp.md +336 -0
  805. package/package/corpus/skills/cratis-platform-configure-environment/references/elixir.md +224 -0
  806. package/package/corpus/skills/cratis-platform-configure-environment/references/go.md +257 -0
  807. package/package/corpus/skills/cratis-platform-configure-environment/references/java.md +209 -0
  808. package/package/corpus/skills/cratis-platform-configure-environment/references/kotlin.md +240 -0
  809. package/package/corpus/skills/cratis-platform-configure-environment/references/typescript.md +280 -0
  810. package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +120 -8
  811. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-arc-mcp.md +65 -0
  812. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-cli-registration.md +86 -0
  813. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp.md +21 -0
  814. package/package/corpus/skills/cratis-platform-contribute-change/references/elixir.md +12 -0
  815. package/package/corpus/skills/cratis-platform-contribute-change/references/go.md +14 -0
  816. package/package/corpus/skills/cratis-platform-contribute-change/references/java.md +9 -0
  817. package/package/corpus/skills/cratis-platform-contribute-change/references/kotlin.md +12 -0
  818. package/package/corpus/skills/cratis-platform-contribute-change/references/repositories.md +93 -0
  819. package/package/corpus/skills/cratis-platform-contribute-change/references/typescript.md +13 -0
  820. package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +235 -13
  821. package/package/corpus/skills/cratis-platform-deliver-slice/references/contract-reconciliation.md +73 -6
  822. package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +7 -4
  823. package/package/corpus/skills/cratis-platform-deliver-slice/references/csharp.md +251 -0
  824. package/package/corpus/skills/cratis-platform-deliver-slice/references/elixir.md +266 -0
  825. package/package/corpus/skills/cratis-platform-deliver-slice/references/go.md +242 -0
  826. package/package/corpus/skills/cratis-platform-deliver-slice/references/java.md +310 -0
  827. package/package/corpus/skills/cratis-platform-deliver-slice/references/kotlin.md +297 -0
  828. package/package/corpus/skills/cratis-platform-deliver-slice/references/typescript.md +248 -0
  829. package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +173 -25
  830. package/package/corpus/skills/cratis-platform-diagnose-slice/references/csharp.md +7 -0
  831. package/package/corpus/skills/cratis-platform-diagnose-slice/references/elixir.md +7 -0
  832. package/package/corpus/skills/cratis-platform-diagnose-slice/references/evidence.md +100 -0
  833. package/package/corpus/skills/cratis-platform-diagnose-slice/references/go.md +7 -0
  834. package/package/corpus/skills/cratis-platform-diagnose-slice/references/java.md +5 -0
  835. package/package/corpus/skills/cratis-platform-diagnose-slice/references/kotlin.md +5 -0
  836. package/package/corpus/skills/cratis-platform-diagnose-slice/references/typescript.md +7 -0
  837. package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +178 -13
  838. package/package/corpus/skills/cratis-platform-prepare-release-pr/references/product-release-checks.md +23 -0
  839. package/package/corpus/skills/cratis-platform-start-application/SKILL.md +239 -21
  840. package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +223 -18
  841. package/package/corpus/skills/cratis-platform-start-application/references/elixir.md +11 -0
  842. package/package/corpus/skills/cratis-platform-start-application/references/go.md +11 -0
  843. package/package/corpus/skills/cratis-platform-start-application/references/java.md +224 -9
  844. package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +191 -9
  845. package/package/corpus/skills/cratis-platform-start-application/references/typescript.md +14 -0
  846. package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +211 -12
  847. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/csharp.md +9 -0
  848. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/elixir.md +5 -0
  849. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/go.md +5 -0
  850. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/java.md +5 -0
  851. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/kotlin.md +5 -0
  852. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/routes-and-failures.md +40 -0
  853. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/typescript.md +5 -0
  854. package/package/corpus/skills/cratis-release-notes/SKILL.md +137 -57
  855. package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -59
  856. package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +55 -61
  857. package/package/corpus/skills/cratis-rtk/SKILL.md +188 -35
  858. package/package/corpus/skills/cratis-rtk/references/rtk-administration.md +137 -0
  859. package/package/corpus/skills/cratis-rtk/references/rtk-filters.md +68 -0
  860. package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +160 -18
  861. package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +2 -0
  862. package/package/corpus/skills/cratis-screenplay-accept-model/references/csharp.md +122 -0
  863. package/package/corpus/skills/cratis-screenplay-accept-model/references/diagnostic-decisions.md +10 -0
  864. package/package/corpus/skills/cratis-screenplay-accept-model/references/read-the-evidence.md +50 -0
  865. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +265 -41
  866. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/email-templates.md +47 -0
  867. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/environment-keys.md +81 -0
  868. package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +182 -20
  869. package/package/corpus/skills/cratis-screenplay-author-extension/references/cli.md +58 -0
  870. package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +31 -8
  871. package/package/corpus/skills/cratis-screenplay-author-extension/references/csharp.md +66 -0
  872. package/package/corpus/skills/cratis-screenplay-author-extension/references/elixir.md +8 -0
  873. package/package/corpus/skills/cratis-screenplay-author-extension/references/frontend-components.md +12 -0
  874. package/package/corpus/skills/cratis-screenplay-author-extension/references/go.md +95 -0
  875. package/package/corpus/skills/cratis-screenplay-author-extension/references/java.md +15 -0
  876. package/package/corpus/skills/cratis-screenplay-author-extension/references/kotlin.md +69 -0
  877. package/package/corpus/skills/cratis-screenplay-author-extension/references/lock-and-trust.md +23 -0
  878. package/package/corpus/skills/cratis-screenplay-author-extension/references/protocol.md +12 -0
  879. package/package/corpus/skills/cratis-screenplay-author-extension/references/runtime-details.md +30 -0
  880. package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +70 -6
  881. package/package/corpus/skills/cratis-screenplay-author-extension/references/typescript.md +66 -0
  882. package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +165 -20
  883. package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +60 -4
  884. package/package/corpus/skills/cratis-screenplay-availability/references/csharp.md +88 -0
  885. package/package/corpus/skills/cratis-screenplay-availability/references/elixir.md +45 -0
  886. package/package/corpus/skills/cratis-screenplay-availability/references/go.md +5 -0
  887. package/package/corpus/skills/cratis-screenplay-availability/references/java.md +5 -0
  888. package/package/corpus/skills/cratis-screenplay-availability/references/kotlin.md +5 -0
  889. package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +62 -13
  890. package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +72 -13
  891. package/package/corpus/skills/cratis-screenplay-availability/references/typescript.md +20 -0
  892. package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +232 -66
  893. package/package/corpus/skills/cratis-screenplay-declare-slice/references/commands.md +256 -0
  894. package/package/corpus/skills/cratis-screenplay-declare-slice/references/concepts-and-generated-values.md +206 -0
  895. package/package/corpus/skills/cratis-screenplay-declare-slice/references/context-and-identity.md +105 -0
  896. package/package/corpus/skills/cratis-screenplay-declare-slice/references/events-and-constraints.md +123 -0
  897. package/package/corpus/skills/cratis-screenplay-declare-slice/references/language-map.md +129 -0
  898. package/package/corpus/skills/cratis-screenplay-declare-slice/references/policies-and-purposes.md +117 -0
  899. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +3 -12
  900. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projections.md +222 -0
  901. package/package/corpus/skills/cratis-screenplay-declare-slice/references/queries.md +122 -0
  902. package/package/corpus/skills/cratis-screenplay-declare-slice/references/reducers-graphs-sinks.md +105 -0
  903. package/package/corpus/skills/cratis-screenplay-declare-slice/references/structure-and-imports.md +142 -0
  904. package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +164 -21
  905. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/mcp-tools.md +138 -0
  906. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +63 -14
  907. package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +120 -25
  908. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/csharp.md +107 -0
  909. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/mcp.md +16 -0
  910. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/ordering.md +29 -3
  911. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/recipient-contracts.md +50 -0
  912. package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +190 -101
  913. package/package/corpus/skills/cratis-screenplay-model-automation/references/external-effects.md +10 -0
  914. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +12 -4
  915. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-example.md +95 -0
  916. package/package/corpus/skills/cratis-screenplay-model-automation/references/stage-subset.md +61 -0
  917. package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +171 -51
  918. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-host-api.md +177 -0
  919. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp.md +127 -0
  920. package/package/corpus/skills/cratis-screenplay-model-interaction/references/decision-inputs.md +10 -0
  921. package/package/corpus/skills/cratis-screenplay-model-interaction/references/elixir.md +9 -0
  922. package/package/corpus/skills/cratis-screenplay-model-interaction/references/go.md +9 -0
  923. package/package/corpus/skills/cratis-screenplay-model-interaction/references/java.md +9 -0
  924. package/package/corpus/skills/cratis-screenplay-model-interaction/references/kotlin.md +9 -0
  925. package/package/corpus/skills/cratis-screenplay-model-interaction/references/localized-strings.md +1 -1
  926. package/package/corpus/skills/cratis-screenplay-model-interaction/references/navigation-reachability.md +25 -0
  927. package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +187 -20
  928. package/package/corpus/skills/cratis-screenplay-model-interaction/references/typescript.md +119 -6
  929. package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +259 -89
  930. package/package/corpus/skills/cratis-screenplay-model-translation/references/boundary-diagnostics.md +32 -0
  931. package/package/corpus/skills/cratis-screenplay-model-translation/references/stage-realization.md +36 -0
  932. package/package/corpus/skills/cratis-screenplay-model-translation/references/translation-scenarios.md +114 -0
  933. package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +185 -20
  934. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/cli.md +88 -0
  935. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/csharp.md +210 -0
  936. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/typescript.md +45 -0
  937. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/workspace-mcp.md +133 -0
  938. package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +161 -20
  939. package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +195 -7
  940. package/package/corpus/skills/cratis-screenplay-recover-intent/references/elixir.md +21 -0
  941. package/package/corpus/skills/cratis-screenplay-recover-intent/references/go.md +17 -0
  942. package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
  943. package/package/corpus/skills/cratis-screenplay-recover-intent/references/java.md +9 -0
  944. package/package/corpus/skills/cratis-screenplay-recover-intent/references/kotlin.md +9 -0
  945. package/package/corpus/skills/cratis-screenplay-recover-intent/references/running-system.md +122 -6
  946. package/package/corpus/skills/cratis-screenplay-recover-intent/references/typescript.md +9 -0
  947. package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +233 -62
  948. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/boundary-scenarios.md +60 -0
  949. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/case-questions.md +30 -0
  950. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/coverage-worksheet.md +16 -8
  951. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/csharp.md +41 -0
  952. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/graph-steps.md +37 -5
  953. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/named-cases.md +23 -10
  954. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +22 -19
  955. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/scenarios.md +230 -0
  956. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +140 -14
  957. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
  958. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +7 -9
  959. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +36 -24
  960. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/destination-repairs.md +21 -0
  961. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
  962. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +6 -9
  963. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +3 -6
  964. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +4 -5
  965. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +32 -19
  966. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +53 -16
  967. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +1 -1
  968. package/package/corpus/skills/cratis-security-review/SKILL.md +137 -72
  969. package/package/corpus/skills/cratis-security-review/references/csharp.md +114 -0
  970. package/package/corpus/skills/cratis-security-review/references/elixir.md +21 -0
  971. package/package/corpus/skills/cratis-security-review/references/go.md +22 -0
  972. package/package/corpus/skills/cratis-security-review/references/java.md +20 -0
  973. package/package/corpus/skills/cratis-security-review/references/kotlin.md +20 -0
  974. package/package/corpus/skills/cratis-security-review/references/python.md +3 -0
  975. package/package/corpus/skills/cratis-security-review/references/review-checklist.md +98 -68
  976. package/package/corpus/skills/cratis-security-review/references/typescript.md +22 -0
  977. package/package/corpus/skills/cratis-session-handoff/SKILL.md +134 -90
  978. package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +35 -52
  979. package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +170 -86
  980. package/package/corpus/skills/cratis-showrunner-herald/references/csharp-templates-and-images.md +115 -0
  981. package/package/corpus/skills/cratis-showrunner-herald/references/csharp.md +280 -0
  982. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +252 -38
  983. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +104 -10
  984. package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +185 -27
  985. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +103 -3
  986. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-decision-reads.md +40 -11
  987. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-events.md +136 -0
  988. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-graphs.md +45 -0
  989. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-integration.md +121 -75
  990. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +33 -8
  991. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-reactors.md +117 -0
  992. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-read-models.md +96 -0
  993. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-relational.md +16 -0
  994. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-slice.md +68 -0
  995. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +142 -34
  996. package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +274 -32
  997. package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +176 -111
  998. package/package/corpus/skills/cratis-specifications-exercise-backend/references/java.md +208 -5
  999. package/package/corpus/skills/cratis-specifications-exercise-backend/references/kotlin.md +235 -7
  1000. package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +223 -57
  1001. package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +159 -34
  1002. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-running.md +180 -0
  1003. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp.md +331 -0
  1004. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/kotlin.md +5 -0
  1005. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/typescript.md +9 -0
  1006. package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +92 -55
  1007. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-browser.md +44 -0
  1008. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-storybook.md +157 -0
  1009. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript.md +8 -0
  1010. package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +182 -9
  1011. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-rendering.md +172 -0
  1012. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript.md +400 -0
  1013. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +139 -9
  1014. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/references/typescript.md +316 -0
  1015. package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +284 -14
  1016. package/package/corpus/skills/cratis-stage-render-slice/references/csharp-configuration.md +202 -0
  1017. package/package/corpus/skills/cratis-stage-render-slice/references/csharp-planning.md +80 -0
  1018. package/package/corpus/skills/cratis-stage-render-slice/references/csharp.md +221 -0
  1019. package/package/corpus/skills/cratis-stage-render-slice/references/graph-rendering.md +53 -0
  1020. package/package/corpus/skills/cratis-stage-render-slice/references/java.md +25 -0
  1021. package/package/corpus/skills/cratis-stage-render-slice/references/review-render-plan.md +154 -12
  1022. package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +212 -12
  1023. package/package/corpus/skills/cratis-stage-run-sandbox/references/journey-replay.md +47 -0
  1024. package/package/corpus/skills/cratis-stage-run-sandbox/references/published-mode.md +103 -0
  1025. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-runtime.md +67 -0
  1026. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +60 -6
  1027. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +243 -52
  1028. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/tools.md +239 -0
  1029. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/webhooks.md +74 -0
  1030. package/package/corpus/skills/cratis-technical-examples/SKILL.md +233 -67
  1031. package/package/corpus/skills/cratis-technical-examples/references/csharp.md +325 -0
  1032. package/package/corpus/skills/cratis-technical-examples/references/elixir.md +114 -0
  1033. package/package/corpus/skills/cratis-technical-examples/references/go.md +74 -0
  1034. package/package/corpus/skills/cratis-technical-examples/references/java.md +194 -0
  1035. package/package/corpus/skills/cratis-technical-examples/references/kotlin.md +205 -0
  1036. package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +57 -40
  1037. package/package/corpus/skills/cratis-technical-examples/references/typescript.md +427 -0
  1038. package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +120 -35
  1039. package/package/corpus/skills/cratis-ux-review/SKILL.md +136 -33
  1040. package/package/corpus/skills/cratis-ux-review/references/checklist.md +10 -6
  1041. package/package/corpus/skills/cratis-ux-review/references/report-template.md +10 -8
  1042. package/package/corpus/skills/cratis-ux-review/references/typescript.md +9 -0
  1043. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +275 -51
  1044. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +49 -35
  1045. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/pattern-evidence.md +151 -0
  1046. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +28 -16
  1047. package/package/corpus/skills/migrate-dotnet10-to-dotnet11/SKILL.md +3 -1
  1048. package/package/profile-catalog.json +34 -2
  1049. package/package.json +1 -1
  1050. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +0 -40
  1051. package/package/corpus/skills/cratis-arc-declare-command/references/python.md +0 -3
  1052. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/python.md +0 -3
  1053. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +0 -23
  1054. package/package/corpus/skills/cratis-arc-expose-query/references/python.md +0 -3
  1055. package/package/corpus/skills/cratis-arc-generate-proxies/references/python.md +0 -3
  1056. package/package/corpus/skills/cratis-arc-host-application/references/python.md +0 -3
  1057. package/package/corpus/skills/cratis-arc-page-query/references/python.md +0 -3
  1058. package/package/corpus/skills/cratis-arc-react-bind-slice/references/commands.md +0 -88
  1059. package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +0 -9
  1060. package/package/corpus/skills/cratis-arc-react-bind-slice/references/identity.md +0 -7
  1061. package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +0 -9
  1062. package/package/corpus/skills/cratis-arc-react-bind-slice/references/manual-screen.md +0 -10
  1063. package/package/corpus/skills/cratis-arc-react-bind-slice/references/query-state.md +0 -29
  1064. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +0 -45
  1065. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/python.md +0 -3
  1066. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +0 -11
  1067. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +0 -40
  1068. package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +0 -62
  1069. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +0 -49
  1070. package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +0 -25
  1071. package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +0 -51
  1072. package/package/corpus/skills/cratis-arc-validate-command/references/java.md +0 -27
  1073. package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +0 -23
  1074. package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +0 -23
  1075. package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +0 -55
  1076. package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +0 -72
  1077. package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +0 -86
  1078. package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +0 -46
  1079. package/package/corpus/skills/cratis-chronicle-evolve-event/references/bulk-repair.md +0 -7
  1080. package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +0 -50
  1081. package/package/corpus/skills/cratis-chronicle-record-event/references/python.md +0 -3
  1082. package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +0 -29
  1083. package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +0 -8
  1084. package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +0 -15
  1085. package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +0 -3
  1086. package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +0 -5
  1087. package/package/corpus/skills/cratis-components-display-list/references/server-query.md +0 -21
  1088. package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +0 -9
  1089. package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +0 -9
  1090. package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +0 -9
  1091. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +0 -68
  1092. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +0 -202
  1093. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +0 -161
  1094. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +0 -20
  1095. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go-jvm-python-elixir.md +0 -83
  1096. package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +0 -109
  1097. package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +0 -95
  1098. package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +0 -3
  1099. package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +0 -16
  1100. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +0 -14
  1101. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +0 -52
  1102. package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +0 -54
  1103. package/package/corpus/skills/cratis-observability/references/dotnet-setup-and-options.md +0 -68
  1104. package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +0 -22
  1105. package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +0 -12
  1106. package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +0 -12
  1107. package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +0 -5
  1108. package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +0 -56
  1109. package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +0 -66
  1110. package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +0 -27
  1111. package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +0 -35
  1112. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +0 -90
  1113. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/unknown-preserving-reader.md +0 -9
  1114. package/package/corpus/skills/cratis-screenplay-model-automation/references/host-trigger.md +0 -17
  1115. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-performers.md +0 -18
  1116. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +0 -12
  1117. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -10
  1118. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +0 -123
  1119. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/interview-batch.md +0 -20
  1120. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +0 -11
  1121. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/review-questions.md +0 -13
  1122. package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +0 -58
  1123. package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +0 -20
  1124. package/package/corpus/skills/cratis-showrunner-herald/references/options.md +0 -35
  1125. package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +0 -76
  1126. package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +0 -37
  1127. package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +0 -40
  1128. package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +0 -24
  1129. package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +0 -23
  1130. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-phase-timings.md +0 -13
  1131. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +0 -7
  1132. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/blocked-tools.md +0 -11
  1133. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/observational-tools.md +0 -7
  1134. package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +0 -8
  1135. package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +0 -8
  1136. package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +0 -24
  1137. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +0 -23
  1138. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +0 -25
  1139. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +0 -17
  1140. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +0 -23
@@ -1,13 +1,21 @@
1
1
  # Guard a standalone append
2
2
 
3
- Choose this path for a writer outside the Arc command pipeline. Use the same `IEventStore` (including namespace) for the decision and write. Import `Cratis.Chronicle`, `Cratis.Chronicle.Events`, `Cratis.Chronicle.EventSequences` and `Cratis.Chronicle.ReadModels`. Here `source` is the book's `EventSourceId`, and the enclosing method returns `Task<bool>`:
3
+ ## Contents
4
+
5
+ - Keep nested appends inside the transaction or receipt
6
+ - Acquire the read
7
+ - Complete as owner
8
+ - Run a nested invocation under the frame
9
+ - Not supported in this SDK
10
+
11
+ Choose this path for a writer outside the Arc command pipeline. Use the same `IEventStore` (including namespace) for the decision and write. Import `Cratis.Chronicle`, `Cratis.Chronicle.Events`, `Cratis.Chronicle.EventSequences` and `Cratis.Chronicle.ReadModels`. Here `source` is the trip's `EventSourceId`, and the enclosing method returns `Task<bool>`:
4
12
 
5
13
  ```csharp
6
- var stock = await eventStore.GetDecisionReads().GetDetached<BookStock>(source);
14
+ var stock = await eventStore.GetDecisionReads().GetDetached<TripCapacity>(source.Value);
7
15
  if (!stock.IsProtected || stock.Instance is not { Available: > 0 }) return false;
8
16
 
9
17
  var result = await eventStore.EventLog.AppendMany(
10
- [new EventForEventSourceId(source, new BookBorrowed())],
18
+ [new EventForEventSourceId(source, new SeatReserved())],
11
19
  guardedBy: [stock]);
12
20
  return result.IsSuccess;
13
21
  ```
@@ -16,7 +24,7 @@ The detached read alone doesn't guard a write: the append must carry it. To dist
16
24
 
17
25
  ## Keep nested appends inside the transaction or receipt
18
26
 
19
- In a custom owner, open `IUnitOfWork.RefuseImmediateAppends()` before invoking callbacks. A native immediate append throws `ImmediateAppendRefused` before transport, even through an already captured sequence. The refusal lasts until the owning frame is disposed, not merely until commit. This is separate from read protection.
27
+ In a custom owner, open `IUnitOfWork.RefuseImmediateAppends()` before invoking callbacks. A native immediate append throws `ImmediateAppendRefused` before transport, even through an already captured sequence. The refusal lasts until the owning frame is disposed, not merely until commit. This is separate from read protection. Only the first frame in the flow owns completion: a nested acquisition, or one opened when read protection or a commit owner already exists, only refuses. Calling `Commit` or `Rollback` on such a frame, or opening a refusal for a different unit while one is active, throws `ImmediateAppendRefusalRequiresOwner`: complete through the frame or owner that started the unit.
20
28
 
21
29
  ```csharp
22
30
  var captured = eventStore.EventLog;
@@ -29,3 +37,84 @@ await refusal.Commit();
29
37
  ```
30
38
 
31
39
  This example assumes no existing completion owner or enforced reads. If the unit already has a completion owner, keep that path and hold the refusal frame through completion. Borrowers may stage events but must not commit or roll back. In a spec, capture the sequence before opening the frame; attempt an immediate append through it, assert refusal with no write, then verify the transactional fact and receipt commit together. Check the refusal still holds between commit and disposal.
40
+
41
+ ## Acquire the read
42
+
43
+ Use the configured `Cratis.Chronicle` client with discovered event and model types, connected to the kernel. `var reads = eventStore.GetDecisionReads();` selects this store and namespace. Start with `reads.Admit<TripCapacity>()`: check `IsAdmitted` and `Reason`. `reads.Describe<TripCapacity>()` also lists `EventTypes` and `UsesPinnedGenerationDelivery`. Neither operation contacts the kernel. The same key-only API admits deterministic source reducers without event filters or constructor dependencies other than logging; generation delivery and dispatch must cover every fetched event.
44
+
45
+ - `await reads.Get<TripCapacity>(source.Value)` enrolls on the current unit; without a unit use `GetFor<TripCapacity>(unit, source.Value)` or the detached path above.
46
+ - For a declared stream on an `IEventSource` definition, annotate a source-keyed projection model with `[Cratis.Chronicle.ReadModels.EventStream<Trip>("Departures")]`. It is implicitly passive. Events lacking the declared source type are outside both fold and guard.
47
+ - Check `reads.AdmitForStream<DepartureCapacity>()`. Call `await reads.GetFor<DepartureCapacity>(unit, source, streamType, streamId, sourceType)` with the declared stream and source types. `Get` and `GetDetached` accept the same route without `unit`. For an ordinary stream-scoped projection the source type is optional; pass it if it bounds the decision. Never pass an all-stream selector.
48
+ - `unit.AddDecisionRead(read)` enrolls a detached result; `unit.HasEnrolledDecisionReads` reports enrollment, not ownership. To validate with no events, commit the enrolled unit or call `await eventStore.EventLog.AppendMany([], guardedBy: [read])`. Treat `DecisionReadValidateOnlyNotSupported` as failure, not success.
49
+ - A refused read throws `DecisionReadRefused`; its `Reason` (`DecisionReadRefusalReason`, table below) names the cause. That is not a racing append. On conflict `GetDecisionConflicts` identifies the model and key; conflicting event type and position are optional, especially when several reads share a predicate.
50
+
51
+ ### Refusal reasons
52
+
53
+ `Admit` and `Describe` report shape reasons without contacting the kernel; a read can add the runtime ones. Fix the cause; never fall back to a stored view.
54
+
55
+ | `Reason` | Cause and fix |
56
+ | --- | --- |
57
+ | `Reducer`, `ReducerDependencies`, `ReducerFilters`, `ReducerGeneration` | The model is reduced and the reducer is not admitted: it is not a discovered reducer class, has constructor dependencies beyond `ILogger<T>`, filters its events, or a handled event's declared generation is unavailable or was revised to another generation. |
58
+ | `AmbiguousProjection`, `NotEventLog`, `Join`, `Hierarchy`, `OpenEndedEventTypes`, `Derivatives`, `FromEventProperty` | Projection shape: not exactly one projection for the model, another sequence, a join, children or nested models, all-events subscription, derived event types, or routing by an event property. Give the decision its own flat event-log projection. |
59
+ | `NotEventSourceKeyed`, `KeyConversion`, `NoEventTypes`, `UnsupportedEventTypeId` | The model is not keyed by the raw event source ID, its key schema converts the ID to another type, or there is no finite encodable set of event types to guard. |
60
+ | `InvalidKey` | The key must be one event source ID: not empty, not a wildcard, no `#`, no surrounding whitespace. For a `Guid`-keyed model pass canonical lowercase `D` form; source IDs are assumed to have been written in that form. |
61
+ | `FoldIncomplete`, `ReducerDispatchIncomplete` | The fold did not reach the latest matching event, or the reducer did not dispatch every fetched event. Do not decide on the partial state; read again. |
62
+ | `DefinitionMissing` | The kernel lists no read-model or projection definition for the client's identifiers: wait for the client's artifact registration to complete, in this store. |
63
+ | `DefinitionMismatch` | The kernel's definition differs from the client's (or is listed more than once): another deployment registered a different shape. |
64
+ | `ReadModelRequiresStreamScope`, `StreamKeyRequiresStreamScope`, `StreamKeyRequiresExplicitStreamId`, `AllStreamsNotSupported`, `StreamScopeDoesNotMatchReadModel` | The stream read was called wrongly: use the stream read with the declared stream type, an explicit stream ID and the declared source type; never the all-streams selector. |
65
+ | `StreamScopeNotSupported` | Stream-scoped reads are unavailable here, so repeating the call cannot succeed. A reducer-built model never supports them: read a projection-built model instead. For a projection, the reader or kernel did not acknowledge the stream scope: run against a kernel and reader that support it. Fall back to a source-wide read only if guarding the whole source still expresses the rule. |
66
+ | `GenerationDeliveryNotSupported` | The decision fold cannot honor a projection pinned to an event generation; use compatibility delivery for that projection. |
67
+
68
+ A definition refusal is not remembered: the read re-checks once before refusing, the next read checks again, and agreement is re-established after every connect or disconnect. Once the matching definition is registered, reads recover without restarting the application.
69
+
70
+ ## Complete as owner
71
+
72
+ In a custom orchestrator (not an Arc handler), use the native `Cratis.Chronicle.Transactions.UnitOfWork` and open enforcement **before** any enrollment:
73
+
74
+ ```csharp
75
+ using var unit = (UnitOfWork)eventStore.UnitOfWorkManager.Begin(correlationId);
76
+ using var frame = unit.EnforceReadProtection();
77
+ var owner = unit.ClaimDecisionReadCommitOwnership();
78
+ try
79
+ {
80
+ var read = await reads.GetFor<TripCapacity>(unit, source.Value);
81
+ if (read.Instance is not { Available: > 0 })
82
+ {
83
+ await unit.RollbackAsOwner(owner);
84
+ return false;
85
+ }
86
+ unit.AddEvent(EventSequenceId.Log, source, new SeatReserved(), Causation.Unknown());
87
+ await unit.CommitAsOwner(owner);
88
+ return unit.IsSuccess;
89
+ }
90
+ catch
91
+ {
92
+ if (!unit.IsCompleted) await unit.RollbackAsOwner(owner);
93
+ throw;
94
+ }
95
+ ```
96
+
97
+ `Causation` is in `Cratis.Chronicle.Auditing`. Inspect `unit.GetDecisionConflicts()` on a refused commit; don't translate every failure into “no seats.” Set `ChronicleOptions.UnitOfWorkLifecyclePolicy` to `UnitOfWorkLifecyclePolicy.Strict` to reject staging during or after completion even outside enforced units (default `Compatibility`).
98
+
99
+ In a request owned by Chronicle ASP.NET Core middleware, obtain `HttpContext.Features.Get<IUnitOfWorkCompletionFeature>()` (`Cratis.Chronicle.AspNetCore.Transactions`); require the feature, then `var unit = await feature.CommitAsync();` **before writing the response**. Inspect `unit.IsSuccess` and conflicts. Don't claim the request's unit yourself.
100
+
101
+ ## Run a nested invocation under the frame
102
+
103
+ Under an enforced frame, raw reads and `GetDetached` are refused unless the frame's unit opens a read allowance: `using var allowance = unit.AllowReads(ReadAllowance.Advisory, "shown to the dispatcher only");` (`Cratis.Chronicle.Transactions`; the reason must be non-empty). `Advisory` guards nothing; `Contributed` is for a read you enroll with `unit.EnrolContributedRead(...)` before using its value. Neither permits an immediate append.
104
+
105
+ Allowances follow the async flow, so a nested invocation your host runs under the same frame (one handler invoking another) would inherit the caller's allowance. Suspend it for the nested invocation:
106
+
107
+ ```csharp
108
+ using (unit.SuspendReadRegions())
109
+ {
110
+ await RunNestedInvocation();
111
+ }
112
+ ```
113
+
114
+ Inside the suspension, reads are refused as if no region were open; regions the nested invocation opens itself apply as usual. Disposal restores the caller's regions without ending protection or removing any enrolled guard. Suspensions nest. Call it on the frame's unit; another unit throws `ReadProtectionUnitMismatch`. Arc's command pipeline already does this for nested commands.
115
+
116
+ ## Not supported in this SDK
117
+
118
+ - Stream-scoped reducer decisions: use an admitted stream-scoped projection or decide over the whole source with a source reducer.
119
+ - Joining, hierarchical, payload-keyed or open-ended projection decisions: remodel the facts into finite source-keyed histories and guard each dependency; do not substitute a materialized query.
120
+ - A protected decision spanning stores, namespaces or sequences: route the intent to an owner with one atomic decision boundary.
@@ -1,72 +1,90 @@
1
- # Refuse borrowing if the last copy is no longer available
1
+ # Reserve a seat only while capacity remains
2
2
 
3
- Inject the model into the validator for refusals or `Handle` to build the event. Both are protected under `On`.
3
+ ## Contents
4
4
 
5
- 1. Reference `Cratis.Arc.Chronicle`. Put the command and validator together in `Features/Books/Borrowing/`. Use `Isbn` as the command's only event-source-ID property: it selects both the book to read and the book to append to.
6
- 2. Put `public record Isbn(string Value) : EventSourceId<string>(Value);` in `Features/Books/Isbn.cs` (`Library.Features.Books`), and `[EventType] public record CopyAdded;` in `Features/Books/Stock/CopyAdded.cs` (`Library.Features.Books.Stock`); import `Cratis.Chronicle.Events` in both. Request `BookStock?` in the validator constructor. For a book with no events the validator receives `null` or an instance with `Available` 0; the rule refuses both.
5
+ - Common mistakes
6
+ - Check the capacity rule
7
+ - Check which read actually guards the append
8
+ - Where does the lookup key come from?
9
+ - Which scope guards the append?
10
+ - Rule over the raw events of the command's stream
11
+ - Failures that mean the command is wired wrong
12
+ - Related skills
13
+ - Validators outside On
14
+
15
+ Names are illustrative. Inject the model into the validator for refusals or `Handle` to build the event. Both are protected under `On`.
16
+
17
+ 1. Reference `Cratis.Arc.Chronicle`. Put the command and validator together in `Features/Trips/Reservations/`. Use `TripId` as the command's only event-source-ID property: it selects both the trip to read and the trip to append to.
18
+ 2. Share the source ID and event declarations across commands for the same trip. Request `TripCapacity?` in the validator constructor. For a trip with no events the validator receives `null` or an instance with `Available` 0; the rule refuses both.
7
19
  3. Leave `CratisReadProtection` unset: the `Cratis.Arc.Chronicle` build props default it to `On`. Without those props do not assume the default. Check with `dotnet msbuild -getProperty:CratisReadProtection`. In deployment, leave `Cratis__Arc__ReadProtection__MaximumMode` unset or set it to `On`; don't lower the maximum when competing writes must be refused.
8
20
 
9
21
  ```csharp
10
- // Features/Books/Borrowing/BorrowBook.cs
22
+ // Features/Trips/Reservations/ReserveSeat.cs
11
23
  using Cratis.Arc.Commands;
12
24
  using Cratis.Arc.Commands.ModelBound;
13
25
  using Cratis.Arc.Queries.ModelBound;
14
26
  using Cratis.Chronicle.Events;
15
27
  using Cratis.Chronicle.Projections.ModelBound;
16
28
  using Cratis.Chronicle.ReadModels;
17
- using Library.Features.Books;
18
- using Library.Features.Books.Stock;
19
29
  using FluentValidation;
20
30
 
21
- namespace Library.Features.Books.Borrowing;
31
+ namespace Dispatch.Features.Trips.Reservations;
22
32
 
23
- // BookBorrowed.cs
24
- [EventType] public record BookBorrowed;
33
+ public record TripId(string Value) : EventSourceId<string>(Value);
34
+ [EventType] public record SeatOffered;
25
35
 
26
- // BookStock.cs
36
+ // SeatReserved.cs
37
+ [EventType] public record SeatReserved;
38
+
39
+ // TripCapacity.cs
27
40
  [Passive, ReadModel]
28
- public record BookStock(Isbn Id, [Increment<CopyAdded>, Decrement<BookBorrowed>] int Available);
41
+ public record TripCapacity(TripId Id, [Increment<SeatOffered>, Decrement<SeatReserved>] int Available);
29
42
 
30
43
  [Command]
31
- public record BorrowBook(Isbn Isbn)
44
+ public record ReserveSeat(TripId TripId)
32
45
  {
33
- public BookBorrowed Handle() => new();
46
+ public SeatReserved Handle() => new();
34
47
  }
35
48
 
36
- public class BorrowBookValidator : CommandValidator<BorrowBook>
49
+ public class ReserveSeatValidator : CommandValidator<ReserveSeat>
37
50
  {
38
- public BorrowBookValidator(BookStock? stock) =>
39
- RuleFor(command => command.Isbn)
51
+ public ReserveSeatValidator(TripCapacity? stock) =>
52
+ RuleFor(command => command.TripId)
40
53
  .Must(_ => stock is { Available: > 0 })
41
- .WithMessage("No copies of this book are available.");
54
+ .WithMessage("The trip has no seats left.");
42
55
  }
43
56
  ```
44
57
 
45
- ## Check the stock rule
58
+ ## Common mistakes
59
+
60
+ - Inject the decision model into the command path; an earlier display read does not guard a later append.
61
+ - Treat a concurrency refusal as a stale decision; read and decide again rather than resending the event.
46
62
 
47
- In the validator spec, validate a `BorrowBook` against `null`, `new BookStock(isbn, 0)` and `new BookStock(isbn, 1)`; only the last should pass. This checks the rule, not the guard.
63
+ ## Check the capacity rule
48
64
 
49
- Optional manual check: in a disposable host with one copy left, pause at `Handle()` after validation. Append `BookBorrowed` from another process to the same book and namespace. Confirm that append, then resume. Expect a concurrency refusal and no second borrowing.
65
+ In the validator spec, validate a `ReserveSeat` against `null`, `new TripCapacity(tripId, 0)` and `new TripCapacity(tripId, 1)`; only the last should pass. This checks the rule, not the guard.
66
+
67
+ Optional manual check: in a disposable host with one seat left, pause at `Handle()` after validation. Append `SeatReserved` from another process to the same trip and namespace. Confirm that append, then resume. Expect a concurrency refusal and no second reservation.
50
68
 
51
69
  ## Check which read actually guards the append
52
70
 
53
- For a three-loan limit, give `BorrowBook` a `MemberId` property. Count `LoanTaken` and `LoanReturned` facts appended **to the member**, not book events grouped by a payload property. The validator constructor selects each source separately:
71
+ For a three-reservation limit, give `ReserveSeat` a `RiderId` property. Count `ReservationAdded` and `ReservationCancelled` facts appended **to the rider**, not trip events grouped by a payload property. The validator constructor selects each source separately:
54
72
 
55
73
  ```csharp
56
- public BorrowBookValidator(
57
- [LookUpBy(nameof(BorrowBook.Isbn))] BookStock? stock,
58
- [LookUpBy(nameof(BorrowBook.MemberId))] MemberLoans? loans)
74
+ public ReserveSeatValidator(
75
+ [LookUpBy(nameof(ReserveSeat.TripId))] TripCapacity? stock,
76
+ [LookUpBy(nameof(ReserveSeat.RiderId))] RiderReservations? reservations)
59
77
  {
60
- RuleFor(c => c.Isbn).Must(_ => stock is { Available: > 0 })
61
- .WithMessage("No copies of this book are available.");
62
- RuleFor(c => c.MemberId).Must(_ => loans is null || loans.Active < 3)
63
- .WithMessage("The member has reached the loan limit.");
78
+ RuleFor(c => c.TripId).Must(_ => stock is { Available: > 0 })
79
+ .WithMessage("The trip has no seats left.");
80
+ RuleFor(c => c.RiderId).Must(_ => reservations is null || reservations.Active < 3)
81
+ .WithMessage("The rider has reached the reservation limit.");
64
82
  }
65
83
  ```
66
84
 
67
- Return both events in one `IEnumerable<EventForEventSourceId>` batch: `BookBorrowed` to the book and `LoanTaken` to the member. Under `On`, a conflicting change to either guarded source refuses the batch. A lookup does not make a payload-keyed projection protectable.
85
+ Return both events in one `IEnumerable<EventForEventSourceId>` batch: `SeatReserved` to the trip and `ReservationAdded` to the rider. Under `On`, a conflicting change to either guarded source refuses the batch. A lookup does not make a payload-keyed projection protectable.
68
86
 
69
- ### Where does the lookup key come from?
87
+ ## Where does the lookup key come from?
70
88
 
71
89
  - Prefer an injected model: use the command's source key, `[LookUpBy(nameof(Property))]` for another command property, or `[LookUpBy<CallerSubject>]` in `Handle` for the authenticated subject.
72
90
  - For a key on another protected model in the same member, use `[LookUpBy("order", nameof(OrderSummary.CustomerId))]`. The property must match the target key type; both reads are guarded under `On`.
@@ -74,20 +92,47 @@ Return both events in one `IEnumerable<EventForEventSourceId>` batch: `BookBorro
74
92
 
75
93
  A null or blank secondary scalar key gives a nullable model parameter `null` without a read or guard. A valid key with no instance still keeps its guard: if no matching event exists yet, the first matching append by someone else refuses this one. For required keys, reject blanks before invocation if you need a field message: acquisition can fail before validator rules run.
76
94
 
77
- ### Which scope guards the append?
95
+ ## Which scope guards the append?
78
96
 
79
97
  Prefer the inferred guard. An explicit scope must cover each protected read's source, event types and stream without narrowing them, and expect a position at or before the read's, or expect no matching event. `ExplicitScopeDoesNotCoverReads` means fix or remove the scope. `ReadChanged` means the guard was invalidated, for example by a competing write; read again before resubmitting.
80
98
 
81
99
  Mark advisory reads `[Unprotected("display only")]` (`Cratis.Arc.Chronicle.ReadModels`). A method annotation covers body reads, not injected parameters (`ARCCHR0034`). If a body read affects a decision, name its independent append guard.
82
100
 
83
- `Cratis:Arc:ReadProtection:<name>` takes precedence over `ReadProtection:<name>`. `Off` does not guard, `Measure` does not enforce, and a runtime ceiling can lower but never raise the declared mode. Generated metadata is required by default even on JIT. Explicitly setting `RequireGeneratedMetadata` to `false` permits compatibility only where dynamic code is supported.
101
+ The project property becomes an assembly-level `[ReadProtection(mode)]` (`Cratis.Arc.Commands`). Put `[ReadProtection(ReadProtectionMode.Measure)]` on one command to override the assembly's mode for it; declare the assembly mode through the property, not a second attribute. Lowering a command below `On` removes its guard, so treat it like lowering the project. `Cratis:Arc:ReadProtection:<name>` takes precedence over `ReadProtection:<name>`. `Off` does not guard, `Measure` does not enforce, and a runtime ceiling can lower but never raise the declared mode. Generated metadata is required by default even on JIT. Explicitly setting `RequireGeneratedMetadata` to `false` permits compatibility only where dynamic code is supported.
84
102
 
85
103
  Outside Arc's command pipeline, [guard the standalone append explicitly](csharp-standalone.md). Check `Admit<T>()` before depending on a finite event-log projection or unfiltered reducer. A join, incompatible key, reducer filter or injected fold dependency can prevent admission. A stream read must cover that stream: use the declared stream type and ID where required, not a key-only read; reducers are not admitted for that path. Enroll a detached token in the unit that commits. Nested helpers must not complete the owner's unit. On refusal, do not degrade to a materialized read.
86
104
 
105
+ For a source’s filtered tail, an empty-history check, manual predicates and strategy settings see [Explicit append guards](csharp-scopes.md).
106
+
107
+ ## Rule over the raw events of the command's stream
108
+
109
+ When the rule reads best over the events of the one stream the Arc command is routed to, and a competing write to that stream must refuse the command, use a stream decision instead of a read model. Declare `public Task<StreamDecision> Provide(IStreamReads reads) => reads.ForCommand();` (`Cratis.Arc.Chronicle.Streams`), take `StreamDecision decision` in `Handle`, inspect it with `decision.Has<TEvent>()` or `decision.EventsOf<TEvent>()`, and return `decision.Append(...)`. That append is guarded by the revision that was read.
110
+
111
+ - `decision.Append([])` records nothing and guards nothing; it is neither a rejection nor a revision check. Refuse with a `ValidationResult`.
112
+ - The command needs a specified event source ID, a declared stream type and a stream ID other than the default; otherwise the read fails with `StreamDecisionRequiresSpecificRoute`.
113
+ - Remove `concurrency: true` from the command's routing attributes: the decision's scope replaces automatic capture.
114
+
115
+ The full pattern, other routes and failures are in the `cratis-arc-declare-command` skill's C# guidance on deciding from event history.
116
+
117
+ ## Failures that mean the command is wired wrong
118
+
119
+ Under `On` these are code defects, not competing writes. Fix the command; never catch and retry them.
120
+
121
+ | Failure | Cause | Fix |
122
+ | --- | --- | --- |
123
+ | `ReadRefusedWhileReadsAreProtected`, `DetachedReadWhileReadsAreProtected` | The command read state through a path that cannot be guarded | Take the model as a parameter, read through `IDecisionReads` or `DecisionRead<T>` in `Handle`, or mark an advisory read `[Unprotected("why")]` |
124
+ | `ImmediateAppendWhileReadsAreProtected` | The command appended directly instead of through its commit | Return the event from `Handle`, or append through `IEventLog.Transactional` |
125
+ | `ReadOfSourceWithStagedEvents` | A source was read after events for it were staged; the read cannot see them | Decide once in the outer command and pass the value down |
126
+ | `ReadAfterProtectedCommit` | A read ran after an aggregate `Commit()` | Read before committing; return the commit result last |
127
+ | `ReadAndAggregateOnSameSource` | A read model and an aggregate guard the same source | Decide from one of them |
128
+ | `DecisionReadConflictsWithConcurrencyScope` | One source has both a decision read and an explicit concurrency scope | Remove the explicit scope, or do not decision-read that source |
129
+ | `DeclaredRoutingNotCoveredByExplicitScope` | An explicit scope is narrower than the concurrency the event source declares | Widen the scope or remove the declared concurrency |
130
+ | `DecisionReadRequiresUnitOfWork` | A decision read ran with no ambient unit of work | Read inside the command or an owned unit |
131
+
87
132
  ## Related skills
88
133
 
89
134
  - Validate command input (`cratis-arc-validate-command` skill in `cratis/arc/csharp`)
90
- - [Reserve a unique value](../../cratis-chronicle-constrain-append/SKILL.md)
135
+ - Reserve a unique value (`cratis-chronicle-constrain-append`)
91
136
 
92
137
  ## Validators outside On
93
138
 
@@ -1,30 +1,75 @@
1
1
  # Read and stage the Elixir decision in the same process
2
2
 
3
- For a registered `Seat` projection keyed by seat ID, use the same client and namespace options throughout:
3
+ Start the configured `Cratis.Chronicle.Client` against the target store, with the event modules registered and `read_models: [Bay]`. Names are illustrative. Let `Bay` project `BayAssigned` and remove the instance on `BayReleased`, both keyed by bay source ID. Use a binary ID and the same client, namespace and event log throughout.
4
4
 
5
5
  ```elixir
6
6
  alias Cratis.Chronicle.EventSequences.EventLog
7
7
  alias Cratis.Chronicle.ReadModels.DecisionReads
8
8
 
9
9
  Cratis.Chronicle.decide(fn _unit ->
10
- case DecisionReads.get(Seat, seat_id, opts) do
11
- {:ok, %{instance: nil}} -> EventLog.append(seat_id, %SeatBooked{by: borrower}, opts)
12
- {:ok, _occupied} -> {:error, :already_booked}
10
+ case DecisionReads.get(Bay, bay_id, opts) do
11
+ {:ok, %{instance: nil}} -> EventLog.append(bay_id, %BayAssigned{}, opts)
12
+ {:ok, _busy} -> {:error, :bay_busy}
13
13
  {:error, reason} -> {:error, reason}
14
14
  end
15
15
  end, opts)
16
16
  ```
17
17
 
18
- Use the result of `decide`, not the buffered append, to decide whether the booking succeeded. `get` requires a unit of work; a detached lookup alone does not protect the later append. Race a booking from a separate process before commit and require a decision conflict rather than two successful reservations.
18
+ `get` enrolls even a missing instance; outside a current unit it returns `{:error, :requires_unit_of_work}`. `decide` rolls back a returned error tuple or a raised exception (re-raising it). Otherwise it attempts commit and returns `{:ok, callback_result}` on success. Respond only after it returns. A race returns `{:error, %Cratis.Chronicle.ReadModels.DecisionConflict{violations: violations}}`; inspect the raw violations by source, then evaluate a new decision. A business rejection, read error or unknown commit outcome is not a confirmed race. `UnitOfWork.with_unit_of_work/2` raises on a decision conflict; use `decide` for the error-tuple flow.
19
19
 
20
- ## Admit the model before using it
20
+ ## Admission and stream reads
21
21
 
22
- `DecisionReads.admit/2` and `admit_for_stream/2` check the shape without I/O and return `{:ok, event_types}` or `{:error, reason}`. A passive reducer (`active: false`) can be admitted; an active one cannot. `get` and `get_detached` raise `DecisionReadRefused` for a refused shape: fix the declaration instead of treating it as a race. Diagnose `:reducer`, `:join`, `:hierarchy`, `:not_event_log`, `:open_ended_event_types`, `:no_event_types`, `:not_event_source_keyed` and `:unsupported_event_type_id` from the shape. A read can also refuse with `:all_streams_not_supported`, `:stream_scope_not_supported` or `:fold_incomplete`. A racing commit instead returns `{:error, %DecisionConflict{}}` from `decide/2`; re-read and decide again.
22
+ - `DecisionReads.admit(Bay, opts)` checks local shape without querying the kernel: `{:ok, types}` describes the finite union of `from` and `removed_with` event types; `{:error, reason}` explains ineligibility. Both clauses must use the source ID. No joins (including joined removal), children, `from_every`, empty type sets, comma-containing type IDs or non-event-log projections.
23
+ - For a deterministic source fold instead, configure `reducers: [BayReducer]` with `use Cratis.Chronicle.Reducers.Reducer, active: false` and declared handled events. Pass its **model** to the same `get`. The client folds decoded source events through the observed boundary. Active reducers are refused.
24
+ - `DecisionReads.admit_for_stream(Bay, opts)` checks the same local shape. Inside `decide`, `DecisionReads.get(Bay, bay_id, "Shifts", shift_id, Keyword.put(opts, :event_source_type, "Bay"))` asks for a projection fold and guard restricted to that concrete stream. Route the events accordingly; guard filters do not route writes. Omit source type only if the decision spans classifications. Do not use the stream overload for a reducer: its fold and guard are source-wide.
25
+ - `get` and `get_detached` raise `Cratis.Chronicle.ReadModels.DecisionReadRefused` on refusal. In addition to shape errors, an empty or `"All"` stream type, a lookup that did not apply stream scope, or an incomplete fold cannot support this decision. Do not substitute an ordinary lookup. The reason atoms are `:reducer` (active reducer), `:join`, `:hierarchy`, `:not_event_log`, `:open_ended_event_types`, `:no_event_types`, `:not_event_source_keyed`, `:unsupported_event_type_id`, `:all_streams_not_supported`, `:stream_scope_not_supported` and `:fold_incomplete`; `admit` returns the shape ones as `{:error, reason}`.
23
26
 
24
- ## Protect an explicit tail
27
+ ## Detached evidence and ownership
25
28
 
26
- Use `ConcurrencyScope.at_tail/2` for a named scope, or `ConcurrencyScope.expecting_no_matching_event(event_source_id: true, event_types: [SeatBooked])` for a known-first write. Leaving the sequence number unset turns the check off; it does not assert absence.
29
+ Use `get_detached` with the same arguments (include `opts` for the stream form) when the unit is supplied separately. For example, inside a helper with the owner's `unit`:
27
30
 
28
- ## Choose the default optimistic strategy
31
+ ```elixir
32
+ alias Cratis.Chronicle.Transactions.UnitOfWork
33
+
34
+ with {:ok, read} <- DecisionReads.get_detached(Bay, bay_id, opts),
35
+ :ok <- UnitOfWork.add_decision_read(unit, read) do
36
+ {:ok, read.instance}
37
+ end
38
+ ```
39
+
40
+ `UnitOfWork.has_decision_reads?(unit)` and `UnitOfWork.get_decision_reads(unit)` inspect enrollment. Several reads of one source merge at the earliest boundary (absence takes precedence), union the types, and broaden unequal routing dimensions. Mixing an explicit event scope and an enrolled read on the same source raises. Keep commit/rollback in the owner, not helpers; if manually using `UnitOfWork.begin(opts)`, complete with `UnitOfWork.commit(unit)` or `UnitOfWork.rollback(unit)` and stop the Agent when finished.
41
+
42
+ ## Explicit append predicates
43
+
44
+ For an explicit decision, retain the actual boundary and exact dimensions used by the read. For example, when only assignments and releases in one shift affected that read:
45
+
46
+ ```elixir
47
+ alias Cratis.Chronicle.Events.ConcurrencyScope, as: Scope
48
+ alias Cratis.Chronicle.EventSequences.EventForEventSourceId
49
+
50
+ scope = Scope.new(observed_position)
51
+ |> Scope.with_event_source()
52
+ |> Scope.with_event_source_type("Bay")
53
+ |> Scope.with_event_stream_type("Shifts")
54
+ |> Scope.with_event_stream_id(shift_id)
55
+ |> Scope.with_event_type(BayAssigned)
56
+ |> Scope.with_event_types([BayReleased])
57
+
58
+ entry = %EventForEventSourceId{event_source_id: bay_id, event: %BayAssigned{},
59
+ event_source_type: "Bay", event_stream_type: "Shifts", event_stream_id: shift_id,
60
+ concurrency_scope: scope}
61
+ EventLog.append_many_for_event_sources([entry], opts)
62
+ ```
63
+
64
+ - `Scope.for_event_source(position, event_types: types)` sets `event_source_id: true` (match the entry's source); `Scope.with_sequence_number(scope, position)` sets the observed upper bound. Pass `concurrency_scope: scope` to a single `EventLog.append` or `append_many`, or supply a scope per entry as above. Unequal explicit scopes for one source in a batch return `{:error, {:duplicate_concurrency_scope, id}}`.
65
+ - `Scope.expecting_no_matching_event(event_source_id: true, event_types: types)` asserts absence; `Scope.expecting_no_matching_event(scope)` keeps existing filters. Position zero is a real position. `Scope.none()` explicitly disables checking; reserve it for unconditional writes.
66
+ - `Scope.at_tail(bay_id, Keyword.put(opts, :event_types, types))` returns `{:ok, scope}` or an error; it also accepts stream type, stream ID and source type filters. Do not use a newly sampled tail to protect an earlier decision or use a normalized empty tail to assert absence.
67
+ - `event_source: BaySource, event_stream: stream` selects definition routing; declared concurrency dimensions can derive a guard. An explicit scope wins. On otherwise unguarded appends, client `concurrency: [default: :optimistic, check_first_append: true]` checks the routed tail and guards an empty history. The strategy defaults to `:none`; with optimistic strategy alone, empty histories go unchecked. Neither append-time strategy protects an earlier read.
68
+
69
+ ## Not supported in this SDK
29
70
 
30
- `concurrency: [default: :optimistic, check_first_append: true]` on the client checks the routed tail for appends without an explicit or definition-derived scope. Set `check_first_append: true` to protect an empty scope too. Two unequal explicit scopes for one source in a batch fail with `{:error, {:duplicate_concurrency_scope, id}}`. Do not discard a predicate to make the append work.
71
+ - No per-stream model declaration, stream-ID-keyed admission or stream-limited passive reducer fold: use an admitted source-keyed projection and explicit stream lookup.
72
+ - No separate delivery-description API or enforced validator/handler injection: inspect admission types, read each dependency explicitly in `decide`, and keep display reads out of acceptance logic.
73
+ - No owner token, enforced immediate-append ban or middleware early-completion API: keep staging in the deciding process, let only the command owner finish, and wait for its result.
74
+ - No validate-only decision commit: an empty event batch succeeds without checking guards. If acceptance must be durable, stage the event recording it.
75
+ - No custom strategy callback or source-bound operations handle: construct explicit predicates and pass the source ID to each append.
@@ -1,23 +1,73 @@
1
- # Enroll a Go decision before the owner commits
1
+ # Guard a decision in Go
2
2
 
3
- The released Go client does not enroll decision reads against the current kernel: its capability check requires the exact server and protocol it was characterized against. Delegate the entire decision and append to a supported writer. Do not bypass compatibility checking.
3
+ The Go client's model-based decision reader requires a successful preflight with an exact server **and** protocol match. The current kernel is outside that allowlist. Send the intent to a compatible writer that both decides and commits, or use an explicit history-based guard if it covers every fact. `WithSkipCompatibilityCheck` does not enable model reads. An Arc command reads through the same reader, so the same admission applies there. Names below are illustrative; SDK subpackages are under `github.com/cratis/chronicle.go` (root import `chronicle`).
4
4
 
5
- If an existing deployment already admits Go decision reads, use the following same-owner pattern; it is not an upgrade or installation recipe.
5
+ ## Guard a decision made from source history
6
6
 
7
- Register a supported event-source-keyed projection, begin a transaction against the same store's event log and retain its owner. Import the decision and transaction packages:
7
+ Use the same `store.EventLog()` for the read and append. Register the event types on the client's registry. Here `bay` is an `events.SourceID`, and `occupancyTypes` contains the registered `events.TypeRef` values for **both** claims and releases. The application's `occupied` fold must process the returned history in order and propagate decoding failures.
8
8
 
9
9
  ```go
10
- import (
11
- "github.com/cratis/chronicle.go/readmodels"
12
- "github.com/cratis/chronicle.go/transactions"
13
- )
10
+ seq := store.EventLog()
11
+ h, err := seq.ReadHistory(ctx, bay, eventsequences.SourceFilter{EventTypes: occupancyTypes})
12
+ if err != nil { return err }
13
+ busy, err := occupied(h.Events)
14
+ if err != nil { return err }
15
+ if busy { return ErrBusy }
16
+ r, err := seq.Append(ctx, bay, BayClaimed{}, eventsequences.WithScope(h.Scope()))
17
+ if err != nil { return err } // retain disposition when resolving uncertain outcomes
18
+ return r.Err()
14
19
  ```
15
20
 
16
- Inside the decision function, read with the transaction's participant `unit`:
21
+ - `h.Scope()` copies the actual read filter and `Exact(lastPosition)` or `NoMatchingEvent()` for empty history. Exact rejects later matching events, not unrelated later positions. Position zero is real. Neither `ReadSource` alone nor a new `Tail` after folding supplies this read boundary.
22
+ - For route-specific history, use `SourceFilter{SourceType: kind, StreamType: stream, StreamID: id, EventTypes: refs}`. Route the append independently with `WithRoute(eventsequences.Route{SourceType: kind, StreamType: stream, StreamID: id})`. A guard filters history; it does not route the new event.
23
+ - For an independently justified predicate, use `eventsequences.Scope{Expectation: eventsequences.NoMatchingEvent(), Filter: eventsequences.ScopeFilter{SourceID: &bay, SourceType: &kind, StreamType: &stream, StreamID: &id, EventTypes: refs}}`. Omit only dimensions not used by the decision. Use `eventsequences.Exact(position)` for an observed boundary; `eventsequences.NoCheck()` only for deliberately unconditional appends.
24
+ - `seq.AppendMany(ctx, bay, values, eventsequences.WithScope(h.Scope()))` shares one check across same-source events. For multiple dependencies use `seq.AppendBatch(ctx, entries, eventsequences.WithScopes(bayCheck, carrierCheck))` where e.g. `bayCheck := eventsequences.LabeledScope{Label: string(bay), Scope: h.Scope()}`. Labels must be nonblank, unique and equal any narrowed source ID. No event is needed for a dependency's label. Handle both operation error and result as above.
25
+ - Without explicit scopes the default resolves the source and route at dispatch. `seq.ResolveScope(ctx, filter)` applies the configured strategy to explicit dimensions and resolves the tail now; `eventsequences.Resolve()` requests matching-tail resolution. `seq.Tail(ctx, eventsequences.TailFilter(filter))` returns position, found flag and error. None reconstruct an earlier decision boundary.
26
+ - Configure client options at dial: `chronicle.WithCheckFirstAppendIntoAScope(true)` turns an empty resolved tail (unchecked by default) into checked absence. Explicit absence, position and no-check win. `chronicle.WithDefaultConcurrencyStrategy(strategy)` supplies `GetScope(context.Context, *eventsequences.Sequence, eventsequences.ScopeFilter) (eventsequences.Scope, error)`; honor cancellation and concurrent calls. Explicit scopes bypass strategy selection.
27
+
28
+ ## Model reads on a preflight-admitted deployment only
29
+
30
+ Before dialing, register events with `chronicle.RegisterEvent[BayClaimed](registry)` and the model with `model, err := chronicle.RegisterReadModel[Bay](registry)`. Register its projection, for example `registry.AddProjection(projections.ModelBound(model, projections.Passive()))` for a tagged model, checking every error. Pass `chronicle.WithRegistry(registry)` at dial. The schema key must actually be `id` or `Id`, string or UUID; the `chronicle:"key"` field tag does not rename it.
31
+
32
+ `reader := readmodels.DecisionsFor(store.ReadModels(), model)` selects one active or passive event-log projection. `a := reader.Admit()` reports `a.IsAdmitted` and `a.Reason` locally, without proving runtime agreement. Use finite registered `From` and `RemovedWith` dependencies, including all removals. Root `All` mappings can operate over this finite set. Handler, parent and `All` keys must be omitted or `$eventSourceId`. No unresolved generations or comma-containing event IDs. Supply an unpadded, nonblank `readmodels.Key`, not `*` or a value containing `#`; UUID text must be canonical lowercase and hyphenated.
17
33
 
18
34
  ```go
19
- reader := readmodels.DecisionsFor(store.ReadModels(), model)
35
+ // In a function returning (result eventsequences.BatchResult, err error):
36
+ unit, owner, err := transactions.Begin(ctx, store.EventLog())
37
+ if err != nil { return result, err }
38
+ defer func() { err = errors.Join(err, owner.Rollback()) }()
20
39
  read, err := reader.Get(transactions.WithUnitOfWork(ctx, unit), key)
40
+ if err != nil { return result, err }
41
+ if read.Instance.Exists && read.Instance.Value.Occupied { return result, ErrBusy }
42
+ err = unit.Stage(ctx, []eventsequences.Entry{{Source: events.SourceID(key), Event: BayClaimed{}}})
43
+ if err != nil { return result, err }
44
+ result, err = owner.Commit(ctx)
45
+ if err != nil { return result, err }
46
+ return result, result.Err()
21
47
  ```
22
48
 
23
- Handle errors first, then check `read.Instance.Exists` before using its value. Stage only the resulting events and let the owner commit once. Inspect both the operation error and the returned disposition and result error. Do not retry an ambiguous write. To prove the guard, let another writer change the same admitted history between `Get` and commit; expect the whole stale batch to be refused.
49
+ `Get` needs a participant; it does not create one. Absence enrolls a guard too. Alternatively `read, err := reader.GetDetached(ctx, key)` does not enroll: after checking `err`, use `err = unit.Enroll(read.Token)` and stop on failure. First successful enrollment binds every token copy permanently to that owner, even after rollback. Zero tokens, different client/store/namespace/sequence, changed catalog epoch or connection generation, colliding scopes and terminal units are refused.
50
+
51
+ Only share the participant; keep the owner at the request boundary. Reads for one source merge at the earliest boundary with the union of dependencies. Protected commits add no automatic effect-source scopes. Supply independent explicit checked scopes via `unit.Stage(ctx, entries, check)` if needed; colliding labels, unchecked and unresolved scopes are refused. With an enrolled read but no events, `owner.Commit(ctx)` validates the guards in a single plain batch without dummy events; an entirely empty unit validates nothing.
52
+
53
+ ## Arc command decisions
54
+
55
+ When the write is an Arc command, let the command own the read and its commit instead of passing a participant by hand. With the Chronicle integration installed on the builder, certify it once: `decisions, err := sdk.EnableDecisions(builder, adapter)` (`sdk` is `github.com/cratis/arc.go/integrations/chronicle/sdk`). Register the command with `commands.WithProtectedDecisions[ClaimBay]()` paired with `commands.WithoutModelValidation[ClaimBay]()`. In the provide step of `commands.Prepare`, call `d, err := sdk.ReadDecision(ctx, inv, decisions, model, readmodels.Key(c.BayID))`, propagate the error and return `commands.Provided(d)`. The handler receives the `*sdk.Decision[Bay]` and branches on `d.Instance().Exists` and `.Value`.
56
+
57
+ - Arc verifies the evidence after the provide step and before the handler, and the integration enrolls it on the command's own event-log transaction. A competing append of a dependency event for that key rejects the whole batch: the command is not committed and carries a concurrency-violation validation result. Read again and resubmit. An unknown commit outcome is never retried for you; reconcile it first.
58
+ - Repeated reads of one model and key in a command share one fold and one enrollment. Validate-only execution skips the provide step and enrolls nothing.
59
+ - `commands.WithUnprotectedDecisions[C]()` makes `sdk.ReadDecision` return an advisory snapshot: `d.IsProtected()` is false and nothing is enrolled. Use it for display-only reads, never as a fallback for a refused protected read. On an unmarked command the read is refused with `commands.ErrDecisionProfile`.
60
+ - Protected refusals wrap `commands.ErrDecisionRead` and keep their cause, so `errors.As` still finds `*readmodels.DecisionReadRefused`. If a failed enrollment is ignored and events are still returned, the transaction is rolled back.
61
+
62
+ ## Diagnose refusal versus conflict
63
+
64
+ - Use `errors.As` with `*readmodels.DecisionReadRefused` for `Reason` (shape/key, definition disagreement, incomplete or ahead fold); `errors.Is(err, chronicle.ErrUnsupported)` for capability refusal. Neither authorizes an unguarded write. Keep model definitions and existing history stable: agreement checks do not atomically bind revisions.
65
+ - Check `result.Disposition`, operation error, `result.Err()` and, for protected commits, `result.ConcurrencyCheckPerformed`. A confirmed commit with an unsupported-check error must not be retried. Reconcile unknown outcomes before retrying. On confirmed concurrency rejection inspect `result.ConcurrencyViolations` (`SourceID` label, `Expected`, `Actual`); `unit.GetDecisionConflicts()` maps labels back to enrolled model/key pairs. Re-read and decide again, never replay the stale batch. Constraint violations and append errors are separate diagnostics.
66
+
67
+ ## Not supported in this SDK
68
+
69
+ - Reducer, joined, child/nested, property-keyed or open-ended decision models; stream admission, per-stream model declarations and stream-specific decision tokens. Use a complete explicit history fold and scope where representable, otherwise delegate the whole command.
70
+ - A decision description exposing delivery/dependency details, or a public enrollment-presence query. Inspect local admission and track successful enrollments in the owner instead.
71
+ - Validators and command operations taking part in a protected decision: a protected Arc command admits neither model nor custom validators. Put every acceptance check in the handler, on the decision's instance.
72
+ - A middleware early-completion feature or a strict immediate-append prohibition. Outside an Arc command, pass the participant explicitly, keep direct sequence handles away from helpers, and commit before sending success.
73
+ - Passing a detached token directly as an append option. Enroll it on the same target's participant; a hand-built scope is not a decision token.
@@ -1,5 +1,78 @@
1
- # Carry the Java decision's scope into the append
1
+ # Guard the Java append with the history actually read
2
2
 
3
- With the registered event and a `ConcurrencyScope` covering the actual source, filters and position read, construct `var options = new AppendOptionsBuilder().concurrencyScope(scope).build();`. Pass those options to the append that records the decision. A scope of `none` deliberately removes protection. If a second worker changes the guarded history after the read, require the append to refuse and verify no stale event was stored.
3
+ Use the Chronicle JVM client with a connected `EventStore` in the intended namespace. Register the `@EventType` classes before reading or appending. Use the blocking facade from `io.cratis.chronicle.java` in the command owner. It does not turn a read-model lookup into a protected read. `BlockingEventStore.getEventLog()` already returns a `BlockingEventSequence`; wrap only a suspending store's log yourself. The static bridges below take the suspending sequence, so pass `log.unwrap()` when you hold the blocking one.
4
4
 
5
- Do not assume automatic protection for an injected view. If the worker cannot construct a scope covering all the decision's inputs, delegate both evaluation and append to a guarded service.
5
+ ## One bay, two events that determine occupancy
6
+
7
+ Here `BayAssigned` and `BayReleased` use their simple class names as registered IDs. Every occupancy change for the bay must use its ID as event source. Read the complete matching history, not the current projection followed by a tail query. In this rule the last occupancy change alone determines whether the bay is free.
8
+
9
+ ```java
10
+ import io.cratis.chronicle.eventSequences.AppendedEvent;
11
+ import io.cratis.chronicle.eventSequences.concurrency.ConcurrencyScopeBuilder;
12
+ import io.cratis.chronicle.events.EventTypeDescriptor;
13
+ import io.cratis.chronicle.java.*;
14
+ import java.util.Comparator;
15
+ import java.util.List;
16
+
17
+ // Inside the command, with store, bayId and the proposed assignment in scope:
18
+ var log = new BlockingEventSequence(store.getEventLog());
19
+ var assigned = EventTypeDescriptor.parse("BayAssigned");
20
+ var released = EventTypeDescriptor.parse("BayReleased");
21
+ var releasedId = "BayReleased+"; // toString() is id+generation
22
+ var history = log.getForEventSourceIdAndEventTypes(bayId, BayAssigned.class, BayReleased.class);
23
+ var last = history.stream().max(Comparator.comparingLong(
24
+ (AppendedEvent e) -> e.getContext().getSequenceNumber()));
25
+ if (last.isPresent() && !last.get().getContext().getEventType().toString().startsWith(releasedId)) {
26
+ throw new IllegalStateException("Bay occupied"); // business refusal, not a race
27
+ }
28
+ var builder = new ConcurrencyScopeBuilder().withEventSourceId()
29
+ .withEventTypes(List.of(assigned, released));
30
+ if (last.isEmpty()) builder.withExpectsNoMatchingEvent();
31
+ else ConcurrencyScopeBuilderJavaBridge.withSequenceNumber(builder, last.get().getContext().getSequenceNumber());
32
+ var scope = builder.build();
33
+ var options = new AppendOptionsBuilder().concurrencyScope(scope).build();
34
+ var result = log.append(bayId, assignment, options);
35
+ ```
36
+
37
+ Compare the event type by ID: descriptor equality also compares generation and tombstone, and Java cannot reach the descriptor's inline ID accessor, so match the `id+` prefix of `toString()`. The bridge accepts a Java `long`; the underlying builder takes a Kotlin value class. A concrete position rejects *later matching* events; zero is an actual position. For a successful empty read assert absence instead; combining absence and an actual position is invalid. Do not treat a read error as empty. Report success only on `result.isSuccess()`. On `result.getConcurrencyViolation() != null`, inspect `getEventSourceId()` on the violation and re-decide from new history. Otherwise inspect `getConstraintViolations()` and `getErrors()`; reconcile an unknown transport outcome before retrying. In a two-writer check, interleave both reads before either append: only one assignment should be stored.
38
+
39
+ ## Select only dimensions the decision actually used
40
+
41
+ `withEventSourceId()` selects the append's source ID, not a supplied ID. Without it the check is not source-local. Unset type/stream selectors and an empty type list do not restrict matching. `withEventType(assigned)` adds one descriptor; `withEventTypes(...)` adds several and `build()` removes duplicates. Include releases, not only assignments. Match registered IDs and generations (`EventTypeDescriptor.parse("BayAssigned+2")` when appropriate).
42
+
43
+ For a read confined to a classified source and concrete stream, add `builder.withEventSourceType("Depot").withEventStreamType("Shift").withEventStreamId(shiftId)` **only if** these are the dimensions of the history folded. Route writes consistently, e.g. `.eventSourceType("Depot").eventStreamType("Shift").eventStreamId(shiftId)` on the options builder. Guard filters do not route the write. `log.getTailSequenceNumber(bayId)` reads a source tail, not a boundary for an independently fetched view.
44
+
45
+ ## Share a guard or check several sources atomically
46
+
47
+ For several events against one source, use `log.appendMany(bayId, events, options)`. Alternatively stage source-bound operations and let the owner perform them once:
48
+
49
+ ```java
50
+ var ops = EventSequenceOperationsJavaBridge.operationsFor(store.getEventLog());
51
+ EventSequenceOperationsJavaBridge.forEventSourceId(ops, bayId, source -> {
52
+ source.withConcurrencyScope(scope);
53
+ EventSourceOperationsJavaBridge.append(source, assignment);
54
+ });
55
+ var results = EventSequenceOperationsJavaBridge.perform(ops);
56
+ ```
57
+
58
+ For distinct sources, supply the guarded IDs as map keys, not as stream IDs (`EventForEventSourceId` is in `io.cratis.chronicle.eventSequences`):
59
+
60
+ ```java
61
+ var results = EventSequenceJavaBridge.appendMany(store.getEventLog(),
62
+ List.of(new EventForEventSourceId(oldBay, release), new EventForEventSourceId(newBay, assignment)),
63
+ java.util.Map.of(oldBay, oldScope, newBay, newScope));
64
+ ```
65
+
66
+ Use each decision's own scope; do not overwrite a second incompatible guard for the same ID. Inspect the results before acknowledging the batch. On rejection the SDK reports the first returned concurrency violation on each failed result, not a conflict per event.
67
+
68
+ ## Routing-derived guards are for writes without earlier decision evidence
69
+
70
+ On a registered source declaration, `@EventSource(concurrency = {ConcurrencyDimension.EventSourceId})` selects source-local optimistic writes (`io.cratis.chronicle.eventSources`). Select `EventSourceType`, `EventStreamType` or `EventStreamId` for the corresponding routed dimensions. Route through the definition with `new AppendOptionsBuilder().throughEventSource(Depot.class, "Shift").build()` for its declared Shift stream. Nonempty stream concurrency dimensions replace the source defaults. With no effective dimensions there is no derived check. Otherwise the SDK looks up the selected tail at append time, asserting absence if empty. Distinct derived predicates for the same batch source are refused, not silently combined.
71
+
72
+ Omitting an explicit scope (or `ConcurrencyScope.Companion.getNotSet()`) leaves room for derivation. `ConcurrencyScope.Companion.getNone()` explicitly disables it; an empty builder also produces the unconstrained scope. Neither protects absence. An explicit scope wins over routing, so always supply the observed position or absence when the write follows a decision.
73
+
74
+ ## Not supported in this SDK
75
+
76
+ - No decision-model admission, description, protected projection/reducer or per-stream model read, refusal diagnostics, detached token or participant enrollment. Read and guard complete event history yourself as above, or send the intent to an owner that can decide and commit it.
77
+ - No enforced validator/handler read injection, enrollment inspection, decision-read commit/rollback ownership, immediate-append refusal, validate-only completion, early HTTP owner feature or mapping conflicts back to model reads. Keep all writes together and inspect the actual nonempty guarded append before responding; ordinary transactions or display reads are not substitutes.
78
+ - No configurable default strategy, custom strategy hook or global first-append switch. Use explicit observed-position, expected-empty or deliberately unchecked scopes, or registered routing dimensions for append-time guards.