@cratis/pi 7.50.0 → 7.51.1

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 (306) hide show
  1. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +93 -0
  2. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +4 -0
  3. package/package/corpus/prompts/review-skill.prompt.md +6 -8
  4. package/package/corpus/rules/authoring-skills.md +92 -0
  5. package/package/corpus/rules/general.md +1 -0
  6. package/package/corpus/rules/profiles.md +4 -0
  7. package/package/corpus/skills/cratis-application-react-specifications/SKILL.md +1 -1
  8. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +8 -7
  9. package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +1 -1
  10. package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +2 -2
  11. package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +15 -19
  12. package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +1 -1
  13. package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -6
  14. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +23 -29
  15. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +7 -7
  16. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +34 -32
  17. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authproxy.md +1 -1
  18. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +2 -2
  19. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/local-development.md +3 -3
  20. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +8 -6
  21. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/tenancy.md +3 -3
  22. package/package/corpus/skills/cratis-arc-command/SKILL.md +23 -25
  23. package/package/corpus/skills/cratis-arc-command/references/command-result.md +1 -1
  24. package/package/corpus/skills/cratis-arc-command/references/decisions-and-routing.md +9 -9
  25. package/package/corpus/skills/cratis-arc-command/references/generated-values.md +11 -12
  26. package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +4 -4
  27. package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +3 -3
  28. package/package/corpus/skills/cratis-arc-command/references/read-model-injection.md +1 -3
  29. package/package/corpus/skills/cratis-arc-command/references/shop-generation.md +11 -14
  30. package/package/corpus/skills/cratis-arc-command-execution/LICENSE +6 -0
  31. package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +17 -19
  32. package/package/corpus/skills/cratis-arc-command-kotlin/SKILL.md +8 -7
  33. package/package/corpus/skills/cratis-arc-command-kotlin/references/read-model-naming.md +2 -2
  34. package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +14 -15
  35. package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +2 -2
  36. package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +7 -8
  37. package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +14 -11
  38. package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +7 -7
  39. package/package/corpus/skills/cratis-arc-command-typescript/references/command-operations.md +4 -4
  40. package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +11 -7
  41. package/package/corpus/skills/cratis-arc-command-typescript/references/identity-and-introspection.md +4 -2
  42. package/package/corpus/skills/cratis-arc-command-typescript/references/observability-and-host-scopes.md +2 -2
  43. package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +3 -3
  44. package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +1 -1
  45. package/package/corpus/skills/cratis-arc-command-typescript/verification.json +2 -2
  46. package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +10 -14
  47. package/package/corpus/skills/cratis-arc-ef-core-migration/LICENSE +6 -0
  48. package/package/corpus/skills/cratis-arc-ef-core-migration/SKILL.md +9 -10
  49. package/package/corpus/skills/cratis-arc-go/SKILL.md +14 -15
  50. package/package/corpus/skills/cratis-arc-go/references/queries.md +2 -2
  51. package/package/corpus/skills/cratis-arc-hosting/SKILL.md +8 -8
  52. package/package/corpus/skills/cratis-arc-hosting/references/integrations-and-publish.md +11 -11
  53. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +3 -3
  54. package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +13 -13
  55. package/package/corpus/skills/cratis-arc-observable-query-http/verification.json +1 -1
  56. package/package/corpus/skills/cratis-arc-query-kotlin/SKILL.md +2 -3
  57. package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -14
  58. package/package/corpus/skills/cratis-arc-query-typescript/SKILL.md +3 -3
  59. package/package/corpus/skills/cratis-arc-query-typescript/references/storage-observation-and-compliance.md +2 -2
  60. package/package/corpus/skills/cratis-arc-react-page/SKILL.md +10 -14
  61. package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +4 -2
  62. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +7 -7
  63. package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +2 -2
  64. package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +1 -1
  65. package/package/corpus/skills/cratis-arc-react-page/verification.json +0 -2
  66. package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +3 -3
  67. package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +3 -3
  68. package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +1 -2
  69. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +4 -4
  70. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +19 -22
  71. package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +10 -10
  72. package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +36 -36
  73. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/additional-surfaces.md +4 -2
  74. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/client-construction.md +1 -1
  75. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +13 -13
  76. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +10 -10
  77. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +10 -10
  78. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/pinned-generation-delivery.md +7 -5
  79. package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +59 -64
  80. package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +17 -17
  81. package/package/corpus/skills/cratis-chronicle-client-elixir/references/compliance.md +5 -3
  82. package/package/corpus/skills/cratis-chronicle-client-elixir/references/connections.md +15 -11
  83. package/package/corpus/skills/cratis-chronicle-client-elixir/references/event-sources.md +3 -1
  84. package/package/corpus/skills/cratis-chronicle-client-elixir/references/pitfalls.md +4 -4
  85. package/package/corpus/skills/cratis-chronicle-client-elixir/references/projections.md +8 -4
  86. package/package/corpus/skills/cratis-chronicle-client-elixir/references/upgrading.md +19 -19
  87. package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +3 -8
  88. package/package/corpus/skills/cratis-chronicle-client-elixir/verification.json +2 -2
  89. package/package/corpus/skills/cratis-chronicle-client-go/SKILL.md +16 -18
  90. package/package/corpus/skills/cratis-chronicle-client-go/references/projections.md +2 -2
  91. package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +61 -58
  92. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +9 -10
  93. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +6 -6
  94. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/event-sources.md +4 -2
  95. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +4 -4
  96. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/options.md +1 -1
  97. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +24 -24
  98. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +6 -5
  99. package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -20
  100. package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +4 -4
  101. package/package/corpus/skills/cratis-chronicle-client-typescript/references/testing.md +1 -1
  102. package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +4 -3
  103. package/package/corpus/skills/cratis-chronicle-client-typescript/verification.json +2 -2
  104. package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +9 -9
  105. package/package/corpus/skills/cratis-chronicle-decision-reads/SKILL.md +11 -10
  106. package/package/corpus/skills/cratis-chronicle-decision-reads/references/admission-and-ownership.md +1 -1
  107. package/package/corpus/skills/cratis-chronicle-decision-reads/references/choosing-how-a-rule-holds.md +5 -6
  108. package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +7 -7
  109. package/package/corpus/skills/cratis-chronicle-event-constraints/references/closing-streams.md +1 -1
  110. package/package/corpus/skills/cratis-chronicle-event-specifications/SKILL.md +6 -6
  111. package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +12 -10
  112. package/package/corpus/skills/cratis-chronicle-event-type-migration/references/pinned-generations.md +2 -3
  113. package/package/corpus/skills/cratis-chronicle-hosting/SKILL.md +7 -7
  114. package/package/corpus/skills/cratis-chronicle-hosting/references/operations.md +5 -5
  115. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +6 -6
  116. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +5 -5
  117. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -10
  118. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +29 -29
  119. package/package/corpus/skills/cratis-chronicle-multi-tenancy/SKILL.md +9 -9
  120. package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -14
  121. package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +3 -5
  122. package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +2 -4
  123. package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +1 -3
  124. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +15 -19
  125. package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +1 -1
  126. package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +10 -8
  127. package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +16 -15
  128. package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +8 -8
  129. package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +7 -7
  130. package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +3 -3
  131. package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +14 -13
  132. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +11 -12
  133. package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +6 -6
  134. package/package/corpus/skills/cratis-code-review/SKILL.md +13 -17
  135. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +3 -3
  136. package/package/corpus/skills/cratis-components-common-controls/SKILL.md +15 -15
  137. package/package/corpus/skills/cratis-components-data-surfaces/SKILL.md +29 -29
  138. package/package/corpus/skills/cratis-components-schema-editor/SKILL.md +4 -4
  139. package/package/corpus/skills/cratis-components-schema-editor/references/tree-layout.md +1 -1
  140. package/package/corpus/skills/cratis-components-stepper-command-dialog/SKILL.md +6 -6
  141. package/package/corpus/skills/cratis-components-styling/LICENSE +6 -0
  142. package/package/corpus/skills/cratis-components-styling/SKILL.md +5 -4
  143. package/package/corpus/skills/cratis-components-toolbar/SKILL.md +5 -5
  144. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +2 -2
  145. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +3 -3
  146. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +1 -1
  147. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +4 -4
  148. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +19 -24
  149. package/package/corpus/skills/cratis-fundamentals-concept/references/shop-generation.md +10 -10
  150. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-concepts.md +8 -8
  151. package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +10 -11
  152. package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +18 -18
  153. package/package/corpus/skills/cratis-fundamentals-telemetry/verification.json +1 -1
  154. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +4 -4
  155. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +19 -19
  156. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +27 -27
  157. package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +12 -12
  158. package/package/corpus/skills/cratis-performance-review/SKILL.md +8 -10
  159. package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -1
  160. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +30 -28
  161. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +8 -8
  162. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
  163. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +3 -1
  164. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +1 -14
  165. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +6 -4
  166. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -6
  167. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +11 -12
  168. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -3
  169. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
  170. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +22 -20
  171. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +1 -1
  172. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +9 -10
  173. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +1 -1
  174. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +3 -4
  175. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +0 -4
  176. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +16 -15
  177. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +17 -17
  178. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +8 -8
  179. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +8 -12
  180. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +31 -29
  181. package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +5 -5
  182. package/package/corpus/skills/cratis-screenplay-command-surface/references/operations.md +2 -2
  183. package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +3 -3
  184. package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +10 -10
  185. package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +9 -7
  186. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -5
  187. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +14 -15
  188. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
  189. package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +1 -1
  190. package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +2 -2
  191. package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +3 -3
  192. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -17
  193. package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +2 -2
  194. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
  195. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +11 -12
  196. package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -2
  197. package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +0 -4
  198. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
  199. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +4 -4
  200. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +34 -21
  201. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +18 -12
  202. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +7 -7
  203. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +1 -1
  204. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +4 -4
  205. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +24 -29
  206. package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md +1 -2
  207. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +44 -51
  208. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +31 -36
  209. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +56 -63
  210. package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +11 -10
  211. package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +15 -15
  212. package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +25 -21
  213. package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +16 -31
  214. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +5 -4
  215. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
  216. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +3 -3
  217. package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +3 -4
  218. package/package/corpus/skills/cratis-screenplay-model-review/references/public-keys-and-routes.md +1 -1
  219. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +7 -5
  220. package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +2 -2
  221. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +11 -12
  222. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +2 -2
  223. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -1
  224. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +8 -10
  225. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +6 -6
  226. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +2 -2
  227. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
  228. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +3 -3
  229. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +1 -1
  230. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +11 -22
  231. package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +1 -1
  232. package/package/corpus/skills/cratis-screenplay-projections/verification.json +0 -1
  233. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +16 -29
  234. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +14 -18
  235. package/package/corpus/skills/cratis-screenplay-read-surface/references/guarded-actions.md +5 -7
  236. package/package/corpus/skills/cratis-screenplay-read-surface/references/named-keys.md +6 -6
  237. package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +1 -1
  238. package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +1 -2
  239. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +18 -19
  240. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
  241. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -6
  242. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +4 -4
  243. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -6
  244. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -3
  245. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
  246. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +13 -15
  247. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -1
  248. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -2
  249. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +4 -6
  250. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +4 -4
  251. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +3 -3
  252. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -9
  253. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +5 -5
  254. package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +0 -1
  255. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +12 -14
  256. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +4 -4
  257. package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +6 -4
  258. package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +4 -2
  259. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
  260. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +37 -40
  261. package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +10 -15
  262. package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +14 -12
  263. package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +1 -1
  264. package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +9 -10
  265. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +5 -6
  266. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +8 -9
  267. package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +13 -16
  268. package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +15 -13
  269. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -9
  270. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +29 -29
  271. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +18 -15
  272. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -15
  273. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
  274. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +19 -17
  275. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +3 -3
  276. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +1 -1
  277. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +2 -2
  278. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +2 -3
  279. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -0
  280. package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
  281. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -28
  282. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +21 -26
  283. package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md +3 -3
  284. package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
  285. package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +10 -10
  286. package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +23 -30
  287. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +4 -5
  288. package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +1 -5
  289. package/package/corpus/skills/cratis-security-review/SKILL.md +8 -10
  290. package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +18 -16
  291. package/package/corpus/skills/cratis-specification-by-example/SKILL.md +1 -1
  292. package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +26 -29
  293. package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +8 -8
  294. package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +2 -2
  295. package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +6 -4
  296. package/package/corpus/skills/cratis-specifications-csharp/references/shared-lifecycle.md +6 -2
  297. package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +2 -2
  298. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -4
  299. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +1 -1
  300. package/package/corpus/skills/guiding-refactoring-with-code-health/SKILL.md +1 -1
  301. package/package/corpus/skills/prioritizing-technical-debt/SKILL.md +1 -1
  302. package/package/corpus/skills/risk-based-testing-with-code-health/SKILL.md +3 -3
  303. package/package/corpus/skills/safeguarding-ai-generated-code/SKILL.md +1 -1
  304. package/package.json +1 -1
  305. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +0 -15
  306. package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +0 -13
@@ -13,30 +13,30 @@ For services and kernel contributors using Orleans. This is library-consumer gui
13
13
 
14
14
  ## Verified product sources
15
15
 
16
- All Orleans claims below are source reads from **Cratis/Orleans v1.16.3**.
16
+ All Orleans claims below come from `Cratis/Orleans` source.
17
17
 
18
- | Packages | Version | Sources |
19
- | --- | --- | --- |
20
- | `Cratis.Orleans`, `Cratis.Orleans.Storage` | `1.16.3` | `Source/Orleans/Jobs/{Job.cs,Job.Steps.cs,Job.Stages.cs,JobStep.cs,IJobsManager.cs,JobsOptions.cs}`; `Source/Orleans.Storage/Jobs/*` |
21
- | `Cratis.Orleans.Storage.MongoDB`, `Cratis.Orleans.Storage.Sql` | `1.16.3` | `Source/Orleans.Storage.MongoDB/{MongoDBJobsStorageOptions.cs,DatabaseNames.cs}`; `Source/Orleans.Storage.Sql/{SqlJobsStorage.cs,SqlJobsStorageOptions.cs,Jobs/Migrations/v1_0_0.cs}` |
22
- | `Cratis.Orleans.Chronicle` | `1.16.3` | `Source/Orleans.Chronicle/StateMachines/EventSourcedStateMachine.cs:19-40,77-94,128-176`; [state-machine reference](references/state-machines.md) |
18
+ | Packages | Sources |
19
+ | --- | --- |
20
+ | `Cratis.Orleans`, `Cratis.Orleans.Storage` | `Source/Orleans/Jobs/{Job.cs,Job.Steps.cs,Job.Stages.cs,JobStep.cs,IJobsManager.cs,JobsOptions.cs}`; `Source/Orleans.Storage/Jobs/*` |
21
+ | `Cratis.Orleans.Storage.MongoDB`, `Cratis.Orleans.Storage.Sql` | `Source/Orleans.Storage.MongoDB/{MongoDBJobsStorageOptions.cs,DatabaseNames.cs}`; `Source/Orleans.Storage.Sql/{SqlJobsStorage.cs,SqlJobsStorageOptions.cs,Jobs/Migrations/v1_0_0.cs}` |
22
+ | `Cratis.Orleans.Chronicle` | `Source/Orleans.Chronicle/StateMachines/EventSourcedStateMachine.cs`; [state-machine reference](references/state-machines.md) |
23
23
 
24
24
  The API snippets cite their exact files and lines below. Product docs `Documentation/concepts/{jobs,storage-scopes,state-machines,event-sourced-state-machines}.md` supply the task vocabulary; source resolves contradictions.
25
25
 
26
26
  ## 1. Choose a job, not a detached task
27
27
 
28
- A job plans recoverable work; each step is a grain and does the work. Use it for work that must outlive a request. It is **at-least-once**, not exactly-once: a step interrupted before a durable checkpoint can perform the same work again. Protect external effects with receiver-owned idempotency/deduplication; a checkpoint does not atomically commit an external write (`JobStep.cs:47-56`, `JobsOptions.cs:34-59`).
28
+ A job plans recoverable work; each step is a grain and does the work. Use it for work that must outlive a request. It is **at-least-once**, not exactly-once: a step interrupted before a durable checkpoint can perform the same work again. Protect external effects with receiver-owned idempotency/deduplication; a checkpoint does not atomically commit an external write (`JobStep.cs`, `JobsOptions.cs`).
29
29
 
30
- - Job: derive `Job<TRequest, TJobState>`; the request is a class implementing `IJobRequest`, the state derives `JobState` (`Job.cs:23-25`). Implement `PrepareSteps(TRequest)` returning `Task<IImmutableList<JobStepDetails>>` (`Job.Steps.cs:63-87`).
31
- - Step: derive `JobStep<TRequest, TResult, TState>`; state derives `JobStepState`. Its constructor receives `[PersistentState(nameof(JobStepState), WellKnownGrainStorageProviders.JobSteps)] IPersistentState<TState>`, `IJobStepThrottle`, and `ILogger<JobStep<TRequest, TResult, TState>>` (`JobStep.cs:27-32`).
32
- - Implement `PrepareStep(TRequest)` → `Task<Result<PrepareJobStepError>>`; `InitializeState(TRequest)` → `ValueTask`, called after preparation succeeds; and `PerformStep(TState, CancellationToken)` → `Task<Catch<JobStepResult>>` (`JobStep.cs:350-387`). `TResult` is the step's result type; the work method returns the framework's `JobStepResult` envelope, not `TResult` directly.
33
- - Give the concrete job and step unique `[GrainType("product-specific-name")]` names. Use serializable request/state/result types. Do not reuse a class-derived grain name across assemblies (`Jobs/JobsManager.cs:31`, `Documentation/how-to/host-the-silo.md`, and `orleans.md`).
30
+ - Job: derive `Job<TRequest, TJobState>`; the request is a class implementing `IJobRequest`, the state derives `JobState` (`Job.cs`). Implement `PrepareSteps(TRequest)` returning `Task<IImmutableList<JobStepDetails>>` (`Job.Steps.cs`).
31
+ - Step: derive `JobStep<TRequest, TResult, TState>`; state derives `JobStepState`. Its constructor receives `[PersistentState(nameof(JobStepState), WellKnownGrainStorageProviders.JobSteps)] IPersistentState<TState>`, `IJobStepThrottle`, and `ILogger<JobStep<TRequest, TResult, TState>>` (`JobStep.cs`).
32
+ - Implement `PrepareStep(TRequest)` → `Task<Result<PrepareJobStepError>>`; `InitializeState(TRequest)` → `ValueTask`, called after preparation succeeds; and `PerformStep(TState, CancellationToken)` → `Task<Catch<JobStepResult>>` (`JobStep.cs`). `TResult` is the step's result type; the work method returns the framework's `JobStepResult` envelope, not `TResult` directly.
33
+ - Give the concrete job and step unique `[GrainType("product-specific-name")]` names. Use serializable request/state/result types. Do not reuse a class-derived grain name across assemblies (`Jobs/JobsManager.cs`, `Documentation/how-to/host-the-silo.md`, and `orleans.md`).
34
34
 
35
- `PerformStep` runs **outside the activation context** with a state snapshot obtained through the grain reference. Mutating that snapshot does not persist it; do not access/write grain `State` directly from background work (`JobStep.cs:375,390-450`). Keep progress/state coordination on grain calls. Since 1.16.2 the framework owns stop reporting; do not report cancellation again from a `PerformWork` override (`:390-450`, `Documentation/concepts/jobs.md:117-120`).
35
+ `PerformStep` runs **outside the activation context** with a state snapshot obtained through the grain reference. Mutating that snapshot does not persist it; do not access/write grain `State` directly from background work (`JobStep.cs`). Keep progress/state coordination on grain calls. Requires Cratis.Orleans 1.16.2 for framework-owned stop reporting; there, do not report cancellation again from a `PerformWork` override (`Documentation/concepts/jobs.md`).
36
36
 
37
37
  ## 2. Plan dependencies as stages
38
38
 
39
- Default steps all use `JobStepStage.First`. Prefer independent fan-out. Use stages only when correctness requires earlier work to finish (`Job.Stages.cs:20-44`).
39
+ Default steps all use `JobStepStage.First`. Prefer independent fan-out. Use stages only when correctness requires earlier work to finish (`Job.Stages.cs`).
40
40
 
41
41
  Planning excerpt inside an existing `Job<RecoveryRequest, RecoveryState>`. It assumes `RecoveryRequest : IJobRequest`, `RecoveryState : JobState`, and the two existing grain interfaces `IRepairIndex` and `IRebuildCatalog`, each deriving a typed `IJobStep<,,>`:
42
42
 
@@ -52,31 +52,31 @@ protected override Task<IImmutableList<JobStepDetails>> PrepareSteps(RecoveryReq
52
52
  ]);
53
53
  ```
54
54
 
55
- Import `System.Collections.Immutable` and `Cratis.Orleans.Jobs` in that job file. `CreateStep<TStep>` takes the **grain interface**, not the implementation (`Job.Steps.cs:69-79`). Its stage overload accepts `JobStepStage`, with implicit integer conversion (`Source/Orleans.Storage/Jobs/Stages/JobStepStage.cs`).
55
+ Import `System.Collections.Immutable` and `Cratis.Orleans.Jobs` in that job file. `CreateStep<TStep>` takes the **grain interface**, not the implementation (`Job.Steps.cs`). Its stage overload accepts `JobStepStage`, with implicit integer conversion (`Source/Orleans.Storage/Jobs/Stages/JobStepStage.cs`).
56
56
 
57
- Every step in a stage reaches an outcome before later stages start; steps within a stage run in parallel. All steps are prepared up front, so later-stage preparation cannot read the effects of earlier-stage execution. Read such dependencies in `PerformStep` (`Job.Stages.cs:27-33`).
57
+ Every step in a stage reaches an outcome before later stages start; steps within a stage run in parallel. All steps are prepared up front, so later-stage preparation cannot read the effects of earlier-stage execution. Read such dependencies in `PerformStep` (`Job.Stages.cs`).
58
58
 
59
- A failed stage stops the pipeline by default: later steps become `Unreachable`, and the job completes with failures. A best-effort stage may override `GetFailureBehaviorFor(JobStepStage)` to return `JobStageFailureBehavior.ContinueWithNextStage` (`Job.Stages.cs:40-44,152-194`, namespace `Cratis.Orleans.Jobs.Stages`). Do not silently continue when a later stage relies on the failed output.
59
+ A failed stage stops the pipeline by default: later steps become `Unreachable`, and the job completes with failures. A best-effort stage may override `GetFailureBehaviorFor(JobStepStage)` to return `JobStageFailureBehavior.ContinueWithNextStage` (`Job.Stages.cs`, namespace `Cratis.Orleans.Jobs.Stages`). Do not silently continue when a later stage relies on the failed output.
60
60
 
61
61
  ## 3. Start and resume through the scoped manager
62
62
 
63
- `IGrainFactory.GetJobsManager(scope, namespace)` resolves the manager (`JobsManagerExtensions.cs:18-19`). `IJobsManager.Start<TJob,TRequest>(request)` returns `Result<JobId, StartJobError>`; inspect its error before telling a caller that a job started (`IJobsManager.cs:37-52`). Start success is not completed work; observe the job's status/outcomes.
63
+ `IGrainFactory.GetJobsManager(scope, namespace)` resolves the manager (`JobsManagerExtensions.cs`). `IJobsManager.Start<TJob,TRequest>(request)` returns `Result<JobId, StartJobError>`; inspect its error before telling a caller that a job started (`IJobsManager.cs`). Start success is not completed work; observe the job's status/outcomes.
64
64
 
65
- `IJobsManager.Resume(JobId)` returns **`Task<bool>`**. False means nothing took the job; do not wait for a completion callback as though resumption succeeded. True can mean resumed, already running, or finalized as completed (`IJobsManager.cs:54-64`). `Rehydrate()` completes after loading/preparing interrupted jobs, **before** its bounded background drain has resumed them all (`:15-28`).
65
+ `IJobsManager.Resume(JobId)` returns **`Task<bool>`**. False means nothing took the job; do not wait for a completion callback as though resumption succeeded. True can mean resumed, already running, or finalized as completed (`IJobsManager.cs`). `Rehydrate()` completes after loading/preparing interrupted jobs, **before** its bounded background drain has resumed them all.
66
66
 
67
- `StartStepsInBackground` defaults to false. Overriding it to true makes Start return once the job is durable, moving step preparation/start to the grain's next turn. Later startup errors belong to the job, not the Start response (`Job.cs:74-87,395-427`).
67
+ `StartStepsInBackground` defaults to false. Overriding it to true makes Start return once the job is durable, moving step preparation/start to the grain's next turn. Later startup errors belong to the job, not the Start response (`Job.cs`).
68
68
 
69
69
  ## 4. Know what storage retains
70
70
 
71
- Successful jobs clear themselves by default; override `KeepAfterCompleted` to retain job state. Jobs completed with failures default to `KeepAfterCompletedWithFailures = true`, but retention cleanup still applies (`Job.cs:58-71`, `JobsOptions.cs:80-97`).
71
+ Successful jobs clear themselves by default; override `KeepAfterCompleted` to retain job state. Jobs completed with failures default to `KeepAfterCompletedWithFailures = true`, but retention cleanup still applies (`Job.cs`, `JobsOptions.cs`).
72
72
 
73
- **Keeping a job does not keep successful step state.** The step provider deletes successful/removing state, moves failed state to failed-step storage, and saves stopped/scheduled/running/unreachable state (`JobStepGrainStorageProvider.cs:64-84`). SQL keeps failed step rows with a failure status rather than a separate collection (`Source/Orleans.Storage.Sql/Jobs/JobStepStorage.cs`, `MoveToFailed`). Copy results the job must retain through `OnStepCompletedOrStopped(JobStepId, JobStepResult)` into job state (`Job.Steps.cs:49-55,110-117`); do not read deleted successful step state later.
73
+ **Keeping a job does not keep successful step state.** The step provider deletes successful/removing state, moves failed state to failed-step storage, and saves stopped/scheduled/running/unreachable state (`JobStepGrainStorageProvider.cs`). SQL keeps failed step rows with a failure status rather than a separate collection (`Source/Orleans.Storage.Sql/Jobs/JobStepStorage.cs`, `MoveToFailed`). Copy results the job must retain through `OnStepCompletedOrStopped(JobStepId, JobStepResult)` into job state (`Job.Steps.cs`); do not read deleted successful step state later.
74
74
 
75
- Deliver external callbacks to a method on the **job's grain interface**, update job state there and persist it with `WriteState()`. Preserve the returned `Catch` failure; do not acknowledge input whose write failed (`Job.State.cs:13-25`, `WriteState`; `Documentation/concepts/jobs.md:122-164`). Step state is not a callback inbox: a concurrent callback can race the final write, and successful completion deletes it. A running step's snapshot will not see later job/step writes automatically.
75
+ Deliver external callbacks to a method on the **job's grain interface**, update job state there and persist it with `WriteState()`. Preserve the returned `Catch` failure; do not acknowledge input whose write failed (`Job.State.cs`, `WriteState`; `Documentation/concepts/jobs.md`). Step state is not a callback inbox: a concurrent callback can race the final write, and successful completion deletes it. A running step's snapshot will not see later job/step writes automatically.
76
76
 
77
77
  ## 5. Register storage and budget concurrency
78
78
 
79
- `IJobsStorage.GetFor(scope, namespace)` returns `JobsStorage`. Scope and namespace are opaque engine coordinates carried in grain keys; the host/provider owns their mapping (`Source/Orleans.Storage/Jobs/IJobsStorage.cs`, `Job.cs:120-125`). They are storage boundaries, not authorization checks.
79
+ `IJobsStorage.GetFor(scope, namespace)` returns `JobsStorage`. Scope and namespace are opaque engine coordinates carried in grain keys; the host/provider owns their mapping (`Source/Orleans.Storage/Jobs/IJobsStorage.cs`, `Job.cs`). They are storage boundaries, not authorization checks.
80
80
 
81
81
  Choose one storage registration alongside `AddCratisOrleans`:
82
82
 
@@ -86,11 +86,11 @@ Choose one storage registration alongside `AddCratisOrleans`:
86
86
  | `AddCratisOrleansSqlJobsStorage` | `.Storage.Sql` / `Cratis.Orleans.Setup` | Durable EF Core; `OptionsResolver(scope, namespace)` selects typed `DbContextOptions<JobsDbContext>` |
87
87
  | `AddCratisOrleansInMemoryJobsStorage` | `.Storage` / `Cratis.Orleans.Storage` | Specs/development only; process restart loses state |
88
88
 
89
- Evidence: each package's `*JobsStorageServiceCollectionExtensions.cs`; MongoDB `DatabaseNames.cs` and `MongoDBJobsStorageOptions.cs`; SQL `SqlJobsStorageOptions.cs:15-27`; in-memory `InMemory/InMemoryJobsStorage.cs`.
89
+ Evidence: each package's `*JobsStorageServiceCollectionExtensions.cs`; MongoDB `DatabaseNames.cs` and `MongoDBJobsStorageOptions.cs`; SQL `SqlJobsStorageOptions.cs`; in-memory `InMemory/InMemoryJobsStorage.cs`.
90
90
 
91
- ### SQL schema contradiction resolved
91
+ ### SQL schema creation
92
92
 
93
- The product's SQL setup docs say to create the schema yourself. **At v1.16.3 the provider applies migrations automatically**: `SqlJobsStorage.GetFor` calls `EnsureSchema`, which calls `dbContext.Database.Migrate()` before constructing storage (`Source/Orleans.Storage.Sql/SqlJobsStorage.cs:33-49,58-74`). The migration is `Jobs/Migrations/v1_0_0.cs`; do not substitute `EnsureCreated` or hand-create those tables. The connection needs permissions to apply the migration, and scope-to-database mapping must be deliberate. Storage is cached per scope/namespace; `IJobsStorage.Reset()` clears the cache and the next resolution migrates again (`SqlJobsStorage.cs:52-56`). This resolves the documentation conflict from source, not from a release-note inference.
93
+ The product's SQL setup docs say to create the schema yourself. **the provider applies migrations automatically**: `SqlJobsStorage.GetFor` calls `EnsureSchema`, which calls `dbContext.Database.Migrate()` before constructing storage (`Source/Orleans.Storage.Sql/SqlJobsStorage.cs`). The migration is `Jobs/Migrations/v1_0_0.cs`; do not substitute `EnsureCreated` or hand-create those tables. The connection needs permissions to apply the migration, and scope-to-database mapping must be deliberate. Storage is cached per scope/namespace; `IJobsStorage.Reset()` clears the cache and the next resolution migrates again (`SqlJobsStorage.cs`). This resolves the documentation conflict from source, not from a release-note inference.
94
94
 
95
95
  Configure `JobsOptions` through the host's options registration. Its properties are **init-only**: supply a constructed instance via the options mechanism rather than assigning them in a `Configure(options => options.Property = …)` callback (`JobsOptions.cs`).
96
96
 
@@ -106,7 +106,7 @@ Configure `JobsOptions` through the host's options registration. Its properties
106
106
  | `TerminalJobRetention` | `7 days` | Terminal history retention; `Timeout.InfiniteTimeSpan` retains indefinitely |
107
107
  | `MaxTerminalJobsPerCleanup` | `100` | Bounded oldest-first cleanup page |
108
108
 
109
- Source: `JobsOptions.cs:17-109`. The three concurrency options for starts/rehydration/cleanup treat values below one as one. Retention does not delete preparing/running/stopped/removing jobs. Larger checkpoint intervals mean more post-crash redelivery, not higher delivery guarantees.
109
+ Source: `JobsOptions.cs`. The three concurrency options for starts/rehydration/cleanup treat values below one as one. Retention does not delete preparing/running/stopped/removing jobs. Larger checkpoint intervals mean more post-crash redelivery, not higher delivery guarantees.
110
110
 
111
111
  ## State machines and verification
112
112
 
@@ -3,11 +3,11 @@
3
3
 
4
4
  # Grain lifecycle state machines
5
5
 
6
- Verified from **Cratis/Orleans v1.16.3**. Use explicit states when entering/leaving a status has behavior; an enum is enough for a status with no behavior. Do not put long-running work on a grain turn just because `OnEnter` is available.
6
+ Source: `Cratis/Orleans`. Use explicit states when entering/leaving a status has behavior; an enum is enough for a status with no behavior. Do not put long-running work on a grain turn just because `OnEnter` is available.
7
7
 
8
8
  ## Stored lifecycle
9
9
 
10
- `StateMachine<TStoredState>` derives from a stateful grain. Override `InitialState` and `CreateStates()`; states derive `State<TStoredState>`. `AllowedTransitions` is an immutable list of target types, or override `CanTransitionTo<TTargetState>(storedState)` for a guard (`Source/Orleans/StateMachines/StateMachine.cs:63-67,120-192`; `State.cs:17-34`).
10
+ `StateMachine<TStoredState>` derives from a stateful grain. Override `InitialState` and `CreateStates()`; states derive `State<TStoredState>`. `AllowedTransitions` is an immutable list of target types, or override `CanTransitionTo<TTargetState>(storedState)` for a guard (`Source/Orleans/StateMachines/StateMachine.cs`; `State.cs`).
11
11
 
12
12
  Declaration excerpt for an existing grain file with `ProcessState : StateMachineState`, the existing `IProcess` grain interface, and a registered `processes` grain storage provider:
13
13
 
@@ -44,21 +44,21 @@ public class Finished : State<ProcessState>;
44
44
 
45
45
  Split types into their house-style files in the consumer; the block collects declarations to show the API. Do not copy the `processes` provider name into Chronicle's kernel; use its registered constants.
46
46
 
47
- A refused transition is a **no-op**, not an exception or a successful change. An unknown target throws `UnknownStateTypeInStateMachine`. The machine runs leaving hooks, `OnLeave`, entering hooks, `OnEnter`, then persistence (`StateMachine.cs:162-169,222-290`). Transitions requested while entering are scheduled; transitions while leaving throw `TransitioningDuringOnLeaveIsNotSupported`.
47
+ A refused transition is a **no-op**, not an exception or a successful change. An unknown target throws `UnknownStateTypeInStateMachine`. The machine runs leaving hooks, `OnLeave`, entering hooks, `OnEnter`, then persistence (`StateMachine.cs`). Transitions requested while entering are scheduled; transitions while leaving throw `TransitioningDuringOnLeaveIsNotSupported`.
48
48
 
49
- When stored state derives `StateMachineState`, `CurrentState` stores the state's full type name; activation resolves it, enters it again, and can repeat enter effects. Renames need a stored-value migration; an unknown recorded name throws `UnknownCurrentState` (`StateMachine.cs:183-191,261-264`). A self-transition with the **same state instance** skips persistence: return a new stored-state instance when a self-transition must write (`:266-272`).
49
+ When stored state derives `StateMachineState`, `CurrentState` stores the state's full type name; activation resolves it, enters it again, and can repeat enter effects. Renames need a stored-value migration; an unknown recorded name throws `UnknownCurrentState` (`StateMachine.cs`). A self-transition with the **same state instance** skips persistence: return a new stored-state instance when a self-transition must write.
50
50
 
51
- For externally owned storage, the protected constructor accepts `Orleans.Core.IStorage<TStoredState>` and reads it on activation before the activation hook. Override `ResolveActivationState()` to derive lifecycle from authoritative state instead of persisting a second status (`:39-51,68-95,172-192`).
51
+ For externally owned storage, the protected constructor accepts `Orleans.Core.IStorage<TStoredState>` and reads it on activation before the activation hook. Override `ResolveActivationState()` to derive lifecycle from authoritative state instead of persisting a second status.
52
52
 
53
53
  ## Lifecycle following Chronicle facts
54
54
 
55
- `EventSourcedStateMachine<TModel>` from `Cratis.Orleans.Chronicle.StateMachines` uses a Chronicle read model as authoritative state. Its interface derives `IEventSourcedStateMachine` (string-keyed). There is **no grain storage provider** to configure and writes are no-ops: `ReadModelStorage<TModel>` reads Chronicle; `ResolveState(TModel?)` derives activation state (`Source/Orleans.Chronicle/StateMachines/EventSourcedStateMachine.cs:19-40,77-94,155-176`; `ReadModelStorage.cs:68-95`).
55
+ `EventSourcedStateMachine<TModel>` from `Cratis.Orleans.Chronicle.StateMachines` uses a Chronicle read model as authoritative state. Its interface derives `IEventSourcedStateMachine` (string-keyed). There is **no grain storage provider** to configure and writes are no-ops: `ReadModelStorage<TModel>` reads Chronicle; `ResolveState(TModel?)` derives activation state (`Source/Orleans.Chronicle/StateMachines/EventSourcedStateMachine.cs`; `ReadModelStorage.cs`).
56
56
 
57
57
  - Define states with `CreateStates()` as above, over `TModel`.
58
- - Define event transitions in `DefineTransitions(IStateMachineTransitions<TModel>)`, using `.On<TEvent>().When(model => predicate).TransitionTo<TState>()`. First applicable allowed transition wins. Make `ResolveState` agree with these transitions after restart (`EventSourcedStateMachine.cs:142-176`, `StateMachineTransitions.cs`).
59
- - Use model-bound projection attributes, an already-discovered projection, or `DefineProjection(IProjectionBuilderFor<TModel>)`, not competing projections. `DefineProjection` and `DefineTransitions` run at startup **without a constructor**: use only the builder, never injected services or fields (`EventSourcedStateMachine.cs:34-37`).
60
- - Register `AddEventSourcedStateMachines()` on `ISiloBuilder` or `IServiceCollection`, beside the application's Chronicle client registration; namespace `Cratis.Orleans.Chronicle.Hosting` (`Hosting/EventSourcedStateMachinesServiceCollectionExtensions.cs:30-55`).
61
- - Grain keys include event store, namespace and event-source ID. Use `IGrainFactory.GetEventSourcedStateMachine<TInterface>(eventStore, eventSourceId)` from `Cratis.Orleans.Chronicle.StateMachines` so tenant coordinates come from the supplied event store (`StateMachines/EventSourcedStateMachineGrainFactoryExtensions.cs:21-52`).
62
- - Prefer passive models. For events consumed by a materialized projection, the reactor waits for its sequence position before refreshing; `ModelCatchUpTimeout` defaults to 30 seconds and expiry fails with `ModelDidNotCatchUp` (`EventSourcedStateMachineReactor.cs:58-89`; `EventSourcedStateMachinesOptions.cs:26`).
58
+ - Define event transitions in `DefineTransitions(IStateMachineTransitions<TModel>)`, using `.On<TEvent>().When(model => predicate).TransitionTo<TState>()`. First applicable allowed transition wins. Make `ResolveState` agree with these transitions after restart (`EventSourcedStateMachine.cs`, `StateMachineTransitions.cs`).
59
+ - Use model-bound projection attributes, an already-discovered projection, or `DefineProjection(IProjectionBuilderFor<TModel>)`, not competing projections. `DefineProjection` and `DefineTransitions` run at startup **without a constructor**: use only the builder, never injected services or fields (`EventSourcedStateMachine.cs`).
60
+ - Register `AddEventSourcedStateMachines()` on `ISiloBuilder` or `IServiceCollection`, beside the application's Chronicle client registration; namespace `Cratis.Orleans.Chronicle.Hosting` (`Hosting/EventSourcedStateMachinesServiceCollectionExtensions.cs`).
61
+ - Grain keys include event store, namespace and event-source ID. Use `IGrainFactory.GetEventSourcedStateMachine<TInterface>(eventStore, eventSourceId)` from `Cratis.Orleans.Chronicle.StateMachines` so tenant coordinates come from the supplied event store (`StateMachines/EventSourcedStateMachineGrainFactoryExtensions.cs`).
62
+ - Prefer passive models. For events consumed by a materialized projection, the reactor waits for its sequence position before refreshing; `ModelCatchUpTimeout` defaults to 30 seconds and expiry fails with `ModelDidNotCatchUp` (`EventSourcedStateMachineReactor.cs`; `EventSourcedStateMachinesOptions.cs`).
63
63
 
64
- This machine **follows facts**, it does not arbitrate whether a command may append one. Keep command rejection and append-time invariants at their owning boundary. Enter/model-change effects may repeat on activation, redelivery or replay: design them idempotently (`Documentation/concepts/event-sourced-state-machines.md:240-247`). Test guards, no-op refusals, reactivation and persistence failures separately from job recovery.
64
+ This machine **follows facts**, it does not arbitrate whether a command may append one. Keep command rejection and append-time invariants at their owning boundary. Enter/model-change effects may repeat on activation, redelivery or replay: design them idempotently (`Documentation/concepts/event-sourced-state-machines.md`). Test guards, no-op refusals, reactivation and persistence failures separately from job recovery.
@@ -18,16 +18,14 @@ storage and replay cost that never goes away.
18
18
 
19
19
  ## Verified product sources
20
20
 
21
- | Package | Version | Purpose |
22
- | --- | --- | --- |
23
- | `Cratis.Chronicle` | `18.3.0` | Observers, projections, reducers, reactors, replay |
24
- | `Cratis.Arc.Core` | `22.75.0` | Query return shapes and server-side paging |
25
- | `@cratis/components` | `4.26.2` | `DataTable` paging surface |
21
+ | Package | Purpose |
22
+ | --- | --- |
23
+ | `Cratis.Chronicle` | Observers, projections, reducers, reactors, replay |
24
+ | `Cratis.Arc.Core` | Query return shapes and server-side paging |
25
+ | `@cratis/components` | `DataTable` paging surface |
26
26
 
27
- > Arc query/paging surface rechecked at v22.75.0; Arc depends on Chronicle
28
- > 19.39.1. Separate Chronicle verification remains version-qualified. Paged
29
- > MongoDB observations now re-read page and total on each change; see the
30
- > read-model query reference for the distinction from unpaged retained sets.
27
+ Paged MongoDB observations re-read page and total on each change; see the
28
+ read-model query reference for the distinction from unpaged retained sets.
31
29
 
32
30
  Reverify against the owning product repository before asserting a framework
33
31
  behavior this file does not already state.
@@ -52,7 +50,7 @@ behavior this file does not already state.
52
50
  received already carries what it needs. (Reactor dispatch is by the handler's
53
51
  first parameter type — the method name is free, so look for the event-typed
54
52
  parameter, not for a method called `On`.)
55
- - **A new projection can replay all historical events without failing.** Ask it
53
+ - **A new projection can replay all earlier events without failing.** Ask it
56
54
  explicitly: at production volume, does this projection complete a full replay?
57
55
  - **Events are small.** No large blob and no base64 payload embedded in an
58
56
  event; put the content elsewhere and carry a reference.
@@ -23,7 +23,7 @@ observable changes from the diff, specs, linked issues/PRs, and authoritative
23
23
  product source at that revision. A PR description is published verbatim as
24
24
  release notes in a Cratis repository; follow its current template and the
25
25
  pull-request contract, and confirm that behavior before drafting. Do not turn
26
- an unreleased draft into a claim about shipped behavior.
26
+ a draft into a claim about shipped behavior.
27
27
 
28
28
  For each change, ask: who uses this path, what happened before, what happens
29
29
  now, is action required, and how would they notice? Check changed defaults,
@@ -15,7 +15,7 @@ protected, what is only recorded, and who acts. Grammar depth is in
15
15
  **Translation crosses an application boundary:** inbound turns outside data or foreign
16
16
  public events into private local facts; outbound publishes private facts as one local public
17
17
  event type. Declare `direction inbound|outbound` when public metadata is used; omission
18
- preserves historical inbound for legacy translations. Private-to-private follow-up is an
18
+ preserves inbound for translations without a declared direction. Private-to-private follow-up is an
19
19
  Automation (`produces` or `invokes`), even when a Chronicle reactor realizes it.
20
20
  Read [public events and direction](references/public-events-and-direction.md) for released
21
21
  ESM v9 forms, event-target folds, publication specifications and the Unsupported capture limit.
@@ -28,19 +28,17 @@ identity, effect and pending-work contract at that point; do not postpone it to
28
28
 
29
29
  ## Tool and realization facts (read before promising anything)
30
30
  - Reactions, clocks, triggers, captures and Automation/Translate slices compile (V1) and bind (V3)
31
- on Screenplay 4.61 or later: the standalone tool and the cratis CLI 3.28.2 or later (3.53.1
32
- bundles 4.137.0). Probed on 3.28.2: the complete examples are `executableReady`. A cratis bundle before 3.28.2
33
- (4.60.1) reported PLAY0268 at binding: report "V3 blocked: PLAY0268 (ESM v6)" and
31
+ as ESM v6: the standalone tool and a CLI whose bundled compiler admits v6. A compiler that
32
+ stops before v6 reports PLAY0268 at binding: report "V3 blocked: PLAY0268 (ESM v6)" and
34
33
  name the tool, never remove them.
35
34
  - The pinned standalone tool runs admitted scenarios through `screenplay test` or MCP
36
35
  `run-specifications`; source validation and render publication do not run V4.
37
- - Stage 4.51.3 refuses Automation/Translate members with STAGE-ESM-024; its direct
38
- planner audits through v7. Deliver that scope as authorized gap-fill
36
+ - A renderer can refuse Automation/Translate members (STAGE-ESM-024) it does not realize.
37
+ Deliver that scope as authorized gap-fill
39
38
  (`references/realization-and-gap-fill.md`).
40
39
  - Reaction `runs as system role "<Role>"` declares an invocation actor (ESM v10).
41
- Without it the invoke has no caller. Historical CLI 3.41.0's 4.114.0 compiler
42
- rejected the syntax (PLAY0137); previous CLI 3.46.1 refused ESM v10
43
- at render admission (CLI-RENDER-004). The CLI/Stage pair (toolchain
40
+ Without it the invoke has no caller. A compiler or renderer that stops before v10
41
+ rejects the syntax (PLAY0137) or refuses it at render admission (CLI-RENDER-004). The CLI/Stage pair (toolchain
44
42
  `references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034. Checked model/diagnostics: captures-and-reactions
45
43
  `references/invocation-identity.md`.
46
44
 
@@ -71,20 +69,24 @@ Personal data kept in events needs bare `pii` on its concept and a declared purp
71
69
  even when it blocks binding. Never record bearer tokens, magic links or signed URLs as facts
72
70
  (a keyed hash or reference at most), and never put PII on the event-source id.
73
71
 
74
- ## Verified product sources
75
- Tool versions: toolchain `SKILL.md`. Language claims were re-read at Screenplay v4.139.0,
76
- renderer claims at Stage v4.89.1 (`Documentation/reference/reaction-rendering.md:6-98`,
77
- `Source/Rendering.Cratis/Semantics/SemanticVersionFeatureAdmission.cs:25-46`): supported
78
- event-triggered Automation renders; Translate/captures and refused reactions stay gap-fill. The
79
- runtime facts at Arc v22.72.0 and Chronicle v19.50.1. Older reads kept as history:
80
-
81
- | Package | Version | Used for |
82
- | --- | --- | --- |
83
- | Screenplay | v4.66.0 (`c89198b`) | `Documentation/screenplay/{reactions,captures,triggers,specifications,diagnostics}.md`; examples compiled with the standalone tool |
84
- | cratis CLI | v3.28.3 | bundled Screenplay 4.66.0 and Stage 4.24.2 (before 3.28.2: 4.60.1, which gave PLAY0268 on v6 constructs and a false PLAY0285 on cascades, cli#242) |
85
- | Stage | v4.24.2 | admitted ESM v1 to v4; rendered no Automation or Translate slice |
86
- | Arc | v22.72.0 (read; v22.50.5 earlier) | `ExecuteCommandsAsSystemAttribute` (since v20.56.0); mixed events-and-commands reactor returns (since v22.72.0) |
87
- | Chronicle | v19.50.1 (read; v19.32.0 earlier) | `OnceOnlyAttribute`, `ReactorDelivery`, `Documentation/code-analysis/CHR0022.mdx` and `Documentation/reactors/delivery-identity.mdx` |
72
+ ## Product sources
73
+ Tool versions: toolchain `SKILL.md`. Language claims come from Screenplay
74
+ `Documentation/screenplay/{reactions,captures,triggers,specifications,diagnostics}.md`;
75
+ renderer claims from Stage `Documentation/reference/reaction-rendering.md`: supported
76
+ event-triggered Automation renders; Translate/captures and refused reactions stay gap-fill.
77
+ Runtime facts: Arc `ExecuteCommandsAsSystemAttribute` and mixed events-and-commands reactor
78
+ returns; Chronicle `OnceOnlyAttribute`, `ReactorDelivery`, `Documentation/code-analysis/CHR0022.mdx`
79
+ and `Documentation/reactors/delivery-identity.mdx`.
80
+
81
+ Requires Screenplay 4.125.0 or later (`screenplay --version`) for reaction `runs as system role` (ESM v10).
82
+
83
+ Requires Arc 20.56.0 or later for `[ExecuteCommandsAsSystem]`.
84
+
85
+ Requires Arc 22.72.0 or later for a reactor that returns events and commands together; before it, a mixed return is not handled. Stage still refuses a reaction that both `produces` and `invokes` (`STAGE-ESM-037`), so a mixed reaction stays authorized gap-fill whatever the Arc release.
86
+
87
+ Requires Screenplay 4.105.0 or later (`screenplay --version`) for list queries (`=> Item[]`); before it a list query is refused with PLAY0268.
88
+
89
+ Requires Screenplay 4.124.0 or later (`screenplay --version`) for `--check privilege` (PLAY0652).
88
90
 
89
91
  Read `SKILL.md` in `cratis-screenplay-toolchain` when selecting a tool; read the installed versions with `screenplay --version` and `cratis --version`. Reverify before claiming
90
92
  another version behaves the same.
@@ -141,7 +143,7 @@ or actor that nobody confirmed. Read `references/worked-integration.md` when you
141
143
  system principal only to reactors marked `[ExecuteCommandsAsSystem]`; without
142
144
  it there is no principal and `[Authorize]`/`[Roles]` deny. `runs as` covers returned
143
145
  or invoked commands, not imperative pipeline calls, reads, productions or causation.
144
- On Screenplay 4.127.0 run `--check privilege --warnaserror` (PLAY0652) for
146
+ Run `--check privilege --warnaserror` (PLAY0652) for
145
147
  confused-deputy paths: every trigger-event producer must require **all** declared
146
148
  system roles. Ungated commands/captures/reaction productions warn; opaque gates
147
149
  are information, not proven safe. An OR alternative does not require a role.
@@ -160,7 +162,7 @@ or actor that nobody confirmed. Read `references/worked-integration.md` when you
160
162
  named cases to `cratis-screenplay-scenario-coverage`. Produce the audit in `references/audit-format.md`.
161
163
 
162
164
  ## Rules
163
- **Compiler contracts** (diagnostics at 4.66.0)
165
+ **Compiler contracts** (diagnostics)
164
166
  - No inline `produces event` in a reaction (PLAY0474); declare reaction-produced events in the slice.
165
167
  - Effects sit under a trigger; `description`, `where` and current `runs as` are reaction-level; one `where` per
166
168
  reaction (PLAY0252); a trigger may not repeat (PLAY0253).
@@ -171,7 +173,7 @@ or actor that nobody confirmed. Read `references/worked-integration.md` when you
171
173
  separate binder check.
172
174
  - A trigger with `reads` that `produces` directly fails binding: decide in a command. `reads` never protects.
173
175
  - An authorized command exercised in a spec without `given caller` is PLAY0389 at binding.
174
- - A list query (`=> Item[]`) binds (Screenplay 4.105.0+; a snapshot list is not rendered, `STAGE-ESM-010`);
176
+ - A list query (`=> Item[]`) binds (a snapshot list is not rendered, `STAGE-ESM-010`);
175
177
  a clock sweep that iterates items needs a code body the reference does not run
176
178
  (`references/todo-list-example.md`).
177
179
 
@@ -203,8 +205,8 @@ direct effect states "not applicable: no queue" with its reason (per-chain quest
203
205
  Never report a verdict without the tool and version that produced it.
204
206
 
205
207
  ## Verify
206
- - V1 and V3 per `cratis-screenplay-toolchain`, each with tool and version. On a cratis before 3.28.2
207
- bundle report "V3 blocked: PLAY0268 (ESM v6)". Current admitted scenarios use
208
+ - V1 and V3 per `cratis-screenplay-toolchain`, each with tool and version. When the bundled compiler stops before v6,
209
+ report "V3 blocked: PLAY0268 (ESM v6)". Current admitted scenarios use
208
210
  standalone `screenplay test`/MCP for V4; unsupported or unbound is not passed.
209
211
  - For each external source and type: its translation, or an explicit out-of-scope reason; check
210
212
  target-field completeness as well as source-field dispositions.
@@ -13,7 +13,7 @@
13
13
  - 9. Fan-out
14
14
  - 10. Long-running process shapes
15
15
 
16
- Complete compiled example: `todo-list-example.md` (binds on Screenplay 4.66.0 and later; the list query
16
+ Complete compiled example: `todo-list-example.md` (binds as ESM v6; the list query
17
17
  excerpt binds too, and the retry sweep that needs code is shown as a marked excerpt).
18
18
 
19
19
  ## 1. Deciding whether it is an automation
@@ -45,11 +45,11 @@ Outcomes:
45
45
  - A projection that adds an item `from <OpeningFact>` and removes it with
46
46
  `remove with <ClosingFact>`. Several facts may open or close; they need not match one to one.
47
47
  - A keyed query (`…ById => Item optional` + `by itemId`) for specs and executable scope; a
48
- list query for the visible queue (`=> Item[]` binds since Screenplay 4.105.0; a snapshot list is refused by Stage, `STAGE-ESM-010`).
48
+ list query for the visible queue (`=> Item[]` binds on Screenplay 4.105.0 or later; a snapshot list is refused by Stage, `STAGE-ESM-010`).
49
49
  - A reaction `when <OpeningFact>` that invokes the command producing the closing fact.
50
50
  The trigger may `reads` the item view to document its input; that is not protection.
51
51
  - A retry sweep on a clock reads the whole view (no `by` on clock reads). Iterating its items
52
- declaratively (`for each <View>`) is reserved syntax; at Screenplay 4.139.0 the sweep needs a code body,
52
+ declaratively (`for each <View>`) is reserved syntax; the sweep needs a code body,
53
53
  which the reference never runs. Durable fan-out is outside the language (Screenplay#286).
54
54
  - Specify the list as a small story: empty -> item present (`then query …ById`) -> closed
55
55
  (`when append <Closing>` + `then no readmodel … for`), plus "not opened" for facts that
@@ -69,13 +69,13 @@ When a todo list is not needed: the effect is immediate, internal and cannot fai
69
69
  | caller | n/a | declared reaction `runs as` actor (ESM v10), otherwise none |
70
70
 
71
71
  ## 4. The actor behind an invoke
72
- Screenplay 4.125.0 declares the actor with reaction-level `runs as system role
72
+ The actor is declared with reaction-level `runs as system role
73
73
  "<Role>"` (ESM v10); without it a gated invocation has no caller and denies.
74
74
  `given caller` is not an invocation actor. Role requirements remain enforced;
75
- claim conditions for this system principal remain unknown. Historical CLI 3.41.0's
76
- older compiler rejected the syntax (PLAY0137). The CLI/Stage pair (toolchain
75
+ claim conditions for this system principal remain unknown. A compiler that stops before v10
76
+ rejects the syntax (PLAY0137). The CLI/Stage pair (toolchain
77
77
  `references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034.
78
- Previous CLI 3.46.1 refused v10 at its version gate.
78
+ A renderer that stops before v10 refuses it at its version gate.
79
79
  Use the checked model in captures-and-reactions `references/invocation-identity.md`.
80
80
  Arc gap-fill uses `[ExecuteCommandsAsSystem("<role>")]` for returned commands,
81
81
  not identity inferred from prose or an imperative pipeline call.
@@ -90,7 +90,7 @@ Decide and record one of:
90
90
  should refuse it.
91
91
  3. **Gated command + declared trusted actor** - keep the service-role policy and
92
92
  declare matching `runs as system role` on the reaction. Reference-test the
93
- scenario with standalone 4.125.0; separately record CLI/Stage target refusal.
93
+ scenario with a standalone compiler that admits v10; separately record CLI/Stage target refusal.
94
94
  A missing actor must not be excused by removing the gate or inventing a caller.
95
95
  Never remove an existing gate only to make a reaction spec pass.
96
96
  Omitting an HTTP route is not an authorization proof: the exposure requirement stays a target
@@ -16,7 +16,7 @@ One spec in the slice does not cover the others.
16
16
  | queue opens / closes | item appears, item disappears | `then query …ById`; `when append <Closing>` + `then no readmodel … for` |
17
17
  | already done | trigger re-delivered after the result exists | `given <Result>` + `when <Command>` -> `then error "<fixed constraint message>"` |
18
18
  | invoked command rejects | validation or constraint refuses | command spec in its StateChange slice; record what the queue shows afterwards |
19
- | no declared actor | invoked command is gated | specify its denial; for the trusted path declare reaction `runs as system role` and reference-test with standalone 4.125.0 |
19
+ | no declared actor | invoked command is gated | specify its denial; for the trusted path declare reaction `runs as system role` and reference-test with a standalone compiler that admits v10 |
20
20
  | clock boundary | due exactly at the instant, just before, just after | `given clock` + `when clock`; boundary semantics are contested in the docs, mark the expectation as an assumption |
21
21
  | each branch | does every filter and conditional production have both outcomes? | concrete triggering and non-triggering values; assert the resulting facts or view |
22
22
  | denied actor | every command and query under an inherited module/feature `authorize` needs its own denial; also, can an unauthorized caller reach a gated invoked command by another origin? | command spec with otherwise-valid inputs, `given caller` carrying the wrong role/claim (or no caller) and `then denied`; separate from the caller-less reaction gap |
@@ -61,9 +61,9 @@ One spec in the slice does not cover the others.
61
61
  - Current admitted Automation/Translate specifications run through standalone
62
62
  `screenplay test` or MCP `run-specifications`. Validate/render alone is not V4;
63
63
  report unsupported/unbound separately from passing scenarios.
64
- - With Screenplay 4.66.0 (standalone or cratis 3.28.2), a command spec lists the cascade (v6 semantics: after
65
- `when <Command>`, `then` lists every new fact, including reaction appends). Only when a
66
- cratis before 3.28.2 bundle (4.60.1) is the V1 tool does it report a false PLAY0285 on a cascade (cli#242):
64
+ - A command spec lists the cascade (v6 semantics: after
65
+ `when <Command>`, `then` lists every new fact, including reaction appends). Only when the V1
66
+ tool's compiler stops before v6 does it report a false PLAY0285 on a cascade:
67
67
  then keep the cascade out of the command spec, specify it in the Automation slice
68
68
  (`when append <Trigger>`) and record the expectation. See `cratis-screenplay-scenario-coverage`.
69
69
  - `given capture` never persists between specs: state the baseline in each spec that needs it.
@@ -27,13 +27,15 @@ key; write a reconciliation case.
27
27
 
28
28
  ## Refusal disposition and redelivery
29
29
 
30
- At Screenplay 4.125.0 an invocation can state ordered `on refused` selectors for
30
+ An invocation can state ordered `on refused` selectors for
31
31
  validation, constraint (optionally named) or explicit authorization denial.
32
32
  Bare refusal does not include authorization. A matching branch declares a fact
33
33
  or leaf `acknowledge`; `$refusal.reason`/`.message` are String details and
34
34
  `.constraint` belongs only to constraint selectors. This is **authoring-only**
35
35
  (PLAY0268), not evidence that a duplicate was safely acknowledged at runtime.
36
36
 
37
+ Requires Screenplay 4.81.0 or later (`screenplay --version`) for `on refused` selectors and `$refusal` values.
38
+
37
39
  Recovery syntax `when redelivered <Event> to <Reaction>` selects exactly one
38
40
  existing given occurrence; it is not append or replay. `then no events` makes a
39
41
  no-new-facts contract explicit but remains unadmitted too. Full selectors,
@@ -22,7 +22,7 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
22
22
 
23
23
  | Source file | Used in | How |
24
24
  |---|---|---|
25
- | `.claude/skills/eventmodeling-designing-automation-chains/SKILL.md`: resolve the chain when introduced; exhaustive per-automation verification | `SKILL.md` intro and "Gate", `references/audit-format.md` | restored from #493; the six verification questions adapted closely as "Per-chain questions", translated to Screenplay (no board, no `validate_model`) |
25
+ | `.claude/skills/eventmodeling-designing-automation-chains/SKILL.md`: resolve the chain when introduced; exhaustive per-automation verification | `SKILL.md` intro and "Gate", `references/audit-format.md` | the six verification questions adapted closely as "Per-chain questions", translated to Screenplay (no board, no `validate_model`) |
26
26
  | same: pending membership not status; opening and closing events | `references/automation-patterns.md` section 2, `references/audit-format.md` question 6 | adapted closely; our todo-list example kept |
27
27
  | same: worker only for a new decision; redundant second stage and the `Synced` tell | `references/automation-patterns.md` section 7 "Redundant second stage" | adapted closely, marina berth example in place of Martin Dilger and Nebulit GmbH's |
28
28
  | same: silently skipping a missing target | `SKILL.md` "Gate", `references/audit-format.md` | idea inverted: an absent target is an unresolved dependency |
@@ -35,19 +35,6 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
35
35
  ## Carried forward
36
36
  `references/automation-patterns.md`, `translation-patterns.md`, `effects-and-idempotency.md`,
37
37
  `cases-to-specify.md` and both examples come from the earlier Cratis drafts of this skill.
38
- Changes in this version: the examples are complete fenced documents that compile (the translate
39
- example's anonymous-booking spec gained the `given caller` PLAY0389 requires; the todo-list
40
- example's list query, `reads` and retry sweep moved to marked design-only excerpts so the core
41
- binds); tool-qualified verdict text; the trusted-actor text now names `[ExecuteCommandsAsSystem]`
42
- (Arc v20.56.0). Actor syntax was reverified at Screenplay v4.125.0
43
- `reactions.md`, `ReactionIdentityParser.cs`, `ReactionRefusalValidator.cs` and the
44
- binder's v10 selection; the checked scenario passed reference execution. CLI
45
- 3.41.0's older parser and Stage 4.51.3's v7 planner were historical target limits.
46
- Previous CLI 3.46.1 refused v10 at its version gate. The CLI/Stage pair
47
- (toolchain `references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain
48
- STAGE-ESM-034 (Stage `v4.89.1:Documentation/reference/reaction-rendering.md:57-59`).
49
- Public/direction forms and routes/filters follow Screenplay v4.135.0 decisions
50
- 0049–0051 and 0060–0066, not the older inbound-only translation scope.
51
38
 
52
39
  ## Eventmodelers Build-Kits
53
40
 
@@ -117,17 +117,19 @@ Keep correlation and resulting private events in the model and report the runtim
117
117
 
118
118
  ## Admission and evidence
119
119
 
120
- ESM v9 shipped in Screenplay 4.117.0 and is selected only by use of public events,
120
+ ESM v9 shipped and is selected only by use of public events,
121
121
  origins, direction, event-target builders or events-source captures. At 4.135.0,
122
122
  publication reference scenarios execute; imported shapes still refuse binding.
123
123
  Stage 4.52.0 (previous CLI 3.46.1, history) audited only through v7. The CLI/Stage pair (toolchain `references/renderable-subset.md`)
124
124
  reaches construct admission through v15 but still refuses publication (STAGE-ESM-032), foreign
125
125
  events/events-source captures (STAGE-ESM-033); source admission is not rendering.
126
126
 
127
- Source: Screenplay `v4.135.0:Documentation/screenplay/fixtures/public-events.play`,
127
+ Requires Screenplay 4.117.0 or later (`screenplay --version`) for public events (ESM v9).
128
+
129
+ Source: Screenplay `Documentation/screenplay/fixtures/public-events.play`,
128
130
  `events.md`, `slices.md`, `captures.md`, decisions 0049–0051 and
129
131
  `Source/DotNET/Screenplay.CanonicalCorpus/PublicEventsCorpus.cs`.
130
- Renderer source: Stage `v4.52.0:Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.cs`
131
- and `v4.67.0:Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs`.
132
+ Renderer source: Stage `Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.cs`
133
+ and `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs`.
132
134
  Diagnostics and repairs: toolchain `references/diagnostics.md`; version allocation:
133
135
  toolchain `references/executable-subset.md`.
@@ -5,15 +5,14 @@ the automation-and-translation addendum to `cratis-screenplay-render-and-gap-fil
5
5
  skill for the admission, publication and ownership rules.
6
6
 
7
7
  ## Stage rendering versus gap-fill
8
- CLI 3.57.0 / Stage 4.89.1 render supported event-triggered Automation slices as Chronicle
8
+ The CLI and Stage render supported event-triggered Automation slices as Chronicle
9
9
  reactors. Translate/captures, non-event triggers and opaque bodies remain `STAGE-ESM-024`;
10
10
  Claim-reading/opaque `runs as` gates (`-034`), legacy `from` (`-035`), mixed effects (`-037`), unsupported mappings (`-039`)
11
11
  and protected destinations (`-040`) also remain refused. Command specs that cascade into
12
12
  reactions remain `-011`; supported single-hop append specs now render, as do semantic
13
13
  reaction `from` and role/authenticated system identities. Only refused scope is hand-written delivery with the model as
14
- its contract. Source: Stage `v4.89.1:Documentation/reference/reaction-rendering.md:6-98`;
15
- full admission: `cratis-stage-rendering-and-sandbox` `references/admission.md`. (History: cratis
16
- 3.28.2 and 3.28.3 refused such a model whole with `STAGE-ESM-016`, and 3.27.1 stopped earlier with PLAY0268.)
14
+ its contract. Source: Stage `Documentation/reference/reaction-rendering.md`;
15
+ full admission: `cratis-stage-rendering-and-sandbox` `references/admission.md`.
17
16
 
18
17
  A reaction that both `produces` events and `invokes` commands stays one modeled reaction. Hand-write one
19
18
  retry-safe reactor: the scaffold already includes Arc's mixed-result handler, but it appends
@@ -27,13 +26,13 @@ with `cratis-screenplay-render-and-gap-fill`.
27
26
  | Model element | Realization | Skill |
28
27
  |---|---|---|
29
28
  | reaction `when <Event>` with `invokes` or `produces` | Chronicle reactor returning commands or events | `cratis-chronicle-reactor` |
30
- | trusted actor for `invokes` | `[ExecuteCommandsAsSystem("<role>")]` on the reactor plus a policy requiring the role (Arc, since v20.56.0; available in Stage 4.51.3's rendered Arc 22.50.5) | `cratis-chronicle-reactor` |
29
+ | trusted actor for `invokes` | `[ExecuteCommandsAsSystem("<role>")]` on the reactor plus a policy requiring the role (Arc; see the Requires line below) | `cratis-chronicle-reactor` |
31
30
  | clock trigger, application trigger | scheduler or host signal that raises the occurrence | `cratis-engineering-effect-boundaries` |
32
31
  | call to an outside system | adapter behind an effect boundary, keyed by the idempotency key in the model | `cratis-engineering-effect-boundaries` |
33
32
  | capture source (webhook, poll, topic) | adapter that authenticates (the provider's signature or shared secret, never an application user token, because the provider cannot obtain one), parses and appends, keeping the provider's retry identity | `cratis-engineering-effect-boundaries` |
34
33
  | replay versus recovery redelivery | `[OnceOnly]` for replay; a receipt keyed by `ReactorDelivery.Id` for recovery | `cratis-chronicle-reactor` |
35
34
 
36
- Stage 4.51.3 rendered apps pin Arc 22.50.5/Chronicle 19.32.0, so
35
+ Rendered apps pin their own Arc and Chronicle releases, so
37
36
  `[ProtectedDecision]` and `DecisionRead<T>` are available to gap-fill, not
38
37
  Stage-emitted enforcement. Admit the projection/key and enroll the read in the
39
38
  active unit of work; never edit managed `Directory.Packages.props`.
@@ -5,17 +5,15 @@
5
5
  - Design-only additions
6
6
 
7
7
  A complete model: a result opens a work item, a reaction invokes a command, the command's fact
8
- closes the item. It binds on Screenplay 4.66.0 (`executableReady: true`), standalone and through `cratis screenplay mcp`
9
- 3.28.2. Historical rendering: 3.28.2 refused the whole model (`STAGE-ESM-016`),
10
- Stage 4.73.1 the reaction (`-024`). Stage 4.89.1 renders supported event reactions,
11
- but this model's clock/cascade specs remain refused (`-024`/`-011`); keep them intact. The cratis 3.27.1 bundle (4.60.1)
12
- rejected the Automation slice at binding with PLAY0268. Versions: `cratis-screenplay-toolchain` `SKILL.md`.
8
+ closes the item. It binds as ESM v6 (`executableReady: true`), standalone and through `cratis screenplay mcp`.
9
+ Stage renders supported event reactions, but this model's clock/cascade specs remain
10
+ refused (`-024`/`-011`); keep them intact. A compiler that stops before v6 rejects the
11
+ Automation slice at binding with PLAY0285 or PLAY0268. Versions: `cratis-screenplay-toolchain` `SKILL.md`.
13
12
 
14
13
  The first spec lists the whole cascade (`then` names every new fact: `CoursePassed`, and
15
14
  `CertificateSent` through the reaction), and `given clock` supplies the instant that
16
- `$context.occurred` needs. Both 4.66.0 tools accept that cascade; the cratis 3.27.1 bundle reported a false PLAY0285 on it
17
- (cli#242). These specs were not
18
- run in that historical probe; current admitted scenarios can be run with
15
+ `$context.occurred` needs. Both tools accept that cascade when they admit v6; an older compiler reports a false PLAY0285 on it.
16
+ Current admitted scenarios can be run with
19
17
  standalone `screenplay test` or MCP `run-specifications`.
20
18
 
21
19
  What the model proves and what it does not:
@@ -27,7 +25,7 @@ What the model proves and what it does not:
27
25
  - The actor behind `SendCertificate` is a recorded security decision in the `Certification`
28
26
  module `description`: this example declares no reaction identity, so its
29
27
  invocations remain caller-less. A gated trusted path can instead declare
30
- `runs as system role` on 4.125.0 (ESM v10), with separate CLI/Stage refusal.
28
+ `runs as system role` (ESM v10), with separate CLI/Stage refusal.
31
29
  - Report reference outcomes only after executing the selected scenarios.
32
30
 
33
31
  ```screenplay expect PLAY0469,PLAY0516
@@ -190,11 +188,12 @@ module Certification
190
188
  ## Design-only additions
191
189
 
192
190
  Two things a real queue often wants stay out of the complete model above: a list query (the
193
- visible queue) and a retry sweep that reads the whole view. The list query binds (Screenplay 4.105.0
194
- or later; it was PLAY0268 at 4.66.0, and Stage refuses a snapshot list); the sweep needs a code body the
195
- reference does not run, and durable per-item fan-out is outside the language (Screenplay#286). Say so
191
+ visible queue) and a retry sweep that reads the whole view. The list query binds (Stage refuses a snapshot list); the sweep needs a code body the
192
+ reference does not run, and durable per-item fan-out is outside the language. Say so
196
193
  in the verdict.
197
194
 
195
+ Requires Screenplay 4.105.0 or later (`screenplay --version`) for the list query; before it the list query is refused with PLAY0268.
196
+
198
197
  ```screenplay excerpt parent=assets/pending-certificates.play
199
198
  // Parent: the complete document above, slice StateView CertificatesToSend.
200
199
  query PendingCertificates => PendingCertificate[]
@@ -2,9 +2,9 @@
2
2
 
3
3
  A complete model: a webhook record from an outside proctoring service is captured, kept as an
4
4
  external fact in the provider's vocabulary, then translated by reactions into our facts. It
5
- binds on Screenplay 4.66.0 (`executableReady: true`), standalone and through `cratis screenplay mcp`
6
- 3.28.2; the cratis 3.27.1 bundle (Screenplay 4.60.1) compiled it (V1) but rejected the Translate
7
- slice at binding (PLAY0268). `cratis render` refuses it (3.28.2: whole, `STAGE-ESM-016`; Stage 4.73.1: `STAGE-ESM-024`).
5
+ binds as ESM v6 (`executableReady: true`), standalone and through `cratis screenplay mcp`; a
6
+ compiler that stops before v6 compiles it (V1) but rejects the Translate slice at binding
7
+ (PLAY0268). `cratis render` refuses it (`STAGE-ESM-016` or `STAGE-ESM-024`, by renderer).
8
8
 
9
9
  Read the slice `description`: it is the per-field disposition (map, translate, ignore) and it
10
10
  states what this example does not do. Examples never show the whole integration contract; use