@cratis/pi 7.11.0 → 7.11.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 (89) hide show
  1. package/package/corpus/harnesses/pi/extensions/cratis-hooks/index.ts +6 -5
  2. package/package/corpus/harnesses/pi/extensions/cratis-hooks/quality-gate.ts +25 -4
  3. package/package/corpus/hooks/README.md +33 -7
  4. package/package/corpus/hooks/scripts/cratis-quality-gate.sh +246 -79
  5. package/package/corpus/hooks/scripts/quality-gates.json +17 -3
  6. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +1 -1
  7. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +3 -3
  8. package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +1 -1
  9. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +12 -10
  10. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +2 -2
  11. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
  12. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +4 -3
  13. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +7 -7
  14. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -2
  15. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
  16. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +24 -22
  17. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +5 -7
  18. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +6 -6
  19. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +9 -9
  20. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
  21. package/package/corpus/skills/cratis-screenplay-discovery/references/storming-loop.md +1 -1
  22. package/package/corpus/skills/cratis-screenplay-discovery/references/worked-session.md +1 -1
  23. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +6 -6
  24. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +3 -4
  25. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +5 -5
  26. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +6 -6
  27. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +1 -1
  28. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +1 -1
  29. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +6 -5
  30. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +14 -13
  31. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +8 -7
  32. package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +3 -3
  33. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +3 -3
  34. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
  35. package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +1 -1
  36. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +1 -1
  37. package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +1 -1
  38. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +4 -4
  39. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +2 -2
  40. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +25 -11
  41. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
  42. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +1 -1
  43. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +5 -5
  44. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +5 -5
  45. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +7 -6
  46. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +1 -1
  47. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +1 -1
  48. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +4 -4
  49. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +5 -5
  50. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +10 -9
  51. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -2
  52. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -3
  53. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +2 -2
  54. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +2 -2
  55. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +1 -1
  56. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +4 -4
  57. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +1 -1
  58. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +3 -3
  59. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +1 -1
  60. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
  61. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +30 -29
  62. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +2 -2
  63. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +3 -3
  64. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +1 -1
  65. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +1 -1
  66. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +18 -17
  67. package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -2
  68. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +2 -3
  69. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +4 -4
  70. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +4 -3
  71. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +7 -7
  72. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +14 -10
  73. package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
  74. package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +8 -8
  75. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +7 -6
  76. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +2 -2
  77. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +8 -8
  78. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +12 -10
  79. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +46 -36
  80. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +2 -2
  81. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +4 -4
  82. package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
  83. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +3 -3
  84. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +12 -9
  85. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +8 -7
  86. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +3 -3
  87. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +1 -1
  88. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +4 -1
  89. package/package.json +1 -1
@@ -10,11 +10,10 @@ destination-type information; a reaction can also consume events from a capture
10
10
  **Scope.** This document is the runnable demonstration only. It deliberately holds no rule that
11
11
  depends on stored state (the invoice must exist, only an open invoice may be voided, a reversal
12
12
  needs a received payment, `reads` + `require`): those rules cannot bind or run at Screenplay
13
- 4.64.0 (PLAY0271, PLAY0268) and are stated in the design-mode document `invoicing-dues-design.md`,
13
+ 4.66.0 (PLAY0271, PLAY0268) and are stated in the design-mode document `invoicing-dues-design.md`,
14
14
  never in prose here. It shows the category shapes; for a coverage example see `berth-reservations.md`.
15
15
 
16
16
  ```screenplay
17
- // Needs the standalone screenplay compiler (ESM v6)
18
17
  // Scenario coverage worked example: invoicing club dues (complete document).
19
18
  // Backs the excerpts in scenario-examples.md and view-and-story-specs.md: issue an invoice,
20
19
  // request payment, an external gateway result captured and translated, an open-invoices todo list family and an accumulating credit balance.
@@ -411,4 +410,4 @@ module Invoicing
411
410
  `invoicing-dues-design.md`, because the command needs a stored-state rule.
412
411
  - The query answers "absent" with no `result` block; the whole-list query and the `OpenInvoices`
413
412
  list view in the excerpts are design-mode expectations (list queries compile but do not bind at
414
- 4.64.0, PLAY0268, `cratis-screenplay-toolchain`, so they are retained as design-mode expectations): see `view-and-story-specs.md`.
413
+ 4.66.0, PLAY0268, `cratis-screenplay-toolchain`, so they are retained as design-mode expectations): see `view-and-story-specs.md`.
@@ -1,7 +1,7 @@
1
1
  # Provenance
2
2
 
3
3
  Lineage of `cratis-screenplay-scenario-coverage`. The method was first drafted for the Cratis
4
- corpus from Screenplay specification semantics (verified at tag v4.64.0) and refined against two
4
+ corpus from Screenplay specification semantics (verified at tag v4.66.0) and refined against two
5
5
  external event-modeling skill sets.
6
6
 
7
7
  ## Adapted closely (MIT)
@@ -40,7 +40,7 @@ Chronicle verification obligations, version skew for reaction cascades, spec for
40
40
  the berth reservations example.
41
41
 
42
42
  ## Product facts checked
43
- - Screenplay v4.64.0 (`7e16162`): `Documentation/screenplay/specifications.md` (actions, outcomes,
43
+ - Screenplay v4.66.0 (`c89198b`): `Documentation/screenplay/specifications.md` (actions, outcomes,
44
44
  `then denied`, `then no readmodel`, `then query`, `then events in any order`, PLAY0352,
45
45
  PLAY0389) and the probes recorded in the version table of `cratis-screenplay-toolchain`
46
46
  `references/versions.md`.
@@ -126,7 +126,7 @@ name them as unfinished.
126
126
  facts. There is no `then no events` syntax. A command spec with no `then` events but with a
127
127
  view or query assertion is still executable as a zero-fact check: the runner compares the
128
128
  command's facts with the (empty) expected list by exact count, so any fact produced fails it
129
- (Screenplay v4.64.0). Write it that way, name it for the zero-fact outcome, and keep the view
129
+ (Screenplay v4.66.0). Write it that way, name it for the zero-fact outcome, and keep the view
130
130
  assertion for the visible state. Record the obligation as unasserted only where the runner is
131
131
  not available.
132
132
 
@@ -137,7 +137,7 @@ name them as unfinished.
137
137
  capture, a reaction) the view or translation must cope with any order.
138
138
  - Shape: view family whose givens are in a different order; translation specs where the
139
139
  external record arrives before our own fact; `given clock`/`when clock` for deadlines
140
- (binds on the current compiler, not the cratis-bundled one: `cratis-screenplay-toolchain` `references/versions.md`; see
140
+ (binds on Screenplay 4.61 or later, so not on a cratis before 3.28.2 bundle: `cratis-screenplay-toolchain` `references/versions.md`; see
141
141
  `cratis-screenplay-automations-and-translations`).
142
142
  - n/a: a single event source, with no external or cross-source input.
143
143
 
@@ -138,7 +138,7 @@ A reversal needs a paid history, the reversal action and the exact consequence.
138
138
  lists the declared consequence (`RefundRequested`); the reaction is also specified on its own.
139
139
  `RefundRequested` is a recorded request, not proof that money moved, and there is no
140
140
  `then <Command>` form. What the target must do to deliver the refund is a requirement, not a spec.
141
- From `invoicing-dues-design.md` (design mode; the specs do not run at 4.64.0):
141
+ From `invoicing-dues-design.md` (design mode; the specs do not run at 4.66.0):
142
142
  ```screenplay excerpt
143
143
  specification ReversingAReceivedPayment
144
144
  given caller
@@ -15,8 +15,8 @@ design model: keep it and record the gap.
15
15
  | `then query` on list, filtered or observable queries | yes | no (query does not bind) | no |
16
16
  | `then no readmodel <RM> for "<key>"` | yes | yes | no |
17
17
  | `when query` -> `then result` / `then no result` | yes | yes | same as `then query`: only the query-only cases below |
18
- | `given clock` / `when clock`, `when trigger`, `given`/`when capture` | yes | current compiler yes; cratis-bundled compiler no (see versions.md) | no |
19
- | Command spec listing reaction cascade events | yes (v6 semantics) | false PLAY0285 on the cratis-bundled compiler; see SKILL.md "Version skew" | no (no reactions) |
18
+ | `given clock` / `when clock`, `when trigger`, `given`/`when capture` | yes | Screenplay 4.61 or later yes (standalone, cratis 3.28.2 or later); a cratis before 3.28.2 bundle no (see versions.md) | no |
19
+ | Command spec listing reaction cascade events | yes (v6 semantics) | false PLAY0285 on a cratis before 3.28.2 bundle only; see SKILL.md "Version skew" | no (no reactions) |
20
20
  | `then events in any order` | yes | yes | yes |
21
21
  | Composite (JSON) values in specs | yes | yes | no |
22
22
  | Rules over dates or `today`, nested paths | spec them in design | rule does not bind: `recorded` | `recorded` |
@@ -25,8 +25,8 @@ design model: keep it and record the gap.
25
25
 
26
26
  ## Design mode
27
27
  Write the full intended behaviour, including scenarios the executable subset cannot run
28
- (list views; clock, trigger and capture scenarios when only the cratis-bundled compiler is
29
- available). Mark each such spec in the coverage matrix as
28
+ (list views; clock, trigger and capture scenarios when only a cratis before 3.28.2
29
+ bundle is available). Mark each such spec in the coverage matrix as
30
30
  `gap: <reason>` for the narrower modes so the verification and render phases know what will not execute.
31
31
 
32
32
  ## Executable mode
@@ -117,7 +117,7 @@ execution/rendering limit.
117
117
  being current (a booking screen that must not offer a taken berth), that is not protection:
118
118
  the command needs its own constraint, or the rule is `recorded` as target-enforced.
119
119
  - **Rebuild**: a view rebuilt from all facts must give the same rows. Mappings from
120
- `$eventContext.occurred` or other occurrence data cannot be executed at Screenplay v4.64.0:
120
+ `$eventContext.occurred` or other occurrence data cannot be executed at Screenplay v4.66.0:
121
121
  the plan blocks every event-context path except the event source id
122
122
  (`UnsupportedEventContext`). `given clock` does not change that; it supplies `$context.occurred`
123
123
  to command productions only. Record such projection cases as capability gaps (keep the
@@ -201,10 +201,10 @@ Slice design is done when these hold; otherwise report what is open.
201
201
 
202
202
  | Source | Pin | Used for |
203
203
  | --- | --- | --- |
204
- | Screenplay | `v4.64.0` (`7e16162`) | `commands.md`, `constraints.md`, `specifications.md`, `diagnostics.md` (`PLAY0191`, `PLAY0268`, `PLAY0271`, `PLAY0350`, `PLAY0381`, `PLAY0397`), `projections/keys.md` |
204
+ | Screenplay | `v4.66.0` (`c89198b`) | `commands.md`, `constraints.md`, `specifications.md`, `diagnostics.md` (`PLAY0191`, `PLAY0268`, `PLAY0271`, `PLAY0350`, `PLAY0381`, `PLAY0397`), `projections/keys.md` |
205
205
 
206
- Examples compile with `screenplay` 4.64.0 `--warnaserror` and `cratis screenplay validate
207
- --warnings-as-errors` (cratis 3.27.1); other pins: `cratis-screenplay-toolchain`
206
+ Examples compile with `screenplay` 4.66.0 `--warnaserror` and `cratis screenplay validate
207
+ --warnings-as-errors` (cratis 3.28.2); other pins: `cratis-screenplay-toolchain`
208
208
  `references/versions.md`. Compiling proves syntax, not that the model is executable or renders.
209
209
 
210
210
  ## Verify
@@ -150,7 +150,7 @@ has children, not a single value.
150
150
 
151
151
  - Event properties fill read-model properties of the same name automatically (AutoMap), but the
152
152
  match differs by binding: a scoped projection matches names case-insensitively and only for
153
- the same type (Screenplay v4.64.0 `ProjectionValues.cs` `AutoMapped`); a flat-bound projection
153
+ the same type (Screenplay v4.66.0 `ProjectionValues.cs` `AutoMapped`); a flat-bound projection
154
154
  matches exact names only and does not check the type, so a same-named property of another
155
155
  type makes the model invalid (`Projections.cs` `BindFlatTransition`). Do not rely on AutoMap
156
156
  where it matters: map explicitly when names or types differ, and use `no automap` where an
@@ -2,7 +2,7 @@
2
2
 
3
3
  One complete model for `cratis-screenplay-slice-design`. It is in **design mode**: V1 clean
4
4
  (compiles with warnings as errors); V3 is blocked on purpose by the `ListLockers` list query
5
- (`PLAY0268` at binding); `given clock` also fails binding on the cratis-bundled compiler only
5
+ (`PLAY0268` at binding); `given clock` also failed binding on a cratis before 3.28.2 bundle (3.28.2 binds it)
6
6
  (`cratis-screenplay-toolchain` `references/versions.md`). Personas and screens are informational.
7
7
  The stored-state rules in `AssignLocker` (`reads` + `require`) are intent, not enforced today,
8
8
  and they also fail binding on their own: `PLAY0271` on each `reads`, and `PLAY0268` because the
@@ -30,17 +30,17 @@ source is the single flow model.
30
30
  | --- | --- | --- |
31
31
  | `Cratis.Screenplay` | `4.31.0` | Original parser, binder and reference execution evidence |
32
32
  | `Cratis.Screenplay` | main `fd18129` | Inline facts, `optional` and clock spelling; changed examples compiled |
33
- | `Cratis.Screenplay` | `4.64.0` (`7e16162`) | ESM v6 specification actions and reaction cascades, `then no readmodel`, `$strings` rejections, `invokes` caller rule; probed with the standalone tool and its MCP server |
33
+ | `Cratis.Screenplay` | `4.66.0` (`c89198b`) | ESM v6 specification actions and reaction cascades, `then no readmodel`, `$strings` rejections, `invokes` caller rule; probed with the standalone tool and its MCP server |
34
34
 
35
35
  The update follows `commands.md`, `events.md`, `types.md` and
36
36
  `specifications.md` at that main commit (after v4.52.0). This pass compiles the
37
37
  changed examples; it does not rerun the reference runner.
38
38
 
39
- **Which tool says what.** The standalone `screenplay` tool 4.64.0 admits ESM v1-v6.
40
- The `cratis` CLI 3.27.1 bundles Screenplay 4.60.1, which admits ESM v1-v5 only and
41
- reports a false `PLAY0285` on reaction cascades (see "Version skew"). Facts below
42
- marked **ESM v6** hold for the standalone tool from 4.61.0 and for `cratis` only
43
- after it bundles a newer compiler. The full table is in `cratis-screenplay-toolchain`
39
+ **Which tool says what.** The standalone `screenplay` tool 4.66.0 admits ESM v1-v6.
40
+ The `cratis` CLI 3.28.2 bundles the same Screenplay 4.66.0. Before `cratis` 3.28.2 the
41
+ bundle was Screenplay 4.60.1, which admitted ESM v1-v5 only and reported a false
42
+ `PLAY0285` on reaction cascades (see "Version skew"). Facts below marked **ESM v6**
43
+ hold for Screenplay 4.61.0 and later: the standalone tool and `cratis` 3.28.2 or later. The full table is in `cratis-screenplay-toolchain`
44
44
  (`references/versions.md`). Neither tool runs specifications: `screenplay` and
45
45
  `cratis screenplay validate` parse and check consistency, the MCP server also binds,
46
46
  and spec outcomes come only from the reference runner as a library, Stage's
@@ -77,7 +77,7 @@ decision 0022. They do not exist before v4.48.0.
77
77
  | `then <EventType>` | an expected new event |
78
78
  | `then events in any order` | compare the new events without regard to order |
79
79
  | `then readmodel <ReadModelType> [exactly]` | read-model state afterwards — must state the identifier |
80
- | `then no readmodel <ReadModelType> for <key>` | exactly that keyed instance is absent (v4.64.0); the key is concrete and typed |
80
+ | `then no readmodel <ReadModelType> for <key>` | exactly that keyed instance is absent (v4.66.0); the key is concrete and typed |
81
81
  | `then query <Query> [exactly]` | query results for explicit `arguments`; one `result` per row; none means empty |
82
82
  | `then error "<message>"` | a validation or constraint rejection, for that reason; a localized rule is pinned by its quoted key, `then error "$strings.<key>"` |
83
83
  | `then error` | a validation or constraint rejection, reason unnamed |
@@ -257,21 +257,21 @@ assert a value mapped from `$context.occurred`. In a command's `produces`, that
257
257
  mapping executes when the scenario has `given clock`. It is not the same as
258
258
  `$eventContext.occurred` in a projection, which the execution plan refuses (below).
259
259
 
260
- **Which tools bind these actions** (probed: the standalone `screenplay mcp` 4.64.0
261
- reports the complete example below `executableReady` with no executable error, in
260
+ **Which tools bind these actions** (probed: `screenplay mcp` 4.66.0 and `cratis screenplay mcp` 3.28.2
261
+ report the complete example below `executableReady` with no executable error, in
262
262
  `open-workspace` readiness and `read-workspace` view `executable-diagnostics`;
263
- `cratis` 3.27.1 bundles 4.60.1 and does not):
263
+ `cratis` before 3.28.2 bundled 4.60.1 and did not):
264
264
 
265
- - **Standalone tool, Screenplay 4.64.0 (ESM v6, from 4.61.0):** the clock, trigger
265
+ - **Screenplay 4.66.0 (ESM v6, from 4.61.0), standalone and `cratis` 3.28.2:** the clock, trigger
266
266
  and capture actions, and the `Automation` and `Translate` slices, reactions and
267
267
  captures they drive, bind. The reference runner executes them as library code, with
268
268
  the semantics in "Reactions and cascades" below.
269
- - **`cratis` 3.27.1 (Screenplay 4.60.1, ESM v1-v5):**
270
- **`when query` executes today. The clock, trigger and capture actions do not.** They parse, print and are
271
- checked against the application, but binding reports `PLAY0268` naming the
272
- proposed ESM v6 (decision 0022), and an `Automation` or `Translate` slice reports
273
- *is not admitted by ESM v1*. Only binding shows this: `cratis screenplay validate`
274
- does not bind, so it stays green.
269
+ - **`cratis` before 3.28.2 (Screenplay 4.60.1, ESM v1-v5):**
270
+ **`when query` executed. The clock, trigger and capture actions did not.** They parsed, printed and were
271
+ checked against the application, but binding reported `PLAY0268` naming the
272
+ proposed ESM v6 (decision 0022), and an `Automation` or `Translate` slice reported
273
+ *is not admitted by ESM v1*. Only binding showed this: `cratis screenplay validate`
274
+ does not bind, so it stayed green.
275
275
 
276
276
  Write the actions either way - they state what sets the slice off. Report each as
277
277
  bound and not executed, or as parsed only, naming the tool that said so.
@@ -284,7 +284,6 @@ and what those append or invoke runs more, until nothing is left. `then` events
284
284
  compare every new fact, the action's and the reactions'.
285
285
 
286
286
  ```screenplay
287
- // Needs the standalone screenplay compiler (ESM v6)
288
287
  concept InvoiceId : Uuid
289
288
  module Collections
290
289
  feature Invoices
@@ -333,21 +332,22 @@ module Collections
333
332
  - A reached reaction with a code body (`file` or inline) returns unsupported, as
334
333
  does a reaction that never settles. The reference stops at 1,000 new facts per
335
334
  scenario and 10,000 due occurrences per clock advance.
336
- - A model that uses these forms selects ESM v6 (`schemaVersion: 6`). Stage 4.24.0
335
+ - A model that uses these forms selects ESM v6 (`schemaVersion: 6`). Stage 4.24.1
337
336
  admits ESM v1-v3 and renders no `Automation` or `Translate` slice, so the whole
338
337
  automation is gap-fill against this contract: `cratis-screenplay-render-and-gap-fill`.
339
338
 
340
- ### Version skew: cascades and the false `PLAY0285`
339
+ ### Version skew: cascades and the false `PLAY0285` (cratis before 3.28.2)
341
340
 
342
341
  `PLAY0285` (a specification's expected event contradicts every producer of its
343
342
  `when` command) runs in the syntax pass, with no binding. Reachability through
344
343
  reactions and `invokes` was added after Screenplay 4.60.1. So the example above
345
- passes `screenplay` 4.64.0 (and is executable-ready over its MCP server) and fails `cratis screenplay
346
- validate` 3.27.1 with `PLAY0285` "Specification outcome 'ReminderScheduled' cannot be
347
- produced by 'SendInvoice'", exit 5 (Cratis/cli#242, open). It is a tool skew, not a
344
+ passes `screenplay` 4.66.0 (and is executable-ready over its MCP server) and also passes
345
+ `cratis screenplay validate` 3.28.2 (probed); it failed `cratis screenplay validate` 3.27.1 with
346
+ `PLAY0285` "Specification outcome 'ReminderScheduled' cannot be produced by 'SendInvoice'",
347
+ exit 5 (Cratis/cli#242). If an older bundle still reports it, it is a tool skew, not a
348
348
  modeling error: do not delete the `then` line or move the event to make `cratis`
349
- green. Validate with the standalone tool, record which tool gave which verdict, and
350
- see `cratis-screenplay-toolchain`.
349
+ green. Validate with the standalone tool or a current `cratis`, record which tool gave which
350
+ verdict, and see `cratis-screenplay-toolchain`.
351
351
 
352
352
  ## Rejections and denials say different things
353
353
 
@@ -474,8 +474,9 @@ target has one normalized behavior to match.
474
474
  the ones that never touch the refused construct.
475
475
  - Reactions: before ESM v6 they never run, not even after `when append`. From ESM
476
476
  v6 (standalone tool from 4.61.0) they run after every action, as in "Reactions and
477
- cascades". Under `cratis` 3.27.1 (Screenplay 4.60.1) `when clock`, `when trigger`
478
- and `when capture` fail binding with `PLAY0268`, and so do reactions and captures.
477
+ cascades". Under `cratis` before 3.28.2 (Screenplay 4.60.1) `when clock`, `when trigger`
478
+ and `when capture` failed binding with `PLAY0268`, and so did reactions and captures; they
479
+ bind on 4.66.0 and `cratis` 3.28.2.
479
480
  - A rejected individual command or append leaves the world unchanged; an accepted
480
481
  one commits once, then the read models and queries are compared. There is no
481
482
  scenario-wide transaction in v6: when a later effect of a cascade or capture
@@ -517,8 +518,8 @@ For view specifications:
517
518
  ## Verify
518
519
 
519
520
  - [ ] `screenplay <model> --warnaserror` reports zero errors and zero warnings
520
- (standalone 4.64.0; under `cratis` 3.27.1 expect the false `PLAY0285` on
521
- reaction cascades and record that it is skew).
521
+ (standalone 4.66.0 or `cratis` 3.28.2; under `cratis` before 3.28.2 expect the false
522
+ `PLAY0285` on reaction cascades and record that it is skew).
522
523
  - [ ] Executable diagnostics are clean too: `PLAY0350`, `PLAY0352`, `PLAY0388`,
523
524
  `PLAY0389` and `PLAY0273` are only reported at binding.
524
525
  - [ ] Every slice has at least one boundary specification.
@@ -53,7 +53,7 @@
53
53
  },
54
54
  {
55
55
  "kind": "skill-contains",
56
- "value": "**`when query` executes today. The clock, trigger and capture actions do not.**"
56
+ "value": "**`when query` executed. The clock, trigger and capture actions did not.**"
57
57
  },
58
58
  {
59
59
  "kind": "skill-contains",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  {
71
71
  "kind": "skill-contains",
72
- "value": "Version skew: cascades and the false `PLAY0285`"
72
+ "value": "Version skew: cascades and the false `PLAY0285` (cratis before 3.28.2)"
73
73
  },
74
74
  {
75
75
  "kind": "skill-contains",
@@ -16,10 +16,10 @@ lives only in code, or only in a description, is a finding, not a solution.
16
16
 
17
17
  | Product | Pin | Used for |
18
18
  | --- | --- | --- |
19
- | Screenplay | v4.64.0 (`7e16162`) | `identifier`, `for`, constraints, generations, `id` pins, diagnostics PLAY0019/0135/0268/0271/0273/0391-0393/0446-0449/0469/0471 |
19
+ | Screenplay | v4.66.0 (`c89198b`) | `identifier`, `for`, constraints, generations, `id` pins, diagnostics PLAY0019/0135/0268/0271/0273/0391-0393/0446-0449/0469/0471 |
20
20
  | Chronicle | v19.32.0 (`f17a2ff`) | CHR0012, CHR0034; open defects #3744, #4123, #4131 |
21
21
  | Arc | v22.50.5 | `[ProtectedDecision]` and `DecisionRead<T>` (since v22.39.0) |
22
- | Stage | v4.24.0 | rendered apps pin Arc 22.25.0 and Chronicle client 19.8.1 |
22
+ | Stage | v4.24.1 | rendered apps pin Arc 22.25.0 and Chronicle client 19.8.1 (unchanged from 4.24.0) |
23
23
 
24
24
  Full pin table: `references/versions.md` in `cratis-screenplay-toolchain`. Re-check the three
25
25
  Chronicle issues before relying on a constraint in a later release.
@@ -110,7 +110,7 @@ option, mark it `ASSUMED` in the slice or module `description` and in the sessio
110
110
  decisions and capability gaps in `STATE.md`. Then the gate below.
111
111
 
112
112
  ## Rules
113
- **Compiler contracts** (diagnostics at Screenplay v4.64.0; capability per tool in `versions.md`)
113
+ **Compiler contracts** (diagnostics at Screenplay v4.66.0; capability per tool in `versions.md`)
114
114
  - `identifier` on an event property is PLAY0019; the source id is never payload by declaration.
115
115
  Copying it as a payload value is PLAY0469 (information, warning for inline events).
116
116
  - In the executable model a production's `for` must resolve to the command's scalar identifier:
@@ -1,6 +1,6 @@
1
1
  # Consistency and concurrency
2
2
 
3
- Pins: Screenplay v4.64.0, Chronicle v19.32.0, Arc v22.50.5, Stage v4.24.0 (table in `versions.md` of
3
+ Pins: Screenplay v4.66.0, Chronicle v19.32.0, Arc v22.50.5, Stage v4.24.1 (table in `versions.md` of
4
4
  `cratis-screenplay-toolchain`).
5
5
 
6
6
  ## 1. Invariant table (fill before writing constraints)
@@ -7,7 +7,7 @@
7
7
  | Event-by-event stream identity check, decision per identity, "design first, snapshot second" | TrogonStack/agentskills@7b249d3:plugins/trogonstack-eventmodeling/skills/eventmodeling-optimizing-stream-design/SKILL.md and its patterns reference | MIT | ADAPT (arbitrary length thresholds and mandatory archival splits dropped) | `stream-patterns.md` |
8
8
  | Growth-estimate interview and the order "redesign, then read model, then measure, then snapshot" | same skill | MIT | ADAPT | SKILL.md "Interview phase", `stream-patterns.md` "Growth and snapshots" |
9
9
  | Invariant table, state-dependent rule recording, race/retry/duplicate scenarios, evolution classes, Chronicle boundaries | Cratis corpus drafts for #493 | MIT | ORIGINAL | `consistency-and-concurrency.md`, `evolution.md`, `chronicle-boundaries.md` |
10
- | Worked examples (courses and enrolment, memberships, marina berths) | written for this skill, compiled with Screenplay 4.64.0 | MIT | ORIGINAL | `streams-example.md`, `evolution-example.md`, `boundaries.md` |
10
+ | Worked examples (courses and enrolment, memberships, marina berths) | written for this skill, compiled with Screenplay 4.66.0 | MIT | ORIGINAL | `streams-example.md`, `evolution-example.md`, `boundaries.md` |
11
11
 
12
12
  Event Modeling practice is by Adam Dymitruk and Martin Dilger, cited as practice; no text taken.
13
13
 
@@ -24,13 +24,13 @@ The only version table is `references/versions.md`; other skills point to it.
24
24
 
25
25
  | Package | Version | Purpose |
26
26
  | --- | --- | --- |
27
- | `Cratis.Screenplay.Tool` | `4.64.0` (`7e16162`) | standalone compiler, binder and MCP server |
28
- | cratis CLI | `3.27.1` (`a327e89`) | bundles Screenplay 4.60.1 and Stage 4.24.0; `render`, `generate`, `prologue` |
29
- | Stage | `4.24.0` (`fa48546`) | renders ESM v1 to v3 (C# backend plus a React/Vite scaffold on Arc 22.25.0) |
27
+ | `Cratis.Screenplay.Tool` | `4.66.0` (`c89198b`) | standalone compiler, binder and MCP server |
28
+ | cratis CLI | `3.28.2` (`141c499`) | bundles Screenplay 4.66.0 and Stage 4.24.1 (3.28.1 and earlier bundled 4.60.1 and 4.24.0); `render`, `generate`, `prologue`, and the same compiler for `screenplay validate` and `screenplay mcp` |
29
+ | Stage | `4.24.1` (`2cadf59`) | renders ESM v1 to v3 (C# backend plus a React/Vite scaffold on Arc 22.25.0); bundled by the cratis CLI 3.28.2 |
30
30
  | Arc / Chronicle | `22.50.5` / `19.32.0` | code-level facts cited here |
31
31
 
32
32
  Facts were read with `git show <tag>:<path>` and probed on the installed tools. Behaviour
33
- was probed on 4.63.1; the 4.63.1 to 4.64.0 diff does not touch binding or execution.
33
+ was probed on 4.63.1 and re-checked on 4.66.0. 4.65.0 adds command named-rule `implementation` blocks (handlers and operation phases already had the wrapper; it is rejected on concept rules, built-in property rules and whole-command `require`/`validate` bodies); 4.66.0 is editor tooling only. Neither changes execution.
34
34
  Re-verify before claiming another version behaves the same.
35
35
 
36
36
  ## Ground rules
@@ -41,10 +41,10 @@ Re-verify before claiming another version behaves the same.
41
41
  2. **Check the folder, warnings as errors.** `screenplay <folder> --warnaserror` or
42
42
  `cratis screenplay validate <folder> --warnings-as-errors`. Warnings hide defects:
43
43
  PLAY0029 (a misspelt keyword or a `type` inside a slice) drops a construct silently.
44
- 3. **Pick the compiler deliberately and name it.** Standalone `screenplay` for V1 to V3 on
45
- the current language; `cratis` for `render` and as the V1 fallback. The bundled compiler
46
- rejects ESM v6 and reports a false PLAY0285 on cascades (cli#242). Report tool and
47
- version with every verdict.
44
+ 3. **Pick the compiler deliberately and name it.** Standalone `screenplay` for V1 to V3 (file
45
+ mode follows imports); `cratis` 3.28.2 or later bundles the same 4.66.0 compiler and is the
46
+ route for `render`. A cratis before 3.28.2 bundle (4.60.1) rejects ESM v6 and reports a
47
+ false PLAY0285 on cascades (cli#242). Report tool and version with every verdict.
48
48
  4. **Know the mode** (design, executable, renderable) and write from its subset.
49
49
  5. **Capability is not correctness.** The tool you ran decides what is accepted today; the
50
50
  domain and the documented semantics decide what is correct. On conflict keep the correct
@@ -61,13 +61,13 @@ Re-verify before claiming another version behaves the same.
61
61
 
62
62
  ## The two compilers
63
63
 
64
- | | Standalone `screenplay` 4.64.0 | `cratis screenplay ...` 3.27.1 |
64
+ | | Standalone `screenplay` 4.66.0 | `cratis screenplay ...` 3.28.2 (bundles Screenplay 4.66.0) |
65
65
  | --- | --- | --- |
66
66
  | Check a folder | `screenplay <folder> --warnaserror --no-color` (exit 0 pass, 1 fail; an empty folder also exits 0, so read "N file(s) compiled") | `cratis screenplay validate <folder> --warnings-as-errors -o json-compact` (0 pass, 5 fail, 1 missing path or no files) |
67
- | ESM admitted | v1 to v6 | v1 to v5 (bundled Screenplay 4.60.1) |
68
- | Automation, Translate, reactions, captures, clocks, triggers | bind | PLAY0268, for example "Slice '<name>' of type '<type>' is not admitted by ESM v1." |
69
- | Cascade specs | compile | false PLAY0285 (cli#242) |
70
- | File argument | follows imports | ignores imports, false PLAY0165 warnings (cli#244): validate the folder |
67
+ | ESM admitted | v1 to v6 | v1 to v6 (the same compiler; before 3.28.2 bundled 4.60.1: v1 to v5) |
68
+ | Automation, Translate, reactions, captures, clocks, triggers | bind | bind (before 3.28.2: PLAY0268 "Slice '<name>' of type '<type>' is not admitted by ESM v1.") |
69
+ | Cascade specs | compile | compile (before 3.28.2: false PLAY0285, cli#242) |
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
73
  Exact messages, exit codes and the MCP roots bug: `references/versions.md`.
@@ -85,10 +85,10 @@ Independent results, not a ladder. Commands and report format: `references/verdi
85
85
  | V5 | rendered and target-verified | `cratis render`, then Debug build and tests; report admission, publication, build and tests separately |
86
86
 
87
87
  V2 and V3 need MCP: send `initialize`, then `notifications/initialized`, and start the
88
- server with a fixed root (a dynamic root hits the roots bug on 4.63.1 and the bundled
89
- 4.60.1). A subagent without MCP reports "V2 not run: no MCP in this agent".
88
+ server with a fixed root when the tool is older than 4.63.2 (the roots bug hit 4.63.1 and the
89
+ 4.60.1 bundled by cratis before 3.28.2; 4.66.0 and cratis 3.28.2 are fine). A subagent without MCP reports "V2 not run: no MCP in this agent".
90
90
 
91
- One line per verdict, tool first, for example `V1 pass (screenplay 4.64.0, 3 files)` and
91
+ One line per verdict, tool first, for example `V1 pass (screenplay 4.66.0, 3 files)` and
92
92
  `V3 blocked: PLAY0268 x3 (list query, @pii)`. Name the source identity (commit plus the digest from
93
93
  the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity")) the verdict ran on; keep it apart from the MCP
94
94
  `modelRevision`, which is semantic and, without `.screenplay/identities.json`,
@@ -100,7 +100,8 @@ changes with the root folder name.
100
100
  `references/cheat-sheet.md`.
101
101
  - **Executable** (binds, V3): `references/executable-subset.md`. Keyed optional queries
102
102
  only; no handler (PLAY0268, with or without `implementation`/`hint`); `reads` and
103
- `concurrency` do not bind (PLAY0271); no `@pii`; v6 constructs only on the standalone tool.
103
+ `concurrency` do not bind (PLAY0271); no `@pii`; v6 constructs bind on Screenplay 4.61 or
104
+ later (standalone, and cratis 3.28.2 or later).
104
105
  - **Renderable** (V5): `references/renderable-subset.md`. Stage 4.24 renders ESM v1 to v3
105
106
  `StateChange`/`StateView` slices; Automation and Translate are gap-fill (Stage#79).
106
107
  - **Event sources, streams and command routes**: authorable and validatable, but never
@@ -1,11 +1,10 @@
1
1
  # Automation and Translate example (ESM v6)
2
2
 
3
- Executable Automation and Translate slices. Needs the standalone compiler: the cratis-bundled compiler rejects it (PLAY0268 at binding, false PLAY0285 at compile on the cascade spec in `SubscribingAMember`); see [versions.md](versions.md). Shows a reaction `produces` cascade, `invokes`, `where`, clock `at`, an application trigger, a capture with translate and a transition `when`, and v6 specifications.
3
+ Executable Automation and Translate slices. Binds on Screenplay 4.66.0, standalone and bundled in cratis 3.28.2 (probed: `executableReady`; `cratis render` refuses it whole with `STAGE-ESM-016`). The compiler bundled in cratis before 3.28.2 rejected it (PLAY0268 at binding, false PLAY0285 at compile on the cascade spec in `SubscribingAMember`); see [versions.md](versions.md). Shows a reaction `produces` cascade, `invokes`, `where`, clock `at`, an application trigger, a capture with translate and a transition `when`, and v6 specifications.
4
4
 
5
5
  The `Renew` command is ungated so that the reaction can invoke it: this is a syntax demonstration, not a safe production design. Reactions invoke with no caller, so a real model needs a trusted path (see [cratis-screenplay-automations-and-translations](../../cratis-screenplay-automations-and-translations/SKILL.md)).
6
6
 
7
7
  ```screenplay
8
- // Needs the standalone screenplay compiler (ESM v6)
9
8
  // Automation and Translate: ESM v6 forms.
10
9
  concept MemberId : Uuid
11
10
 
@@ -2,10 +2,9 @@
2
2
 
3
3
  One complete document with every construct family. Design mode, not executable. Prose rules: [cheat-sheet.md](cheat-sheet.md); tool versions: [versions.md](versions.md); what binds: [executable-subset.md](executable-subset.md).
4
4
 
5
- Blocking on every compiler: unquoted import, `@pii`, `reads` (PLAY0271), `starts with`, observable/list/filter query. Also blocking on the cratis-bundled compiler only: trigger, `given clock`, Automation and Translate slices, reactions, capture. Executable shapes are in the sibling examples. The first line of the fence marks it standalone-only, so the cratis pass skips it: `RecordingAPayment` lists the `InvoiceClosed` cascade, which the cratis-bundled 4.60.1 compiler rejects with a false PLAY0285 ("outcome cannot be produced by 'RecordPayment'").
5
+ Blocking on every compiler: unquoted import, `@pii`, `reads` (PLAY0271), `starts with`, observable/list/filter query. Executable shapes are in the sibling examples. The fence compiles warning-free on the standalone 4.66.0 tool and on `cratis screenplay validate` 3.28.2. `RecordingAPayment` lists the `InvoiceClosed` cascade, which the cratis 3.27.1 bundle (4.60.1) rejected with a false PLAY0285 ("outcome cannot be produced by 'RecordPayment'"); 3.28.2 accepts it.
6
6
 
7
7
  ```screenplay
8
- // Needs the standalone screenplay compiler (ESM v6)
9
8
  // Design-mode cheat-sheet: every construct family; compiles warning-free on the standalone tool.
10
9
  domain Acme.Invoicing // optional; first line when present
11
10
  import Customers.CustomerRegistered // unquoted = another bounded context's contract
@@ -255,7 +254,7 @@ module Housekeeping // no gates: a reaction's
255
254
  event InvoiceMarkedOverdue
256
255
  overdueAt DateTime
257
256
  // No command spec here: under ESM v6 it must list the ReminderSent cascade. The file is
258
- // standalone-only because RecordingAPayment's cascade already gets a false PLAY0285 on cratis.
257
+ // RecordingAPayment's cascade got a false PLAY0285 on cratis before 3.28.2; 3.28.2 accepts it.
259
258
  // The cascade form: automation-translate-example.md (SubscribingAMember).
260
259
 
261
260
  slice Automation RemindOverdue
@@ -7,16 +7,16 @@ examples belong to `cheat-sheet-example.md` and its siblings.
7
7
 
8
8
  | File | Mode | V1, warnings as errors | V3 (binds) |
9
9
  | --- | --- | --- | --- |
10
- | `cheat-sheet-example.md` | design: every construct family | 0 diagnostics on the standalone tool; cratis 3.27.1 (4.60.1) reports a false PLAY0285 on the `RecordingAPayment` cascade spec, so the fence carries the marker below and skips cratis | not ready by design (its header lists why; fewer blockers on the standalone tool) |
10
+ | `cheat-sheet-example.md` | design: every construct family | 0 diagnostics, both tools (cratis before 3.28.2 reported a false PLAY0285 on the `RecordingAPayment` cascade spec) | not ready by design (its header lists why; fewer blockers on the standalone tool) |
11
11
  | `executable-example.md` | executable, StateChange and StateView | 0 diagnostics, both tools | ready, both tools |
12
12
  | `pdl-example.md` | executable projections | 0 diagnostics, both tools | ready, both tools |
13
- | `automation-translate-example.md` | executable Automation and Translate (ESM v6) | standalone tool only (first line `// Needs the standalone screenplay compiler (ESM v6)`) | ready on the standalone tool only |
13
+ | `automation-translate-example.md` | executable Automation and Translate (ESM v6) | 0 diagnostics, both tools (cratis before 3.28.2 could not bind it) | ready, both tools (cratis 3.28.2 or later) |
14
14
 
15
15
  Screenplay sources: `Documentation/screenplay/grammar.md` (EBNF; checked against the parsers
16
16
  by `for_Documentation/when_comparing_the_grammar_against_the_parsers.cs`),
17
17
  `projections/grammar.md`, `captures/grammar.md`. Documentation examples compile in
18
18
  Screenplay CI (`when_compiling_every_example.cs`) against repository main: the standalone
19
- compiler, not necessarily the cratis-bundled one (`versions.md`).
19
+ compiler (4.66.0), which `cratis` 3.28.2 or later bundles; older cratis bundles differ (`versions.md`).
20
20
 
21
21
  ## Lexical and structural rules
22
22
  - Spaces only, 2 per level (tabs: PLAY0006 W). Offside rule.
@@ -53,7 +53,7 @@ description, properties, `reads`, `authorize`, `validate`, `produces`/`handler`,
53
53
  ## `$context.` paths (command `produces`)
54
54
  `occurred`, `tenant`, `command.<p>`, `arguments.<p>`, `causedBy.subject|name|userName`,
55
55
  `causation.type`, `identity.id|name|userName|isAuthenticated|roles|claims.<n>`.
56
- Binder-supported (`BindOccurrence`, v4.64.0): `occurred`, `identity.id` (= `causedBy.subject`),
56
+ Binder-supported (`BindOccurrence`, v4.66.0): `occurred`, `identity.id` (= `causedBy.subject`),
57
57
  `identity.name` (= `causedBy.name`), `identity.userName` (= `causedBy.userName`). `tenant`,
58
58
  roles, claims, causation, `command.<p>`, `arguments.<p>`: PLAY0268. Binding is not execution:
59
59
  a reference scenario that supplies only a clock carries no caller audit identity, so check the
@@ -26,7 +26,7 @@ then STAGE (V5 admission). Tool differences: `versions.md`.
26
26
  ## Not caught at V1 (fail binding: V2/V3, PLAY0273)
27
27
  - Projection mapping to a property the read model does not declare.
28
28
  - Undeclared event in `remove with` or in a capture `append`.
29
- (Screenplay v4.64.0 `SemanticModelBinder` `BindMapping`, `LevelEvent`, `BindCaptureAppends`.)
29
+ (Screenplay v4.66.0 `SemanticModelBinder` `BindMapping`, `LevelEvent`, `BindCaptureAppends`.)
30
30
 
31
31
  ## Silent at every level
32
32
  - A declared read-model property that nothing maps (it stays empty): walk field lineage by hand.
@@ -37,7 +37,7 @@ then STAGE (V5 admission). Tool differences: `versions.md`.
37
37
  | PLAY0282 | `validate` rule targets a field absent from the command |
38
38
  | PLAY0283 | `reads View by field` type matches no `by` param of the view's queries |
39
39
  | PLAY0284 | `children`/`nested` never populates a declared element field |
40
- | PLAY0285 | a spec's `then` event contradicts every possible declared producer of its `when` command (decidable literals, property copies, equality conditions). Fix the model or the spec deliberately. **False positive** on reaction cascades with the cratis-bundled compiler 4.60.1 (cli#242, open; reachability through reactions and `invokes` was added later): confirm with the standalone tool, record a tool gap, do not "fix" a correct model |
40
+ | PLAY0285 | a spec's `then` event contradicts every possible declared producer of its `when` command (decidable literals, property copies, equality conditions). Fix the model or the spec deliberately. **False positive** on reaction cascades with the compiler bundled in cratis before 3.28.2 (4.60.1; cli#242; reachability through reactions and `invokes` was added later); gone in 4.66.0 and cratis 3.28.2 (probed). On an older bundle confirm with the standalone tool, record a tool gap, do not "fix" a correct model |
41
41
  | PLAY0286 | spec value is not a member of the enum |
42
42
  | PLAY0287 | producer/capture/spec assigns a field the event lacks |
43
43
  | PLAY0291-0294 | bad single-line JSON / unknown key / wrong shape / duplicate key |
@@ -45,7 +45,7 @@ then STAGE (V5 admission). Tool differences: `versions.md`.
45
45
  ## Binding (V2 and V3) - see `executable-subset.md` for the full table
46
46
  | Code | Meaning | Fix |
47
47
  |---|---|---|
48
- | PLAY0268 | construct the ESM cannot represent; read the message for the construct (`executable-subset.md` lists the common ones: handler, list or observable query, `@pii`, `produces when` over read models, v6 constructs on cratis 3.27.1) | stay in design mode, or change the construct if the domain allows; never strip `@pii`/authorization |
48
+ | PLAY0268 | construct the ESM cannot represent; read the message for the construct (`executable-subset.md` lists the common ones: handler, list or observable query, `@pii`, `produces when` over read models, v6 constructs on cratis before 3.28.2) | stay in design mode, or change the construct if the domain allows; never strip `@pii`/authorization |
49
49
  | PLAY0269 / 0270 | UI deferred / authoring metadata (I) | none |
50
50
  | PLAY0271 | legacy `reads` or a `concurrency` block keeps its legacy meaning and cannot bind (error) | design gap; a constraint for uniqueness; protected decisions are a target requirement |
51
51
  | PLAY0273 | incoherent: ambiguous `for`, property not on event revision, operand type mismatch, derived `$eventContext` path | fix the reference |
@@ -93,6 +93,7 @@ Full table with causes: `renderable-subset.md`. Codes you meet most:
93
93
  | Code | Meaning |
94
94
  |---|---|
95
95
  | STAGE-ESM-016 | model above ESM schema v3 (or v4 generations, v5 absence, v6 constructs): whole model refused |
96
+ | STAGE-ESM-024 | ledger-only (Stage 4.24.1): the ESM v6 members are dispositioned Rejected; a v6 model is still refused whole by STAGE-ESM-016, so this is not the code a user sees |
96
97
  | CLI-RENDER-003 | the CLI pre-check for ESM v4 generations |
97
98
  | STAGE-ESM-001 | slice kind is not `StateChange`/`StateView` (Automation, Translate: Stage#79) |
98
99
  | STAGE-ESM-004 / 006 / 013 | more than one command per `StateChange`; conditional or value-expression production; other context value |
@@ -1,16 +1,16 @@
1
1
  # Documentation contradictions and which side to trust
2
2
 
3
- `D/` is Screenplay `Documentation/screenplay/` at **v4.64.0**; line numbers were re-read at
3
+ `D/` is Screenplay `Documentation/screenplay/` at **v4.66.0**; line numbers were re-read at
4
4
  that tag. Rule: the compiler you ran decides what the tool accepts today; the documentation
5
5
  and the domain decide what the model should mean. When they disagree, follow the compiler
6
6
  for syntax, keep the intended semantics in the model, and record the gap (an issue).
7
- Tool names mean the standalone `screenplay` 4.64.0 and `cratis` 3.27.1 (bundled Screenplay
8
- 4.60.1); see `versions.md`. [probed] marks a row re-checked by running a tool; the rest are
7
+ Tool names mean the standalone `screenplay` 4.66.0 and `cratis` 3.28.2 (bundled Screenplay
8
+ 4.66.0; before 3.28.2 bundled 4.60.1); see `versions.md`. [probed] marks a row re-checked by running a tool; the rest are
9
9
  read from source or documentation.
10
10
 
11
11
  | # | Topic | Conflict | Trust |
12
12
  | --- | --- | --- | --- |
13
- | 0 | ESM v6 | `D/specifications.md` and `D/reactions.md` describe clocks, triggers, captures and reactions as admitted and executed | the standalone tool admits them (ESM v6); cratis 3.27.1 (4.60.1) rejects them with PLAY0268 [probed] |
13
+ | 0 | ESM v6 | `D/specifications.md` and `D/reactions.md` describe clocks, triggers, captures and reactions as admitted and executed | both tools admit them (ESM v6) since cratis 3.28.2; cratis 3.27.1 (4.60.1) rejected them with PLAY0268 [probed] |
14
14
  | 1 | `#` comments | PDL docs use `#` (`D/projections/auto-map.mdx:125,147,153`, `D/forms.md:10`) | compiler: PLAY0058 in a projection; use `//` [probed] |
15
15
  | 2 | projection `automap` | `D/projections/grammar.md:70,77` now allow `automap` for children and nested; the projection-level `ProjDirective` (`:38`) still lists only `no automap` | compiler accepts bare `automap`; keep `no automap` at projection level |
16
16
  | 3 | AutoMap inside `from` | `D/projections/auto-map.mdx:49` "cannot be toggled" vs `:226` "apply `no automap` per event" | ambiguous; use `no automap` at the projection, children or nested level |
@@ -41,8 +41,8 @@ read from source or documentation.
41
41
  | 28 | `visualize-model` kind | the tool filters on the kind "Reactor" (`McpVisualization.cs:21`) although the construct is a Reaction; its added/removed summary never counts reactions (Screenplay#379, open) | the model, not the summary |
42
42
  | 29 | bodied reducers in Stage | cli `Documentation/reference/screenplay.md:38` says bodied reducers are unsupported (STAGE-ESM-019) | Stage 4.24 code admits pure allowlisted reducer bodies (`PureTransitionAdmission.cs`); trust the code |
43
43
  | 30 | `cratis screenplay validate <file>` | the command reads as a document validator | file mode ignores the file's imports and reports false unknown-name warnings (cli#244, open): validate the folder [probed] |
44
- | 31 | cli false PLAY0285 | `D/diagnostics.md:640` defines PLAY0285 as a contradiction against every possible producer | cratis 3.27.1 reports it falsely on reaction cascades (cli#242, open): confirm with the standalone tool [probed] |
44
+ | 31 | cli false PLAY0285 | `D/diagnostics.md:640` defines PLAY0285 as a contradiction against every possible producer | cratis before 3.28.2 reported it falsely on reaction cascades (cli#242); not reproduced on cratis 3.28.2 [probed] |
45
45
 
46
- Rows 0 to 12, 14 to 21 and 23 were re-read at the v4.64.0 line numbers above; rows 14, 15,
46
+ Rows 0 to 12, 14 to 21 and 23 were re-read at the v4.66.0 line numbers above; rows 14, 15,
47
47
  19, 20 and 23 are properties of the language rather than documentation defects and were
48
- not re-probed on 4.64.0.
48
+ not re-probed on 4.66.0.