@cratis/pi 7.42.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 (36) 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 +36 -1
  4. package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +29 -0
  5. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +3 -0
  6. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +29 -23
  7. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +1 -1
  8. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +23 -3
  9. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +96 -0
  10. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +15 -0
  11. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
  12. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +1 -1
  13. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +1 -1
  14. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
  15. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +8 -2
  16. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +11 -0
  17. package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +2 -0
  18. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +5 -0
  19. package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +116 -0
  20. package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +119 -0
  21. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +8 -0
  22. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +9 -1
  23. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +10 -1
  24. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +6 -3
  25. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +30 -1
  26. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +3 -0
  27. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +2 -2
  28. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +19 -0
  29. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +35 -2
  30. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +13 -2
  31. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
  32. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +20 -0
  33. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +1 -1
  34. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +16 -5
  35. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +4 -1
  36. package/package.json +1 -1
@@ -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.148.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.148.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.148.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.148.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.148.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,9 +19,9 @@ 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.148.0** | Released tag `v4.148.0`, published NuGet tool and byte-identical Golden contract; ESM v15 generation strategies/freshness and response-name continuation 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
- | 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 |
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 |
26
26
  | Historical standalone Stage source baseline | **4.76.0** (Screenplay 4.139.0) | First v12 enum-number rendering; generated UUID-concept values and responses shipped in 4.74.0, v11 admission in 4.75.0. Those capabilities are now in the CLI bundle; standalone Stage beyond the bundled release is not this baseline |
27
27
  | Screenplay.Generation / CritterStack / Prologue bundled by CLI | **0.18.0 / 0.24.0 / 2.0.0** | CLI `v3.57.0:Directory.Packages.props:5-7,28-33`. Latest released: Generation 0.18.1, CritterStack 0.26.0, Prologue 2.0.0 (no release after 2.0.0); the newer Generation and CritterStack releases are not in a cli |
@@ -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.148.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.148.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.
@@ -83,7 +83,18 @@ Do not treat a clean fragment or scoped result as whole-application success.
83
83
  MCP server launch: `screenplay mcp <model-root>` or
84
84
  `cratis screenplay mcp <model-root>`. Discover `tools/list`, views and schemas
85
85
  rather than counting tools. Connection, worktree switching and root-state
86
- conflicts: `cratis-screenplay-model-authoring`.
86
+ conflicts: `cratis-screenplay-model-authoring`. CLI 3.57.0's MCP 4.147.1 lacks
87
+ 4.149.0's concept generation summary and PLAY0683/PLAY0684 repairs. Source:
88
+ Cratis/cli `v3.57.0:Directory.Packages.props:8,35-37`; Cratis/Screenplay
89
+ `v4.147.1:Source/DotNET/Screenplay.Mcp/McpDeclarationDetails.cs:153-160` and
90
+ `McpRepairCapabilities.cs:10-24`. The standalone generation fields and repairs
91
+ are source-checked at `v4.149.0:McpGenerationDetails.cs:13-83` under the same MCP
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.
87
98
 
88
99
  ## Commands and exit codes
89
100