@cratis/pi 8.4.1 → 8.6.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 (286) hide show
  1. package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +2 -1
  2. package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +1 -1
  3. package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +5 -3
  4. package/package/corpus/harnesses/copilot/instructions/react.instructions.md +3 -1
  5. package/package/corpus/harnesses/copilot/instructions/reactors.instructions.md +3 -1
  6. package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +2 -1
  7. package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +6 -3
  8. package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +5 -2
  9. package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +131 -9
  10. package/package/corpus/rules/ai-distribution.md +2 -1
  11. package/package/corpus/rules/exit-codes-and-wrappers.md +1 -1
  12. package/package/corpus/rules/glossary.md +5 -3
  13. package/package/corpus/rules/react.md +3 -1
  14. package/package/corpus/rules/reactors.md +3 -1
  15. package/package/corpus/rules/scripting.md +2 -1
  16. package/package/corpus/rules/specs.csharp.md +6 -3
  17. package/package/corpus/rules/vertical-slices.md +5 -2
  18. package/package/corpus/skills/cratis-application-growth/SKILL.md +1 -2
  19. package/package/corpus/skills/cratis-application-growth/references/csharp.md +1 -3
  20. package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +1 -2
  21. package/package/corpus/skills/cratis-application-growth/references/rename-window.md +1 -3
  22. package/package/corpus/skills/cratis-application-growth/references/service-and-delivery.md +3 -2
  23. package/package/corpus/skills/cratis-application-growth/references/stages.md +2 -2
  24. package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +3 -3
  25. package/package/corpus/skills/cratis-arc-authorize-request/references/authproxy.md +47 -3
  26. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp-query-security.md +18 -3
  27. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +12 -3
  28. package/package/corpus/skills/cratis-arc-authorize-request/references/typescript.md +2 -0
  29. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +1 -0
  30. package/package/corpus/skills/cratis-arc-connect-storage/references/elixir.md +9 -2
  31. package/package/corpus/skills/cratis-arc-declare-command/SKILL.md +2 -0
  32. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-chronicle.md +47 -8
  33. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-controller.md +3 -1
  34. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-history.md +6 -3
  35. package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +38 -11
  36. package/package/corpus/skills/cratis-arc-declare-command/references/go.md +1 -1
  37. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-abilities.md +2 -2
  38. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-recovery.md +6 -4
  39. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +2 -2
  40. package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +1 -1
  41. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +29 -7
  42. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/java.md +1 -1
  43. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/kotlin.md +1 -1
  44. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp-diagnose-tool-call.md +9 -7
  45. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp.md +52 -1
  46. package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +4 -2
  47. package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +36 -10
  48. package/package/corpus/skills/cratis-arc-expose-query/references/go.md +2 -2
  49. package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +6 -3
  50. package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +1 -0
  51. package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +55 -6
  52. package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +9 -0
  53. package/package/corpus/skills/cratis-arc-host-application/SKILL.md +1 -1
  54. package/package/corpus/skills/cratis-arc-host-application/references/csharp-configuration.md +54 -0
  55. package/package/corpus/skills/cratis-arc-host-application/references/csharp-deployment.md +98 -0
  56. package/package/corpus/skills/cratis-arc-host-application/references/csharp-http.md +9 -1
  57. package/package/corpus/skills/cratis-arc-host-application/references/csharp-identity.md +87 -4
  58. package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +9 -0
  59. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp-extensions.md +4 -0
  60. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +2 -1
  61. package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +19 -2
  62. package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +4 -2
  63. package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +2 -0
  64. package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +33 -36
  65. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-commands.md +18 -3
  66. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-host.md +94 -19
  67. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-identity.md +29 -5
  68. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-instant-feedback.md +81 -0
  69. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-localization.md +80 -0
  70. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-navigation.md +103 -0
  71. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-queries.md +41 -2
  72. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-structure.md +117 -0
  73. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript.md +8 -4
  74. package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +3 -3
  75. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/typescript.md +27 -6
  76. package/package/corpus/skills/cratis-arc-testing-typescript/references/typescript.md +2 -2
  77. package/package/corpus/skills/cratis-arc-validate-command/references/csharp-rules.md +23 -2
  78. package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +28 -2
  79. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +1 -0
  80. package/package/corpus/skills/cratis-authproxy-configure/SKILL.md +136 -0
  81. package/package/corpus/skills/cratis-authproxy-configure/references/admission.md +125 -0
  82. package/package/corpus/skills/cratis-authproxy-configure/references/aspire.md +154 -0
  83. package/package/corpus/skills/cratis-authproxy-configure/references/operations.md +122 -0
  84. package/package/corpus/skills/cratis-authproxy-configure/references/services-and-routing.md +114 -0
  85. package/package/corpus/skills/cratis-authproxy-configure/references/sessions-and-logout.md +126 -0
  86. package/package/corpus/skills/cratis-authproxy-configure/references/sign-in-providers.md +116 -0
  87. package/package/corpus/skills/cratis-authproxy-configure/references/tenant-resolution.md +135 -0
  88. package/package/corpus/skills/cratis-choreography-run-workflow/SKILL.md +117 -0
  89. package/package/corpus/skills/cratis-choreography-run-workflow/references/csharp-chronicle.md +164 -0
  90. package/package/corpus/skills/cratis-choreography-run-workflow/references/csharp.md +354 -0
  91. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +6 -6
  92. package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +11 -3
  93. package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +50 -0
  94. package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +17 -3
  95. package/package/corpus/skills/cratis-chronicle-cli-operations/references/setup-and-target.md +8 -2
  96. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-services.md +13 -2
  97. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +12 -0
  98. package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin.md +2 -0
  99. package/package/corpus/skills/cratis-chronicle-connect-application/references/python.md +2 -2
  100. package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript.md +10 -1
  101. package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +9 -2
  102. package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +35 -3
  103. package/package/corpus/skills/cratis-chronicle-constrain-append/references/go.md +1 -1
  104. package/package/corpus/skills/cratis-chronicle-constrain-append/references/operations.md +70 -0
  105. package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +6 -3
  106. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/configuration.md +113 -16
  107. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/container-and-kubernetes.md +293 -0
  108. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/kernel-options.md +16 -9
  109. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/network-and-tls.md +60 -7
  110. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +124 -2
  111. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md +36 -1
  112. package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +12 -0
  113. package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +2 -2
  114. package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +15 -5
  115. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +9 -8
  116. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go.md +2 -2
  117. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +1 -1
  118. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +1 -1
  119. package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +2 -2
  120. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-fluent.md +15 -4
  121. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md +4 -1
  122. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-reading.md +5 -2
  123. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +23 -0
  124. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +1 -0
  125. package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +2 -1
  126. package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +3 -1
  127. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +4 -3
  128. package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +3 -1
  129. package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +3 -1
  130. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-scopes.md +41 -4
  131. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +22 -4
  132. package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +7 -0
  133. package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +9 -1
  134. package/package/corpus/skills/cratis-chronicle-protect-decision/references/java.md +8 -0
  135. package/package/corpus/skills/cratis-chronicle-protect-decision/references/kotlin.md +9 -0
  136. package/package/corpus/skills/cratis-chronicle-protect-decision/references/typescript.md +7 -0
  137. package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +1 -1
  138. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +28 -3
  139. package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +7 -6
  140. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +41 -0
  141. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir-integrations.md +3 -3
  142. package/package/corpus/skills/cratis-chronicle-publish-contract/references/webhook-signature-wire-format.md +82 -0
  143. package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +19 -1
  144. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-outputs.md +3 -1
  145. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-pages.md +1 -1
  146. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +37 -4
  147. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir.md +11 -0
  148. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +2 -1
  149. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +1 -0
  150. package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +3 -3
  151. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-coordination.md +31 -2
  152. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-history.md +21 -4
  153. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +20 -2
  154. package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +1 -1
  155. package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +1 -1
  156. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +3 -0
  157. package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +2 -1
  158. package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +3 -1
  159. package/package/corpus/skills/cratis-chronicle-reduce-state/references/java.md +10 -1
  160. package/package/corpus/skills/cratis-chronicle-reduce-state/references/kotlin.md +10 -1
  161. package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +27 -5
  162. package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +18 -0
  163. package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +21 -1
  164. package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +13 -0
  165. package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +15 -0
  166. package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +15 -0
  167. package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +16 -0
  168. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +1 -1
  169. package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +4 -3
  170. package/package/corpus/skills/cratis-ci-pipeline-performance/references/publish-pipelines.md +19 -4
  171. package/package/corpus/skills/cratis-code-review/SKILL.md +6 -2
  172. package/package/corpus/skills/cratis-code-review/references/csharp-diagnostics.md +28 -2
  173. package/package/corpus/skills/cratis-code-review/references/csharp.md +4 -4
  174. package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +6 -38
  175. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +2 -0
  176. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-labels-and-release.md +5 -4
  177. package/package/corpus/skills/cratis-commits-and-pull-requests/references/workflow-inputs.md +39 -0
  178. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +6 -8
  179. package/package/corpus/skills/cratis-components-accessibility/references/typescript.md +32 -14
  180. package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +4 -3
  181. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-props.md +1 -1
  182. package/package/corpus/skills/cratis-components-build-canvas/references/typescript.md +4 -2
  183. package/package/corpus/skills/cratis-components-choose-control/SKILL.md +13 -7
  184. package/package/corpus/skills/cratis-components-choose-control/references/from-primereact.md +116 -0
  185. package/package/corpus/skills/cratis-components-choose-control/references/menu.md +90 -0
  186. package/package/corpus/skills/cratis-components-choose-control/references/typescript-composition.md +48 -0
  187. package/package/corpus/skills/cratis-components-choose-control/references/typescript.md +2 -2
  188. package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +2 -1
  189. package/package/corpus/skills/cratis-components-compose-toolbar/references/floating-toolbar.md +146 -0
  190. package/package/corpus/skills/cratis-components-diagnose-screen/SKILL.md +102 -0
  191. package/package/corpus/skills/cratis-components-display-list/SKILL.md +10 -10
  192. package/package/corpus/skills/cratis-components-display-list/references/typescript-custom-panel.md +74 -0
  193. package/package/corpus/skills/cratis-components-display-list/references/typescript-datatables.md +2 -7
  194. package/package/corpus/skills/cratis-components-display-list/references/typescript.md +3 -2
  195. package/package/corpus/skills/cratis-components-submit-form/SKILL.md +6 -6
  196. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commanddialog.md +21 -1
  197. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commandform.md +72 -2
  198. package/package/corpus/skills/cratis-components-submit-form/references/typescript.md +7 -5
  199. package/package/corpus/skills/cratis-components-theme-application/SKILL.md +17 -15
  200. package/package/corpus/skills/cratis-components-theme-application/references/localization.md +166 -0
  201. package/package/corpus/skills/cratis-components-theme-application/references/typescript.md +18 -14
  202. package/package/corpus/skills/cratis-components-theme-application/references/upgrade-from-previous-major.md +141 -0
  203. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +2 -0
  204. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-domain-philosophy.md +31 -3
  205. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-fundamentals-helpers.md +119 -0
  206. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp.md +4 -0
  207. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp-serialization.md +72 -1
  208. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp.md +9 -0
  209. package/package/corpus/skills/cratis-fundamentals-concept/references/go.md +2 -1
  210. package/package/corpus/skills/cratis-fundamentals-concept/references/java-json.md +3 -2
  211. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-json.md +3 -2
  212. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md +41 -2
  213. package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +8 -7
  214. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +2 -1
  215. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +3 -3
  216. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp-diagnostics.md +8 -0
  217. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp.md +2 -2
  218. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go-dependency-injection.md +3 -0
  219. package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +6 -4
  220. package/package/corpus/skills/cratis-modeling-design-event-model/references/command-inventory.md +7 -1
  221. package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +13 -1
  222. package/package/corpus/skills/cratis-modeling-design-event-model/references/review-one-slice.md +6 -0
  223. package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +6 -6
  224. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp-aspire.md +116 -28
  225. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +2 -2
  226. package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +46 -0
  227. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +4 -2
  228. package/package/corpus/skills/cratis-platform-build-application/SKILL.md +8 -0
  229. package/package/corpus/skills/cratis-platform-build-application/references/cratis-identity.md +71 -0
  230. package/package/corpus/skills/cratis-platform-build-application/references/studio-repository.md +96 -0
  231. package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +14 -8
  232. package/package/corpus/skills/cratis-platform-deliver-slice/references/csharp.md +167 -3
  233. package/package/corpus/skills/cratis-platform-deliver-slice/references/eventual-consistency.md +150 -0
  234. package/package/corpus/skills/cratis-platform-deliver-slice/references/typescript.md +14 -1
  235. package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +1 -1
  236. package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +8 -8
  237. package/package/corpus/skills/cratis-platform-prepare-release-pr/references/product-release-checks.md +16 -2
  238. package/package/corpus/skills/cratis-platform-start-application/SKILL.md +21 -0
  239. package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +77 -3
  240. package/package/corpus/skills/cratis-platform-upgrade-application/SKILL.md +118 -0
  241. package/package/corpus/skills/cratis-platform-upgrade-application/references/csharp.md +117 -0
  242. package/package/corpus/skills/cratis-platform-upgrade-application/references/java.md +53 -0
  243. package/package/corpus/skills/cratis-platform-upgrade-application/references/kotlin.md +53 -0
  244. package/package/corpus/skills/cratis-platform-upgrade-application/references/typescript.md +71 -0
  245. package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -1
  246. package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +6 -3
  247. package/package/corpus/skills/cratis-screenplay-accept-model/references/csharp.md +34 -3
  248. package/package/corpus/skills/cratis-screenplay-accept-model/references/read-the-evidence.md +84 -3
  249. package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +7 -11
  250. package/package/corpus/skills/cratis-screenplay-declare-slice/references/commands.md +8 -4
  251. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projections.md +2 -0
  252. package/package/corpus/skills/cratis-screenplay-declare-slice/references/structure-and-imports.md +29 -1
  253. package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +2 -1
  254. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/mcp-tools.md +1 -1
  255. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/csharp.md +13 -1
  256. package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +1 -1
  257. package/package/corpus/skills/cratis-screenplay-model-translation/references/boundary-diagnostics.md +1 -1
  258. package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +30 -51
  259. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/cli.md +19 -2
  260. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/smallest-model.md +87 -0
  261. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/studio.md +5 -0
  262. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/typescript.md +13 -0
  263. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/workspace-mcp.md +5 -0
  264. package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +8 -12
  265. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/running-mcp.md +12 -0
  266. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/scenarios.md +2 -2
  267. package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +2 -0
  268. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-colocated.md +101 -0
  269. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +4 -2
  270. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-decision-reads.md +1 -0
  271. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-events.md +7 -0
  272. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-integration.md +7 -4
  273. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-reactors.md +18 -5
  274. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-read-models.md +4 -2
  275. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +35 -2
  276. package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +2 -0
  277. package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +4 -2
  278. package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +1 -1
  279. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-running.md +10 -3
  280. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript.md +22 -4
  281. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +2 -1
  282. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/references/typescript.md +40 -0
  283. package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +6 -0
  284. package/package/corpus/skills/cratis-stage-render-slice/references/semantic-conformance.md +64 -0
  285. package/package/profile-catalog.json +15 -0
  286. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-platform-prepare-release-pr
3
- description: Use when a finished change to a Cratis library, tool or AI corpus needs a pull request title, release note and release intent, or when a merged change appears unreleased. Not for implementing changes (use cratis-platform-contribute-change), repairing releases or writing upgrade guides (use cratis-release-notes), or coordinating repositories (use cratis-engineering-release-trains).
3
+ description: Use when a finished change to a Cratis library, tool or AI corpus needs a pull request title, release note and release intent, when a merged change appears unreleased, when a pull request build should publish a prerelease, or for product release rules (Go v0.x labels, a fix for an older major line, Studio, MCP artifacts). Not for implementing changes (use cratis-platform-contribute-change), repairing releases or writing upgrade guides (use cratis-release-notes), or coordinating repositories (use cratis-engineering-release-trains).
4
4
  ---
5
5
 
6
6
  # Prepare a platform release pull request
@@ -50,19 +50,19 @@ Choose by what a consumer observes after upgrading, not by which folder changed.
50
50
 
51
51
  | Label | The consumer, after upgrading... |
52
52
  | --- | --- |
53
- | `major` | must change something. Examples: a removed or renamed public type or member, a changed wire, persisted or event shape, a changed result, a removed CLI option |
54
- | `minor` | can adopt something new, and nothing existing changes |
53
+ | `major` | must change something. Examples: a removed or renamed public type or member, a changed wire, persisted or event shape, a changed result, a removed CLI option. Exception: the v0.x Go modules (Fundamentals.Go, Arc.Go and Chronicle.Go) use `minor` for a breaking API change |
54
+ | `minor` | can adopt something new, and nothing existing changes. In the v0.x Go modules (Fundamentals.Go, Arc.Go and Chronicle.Go) it also covers a breaking API change, which the note must describe |
55
55
  | `patch` | gets a fix or an internal change, with identical contracts |
56
56
  | `no-release` | cannot observe any change. Examples: documentation, CI, repository automation, specs and tests, tooling that ships no artifact |
57
57
 
58
58
  - The PR policy rejects missing or conflicting intent (including `no-release` beside a bump). `no-release` still requires all required checks. Ask when the consumer impact is unclear rather than burning a version.
59
- - `major` requires explicit human approval of the release and a human merge. For root-module ceilings or nested-module changes, see the [product release checks](references/product-release-checks.md).
59
+ - `major` requires explicit human approval of the release and a human merge. The action applies a label's bump to the highest stable GitHub release. With no stable release, it uses the highest version tag, else `0.0.0`; if the lookup fails, it uses `0.0.0`. In automatic releases, `no-release` leaves out that PR's own bump and notes, but its merge can still publish other pending PRs. For the Go modules (v0.x labels, major ceiling, nested modules) or a fix for an older major line, such as Components 3, see the [product release checks](references/product-release-checks.md).
60
60
  - AI corpus: use `patch` for corrections, `minor` for new guidance, and `no-release` for tests, evaluations or CI that do not ship. For hooks, tell consumers to run `cratis ai update`.
61
61
  - Dependabot is exempt from the hosted policy check and omitted from action-driven release notes and bumps; use `no-release` for non-shipping maintenance.
62
62
 
63
63
  ## Writing the title and note
64
64
 
65
- Title the PR with the change a consumer can recognize at a glance. Use a short, specific action phrase and follow the repository's title convention if it has one. Do not use the title to set release intent; the workflow takes it from labels or explicit inputs. Never add a CI skip token to a PR title: it can carry into the merge commit and suppress verification on `main`.
65
+ Title the PR with the change a consumer can recognize at a glance. Use a short, specific action phrase and follow the repository's title convention if it has one. For automatic releases, the title does not set release intent; the workflow takes it from labels or explicit inputs. A Fundamentals.Go nested-module release PR is the exception (see the [product release checks](references/product-release-checks.md)). Never add a CI skip token to a PR title: it can carry into the merge commit and suppress verification on `main`.
66
66
 
67
67
  Write what changed for the upgrader, not how the change was built. The full body contract is in `cratis-commits-and-pull-requests`.
68
68
 
@@ -92,10 +92,10 @@ A label-derived decision checks for an existing release at its target before sel
92
92
 
93
93
  ### Release intent labels
94
94
 
95
- - `major`: breaking consumer change; requires explicit human approval and a human merge.
96
- - `minor`: backward-compatible addition; use for new opt-in capabilities.
95
+ - `major`: breaking consumer change; requires explicit human approval and a human merge. The v0.x Go modules use `minor` instead.
96
+ - `minor`: backward-compatible addition; use for new opt-in capabilities. In the v0.x Go modules, also a breaking API change, described in the note.
97
97
  - `patch`: compatible fix or improvement; use when existing contracts stay intact.
98
- - `no-release`: no version or notes for this PR, even if its merge is an ancestor of a later release.
98
+ - `no-release`: in automatic releases, no version or notes for this PR, even if its merge is an ancestor of a later release.
99
99
  - `hotfix`: in windowed batching, add beside a bump to skip the wait for the entire pending set; a pending `major` gives `error` on the hotfix's merge run and `batched` on other non-manual runs.
100
100
 
101
101
  ### Note body
@@ -11,11 +11,25 @@
11
11
  - The compatibility gate can hold **deployment after publication**. Check the tag and images separately, then the compatibility output and deployment/smoke results. A green run with a hold and skipped deploy is not production evidence.
12
12
  - **Release compatibility retry** checks production again and dispatches the production deployment when compatible; it does not publish a new release. Confirm the deployed version and smoke result before saying it reached production.
13
13
 
14
+ ## Components
15
+
16
+ - Components 3 is in maintenance on the `support/3.x` branch, never released from `main`. The automatic release on `main` bumps from the highest stable release, which is on the current major, so it cannot release a 3.x fix, and dispatching Publish on `main` refuses an older-major version.
17
+ - Land a 3.x fix by pull request into `support/3.x`. Then propose dispatching **Publish** from `support/3.x` with the exact new 3.x version, unless the request authorizes the dispatch.
18
+ - The 3.x packages publish under the `v3-lts` npm dist-tag, and `latest` stays on the current major. Consumers on a `^3` range receive the fix through it; others install the exact version or `@v3-lts`.
19
+ - A 3.x release gets a plain `v3.x.y` tag and no GitHub release. Re-running a failed support run skips packages already published and continues where it stopped.
20
+
14
21
  ## Arc and Chronicle Go SDKs
15
22
 
16
23
  - Publish runs on a push to `main` and releases only the canonical lowercase root module, after Go and Markdown verification. Check the GitHub release/tag and that the version resolves through the public Go module proxy at `github.com/cratis/arc.go` or `github.com/cratis/chronicle.go`. If indexing fails after tagging, request a retry of the failed jobs for that same tag rather than moving the tag or bumping again.
17
- - The Go major-release policy and Publish enforce `GO_RELEASE_MAJOR_CEILING`: the neutral setting `0` blocks the first major launch, and a maintainer must approve setting it to `1`. A further major needs a new module path and release design, not a label workaround.
18
- - For a nested-module change, ask the maintainer how it should ship. Do not assume the root workflow publishes it or prescribe a special title or dispatch.
24
+ - Both Go SDKs are v0.x. Label a breaking API change `minor` and a compatible fix `patch`, and describe the break explicitly in the note.
25
+ - While `GO_RELEASE_MAJOR_CEILING` is `0` (the default), a `major` label fails the Go major-release policy check, because the bump would publish v1.0.0. Setting it to `1` is only for a maintainer-approved v1 launch that a human merges, never a way to pass one pull request; with `1`, the check permits the first v1 bump but rejects any further `major`. Values above `1` are rejected: v2 and later need a `/vN` module path and a separate release design, not a label workaround.
26
+ - Publish tags and indexes only the root module (`vX.Y.Z`). A root tag does not release a nested module, and nested-module publication is not set up. Never push a nested-module tag yourself; ask the maintainer how the change should ship.
27
+
28
+ ## Fundamentals.Go
29
+
30
+ - Fundamentals.Go is v0.x and uses the same labels as the Go SDKs: `minor` for a breaking API change, described explicitly in the note, and `patch` for a compatible fix. Publish releases the root module on a push to `main`, and the root `major` label is subject to the same `GO_RELEASE_MAJOR_CEILING` check.
31
+ - A nested module releases only through a manual path, and only if the repository allow-lists it for publication. The `recipes` module is CI-tested source and is never tagged or published.
32
+ - For a publishable nested module, use one dedicated PR to `main` per module. Title it exactly `release(<module>): <bump>` (`patch`, `minor` or `major`), give it only the `no-release` label to suppress automatic root publication, and write the nested module's release notes as its body. After the merge, a maintainer dispatches **Publish nested module**, which computes the version from that module's own releases and rejects it if its major exceeds `GO_RELEASE_MAJOR_CEILING`. Read the repository's release documentation before proposing one.
19
33
 
20
34
  ## MCP artifacts
21
35
 
@@ -27,6 +27,9 @@ directory.
27
27
  - **No template for the chosen backend:** see Not supported in this SDK in your language reference,
28
28
  then use `cratis-arc-host-application` to wire the service.
29
29
  - **An existing host reads the wrong Chronicle data:** use `cratis-platform-configure-environment`.
30
+ - **The Cratis CLI cannot be installed:** the C# templates are also `dotnet new` templates in the
31
+ `Cratis.Templates` package. That path writes `.cratis/ai.json` but installs no AI content. See
32
+ Scaffolding with dotnet new in `references/csharp.md`.
30
33
 
31
34
  Python has no application SDK: call the owning service through its authenticated HTTP API.
32
35
 
@@ -133,6 +136,24 @@ behavior (`SomeModule/SomeFeature/Registration`), with no `Features/` wrapper.
133
136
  address than Vite's proxy targets; align them (see Run in your language reference).
134
137
  - **The backend cannot reach Chronicle:** confirm the health check, then use
135
138
  `cratis-platform-configure-environment`.
139
+ - **A local run breaks without a code change:** applies to the templates that generate a
140
+ `docker-compose.yml`. It uses the floating `cratis/chronicle:latest-development` tag and pulls it on
141
+ every `docker compose up`, so the local kernel moves forward independently of the Chronicle client
142
+ the application builds with. Read the kernel's version with
143
+ `cratis version --server chronicle://localhost:35000` while the active CLI context is the local
144
+ one. An explicit `--server` that is not the active context's server is sent without that context's
145
+ credentials, so with a remote context active a healthy local kernel can look unavailable; switch to
146
+ a local context or put the local credentials in the connection string. Without `--server` the CLI
147
+ uses `CHRONICLE_CONNECTION_STRING` when set, otherwise the active context, either of which can be
148
+ a remote server. It prints no server version when it cannot connect. A different number is not
149
+ proof by itself: only the .NET client shares the kernel's version, the Kotlin and Java clients are
150
+ versioned on their own. Confirm with the backend's connection error and the release notes. Then
151
+ move the application's Cratis packages forward with `cratis-platform-upgrade-application`. Do not
152
+ just swap in an older tag: a kernel migrates its storage at startup and never downgrades it, so an
153
+ older kernel needs fresh local storage (disposable data only) or a backup taken before the newer
154
+ kernel ran. A team that needs identical local kernels sets a fixed
155
+ `cratis/chronicle:<version>-development` tag
156
+ from the start and raises it together with the packages.
136
157
 
137
158
  ## Capability catalog
138
159
 
@@ -4,11 +4,13 @@
4
4
 
5
5
  - Prerequisites
6
6
  - What the cratis template generates
7
+ - Scaffolding with dotnet new
7
8
  - Run
8
9
  - Smoke check
9
10
  - Databases
10
11
  - Aspire
11
12
  - Chronicle only
13
+ - When the repository grows beyond one project
12
14
  - Gotchas
13
15
  - Not supported in this SDK
14
16
 
@@ -19,7 +21,8 @@ C# offers all four templates. `MyApp`, `MyAppDbContext` and `OpenTicket` below a
19
21
 
20
22
  - **.NET SDK** whose major version matches the generated `<TargetFramework>`. Before scaffolding,
21
23
  `cratis new <template> --language csharp --parameters` shows it as the only `Framework` choice; check
22
- `dotnet --list-sdks`.
24
+ `dotnet --list-sdks`. After scaffolding, the generated README names the SDK; for `cratis` and
25
+ `cratis-aspire` it also names the Node.js range.
23
26
  - **Docker with the Compose plugin** for `cratis`, `cratis-chronicle-console` and `cratis-chronicle-web`.
24
27
  `cratis-aspire` needs Docker only; its app host starts the containers.
25
28
  - **Node.js and Yarn** for `cratis` and `cratis-aspire`: a Node.js release in the range the generated
@@ -41,7 +44,11 @@ C# offers all four templates. `MyApp`, `MyAppDbContext` and `OpenTicket` below a
41
44
  | `SomeModule/SomeFeature/Listing` | Read model `Listing` projected from `Registered`, observable query `AllListings` |
42
45
  | `SomeModule/SomeFeature/SomeId.cs`, `SomeName.cs` | The event source id and a `ConceptAs<string>` value |
43
46
  | `*.ts` and `index.ts` beside the `.cs` files | Generated TypeScript proxies the frontend imports |
44
- | `.frontend/`, `App.tsx`, `Home.tsx`, `package.json` | Vite and React shell; `yarn build` writes to `wwwroot/` |
47
+ | `.frontend/` | The frontend shell only: `index.html`, the entry module `main.tsx` (wraps `App` in the Arc and Components providers), `index.css`, `vite.config.ts` and the TypeScript configuration. No screens live here |
48
+ | `App.tsx` | The root component: the routes (`/` to `Home`, `/demo` to the sample feature) inside the dialog provider. Add a route here for each new page |
49
+ | `Home.tsx` | The landing page served at `/`; replace it with the application's own |
50
+ | `tsconfig.json` | Only extends `.frontend/tsconfig.json`, which includes every `.ts` and `.tsx` file under the project except `vite.config.ts`, `node_modules/` and `wwwroot/`. Change compiler settings in `.frontend/tsconfig.json` |
51
+ | `package.json`, `eslint.config.mjs` | Frontend dependencies, the `dev`, `build` and `lint` scripts, and the lint configuration; `yarn build` type-checks, then writes to `wwwroot/` |
45
52
  | `docker-compose.yml` | Chronicle development image, Aspire dashboard, the database container of the choice |
46
53
 
47
54
  `Program.cs` with the default MongoDB choice:
@@ -96,11 +103,49 @@ So `MyApp.SomeModule.SomeFeature.Registration.Register` is served at
96
103
  `CratisProxiesOutputPath` (the project folder), `CratisProxiesUseSourceFileAsOutputFile` (`Registration.cs`
97
104
  produces `Registration.ts`) and `CratisProxiesSkipOutputDeletion` (see Gotchas).
98
105
 
106
+ Where screens, composition pages and shared components go as the frontend grows is in
107
+ `cratis-arc-react-bind-slice`, `references/typescript-structure.md`.
108
+
99
109
  `CratisReadProtection` is `On` in the scaffold. Supported decision reads, such as Chronicle read-model
100
110
  parameters in a command handler, are read fresh and can guard the append: if an intervening event
101
111
  matches the guard, the append is rejected and the command writes nothing. `Measure` records without
102
112
  enforcing, `Off` leaves those parameters unguarded, and any other value fails the build.
103
113
 
114
+ ## Scaffolding with dotnet new
115
+
116
+ `cratis new` is the default. Use the .NET template engine only when the Cratis CLI cannot be installed;
117
+ it instantiates the same templates, with the same short names:
118
+
119
+ ```sh
120
+ dotnet new install Cratis.Templates
121
+ dotnet new cratis -n MyApp -o MyApp --allow-scripts yes
122
+ cd MyApp
123
+ ```
124
+
125
+ What differs from `cratis new`:
126
+
127
+ - **No `--language` for C#.** C# is the default language of every template.
128
+ - **The database is a template parameter with exact names:** `--Database MongoDB`, `PostgreSQL`,
129
+ `MsSql` or `SQLite`. `dotnet new <template> --help` lists that template's parameters.
130
+ - **The `cratis` frontend install asks first.** `dotnet new cratis` prompts before running the install
131
+ step. In a script or an agent session always pass `--allow-scripts yes` (run it) or
132
+ `--allow-scripts no` (skip it, then run `yarn install` yourself). With `no`, `dotnet new` can report
133
+ a non-zero exit code for the skipped step although the project was created; check the output and
134
+ the created files. Pass the option to `cratis` only: the other templates run no script, and
135
+ `cratis-aspire` rejects it.
136
+ - **No AI content is installed.** The scaffold contains `.cratis/ai.json`, but nothing is synced.
137
+ Once the Cratis CLI is available, run `cratis ai update` in `MyApp` and commit the result.
138
+ - **Template updates** come from `dotnet new update`, not `cratis update`.
139
+
140
+ The NuGet references are added by `dotnet new` itself, and those steps continue on error. Do not
141
+ assume the result equals what `cratis new` writes: read the output, then open every generated
142
+ `.csproj`. Check the Cratis `PackageReference` entries that are active for the chosen database: each
143
+ must carry a release version. Where one still says `*`, set the version in place and keep the
144
+ `Condition` on its `ItemGroup`; a reference under a condition for a database you did not choose is
145
+ inactive and can keep `*`. Add a reference that is really missing with
146
+ `dotnet add <path to the owning .csproj> package <id>`: `cratis-aspire` has no project file at the
147
+ solution root. Everything else in this reference applies unchanged.
148
+
104
149
  ## Run
105
150
 
106
151
  From `MyApp`, after Chronicle reports `Healthy`:
@@ -119,7 +164,8 @@ dotnet run
119
164
  `/swagger` to `http://localhost:5000`. If the backend listens elsewhere, for example through `--urls`
120
165
  or `ASPNETCORE_URLS`, change the proxy targets in `.frontend/vite.config.ts`.
121
166
  - Without Vite: `yarn build` writes the frontend to `wwwroot/`, and the backend serves it on
122
- `http://localhost:5000`.
167
+ `http://localhost:5000`. The scaffold's build is not minified (`build.minify` is `false` in
168
+ `.frontend/vite.config.ts`); turn minification on there before shipping a production build.
123
169
 
124
170
  ## Smoke check
125
171
 
@@ -219,8 +265,36 @@ path. Then run the smoke check for the template you selected:
219
265
  projected `TestProjection` instances with `Hello, Chronicle!`. The demo appends on `GET` for
220
266
  convenience; use `POST` for state-changing routes in the real application.
221
267
 
268
+ ## When the repository grows beyond one project
269
+
270
+ The `cratis` scaffold is one project with its own solution file. When a second project joins it (a
271
+ specs project, a contracts project, another service), give each project its own folder beside the
272
+ others under the repository root, and move the shared settings to that root. The scaffold's project
273
+ compiles every `.cs` file below its own folder, so a project placed inside it is compiled twice; if it
274
+ must stay nested, exclude its folder with `DefaultItemExcludes` in the outer `.csproj`.
275
+
276
+ - **One place for package versions.** Add a `Directory.Packages.props` at the root with
277
+ `ManagePackageVersionsCentrally` and `CentralPackageTransitivePinningEnabled` set to `true`, move
278
+ the versions `cratis new` wrote into the `.csproj` to `PackageVersion` items there, and leave the
279
+ `PackageReference` items without a version. Every project then builds against the same version of
280
+ each listed package. Transitive pinning applies only to packages that have a `PackageVersion`
281
+ entry, so add one for every Cratis package that arrives transitively and must stay aligned
282
+ (`Cratis.Arc`, `Cratis.Chronicle`, `Cratis.Fundamentals`), not only for the ones referenced directly.
283
+ - **One SDK.** Add a `global.json` at the root that names the .NET SDK the scaffold targets, with
284
+ `rollForward` set to `latestFeature`, so every machine and the build server use the same SDK line.
285
+ - **One solution file at the root** that lists every project. `cratis-aspire` already has its solution
286
+ at the root, above its three projects.
287
+
288
+ Never keep a Cratis package version per project file; the projects drift apart.
289
+
222
290
  ## Gotchas
223
291
 
292
+ - **The scaffold has no launch profile.** Without `Properties/launchSettings.json`, `dotnet run` listens
293
+ on ASP.NET Core's default `http://localhost:5000`, which is what the Vite proxy targets. A launch
294
+ profile added later, by hand or by an IDE, takes over the listening address: set its
295
+ `applicationUrl` to `http://localhost:5000` or change the proxy targets in
296
+ `.frontend/vite.config.ts` to match. The scaffold needs neither a launch profile nor user secrets
297
+ to run locally.
224
298
  - **Keep `CratisProxiesSkipOutputDeletion` set to `true`.** The proxy output folder is the project
225
299
  folder, and without this setting the generator deletes its output folder before writing.
226
300
  - Never edit the generated `.ts` and `index.ts` proxies; each build overwrites them.
@@ -0,0 +1,118 @@
1
+ ---
2
+ name: cratis-platform-upgrade-application
3
+ description: Use when moving an existing Cratis application to newer Cratis packages, tools or images, or when a build or run breaks after such an update. Not for upgrading the Chronicle kernel itself (`cratis-chronicle-deploy-kernel`) or scaffolding a new application (`cratis-platform-start-application`).
4
+ ---
5
+
6
+ # Move an application to newer Cratis packages, tools and images
7
+
8
+ ## Contents
9
+
10
+ - How Cratis versions relate
11
+ - Default path
12
+ - What kind of change a step is
13
+ - Product-specific steps
14
+ - When a build or run breaks after an update
15
+ - Keep it current
16
+ - Avoid
17
+ - References
18
+
19
+ Read `references/<language>.md` for the application's backend (`.csproj` → csharp, `build.gradle.kts` with `*.kt` → kotlin, with `*.java` → java, Node server `package.json` → typescript); only the project's languages are installed. `references/typescript.md` also covers the `@cratis/*` packages of a React frontend.
20
+
21
+ ## How Cratis versions relate
22
+
23
+ - **Each product has its own version line.** Arc, Chronicle, Fundamentals, Components, Specifications, AuthProxy, the CLI and the templates are numbered independently. Equal numbers across products mean nothing, and unequal numbers are not a mismatch.
24
+ - **Packages of one product move together.** All packages published by one product carry that product's release number: keep them on one version. A shared name prefix does not make packages one product. Arc publishes its NuGet packages and its frontend npm packages under the same number; Arc for Node and Arc for the JVM are separate products, each with its own number. Kotlin and Java are not two release lines: both use the same Arc Gradle plugin and the same `io.cratis:cratis` dependency.
25
+ - **Arc and Chronicle on .NET are paired by the `Cratis` package.** It brings an Arc release and a Chronicle client that fit each other. Default to that pair. Any other Arc and Chronicle combination is unverified, not known to work or to fail.
26
+ - **The .NET Chronicle client has the kernel's version number.** Each kernel build is verified to serve the contracts of earlier minors of its major, within the compatibility range that major declares. A client newer than the kernel is not certified by that verification, and across a major nothing is guaranteed. None of this exempts a pair at run time: the client asks the kernel to compare contracts when it connects, by default, and an incompatible pair is refused.
27
+ - **Other Chronicle clients (TypeScript, Kotlin and Java, Elixir) have their own numbers.** A client's major says nothing about the kernel major. There is no table that pairs client releases with kernels: client and kernel compare contracts at run time, and an incompatible pair is refused. Where the refusal shows depends on the client: most fail the connection, the Elixir client connects and then rejects the append.
28
+ - **Frontend packages float unless locked.** A scaffold writes caret ranges for `@cratis/*`, so an install without a lockfile moves within the major. `@cratis/components` declares the Arc range and the React major it accepts as peer dependencies.
29
+ - **A scaffold is not pinned until you check it.** A .NET scaffold is meant to end up on concrete package versions, but a post-creation step that failed can leave a floating version behind: inspect the generated `.csproj`. A Kotlin or Java scaffold asks for the latest release, which Gradle resolves and then reuses from its cache for a while, until you pin plugin and dependency.
30
+
31
+ ## Default path
32
+
33
+ Work on a branch. Names and paths are illustrative.
34
+
35
+ 1. **Baseline.** Make build, specs and the application's smoke check pass on the current versions, and record the versions in use: Cratis packages, kernel image, AuthProxy image, CLI.
36
+ 2. **Plan every boundary.** For each product, list the majors between the current and the target version and read that product's upgrade notes for each one, in order. Read the release notes too when only a minor changes: a default can change inside a major. Classify each step with the table below before changing anything.
37
+ 3. **Decide the kernel order.** If the change raises the .NET Chronicle client, no environment may run a kernel older than that client: within a major, upgrade the kernel first; across a major, move kernel and clients together unless the upgrade notes state that the boundary keeps the wire contract. For any other client, test the new client release against the kernel version each environment runs. The kernel upgrade itself is `cratis-chronicle-deploy-kernel`, `references/upgrade-and-recovery.md`.
38
+ 4. **Do the steps that come before the bump.** Some product-specific steps (next section) run on the current release. Entered from the major directly before it, a Components major starts with an import migration that is applied and verified while the old package is still installed. On a direct jump across more than one major the migrator does not run on the old package: make the preparatory import edits by hand, and run the migrator only after the target is installed. Do these, repeat the baseline checks and keep the result as a checkpoint: source, manifest and lockfile together.
39
+ 5. **Raise every Cratis package in one change.** Backend: all packages of each product to one release, with `Cratis` deciding the Arc and Chronicle pair on .NET. Frontend: every `@cratis/*` package, in releases whose declared peer ranges accept each other, then install and commit the lockfile. Details are in the language reference.
40
+ 6. **Rebuild the backend and regenerate the proxies.** Run the generation the backend is configured with; do not assume a build did it. A .NET build generates only when the project sets a proxy output path and generation is not switched off. A Gradle build generates only when proxy generation is enabled and an output directory is configured. A Node backend runs its generation script as a step of its own. Fix callers, never generated files.
41
+ 7. **Apply the remaining product-specific steps** for each boundary you listed, **then build the frontend.** A frontend that crossed a Components major is not expected to build before its provider, stylesheet and source changes for the target release are in. Type-check and build against the regenerated proxies.
42
+ 8. **Verify.** Run the specs. Start the application against the local kernel and run its smoke check: one command, the event it appends, the read model, and the screen that shows it.
43
+ 9. **Gate the deployment.** Before the new application version meets a deployed kernel, check it with `cratis chronicle check-release` (`cratis-chronicle-cli-operations`, `references/recovery-and-comparison.md`). Deploy with pinned package versions, the committed lockfile and a pinned kernel image.
44
+ 10. **Update the tools.** Update the `cratis` CLI the way it was installed: `cratis update` upgrades a .NET tool and a Homebrew installation on macOS; on Linux, upgrade a Homebrew installation with Homebrew itself, and replace a native binary by installing the .NET tool. Then run `cratis ai update` in the repository (`cratis-chronicle-cli-operations`, `references/project-tooling.md`). Newer templates change the next scaffold; they never change this application.
45
+
46
+ Alternatives:
47
+
48
+ - **One product at a time** wins when several products cross a major in the same upgrade: finish and verify one product before starting the next, so a failure has one cause. Within one product still raise all its packages together.
49
+ - **Stay on the current major and take only minors** when a boundary needs work you cannot schedule now. Check the release notes for changed defaults all the same.
50
+
51
+ ## What kind of change a step is
52
+
53
+ | Kind | What it touches | What it needs |
54
+ | --- | --- | --- |
55
+ | Compile-time | An API your code calls | Code edits. Crossing several majors, fix the accumulated errors against the target version and do not build at each intermediate one, unless a migration guide sets a checkpoint on the current or an intermediate release. When the guide documents a direct path across several majors, follow it |
56
+ | Changed default | Behaviour of unchanged code or configuration | A decision per default: adopt it, or set the previous value explicitly. Most fail nothing at build time, so read the notes; a few, such as Arc's read protection, do surface as a build or spec failure |
57
+ | Stored state | Data already written | A backup you have restored from, a rehearsal on a copy of the data, and every intermediate step in order: skipping a release does not skip its data change |
58
+ | Wire | The contract between kernel and clients | Kernel and clients moved in the stated order |
59
+ | Cluster | Kernel nodes of two versions in one cluster | Nodes replaced one at a time only when the kernel's upgrade notes confirm that the two releases can share a cluster; otherwise every node stopped, then all started on the new version |
60
+ | Configuration | Settings, endpoints, deployment | Settings edited in every environment |
61
+
62
+ Compile-time and changed-default steps belong to the application. Stored-state, wire and cluster steps belong to the kernel upgrade; this skill only schedules them.
63
+
64
+ ## Product-specific steps
65
+
66
+ | Product | Where the steps are |
67
+ | --- | --- |
68
+ | Chronicle kernel: order, backup, rollout, majors | `cratis-chronicle-deploy-kernel`, `references/upgrade-and-recovery.md` |
69
+ | Chronicle kernel that holds unique constraint claims | `cratis-chronicle-constrain-append`, `references/operations.md` |
70
+ | Arc on .NET: defaults that changed | `references/csharp.md` in this skill |
71
+ | Components across the major that stopped rendering through PrimeReact | `cratis-components-theme-application`, `references/upgrade-from-previous-major.md` |
72
+ | Specifications across a major | `cratis-specifications-isolate-behavior`, `references/csharp-running.md` |
73
+ | AuthProxy | Read both its upgrade notes and the release notes of every version you cross: a change to what an unchanged configuration does can be described in only one of them. Settings are in `cratis-authproxy-configure` |
74
+
75
+ Arc's upgrade notes describe the C# host. For a Kotlin, Java, TypeScript or Go backend, establish from that backend's own reference which behaviour applies; never copy a .NET registration or setting to another host.
76
+
77
+ ## When a build or run breaks after an update
78
+
79
+ | Symptom | Likely cause | Do |
80
+ | --- | --- | --- |
81
+ | Restore reports a package downgrade or a version conflict | One package of a product was raised alone, or a pin on a Chronicle package is below what another package in the graph requires | Put all packages of the product on one release; raise or remove the pin, since a pin cannot lower a required dependency |
82
+ | Install warns about unmet peer dependencies | `@cratis/components` and the Arc, Fundamentals or React packages are out of step, or a Components renderer adapter is not on exactly the version of `@cratis/components` | Select releases whose declared peer ranges accept each other (`references/typescript.md`); the newest Arc can be above what the Components release accepts |
83
+ | Frontend type errors in files that import generated proxies | Proxies are stale, or their shape changed with the new Arc | Run the backend's proxy generation (step 6), then fix the callers |
84
+ | The application cannot connect to the kernel, or an append is rejected, with an incompatibility error | Client and kernel are on contracts that do not fit | Compare client and kernel versions; apply the kernel order in step 3 |
85
+ | The local run fails though no code changed | The scaffold's compose file runs `cratis/chronicle:latest-development` and pulls it on every start, so the local kernel moves while the packages stay pinned | Raise the Cratis packages to a release that fits the pulled kernel, or replace the tag with the development image of the kernel version you deploy (`<version>-development`) |
86
+ | Requests that worked now return 401, or discovery returns 401 or 404, outside development | Arc's secure defaults | `references/csharp.md`, "Secure defaults" |
87
+ | A command that takes a read model is refused at startup, at first use or when another change raced it | Read protection is enforced by default | `references/csharp.md`, "Read protection" |
88
+ | A Kotlin or Java build changed overnight | The build still resolves the latest release | `references/kotlin.md` or `references/java.md` |
89
+
90
+ If the cause is not here, compare the baseline versions from step 1 with what is installed now, then follow `cratis-platform-diagnose-slice` for a missing or stale outcome.
91
+
92
+ ## Keep it current
93
+
94
+ Small, frequent upgrades cross one boundary at a time. Automate them:
95
+
96
+ - A scheduled job raises every Cratis package to the newest set of releases whose declared dependencies and peer ranges accept each other, product by product, never one package of a product alone and never each package to its own latest.
97
+ - Restore and build are the gate; add the specs when they are fast enough. A failed gate stops the change before it is committed.
98
+ - The job never crosses a major on its own when the application needs code or configuration changes for it; cap the major and upgrade it deliberately.
99
+ - Kernel and AuthProxy images are upgraded by a person or a reviewed change, never by a floating tag.
100
+
101
+ ## Avoid
102
+
103
+ - Raising one Cratis package alone, or one package of a product ahead of the others.
104
+ - Choosing versions so that numbers look aligned across products.
105
+ - Deploying a .NET Chronicle client that is newer than the kernel it meets, or any other client untested against that kernel.
106
+ - Floating versions in a shared environment: `latest` image tags, caret ranges without a lockfile, `latest.release` in Gradle.
107
+ - Building at every intermediate major to fix compile errors when no migration guide asks for that checkpoint.
108
+ - Raising a package before the migration step that must run on the old release.
109
+ - Skipping the upgrade notes of a major you only pass through.
110
+ - Editing generated proxies to make the frontend compile.
111
+ - Switching a deployed host to the development environment to get old defaults back.
112
+
113
+ ## References
114
+
115
+ - `references/csharp.md`: read when the backend is .NET — supported runtimes, keeping versions in one place, and the Arc defaults that changed.
116
+ - `references/typescript.md`: read when the application has a React frontend or a Node backend — ranges, lockfile, peer dependencies and the Chronicle client's own version line.
117
+ - `references/kotlin.md`: read when the backend is Kotlin — replacing the floating versions and upgrading the plugin and the dependency together.
118
+ - `references/java.md`: read when the backend is Java — the same for a Java project.
@@ -0,0 +1,117 @@
1
+ # Upgrade Cratis packages in a .NET application
2
+
3
+ ## Contents
4
+
5
+ - Supported runtimes
6
+ - Keep versions in one place
7
+ - Raise the packages
8
+ - Arc defaults that changed
9
+ - Secure defaults
10
+ - Read protection
11
+ - Generated identifiers
12
+ - MCP
13
+ - Verify
14
+
15
+ Names and paths in examples are illustrative.
16
+
17
+ ## Supported runtimes
18
+
19
+ The current Arc, Chronicle, Fundamentals and Specifications packages target .NET 10 and .NET 11. They do not support .NET 8 or .NET 9: an application on an older runtime moves its runtime first, verifies, and upgrades Cratis in a second change. A new scaffold targets .NET 11, and the `cratis` CLI installed as a .NET tool needs the .NET 11 runtime together with the ASP.NET Core runtime of the same version.
20
+
21
+ ## Keep versions in one place
22
+
23
+ Default: central package management in `Directory.Packages.props`, with transitive pinning, so every project in the solution moves together and a central version also applies to a package that only arrives transitively. Such a pin can raise a package. It cannot lower one below what another package requires: restore reports a downgrade instead.
24
+
25
+ ```xml
26
+ <Project>
27
+ <PropertyGroup>
28
+ <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
29
+ <CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
30
+ </PropertyGroup>
31
+ <ItemGroup>
32
+ <PackageVersion Include="Cratis" Version="{arc-release}" />
33
+ <PackageVersion Include="Cratis.Arc.MongoDB" Version="{arc-release}" />
34
+ <PackageVersion Include="Cratis.Chronicle.Testing" Version="{chronicle-release}" />
35
+ <PackageVersion Include="Cratis.Specifications.XUnit.v3" Version="{specifications-release}" />
36
+ </ItemGroup>
37
+ </Project>
38
+ ```
39
+
40
+ Replace each `{...}` placeholder with a concrete version; never leave a floating one. Inspect a freshly scaffolded `.csproj` too: a post-creation step that failed can leave a floating version in it. A single-project scaffold keeps its versions in the `.csproj`; that is fine until there is a second project.
41
+
42
+ ## Raise the packages
43
+
44
+ Packages form groups that share one release number. Raise a whole group or none of it:
45
+
46
+ | Group | Packages |
47
+ | --- | --- |
48
+ | Arc | `Cratis`, `Cratis.Testing`, `Cratis.Arc` and every `Cratis.Arc.*` |
49
+ | Chronicle | Every `Cratis.Chronicle.*`, and `Cratis.Chronicle` itself |
50
+ | Fundamentals | `Cratis.Fundamentals` and the packages released with it |
51
+ | Specifications | `Cratis.Specifications` and its adapter package |
52
+
53
+ 1. Raise the Arc group. `Cratis` brings Arc, the Chronicle client with its ASP.NET Core integration, Swagger and the proxy generator, in versions that fit each other.
54
+ 2. Put the Chronicle packages you reference directly (testing, Aspire) on the Chronicle client release that `Cratis` brings. That pair is the default. To use another Chronicle release, read the declared dependencies of both `Cratis` and the Chronicle package (Chronicle's testing package declares its own Arc requirement), go below neither, and verify the scenarios afterwards. A pin below a version the graph requires makes restore report a downgrade.
55
+ 3. Raise the remaining groups.
56
+ 4. `dotnet restore`, then `dotnet build` the solution. Read the resolved Chronicle client version from the restore result: it decides which kernel the application may meet (kernel order in the skill's default path).
57
+
58
+ `dotnet list package --outdated` shows what is behind; it does not know the groups, so do not take its list one package at a time.
59
+
60
+ ## Arc defaults that changed
61
+
62
+ Arc's upgrade notes are organised by what the application relies on. Check each row; skip the rows that do not apply.
63
+
64
+ | The application relies on | What changed | Section |
65
+ | --- | --- | --- |
66
+ | Identity from forwarded headers set by an ingress, or anonymous access to discovery endpoints on a deployed host | Forwarded identity headers are not trusted, and discovery requires authentication outside development | Secure defaults |
67
+ | Commands, validators or `Provide` that take a read model, without a declared read-protection mode | Read protection is on, with strict key coverage | Read protection |
68
+ | Identifiers created inside `Handle`, or the removed identity-source API in command specs | Generation moves to a server-owned `Handle` parameter that specs pin by name | Generated identifiers |
69
+ | Arc's MCP endpoint | Renamed APIs, and the capabilities port is gated without extra configuration | MCP |
70
+
71
+ ## Secure defaults
72
+
73
+ - **Forwarded identity headers.** The host ignores the forwarded identity headers until it is told to trust them. Without trust they authenticate nobody: endpoints that need a user answer 401 unless another authentication scheme authenticates the caller. An ASP.NET Core host that registers the forwarded-identity handler logs a warning at every startup that names the setting. First confirm that every request reaches the host through an ingress that strips caller-supplied identity headers and sets its own; only then set `Cratis:Arc:TrustForwardedIdentityHeaders` to `true`. If the host is reachable without that ingress, leave it off and configure an authentication scheme that validates the caller. The setting and the ingress are in `cratis-arc-host-application`, `references/csharp-identity.md`, and `cratis-authproxy-configure`.
74
+ - **Discovery endpoints** (the command and query catalogs and identity discovery; not command or query invocation and not `/.cratis/me`). In development they stay anonymous. Outside development an anonymous request gets 401; when the host has no way to authenticate callers the endpoints are not mapped at all and answer 404. Default: leave the setting unset and make deployed tools authenticate. If no deployed tool reads discovery, turn it off. Allow anonymous discovery only as a deliberate, explicit choice. Settings are in `cratis-arc-host-application`, `references/csharp-configuration.md`.
75
+
76
+ Check both in the environment you deploy, through the real ingress. Never switch a deployed host to the development environment to restore the old behaviour.
77
+
78
+ ## Read protection
79
+
80
+ The project property `CratisReadProtection` has three values:
81
+
82
+ | Value | Effect |
83
+ | --- | --- |
84
+ | `On` | Enforces: guarded reads are fresh, the append is refused when what the command read has changed, and a read-model parameter that cannot be guarded is refused |
85
+ | `Measure` | Reports what `On` would have refused; enforces nothing |
86
+ | `Off` | No protection: an injected read model is a plain read |
87
+
88
+ An application that never declared a mode used to run as `Off` and now runs as `On`. A declared mode, on the project or on a command, is kept.
89
+
90
+ Default when upgrading:
91
+
92
+ 1. Set `<CratisReadProtection>Measure</CratisReadProtection>` in each project and run the specs and a realistic workload.
93
+ 2. Fix what it reports: give each read its lookup key, and mark a read that is deliberately advisory.
94
+ 3. Remove the property, or set it to `On`.
95
+
96
+ Alternative: set `Off` explicitly to keep the previous behaviour when the upgrade must ship before the adoption work. Treat it as a dated debt, not as a setting.
97
+
98
+ Two things change with the default and are easy to miss:
99
+
100
+ - **Key coverage is strict.** A command without generated read-model key metadata fails at startup instead of falling back to reflection, and a composite key part without an accessor throws. Enable the Arc source generator or register the accessors; the opt-outs are for runtimes that allow dynamic code.
101
+ - **Command specs.** Replacing or mocking the read-model reader no longer gives a protected read its state; the model can arrive as `null`. Arrange the state through the command scenario's own `Given`.
102
+
103
+ How to select keys, mark advisory reads and read the measurement: `cratis-chronicle-protect-decision`, `references/csharp.md`. Scenario setup: `cratis-specifications-exercise-backend`, `references/csharp-command-results.md`. Runtime policy keys: `cratis-arc-host-application`, `references/csharp-configuration.md`.
104
+
105
+ ## Generated identifiers
106
+
107
+ A handler that creates a server-owned identifier inside `Handle` still works, but a spec cannot control the value, and the identity-source API that specs used to queue identities is removed. Move the generation to a `[GeneratedValue]` parameter of `Handle`; scenarios pin the value by the parameter's name. Set an explicit name on the attribute when pins must survive a rename of the parameter. An analyzer reports the generation patterns it recognises (a concept created or wrapped directly in `Handle`, not raw primitives, helpers outside `Handle` or nested functions) and offers a fix, so also search by hand. The fix does not update direct callers of the handler. The pattern is in `cratis-arc-declare-command`, `references/csharp.md`.
108
+
109
+ ## MCP
110
+
111
+ Applies only to a host that exposes Arc's MCP endpoint. Some registration and type names changed, with obsolete forwarders for part of them: build with warnings visible and replace every obsolete call now. With no explicit endpoint selection, Arc gates every route on the capabilities port except the OAuth protected-resource metadata route, which stays anonymous so clients can find out how to authenticate. A health or readiness probe on that port now needs a verified caller. Move probes to another port, or select the gated endpoints explicitly. Details: `cratis-arc-expose-mcp-operation`, `references/csharp.md`.
112
+
113
+ ## Verify
114
+
115
+ - Build with analyzers enabled and no suppressed obsolete warnings.
116
+ - Run the specs of every command that takes a read model.
117
+ - On a deployed-like host, through the ingress: an authenticated request succeeds, a request that bypasses the ingress with its own identity headers is refused, and discovery answers as decided.
@@ -0,0 +1,53 @@
1
+ # Upgrade Cratis in a Java application
2
+
3
+ ## Contents
4
+
5
+ - The scaffold floats
6
+ - Pin
7
+ - Upgrade
8
+ - What does not carry over from .NET
9
+ - Verify
10
+
11
+ Names and paths in examples are illustrative.
12
+
13
+ ## The scaffold floats
14
+
15
+ A scaffolded `build.gradle.kts` requests the Arc Gradle plugin `io.cratis.arc` and the dependency `io.cratis:cratis` as `latest.release`. Gradle resolves them when it builds and caches the answer for up to 24 hours by default, so the same commit can build against a newer Cratis release the next day. `io.cratis:cratis` is one dependency that brings Arc, its Spring Boot wiring and the Chronicle integration.
16
+
17
+ ## Pin
18
+
19
+ Do this before the first shared build, not at the first upgrade.
20
+
21
+ Default: replace both `latest.release` values with the exact release you tested. Plugin and dependency are released together under one number: use the same release for both. Kotlin and Java projects use the same plugin and the same dependency, so one release number serves both.
22
+
23
+ ```kotlin
24
+ plugins {
25
+ id("io.cratis.arc") version "<release>"
26
+ }
27
+
28
+ dependencies {
29
+ implementation("io.cratis:cratis:<release>")
30
+ }
31
+ ```
32
+
33
+ Alternative for the dependency only: keep `latest.release` on `io.cratis:cratis` and enable Gradle dependency locking, with the lock state committed; an upgrade is then a deliberate rewrite of the lock state. Project dependency locking does not fix the plugin version, so write the plugin version explicitly in either case. The two can then drift apart: change the plugin version and rewrite the lock state in the same change, and check that the locked `io.cratis:cratis` version equals the plugin version.
34
+
35
+ ## Upgrade
36
+
37
+ 1. Change plugin and dependency to the new release in one edit. With a locked floating dependency, change the plugin version and rewrite the lock state together, then confirm both resolve to the same release.
38
+ 2. Keep the scaffold's `dependencyManagement` block, including both coroutines entries. If startup fails with a `NoSuchMethodError` from a coroutines class after the upgrade, that block is missing or behind what the new release is built with (`cratis-platform-start-application`, `references/java.md`).
39
+ 3. Run `./gradlew build`. It compiles and runs the Arc processor. It regenerates the proxies only when proxy generation is enabled and a proxy output directory is configured in the `cratisArc` block, as the scaffold does; otherwise the proxies are stale after the build. With `latest.release` still in place, `./gradlew build --refresh-dependencies` picks up a new release without waiting for the cache.
40
+ 4. Raise the frontend's `@cratis/*` packages (`references/typescript.md` when installed), then build the frontend against the regenerated proxies.
41
+ 5. Inspect what was resolved before choosing versions for production: `./gradlew dependencies --configuration runtimeClasspath`.
42
+
43
+ ## What does not carry over from .NET
44
+
45
+ - The Chronicle client for Kotlin and Java has its own version line. Its number says nothing about the kernel it fits, and no table pairs client releases with kernels. Client and kernel compare contracts at connect; an incompatible pair fails the connection. Test the release against the kernel version each environment runs.
46
+ - No verified Arc and Chronicle pairing is published for the JVM. Use the Chronicle client that `io.cratis:cratis` brings; do not set its version yourself.
47
+ - Arc's upgrade notes describe the C# host. Establish the behaviour of the Java backend from `cratis-arc-host-application`, `references/java.md`; never copy a .NET registration, property or diagnostic.
48
+
49
+ ## Verify
50
+
51
+ - `./gradlew build` passes twice in a row with the same resolved versions.
52
+ - The application starts against the local kernel and connects.
53
+ - The smoke check passes: one command, the event it appends, the read model, the screen.
@@ -0,0 +1,53 @@
1
+ # Upgrade Cratis in a Kotlin application
2
+
3
+ ## Contents
4
+
5
+ - The scaffold floats
6
+ - Pin
7
+ - Upgrade
8
+ - What does not carry over from .NET
9
+ - Verify
10
+
11
+ Names and paths in examples are illustrative.
12
+
13
+ ## The scaffold floats
14
+
15
+ A scaffolded `build.gradle.kts` requests the Arc Gradle plugin `io.cratis.arc` and the dependency `io.cratis:cratis` as `latest.release`. Gradle resolves them when it builds and caches the answer for up to 24 hours by default, so the same commit can build against a newer Cratis release the next day. `io.cratis:cratis` is one dependency that brings Arc, its Spring Boot wiring and the Chronicle integration.
16
+
17
+ ## Pin
18
+
19
+ Do this before the first shared build, not at the first upgrade.
20
+
21
+ Default: replace both `latest.release` values with the exact release you tested. Plugin and dependency are released together under one number: use the same release for both. Kotlin and Java projects use the same plugin and the same dependency, so one release number serves both.
22
+
23
+ ```kotlin
24
+ plugins {
25
+ id("io.cratis.arc") version "<release>"
26
+ }
27
+
28
+ dependencies {
29
+ implementation("io.cratis:cratis:<release>")
30
+ }
31
+ ```
32
+
33
+ Alternative for the dependency only: keep `latest.release` on `io.cratis:cratis` and enable Gradle dependency locking, with the lock state committed; an upgrade is then a deliberate rewrite of the lock state. Project dependency locking does not fix the plugin version, so write the plugin version explicitly in either case. The two can then drift apart: change the plugin version and rewrite the lock state in the same change, and check that the locked `io.cratis:cratis` version equals the plugin version.
34
+
35
+ ## Upgrade
36
+
37
+ 1. Change plugin and dependency to the new release in one edit. With a locked floating dependency, change the plugin version and rewrite the lock state together, then confirm both resolve to the same release.
38
+ 2. Keep the scaffold's `dependencyManagement` block, including both coroutines entries. If startup fails with a `NoSuchMethodError` from a coroutines class after the upgrade, that block is missing or behind what the new release is built with (`cratis-platform-start-application`, `references/kotlin.md`).
39
+ 3. Run `./gradlew build`. It compiles and runs the Arc processor. It regenerates the proxies only when proxy generation is enabled and a proxy output directory is configured in the `cratisArc` block, as the scaffold does; otherwise the proxies are stale after the build. With `latest.release` still in place, `./gradlew build --refresh-dependencies` picks up a new release without waiting for the cache.
40
+ 4. Raise the frontend's `@cratis/*` packages (`references/typescript.md` when installed), then build the frontend against the regenerated proxies.
41
+ 5. Inspect what was resolved before choosing versions for production: `./gradlew dependencies --configuration runtimeClasspath`.
42
+
43
+ ## What does not carry over from .NET
44
+
45
+ - The Chronicle client for Kotlin and Java has its own version line. Its number says nothing about the kernel it fits, and no table pairs client releases with kernels. Client and kernel compare contracts at connect; an incompatible pair fails the connection. Test the release against the kernel version each environment runs.
46
+ - No verified Arc and Chronicle pairing is published for the JVM. Use the Chronicle client that `io.cratis:cratis` brings; do not set its version yourself.
47
+ - Arc's upgrade notes describe the C# host. Establish the behaviour of the Kotlin backend from `cratis-arc-host-application`, `references/kotlin.md`; never copy a .NET registration, property or diagnostic.
48
+
49
+ ## Verify
50
+
51
+ - `./gradlew build` passes twice in a row with the same resolved versions.
52
+ - The application starts against the local kernel and connects.
53
+ - The smoke check passes: one command, the event it appends, the read model, the screen.