@cratis/pi 7.43.0 → 7.44.0

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 (35) hide show
  1. package/package/corpus/product-sync.json +3 -3
  2. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +2 -0
  3. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +1 -1
  4. package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +29 -0
  5. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +5 -1
  6. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +1 -1
  7. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +5 -2
  8. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +20 -0
  9. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +3 -0
  10. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
  11. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +1 -1
  12. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +1 -1
  13. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
  14. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +8 -2
  15. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +11 -0
  16. package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +2 -0
  17. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +5 -0
  18. package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +116 -0
  19. package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +119 -0
  20. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +8 -0
  21. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +9 -1
  22. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +10 -1
  23. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +6 -3
  24. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +30 -1
  25. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +3 -0
  26. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +2 -2
  27. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +19 -0
  28. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +35 -2
  29. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +13 -2
  30. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
  31. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +20 -0
  32. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +1 -1
  33. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +8 -3
  34. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +4 -1
  35. package/package.json +1 -1
@@ -166,9 +166,9 @@
166
166
  }
167
167
  ],
168
168
  "synced": {
169
- "version": "4.149.0",
169
+ "version": "4.151.0",
170
170
  "date": "2026-10-13",
171
- "by": "Cratis/AI#645"
171
+ "by": "Cratis/AI#652"
172
172
  },
173
173
  "covers": {
174
174
  "skills": [
@@ -196,7 +196,7 @@
196
196
  ],
197
197
  "rules": []
198
198
  },
199
- "notes": "Standalone 4.149.0 tool and byte-identical published/Golden contract pinned for Cratis/AI#645. Adds the concept generation MCP summary, typed strategy editing guidance and PLAY0683/PLAY0684 entropy/uniqueness repairs; derived regex, matches/checksum repair and rule-proof status remain unshipped. Retains ESM v15 strategies, strict fixtures, whole-source freshness and 4.148.0 response-name resolution. Historical evidence stays qualified. CLI 3.57.0 / MCP 4.147.1 lacks the new summary and repairs; this pin does not upgrade CLI or Scene runtime."
199
+ "notes": "Standalone 4.151.0 and byte-identical published/Golden contract pinned for Cratis/AI#648, #650 and #652. Text not empty rejects Unicode White_Space-only values in every ESM version without changing canonical bytes; collections and identity text remain unchanged. Stored stream All is reserved at binding (PLAY0273), including id pins; event pins warn PLAY0686 because their stored names do not yet reach renderers. Child-before-parent reference deferral is executable across given/when and accepted commits; parent absence leaves children out, ambiguous parents fail, and decision 0007's creation-event routing difference remains. Adds the concept generation MCP summary, typed strategy editing guidance and PLAY0683/PLAY0684 entropy/uniqueness repairs; derived regex, matches/checksum repair and rule-proof status remain unshipped. Retains ESM v15 strategies, strict fixtures, whole-source freshness and 4.148.0 response-name resolution. Historical evidence stays qualified. CLI 3.57.0 / MCP 4.147.1 lacks the new summary and repairs; this pin does not upgrade CLI or Scene runtime."
200
200
  },
201
201
  {
202
202
  "id": "scene",
@@ -261,6 +261,8 @@ produces when isProForma == true
261
261
  Routes bind as ESM v8; production `stream Source.Stream` overrides
262
262
  select v10. Read toolchain [routes](../cratis-screenplay-toolchain/references/production-routes-and-filters.md)
263
263
  and [source/stream declarations](../cratis-screenplay-toolchain/references/sources-and-streams.md).
264
+ Since **4.150.0**, stored stream `All` / `id "All"` refuses PLAY0273;
265
+ rename and history-migration guidance is in that reference.
264
266
  `public event X` is a local export; `event X from "store"` is a locally declared,
265
267
  unverified foreign shape. Commands never produce public events. Read
266
268
  [translation direction](../cratis-screenplay-automations-and-translations/references/public-events-and-direction.md)
@@ -10,7 +10,7 @@
10
10
 
11
11
  `generated` properties and `returns` bind/reference-execute since 4.68.0 (ESM v7).
12
12
  Concept generation strategies and whole-source freshness shipped in Screenplay
13
- 4.147.0 (ESM v15); standalone pin **4.149.0** includes them. CLI **3.57.0** bundles
13
+ 4.147.0 (ESM v15); standalone pin **4.151.0** includes them. CLI **3.57.0** bundles
14
14
  Screenplay **4.147.1** / Stage **4.89.1**, rendering the supported strategies,
15
15
  scalar/named responses, fixtures and `then returns`. Binding is not rendering.
16
16
  Historical CLI 3.41.0 STAGE-ESM-028/029 probes do not describe this bundle.
@@ -14,6 +14,35 @@
14
14
  | `all > <v>` / `all >= <v>` | `lines.quantity all > 0` |
15
15
  | `rule <Name>` | `orgNumber rule BeAValidOrganizationNumber` |
16
16
 
17
+ ## `not empty` means non-blank text (4.151.0)
18
+
19
+ On text, `not empty` rejects null, empty text and whitespace-only text; at least
20
+ one non-whitespace character is required. Concept and command property rules
21
+ have the same meaning in **every ESM version** from Screenplay **4.151.0**.
22
+ The rule does not trim or normalize the value: `" a "` passes unchanged.
23
+ Whitespace is Unicode `White_Space` (.NET `char.IsWhiteSpace`): U+0009–U+000D,
24
+ U+0020, U+0085, U+00A0, U+1680, U+2000–U+200A, U+2028, U+2029, U+202F,
25
+ U+205F and U+3000. U+0085 and U+00A0 fail; a lone U+FEFF passes. JavaScript
26
+ `trim()` is not equivalent (it misses U+0085 and removes U+FEFF).
27
+
28
+ On a collection, `not empty` still means **at least one element**, regardless
29
+ of that element's value: a collection containing empty or whitespace text is
30
+ nonempty. Identity text is separate and unchanged: event-source identities and
31
+ stream-id parts treat whitespace as a value, and only exact empty text is empty.
32
+ Do not apply this validation correction as identity normalization.
33
+
34
+ Add a whitespace-only rule rejection with the exact message; existing reference
35
+ specifications that expected acceptance now fail, even on an older ESM version.
36
+ The release changes reference outcomes, not canonical bytes or the ESM version.
37
+ A standalone pass is not proof that a bundled compiler or renderer has adopted
38
+ this correction. Complete exercised model:
39
+ [whitespace rule specifications](../../cratis-screenplay-specifications/references/whitespace-rules.md).
40
+
41
+ Sources: Cratis/Screenplay `v4.151.0`,
42
+ `Source/DotNET/Screenplay/Semantics/Execution/SemanticEvaluator.cs:102-110`,
43
+ `Documentation/screenplay/commands.md:404-407`, `concepts.md:190` in the same
44
+ folder, and `decisions/0071-whitespace-only-text-does-not-satisfy-not-empty.md:37-41,79`.
45
+
17
46
  ## Rules whose logic is code
18
47
 
19
48
  **Rules whose logic is code.** A bare `rule <Name>` records that a rule exists but
@@ -211,7 +211,11 @@ stored enums, not correctness repairs. Arguments/review: `references/mcp-tools.m
211
211
  Use `propose-extract-inline-event` on the inline `EventSyntax` handle before adding
212
212
  a generation (canonical formatting consent; refuses comment loss; no reverse
213
213
  operation). Event `propose-rename` pins `id "<old name>"` by default; use
214
- `eventNeverPersisted: true` only when that is known. Read `references/mcp-tools.md` before proposing a repair, rename or inline-event extraction, for exact limits and refusals:
214
+ `eventNeverPersisted: true` only when known. Since **4.150.0**, PLAY0686 and
215
+ event rename output warn: pins do not reach renderers, which use the new name.
216
+ Do not promise rendered stored-history compatibility. Stored stream `All` (even
217
+ `id "All"`) refuses PLAY0273; rename it without retaining that pin.
218
+ Read `references/mcp-tools.md` for repair/rename limits, migration and evidence:
215
219
  [MCP tool guide](references/mcp-tools.md).
216
220
 
217
221
  ## Choose a readable layout
@@ -250,7 +250,7 @@ the standalone 4.66.0 tool for the rows marked "probed"; Cratis CLI 3.28.2 and 3
250
250
  Screenplay 4.66.0 (before 3.28.2, Screenplay 4.60.1, differ where stated).
251
251
 
252
252
  Read-model identity below is corrected to 4.135.0; equality query filters are
253
- updated to standalone 4.149.0 (admitted in 4.143.0, ESM v14):
253
+ updated to standalone 4.151.0 (admitted in 4.143.0, ESM v14):
254
254
  explicit trailing `key` wins; otherwise single-instance queries in the owning slice
255
255
  must agree on `by`. Only with no single-instance identifier and an admitted list
256
256
  query does conventional `*Id` inference run. Queryless views need explicit `key`.
@@ -188,9 +188,12 @@ the server sends `roots/list` and serves `tools/list` after the reply).
188
188
  A text edit is **never** a way around a refusal: if a typed operation refused,
189
189
  change the request or ask, do not retype the file.
190
190
  4. **`id` pins alone are not enough when `.screenplay/identities.json` exists.**
191
- A text rename plus an `id "<old name>"` pin protects the stored event type
192
- name but leaves the identity catalog pointing at the old declaration; the next
191
+ A text rename plus an `id "<old name>"` pin preserves authored stored-name intent
192
+ but leaves the identity catalog pointing at the old declaration; the next
193
193
  `apply` can mint new identities silently. Use the identity-preserving operation.
194
+ At Screenplay 4.150.0, PLAY0686 and event rename output warn that the pin is
195
+ not carried to renderers: generated code uses the new name. Do not rely on it
196
+ for rendered stored-history compatibility; evidence and limits: `mcp-tools.md`.
194
197
  5. **A session without MCP** (a subagent, or a harness with no server) carries out a
195
198
  requested rename by text with `id "<Old>"` pins and an identity note when no
196
199
  `.screenplay/identities.json` exists. When it exists, it does not edit
@@ -265,6 +265,26 @@ pin, but retains a pin for a different earlier name. Contradictory generation pi
265
265
  refuse the rename. Do not promise a generation-2 payload-removal repair or a
266
266
  `PLAY0470` repair: neither is available.
267
267
 
268
+ On Screenplay **4.150.0**, event pins warn **PLAY0686** at binding. Event
269
+ `propose-rename` output includes the same warning even when unrelated authoring
270
+ errors prevent binding. The pin is not yet carried to renderers: generated code
271
+ uses the new name. Do not rely on it to keep old stored events readable in rendered
272
+ apps; retain intended pins and report the target compatibility gap. Decision 0075's
273
+ future `storedName` ESM admission is not delivered by this warning.
274
+ Sources: Cratis/Screenplay `v4.150.0`,
275
+ `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Structure.cs:157-168`,
276
+ `Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82-90`, and
277
+ `decisions/0075-carry-the-stored-event-type-name-in-the-executable-model.md:23-46`.
278
+
279
+ A stream whose stored name is exactly `All`, from its name or `id "All"`,
280
+ refuses executable binding/readiness with PLAY0273. Use discovered `propose-rename`
281
+ to change that stored stream name; pinning it back to `All` is not a repair.
282
+ There is no typed PLAY0273 repair for this case. Existing `All` history reads as
283
+ source-only appends. Source/stream pins otherwise travel as ESM v8 stored names,
284
+ unlike event pins. Source: Cratis/Screenplay `v4.150.0`,
285
+ `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.EventSources.cs:17-52` and
286
+ `decisions/0073-reserve-the-stored-event-stream-name-all.md:35-63`.
287
+
268
288
  VS Code and Monaco provide local PLAY0479 optionality and PLAY0471 redundant-id
269
289
  fixes without .NET. PLAY0471 removes the whole id line; a trailing comment blocks
270
290
  it. VS Code also has an experimental opt-in trusted C# bridge for PLAY0166/PLAY0478:
@@ -3,6 +3,9 @@
3
3
  "input": "Author and organize a Screenplay model in a repository.",
4
4
  "fixtures": [],
5
5
  "assertions": [
6
+ { "kind": "skill-contains", "value": "PLAY0686" },
7
+ { "kind": "skill-contains", "value": "uses the new name", "file": "references/mcp-tools.md" },
8
+ { "kind": "skill-contains", "value": "Existing `All` history reads as", "file": "references/mcp-tools.md" },
6
9
  { "kind": "play-compiles" },
7
10
  { "kind": "skill-contains", "value": "Edit through MCP proposals, not hand-edited text" },
8
11
  { "kind": "skill-contains", "value": "CLI 3.57.0 bundles MCP 4.147.1" },
@@ -178,7 +178,7 @@ on the header line is a declaration error, not a shorthand.
178
178
 
179
179
  ### What runs
180
180
 
181
- These bind on standalone 4.149.0: keyed `=> RM optional`, unfiltered collections,
181
+ These bind on standalone 4.151.0: keyed `=> RM optional`, unfiltered collections,
182
182
  collections narrowed by caller-supplied `by`, and their `observable` forms.
183
183
  Caller-supplied equality filters on collections select ESM v14: same-named scalar
184
184
  primitive/concept/enum properties, same nominal type ignoring optionality, no
@@ -11,7 +11,7 @@
11
11
  - Rendering is a different verdict
12
12
  - Verified product sources
13
13
 
14
- Screenplay **4.143.0 and later**, including the standalone **4.149.0** pin,
14
+ Screenplay **4.143.0 and later**, including the standalone **4.151.0** pin,
15
15
  binds `filter <name> <Type> [optional]` on a collection query when:
16
16
 
17
17
  - there is no `from` source;
@@ -110,7 +110,7 @@ model still compiles and binds) and its V5 states the scope.
110
110
  `--project-name`, `--root-namespace` and target `cratis`. Take V1 and V3 from
111
111
  `cratis-screenplay-toolchain`; report each with tool and version. V3 from a different
112
112
  compiler version does not prove the cratis-bundled binder admits the model (the bundle is
113
- 4.147.1, the standalone tool 4.149.0). `cratis screenplay validate --executable <root>` binds with
113
+ 4.147.1, the standalone tool 4.151.0). `cratis screenplay validate --executable <root>` binds with
114
114
  the bundled compiler and writes nothing: use it as the bundled-binder check (toolchain `references/verdicts.md`).
115
115
  2. **Probe.** `cratis render <model-root> --name <App> --destination <probe-dir> -o json`
116
116
  (exit 0 published, 5 refused with nothing published, 1 missing input); add `--check` to plan
@@ -30,7 +30,7 @@ per tool call and read each result from its exit status, never from a grep of th
30
30
  | --- | --- | --- |
31
31
  | Admission and publication | `cratis render <root> --name <App> --destination <dir> [--project-name <P>] [--root-namespace <N>] -o json` (forward every option recorded in section 1) | exit 0 published (receipt on stdout), 5 refused (diagnostics, nothing published), 1 missing input |
32
32
  | Drift or pending-change check | the same command plus `--check` (and `--scope`, `--force` as used) | no write, no recovery: exit 0 current, 6 `changes_pending`, 5 planning failure, refusal or pending recovery |
33
- | Bundled-binder check | `cratis screenplay validate --executable <root>` | exit 5 with "does not bind into an executable semantic model" when it does not; never renders or writes. Uses the bundled compiler (CLI 3.57.0 = Screenplay 4.147.1), not standalone 4.149.0 |
33
+ | Bundled-binder check | `cratis screenplay validate --executable <root>` | exit 5 with "does not bind into an executable semantic model" when it does not; never renders or writes. Uses the bundled compiler (CLI 3.57.0 = Screenplay 4.147.1), not standalone 4.151.0 |
34
34
  | Debug build | `dotnet build <dir>/<Project>.csproj -c Debug` | the build's exit status |
35
35
  | Debug tests | `dotnet test <dir>/<Project>.csproj -c Debug --no-build` | the test runner's exit status plus per-test results |
36
36
  | List the generated classes | `dotnet test <dir>/<Project>.csproj -c Debug --no-build --list-tests` | the names to map to specifications |
@@ -83,7 +83,10 @@ question is not four approvals.
83
83
  anonymous/ownership or unsynthesizable personas. Syntax and complete model:
84
84
  `cratis-screenplay-specifications` `references/persona-callers-and-cases.md`.
85
85
  8. **Separate view pass**: population, each update, accumulation, removal (with a surviving
86
- row), absence, ordering. Mark lifecycle branches as branches.
86
+ row), absence, ordering. Mark lifecycle branches. Views combining sources must
87
+ tolerate any arrival order. Since **4.149.1**, pin a child before its parent:
88
+ given child, then parent, then read model; "parent never arrives" leaves the
89
+ child absent. Evidence/example: `references/view-and-story-specs.md`.
87
90
  9. **State-dependent rules**: `reads <View>` + `require <expr> message "..."` as stated intent,
88
91
  marked **NOT enforced in the model today** in the slice `description` (binding reports
89
92
  PLAY0268/0271: expected in design mode; Screenplay#129), target named (Arc
@@ -145,7 +148,10 @@ target requirements.
145
148
  destination matters. A competing-claim given needs a *different* `for`.
146
149
  - Format rules belong on a `concept`: give each concept rule representative acceptance,
147
150
  rejection and boundary specs once (through one command that carries it), not on every use;
148
- never `n/a` automatically. This matches `cratis-screenplay-specifications`, which also
151
+ never `n/a` automatically. Include a whitespace-only rejection for text `not empty`:
152
+ **4.151.0** changes outcomes in every ESM version. Unicode/identity boundaries
153
+ and evidence: command-surface `references/validate-rules.md`.
154
+ This matches `cratis-screenplay-specifications`, which also
149
155
  requires one rejection spec per concept rule. Business rules get one rejection spec each.
150
156
  - Persona Cannot lines are intent: each needs an executable gate plus a `then denied` spec whose
151
157
  caller is a synthesized persona witness or an explicit gate fixture, else record a gap.
@@ -128,6 +128,17 @@ not prove an entire list is empty: assert the unkeyed list query itself (an unke
128
128
  ## Ordering, lag and rebuild
129
129
  - **Out of order across sources**: if a joined or cross-context fact can arrive first, add a
130
130
  family member with that order and say what the view shows meanwhile (joins never create rows).
131
+ For a child before its parent, standalone Screenplay **4.149.1 and later** defers the
132
+ original child event and retries it when the parent exists, at any nesting depth.
133
+ Pin `given <ChildEvent>`, then `given <ParentEvent>`, then `then readmodel`; also cover
134
+ a given child followed by `when append <ParentEvent>` and "parent never arrives"
135
+ (child stays absent). An ambiguous parent still fails closed. Pending children survive
136
+ given/when and accepted command commits; this does not prove runtime ordering or races.
137
+ Complete passing example and creation-event routing caveat:
138
+ [child ordering](../../cratis-screenplay-specifications/references/child-ordering.md).
139
+ Sources: Cratis/Screenplay `v4.149.1`,
140
+ `Documentation/screenplay/projections/semantic-model.md:77-81` and
141
+ `Source/DotNET/Screenplay/Semantics/Execution/SemanticScopedProjection.Deferred.cs:11-96`.
131
142
  - **Projection lag**: a spec asserts the settled state. If a screen decision depends on the view
132
143
  being current (a booking screen that must not offer a taken berth), that is not protection:
133
144
  the command needs its own constraint, or the rule is `recorded` as target-enforced.
@@ -4,6 +4,8 @@
4
4
  "fixtures": [],
5
5
  "assertions": [
6
6
  { "kind": "play-compiles" },
7
+ { "kind": "skill-contains", "value": "a whitespace-only rejection" },
8
+ { "kind": "skill-contains", "value": "parent never arrives" },
7
9
  { "kind": "skill-contains", "value": "Coverage matrix before any spec" },
8
10
  { "kind": "skill-contains", "value": "Once, idempotent, exactly once are different claims" },
9
11
  { "kind": "skill-contains", "value": "Unauthorized is never `then error`" },
@@ -70,6 +70,8 @@ target has one normalized behavior to match.
70
70
  cascades" ([references/reactions-and-cascades.md](references/reactions-and-cascades.md)). Under `cratis` before 3.28.2 (Screenplay 4.60.1) `when clock`, `when trigger`
71
71
  and `when capture` failed binding with `PLAY0268`, and so did reactions and captures; they
72
72
  bind on 4.66.0 and `cratis` 3.28.2.
73
+ - Since **4.149.1**, children defer; an ambiguous parent still fails closed.
74
+ [Child ordering](references/child-ordering.md): specs and decision 0007 caveat.
73
75
  - A rejected individual command or append leaves the world unchanged; an accepted
74
76
  one commits once, then the read models and queries are compared. There is no
75
77
  scenario-wide transaction in v6: when a later effect of a cascade or capture
@@ -235,6 +237,9 @@ constraint — that is the constraint speaking, not the view.)
235
237
  Write an error specification for a rule that depends on existing system state or that another business could plausibly set differently. A format, range or presence rule on one value belongs on the concept with its own `validate` block, with **one rejection specification per concept rule**, through one command that uses the concept, not one per use.
236
238
  Read [references/concept-rules.md](references/concept-rules.md) when deciding whether a rule needs an error specification or a concept `validate`, or when you need the complete concept-rule example with boundary acceptances and rejections.
237
239
 
240
+ **4.151.0** text `not empty`: [whitespace rejection specs and boundaries](references/whitespace-rules.md).
241
+ Old whitespace-acceptance specs now fail. This applies to every ESM version.
242
+
238
243
  ## Application-boundary coverage
239
244
 
240
245
  Every slice should carry at least one specification whose action is what a real
@@ -0,0 +1,116 @@
1
+ <!-- Copyright (c) Cratis. All rights reserved. -->
2
+ <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
3
+
4
+ # Child-before-parent specifications (4.149.1 and later)
5
+
6
+ ## Contents
7
+
8
+ - Verified product sources
9
+ - Complete model
10
+ - Known routing difference — decision 0007
11
+
12
+ Views combining sources must tolerate any arrival order. The reference evaluator
13
+ retains a parentless child and retries it in arrival order using its original event
14
+ values, event-source context and parent key. Resolving a child can release a
15
+ pending grandchild in the same pass. Pending children survive given/when and
16
+ accepted command commits. A parent that never arrives leaves the child absent;
17
+ an ambiguous parent still fails closed.
18
+
19
+ ## Verified product sources
20
+
21
+ Cratis/Screenplay **v4.149.1**:
22
+ - `Source/DotNET/Screenplay/Semantics/Execution/SemanticScopedProjection.Deferred.cs:11-96`
23
+ retains and resolves child occurrences; `:98-138` applies original mappings.
24
+ - `Source/DotNET/Screenplay/Semantics/Execution/for_SemanticEvaluator/when_projecting_scoped_projections/with_deferral_across_given_and_when.cs:8-60`
25
+ is the compiling, passing source for the model below. The extra specifications
26
+ cover both given orders and a child whose parent never arrives.
27
+ - `Documentation/screenplay/projections/semantic-model.md:77-81` and
28
+ `decisions/0007-affected-read-model-instances.md:46` retain the routing boundary.
29
+
30
+ ## Complete model
31
+
32
+ The event payload's `orderId` is the parent key; the source identity is not used
33
+ by these handlers. Pin absence through the keyed query: no result means neither
34
+ parent nor child has been materialized. This is not a view rejection.
35
+
36
+ ```screenplay
37
+ concept Id : Uuid
38
+ type Line
39
+ lineNumber Int
40
+ amount Int
41
+ module Orders
42
+ feature Ordering
43
+ slice StateView Lookup
44
+ event LineAdded
45
+ orderId Id
46
+ lineNumber Int
47
+ amount Int
48
+ event OrderAdded
49
+ orderId Id
50
+ readmodel OrderView
51
+ orderId Id
52
+ lines Line[]
53
+ query OrderById => OrderView optional
54
+ by orderId Id
55
+ projection Orders => OrderView
56
+ from OrderAdded key orderId
57
+ children lines identified by lineNumber
58
+ from LineAdded key lineNumber
59
+ parent orderId
60
+ amount = amount
61
+ specification ChildBeforeParent
62
+ given LineAdded
63
+ orderId = "00000000-0000-0000-0000-000000000001"
64
+ lineNumber = 1
65
+ amount = 10
66
+ when append OrderAdded
67
+ orderId = "00000000-0000-0000-0000-000000000001"
68
+ then readmodel OrderView
69
+ orderId = "00000000-0000-0000-0000-000000000001"
70
+ lines = [{"lineNumber":1,"amount":10}]
71
+ specification ChildBeforeGivenParent
72
+ given LineAdded
73
+ orderId = "00000000-0000-0000-0000-000000000001"
74
+ lineNumber = 1
75
+ amount = 10
76
+ given OrderAdded
77
+ orderId = "00000000-0000-0000-0000-000000000001"
78
+ then readmodel OrderView
79
+ orderId = "00000000-0000-0000-0000-000000000001"
80
+ lines = [{"lineNumber":1,"amount":10}]
81
+ specification ParentBeforeChild
82
+ given OrderAdded
83
+ orderId = "00000000-0000-0000-0000-000000000001"
84
+ when append LineAdded
85
+ orderId = "00000000-0000-0000-0000-000000000001"
86
+ lineNumber = 1
87
+ amount = 10
88
+ then readmodel OrderView
89
+ orderId = "00000000-0000-0000-0000-000000000001"
90
+ lines = [{"lineNumber":1,"amount":10}]
91
+ specification ParentNeverArrives
92
+ given LineAdded
93
+ orderId = "00000000-0000-0000-0000-000000000001"
94
+ lineNumber = 1
95
+ amount = 10
96
+ then query OrderById
97
+ arguments
98
+ orderId = "00000000-0000-0000-0000-000000000001"
99
+ ```
100
+
101
+ With the fenced model saved as `child-ordering.play`, run
102
+ `screenplay test child-ordering.play --format json` on the standalone pin;
103
+ each selected specification must pass. The corpus gate runs this complete fence.
104
+ The CLI 3.57.0 bundle's Screenplay 4.147.1 predates child deferral; a newer
105
+ standalone result does not upgrade that bundle or prove rendered tests.
106
+
107
+ ## Known routing difference — decision 0007
108
+
109
+ For a flat root/child shared event type, the evaluator uses the root handler's
110
+ resolved key, matching Chronicle's current-event fallback. It does **not**
111
+ implement `FindParentEvent`'s earlier-child-creation branch: a shared event updating
112
+ a child created by a different event type can route through that child's existing
113
+ location in Chronicle, while the evaluator uses the current parent handler's key.
114
+ Do not use this self-referential shared-event shape as a runtime conformance oracle.
115
+ Reference specifications are not Chronicle replay, concurrent execution or a
116
+ proof of real-kernel futures.
@@ -0,0 +1,119 @@
1
+ <!-- Copyright (c) Cratis. All rights reserved. -->
2
+ <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
3
+
4
+ # Whitespace-only rule rejection (4.151.0)
5
+
6
+ ## Contents
7
+
8
+ - Verified product sources
9
+ - Complete model
10
+
11
+ Text `not empty` rejects null, empty text and Unicode `White_Space`-only text
12
+ for concept and command property rules. Screenplay **4.151.0** corrects reference
13
+ outcomes for **every ESM version**, without changing canonical bytes. Existing
14
+ specifications expecting whitespace acceptance now fail. Keep the rule and
15
+ correct its expected outcome, not its input to hide the rejection.
16
+
17
+ U+0085 and U+00A0 are whitespace; U+FEFF is not. Values are not trimmed:
18
+ `" a "` passes and remains unchanged. JavaScript `trim()` is not the contract.
19
+ Collections need only one element (even an empty or blank element); identity
20
+ text (event-source and stream-id parts) still treats whitespace as a value.
21
+ Null command/event fixture values are not admitted in source specifications;
22
+ the null check has evaluator-source evidence, not a fabricated passing fixture.
23
+
24
+ ## Verified product sources
25
+
26
+ Cratis/Screenplay **v4.151.0**:
27
+ - `Source/DotNET/Screenplay/Semantics/Execution/SemanticEvaluator.cs:102-110`.
28
+ - `Documentation/screenplay/commands.md:404-407`, `concepts.md:190` in the same folder.
29
+ - `Source/DotNET/Screenplay.CanonicalCorpus/Corpus/NotEmptyWhitespace/source.play:1-66`
30
+ supplies the complete model below; only the explanatory Unicode comments are added.
31
+ - `Source/DotNET/Screenplay/Semantics/Execution/for_SemanticEvaluator/when_validating_not_empty/with_empty_text.cs:8-36`,
32
+ `with_non_whitespace_text.cs:8-25` and `with_a_collection.cs:8-26` in the same folder
33
+ check concept/property rejection, U+FEFF acceptance and collection boundaries
34
+ across versions. Decision 0071 documents unchanged identity text (`:37-41,79`).
35
+
36
+ ## Complete model
37
+
38
+ The visually blank literals in `RejectingNextLine...` are U+0085; those in
39
+ `AcceptingByteOrderMark...` are U+FEFF. Preserve their exact code points.
40
+
41
+ ```screenplay
42
+ concept Name : String
43
+ validate
44
+ not empty message "Name is required"
45
+ module Names
46
+ feature Registration
47
+ slice StateChange RegisterConcept
48
+ command RegisterConcept
49
+ id String identifier
50
+ name Name
51
+ produces NameRegistered
52
+ for id
53
+ name = name
54
+ event NameRegistered
55
+ name Name
56
+ specification RejectingWhitespaceOnAConcept
57
+ when RegisterConcept
58
+ id = "name-1"
59
+ name = " "
60
+ then error "Name is required"
61
+ specification RejectingNextLineOnAConcept
62
+ when RegisterConcept
63
+ id = "name-1"
64
+ // U+0085 NEXT LINE
65
+ name = "…"
66
+ then error "Name is required"
67
+ specification AcceptingNonWhitespaceOnAConcept
68
+ when RegisterConcept
69
+ id = "name-1"
70
+ name = " a "
71
+ then NameRegistered
72
+ for "name-1"
73
+ name = " a "
74
+ specification AcceptingByteOrderMarkOnAConcept
75
+ when RegisterConcept
76
+ id = "name-1"
77
+ // U+FEFF ZERO WIDTH NO-BREAK SPACE
78
+ name = ""
79
+ then NameRegistered
80
+ for "name-1"
81
+ name = ""
82
+ slice StateChange RegisterProperty
83
+ command RegisterProperty
84
+ id String identifier
85
+ name String
86
+ validate
87
+ name not empty message "Name is required"
88
+ produces TextRegistered
89
+ for id
90
+ name = name
91
+ event TextRegistered
92
+ name String
93
+ specification RejectingWhitespaceOnAProperty
94
+ when RegisterProperty
95
+ id = "name-1"
96
+ name = " "
97
+ then error "Name is required"
98
+ specification RejectingNextLineOnAProperty
99
+ when RegisterProperty
100
+ id = "name-1"
101
+ // U+0085 NEXT LINE
102
+ name = "…"
103
+ then error "Name is required"
104
+ specification AcceptingByteOrderMarkOnAProperty
105
+ when RegisterProperty
106
+ id = "name-1"
107
+ // U+FEFF ZERO WIDTH NO-BREAK SPACE
108
+ name = ""
109
+ then TextRegistered
110
+ for "name-1"
111
+ name = ""
112
+ ```
113
+
114
+ Save the fenced model as `whitespace-rules.play`, then run
115
+ `screenplay test whitespace-rules.play --format json` with the standalone pin.
116
+ All seven specifications must pass; the corpus gate executes the complete fence.
117
+ A passing reference result does not prove that CLI 3.57.0's older compiler or
118
+ Stage/Arc targets have adopted the Unicode correction. Their own specifications
119
+ must establish parity; decision 0071's consumer follow-ups remain separate.
@@ -4,6 +4,14 @@
4
4
  "fixtures": [],
5
5
  "assertions": [
6
6
  { "kind": "play-compiles" },
7
+ { "kind": "skill-contains", "value": "Old whitespace-acceptance specs now fail." },
8
+ { "kind": "skill-contains", "value": "specification RejectingWhitespaceOnAConcept", "file": "references/whitespace-rules.md" },
9
+ { "kind": "skill-contains", "value": "specification RejectingWhitespaceOnAProperty", "file": "references/whitespace-rules.md" },
10
+ { "kind": "skill-contains", "value": "U+0085 and U+00A0 are whitespace; U+FEFF is not.", "file": "references/whitespace-rules.md" },
11
+ { "kind": "skill-contains", "value": "an ambiguous parent still fails closed" },
12
+ { "kind": "skill-contains", "value": "specification ChildBeforeGivenParent", "file": "references/child-ordering.md" },
13
+ { "kind": "skill-contains", "value": "specification ParentNeverArrives", "file": "references/child-ordering.md" },
14
+ { "kind": "skill-contains", "value": "earlier-child-creation branch", "file": "references/child-ordering.md" },
7
15
  {
8
16
  "kind": "skill-contains",
9
17
  "value": "main `fd18129`", "file": "references/source-notes.md"
@@ -152,6 +152,9 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
152
152
  - Generations are declared in full, numbered 1..N without gaps, in the same slice
153
153
  (PLAY0446-0448). Referencing a removed property is PLAY0273; a `given` needing a historical
154
154
  shape is PLAY0449. An `id` pin equal to the event's current name is PLAY0471 (information).
155
+ Since Screenplay **4.150.0**, event pins also warn PLAY0686 at binding: they are
156
+ not carried to renderers, so generated code uses the new name. Do not rely on
157
+ the pin to preserve stored-event readability in rendered apps; see `references/evolution.md`.
155
158
  - `reads` is PLAY0271 and `require` over read-model paths is PLAY0268 at binding. A `concurrency`
156
159
  block compiles but is PLAY0271 at binding. Keep both when they state real intent; they are not
157
160
  protection. `description` text never reaches rendered code: a rule that lives only in prose is
@@ -167,7 +170,12 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
167
170
  nominal type mismatch. Composite ids use at least two named scalar parts,
168
171
  complete named mappings and canonical comparison, not guessed legacy splits.
169
172
  Stored key-schema changes require a new stream identity or migration; see
170
- toolchain `references/sources-and-streams.md`.
173
+ toolchain `references/sources-and-streams.md`. Since Screenplay **4.150.0**,
174
+ a stored stream name exactly `All` (name or `id "All"`) refuses binding with
175
+ PLAY0273, parallel to source `Default`. Streams `all`, `ALL` and `Default`
176
+ remain valid. Rename via `propose-rename`; a pin retaining `All` cannot fix it.
177
+ Existing `All` history reads as source-only appends, not the renamed stream.
178
+ Source evidence and migration limits are in that reference.
171
179
  - Chronicle (open at v19.50.0): the SQL and InMemory providers do not settle unique claims
172
180
  (#3744); index updates run after commit and may fail silently (#4123); composite values can
173
181
  collide on the separator (#4131). A declared constraint is a declaration, not a runtime test.
@@ -161,7 +161,16 @@ behaviour. Write the answer in the slice `documentation`.
161
161
  ## 7. Ordering
162
162
  - Within one source, facts are in append order. Across sources, do not assume an order
163
163
  unless a single sequence guarantees it in the target; views combining sources must tolerate
164
- any arrival order (a child before its parent).
164
+ any arrival order (a child before its parent). On standalone Screenplay **4.149.1
165
+ and later**, pin that order with `given <ChildEvent>`, then `given <ParentEvent>`,
166
+ then `then readmodel`; also cover a given child followed by `when append <ParentEvent>`.
167
+ The reference evaluator defers the child until its original parent exists. A parent
168
+ that never arrives leaves the child absent; an ambiguous parent still fails closed.
169
+ This is reference execution, not a Chronicle runtime/race proof. Complete example:
170
+ [child ordering](../../cratis-screenplay-specifications/references/child-ordering.md).
171
+ Sources: Cratis/Screenplay `v4.149.1`,
172
+ `Documentation/screenplay/projections/semantic-model.md:77-81` and
173
+ `Source/DotNET/Screenplay/Semantics/Execution/SemanticScopedProjection.Deferred.cs:11-96`.
165
174
  - Constraints are evaluated in append order, including earlier appends of the same command.
166
175
 
167
176
  ## 8. Projection lag and rebuild
@@ -1,15 +1,18 @@
1
1
  # Example: evolving persisted events
2
2
 
3
3
  A complete design-mode model showing the three evolution routes from `evolution.md`: a new
4
- generation (compatible change), an identity-aware rename that keeps the stored name as an `id`
5
- pin, and a changed meaning that becomes a new event. Several generations select ESM v4.
4
+ generation (compatible change), an identity-aware rename that keeps the authored stored-name
5
+ intent as an `id` pin, and a changed meaning that becomes a new event. Several generations
6
+ select ESM v4. At Screenplay 4.150.0 the pin warns PLAY0686 at binding: renderers
7
+ still use the new name, so this example does not prove stored-history compatibility.
8
+ See `evolution.md` for source evidence and the deployment boundary.
6
9
 
7
10
  ```screenplay
8
11
  // cratis-screenplay-streams-and-consistency: event evolution, complete design-mode example (V1, warnings as errors).
9
12
  // - MembershipRenewed: a compatible change (new property with a defined default for old facts),
10
13
  // declared as generation 2 in full beside generation 1, in the same slice.
11
14
  // - MembershipPaused: the persisted event formerly stored as "MembershipSuspended"; renamed
12
- // through the identity-aware path, which keeps the old stored name as an `id` pin.
15
+ // through the identity-aware path, which pins the old name in authoring, not rendered storage.
13
16
  // - MembershipEnded vs MembershipTerminatedForBreach: a change of meaning is a NEW event, not
14
17
  // a generation.
15
18
  // Screenplay does not express migrations/upcasters (Documentation/screenplay/events.md); the
@@ -1,5 +1,14 @@
1
1
  # Event evolution
2
2
 
3
+ ## Contents
4
+
5
+ - Classify the change
6
+ - Event pins do not reach renderers yet (4.150.0)
7
+ - Enum identities are stored contracts
8
+ - Compatibility scenarios (write before editing)
9
+ - Identity rules
10
+ - Identity owner
11
+
3
12
  Stored facts outlive the code and the model that wrote them. Plan a change by asking what
4
13
  happens to facts already stored, to every reader of the event, and to the deployment window
5
14
  when old and new code run side by side. The best evolution is the one you avoid: short
@@ -20,10 +29,30 @@ compatibility scenarios below first; the identity owner then applies the change
20
29
  | add a property with no sensible old value | the old fact lacks information | usually a **new event** for the new situation, or a separate fact recording the extra information | review with the expert |
21
30
  | remove a property | yes, if no reader needs it | new generation without it; every reference fails with PLAY0273 until removed | contract evolution, check readers |
22
31
  | change meaning (same name, different business fact) | **no** | **new event** with its own name; old event stays for history | identity: add, not rename |
23
- | rename (same meaning) | yes | identity-aware rename by the identity owner; the stored name is kept with `id "OldName"` | identity-affecting |
32
+ | rename (same meaning) | yes | identity-aware rename by the identity owner; `id "OldName"` preserves the authored stored-name intent, **not rendered storage** at the current pin (PLAY0686) | identity-affecting |
24
33
  | split one event into two / merge two | depends | new events from now on; never rewrite history; projections read both old and new | identity-affecting |
25
34
  | rename a constraint | n/a | starts an empty index: values claimed before are unprotected. Ask first | identity-affecting |
26
35
 
36
+ ## Event pins do not reach renderers yet (4.150.0)
37
+
38
+ An event `id` pin is authoring metadata until the ESM carries stored names.
39
+ Screenplay **4.150.0** warns **PLAY0686** at binding, and event `propose-rename`
40
+ reports the same caveat even when unrelated syntax prevents binding: generated
41
+ code uses the new event name. Do not rely on a pin to keep existing stored events
42
+ readable in a rendered app. Retain the intended pin and report this compatibility
43
+ gap; do not delete it, set `eventNeverPersisted` without evidence, or treat a
44
+ passing reference specification as a stored-history test. Confirm the actual
45
+ stored type in the owning target and plan target migration/compatibility work
46
+ before deployment. Decision 0075's future `storedName` ESM admission and renderer
47
+ support are **not shipped** by this warning.
48
+
49
+ Sources: Cratis/Screenplay `v4.150.0`,
50
+ `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Structure.cs:157-168`,
51
+ `Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82-90`, and
52
+ `decisions/0075-carry-the-stored-event-type-name-in-the-executable-model.md:23-46`.
53
+ Source/stream pins are different: their stored names already travel in ESM v8;
54
+ stream `All` is reserved regardless of a pin (toolchain `sources-and-streams.md`).
55
+
27
56
  A test for "generation or new event": a new version must be convertible from the old one
28
57
  without inventing facts. If it is not, it is a different event.
29
58
 
@@ -4,6 +4,9 @@
4
4
  "fixtures": [],
5
5
  "assertions": [
6
6
  { "kind": "play-compiles" },
7
+ { "kind": "skill-contains", "value": "stream name exactly `All`" },
8
+ { "kind": "skill-contains", "value": "not rendered storage", "file": "references/evolution.md" },
9
+ { "kind": "skill-contains", "value": "never arrives leaves the child absent", "file": "references/consistency-and-concurrency.md" },
7
10
  { "kind": "skill-contains", "value": "one business identity per stream" },
8
11
  { "kind": "skill-contains", "value": "NOT enforced in the model today" },
9
12
  { "kind": "skill-contains", "value": "#3744" },
@@ -24,7 +24,7 @@ files is one application: always check the folder, never one file of it.
24
24
 
25
25
  When choosing or upgrading a tool, or checking version-specific capabilities, read `references/versions.md`; it is the only version table, and other skills point to it. For exact diagnostic codes, MCP names/parameters and standalone CLI options, search the large published [references/screenplay-contract.json](references/screenplay-contract.json), pinned by [references/screenplay-contract.version](references/screenplay-contract.version), rather than loading it in full. Locate a diagnostic by its exact `code` (for example `"code": "PLAY0029"`), a tool by its exact `name` (for example `"name": "read-workspace"`), or a command in `cliCommands`; read the matched object for retirement, parameters or options. [references/screenplay-contract-exceptions.json](references/screenplay-contract-exceptions.json) records reasoned exceptions for historical statements; it does not change the current contract.
26
26
 
27
- The standalone pin is Screenplay 4.149.0.
27
+ The standalone pin is Screenplay 4.151.0.
28
28
  CLI and bundled package pins: `references/versions.md`. The single version table records
29
29
  released source evidence and historical probes separately; do not relabel an old
30
30
  render/browser result as a probe of the current packages.
@@ -46,7 +46,7 @@ or the current standalone pin.
46
46
  3. **Pick the compiler deliberately and name it.** Standalone `screenplay` for
47
47
  current language checks and reference specifications; `cratis` for rendering
48
48
  and generation. Bundled and standalone versions differ (CLI 3.57.0 bundles 4.147.1;
49
- the standalone pin is 4.149.0). Report both tool and
49
+ the standalone pin is 4.151.0). Report both tool and
50
50
  version, rather than transferring a verdict across releases.
51
51
  4. **Know the mode** (design, executable, renderable) and write from its subset.
52
52
  5. **Capability is not correctness.** The tool you ran decides what is accepted today; the
@@ -6,6 +6,7 @@
6
6
  - Source reference and identifier checks
7
7
  - Public events and translation direction
8
8
  - Explicit enum member numbers
9
+ - Reserved stored names and event pin warnings (4.150.0)
9
10
  - Named keys, production routes and observer filters
10
11
  - Caller identity, compliance and routes
11
12
  - Specification metadata, callers, cases and locators
@@ -98,6 +99,24 @@ remain specification values. Non-positional pins select v12; positional pins kee
98
99
  older executable bytes/version. Consumer admission is separate (`versions.md`).
99
100
  Source: `v4.139.0:Documentation/screenplay/diagnostics.md`, decision 0065.
100
101
 
102
+ ## Reserved stored names and event pin warnings (4.150.0)
103
+
104
+ | Code | Layer / severity | Meaning / fix |
105
+ | --- | --- | --- |
106
+ | PLAY0273 | Binding error | A stored source exactly `Default`, or stored stream exactly `All` (name or `id "All"` pin), is reserved. Authoring still parses/prints it. Rename the stream with discovered `propose-rename`; keeping `id "All"` cannot fix it. Comparison is ordinal: streams `all`, `ALL` and `Default` remain valid. Old `All` events read as source-only appends; moving history needs a Chronicle migration, not a language repair. |
107
+ | PLAY0686 | Binding warning; event rename proposal also reports it | Event `id` pins do not yet travel in the ESM to renderers; generated code uses the new name. Do not rely on a pin to preserve stored-event readability in rendered apps. Retain intended pins and report the target compatibility gap, rather than delete them to hide the warning. No automatic repair. |
108
+
109
+ MCP readiness exposes the binding refusal. PLAY0273 is reused, not a new ESM
110
+ version; match its reserved-name message before choosing the rename. PLAY0686
111
+ is not evidence that decision 0075's future `storedName` admission has shipped.
112
+ Source/stream pins already travel in ESM v8 and are not event pins.
113
+ Sources: Cratis/Screenplay `v4.150.0`,
114
+ `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.EventSources.cs:17-52`,
115
+ `SemanticModelBinder.Structure.cs:157-168` in the same folder,
116
+ `Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82-90`, and
117
+ `decisions/0073-reserve-the-stored-event-stream-name-all.md:35-63` /
118
+ `decisions/0075-carry-the-stored-event-type-name-in-the-executable-model.md:23-46`.
119
+
101
120
  ## Named keys, production routes and observer filters
102
121
 
103
122
  | Code | Severity | Meaning / fix |
@@ -4,6 +4,8 @@
4
4
 
5
5
  - Caller and compliance boundary (4.142.0)
6
6
  - Admitted on both compilers
7
+ - Text `not empty` reference correction (4.151.0)
8
+ - Child-before-parent reference execution (4.149.1)
7
9
  - Equality query filters (ESM v14, since 4.143.0)
8
10
  - Admitted from Screenplay 4.61 (ESM v6): standalone tool and cratis 3.28.2 or later
9
11
  - Generated values and responses (ESM v7/v15): current compiler and renderer boundaries
@@ -24,7 +26,7 @@ reaction refusals/redelivery remain unadmitted. Use the actual
24
26
  binder before promoting an older probe to a current capability claim.
25
27
 
26
28
  What the binder admits, and what it refuses with which code. The answer depends on the
27
- compiler version: the standalone tool (4.149.0) binds through v15; the compiler bundled in cratis
29
+ compiler version: the standalone tool (4.151.0) binds through v15; the compiler bundled in cratis
28
30
  3.57.0 (4.147.1) and its renderer admit through v15; older bundles (4.66.0 in cratis 3.28.x, admitting v1 to v6; 4.60.1 before 3.28.2, v1 to v5)
29
31
  are history.
30
32
  Tool facts and the exact v6 messages: `versions.md`. Always name
@@ -99,6 +101,37 @@ caller and purpose guidance retains v4.127.0 `context.md`, `identity.md`, `purpo
99
101
  - `seed`. Personas, screens and descriptions are PLAY0270/PLAY0269 information, not
100
102
  blocking.
101
103
 
104
+ ## Text `not empty` reference correction (4.151.0)
105
+
106
+ Screenplay **4.151.0** changes reference outcomes in **every ESM version**:
107
+ concept and command property `not empty` reject null, empty and whitespace-only
108
+ text, using Unicode `White_Space` (.NET `char.IsWhiteSpace`). U+0085 and U+00A0
109
+ count; U+FEFF does not. No trimming/normalization or canonical-byte/ESM-version
110
+ change. Specifications that relied on whitespace being accepted now fail.
111
+ Collections still require only one element, and event-source/stream-id identity
112
+ text still treats whitespace as a value. This does not upgrade the older bundled
113
+ compiler or Stage/Arc target behavior; run their own specs to establish parity.
114
+ Sources: Cratis/Screenplay `v4.151.0`,
115
+ `Source/DotNET/Screenplay/Semantics/Execution/SemanticEvaluator.cs:102-110` and
116
+ `Documentation/screenplay/commands.md:404-407`. Complete passing model:
117
+ [whitespace rules](../../cratis-screenplay-specifications/references/whitespace-rules.md).
118
+
119
+ ## Child-before-parent reference execution (4.149.1)
120
+
121
+ An admitted child projection event before its parent is deferred, not Unsupported.
122
+ The reference evaluator retries pending children in arrival order with original event
123
+ values/context and parent keys, including grandchildren and across given/when and
124
+ accepted command commits. A parent that never arrives leaves the child absent;
125
+ an ambiguous parent still fails closed. Pin child-before-parent, parent-before-child
126
+ and absence with [child-ordering specifications](../../cratis-screenplay-specifications/references/child-ordering.md).
127
+ Decision 0007's earlier-child-creation routing branch remains a known difference:
128
+ the evaluator uses the current root handler key for shared root/child events, not
129
+ a child's location resolved through a different creation event. This is reference
130
+ semantics, not real Chronicle runtime conformance. Sources: Cratis/Screenplay
131
+ `v4.149.1:Documentation/screenplay/projections/semantic-model.md:77-81` and
132
+ `Source/DotNET/Screenplay/Semantics/Execution/SemanticScopedProjection.Deferred.cs:11-96`.
133
+ CLI 3.57.0's Screenplay 4.147.1 bundle predates this deferral.
134
+
102
135
  ## Equality query filters (ESM v14, since 4.143.0)
103
136
 
104
137
  `filter <name> <Type> [optional]` binds on collections with no `from`, targeting a
@@ -107,7 +140,7 @@ same-named scalar primitive/concept/enum property of the same nominal type
107
140
  filters AND with `by`; optional omission does not narrow, supplied null is refused.
108
141
  `then query … arguments` and `when query` accept both `by` and filters; PLAY0468
109
142
  reports unknown/repeated/missing required arguments. Collection results match by
110
- read model/key regardless of row order. The standalone 4.149.0 pin admits this;
143
+ read model/key regardless of row order. The standalone 4.151.0 pin admits this;
111
144
  CLI 3.57.0's 4.147.1 compiler and Stage 4.89.1 admit it through v15, subject to
112
145
  construct checks (snapshot lists/DateTime filters/parameter order still refuse). Complete compiled specs:
113
146
  read-surface [equality filters](../../cratis-screenplay-read-surface/references/equality-filters.md).
@@ -1601,7 +1601,7 @@
1601
1601
  ]
1602
1602
  },
1603
1603
  {
1604
- "source": "eventsource Account\n identifier String\n stream All\nmodule M\n feature F\n slice StateChange S\n command Record\n id String identifier\n produces event Recorded\n stream Account.All\n",
1604
+ "source": "eventsource Account\n identifier String\n stream Archive\nmodule M\n feature F\n slice StateChange S\n command Record\n id String identifier\n produces event Recorded\n stream Account.Archive\n",
1605
1605
  "minimumSemanticVersion": "10.0",
1606
1606
  "diagnostic": null,
1607
1607
  "diagnostics": [],
@@ -9900,7 +9900,7 @@
9900
9900
  ]
9901
9901
  },
9902
9902
  {
9903
- "source": "eventsource Account\n identifier String\n stream All\nmodule M\n feature F\n slice Automation S\n event Recorded\n value String\n reaction FollowUp\n from Account.All\n when Recorded\n",
9903
+ "source": "eventsource Account\n identifier String\n stream Archive\nmodule M\n feature F\n slice Automation S\n event Recorded\n value String\n reaction FollowUp\n from Account.Archive\n when Recorded\n",
9904
9904
  "minimumSemanticVersion": "10.0",
9905
9905
  "diagnostic": null,
9906
9906
  "diagnostics": [],
@@ -20478,6 +20478,17 @@
20478
20478
  "title": "A command response name is used in that command\u0027s failure continuation.",
20479
20479
  "reserved": false,
20480
20480
  "retired": false
20481
+ },
20482
+ {
20483
+ "code": "PLAY0686",
20484
+ "name": "EventIdPinNotCarriedToRenderers",
20485
+ "severity": "warning",
20486
+ "severities": [
20487
+ "warning"
20488
+ ],
20489
+ "title": "An event identity pin is not yet carried to renderers, which use the event\u0027s current name.",
20490
+ "reserved": false,
20491
+ "retired": false
20481
20492
  }
20482
20493
  ],
20483
20494
  "mcpTools": [
@@ -39,6 +39,26 @@ use a bare nested `streamId` followed by all named part mappings exactly once.
39
39
  A property literally named `stream` is written `@stream` where the command clause
40
40
  would otherwise consume it. Do not invent source-only route syntax.
41
41
 
42
+ On Screenplay **4.150.0 and later**, exactly `All` is reserved as a stored stream
43
+ name (declaration name or `id "All"` pin), just as `Default` is reserved for a
44
+ stored source name. Comparison is ordinal: streams `all`, `ALL` and `Default`
45
+ remain valid. Authoring parses/prints these names; executable binding and MCP
46
+ readiness refuse `All` with **PLAY0273**. Stage's STAGE-ESM-030 remains defense
47
+ in depth, not an additional admitted route.
48
+
49
+ Rename the stream through discovered `propose-rename`; an `id "All"` pin is
50
+ not a fix. Remove or replace an existing `id "All"` with a typed edit, then
51
+ review executable readiness before applying. Source/stream pins normally preserve
52
+ stored names, but this rename
53
+ must change the stored stream name. Chronicle uses `All` for appends without a
54
+ stream, so existing history stored under `All` reads as source-only appends
55
+ (or unrouted facts), not as the newly named stream. Moving that history needs
56
+ an explicit Chronicle data migration, not a language repair or invented route.
57
+ Sources: Cratis/Screenplay `v4.150.0`,
58
+ `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.EventSources.cs:17-52`,
59
+ `Documentation/screenplay/event-sources.md:7,132-134`, and
60
+ `decisions/0073-reserve-the-stored-event-stream-name-all.md:25-51,63`.
61
+
42
62
  ```screenplay
43
63
  concept AccountId : Uuid
44
64
  concept Month : Int
@@ -53,7 +53,7 @@ V3 are read from the MCP server or from a render, V1 and V5 from the CLIs.
53
53
  Needs an MCP connection (V2 and V3 belong to the session that owns MCP; a subagent without
54
54
  MCP reports `V2 not run: no MCP in this agent` unless the brief supplies fresh output). Without
55
55
  MCP, a binding check exists: `cratis screenplay validate --executable <root>` binds with the
56
- **bundled** compiler (CLI 3.57.0 bundles Screenplay 4.147.1, not standalone 4.149.0), never
56
+ **bundled** compiler (CLI 3.57.0 bundles Screenplay 4.147.1, not standalone 4.151.0), never
57
57
  renders or writes files, and exits 5 with "The model does not bind into an executable semantic
58
58
  model" when it does not. Report it as `V3 (bundled 4.137.0 via cratis validate --executable)`; it
59
59
  gives binding errors, not the V2 `executable-diagnostics` view, so V2 stays MCP-only.
@@ -19,7 +19,7 @@ probe; older probes retain their original labels in the other references.
19
19
 
20
20
  | Source | Pin | Evidence |
21
21
  | --- | --- | --- |
22
- | Screenplay language, standalone tool and MCP | **4.149.0** | Released tag `v4.149.0`, published NuGet tool and byte-identical Golden contract; concept generation MCP summary/entropy repairs, retaining ESM v15 and 4.148.0 response-name resolution |
22
+ | Screenplay language, standalone tool and MCP | **4.151.0** | Released tag `v4.151.0`, published NuGet tool and byte-identical published/Golden contract; non-blank text `not empty` in every ESM version, reserved stream `All` / event pin warning PLAY0686, and child-before-parent reference deferral; retains ESM v15 and generation MCP repairs |
23
23
  | cratis CLI | **3.57.0** | Released tag `v3.57.0`; source-checked, not a new render/browser probe |
24
24
  | Screenplay bundled by CLI | **4.147.1** | CLI `v3.57.0:Directory.Packages.props:8`; binds through v15; does not include 4.148.0 response-name continuation resolution or 4.149.0 generation summary/entropy repairs |
25
25
  | Stage bundled by CLI | **4.89.1** | Same file, line 10; Stage `v4.89.1:Directory.Packages.props` pins Screenplay 4.147.1; rendering admits through v15 |
@@ -56,7 +56,7 @@ or renderer probes below as results from the newer bundle.
56
56
  ## Equality-filter rendering boundary
57
57
 
58
58
  Caller-supplied collection equality filters shipped in Screenplay **4.143.0**
59
- (decision 0069), selecting ESM v14; the standalone **4.149.0** pin binds and
59
+ (decision 0069), selecting ESM v14; the standalone **4.151.0** pin binds and
60
60
  reference-tests them. No-filter models retain their version/bytes/revision.
61
61
  CLI **3.57.0** bundles Screenplay **4.147.1** / Stage **4.89.1** and renders
62
62
  collection equality filters, including optional omission and AND with `by`.
@@ -71,7 +71,7 @@ read-surface [equality filters](../../cratis-screenplay-read-surface/references/
71
71
 
72
72
  ## Two compilers, one rule
73
73
 
74
- Standalone Screenplay 4.149.0 and CLI 3.57.0's 4.147.1 bundle are different releases.
74
+ Standalone Screenplay 4.151.0 and CLI 3.57.0's 4.147.1 bundle are different releases.
75
75
  Prefer standalone for the current language checks; CLI owns generation, Prologue
76
76
  and rendering. Name the tool/version with every verdict. No verdict transfers
77
77
  between differing compilers without checking the same inputs there.
@@ -90,6 +90,11 @@ Cratis/cli `v3.57.0:Directory.Packages.props:8,35-37`; Cratis/Screenplay
90
90
  `McpRepairCapabilities.cs:10-24`. The standalone generation fields and repairs
91
91
  are source-checked at `v4.149.0:McpGenerationDetails.cs:13-83` under the same MCP
92
92
  source folder; detailed evidence: model-authoring `references/mcp-tools.md`.
93
+ The 4.147.1 bundle also predates child deferral (4.149.1), reserved stream `All`
94
+ / event pin warning PLAY0686 (4.150.0), and the non-blank text `not empty`
95
+ reference correction (4.151.0). The latter changes outcomes in every ESM version,
96
+ not canonical bytes. See `executable-subset.md` and `diagnostics.md` for tagged
97
+ source evidence and target boundaries.
93
98
 
94
99
  ## Commands and exit codes
95
100
 
@@ -3,6 +3,9 @@
3
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
+ { "kind": "skill-contains", "value": "Specifications that relied on whitespace being accepted now fail.", "file": "references/executable-subset.md" },
7
+ { "kind": "skill-contains", "value": "PLAY0686", "file": "references/diagnostics.md" },
8
+ { "kind": "skill-contains", "value": "streams `all`, `ALL` and `Default`", "file": "references/sources-and-streams.md" },
6
9
  { "kind": "skill-contains", "value": "PLAY0614", "file": "references/diagnostics.md" },
7
10
  { "kind": "skill-contains", "value": "PLAY0666", "file": "references/diagnostics.md" },
8
11
  { "kind": "skill-contains", "value": "Published v11", "file": "references/versions.md" },
@@ -47,7 +50,7 @@
47
50
  { "kind": "skill-contains", "value": "**Published v15 in 4.147.0:**", "file": "references/versions.md" },
48
51
  { "kind": "skill-contains", "value": "protected identities/enums (`-040`)", "file": "references/renderable-subset.md" },
49
52
  { "kind": "skill-contains", "value": "PLAY0514" },
50
- { "kind": "skill-contains", "value": "**4.149.0**", "file": "references/versions.md" },
53
+ { "kind": "skill-contains", "value": "**4.151.0**", "file": "references/versions.md" },
51
54
  { "kind": "skill-contains", "value": "RejectsAUsedGeneratedSource", "file": "references/generation-strategies-example.md" },
52
55
  { "kind": "skill-contains", "value": "bind as ESM v8" },
53
56
  { "kind": "skill-contains", "value": "PLAY0530/0531", "file": "references/diagnostics.md" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.43.0",
3
+ "version": "7.44.0",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [