@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
@@ -6,7 +6,7 @@ compatibility: A supported application client and access to the intended kernel.
6
6
 
7
7
  # Choose the key before mapping the fields
8
8
 
9
- Choose the instance key and which event creates, changes or removes that instance. Start with a model-bound mapping; use a builder when a join, nested child or explicit key cannot be expressed there. A projection ID already in use is a deployed identity. Preserve it when changing declaration style.
9
+ Choose the instance key and which event creates, changes or removes that instance. Start with a model-bound mapping. Choose a builder when the SDK cannot express the required join, nested child or explicit key on the model. A projection ID already in use is a deployed identity. Preserve it when changing declaration style.
10
10
 
11
11
  - C# (`.csproj`): [map a C# view and check instance identity](references/csharp.md).
12
12
  - Node server (`package.json`): [map fields on the Node model](references/typescript.md).
@@ -16,4 +16,4 @@ Choose the instance key and which event creates, changes or removes that instanc
16
16
  - Elixir (`mix.exs`): [map the Elixir read model](references/elixir.md).
17
17
  - Python has no released application client: [read the view through its owner](references/python.md).
18
18
 
19
- Read by key before the first event, after creation and after a replay. Use at least two keys: correct fields stored under one constant key are still wrong. A join needs a matching key, not just matching property names. Treat removal and a missing result explicitly. For a relationship store, see graph projections in the [C#](references/csharp.md#graph-projections) or [Elixir](references/elixir.md#graph-projections) reference. A stored view may lag; a passive inline read is not proof the stored view is current.
19
+ Read by key before the first event, after creation and after a replay. Use at least two keys: correct fields stored under one constant key are still wrong. A join needs a matching key, not just matching property names. Treat removal and a missing result explicitly. Choose a graph projection for traversable relationships: use the native [C#](references/csharp.md#graph-projections), [Node](references/typescript.md#graph-projections), [Kotlin](references/kotlin.md#graph-projections), [Java](references/java.md#graph-projections), [Go](references/go.md#graph-projections), or [Elixir](references/elixir.md#graph-projections) route. From Python, query the service that owns the graph. A stored view may lag; a passive inline read is not proof the stored view is current.
@@ -2,25 +2,26 @@
2
2
 
3
3
  Use a projection, the observer that maps events to the `Author` read model. That read model is the data the state view queries.
4
4
 
5
- 1. In the backend project that references `Cratis.Arc` and `Cratis.Chronicle`, put `Author` beside the query that lists authors. Import `AuthorId` from Name a domain value (`cratis-fundamentals-name-value` skill in `cratis/fundamentals`) and `AuthorRegistered` from [Record an event](../../cratis-chronicle-record-event/SKILL.md).
5
+ 1. In the backend project that references `Cratis.Chronicle`, put `Author` beside the query that lists authors. Import `AuthorId` from Name a domain value (`cratis-fundamentals-name-value` skill in `cratis/fundamentals`) and `AuthorRegistered` from Record an event (`cratis-chronicle-record-event`).
6
6
  2. Put `[FromEvent<AuthorRegistered>]` on the record. Chronicle uses the event source ID as `Id`. Chronicle copies event properties to read-model properties with the same name, without an explicit mapping. Both `AuthorRegistered.Name` and `Author.Name` are `string`, so the value copies unchanged.
7
- 3. Import `AuthorRemoved` from `Features/Authors/Removal/AuthorRemoved.cs` in [Reserve a name](../../cratis-chronicle-constrain-append/SKILL.md). Put `[RemovedWith<AuthorRemoved>]` on the record. When this event is appended, Chronicle removes the instance with that author ID.
7
+ 3. Import `AuthorRemoved` from `Features/Authors/Removal/AuthorRemoved.cs` in Reserve a name (`cratis-chronicle-constrain-append`). Put `[RemovedWith<AuthorRemoved>]` on the record. When this event is appended, Chronicle removes the instance with that author ID.
8
8
 
9
9
  ```csharp
10
10
  // Features/Authors/Listing/Author.cs
11
11
  using Cratis.Chronicle.Projections.ModelBound;
12
- using Cratis.Arc.Queries.ModelBound;
13
12
  using Library.Features.Authors;
14
13
  using Library.Features.Authors.Registration;
15
14
  using Library.Features.Authors.Removal;
16
15
 
17
16
  namespace Library.Features.Authors.Listing;
18
17
 
19
- [ReadModel, FromEvent<AuthorRegistered>]
18
+ [FromEvent<AuthorRegistered>]
20
19
  [RemovedWith<AuthorRemoved>]
21
20
  public record Author(AuthorId Id, string Name);
22
21
  ```
23
22
 
23
+ Add `Cratis.Arc.Queries.ModelBound.ReadModelAttribute` (`[ReadModel]`) only when Arc should discover model-bound queries on this type. It is not needed for Chronicle projection discovery.
24
+
24
25
  Leave the listing active: `[Passive]` would compute by ID on demand instead of storing rows. For counts, use projection operators such as `[Increment<CopyAdded>, Decrement<BookBorrowed>] int Available`. A simple counter does not need a reducer. These operators see events, not transitions: a duplicate add or close drifts the value, and replay reproduces the drift. Refuse non-transitions in the producing command. Before shipping, fold the authoritative membership or open-state history for the same key and assert that its count equals the projection counter after replay.
25
26
 
26
27
  ## When it goes off the usual path
@@ -35,7 +36,7 @@ One-off wiring check in a disposable namespace, not a committed spec of Chronicl
35
36
 
36
37
  With default discovery, keep `Author` in the backend assembly; Chronicle discovers records with model-bound projection attributes. With an `IEventStore eventStore` for that namespace, register Aster with `var result = await eventStore.EventLog.Append(authorId, new AuthorRegistered("Aster"));`. Check `result.IsSuccess`, then check `(await result.WaitForCompletion()).IsSuccess` (import `Cratis.Chronicle.Observation`). Repeat for Birch with a different ID. List `await eventStore.ReadModels.GetInstances<Author>()` and check both names and IDs. Append `new AuthorRemoved()` for Aster; check acceptance and completion the same way. List again and expect only Birch.
37
38
 
38
- When the next value requires a computation over prior state that projection operators cannot express, switch to [a self-reducing model](../../cratis-chronicle-reduce-state/SKILL.md). Keep side effects out of both.
39
+ When the next value requires a computation over prior state that projection operators cannot express, switch to a self-reducing model (`cratis-chronicle-reduce-state`). Keep side effects out of both.
39
40
 
40
41
  ## Related skills
41
42
 
@@ -51,7 +52,7 @@ Set the sequence explicitly for inputs outside the log. An artifact tag is not a
51
52
 
52
53
  ## Keep first values, per-key totals and ordered children
53
54
 
54
- Requires Chronicle 19.150.0 or later. Use `SetOnce = true` on `[SetFrom<TEvent>]` or `[SetFromContext<TEvent>]`; clearing the property to null lets a subsequent event assign it again. For a dictionary of 64-bit totals, use fluent `Increment`, `Decrement`, `Count`, `Add`, `Subtract` or `RemoveKey` with a key selector, for example `.Increment(m => m.SalesByCategory, e => e.Category)` in `From<ItemSold>`. Use `CausedBy.Subject` rather than an email for context-derived keys. Event-content keys must not be empty, contain `.`, `[`, `]` or NUL, or begin with `$`. A null or missing key skips the mapping; a malformed value fails the event, and an unknown declared path fails registration.
55
+ Use `SetOnce = true` on `[SetFrom<TEvent>]` or `[SetFromContext<TEvent>]`; clearing the property to null lets a subsequent event assign it again. For a dictionary of 64-bit totals, use fluent `Increment`, `Decrement`, `Count`, `Add`, `Subtract` or `RemoveKey` with a key selector, for example `.Increment(m => m.SalesByCategory, e => e.Category)` in `From<ItemSold>`. Use `CausedBy.Subject` rather than an email for context-derived keys. Event-content keys must not be empty, contain `.`, `[`, `]` or NUL, or begin with `$`. A null or missing key skips the mapping; a malformed value fails the event, and an unknown declared path fails registration.
55
56
 
56
57
  Use `[ChildrenFrom<TEvent>(key: ..., Prepend = true)]` for newest first or `OrderBy = nameof(Child.Priority)` / `OrderByDescending = nameof(Child.Priority)` for sorted children. Choose one ordering for the collection; equal sort values break ties by child ID ascending. Specify a malformed key leaving the view unchanged and reporting a failure, and equal priorities inserted in reverse ID order ending in ascending ID order after replay.
57
58
 
@@ -1,6 +1,6 @@
1
1
  # Map the Elixir read model
2
2
 
3
- In a module using `Cratis.Chronicle.ReadModels.ReadModel`, declare a struct with the destination fields and add `from BookAdded, set: [id: :event_source_id, title: :title]`. In the selected namespace inspect the result of `Cratis.Chronicle.all(Book)`. Check absent and present keys separately. When extending the mapping to another event, make sure it targets the same book key rather than creating another instance.
3
+ In a module using `Cratis.Chronicle.ReadModels.ReadModel`, declare a struct with the destination fields and add `from BookAdded, set: [id: :event_source_id, title: :title]`. In the selected namespace inspect the result of `Cratis.Chronicle.all(Book, client: :library, namespace: "test")` for a client named `:library` and namespace `test`. Check absent and present keys separately. When extending the mapping to another event, make sure it targets the same book key rather than creating another instance.
4
4
 
5
5
  A missing single-instance result can mean the event has not yet been projected. Compare the observer checkpoint before diagnosing missing history. Bound client-side scans; use the ISO week-year for week keys rather than assuming the occurrence calendar year matches.
6
6
 
@@ -35,7 +35,7 @@ In ExUnit, build the registration with `Cratis.Chronicle.Graphs.DefinitionBuilde
35
35
 
36
36
  ## Variants
37
37
 
38
- Use `cratis_chronicle` 3.4.0 or later. `WorkItem` is an identity module, not a separate registered view. Append the registered events below under one work item source ID. Verify the deployed kernel maps `$eventSourceId` correctly for a full variant transition; client registration alone does not prove it.
38
+ `WorkItem` is an identity module, not a separate registered view. Append the registered events below under one work item source ID. Verify the deployed kernel maps `$eventSourceId` correctly for a full variant transition; client registration alone does not prove it.
39
39
 
40
40
  ```elixir
41
41
  defmodule WorkItem do
@@ -1,3 +1,9 @@
1
1
  # Bind and register the Go projection
2
2
 
3
3
  With registered model and event handles, build `p := projections.ModelBound(model, projections.BindEvent("registered", registered), projections.FromEvent(registered))` and check `registry.AddProjection(p)`. After delivery use `reader := readmodels.For(store.ReadModels(), model)` then `instance, err := reader.Get(ctx, key)`. Check the error before `instance.Exists`. A valid zero-value model and a missing instance are different outcomes.
4
+
5
+ ## Graph projections
6
+
7
+ With registered event handles, use `graphs.NewNode[Person]()` and `graphs.NewNode[Group]()` with one `chronicle:"key"` field per node. Call `From` with each creation event and `graphs.UsingKey` if its key property differs from the node's. Build `graphs.NewEdge[MemberOf](person, group).Named("MEMBER_OF")`; map the join event and removal event with `graphs.UsingSourceKey("personId")` and `graphs.UsingTargetKey("groupId")`. Check both `graphs.New("Organization", person, group, memberOf).Build()` and `registry.AddGraph(declaration)` before creating the client. Keep the graph name stable.
8
+
9
+ Neo4j is the default; select `UsingSink(graphs.InMemoryGraph)` on the graph builder for a disposable kernel. The SDK can declare views with `graphs.NewView` and `WithViews` but cannot execute them. Use Neo4j and Cypher to verify that removing one relationship leaves both endpoints and that replay restores the same relationships.
@@ -1,3 +1,9 @@
1
1
  # Declare the Java model mapping
2
2
 
3
3
  Place `@FromEvent(eventType = EmployeeHired.class)` on the read model and map the employee fields. Use a Java class literal, not a Kotlin property reference. Keep the ID derived from the selected employee key. Register it and inspect two stored employees after replay; finding the annotated class is not evidence they were written under separate keys.
4
+
5
+ ## Graph projections
6
+
7
+ Use `io.cratis.chronicle.projections.graphs` annotations on Java records. Put `@Graph("Organization")` on each participating record. Mark each endpoint `@Node` with one `@Key` and `@FromEvent(eventType = PersonRegistered.class)` or `GroupCreated.class` as appropriate. On the membership record, use `@Edge("MEMBER_OF")`, `@EdgeFrom(eventType = MemberAdded.class, sourceKey = "personId", targetKey = "groupId")` and matching `@EdgeRemovedWith`. Annotate the endpoint components with `@EdgeSource(Person.class)` and `@EdgeTarget(Group.class)`.
8
+
9
+ Include the annotated records in JVM artifact discovery. Neo4j is the default; use `withDefaultGraphSinkTypeId(WellKnownSinkTypes.IN_MEMORY_GRAPH)` on the client options for a disposable kernel. The JVM SDK declares and validates graph views but does not execute them and has no in-process graph scenario. Use Neo4j and Cypher to check creation and removal after replay.
@@ -3,3 +3,9 @@
3
3
  Start the declaration on the model with `@FromEvent(BookAdded::class)`. Bind its fields to the registered event and choose an ID matching the source or explicit projection key. Verify by reading the persisted instance, not by reflecting the annotation. If converting an existing fluent definition, preserve the deployed identifier and key; otherwise a new empty view can look like lost data.
4
4
 
5
5
  For two different shapes with the same identity, declare `@VariantOf(WorkItem::class, key = "id")` with a string `id` and `@EntersOn(IssueOpened::class)` on the issue view. Non-entry events only update it. Declare shared mappings once on a `@GlobalFor(WorkItem::class)` handler. Test an update before the entry event: it must not create the view.
6
+
7
+ ## Graph projections
8
+
9
+ Use `io.cratis.chronicle.projections.graphs` annotations on data classes. Put `@Graph("Organization")` on every participating class. Mark the person and group with `@Node`, each with one `@Key` and `@FromEvent(PersonRegistered::class)` or `@FromEvent(GroupCreated::class)`. On the membership, use `@Edge("MEMBER_OF")`, `@EdgeFrom(MemberAdded::class, sourceKey = "personId", targetKey = "groupId")` and matching `@EdgeRemovedWith`. Mark the fields with `@EdgeSource(Person::class)` and `@EdgeTarget(Group::class)`.
10
+
11
+ Discover these classes with the store's other artifacts, or explicitly register them with `store.projections.register(...)`. Neo4j is the default; select `withDefaultGraphSinkTypeId(WellKnownSinkTypes.IN_MEMORY_GRAPH)` on the client options for a disposable kernel. The JVM SDK declares graph views but cannot execute their reads and has no in-process graph scenario. Use Neo4j and Cypher to check creation and removal after replay.
@@ -1,10 +1,10 @@
1
1
  # Map fields on the Node model
2
2
 
3
- Decorate the model with `@fromEvent(BookAdded)` and its title field with `@setFrom(BookAdded, "title")`. Include the model in artifact discovery before opening the store. In a disposable namespace, query `await store.readModels.getInstances(Book)` and match the expected book ID. Check both a missing book and two distinct books after replay; an empty materialized collection is not proof that the producer rejected an append.
3
+ Decorate the model with `@fromEvent(BookAdded)` and its title field with `@setFrom(BookAdded)`. Include the model in artifact discovery before opening the store. In a disposable namespace, query `await store.readModels.getInstances(Book)` and match the expected book ID. Check both a missing book and two distinct books after replay; an empty materialized collection is not proof that the producer rejected an append.
4
4
 
5
5
  ## Variants
6
6
 
7
- With `@cratis/chronicle` 6.2.0 or later, use variant shapes for mutually exclusive stages of one keyed entity. Assume `IssueCreated`, `PullRequestCreated`, `BuildCompleted` and `TitleChanged` are registered events, and append them under the same work item source ID.
7
+ Choose variant shapes for mutually exclusive stages of one keyed entity. Assume `IssueCreated`, `PullRequestCreated`, `BuildCompleted` and `TitleChanged` are registered events, and append them under the same work item source ID.
8
8
 
9
9
  ```typescript
10
10
  import { entersOn, fromEvent, globalFor, setFrom, variantOf } from '@cratis/chronicle';
@@ -27,18 +27,24 @@ export class PullRequestItem {
27
27
  id = '';
28
28
  title = '';
29
29
 
30
- @setFrom(PullRequestCreated, 'pullRequestUrl')
30
+ @setFrom(PullRequestCreated)
31
31
  pullRequestUrl = '';
32
32
 
33
- @setFrom(BuildCompleted, 'buildStatus')
33
+ @setFrom(BuildCompleted)
34
34
  buildStatus = '';
35
35
  }
36
36
 
37
37
  @globalFor(WorkItem)
38
38
  export class WorkItemTitleMapping {
39
- @setFrom(TitleChanged, 'title')
39
+ @setFrom(TitleChanged)
40
40
  title = '';
41
41
  }
42
42
  ```
43
43
 
44
44
  Discover both shapes and the shared mapping. Fields set by the shared mapping must exist on each variant. Non-entry events update an existing row only. In a disposable namespace append `IssueCreated`, then `BuildCompleted`, and wait for delivery before asserting no `PullRequestItem` exists. Append `PullRequestCreated` then another `BuildCompleted`; confirm the row now exists with the new status.
45
+
46
+ ## Graph projections
47
+
48
+ Import the graph decorators from `@cratis/chronicle`. Give each participating class the same `@graph('Organization')`. On a person node, use `@node()`, `@nodeFrom(PersonRegistered, { key: 'personId' })` and one `@graphKey()` field. Declare the group node with its own key. On the membership class, use `@edge('MEMBER_OF')`, `@edgeFrom(MemberAdded, { sourceKey: 'personId', targetKey: 'groupId' })`, and `@edgeSource(Person)` / `@edgeTarget(Group)` on the endpoint fields. Use `@edgeRemovedWith(MemberRemoved, { sourceKey: 'personId', targetKey: 'groupId' })` to remove that relationship without deleting either node. Do not decorate a graph element as a document read model.
49
+
50
+ Include the graph artifacts in client discovery before connecting. Check `eventStore.graphs.failures` and `eventStore.graphs.registrations`; these verify the definition, not graph state. Neo4j is the default. For a disposable kernel, set `defaultGraphSinkTypeId: WellKnownSinks.InMemoryGraph` in `ChronicleOptions`. The Node SDK does not run graph-view reads and has no `GraphScenario`; use Neo4j and its driver to prove creation, removal and replay.
@@ -8,11 +8,11 @@ compatibility: An application client and kernel that support the required guarde
8
8
 
9
9
  For the last available copy, two borrowers may both see one copy. A materialized view, passive read, or successful validator alone does not reserve it. Enroll the decision read in the unit that commits, or attach an explicit check covering every fact used. If the client cannot express the dependency, move the whole operation to a service that can. Use a normal read for display and a store constraint for cross-source uniqueness.
10
10
 
11
- - `.csproj`: [enroll an Arc command](references/csharp.md) or [guard a standalone append](references/standalone.md).
11
+ - `.csproj`: [enroll an Arc command](references/csharp.md) or [guard a standalone append](references/csharp-standalone.md).
12
12
  - Node server `package.json`: no inferred read enrollment; [attach an explicit scope](references/typescript.md) or delegate.
13
13
  - `.kt`: no inferred read enrollment; [use a suspending append with an explicit scope](references/kotlin.md) or delegate.
14
14
  - `.java`: no inferred read enrollment; [build guarded append options](references/java.md) or delegate.
15
- - `go.mod`: [enroll a decision in its owner's commit](references/go.md).
15
+ - `go.mod`: delegate on the current kernel; [retain owner enrollment where preflight admits it](references/go.md).
16
16
  - `mix.exs`: [read inside the decision callback](references/elixir.md).
17
17
  - Python has no released application client: [delegate the guarded command](references/python.md).
18
18
 
@@ -69,10 +69,10 @@ Return both events in one `IEnumerable<EventForEventSourceId>` batch: `BookBorro
69
69
  ### Where does the lookup key come from?
70
70
 
71
71
  - Prefer an injected model: use the command's source key, `[LookUpBy(nameof(Property))]` for another command property, or `[LookUpBy<CallerSubject>]` in `Handle` for the authenticated subject.
72
- - For a key on another protected model in the same member, Arc 25.2.0+ supports `[LookUpBy("order", nameof(OrderSummary.CustomerId))]`. The property must match the target key type; both reads are guarded under `On`.
72
+ - For a key on another protected model in the same member, use `[LookUpBy("order", nameof(OrderSummary.CustomerId))]`. The property must match the target key type; both reads are guarded under `On`.
73
73
  - For keys injection can't express (such as a service-computed hash), compute the key in `Handle` under `On` and await the injected `IDecisionReads.Get<T>(key)`. Justify any `ARCCHR0040` suppression.
74
74
 
75
- From Arc 25.1.0, a null or blank secondary scalar key gives a nullable model parameter `null` without a read or guard. A valid key with no instance still keeps its guard: if no matching event exists yet, the first matching append by someone else refuses this one. For required keys, reject blanks before invocation if you need a field message: acquisition can fail before validator rules run.
75
+ A null or blank secondary scalar key gives a nullable model parameter `null` without a read or guard. A valid key with no instance still keeps its guard: if no matching event exists yet, the first matching append by someone else refuses this one. For required keys, reject blanks before invocation if you need a field message: acquisition can fail before validator rules run.
76
76
 
77
77
  ### Which scope guards the append?
78
78
 
@@ -82,7 +82,7 @@ Mark advisory reads `[Unprotected("display only")]` (`Cratis.Arc.Chronicle.ReadM
82
82
 
83
83
  `Cratis:Arc:ReadProtection:<name>` takes precedence over `ReadProtection:<name>`. `Off` does not guard, `Measure` does not enforce, and a runtime ceiling can lower but never raise the declared mode. Generated metadata is required by default even on JIT. Explicitly setting `RequireGeneratedMetadata` to `false` permits compatibility only where dynamic code is supported.
84
84
 
85
- Outside Arc's command pipeline, [guard the standalone append explicitly](standalone.md). Check `Admit<T>()` before depending on a finite event-log projection or unfiltered reducer. A join, incompatible key, reducer filter or injected fold dependency can prevent admission. A stream read must cover that stream: use the declared stream type and ID where required, not a key-only read; reducers are not admitted for that path. Enroll a detached token in the unit that commits. Nested helpers must not complete the owner's unit. On refusal, do not degrade to a materialized read.
85
+ Outside Arc's command pipeline, [guard the standalone append explicitly](csharp-standalone.md). Check `Admit<T>()` before depending on a finite event-log projection or unfiltered reducer. A join, incompatible key, reducer filter or injected fold dependency can prevent admission. A stream read must cover that stream: use the declared stream type and ID where required, not a key-only read; reducers are not admitted for that path. Enroll a detached token in the unit that commits. Nested helpers must not complete the owner's unit. On refusal, do not degrade to a materialized read.
86
86
 
87
87
  ## Related skills
88
88
 
@@ -91,6 +91,6 @@ Outside Arc's command pipeline, [guard the standalone append explicitly](standal
91
91
 
92
92
  ## Validators outside On
93
93
 
94
- Prefer `On` with convention-discovered transient validators. For explicit `[ProtectedDecision]` commands outside `On`, take `DecisionRead<T>` or `IDecisionReads` rather than plain models or raw store readers. This opt-in path requires Arc 22.126.0 and untrimmed JIT, not trimmed JIT or NativeAOT. After `AddCratisArc`, install `Cratis.Arc.DependencyInjection.ProtectedDecisionServiceProviderFactory` as the host's actual DI factory with explicit `ServiceProviderOptions`; execute in a native child scope or let the pipeline open one. An opaque or forwarding provider cannot prove ownership.
94
+ Prefer `On` with convention-discovered transient validators. For explicit `[ProtectedDecision]` commands outside `On`, take `DecisionRead<T>` or `IDecisionReads` rather than plain models or raw store readers. This opt-in path requires untrimmed JIT; it does not support trimmed JIT or NativeAOT. After `AddCratisArc`, install `Cratis.Arc.DependencyInjection.ProtectedDecisionServiceProviderFactory` as the host's actual DI factory; pass `ServiceProviderOptions` if you want provider validation because host defaults do not carry over. Execute in a native child scope or let the pipeline open one. An opaque or forwarding provider cannot prove ownership.
95
95
 
96
96
  Arc constructs a fresh transient graph with one public constructor per type. Scoped or singleton collaborators, factory/instance registrations, keyed, optional and collection dependencies are refused. To configure rules, call `services.AddProtectedDecisionValidator<TValidator>(configure)` instead of supplying an application DI factory; Arc configures the actual fresh instance before it validates. Check the real host's Execute path: a passing advisory validation call alone does not prove acceptance or commitment.
@@ -19,11 +19,11 @@ Use the result of `decide`, not the buffered append, to decide whether the booki
19
19
 
20
20
  ## Admit the model before using it
21
21
 
22
- Decision reads require `cratis_chronicle` 3.13.0 or later. `DecisionReads.admit/2` and `admit_for_stream/2` check the shape without I/O and return `{:ok, event_types}` or `{:error, reason}`. A passive reducer (`active: false`) can be admitted; an active one cannot. `get` and `get_detached` raise `DecisionReadRefused` for a refused shape: fix the declaration instead of treating it as a race. Diagnose `:reducer`, `:join`, `:hierarchy`, `:not_event_log`, `:open_ended_event_types`, `:no_event_types`, `:not_event_source_keyed` and `:unsupported_event_type_id` from the shape. A read can also refuse with `:all_streams_not_supported`, `:stream_scope_not_supported` or `:fold_incomplete`. A racing commit instead returns `{:error, %DecisionConflict{}}` from `decide/2`; re-read and decide again.
22
+ `DecisionReads.admit/2` and `admit_for_stream/2` check the shape without I/O and return `{:ok, event_types}` or `{:error, reason}`. A passive reducer (`active: false`) can be admitted; an active one cannot. `get` and `get_detached` raise `DecisionReadRefused` for a refused shape: fix the declaration instead of treating it as a race. Diagnose `:reducer`, `:join`, `:hierarchy`, `:not_event_log`, `:open_ended_event_types`, `:no_event_types`, `:not_event_source_keyed` and `:unsupported_event_type_id` from the shape. A read can also refuse with `:all_streams_not_supported`, `:stream_scope_not_supported` or `:fold_incomplete`. A racing commit instead returns `{:error, %DecisionConflict{}}` from `decide/2`; re-read and decide again.
23
23
 
24
24
  ## Protect an explicit tail
25
25
 
26
- Use `ConcurrencyScope.at_tail/2` for a named scope, or `ConcurrencyScope.expecting_no_matching_event(event_source_id: true, event_types: [SeatBooked])` for a known-first write (`cratis_chronicle` 3.11.0+). Leaving the sequence number unset turns the check off; it does not assert absence.
26
+ Use `ConcurrencyScope.at_tail/2` for a named scope, or `ConcurrencyScope.expecting_no_matching_event(event_source_id: true, event_types: [SeatBooked])` for a known-first write. Leaving the sequence number unset turns the check off; it does not assert absence.
27
27
 
28
28
  ## Choose the default optimistic strategy
29
29
 
@@ -1,6 +1,8 @@
1
1
  # Enroll a Go decision before the owner commits
2
2
 
3
- In client v0.28.2, this path requires successful compatibility preflight with server `19.153.0` or `19.153.0-development` and protocol `19.153.0` exactly. A later server number is not sufficient. Do not skip compatibility checking to enable the operation.
3
+ The released Go client does not enroll decision reads against the current kernel: its capability check requires the exact server and protocol it was characterized against. Delegate the entire decision and append to a supported writer. Do not bypass compatibility checking.
4
+
5
+ If an existing deployment already admits Go decision reads, use the following same-owner pattern; it is not an upgrade or installation recipe.
4
6
 
5
7
  Register a supported event-source-keyed projection, begin a transaction against the same store's event log and retain its owner. Import the decision and transaction packages:
6
8
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-chronicle-protect-personal-data
3
- description: Use when marking personal fields, releasing an encrypted read model or evaluating subject-key erasure. Not for deciding who may access a profile.
3
+ description: Use when marking personal fields, releasing an encrypted read model or evaluating subject-key erasure. Not for deciding who may access a profile (use cratis-arc-authorize-request).
4
4
  compatibility: A supported application client and access to the intended kernel.
5
5
  ---
6
6
 
@@ -70,4 +70,4 @@ For a hosting change, follow the dedicated key store cutover in `cratis-chronicl
70
70
 
71
71
  ## Handle retained causation separately
72
72
 
73
- Deleting the subject key does not scrub causation property values. On Chronicle 19.20.0 or later, set `events.causationPropertyRetention` to `Omit` (`Cratis__Chronicle__Events__CausationPropertyRetention=Omit`; default `Retain`) to stop retaining property values on new writes only. For existing events, use targeted Workbench redaction (see `cratis-chronicle-web-workbench`) when authorized; it removes event content as well as retained causation property values. Forwarded copies and backups need separate handling. Check a synthetic marker before and after changing retention or redacting; never use real personal data.
73
+ Deleting the subject key does not scrub causation property values. Set `events.causationPropertyRetention` to `Omit` (`Cratis__Chronicle__Events__CausationPropertyRetention=Omit`; default `Retain`) to stop retaining property values on new writes only. For existing events, use targeted Workbench redaction (see `cratis-chronicle-web-workbench`) when authorized; it removes event content as well as retained causation property values. Forwarded copies and backups need separate handling. Check a synthetic marker before and after changing retention or redacting; never use real personal data.
@@ -6,7 +6,7 @@ compatibility: A supported application client and access to the intended kernel.
6
6
 
7
7
  # Separate public eligibility, routing and receipt
8
8
 
9
- Choose a deliberately public fact with no private payload. The Node and JVM event-type decorators/annotations do not expose public visibility, and Go source-store metadata is not a publication switch. Use a producer with verified public eligibility and routing, not an invented option. Producer eligibility, routing to the outbox, subscription registration, and consumption from the destination inbox are separate decisions. Do not publish a private internal event to simplify a mapping.
9
+ Choose a deliberately public fact with no private payload. The Node and JVM event-type decorators/annotations do not expose public visibility, and Go source-store metadata is not a publication switch. Use a producer with verified public eligibility and routing, not an invented option. Append or publish to the producer outbox, then observe the source-specific inbox in the consumer. Prefer implicit forwarding from shared contracts in C#; use an explicitly filtered subscription when the SDK needs one. Do not publish a private internal event to simplify a mapping.
10
10
 
11
11
  - C# (`.csproj`): [route the C# public event to the outbox](references/csharp.md).
12
12
  - Node server (`package.json`): [subscribe from the Node destination](references/typescript.md).
@@ -1,30 +1,63 @@
1
1
  # Publish an author's listing without sharing the internal review
2
2
 
3
- For outbound translation, adapt the private review fact to the public listing contract. The outbox and inbox transport that contract; a subscription does not translate it into the receiver's local vocabulary.
3
+ With `Cratis.Chronicle` in both hosts, share only the contract type. `[EventStore("library")]` supplies the contract's origin and registers it as public; `[Public]` is unnecessary here.
4
4
 
5
- 1. Reference `Cratis.Chronicle` in both services. Put the public event in a project both reference. Mark it `[Public]` and name its originating store. Keep the private `AuthorReviewed` event in the library service's `Features/Authors/Publication/AuthorReviewed.cs`.
6
- 2. Configure the directory host's Chronicle store as `directory`. In its `Program.cs`, after `app.UseCratisChronicle()` and before `app.RunAsync()`, resolve its scoped `IEventStore` and register the subscription. Import `Cratis.Chronicle`, `Library.Contracts` and `Microsoft.Extensions.DependencyInjection`.
5
+ ```csharp
6
+ using Cratis.Chronicle.Events;
7
+
8
+ namespace Library.Contracts;
9
+
10
+ [EventType, EventStore("library")]
11
+ public record AuthorListed(string PublicName);
12
+ ```
13
+
14
+ In the `library` producer, keep `AuthorReviewed` private. To publish listing changes, make the public event the projection target. The projection compares the mapped state for the author with the previous publication. A later review with the same approved name does not publish another event during normal processing. For one publication per review, use the [keyed outbox append](#choose-a-keyed-outbox-append-per-review) instead. Map only the public field. The event target publishes to the outbox without an explicit sink or destination. The sink forwards subject and other event metadata, so use opaque source and subject IDs and do not put personal data in metadata.
7
15
 
8
16
  ```csharp
9
- using (var scope = app.Services.CreateScope())
17
+ using Cratis.Chronicle.Events;
18
+ using Cratis.Chronicle.Projections;
19
+ using Library.Contracts;
20
+
21
+ namespace Library.Features.Authors.Publication;
22
+
23
+ [EventType]
24
+ public record AuthorReviewed(string ApprovedName);
25
+
26
+ public class ListingPublisher : IProjectionFor<AuthorListed>
10
27
  {
11
- var consumer = scope.ServiceProvider.GetRequiredService<IEventStore>();
12
- await consumer.Subscriptions.Subscribe("library-listings", "library",
13
- subscription => subscription.WithEventType<AuthorListed>());
28
+ public void Define(IProjectionBuilderFor<AuthorListed> builder) => builder
29
+ .From<AuthorReviewed>(from => from.Set(listing => listing.PublicName).To(review => review.ApprovedName));
14
30
  }
15
31
  ```
16
- 3. Give each review a unique `publicationId` before the first attempt and retain it with the inputs for retry. Append the review to the event log, then the listing to the outbox. Key each write: they are not atomic.
32
+
33
+ In the `directory` consumer, handle `AuthorListed` in a discovered observer with no explicit sequence override. Chronicle uses the shared origin to forward from the library outbox and selects `inbox-library` for the observer. Do not also register a named subscription for this default path. Keep the observer's inferred events from one source store. If a producer observer consumes the same contract locally, point it explicitly at the outbox; the same-store origin does not infer that sequence.
34
+
35
+ ## Check the public handoff
36
+
37
+ Append a private `AuthorReviewed` for a test author with source ID `id` in disposable stores. In the directory service, use the scoped `IEventStore`:
17
38
 
18
39
  ```csharp
19
- // Library.Contracts/AuthorListed.cs
20
- using Cratis.Chronicle.Events;
40
+ var inbox = consumer.GetEventSequence($"{EventSequenceId.InboxPrefix}library");
41
+ var events = await inbox.GetFromSequenceNumber(EventSequenceNumber.First, id);
42
+ ```
21
43
 
22
- namespace Library.Contracts;
44
+ Poll with a bounded wait for `AuthorListed` with the public name and verify `AuthorReviewed` is absent. If the listing is missing, check the producer outbox first, then the subscription and `inbox-library`. Check the consumer observer separately. Replay can publish a new event rather than replacing the old inbox row; use the business key for an upsert when the listing represents current state.
23
45
 
24
- [EventType, Public, EventStore("library")]
25
- public record AuthorListed(string PublicName);
46
+ ## Choose explicit subscription management
47
+
48
+ Choose this when registration or the forwarding filter must be managed independently of observer discovery. From the destination store, register the subscription and explicitly route its consuming observer to the resulting inbox:
49
+
50
+ ```csharp
51
+ await consumer.Subscriptions.Subscribe("library-listings", "library",
52
+ subscription => subscription.WithEventType<AuthorListed>());
26
53
  ```
27
54
 
55
+ Keep the event filter explicit so the subscription cannot broaden to all registered public types. If contracts cannot carry source metadata but an observer still owns the subscription, put `[EventStore("library")]` on that observer instead; do not combine that observer attribute with an explicit sequence.
56
+
57
+ ## Choose a keyed outbox append per review
58
+
59
+ Choose this when each review must publish a fact, even if the public payload is unchanged. Do not also run the publishing projection for these reviews. Before the first attempt, retain the inputs, route, and a `publicationId` unique to the logical review, not the author or payload. The two writes are not atomic.
60
+
28
61
  ```csharp
29
62
  // Features/Authors/Publication/ListingExchange.cs
30
63
  using Cratis.Chronicle;
@@ -35,40 +68,18 @@ using Library.Contracts;
35
68
 
36
69
  namespace Library.Features.Authors.Publication;
37
70
 
38
- // Features/Authors/Publication/AuthorReviewed.cs (same namespace)
39
- [EventType] public record AuthorReviewed;
40
-
41
71
  public static class ListingExchange
42
72
  {
43
- public static async Task<AppendResult> Publish(IEventStore producer, AuthorId id, string name, Guid publicationId)
73
+ public static async Task<AppendResult> Publish(IEventStore producer, AuthorId id, string publicName, Guid publicationId)
44
74
  {
45
- var review = await producer.EventLog.AppendOnce(id, new AuthorReviewed(), new IdempotencyKey($"review:{publicationId:N}"));
75
+ var review = await producer.EventLog.AppendOnce(id, new AuthorReviewed(publicName), new IdempotencyKey($"review:{publicationId:N}"));
46
76
  if (!review.IsSuccess || review.HasIdempotencyConflicts) return review;
47
77
  var outbox = producer.GetEventSequence(EventSequenceId.Outbox);
48
- return await outbox.AppendOnce(id, new AuthorListed(name), new IdempotencyKey($"listing:{publicationId:N}"));
78
+ return await outbox.AppendOnce(id, new AuthorListed(publicName), new IdempotencyKey($"listing:{publicationId:N}"));
49
79
  }
50
80
  }
51
81
  ```
52
82
 
53
- `AuthorId` comes from Name a domain value (`cratis-fundamentals-name-value` skill in `cratis/fundamentals`). Require `result.IsSuccess && !result.HasIdempotencyConflicts` for publication success.
54
-
55
- ## Check the public handoff
56
-
57
- Use disposable stores for this one-off wiring check. If the public/private boundary is an uncovered application promise, extend the existing backend check (`cratis-specifications-exercise-backend` skill in `cratis/application`); don't add a hosted spec of Chronicle forwarding. In the directory, resolve `consumer` from a fresh service scope as above. Select `var inbox = consumer.GetEventSequence($"{EventSequenceId.InboxPrefix}library");` and read `await inbox.GetFromSequenceNumber(EventSequenceNumber.First, id)`. Forwarding and consumption have separate checkpoints; subscribing does not by itself route an explicit consumer observer to the inbox. Route it to the intended per-source sequence. Delivery is asynchronous: repeat that read until it returns the listing, stopping with a timeout after 30 seconds. In this fresh fixture, verify `AuthorListed` carries the public name and `AuthorReviewed` is absent. That does not establish exactly-once forwarding.
58
-
59
- ## Avoid
60
-
61
- - Don't treat `[Public]` as a write: append to the outbox.
62
- - Don't omit `WithEventType<AuthorListed>()`; without a selection the subscription builder includes all registered event types.
63
-
64
- ## When it goes off the usual path
65
-
66
- - **An acknowledgement is lost:** either write may have committed before its reply was lost. Retry `Publish` with the original `publicationId`, author and name. Each matching keyed append that already committed writes nothing; a missing listing can still be appended. Stop on a key conflict rather than generating a fresh key.
67
- - **The directory did not update:** repeat the `inbox` read above. If the listing arrived, check `await consumer.Observers.GetAll()` for the listing observer on that sequence. If the outbox has the listing but the inbox does not, verify `WithEventType<AuthorListed>()` in the directory's subscription setup. Replaying forwarding can create a new inbox row; for a listing published once per author, use `AuthorId` to upsert the listing instead of keying it by inbox position.
68
-
69
- ## Related skills
70
-
71
- - Choose a Chronicle client (`cratis-chronicle-select-client` skill in `cratis/chronicle`) before implementing the consumer in another language.
83
+ `AuthorId` is the source key. Require `result.IsSuccess && !result.HasIdempotencyConflicts`. If the acknowledgement is lost, retry with exactly the same ID and inputs; a matching committed append is not repeated. Stop on a key conflict and reconcile rather than generating another key.
72
84
 
73
- - [Append an event](../../cratis-chronicle-record-event/SKILL.md)
74
- - [Send a post-commit notice](../../cratis-chronicle-react-to-fact/SKILL.md)
85
+ In disposable stores, submit two reviews for the same author and name with different publication IDs and retry the first with its original ID and inputs. Require all three calls to report success without conflicts. The first two should report `Appended` and the retry should report `AlreadyAppended`. With a bounded wait, verify two distinct `AuthorListed` positions with that name in the inbox and no `AuthorReviewed` there. Repeating a review is not the same as retrying an attempt.
@@ -1,6 +1,6 @@
1
1
  # Publish and subscribe in Elixir
2
2
 
3
- In the source store (`library` here), register `AuthorListed` with `use Cratis.Chronicle.Events.EventType, id: "author-listed", public: true` and `defstruct [:name]`. Public visibility does not route the append: the default `event-log` rejects public events. For a standalone append in the producer, pass the source client and namespace in `opts` and select `outbox` explicitly:
3
+ In the source store (`library` here), register `AuthorListed` with `use Cratis.Chronicle.Events.EventType, id: "author-listed", public: true` and `defstruct name: ""`. Public visibility does not route the append: the default `event-log` rejects public events. For a standalone append in the producer, pass the source client and namespace in `opts` and select `outbox` explicitly:
4
4
 
5
5
  ```elixir
6
6
  alias Cratis.Chronicle.EventSequences.EventLog
@@ -8,7 +8,7 @@ compatibility: A supported application client and an observed event type.
8
8
 
9
9
  For a notification that must only begin after deployment, set the initial subscription position to the tail **and** exclude the notification from replay. Neither choice prevents retries after an interrupted acknowledgement. Give each distinct effect a stable key for the observed delivery, and have the receiver enforce it atomically with the effect. A local “sent” flag written after a successful external call leaves a crash window.
10
10
 
11
- - `.csproj`: [implement a reactor and receipt](references/csharp.md) or [record durable work that is not a domain event](references/occurrences.md).
11
+ - `.csproj`: [implement a reactor and receipt](references/csharp.md) or [record durable work that is not a domain event](references/csharp-occurrences.md).
12
12
  - Node `package.json`: [bind a method to the event](references/typescript.md).
13
13
  - `.kt`: [register the annotated handler](references/kotlin.md).
14
14
  - `.java`: [handle a single event or explicit batch](references/java.md).
@@ -1,6 +1,6 @@
1
1
  # Run durable work without inventing a domain event
2
2
 
3
- Use Chronicle 19.77.0 or later. The kernel must advertise `occurrences`, and `effect-receipts` for receipted work. Absent or unknown capability fails closed. Normal artifact discovery finds trigger types and handlers. Trigger payloads are plaintext; keep them and persisted responses free of personal data and secrets.
3
+ The kernel must advertise `occurrences`, and `effect-receipts` for receipted work. Absent or unknown capability fails closed. Normal artifact discovery finds trigger types and handlers. Trigger payloads are plaintext; keep them and persisted responses free of personal data and secrets.
4
4
 
5
5
  ```csharp
6
6
  using Cratis.Chronicle.Occurrences;
@@ -17,7 +17,7 @@ public class RefreshDirectoryHandler(IDirectoryRefresher refresher) : IOccurrenc
17
17
 
18
18
  Here `IDirectoryRefresher` is the application adapter; the receiver must deduplicate the effect key atomically with the external effect. A lease can redeliver. Call `eventStore.Occurrences.Record(trigger, idempotencyId)` in the intended namespace using an ID from the originating durable request. `Recorded` and `AlreadyRecorded` succeed. `OccurrenceIdConflict` means the same ID carried different content; `OccurrencePayloadInvalid` means registration or the payload contract refused it. Neither is a successful retry.
19
19
 
20
- For Chronicle writes, use `context.EffectKey(name)` and look up `eventStore.Occurrences.GetEffectReceipt(key)` in the same namespace. If absent, enroll `unitOfWork.UseEffectReceipt(key, response)` before the owning commit and stage the write transactionally. [Refuse escaped appends](../../cratis-chronicle-protect-decision/references/standalone.md#keep-nested-appends-inside-the-transaction-or-receipt). After an unknown commit, use the stored receipt to settle the outcome; if lookup is unavailable fail retryably, not by assuming absence. A Chronicle receipt does not deduplicate an external service.
20
+ For Chronicle writes, use `context.EffectKey(name)` and look up `eventStore.Occurrences.GetEffectReceipt(key)` in the same namespace. If absent, enroll `unitOfWork.UseEffectReceipt(key, response)` before the owning commit and stage the write transactionally. [Refuse escaped appends](../../cratis-chronicle-protect-decision/references/csharp-standalone.md#keep-nested-appends-inside-the-transaction-or-receipt). After an unknown commit, use the stored receipt to settle the outcome; if lookup is unavailable fail retryably, not by assuming absence. A Chronicle receipt does not deduplicate an external service.
21
21
 
22
22
  For built-in `Startup` / `Shutdown` handlers set `ChronicleOptions.ActivationId` to one stable logical deployment ID shared by its instances. Keep the defaults `ActivationScope.Application` and `LifecycleScope.Application`; `eventStore.Occurrences.EndActivation(id)` ends the logical activation, not an individual pod. Use `ActivationScope.PerProcess` only for process-local lifecycle work. Its shutdown is bounded and may not be recorded on a crash or kill.
23
23
 
@@ -19,7 +19,6 @@ public interface IAuthorDirectory
19
19
  Task Announce(IdempotencyKey key, string name);
20
20
  }
21
21
 
22
- [Reactor("Library.Features.Authors.Directory.RegistrationNotice")]
23
22
  [StartAtTail]
24
23
  public class RegistrationNotice(IAuthorDirectory directory) : IReactor
25
24
  {
@@ -33,7 +32,7 @@ public class RegistrationNotice(IAuthorDirectory directory) : IReactor
33
32
 
34
33
  One-off wiring check with a disposable receiver. If the application owns deduplication, commit a spec of that decision at the receiver; don't add a hosted spec of Chronicle retry. See the `cratis-specifications-exercise-backend` skill (in `cratis/application`).
35
34
 
36
- With client and kernel 19.70.0 or later, seed pre-registration history and confirm the new reactor sends no notice for it. Append a new occurrence while stopped; restarting the same observer must resume its saved position and send that notice. Replaying with `[OnceOnly]` must not invoke the notice handler.
35
+ Seed pre-registration history and confirm the new reactor sends no notice for it. Append a new occurrence while stopped; restarting the same observer must resume its saved position and send that notice. Replaying with `[OnceOnly]` must not invoke the notice handler.
37
36
 
38
37
  Have the directory save the first notice, then fail before acknowledging it. Deliver the same occurrence again; assert one notice with the expected name. Keep the effect name unchanged on retry so the receiver sees the same key. An author ID would collapse distinct occurrences.
39
38
 
@@ -44,7 +43,7 @@ If the same delivery also sends email, pass `delivery.IdempotencyKeyFor("email")
44
43
  - **Historical events must not resend the notice:** `[StartAtTail]` skips initial history only on first registration, while `[OnceOnly]` excludes replay, including observer rewind, redaction and revision. Neither suppresses ordinary redelivery or deduplicates external effects. A `[Replay]` handler can replace the ordinary handler during replay when historical events need different work.
45
44
 
46
45
  - **The follow-up makes its own local business decision:** return a command invocation as shown below. For a leased occurrence rather than a reactor delivery, see "Execute a command once per occurrence effect" in `cratis-arc-invoke-command`.
47
- - **An existing reactor moves or is renamed:** preserve its observer ID to keep its position. Keep the explicit `[Reactor]` ID shown in the example, even after moving or renaming the class.
46
+ - **An existing reactor moves or is renamed:** preserve its observer ID to keep its position. For this example the default ID is the full type name; after a move or rename set `[Reactor("Library.Features.Authors.Directory.RegistrationNotice")]` to preserve that ID.
48
47
 
49
48
  ## Related skills
50
49
 
@@ -59,11 +58,11 @@ When a returned fact belongs to a different history, return `EventForEventSource
59
58
 
60
59
  For an explicit batch, receive `EventBatch` and handle each entry's own context. Report a failed partition with `batch.Fail(context, exception)` or defer the partition with `batch.Defer(context, retryAfter)` if supported. Do not represent an unperformed effect as success. A failed partition is operational, not a recorded domain failure. Give a visible failure transition to the existing workflow owner. Handle redelivery idempotently and correlate by attempt ID so an earlier failure cannot overturn the current attempt. Preserve the actor for consequential Arc commands; system execution needs an explicit identity and roles. For local command outcomes use the refusal handling below; for leased occurrence work use the executor in `cratis-arc-invoke-command`.
61
60
 
62
- If the work is durable but not a domain fact, [record an occurrence](occurrences.md) with a stable ID. A lease can redeliver. Transactional `UseEffectReceipt` is not a receipt from an external service. Do not put personal information in a trigger payload or a secret in a stored receipt.
61
+ If the work is durable but not a domain fact, [record an occurrence](csharp-occurrences.md) with a stable ID. A lease can redeliver. Transactional `UseEffectReceipt` is not a receipt from an external service. Do not put personal information in a trigger payload or a secret in a stored receipt.
63
62
 
64
63
  ## Handle a refused follow-up command
65
64
 
66
- With Arc 22.88.0 or later, return a `CommandInvocation` (`Cratis.Arc.Chronicle.Reactors`) to attach refusal handling to one command. For an application with a `UniqueDirectoryName` constraint, an `AuthorRegistered` handler can return:
65
+ Return a `CommandInvocation` (`Cratis.Arc.Chronicle.Reactors`) to attach refusal handling to one command. For an application with a `UniqueDirectoryName` constraint, an `AuthorRegistered` handler can return:
67
66
 
68
67
  ```csharp
69
68
  public CommandInvocation Registered(AuthorRegistered fact) =>
@@ -72,4 +71,4 @@ public CommandInvocation Registered(AuthorRegistered fact) =>
72
71
  .Acknowledge(Refused.ByAuthorization);
73
72
  ```
74
73
 
75
- Use the actual case-sensitive constraint name. Return a fact only for a modeled outcome, and acknowledge only when no fact is needed. Select with `ByValidation`, `ByConstraint(name)`, `ByAnyConstraint`, `ByAuthorization` or `Any`; `Any` matches validation and constraints, not authorization. The first matching branch wins. A handled refusal stops later commands in that delivery; earlier appends remain committed. Concurrency, temporary and framework failures are not refusals and still fail the delivery. In a reactor pipeline spec, return a successful invocation, a handled refusal and a third invocation; assert the earlier append remains and the third command never runs. Refusal analysis requires Arc 22.97.0 and Chronicle 19.63.0 or later.
74
+ Use the actual case-sensitive constraint name. Return a fact only for a modeled outcome, and acknowledge only when no fact is needed. Select with `ByValidation`, `ByConstraint(name)`, `ByAnyConstraint`, `ByAuthorization` or `Any`; `Any` matches validation and constraints, not authorization. The first matching branch wins. A handled refusal stops later commands in that delivery; earlier appends remain committed. Concurrency, temporary and framework failures are not refusals and still fail the delivery. In a reactor pipeline spec, return a successful invocation, a handled refusal and a third invocation; assert the earlier append remains and the third command never runs.
@@ -1,5 +1,5 @@
1
1
  # Register the Go factory and preserve delivery identity
2
2
 
3
- Register the input and any returned event with `chronicle.RegisterEvent`. Register the reactor using `chronicle.RegisterReactor[*ConfirmOrders](registry, factory, reactors.WithID("confirm-orders"), reactors.OnceOnly("Reserve"))`. The factory returns the receiver with its gateway; the handler's event parameter selects its input, not the method name.
3
+ Register the input and any returned event with `chronicle.RegisterEvent`. Register the reactor using `chronicle.RegisterReactor[*ConfirmOrders](registry, factory, reactors.OnceOnly("Reserve"))`. The factory returns the receiver with its gateway; the handler's event parameter selects its input, not the method name.
4
4
 
5
5
  A method receiving `(ctx context.Context, event OrderPlaced, delivery reactors.Delivery)` can call the gateway with `delivery.ID()` and return `(OrderConfirmed, error)`. Return the error on failure rather than producing a success event. Add `reactors.StartAtTail()` at registration if a new observer must ignore existing orders. Keep the gateway's receipt across retries and do not redo an irreversible effect in a replay handler.
@@ -1,5 +1,5 @@
1
1
  # Register Java event and batch handlers
2
2
 
3
- In an `@Reactor(id = "book-index")` class a per-event method can receive `(BookStored event, EventContext context)`. For a batch, declare the event types with repeatable `@Observes(BookAdded.class)` and `@Observes(BookRemoved.class)` annotations on the batch method. Iterate its `EventBatch`; use each entry's own event and context instead of attributing the page to the first source.
3
+ In an `@Reactor` class a per-event method can receive `(BookStored event, EventContext context)`. For a batch, declare the event types with repeatable `@Observes(BookAdded.class)` and `@Observes(BookRemoved.class)` annotations on the batch method. Iterate its `EventBatch`; use each entry's own event and context instead of attributing the page to the first source.
4
4
 
5
5
  If one entry is throttled, `batch.defer(entry.getContext(), Duration.ofSeconds(1))` identifies the partition to retry. Do not acknowledge an external effect until its receiver has accepted the same stable receipt on every attempt. For future-only effects use `@StartAtTail` as well as replay exclusion with `@OnceOnly`; neither is retry deduplication.
@@ -1,6 +1,6 @@
1
1
  # Register the Kotlin notification
2
2
 
3
- With the event registered, annotate the class `@Reactor(id = "order-notifications")` and add a typed method such as `fun orderPlaced(event: OrderPlaced, context: EventContext)`. For a live-only notification, choose `@StartAtTail` for the initial position and `@OnceOnly` for replay exclusion. Do not rotate the observer ID for routine deployments.
3
+ With the event registered, annotate the class `@Reactor` and add a typed method such as `fun orderPlaced(event: OrderPlaced, context: EventContext)`. For a live-only notification, choose `@StartAtTail` for the initial position and `@OnceOnly` for replay exclusion. Do not rotate the observer ID for routine deployments.
4
4
 
5
5
  Scope the receiver's receipt to this observer, store, namespace, event sequence, source, `context.sequenceNumber` and effect. Sequence number alone collides across scopes. Test a retry after the receiver has accepted the notification: returning successfully must not send a second one. Cancellation or failure must not be reported as successful delivery.
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-chronicle-record-event
3
- description: Use when declaring a Chronicle event, appending it from a standalone writer or checking its accepted position. Not for returning a fact from an Arc command.
3
+ description: Use when declaring a Chronicle event, appending it from a standalone writer or checking its accepted position. Not for returning a fact from an Arc command (use cratis-arc-declare-command).
4
4
  compatibility: A supported application client and access to the intended kernel.
5
5
  ---
6
6