@cratis/pi 7.45.0 → 7.47.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 (42) hide show
  1. package/package/corpus/product-sync.json +3 -3
  2. package/package/corpus/skills/cratis-arc-command/SKILL.md +21 -19
  3. package/package/corpus/skills/cratis-arc-command/references/generated-values.md +19 -54
  4. package/package/corpus/skills/cratis-arc-command/references/shop-generation.md +110 -0
  5. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +21 -11
  6. package/package/corpus/skills/cratis-fundamentals-concept/references/shop-generation.md +108 -0
  7. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +1 -1
  8. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +20 -17
  9. package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +96 -0
  10. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +11 -2
  11. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +5 -4
  12. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +128 -0
  13. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +30 -27
  14. package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md +30 -0
  15. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +1 -1
  16. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +3 -3
  17. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +26 -15
  18. package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +11 -7
  19. package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +140 -0
  20. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +16 -3
  21. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
  22. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +1 -1
  23. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +1 -1
  24. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
  25. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +10 -2
  26. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +42 -10
  27. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +7 -4
  28. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +5 -4
  29. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +50 -23
  30. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +7 -1
  31. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +2 -2
  32. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +13 -11
  33. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -2
  34. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +7 -0
  35. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +963 -7
  36. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
  37. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +12 -1
  38. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +51 -7
  39. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +5 -1
  40. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +22 -12
  41. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/choosing-generation.md +30 -0
  42. package/package.json +1 -1
@@ -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.151.0). `cratis screenplay validate --executable <root>` binds with
113
+ 4.147.1, the standalone tool 4.153.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.151.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.153.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 |
@@ -180,10 +180,18 @@ the one-rejection rule (`PLAY0273`) are reported only when the model binds, so
180
180
  A command with an authorization gate, a validation rule and a uniqueness constraint, specified in full with inline events, optional-aware queries and read-model assertions.
181
181
  Read [references/worked-example.md](references/worked-example.md) when writing or checking a complete command, view or constraint specification and you need the full compiled model to copy the shape from.
182
182
 
183
+ ## Choosing a strategy
184
+
185
+ Read [shop fixtures and strategy choices](references/generated-fixtures.md).
186
+
187
+ ## When not to
188
+
189
+ Pins/clock do not realize unreleased context or secret generation; preserve the contract.
190
+
183
191
  ## Generated fixtures and return expectations (ESM v7)
184
192
 
185
- Current standalone and bundled compilers bind generated fixtures (`generated <name> = <value>`, `for` beneath `when`) and `then returns` as ESM v7. If execution reaches generation without every generated value supplied, the run is unsupported and never passes.
186
- Read [references/generated-fixtures.md](references/generated-fixtures.md) when writing generated-value fixtures or scalar and record return expectations for a command.
193
+ Current compilers bind fixtures/returns. Reached generation without every pin is
194
+ unsupported, never passed. The fixture reference covers strict v15 shapes and freshness.
187
195
 
188
196
  ## Actions beyond commands
189
197
 
@@ -1,22 +1,48 @@
1
1
  ## Generated fixtures and return expectations (ESM v7 and v15)
2
2
 
3
+ ### Choosing a strategy
4
+
5
+ Use the [shop example](../../cratis-screenplay-command-surface/references/shop-generation.md):
6
+ pin CustomerId (`cus_` + ULID), OrderId (TypeID) and InviteCode (NanoID) as
7
+ whole values. ApiKey stays secret with no executable generation; do not write a
8
+ passing issuance spec that invents its .NET Bytes(32) factory in Screenplay.
9
+ OrderId pins do not realize Arc's received-time/tenant context either.
10
+
11
+ Choose the concept's strategy for the job, then pin a whole value matching it:
12
+ `for` for its generated identifier, named `generated` fixtures for other values.
13
+ Use the shared [strategy reference](../../cratis-screenplay-command-surface/references/generated-values-and-responses.md)
14
+ for UUID, time-ordered, typed/opaque text and byte-budget choices and exact shapes.
15
+ `given clock` supplies `$context.occurred`, not a generated time-ordered ID;
16
+ a seed is not a portable fixture.
17
+
18
+ ### When not to
19
+
20
+ Pins do not prove randomness, authorization, idempotency, storage freshness or
21
+ secret safety. Client-minted IDs stay inputs; gapless invoice numbering needs an
22
+ allocator, not a random fixture. Pattern/random/rule and secret generation remain
23
+ unadmitted. Source: Screenplay
24
+ `v4.151.0:Documentation/screenplay/generated-values/choosing.md:8-29,49-51`.
25
+
26
+ ### Fixtures and outcomes
27
+
3
28
  Standalone `screenplay` 4.68.0 or later binds and runs these, and so does the current cratis bundle (the
4
29
  cratis 3.28.3 bundle, 4.66.0, did not); CLI 3.57.0 / Stage 4.89.1 render supported UUID/String generation strategies,
5
30
  scalar/named responses, fixtures and `then returns`. Unsupported types/result combinations
6
31
  remain `STAGE-ESM-028`/`-038`; preserve refused specifications as gap-fill contracts. The model and rules are in `cratis-screenplay-command-surface`; the
7
- complete example is `cratis-screenplay-toolchain` `references/generated-responses-example.md`. Read that file when writing generated-value fixtures or scalar and record return expectations and needing a complete reference-executable model.
32
+ complete threaded model is the linked shop example. The excerpt below belongs
33
+ to its RegisterCustomer command and uses the same concept declarations.
8
34
 
9
35
  ```screenplay excerpt
10
- specification RegisteringReturnsIdentifiers
11
- when RegisterProject
12
- for "11111111-1111-1111-1111-111111111111"
13
- generated receiptId = "22222222-2222-2222-2222-222222222222"
14
- name = "Apollo"
15
- then ProjectRegistered
16
- for "11111111-1111-1111-1111-111111111111"
17
- name = "Apollo"
36
+ specification RegistersWithPinnedValues
37
+ when RegisterCustomer
38
+ for "cus_01ARZ3NDEKTSV4RRFFQ69G5FAV"
39
+ generated inviteCode = "abcdefghijklmnopqrstu"
40
+ then CustomerRegistered
41
+ for "cus_01ARZ3NDEKTSV4RRFFQ69G5FAV"
42
+ inviteCode = "abcdefghijklmnopqrstu"
18
43
  then returns
19
- receiptId = "22222222-2222-2222-2222-222222222222"
44
+ customerId = "cus_01ARZ3NDEKTSV4RRFFQ69G5FAV"
45
+ inviteCode = "abcdefghijklmnopqrstu"
20
46
  ```
21
47
 
22
48
  - `for` beneath `when` supplies the generated identifier and an indented `generated <name> = <value>` supplies any other
@@ -43,5 +69,11 @@ specification RegisteringReturnsIdentifiers
43
69
  rejects the entire command with Concurrency, without append, response or silent retry. Below v15
44
70
  fixtures retain legacy reuse. See the complete [strategy example](../../cratis-screenplay-toolchain/references/generation-strategies-example.md)
45
71
  and command-surface `references/generated-values-and-responses.md` for tagged sources.
72
+ - `given clock` supplies `$context.occurred`; it does not synthesize UUIDv7, ULID or
73
+ TypeID from that instant. Pin the whole identifier, never a seed. Stage 4.89.1's
74
+ time-ordered factories use wall clock, not command-receipt time, and its clock
75
+ specifications remain unsupported. Sources: Screenplay
76
+ `v4.151.0:Documentation/screenplay/generated-values/choosing.md:51`; Stage
77
+ `v4.89.1:Documentation/reference/generated-values-rendering.md:138`.
46
78
  - A reaction-invoked command that reaches generation is `Unsupported(IdentityAllocation)` (no fixture channel); a
47
79
  response-only command runs and its response is discarded.
@@ -128,7 +128,9 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
128
128
  `references/compliance.md` for allowed types and the policy/encryption distinction.
129
129
  5. **Plan evolution** with `references/evolution.md`: classify each event change (additive,
130
130
  meaning change, rename, removal, split or merge) and write its compatibility scenarios before
131
- editing. Pin persisted/public enum member numbers before reordering or removing
131
+ editing. Admit the **4.153.0 release baseline** in the release job; admitted
132
+ revisions need `newGeneration`. Modes/CLI/MCP: `references/evolution.md`.
133
+ Pin persisted/public enum member numbers before reordering or removing
132
134
  members; never renumber or reuse a published number. Positional pins preserve
133
135
  executable bytes; non-positional pins need ESM v12 consumer admission.
134
136
  Renames and other identity-affecting edits are made by the identity owner (the
@@ -152,9 +154,10 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
152
154
  - Generations are declared in full, numbered 1..N without gaps, in the same slice
153
155
  (PLAY0446-0448). Referencing a removed property is PLAY0273; a `given` needing a historical
154
156
  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`.
157
+ Since Screenplay **4.152.0**, differing pins carry `storedName` in ESM v16;
158
+ equal-name pins are no-ops. Pins are event-name identifiers, shared by all
159
+ generations and unique application-wide (PLAY0472). Consumers must admit v16;
160
+ released Stage 4.92.0 / CLI 3.59.0 do not. See `references/evolution.md`.
158
161
  - `reads` is PLAY0271 and `require` over read-model paths is PLAY0268 at binding. A `concurrency`
159
162
  block compiles but is PLAY0271 at binding. Keep both when they state real intent; they are not
160
163
  protection. `description` text never reaches rendered code: a rule that lives only in prose is
@@ -3,8 +3,9 @@
3
3
  A complete design-mode model showing the three evolution routes from `evolution.md`: a new
4
4
  generation (compatible change), an identity-aware rename that keeps the authored stored-name
5
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.
6
+ alone select ESM v4; the differing event pin selects v16 in Screenplay 4.152.0.
7
+ It carries `storedName`, but released Stage 4.92.0 does not admit v16: this example
8
+ does not prove rendered stored-history compatibility.
8
9
  See `evolution.md` for source evidence and the deployment boundary.
9
10
 
10
11
  ```screenplay
@@ -12,11 +13,11 @@ See `evolution.md` for source evidence and the deployment boundary.
12
13
  // - MembershipRenewed: a compatible change (new property with a defined default for old facts),
13
14
  // declared as generation 2 in full beside generation 1, in the same slice.
14
15
  // - MembershipPaused: the persisted event formerly stored as "MembershipSuspended"; renamed
15
- // through the identity-aware path, which pins the old name in authoring, not rendered storage.
16
+ // through the identity-aware path, which carries the old storedName in ESM v16.
16
17
  // - MembershipEnded vs MembershipTerminatedForBreach: a change of meaning is a NEW event, not
17
18
  // a generation.
18
19
  // Screenplay does not express migrations/upcasters (Documentation/screenplay/events.md); the
19
- // target must convert generation 1 facts. Multiple generations select ESM v4.
20
+ // target must convert generation 1 facts and explicitly admit storedName in ESM v16.
20
21
 
21
22
  concept MembershipId : Uuid
22
23
 
@@ -3,7 +3,7 @@
3
3
  ## Contents
4
4
 
5
5
  - Classify the change
6
- - Event pins do not reach renderers yet (4.150.0)
6
+ - Stored event names (ESM v16, 4.152.0)
7
7
  - Enum identities are stored contracts
8
8
  - Compatibility scenarios (write before editing)
9
9
  - Identity rules
@@ -15,6 +15,17 @@ when old and new code run side by side. The best evolution is the one you avoid:
15
15
  lifecycles and events that record what the business decided (not table rows) change less.
16
16
 
17
17
  ## Classify the change
18
+
19
+ **Screenplay 4.153.0 release baseline:** commit `.screenplay/release-baseline.json`,
20
+ written by explicit `screenplay baseline admit <root> --release <label>` in the release
21
+ job; gate later edits with `screenplay baseline check <root>`. Without a baseline,
22
+ current-property edits still require exactly one of `newGeneration` or
23
+ `eventNeverPersisted`; unadmitted revisions default to in-place edits; admitted
24
+ revisions accept only explicit `newGeneration`. Never hand-edit the sidecar except
25
+ a reviewed correction. The baseline freezes resolved shared schemas too, not just
26
+ event declaration text. Full CLI exits, MCP review and source evidence:
27
+ model-authoring [release baseline](../../cratis-screenplay-model-authoring/references/release-baseline.md).
28
+
18
29
  Edit class depends on whether the event is **persisted** (facts may be stored: the model was
19
30
  accepted, deployed or rendered into a running system; ask when unsure). Changing an
20
31
  unpersisted event's members is an ordinary text edit when no `.screenplay/identities.json` exists; with it, adding or removing event properties changes catalog addresses and goes through MCP. Any change to a
@@ -29,29 +40,43 @@ compatibility scenarios below first; the identity owner then applies the change
29
40
  | 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 |
30
41
  | remove a property | yes, if no reader needs it | new generation without it; every reference fails with PLAY0273 until removed | contract evolution, check readers |
31
42
  | change meaning (same name, different business fact) | **no** | **new event** with its own name; old event stays for history | identity: add, not rename |
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 |
43
+ | rename (same meaning) | yes | identity-aware rename by the identity owner; `id "OldName"` carries the old stored name in ESM v16; the target must admit it explicitly | identity-affecting |
33
44
  | split one event into two / merge two | depends | new events from now on; never rewrite history; projections read both old and new | identity-affecting |
34
45
  | rename a constraint | n/a | starts an empty index: values claimed before are unprotected. Ask first | identity-affecting |
35
46
 
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`).
47
+ ## Stored event names (ESM v16, 4.152.0)
48
+
49
+ A rename that keeps the same business fact and must read old stored events pins
50
+ its old stored name: `event NewName` with `id "OldName"`. Screenplay **4.152.0**
51
+ carries a differing pin as `storedName` on the current event contract and selects
52
+ ESM v16. All generations share that effective stored name (pin, otherwise name);
53
+ it does not replace or rehash the catalog's portable `EventContractId`.
54
+
55
+ Pins must be event-name identifiers: ASCII letter or underscore first, then word
56
+ characters, nonempty and without surrounding whitespace. Invalid pins, different
57
+ effective names across generations and duplicate stored names across the application
58
+ refuse binding with **PLAY0472**. An equal-name pin is a no-op: no `storedName`, no
59
+ v16 selection; PLAY0471 removal preserves ESM bytes. Models without differing pins
60
+ retain earlier versions, bytes and revisions. **The interim event-pin warning is retired**; MCP's
61
+ compatibility `eventPinWarnings` array is empty.
62
+
63
+ Consumers must explicitly admit v16 and preserve `storedName`, or refuse it.
64
+ Released Stage **4.92.0** and CLI **3.59.0** do not: Stage admits through v15 and
65
+ emits argument-free `[EventType]`; CLI still bundles Screenplay 4.147.1. Do not
66
+ promise rendered storage compatibility or remove the pin to make rendering pass.
67
+ A passing reference specification is not a stored-history test: reference facts
68
+ still use contract/display names. If an older renderer already stored events under
69
+ the new name, switching the stored type needs a reviewed baseline correction or
70
+ data migration, not a silent re-render. Release-baseline tooling ships in 4.153.0;
71
+ its `--from-esm` stored-name limitation is in the release-baseline reference.
72
+
73
+ Sources: Cratis/Screenplay `v4.152.0`, `Documentation/screenplay/events.md:116-124`,
74
+ `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.StoredEventNames.cs:15-35`,
75
+ `SemanticModelBinder.Structure.cs:16-17,215` in the same folder, and
76
+ `Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82`.
77
+ Target evidence: toolchain `references/versions.md` (Stored-name rendering boundary).
78
+ Source/stream stored names already travel in ESM v8; stream `All` remains reserved
79
+ regardless of a pin (toolchain `sources-and-streams.md`).
55
80
 
56
81
  A test for "generation or new event": a new version must be convertible from the old one
57
82
  without inventing facts. If it is not, it is a different event.
@@ -96,8 +121,10 @@ For each changed event, answer in the slice `documentation` or `STATE.md`:
96
121
  - Generations of one event live in one slice; a same-named event in another slice is a
97
122
  different contract, not a generation (and ambiguous to the binder).
98
123
  - Leave `id` absent on new events; a pin equal to the event's current name is information
99
- PLAY0471 (Screenplay `events.md`). MCP and workspace renames add the pin by default because
100
- the tool cannot know whether events were stored; set "never persisted" only when you know.
124
+ PLAY0471 (Screenplay `events.md`). Without a release baseline, renames pin by default;
125
+ "never persisted" requires storage evidence. With a baseline, an unadmitted event gets
126
+ no new pin; any admitted revision requires retaining its stored name and refuses
127
+ `eventNeverPersisted`. Inspect `eventRename.mutability` / `pinAdded` before apply.
101
128
  - Every rename, move or removal of an event, constraint, command, read model, slice, feature
102
129
  or module is identity-affecting and is done by the identity owner.
103
130
 
@@ -3,9 +3,15 @@
3
3
  "input": "Review the stream identities in our Screenplay model, tell me whether two people can enrol in the last seat at once, and what happens when a client retries after a lost reply.",
4
4
  "fixtures": [],
5
5
  "assertions": [
6
+ { "kind": "skill-contains", "value": "revisions need `newGeneration`" },
7
+ { "kind": "skill-contains", "value": "unadmitted revisions default to in-place edits", "file": "references/evolution.md" },
8
+ { "kind": "skill-contains", "value": "screenplay baseline check", "file": "references/evolution.md" },
6
9
  { "kind": "play-compiles" },
7
10
  { "kind": "skill-contains", "value": "stream name exactly `All`" },
8
- { "kind": "skill-contains", "value": "not rendered storage", "file": "references/evolution.md" },
11
+ { "kind": "skill-contains", "value": "**The interim event-pin warning is retired**", "file": "references/evolution.md" },
12
+ { "kind": "skill-contains", "value": "duplicate stored names across the application", "file": "references/evolution.md" },
13
+ { "kind": "skill-contains", "value": "An equal-name pin is a no-op", "file": "references/evolution.md" },
14
+ { "kind": "skill-contains", "value": "Consumers must explicitly admit v16 and preserve `storedName`", "file": "references/evolution.md" },
9
15
  { "kind": "skill-contains", "value": "never arrives leaves the child absent", "file": "references/consistency-and-concurrency.md" },
10
16
  { "kind": "skill-contains", "value": "one business identity per stream" },
11
17
  { "kind": "skill-contains", "value": "NOT enforced in the model today" },
@@ -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.151.0.
27
+ The standalone pin is Screenplay 4.153.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.151.0). Report both tool and
49
+ the standalone pin is 4.153.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,7 +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
+ - Reserved stored names and event pins (4.152.0)
10
10
  - Named keys, production routes and observer filters
11
11
  - Caller identity, compliance and routes
12
12
  - Specification metadata, callers, cases and locators
@@ -99,23 +99,25 @@ remain specification values. Non-positional pins select v12; positional pins kee
99
99
  older executable bytes/version. Consumer admission is separate (`versions.md`).
100
100
  Source: `v4.139.0:Documentation/screenplay/diagnostics.md`, decision 0065.
101
101
 
102
- ## Reserved stored names and event pin warnings (4.150.0)
102
+ ## Reserved stored names and event pins (4.152.0)
103
103
 
104
104
  | Code | Layer / severity | Meaning / fix |
105
105
  | --- | --- | --- |
106
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. |
107
+ | PLAY0472 | Binding error | An event pin is not a valid event-name identifier, effective stored names differ across generations, or two events share a stored name. Use a valid, application-unique stored name shared by all generations; never rename stored history merely to hide the error. |
108
+ | PLAY0686 | Retired | Screenplay 4.152.0 carries differing event pins as `storedName` in ESM v16. MCP's compatibility `eventPinWarnings` array is empty. Renderer admission remains separate; released Stage 4.92.0 and CLI 3.59.0 do not admit v16. |
108
109
 
109
110
  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.
111
+ version; match its reserved-name message before choosing the rename.
112
+ Source/stream pins already travel in ESM v8; differing event pins require v16.
113
+ Equal-name event pins are no-ops; PLAY0471 removal preserves canonical bytes.
113
114
  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`.
115
+ `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.EventSources.cs:17-52` and
116
+ `decisions/0073-reserve-the-stored-event-stream-name-all.md:35-63`;
117
+ `v4.152.0:Documentation/screenplay/events.md:116-124`,
118
+ `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.StoredEventNames.cs:15-35`,
119
+ `Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82`.
120
+ Target evidence: `versions.md` (Stored-name rendering boundary).
119
121
 
120
122
  ## Named keys, production routes and observer filters
121
123
 
@@ -26,7 +26,7 @@ reaction refusals/redelivery remain unadmitted. Use the actual
26
26
  binder before promoting an older probe to a current capability claim.
27
27
 
28
28
  What the binder admits, and what it refuses with which code. The answer depends on the
29
- compiler version: the standalone tool (4.151.0) binds through v15; the compiler bundled in cratis
29
+ compiler version: the standalone tool (4.153.0) binds through v16; the compiler bundled in cratis
30
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)
31
31
  are history.
32
32
  Tool facts and the exact v6 messages: `versions.md`. Always name
@@ -140,7 +140,7 @@ same-named scalar primitive/concept/enum property of the same nominal type
140
140
  filters AND with `by`; optional omission does not narrow, supplied null is refused.
141
141
  `then query … arguments` and `when query` accept both `by` and filters; PLAY0468
142
142
  reports unknown/repeated/missing required arguments. Collection results match by
143
- read model/key regardless of row order. The standalone 4.151.0 pin admits this;
143
+ read model/key regardless of row order. The standalone 4.153.0 pin admits this;
144
144
  CLI 3.57.0's 4.147.1 compiler and Stage 4.89.1 admit it through v15, subject to
145
145
  construct checks (snapshot lists/DateTime filters/parameter order still refuse). Complete compiled specs:
146
146
  read-surface [equality filters](../../cratis-screenplay-read-surface/references/equality-filters.md).
@@ -61,5 +61,12 @@
61
61
  "kind": "toolCount",
62
62
  "value": "37",
63
63
  "reason": "Historical CLI 3.40.7 / standalone 4.122.0 transcript (version vector in preceding lines). Remove when this probe is removed or replaced."
64
+ },
65
+ {
66
+ "file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
67
+ "text": "| PLAY0686 | Retired | Screenplay 4.152.0 carries differing event pins as `storedName` in ESM v16. MCP's compatibility `eventPinWarnings` array is empty. Renderer admission remains separate; released Stage 4.92.0 and CLI 3.59.0 do not admit v16. |",
68
+ "kind": "diagnostic",
69
+ "value": "PLAY0686",
70
+ "reason": "Explicit retirement notice, not an active diagnostic or repair recommendation. Screenplay v4.152.0 published contract marks PLAY0686 retired; Documentation/screenplay/events.md:124 confirms retirement and empty compatibility warnings. Remove when this notice is removed or replaced."
64
71
  }
65
72
  ]