@cratis/pi 7.14.1 → 7.14.3

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 (197) hide show
  1. package/package/corpus/agents/security-reviewer.md +2 -1
  2. package/package/corpus/rules/concepts.md +13 -7
  3. package/package/corpus/rules/glossary.md +2 -1
  4. package/package/corpus/rules/vertical-slices.md +5 -4
  5. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +11 -2
  6. package/package/corpus/skills/cratis-application-slice-conformance/references/build-prompts.md +8 -0
  7. package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +10 -6
  8. package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +1 -1
  9. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +11 -7
  10. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +12 -2
  11. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +16 -1
  12. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +7 -0
  13. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +9 -0
  14. package/package/corpus/skills/cratis-arc-command/SKILL.md +24 -16
  15. package/package/corpus/skills/cratis-arc-command/references/command-result.md +7 -0
  16. package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +10 -3
  17. package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +1 -1
  18. package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +5 -1
  19. package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +12 -0
  20. package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +10 -3
  21. package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +20 -116
  22. package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +11 -8
  23. package/package/corpus/skills/cratis-arc-command-typescript/references/command-specifications.md +63 -0
  24. package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +10 -0
  25. package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +38 -0
  26. package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +19 -0
  27. package/package/corpus/skills/cratis-arc-command-typescript/verification.json +1 -1
  28. package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +1 -1
  29. package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -10
  30. package/package/corpus/skills/cratis-arc-react-page/SKILL.md +30 -19
  31. package/package/corpus/skills/cratis-arc-react-page/references/data-page.md +11 -0
  32. package/package/corpus/skills/cratis-arc-react-page/references/data-tables.md +10 -0
  33. package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +12 -10
  34. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +10 -0
  35. package/package/corpus/skills/cratis-arc-react-page/references/mvvm.md +11 -0
  36. package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +7 -0
  37. package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +58 -122
  38. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +26 -0
  39. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +22 -0
  40. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +31 -0
  41. package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +52 -131
  42. package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +19 -0
  43. package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +73 -0
  44. package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +29 -232
  45. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +20 -0
  46. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +44 -0
  47. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +33 -0
  48. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +54 -0
  49. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +77 -0
  50. package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -102
  51. package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +23 -0
  52. package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +63 -0
  53. package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +11 -2
  54. package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +2 -2
  55. package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +13 -13
  56. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +1 -1
  57. package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -4
  58. package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +10 -0
  59. package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +14 -6
  60. package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +9 -0
  61. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +7 -49
  62. package/package/corpus/skills/cratis-chronicle-reactor/references/domain-failures.md +19 -0
  63. package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +33 -0
  64. package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +2 -2
  65. package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +11 -0
  66. package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +1 -0
  67. package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +1 -1
  68. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +24 -24
  69. package/package/corpus/skills/cratis-content-length/SKILL.md +1 -1
  70. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +12 -0
  71. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +19 -19
  72. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +10 -0
  73. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +10 -0
  74. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +5 -0
  75. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +15 -0
  76. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +9 -4
  77. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +1 -2
  78. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +8 -0
  79. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +1 -2
  80. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +10 -0
  81. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +4 -4
  82. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +1 -1
  83. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +18 -18
  84. package/package/corpus/skills/cratis-performance-review/SKILL.md +1 -1
  85. package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -0
  86. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +29 -4
  87. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +16 -4
  88. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +4 -15
  89. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +6 -2
  90. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +1 -6
  91. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +45 -245
  92. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/capture-map-and-example.md +42 -0
  93. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +155 -0
  94. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +27 -0
  95. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/trigger-reads-example.md +21 -0
  96. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +70 -221
  97. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +10 -0
  98. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +51 -0
  99. package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +62 -0
  100. package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +46 -0
  101. package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +36 -0
  102. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +11 -11
  103. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +10 -3
  104. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -6
  105. package/package/corpus/skills/cratis-screenplay-discovery/references/human-workshop.md +13 -0
  106. package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +8 -0
  107. package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +11 -0
  108. package/package/corpus/skills/cratis-screenplay-discovery/references/storming-loop.md +7 -0
  109. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +75 -198
  110. package/package/corpus/skills/cratis-screenplay-event-modeling/references/file-layout.md +89 -0
  111. package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +26 -0
  112. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +14 -1
  113. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +8 -0
  114. package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +10 -0
  115. package/package/corpus/skills/cratis-screenplay-event-modeling/references/slice-type-rules.md +12 -0
  116. package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +12 -6
  117. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +5 -6
  118. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/candidate-inventory.md +11 -0
  119. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +8 -0
  120. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/side-car-migration.md +11 -0
  121. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +1 -1
  122. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +33 -10
  123. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +8 -0
  124. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +13 -17
  125. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +11 -0
  126. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +9 -9
  127. package/package/corpus/skills/cratis-screenplay-model-review/references/business-questions.md +9 -0
  128. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +16 -1
  129. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +9 -0
  130. package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +9 -0
  131. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +17 -8
  132. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/handoff-template.md +8 -0
  133. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -6
  134. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +19 -0
  135. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/safety.md +1 -1
  136. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +11 -1
  137. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +2 -2
  138. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +3 -4
  139. package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +8 -0
  140. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +2 -2
  141. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
  142. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +1 -1
  143. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +1 -1
  144. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +8 -0
  145. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +10 -10
  146. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/coverage-matrix.md +8 -0
  147. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +4 -0
  148. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +17 -0
  149. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +10 -0
  150. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-workshop.md +11 -0
  151. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +12 -0
  152. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
  153. package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +7 -0
  154. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +8 -0
  155. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +16 -0
  156. package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +10 -0
  157. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +52 -360
  158. package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +34 -0
  159. package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +77 -0
  160. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +39 -0
  161. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +72 -0
  162. package/package/corpus/skills/cratis-screenplay-specifications/references/worked-example.md +110 -0
  163. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +6 -6
  164. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +23 -3
  165. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +13 -0
  166. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +3 -3
  167. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -20
  168. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +16 -0
  169. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +13 -7
  170. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +10 -0
  171. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +1 -1
  172. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +12 -2
  173. package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +1 -1
  174. package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +2 -2
  175. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +1 -1
  176. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +1 -1
  177. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +10 -0
  178. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +15 -5
  179. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +11 -13
  180. package/package/corpus/skills/cratis-screenplay-ui-composition/references/flow-review.md +1 -1
  181. package/package/corpus/skills/cratis-security-review/SKILL.md +13 -8
  182. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +10 -10
  183. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +12 -0
  184. package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +13 -2
  185. package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +10 -10
  186. package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +10 -0
  187. package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +9 -0
  188. package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +1 -2
  189. package/package/corpus/skills/cratis-specifications-typescript/references/typescript-patterns.md +11 -1
  190. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +30 -21
  191. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +9 -0
  192. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +5 -0
  193. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +2 -4
  194. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +2 -2
  195. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +39 -39
  196. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +10 -0
  197. package/package.json +1 -1
@@ -0,0 +1,72 @@
1
+ ## Reactions and cascades (ESM v6)
2
+
3
+ From ESM v6 every action sets reactions off: after a command, an append, a clock
4
+ tick, a trigger or a capture record, each new fact runs the reactions to its event,
5
+ and what those append or invoke runs more, until nothing is left. `then` events
6
+ compare every new fact, the action's and the reactions'.
7
+
8
+ ```screenplay
9
+ concept InvoiceId : Uuid
10
+ module Collections
11
+ feature Invoices
12
+ slice StateChange SendInvoice
13
+ command SendInvoice
14
+ invoiceId InvoiceId identifier
15
+ produces InvoiceSent
16
+ for invoiceId
17
+ invoiceId = invoiceId
18
+ event InvoiceSent
19
+ invoiceId InvoiceId
20
+ specification SendingAnInvoiceSchedulesAReminder
21
+ given clock "2026-10-02T09:00:00Z"
22
+ when SendInvoice
23
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
24
+ then InvoiceSent
25
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
26
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
27
+ then ReminderScheduled
28
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
29
+ scheduledAt = "2026-10-02T09:00:00Z"
30
+ slice Automation Reminders
31
+ reaction ReminderScheduler
32
+ description "Schedules a reminder when an invoice is sent"
33
+ when InvoiceSent
34
+ invoiceId
35
+ produces ReminderScheduled
36
+ for invoiceId
37
+ scheduledAt = $context.occurred
38
+ event ReminderScheduled
39
+ scheduledAt DateTime
40
+ ```
41
+
42
+ - A specification whose action is a command goes in the slice that declares that
43
+ command, here `SendInvoice`, not in the `Automation` slice that reacts: a command
44
+ from another slice is `PLAY0273` "command is unresolved in its slice" at binding.
45
+ - A command a reaction `invokes` runs through its full pipeline **with no caller**.
46
+ A command that needs one rejects, and that rejection ends the scenario. Each
47
+ invoked command is atomic; the cascade is not, so earlier accepted facts stay.
48
+ There is no syntax for an identity (Screenplay#383). See
49
+ `cratis-screenplay-automations-and-translations` and
50
+ `cratis-screenplay-captures-and-reactions`.
51
+ - The clock is UTC and exact. An `every` or `at` occurrence fires once when it is
52
+ due after `given clock` and at or before `when clock`; `when clock` needs
53
+ `given clock`, so the same instant twice fires nothing.
54
+ - A reached reaction with a code body (`file` or inline) returns unsupported, as
55
+ does a reaction that never settles. The reference stops at 1,000 new facts per
56
+ scenario and 10,000 due occurrences per clock advance.
57
+ - A model that uses these forms selects ESM v6 (`schemaVersion: 6`). Stage 4.24.2
58
+ admits ESM v1-v4 and renders no `Automation` or `Translate` slice, so the whole
59
+ automation is gap-fill against this contract: `cratis-screenplay-render-and-gap-fill`.
60
+
61
+ ### Version skew: cascades and the false `PLAY0285` (cratis before 3.28.2)
62
+
63
+ `PLAY0285` (a specification's expected event contradicts every producer of its
64
+ `when` command) runs in the syntax pass, with no binding. Reachability through
65
+ reactions and `invokes` was added after Screenplay 4.60.1. So the example above
66
+ passes `screenplay` 4.68.0 (and is executable-ready over its MCP server) and also passes
67
+ `cratis screenplay validate` 3.28.2 (probed); it failed `cratis screenplay validate` 3.27.1 with
68
+ `PLAY0285` "Specification outcome 'ReminderScheduled' cannot be produced by 'SendInvoice'",
69
+ exit 5 (Cratis/cli#242). If an older bundle still reports it, it is a tool skew, not a
70
+ modeling error: do not delete the `then` line or move the event to make `cratis`
71
+ green. Validate with the standalone tool or a current `cratis`, record which tool gave which
72
+ verdict, and see `cratis-screenplay-toolchain`.
@@ -0,0 +1,110 @@
1
+ ## Contents
2
+
3
+ - Worked example
4
+
5
+ ## Worked example
6
+
7
+ A command with an authorization gate, a validation rule and a uniqueness
8
+ constraint, and a read model fed by its event. The `for` values select ESM v2.
9
+
10
+ ```screenplay
11
+ concept InvoiceId : Uuid
12
+ concept InvoiceNumber : String
13
+ policy IsAccountant
14
+ require role "Accountant"
15
+ module Invoicing
16
+ feature Registration
17
+ slice StateChange RegisterInvoice
18
+ command RegisterInvoice
19
+ invoiceId InvoiceId identifier
20
+ invoiceNumber InvoiceNumber
21
+ authorize IsAccountant
22
+ validate
23
+ invoiceNumber not empty message "Invoice number is required"
24
+ produces event InvoiceRegistered
25
+ invoiceNumber InvoiceNumber = invoiceNumber
26
+ constraint UniqueInvoiceNumber
27
+ unique invoiceNumber on InvoiceRegistered
28
+ specification RegisteringAnInvoice
29
+ given caller
30
+ authenticated
31
+ role "Accountant"
32
+ when RegisterInvoice
33
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
34
+ invoiceNumber = "INV-000123"
35
+ then InvoiceRegistered
36
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
37
+ invoiceNumber = "INV-000123"
38
+ then readmodel InvoiceSummary
39
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
40
+ invoiceNumber = "INV-000123"
41
+ specification RejectingAnEmptyInvoiceNumber
42
+ given caller
43
+ authenticated
44
+ role "Accountant"
45
+ when RegisterInvoice
46
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
47
+ invoiceNumber = ""
48
+ then error "Invoice number is required"
49
+ specification RejectingANumberAnotherInvoiceHolds
50
+ given caller
51
+ authenticated
52
+ role "Accountant"
53
+ given InvoiceRegistered
54
+ for "0f5f5f7f-0f6f-4f47-9f39-5c1f2f0a1a9f"
55
+ invoiceNumber = "INV-000123"
56
+ when RegisterInvoice
57
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
58
+ invoiceNumber = "INV-000123"
59
+ then error
60
+ specification DenyingACallerWithoutTheRole
61
+ given caller
62
+ authenticated
63
+ when RegisterInvoice
64
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
65
+ invoiceNumber = "INV-000123"
66
+ then denied
67
+ specification ProjectingAnAppendedInvoice
68
+ when append InvoiceRegistered
69
+ for "9c858901-8a57-4791-81fe-4c455b099bc9"
70
+ invoiceNumber = "INV-000123"
71
+ then query InvoiceById
72
+ arguments
73
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
74
+ result
75
+ invoiceNumber = "INV-000123"
76
+ slice StateView InvoiceLookup
77
+ readmodel InvoiceSummary
78
+ invoiceId InvoiceId
79
+ invoiceNumber InvoiceNumber
80
+ query InvoiceById => InvoiceSummary optional
81
+ by invoiceId InvoiceId
82
+ projection InvoiceSummaries => InvoiceSummary
83
+ from InvoiceRegistered
84
+ invoiceId = $eventSourceId
85
+ invoiceNumber = invoiceNumber
86
+ specification LookingUpAnExistingInvoice
87
+ given readmodel InvoiceSummary
88
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
89
+ invoiceNumber = "INV-000001"
90
+ when query InvoiceById
91
+ invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
92
+ then result
93
+ invoiceNumber = "INV-000001"
94
+ ```
95
+
96
+ - Inline events are ordinary named facts in `given` and `then`. Assert their
97
+ destination with `for`, not a payload identifier; inline declaration does not
98
+ change fixture or assertion syntax.
99
+ - `RejectingANumberAnotherInvoiceHolds` needs `for`: without it the `given`
100
+ event lands on the command's own event source, and re-claiming your own value
101
+ is not a violation.
102
+ - `ProjectingAnAppendedInvoice` exercises the projection without running the
103
+ command. A `when append` specification may sit in a `StateView` slice, even for an
104
+ event another slice declares, as long as the event's producer gives it one
105
+ unambiguous destination type (binding resolves it from commands in other slices);
106
+ otherwise `for` fails with `PLAY0273`. Only `when <Command>` needs the command's
107
+ own slice.
108
+ - `LookingUpAnExistingInvoice` performs the query as its action. It binds to
109
+ exactly what `then query` with `arguments` and `result` would, so on a version
110
+ before v4.48.0 write it that way instead.
@@ -8,12 +8,12 @@
8
8
  "value": "main `fd18129`"
9
9
  },
10
10
  { "kind": "skill-contains", "value": "Generated fixtures and return expectations (ESM v7)" },
11
- { "kind": "skill-contains", "value": "`then returns` counts as a success outcome but does not relax event comparison" },
12
- { "kind": "skill-contains", "value": "`Unsupported(IdentityAllocation)`" },
11
+ { "kind": "skill-contains", "value": "`then returns` counts as a success outcome but does not relax event comparison", "file": "references/generated-fixtures.md" },
12
+ { "kind": "skill-contains", "value": "`Unsupported(IdentityAllocation)`", "file": "references/generated-fixtures.md" },
13
13
  { "kind": "skill-contains", "value": "4.68.0" },
14
14
  {
15
15
  "kind": "skill-contains",
16
- "value": "Inline events are ordinary named facts"
16
+ "value": "Inline events are ordinary named facts", "file": "references/worked-example.md"
17
17
  },
18
18
  {
19
19
  "kind": "skill-contains",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "kind": "skill-contains",
24
- "value": "query InvoiceById => InvoiceSummary optional"
24
+ "value": "query InvoiceById => InvoiceSummary optional", "file": "references/worked-example.md"
25
25
  },
26
26
  {
27
27
  "kind": "skill-contains",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  {
59
59
  "kind": "skill-contains",
60
- "value": "**`when query` executed. The clock, trigger and capture actions did not.**"
60
+ "value": "**`when query` executed. The clock, trigger and capture actions did not.**", "file": "references/actions-beyond-commands.md"
61
61
  },
62
62
  {
63
63
  "kind": "skill-contains",
@@ -77,7 +77,7 @@
77
77
  },
78
78
  {
79
79
  "kind": "skill-contains",
80
- "value": "Cratis/cli#242"
80
+ "value": "Cratis/cli#242", "file": "references/reactions-and-cascades.md"
81
81
  }
82
82
  ]
83
83
  }
@@ -12,6 +12,25 @@ which it only records, and what a retry, a race or a replay does. Grammar lives
12
12
  skills; this skill owns the decisions. The `.play` model is the source of truth: a rule that
13
13
  lives only in code, or only in a description, is a finding, not a solution.
14
14
 
15
+ **First append into a scope (Chronicle v19.32.0, version-qualified).** The default optimistic
16
+ strategy compares the scope's tail sequence number. When nothing matches the scope yet (the
17
+ first event on a new event source, or the first event of a new source type, stream type or
18
+ stream id), there is no tail and the append is **not checked**: two writers opening the same
19
+ source or narrowed partition can both succeed. This is the append most exposed to a race, so a
20
+ concurrency scope alone does not protect "only one writer may open this". For a target that
21
+ needs it:
22
+ - enable the check, application-wide with `ConcurrencyOptions.CheckFirstAppendIntoAScope`
23
+ (default `false`) or per append with `ConcurrencyScopeBuilder.ExpectingNoMatchingEvent()`,
24
+ and handle the `ConcurrencyViolation` it can now raise; or
25
+ - use a unique event constraint, which the kernel enforces for every writer whether or not the
26
+ append declared a scope (the model's `unique event`).
27
+ Require target evidence that the check ran: a concurrent first-append scenario against a real
28
+ Chronicle, asserting one append wins, one is rejected, and `IAppendResult.ConcurrencyCheckPerformed`
29
+ is `true` (a skipped check and a passing one look identical otherwise; a current client against
30
+ an older kernel always reads `false`). This was source- and documentation-inspected, not
31
+ concurrency-tested here. Stage-rendered apps pin Chronicle client 19.8.1: do not assume these
32
+ APIs exist there; confirm the package version before recommending them.
33
+
15
34
  ## Verified product sources
16
35
 
17
36
  | Product | Pin | Used for |
@@ -100,8 +119,8 @@ option, mark it `ASSUMED` in the slice or module `description` and in the sessio
100
119
  is a fact the business recognises. Different meanings get different events, not a flag with
101
120
  nullable siblings. Event properties are required by default (CHR0012, PLAY0350): an optional
102
121
  detail is a separate event, and any deviation is justified in the description. One data
103
- subject per event and stream; never personal data or a `@pii` concept as the identifier (CHR0034):
104
- use a surrogate `Uuid` and a `@pii` property.
122
+ subject per event and stream; never personal data, a secret, or a `@pii` or `@sensitive` concept as the identifier (CHR0034, CHR0052):
123
+ use a surrogate `Uuid` and a `@pii` or `@sensitive` property.
105
124
  5. **Plan evolution** with `references/evolution.md`: classify each event change (additive,
106
125
  meaning change, rename, removal, split or merge) and write its compatibility scenarios before
107
126
  editing. Renames and other identity-affecting edits are made by the identity owner (the
@@ -186,7 +205,7 @@ Do not report done until all hold; otherwise report what is open:
186
205
  fixed message with `then error`. Report target-side concurrency evidence separately.
187
206
  - Retry answers cover a lost acknowledgement, reuse of the operation identity, conflicting
188
207
  payloads and duplicate intent under a new identity, where applicable.
189
- - Examples that compile (`references/streams-example.md`, `references/evolution-example.md`):
208
+ - Read `references/streams-example.md` when designing stream membership, constraints or a recorded state-dependent rule; read `references/evolution-example.md` when planning a generation, identity-preserving rename or change of event meaning. Examples that compile (`references/streams-example.md`, `references/evolution-example.md`):
190
209
  `bash` the repository's compile check over this skill folder.
191
210
 
192
211
  ## Route near misses
@@ -202,3 +221,4 @@ Do not report done until all hold; otherwise report what is open:
202
221
  ## Lineage
203
222
  Adapted in part from TrogonStack/agentskills (MIT); attribution and provenance entries are in
204
223
  `references/provenance.md`; the notice is in `LICENSE`.
224
+ Read `references/provenance.md` when checking attribution, licenses or the origin of an adapted modeling practice.
@@ -1,5 +1,18 @@
1
1
  # Boundaries: modules, teams and contracts
2
2
 
3
+ ## Contents
4
+
5
+ - Establish the boundary, not an organizational formula
6
+ - Ownership interview
7
+ - Ownership and interface inventory
8
+ - Cross-boundary walkthrough
9
+ - Internal and public events
10
+ - Crossing a boundary in Screenplay
11
+ - Change data capture is not a domain event
12
+ - Check coupling rather than banning every cycle
13
+ - Boundary checklist
14
+ - Review questions
15
+
3
16
  Read when you split, merge or connect modules, or when a fact crosses between owners. Grammar
4
17
  for reactions and translations lives in `cratis-screenplay-automations-and-translations`.
5
18
 
@@ -14,7 +14,7 @@ later); Stage-rendered apps pin Arc 22.25.0 and Chronicle client 19.8.1, so it i
14
14
  there (see `consistency-and-concurrency.md` section 3). Re-check the issues before relying on a
15
15
  constraint in a new release.
16
16
  A concurrency scope's first append is unchecked by default at v19.32.0; see
17
- `consistency-and-concurrency.md` section 4.
17
+ SKILL.md, ‘First append into a scope’.
18
18
 
19
19
  ## Identity, routing and claims
20
20
  Name four things separately: the event store/namespace, the business event-source identity, any
@@ -44,8 +44,8 @@ whether uniqueness and completion are per tenant or genuinely cross-tenant.
44
44
 
45
45
  Decide the data subject before the event and view shape. One data subject per event and per
46
46
  stream; one per read-model instance. Never put PII on the event-source id and never mark the
47
- identifier's concept `@pii`: Chronicle cannot encrypt a source id (analyzer CHR0034). Use a surrogate `Uuid`
48
- identity and carry the sensitive value as a `@pii` property. Bearer tokens, magic links and
47
+ identifier's concept `@pii` or `@sensitive`: Chronicle cannot encrypt a source id (analyzers CHR0034 and CHR0052; Screenplay PLAY0515 reports it from 4.69.1 for `@pii` and 4.84.1 for `@sensitive`, not on the pinned tools). Use a surrogate `Uuid`
48
+ identity and carry the value as a `@pii` property (personal data) or a `@sensitive` property (operational secret). Bearer tokens, magic links and
49
49
  signed URLs are never facts; record a keyed hash or a reference.
50
50
 
51
51
  Redaction (payload replacement keeping the sequence slot) and crypto-erasure serve compliance
@@ -1,5 +1,18 @@
1
1
  # Consistency and concurrency
2
2
 
3
+ ## Contents
4
+
5
+ - 1. Invariant table (fill before writing constraints)
6
+ - 2. Where a rule can be enforced
7
+ - 3. Record each state-dependent rule that the model cannot enforce
8
+ - 4. Concurrency scenarios
9
+ - 5. Three different guarantees (do not conflate)
10
+ - 6. Lost acknowledgements
11
+ - 7. Ordering
12
+ - 8. Projection lag and rebuild
13
+ - 9. Corrections and backdated facts
14
+ - 10. Specification limits (no local spec engine)
15
+
3
16
  Pins: Screenplay v4.66.0, Chronicle v19.32.0, Arc v22.50.5, Stage v4.24.2 (table in `versions.md` of
4
17
  `cratis-screenplay-toolchain`).
5
18
 
@@ -54,7 +67,7 @@ Right: write the rule as stated intent and mark it unenforced.
54
67
  - Decision inputs: the authoritative facts or state.
55
68
  - Missing guarantee: why the construct does not protect the decision.
56
69
  - Race consequence: what two individually plausible commands could jointly violate.
57
- - Intended enforcement: the target mechanism (below), or the options awaiting agreement.
70
+ - Intended enforcement: the target mechanism ("Target realization" below), or the options awaiting agreement.
58
71
  - Business outcome: what a rejected, delayed or compensated request means.
59
72
  - A `STATE.md` row with owner and revisit condition. A general note "some state rules are
60
73
  unsupported" does not replace these per-rule blocks.
@@ -64,7 +77,7 @@ Right: write the rule as stated intent and mark it unenforced.
64
77
  Options to discuss with the domain expert (decide, do not assume):
65
78
  a. **one stream is the boundary**: put the decision on the stream that owns the state (often a
66
79
  different identity choice) and enforce it in the target with a concurrency scope, plus the
67
- first-append check described under "First append into a scope" below (a scope on an empty
80
+ first-append check described under "First append into a scope" in SKILL.md (a scope on an empty
68
81
  source or partition is not checked by default);
69
82
  b. **reservation by identity**: if the scarce things can be named (seat 1..N, slot at 09:00),
70
83
  give each its own identity and use uniqueness, after checking it expresses the invariant;
@@ -112,24 +125,7 @@ Chronicle applies optimistic concurrency to appends by default; the `concurrency
112
125
  narrows the scope (eventSource, sourceType, streamType, streamId, events). It does not bind
113
126
  in the executable model; it documents intent for the target.
114
127
 
115
- **First append into a scope (Chronicle v19.32.0, version-qualified).** The default optimistic
116
- strategy compares the scope's tail sequence number. When nothing matches the scope yet (the
117
- first event on a new event source, or the first event of a new source type, stream type or
118
- stream id), there is no tail and the append is **not checked**: two writers opening the same
119
- source or narrowed partition can both succeed. This is the append most exposed to a race, so a
120
- concurrency scope alone does not protect "only one writer may open this". For a target that
121
- needs it:
122
- - enable the check, application-wide with `ConcurrencyOptions.CheckFirstAppendIntoAScope`
123
- (default `false`) or per append with `ConcurrencyScopeBuilder.ExpectingNoMatchingEvent()`,
124
- and handle the `ConcurrencyViolation` it can now raise; or
125
- - use a unique event constraint, which the kernel enforces for every writer whether or not the
126
- append declared a scope (the model's `unique event`).
127
- Require target evidence that the check ran: a concurrent first-append scenario against a real
128
- Chronicle, asserting one append wins, one is rejected, and `IAppendResult.ConcurrencyCheckPerformed`
129
- is `true` (a skipped check and a passing one look identical otherwise; a current client against
130
- an older kernel always reads `false`). This was source- and documentation-inspected, not
131
- concurrency-tested here. Stage-rendered apps pin Chronicle client 19.8.1: do not assume these
132
- APIs exist there; confirm the package version before recommending them.
128
+ See "First append into a scope" in SKILL.md.
133
129
 
134
130
  ## 5. Three different guarantees (do not conflate)
135
131
  | Guarantee | Meaning | Screenplay evidence |
@@ -1,5 +1,21 @@
1
1
  # Stream patterns
2
2
 
3
+ ## Contents
4
+
5
+ - Identity and event-membership review
6
+ - Interpret the evidence
7
+ - Event meaning is a separate check
8
+ - Contrasting examples
9
+ - Boundary decision tree
10
+ - Red flags that the boundary, not the volume, is wrong
11
+ - Boundary patterns by domain
12
+ - Core rules that bear on stream design
13
+ - Growth and snapshots
14
+ - Short lifecycles
15
+ - Consistency questions per stream
16
+ - Constraint scope and what it implies for stream choice
17
+ - Decision-scoped consistency (note)
18
+
3
19
  A stream in Screenplay is the event source a production lands on: `identifier` on the
4
20
  command, `for <identifier>` on each `produces`, `$eventSourceId` in projections, `for "<id>"`
5
21
  in specifications. Choosing the identifier *is* choosing the stream.
@@ -20,7 +20,7 @@ files is one application: always check the folder, never one file of it.
20
20
 
21
21
  ## Verified product sources
22
22
 
23
- The only version table is `references/versions.md`; other skills point to it.
23
+ When choosing or upgrading a tool, or checking version-specific capabilities, read `references/versions.md`; it is the only version table, and other skills point to it.
24
24
 
25
25
  | Package | Version | Purpose |
26
26
  | --- | --- | --- |
@@ -70,11 +70,13 @@ Re-verify before claiming another version behaves the same.
70
70
  | File argument | follows imports | ignores imports, false PLAY0165 warnings (cli#244, probed on 3.28.2): validate the folder |
71
71
  | MCP | `screenplay mcp <folder>`; 29 tools | `cratis screenplay mcp [root]`; 29 tools; registered by `cratis ai install` |
72
72
 
73
- Exact messages, exit codes and the MCP roots bug: `references/versions.md`.
73
+ Read `references/versions.md` when you need the exact messages, exit codes or the MCP roots bug.
74
+
75
+ MCP calls below use the `screenplay` server declared in `.cratis/ai/mcp-servers.json`, for example `screenplay` → `read-workspace`.
74
76
 
75
77
  ## Verdicts
76
78
 
77
- Independent results, not a ladder. Commands and report format: `references/verdicts.md`.
79
+ Independent results, not a ladder. Read `references/verdicts.md` for the commands and the report format when obtaining or reporting V1–V5 verdicts.
78
80
 
79
81
  | Verdict | Meaning | How |
80
82
  | --- | --- | --- |
@@ -97,12 +99,12 @@ changes with the root folder name.
97
99
  ## Subsets (write from the one your mode needs)
98
100
 
99
101
  - **Design**: every construct family parses; use it to model first. Compiled shapes:
100
- `references/cheat-sheet.md`.
102
+ `references/cheat-sheet.md`. Read [references/cheat-sheet-example.md](references/cheat-sheet-example.md) when you need one complete design-mode document with every construct family.
101
103
  - **Executable** (binds, V3): `references/executable-subset.md`. Keyed optional queries
102
104
  only; no handler (PLAY0268, with or without `implementation`/`hint`); `reads` and
103
105
  `concurrency` do not bind (PLAY0271); no `@pii`; v6 constructs bind on Screenplay 4.61 or
104
106
  later (standalone, and cratis 3.28.2 or later); generated values and `returns` responses bind (ESM v7)
105
- only on standalone 4.68.0 or later (`references/generated-responses-example.md`).
107
+ only on standalone 4.68.0 or later (`references/generated-responses-example.md`). Read [references/executable-example.md](references/executable-example.md) when you need a small StateChange and StateView model that binds executable, [references/pdl-example.md](references/pdl-example.md) when writing projection forms that bind and run, and [references/automation-translate-example.md](references/automation-translate-example.md) when writing Automation and Translate slices (ESM v6).
106
108
  - **Renderable** (V5): `references/renderable-subset.md`. Stage 4.24.2 renders ESM v1 to v4 (evolved events refused, `STAGE-ESM-026`)
107
109
  `StateChange`/`StateView` slices; Automation and Translate are gap-fill (Stage#79), and so are generated values and responses (ESM v7: Stage refuses it with `STAGE-ESM-016`, tracked in Stage#201).
108
110
  - **Event sources, streams and command routes** (and operations): authorable and validatable, but never
@@ -131,7 +133,11 @@ changes with the root folder name.
131
133
  and is not crash-atomic; never retry `apply` after `ApplyOutcomeUnknown`. Loop details:
132
134
  `cratis-screenplay-model-authoring`.
133
135
 
134
- ## Top traps (all 44, with fixes: `references/traps.md`)
136
+ ## Top traps
137
+
138
+ All 44, with fixes: `references/traps.md`. Read `references/traps.md` when diagnosing an unexpected compile, binding, rendering or MCP result.
139
+
140
+ Read [references/diagnostics.md](references/diagnostics.md) when a PLAY, STAGE or CLI-RENDER diagnostic needs its meaning and fix. Read [references/doc-contradictions.md](references/doc-contradictions.md) when the Screenplay documentation and the compiler disagree and you must decide which to trust.
135
141
 
136
142
  1. Clean V1 is not executable: only MCP (V2) or `render` binds.
137
143
  2. Write `for <identifier>` on every `produces`.
@@ -181,4 +187,4 @@ reason; blocked verdicts list codes and keep the protection they blocked on.
181
187
 
182
188
  ## Lineage
183
189
 
184
- Attribution and sources: `references/provenance.md`.
190
+ Read `references/provenance.md` when checking attribution or the sources behind this guidance.
@@ -1,5 +1,15 @@
1
1
  # Diagnostics: meaning -> fix
2
2
 
3
+ ## Contents
4
+
5
+ - Warnings that hide defects (always validate with `--warnings-as-errors`)
6
+ - Not caught at V1 (fail binding: V2/V3, PLAY0273)
7
+ - Silent at every level
8
+ - Consistency errors (V1: the model contradicts itself)
9
+ - Binding (V2 and V3) - see `executable-subset.md` for the full table
10
+ - Frequent errors
11
+ - Render admission (V5): `STAGE-*`, `CLI-RENDER-*`, `STAGE-CRATIS-*`
12
+
3
13
  Authority: Screenplay `Documentation/screenplay/diagnostics.md` and
4
14
  `Source/DotNET/Screenplay/Diagnostics/DiagnosticCodes.cs`. Codes are permanent; match the code,
5
15
  never the message. Severities: E (does not compile), W (compiles; usually an unresolved name),
@@ -27,7 +27,7 @@ read from source or documentation.
27
27
  | 14 | `$causedBy` | not evaluable (#4119), not ESM | showcase only |
28
28
  | 15 | literal keys | `key literal "global"` vs `key "global"` | both compile; prefer `literal` |
29
29
  | 16 | query admission | `D/queries.md:74` now says live, filtered, scoped and performer queries are not admitted | the binder also rejects collection queries and a missing `by`, which stay undocumented [probed] |
30
- | 17 | `@pii` | `D/concepts.md:3,33` "Chronicle applies `@pii` and `@sensitive` rules automatically" | the binder rejects any compliance attribute (PLAY0268); keep it, report V3 blocked. `@sensitive` has no verified portable meaning (Screenplay#384); `@pii` on an event-source identifier is CHR0034 in Chronicle |
30
+ | 17 | `@pii` | `D/concepts.md:3,33` "Chronicle applies `@pii` and `@sensitive` rules automatically" | the binder rejects any compliance attribute (PLAY0268); keep it, report V3 blocked. `@sensitive` means an operational secret (`[Encrypted]` + `[NotAudited]`; Screenplay decision 0034); the pinned tools (standalone 4.68.0, bundle 4.66.0) do **not** report `PLAY0515` (`@pii` from 4.69.1, `@sensitive` from 4.84.1): there only Chronicle catches either attribute on an event-source identifier, at build time of the generated code (CHR0034 for `@pii`, CHR0052 for `@sensitive`) |
31
31
  | 18 | read-model identity | `D/readmodels.md:32` "from the keyed query" | the `by` name must also equal a read-model property (the doc still omits it) |
32
32
  | 19 | `$strings` constraint messages | `D/constraints.md:31` vs `D/internationalization.md:55` | the compiler keeps the key; realization localizes |
33
33
  | 20 | composite key braces | optional in the EBNF; both forms in docs | both fine |
@@ -1,5 +1,15 @@
1
1
  # Executable subset (what binds: V2 and V3)
2
2
 
3
+ ## Contents
4
+
5
+ - Admitted on both compilers
6
+ - Admitted from Screenplay 4.61 (ESM v6): standalone tool and cratis 3.28.2 or later
7
+ - Generated values and responses (ESM v7): standalone 4.68.0 or later only
8
+ - Code attachments (what binds, what never does)
9
+ - Refused (code, reason): fix, or record as a mode gap
10
+ - Not refused, but do not rely on it
11
+ - Never do this to reach V3
12
+
3
13
  What the binder admits, and what it refuses with which code. The answer depends on the
4
14
  compiler version: standalone Screenplay 4.68.0 admits ESM v1 to v7; the 4.66.0 compiler bundled in
5
15
  cratis 3.28.2 and 3.28.3 admits v1 to v6; the 4.60.1 compiler bundled in cratis before 3.28.2 admits v1 to v5.
@@ -142,7 +152,7 @@ bodies still leave their owner non-executable.
142
152
  | --- | --- | --- |
143
153
  | `Automation` or `Translate` slice, `reaction`, `capture`, `trigger`; `given clock`, `when clock`, `when trigger`, `when capture` | PLAY0268 | **cratis before 3.28.2 bundles only** (4.60.1); messages in `versions.md` |
144
154
  | Unquoted `import Other.Contract` | PLAY0268 | external contract import is not bound |
145
- | `@pii` or `@sensitive` on any concept | PLAY0268 | "Concept '<n>' compliance attributes require portable data-subject semantics." Same message at 4.60.1 and 4.66.0. `@sensitive` has no verified portable meaning (Screenplay#384, open) |
155
+ | `@pii` or `@sensitive` on any concept | PLAY0268 | "Concept '<n>' compliance attributes require portable data-subject semantics." Same message at 4.60.1 and 4.66.0. `@sensitive` means an operational secret, rendered `[Encrypted]` + `[NotAudited]` (Screenplay decision 0034) |
146
156
  | `query` returning a collection (`RM[]`), or without exactly one caller-supplied `by` | PLAY0268 | "must declare one caller-supplied 'by' argument" or "must return one optional read model" |
147
157
  | `observable`, `filter`, `scoped to`, `performer` queries | PLAY0268 | "uses delivery, filtering, scope, or implementation behavior outside the first ESM v1 vertical." `observable` goes in the return position (`=> observable RM optional`); as a body line it is PLAY0048 |
148
158
  | `contains` or `starts with` in conditions | PLAY0268 | equality and numeric ordering only |
@@ -186,4 +196,4 @@ bodies still leave their owner non-executable.
186
196
  Do not remove `@pii`, `@sensitive`, `authorize` or policies, list queries, automations or
187
197
  rules a domain needs just to make binding pass. Report `V3 blocked: <codes>` and record the
188
198
  slice in the gap list. A `@pii` or `@sensitive` attribute blocks V3 and rendering, and
189
- `@pii` on an event-source identifier is rejected by Chronicle (CHR0034) in addition.
199
+ either attribute on an event-source identifier is not reported by the pinned tools (`PLAY0515` ships for `@pii` in Screenplay 4.69.1 and for `@sensitive` in 4.84.1); only Chronicle rejects it, at build time of the generated code (CHR0034 for `[PII]`, CHR0052 for `[Encrypted]`).
@@ -6,7 +6,7 @@ diagnostics, binds, and its two specifications pass in the reference runner on S
6
6
  (`Documentation/screenplay/fixtures/generated-responses.play` at `v4.68.0`). It needs the standalone
7
7
  `screenplay` 4.68.0 or later: the cratis CLI 3.28.3 bundles 4.66.0, which does not bind these constructs
8
8
  (`PLAY0268`), and `cratis render` does not render ESM v7 (Stage 4.24.2 refuses it with `STAGE-ESM-016`,
9
- Cratis/tracked in Stage#201). Rules and refusals: [executable-subset.md](executable-subset.md#generated-values-and-responses-esm-v7).
9
+ Cratis/tracked in Stage#201). Rules and refusals: [executable-subset.md](executable-subset.md#generated-values-and-responses-esm-v7-standalone-4680-or-later-only).
10
10
 
11
11
  ```screenplay
12
12
  // ESM v7 reference-executable example: deterministic generated fixtures, events and command responses.
@@ -39,8 +39,8 @@ is adapted with the agreement of Martin Dilger and Nebulit GmbH.
39
39
  - cratis `v3.28.2` (`141c499`; `Render/`, `Run/`, `Prologue/` and `Screenplay/Generate*` are unchanged since `v3.27.1`, `a327e89`): `Source/Cli/Commands/Render/`, `ScreenplayMcpRoot.cs`,
40
40
  `Documentation/reference/screenplay.md`.
41
41
  - Arc `v22.50.5` and Chronicle `v19.32.0` for the code-level facts cited in `versions.md`.
42
- - Open issues cited as limits: cli#242, #243, #244, #245; Screenplay#377, #379, #383, #384,
43
- #388; Stage#79, #165, #178, #197; Chronicle#3744, #4123, #4131.
42
+ - Open issues cited as limits: cli#242, #243, #244, #245; Screenplay#377, #379, #383,
43
+ #388; Stage#79, #165, #178; Chronicle#3744, #4123, #4131.
44
44
 
45
45
  ## Changes from the earlier toolkit
46
46
 
@@ -39,7 +39,7 @@ whole automation is hand-written (gap-fill).
39
39
  | Constraints | unique property value, unique event occurrence; admitted even though Chronicle#4123 means index updates run after commit | intra-command multi-event change to one constraint; multi-claim in one command: 014 |
40
40
  | Authorization | authenticated, role, claim and logical policies; caller fixtures; ownership claims against text-backed targets | opaque policy code, role-claim URIs, a claim matched against a Uuid-backed subject or path: 015 |
41
41
  | Specifications | command-action scenarios: given events, `when <Command>`, `then` events (ordered or any order), `then readmodel`, `then query`, `then error` (naming a rendered constraint or message), `then denied`, `given caller`. Two narrow when-less routes: an unprotected single `then query` seeded by exactly one `given readmodel` whose key and values match (no given events, no caller), and a query-only denial (`given caller`, one `then query` with no results, `then denied`, a protected query, no role claims) | `then no readmodel`, `when append`, composite values, error codes not naming a rendered constraint: 011. Any other when-less specification (for example given events with `then query`) fails 011 |
42
- | Compliance | none | any `@pii` or `@sensitive` already fails binding (PLAY0268). Stage's `[PII]` attribute comes only from the legacy syntax renderer, which renders `@sensitive` as `[PII]` too (Stage#197) |
42
+ | Compliance | none | any `@pii` or `@sensitive` already fails binding (PLAY0268). The C# provider mapping (Stage v4.29.0, Stage#197) is `@pii` to `[PII]`, `@sensitive` to `[Encrypted]` + `[NotAudited]`, both to `[PII]` only |
43
43
 
44
44
  ## Authoring consequences in renderable mode
45
45
 
@@ -20,7 +20,7 @@ Re-checked against Screenplay v4.66.0 and cli v3.28.2 where marked [probed] or [
20
20
  16. PLAY0285/0286/0287 are static spec checks: do not edit expectations blindly; PLAY0285 had a cascade false positive on the compiler bundled in cratis before 3.28.2 (4.60.1, cli#242); gone in 4.66.0 and cratis 3.28.2. [probed]
21
21
  17. `null` in specs only for optional read-model properties (PLAY0350); omit the property or record a gap; whether an optional detail is really a separate fact is a review question, not the fix for this code.
22
22
  18. `then` events are exhaustive and ordered (use `then events in any order` for order only). From ESM v6 they include reaction cascades; after `when append` they list only what followed the append.
23
- 19. `reads` without `by` means a singleton view today (decision 0017 will change it); `reads` never binds (PLAY0271), and neither does a command `concurrency` block (PLAY0271, error). [probed, source]
23
+ 19. `reads` without `by` means a singleton view at Screenplay 4.66.0 (decision 0017 will change it); `reads` never binds (PLAY0271), and neither does a command `concurrency` block (PLAY0271, error). [probed, source]
24
24
  20. Declare each event once, in its producing slice; renaming a persisted event needs `id "OldName"`; renaming a constraint discards its index.
25
25
  21. Quoted `import "x/*.play"` = my files; unquoted `import Ctx.Event` = another context's contract (does not bind: PLAY0268). [probed]
26
26
  22. Construct keywords are closed (`aggregate`, `saga`, `workflow` do not exist): PLAY0029 or PLAY0001/0022/0024.
@@ -1,5 +1,15 @@
1
1
  # Verdict commands, V1 to V5
2
2
 
3
+ ## Contents
4
+
5
+ - V1: authorable
6
+ - V2: executable diagnostics
7
+ - V3: binding-ready
8
+ - V4: reference specifications run
9
+ - V5: rendered and target-verified
10
+ - Report format
11
+ - Example gate (for skill and documentation authors)
12
+
3
13
  The five verdicts are independent results, not a ladder: each proves only its own layer,
4
14
  and each is either a result or "not run" with the reason. The verdict names are frozen
5
15
  (`cratis-screenplay-modeling-lifecycle` owns when each is required; this file owns how to
@@ -1,5 +1,17 @@
1
1
  # Versions and capabilities by tool (the only version table)
2
2
 
3
+ ## Contents
4
+
5
+ - Pin set
6
+ - Two compilers, one rule
7
+ - Standalone `screenplay` 4.68.0
8
+ - cratis 3.28.3 and 3.28.2 (Screenplay 4.66.0)
9
+ - Event sources and streams
10
+ - MCP roots bug (4.63.1 and earlier; fixed in 4.63.2; not present in cratis 3.28.2)
11
+ - Revisions and descriptions
12
+ - Roadmap items that would change a verdict (all open at the pin; the `@sensitive` meaning, Screenplay#384, and the identifier refusal and C# mapping, Stage#197, are settled in decision 0034; the pinned tools predate `PLAY0515`)
13
+ - Upgrade checklist
14
+
3
15
  Every other Screenplay skill and reference points here instead of repeating a version
4
16
  or a tool capability. When a tool changes, update this file first, then re-run the
5
17
  example compile gate with both tools (see `verdicts.md`, "Example gate").
@@ -130,13 +142,11 @@ MCP loop procedure and proposals: `cratis-screenplay-model-authoring`.
130
142
  the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity"). Keep it apart from the MCP `modelRevision`.
131
143
  - `description` and `documentation` never reach rendered code (Stage#178, open).
132
144
 
133
- ## Roadmap items that would change a verdict (all open at the pin)
145
+ ## Roadmap items that would change a verdict (all open at the pin; the `@sensitive` meaning, Screenplay#384, and the identifier refusal and C# mapping, Stage#197, are settled in decision 0034; the pinned tools predate `PLAY0515`)
134
146
 
135
147
  Screenplay#377 (run specifications from MCP or the tool), #388 (completeness and lineage
136
- report), #383 (identity for an `invokes` caller), #384 (`@pii` on identifiers, `@sensitive`
137
- meaning), #379 (`visualize-model` counts reactions); Stage#79 (render Automation and
138
- Translate slices), Stage#165 (admit ESM v4), Stage#197 (`@pii` identifier renders as
139
- `[PII]` event source id); cli#242 (false PLAY0285 on the 4.60.1 bundle; fixed in effect by the 4.66.0 bundle but still open on GitHub), cli#243 (`validate --executable`),
148
+ report), #383 (identity for an `invokes` caller), #379 (`visualize-model` counts reactions); Stage#79 (render Automation and
149
+ Translate slices), Stage#165 (admit ESM v4); cli#242 (false PLAY0285 on the 4.60.1 bundle; fixed in effect by the 4.66.0 bundle but still open on GitHub), cli#243 (`validate --executable`),
140
150
  cli#244 (file mode ignores imports), cli#245 (`render --check`). The standalone tool at
141
151
  4.68.0 has only the compile command and `mcp` (no `test`; `screenplay --help` checked); the reference runner is library
142
152
  only. Until these land, "specifications written" or "bound" is never "specifications