@cratis/pi 8.0.1 → 8.1.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 (486) hide show
  1. package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +9 -102
  2. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +3 -5
  3. package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +8 -49
  4. package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +1 -1
  5. package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -84
  6. package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +6 -51
  7. package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -81
  8. package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -54
  9. package/package/corpus/harnesses/copilot/instructions/components.instructions.md +1 -1
  10. package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +5 -22
  11. package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +7 -315
  12. package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +1 -1
  13. package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +3 -25
  14. package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +5 -151
  15. package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +5 -104
  16. package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +5 -63
  17. package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +8 -55
  18. package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +3 -33
  19. package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +6 -79
  20. package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +4 -27
  21. package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +4 -6
  22. package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +0 -2
  23. package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +0 -1
  24. package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +1 -1
  25. package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +7 -138
  26. package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +19 -19
  27. package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +1 -4
  28. package/package/corpus/harnesses/copilot/instructions/go.instructions.md +2 -7
  29. package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +5 -6
  30. package/package/corpus/harnesses/copilot/instructions/java.instructions.md +7 -129
  31. package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +8 -165
  32. package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +5 -98
  33. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +9 -63
  34. package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +1 -1
  35. package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +8 -148
  36. package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +4 -37
  37. package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +3 -1
  38. package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +7 -70
  39. package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -98
  40. package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +3 -47
  41. package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +3 -65
  42. package/package/corpus/hooks/README.md +4 -7
  43. package/package/corpus/hooks/scripts/quality-gates.json +3 -5
  44. package/package/corpus/rules/ai-distribution.md +9 -102
  45. package/package/corpus/rules/authoring-skills.md +3 -5
  46. package/package/corpus/rules/browser.md +8 -49
  47. package/package/corpus/rules/code-health-policy.txt +4 -24
  48. package/package/corpus/rules/code-health.md +1 -1
  49. package/package/corpus/rules/code-quality.csharp.md +3 -84
  50. package/package/corpus/rules/code-quality.md +6 -51
  51. package/package/corpus/rules/code-quality.typescript.md +4 -81
  52. package/package/corpus/rules/codescene.md +5 -54
  53. package/package/corpus/rules/components.md +1 -1
  54. package/package/corpus/rules/cratis-folder-is-configuration.md +5 -22
  55. package/package/corpus/rules/csharp.md +7 -315
  56. package/package/corpus/rules/dialogs.md +1 -1
  57. package/package/corpus/rules/discoverability.md +3 -25
  58. package/package/corpus/rules/documentation-structure-and-formatting.md +5 -151
  59. package/package/corpus/rules/documentation.md +5 -104
  60. package/package/corpus/rules/editing-cratis-docs.md +5 -63
  61. package/package/corpus/rules/efcore.md +8 -55
  62. package/package/corpus/rules/efcore.specs.md +3 -33
  63. package/package/corpus/rules/elixir.md +6 -79
  64. package/package/corpus/rules/exit-codes-and-wrappers.md +4 -27
  65. package/package/corpus/rules/framework-dotnet.md +4 -6
  66. package/package/corpus/rules/framework.md +0 -2
  67. package/package/corpus/rules/frontend-quality.md +0 -1
  68. package/package/corpus/rules/frontend-testing.md +1 -1
  69. package/package/corpus/rules/general.md +2 -2
  70. package/package/corpus/rules/github-actions.md +7 -138
  71. package/package/corpus/rules/glossary.md +19 -19
  72. package/package/corpus/rules/go-engineering.md +1 -4
  73. package/package/corpus/rules/go.md +2 -7
  74. package/package/corpus/rules/guards-and-fuses.md +5 -6
  75. package/package/corpus/rules/java.md +7 -129
  76. package/package/corpus/rules/kotlin.md +8 -165
  77. package/package/corpus/rules/orleans.md +5 -98
  78. package/package/corpus/rules/profiles.md +9 -63
  79. package/package/corpus/rules/scripting.md +1 -1
  80. package/package/corpus/rules/specs.csharp.md +8 -148
  81. package/package/corpus/rules/specs.elixir.md +4 -37
  82. package/package/corpus/rules/specs.typescript.md +3 -1
  83. package/package/corpus/rules/storybook.md +7 -70
  84. package/package/corpus/rules/typescript.md +8 -98
  85. package/package/corpus/rules/writing-correct-examples.md +3 -47
  86. package/package/corpus/rules/writing-cratis-docs.md +3 -65
  87. package/package/corpus/skills/cratis-application-growth/SKILL.md +7 -54
  88. package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +49 -0
  89. package/package/corpus/skills/cratis-application-growth/references/rename-window.md +12 -14
  90. package/package/corpus/skills/cratis-application-growth/references/stages.md +2 -2
  91. package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +2 -2
  92. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +3 -3
  93. package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +2 -2
  94. package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +10 -43
  95. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +40 -0
  96. package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +1 -1
  97. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +1 -1
  98. package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +4 -4
  99. package/package/corpus/skills/cratis-arc-declare-command/references/go.md +1 -1
  100. package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +6 -7
  101. package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +2 -8
  102. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +1 -1
  103. package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +1 -1
  104. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +1 -1
  105. package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +6 -12
  106. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +4 -0
  107. package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +2 -2
  108. package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +11 -4
  109. package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +1 -1
  110. package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +2 -2
  111. package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +1 -1
  112. package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +19 -2
  113. package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +1 -1
  114. package/package/corpus/skills/cratis-arc-host-application/SKILL.md +1 -1
  115. package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +1 -2
  116. package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +2 -2
  117. package/package/corpus/skills/cratis-arc-host-application/references/go.md +5 -1
  118. package/package/corpus/skills/cratis-arc-host-application/references/java.md +1 -1
  119. package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +1 -1
  120. package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +1 -1
  121. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +4 -7
  122. package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +1 -1
  123. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +4 -4
  124. package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +1 -1
  125. package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +2 -2
  126. package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +2 -2
  127. package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +1 -1
  128. package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +1 -1
  129. package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +1 -1
  130. package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +4 -2
  131. package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +6 -6
  132. package/package/corpus/skills/cratis-arc-page-query/SKILL.md +3 -3
  133. package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +10 -6
  134. package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +2 -2
  135. package/package/corpus/skills/cratis-arc-page-query/references/java.md +1 -1
  136. package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +1 -1
  137. package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +2 -2
  138. package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +1 -1
  139. package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +1 -1
  140. package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +7 -3
  141. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +1 -1
  142. package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +2 -2
  143. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +2 -4
  144. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +2 -2
  145. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +1 -1
  146. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +2 -2
  147. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +1 -3
  148. package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +13 -51
  149. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +9 -1
  150. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +40 -0
  151. package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +19 -64
  152. package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +62 -0
  153. package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +24 -55
  154. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +49 -0
  155. package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +13 -31
  156. package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +25 -0
  157. package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +24 -62
  158. package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +51 -0
  159. package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +4 -4
  160. package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +10 -12
  161. package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +16 -3
  162. package/package/corpus/skills/cratis-arc-validate-command/references/go.md +19 -2
  163. package/package/corpus/skills/cratis-arc-validate-command/references/java.md +20 -7
  164. package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +22 -2
  165. package/package/corpus/skills/cratis-arc-validate-command/references/python.md +8 -2
  166. package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +22 -2
  167. package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +22 -248
  168. package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +55 -0
  169. package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +72 -0
  170. package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +86 -0
  171. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +27 -275
  172. package/package/corpus/skills/cratis-arc-validation-typescript/references/models-and-queries.md +63 -0
  173. package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +46 -0
  174. package/package/corpus/skills/cratis-arc-validation-typescript/references/server-decisions.md +114 -0
  175. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +15 -255
  176. package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +13 -6
  177. package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +75 -0
  178. package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +78 -13
  179. package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +16 -14
  180. package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +1 -1
  181. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +10 -6
  182. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +1 -1
  183. package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +2 -2
  184. package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +8 -8
  185. package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +10 -8
  186. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +8 -4
  187. package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +4 -4
  188. package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +2 -2
  189. package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +21 -8
  190. package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +1 -1
  191. package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +1 -1
  192. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +5 -7
  193. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +3 -3
  194. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +10 -80
  195. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +2 -2
  196. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -24
  197. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +10 -0
  198. package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +2 -2
  199. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +7 -6
  200. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +2 -2
  201. package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +6 -0
  202. package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +6 -0
  203. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +6 -0
  204. package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +11 -5
  205. package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +2 -2
  206. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +4 -4
  207. package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +2 -2
  208. package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +3 -1
  209. package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +1 -1
  210. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +1 -1
  211. package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +1 -1
  212. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +51 -40
  213. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +1 -1
  214. package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +1 -1
  215. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/{occurrences.md → csharp-occurrences.md} +2 -2
  216. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +5 -6
  217. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +1 -1
  218. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +1 -1
  219. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +1 -1
  220. package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +1 -1
  221. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +21 -19
  222. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +3 -3
  223. package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +1 -1
  224. package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +3 -4
  225. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +3 -4
  226. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +2 -2
  227. package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +1 -1
  228. package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +7 -2
  229. package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +1 -1
  230. package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +4 -4
  231. package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +3 -3
  232. package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +2 -6
  233. package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +2 -2
  234. package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +1 -1
  235. package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +1 -5
  236. package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +3 -3
  237. package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +2 -2
  238. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +12 -201
  239. package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +67 -0
  240. package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +88 -0
  241. package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +8 -4
  242. package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +13 -11
  243. package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +2 -2
  244. package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -4
  245. package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +20 -61
  246. package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +1 -1
  247. package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +15 -26
  248. package/package/corpus/skills/cratis-code-review/SKILL.md +7 -6
  249. package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +1 -1
  250. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +1 -1
  251. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +14 -206
  252. package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +29 -0
  253. package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +8 -0
  254. package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +7 -7
  255. package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +1 -1
  256. package/package/corpus/skills/cratis-components-choose-control/SKILL.md +7 -8
  257. package/package/corpus/skills/cratis-components-choose-control/references/collections.md +2 -2
  258. package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +1 -1
  259. package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +22 -27
  260. package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +5 -0
  261. package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +19 -25
  262. package/package/corpus/skills/cratis-components-display-list/SKILL.md +26 -19
  263. package/package/corpus/skills/cratis-components-display-list/references/server-query.md +3 -3
  264. package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +15 -12
  265. package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +3 -3
  266. package/package/corpus/skills/cratis-components-explore-data/SKILL.md +7 -7
  267. package/package/corpus/skills/cratis-components-host-chat/SKILL.md +7 -7
  268. package/package/corpus/skills/cratis-components-submit-form/SKILL.md +9 -15
  269. package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +5 -5
  270. package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +3 -3
  271. package/package/corpus/skills/cratis-components-theme-application/SKILL.md +7 -51
  272. package/package/corpus/skills/cratis-components-theme-application/references/palette.md +49 -0
  273. package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +4 -2
  274. package/package/corpus/skills/cratis-content-length/SKILL.md +34 -46
  275. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +26 -127
  276. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +15 -27
  277. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +3 -19
  278. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +29 -224
  279. package/package/corpus/skills/cratis-discoverability/SKILL.md +11 -4
  280. package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +2 -2
  281. package/package/corpus/skills/cratis-documentation-writing/SKILL.md +4 -3
  282. package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +13 -129
  283. package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +132 -0
  284. package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +11 -100
  285. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +55 -40
  286. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +68 -0
  287. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +38 -0
  288. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +14 -65
  289. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +40 -174
  290. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +8 -52
  291. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +29 -0
  292. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +20 -0
  293. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +3 -4
  294. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +7 -12
  295. package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +5 -4
  296. package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +6 -40
  297. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +18 -151
  298. package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +5 -21
  299. package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +19 -0
  300. package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +3 -66
  301. package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +68 -0
  302. package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +2 -84
  303. package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +87 -0
  304. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +15 -263
  305. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +3 -3
  306. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +28 -6
  307. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dotnet-nuget.md +18 -14
  308. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +231 -0
  309. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/other-environments.md +2 -3
  310. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +62 -77
  311. package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +6 -39
  312. package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +36 -0
  313. package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +4 -4
  314. package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +8 -134
  315. package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +139 -0
  316. package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +3 -100
  317. package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +109 -0
  318. package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +1 -5
  319. package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +1 -3
  320. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +11 -116
  321. package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +93 -0
  322. package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +4 -15
  323. package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +8 -8
  324. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +4 -4
  325. package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +1 -1
  326. package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +1 -1
  327. package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +5 -5
  328. package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +15 -2
  329. package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +1 -1
  330. package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +1 -1
  331. package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +10 -27
  332. package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +16 -0
  333. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +26 -188
  334. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +14 -0
  335. package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +7 -5
  336. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +23 -157
  337. package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +139 -0
  338. package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +7 -5
  339. package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +2 -4
  340. package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +7 -0
  341. package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +2 -2
  342. package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +1 -1
  343. package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +2 -2
  344. package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +2 -2
  345. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +5 -23
  346. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +20 -0
  347. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +3 -3
  348. package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +8 -63
  349. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +52 -0
  350. package/package/corpus/skills/cratis-observability/SKILL.md +1 -1
  351. package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +9 -23
  352. package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +3 -14
  353. package/package/corpus/skills/cratis-observability/references/csharp.md +4 -6
  354. package/package/corpus/skills/cratis-observability/references/elixir.md +1 -1
  355. package/package/corpus/skills/cratis-observability/references/troubleshooting.md +4 -5
  356. package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +1 -4
  357. package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +0 -3
  358. package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +0 -4
  359. package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +7 -49
  360. package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +22 -0
  361. package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +4 -4
  362. package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +1 -1
  363. package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +12 -0
  364. package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +12 -0
  365. package/package/corpus/skills/cratis-orchestration-lanes/references/worktrees.md +10 -0
  366. package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +14 -13
  367. package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +51 -26
  368. package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +8 -14
  369. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +9 -65
  370. package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +5 -0
  371. package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +11 -7
  372. package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +1 -1
  373. package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +27 -0
  374. package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +35 -0
  375. package/package/corpus/skills/cratis-performance-review/SKILL.md +6 -76
  376. package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +79 -0
  377. package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +19 -16
  378. package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +2 -2
  379. package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +5 -5
  380. package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +1 -1
  381. package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +2 -3
  382. package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +2 -2
  383. package/package/corpus/skills/cratis-platform-start-application/SKILL.md +10 -8
  384. package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +6 -6
  385. package/package/corpus/skills/cratis-platform-start-application/references/java.md +4 -4
  386. package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +4 -4
  387. package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +3 -3
  388. package/package/corpus/skills/cratis-release-notes/SKILL.md +9 -133
  389. package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -0
  390. package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +64 -0
  391. package/package/corpus/skills/cratis-rtk/SKILL.md +12 -18
  392. package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +3 -3
  393. package/package/corpus/skills/cratis-screenplay-accept-model/references/capability-consumption.md +1 -1
  394. package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +1 -1
  395. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +25 -59
  396. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +11 -10
  397. package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +9 -6
  398. package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +3 -3
  399. package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +8 -0
  400. package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +20 -167
  401. package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +23 -47
  402. package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +9 -10
  403. package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +26 -23
  404. package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +6 -14
  405. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +2 -2
  406. package/package/corpus/skills/cratis-screenplay-declare-slice/references/read-identity.md +1 -1
  407. package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +7 -9
  408. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +1 -1
  409. package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +10 -14
  410. package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +1 -1
  411. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +1 -1
  412. package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +6 -31
  413. package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +22 -0
  414. package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +5 -5
  415. package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +5 -5
  416. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +4 -4
  417. package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +2 -2
  418. package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +2 -2
  419. package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
  420. package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +4 -75
  421. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -2
  422. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +85 -1
  423. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +1 -1
  424. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +15 -133
  425. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
  426. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +4 -12
  427. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +28 -57
  428. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +4 -5
  429. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +13 -20
  430. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +1 -1
  431. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +1 -1
  432. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +3 -5
  433. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +2 -0
  434. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +5 -5
  435. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +82 -71
  436. package/package/corpus/skills/cratis-security-review/SKILL.md +4 -73
  437. package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +24 -13
  438. package/package/corpus/skills/cratis-security-review/references/review-checklist.md +74 -0
  439. package/package/corpus/skills/cratis-session-handoff/SKILL.md +7 -32
  440. package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +2 -2
  441. package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +20 -0
  442. package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +9 -17
  443. package/package/corpus/skills/cratis-showrunner-herald/references/options.md +2 -2
  444. package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +16 -10
  445. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +9 -162
  446. package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +37 -0
  447. package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +40 -0
  448. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +39 -150
  449. package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +24 -0
  450. package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +23 -0
  451. package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +5 -5
  452. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +2 -2
  453. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +13 -5
  454. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +7 -4
  455. package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +1 -1
  456. package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +20 -4
  457. package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +1 -1
  458. package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +2 -2
  459. package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +5 -5
  460. package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +2 -2
  461. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +2 -2
  462. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +2 -2
  463. package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +10 -9
  464. package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +3 -3
  465. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +7 -6
  466. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -6
  467. package/package/corpus/skills/cratis-technical-examples/SKILL.md +10 -106
  468. package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +1 -1
  469. package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +42 -0
  470. package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +2 -2
  471. package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +37 -0
  472. package/package/corpus/skills/cratis-ux-review/SKILL.md +8 -40
  473. package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +24 -0
  474. package/package/corpus/skills/cratis-ux-review/references/checklist.md +1 -1
  475. package/package/corpus/skills/cratis-ux-review/references/report-template.md +2 -1
  476. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +19 -132
  477. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +24 -97
  478. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +23 -0
  479. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +25 -0
  480. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +17 -0
  481. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +23 -0
  482. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +8 -29
  483. package/package.json +1 -1
  484. /package/package/corpus/skills/cratis-chronicle-protect-decision/references/{standalone.md → csharp-standalone.md} +0 -0
  485. /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/silent-backup-failure.md → silent-backup-failure.md} +0 -0
  486. /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/unintended-release-regression.md → unintended-release-regression.md} +0 -0
@@ -0,0 +1,27 @@
1
+ # Durable step planning
2
+
3
+ ## 2. Plan dependencies as stages
4
+
5
+ Default steps all use `JobStepStage.First`. Prefer independent fan-out. Use stages only when correctness requires earlier work to finish.
6
+
7
+ Planning excerpt inside an existing `Job<RecoveryRequest, RecoveryState>`. It assumes `RecoveryRequest : IJobRequest`, `RecoveryState : JobState`, and the two existing grain interfaces `IRepairIndex` and `IRebuildCatalog`, each deriving a typed `IJobStep<,,>`:
8
+
9
+ ```csharp
10
+ // Copyright (c) Cratis. All rights reserved.
11
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
12
+
13
+ protected override Task<IImmutableList<JobStepDetails>> PrepareSteps(RecoveryRequest request) =>
14
+ Task.FromResult<IImmutableList<JobStepDetails>>(
15
+ [
16
+ CreateStep<IRepairIndex>(request),
17
+ CreateStep<IRebuildCatalog>(request, stage: 10)
18
+ ]);
19
+ ```
20
+
21
+ Import `System.Collections.Immutable` and `Cratis.Choreography.Jobs` in that job file. `CreateStep<TStep>` takes the **grain interface**, not the implementation. Its stage overload accepts `JobStepStage`, with implicit integer conversion.
22
+
23
+ Every step in a stage reaches an outcome before later stages start; steps within a stage run in parallel. All steps are prepared up front, so later-stage preparation cannot read the effects of earlier-stage execution. Read such dependencies in `PerformStep`.
24
+
25
+ A failed stage stops the pipeline by default: later steps become `Unreachable`, and the job completes with failures. A best-effort stage may override `GetFailureBehaviorFor(JobStepStage)` to return `JobStageFailureBehavior.ContinueWithNextStage` (namespace `Cratis.Choreography.Jobs.Stages`). Do not silently continue when a later stage relies on the failed output.
26
+
27
+ Preparation requests must round-trip through the host's JSON options. Invalid plans return `StartJobError.InvalidStepPlan`. Recovery reuses identities and requests, prepares only unsaved steps, and never calls `PrepareSteps` again. Put retry-safe initialization needed before start **and** resume in `OnBeforeDispatchingJobSteps(JobStepDispatchContext)`, after the respective start/resume hook. `InitializationMayBeIncomplete` flags recovery from preparing/starting, not exactly-once initialization. A failed hook dispatches nothing; recovery never replays the start hook. A preparing/starting job without a saved plan returns `CannotResumeJobError.MissingStepPlan` rather than inventing identities.
@@ -0,0 +1,35 @@
1
+ # Job storage and options
2
+
3
+ ## 4. Know what storage retains
4
+
5
+ Successful jobs clear themselves by default; override `KeepAfterCompleted` to retain state. Jobs completed with failures default to `KeepAfterCompletedWithFailures = true`, but retention cleanup still applies.
6
+
7
+ Keeping a job does not keep successful step state: successful **steps delete their state**. Failed step state is retained. A durable callback receipt, deduplication set or result must live on the **job** (and be persisted), not only on a successful step. Deliver external callbacks to a method on the job's grain interface and preserve `WriteState()`'s `Catch` failure: do not acknowledge a failed write. Step state is not a callback inbox, and a running snapshot does not see later writes automatically.
8
+
9
+ ## 5. Register storage and budget concurrency
10
+
11
+ `IJobsStorage.GetFor(scope, namespace)` returns `JobsStorage`. Scope and namespace are opaque host-owned storage coordinates, not authorization checks. Choose one storage registration alongside `AddCratisChoreography`:
12
+
13
+ | Registration | Package / namespace | Use |
14
+ | --- | --- | --- |
15
+ | `AddCratisChoreographyMongoDBJobsStorage` | `.Storage.MongoDB` / `Cratis.Choreography.Setup` | Durable MongoDB; default database `{scope}+jobs[+{namespace}]`, overridable |
16
+ | `AddCratisChoreographySqlJobsStorage` | `.Storage.Sql` / `Cratis.Choreography.Setup` | Durable EF Core; `OptionsResolver(scope, namespace)` selects `DbContextOptions<JobsDbContext>` |
17
+ | `AddCratisChoreographyInMemoryJobsStorage` | `.Storage` / `Cratis.Choreography.Storage` | Specs/development; restart loses state |
18
+
19
+ The SQL provider calls `dbContext.Database.Migrate()` automatically before constructing storage. Do not substitute `EnsureCreated` or hand-create tables; grant migration permissions and choose scope-to-database mapping deliberately. `IJobsStorage.Reset()` clears the cache; the next resolution migrates again. There is no MySQL/MariaDB jobs provider.
20
+
21
+ `JobsOptions` properties are **init-only**: supply a constructed instance through the host's options mechanism, not assignment in `Configure(options => …)`.
22
+
23
+ | Option | Default | Purpose |
24
+ | --- | --- | --- |
25
+ | `MaxParallelSteps` | `max(1, ProcessorCount - 1)` when unset | Execution throttle per silo |
26
+ | `MaxConcurrentStepStarts` | `16` | Startup/resume calls per job, not execution limit |
27
+ | `MaxConcurrentRehydration` | `8` | Jobs resumed concurrently by a manager |
28
+ | `MaxConcurrentCleanup` | `4` | Dead-job deletions |
29
+ | `StepCheckpointBatchInterval` | `100` | Batches between durable checkpoints |
30
+ | `StepCheckpointFlushInterval` | `5 seconds` | Timed flush; nonpositive disables it |
31
+ | `DeadJobThreshold`, `CleanupCadence` | `1 hour` each | Preparation-with-no-steps scavenging; saved plans are excluded |
32
+ | `TerminalJobRetention` | `7 days` | Terminal history; `Timeout.InfiniteTimeSpan` retains indefinitely |
33
+ | `MaxTerminalJobsPerCleanup` | `100` | Bounded oldest-first cleanup page |
34
+
35
+ Concurrency values below one become one. Retention does not delete preparing/running/stopped/removing jobs. Larger checkpoint intervals increase post-crash redelivery, not delivery guarantees.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-performance-review
3
- description: Use when auditing Cratis application changes for runtime scalability, replay cost, query shape, payload size or React render cost. Not for ordinary implementation, CI workflow speed or paging syntax alone.
3
+ description: Use when reviewing a Cratis application change for query cost, replay cost, payload size or render scalability. Not for a general correctness review (use cratis-code-review).
4
4
  license: MIT
5
5
  ---
6
6
 
@@ -40,79 +40,9 @@ behavior this file does not already state.
40
40
  - Security or data exposure: use `cratis-security-review`. An over-fetching
41
41
  payload is a finding for both — say which lens produced it.
42
42
 
43
- ## Step 1 — Chronicle and event sourcing
44
-
45
- - **A projection joins on events, never on a read model.** A read-model join
46
- forces a re-read the projection engine cannot optimize, and it makes the
47
- projection depend on another observer's position.
48
- - **A reactor does not re-query the event log inside its handler.** The event it
49
- received already carries what it needs. (Reactor dispatch is by the handler's
50
- first parameter type — the method name is free, so look for the event-typed
51
- parameter, not for a method called `On`.)
52
- - **A new projection can replay all earlier events without failing.** Ask it
53
- explicitly: at production volume, does this projection complete a full replay?
54
- - **Events are small.** No large blob and no base64 payload embedded in an
55
- event; put the content elsewhere and carry a reference.
56
- - No eager load of a whole event sequence without paging or filtering.
57
- - AutoMap is on by default. Hand-mapping every property is both a maintenance
58
- and a cost problem — and, since AutoMap runs anyway, it does not save the work
59
- it appears to.
60
-
61
- ## Step 2 — Read models and their store
62
-
63
- - Queries filter on indexed fields. An unintentional full-collection scan is the
64
- most common finding here.
65
- - Flag a growable list that does not use server-side paging or materializes
66
- before slicing.
67
- - No N+1: one query returns what the caller needs.
68
- - A count is a count. Hydrating the collection to measure its length is the
69
- same finding as an unpaged list, wearing different clothes.
70
- - Prefer slim projection-backed summaries over repeatedly assembling broad
71
- collections. Query composition is supported; one collection per query is not
72
- a framework requirement. Bound each input and measure recomputation.
73
- - Embed bounded related state, not growing histories; page timelines separately.
74
- Evaluate variants for divergent lifecycle shapes, not every status field.
75
- - Preserve reducer admission and ordering guards when proposing a projection
76
- conversion; an unconditional setter may resurrect or prematurely create state.
77
- - Count passive models as inventory, not a smell. Assess history length and read
78
- frequency against consistency/security needs. Requires Chronicle 19.77.3 for
79
- per-key strongly consistent projection reads to fold from the start each time;
80
- repeated reads are O(key history), not incremental cache hits. Prefer a
81
- materialized projection for frequent long-history reads when freshness permits. `IMongoCollection<T>` cannot
82
- read passive computed state; never materialize secrets to make that query work.
83
- - Distinguish retained `Observe` state and in-memory emissions from explicit
84
- recompute queries. Narrow source filters and inspect page-refill/membership
85
- lookups; do not claim every change re-queries the entire collection. For live
86
- query setup, see `cratis-arc-expose-query` in `cratis/application`.
87
-
88
- ## Step 3 — Commands and queries
89
-
90
- - A response payload carries only fields the client uses.
91
- - Command validators are synchronous and in-memory. Validation is on the hot
92
- path of every attempt, including the ones that will be rejected — an I/O call
93
- there is paid on every request.
94
- - No `await Task.Run(() => syncWork)` wrapping for work that is naturally
95
- asynchronous.
96
-
97
- ## Step 4 — .NET
98
-
99
- - No `.ToList()` before `.Where()`. Filter before materializing.
100
- - An `IEnumerable<T>` is not enumerated more than once — materialize once when
101
- it must be reused.
102
- - Large-object logging uses the destructuring form only at `Debug` level, so a
103
- production log level does not pay to serialize it.
104
-
105
- ## Step 5 — React
106
-
107
- - A `DataTable` over a growable collection uses lazy loading and a paginator
108
- rather than rendering every row.
109
- - No inline object or array literal passed as a prop: it is a new identity every
110
- render and defeats memoization downstream.
111
- - `useEffect` dependencies are correct — neither missing nor over-broad. An
112
- over-broad dependency array is a re-run per render, which reads as a
113
- correctness bug and behaves as a performance one.
114
- - Components over large collections hold stable references or are memoized.
115
- - No `JSON.parse(JSON.stringify(x))` deep cloning.
43
+ ## Inspect the diff
44
+
45
+ Read [the review checklist](references/review-checklist.md) for Chronicle, store-backed queries, commands, .NET and React. Follow the changed caller path from the data source to the client, and stop a finding where the evidence stops.
116
46
 
117
47
  ## Step 6 — Report
118
48
 
@@ -153,8 +83,8 @@ from code-shape inference; use the shared scope line to name unmeasured behavior
153
83
 
154
84
  ## How it is proven
155
85
 
156
- The build and specifications are green before the report is written; each
157
- finding cites the file and line and states the scale at which it bites; and the
86
+ Report build and specification results if run; missing required evidence makes
87
+ the verdict Incomplete unless there is already a blocker. Each finding cites the file and line and states the scale at which it bites; and the
158
88
  report says plainly that it reviewed code shape rather than measured behavior,
159
89
  naming anything that would need a benchmark to settle.
160
90
 
@@ -0,0 +1,79 @@
1
+ # Performance review checklist
2
+
3
+ ## Step 1 — Chronicle and event sourcing
4
+
5
+ - **A projection joins on events, never on a read model.** A read-model join
6
+ forces a re-read the projection engine cannot optimize, and it makes the
7
+ projection depend on another observer's position.
8
+ - **A reactor does not re-query the event log inside its handler.** The event it
9
+ received already carries what it needs. (Reactor dispatch is by the handler's
10
+ first parameter type — the method name is free, so look for the event-typed
11
+ parameter, not for a method called `On`.)
12
+ - **A new projection can replay all earlier events without failing.** Ask it
13
+ explicitly: at production volume, does this projection complete a full replay?
14
+ - **Events are small.** No large blob and no base64 payload embedded in an
15
+ event; put the content elsewhere and carry a reference.
16
+ - No eager load of a whole event sequence without paging or filtering.
17
+ - AutoMap is on by default. Hand-mapping every property is both a maintenance
18
+ and a cost problem — and, since AutoMap runs anyway, it does not save the work
19
+ it appears to.
20
+
21
+ ## Step 2 — Read models and their store
22
+
23
+ - Queries filter on indexed fields. An unintentional full-collection scan is the
24
+ most common finding here.
25
+ - Flag a growable list that does not use server-side paging or materializes
26
+ before slicing.
27
+ - No N+1: one query returns what the caller needs.
28
+ - A count is a count. Hydrating the collection to measure its length is the
29
+ same finding as an unpaged list, wearing different clothes.
30
+ - Prefer slim projection-backed summaries over repeatedly assembling broad
31
+ collections. Query composition is supported; one collection per query is not
32
+ a framework requirement. Bound each input and measure recomputation.
33
+ - Embed bounded related state, not growing histories; page timelines separately.
34
+ Evaluate variants for divergent lifecycle shapes, not every status field.
35
+ - Preserve reducer admission and ordering guards when proposing a projection
36
+ conversion; an unconditional setter may resurrect or prematurely create state.
37
+ - Count passive models as inventory, not a smell. Assess history length and read
38
+ frequency against consistency and security needs. A per-key passive read folds
39
+ relevant history from the start; repeated reads are not incremental cache hits. Prefer a
40
+ materialized projection for frequent long-history reads when freshness permits. `IMongoCollection<T>` cannot
41
+ read passive computed state; never materialize secrets to make that query work.
42
+ - For MongoDB `Observe`, distinguish incremental changes to an unpaged set
43
+ from a paged observation. Review unpaged membership lookups and reads on
44
+ resynchronization. For a paged set, Arc rereads the sorted page for each
45
+ batch of held changes and recounts the filtered set unless query context
46
+ is ignored. These reads happen even when neither result changes enough to
47
+ emit. Review indexes and cost for both
48
+ the page query and the filtered count at the expected update rate. For
49
+ live query setup, see `cratis-arc-expose-query` in `cratis/application`.
50
+
51
+ ## Step 3 — Commands and queries
52
+
53
+ - A response payload carries only fields the client uses.
54
+ - Command validators are synchronous and in-memory. Validation is on the hot
55
+ path of every attempt, including the ones that will be rejected — an I/O call
56
+ there is paid on every request.
57
+ - No `await Task.Run(() => syncWork)` wrapping for work that is naturally
58
+ asynchronous.
59
+
60
+ ## Step 4 — .NET
61
+
62
+ - For provider-backed reads, apply translatable filters before materializing.
63
+ - Avoid repeated expensive or side-effectful enumeration. Materialize once
64
+ when the bounded result must be reused.
65
+ - Large-object logging uses the destructuring form only at `Debug` level, so a
66
+ production log level does not pay to serialize it.
67
+
68
+ ## Step 5 — React
69
+
70
+ - A growable query-backed table uses server paging, for example
71
+ `DataTableForQuery` with a provider-backed Arc query. Verify that loading a
72
+ page does not fetch every row.
73
+ - Check object and array props when a memoized or expensive child re-renders.
74
+ Stabilize a reference when its identity actually causes avoidable work.
75
+ - `useEffect` dependencies are correct — neither missing nor over-broad. An
76
+ over-broad dependency list can re-run the effect when an unrelated
77
+ dependency changes.
78
+ - Components over large collections hold stable references or are memoized.
79
+ - No `JSON.parse(JSON.stringify(x))` deep cloning.
@@ -1,41 +1,44 @@
1
1
  ---
2
2
  name: cratis-platform-configure-environment
3
3
  description: Use when an operator needs to verify a deployed host reached the intended Chronicle store and namespace, or map a named Screenplay secret. Not for registering the client (use cratis-chronicle-connect-application).
4
- compatibility: Requires ASP.NET Core configuration and the Screenplay CLI for model inventory.
4
+ compatibility: The host example uses ASP.NET Core. The secret inventory uses the Screenplay CLI.
5
5
  ---
6
6
 
7
- # Bind the Library preview environment
7
+ # Verify an existing Chronicle environment
8
8
 
9
- Start with an existing Library host, its expected preview store and namespace, and a deployment-managed secret provider. Use a fixture author already seeded only in preview to distinguish it from other reachable stores.
9
+ Start with an existing host, its expected store and namespace, and an authorized read-only smoke check. Use a fixture seeded only in that environment; for Library preview, use a known author registration.
10
10
 
11
11
  1. In the preview host's deployment configuration, supply `Cratis__Chronicle__ConnectionString` through its secret provider. Do not place shared endpoints or credentials in the model or in the preview host's checked-in settings.
12
- 2. In the preview host's `Program.cs`, immediately after creating `WebApplicationBuilder builder` and before Chronicle registration, reject a missing effective value:
12
+ 2. If preview requires an explicit environment binding, reject a missing deployment input before Chronicle registration. This example assumes the deployment uses only the section key, not the named fallback or a client override:
13
13
 
14
14
  ```csharp
15
15
  if (string.IsNullOrWhiteSpace(builder.Configuration["Cratis:Chronicle:ConnectionString"]))
16
16
  throw new System.InvalidOperationException("Missing Chronicle connection string");
17
17
  ```
18
18
 
19
- This guard checks presence only. For a single-host preview binding with no client override, parse the value with `new ChronicleConnectionString(builder.Configuration["Cratis:Chronicle:ConnectionString"]!).ServerAddress` (`using Cratis.Chronicle.Connections;`). Compare its `Host` and `Port` with the deployment's allowed pair; reject a mismatch without logging the value.
20
- 3. If Library reminder mail uses a restored mail extension contract with the `apiKey` setting, put this declaration in `model/environment.play`:
19
+ Without an explicit binding Chronicle can fall back to its development connection. This guard checks the input, not where the client connected. For a single-host binding, parse the input with `ChronicleConnectionString` (namespace `Cratis.Chronicle.Connections`) and compare `ServerAddress.Host` and `.Port` with the allowed pair. Report only a sanitized missing-value, invalid-value, or mismatch outcome; don't log the original value or parser exception.
21
20
 
22
- ```play
23
- secret MailerApiKey
21
+ ## Map a named Screenplay secret
24
22
 
25
- system Mailer
26
- extension "ghcr.io/cratis/extension-mail" version 2
27
- setting apiKey from secret MailerApiKey
28
- ```
23
+ Choose this when a Screenplay system setting needs a deployment secret. For example, given a restored mail extension contract with the `apiKey` setting, declare and map the name in the model. Use the extension reference approved by the deployment and commit its restored lock file:
24
+
25
+ ```play
26
+ secret MailerApiKey
27
+
28
+ system Mailer
29
+ extension "ghcr.io/example/library-mail"
30
+ setting apiKey from secret MailerApiKey
31
+ ```
29
32
 
30
- 4. Run `screenplay environment model --format json`. Look for `secrets.MailerApiKey` marked secret. The output lists paths and secret flags, not values. Bind the named secret in the deployment's secret store.
33
+ Run `screenplay environment model --format json`. Look for `secrets.MailerApiKey` marked secret. The output lists paths and secret flags, not values. Bind the named secret in the deployment's secret store.
31
34
 
32
35
  ## Bind an already-running local service
33
36
 
34
- When an existing Aspire AppHost supplies the `chronicle` reference, check `builder.Configuration["ConnectionStrings:chronicle"]` rather than requiring the preview key.
37
+ Choose this when an existing Aspire AppHost supplies the `chronicle` reference. Check `builder.Configuration.GetConnectionString("chronicle")` rather than requiring the preview key. The named connection is a fallback: a section binding or explicit client configuration can override it.
35
38
 
36
39
  ## Prove the app reached the intended store and namespace
37
40
 
38
- In a smoke check running in the app, resolve `var eventStore = scope.ServiceProvider.GetRequiredService<IEventStore>();` from the app's service scope (`using Cratis.Chronicle;`). Check `eventStore.Name.Value` and `eventStore.Namespace.Value` against the expected values. Read that fixture's registration with `await eventStore.EventLog.GetFromSequenceNumber(EventSequenceNumber.First, fixtureAuthorId)` (`using Cratis.Chronicle.Events;`). Require the known registration, not merely a successful connection. Use the same check for Aspire and preview.
41
+ In a smoke check running in the app with the intended caller or tenant context, resolve `var eventStore = scope.ServiceProvider.GetRequiredService<IEventStore>();` from the app's service scope (`using Cratis.Chronicle;`). Check `eventStore.Name.Value` and `eventStore.Namespace.Value` against the expected values. Read that fixture's registration with `await eventStore.EventLog.GetFromSequenceNumber(EventSequenceNumber.First, fixtureAuthorId)` (`using Cratis.Chronicle.Events;`). Require the known registration, not merely a successful connection. Use the same check for Aspire and preview.
39
42
 
40
43
  ## When it goes off the usual path
41
44
 
@@ -48,4 +51,4 @@ In a smoke check running in the app, resolve `var eventStore = scope.ServiceProv
48
51
 
49
52
  ## Related skills
50
53
 
51
- - [Deploy the kernel](../cratis-chronicle-deploy-kernel/SKILL.md) when the target service itself must be provisioned. A successful configuration check does not deploy or authorize changes to that service.
54
+ - Use `cratis-chronicle-deploy-kernel` (in `cratis/chronicle/core`) when the target service itself must be provisioned. A successful configuration check does not deploy or authorize changes to that service.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-platform-contribute-change
3
- description: Use when a contributor is changing a Cratis platform library or tool and needs to locate its published contract, implementation and focused check. For a completed change awaiting release notes, use cratis-platform-prepare-release-pr.
3
+ description: Use when a contributor is changing a Cratis platform library or tool and needs to locate its published contract, implementation and focused check. Not for a completed change awaiting release notes (use cratis-platform-prepare-release-pr).
4
4
  ---
5
5
 
6
6
  # Change the contract where the platform owns it
@@ -9,7 +9,7 @@ Start inside the product repository. Read its contributor instructions, supporte
9
9
 
10
10
  1. Describe the promise before editing. For example: “A caller can distinguish an invalid command from one denied by authorization.” Record the input, existing result and expected result. Identify consumers of the return type, wire representation or persisted data before changing it. A source-compatible change can still break a wire reader.
11
11
  2. Change the owning implementation. Follow the surrounding package's naming, target frameworks, dependency pins and generated-file boundaries. If the surface is generated, edit its source, then use that repository's generation command. For C# generator or analyzer changes, apply the [authoring cost checks](../cratis-ci-pipeline-performance/references/test-setup-cost.md#analyzer-cost).
12
- 3. Choose the cheapest check that crosses the changed boundary. For the example, execute the command under the relevant policy and assert the **reason** for refusal, not just failure. Extend an existing case where possible. For an internal refactor, run the nearby unchanged behavior spec; don't add a spec for each moved method.
12
+ 3. Choose the cheapest check that crosses the changed boundary. For the example, execute the command under the relevant policy and assert the public reason for refusal, not prose or just a failed result. Extend an existing case where possible. For an internal refactor, run the nearby unchanged behavior spec; don't add a spec for each moved method.
13
13
  4. Use the repository's own build/test entry point for the affected target. If the check passes only against the implementation project while consumers use a generated or packaged surface, verify a representative consumer at that boundary. For example, when changing Arc's Chronicle-backed command scenario, its own `Chronicle.Specs` project exercises that contract; running a sample application's entire UI suite would test a different boundary. Record what ran and any target not exercised.
14
14
  5. Update the caller's guide or reference next to its existing peers when usage changes. Show the changed input and observable result. Follow the product's navigation convention for a new page. If the old result or syntax stops working, identify the migration and flag the breaking change instead of hiding it behind a patch label.
15
15
 
@@ -1,21 +1,21 @@
1
1
  ---
2
2
  name: cratis-platform-deliver-slice
3
- description: Use when implementing an accepted full-stack slice across command, read model and screen, or coordinating delivery across several accepted slices. Not for invoking Stage generation.
3
+ description: Use when implementing an accepted full-stack slice across command, read model and screen, or coordinating delivery across several accepted slices. Not for invoking Stage generation (use cratis-stage-render-slice).
4
4
  ---
5
5
 
6
6
  # Register an author and show the new row
7
7
 
8
8
  Implement one slice at a time. If the request covers several accepted slices, [coordinate delivery](references/coordinate-slices.md) before starting implementation.
9
9
 
10
- For manual implementation, take the owner of the history and the accepted examples from the [event model](../cratis-modeling-design-event-model/SKILL.md) or from the Screenplay handoff (`cratis-screenplay-handoff-slice` skill in `cratis/screenplay`). An accepted Screenplay model does not require Stage generation. For generation, see `cratis-stage-render-slice` (in `cratis/stage`).
10
+ For manual implementation, take the owner of the history and the accepted examples from the event model (`cratis-modeling-design-event-model` in `cratis/screenplay`) or from the Screenplay handoff (`cratis-screenplay-handoff-slice` skill in `cratis/screenplay`). An accepted Screenplay model does not require Stage generation. For generation, see `cratis-stage-render-slice` (in `cratis/stage`).
11
11
 
12
12
  If there is no development host yet, use the `cratis-platform-start-application` skill (installed by the `cratis/application/csharp`, `cratis/application/kotlin` or `cratis/application/java` profile for the chosen backend) to choose and run the bootstrap recipe.
13
13
 
14
14
  For Library, registration is a state change; the Authors list is its consuming state view. Agree that a librarian can register Aster once and see exactly one new row without refreshing. If the owner hasn't decided what happens on an empty name, resolve that before coding a validator.
15
15
 
16
- 1. Confirm the [host](../cratis-arc-host-application/SKILL.md) reaches the intended [Chronicle store](../cratis-chronicle-connect-application/SKILL.md) and [read-model storage](../cratis-arc-connect-storage/SKILL.md). Work in a disposable namespace. Check which artifacts the target already generates; do not edit generated output or implement a second owner for the same behavior.
17
- 2. In the registration feature, [declare RegisterAuthor](../cratis-arc-declare-command/SKILL.md) and [validate its input](../cratis-arc-validate-command/SKILL.md). [Declare the accepted fact](../cratis-chronicle-record-event/SKILL.md) with the name in its payload. The command's author ID addresses one author's history; never use it as the event type ID. Keep the type ID `AuthorRegistered` when [evolving the stored event](../cratis-chronicle-evolve-event/SKILL.md). Follow the pipeline for the application's SDK so one acceptance appends exactly once. Prove the append, refusal and keyed query before deriving a client. If the backend isn't ready, report a partial slice rather than stubbing a successful registration in the browser.
18
- 3. [Project the authors list](../cratis-chronicle-project-view/SKILL.md): the row ID comes from the event source, the name from `AuthorRegistered`. Expose it via the observable [AllAuthors query](../cratis-arc-expose-query/SKILL.md).
16
+ 1. Confirm the [host](../cratis-arc-host-application/SKILL.md) reaches the intended Chronicle store (`cratis-chronicle-connect-application`) and [read-model storage](../cratis-arc-connect-storage/SKILL.md). Work in a disposable namespace. Check which artifacts the target already generates; do not edit generated output or implement a second owner for the same behavior.
17
+ 2. In the registration feature, [declare RegisterAuthor](../cratis-arc-declare-command/SKILL.md) and [validate its input](../cratis-arc-validate-command/SKILL.md). Declare the accepted fact (`cratis-chronicle-record-event`) with the name in its payload. The command's author ID addresses one author's history; never use it as the event type ID. Keep the registered type ID stable (for example, the C# type name `AuthorRegistered`) when evolving the stored event (`cratis-chronicle-evolve-event`). Follow the pipeline for the application's SDK so one acceptance appends exactly once. Prove the append and refusal before deriving a client. If the backend isn't ready, report a partial slice rather than stubbing a successful registration in the browser.
18
+ 3. Project the authors list (`cratis-chronicle-project-view`): the row ID comes from the event source, the name from `AuthorRegistered`. Expose it via the observable [AllAuthors query](../cratis-arc-expose-query/SKILL.md). Prove that a fresh query as the librarian returns the registered ID before deriving the client.
19
19
  4. [Generate the client](../cratis-arc-generate-proxies/SKILL.md) from the backend. Submit the command (`cratis-components-submit-form` skill in `cratis/components`) once from the dialog and display the rows (`cratis-components-display-list` skill in `cratis/components`) from `AllAuthors`. The query supplies the new row; don't also insert one into local state.
20
20
  5. For a one-off check, open Authors as the librarian and register a fresh name. Wait for the row without reloading, then check that a fresh query returns exactly one matching row with the same identity. Verify the agreed empty-name refusal in a [backend scenario](../cratis-specifications-exercise-backend/SKILL.md): the reason identifies the name rule and no event was appended. A disabled button alone does not prove backend refusal.
21
21
  6. [Reconcile the whole slice](references/contract-reconciliation.md) in both directions and name the executable witness for each contracted scenario before reporting delivery.
@@ -4,4 +4,4 @@
4
4
  2. Order the briefs by dependency. Run only independent backends in parallel: if slices share files, events or a contract that one changes and the other consumes, serialize them. Keep one writer per worktree. Start at most two workers at a time unless the operator sets a different concurrency limit. If no isolated worker is available, run the same briefs serially.
5
5
  3. Integrate completed backends on the shared branch and build the candidate. Where the UI consumes generated Arc proxies, follow `cratis-arc-generate-proxies` on that candidate. Release the frontend work only after the backend build and any proxy regeneration pass; frontends must start from that integrated contract, not a stale proxy or a worker's draft.
6
6
  4. Have each worker return its status (complete, partial or blocked), changed files, exact checks and outcomes, and what remains. Stop and escalate any required change outside its ownership or an unresolved contract. Report partial delivery rather than stubbing a handler or silently dropping an acceptance case.
7
- 5. Review the integrated candidate with independent code, security and performance reviewers. Use `cratis-engineering-review-rounds` when installed and follow the `review-reports` rule when combining their reports. Keep each review's scope and evidence gaps. Missing or failed reviews are not approval.
7
+ 5. Review the integrated candidate with independent code, security and performance reviewers. Use `cratis-engineering-review-rounds` when installed and follow the `review-reports` rule (available with `cratis/review`) when combining their reports. Keep each review's scope and evidence gaps. Missing or failed reviews are not approval.
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: cratis-platform-diagnose-slice
3
- description: Use when a slice outcome is missing or stale and the failing boundary is unknown. Not for a confirmed correct stored row and stale live view (use cratis-arc-diagnose-live-query) or a confirmed observer failure.
4
- compatibility: Chronicle diagnostics below use the Cratis CLI 3.154.2.
3
+ description: Use when a slice outcome is missing or stale and the failing boundary is unknown. Not for a confirmed correct fresh query and stale live view (use cratis-arc-diagnose-live-query).
5
4
  ---
6
5
 
7
6
  # Find the first boundary that lost the update
@@ -10,7 +9,7 @@ Start with an existing request, not another write. Record the caller, command ou
10
9
 
11
10
  ## Inspect the running Chronicle, read-only
12
11
 
13
- Use read access to the intended server. Confirm the endpoint in the active CLI context or have the secret provider supply `CHRONICLE_CONNECTION_STRING`. An environment value overrides the context; without either, the CLI falls back to localhost. Never put credentials in shell history or diagnostic output. Use the application's tenant-to-namespace mapping; a tenant name need not be its Chronicle namespace.
12
+ If observer failure is already confirmed, skip this trace and use `cratis-chronicle-inspect-observer`. Otherwise, use read access to the intended server. Confirm the endpoint in the active CLI context or have the secret provider supply `CHRONICLE_CONNECTION_STRING`. An environment value overrides the context; without either, the CLI falls back to localhost. Never put credentials in shell history or diagnostic output. Use the application's tenant-to-namespace mapping; a tenant name need not be its Chronicle namespace.
14
13
 
15
14
  ```sh
16
15
  cratis chronicle event-stores list
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-platform-prepare-release-pr
3
- description: Use when a platform maintainer needs a release-note PR body and intent label, or must explain why a merged change is still pending in a release batch. Not for implementing the product change.
3
+ description: Use when a platform maintainer needs a release-note PR body and intent label, or must explain why a merged change is still pending in a release batch. Not for implementing the product change (use cratis-platform-contribute-change).
4
4
  ---
5
5
 
6
6
  # Prepare the note a consumer will read
@@ -19,7 +19,7 @@ Preparing a note or label does not authorize a push, merge, dispatch or release.
19
19
 
20
20
  ## A green Publish run did not publish the change
21
21
 
22
- First check whether the workflow actually enables batching. With release-action 1.5.2 and batching enabled:
22
+ First check whether the workflow actually enables batching. When release-action batching is enabled:
23
23
 
24
24
  1. Read the main-step log or the step summary's **Explanation**. Inspect `reason` and `pull-requests`; `nothing-pending` is different from `batched`. The post-step log also records the skip reason.
25
25
  2. For an open window, match the intended PR to the pending list. Record the **oldest pending merge time** and the **window expiry**, both in UTC. For example, if the window expires at 16:00 UTC, check the next scheduled Publish after 16:00, not a presumed release at exactly 16:00. Verify a published release/tag and the relevant package or artifact before announcing availability.
@@ -1,29 +1,31 @@
1
1
  ---
2
2
  name: cratis-platform-start-application
3
- description: Use when scaffolding a new Cratis application in .NET, Kotlin, or Java. Not for checking an existing host's Chronicle connection.
3
+ description: Use when scaffolding a new Cratis application in .NET, Kotlin, or Java. Not for checking an existing host's Chronicle connection (use cratis-platform-configure-environment).
4
4
  ---
5
5
 
6
6
  # Scaffold and run a local Cratis application
7
7
 
8
8
  For checking an existing host's Chronicle connection, use `cratis-platform-configure-environment` (installed with `cratis/application/arc-chronicle`) if available.
9
9
 
10
- Use this code-first path when you will implement the application by hand, including when an accepted Screenplay model supplies the design. Keep the `.play` files and scaffold into a new application directory. If you don't yet have an agreed design, [discover the timeline](../cratis-modeling-discover-timeline/SKILL.md) and [design the event model](../cratis-modeling-design-event-model/SKILL.md) first. If Stage will generate the application, do not run `cratis new`; the initial render supplies the scaffold. Use the `cratis-stage-render-slice` skill (installed by the `cratis/stage` profile) instead.
10
+ Use this code-first path when you will implement the application by hand, including when an accepted Screenplay model supplies the design. Keep the `.play` files and scaffold into a new application directory. If you don't yet have an agreed design, use `cratis-modeling-discover-timeline` and `cratis-modeling-design-event-model` (in `cratis/screenplay`) first. If Stage will generate the application, do not run `cratis new`; the initial render supplies the scaffold. Use the `cratis-stage-render-slice` skill (installed by the `cratis/stage` profile) instead.
11
11
 
12
12
  ## Choose the backend
13
13
 
14
- Use Cratis CLI 3.154.2 for the commands below. Run them from the parent of the new application directory with Docker running and access to the package feeds. Compose-based recipes also need the Docker Compose plugin. The examples create a new `Library` directory.
14
+ Run the commands below from the parent of the new application directory with Docker running and access to the package feeds. Compose-based recipes also need the Docker Compose plugin. The examples create a new `Library` directory.
15
15
 
16
16
  - Default: for .NET, use [C# with React](references/csharp.md). Choose its Aspire variant for app-host orchestration, or a Chronicle-only template when no Arc or React stack is needed.
17
- - For a Kotlin Spring Boot backend with React, use [Kotlin](references/kotlin.md).
18
- - For a Java Spring Boot backend with React, use [Java](references/java.md).
17
+ - Choose this when a Kotlin Spring Boot backend with React is required: use [Kotlin](references/kotlin.md).
18
+ - Choose this when a Java Spring Boot backend with React is required: use [Java](references/java.md).
19
19
 
20
20
  There is no Go, Elixir, Python, or TypeScript-only Cratis application template. For Go, Elixir, or TypeScript, create a service in that stack and use `cratis-arc-host-application` to wire and verify it. If needed, install the skill with `cratis/arc/go`, `cratis/arc/elixir`, or `cratis/arc/server-typescript`, respectively. For Python, follow that skill's TypeScript host route and call the service's authenticated HTTP endpoint from Python.
21
21
 
22
- All these application templates default to MongoDB. If the project requires another Chronicle store, add `--database postgresql`, `--database mssql`, or `--database sqlite` to the scaffold command. The template version pins the scaffold, not the resolved dependencies; check generated project and package versions before applying version-specific recipes.
22
+ The `cratis` template defaults to Yarn. When the project uses npm, add `--packageManager npm` and substitute `npm install` and `npm run dev` for the Yarn commands.
23
+
24
+ All these application templates default to MongoDB. If the project requires another Chronicle store, add `--database postgresql`, `--database mssql`, or `--database sqlite` to the scaffold command. `cratis new` uses the installed template set. Run `cratis update` before scaffolding if that set needs refreshing.
23
25
 
24
26
  ## After creation
25
27
 
26
- 1. Read the scaffold summary and work from `Library`. The examples decline script post-actions with `--allow-scripts no`, so review the frontend dependencies and scripts before installing them yourself. Declining scripts does not undo creation.
28
+ 1. Read the scaffold summary and work from `Library`. Script post-actions are off by default. Review the generated frontend dependencies and scripts before installing them yourself.
27
29
  2. The scaffold writes `.cratis/ai.json`, and `cratis new` attempts the same sync as `cratis ai update`. If the sync did not run, run `cratis ai update` in `Library`; if it failed, diagnose the reported error before retrying. Use `cratis ai profiles list` to confirm the recommended profile from the recipe is available. If not, select a compatible CLI and corpus. If the generated selection differs from the recipe or uses the wrong harness, replace the placeholders below with the recipe's values and your harness (for example, `pi`):
28
30
 
29
31
  ```sh
@@ -35,4 +37,4 @@ All these application templates default to MongoDB. If the project requires anot
35
37
  4. Start the app using the selected recipe. For the React sample, open Vite's local URL (normally `http://localhost:9000`), choose **Demo → Register**, and enter a disposable name. It should appear in the list. If not, check that Vite reaches the backend and the backend reaches its intended store. Use the generated `SomeModule/SomeFeature/Registration/` slice as the house example: organize by module, feature, then behavior, with no `Features/` wrapper. The separate Library teaching examples that use `Features/` keep that prefix only for their example routes and identities.
36
38
  5. Stop foreground app processes with Ctrl+C. For Compose, run `docker compose stop` to preserve containers and their data; do not remove them to diagnose a startup failure.
37
39
 
38
- The demo is a smoke check, not the domain design. Before implementing the first real feature, [discover the business timeline](../cratis-modeling-discover-timeline/SKILL.md) with someone who can decide what should happen.
40
+ The demo is a smoke check, not the domain design. Before implementing the first real feature, discover the business timeline (`cratis-modeling-discover-timeline` in `cratis/screenplay`) with someone who can decide what should happen.
@@ -1,33 +1,33 @@
1
1
  # .NET scaffold
2
2
 
3
- Use the .NET 11 SDK. The React variants also need npm and Node.js `^20.19.0` or `>=22.12.0`.
3
+ Use the .NET 11 SDK. The React variants also need Yarn and Node.js `^20.19.0` or `>=22.12.0`.
4
4
 
5
5
  ## Default: Arc and React with Compose
6
6
 
7
7
  ```sh
8
- cratis new cratis --language csharp -n Library -o Library --version 1.9.2 --packageManager npm --allow-scripts no
8
+ cratis new --language csharp -n Library
9
9
  cd Library
10
10
  ```
11
11
 
12
- Use profile `cratis/application/csharp` and languages `csharp,typescript`. After the shared AI and Compose checks, run `npm install` and start `dotnet run` from `Library`. The build generates TypeScript proxies and the backend listens on `http://localhost:5000`. In a second terminal in `Library`, run `npm run dev` and do the React smoke check.
12
+ Use profile `cratis/application/csharp` and languages `csharp,typescript`. After the shared AI and Compose checks, run `yarn install` and start `dotnet run` from `Library`. The build generates TypeScript proxies and the backend listens on `http://localhost:5000`. In a second terminal in `Library`, run `yarn dev` and do the React smoke check.
13
13
 
14
14
  ## Aspire: Arc and React with an app host
15
15
 
16
16
  Choose this when Aspire should orchestrate the local backend and infrastructure.
17
17
 
18
18
  ```sh
19
- cratis new cratis-aspire --language csharp -n Library -o Library --version 1.9.2 --allow-scripts no
19
+ cratis new cratis-aspire --language csharp -n Library
20
20
  cd Library
21
21
  ```
22
22
 
23
- Use profile `cratis/application/csharp` and languages `csharp,typescript`. After the shared AI check, run `npm install` in the nested `Library` project directory. From the solution directory, run `dotnet run --project Library.Composition`. Open the dashboard link printed by the app host and verify the backend and Chronicle resources are running. In a second terminal in the nested `Library` project, run `npm run dev` and do the React smoke check. Vite targets `http://localhost:5000`; if the backend reports a different local address, point Vite's proxies at that address.
23
+ Use profile `cratis/application/csharp` and languages `csharp,typescript`. After the shared AI check, run `yarn install` in the nested `Library` project directory. From the solution directory, run `dotnet run --project Library.Composition`. Open the dashboard link printed by the app host and verify the backend and Chronicle resources are running. In a second terminal in the nested `Library` project, run `yarn dev` and do the React smoke check. Vite targets `http://localhost:5000`; if the backend reports a different local address, point Vite's proxies at that address.
24
24
 
25
25
  ## Chronicle only: console or web client
26
26
 
27
27
  Choose this when the application needs Chronicle but not Arc or React. Use the console template by default; use `cratis-chronicle-web` in place of `cratis-chronicle-console` when an ASP.NET Core HTTP host is needed.
28
28
 
29
29
  ```sh
30
- cratis new cratis-chronicle-console --language csharp -n Library -o Library --version 1.9.2 --allow-scripts no
30
+ cratis new cratis-chronicle-console --language csharp -n Library
31
31
  cd Library
32
32
  ```
33
33
 
@@ -1,16 +1,16 @@
1
1
  # Java scaffold
2
2
 
3
- Use a JDK 17 (point `JAVA_HOME` at it), npm, and Node.js `^20.19.0` or `>=22.12.0`. The scaffold contains a Java Spring Boot backend, a Gradle wrapper, and a React + Vite frontend.
3
+ Use a JDK 17 (point `JAVA_HOME` at it), Yarn, and Node.js `^20.19.0` or `>=22.12.0`. The scaffold contains a Java Spring Boot backend, a Gradle wrapper, and a React + Vite frontend.
4
4
 
5
5
  ```sh
6
- cratis new cratis --language java -n Library -o Library --version 1.9.2 --packageManager npm --allow-scripts no
6
+ cratis new --language java -n Library
7
7
  cd Library
8
8
  ```
9
9
 
10
10
  Use profile `cratis/application/java` and languages `java,typescript`. After the shared AI and Compose checks:
11
11
 
12
12
  1. Run `./gradlew build` in `Library` before starting Vite. The build must succeed and generate TypeScript proxies in `build/generated/arc-proxies/`, which the frontend imports.
13
- 2. Run `npm install`, then start the backend with `./gradlew bootRun`. Spring Boot uses port 8080. Do not expose this development server to untrusted traffic.
14
- 3. In a second terminal in `Library`, run `npm run dev`. Vite serves port 9000 and proxies `/api` and `/.cratis` to port 8080. Do the React smoke check.
13
+ 2. Run `yarn install`, then start the backend with `./gradlew bootRun`. Spring Boot uses port 8080. Do not expose this development server to untrusted traffic.
14
+ 3. In a second terminal in `Library`, run `yarn dev`. Vite serves port 9000 and proxies `/api` and `/.cratis` to port 8080. Do the React smoke check.
15
15
 
16
16
  Use these manual steps rather than the generated `run.sh`: the script tears down Compose containers on exit, which discards the default MongoDB data.
@@ -1,16 +1,16 @@
1
1
  # Kotlin scaffold
2
2
 
3
- Use a JDK 17 (point `JAVA_HOME` at it), npm, and Node.js `^20.19.0` or `>=22.12.0`. The scaffold contains a Kotlin Spring Boot backend, a Gradle wrapper, and a React + Vite frontend.
3
+ Use a JDK 17 (point `JAVA_HOME` at it), Yarn, and Node.js `^20.19.0` or `>=22.12.0`. The scaffold contains a Kotlin Spring Boot backend, a Gradle wrapper, and a React + Vite frontend.
4
4
 
5
5
  ```sh
6
- cratis new cratis --language kotlin -n Library -o Library --version 1.9.2 --packageManager npm --allow-scripts no
6
+ cratis new --language kotlin -n Library
7
7
  cd Library
8
8
  ```
9
9
 
10
10
  Use profile `cratis/application/kotlin` and languages `kotlin,typescript`. After the shared AI and Compose checks:
11
11
 
12
12
  1. Run `./gradlew build` in `Library` before starting Vite. The build must succeed and generate TypeScript proxies in `build/generated/arc-proxies/`, which the frontend imports.
13
- 2. Run `npm install`, then start the backend with `./gradlew bootRun`. Spring Boot uses port 8080. Do not expose this development server to untrusted traffic.
14
- 3. In a second terminal in `Library`, run `npm run dev`. Vite serves port 9000 and proxies `/api` and `/.cratis` to port 8080. Do the React smoke check.
13
+ 2. Run `yarn install`, then start the backend with `./gradlew bootRun`. Spring Boot uses port 8080. Do not expose this development server to untrusted traffic.
14
+ 3. In a second terminal in `Library`, run `yarn dev`. Vite serves port 9000 and proxies `/api` and `/.cratis` to port 8080. Do the React smoke check.
15
15
 
16
16
  Use these manual steps rather than the generated `run.sh`: the script tears down Compose containers on exit, which discards the default MongoDB data.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-platform-verify-service-handoff
3
- description: Use when a maintainer must prove a producer's published fact reaches a different service and changes what its caller sees. For a missing row inside one application, use cratis-platform-diagnose-slice.
3
+ description: Use when a maintainer must prove a producer's published fact reaches a different service and changes what its caller sees. Not for a missing row inside one application (use cratis-platform-diagnose-slice).
4
4
  ---
5
5
 
6
6
  # Follow one registration across the service boundary
@@ -9,10 +9,10 @@ Start with an agreed producer fact, public contract and receiver outcome. Identi
9
9
 
10
10
  For example, Library owns author registration. A separate catalog promises to list registered authors under a public author key. Agree which field carries that key; the receiver's internal ID need not equal the producer's event source ID.
11
11
 
12
- 1. Query Catalog as the intended reader. Check the fresh key is absent. Submit one registration in Library and record the result, source ID and stored fact position.
12
+ 1. Query Catalog as the intended reader. Confirm the fresh key is absent in a ready, successful query. Submit one registration in Library and record the result, source ID and stored fact position.
13
13
  2. Inspect the outward message for this registration. Match its public type, version and public key to the agreed contract. A successful internal append alone does not show that translation or publication happened.
14
14
  3. At Catalog's input, identify that same message by its envelope identity or an agreed correlation field. Record the receiving scope and outcome. Never compare offsets belonging to different streams as if they were one clock.
15
- 4. Query Catalog as the original reader until its delivery deadline. Require one row for that public key with the expected name; a receipt, HTTP success or unkeyed row count isn't the promised result. Keep only non-sensitive identifiers and outcomes in the report.
15
+ 4. Query Catalog as the original reader until its delivery deadline. Require one row for that public key with the expected name in a ready, successful response; a receipt, HTTP success or unkeyed row count isn't the promised result. Keep only non-sensitive identifiers and outcomes in the report.
16
16
 
17
17
  If Library promises a confirmation back to its caller, Catalog receiving the registration proves only the outward hop. For example, trace Catalog's `AuthorListed` reply for the same registration key to Library's input, then query Library as the original caller. Require that registration to change from pending to listed by the deadline; a reply in Library's inbox with the registration still pending is a failed handoff.
18
18