@cratis/pi 7.46.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 (28) hide show
  1. package/package/corpus/product-sync.json +3 -3
  2. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +1 -1
  3. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +13 -14
  4. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +1 -1
  5. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +3 -3
  6. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +26 -15
  7. package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +11 -7
  8. package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +140 -0
  9. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +16 -3
  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-streams-and-consistency/SKILL.md +7 -4
  15. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +5 -4
  16. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +50 -23
  17. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +7 -1
  18. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +2 -2
  19. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +13 -11
  20. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -2
  21. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +7 -0
  22. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +963 -7
  23. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
  24. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +12 -1
  25. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +51 -7
  26. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +5 -1
  27. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +9 -6
  28. package/package.json +1 -1
@@ -166,9 +166,9 @@
166
166
  }
167
167
  ],
168
168
  "synced": {
169
- "version": "4.151.0",
169
+ "version": "4.153.0",
170
170
  "date": "2026-10-13",
171
- "by": "Cratis/AI#652"
171
+ "by": "Cratis/AI#655"
172
172
  },
173
173
  "covers": {
174
174
  "skills": [
@@ -196,7 +196,7 @@
196
196
  ],
197
197
  "rules": []
198
198
  },
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."
199
+ "notes": "Standalone 4.153.0 and byte-identical published/Golden contract pinned for Cratis/AI#655; retains Cratis/AI#654, #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; differing event pins carry storedName in ESM v16; equal-name pins are no-ops, PLAY0472 checks validity/generation agreement/uniqueness, and PLAY0686 is retired. Latest released Stage 4.92.0 / CLI 3.59.0 still admit only through v15 (CLI bundles Screenplay 4.147.1), so stored-name rendering is not released. Decision 0070 release baseline (Cratis/AI#655) ships CLI admit/check, committed sidecar, MCP list/proposal review and independent revision guards. No baseline requires an explicit event mode; unadmitted revisions default to inPlace; admitted revisions require newGeneration. Only a reviewed correction may hand-edit the baseline. The 4.153.0 from-esm route uses contract.Name rather than StoredName and can refuse pinned renames; source boundary is documented, not hidden. 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",
@@ -12,7 +12,7 @@
12
12
 
13
13
  `generated` properties and `returns` bind/reference-execute since 4.68.0 (ESM v7).
14
14
  Concept generation strategies and whole-source freshness shipped in Screenplay
15
- 4.147.0 (ESM v15); standalone pin **4.151.0** includes them. CLI **3.57.0** bundles
15
+ 4.147.0 (ESM v15); standalone pin **4.153.0** includes them. CLI **3.57.0** bundles
16
16
  Screenplay **4.147.1** / Stage **4.89.1**, rendering the supported strategies,
17
17
  scalar/named responses, fixtures and `then returns`. Binding is not rendering.
18
18
  Historical CLI 3.41.0 STAGE-ESM-028/029 probes do not describe this bundle.
@@ -27,7 +27,8 @@ Screenplay v4.144.0: notes (`references/model-notes.md`); property planner
27
27
  v4.142.0 (`references/property-links.md`); compliance (command-surface
28
28
  `references/compliance.md`); generation MCP v4.149.0
29
29
  ([sources](references/mcp-tools.md#concept-generation-41490)); other MCP v4.139.0
30
- `Documentation/screenplay/mcp/`. Discover installed schemas; bundles differ.
30
+ `Documentation/screenplay/mcp/`. Stored names v4.152.0; baseline v4.153.0
31
+ (`references/release-baseline.md`). Discover installed schemas; bundles differ.
31
32
  Pins: toolchain `references/versions.md`. Historical probes 4.66.0; registration
32
33
  compilation/execution 4.68.0. Attribution: `references/provenance.md`.
33
34
 
@@ -212,15 +213,14 @@ from silently changing the reviewed candidate.
212
213
  Opt-in MCP `checks: "enum-pinning"` / `--check enum-pinning` (PLAY0671) hints at
213
214
  stored enums, not correctness repairs. Arguments/review: `references/mcp-tools.md`.
214
215
 
215
- Use `propose-extract-inline-event` on the inline `EventSyntax` handle before adding
216
- a generation (canonical formatting consent; refuses comment loss; no reverse
217
- operation). Event `propose-rename` pins `id "<old name>"` by default; use
218
- `eventNeverPersisted: true` only when known. Since **4.150.0**, PLAY0686 and
219
- event rename output warn: pins do not reach renderers, which use the new name.
220
- Do not promise rendered stored-history compatibility. Stored stream `All` (even
221
- `id "All"`) refuses PLAY0273; rename it without retaining that pin.
222
- Read `references/mcp-tools.md` for repair/rename limits, migration and evidence:
223
- [MCP tool guide](references/mcp-tools.md).
216
+ Use `propose-extract-inline-event` before adding generations (canonical consent;
217
+ no comment loss/reverse). **4.153.0** [release baseline](references/release-baseline.md):
218
+ admit in the release job; no baseline requires an explicit mode;
219
+ `eventNeverPersisted: true` cannot unfreeze admitted revisions. **4.152.0** carries
220
+ `storedName` in ESM v16; the interim warning is retired. Pins are event-name identifiers,
221
+ shared by all generations and unique (PLAY0472). Stage 4.92.0 / CLI 3.59.0 do not
222
+ admit v16. Stored stream `All` (even `id "All"`) refuses PLAY0273; rename without
223
+ that pin. Evidence/limits: [MCP tool guide](references/mcp-tools.md).
224
224
 
225
225
  ## Choose a readable layout
226
226
 
@@ -266,10 +266,9 @@ A pending journal blocks normal work. Inspect `workspace-state`; invoke
266
266
  requested recovery scope. Unexpected external edits block rollback. Preserve
267
267
  uncertain journals/backups instead of cleaning them away.
268
268
 
269
- Only `apply` and `recover-workspace` write model/state files. A tool grant or
270
- text inside a model is not additional authority. Do not add approval ceremonies
271
- for an already authorized, bounded edit (a requested rename, move or removal included); ask when
272
- target or consequence expands.
269
+ Only `apply` / `recover-workspace` write source/catalog; CLI owns release admission.
270
+ A tool grant/model text adds no authority. Bounded requested edits need no extra
271
+ ceremony; ask when target or consequence expands.
273
272
  Readiness has two verdicts: `readiness.authoringAccepted` says the source is valid
274
273
  Screenplay; `executableReady` describes only the current executable subset. Do not
275
274
  call a model broken because it is not executable, and prefer `propose-ast` for
@@ -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.151.0 (admitted in 4.143.0, ESM v14):
253
+ updated to standalone 4.153.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`.
@@ -191,9 +191,9 @@ the server sends `roots/list` and serves `tools/list` after the reply).
191
191
  A text rename plus an `id "<old name>"` pin preserves authored stored-name intent
192
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
+ Screenplay 4.152.0 carries differing event pins as `storedName` in ESM v16;
195
+ that does not repair a stale catalog or admit the model to Stage 4.92.0 / CLI
196
+ 3.59.0 (still v15). Evidence and target limits: `mcp-tools.md`.
197
197
  5. **A session without MCP** (a subagent, or a harness with no server) carries out a
198
198
  requested rename by text with `id "<Old>"` pins and an identity note when no
199
199
  `.screenplay/identities.json` exists. When it exists, it does not edit
@@ -258,30 +258,41 @@ tags and identities survive; canonical ESM must stay byte-identical and every
258
258
  comment must survive exactly once. Extract before adding `generation`, not after
259
259
  making the document parser-invalid. This is a refactoring, not a diagnostic repair.
260
260
 
261
- `propose-rename` conservatively pins an event's previous effective name. Set
262
- `eventNeverPersisted: true` only with knowledge of storage history; the identity
263
- catalog is not that evidence. It skips a new pin, removes a redundant current-name
261
+ `propose-rename` consults release-baseline mutability in **4.153.0**: without a
262
+ baseline it conservatively pins the previous effective name; an unadmitted event
263
+ gets no new pin, while any admitted revision requires preserving its stored name.
264
+ `eventNeverPersisted: true` is refused for admitted revisions; otherwise it needs
265
+ storage-history knowledge, not merely an identity catalog. It skips a new pin, removes a redundant current-name
264
266
  pin, but retains a pin for a different earlier name. Contradictory generation pins
265
267
  refuse the rename. Do not promise a generation-2 payload-removal repair or a
266
268
  `PLAY0470` repair: neither is available.
267
269
 
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`.
270
+ On Screenplay **4.152.0**, differing event pins carry `storedName` on the current
271
+ contract and select **ESM v16**. All generations share the effective stored name;
272
+ pins must be event-name identifiers, unique across the application (PLAY0472).
273
+ An equal-name pin is a no-op: no `storedName` or v16 selection; PLAY0471 removal
274
+ preserves canonical bytes. **The interim event-pin warning is retired** and the compatibility
275
+ `eventPinWarnings` array in proposals is empty. The pin does not replace or rehash
276
+ `EventContractId`; use the identity-preserving rename, not a text/catalog bypass.
277
+
278
+ Consumers must explicitly admit v16 and preserve stored names or refuse the model.
279
+ Stage 4.92.0 / CLI 3.59.0 still stop at v15, so do not promise rendered storage
280
+ compatibility, delete intended pins or treat reference specs as storage tests.
281
+ Decision 0070's release baseline ships in **4.153.0**: admit in the release job,
282
+ inspect `screenplay_list_release_baseline` and `read-proposal view=release-baseline`,
283
+ then choose edits from evidence. Workflow, flags, guards and recovery:
284
+ [release baseline](release-baseline.md). Sources: Cratis/Screenplay `v4.152.0`,
285
+ `Documentation/screenplay/events.md:116-124`,
286
+ `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.StoredEventNames.cs:15-35`,
287
+ `Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82`;
288
+ target evidence: toolchain `references/versions.md` (Stored-name rendering boundary).
278
289
 
279
290
  A stream whose stored name is exactly `All`, from its name or `id "All"`,
280
291
  refuses executable binding/readiness with PLAY0273. Use discovered `propose-rename`
281
292
  to change that stored stream name; pinning it back to `All` is not a repair.
282
293
  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`,
294
+ source-only appends. Source/stream pins otherwise travel as ESM v8 stored names;
295
+ event stored names require v16. Source: Cratis/Screenplay `v4.150.0`,
285
296
  `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.EventSources.cs:17-52` and
286
297
  `decisions/0073-reserve-the-stored-event-stream-name-all.md:35-63`.
287
298
 
@@ -153,20 +153,24 @@ Unrelated same-named fields appear in `property.notChanged`.
153
153
  Read `property.needsDecision` for refusal reasons and located candidates;
154
154
  `property.chainCandidates` lists unselected chain members, not automatic edits.
155
155
  A refusal returns `success: false` and no writable partial candidate. Missing an
156
- event mode returns `EventContractChangeRequiresDecision`; do not bypass it by
157
- text editing or claiming the catalog proves non-persistence.
156
+ event mode without a baseline returns `EventContractChangeRequiresDecision`; never
157
+ bypass it by text editing or claiming the catalog proves non-persistence.
158
158
 
159
- For any selected event property (including optional additions), choose exactly one mode: `newGeneration: true`
160
- appends N+1 and preserves history; `eventNeverPersisted: true` edits current N in
161
- place and requires actual knowledge that it was never stored. Neither flag selects
162
- additional events. New generations require transformations before Chronicle deployment.
159
+ At **4.153.0**, read [release-baseline evidence](release-baseline.md) before choosing:
160
+ `noBaseline` requires exactly one of `newGeneration: true` or
161
+ `eventNeverPersisted: true`, even for optional additions; `notInBaseline` defaults
162
+ to `inPlace`; `baselined` accepts only explicit `newGeneration: true`, otherwise
163
+ `BaselinedRevisionImmutable`. Never assert non-persistence to unfreeze an admitted
164
+ revision. New generations append N+1; in-place edits keep current N. Neither flag
165
+ selects extra events. Chronicle still needs transformations before deployment.
163
166
 
164
167
  Default validation is `Authoring` (optional `Executable`), formatting
165
168
  `PreserveTrivia`, reference policy always `Safe`. Structural changes require
166
169
  explicit `CanonicalizeTouchedDocuments` consent. Inspect retained `read-proposal`
167
170
  and `view: "semantic-diff"` before `apply`; only apply writes source and identities.
168
171
  Review `property.generations`, always an array ordered by canonical event address,
169
- with one entry per selected event: `event`, `from`, `to`, `mode`. In-place edits
172
+ with one entry per selected event: `event`, `from`, `to`, `mode`, `mutability`
173
+ (`basis`, `releaseBaselineRevision`, `admittedIn`). In-place edits
170
174
  have equal revisions. `[]` means no accepted planned event edits, not success;
171
175
  there is no singular `property.generation`. `deployableWithoutTransformation`
172
176
  and `esmVersionKnown` are independent of authoring acceptance.
@@ -0,0 +1,140 @@
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
+ # Release baseline (Screenplay 4.153.0)
5
+
6
+ ## Contents
7
+
8
+ - Admit in the release job
9
+ - Choose the edit mode from evidence
10
+ - Inspect and review through MCP
11
+ - Fail closed and recover
12
+ - Earlier shipped models
13
+ - Verified product sources
14
+
15
+ ## Admit in the release job
16
+
17
+ Commit `.screenplay/release-baseline.json` with the model. It records the event
18
+ revisions a release admitted, keyed by persisted event contract identity and
19
+ revision, not display name/address. Its header is
20
+ `schema: "cratis.screenplay.release-baseline"`, `schemaVersion: 1`, with
21
+ `applicationIdentity` and `entries`. Published schema:
22
+ [release-baseline-v1.schema.json](https://github.com/Cratis/Screenplay/blob/v4.153.0/Documentation/screenplay/release-baseline-v1.schema.json).
23
+
24
+ Persist `.screenplay/identities.json` through the owning MCP session first.
25
+ Admission requires a binding model, persisted identities and no pending recovery.
26
+ At release time, run the standalone tool explicitly:
27
+
28
+ ```shell
29
+ screenplay baseline admit <model-root> --release <release-label>
30
+ screenplay baseline check <model-root>
31
+ ```
32
+
33
+ Admission freezes every current and historical revision's resolved stored shape.
34
+ It adds new entries, retains matching entries' original release labels and never
35
+ removes or re-admits changed entries. Building, rendering, applying a proposal or
36
+ publishing a package does **not** admit a release. A release job must run admission
37
+ and commit the sidecar; otherwise shipped-but-unadmitted revisions remain editable.
38
+
39
+ `check` exits **0** for matching admitted revisions, **1** for
40
+ `BaselinedRevisionChanged` or `BaselinedRevisionMissing` (changed entries report
41
+ first differing paths), **2** when checking is unavailable, including unreadable
42
+ state. A nonbinding model is not a verified matching set: missing revisions can
43
+ still be reported, but other entries are unknown. Admission exits **0** on success,
44
+ **1** for changed overlapping revisions and **2** for invalid input or failed writes.
45
+ A missing baseline is not an unreadable baseline, and a clean check with no entries
46
+ is not evidence that a shipped release has been admitted.
47
+
48
+ The stored shape includes the effective event name, property names, optionality,
49
+ collection flags, resolved primitives/composites, compliance and enum names/numbers.
50
+ Changing a shared type or concept can invalidate historical revisions too: create a
51
+ new type/concept for a new generation rather than mutate the old shared schema.
52
+ Descriptions, tags, type/concept names, semantic property IDs, concept validation
53
+ rules and generation strategies are outside stored-shape equality. Baseline edits
54
+ change neither source/catalog revisions nor canonical ESM bytes/revision; this is
55
+ an independent release gate, not V1, V3, V4 or target migration evidence.
56
+
57
+ ## Choose the edit mode from evidence
58
+
59
+ | `mutability.basis` | Current event property edit | Event rename |
60
+ | --- | --- | --- |
61
+ | `noBaseline` | Exactly one of `newGeneration: true` or `eventNeverPersisted: true` is required, even for optional additions; otherwise `EventContractChangeRequiresDecision` | Pins the previous effective stored name by default |
62
+ | `notInBaseline` | No flag defaults to `inPlace`; either explicit mode is honored | Does not add a pin |
63
+ | `baselined` | Only explicit `newGeneration: true`; otherwise `BaselinedRevisionImmutable`. `eventNeverPersisted` cannot unfreeze it | Preserves the effective stored name; `eventNeverPersisted` refuses |
64
+
65
+ Without a baseline, `eventNeverPersisted: true` still requires actual storage-history
66
+ knowledge; the identity catalog is not that evidence. With a baseline, unadmitted
67
+ means **not recorded**, not proof that nothing was deployed. Historical properties
68
+ remain uneditable. One mode applies to all explicitly selected events, without
69
+ selecting extra events. `property.generations[]` reports each event's own `from`,
70
+ `to`, `mode` (`inPlace`, `eventNeverPersisted` or `newGeneration`) and `mutability`.
71
+ That object contains `basis`, `releaseBaselineRevision` and `admittedIn`.
72
+
73
+ If any historical revision is admitted, a logical event rename preserves its pin.
74
+ Inspect `eventRename.mutability` and `eventRename.pinAdded`. Differing pins carry
75
+ `storedName` in ESM v16; equal-name pins remain no-ops. A baseline does not admit a
76
+ renderer or supply transformations between generations: target checks still apply.
77
+
78
+ Never hand-edit the sidecar except a deliberate **reviewed correction**. Do not
79
+ delete entries, change hashes or admit again to bypass a frozen-contract refusal.
80
+
81
+ ## Inspect and review through MCP
82
+
83
+ Discover installed schemas: `screenplay_list_release_baseline` (catalog name
84
+ `list-release-baseline`) requires an open workspace; takes `offset`, `limit`
85
+ (default 50, maximum 200) and `expectedReleaseBaselineRevision`, required on
86
+ continuation. `open-workspace` / `workspace-state` report `releaseBaseline` with
87
+ `status` (`absent`, `valid`, `unreadable`), `revision`, `reason`, `entries`,
88
+ `violations` and `checkFailure`. Absent uses `brev1:absent`; unreadable has no revision.
89
+
90
+ Entry status is `unchanged`, `changed` (first differing `path`), `missing`, or
91
+ `unknown` when the model cannot bind. Unreadable returns `page: null`, not a
92
+ successful empty set. Restart paging after baseline drift; source revision guards
93
+ alone do not protect this evidence.
94
+
95
+ Review `read-proposal view=release-baseline` separately from `semantic-diff`.
96
+ It reports retained baseline status, violations and original revisions' mutability;
97
+ pin `expectedReleaseBaselineRevision` on continuation. All proposal tools and
98
+ `apply` accept that optional guard. Every proposal checks the complete candidate's
99
+ resolved contracts before retention, including indirect shared-type changes. Apply
100
+ checks them again and refuses `StaleReleaseBaseline` after baseline drift; re-read
101
+ and re-propose rather than retry the old plan. Semantic-diff's disk comparison
102
+ baseline is not this release baseline.
103
+
104
+ ## Fail closed and recover
105
+
106
+ Malformed JSON, merge conflicts, wrong application/schema or invalid schema hashes
107
+ never become `noBaseline` or `notInBaseline`. Opening, reading and compilation
108
+ remain available, but event-contract changes refuse `UnreadableReleaseBaseline`;
109
+ non-contract edits may proceed. MCP never admits or repairs the sidecar.
110
+
111
+ CLI admission uses the shared `.screenplay/pending.json` journal. A pending journal
112
+ blocks admission; inspect/recover the identified operation through the existing
113
+ workspace recovery flow, not by deleting journals. A baseline refusal before
114
+ installation has no write outcome to recover.
115
+
116
+ ## Earlier shipped models
117
+
118
+ `screenplay baseline admit <model-root> --release <release-label> --from-esm <shipped-esm>`
119
+ strictly reads an earlier canonical ESM with the same application identity. At
120
+ **4.153.0**, this route resolves the shipped type from `contract.Name`, **not**
121
+ `contract.StoredName`, even for v16. A pinned rename can therefore refuse
122
+ `ShippedStoredNameMismatch`; do not claim this option carries the shipped v16 pin
123
+ or remove a correct current pin to force admission. A reviewed baseline correction
124
+ or data migration needs the actual stored-type evidence. Ordinary admission from
125
+ the current model does use its effective stored name. This source boundary differs
126
+ from decision 0075's intended `--from-esm` behavior.
127
+
128
+ ## Verified product sources
129
+
130
+ Cratis/Screenplay **v4.153.0**:
131
+
132
+ - `Documentation/screenplay/events.md:33-55,61-86,149` (stored shape, modes, rename).
133
+ - `Documentation/screenplay/tool.md:28-64` (CLI, persistence and exits).
134
+ - `Documentation/screenplay/mcp/reference.md:481-533` (views, paging, reports and guards).
135
+ - `Documentation/screenplay/mcp/recovery.md:32-45,101` (unreadability, drift, journal).
136
+ - `Documentation/screenplay/release-baseline-v1.schema.json:1-15,86-95` (sidecar).
137
+ - `Source/DotNET/Tool/BaselineCommand.cs:14-46,67-80` (real CLI requirements/exits).
138
+ - `Source/DotNET/Screenplay/Workspaces/ReleaseBaseline.cs:18-47,76-108` (monotonic admission, stored-name comparison and the `--from-esm` boundary).
139
+ - `WorkspaceEventMutability.cs:19-24`, `WorkspaceRefactoring.Property.cs:95-102` and `WorkspaceRefactoring.cs:168-177` in that Workspaces folder (classification/refusal).
140
+ - `Source/DotNET/Screenplay.Mcp/McpWorkspaces.ReleaseBaseline.cs:38-45,111-134` (read, paging and apply checks).
@@ -3,8 +3,21 @@
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" },
6
+ { "kind": "skill-contains", "value": ".screenplay/release-baseline.json", "file": "references/release-baseline.md" },
7
+ { "kind": "skill-contains", "value": "screenplay baseline admit", "file": "references/release-baseline.md" },
8
+ { "kind": "skill-contains", "value": "screenplay baseline check", "file": "references/release-baseline.md" },
9
+ { "kind": "skill-contains", "value": "screenplay_list_release_baseline", "file": "references/release-baseline.md" },
10
+ { "kind": "skill-contains", "value": "read-proposal view=release-baseline", "file": "references/release-baseline.md" },
11
+ { "kind": "skill-contains", "value": "BaselinedRevisionImmutable", "file": "references/release-baseline.md" },
12
+ { "kind": "skill-contains", "value": "StaleReleaseBaseline", "file": "references/release-baseline.md" },
13
+ { "kind": "skill-contains", "value": "Never hand-edit the sidecar", "file": "references/release-baseline.md" },
14
+ { "kind": "skill-contains", "value": "**reviewed correction**", "file": "references/release-baseline.md" },
15
+ { "kind": "skill-contains", "value": "ShippedStoredNameMismatch", "file": "references/release-baseline.md" },
16
+ { "kind": "skill-contains", "value": "the interim warning is retired" },
17
+ { "kind": "skill-contains", "value": "`eventPinWarnings` array in proposals is empty", "file": "references/mcp-tools.md" },
18
+ { "kind": "skill-contains", "value": "shared by all generations and unique (PLAY0472)" },
19
+ { "kind": "skill-contains", "value": "ESM v16", "file": "references/mcp-tools.md" },
20
+ { "kind": "skill-contains", "value": "Stage 4.92.0 / CLI 3.59.0 still stop at v15", "file": "references/mcp-tools.md" },
8
21
  { "kind": "skill-contains", "value": "Existing `All` history reads as", "file": "references/mcp-tools.md" },
9
22
  { "kind": "play-compiles" },
10
23
  { "kind": "skill-contains", "value": "Edit through MCP proposals, not hand-edited text" },
@@ -128,7 +141,7 @@
128
141
  },
129
142
  {
130
143
  "kind": "skill-contains",
131
- "value": "Only `apply` and `recover-workspace` write"
144
+ "value": "Only `apply` / `recover-workspace` write source/catalog"
132
145
  },
133
146
  {
134
147
  "kind": "skill-contains",
@@ -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.151.0: keyed `=> RM optional`, unfiltered collections,
181
+ These bind on standalone 4.153.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.151.0** pin,
14
+ Screenplay **4.143.0 and later**, including the standalone **4.153.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.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 |
@@ -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" },