@cratis/pi 7.51.0 → 7.51.2

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 (162) hide show
  1. package/package/corpus/harnesses/copilot/instructions/application-profile.instructions.md +15 -1
  2. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +1 -1
  3. package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -1
  4. package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -1
  5. package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +7 -1
  6. package/package/corpus/harnesses/pi/extensions/shared/rules.ts +9 -1
  7. package/package/corpus/rules/application-profile.md +15 -1
  8. package/package/corpus/rules/authoring-skills.md +1 -1
  9. package/package/corpus/rules/cratis-folder-is-configuration.md +3 -1
  10. package/package/corpus/rules/exit-codes-and-wrappers.md +7 -1
  11. package/package/corpus/rules/general.md +8 -6
  12. package/package/corpus/rules/guards-and-fuses.md +7 -1
  13. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +8 -7
  14. package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +1 -1
  15. package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +2 -2
  16. package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +15 -19
  17. package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +1 -1
  18. package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -6
  19. package/package/corpus/skills/cratis-arc-react-page/SKILL.md +10 -14
  20. package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +4 -2
  21. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +7 -7
  22. package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +2 -2
  23. package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +1 -1
  24. package/package/corpus/skills/cratis-arc-react-page/verification.json +0 -2
  25. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +15 -19
  26. package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +1 -1
  27. package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +10 -8
  28. package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +7 -7
  29. package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +3 -3
  30. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +30 -28
  31. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +8 -8
  32. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
  33. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +3 -1
  34. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +1 -14
  35. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +6 -4
  36. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -6
  37. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +11 -12
  38. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -3
  39. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
  40. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +22 -20
  41. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +1 -1
  42. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +9 -10
  43. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +1 -1
  44. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +3 -4
  45. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +0 -4
  46. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +16 -15
  47. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +17 -17
  48. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +8 -8
  49. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +8 -12
  50. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +31 -29
  51. package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +5 -5
  52. package/package/corpus/skills/cratis-screenplay-command-surface/references/operations.md +2 -2
  53. package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +3 -3
  54. package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +10 -10
  55. package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +9 -7
  56. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -5
  57. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +14 -15
  58. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
  59. package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +1 -1
  60. package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +2 -2
  61. package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +3 -3
  62. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -17
  63. package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +2 -2
  64. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
  65. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +11 -12
  66. package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -2
  67. package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +0 -4
  68. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
  69. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +4 -4
  70. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +34 -21
  71. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +18 -12
  72. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +7 -7
  73. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +1 -1
  74. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +4 -4
  75. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +24 -29
  76. package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md +1 -2
  77. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +44 -51
  78. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +31 -36
  79. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +56 -63
  80. package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +11 -10
  81. package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +15 -15
  82. package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +25 -21
  83. package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +16 -31
  84. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +5 -4
  85. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
  86. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +3 -3
  87. package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +3 -4
  88. package/package/corpus/skills/cratis-screenplay-model-review/references/public-keys-and-routes.md +1 -1
  89. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +7 -5
  90. package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +2 -2
  91. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +11 -12
  92. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +2 -2
  93. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -1
  94. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +8 -10
  95. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +6 -6
  96. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +2 -2
  97. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
  98. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +3 -3
  99. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +1 -1
  100. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +11 -22
  101. package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +1 -1
  102. package/package/corpus/skills/cratis-screenplay-projections/verification.json +0 -1
  103. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +16 -29
  104. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +14 -18
  105. package/package/corpus/skills/cratis-screenplay-read-surface/references/guarded-actions.md +5 -7
  106. package/package/corpus/skills/cratis-screenplay-read-surface/references/named-keys.md +6 -6
  107. package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +1 -1
  108. package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +1 -2
  109. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +18 -19
  110. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
  111. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -6
  112. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +4 -4
  113. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -6
  114. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -3
  115. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
  116. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +13 -15
  117. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -1
  118. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -2
  119. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +4 -6
  120. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +4 -4
  121. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +3 -3
  122. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -9
  123. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +5 -5
  124. package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +0 -1
  125. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +11 -13
  126. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +4 -4
  127. package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +6 -4
  128. package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +4 -2
  129. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
  130. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +37 -40
  131. package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +10 -15
  132. package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +14 -12
  133. package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +1 -1
  134. package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +9 -10
  135. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +5 -6
  136. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +8 -9
  137. package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +13 -16
  138. package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +15 -13
  139. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -9
  140. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +29 -29
  141. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +18 -15
  142. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -15
  143. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
  144. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +19 -17
  145. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +3 -3
  146. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +1 -1
  147. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +2 -2
  148. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +2 -3
  149. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -0
  150. package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
  151. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -28
  152. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +21 -26
  153. package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md +3 -3
  154. package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
  155. package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +10 -10
  156. package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +23 -30
  157. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +4 -5
  158. package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +1 -5
  159. package/package.json +1 -1
  160. package/src/index.ts +9 -1
  161. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +0 -15
  162. package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +0 -13
@@ -13,15 +13,15 @@
13
13
  { "kind": "skill-contains", "value": "Never hand-edit the sidecar", "file": "references/release-baseline.md" },
14
14
  { "kind": "skill-contains", "value": "**reviewed correction**", "file": "references/release-baseline.md" },
15
15
  { "kind": "skill-contains", "value": "ShippedStoredNameMismatch", "file": "references/release-baseline.md" },
16
- { "kind": "skill-contains", "value": "the interim warning is retired" },
16
+ { "kind": "skill-contains", "value": "Differing event pins carry" },
17
17
  { "kind": "skill-contains", "value": "`eventPinWarnings` array in proposals is empty", "file": "references/mcp-tools.md" },
18
18
  { "kind": "skill-contains", "value": "shared by all generations and unique (PLAY0472)" },
19
19
  { "kind": "skill-contains", "value": "ESM v16", "file": "references/mcp-tools.md" },
20
- { "kind": "skill-contains", "value": "Stage 4.92.0 / CLI 3.59.0 still stop at v15", "file": "references/mcp-tools.md" },
20
+ { "kind": "skill-contains", "value": "A renderer admits only the ESM versions it bundles", "file": "references/mcp-tools.md", "file": "references/mcp-tools.md" },
21
21
  { "kind": "skill-contains", "value": "Existing `All` history reads as", "file": "references/mcp-tools.md" },
22
22
  { "kind": "play-compiles" },
23
23
  { "kind": "skill-contains", "value": "Edit through MCP proposals, not hand-edited text" },
24
- { "kind": "skill-contains", "value": "CLI 3.57.0 bundles MCP 4.147.1" },
24
+ { "kind": "skill-contains", "value": "The CLI-bundled MCP can be older than the standalone tool" },
25
25
  { "kind": "skill-contains", "value": "`previewArguments`", "file": "references/mcp-tools.md" },
26
26
  { "kind": "skill-contains", "value": "`entropyUnknownReason`", "file": "references/mcp-tools.md" },
27
27
  { "kind": "skill-contains", "value": "`valuesAtOnePercentCollision`", "file": "references/mcp-tools.md" },
@@ -69,7 +69,8 @@
69
69
  { "kind": "skill-contains", "value": "property.generations", "file": "references/property-links.md" },
70
70
  {
71
71
  "kind": "skill-contains",
72
- "value": "Screenplay v4.144.0"
72
+ "value": "Requires Screenplay 4.144.0 or later",
73
+ "file": "references/model-notes.md"
73
74
  },
74
75
  {
75
76
  "kind": "skill-contains",
@@ -67,7 +67,7 @@ model's behalf.
67
67
  and wide-flow questions, never compiler defects or a substitute for the sweep. Each `NONE` and each form name is its own finding naming that element. A repeated
68
68
  payload or generic verb is a signal to investigate: report it only when the name or payload
69
69
  hides the business reason or a consequence is shown (distinct facts that share a shape and
70
- historical generations are not findings). A description, comment or spec name never excuses a flagged line.
70
+ earlier generations are not findings). A description, comment or spec name never excuses a flagged line.
71
71
  4. **Entity walk** (phase 2). Per kind of event source write the first fact, the allowed and the
72
72
  refused state changes, the final states; then walk cancel, fail, correct and expire paths. Each
73
73
  refused change needs a `then error` spec; each command missing from the table is investigated.
@@ -139,7 +139,7 @@ execution or prove a business deadlock. An ordering root is required; without
139
139
  one the folder check is skipped. A real F6 defect needs a named domain
140
140
  consequence, not just the diagram's cycle. Suggested graph order and safe
141
141
  PLAY0516 moves preserve executable bytes/identities. Source: Screenplay
142
- `v4.125.0:Documentation/screenplay/imports.md`, `diagnostics.md`.
142
+ `Documentation/screenplay/imports.md`, `diagnostics.md`.
143
143
 
144
144
  | Id | Check | Evidence | Tier |
145
145
  |---|---|---|---|
@@ -174,13 +174,13 @@ Nebulit (`provenance.md`).
174
174
  | G5 | Row scoping (whose data) is part of the view, not a filter the caller supplies | queries | D |
175
175
  | G6 | Every persona Cannot line resolves to an executable gate (`authorize` policy, or ownership `claim "x" matches subject\|<command property>`) and a `then denied` spec whose caller is synthesized with `given caller as <Persona>` or explicitly carries the effective-gate roles/claims; otherwise recorded as a gap. Persona text is intent only | personas, policies, specs | D |
176
176
  | G7 | Every command and query under an inherited module/feature `authorize` has its own `then denied` spec; authorization shared by a feature is declared at feature/module level so new paths inherit it | policies, specs | D |
177
- | G8 | Ownership/claim targets are a supported scalar (text, Uuid, Date or DateTime render; a numeric or Boolean target is always denied; other shapes and a command without exactly one identifier are STAGE-ESM-015 at Stage 4.73.1): noted | policies | C (renderable mode) |
177
+ | G8 | Ownership/claim targets are a supported scalar (text, Uuid, Date or DateTime render; a numeric or Boolean target is always denied; other shapes and a command without exactly one identifier are STAGE-ESM-015): noted | policies | C (renderable mode) |
178
178
 
179
179
  ## Phase 10. Views, queries and screens (4 checks, H1-H4)
180
180
  | Id | Check | Evidence | Tier |
181
181
  |---|---|---|---|
182
182
  | H1 | Query shape follows the business view (list where people scan; lookup where they open one) | queries, screens | D |
183
- | H2 | Executable scope: a keyed `=> RM optional` query with `by` named like a read-model property, or a collection (`=> RM[]`, observable too) with caller-supplied `by` and/or equality filters (ESM v14 since 4.143.0). `from`, single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268. The projection routes by the same identity (a `from` key or an event property, or `$eventSourceId`; `$eventSourceId` is not mandated). Filtered models: CLI 3.57.0 / Stage 4.89.1 admit through v15, including supported v14 equality filters. Renderable scope only: Stage-specific identity/filter limits (Stage 4.89.1 renders a keyed optional snapshot lookup and observable collection queries; any other query is `STAGE-ESM-010`) | queries, projections | C (executable); C (render admission, renderable only) |
183
+ | H2 | Executable scope: a keyed `=> RM optional` query with `by` named like a read-model property, or a collection (`=> RM[]`, observable too) with caller-supplied `by` and/or equality filters. `from`, single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268. The projection routes by the same identity (a `from` key or an event property, or `$eventSourceId`; `$eventSourceId` is not mandated). Filtered models: CLI 3.57.0 / Stage 4.89.1 admit through v15, including supported v14 equality filters. Renderable scope only: Stage-specific identity/filter limits (Stage 4.89.1 renders a keyed optional snapshot lookup and observable collection queries; any other query is `STAGE-ESM-010`) | queries, projections | C (executable); C (render admission, renderable only) |
184
184
  | H3 | One builder per read model; projection `key` only on `from` | projections | C |
185
185
  | H4 | Screens show one actor's point of view; a form submits one command | screens, forms | D |
186
186
 
@@ -19,8 +19,8 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
19
19
 
20
20
  | Source file | Used in | How |
21
21
  |---|---|---|
22
- | `.claude/skills/wdyt/SKILL.md`: business-analyst persona, language rule, question categories A to I, persona reminders, summary shape | `SKILL.md` "Business-question pass", `business-questions.md` (Ground rules, "Question categories", Output format) | Restored from #493 and adapted closely; board comments, drawings (arrows, group loops) and board API calls dropped, questions go in the report; the shape category I keeps Martin Dilger and Nebulit GmbH's plain-language wordings but only asks about a submit that settles several things, since Screenplay screens may host several independent actions |
23
- | `.claude/skills/eventmodeling-designing-automation-chains/SKILL.md`: every automation needs a todo list, translation versus worker, redundant second stage, no status field, closing path, quality checklist | `checklist.md` F8 to F12 and the automation-chain audit, `report-template.md` "Automation chains", `review-questions.md` | Restored from #493 (the automation-chain audit) as review checks translated to `Automation` and `Translate` slices. Not adopted: a translation's todo list is never closed; here a translation holding real pending work needs a terminal disposition (the audit format of `cratis-screenplay-automations-and-translations`), and an artificial never-closing queue is flagged instead |
22
+ | `.claude/skills/wdyt/SKILL.md`: business-analyst persona, language rule, question categories A to I, persona reminders, summary shape | `SKILL.md` "Business-question pass", `business-questions.md` (Ground rules, "Question categories", Output format) | Adapted closely; board comments, drawings (arrows, group loops) and board API calls dropped, questions go in the report; the shape category I keeps Martin Dilger and Nebulit GmbH's plain-language wordings but only asks about a submit that settles several things, since Screenplay screens may host several independent actions |
23
+ | `.claude/skills/eventmodeling-designing-automation-chains/SKILL.md`: every automation needs a todo list, translation versus worker, redundant second stage, no status field, closing path, quality checklist | `checklist.md` F8 to F12 and the automation-chain audit, `report-template.md` "Automation chains", `review-questions.md` | Adapted as review checks translated to `Automation` and `Translate` slices. Not adopted: a translation's todo list is never closed; here a translation holding real pending work needs a terminal disposition (the audit format of `cratis-screenplay-automations-and-translations`), and an artificial never-closing queue is flagged instead |
24
24
  | `.claude/skills/eventmodeling-core-rules/SKILL.md`: Critic Mode, Flow and Causality, Open Questions vs. Decided Failures, Offline-First Thinking | `SKILL.md` "Procedure" (stance), `checklist.md` E9 and F13, `report-template.md` "Defect or business question?", `review-questions.md` | Adapted closely; the single-issuer command rule, lanes, linked copies and board mechanics are not adopted |
25
25
  | `.claude/skills/handle-comment/SKILL.md`: one remark per node with a kind, resolving means answering | `SKILL.md` "Findings" | Adapted; the board place, resolve and delete actions are dropped, the remark is a finding pinned to one declaration |
26
26
  | `.claude/skills/analyze-existing-model/SKILL.md`: spec coverage with names, structural gaps per slice type, summary in 2 to 4 sentences | `SKILL.md` "Audit pass", `report-template.md` Inventory, `model-inventory-report.md` (gather steps, report shape, structural-gap table) | Adapted closely; board and slice-status steps replaced by the Screenplay MCP views, slice status breakdown dropped (Screenplay has none), `validate_model` replaced by `find-modeling-smells` and `find-assertion-gaps` |
@@ -47,7 +47,6 @@ Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilg
47
47
  - Alexey Zimarev, Oskar Dudycz, Vaughn Vernon and others on stream and boundary design:
48
48
  the boundary rows of `anti-patterns.md`.
49
49
  - Draft lineage of the first draft of this skill: the field-copy signal, the element sweep
50
- and the entity walk are Cratis additions, grounded in Cratis/Screenplay#393 (advisory report
51
- of information-level modeling smells, open at v4.66.0).
50
+ and the entity walk are Cratis additions, grounded in the advisory modeling-smell report.
52
51
  - Rejected anti-patterns (`checklist.md` R): Cratis/Screenplay strategy decisions and the
53
52
  closure comments of the Screenplay issues that rejected them.
@@ -16,7 +16,7 @@ Add these to the element sweep, with evidence pinned to the declaration:
16
16
  - Is the view identity explicitly marked `key` or unambiguously inferred? Does each
17
17
  single-instance query/read supply every part exactly once, with compatible types,
18
18
  and do state fixtures contain all parts? Do PDL keys align with the view's key?
19
- Composite view keys still refuse binding at 4.139.0 (PLAY0268, #599); compilation
19
+ Composite view keys still refuse binding (PLAY0268); compilation
20
20
  is not executable evidence. Read read-surface `references/named-keys.md`.
21
21
  - Does a production override replace the whole source/stream/id route, rather than
22
22
  assume partial inheritance? Is its `for` destination still explicit and compatible?
@@ -146,7 +146,7 @@ constraint or projection).
146
146
 
147
147
  ## Question notes
148
148
 
149
- On Screenplay 4.144.0, inspect `list-model-notes` with scope and `state: "all"`,
149
+ Inspect `list-model-notes` with scope and `state: "all"`,
150
150
  including `view: "findings"`. `model-note.open-question` is an info MCP/CLI-only
151
151
  finding, no PLAY code and no V1 failure. List orphaned questions explicitly;
152
152
  review `orphanedNotes` on source proposals, and treat null/unreadable as unknown.
@@ -164,10 +164,12 @@ it. Verify the answer became a specification, a description or a project-owned
164
164
  decision record; a resolved note is not behavioral proof. Ask the owner to reanchor
165
165
  or resolve affected notes before source apply; resolution alone leaves an orphan.
166
166
 
167
- The optional `--open-questions fail` gate is in standalone Screenplay 4.144.0,
168
- not Cratis CLI 3.53.1. Report it separately from V1–V5. Evidence: Screenplay
169
- `v4.144.0:Documentation/screenplay/model-notes.md:12-77,93-121`,
170
- `Documentation/screenplay/mcp/reference.md:457-520`; source lines in the linked guide.
167
+ The optional `--open-questions fail` gate is a standalone `screenplay` option; the
168
+ CLI-bundled compiler can lack it. Report it separately from V1–V5. Evidence: Screenplay
169
+ `Documentation/screenplay/model-notes.md`,
170
+ `Documentation/screenplay/mcp/reference.md`; source lines in the linked guide.
171
+
172
+ Requires Screenplay 4.144.0 or later (`screenplay --version`) for `--open-questions`.
171
173
 
172
174
  ## Verdict rules
173
175
  - **FAIL**: any critical finding, or a verdict line the mode requires fails.
@@ -13,7 +13,7 @@ A small model with one seeded design defect, reviewed in critic mode. The model
13
13
  `berths.play`; line numbers below refer to it. The report follows `report-template.md` and is
14
14
  shortened: it shows the flagged checks of each phase and elides the passing ones, which a real
15
15
  report lists in full. The model compiles and, on the standalone 4.139.0 tool, binds and runs one specification (the
16
- `ListBerths` list query binds since Screenplay 4.105.0). The report works in design mode, so it
16
+ `ListBerths` list query binds on Screenplay 4.105.0 or later). The report works in design mode, so it
17
17
  does not run V3 or V4.
18
18
 
19
19
  ## The model under review
@@ -172,7 +172,7 @@ Confidence: medium (design mode; V2 to V5 not run)
172
172
 
173
173
  ## After the fix
174
174
  The same scope after the modeler applied the edit request and added denial specifications.
175
- The review is re-run only on the changed scope. The query contract is unchanged: no edit request asked for a different query, so `ListBerths => BerthSummary[]` stays. This document compiles and binds, and its four specifications pass in `screenplay test` (4.139.0). Replacing the list with a keyed lookup would change the contract and needs its own domain-justified edit request. Stage 4.73.1 would refuse the snapshot list (`STAGE-ESM-010`); only an `observable` list or a keyed lookup renders.
175
+ The review is re-run only on the changed scope. The query contract is unchanged: no edit request asked for a different query, so `ListBerths => BerthSummary[]` stays. This document compiles and binds, and its four specifications pass in `screenplay test`. Replacing the list with a keyed lookup would change the contract and needs its own domain-justified edit request. Stage 4.73.1 would refuse the snapshot list (`STAGE-ESM-010`); only an `observable` list or a keyed lookup renders.
176
176
 
177
177
  ```screenplay
178
178
  concept BerthId : Uuid
@@ -43,7 +43,7 @@ an unproven pass.
43
43
  | An accepted model covers the scope | **Model** | Change the `.play`, verify V1-V3, review, then render or gap-fill |
44
44
  | Opted in, but this scope has no model yet | **Model** | New behavior starts in discovery, then slice design |
45
45
  | A computed rule inside a modeled slice | **Model + code attachment** | `csharp`/`file` block; it binds only as the construct allows (`cratis-screenplay-model-authoring`) |
46
- | Scope Stage cannot render yet (Stage 4.89.1 renders supported event-triggered Automation; Translate/captures and refused reactions remain gap-fill. Mixed effects stay one reaction, `STAGE-ESM-037`; a hand-written realization must prove retry safety) | **Gap-fill code** | Hand-written; the `.play` slice and specs are the contract. `cratis-screenplay-render-and-gap-fill` separates an authorized existing generated base from fully hand-written delivery |
46
+ | Scope Stage cannot render yet (Stage renders supported event-triggered Automation; Translate/captures and refused reactions remain gap-fill. Mixed effects stay one reaction, `STAGE-ESM-037`; a hand-written realization must prove retry safety) | **Gap-fill code** | Hand-written; the `.play` slice and specs are the contract. `cratis-screenplay-render-and-gap-fill` separates an authorized existing generated base from fully hand-written delivery |
47
47
  | Outside call, transport or credentials | **Adapter code** | `Customizations/` or the host, applying `cratis-engineering-effect-boundaries` |
48
48
  | Infrastructure, clients, framework-profile repositories, brownfield not opted in | **Code** | Arc, Chronicle, spec and React skills; trivial changes keep the proportional-delegation policy |
49
49
 
@@ -150,8 +150,8 @@ not name or that widens its scope.
150
150
  Procedure and edit-request template: `references/identity-and-edits.md`.
151
151
 
152
152
  **Document mappings count too.** With `identities.json` present, creating, deleting, renaming or
153
- moving a mapped `.play` file changes no catalog address but still breaks reopening: at Screenplay
154
- v4.66.0 `McpState.Open` throws `IdentityMappingConflict` ("mapped .play files are missing,
153
+ moving a mapped `.play` file changes no catalog address but still breaks reopening:
154
+ `McpState.Open` throws `IdentityMappingConflict` ("mapped .play files are missing,
155
155
  renamed, or accompanied by unmapped files ... use an MCP proposal to move/add/delete documents
156
156
  explicitly"). Do these through MCP document operations (the `screenplay` server's `propose-ast` tool), never a file move or rename
157
157
  in the shell or editor.
@@ -218,16 +218,15 @@ Done when: the mode's "done when" holds with fresh verdict lines; every open que
218
218
  address and assumption; every decided rejection is a specification; no protection was removed;
219
219
  the packet opens with `Outcome:`; STATE.md is current.
220
220
 
221
- ## Verified product sources
222
- Model notes: Screenplay `v4.144.0:Documentation/screenplay/model-notes.md:12-77`,
223
- `decisions/0045-model-notes-sidecar.md:40-79`; exact tool sources in model-authoring
224
- `references/model-notes.md`. Tool versions: `cratis-screenplay-toolchain/SKILL.md`. Read `cratis-screenplay-toolchain/SKILL.md` when selecting or reverifying tool versions. Older source reads used here: Screenplay
225
- `v4.66.0` (`c89198b`): `Source/DotNET/Tool/Program.cs` (`--warnaserror`, folder mode),
226
- `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.cs:209-216` (personas are report-only),
221
+ ## Product sources
222
+ Model notes: Screenplay `Documentation/screenplay/model-notes.md`; exact tool sources in model-authoring
223
+ `references/model-notes.md` (Requires Screenplay 4.144.0 or later for model notes). Tool versions: `cratis-screenplay-toolchain/SKILL.md`. Read it when selecting or reverifying tool versions.
224
+ Other sources: Screenplay `Source/DotNET/Tool/Program.cs` (`--warnaserror`, folder mode),
225
+ `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.cs` (personas are report-only),
227
226
  `Documentation/screenplay/{constraints,specifications}.md`, `mcp/reference.md` (`modelRevision`);
228
- cratis CLI `v3.28.3` (`cratis screenplay validate --warnings-as-errors`; bundled Screenplay 4.66.0 then, 4.137.0 in 3.53.1);
229
- opt-in key `mcpServers.screenplay.root` in cratis CLI `v3.28.3`
230
- `Documentation/reference/screenplay-mcp.md`. The 4.66.0 and 3.28.3 reads are historical, not current pins. The worked example compiles with the standalone tool.
227
+ cratis CLI `cratis screenplay validate --warnings-as-errors` and the opt-in key `mcpServers.screenplay.root`
228
+ (`Documentation/reference/screenplay-mcp.md`). The worked example compiles with the standalone tool.
229
+
231
230
  ## Verify
232
231
  ```shell
233
232
  screenplay <model-folder> --warnaserror --no-color
@@ -9,8 +9,8 @@ how little output is printed. They govern reading and printing, never the model'
9
9
  | Rule | Allowed | Not allowed |
10
10
  |---|---|---|
11
11
  | C1 modeling (P1-P7) | existing `.play`, user documents, tickets, Screenplay docs | opening feature code to "see how it works" |
12
- | C2 review | a locator such as `src/Billing/InvoiceService.cs:120-140` cited by a legacy packet row | browsing the repository to verify a hunch |
13
- | C3 legacy | provider inventory; generated `.play` plus diagnostics; Prologue output; one handler to resolve a named evidence row, logged as `E7 <- RefundHandler.cs:44-61`; a bounded sample of an entry point the generator skipped | reading every controller before L1; treating "not seen in capture" as "does not exist" |
12
+ | C2 review | a locator such as `src/Billing/InvoiceService.cs` cited by a legacy packet row | browsing the repository to verify a hunch |
13
+ | C3 legacy | provider inventory; generated `.play` plus diagnostics; Prologue output; one handler to resolve a named evidence row, logged as `E7 <- RefundHandler.cs`; a bounded sample of an entry point the generator skipped | reading every controller before L1; treating "not seen in capture" as "does not exist" |
14
14
  | C4 render | `Customizations/*`; the generated line a build error names; the declared extension contract and the generated types it touches | scrolling managed output; editing a managed file |
15
15
  | C5 gap-fill | the code agent reads code for the non-renderable slice, with the slice and its specs as the contract | changing behavior the specs do not describe without recording it |
16
16
  | C6 runtime | read-only queries against a running Chronicle system (`cratis-chronicle-cli-operations`) | reading code to guess runtime state; using Chronicle tooling on a non-Chronicle legacy app |
@@ -22,7 +22,7 @@ changes. The Screenplay Reviewer and Renderer never edit `.play`; they always re
22
22
 
23
23
  ## Classify by catalog address
24
24
  Classify an edit by whether it changes the **catalog addresses**, not by artifact category.
25
- At Screenplay v4.66.0 `SemanticAddress` assigns identities to modules, features, slices,
25
+ `SemanticAddress` assigns identities to modules, features, slices,
26
26
  concepts, composite types, properties, commands, event contracts, read models, projections,
27
27
  queries, query arguments, specifications, triggers, reactions and captures;
28
28
  `ScreenplayWorkspace` materializes new assignments when it is created from source; and
@@ -3,27 +3,25 @@
3
3
  The decision rule is in `SKILL.md` ("Decide the level first"). This file holds the evidence.
4
4
 
5
5
  ## Why an empty directory or an MCP entry is not opt-in
6
- Up to cratis CLI `v3.27.1`, `cratis ai install`/`update` created an empty `.cratis/screenplay`
7
- model directory for the `cratis/screenplay` profile (and composed profiles such as Stage) and
8
- registered a Screenplay MCP entry for it. From `v3.28.x` (read at `v3.28.2`) install no longer
9
- creates a model directory by default: `AiMcpDescriptor.Root(configuration)` returns only an
6
+ `cratis ai install`/`update` do not create a model directory by default:
7
+ `AiMcpDescriptor.Root(configuration)` returns only an
10
8
  explicitly configured `mcpServers.screenplay.root` (null otherwise; there is no `DefaultRoot`), and
11
- `AiMcpPlan` creates a directory only for a configured root. The MCP entry is still registered,
9
+ `AiMcpPlan` creates a directory only for a configured root. An older CLI created an empty `.cratis/screenplay`
10
+ model directory for the `cratis/screenplay` profile (and composed profiles such as Stage). The MCP entry is still registered,
12
11
  and uninstall keeps any model directory. With no configured root, `cratis screenplay mcp` locates the model
13
12
  itself (`Source/Cli/Commands/Screenplay/ScreenplayModelLocation.cs`): a legacy `.cratis/screenplay`
14
13
  that already holds `.play` files, else the common ancestor of existing `.play` files, else a `Source`
15
14
  or `src` folder, else a new `Screenplay/` folder at the project root. Nothing is chosen under
16
15
  `.cratis` for new work. The MCP entry and any directory a tool created therefore appear in every
17
- repository that merely installed the language skills, so neither can signal consent. The old
18
- documentation text (`Documentation/ai/index.md` at `v3.28.2`: "Install/update creates the selected
19
- empty model directory (normally `.cratis/screenplay`)") is stale against that source.
16
+ repository that merely installed the language skills, so neither can signal consent. Documentation that says install/update creates the selected
17
+ empty model directory (normally `.cratis/screenplay`) is stale against that source.
20
18
 
21
19
  ## The explicit signal
22
20
  `mcpServers.screenplay.root` in `.cratis/ai.json` is the project-owned property that sets the
23
- model directory (`Documentation/reference/screenplay-mcp.md` at `v3.28.2`: "The optional
21
+ model directory (`Documentation/reference/screenplay-mcp.md`: "The optional
24
22
  project-owned `mcpServers` property in `.cratis/ai.json` overrides the model directory or
25
23
  disables registration"; `AiConfiguration.McpServers`, read by `AiMcpDescriptor.Root`). Verify with
26
- `git -C <cli checkout> show v3.28.2:Source/Cli/Commands/Ai/AiMcpDescriptor.cs`.
24
+ `Source/Cli/Commands/Ai/AiMcpDescriptor.cs` in the CLI repository.
27
25
 
28
26
  ## Model root and the committed-`.play` test
29
27
  The model root is the folder holding the project's `.play` files; absent an existing
@@ -50,13 +50,13 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
50
50
 
51
51
  | Source file | Used in | How |
52
52
  |---|---|---|
53
- | `.claude/skills/eventmodeling-orchestrating-event-modeling/SKILL.md`: "Do not cut corners to save tokens or effort" (forbidden rationalizations, self-catch trigger, flag trade-offs to the user) | `SKILL.md` "Do not cut corners to save tokens or effort", `references/completeness-self-check.md` | Adapted closely; restored from #493. Board rationalizations (delete a node to dodge a placement conflict, "session-context" read model, collapsed translation chain) translated to Screenplay (modeled reaction, missing view, translation merged into worker behavior, denial and protection) |
54
- | same file: "Phase Transition Protocol" (what was done, carry-forward, open questions; trail row to Done) | `SKILL.md` "Lifecycle", `references/phases.md` "Phase transition protocol" | Adapted closely; restored from #493. Memory file replaced by STATE.md |
55
- | same file: "Documenting decisions inline" and Step 11 "What the note should actually contain" (cold reader, simple chapter stays brief) | `references/reasoning-notes.md` | Adapted closely; restored from #493. Feedback-lane reasoning uses `documentation`; counts and verdicts stay in STATE.md |
53
+ | `.claude/skills/eventmodeling-orchestrating-event-modeling/SKILL.md`: "Do not cut corners to save tokens or effort" (forbidden rationalizations, self-catch trigger, flag trade-offs to the user) | `SKILL.md` "Do not cut corners to save tokens or effort", `references/completeness-self-check.md` | Adapted closely. Board rationalizations (delete a node to dodge a placement conflict, "session-context" read model, collapsed translation chain) translated to Screenplay (modeled reaction, missing view, translation merged into worker behavior, denial and protection) |
54
+ | same file: "Phase Transition Protocol" (what was done, carry-forward, open questions; trail row to Done) | `SKILL.md` "Lifecycle", `references/phases.md` "Phase transition protocol" | Adapted closely. Memory file replaced by STATE.md |
55
+ | same file: "Documenting decisions inline" and Step 11 "What the note should actually contain" (cold reader, simple chapter stays brief) | `references/reasoning-notes.md` | Adapted closely. Feedback-lane reasoning uses `documentation`; counts and verdicts stay in STATE.md |
56
56
  | same file: "Interview Phase" and "Mid-Workflow Entry" | `SKILL.md` "Interview phase (P0)" | Already adapted from TrogonStack (section 1); Martin Dilger and Nebulit GmbH's confirmation sentence kept |
57
- | `.claude/skills/eventmodeling-interview-protocol/SKILL.md`: "When to ask", "Unless told not to ask", "Recording the outcome" | `references/stop-or-assume.md` "Interview protocol" | Adapted closely; restored from #493. Interview file replaced by the STATE.md Interview Trail |
58
- | `.agent-modeling-kit/CLAUDE.md`: per-turn steps (screen the prompt, connect once, resolve context, start marker, invoke the matched skill never raw calls, questioning rule, close, learnings) | `references/per-turn-protocol.md`, `SKILL.md` "Run protocol" | Adapted closely; restored from #493. Board prompts and status calls translated to briefs, `Active:` in STATE.md and the `Outcome:` line; `<promise>` sentinels, `progress.txt` and learnings promotion not adopted |
59
- | `.agent-modeling-kit/AGENTS.md`: diagnose why a command failed before retrying it | `references/per-turn-protocol.md` step 5 | Adapted closely, restored; unknown-outcome MCP applies are never retried (toolchain trap 42) |
57
+ | `.claude/skills/eventmodeling-interview-protocol/SKILL.md`: "When to ask", "Unless told not to ask", "Recording the outcome" | `references/stop-or-assume.md` "Interview protocol" | Adapted closely. Interview file replaced by the STATE.md Interview Trail |
58
+ | `.agent-modeling-kit/CLAUDE.md`: per-turn steps (screen the prompt, connect once, resolve context, start marker, invoke the matched skill never raw calls, questioning rule, close, learnings) | `references/per-turn-protocol.md`, `SKILL.md` "Run protocol" | Adapted closely. Board prompts and status calls translated to briefs, `Active:` in STATE.md and the `Outcome:` line; `<promise>` sentinels, `progress.txt` and learnings promotion not adopted |
59
+ | `.agent-modeling-kit/AGENTS.md`: diagnose why a command failed before retrying it | `references/per-turn-protocol.md` step 5 | Adapted closely; unknown-outcome MCP applies are never retried (toolchain trap 42) |
60
60
  | orchestrating `SKILL.md`: cross-context and integration gaps stated with the finding and the viable resolutions, matching the posted question | `references/reasoning-notes.md` item 6 | Adapted closely; the comment becomes an open question or STATE.md decision |
61
61
  | `.agent-modeling-kit/CLAUDE.md`: "never leave a prompt neither progressed nor closed" | `SKILL.md` "Run protocol", `references/stop-or-assume.md` | Idea; our wording kept |
62
62
  | `.claude/skills/request-feedback/SKILL.md`: when escalation applies and when it does not; do not guess and build anyway; write the question for a cold reader | `references/stop-or-assume.md`, `references/handoff-template.md` section 4 | Idea; our wording kept (question format, calibration) |
@@ -54,8 +54,8 @@ needs `then error` or `then denied`. Reopen when the evidence ceases to answer i
54
54
  Question gating is separate from V1: standalone Screenplay 4.144.0 has
55
55
  `--open-questions fail`; Cratis CLI 3.53.1 does not. Read toolchain
56
56
  `references/verdicts.md` "Model notes gate" when a phase requires no open questions.
57
- Product evidence: Screenplay `v4.144.0:Documentation/screenplay/model-notes.md:12-77,93-121`,
58
- `decisions/0045-model-notes-sidecar.md:40-79` and the model-authoring source table.
57
+ Product evidence: Screenplay `Documentation/screenplay/model-notes.md`,
58
+ `decisions/0045-model-notes-sidecar.md` and the model-authoring source table.
59
59
 
60
60
  ## Question format (STATE.md, packets, edit requests)
61
61
  `Qn <declaration address>: <what is missing or contradictory, one sentence> - matters because
@@ -18,7 +18,7 @@ defines what each result means and how to report it. Do not copy version facts h
18
18
 
19
19
  | Result | Evidence | Does NOT prove |
20
20
  |---|---|---|
21
- | V1 authorable | folder-mode validate with warnings as errors. The standalone compiler includes imports in folder and file mode; `cratis` CLI 3.28.2 file validation ignored imports (cli#244, probed); since 3.28.4 (PR #258) it compiles the file with its imports, but folder mode stays the recommended cross-tool check | semantics, binding, specs |
21
+ | V1 authorable | folder-mode validate with warnings as errors. The standalone compiler includes imports in folder and file mode; an older `cratis` CLI file validation ignored imports; a current CLI compiles the file with its imports, but folder mode stays the recommended cross-tool check | semantics, binding, specs |
22
22
  | V2 executable diagnostics | the executable model reports no diagnostics for the scope | that any spec runs or passes |
23
23
  | V3 binding-ready | the model binds to the executable semantic model | that any spec runs or passes |
24
24
  | V4 reference specs run | the reference execution route only: engine, and per `.play` specification passed / failed / unsupported (overall model may be unbound) | rendering, generated code, build or target tests |
@@ -18,10 +18,10 @@ speaks in them; never model board mechanics (lanes, node ids, positions).
18
18
  | Chapter / workflow | `feature` | feature folder | vertical slices |
19
19
  | Slice | `slice` (one behaviour, not one artifact of each kind) | vertical slice folder | vertical slices |
20
20
  | Scenario (Given/When/Then) | `specification` | generated spec class `when_<spec_name>` (Debug) or hand-written C# specs | `cratis-screenplay-specifications`; C# spec skills |
21
- | Storyline (ordered beats) | a **family** of specifications sharing example data, each one transition (no storyline syntax at Screenplay 4.139.0) | several spec classes | specifications |
21
+ | Storyline (ordered beats) | a **family** of specifications sharing example data, each one transition (no storyline syntax) | several spec classes | specifications |
22
22
  | Field validation | concept `validate` (every use) / command `validate`, `require` | `ConceptValidator<T>` / `CommandValidator<T>` | command validation |
23
23
  | Role permission ("Cannot") | `policy` + `authorize` + `then denied` spec; ownership via `claim ... matches subject` | `[Authorize(Policy)]`, generated policies | authorization |
24
- | Precondition on stream state | `reads` + `require` as stated intent, not enforced at Screenplay 4.139.0 (target: Arc `[ProtectedDecision]` + `DecisionRead<T>`, or Chronicle DCB; APIs available to gap-fill in the Arc and Chronicle the Stage 4.73.1 scaffold pins, not emitted protection) | decision over a guarded read | command validation |
24
+ | Precondition on stream state | `reads` + `require` as stated intent, not enforced (target: Arc `[ProtectedDecision]` + `DecisionRead<T>`, or Chronicle DCB; APIs available to gap-fill in the Arc and Chronicle the Stage scaffold pins, not emitted protection) | decision over a guarded read | command validation |
25
25
  | Generated id (`derived:uuid4()`) | `generated` (authorable, not executable) | id supplied before `Handle()` | commands |
26
26
  | External system / outbound call | `Translate` slice (inbound); `system`/`operation` (authorable, not executable) or Automation (outbound) | `ICommandOperation` / reactor | operations, reactors |
27
27
  | HTML mockup | `screen` Level 1 + board (`visualize-model`) | default Scene composition | ui composition |
@@ -42,7 +42,7 @@ Screenplay meaning, and when you meet the older usage, translate it and say so.
42
42
  - Screenplay **`reaction`**: the construct that models it (`when` trigger, optional `where`,
43
43
  `invokes` a command or `produces` events).
44
44
  - Chronicle **reactor**: C# observer, usually for side effects; it does not by itself define
45
- business decisions. Stage 4.89.1 renders supported event-triggered Automation as Chronicle reactors.
45
+ business decisions. Stage renders supported event-triggered Automation as Chronicle reactors.
46
46
  Translate/captures and refused reactions remain gap-fill. Mixed events and commands
47
47
  in one handler remain `STAGE-ESM-037`: Arc supports the return shape, but redelivery
48
48
  after a failed command duplicates events. Keep the reaction whole and prove retry safety.
@@ -80,7 +80,7 @@ module Berths
80
80
  specification can state the exact rejection. No `BerthReassigned` event was added to carry it.
81
81
  - The `Cannot` line in the persona resolves to the `HarbourOffice` policy and a `then denied`
82
82
  specification whose caller fixture carries a non-matching role.
83
- - On Screenplay 4.144.0, record Q1 as a `question` note on `Berths.Allocation`:
83
+ - Record Q1 as a `question` note on `Berths.Allocation`:
84
84
  "Is allocation always manual? Assuming manual allocation; an automatic route
85
85
  would need an automation." The documentation carries the working assumption;
86
86
  STATE.md carries the returned note ID. Read `stop-or-assume.md` "Durable
@@ -26,25 +26,15 @@ hand-copy Screenplay source between repositories. Keep Markdown that explains,
26
26
  questions or navigates the model in the repository's documentation; the `.play`
27
27
  source is the single flow model.
28
28
 
29
- ## Verified product sources
29
+ ## Product sources
30
30
 
31
- | Package | Version | Purpose |
32
- | --- | --- | --- |
33
- | `Cratis.Screenplay` | `4.31.0` | PDL parser, validator, diagnostics, semantic binder |
34
- | `Cratis.Screenplay` | main `fd18129` | Inline event extraction and context identity guidance |
35
- | `Cratis.Screenplay` | `4.66.0` (`c89198b`) | Reducer-body binding (`Semantics/`); no PDL syntax change affects the examples |
36
-
37
- The update follows `commands.md`, `events.md` and `mcp/authoring-tools.md` at
38
- that main commit (after v4.52.0); no PDL example changes in this update.
39
-
40
- Originally checked against the Screenplay repository at tag `v4.31.0` (commit `355dffb`; the
41
- projection grammar was re-read at v4.139.0 for headers and dynamic keys):
42
- `Documentation/screenplay/projections/` (including `semantic-model.md`, `keys.md`
43
- and `variants.md`), `readmodels.md`, `diagnostics.md` and decisions 0001 and 0002.
44
- Every example below compiles with that version's compiler. Reverify before
45
- claiming another version behaves the same.
31
+ Screenplay `Documentation/screenplay/projections/` (including `semantic-model.md`, `keys.md`
32
+ and `variants.md`), `readmodels.md`, `diagnostics.md`, `commands.md`, `events.md` and
33
+ `mcp/authoring-tools.md` describe the PDL parser, validator, diagnostics, semantic binder and
34
+ reducer-body binding (`Semantics/`). Every example below compiles with the standalone compiler.
35
+ Reverify before claiming another version behaves the same.
46
36
 
47
- **Chronicle decides what a projection means** (Screenplay decision 0001).
37
+ **Chronicle decides what a projection means.**
48
38
  Screenplay owns the grammar; which instance an event affects, what a join may
49
39
  create and what a removal removes follow Chronicle's lowering. Syntax that
50
40
  compiles can still mean something other than it seems: read the warnings.
@@ -298,7 +288,7 @@ Diagnostics: no `enters on` (`PLAY0382`), a shared mapping a variant's read
298
288
  model lacks (`PLAY0383`), duplicate variant names (`PLAY0384`), an entering
299
289
  event claimed twice (`PLAY0385`). The executable model binds variants the way Chronicle's client SDK
300
290
  reclassifies them; Chronicle's hosted declaration language does not lower them
301
- yet (Cratis/Chronicle#4109). Use variants for genuinely different shapes, not for
291
+ yet. Use variants for genuinely different shapes, not for
302
292
  a single `status` field.
303
293
 
304
294
  ## When PDL is not enough — the reducer
@@ -334,7 +324,7 @@ What the executable model does with it (ESM v3):
334
324
  - The body is an opaque attachment identified by a content hash, never compiled
335
325
  or run by Screenplay. The reference runner cannot compute reducer state, so a
336
326
  specification that reads a reducer-built read model reports unsupported and
337
- never passes. A target must supply the transition. Stage (4.73.1) admits only pure reducer bodies
327
+ never passes. A target must supply the transition. Stage admits only pure reducer bodies
338
328
  (Roslyn allowlist, `STAGE-ESM-019`/`-022`); an impure body is gap-fill code, and the model stays the contract.
339
329
 
340
330
  **Prefer a projection where one will do.** A reducer is code, and code is the part
@@ -344,10 +334,9 @@ Read [pdl-grammar.md](references/pdl-grammar.md) when checking exact syntax, int
344
334
 
345
335
  ## Verify
346
336
 
347
- - [ ] Standalone `screenplay <model> --warnaserror` (4.68.0) reports zero errors and zero
337
+ - [ ] Standalone `screenplay <model> --warnaserror` reports zero errors and zero
348
338
  warnings; or `cratis screenplay validate --warnings-as-errors` on the model folder
349
- (3.28.2 bundles the same Screenplay 4.66.0; before 3.28.2 bundled 4.60.1, ESM v5
350
- or lower). Name which tool produced the result. If it reports diagnostics, correct the model and rerun the same command; report unresolved diagnostics as blockers rather than a passing verification.
339
+ (an older bundled compiler can stop at a lower ESM version). Name which tool produced the result. If it reports diagnostics, correct the model and rerun the same command; report unresolved diagnostics as blockers rather than a passing verification.
351
340
  - [ ] Each read model has **exactly one** builder.
352
341
  - [ ] No projection-level `key`; every `from` that must address the same
353
342
  instance is keyed on the same identity.
@@ -12,7 +12,7 @@ Checked against `Documentation/screenplay/projections/{grammar,semantic-model,ke
12
12
  and `Source/DotNET/Screenplay/Parsing/ProjectionParser.cs` at Screenplay tag
13
13
  `v4.31.0` (commit `355dffb`); the header `description` and the dynamic dictionary-key target
14
14
  (`Target = ["@"] Path [DynamicKey]`, `DynamicKey = "." "$eventContext" "." EventContextPath`) were added in
15
- later releases and re-read at v4.139.0.
15
+ later releases and re-read.
16
16
 
17
17
  The grammar says what **parses**. It does not say what an event does at runtime:
18
18
  Chronicle's lowering decides that (Screenplay decision 0001), and the
@@ -4,7 +4,6 @@
4
4
  "fixtures": [],
5
5
  "assertions": [
6
6
  { "kind": "play-compiles" },
7
- { "kind": "skill-contains", "value": "main `fd18129`" },
8
7
  { "kind": "skill-contains", "value": "it changes no projection contract" },
9
8
  { "kind": "skill-contains", "value": "map the read-model identity from `$eventSourceId`" },
10
9
  { "kind": "skill-contains", "value": "Look first for the project's existing `.play` files" },
@@ -25,23 +25,12 @@ hand-copy Screenplay source between repositories. Keep Markdown that explains,
25
25
  questions or navigates the model in the repository's documentation; the `.play`
26
26
  source is the single flow model.
27
27
 
28
- ## Verified product sources
28
+ ## Product sources
29
29
 
30
- | Package | Version | Purpose |
31
- | --- | --- | --- |
32
- | `Cratis.Screenplay` | `4.31.0` | Original parser, validator and binder evidence |
33
- | `Cratis.Screenplay` | main `fd18129` | Canonical optionality; changed examples compiled |
34
- | `Cratis.Screenplay` | `4.66.0` (`c89198b`) | Which query shapes bind and render (`Semantics/`, `Documentation/screenplay/queries.md`) |
35
-
36
- The update follows `types.md`, `queries.md` and `vscode.md` at that main commit
37
- (after v4.52.0). Compilation does not establish query execution. Current equality-filter evidence:
38
- Screenplay v4.145.0 (admitted in 4.143.0, decision 0069); read
39
- [the verified sources and compiled example](references/equality-filters.md).
40
-
41
- Checked against the Screenplay repository at tag `v4.31.0` (commit `355dffb`):
42
- `Documentation/screenplay/{queries,readmodels,screens,policies,specifications,interactions}.md`
43
- and decision 0010 established the original baseline. Changed examples use the
44
- newer main commit above; do not attribute their verification to the old tag.
30
+ Screenplay `Documentation/screenplay/{queries,readmodels,screens,policies,specifications,interactions,types,vscode}.md`
31
+ describe the parser, validator and binder behavior, including which query shapes bind and render
32
+ (`Semantics/`). Compilation does not establish query execution. Equality-filter evidence: read
33
+ [the sources and compiled example](references/equality-filters.md).
45
34
 
46
35
  ## `readmodel` — shape only
47
36
 
@@ -66,8 +55,8 @@ and an admitted list query does the binder infer an unambiguous `*Id`; queryless
66
55
  read models need an explicit `key`. See named keys below for collection-key exclusions.
67
56
  One explicit key binds byte-identically to equivalent inference. Several marks
68
57
  form a composite key, supplied by name in query/read
69
- `by` blocks. At Screenplay 4.135.0 composite keys and block queries remain
70
- **authoring-only** (PLAY0268, #599); the scalar optional snapshot shape binds.
58
+ `by` blocks. Composite keys and block queries remain
59
+ **authoring-only** (PLAY0268); the scalar optional snapshot shape binds.
71
60
  Read [named keys](references/named-keys.md) for complete examples, trigger/command
72
61
  reads, all-parts fixtures, PLAY0660–0662 and command-read-only PLAY0661 repair.
73
62
  A `=>` target resolving to an event is an event-target builder, not a read model;
@@ -87,7 +76,7 @@ query ListInvoices => InvoiceListReadModel[]
87
76
  ```
88
77
 
89
78
  **Name the compiler and renderer.** Optional keyed queries and collection queries
90
- bind, including `observable`. Since Screenplay 4.143.0, caller-supplied equality
79
+ bind, including `observable`. Caller-supplied equality
91
80
  filters on collections bind as ESM v14; `from`, single-result filters, `scoped to`,
92
81
  `performer` and composite `by` remain PLAY0268, each with its reason. Read
93
82
  [equality filters](references/equality-filters.md) for the admitted shape, a complete
@@ -138,7 +127,7 @@ down, rather than the one you get by forgetting."*
138
127
  language documents, but the grammar accepts any name — what scopes exist follows
139
128
  the identity model of whatever runs the document. A query declares at most one.
140
129
 
141
- At Screenplay 4.127.0, `scoped to` remains an opaque name, **not** a reference
130
+ `scoped to` remains an opaque name, **not** a reference
142
131
  to a declared identity detail. An `identity` query source must be keyed and return
143
132
  one result (possibly optional), with a type compatible with the detail; its key
144
133
  uses only caller built-ins/claims/literals and its effective gate cannot depend
@@ -157,8 +146,7 @@ to a live query exactly as it binds to a one-shot one. The delivery itself is th
157
146
  target runtime's: the executable model binds `observable` queries (delivery `live`) that
158
147
  have no opaque scope/performer and, when filtered, only admitted caller-supplied equality filters (ESM v14).
159
148
 
160
- Paging, sorting and change-set delivery for queries are accepted as Screenplay
161
- decision 0010 but **not in the language yet**. Do not invent syntax for them.
149
+ Paging, sorting and change-set delivery for queries are are planned but **not in the language yet**. Do not invent syntax for them.
162
150
 
163
151
  ### `performer`
164
152
 
@@ -171,21 +159,21 @@ Screenplay never runs it.
171
159
 
172
160
  A read model a performer composes needs no projection, and no event builds it.
173
161
  Specify it from state with `given readmodel`, then `when query <Query>` with the
174
- arguments and `then result` (v4.48.0) - see `cratis-screenplay-specifications`.
162
+ arguments and `then result` - see `cratis-screenplay-specifications`.
175
163
 
176
164
  A query's key goes on its own `by` line in the body. `query X => RM optional by id Type`
177
165
  on the header line is a declaration error, not a shorthand.
178
166
 
179
167
  ### What runs
180
168
 
181
- These bind on standalone 4.153.0: keyed `=> RM optional`, unfiltered collections,
169
+ These bind: keyed `=> RM optional`, unfiltered collections,
182
170
  collections narrowed by caller-supplied `by`, and their `observable` forms.
183
- Caller-supplied equality filters on collections select ESM v14: same-named scalar
171
+ Caller-supplied equality filters on collections select ESM v14 (Requires Screenplay 4.143.0 or later): same-named scalar
184
172
  primitive/concept/enum properties, same nominal type ignoring optionality, no
185
173
  `from`, distinct names not repeating `by`. `by` and supplied filters AND together;
186
174
  optional filters may be omitted, but supplied null is refused. PLAY0268 still
187
175
  rejects context sources, single-result filters, opaque scope/performer and
188
- composite `by` (#599); a single non-optional result remains unadmitted too.
176
+ composite `by`; a single non-optional result remains unadmitted too.
189
177
  Authorization runs before lookup, ANDed with module/feature gates; policies see
190
178
  only `by`, never filters. Pin denial with `given caller` and `then denied`.
191
179
  Specs pass `by` and filters by name (PLAY0468 for unknown, repeated or missing
@@ -300,10 +288,9 @@ binding failures are errors.
300
288
 
301
289
  ## Verify
302
290
 
303
- - [ ] Standalone `screenplay <model> --warnaserror` (4.68.0) reports zero errors and zero
291
+ - [ ] Standalone `screenplay <model> --warnaserror` reports zero errors and zero
304
292
  warnings; or `cratis screenplay validate --warnings-as-errors` on the model folder
305
- (3.28.2 bundles the same Screenplay 4.66.0; before 3.28.2 bundled 4.60.1, ESM v5
306
- or lower). Name which tool produced the result.
293
+ (an older bundled compiler can stop at a lower ESM version). Name which tool produced the result.
307
294
  - [ ] Every value the caller must not choose is a `from` parameter, not a `filter`.
308
295
  - [ ] Every `scoped to global` is deliberate and defensible.
309
296
  - [ ] `observable` is present exactly where the caller should see changes without
@@ -9,10 +9,9 @@
9
9
  - Specifications that run
10
10
  - Argument diagnostics
11
11
  - Rendering is a different verdict
12
- - Verified product sources
12
+ - Product sources
13
13
 
14
- Screenplay **4.143.0 and later**, including the standalone **4.153.0** pin,
15
- binds `filter <name> <Type> [optional]` on a collection query when:
14
+ Screenplay binds `filter <name> <Type> [optional]` on a collection query when:
16
15
 
17
16
  - there is no `from` source;
18
17
  - the read model has a same-named non-collection primitive, concept or enum property;
@@ -189,9 +188,8 @@ module FilteringExamples
189
188
 
190
189
  ## Rendering is a different verdict
191
190
 
192
- **CLI 3.57.0** bundles **Screenplay 4.147.1 / Stage 4.89.1**, admitting through
193
- **ESM v15**. Equality filters render on observable collections, with or without
194
- `by`, combined by AND. Optional omission is preserved. Snapshot lists, DateTime
191
+ A CLI whose bundled Screenplay and Stage admit **ESM v14** or later renders equality filters on observable collections, with or without
192
+ `by`, combined by AND.`by`, combined by AND. Optional omission is preserved. Snapshot lists, DateTime
195
193
  filters and required filter parameters after optional ones refuse `STAGE-ESM-010`;
196
194
  parameter name collisions refuse `-012`. Generated query specifications pass named
197
195
  arguments and check result counts. The semantic Host executes filters, but the
@@ -199,15 +197,13 @@ independent specification executor refuses filtered assertions with `-010`
199
197
  (and retains the GivenReadModel gap). V3/V4 is still not a render/build/test result;
200
198
  never erase filters to obtain a render.
201
199
 
202
- ## Verified product sources
203
-
204
- - Screenplay **v4.145.0**: accepted/implemented decision
205
- `decisions/0069-admit-equality-query-filters-as-esm-v14.md`;
206
- `Documentation/screenplay/queries.md` (Executable equality filters),
207
- `specifications.md:145,307-319,409-428`; admission shipped in v4.143.0.
208
- - Stage **v4.89.1**: `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:105`
209
- uses `EsmSchemaV15Support`; `SemanticCratisAdmission.StateView.cs:139-178`
210
- checks filters/order; `Documentation/docker/index.md:143-153`, `docker/spec-runner.md:35-43`
211
- distinguish Host and independent executor.
212
- - CLI **v3.57.0**: `Directory.Packages.props:8-10` pins Screenplay 4.147.1 / Stage
213
- 4.89.1; `Source/Cli/Commands/Render/RenderedSemanticVersions.cs:34-47` admits v1-v15.
200
+ ## Product sources
201
+
202
+ - Screenplay: `Documentation/screenplay/queries.md` (Executable equality filters) and
203
+ `specifications.md`.
204
+ - Stage: `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs` and
205
+ `SemanticCratisAdmission.StateView.cs` check filters/order; `Documentation/docker/index.md`,
206
+ `docker/spec-runner.md` distinguish Host and independent executor.
207
+ - CLI: `Source/Cli/Commands/Render/RenderedSemanticVersions.cs` lists the admitted ESM versions.
208
+
209
+ Requires Screenplay 4.143.0 or later (`screenplay --version`) for caller-supplied equality filters (ESM v14).