@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
@@ -1,8 +1,8 @@
1
1
  # Executable subset (what binds: V2 and V3)
2
2
 
3
3
  What the binder admits, and what it refuses with which code. The answer depends on the
4
- compiler: the standalone tool (4.64.0) admits ESM v1 to v6; the cratis-bundled compiler
5
- (4.60.1) admits v1 to v5. Tool facts and the exact v6 messages: `versions.md`. Always name
4
+ compiler version: Screenplay 4.66.0, standalone or bundled in cratis 3.28.2, admits ESM v1 to
5
+ v6; the 4.60.1 compiler bundled in cratis before 3.28.2 admits v1 to v5. Tool facts and the exact v6 messages: `versions.md`. Always name
6
6
  the tool with a V2 or V3 result. When tool and documentation disagree, the tool decides
7
7
  current capability; the documentation and the domain decide intended correctness. Record
8
8
  the gap, never strip the model to pass.
@@ -12,7 +12,7 @@ render. `screenplay <folder>` and `cratis screenplay validate` never bind (`verd
12
12
 
13
13
  Complete examples that bind live in `executable-example.md` (both compilers),
14
14
  `pdl-example.md` (projections, both compilers) and `automation-translate-example.md`
15
- (ESM v6, standalone tool only).
15
+ (ESM v6; standalone tool and cratis 3.28.2 or later).
16
16
 
17
17
  ## Admitted on both compilers
18
18
 
@@ -47,7 +47,7 @@ Complete examples that bind live in `executable-example.md` (both compilers),
47
47
  - `seed`. Personas, screens and descriptions are PLAY0270/PLAY0269 information, not
48
48
  blocking.
49
49
 
50
- ## Admitted on the standalone tool only (ESM v6)
50
+ ## Admitted from Screenplay 4.61 (ESM v6): standalone tool and cratis 3.28.2 or later
51
51
 
52
52
  - `slice Automation` with `reaction`: `when <Event>` (with values) then `produces` (no
53
53
  `for` means the trigger's event source) or `invokes <Command>`; `where`; clock `at ... on
@@ -83,9 +83,13 @@ bodies still leave their owner non-executable.
83
83
 
84
84
  - A command `handler` **never binds**: PLAY0268 "Command '<n>' handler requires a
85
85
  constrained implementation attachment." This holds with a `file`, with a fence, and with
86
- `implementation` or `hint` (including a pending intent with no payload). `implementation`
87
- and `hint` are valid only on command handlers and are authoring intent: no execution, lock
88
- or confirmation.
86
+ `implementation` or `hint` (including a pending intent with no payload). On a handler,
87
+ `implementation` and `hint` are authoring intent: no execution, lock or confirmation.
88
+ - From 4.65.0 a command property named rule also accepts an `implementation` block (ordered
89
+ `hint` lines, at most one `file` or tagged fence). With a source attached it binds like a
90
+ direct source; hints-only or empty is pending intent: valid source, PLAY0268 at binding.
91
+ The block is rejected on concept rules, built-in property rules and whole-command
92
+ `require`/`validate` bodies (`v4.66.0:Documentation/screenplay/commands.md`, `context.md`).
89
93
  - A handler therefore makes the slice non-executable and non-renderable: it is gap-fill
90
94
  with the model as the contract.
91
95
  - Stage 4.24 admits only pure reducer bodies (Roslyn allowlist, STAGE-ESM-019 and 022);
@@ -100,9 +104,9 @@ bodies still leave their owner non-executable.
100
104
 
101
105
  | Construct | Code | Note |
102
106
  | --- | --- | --- |
103
- | `Automation` or `Translate` slice, `reaction`, `capture`, `trigger`; `given clock`, `when clock`, `when trigger`, `when capture` | PLAY0268 | **cratis-bundled compiler only**; messages in `versions.md` |
107
+ | `Automation` or `Translate` slice, `reaction`, `capture`, `trigger`; `given clock`, `when clock`, `when trigger`, `when capture` | PLAY0268 | **cratis before 3.28.2 bundles only** (4.60.1); messages in `versions.md` |
104
108
  | Unquoted `import Other.Contract` | PLAY0268 | external contract import is not bound |
105
- | `@pii` or `@sensitive` on any concept | PLAY0268 | "Concept '<n>' compliance attributes require portable data-subject semantics." Same message at 4.60.1 and 4.64.0. `@sensitive` has no verified portable meaning (Screenplay#384, open) |
109
+ | `@pii` or `@sensitive` on any concept | PLAY0268 | "Concept '<n>' compliance attributes require portable data-subject semantics." Same message at 4.60.1 and 4.66.0. `@sensitive` has no verified portable meaning (Screenplay#384, open) |
106
110
  | `query` returning a collection (`RM[]`), or without exactly one caller-supplied `by` | PLAY0268 | "must declare one caller-supplied 'by' argument" or "must return one optional read model" |
107
111
  | `observable`, `filter`, `scoped to`, `performer` queries | PLAY0268 | "uses delivery, filtering, scope, or implementation behavior outside the first ESM v1 vertical." `observable` goes in the return position (`=> observable RM optional`); as a body line it is PLAY0048 |
108
112
  | `contains` or `starts with` in conditions | PLAY0268 | equality and numeric ordering only |
@@ -136,7 +140,7 @@ bodies still leave their owner non-executable.
136
140
  - A projection-level (root) `remove via join` binds, but the reference execution plan refuses it (`UnsupportedProjectionBlock`), so no specification in the application runs; Chronicle wires it as a child pull. See the blocked-plan rows above.
137
141
  - A projection mapping to a property the read model does not declare, and an undeclared
138
142
  event in `remove with` or a capture `append`: V1 does not report them; binding (V3) does,
139
- with PLAY0273 (Screenplay v4.64.0 `BindMapping`, `LevelEvent`, `BindCaptureAppends`). A
143
+ with PLAY0273 (Screenplay v4.66.0 `BindMapping`, `LevelEvent`, `BindCaptureAppends`). A
140
144
  declared read-model property that nothing maps is different: no tool reports it, so check
141
145
  field lineage by hand.
142
146
 
@@ -1,6 +1,6 @@
1
1
  # Projection (PDL) example
2
2
 
3
- Projection forms that compile warning-free, bind on both tools and run in the reference runner without Unsupported results (`PlacingAnOrder`, `CancellingAnOrder`, `Depositing` and `RejectingAnEmptyCode` pass). The specifications exercise every, from, `set`, increment, remove with, all + count, add/subtract by, `clear` and the concept rules; `PlacingAnOrder` also runs the `children lines` block (through `LineAdded`) without asserting it; join, nested and variant groups bind but no specification drives them. Forms in this example: every, join, children, nested, clear with, remove with, increment/decrement, all + count, add/subtract by, set to, clear, no automap, literal mapping, variant group (no `=> RM`), concept rules not empty/max/length ==. `lineCount` is initialized in `OrderPlaced` and `shipping` is optional, because the reference runner requires every non-optional read-model property to be set after each fact. Rejected by the binder: more than one every/all block on one level (PLAY0268); `$eventContext.occurred.Week` (PLAY0273, derived value). Not in this example because they block the whole execution plan in the reference runner (Screenplay v4.64.0): a `remove via join` on a projection's own (root) level (`UnsupportedProjectionBlock`; it binds, but on Chronicle v19.32.0 it creates no removal subscription, so `CustomerDeleted` would not remove an `OrderView`), and any event-context value other than the event source identity in a projection, such as `$eventContext.occurred` (`UnsupportedEventContext`). Quick reference: [cheat-sheet.md](cheat-sheet.md). The `every` block here maps a literal to show the form. Carry a timestamp on the event with `$context.occurred` in the producing command when a view must show it.
3
+ Projection forms that compile warning-free, bind on both tools and run in the reference runner without Unsupported results (`PlacingAnOrder`, `CancellingAnOrder`, `Depositing` and `RejectingAnEmptyCode` pass). The specifications exercise every, from, `set`, increment, remove with, all + count, add/subtract by, `clear` and the concept rules; `PlacingAnOrder` also runs the `children lines` block (through `LineAdded`) without asserting it; join, nested and variant groups bind but no specification drives them. Forms in this example: every, join, children, nested, clear with, remove with, increment/decrement, all + count, add/subtract by, set to, clear, no automap, literal mapping, variant group (no `=> RM`), concept rules not empty/max/length ==. `lineCount` is initialized in `OrderPlaced` and `shipping` is optional, because the reference runner requires every non-optional read-model property to be set after each fact. Rejected by the binder: more than one every/all block on one level (PLAY0268); `$eventContext.occurred.Week` (PLAY0273, derived value). Not in this example because they block the whole execution plan in the reference runner (Screenplay v4.66.0): a `remove via join` on a projection's own (root) level (`UnsupportedProjectionBlock`; it binds, but on Chronicle v19.32.0 it creates no removal subscription, so `CustomerDeleted` would not remove an `OrderView`), and any event-context value other than the event source identity in a projection, such as `$eventContext.occurred` (`UnsupportedEventContext`). Quick reference: [cheat-sheet.md](cheat-sheet.md). The `every` block here maps a literal to show the form. Carry a timestamp on the event with `$context.occurred` in the producing command when a view must show it.
4
4
 
5
5
  ```screenplay
6
6
  // PDL forms that bind executable on both tools.
@@ -4,8 +4,8 @@
4
4
 
5
5
  This skill is an original Cratis work, condensed from verified research on the Screenplay
6
6
  language, the standalone tool, the cratis CLI and Stage, then re-verified against product
7
- source at the tags in `versions.md` and probed on the installed tools (Screenplay 4.64.0 and
8
- cratis 3.27.1). Every version, diagnostic and exit-code row cites its evidence there or in
7
+ source at the tags in `versions.md` and probed on the installed tools (Screenplay 4.66.0 and
8
+ cratis 3.28.2). Every version, diagnostic and exit-code row cites its evidence there or in
9
9
  the file that holds it.
10
10
 
11
11
  ## External material
@@ -28,15 +28,15 @@ is adapted with the agreement of Martin Dilger and Nebulit GmbH.
28
28
 
29
29
  ## Sources read for facts
30
30
 
31
- - Screenplay `v4.64.0` (`7e16162`): `Documentation/screenplay/` (grammar, commands, queries,
31
+ - Screenplay `v4.66.0` (`c89198b`): `Documentation/screenplay/` (grammar, commands, queries,
32
32
  specifications, reactions, diagnostics, mcp), `decisions/0017`, `0020`, `0022` to `0024`,
33
33
  `Source/DotNET/Screenplay/Semantics/` (binder, versions, execution),
34
34
  `Source/DotNET/Screenplay.Mcp/` (connection, catalog, schemas, workspaces, visualization),
35
- `Source/DotNET/Tool/Program.cs`. Also `v4.60.1` and `v4.63.1` for the bundled-compiler and
36
- cascade differences.
37
- - Stage `v4.24.0` (`fa48546`): `Source/Rendering.Cratis/` (surface ledger, planner, pure
35
+ `Source/DotNET/Tool/Program.cs`. Also `v4.60.1` and `v4.63.1` for the differences from the compiler bundled in cratis 3.27.1
36
+ and earlier.
37
+ - Stage `v4.24.0` (`fa48546`, unchanged in `Rendering.Cratis` admission at `v4.24.1`): `Source/Rendering.Cratis/` (surface ledger, planner, pure
38
38
  transition admission, scaffold), `Documentation/guides/customize-rendered-application.md`.
39
- - cratis `v3.27.1` (`a327e89`): `Source/Cli/Commands/Render/`, `ScreenplayMcpRoot.cs`,
39
+ - cratis `v3.28.2` (`141c499`; `Render/`, `Run/`, `Prologue/` and `Screenplay/Generate*` are unchanged since `v3.27.1`, `a327e89`): `Source/Cli/Commands/Render/`, `ScreenplayMcpRoot.cs`,
40
40
  `Documentation/reference/screenplay.md`.
41
41
  - Arc `v22.50.5` and Chronicle `v19.32.0` for the code-level facts cited in `versions.md`.
42
42
  - Open issues cited as limits: cli#242, #243, #244, #245; Screenplay#377, #379, #383, #384,
@@ -49,7 +49,7 @@ is adapted with the agreement of Martin Dilger and Nebulit GmbH.
49
49
  script ships.
50
50
  - Moved the MCP loop to `cratis-screenplay-model-authoring`; this skill keeps only the facts
51
51
  needed to run a verdict and the edit strategy summary.
52
- - Re-checked every documentation contradiction at v4.64.0; resolved the clock boundary and the
52
+ - Re-checked every documentation contradiction at v4.66.0; resolved the clock boundary and the
53
53
  ESM v7 and v11 allocations; added numbers-exact, concurrency, approval-policy, visualization,
54
54
  bodied-reducer, file-mode and cascade rows.
55
55
  - Corrected the code-attachment rule (a handler never binds, with or without `hint`), the
@@ -1,16 +1,17 @@
1
1
  # Renderable subset (V5): what `cratis render` admits
2
2
 
3
- Sources, all read at tags: Stage v4.24.0 `Source/Rendering.Cratis/Semantics/SemanticSurfaceLedger.cs`
3
+ Sources, all read at tags: Stage v4.24.1 `Source/Rendering.Cratis/Semantics/SemanticSurfaceLedger.cs`
4
4
  (an exhaustive map of every ESM member to Rendered, Rejected(code) or Ignored),
5
- `CratisArtifactRenderPlanner.cs`, `PureTransitionAdmission.cs`; cli v3.27.1
5
+ `CratisArtifactRenderPlanner.cs`, `PureTransitionAdmission.cs`; cli v3.28.2
6
6
  `Commands/Render/RenderSettings.cs` and `Documentation/reference/screenplay.md`. Re-run the
7
7
  render itself before claiming renderability: this table is a reading of the source, not a
8
8
  render result.
9
9
 
10
10
  Renderable is a strict subset of executable (`executable-subset.md`). Order of events in
11
- `cratis render`: the CLI binds the model with its **bundled Screenplay 4.60.1** (so PLAY0268
12
- and friends appear first, and anything above ESM v5 fails there), then Stage admits or
13
- rejects members. A model that binds only on the standalone tool is not renderable.
11
+ `cratis render`: the CLI binds the model with its **bundled Screenplay** (4.66.0 in cratis 3.28.2, so PLAY0268
12
+ and friends appear first), then Stage admits or
13
+ rejects members. An ESM v6 model binds but Stage refuses it whole with `STAGE-ESM-016`
14
+ (probed on 3.28.2; on before 3.28.2 it failed binding first, with PLAY0268).
14
15
 
15
16
  ## What Stage 4.24 admits
16
17
 
@@ -28,7 +29,7 @@ whole automation is hand-written (gap-fill).
28
29
 
29
30
  | Area | Renders | Rejected (code) |
30
31
  | --- | --- | --- |
31
- | ESM version | schema v1 to v3 | v4 generations, v5 `then no readmodel`, v6 constructs: STAGE-ESM-016 for the whole model |
32
+ | ESM version | schema v1 to v3 | v4 generations, v5 `then no readmodel`, v6 constructs: STAGE-ESM-016 for the whole model (Stage 4.24.1 also ledgers the v6 members as `STAGE-ESM-024`; users still see STAGE-ESM-016) |
32
33
  | Slice kinds | `StateChange`, `StateView` | `Automation`, `Translate`: STAGE-ESM-001 |
33
34
  | Types | concepts over Uuid, String, Int, Decimal, Bool, Date, DateTime; composite types; collections; optional | unknown types: 002 and 003 |
34
35
  | Validation | not empty, min, max, equal, not equal, comparisons, length, `all >`/`all >=`, matches, `$strings` keys (missing default keys: 018) | code rules and code validation: 005 |
@@ -1,7 +1,7 @@
1
1
  # Event sources, streams and command routes
2
2
 
3
3
  What a model that uses `eventsource`, `stream`, `streamId` or a command route can and
4
- cannot do today. Facts read at Screenplay v4.64.0 (`SemanticModelBinder.CommandProductions.cs`),
4
+ cannot do today. Facts read at Screenplay v4.66.0 (`SemanticModelBinder.CommandProductions.cs`),
5
5
  Stage v4.24.0 (`SemanticCratisAdmission.cs`) and Chronicle v19.30.0 / Arc v22.49.0.
6
6
 
7
7
  | Activity | Today |
@@ -13,7 +13,7 @@ Stage v4.24.0 (`SemanticCratisAdmission.cs`) and Chronicle v19.30.0 / Arc v22.49
13
13
  | Deliver as code | gap-fill by hand with the model as the contract (`cratis-screenplay-render-and-gap-fill`, case C) |
14
14
 
15
15
  Why binding refuses: the constructs need an ESM version that is **allocated** but **not
16
- implemented**. The highest **implemented** ESM version is v6. At 4.64.0 the `PLAY0268`
16
+ implemented**. The highest **implemented** ESM version is v6. At 4.66.0 the `PLAY0268`
17
17
  message names the allocated version; do not copy a number into a model, a skill or a
18
18
  decision, because the numbering is under decision (Cratis/Screenplay PR #401). Tracked in
19
19
  Cratis/Screenplay#407 (increment 2 of #302).
@@ -1,13 +1,13 @@
1
1
  # Traps (one line each, with the fix)
2
2
 
3
- Re-checked against Screenplay v4.64.0 and cli v3.27.1 where marked [probed] or [source]. Tool and version facts: `versions.md`. Compiler-verified syntax: `cheat-sheet.md`.
3
+ Re-checked against Screenplay v4.66.0 and cli v3.28.2 where marked [probed] or [source]. Tool and version facts: `versions.md`. Compiler-verified syntax: `cheat-sheet.md`.
4
4
 
5
5
  1. Clean V1 is not executable: binding errors appear only through MCP (V2) or `render`. Neither `screenplay <folder>` nor `cratis screenplay validate` binds. [probed]
6
6
  2. The Screenplay samples validate clean but are not all executable; copying their idioms (list queries, `@pii`, `today`, `reads`, `$causedBy`, templates, performers) breaks V3. [probed]
7
7
  3. Know the target mode (design/executable/renderable) before writing; state it.
8
8
  4. Plain `produces` without `for` means allocation in the ESM but "the identifier" in rendered code. Always write `for <identifier>`. [PLAY0478 probed]
9
9
  5. PLAY0029 is a warning: a misspelled keyword (or `type` inside a slice) drops the construct silently. Use `--warnings-as-errors`. [probed]
10
- 6. Validate the folder: `cratis screenplay validate file.play` ignores imports and reports false unknown-name warnings (cli#244, open); the standalone tool follows them. [probed on 3.27.1 and 4.64.0]
10
+ 6. Validate the folder: `cratis screenplay validate file.play` ignores imports and reports false unknown-name warnings (cli#244, open); the standalone tool follows them. [probed on 3.28.2 and 4.66.0]
11
11
  7. Unresolved names are warnings by design. Mappings to undeclared projection targets and undeclared events in `remove with`/capture `append` pass V1 and fail binding (V3, PLAY0273); a declared read-model property that nothing maps is reported by no tool. Run V3 and check field lineage by hand.
12
12
  8. Severity does not soften a rule: `severity warning` still rejects the command.
13
13
  9. Authorization (module AND feature AND construct) runs before validation; unauthorized is `then denied`, never `then error`.
@@ -17,7 +17,7 @@ Re-checked against Screenplay v4.64.0 and cli v3.27.1 where marked [probed] or [
17
17
  13. Projection `key` routes only on `from` (projection-level: PLAY0381). `all` is per event source. Joins never create instances and match the joined event's source id. [probed]
18
18
  14. AutoMap is on by default: same-named event properties fill read-model properties silently (scoped: case-insensitive, same type only; flat-bound: exact name, no type check, so a type mismatch invalidates the model). Use `no automap` for control.
19
19
  15. `given readmodel` bypasses the projection; prove a projection with `given` events + `when append`/command + `then readmodel`/`then query`.
20
- 16. PLAY0285/0286/0287 are static spec checks: do not edit expectations blindly; PLAY0285 has a cascade false positive on the cratis-bundled compiler 4.60.1 only (cli#242, open). [probed]
20
+ 16. PLAY0285/0286/0287 are static spec checks: do not edit expectations blindly; PLAY0285 had a cascade false positive on the compiler bundled in cratis before 3.28.2 (4.60.1, cli#242); gone in 4.66.0 and cratis 3.28.2. [probed]
21
21
  17. `null` in specs only for optional read-model properties (PLAY0350); omit the property or record a gap; whether an optional detail is really a separate fact is a review question, not the fix for this code.
22
22
  18. `then` events are exhaustive and ordered (use `then events in any order` for order only). From ESM v6 they include reaction cascades; after `when append` they list only what followed the append.
23
23
  19. `reads` without `by` means a singleton view today (decision 0017 will change it); `reads` never binds (PLAY0271), and neither does a command `concurrency` block (PLAY0271, error). [probed, source]
@@ -34,7 +34,7 @@ Re-checked against Screenplay v4.64.0 and cli v3.27.1 where marked [probed] or [
34
34
  30. Claims compare with `matches` (`claim "dept" matches "Finance"`); `==` is PLAY0120. Conditions with `contains`/`starts with` compile but do not bind. [probed]
35
35
  31. One `every`/`all` block per projection level for V3; `$eventContext.occurred.Week` does not bind. [probed]
36
36
  32. Concept rules: `min`/`max`/`length ==`, not `length 3 to 10` (PLAY0141). [probed]
37
- 33. Which compiler matters: the cratis-bundled one (3.27.1, Screenplay 4.60.1) rejects ESM v6 (Automation/Translate) and reports a false PLAY0285 on cascades; use the standalone tool for V1 to V3 and name the tool in every verdict. [probed on both tools]
37
+ 33. Which compiler matters: cratis before 3.28.2 bundle Screenplay 4.60.1, which rejects ESM v6 (Automation/Translate) and reports a false PLAY0285 on cascades; cratis 3.28.2 bundles 4.66.0 and behaves like the standalone tool. Check `cratis --version` and name the tool in every verdict. [probed on both tools]
38
38
 
39
39
  34. A `from <Event> key <property>` routes only if every such event carries that property: an event that frees or updates a row keyed by another stream's id must carry that id in its payload, or the row never changes. Whether the compiler reports a missing key property is unverified [to probe]; check by hand.
40
40
  35. `description`/`documentation` are authoring metadata: board, MCP and Prologue show them; `cratis render` never does (Stage#178). A rule only in prose is unenforced in rendered code; make it a rule layer, a spec or a recorded target requirement.
@@ -42,10 +42,10 @@ Re-checked against Screenplay v4.64.0 and cli v3.27.1 where marked [probed] or [
42
42
  37. Personas are not in the ESM (Screenplay#254); specs cannot reference them. Write `given caller` as the roles/claims that stand for the persona.
43
43
  38. A rule that depends on stored state is `reads <View>` + `require <expr> message "..."` (stated intent; PLAY0268/0271 at binding are expected in design mode). The slice `description` must mark it NOT enforced in the model today (Screenplay#129/#209) and name the target: Arc `[ProtectedDecision]` + `DecisionRead<T>` (Arc v22.39.0 and later; not available in a Stage-rendered app on Arc 22.25.0), Chronicle DCB (`concurrency` scope), or a constraint where one fits. Forbidden: caller-supplied copies of state in `require`, boolean attestation inputs (`confirmsX == true`), rules hidden in `handler`/implementation-hint prose. An unguarded materialized read is unsafe for a protected decision.
44
44
 
45
- The SKILL.md top 12: 1, 4, 5, 6, 7, 10, 12, 13, 17, 18, 20, 21 (+ mode/version notes there). Traps 39 to 44 are tool traps added at the 4.64.0 pin.
46
- 39. A handler never binds: PLAY0268 "Command '<n>' handler requires a constrained implementation attachment", with a file, a fence, `implementation` or `hint` alike. `hint` is handler-only authoring intent (no execution, lock or confirmation). A handler slice is gap-fill, not a customization of a rendered slice. [source, probed]
47
- 40. `numbers exact` parses on 4.64.0 but never binds (PLAY0268; ESM v7 is not admitted) and is PLAY0001 on older compilers; it is absent from `grammar.md`. Never use it in a model or example meant to execute. [probed]
48
- 41. MCP roots bug (4.63.1 and earlier, including cratis 3.27.1's bundled 4.60.1): a dynamic-root server answers the roots request with an `id: null` error right after `notifications/initialized`; hosts treat it as fatal. `open-workspace.path` does not help. Start with a fixed root (`screenplay mcp <folder>`, `cratis screenplay mcp` in a project with `.cratis/ai.json`) or use 4.63.2 or later. [source, probed]
45
+ The SKILL.md top 12: 1, 4, 5, 6, 7, 10, 12, 13, 17, 18, 20, 21 (+ mode/version notes there). Traps 39 to 44 are tool traps added at the 4.66.0 pin.
46
+ 39. A handler never binds: PLAY0268 "Command '<n>' handler requires a constrained implementation attachment", with a file, a fence, `implementation` or `hint` alike. `implementation` and `hint` are accepted on a command handler, an operation execute/compensate phase and (from 4.65.0) a command property named rule, and are rejected on concept rules, built-in property rules and whole-command `require`/`validate` bodies; on a handler they are authoring intent only (no execution, lock or confirmation). A handler slice is gap-fill, not a customization of a rendered slice. [source, probed]
47
+ 40. `numbers exact` parses on 4.66.0 but never binds (PLAY0268; ESM v7 is not admitted) and is PLAY0001 on older compilers; it is absent from `grammar.md`. Never use it in a model or example meant to execute. [probed]
48
+ 41. MCP roots bug (4.63.1 and earlier, including the 4.60.1 bundled by cratis before 3.28.2; not present in 4.66.0 or cratis 3.28.2, probed): a dynamic-root server answers the roots request with an `id: null` error right after `notifications/initialized`; hosts treat it as fatal. `open-workspace.path` does not help. Start with a fixed root (`screenplay mcp <folder>`, `cratis screenplay mcp` in a project with `.cratis/ai.json`) or use 4.63.2 or later (cratis 3.28.2 or later). [source, probed]
49
49
  42. A symlinked model path is refused by the MCP server (macOS `/tmp` is a symlink); pass the physical path. Proposals are connection-local (at most 16); `apply` persists identities to `.screenplay/identities.json` and is not crash-atomic across files; never retry `apply` after `ApplyOutcomeUnknown`. [source]
50
50
  43. `modelRevision` is canonical semantic (line positions and descriptions do not change it; a file move only if it changes logical placement or application identity) and, without `identities.json`, changes with the root folder name; it is not comparable with a render's `semanticRevision`. Source identity for verdicts is the commit plus the digest from the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity"). [probed]
51
51
  44. `cratis render` neither builds nor tests; `--name` is required for plain source; `.cratis-render/` is control state and is never staged; Stage-rendered apps are on Arc 22.25.0 (no `[ProtectedDecision]`). `cratis` file mode versus folder mode (trap 6) and a stale `cratis` on `PATH` (`which -a cratis`) both silently change what a verdict means. [source]
@@ -27,7 +27,7 @@ V3 are read from the MCP server or from a render, V1 and V5 from the CLIs.
27
27
  - Warnings are failures here. PLAY0029 (a construct dropped silently) and the unresolved-name
28
28
  warnings are the defects this verdict exists to catch.
29
29
  - Syntax and consistency checks (PLAY0282 to PLAY0294) run; binding does not.
30
- - Report: `V1 pass (screenplay 4.64.0, 3 files)`, `V1 fail: PLAY0029 a.play:12 ...`.
30
+ - Report: `V1 pass (screenplay 4.66.0, 3 files)`, `V1 fail: PLAY0029 a.play:12 ...`.
31
31
 
32
32
  ## V2: executable diagnostics
33
33
 
@@ -60,13 +60,13 @@ do not block. The ESM then binds (and `read-workspace view=executable-model` rep
60
60
  comparison needs it). Binding is what makes a model renderable at all. V3 means "binds",
61
61
  never "specifications pass".
62
62
 
63
- - Report the ESM version the model needs: `V3 ready (screenplay 4.64.0, ESM v6)`,
63
+ - Report the ESM version the model needs: `V3 ready (screenplay 4.66.0, ESM v6)`,
64
64
  `V3 blocked: PLAY0268 x3 (list query, @pii) - design scope kept`.
65
65
  - A blocked V3 is not repaired by deleting protection or domain rules. Never remove `@pii`,
66
66
  `@sensitive`, authorization, list queries, automations or rules to reach V3; record the
67
67
  slice and the code in the gap list.
68
68
  - A model is "executable" only on the compiler that bound it. A V3 from the standalone tool
69
- does not carry to `cratis render` (bundled 4.60.1, ESM v1 to v5; Stage v1 to v3).
69
+ does not carry to `cratis render`: Stage admits ESM v1 to v3 only (and on cratis before 3.28.2 the bundled 4.60.1 binder, ESM v1 to v5, refused v6 first).
70
70
 
71
71
  ## V4: reference specifications run
72
72
 
@@ -110,11 +110,11 @@ What Stage admits: `renderable-subset.md`.
110
110
  One line per verdict, tool and version first, evidence second:
111
111
 
112
112
  ```text
113
- V1 pass (screenplay 4.64.0, 3 files)
114
- V2 read (screenplay 4.64.0 via MCP): 0 blocking, 3 informational (PLAY0270)
115
- V3 ready (screenplay 4.64.0, ESM v3)
113
+ V1 pass (screenplay 4.66.0, 3 files)
114
+ V2 read (screenplay 4.66.0 via MCP): 0 blocking, 3 informational (PLAY0270)
115
+ V3 ready (screenplay 4.66.0, ESM v3)
116
116
  V4 not run: no route
117
- V5 admission pass (cratis 3.27.1, Stage 4.24.0); publication written 14 files; build not run; tests not run
117
+ V5 admission pass (cratis 3.28.2, Stage 4.24.1); publication written 14 files; build not run; tests not run
118
118
  ```
119
119
 
120
120
  Rules: a clean verdict never implies a later one; a verdict names the **source identity** it
@@ -124,9 +124,11 @@ source change makes earlier verdicts stale.
124
124
  ## Example gate (for skill and documentation authors)
125
125
 
126
126
  Every complete `screenplay` fence in this corpus compiles with the standalone tool at the
127
- pin and `--warnaserror`. Every fence without the marker `// Needs the standalone screenplay
128
- compiler (ESM v6)` also passes `cratis screenplay validate --warnings-as-errors` (3.27.1) on
129
- a folder holding that one file. Examples meant to execute are also opened through MCP and
127
+ pin and `--warnaserror`. Every such fence also passes `cratis screenplay validate
128
+ --warnings-as-errors` (3.28.2, bundling the same compiler) on a folder holding that one file.
129
+ The `// Needs the standalone screenplay compiler (ESM v6)` first-line marker belonged to cratis
130
+ before 3.28.2, which could not validate those fences; no fence carries it now, and a
131
+ checker that still skips marked fences under `cratis` skips nothing. Examples meant to execute are also opened through MCP and
130
132
  must be `executableReady`. No example uses `numbers exact`.
131
133
 
132
134
  Edit strategy for `.play` changes (typed identity-preserving operations preferred, bounded text
@@ -4,17 +4,18 @@ Every other Screenplay skill and reference points here instead of repeating a ve
4
4
  or a tool capability. When a tool changes, update this file first, then re-run the
5
5
  example compile gate with both tools (see `verdicts.md`, "Example gate").
6
6
 
7
- Pinned and re-verified against product source on 2026-10-05. Facts marked *source* were
8
- read with `git show <tag>:<path>`; facts marked *probed* were run against the installed
9
- tool.
7
+ Pinned and re-verified against product source on 2026-10-05; the cratis CLI rows were
8
+ re-probed on cratis 3.28.2 (Screenplay 4.66.0 bundled) after it shipped. Facts marked
9
+ *source* were read with `git show <tag>:<path>`; facts marked *probed* were run against the
10
+ installed tool.
10
11
 
11
12
  ## Pin set
12
13
 
13
14
  | Source | Pin | Notes |
14
15
  | --- | --- | --- |
15
- | Screenplay (language, compiler, standalone tool, MCP server) | **v4.64.0** (`7e16162`), published as `Cratis.Screenplay.Tool` 4.64.0 | Most behaviour below was probed on 4.63.1 (`7769dc4`). The 4.63.1 to 4.64.0 diff adds only the `numbers exact` syntax (binding refuses it), the MCP roots fix from 4.63.2 and fence-registry plumbing; `Semantics/Execution` is unchanged. Example compile and the toolchain commands in this skill were run on 4.64.0 |
16
- | cratis CLI | **v3.27.1** (`a327e89`) | Bundles **Screenplay 4.60.1** (ESM v1 to v5, MCP roots bug, false PLAY0285), **Stage 4.24.0**, `Cratis.Arc.Screenplay` 22.50.2, Generation 0.18.0 |
17
- | Stage | **v4.24.0** (`fa48546`) | Pins Screenplay 4.60.0; admits ESM schema v1 to v3. Rendered apps use .NET 10, **Arc 22.25.0**, **Chronicle 19.8.1** and a React/Vite frontend scaffold (Components 4.14.0, Scene 4.2.0) |
16
+ | Screenplay (language, compiler, standalone tool, MCP server) | **v4.66.0** (`c89198b`), published as `Cratis.Screenplay.Tool` 4.66.0 | Most behaviour below was probed on 4.63.1 (`7769dc4`) and re-checked on 4.66.0. 4.63.1 to 4.64.0 added only the `numbers exact` syntax (binding refuses it), the MCP roots fix from 4.63.2 and fence-registry plumbing. 4.65.0 adds the command named-rule `implementation` block and rejects `implementation` on concept rules, built-in property rules and whole-command `require`/`validate` bodies (a hints-only block binds as PLAY0268). 4.66.0 adds only an experimental VS Code repair bridge. `Semantics/Execution` is unchanged since 4.63.1. Example compile and the toolchain commands in this skill were run on 4.66.0 |
17
+ | cratis CLI | **v3.28.2** (`141c499`, Cratis/cli#257, closes #253) | Bundles **Screenplay 4.66.0** (ESM v1 to v6), **Stage 4.24.1**, `Cratis.Arc.Screenplay` 22.50.5, Chronicle 19.32.0, Fundamentals 7.22.8, Generation 0.18.0 (`Directory.Packages.props` at the tag). Same compiler as the standalone tool, so the two agree on binding and diagnostics; they still differ on file-mode imports. v3.28.1 and earlier (including v3.28.0 and the probed v3.27.1) bundled Screenplay 4.60.1 and Stage 4.24.0 (ESM v1 to v5, MCP roots bug, false PLAY0285, Automation/Translate refused at binding) |
18
+ | Stage | **v4.24.1** (`2cadf59`) | Pins Screenplay 4.66.0, Arc 22.50.5 and Chronicle 19.32.0 for its own build and the sandbox host image (`cratis/chronicle:19.32.0-development`); admits ESM schema v1 to v3 (v4.24.0, `fa48546`, pinned Screenplay 4.60.0); bundled by cratis 3.28.2. 4.24.1 adds `STAGE-ESM-024` to the surface ledger only; no admission change. The scaffold profile is unchanged at 4.24.1: rendered apps use .NET 10, **Arc 22.25.0**, **Chronicle 19.8.1** and a React/Vite frontend scaffold (Components 4.14.0, Scene 4.2.0) |
18
19
  | Arc | **v22.50.5** (`eefd098`) | `[ExecuteCommandsAsSystem]` since v20.56.0; `[ProtectedDecision]` and `DecisionRead<T>` since v22.39.0. A Stage-rendered application is on 22.25.0, so `[ProtectedDecision]` is **not** available there |
19
20
  | Chronicle | **v19.32.0** (`f17a2ff`) | CHR0012 (`EventTypeShouldAvoidNullableProperties`) and CHR0034 (`PiiOnEventSourceId`) exist. Open runtime defects at v19.32.0: #3744 (unique claims not settled by the store on SQL and InMemory), #4123 (constraint index updates run after commit and fail silently), #4131 (composite unique constraints collide when a component contains the separator) |
20
21
 
@@ -28,18 +29,20 @@ global `dotnet` tool) shadows a newer one; confirm with `which -a cratis`.
28
29
 
29
30
  | | Standalone `screenplay` | `cratis screenplay ...` |
30
31
  | --- | --- | --- |
31
- | Version | 4.64.0 (this pin) | 3.27.1, bundling Screenplay 4.60.1 |
32
- | ESM admitted by the binder | v1 to v6 (v6: clocks, application triggers, captures, reactions, Automation and Translate slices) | v1 to v5 only |
33
- | `numbers exact` | syntax parses; binding refuses (PLAY0268). Absent from the grammar page; documented only in `diagnostics.md` (PLAY0508 to PLAY0513) | PLAY0001 "Unexpected 'numbers'" |
34
- | Cascade specs (a command spec listing events a reaction appends) | compiles | **false PLAY0285** (cli#242, open) |
35
- | Imports in file mode | follows imports | ignores imports, reports false unknown-name warnings (PLAY0165, cli#244, open): validate the folder |
36
- | Used for | V1, V2, V3 on the current language; MCP | `render`, `screenplay generate`, `prologue`, `run`; V1 fallback when the standalone tool is absent |
37
-
38
- **Routing rule.** Verdicts V1 to V3 on the current language come from the standalone tool
39
- when it is installed. `cratis` is the route for rendering (V5) and the fallback for V1.
40
- Projects set up by `cratis ai install` register `cratis screenplay mcp`, which runs the
41
- bundled 4.60.1 compiler: expect lagging diagnostics there. **Name the tool and its version
42
- with every verdict**; a verdict from one tool does not carry to the other.
32
+ | Version | 4.66.0 (this pin) | 3.28.2, bundling Screenplay 4.66.0 (3.28.1 and earlier bundled 4.60.1) |
33
+ | ESM admitted by the binder | v1 to v6 (v6: clocks, application triggers, captures, reactions, Automation and Translate slices) | v1 to v6, the same binder (probed on 3.28.2: the Automation, Translate and capture examples of this corpus are `executableReady` over `cratis screenplay mcp`) |
34
+ | `numbers exact` | syntax parses; binding refuses (PLAY0268, `executableReady: false`). Absent from the grammar page; documented only in `diagnostics.md` (PLAY0508 to PLAY0513) | same (probed on 3.28.2; 3.27.1 reported PLAY0001 "Unexpected 'numbers'") |
35
+ | Cascade specs (a command spec listing events a reaction appends) | compiles | compiles on 3.28.2 (probed); before 3.28.2 reported a **false PLAY0285** (cli#242, still open on GitHub at the time of writing) |
36
+ | Imports in file mode | follows imports | still ignores imports, reports false unknown-name warnings (PLAY0165, cli#244, open; probed on 3.28.2): validate the folder |
37
+ | Used for | V1, V2, V3; MCP | `render`, `screenplay generate`, `prologue`, `run`; V1, V2 and V3 as well, since it bundles the same compiler |
38
+
39
+ **Routing rule.** With cratis 3.28.2 or later both tools compile and bind with Screenplay
40
+ 4.66.0, so either gives V1 to V3. Prefer the standalone tool when it is installed (file mode
41
+ follows imports); `cratis` is the route for rendering (V5), generation and Prologue. Projects
42
+ set up by `cratis ai install` register `cratis screenplay mcp`, which runs the bundled
43
+ compiler: on cratis 3.28.1 or earlier (all releases before 3.28.2) that is 4.60.1 and lags (ESM v5, false PLAY0285,
44
+ roots bug), so read `cratis --version` first. **Name the tool and its version with every
45
+ verdict**; a verdict from one tool does not carry to the other when their versions differ.
43
46
 
44
47
  ### Exact messages that tell the tools apart
45
48
 
@@ -48,18 +51,20 @@ Only binding (MCP or `render`) prints these; neither `screenplay <folder>` nor
48
51
  `SemanticModelBinder.Structure.cs`, `SemanticModelBinder.SliceMembers.cs`,
49
52
  `SemanticModelBinder.Specifications.cs`.
50
53
 
51
- | Construct | cratis 3.27.1 (Screenplay 4.60.1) reports (PLAY0268) | Standalone 4.64.0 |
54
+ | Construct | cratis before 3.28.2 (Screenplay 4.60.1) reported (PLAY0268) | 4.66.0, standalone and cratis 3.28.2 |
52
55
  | --- | --- | --- |
53
56
  | Automation or Translate slice | `Slice '<name>' of type '<type>' is not admitted by ESM v1.` | binds as ESM v6 |
54
57
  | Reaction | `Reaction '<n>' requires portable occurrence and effect semantics.` | binds |
55
58
  | Capture | `Capture '<n>' requires a portable compiled CDL plan.` | binds |
56
59
  | Clock, trigger or capture specification | `... which the executable model does not admit yet - clocks, application triggers and capture records are proposed for ESM v6 in decision 0022.` | binds |
57
60
 
58
- The substring "is not admitted by ESM v1" still appears on 4.64.0 for constraints,
61
+ The substring "is not admitted by ESM v1" still appears on 4.66.0 for constraints,
59
62
  expressions and projection blocks that the binder cannot represent, so that text alone does
60
- not prove the older compiler: read the construct it names.
63
+ not prove an older compiler: read the construct it names. A v6 model that still fails binding
64
+ on 4.66.0 names a different construct, for example a reaction that reads a view before
65
+ producing directly (decision 0006).
61
66
 
62
- ## Standalone `screenplay` 4.64.0
67
+ ## Standalone `screenplay` 4.66.0
63
68
 
64
69
  | Fact | Value | Evidence |
65
70
  | --- | --- | --- |
@@ -71,25 +76,25 @@ not prove the older compiler: read the construct it names.
71
76
  | Empty root | `state: "empty"`, `authoringAccepted: true`, PLAY0289 | probed |
72
77
  | Pin of the roots bug | fixed (from 4.63.2); see "MCP roots bug" below | source `McpConnection.cs` |
73
78
 
74
- ## cratis 3.27.1 (Screenplay 4.60.1)
79
+ ## cratis 3.28.2 (Screenplay 4.66.0)
75
80
 
76
81
  | Fact | Value | Evidence |
77
82
  | --- | --- | --- |
78
83
  | V1 command | `cratis screenplay validate <folder> --warnings-as-errors -o json-compact` | `--help`, probed |
79
84
  | Exit codes | 0 pass; 5 errors (or warnings with `--warnings-as-errors`); 1 path missing **or no `.play` files**. Information never fails | probed |
80
- | Output | JSON lines: a `diagnostics` array with `severity`, `code`, `message`, `location`, then either `{"path","files","diagnostics":0}` or an error object. A passing folder run prints the file count | probed on 3.27.1 |
85
+ | Output | JSON lines: a `diagnostics` array with `severity`, `code`, `message`, `location`, then either `{"path","files","diagnostics":N}` (N counts information too) or an error object. A passing folder run prints the file count | probed on 3.28.2 |
81
86
  | File versus folder | file mode compiles one document and **ignores imports** (cli#244). Validate the folder | probed |
82
- | MCP | `cratis screenplay mcp <root>`, or no argument inside a project: the server locates the model itself (existing `.play` files, else `Source/`/`src/`, else a new `Screenplay/` folder) unless `.cratis/ai.json` sets `mcpServers.screenplay.root`; 29 tools, no event-source, stream or route views. Fails fast only when an explicitly configured root does not exist | source `ScreenplayMcpRoot.cs:20-37` |
83
- | Render | `cratis render` binds with the bundled compiler first, then Stage 4.24.0 admits. See `renderable-subset.md` | source |
84
- | `prologue interpret` | no `--no-llm` flag; LLM resolution and `screenplay generate` flags were checked on 3.27.0 | source |
87
+ | MCP | `cratis screenplay mcp <root>`, or no argument inside a project: the server locates the model itself (existing `.play` files, else `Source/`/`src/`, else a new `Screenplay/` folder) unless `.cratis/ai.json` sets `mcpServers.screenplay.root`; 29 tools and the same `read-workspace` views as the standalone tool, including `event-sources`, `event-streams` and `command-routes` (probed on 3.28.2; the 4.60.1 bundle had no such views). Fails fast only when an explicitly configured root does not exist | source `ScreenplayMcpRoot.cs:20-37` |
88
+ | Render | `cratis render` binds with the bundled compiler first, then the bundled Stage (4.24.1) admits; a v6 model reaches Stage and is refused whole with `STAGE-ESM-016` (probed on 3.28.2). See `renderable-subset.md` | source, probed |
89
+ | `prologue interpret` | no `--no-llm` flag; LLM resolution and `screenplay generate` flags were checked on 3.27.0 and are unchanged in 3.28.2 (`--help` shows no `--no-llm`; the Prologue and Screenplay generate sources have no diff between the tags) | source, probed |
85
90
 
86
91
  ## Event sources and streams
87
92
 
88
93
  Declared since Screenplay v4.62.0 but not bound: PLAY0268, allocated-not-implemented ESM
89
- version (highest implemented: v6). Stage 4.24.0 admits ESM v1 to v3 and refuses with
90
- STAGE-ESM-016. Details and trackers: `sources-and-streams.md`.
94
+ version (highest implemented: v6). Stage 4.24.0 and 4.24.1 admit ESM v1 to v3 and refuse with
95
+ STAGE-ESM-016 (4.24.1 also records the v6 members as rejected `STAGE-ESM-024` in its ledger; users still see STAGE-ESM-016). Details and trackers: `sources-and-streams.md`.
91
96
 
92
- ## MCP roots bug (4.63.1 and earlier; fixed in 4.63.2)
97
+ ## MCP roots bug (4.63.1 and earlier; fixed in 4.63.2; not present in cratis 3.28.2)
93
98
 
94
99
  A dynamic-root server (`screenplay mcp` with no folder) asks a roots-capable client for
95
100
  `roots`, reads the wrong field and replies with an error whose `id` is `null`; real hosts
@@ -97,7 +102,11 @@ treat that as fatal. It happens right after `notifications/initialized`, before
97
102
  call, and only when the root is dynamic. **Passing `open-workspace.path` does not avoid
98
103
  it.** Avoid it with a fixed root: `screenplay mcp <model-folder>`, `cratis screenplay mcp
99
104
  <path>`, or `cratis screenplay mcp` inside a project with `.cratis/ai.json`; or use 4.63.2
100
- or later. The bundled 4.60.1 has the bug, so only the fixed-root forms are safe there.
105
+ or later. cratis before 3.28.2 bundled 4.60.1, which has the bug, so only the fixed-root
106
+ forms were safe there. Probed on cratis 3.28.2 (Screenplay 4.66.0): with a roots-capable
107
+ client and no fixed root, `cratis screenplay mcp` answers `initialize`, sends a well-formed
108
+ `roots/list` request, and serves `tools/list` (29 tools) after the client replies; no `id: null`
109
+ error appears. A fixed root is still the simplest way to avoid any host differences.
101
110
  MCP loop procedure and proposals: `cratis-screenplay-model-authoring`.
102
111
 
103
112
  ## Revisions and descriptions
@@ -110,10 +119,11 @@ MCP loop procedure and proposals: `cratis-screenplay-model-authoring`.
110
119
  in the separate source map), so line positions and description edits do not change it. A
111
120
  workspace or source revision can change without a `modelRevision` change. Re-read after every edit.
112
121
  - `cratis render` records its own `semanticRevision` in `.cratis-render.json`, computed with
113
- the `--name` identity and the 4.60.1 compiler. **Never compare the MCP `modelRevision`
122
+ the `--name` identity and the bundled compiler. **Never compare the MCP `modelRevision`
114
123
  with a render manifest.** Drift is detected by comparing successive `semanticRevision`
115
- values from renders made with the same name and inputs. Unverified: whether 4.60.1 and
116
- 4.64.0 produce byte-identical `rev1` values for the same v1 to v3 model.
124
+ values from renders made with the same name and inputs (probed on 3.28.2: the same model
125
+ rendered as `Marina` and as `Harbour` gives different values). Unverified: whether 4.60.1
126
+ and 4.66.0 produce byte-identical `rev1` values for the same v1 to v3 model.
117
127
  - Source identity for a verdict is the commit plus the digest from
118
128
  the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity"). Keep it apart from the MCP `modelRevision`.
119
129
  - `description` and `documentation` never reach rendered code (Stage#178, open).
@@ -124,9 +134,9 @@ Screenplay#377 (run specifications from MCP or the tool), #388 (completeness and
124
134
  report), #383 (identity for an `invokes` caller), #384 (`@pii` on identifiers, `@sensitive`
125
135
  meaning), #379 (`visualize-model` counts reactions); Stage#79 (render Automation and
126
136
  Translate slices), Stage#165 (admit ESM v4), Stage#197 (`@pii` identifier renders as
127
- `[PII]` event source id); cli#242 (false PLAY0285), cli#243 (`validate --executable`),
137
+ `[PII]` event source id); cli#242 (false PLAY0285 on the 4.60.1 bundle; fixed in effect by the 4.66.0 bundle but still open on GitHub), cli#243 (`validate --executable`),
128
138
  cli#244 (file mode ignores imports), cli#245 (`render --check`). The standalone tool at
129
- 4.64.0 has only the compile command and `mcp` (no `test`); the reference runner is library
139
+ 4.66.0 has only the compile command and `mcp` (no `test`); the reference runner is library
130
140
  only. Until these land, "specifications written" or "bound" is never "specifications
131
141
  pass".
132
142
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "skill": "cratis-screenplay-toolchain",
3
- "input": "Check a Screenplay model folder: which compiler should I run, what do V1 to V3 mean, and why does cratis reject my Automation slice?",
3
+ "input": "Check a Screenplay model folder: which compiler should I run, what do V1 to V3 mean, and what does the cratis CLI do with my Automation slice?",
4
4
  "fixtures": [],
5
5
  "assertions": [
6
6
  { "kind": "skill-contains", "value": "references/versions.md" },
7
7
  { "kind": "skill-contains", "value": "PLAY0029" },
8
8
  { "kind": "skill-contains", "value": "--warnaserror" },
9
- { "kind": "skill-contains", "value": "4.64.0" },
9
+ { "kind": "skill-contains", "value": "4.66.0" },
10
10
  { "kind": "skill-contains", "value": "cratis screenplay validate" },
11
11
  { "kind": "skill-contains", "value": "cli#244" },
12
12
  { "kind": "skill-contains", "value": "`notifications/initialized`" },
@@ -30,7 +30,7 @@ source is the single flow model.
30
30
  | --- | --- | --- |
31
31
  | `Cratis.Screenplay` | `4.31.0` | Original UI composition parser evidence |
32
32
  | `Cratis.Screenplay` | main `fd18129` | Cancellation routing and `optional`; changed example compiled |
33
- | `Cratis.Screenplay` | `4.64.0` (`7e16162`) | Statements in this skill re-verified: the nine `Documentation/screenplay/` pages above are unchanged since `v4.31.0` except `file-references.md` (typed-context and `implementation` paragraphs); `PLAY0269` in `Diagnostics/DiagnosticCodes.cs`; the new section compiled with `screenplay` 4.64.0 and `cratis screenplay validate` 3.27.1 |
33
+ | `Cratis.Screenplay` | `4.66.0` (`c89198b`) | Statements in this skill re-verified: the nine `Documentation/screenplay/` pages above are unchanged since `v4.31.0` except `file-references.md` (typed-context and `implementation` paragraphs); `PLAY0269` in `Diagnostics/DiagnosticCodes.cs`; the new section compiled with `screenplay` 4.66.0 and `cratis screenplay validate` 3.28.2 |
34
34
 
35
35
  The update follows `commands.md`, `events.md`, `queries.md` and decision 0023
36
36
  at that main commit (after v4.52.0). It does not verify UI rendering.
@@ -269,7 +269,7 @@ module Invoicing
269
269
  ```
270
270
 
271
271
  The inline event targets `invoiceId` without copying it into payload; the
272
- projection obtains it from event context. At v4.64.0 a command `returns` clause
272
+ projection obtains it from event context. At v4.66.0 a command `returns` clause
273
273
  (scalar or record) is authorable but syntax-only: binding reports `PLAY0268` until
274
274
  ESM v8 (`commands.md`, "Generated values and responses"). Form `on submit` and
275
275
  interaction `on success` response-name scopes, failure clearing and response
@@ -379,8 +379,8 @@ a trigger value named `file` is written `@file`.
379
379
  ## Verify
380
380
 
381
381
  - [ ] `screenplay <model> --warnaserror` (standalone) reports zero errors and zero
382
- warnings; `cratis screenplay validate --warnings-as-errors` says the same for
383
- constructs its bundled compiler knows (versions: `cratis-screenplay-toolchain`
382
+ warnings; `cratis screenplay validate --warnings-as-errors` says the same on
383
+ cratis 3.28.2 or later, which bundles the same compiler (versions: `cratis-screenplay-toolchain`
384
384
  `references/versions.md`).
385
385
  - [ ] Every screen in the flow has Level 1 reviewed before any layout, and every
386
386
  form field and screen field traces to a command or read-model property.
@@ -4,7 +4,7 @@ No TrogonStack text is adapted in this skill. Nebulit material is credited in th
4
4
 
5
5
  | Item | Source | Licence | Treatment | Where in this skill |
6
6
  |---|---|---|---|---|
7
- | Language constructs, rules and Verify list | Cratis/Screenplay v4.31.0 documentation, re-verified at v4.64.0 | MIT | original | SKILL.md |
7
+ | Language constructs, rules and Verify list | Cratis/Screenplay v4.31.0 documentation, re-verified at v4.66.0 | MIT | original | SKILL.md |
8
8
 
9
9
  ## Adapted closely (Martin Dilger and Nebulit GmbH, with agreement)
10
10
 
@@ -58,8 +58,8 @@ payload field the event never declares, so the event payload line matters.
58
58
  - `identifier` marks which property names the event source. It neither generates the value nor
59
59
  fills it. Here the user supplies the berth. Other sources are a prefill (`populate via query`
60
60
  or `populate from item` when the user chose a berth on the previous screen) or a modeled
61
- selection. `generated identifier` is syntax-only at v4.64.0 (binding reports `PLAY0268` until
61
+ selection. `generated identifier` is syntax-only at v4.66.0 (binding reports `PLAY0268` until
62
62
  ESM v8).
63
63
  - The form is found through `action BookBerth`; neither screen names it.
64
- - Compiled with `screenplay` 4.64.0 `--warnaserror` and `cratis screenplay validate
65
- --warnings-as-errors` 3.27.1.
64
+ - Compiled with `screenplay` 4.66.0 `--warnaserror` and `cratis screenplay validate
65
+ --warnings-as-errors` 3.28.2.
@@ -20,15 +20,15 @@ reading in this skill is not a render result.
20
20
 
21
21
  | Source | Pin | Notes |
22
22
  | --- | --- | --- |
23
- | Stage | `v4.24.0` (`fa48546`) | Renderer, sandbox host, spec runner; pins Screenplay 4.60.0 |
24
- | cratis CLI | `v3.27.1` (`a327e89`) | `cratis render`, `cratis run`; bundles Stage 4.24.0 and Screenplay 4.60.1 |
25
- | Rendered applications | Arc `22.25.0`, Chronicle `19.8.1`, .NET 10 | The scaffold profile; frontend Components 4.14.0, Scene 4.2.0 |
23
+ | Stage | `v4.24.1` (`2cadf59`) | Renderer, sandbox host, spec runner; pins Screenplay 4.66.0, Arc 22.50.5, Chronicle 19.32.0 (v4.24.0, `fa48546`, pinned Screenplay 4.60.0) |
24
+ | cratis CLI | `v3.28.2` (`141c499`) | `cratis render`, `cratis run`; bundles Stage 4.24.1 and Screenplay 4.66.0 (Cratis/cli#253, shipped in Cratis/cli#257). v3.28.1 and earlier (v3.28.0 and v3.28.1 verified in `Directory.Packages.props`) bundled Stage 4.24.0 and Screenplay 4.60.1 |
25
+ | Rendered applications | Arc `22.25.0`, Chronicle `19.8.1`, .NET 10 | The scaffold profile (`CratisBackendApplicationScaffoldProfile.cs`), unchanged at 4.24.1 although Stage itself builds on Arc 22.50.5 and Chronicle 19.32.0; frontend Components 4.14.0, Scene 4.2.0 |
26
26
 
27
27
  Everything below was read at those tags (`Source/Rendering.Cratis/**`, `README.md`,
28
28
  `Documentation/**` in Stage; `Source/Cli/Commands/Render/**` and
29
29
  `Documentation/reference/screenplay.md` in the CLI), and the vertical in
30
30
  [references/render-example.md](references/render-example.md) was rendered, built and
31
- tested with cratis 3.27.1. The full version table (Screenplay 4.64.0, Arc 22.50.5,
31
+ tested with cratis 3.28.2. The full version table (Screenplay 4.66.0, Arc 22.50.5,
32
32
  Chronicle 19.32.0 and the tool split) is in the `cratis-screenplay-toolchain` skill,
33
33
  `references/versions.md`. Rendered apps are on Arc 22.25.0, so `[ProtectedDecision]`
34
34
  (Arc 22.39.0 and later) is not available in code written into one.
@@ -70,9 +70,12 @@ receipt.
70
70
 
71
71
  Facts that surprise:
72
72
 
73
- - **Binding uses the CLI's bundled Screenplay 4.60.1** (ESM up to v5), not the standalone
74
- 4.64.0 tool. Anything above ESM v5 (v6 constructs) fails binding first; a model that
75
- binds only on the standalone tool is not renderable.
73
+ - **Binding uses the CLI's bundled Screenplay** (4.66.0 in cratis 3.28.2, the same compiler
74
+ as the standalone tool, ESM up to v6). A v6 model (Automation, Translate, reactions,
75
+ captures, application triggers, clock specifications) binds and is then refused whole by
76
+ Stage with `STAGE-ESM-016` (probed on 3.28.2); on cratis before 3.28.2 the bundled
77
+ 4.60.1 binder stopped it first with `PLAY0268`. A model that binds is not necessarily
78
+ renderable: Stage admits ESM v1 to v3 only.
76
79
  - **Render never builds, tests or runs** the output. A published render is admission and
77
80
  publication only; build and tests are separate results (see "Verify"). Admission can be
78
81
  green while a rendered Debug test fails (the example hit this with a query assertion).
@@ -90,7 +93,7 @@ rendered appends never carry event source type, event stream type or event strea
90
93
  Chronicle's defaults apply (Stage#177, #200, #201; Screenplay#407). Gap-fill the routing by
91
94
  hand; see `cratis-screenplay-toolchain` `references/sources-and-streams.md`.
92
95
 
93
- Whole-model admission needs ESM schema v1 to v3; anything else is `STAGE-ESM-016`. Event
96
+ Whole-model admission needs ESM schema v1 to v3; anything else is `STAGE-ESM-016`. Stage 4.24.1 also lists the ESM v6 members (reactions, captures, application triggers, clock and capture specifications) as rejected `STAGE-ESM-024` in its surface ledger, but the version gate refuses the model first, so a v6 model reports `STAGE-ESM-016` only. Event
94
97
  generations (v4) also fail the CLI pre-check `CLI-RENDER-003`. The admitted vertical:
95
98
 
96
99
  - concepts, composite types, collections and optional values;
@@ -213,5 +216,5 @@ Use `cratis render` (journaled, recoverable publication) instead.
213
216
 
214
217
  Rewritten for #493. The earlier version described Stage 3.15.1 (no CLI, eight-file
215
218
  backend scaffold, `not empty`-only validation, no frontend, Arc 22.3.0); each claim was
216
- re-verified at Stage 4.24.0 and cli 3.27.1 and replaced. See
219
+ re-verified at Stage 4.24.0 and cli 3.27.1 and replaced, then re-run on Stage 4.24.1 and cli 3.28.2. See
217
220
  [references/admission.md](references/admission.md) for source disagreements.