@cratis/pi 7.14.2 → 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 (186) hide show
  1. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +11 -2
  2. package/package/corpus/skills/cratis-application-slice-conformance/references/build-prompts.md +8 -0
  3. package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +10 -6
  4. package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +1 -1
  5. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +11 -7
  6. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +12 -2
  7. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +16 -1
  8. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +7 -0
  9. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +9 -0
  10. package/package/corpus/skills/cratis-arc-command/SKILL.md +20 -15
  11. package/package/corpus/skills/cratis-arc-command/references/command-result.md +7 -0
  12. package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +10 -3
  13. package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +1 -1
  14. package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +5 -1
  15. package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +12 -0
  16. package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +10 -3
  17. package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +20 -116
  18. package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +11 -8
  19. package/package/corpus/skills/cratis-arc-command-typescript/references/command-specifications.md +63 -0
  20. package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +10 -0
  21. package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +38 -0
  22. package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +19 -0
  23. package/package/corpus/skills/cratis-arc-command-typescript/verification.json +1 -1
  24. package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +1 -1
  25. package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -10
  26. package/package/corpus/skills/cratis-arc-react-page/SKILL.md +30 -19
  27. package/package/corpus/skills/cratis-arc-react-page/references/data-page.md +11 -0
  28. package/package/corpus/skills/cratis-arc-react-page/references/data-tables.md +10 -0
  29. package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +12 -10
  30. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +10 -0
  31. package/package/corpus/skills/cratis-arc-react-page/references/mvvm.md +11 -0
  32. package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +7 -0
  33. package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +58 -122
  34. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +26 -0
  35. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +22 -0
  36. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +31 -0
  37. package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +52 -131
  38. package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +19 -0
  39. package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +73 -0
  40. package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +29 -232
  41. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +20 -0
  42. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +44 -0
  43. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +33 -0
  44. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +54 -0
  45. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +77 -0
  46. package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -102
  47. package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +23 -0
  48. package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +63 -0
  49. package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +13 -13
  50. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +1 -1
  51. package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -4
  52. package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +10 -0
  53. package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +14 -6
  54. package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +9 -0
  55. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +7 -49
  56. package/package/corpus/skills/cratis-chronicle-reactor/references/domain-failures.md +19 -0
  57. package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +33 -0
  58. package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +2 -2
  59. package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +11 -0
  60. package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +1 -0
  61. package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +1 -1
  62. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +24 -24
  63. package/package/corpus/skills/cratis-content-length/SKILL.md +1 -1
  64. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +12 -0
  65. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +19 -19
  66. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +10 -0
  67. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +10 -0
  68. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +5 -0
  69. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +15 -0
  70. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +9 -4
  71. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +1 -2
  72. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +8 -0
  73. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +1 -2
  74. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +10 -0
  75. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +1 -1
  76. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +1 -1
  77. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +18 -18
  78. package/package/corpus/skills/cratis-performance-review/SKILL.md +1 -1
  79. package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -0
  80. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +29 -4
  81. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +16 -4
  82. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +4 -15
  83. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +6 -2
  84. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +1 -6
  85. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +45 -245
  86. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/capture-map-and-example.md +42 -0
  87. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +155 -0
  88. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +27 -0
  89. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/trigger-reads-example.md +21 -0
  90. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +69 -227
  91. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +10 -0
  92. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +51 -0
  93. package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +62 -0
  94. package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +46 -0
  95. package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +36 -0
  96. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +11 -11
  97. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +10 -3
  98. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -6
  99. package/package/corpus/skills/cratis-screenplay-discovery/references/human-workshop.md +13 -0
  100. package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +8 -0
  101. package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +11 -0
  102. package/package/corpus/skills/cratis-screenplay-discovery/references/storming-loop.md +7 -0
  103. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +75 -198
  104. package/package/corpus/skills/cratis-screenplay-event-modeling/references/file-layout.md +89 -0
  105. package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +26 -0
  106. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +14 -1
  107. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +8 -0
  108. package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +10 -0
  109. package/package/corpus/skills/cratis-screenplay-event-modeling/references/slice-type-rules.md +12 -0
  110. package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +12 -6
  111. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +5 -6
  112. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/candidate-inventory.md +11 -0
  113. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +8 -0
  114. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/side-car-migration.md +11 -0
  115. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +1 -1
  116. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +33 -10
  117. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +8 -0
  118. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +13 -17
  119. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +11 -0
  120. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +9 -9
  121. package/package/corpus/skills/cratis-screenplay-model-review/references/business-questions.md +9 -0
  122. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +15 -0
  123. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +9 -0
  124. package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +9 -0
  125. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +17 -8
  126. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/handoff-template.md +8 -0
  127. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -6
  128. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +19 -0
  129. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/safety.md +1 -1
  130. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +11 -1
  131. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +2 -2
  132. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +3 -4
  133. package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +8 -0
  134. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +2 -2
  135. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
  136. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +1 -1
  137. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +8 -0
  138. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +10 -10
  139. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/coverage-matrix.md +8 -0
  140. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +4 -0
  141. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +17 -0
  142. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +10 -0
  143. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-workshop.md +11 -0
  144. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +12 -0
  145. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
  146. package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +7 -0
  147. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +8 -0
  148. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +16 -0
  149. package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +10 -0
  150. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +52 -360
  151. package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +34 -0
  152. package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +77 -0
  153. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +39 -0
  154. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +72 -0
  155. package/package/corpus/skills/cratis-screenplay-specifications/references/worked-example.md +110 -0
  156. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +6 -6
  157. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +21 -1
  158. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +13 -0
  159. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +1 -1
  160. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -20
  161. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +16 -0
  162. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +13 -7
  163. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +10 -0
  164. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +10 -0
  165. package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +1 -1
  166. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +1 -1
  167. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +10 -0
  168. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +12 -0
  169. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +11 -13
  170. package/package/corpus/skills/cratis-screenplay-ui-composition/references/flow-review.md +1 -1
  171. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +10 -10
  172. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +12 -0
  173. package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +13 -2
  174. package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +10 -10
  175. package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +10 -0
  176. package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +9 -0
  177. package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +1 -2
  178. package/package/corpus/skills/cratis-specifications-typescript/references/typescript-patterns.md +11 -1
  179. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +30 -21
  180. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +9 -0
  181. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +5 -0
  182. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +2 -4
  183. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +2 -2
  184. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +39 -39
  185. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +10 -0
  186. 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 |
@@ -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
@@ -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),
@@ -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.
@@ -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.
@@ -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").
@@ -10,6 +10,11 @@ Event Modeling's wireframe step is a first-class part of the language. The shell
10
10
  the reusable shapes inside it, the forms bound to commands, and the navigation
11
11
  entries other modules contribute are all declared in the `.play` model.
12
12
 
13
+ ⚠️ `file <Identifier>` is read as a **property** named `file`, not a directive —
14
+ the type-reference shape wins the tie. `file Invoices/Register.cs` is a directive;
15
+ `file Attachment` is a property. In a `trigger` body the directive always wins, so
16
+ a trigger value named `file` is written `@file`.
17
+
13
18
  ## Locate the model
14
19
 
15
20
  Look first for the project's existing `.play` files: the folder holding them is the
@@ -40,8 +45,7 @@ Checked against the Screenplay repository at tag `v4.31.0` (commit `355dffb`):
40
45
  Those checks established the original baseline. The changed cancellation
41
46
  example uses the newer main commit above, not the old tag.
42
47
 
43
- Versions of the tools that check these examples: `cratis-screenplay-toolchain`
44
- `references/versions.md`.
48
+ Read `references/versions.md` in `cratis-screenplay-toolchain` when choosing or checking tool versions for these examples.
45
49
 
46
50
  Every construct on this page is deferred from the executable model with
47
51
  information `PLAY0269`: it never blocks binding, and it is not evidence that a
@@ -62,7 +66,7 @@ work on a screen whose purpose is unsettled is rework.
62
66
  `data` plus `action`). Read the whole set, not one screen at a time.
63
67
  2. **Review the flow before adding layout.** Walk it screen by screen as text
64
68
  (format in `references/flow-review.md`). When the host advertises the MCP-Apps
65
- extension, `visualize-model` (a `proposalId` or a `sketch`) can also show it on
69
+ extension for the `screenplay` MCP server, `visualize-model` (a `proposalId` or a `sketch`) can also show it on
66
70
  a board; that is optional, and the text review is enough on its own. Do not
67
71
  use the Stage sandbox as the review: it renders only part of a screen, and
68
72
  nothing here establishes that Stage renders an authored screen faithfully.
@@ -75,13 +79,12 @@ work on a screen whose purpose is unsettled is rework.
75
79
  screen's read model. A value with no origin means the command or read model is
76
80
  missing it: fix the slice, never invent the value in the screen.
77
81
  5. **Read before editing.** Open the existing screen (or `read-workspace` /
78
- `declaration-details` over MCP) and change only the directives that were asked
82
+ `declaration-details` through the `screenplay` MCP server) and change only the directives that were asked
79
83
  for. Adding `layout` must not rewrite the Level-1 intent beneath it.
80
84
  6. **Report each screen in two or three sentences**: what it shows and what the
81
85
  user can do. Not everyone reviewing can see a board.
82
86
 
83
- A complete worked flow (two Level-1 screens, their command, read model and form,
84
- with the field trace): `references/worked-flow.md`.
87
+ Read `references/worked-flow.md` when a complete example is needed before composing a flow; it contains two Level-1 screens, their command, read model and form, with the field trace.
85
88
 
86
89
  ## `layout` — the application shell
87
90
 
@@ -212,7 +215,7 @@ module-level.
212
215
  `navigate to <Screen> by <param>` is **not** string interpolation; it reuses the
213
216
  same typed navigate binding a screen action uses.
214
217
 
215
- ⚠️ This iteration ships `navigate`, `label` and `order` only. Grouping beyond a
218
+ ⚠️ The v4.31.0 baseline, re-verified at v4.66.0, ships `navigate`, `label` and `order` only. Grouping beyond a
216
219
  flat ordered list, and an explicit override for when nearest-enclosing is not the
217
220
  point you mean, are deliberately left for later.
218
221
 
@@ -372,11 +375,6 @@ The rules:
372
375
  - **Loaded is not run.** Screenplay hashes attached code and can map an inline
373
376
  body back to its source for an editor, but never compiles or executes it.
374
377
 
375
- ⚠️ `file <Identifier>` is read as a **property** named `file`, not a directive —
376
- the type-reference shape wins the tie. `file Invoices/Register.cs` is a directive;
377
- `file Attachment` is a property. In a `trigger` body the directive always wins, so
378
- a trigger value named `file` is written `@file`.
379
-
380
378
  ## Verify
381
379
 
382
380
  - [ ] `screenplay <model> --warnaserror` (standalone) reports zero errors and zero
@@ -407,4 +405,4 @@ a trigger value named `file` is written `@file`.
407
405
 
408
406
  ## Lineage
409
407
 
410
- `references/provenance.md`.
408
+ Read `references/provenance.md` when checking source attribution or adaptation permissions.
@@ -1,7 +1,7 @@
1
1
  # Flow review (text form)
2
2
 
3
3
  Use this before any layout work (`SKILL.md`, *Compose in this order*, step 2). It needs
4
- no board: the `.play` source and your own words are enough. If the host offers
4
+ no board: the `.play` source and your own words are enough. If the host offers the `screenplay` MCP server's
5
5
  `visualize-model` (MCP-Apps hosts only) you may add a board view; it never replaces this.
6
6
 
7
7
  ## Procedure