@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,28 +1,68 @@
1
1
  ---
2
2
  name: cratis-arc-connect-storage
3
- description: Use when a developer needs to connect an Arc backend to the database that holds its read models. Not for changing an EF table schema (use cratis-arc-migrate-relational-schema).
4
- compatibility: Requires an Arc backend and a reachable database.
3
+ description: Use when choosing and connecting the document, relational or graph store that an Arc backend's queries and command lookups read, including per-tenant placement, in any Arc SDK; this is the cross-SDK store-selection entry point. For Node server storage setup use cratis-arc-storage-typescript; for JVM Spring Data setup use cratis-arc-spring-data-kotlin. Not for changing a relational schema (use cratis-arc-migrate-relational-schema).
4
+ compatibility: Requires an Arc backend and access to the read-model store.
5
5
  ---
6
6
 
7
- # Connect Arc to the database it reads
7
+ # Connect a query to its read-model store
8
8
 
9
- Match the integration to the data the slice reads, not to Chronicle's storage. Use the integration the SDK ships for that database, so naming, value serialization and tenant database selection agree with the writer. Take the typed collection, repository or session as a parameter of the query (`cratis-arc-expose-query` skill in `cratis/arc`); don't build database or collection names in the query.
9
+ A storage binding connects a model to the physical data its writer maintains. It does not create a projection, move records, or grant tenant membership. For Chronicle views, locate the projection's output, not the event log. For application-owned records, locate the collection or table the command writes.
10
10
 
11
- Resolve tenant membership before selecting storage. For changes to an EF table, prepare a relational migration (`cratis-arc-migrate-relational-schema` skill in `cratis/arc/ef-core`) instead.
11
+ This skill decides which store and destination a model reads, for every SDK. Where an SDK's specialist skill is installed, it owns the setup detail: `cratis-arc-storage-typescript` for Node servers, `cratis-arc-spring-data-kotlin` for JVM Spring applications. Without one, your language reference covers the setup. Tenant selection and membership belong to `cratis-arc-isolate-tenant`.
12
12
 
13
- ## Read the reference for the host
13
+ Read `references/<language>.md` for the project's SDK (`.csproj` → csharp, Node server `package.json` → typescript, `*.kt` → kotlin, `*.java` → java, `go.mod` → go, `mix.exs` → elixir); only the project's languages are installed.
14
14
 
15
- The artifact being changed selects the one reference to read: `*.csproj` → [C#](references/csharp.md); a Node server `package.json` → [TypeScript](references/typescript.md); `*.kt` → [Kotlin](references/kotlin.md); `*.java` → [Java](references/java.md); `go.mod` → [Go](references/go.md); `mix.exs` → [Elixir](references/elixir.md). Another language's reference is not a template. [Python](references/python.md) has no released Arc SDK: call the owning service over HTTP.
15
+ ## Default path
16
16
 
17
- ## Expected outcome
17
+ 1. Identify the writer's server, database, collection or table, key representation and field naming. Inspect one existing record without changing it.
18
+ 2. Register the matching integration once during host setup. Bind a typed collection for documents; choose a relational mapping only for a table, or a graph session only for a projected graph. Supply credentials through deployment configuration.
19
+ 3. Resolve the binding inside the admitted execution context. The host selects the active tenant by who chooses it (a header when the caller switches among memberships, a verified claim when the identity provider assigns it), and membership must be checked before storage resolves; set both up with `cratis-arc-isolate-tenant`. Never pick storage from a tenant value in query or command arguments, because that bypasses the membership check. Pass the binding to the query rather than constructing another client.
20
+ 4. Read a known ID through `cratis-arc-expose-query`. Verify placement for the named default tenant and, where the SDK accepts an unset tenant, for an unset tenant too (both must reach the same destination, which is the bare base under the default naming convention; an SDK that requires a tenant must refuse the unset case, not fall back). Also verify at least two named tenants (each its own destination). Check the physical database or collection each one reads and writes, not just the resolved tenant ID, and repeat with the same known ID and different values in the named tenants; each must see only its own value. If any returns no match, compare physical destinations first, then field names and key encoding. A successful startup tests neither.
18
21
 
19
- Write one record through its normal path and read it back through the query. Then repeat as a second tenant: each sees only its own record. A host that starts has not proved a connection.
22
+ ## Document bindings
20
23
 
21
- ## Stop when
24
+ - **Server and database** — select the writer's deployment and base database; override the database-name resolver to match existing names; for per-tenant servers or credentials use connection resolution where the SDK has it, otherwise a tenant-aware server resolver where one exists (the language reference says which applies).
25
+ - **Client ownership** — reuse a configured client where the host owns its lifetime; otherwise let the integration manage the connection.
26
+ - **Collection binding** — register the model or bind an explicit physical collection name when discovery would select a different one.
27
+ - **Naming policy** — align collection names, pluralization and stored property names with existing documents; changing a policy does not rename stored data.
28
+ - **Value mapping** — match the stored ID, scalar concepts, nested values and derived types. Use a codec or model mapping rather than reshaping documents after retrieval.
29
+ - **Convention customization** — supply class maps, convention packs or pack filters for exceptional types; exclude a type from conventions only if its own mapping is complete.
30
+ - **Topology** — request a direct connection only when connecting to one server is intentional; it does not add change-stream support.
31
+ - **Pool size** — bound pooled connections when many tenant destinations or identities are active.
32
+ - **Resilience** — configure automatic recovery where available; do not replace a failed tenant lookup with the default database.
33
+ - **Diagnostics** — enable command-body logging only when the contents are safe to expose.
34
+ - **Named sinks** — resolve the database for the read-model type when projections target different sinks, rather than substituting the host's default database.
35
+ - **Selection** — read matching documents, one match or a specific ID; use the native collection for provider-specific filters, pipelines and indexes.
36
+ - **Row access** — apply the admitted row filter before counting or paging. Where Chronicle owns encrypted documents, use the release-aware reader rather than decoding ciphertext as application data.
37
+ - **Resource limits** — bound retained rows and bytes, operation duration, watched databases, subscribers and queued invalidations when sizing a renderer or watcher.
38
+ - **Paging** — apply allowed sort fields and paging in storage; bound the page size rather than loading the collection first.
39
+ - **Observation** — watch a selection or ID for a live query; bound snapshots and verify the topology supports notifications. Observe joined collections when a change on either side affects the result.
40
+ - **Command model lookup** — use the integration's read-model resolver when a command needs persisted state by identity.
41
+ - **Document writes** — insert, replace, update or delete through the application's write path only for application-owned documents. Never repair a projection by writing to its output.
22
42
 
23
- A known record is missing: compare the reader's physical server, database and collection with the writer, then the stored field names, before changing conventions or data.
43
+ ## Conditional connection resolution
24
44
 
25
- ## Related skills
45
+ - **Destination** — keep a fixed connection unless placement depends on context. For deterministic placement use a template; use HTTP for a platform-owned directory or a custom resolver for application logic.
46
+ - **Identity** — resolve credentials separately when the destination stays fixed but credentials rotate. Keep resolver authentication distinct from database authentication.
47
+ - **Caching** — set the resolution lifetime to suit credential expiry; invalidate a rejected identity instead of logging the resolved connection.
48
+ - **Purpose** — distinguish runtime and schema access when they need different permissions; resolution selects a destination, it does not migrate it.
26
49
 
27
- - Expose AllAuthors (`cratis-arc-expose-query` skill in `cratis/arc`)
28
- - Select the tenant (`cratis-arc-isolate-tenant` skill in `cratis/arc`)
50
+ ## Relational bindings
51
+
52
+ - **Provider** — register the provider and connection for the existing schema; use a tenant-specific connection factory or persistence unit when databases differ.
53
+ - **Model discovery** — discover mapped contexts or register an explicit context, entity or model-to-table pair when selection must be restricted.
54
+ - **Read-only context** — choose a read-only binding for query-only access; use a writable context only on the owning write path.
55
+ - **Column conversion** — map scalar concepts and structured JSON to their physical columns, customizing converters when the stored representation requires it.
56
+ - **Reads** — select by predicate or key, applying sort and pagination before materialization.
57
+ - **Upsert** — distinguish tracked changes requiring save from immediate native writes when the application owns the rows.
58
+ - **Observation** — configure notifications for the actual provider and writer; a local announcement alone cannot detect writes by another process.
59
+
60
+ ## Graph bindings
61
+
62
+ The Arc Neo4j integration is C#-only.
63
+
64
+ - **Placement** — match server, event store, prefix and namespace to the graph writer; customize database or namespace resolution only if the writer does too.
65
+ - **Database mode** — use the writer's per-namespace database or its shared database. In shared mode, scope every traversal to the namespace; supplying the parameter alone does not filter results.
66
+ - **Session** — use a scoped read session for projected data; open and dispose a write session only for application-owned data.
67
+ - **Parameters and results** — convert domain parameters and map rows to typed results; use a raw cursor when streaming driver records is required.
68
+ - **Graph views** — register the graph-view adapter when a declared Chronicle graph view, rather than handwritten Cypher, defines the traversal.
@@ -0,0 +1,66 @@
1
+ # Resolve a C# storage connection
2
+
3
+ Keep static configuration for a fixed destination. Use `Cratis:Arc:ConnectionResolution` for common policy; `ConnectionResolution` under `Cratis:MongoDB`, `Cratis:EntityFrameworkCore` or `Cratis:Neo4j` replaces that policy as a whole. The `Connection` slot chooses placement, then `Identity` supplies credentials. Both default to `Resolver: Default` (keep configuration).
4
+
5
+ Example resolution block for deterministic placement plus rotating credentials:
6
+
7
+ ```json
8
+ {
9
+ "Connection": { "Resolver": "Template", "Template": { "Database": "dispatch-{tenant}" } },
10
+ "Identity": { "Resolver": "Http", "Http": { "Endpoint": "https://platform.example/storage", "Timeout": "00:00:03" } },
11
+ "CacheDuration": "00:01:00"
12
+ }
13
+ ```
14
+
15
+ - `Template.ConnectionString`, `Database` and `Schema` describe placement, not schema creation. Arc's MongoDB, Neo4j and EF Core integrations apply a resolved connection string and database, never a resolved `Schema`. To isolate tenants, resolve a per-tenant database (as `dispatch-{tenant}` above) or connection string, or own schema isolation in the application. `{tenant}`, `{purpose}` and `{storage}` expand from the request; a missing value fails.
16
+ - `Http.Endpoint` receives a JSON POST, e.g. `{"storage":"MongoDB","purpose":"Runtime","scope":{"tenant":"A"}}`. Return 200 with the requested resolution or 204 only to deliberately keep configuration. Never turn an unknown tenant or directory failure into a default database. `Http.Headers` adds request headers; `Timeout` defaults to 10 seconds.
17
+ - `Http.Authentication.Type` defaults to `None`. Choose `ClientCredentials` with `TokenEndpoint`, `Scope`, `ClientId`, `ClientSecret`, or `AzureCredential` with `Scope` and `Credential` (`ManagedIdentity` by default, `WorkloadIdentity` or `Default` when appropriate). `RefreshMargin` defaults to five minutes. These authenticate to the directory, **not** to MongoDB/SQL/Neo4j. Supply sensitive configuration through secret providers.
18
+ - `Resolver: Custom` with `CustomType` naming your `IConnectionResolver` is for placement or identity logic not expressible by template or HTTP.
19
+ - Arc caches each resolution in memory, keyed by storage, purpose and scope (tenant), never by credential. When the resolver returns `ExpiresAt`, the entry is renewed one minute before that time; `CacheDuration` neither shortens nor extends it. Without `ExpiresAt` the entry lives for `CacheDuration` (default five minutes). Setting `CacheDuration` to `00:00:00` turns caching off entirely, so every connection resolves. Return a lease's expiry as `ExpiresAt` rather than shortening `CacheDuration`.
20
+ - When the database rejects the credentials, Arc drops the cached entry so the next connection resolves again. The failed attempt itself is not retried, so expect that one operation to fail. Never log a resolved connection, cache credentials yourself, or reuse a resolution across tenants.
21
+ - For a schema operation wrap only that operation in `using var purpose = ConnectionPurposeScope.Begin(ConnectionPurpose.Schema);` (`Cratis.Arc.Connections`). Runtime operations otherwise ask for `Runtime`. Test both identities; do not grant schema rights to runtime readers.
22
+
23
+ ## Select a resolver in code
24
+
25
+ Each slot (`Connection`, `Identity`) on a `ConnectionResolution` options object has `UseDefault()`, `UseTemplate(connectionString, database, schema)`, `UseHttp(endpoint, headers)` and `UseCustom<TResolver>()`; code wins over configuration.
26
+
27
+ ```csharp
28
+ builder.AddCratisArc(configureOptions: arc =>
29
+ arc.ConnectionResolution.Identity.UseHttp(new Uri("https://platform.example/storage")));
30
+ ```
31
+
32
+ ## Custom resolver
33
+
34
+ ```csharp
35
+ using Cratis.Arc.Connections;
36
+
37
+ public record Placement(string Database, DateTimeOffset ValidUntil);
38
+ public interface ITenantDirectory { Task<Placement> Find(string tenant, CancellationToken cancellationToken); }
39
+
40
+ public class TenantPlacements(ITenantDirectory directory) : IConnectionResolver
41
+ {
42
+ public async Task<ResolvedConnection> Resolve(ConnectionRequest request, CancellationToken cancellationToken = default)
43
+ {
44
+ var tenant = request.Scope[WellKnownConnectionScopeKeys.Tenant];
45
+ var placement = await directory.Find(tenant, cancellationToken);
46
+ return new(Database: placement.Database, ExpiresAt: placement.ValidUntil);
47
+ }
48
+ }
49
+ ```
50
+
51
+ Select the placement resolver during host registration; configuring only `Identity` leaves the `Connection` slot unchanged.
52
+
53
+ ```csharp
54
+ builder.AddCratisArc(configureBuilder: arc => arc.WithMongoDB(
55
+ configureOptions: mongo => mongo.ConnectionResolution.Connection.UseCustom<TenantPlacements>()));
56
+ ```
57
+
58
+ `ITenantDirectory` stands for the application's own service; register it, and Arc creates the resolver through dependency injection.
59
+
60
+ - `ConnectionRequest` carries `Storage`, `Purpose` and `Scope` (the tenant under `WellKnownConnectionScopeKeys.Tenant`).
61
+ - `ResolvedConnection(ConnectionString, Database, Schema, Identity, ExpiresAt)`: set only what the resolver knows; `ResolvedConnection.Unchanged` keeps the configuration. `ConnectionIdentity(UserName, Password, AccessToken)` replaces the identity as a whole.
62
+ - Throw for an unknown tenant; never answer with a shared default.
63
+
64
+ ## Azure credential for the HTTP resolver
65
+
66
+ `Authentication.Type: AzureCredential` needs the `Cratis.Arc.Connections.Azure` package and `builder.Services.AddAzureConnectionResolverAuthentication();`. Without it the resolver fails when it is created. For another token source, register an `IConnectionResolverAccessTokenProvider`.
@@ -0,0 +1,78 @@
1
+ # Bind an EF Core context in C#
2
+
3
+ Reference `Cratis.Arc.EntityFrameworkCore`. Use `arc.WithEntityFrameworkCore(o => o.ConnectionString = connectionString)` during Arc host registration, or set `Cratis:EntityFrameworkCore:ConnectionString` and call `arc.WithEntityFrameworkCore()`. Arc infers SQLite (`Data Source=dispatch.db`), PostgreSQL (`Host=…;Database=…`) or SQL Server (`Server=…;Initial Catalog=…`). Unknown formats fail; selecting a provider does not migrate a schema.
4
+
5
+ ## Map the existing table
6
+
7
+ ```csharp
8
+ using Cratis.Arc.EntityFrameworkCore;
9
+ using Microsoft.EntityFrameworkCore;
10
+ using Microsoft.EntityFrameworkCore.Metadata.Builders;
11
+
12
+ public class DispatchReader(DbContextOptions<DispatchReader> options) : ReadOnlyDbContext(options)
13
+ {
14
+ public DbSet<Shipment> Shipments => Set<Shipment>();
15
+ }
16
+
17
+ public class ShipmentMap : IEntityTypeConfiguration<Shipment>
18
+ {
19
+ public void Configure(EntityTypeBuilder<Shipment> table)
20
+ {
21
+ table.ToTable("outbound");
22
+ table.Property(s => s.Depot).HasColumnName("hub");
23
+ }
24
+ }
25
+ ```
26
+
27
+ Put each entity's physical mapping (table, columns, keys, indexes, relationships) in an `IEntityTypeConfiguration<T>` class. Arc discovers these maps and, while building the model, applies the map for the entity type of every public `DbSet<T>` property on the context; you do not repeat it in `OnModelCreating`. This works only for contexts registered through Arc (discovery or the helpers below); a directly constructed context gets no maps. Rules:
28
+
29
+ - Write exactly one map class per entity type, implementing the interface for that type only; every context exposing the type (for example a reader and a writer) shares it. A second map for the same type makes model creation fail.
30
+ - An entity without a public `DbSet<T>` property on the context is not mapped automatically; expose the set.
31
+ - Arc creates the map through dependency injection, so it may take constructor dependencies. The model is built once per context type and reused for every tenant, so a map must never depend on tenant or request state.
32
+ - If you override `OnModelCreating`, call `base.OnModelCreating(model)` first: it applies the maps and then the concept conversions. Configuration you add after it overrides the map.
33
+
34
+ With a configured connection, `AutoDiscoverDbContexts` defaults on. Arc discovers public `BaseDbContext` subclasses except `[IgnoreAutoRegistration]`, registering `ReadOnlyDbContext` subclasses read-only. For restricted registration set `AutoDiscoverDbContexts = false`; use `configureEfCore: ef => ef.AddDbContext<DispatchWriter>()` for an explicitly writable context on the configured connection, `services.AddDbContextWithConnectionString<DispatchWriter>(connectionString)` for a writable context on its own connection string, or `services.AddReadOnlyDbContextWithConnectionString<DispatchReader>(connectionString)` for a query-only one. Both connection-string forms accept an optional `(serviceProvider, options)` callback and keep provider inference, concept support, observation and connection resolution. `DiscoverAndRegisterDbContexts()` requests discovery on the EF builder. Read-only registration adds no-tracking and a save interceptor; it is not a database permission boundary. Resolve inside the admitted scope: even a pooled context resolves connection purpose and tenant at open time.
35
+
36
+ Arc's EF Core registration uses the configured connection string. It does not append the tenant, create a database per tenant or add tenant query filters, and connection resolution only changes which connection opens. For tenant isolation, resolve a per-tenant database or connection string through [connection resolution](csharp-connection-resolution.md); this is the default. Otherwise the application owns schema or filter isolation and must prove it on every read and write path, including pooled-context reuse.
37
+
38
+ Choose the registration by how much Arc should decide:
39
+
40
+ | Need | Use |
41
+ | --- | --- |
42
+ | Every context in the application, one connection | `arc.WithEntityFrameworkCore(...)` with discovery (default). Without a connection string it discovers nothing. |
43
+ | Read-only contexts from chosen assemblies, one connection | `services.AddReadModelDbContextsWithConnectionStringFromAssemblies(connectionString, (serviceProvider, options) => { }, typeof(DispatchReader).Assembly)` |
44
+ | The same, but you configure the provider yourself | `services.AddReadModelDbContextsFromAssemblies((serviceProvider, options) => options.UseDatabaseFromConnectionString(connectionString), typeof(DispatchReader).Assembly)` |
45
+ | One context | The single-context helpers above. |
46
+
47
+ Both assembly forms register every public, non-abstract `ReadOnlyDbContext` subclass in the assemblies read-only, skip `[IgnoreAutoRegistration]`, and make `[ReadModel]` entities loadable into commands. They do not register writable contexts.
48
+
49
+ - Derive from `ReadOnlyDbContext` (query-only; saving throws) or `BaseDbContext` (application-owned writes), never directly from `DbContext`: the base applies the entity maps and concept conversions.
50
+ - Select the provider with `options.UseDatabaseFromConnectionString(connectionString)`. Never hard-code `UseSqlite`, `UseNpgsql` or `UseSqlServer`: the Arc call infers the provider, creates a SQLite file's directory, enables retry on failure for PostgreSQL and SQL Server, and installs the migration SQL support that `[Json]` columns need. An unrecognized connection string throws `UnsupportedDatabaseType`.
51
+ - Keep one focused context per feature or closely related group. A context that gathers unrelated tables couples every schema change.
52
+ - For schema changes use `cratis-arc-migrate-relational-schema`.
53
+
54
+ `optionsBuilder.AddConceptAsSupport()` adds query expression/parameter handling for plain EF options. For structured JSON, mark the property `[Json]` (`Cratis.Arc.EntityFrameworkCore.Json`); register a custom `System.Text.Json` converter via `o.JsonConverters.Add(new RoutingDetailsConverter())` if the stored representation needs one. For command model lookup expose a public `DbSet<T>` on the read-only context and mark `T` with `[ReadModel]`. The entity needs a single-property primary key, which is matched against the command key; without one (or with a composite key) the lookup fails with `EntityDoesNotHavePrimaryKey`.
55
+
56
+ ## Query and observe
57
+
58
+ ```csharp
59
+ var admitted = db.Shipments.Where(s => s.Depot == admittedDepot);
60
+ var one = await admitted.SingleOrDefaultAsync(s => s.Id == id);
61
+ var page = await admitted.OrderBy(s => s.Id).Skip(offset).Take(size).ToListAsync();
62
+ var live = db.Shipments.Observe(s => s.Depot == admittedDepot);
63
+ ```
64
+
65
+ Validate the offset, bound size and restrict client sort fields. `Observe` applies query-context sorting, paging and counts; `ignoreQueryContext: true` is for auxiliary sets. For one row use `ObserveSingle(s => s.Depot == admittedDepot && s.Id == id)` or `ObserveById(id)` when the key alone suffices. Singles emit null on no match and remain subscribed. Dispose subscriptions when done.
66
+
67
+ `WithEntityFrameworkCore()` registers observation. With manual registration call `services.AddEntityFrameworkCoreObservation()` and use the Arc context helpers or `.AddObservation(serviceProvider)` on EF options. SQLite observes intercepted local saves only. For external PostgreSQL writes provision the LISTEN/NOTIFY function and trigger or permit setup. For SQL Server pre-provision Service Broker and grant query-notification permissions; automatic enablement may terminate existing connections. Test a real external write, not just listener startup.
68
+
69
+ ## Write only to application-owned tables
70
+
71
+ Use a writable `BaseDbContext` with an application-assigned key:
72
+
73
+ ```csharp
74
+ await writer.Shipments.Upsert(item);
75
+ await writer.SaveChangesAsync();
76
+ ```
77
+
78
+ Choose `await writer.Shipments.UpsertAsync(item)` instead only when you understand the mapping: supported single-table scalar mappings execute native SQL immediately on SQLite, PostgreSQL and SQL Server, without flushing other changes or updating tracked instances. Reload stale tracked values. Other providers, unset generated values, SQL Server identity, navigation/owned, shadow/complex, inheritance or multi-table mappings can fall back to tracking and **require a save**. Use tracked `Upsert` explicitly for predictable deferred writes.
@@ -0,0 +1,30 @@
1
+ # Read a projected graph in C#
2
+
3
+ Reference `Cratis.Arc.Neo4j` in an Arc host with the ASP.NET shared framework; register `arc.WithNeo4j()` (without the Arc builder: `services.AddCratisNeo4j()` or `hostBuilder.AddCratisNeo4j()`, same `configureOptions` and `configureNeo4j` callbacks). Set `Cratis:Neo4j:Server` (Bolt URI) and `EventStore` to the writer's event store. Supply `UserName` and `PasswordSecret` (name of a configuration key; wins over literal `Password`). Match `DatabasePrefix` if set. Use `ConnectionResolution` for dynamic placement or identity.
4
+
5
+ Default `DatabaseMode: PerNamespace` selects a database using `GraphDatabaseName.For(prefix, eventStore, namespace)` with the writer's namespace. If the writer customizes placement use `configureNeo4j: n => n.WithNamespaceResolver<DispatchNamespace>().WithDatabaseNameResolver<DispatchDatabase>()`, implementing `IGraphNamespaceResolver` and `IGraphDatabaseNameResolver`; each has one `string Resolve()` for the current tenant, and the namespace must equal the one the writer projects into. For `DatabaseMode: Single`, match `SingleDatabase` (default `neo4j`); **every** node and relationship read must be namespace-scoped. A bound parameter is not an access predicate.
6
+
7
+ Inject scoped `IGraphSession graph`. Single-database example:
8
+
9
+ ```csharp
10
+ const string cypher = "MATCH (d:Depot) WHERE d._namespace = $namespace AND d.code = $code RETURN d.name AS name";
11
+ var names = await graph.Query<string>(cypher, new { code });
12
+ var first = await graph.QuerySingle<string>(cypher, new { code });
13
+ var cursor = await graph.Run(cypher, new { code });
14
+ ```
15
+
16
+ `QuerySingle` maps the first row (default if absent); one scalar column can map to a primitive or concept, multiple columns to constructor arguments or writable properties by name ignoring case. `Run` gives the driver cursor; with `graph.Session` use `graph.Parameters(new { code })` to convert concepts and bind the namespace. The injected session is read-only in intent. For application-owned graph writes use `await using var session = factory.Open(AccessMode.Write);` with `IGraphSessionFactory`; never mutate projection output.
17
+
18
+ For Chronicle graph views the server must support `COLLECT` subqueries. Reference `Cratis.Arc.Neo4j.Chronicle`, register `arc.WithNeo4j().WithNeo4jGraphViews()`, and declare the shape against the projected node and edge types:
19
+
20
+ ```csharp
21
+ [ViewOf<Depot>]
22
+ public record DepotSummary(DepotId Id, string Name);
23
+
24
+ [ReadModel, ViewOf<Route>]
25
+ public record RouteSummary(RouteId Id, [Follows<StopsAt>] IReadOnlyList<DepotSummary> Stops);
26
+ ```
27
+
28
+ Inject `IGraph graph`; `await graph.Nodes<RouteSummary>().Where(r => r.Id, id).FirstOrDefault()` reads one route. Use `WhereRelated<DepotSummary>(r => r.Stops, s => s.Where(d => d.Id, depotId)).ToList()` on the root selection for routes with a matching stop. `[FromEdge]` on a related-view member reads an edge property. Check the known root, direction and projected keys before changing a view with no stops. Finite view traversals read eventually consistent data, not command invariants.
29
+
30
+ To specify graph readers without a server, reference `Cratis.Arc.Neo4j.Testing` in the specification project. `var graph = services.UseGraphSessionSubstitute();` replaces `IGraphSession` and `IGraphSessionFactory.Open`; `graph.Returns("MATCH (d:Depot)", "North")` answers any query of that row type whose Cypher contains the fragment (ignoring case); unmatched queries return no rows. Assert on `graph.Executions` (Cypher plus the bound parameters, concepts unwrapped and `namespace` included); set `Namespace`, `DatabaseName`, `DatabaseMode` or `AccessMode` when the code depends on them. `Run` and `Session` throw on the substitute, so keep mapped reads on `Query`/`QuerySingle`. `services.UseGraphSession(session)` installs your own `IGraphSession`; for graph views, `services.UseGraphSubstitute()` from `Cratis.Arc.Neo4j.Chronicle.Testing` replaces `IGraph`.
@@ -1,98 +1,91 @@
1
- # C#: connect an Arc reader to MongoDB, EF Core or Neo4j
1
+ # Connect an Arc C# reader to storage
2
2
 
3
- Choose by where the data already lives: MongoDB for documents (the default below), EF Core for a relational table, Neo4j for a projected graph. `Cratis:MongoDB`, `Cratis:EntityFrameworkCore` and `Cratis:Neo4j` are sibling configuration sections, not children of the generated-API options.
3
+ Names in the examples are illustrative. Use the database the **writer** uses. For a table see [EF Core](csharp-ef.md); for projected edges see [Neo4j](csharp-neo4j.md). For dynamic placement or credentials see [Connection resolution](csharp-connection-resolution.md).
4
4
 
5
- ## MongoDB
5
+ ## Bind the document collection
6
6
 
7
- Reference `Cratis.Arc.MongoDB` in the Library backend. Match the integration to the data the slice reads, not to Chronicle's storage. For a new database written by Chronicle, configure the same camel-case naming policy on both builders.
8
-
9
- `Program.cs` (top-level statements in a Web SDK project):
7
+ Reference `Cratis.Arc.MongoDB` in the backend. During normal Arc host registration:
10
8
 
11
9
  ```csharp
12
- using Cratis.Arc.MongoDB;
10
+ using Cratis.Arc;
13
11
  using Microsoft.AspNetCore.Builder;
14
12
 
15
13
  var builder = WebApplication.CreateBuilder(args);
16
- builder.AddCratis(
17
- configureArcBuilder: arc => arc.WithMongoDB(configureMongoDB: mongo => mongo.WithCamelCaseNamingPolicy()),
18
- configureChronicleBuilder: chronicle => chronicle.WithCamelCaseNamingPolicy());
14
+ builder.AddCratisArc(configureBuilder: arc => arc.WithMongoDB());
19
15
  var app = builder.Build();
20
- app.UseWebSockets();
21
- app.UseCratis();
22
- await app.RunAsync();
23
- ```
24
-
25
- Set `Cratis:MongoDB:Server` and `Cratis:MongoDB:Database` in the host project's `appsettings.json`. For the default tenant, use the database that contains the projected author documents:
26
-
27
- ```json
28
- { "Cratis": { "MongoDB": { "Server": "mongodb://localhost:27017", "Database": "library" } } }
16
+ app.UseCratisArc();
17
+ app.Run();
29
18
  ```
30
19
 
31
- In the author query, take `IMongoCollection<Author>` as a method parameter. Register an author and check that `AllAuthors` returns it. With Arc's default database resolver, tenant `A` uses `library+A`, not `library`; this is not a naming rule the query should implement. Resolve tenant membership before selecting storage.
20
+ In a host without the Arc builder, `services.AddCratisMongoDB()` or `hostBuilder.AddCratisMongoDB()` takes the same `configureOptions` and `configureMongoDB` callbacks. Set `Cratis:MongoDB:Server` (e.g. `mongodb://localhost:27017`) and `Database` (e.g. `dispatch`); both are required. In the admitted tenant scope inject `IMongoCollection<Shipment> shipments` into the query. The default database resolver selects `dispatch` for the default tenant and `dispatch+A` for tenant A. A new empty database looks exactly like an empty result: test the same known ID with different values in two admitted scopes. The unset tenant and the named `Default` tenant (`TenantId.IsDefault`) both select the bare base database; include both, plus two named tenants, when checking where data lands. Never derive a tenant from a query parameter.
32
21
 
33
- ### Use native MongoDB operations
22
+ Default naming pluralizes the model name (`Shipments`) and preserves member case. If the writer uses camel case, pass `configureMongoDB: m => m.WithCamelCaseNamingPolicy()` to `WithMongoDB`; pass `pluralizeReadModels: false` only for singular collections. `WithNamingPolicy(policy)` supplies a custom policy. On an injected `IMongoDatabase`, the `Cratis.Arc.MongoDB` extension `database.GetCollection<Shipment>()` (optional `MongoCollectionSettings`) names the collection by the configured policy; for a single legacy name use the driver's `database.GetCollection<Shipment>("outbound")` on the correctly resolved database. Policy changes do not move documents.
34
23
 
35
- For ordinary reads, repositories and sinks, use `Builders<T>.Filter`, `.Sort` and `.Update` with the native driver. Use `Find` for documents and `Aggregate` for pipelines; compose `FilterDefinition<T>` and `PipelineDefinition<TInput, TOutput>` rather than queryables. Do not use `AsQueryable()` for ordinary reads: unsupported LINQ expressions, such as some casts on concept-valued members, fail at execution, not compilation. The exception is a provider-backed query Arc must compose for paging.
24
+ ## Select, page and observe
36
25
 
37
- For the registered `IMongoCollection<Author> collection` above, import `MongoDB.Driver` and `MongoDB.Bson`. With the configured camel-case field names:
26
+ Import `MongoDB.Driver`. In these query fragments `allowed` is a trusted `FilterDefinition<Shipment>` derived from authorization, not supplied by the client:
38
27
 
39
28
  ```csharp
40
- FilterDefinition<Author> named = Builders<Author>.Filter.Eq(author => author.Name, "Aster");
41
- var authors = collection.Find(named).ToList();
42
- var counts = collection.Aggregate()
43
- .Match(named)
44
- .Group(new BsonDocument { { "_id", "$name" }, { "count", new BsonDocument("$sum", 1) } })
45
- .ToList();
29
+ var filter = allowed & Builders<Shipment>.Filter.Eq(s => s.Depot, depot);
30
+ var total = await shipments.CountDocumentsAsync(filter);
31
+ var page = await shipments.Find(filter).SortBy(s => s.Id).Skip(offset).Limit(size).ToListAsync();
32
+ var one = await shipments.Find(filter & Builders<Shipment>.Filter.Eq(s => s.Id, id)).FirstOrDefaultAsync();
33
+ var matches = await shipments.Aggregate().Match(filter).ToListAsync();
46
34
  ```
47
35
 
48
- With two Aster documents and one other author, expect two matches and a single Aster group with count two. Both reads filter in the database before `ToList()`; do not materialize first and filter in memory.
49
-
50
- ## When a document is missing or tenants use separate databases
51
-
52
- - **An existing author is missing:** compare the reader's physical server, database and collection with the writer, then compare BSON field names before changing conventions.
53
- - **Tenants use separate database names on the same server:** add `"ConnectionResolution": { "Connection": { "Resolver": "Template", "Template": { "Database": "tenant-{tenant}" } } }` inside `Cratis:MongoDB`. This replaces the default naming, not the stored data; provision or migrate the target databases before switching. Leave `AllAuthors` unchanged.
54
-
55
- ## When the read follows projected edges
36
+ Validate the offset, bound size and allowlist sort members before composing the query. Use `FindByIdAsync(id)` only where ID and tenant are sufficient authorization.
56
37
 
57
- Keep MongoDB for a flat document lookup. Use graph views when a graph projection already writes the nodes and edges and the screen needs a fixed traversal, such as a group and its members. A view reads those relationships; it does not create them or eager-load unrelated documents. For example, in a membership graph the projection maps `GroupCreated` to a `[Node]` with `[Key] Guid GroupId`. `MemberAdded` creates a `MemberOf` edge from its `PersonId` (`[Source<Person>]`) to its `GroupId` (`[Target<Group>]`). A group view can follow that same edge to the person. The event keys must name the projected nodes, not the ID of the membership event.
38
+ Default to the native driver, not LINQ:
58
39
 
59
- With an application-configured Neo4j server (5.6 or later), add the matching `Cratis.Arc.Neo4j.Chronicle` package and call `arc.WithNeo4j().WithNeo4jGraphViews()` on the Arc builder instead of registering MongoDB for this reader. Match the writer's database, tenant namespace, node keys and edge direction. Query the graph view with a known root and a known related node. If the root exists with an empty collection, inspect the projected edge before changing the query.
40
+ - Build filters, sorts, projections and updates with `Builders<T>`; read with `Find`, or `Aggregate` for anything beyond filter, sort and projection. Compose with `FilterDefinition<T>` and `PipelineDefinition<TInput, TOutput>`.
41
+ - A member selector inside a `Builders<T>` call (`Filter.Eq(s => s.Depot, depot)`) only names a field and is fine. `Select`, `GroupBy`, `Join`, casts and method calls on members belong in an aggregation stage. A LINQ expression the driver cannot translate compiles and then fails when the query runs; concept-typed members and casts are the usual cause.
42
+ - To skip expression translation, address a field by its stored element name: `Builders<Shipment>.Filter.Eq(new StringFieldDefinition<Shipment, ShipmentId>("_id"), id)`. Stage documents use stored element names too: `shipments.Aggregate().Match(filter).Group(new BsonDocument { { "_id", "$depot" }, { "count", new BsonDocument("$sum", 1) } })`.
43
+ - Filter in the database (`Find` filter or `Match` stage), never after `ToList()`.
44
+ - The one use of `shipments.AsQueryable()` is a finite query whose window Arc applies from the request (`cratis-arc-page-query`). In that case, and with `Observe`, do not also write `Skip`, `Limit` or a client-chosen sort; a materialized `Find(...).ToListAsync()` result is not paged by Arc, so keep it for bounded sets or page it yourself as above.
60
45
 
61
- ## Avoid with MongoDB
62
-
63
- - Do not construct database or collection names in `AllAuthors`; inject the typed collection.
64
- - Do not configure different naming policies on the reader and writer. Compare BSON field names if a known document cannot be read.
65
- - Do not map concepts into nested `Value` documents; the configured serializers store their underlying values.
66
-
67
- Reuse the registered Arc MongoDB services. A second, unconfigured `MongoClient` lacks the concept serializers, naming policy and tenant database selection, so it can read the wrong shape or the wrong database.
46
+ ```csharp
47
+ var live = shipments.Observe(filter);
48
+ var first = shipments.ObserveSingle(filter);
49
+ var byId = shipments.ObserveById(id);
50
+ var summary = watcher.Observe<Shipment>(s => s.Depot == depot).Join<Depot>(d => d.Code == depot)
51
+ .Select((loads, depots) => new { Loads = loads.Count(), Depots = depots.Count() });
52
+ ```
68
53
 
69
- ## EF Core
54
+ Use a replica set or sharded deployment for change streams. `Observe` accepts a predicate or driver filter and optional nongeneric `FindOptions` (e.g. `MaxTime`). It emits the initial query result then updates; keep and dispose the subscription. Lists apply query-context sorting, paging and totals; pass `ignoreQueryContext: true` for auxiliary lists. Singles ignore paging and emit null when missing. Inject `IMongoDBWatcher` for a shared database stream (`GetChanges(database)`) or the join above; optionally chain a second `Join` before `Select`. Bound all joined inputs; `Select` combines snapshots, not a database-side join.
70
55
 
71
- - **Discovery** runs only when `AutoDiscoverDbContexts` is on (the default) and a connection string is configured. It finds public `BaseDbContext` subclasses without `[IgnoreAutoRegistration]`; `ReadOnlyDbContext` subclasses are registered read-only and the rest read-write. Separately, a command read-model parameter needs `[ReadModel]` and a public `DbSet<T>` on a `ReadOnlyDbContext`; a set on a write context is not found.
72
- - **Connection open** resolves the current tenant and purpose even with pooled contexts. For migrations use `using var purpose = ConnectionPurposeScope.Begin(ConnectionPurpose.Schema);` from `Cratis.Arc.Connections` around the operation. Never put a tenant's resolved connection into singleton options.
73
- - **`BaseDbContext`** supplies the conventions. An `OnModelCreating` override calls `base.OnModelCreating(modelBuilder)` first, or the conventions are lost.
74
- - **`Upsert` is tracked** and needs `SaveChanges`. **`UpsertAsync`** writes immediately with native SQL on SQL Server, PostgreSQL and SQLite, bypassing change tracking and leaving tracked instances and generated values stale; other providers and mappings with generated keys, navigations or owned entities fall back to the tracked path and need `SaveChanges`. Use an application-assigned key, and never assume one call flushed unrelated pending changes.
75
- - **Observation** (`Observe`, `ObserveSingle`, `ObserveById`) needs the observation services that `WithEntityFrameworkCore()` registers. A single-entity observation emits `null` when no row matches and stays subscribed. SQLite only sees writes made through the same application, so a passing in-process test does not prove that an external write is delivered.
56
+ For command read-model injection, mark the class `[ReadModel]` and map its BSON ID. MongoDB is a fallback when no owning provider claims the type. A missing command key fails validation; a valid key without a document yields null for a nullable dependency.
76
57
 
77
- ## Neo4j
58
+ For application-owned documents only: `await shipments.InsertOneAsync(item)`, `ReplaceOneAsync(filter, item)`, `UpdateOneAsync(filter, Builders<Shipment>.Update.Set(s => s.Depot, depot))` and `DeleteOneAsync(filter)` use native driver semantics. Constrain a single-item mutation by the admitted identity. Create indexes via `shipments.Indexes.CreateOneAsync(new CreateIndexModel<Shipment>(Builders<Shipment>.IndexKeys.Ascending(s => s.Depot)))` during provisioning, not query execution.
78
59
 
79
- - Inject the scoped `IGraphSession`; it is a read session for the current tenant. Open `IGraphSessionFactory.Open(AccessMode.Write)` only for data no projection owns, and dispose it. Never write a projected graph from a query.
80
- - The database name is computed by `GraphDatabaseName.For(prefix, eventStore, @namespace)`, the same algorithm the writer uses. Call it instead of building a similar-looking name.
81
- - In single-database mode every tenant shares one database. The writer stamps `_namespace` on each element and the reader has to filter `WHERE n._namespace = $namespace`; receiving the `$namespace` parameter does not filter anything.
82
- - `Query<T>` converts concept parameters and maps columns to members by name. When dropping to `Run` or `Session`, pass `graph.Parameters(...)` so the same conversion and `$namespace` apply.
60
+ ## Placement, ownership and mapping exceptions
83
61
 
84
- ## Resolve connections and credentials
62
+ - To place tenants on other servers or databases, or give them their own credentials, use [connection resolution](csharp-connection-resolution.md). `m.WithDatabaseResolver<DepotDatabase>()` with an `IMongoDatabaseNameResolver` only renames the database, for example to match existing names; it never changes the server or credentials. It must keep the default-tenant mapping: when `TenantId.IsDefault` (unset or the named `Default` tenant) return the bare base name. Suffixing the default tenant reads a database nothing writes to, and MongoDB returns empty results without an error. Prefer the registered scoped collection over creating clients. If a separate configured client really is needed, `IMongoDBClientFactory.Create()` also has settings, URL and connection-string overloads; it does not select the collection for you.
63
+ - For a named sink configure `Cratis:MongoDB:Sinks:reporting:Server` or `ServerFile` (secret file). Use Chronicle's `[Sink("reporting")]` or Arc's `[ReadModelSink("reporting")]` from `Cratis.Arc.Sinks` (Arc wins). Inject the model's collection normally. Lower-level code uses `IMongoDBReadModelDatabases.GetFor(typeof(Shipment))` or `IMongoDBSinks.GetClientFor("reporting")`. Unknown named sinks fail rather than falling back.
64
+ - Leave `DirectConnection` unset to preserve the URI setting; true pins a server, not a change-stream capability. `EnableResilience` defaults on: async collection-not-found may return empty/default or wait on a stream. Set false for native driver failure behavior. `LogCommandBodies` is off; enable only in a controlled environment without sensitive data.
65
+ - Concepts serialize as their underlying values; use nested mapped types for actual subdocuments. Arc supplies serializers for temporal and geospatial values and polymorphic discrimination. Match stored IDs and discriminators, not just the apparent JSON shape.
66
+ - Configure maps **before first use** (driver maps freeze). For example:
85
67
 
86
- Use `Cratis:Arc:ConnectionResolution` to share resolver settings between MongoDB and EF Core. A configured integration-level `ConnectionResolution` replaces the entire shared default; it does not merge. The two slots run in order, `Connection` then `Identity`. The default is `Default` (configured values); use `Template` for scope-derived values, `Http` for a trusted endpoint or `Custom` for an application `IConnectionResolver`.
68
+ ```csharp
69
+ public class ShipmentMap : IBsonClassMapFor<Shipment>
70
+ {
71
+ public void Configure(BsonClassMap<Shipment> map)
72
+ {
73
+ map.AutoMap();
74
+ map.SetIdMember(map.GetMemberMap(s => s.Id));
75
+ map.GetMemberMap(s => s.Depot).SetElementName("hub");
76
+ }
77
+ }
78
+ ```
87
79
 
88
- For rotating identity without moving the database, configure only the `Identity` slot inside `ConnectionResolution` and have the endpoint return identity only:
80
+ Maps, pack providers and filters are discovered. For explicit builder registration use `m.AddClassMap<ShipmentMap>()` or `m.AddConventionPackFilter<ShipmentFilter>()` when not already discovered. Implement `ICanProvideMongoDBConventionPacks.Provide()` returning e.g. `[new("Depot enums", new ConventionPack { new EnumRepresentationConvention(BsonType.String) })]`; constrain its scope with `ICanFilterMongoDBConventionPacksForType.ShouldInclude(name, pack, type)` (e.g. `name != "Depot enums" || type == typeof(Shipment)`). `[IgnoreConventions]` opts out of Arc packs; supply the complete mapping instead.
89
81
 
90
- ```json
91
- { "Identity": { "Resolver": "Http", "Http": { "Endpoint": "https://platform.example/connections" } } }
92
- ```
82
+ ## Not supported in this SDK
93
83
 
94
- Results are cached per request key, honor `expiresAt` and are invalidated on recognized login failure. Never log resolved credentials. Changing the destination does not migrate data.
84
+ - No Arc MongoDB `PoolSize` option: size native driver pools through the connection string, accounting for distinct destinations and identities.
85
+ - No Arc document-renderer row-filter/release hooks: compose the admitted filter before reads, counts and pages. For Chronicle-controlled encrypted data use the owning service's authorized release path, not a direct BSON read.
86
+ - No renderer byte budget or configurable watcher quotas for databases, subscribers and queues. Bound selection, duration, page size and subscription admission in the application; reject unbounded live joins.
95
87
 
96
- ## Verify the connection, not the startup
88
+ ## Common mistakes
97
89
 
98
- A host that starts has not opened a connection. For EF Core, open for two tenants through the same context pool and assert that each reaches only its own database; also test a schema-purpose open, credential expiry and login-failure invalidation. For document and graph readers, read a known record through the query for each tenant. Do not capture a resolved client, session or connection in a singleton.
90
+ - Choosing the database from a caller argument instead of the admitted tenant.
91
+ - Changing the naming policy without checking the writer’s existing collection and field names.
@@ -1,5 +1,123 @@
1
- # Connect the writer and reader to the same store
1
+ # Bind an Elixir query to MongoDB
2
2
 
3
- Configure `mongodb: [server: ..., database: ..., naming_policy: :camel_case]` on the Arc application, obtaining credentials from deployment configuration. Start `{Cratis.Arc.MongoDB, application: MyApp.Arc}` **after** `MyApp.Arc` in the supervision tree. The configured database serves the default tenant; check the named tenant's resolved database separately.
3
+ ## Contents
4
4
 
5
- Use atom keys for struct field filters and string keys for raw Mongo field names. Treat `{:error, :duplicate}` as a refused write, not a successful update. For distributed tenants, `connection_resolution` selects connection placement and credentials per tenant; do not forward a caller's OIDC token as a database credential. Write and read one scoped document before testing change streams on a replica set or sharded cluster.
5
+ - Match the writer's document
6
+ - Resolve and query in scope
7
+ - Change application-owned documents only
8
+ - Observe changes
9
+ - Override placement only when necessary
10
+ - Test against a real server
11
+ - Not supported in this SDK
12
+
13
+ Add `:cratis_arc_mongodb` to the host's Mix dependencies. Chronicle is not required. Names below are illustrative. Configure the Arc application in `config/runtime.exs` and start the MongoDB child **after** the Arc application, before the endpoint:
14
+
15
+ ```elixir
16
+ config :dispatch, Dispatch.Arc,
17
+ mongodb: [server: System.fetch_env!("MONGODB_URL"), database: "dispatch", naming_policy: :camel_case]
18
+
19
+ # In the supervision tree:
20
+ children = [Dispatch.Arc, {Cratis.Arc.MongoDB, application: Dispatch.Arc}, Dispatch.Endpoint]
21
+ ```
22
+
23
+ Both `server` and `database` are required. The integration owns the clients, sharing a pool per server and identity (`pool_size: 5` by default). Leave `direct_connection` unset for URI-controlled topology; use `direct_connection: true` only to target one server deliberately. The default tenant uses `dispatch`, tenant `north` uses `dispatch+north`. Resolve inside the authorized request; database naming is not authorization.
24
+
25
+ ## Match the writer's document
26
+
27
+ ```elixir
28
+ defmodule Dispatch.Parcel do
29
+ use Cratis.Arc.MongoDB.Document,
30
+ collection: "shipments", id: :tracking_id,
31
+ types: [tracking_id: :uuid, shipped_on: :date, checkpoints: {:list, :string}]
32
+ defstruct tracking_id: nil, shipped_on: nil, checkpoints: [], depot_code: ""
33
+ end
34
+ ```
35
+
36
+ A plain struct also works. By default `:id` maps to `_id`, the collection comes from the type name, and naming policy is `:none`. `:camel_case` maps `depot_code` to `depotCode`; `:snake_case` is also available. For other conventions set `naming_policy: Dispatch.Names`, implementing `Cratis.Arc.MongoDB.NamingPolicy` callbacks `property_name/1` and `collection_name/1`. Use `collection:` for an exceptional physical name, not a global pluralization change.
37
+
38
+ Use `types:` where defaults do not describe the stored representation: `:string`, `:integer`, `:float`, `:boolean` for scalars; `:uuid` for BSON subtype 4; `:object_id` for a 24-hex-character ID; `:datetime` for UTC milliseconds; `:date` for noon UTC. `:map` and nested struct modules are embedded documents, concept modules store their wrapped primitive, and `{:list, type}` stores an array. Give lists `[]` defaults. Reads ignore unknown fields and retain struct defaults for absent fields.
39
+
40
+ ## Resolve and query in scope
41
+
42
+ ```elixir
43
+ alias Cratis.Arc.MongoDB, as: DB
44
+ alias Dispatch.Parcel
45
+ scope = {ctx, Parcel}
46
+ filter = %{depot_code: admitted_depot}
47
+ DB.locate(scope) # {database, collection}; compare with writer
48
+ DB.database(ctx) # tenant database
49
+ DB.find(scope, filter, sort: [shipped_on: :desc], skip: 5, limit: 10)
50
+ DB.find_one(scope, filter)
51
+ DB.find_by_id(scope, tracking_id) # struct or nil; not a row authorization check
52
+ DB.count(scope, filter)
53
+ DB.page(scope, filter, page_size: 25)
54
+ ```
55
+
56
+ `DB.all(scope, limit: 10)` reads without a predicate; use only when all tenant rows are admitted. Atom filter keys are checked struct fields with typed values; unknown fields raise. String keys are raw Mongo names, operators or dotted paths. For driver operations resolve `c = DB.collection(ctx, Parcel)` and use `c.topology`, `c.name` **and** `database: c.database`; never cache `c` across requests.
57
+
58
+ `page` counts the same predicate and returns `%Cratis.Arc.Page{items: ..., total: ..., page: ..., size: ...}`. Keep the `{ctx, Parcel}` scope to honor request paging/sort. Explicit `:page` and `:page_size` override request values; pages start at zero and nonpositive size is unbounded. Validate request sizes and sort fields first: a recognized client sort field takes precedence over `:sort`.
59
+
60
+ For command enrichment, `def provide(%__MODULE__{id: id}, ctx), do: DB.provide(ctx, Parcel, id, :parcel)` supplies `ctx.provided.parcel` (nil on a miss); omit the name for the type-derived key.
61
+
62
+ ## Change application-owned documents only
63
+
64
+ ```elixir
65
+ DB.insert(scope, parcel)
66
+ DB.insert_many(scope, parcels)
67
+ DB.save(scope, parcel) # replace by ID, inserting if absent
68
+ DB.update(scope, tracking_id, %{"$set" => %{depot_code: next_depot}})
69
+ DB.update_many(scope, filter, %{"$set" => %{depot_code: next_depot}})
70
+ DB.delete(scope, tracking_id)
71
+ DB.delete_many(scope, filter) # omitting filter deletes every document
72
+ schema_collection = DB.collection(ctx, Parcel, purpose: :schema)
73
+ DB.create_index(schema_collection, [depot_code: :asc], name: "depot_lookup", sparse: true)
74
+ ```
75
+
76
+ Insert/save return `{:ok, document}` (a list for bulk insert); update/delete return `{:ok, count}`, possibly zero. Handle `{:error, reason}`. `unique: true` enforces uniqueness; an insert or save that breaks it returns `{:error, :duplicate}`, not an update. Do not repair projections with these calls.
77
+
78
+ ## Observe changes
79
+
80
+ ```elixir
81
+ @observe many: true, watch: [DB.watch(Parcel)]
82
+ def recent(_args, ctx), do: {:ok, DB.all({ctx, Parcel}, sort: [shipped_on: :desc], limit: 20)}
83
+ ```
84
+
85
+ A watch invalidates the collection, not just matching IDs; rerun the scoped selection (use `find_by_id` for one document). List every contributing collection in `watch:` for joins. Change streams require a replica set or sharded cluster. Observers share a stream per database; it resumes after interruption, invalidates observers and closes when the last observer leaves.
86
+
87
+ ## Override placement only when necessary
88
+
89
+ For simple overrides, `database_resolver: Dispatch.Databases` implements `Cratis.Arc.MongoDB.DatabaseNameResolver.resolve(tenant, options)` (handle nil); `server_resolver: Dispatch.Servers` implements `Cratis.Arc.MongoDB.ServerResolver.resolve(options)`. For tenant-specific servers or rotating identities, add this option inside `mongodb:`:
90
+
91
+ ```elixir
92
+ connection_resolution: [
93
+ connection: {:template, database: "dispatch-{tenant}"},
94
+ identity: {:http, endpoint: System.fetch_env!("DIRECTORY_URL"),
95
+ headers: [{"x-api-key", System.fetch_env!("DIRECTORY_KEY")}]},
96
+ cache_duration: 120
97
+ ]
98
+ ```
99
+
100
+ Both slots default to `:default`; connection applies first, then identity. A resolved database replaces tenant suffixing. Templates accept `:database` and `:connection_string` with `{tenant}` (`Default` if unset), `{storage}` and `{purpose}`; missing substitutions fail. HTTP POST sends storage `MongoDB`, purpose `Runtime` or `Schema`, and `scope.tenant`; `timeout:` defaults to 10000 ms. Return 200 with the chosen `connectionString`, `database`, `identity` or `expiresAt` fields, or 204 for unchanged. Keep endpoint credentials separate from database credentials. Alternatively implement `Cratis.Arc.MongoDB.ConnectionResolver.resolve/1`, e.g. `def resolve(%{scope: %{"tenant" => t}}), do: {:ok, %Cratis.Arc.MongoDB.ResolvedConnection{database: "dispatch-" <> t}}`. Cache duration defaults to 300 seconds; answers are keyed by purpose and tenant, refreshed ahead of expiry and invalidated on authentication rejection. Schema purpose selects permissions, not a migration.
101
+
102
+ ## Test against a real server
103
+
104
+ There is no in-memory MongoDB. Run the specs against a server you start (a single-node replica set when they observe changes) and give each run its own databases:
105
+
106
+ ```elixir
107
+ setup do
108
+ database = Cratis.Arc.MongoDB.Test.unique_database("dispatch")
109
+ Application.put_env(:dispatch, Dispatch.Arc, mongodb: [server: url, database: database])
110
+ Cratis.Arc.Application.refresh(Dispatch.Arc)
111
+ start_supervised!({Cratis.Arc.MongoDB, application: Dispatch.Arc})
112
+ on_exit(fn -> Cratis.Arc.MongoDB.Test.drop_databases(Dispatch.Arc, database, ["north"]) end)
113
+ end
114
+ ```
115
+
116
+ `put_env` replaces the whole Arc entry of the test environment, so merge in any other keys the specs need; `refresh/1` makes Arc read the changed configuration. `drop_databases/3` drops the default database and those of the listed tenants. `Cratis.Arc.MongoDB.Test.available?(url)` tells whether a server answers, for skipping these specs when none runs; `Cratis.Arc.MongoDB.Test.connect(url)` returns a ready driver connection for checking what was stored.
117
+
118
+ ## Not supported in this SDK
119
+
120
+ - Relational mappings, provider notifications and graph sessions/views — query through the owning service or implement a separate tenant-scoped adapter.
121
+ - Named sink routing, convention packs, derived-type class maps and injected Mongo clients — match the writer explicitly with a document mapping and managed connection; use a dedicated adapter for incompatible representations.
122
+ - Automatic row filtering, Chronicle release/decryption, configurable renderer/watcher quotas and sort allowlists — apply admission before querying, bound pages and subscriptions at the application boundary, and request protected data through its owning service.
123
+ - Resilience and command-body logging switches — rely on the watcher's recovery and log destination diagnostics without bodies or credentials. Database OIDC access tokens are refused; resolve supported database credentials instead.