@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
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-arc-identity-and-tenancy-kotlin
3
- description: Use when configuring Kotlin or Java Arc identity endpoints, tenant resolution or trusted ingress. Not for C# Arc identity, command input validation or standalone Chronicle namespaces.
3
+ description: Use when configuring Kotlin or Java Arc identity endpoints, tenant resolution or trusted ingress. Not for selecting a tenant on a non-JVM host (use cratis-arc-isolate-tenant).
4
4
  license: MIT
5
5
  ---
6
6
 
@@ -13,8 +13,7 @@ Authentication identifies the caller; authorization decides whether they may
13
13
  execute an operation; tenant resolution selects their data boundary. Configure
14
14
  and verify all three separately. A tenant header alone proves no membership.
15
15
 
16
- Use `io.cratis:arc-spring-boot-starter:<version>`
17
- (or `io.cratis:cratis:<version>` for Chronicle integration), with matching plugin/KSP.
16
+ Use the Arc Gradle plugin, which applies KSP, and the `io.cratis:arc-spring-boot-starter` dependency. Choose `io.cratis:cratis` when the host also owns a Chronicle integration.
18
17
  These are JVM contracts; do not infer the same switches exist in Arc .NET.
19
18
 
20
19
  ## Authenticate and expose identity details
@@ -65,9 +64,7 @@ Keys below are under `cratis.arc`:
65
64
  | `tenancy.fixed-tenant-id` | `development` |
66
65
  | `tenancy.constrain-to-authenticated-claims` | `true`; when membership claims exist, selection must match one |
67
66
 
68
- Keep claim constraints on. Absence of membership claims is not proof the caller
69
- belongs to every tenant; add the application authorization policy required by
70
- your domain. Do not expose development/fixed selection as production isolation.
67
+ Keep claim constraints on. The default evaluator permits anonymous callers and authenticated callers without matching claim types; it is not a membership requirement. For a tenant-only service, require tenant selection and install a deny-by-default `TenantAccessEvaluator` as shown in `cratis-arc-isolate-tenant`. Do not expose development/fixed selection as production isolation.
71
68
  `TenantsProvider` lists development tenants for tools; it does not resolve a request.
72
69
 
73
70
  Resolution is not storage routing. Plain repository injection is ordinary
@@ -114,7 +111,7 @@ Valid submissions never replace an already authenticated non-anonymous identity.
114
111
  Invalid/partial/repeated submissions fail generically with 401 (earlier filters
115
112
  may reject first). The bridge retains identity in request attributes, not the
116
113
  HTTP session. Never log identity headers, raw claims or the cache cookie.
117
- Consult the tagged security guide for the bounded header schema and limits
114
+ Consult the Arc JVM platform identity guide for the bounded header schema and limits
118
115
  before changing an ingress adapter; do not hand-roll permissive parsing.
119
116
 
120
117
  ## Verify and route
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-arc-invoke-command
3
- description: Use when a developer needs to execute an existing Arc command from backend code, such as a service, job or import. Not for declaring the command (use cratis-arc-declare-command) or calling it from React.
3
+ description: Use when a developer needs to execute an existing Arc command from backend code, such as a service, job or import. Not for declaring the command (use cratis-arc-declare-command).
4
4
  compatibility: Requires an Arc backend with the command already declared.
5
5
  ---
6
6
 
@@ -22,7 +22,7 @@ public class AuthorImporter(ICommandPipeline commandPipeline)
22
22
  }
23
23
  ```
24
24
 
25
- Inspect the final result: `!IsAuthorized` means access was denied, `!IsValid` points to `ValidationResults`, and `HasExceptions` means execution failed. `IsRetryable` identifies a retryable result. Use `var preflight = await commandPipeline.Validate(command);` only for early feedback: it does not run `Provide()` or `Handle()` and does not replace checking the final result.
25
+ Classify a failure as described below. Use `var preflight = await commandPipeline.Validate(command);` only for early feedback: it does not run `Provide()` or `Handle()` and does not replace checking the final result.
26
26
 
27
27
  ## When the caller owns the scope or runs a batch
28
28
 
@@ -41,13 +41,13 @@ Inspect the final result: `!IsAuthorized` means access was denied, `!IsValid` po
41
41
 
42
42
  | Check | Meaning |
43
43
  | --- | --- |
44
- | `!IsAuthorized` | The caller was refused. Do not retry. |
44
+ | `!IsAuthorized` | Authorization did not succeed. Use `GetRefusal()` to distinguish a recognized denial from an unclassified failure. |
45
45
  | `!IsValid` | The input or a rule was rejected; read `ValidationResults`. |
46
46
  | `IsRetryable` | A temporary refusal: the same command can succeed later. |
47
47
  | `IsMissingHandler` | No handler is registered. A deployment fault, not a domain refusal. |
48
48
  | `HasExceptions` | Execution faulted. |
49
49
 
50
- `result.GetRefusal()` returns a typed `CommandRefusal` for an authorization, constraint or rule refusal and `null` for success or a fault. Branch on it and on the typed validation data, not on rendered message text. For returned reactor commands, see "Handle a refused follow-up command" in `cratis-chronicle-react-to-fact` (in `cratis/chronicle`).
50
+ `result.GetRefusal()` returns a typed `CommandRefusal` for an authorization, constraint or rule refusal and `null` for success or a failure it cannot classify, including configuration faults and malformed inputs. Branch on it and on the typed validation data, not on rendered message text. For returned reactor commands, see "Handle a refused follow-up command" in `cratis-chronicle-react-to-fact` (in `cratis/chronicle`).
51
51
 
52
52
  An ordinary nested Chronicle command joins the outer command's transaction even when it uses a different DI scope. A successful child result is not a commit; a later outer refusal or fault discards the child's pending events. Await the child and inspect and propagate failure. Use one outer command when the effects must be atomic; use separate top-level executions when they are independent. In a pipeline spec, let the child succeed, then refuse the outer command and assert that no child event persisted rather than checking only the child result. `Recovery` and `OperationOutcomes` are server-side observations and are not part of the HTTP response.
53
53
 
@@ -57,4 +57,4 @@ For a leased Chronicle occurrence, inject `IOccurrenceCommandExecutor` from `Cra
57
57
 
58
58
  ## Map a known integration refusal
59
59
 
60
- With Arc 22.100.0 or later, implement `Cratis.Arc.Commands.ICommandExceptionMapper`: `bool TryMap(CommandContext context, Exception exception, out CommandResult? result)` (`[NotNullWhen(true)]` on `result`). Arc discovers mappers via `IInstancesOf<ICommandExceptionMapper>` in the command scope; the first mapper returning `true` wins. Preserve `context.CorrelationId` and return a failed result so execution scopes roll back pending work. For exceptions the mapper does not own, return `false` and set the result to null; if none accept, Arc uses its default exception handling. Make only a user-correctable refusal a validation result. Decline transport and infrastructure faults so they remain exceptional. Verify mapped refusal and exceptional fallback through the pipeline, with no pending events committed in either case.
60
+ Implement `Cratis.Arc.Commands.ICommandExceptionMapper`: `bool TryMap(CommandContext context, Exception exception, out CommandResult? result)` (`[NotNullWhen(true)]` on `result`). Arc discovers mappers via `IInstancesOf<ICommandExceptionMapper>` in the command scope; the first mapper returning `true` wins. Preserve `context.CorrelationId` and return a failed result so execution scopes roll back pending work. For exceptions the mapper does not own, return `false` and set the result to null; if none accept, Arc uses its default exception handling. Make only a user-correctable refusal a validation result. Decline transport and infrastructure faults so they remain exceptional. Verify mapped refusal and exceptional fallback through the pipeline, with no pending events committed in either case.
@@ -22,6 +22,6 @@ Spec the refusal through the command pipeline: for a verified caller denied by t
22
22
 
23
23
  Return an Arc `@command()` instance or a non-empty array of commands only. Arc executes each through its full command pipeline. See `cratis-chronicle-react-to-fact` (in `cratis/chronicle`) for handler matching and replay declarations; handlers receive parsed JSON content, not event-class instances. `ARCCHR0006` flags typed command-returning handlers with neither `@onceOnly()` nor an explicit replay handler. Ensure returned commands tolerate a failed partition re-delivering a batch whose earlier commands already succeeded. Spec replay and re-delivery separately: replay must not run a live command, and re-delivery must not repeat the committed effect.
24
24
 
25
- With `@cratis/chronicle` 6.29.0 or later, opt in to `withChronicle({ ..., activateArtifactsInScopes: true })` on the Arc-owned client. Arc DI resolves reactors and reducers in one scope per delivered batch, with the Chronicle namespace as tenant and no principal. Explicit registrations win.
25
+ When a reactor genuinely needs scoped application services, opt in with `activateArtifactsInScopes: true` in the Arc-owned client’s `withChronicle` options. Arc DI resolves reactors and reducers in one scope per delivered batch, with the Chronicle namespace as tenant and no principal. Explicit registrations win.
26
26
 
27
27
  For a caller-owned client, pass `chronicleArtifactActivator(() => app.server, eventStore)` as `artifactActivator` and `reactorCommandResultHandler(() => app.server, eventStore)` as `reactorResultHandler` when constructing the client, then set `activateArtifactsInScopes: true` with the client in `withChronicle`. Build Arc before observation starts and dispose Arc before the client.
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: cratis-arc-isolate-tenant
3
- description: Use when resolving a request tenant, checking membership or isolating a background job's storage scope. Not for choosing a database server.
3
+ description: Use when resolving a request tenant, checking membership or isolating a background job's storage scope. Not for connecting a read-model database (use cratis-arc-connect-storage).
4
4
  ---
5
5
 
6
6
  # Resolve and verify tenant scope
7
7
 
8
- For choosing a database server, use `cratis-arc-connect-storage` (installed with `cratis/arc/core`) if available.
8
+ To connect a read-model database, use `cratis-arc-connect-storage` (installed with `cratis/arc/core`) if available.
9
9
 
10
10
  Select the tenant, check the authenticated caller's membership, then open storage for that tenant. A request header, host or query parameter expresses a choice, not a grant. Reject missing selections when the operation requires a named tenant.
11
11
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Keep the host's existing selection mechanism, including header selection when callers choose a tenant. A resolver selects a tenant; it does not establish that the caller belongs to it. A request header expresses a selection, not membership. Register a separate synchronous `ITenantMembership` check against trusted membership claims.
4
4
 
5
- In the Arc-only host's `Program.cs`, keep the existing authentication and tenant resolver setup and register the check. If the caller selects the tenant by header, replace the claim registration below with `builder.AddCratisArc(options => options.UseHeaderTenancy("X-Library-Tenant"));` and send `X-Library-Tenant: tenant-a` on the request. In a combined Library host, configure claim selection with `builder.AddCratis(configureArcOptions: options => options.UseClaimTenancy("tenant_id"));` rather than registering Arc twice.
5
+ In the Arc-only host's `Program.cs`, keep the existing authentication and tenant resolver setup and register the check. If the caller selects the tenant by header, replace the claim registration below with `builder.AddCratisArc(options => options.UseHeaderTenancy("X-Library-Tenant"));` and send `X-Library-Tenant: tenant-a` on the request. In a combined Library host, configure claim selection with `builder.AddCratis(configureArcOptions: options => options.UseClaimTenancy());` rather than registering Arc twice.
6
6
 
7
7
  ```csharp
8
8
  using Library.Tenancy;
@@ -11,7 +11,7 @@ using Microsoft.AspNetCore.Builder;
11
11
  using Microsoft.Extensions.DependencyInjection;
12
12
 
13
13
  var builder = WebApplication.CreateBuilder(args);
14
- builder.AddCratisArc(options => options.UseClaimTenancy("tenant_id"));
14
+ builder.AddCratisArc(options => options.UseClaimTenancy());
15
15
  builder.Services.AddScoped<ITenantMembership, ClaimsTenantMembership>();
16
16
  var app = builder.Build();
17
17
  app.UseCratisArc();
@@ -1,5 +1,5 @@
1
1
  # Resolve and verify tenant scope in Elixir
2
2
 
3
- Configure one resolver, not a chain. For example, `tenancy: [resolver: :claim, claim_type: "tenant_id"]` selects from the authenticated principal. `Cratis.Arc.Tenancy` provides selection, not admission. A `:subdomain` resolver falls back to a caller-controlled header when the host doesn't match; strip it at ingress. Leave `trust_forwarded_identity_headers` disabled unless authenticated ingress replaces the headers and the backend is inaccessible directly.
3
+ Configure one resolver, not a chain. For example, `tenancy: [resolver: :claim]` selects the default `tenant_id` claim from the authenticated principal. Set `claim_type` only if the identity provider uses a different claim. `Cratis.Arc.Tenancy` provides selection, not admission. A `:subdomain` resolver falls back to a caller-controlled header when the host doesn't match; strip it at ingress. Leave `trust_forwarded_identity_headers` disabled unless authenticated ingress replaces the headers and the backend is inaccessible directly.
4
4
 
5
5
  Enforce membership in a `Cratis.Arc.Filter` before command or query execution; enriching a result is too late. Check `ctx.tenant` against trusted grants. Reject a default tenant where selection is mandatory: `nil` is not an automatic denial. Verify writes land in distinct tenant databases or Chronicle namespaces; a fixed explicit namespace overrides automatic tenant mapping.
@@ -1,6 +1,6 @@
1
1
  # Resolve and verify tenant scope in Java
2
2
 
3
- On a tenant-only Spring host set `cratis.arc.tenancy.resolvers=header` and `cratis.arc.tenancy.required=true`. Missing selection otherwise bypasses the evaluator. The default evaluator permits anonymous callers and empty membership sets. Replace it with an `io.cratis.arc.springboot.TenantAccessEvaluator` bean in a Spring configuration class. Here the identity provider issues one `tenant_id` claim per granted tenant; the header only selects one.
3
+ On a tenant-only Spring host keep the default header resolver and set `cratis.arc.tenancy.required=true`. Missing selection otherwise bypasses the evaluator. The default evaluator permits anonymous callers and empty membership sets. Replace it with an `io.cratis.arc.springboot.TenantAccessEvaluator` bean in a Spring configuration class. Here the identity provider issues one `tenant_id` claim per granted tenant; the header only selects one.
4
4
 
5
5
  ```java
6
6
  @Bean
@@ -1,6 +1,6 @@
1
1
  # Resolve and verify tenant scope in Kotlin
2
2
 
3
- On a tenant-only Spring host set `cratis.arc.tenancy.resolvers=header` and `cratis.arc.tenancy.required=true`. Missing selection otherwise bypasses the evaluator. The default evaluator permits anonymous callers and empty membership sets. Replace it with an `io.cratis.arc.springboot.TenantAccessEvaluator` bean in a Spring configuration class. Here the identity provider issues one `tenant_id` claim per granted tenant; the header only selects one.
3
+ On a tenant-only Spring host keep the default header resolver and set `cratis.arc.tenancy.required=true`. Missing selection otherwise bypasses the evaluator. The default evaluator permits anonymous callers and empty membership sets. Replace it with an `io.cratis.arc.springboot.TenantAccessEvaluator` bean in a Spring configuration class. Here the identity provider issues one `tenant_id` claim per granted tenant; the header only selects one.
4
4
 
5
5
  ```kotlin
6
6
  @Bean
@@ -1,5 +1,7 @@
1
1
  # Resolve and verify tenant scope in Node
2
2
 
3
- When callers switch between tenants, configure the server with `tenancy: { sources: [TenantResolverType.Header], required: true, membershipClaim: 'memberships' }`. The `x-cratis-tenant-id` request header selects the tenant. Supply the authenticated principal through the host, with the trusted membership claim supplied by your identity provider, not the request body.
3
+ When callers switch between tenants, keep the default header resolver and configure `tenancy: { required: true, membershipClaim: 'memberships' }`. The `x-cratis-tenant-id` request header selects the tenant. Supply the authenticated principal through the host, with a comma-separated `memberships` string from the identity provider, not the request body.
4
4
 
5
- On this tenant-only host, call both a command and a query as an authenticated caller. Omit the header (400), then select a valid tenant outside the caller's grants (403). Assert zero handler calls and zero storage accesses for each refusal. Membership is not checked for an absent selection: on a mixed host, explicitly refuse absence before a tenant-only operation. Then call as a member; use the handler's tenant context for storage rather than reading the header again.
5
+ On this tenant-only host, call both a command and a query as an authenticated caller. Omit the header (400), then select a valid tenant with no membership claim and with a nonmatching claim (403 in both cases). Assert zero handler calls and zero storage accesses for each refusal. Then call as a member; use the handler’s tenant context for storage rather than reading the header again. Membership is not checked for an absent selection: on a mixed host, explicitly refuse absence before a tenant-only operation.
6
+
7
+ Use a verified claim instead of the header when the identity provider assigns the tenant and callers cannot switch it. For claim-based selection, custom resolution and storage defaults, use the `cratis-arc-tenancy-typescript` skill (installed with `cratis/arc/server-typescript`).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-arc-migrate-relational-schema
3
- description: Use when a developer needs to generate, review or apply an EF Core migration to an existing relational database used by Arc. Not for changing the shape of a stored Chronicle event.
3
+ description: Use when a developer needs to generate, review or apply an EF Core migration to an existing relational database used by Arc. Not for changing the shape of a stored Chronicle event (use cratis-chronicle-evolve-event).
4
4
  compatibility: Requires the application's relational EF provider, Cratis.Arc.EntityFrameworkCore, Microsoft.EntityFrameworkCore.Design and a matching dotnet-ef tool.
5
5
  ---
6
6
 
@@ -8,7 +8,7 @@ compatibility: Requires the application's relational EF provider, Cratis.Arc.Ent
8
8
 
9
9
  For changing the shape of a stored Chronicle event, use `cratis-chronicle-evolve-event` (installed with `cratis/chronicle`) if available.
10
10
 
11
- Change the EF model and its mapping first. For example, add a nullable `Subtitle` to the existing `Books` entity. Use a nullable column when older rows have no meaningful value; do not invent a default solely to satisfy a constraint.
11
+ Change the EF model and its mapping first. For example, add a nullable `Subtitle` to the existing `Books` entity and map it with a maximum length of 200 in the EF model. Use a nullable column when older rows have no meaningful value; do not invent a default solely to satisfy a constraint.
12
12
 
13
13
  1. From the backend project run `dotnet ef dbcontext info`. Confirm the intended context and provider. If the context is created by a design-time factory, supply the same maps, concept converters and GUID storage options as the host. Otherwise the scaffold may propose unrelated changes.
14
14
  2. Run `dotnet ef migrations add AddBookSubtitle`. Review the snapshot and both migration methods. For a string limited to 200 characters, this is the relevant migration excerpt:
@@ -20,14 +20,14 @@ Change the EF model and its mapping first. For example, add a nullable `Subtitle
20
20
  public partial class AddBookSubtitle : Migration
21
21
  {
22
22
  protected override void Up(MigrationBuilder migrationBuilder) =>
23
- migrationBuilder.AddStringColumn("Subtitle", "Books", maxLength: 200, nullable: true);
23
+ migrationBuilder.AddStringColumn("Subtitle", "Books", maxLength: 200);
24
24
 
25
25
  protected override void Down(MigrationBuilder migrationBuilder) =>
26
26
  migrationBuilder.DropColumn("Subtitle", "Books");
27
27
  }
28
28
  ```
29
29
 
30
- `AddStringColumn` chooses a column type for the active provider; it does not backfill values. Reject unexpected drops, key changes or missing tenant columns before applying anything.
30
+ `AddStringColumn` chooses a column type for the active provider; the column is nullable by default and the helper does not backfill values. Reject unexpected drops, key changes or missing tenant columns before applying anything.
31
31
  3. Point the context at a disposable database of the target provider on the **previous** migration. Insert a representative book, record its key and tenant, then run `dotnet ef database update AddBookSubtitle`. `dotnet ef migrations list` must show the new migration applied. From a fresh context read the same book with `Subtitle == null`, write a subtitle and read it back. Repeat for each database in scope if tenants have separate databases.
32
32
 
33
33
  ## Rehearse rollback before deployment
@@ -38,8 +38,8 @@ Take a restorable backup. On a disposable copy only, record the exact previous m
38
38
 
39
39
  Deploy the nullable change first. Backfill from an agreed source and verify there are no missing values, including rows created by older writers. Only then ship the non-null constraint. Review the rollout and restore procedure with the database owner; `Down` drops subtitles and is not a data backup.
40
40
 
41
- For a typed document reader with no relational schema change, [connect storage](../cratis-arc-connect-storage/SKILL.md) instead.
41
+ For a typed document reader with no relational schema change, use `cratis-arc-connect-storage` when installed.
42
42
 
43
43
  ## Verify the physical column
44
44
 
45
- Inspect the generated migration SQL on the selected provider. A geometry column is a database type; it does not install a CLR spatial converter. Likewise a PostgreSQL JSON helper can add database checks and indexing that a plain text column lacks. Exercise insertion and a native query after applying the migration, not just model construction.
45
+ Inspect the generated migration SQL on the selected provider. A geometry column is a database type; it does not install a CLR spatial converter. On PostgreSQL, the Arc migrations SQL generator adds a JSON check and GIN index for a column marked by `AddJsonColumn<TProperty>`. That helper creates a non-nullable column; do not use it to add a required column to populated tables without a backfill plan. Exercise insertion and a native query after applying the migration, not just model construction.
@@ -14,13 +14,13 @@ The artifact being changed selects the one reference to read: `*.csproj` → [C#
14
14
 
15
15
  ## Expected outcome
16
16
 
17
- With three matching rows and one other, request a page size of two and then the next page, as the same caller and tenant, with the data unchanged. Expect two IDs, then the remaining one, none repeated, and a total of three on both. Save both response bodies and run `node scripts/check-pages.mjs first.json second.json id` from the skill directory to check for repeated IDs.
17
+ With three matching rows and one other, request a page size of two and then the next page, as the same caller and tenant, with the data unchanged. Expect two IDs, then the remaining one, none repeated, and a total of three on both. Save both response bodies and run `node scripts/check-pages.mjs first.json second.json id` from the skill directory. Expect `Distinct rows per page: 2 1`. Check `paging.totalItems` separately; the script only checks successful, nonempty responses and distinct IDs.
18
18
 
19
19
  In the frontend, request another page through the generated proxy's paging API rather than slicing the returned array.
20
20
 
21
- ## Stop when
21
+ ## Before allowing caller-selected sorts
22
22
 
23
- Some fields are hidden from the caller: refuse a sort on a hidden field before the rows are ordered, because the order reveals the field's ranking, and restrict the rows before they are counted.
23
+ Refuse sorts on hidden fields before ordering, because result order leaks their rankings. Restrict rows to the caller’s authorized set before counting.
24
24
 
25
25
  ## Related skills
26
26
 
@@ -2,9 +2,7 @@
2
2
 
3
3
  Prerequisite: the `Author` read model and its MongoDB collection are already connected.
4
4
 
5
- For an ordinary snapshot without Arc-composed paging, use `Find(filter)` with a `Builders<Author>.Filter` definition; see [native MongoDB operations](../../cratis-arc-connect-storage/references/csharp.md#use-native-mongodb-operations). For an Arc page that must reflect writes, use `collection.Observe(Builders<Author>.Filter.Eq(author => author.Name, name))` and return `ISubject<IEnumerable<Author>>` instead of the method below. Import `Cratis.Arc.MongoDB`, `System.Reactive.Subjects` and `MongoDB.Driver`; MongoDB applies the page and sort from the request.
6
-
7
- A finite search that Arc must count and page is the exception: use a provider-backed `IQueryable` so Arc can compose that work.
5
+ For a finite page, return a provider-backed `IQueryable` so Arc can count and page in the database. For a snapshot that does not need Arc paging, use native MongoDB `Find(filter)` instead (see `cratis-arc-connect-storage`).
8
6
 
9
7
  Add `AuthorsNamed` to the `Author` read model in `Features/Authors/Listing/Author.cs` (`Library.Features.Authors.Listing`). The client supplies `name`; Arc injects the collection. Import `MongoDB.Driver` and `MongoDB.Driver.Linq`. Add the method below to the existing file; do not replace `AllAuthors` or declare a second `Author`. Return the filtered query unexecuted so Arc counts matching authors before applying the requested page.
10
8
 
@@ -13,16 +11,18 @@ public static IQueryable<Author> AuthorsNamed(string name, IMongoCollection<Auth
13
11
  collection.AsQueryable().Where(author => author.Name == name).OrderBy(author => author.Id);
14
12
  ```
15
13
 
16
- One-off paging check: keep the matching rows unchanged between requests. With prefix `api` and one namespace segment skipped, request `GET /api/features/authors/listing/authors-named?name=Aster&page=0&pageSize=2`, then change `page` to `1`, with three authors named Aster and one other author. Expect two different IDs on page zero and the remaining ID on page one. All three matching rows tie on `Name`, so leave request sorting unset for this check and verify the pages follow the query's `Id` order. Both responses should have `paging.totalItems` equal to three, not four. To check for repeated IDs, save the two response bodies: from the skill directory, with the same caller and tenant on both requests, run:
14
+ One-off paging check: keep the matching rows unchanged between requests. With prefix `api` and one namespace segment skipped, request `GET /api/features/authors/listing/authors-named?name=Aster&pageSize=2` for the default first page, then add `&page=1`, with three authors named Aster and one other author. Expect two different IDs on page zero and the remaining ID on page one. All three matching rows tie on `Name`, so leave request sorting unset for this check and verify the pages follow the query's `Id` order. Both responses should have `paging.totalItems` equal to three, not four. To check for repeated IDs, save the two response bodies: from the skill directory, with the same caller and tenant on both requests, run:
17
15
 
18
16
  ```sh
19
17
  url='https://localhost:5001/api/features/authors/listing/authors-named?name=Aster&pageSize=2'
20
- curl -fsS "$url&page=0" -o first.json
18
+ curl -fsS "$url" -o first.json
21
19
  curl -fsS "$url&page=1" -o second.json
22
20
  node scripts/check-pages.mjs first.json second.json id
23
21
  ```
24
22
 
25
- If some fields are masked, reject unauthorized sorts before Arc orders the rows: their order can reveal a hidden field's ranking. In a discovered `IQueryFilter.OnPerform`, return `QueryResult.Success(context.CorrelationId)` for other fully qualified query names or `Sorting.None`. For this query, compare `context.Sorting.Field.Value` against the caller's allowed fields using `StringComparer.OrdinalIgnoreCase`; return success for a match and `QueryResult.Unauthorized(context.CorrelationId)` otherwise. Restrict the query to authorized rows before Arc counts them. Test that a reader can sort by `Id` but is refused when requesting a masked field.
23
+ Allow-list request sorts before Arc orders the rows. Unknown fields can fail in the renderer, and sorting on a masked field can reveal its ranking. In a discovered `IQueryFilter.OnPerform`, return `QueryResult.Success(context.CorrelationId)` for other fully qualified query names or `Sorting.None`. For this query, compare `context.Sorting.Field.Value` against the caller's allowed CLR property names, such as `nameof(Author.Id)`, using `StringComparer.Ordinal`. Arc has already normalized the first letter of the GET sort field; do not normalize it again or compare case-insensitively. Return success for an exact match and `QueryResult.Unauthorized(context.CorrelationId)` otherwise. Restrict the query to authorized rows before Arc counts them.
24
+
25
+ With the same reader and matching rows, verify that `sortBy=id&sortDirection=asc` returns a successful page in ascending `Id` order. Verify that `sortBy=iD&sortDirection=asc` and a sort on a masked field both return 403 before rendering, not 500.
26
26
 
27
27
  ## Avoid in C#
28
28
 
@@ -31,6 +31,10 @@ If some fields are masked, reject unauthorized sorts before Arc orders the rows:
31
31
  - Do not rely on insertion order. To override the query's order in a GET, append `&sortBy=id&sortDirection=desc`. Use a unique sort key for stable page boundaries: Arc applies the request sort before paging and does not add the query's `Id` order as a tie-breaker.
32
32
  - Do not reuse `page`, `pageSize`, `sortBy` or `sortDirection` as business filter names.
33
33
 
34
+ ## Choose a live page when the open page must reflect writes
35
+
36
+ Use `collection.Observe(Builders<Author>.Filter.Eq(author => author.Name, name))` and return `ISubject<IEnumerable<Author>>` instead of `IQueryable<Author>`. Import `Cratis.Arc.MongoDB`, `System.Reactive.Subjects` and `MongoDB.Driver`. MongoDB applies the page and sort from the request.
37
+
34
38
  ## What Arc pages and what it does not
35
39
 
36
40
  | Shape | Request sort | Unknown field | Page order on ties |
@@ -1,9 +1,9 @@
1
1
  # Page a MongoDB query in Elixir
2
2
 
3
- With `arc_mongodb` configured and the `Book` model registered, pass the query context along with the model. The helper reads the caller's page and sort from the context and counts the same filter it sends to the collection.
3
+ With `cratis_arc_mongodb` configured and the `Book` model registered, pass the query context along with the model. The helper reads the caller's page and sort from the context and counts the same filter it sends to the collection.
4
4
 
5
5
  ```elixir
6
- def books(_args, ctx), do: {:ok, Cratis.Arc.MongoDB.page({ctx, Book}, %{})}
6
+ def books(_args, ctx), do: {:ok, Cratis.Arc.MongoDB.page({ctx, Book})}
7
7
  ```
8
8
 
9
9
  With three distinct titles, request ascending title order, page 1 and size 2. Expect only the last book, with total 3. Without a size this helper returns all matches; require a bounded request if that would be unsafe.
@@ -1,4 +1,4 @@
1
- # Preserve the provider window in java
1
+ # Preserve the provider window in Java
2
2
 
3
3
  Use this in an Arc JVM query backed by a repository that can count and window the same filtered rows. Read in deterministic order; pass the resulting items, zero-based page, requested size and full count to `io.cratis.arc.queries.QueryPage`. For example, given two rows of the fourth page and forty matches:
4
4
 
@@ -1,4 +1,4 @@
1
- # Preserve the provider window in kotlin
1
+ # Preserve the provider window in Kotlin
2
2
 
3
3
  Use this in an Arc JVM query backed by a repository that can count and window the same filtered rows. Read in deterministic order; pass the resulting items, zero-based page, requested size and full count to `io.cratis.arc.queries.QueryPage`. For example, given two rows of the fourth page and forty matches:
4
4
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: cratis-arc-react-bind-slice
3
- description: Use when a developer mounts the Arc React host, renders a generated query in custom markup or invokes a generated command from an action. Not for a standard table (use cratis-components-display-list) or a command form (use cratis-components-submit-form).
4
- compatibility: Requires react, react-dom and compatible versions of @cratis/arc, @cratis/arc.react and @cratis/fundamentals. Add @cratis/components for DataPage or command dialogs.
3
+ description: Use when a developer mounts the Arc React host, renders a generated query in custom markup or invokes a generated command from an action. Not for a standard table (use cratis-components-display-list).
4
+ compatibility: Requires react, react-dom and @cratis/arc, @cratis/arc.react and @cratis/fundamentals. Add @cratis/components for DataPage or command dialogs.
5
5
  ---
6
6
 
7
7
  # Bind generated proxies in a React component
@@ -1,6 +1,6 @@
1
1
  # Import the C#-generated React query
2
2
 
3
- With source-file grouping (`CratisProxiesUseSourceFileAsOutputFile=true`), the query from `Author.cs` is exported by the generated `Author` module. For `Library.Features.Authors.Listing`, with `CratisProxiesSegmentsToSkip=1`, the proxy suffix off and `generated/` at the frontend root, import from the component in `Features/Authors/Listing`:
3
+ With source-file grouping (`CratisProxiesUseSourceFileAsOutputFile=true`), the query from `Author.cs` is exported by the generated `Author` module. For `Library.Features.Authors.Listing`, with `CratisProxiesSegmentsToSkip=1`, `generated/` at the frontend root, import from the component in `Features/Authors/Listing`:
4
4
 
5
5
  ```tsx
6
6
  import { AllAuthors } from '../../../generated/Features/Authors/Listing/Author';
@@ -1,6 +1,6 @@
1
1
  # Import the Kotlin-generated React query
2
2
 
3
- The Kotlin generator emits a query-named module separately from its model. For `AllAuthors` in `com.example.library.features.authors.listing`, with `arc.proxies.segmentsToSkip` set to `3`, `arc.proxies.useProxyFileSuffix` off and `generated/` at the frontend root, import from the component in `features/authors/listing`:
3
+ The Kotlin generator emits a query-named module separately from its model. For `AllAuthors` in `com.example.library.features.authors.listing`, with `cratisArc { proxies { segmentsToSkip.set(3) } }`, `generated/` at the frontend root, import from the component in `features/authors/listing`:
4
4
 
5
5
  ```tsx
6
6
  import { AllAuthors } from '../../../generated/features/authors/listing/AllAuthors';
@@ -4,13 +4,13 @@ description: Use when a developer needs an Arc React MVVM view model to isolate
4
4
  compatibility: Requires @cratis/arc.react.mvvm, tsyringe and react-router-dom in an Arc React app.
5
5
  ---
6
6
 
7
- # Filter authors with a bound view model
7
+ # Isolate presentation decisions in a bound view model
8
8
 
9
9
  Keep simple presentation state in the view. Extract a view model when the search term and filtering decision need testing without React, or when presentation behavior needs an injected collaborator.
10
10
 
11
- In the Library example below, use its existing `Features/` paths.
11
+ The example filters authors locally. Use the generated query module and feature paths from your application.
12
12
 
13
- 1. Set `compilerOptions.experimentalDecorators` to `true` in `tsconfig.json`. In [main.tsx](../cratis-arc-react-bind-slice/SKILL.md), keep the Fundamentals metadata import first so it runs before `tsyringe`. Then import `MVVM` from `@cratis/arc.react.mvvm` and `BrowserRouter` from `react-router-dom`. Keep the existing providers and wrap the application shell inside `Arc`: `<Arc><MVVM><BrowserRouter><App /></BrowserRouter></MVVM></Arc>`. In `App.tsx`, import `AuthorSearch` from `./Features/Authors/Listing/AuthorSearch` and render it on the search screen. The bound view reads the router; don't replace the shell or its dialog registration.
13
+ 1. In `tsconfig.json`, enable `experimentalDecorators` and `emitDecoratorMetadata` for constructor injection and typed URL parameters. Use a build that emits TypeScript decorator metadata when those features need it. In [main.tsx](../cratis-arc-react-bind-slice/SKILL.md), keep the Fundamentals metadata import first so it runs before `tsyringe`. Then import `MVVM` from `@cratis/arc.react.mvvm` and `BrowserRouter` from `react-router-dom`. Keep the existing providers and put `MVVM` inside `Arc`. With no router yet, use `<Arc><MVVM><BrowserRouter><App /></BrowserRouter></MVVM></Arc>`; otherwise use the existing router around the bound view. In `App.tsx`, import `AuthorSearch` from `./Features/Authors/Listing/AuthorSearch` and render it on the search screen. The bound view reads the router; don't replace the shell or its dialog registration.
14
14
  2. Put the search term and filter in `Features/Authors/Listing/AuthorSearchViewModel.ts`. `Author` and `AllAuthors` come from the slice's generated proxy (`cratis-arc-generate-proxies` skill in `cratis/arc/csharp`).
15
15
 
16
16
  ```ts
@@ -50,8 +50,12 @@ export const AuthorSearch = withViewModel(AuthorSearchViewModel, ({ viewModel })
50
50
 
51
51
  Keep query loading and failure state in the bound view. Changing the search text or receiving a matching author should refresh the visible list. To check that interaction, observe the rendered view (`cratis-specifications-observe-ui` skill in `cratis/application/react`); test a filtering decision by itself without mounting React.
52
52
 
53
+ ### Choose dependency injection when the model needs a collaborator
54
+
53
55
  For an existing `Catalogue` service instance `catalogue`, define and export `export const CatalogueToken = Symbol('Catalogue');` from the service module. Use `container.registerInstance(CatalogueToken, catalogue)` before mounting the view. Add `constructor(@inject(CatalogueToken) private readonly catalogue: Catalogue) {}` to the model, importing the shared token and service type from that module and `container` and `inject` from `tsyringe` where used.
54
56
 
57
+ ### Choose a model-owned action when submission is a presentation decision
58
+
55
59
  When the model decides when to submit, call `const [command] = RegisterAuthor.use()` in the bound view and pass that instance to the model after filling its fields. A model method `register(command: RegisterAuthor) { return command.execute(); }` preserves the generated response type. Await the result and check `isSuccess` before reading `response`. The hook configures the instance with Arc's `httpHeadersCallback`, so a locale header supplied there is sent on the request. A bare `new RegisterAuthor()` does not inherit the provider's headers.
56
60
 
57
61
  ## Avoid
@@ -1,6 +1,6 @@
1
1
  # Changing URL values and local messages
2
2
 
3
- Use `handleProps`, `handleParams` and `handleQueryParams` to apply incoming values on mount and when they change. Constructor values are only the initial values. For URL conversion, supply a real class, with `@field`-decorated properties and emitted decorator metadata. With a route segment `:count`, the binding turns URL `"42"` into numeric `42`:
3
+ Use `handleProps`, `handleParams` and `handleQueryParams` to apply incoming values on mount and when they change. Constructor values are only the initial values. For URL conversion, supply a real class, with `@field`-decorated properties. Enable `emitDecoratorMetadata` so the parameter decorators can discover that class at runtime. With a route segment `:count`, the binding turns URL `"42"` into numeric `42`:
4
4
 
5
5
  ```ts
6
6
  import { field } from '@cratis/fundamentals';
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: cratis-arc-select-backend-sdk
3
- description: Use when a developer needs to choose an Arc backend or run a native command in Node, Kotlin, Java, Elixir or Go. Not for the Chronicle client lifecycle.
3
+ description: Use when a developer needs to choose an Arc backend or run a command on its native host. Not for selecting a Chronicle client (use cratis-chronicle-select-client).
4
4
  compatibility: Requires the toolchain for the selected host.
5
5
  ---
6
6
 
7
7
  # Choose the backend that owns the request
8
8
 
9
- Use the language and host of the service that owns the feature. Prove the command with its native dispatcher before integrating a browser client. A compatible HTTP envelope doesn't make .NET attributes, dependency injection or commit semantics portable.
9
+ Use the language and host of the service that owns the feature. Prove the command against that host’s pipeline before integrating a browser client. A compatible HTTP envelope doesn't make .NET attributes, dependency injection or commit semantics portable.
10
10
 
11
11
  Read only the reference for the service being changed: `.csproj` → [C#](references/csharp.md); Node server `package.json` → [TypeScript](references/typescript.md); `.kt` → [Kotlin](references/kotlin.md); `.java` → [Java](references/java.md); `go.mod` → [Go](references/go.md); `mix.exs` → [Elixir](references/elixir.md). [Python](references/python.md) has no released Arc application SDK; call the owning service over HTTP instead.
12
12
 
@@ -1,10 +1,8 @@
1
1
  # Elixir: execute a counter command
2
2
 
3
- With Elixir 1.18 or later, add `{:cratis_arc, "1.4.10"}` to an application's Mix dependencies. For a configured Plug application and test kernel use `Samples/plug` in the Arc.Elixir `v1.4.10` checkout; it resolves Arc from source at that tag.
3
+ Use Elixir 1.18 or later. The Hex package is `cratis_arc`. For a configured Plug application and test kernel, download the latest source release from the [Arc.Elixir Releases page](https://github.com/Cratis/Arc.Elixir/releases/latest) and open its `Samples/plug` directory. The sample resolves Arc from that source tree.
4
4
 
5
5
  ```sh
6
- git clone --branch v1.4.10 --depth 1 https://github.com/Cratis/Arc.Elixir.git
7
- cd Arc.Elixir/Samples/plug
8
6
  mix deps.get
9
7
  mix test test/counters_test.exs
10
8
  ```
@@ -18,4 +16,4 @@ Cratis.Arc.Test.assert_success(result)
18
16
  Cratis.Arc.Test.assert_appended(arc, %Counters.CounterIncremented{by: 3}, event_source_id: id)
19
17
  ```
20
18
 
21
- An increment of 1000 fails the sample's validation. Check the result and absence of an appended event, not just whether `handle/2` returns a tuple. This path doesn't establish production connectivity.
19
+ An increment of 1000 fails the sample's validation. Check `Cratis.Arc.Test.assert_invalid(result, :by)` and `Cratis.Arc.Test.refute_appended(arc, Counters.CounterIncremented)`, not just whether `handle/2` returns a tuple. This path doesn't establish production connectivity.
@@ -1,6 +1,6 @@
1
1
  # Go: check a typed command reply
2
2
 
3
- In an empty directory with Go 1.26 or later run `go mod init example.org/library` and `go get github.com/cratis/arc.go@v0.1.4`. Save this as `register_author_test.go`:
3
+ In an empty directory with Go 1.26 or later run `go mod init example.org/library` and `go get github.com/cratis/arc.go`. Save this as `register_author_test.go`:
4
4
 
5
5
  ```go
6
6
  package library_test
@@ -35,4 +35,4 @@ func TestNativeReply(t *testing.T) {
35
35
 
36
36
  Run `go mod tidy` and `go test -run TestNativeReply .`. Expect `PASS`. The returned `AuthorRegistered` is a typed response; this handler does not append a Chronicle event.
37
37
 
38
- The root version does not version nested modules. The Chronicle integration in this checkout requires Chronicle.Go v0.9.1. No independent release tags for the integration or tools were verified: do not append `@v0.1.4` to their module paths. Use the tagged checkout for the sample or stay on the standalone pipeline.
38
+ The Chronicle integration and tools are separate Go modules. Do not assume they are published with the root module. To try the integration, download the source archive from the [Arc.Go Releases page](https://github.com/Cratis/Arc.Go/releases/latest) and follow **Run the task-board example** in the release's Go Chronicle integration guide. The recipe starts a development kernel and runs the example from `integrations/chronicle` with `GOWORK=off`; no workspace file is needed. The standalone pipeline above does not need either nested module.
@@ -2,7 +2,7 @@
2
2
 
3
3
  For a Gradle Spring MVC module with `src/main/java`, keep the command as a Java record. Use JDK 17 and keep generated Kotlin adapter compilation enabled; the Java types must be available before the adapters compile. Start with the in-memory profile; Chronicle is a separate integration, not required to return a task.
4
4
 
5
- Clone `https://github.com/Cratis/Arc.Kotlin.git` at `v7.11.1` and from its root run `./gradlew :Samples:Java:SpringBoot:bootRun`. `@Command` marks a record. Its `handle(TaskStore repository)` returns a `CompletionStage<TaskCreated>`; the generated adapter invokes it.
5
+ Download the latest source release from the [Arc.Kotlin Releases page](https://github.com/Cratis/Arc.Kotlin/releases/latest). From the extracted repository root, run `./gradlew :Samples:Java:SpringBoot:bootRun`. `@Command` marks a record. Its `handle(TaskStore repository)` returns a `CompletionStage<TaskCreated>`; the generated adapter invokes it.
6
6
 
7
7
  In a second terminal:
8
8
 
@@ -1,8 +1,8 @@
1
1
  # Kotlin: create a task in Spring Boot
2
2
 
3
- For a Kotlin/JVM Spring Boot module use JDK 17. The sample pairs Kotlin Spring plugin 2.4.20 with Spring Boot 4.1.2 and generates adapters with KSP. Start with the in-memory profile; Chronicle is a separate integration, not required to return a task.
3
+ For a Kotlin/JVM Spring Boot module use JDK 17. Use the sample’s Gradle wrapper and its KSP-generated adapters. Start with the in-memory profile; Chronicle is a separate integration, not required to return a task.
4
4
 
5
- Clone `https://github.com/Cratis/Arc.Kotlin.git` at `v7.11.1` and from its root run `./gradlew :Samples:Kotlin:SpringBoot:bootRun`. `@Command` marks a data class. Its `public fun handle(repository: TaskRepository): Pair<TaskCreated, TaskCreationHandled>` calls `repository.create(title)`.
5
+ Download the latest source release from the [Arc.Kotlin Releases page](https://github.com/Cratis/Arc.Kotlin/releases/latest). From the extracted repository root, run `./gradlew :Samples:Kotlin:SpringBoot:bootRun`. `@Command` marks a data class. Its `public fun handle(repository: TaskRepository): Pair<TaskCreated, TaskCreationHandled>` calls `repository.create(title)`.
6
6
 
7
7
  In a second terminal:
8
8
 
@@ -1,10 +1,8 @@
1
1
  # Node: register and list a task
2
2
 
3
- Use Node 22.19 or later, Corepack and curl. The server package is `@cratis/arc.core@1.0.0`, not the browser packages `@cratis/arc` or `@cratis/arc.react`. Use an ESM server project with standard decorators (`ESNext.Decorators`), as in the sample. For a configured project with decorators, metadata and validation, run the Tasks sample from the Arc.TypeScript `v1.0.2` checkout:
3
+ Use Node 22.19 or later, Corepack and curl. The server package is `@cratis/arc.core`, not the browser packages `@cratis/arc` or `@cratis/arc.react`. Use an ESM server project with standard decorators (`ESNext.Decorators`), as in the sample. For a configured project with decorators, metadata and validation, download the latest source release from the [Arc.TypeScript Releases page](https://github.com/Cratis/Arc.TypeScript/releases/latest) and run the Tasks sample from the extracted repository root:
4
4
 
5
5
  ```sh
6
- git clone --branch v1.0.2 --depth 1 https://github.com/Cratis/Arc.TypeScript.git
7
- cd Arc.TypeScript
8
6
  corepack enable
9
7
  yarn install
10
8
  yarn build